@six-group/ui-library 0.0.0-insider.d16ec8e → 0.0.0-insider.d7f75e8

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 (1739) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  4. package/dist/cjs/error-messages-6e8049a4.js +119 -0
  5. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  6. package/dist/cjs/event-listeners-9fb878f1.js +61 -0
  7. package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
  8. package/dist/cjs/{execution-control-45c84c46.js → execution-control-d728da70.js} +15 -15
  9. package/dist/cjs/execution-control-d728da70.js.map +1 -0
  10. package/dist/cjs/focus-visible-e2c9255a.js +47 -0
  11. package/dist/cjs/focus-visible-e2c9255a.js.map +1 -0
  12. package/dist/cjs/form-9ebaae7c.js +20 -0
  13. package/dist/cjs/form-9ebaae7c.js.map +1 -0
  14. package/dist/cjs/form-control-b39f1df5.js +36 -0
  15. package/dist/cjs/form-control-b39f1df5.js.map +1 -0
  16. package/dist/cjs/index-417a06c8.js +1948 -0
  17. package/dist/cjs/index-417a06c8.js.map +1 -0
  18. package/dist/cjs/index.cjs.js +62 -0
  19. package/dist/cjs/index.cjs.js.map +1 -1
  20. package/dist/cjs/loader.cjs.js +6 -13
  21. package/dist/cjs/loader.cjs.js.map +1 -1
  22. package/dist/cjs/modal-bd7fc5bc.js +35 -0
  23. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  24. package/dist/cjs/{popover-b5e2d5ef.js → popover-1e7c09f1.js} +105 -111
  25. package/dist/cjs/popover-1e7c09f1.js.map +1 -0
  26. package/dist/cjs/popup-e854acda.js +103 -0
  27. package/dist/cjs/popup-e854acda.js.map +1 -0
  28. package/dist/cjs/scroll-68033901.js +68 -0
  29. package/dist/{esm/scroll-180b53fd.js.map → cjs/scroll-68033901.js.map} +1 -1
  30. package/dist/cjs/six-alert.cjs.entry.js +144 -111
  31. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  32. package/dist/cjs/six-avatar.cjs.entry.js +23 -22
  33. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  34. package/dist/cjs/six-badge.cjs.entry.js +25 -24
  35. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  36. package/dist/cjs/six-button.cjs.entry.js +98 -90
  37. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  38. package/dist/cjs/six-card.cjs.entry.js +10 -9
  39. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  40. package/dist/cjs/six-checkbox.cjs.entry.js +110 -153
  41. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
  42. package/dist/cjs/six-datepicker.cjs.entry.js +866 -871
  43. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  44. package/dist/cjs/six-details.cjs.entry.js +129 -128
  45. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  46. package/dist/cjs/six-dialog.cjs.entry.js +115 -131
  47. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-drawer.cjs.entry.js +132 -149
  49. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  50. package/dist/cjs/six-dropdown_3.cjs.entry.js +818 -0
  51. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  52. package/dist/cjs/six-error-page.cjs.entry.js +84 -83
  53. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  54. package/dist/cjs/six-error.cjs.entry.js +22 -0
  55. package/dist/cjs/six-error.cjs.entry.js.map +1 -0
  56. package/dist/cjs/six-file-list-item.cjs.entry.js +36 -35
  57. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  58. package/dist/cjs/six-file-list.cjs.entry.js +9 -8
  59. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  60. package/dist/cjs/six-file-upload.cjs.entry.js +120 -100
  61. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  62. package/dist/cjs/six-footer.cjs.entry.js +10 -9
  63. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  64. package/dist/cjs/six-group-label.cjs.entry.js +45 -44
  65. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  67. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  68. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  69. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  70. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  71. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  72. package/dist/cjs/six-header.cjs.entry.js +189 -157
  73. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  74. package/dist/cjs/six-icon-button.cjs.entry.js +40 -33
  75. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  76. package/dist/cjs/six-icon.cjs.entry.js +24 -23
  77. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  78. package/dist/cjs/six-input.cjs.entry.js +198 -242
  79. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  80. package/dist/cjs/six-item-picker.cjs.entry.js +407 -310
  81. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  82. package/dist/cjs/six-language-switcher.cjs.entry.js +53 -48
  83. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  84. package/dist/cjs/six-layout-grid.cjs.entry.js +22 -21
  85. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-main-container.cjs.entry.js +11 -10
  87. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  88. package/dist/cjs/six-menu-divider.cjs.entry.js +10 -9
  89. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  90. package/dist/cjs/six-menu-label.cjs.entry.js +10 -9
  91. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  92. package/dist/cjs/six-picto.cjs.entry.js +16 -15
  93. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  94. package/dist/cjs/six-progress-bar.cjs.entry.js +17 -16
  95. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  96. package/dist/cjs/six-progress-ring.cjs.entry.js +32 -31
  97. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  98. package/dist/cjs/six-radio.cjs.entry.js +105 -118
  99. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  100. package/dist/cjs/six-range.cjs.entry.js +200 -224
  101. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  102. package/dist/cjs/six-root.cjs.entry.js +13 -31
  103. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  104. package/dist/cjs/six-search-field.cjs.entry.js +46 -45
  105. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  106. package/dist/cjs/six-select.cjs.entry.js +539 -401
  107. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  108. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +58 -46
  109. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  110. package/dist/cjs/six-sidebar-item.cjs.entry.js +19 -16
  111. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  112. package/dist/cjs/six-sidebar.cjs.entry.js +176 -175
  113. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  114. package/dist/cjs/six-spinner.cjs.entry.js +50 -16
  115. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  116. package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
  117. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  118. package/dist/cjs/six-switch.cjs.entry.js +108 -101
  119. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  120. package/dist/cjs/six-tab-group.cjs.entry.js +256 -235
  121. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  122. package/dist/cjs/six-tab-panel.cjs.entry.js +16 -15
  123. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  124. package/dist/cjs/six-tab.cjs.entry.js +57 -40
  125. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  126. package/dist/cjs/six-tag.cjs.entry.js +57 -34
  127. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  128. package/dist/cjs/six-textarea.cjs.entry.js +184 -229
  129. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  130. package/dist/cjs/six-tile.cjs.entry.js +79 -78
  131. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  132. package/dist/cjs/six-timepicker.cjs.entry.js +350 -364
  133. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  134. package/dist/cjs/six-tooltip.cjs.entry.js +150 -149
  135. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  136. package/dist/cjs/slot-1b1232a1.js +51 -0
  137. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  138. package/dist/cjs/types-d3da200b.js +19 -0
  139. package/dist/cjs/types-d3da200b.js.map +1 -0
  140. package/dist/cjs/ui-library.cjs.js +13 -14
  141. package/dist/cjs/ui-library.cjs.js.map +1 -1
  142. package/dist/collection/assets/TRADEMARKS.md +3 -3
  143. package/dist/collection/collection-manifest.json +58 -55
  144. package/dist/collection/components/six-alert/six-alert.css +5 -1
  145. package/dist/collection/components/six-alert/six-alert.js +383 -331
  146. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  147. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  148. package/dist/collection/components/six-avatar/six-avatar.js +112 -112
  149. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  150. package/dist/collection/components/six-badge/six-badge.css +1 -1
  151. package/dist/collection/components/six-badge/six-badge.js +91 -91
  152. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  153. package/dist/collection/components/six-button/six-button.css +23 -34
  154. package/dist/collection/components/six-button/six-button.js +451 -438
  155. package/dist/collection/components/six-button/six-button.js.map +1 -1
  156. package/dist/collection/components/six-card/six-card.css +4 -5
  157. package/dist/collection/components/six-card/six-card.js +16 -16
  158. package/dist/collection/components/six-card/six-card.js.map +1 -1
  159. package/dist/collection/components/six-checkbox/six-checkbox.css +12 -2
  160. package/dist/collection/components/six-checkbox/six-checkbox.js +422 -527
  161. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  162. package/dist/collection/components/six-datepicker/components/day-selection.js +9 -9
  163. package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
  164. package/dist/collection/components/six-datepicker/components/month-selection.js +10 -10
  165. package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
  166. package/dist/collection/components/six-datepicker/components/year-selection.js +10 -10
  167. package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
  168. package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
  169. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  170. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  171. package/dist/collection/components/six-datepicker/six-datepicker.js +1060 -1107
  172. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  173. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
  174. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
  175. package/dist/collection/components/six-details/six-details.css +4 -6
  176. package/dist/collection/components/six-details/six-details.js +412 -406
  177. package/dist/collection/components/six-details/six-details.js.map +1 -1
  178. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  179. package/dist/collection/components/six-dialog/six-dialog.js +344 -354
  180. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  181. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  182. package/dist/collection/components/six-drawer/six-drawer.js +397 -408
  183. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  184. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -6
  185. package/dist/collection/components/six-dropdown/six-dropdown.js +988 -884
  186. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  187. package/dist/collection/components/six-error/six-error.css +6 -0
  188. package/dist/collection/components/six-error/six-error.js +25 -0
  189. package/dist/collection/components/six-error/six-error.js.map +1 -0
  190. package/dist/collection/components/six-error-page/six-error-page.js +178 -178
  191. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  192. package/dist/collection/components/six-file-list/six-file-list.js +16 -16
  193. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  194. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  195. package/dist/collection/components/six-file-list-item/six-file-list-item.js +196 -194
  196. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  197. package/dist/collection/components/six-file-upload/six-file-upload.css +12 -4
  198. package/dist/collection/components/six-file-upload/six-file-upload.js +367 -290
  199. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  200. package/dist/collection/components/six-footer/six-footer.css +2 -2
  201. package/dist/collection/components/six-footer/six-footer.js +16 -16
  202. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  203. package/dist/collection/components/six-group-label/six-group-label.css +5 -2
  204. package/dist/collection/components/six-group-label/six-group-label.js +158 -158
  205. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  206. package/dist/collection/components/six-header/six-header.css +8 -19
  207. package/dist/collection/components/six-header/six-header.js +540 -405
  208. package/dist/collection/components/six-header/six-header.js.map +1 -1
  209. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  210. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  211. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  212. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  213. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  214. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  215. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  216. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  217. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  218. package/dist/collection/components/six-icon/six-icon.css +5 -2
  219. package/dist/collection/components/six-icon/six-icon.js +72 -72
  220. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  221. package/dist/collection/components/six-icon-button/six-icon-button.css +7 -6
  222. package/dist/collection/components/six-icon-button/six-icon-button.js +190 -133
  223. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  224. package/dist/collection/components/six-input/six-input.css +16 -3
  225. package/dist/collection/components/six-input/six-input.js +1007 -1106
  226. package/dist/collection/components/six-input/six-input.js.map +1 -1
  227. package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
  228. package/dist/collection/components/six-item-picker/six-item-picker.js +731 -631
  229. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  230. package/dist/collection/components/six-item-picker/types.js +9 -7
  231. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  232. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  233. package/dist/collection/components/six-language-switcher/six-language-switcher.js +129 -123
  234. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  235. package/dist/collection/components/six-layout-grid/six-layout-grid.js +55 -55
  236. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  237. package/dist/collection/components/six-logo/six-logo.css +18 -0
  238. package/dist/collection/components/six-logo/six-logo.js +54 -0
  239. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  240. package/dist/collection/components/six-main-container/six-main-container.js +42 -42
  241. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  242. package/dist/collection/components/six-menu/six-menu.css +8 -7
  243. package/dist/collection/components/six-menu/six-menu.js +401 -366
  244. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  245. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  246. package/dist/collection/components/six-menu-divider/six-menu-divider.js +16 -16
  247. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  248. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  249. package/dist/collection/components/six-menu-item/six-menu-item.js +211 -178
  250. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  251. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  252. package/dist/collection/components/six-menu-label/six-menu-label.js +16 -16
  253. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  254. package/dist/collection/components/six-picto/six-picto.js +47 -47
  255. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  256. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  257. package/dist/collection/components/six-progress-bar/six-progress-bar.js +65 -65
  258. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  259. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  260. package/dist/collection/components/six-progress-ring/six-progress-ring.js +101 -101
  261. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  262. package/dist/collection/components/six-radio/six-radio.css +1 -1
  263. package/dist/collection/components/six-radio/six-radio.js +323 -395
  264. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  265. package/dist/collection/components/six-range/six-range.css +6 -3
  266. package/dist/collection/components/six-range/six-range.js +575 -629
  267. package/dist/collection/components/six-range/six-range.js.map +1 -1
  268. package/dist/collection/components/six-root/six-root.js +85 -151
  269. package/dist/collection/components/six-root/six-root.js.map +1 -1
  270. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  271. package/dist/collection/components/six-search-field/six-search-field.js +172 -171
  272. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  273. package/dist/collection/components/six-select/six-select.css +61 -73
  274. package/dist/collection/components/six-select/six-select.js +1117 -1027
  275. package/dist/collection/components/six-select/six-select.js.map +1 -1
  276. package/dist/collection/components/six-select/util.js +58 -34
  277. package/dist/collection/components/six-select/util.js.map +1 -1
  278. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  279. package/dist/collection/components/six-sidebar/six-sidebar.js +468 -454
  280. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  281. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +13 -1
  282. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +102 -83
  283. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  284. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +20 -1
  285. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +182 -154
  286. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  287. package/dist/collection/components/six-spinner/six-spinner.css +46 -1
  288. package/dist/collection/components/six-spinner/six-spinner.js +97 -47
  289. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  290. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  291. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +46 -45
  292. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
  293. package/dist/collection/components/six-switch/six-switch.css +81 -1
  294. package/dist/collection/components/six-switch/six-switch.js +388 -385
  295. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  296. package/dist/collection/components/six-tab/six-tab.css +55 -6
  297. package/dist/collection/components/six-tab/six-tab.js +207 -186
  298. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  299. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -32
  300. package/dist/collection/components/six-tab-group/six-tab-group.js +345 -356
  301. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  302. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  303. package/dist/collection/components/six-tab-panel/six-tab-panel.js +64 -64
  304. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  305. package/dist/collection/components/six-tag/six-tag.css +7 -1
  306. package/dist/collection/components/six-tag/six-tag.js +162 -139
  307. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  308. package/dist/collection/components/six-textarea/six-textarea.css +10 -2
  309. package/dist/collection/components/six-textarea/six-textarea.js +793 -889
  310. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  311. package/dist/collection/components/six-tile/six-tile.css +2 -2
  312. package/dist/collection/components/six-tile/six-tile.js +300 -296
  313. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  314. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  315. package/dist/collection/components/six-timepicker/six-timepicker.js +829 -863
  316. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  317. package/dist/collection/components/six-tooltip/six-tooltip.css +2 -2
  318. package/dist/collection/components/six-tooltip/six-tooltip.js +409 -403
  319. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  320. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  321. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  322. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  323. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  324. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  325. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  326. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  327. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  328. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  329. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  330. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  331. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  332. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  333. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  334. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  335. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  336. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  337. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  338. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  339. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  340. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  341. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  342. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  343. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  344. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  345. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  346. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  347. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  348. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  349. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  350. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  351. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  352. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  353. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  354. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  355. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  356. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  357. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  358. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  359. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  360. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  361. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  362. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  363. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  364. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  365. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  366. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  367. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  368. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  369. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  370. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  371. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  372. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  373. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  374. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  375. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  376. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  377. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  378. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  379. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  380. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  381. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  382. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  383. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  384. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  385. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  386. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  387. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  388. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  389. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  390. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  391. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  392. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  393. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  394. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  395. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  396. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  397. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  398. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  399. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  400. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  401. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  402. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  403. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  404. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  405. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  406. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  407. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  408. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  409. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  410. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  411. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  412. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  413. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  414. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  415. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  416. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  417. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  418. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  419. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  420. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  421. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  422. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  423. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  424. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  425. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  426. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  427. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  428. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  429. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  430. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  431. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  432. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  433. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  434. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  435. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  436. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  437. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  438. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  439. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  440. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  441. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  442. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  443. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  444. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  445. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  446. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  447. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  448. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  449. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  450. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  451. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  452. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  453. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  454. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  455. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  456. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  457. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  458. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  459. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  460. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  461. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  462. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  463. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  464. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  465. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  466. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  467. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  468. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  469. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  470. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  471. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  472. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  473. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  474. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  475. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  476. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  477. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  478. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  479. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  480. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  481. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  482. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  483. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  484. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  485. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  486. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  487. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  488. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  489. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  490. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  491. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  492. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  493. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  494. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  495. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  496. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  497. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  498. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  499. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  500. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  501. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  502. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  503. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  504. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  505. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  506. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  507. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  508. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  509. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  510. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  511. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  512. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  513. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  514. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  515. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  516. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  517. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  518. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  519. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  520. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  521. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  522. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  523. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  524. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  525. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  526. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  527. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  528. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  529. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  530. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  531. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  532. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  533. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  534. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  535. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  536. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  537. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  538. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  539. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  540. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  541. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  542. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  543. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  544. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  545. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  546. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  547. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  548. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  549. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  550. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  551. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  552. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  553. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  554. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  555. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  556. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  557. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  558. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  559. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  560. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  561. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  562. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  563. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  564. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  565. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  566. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  567. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  568. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  569. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  570. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  571. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  572. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  573. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  574. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  575. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  576. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  577. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  578. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  579. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  580. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  581. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  582. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  583. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  584. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  585. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  586. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  587. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  588. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  589. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  590. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  591. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  592. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  593. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  594. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  595. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  596. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  597. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  598. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  599. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  600. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  601. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  602. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  603. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  604. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  605. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  606. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  607. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  608. package/dist/collection/functional-components/form-control/form-control.js +20 -20
  609. package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
  610. package/dist/collection/index.js +2 -1
  611. package/dist/collection/index.js.map +1 -1
  612. package/dist/collection/testUtil/delay.js +1 -1
  613. package/dist/collection/testUtil/delay.js.map +1 -1
  614. package/dist/collection/utils/alert.js +54 -0
  615. package/dist/collection/utils/alert.js.map +1 -0
  616. package/dist/collection/utils/animation.js +34 -0
  617. package/dist/collection/utils/animation.js.map +1 -0
  618. package/dist/collection/utils/date-util.js +527 -501
  619. package/dist/collection/utils/date-util.js.map +1 -1
  620. package/dist/collection/utils/error-messages.js +112 -0
  621. package/dist/collection/utils/error-messages.js.map +1 -0
  622. package/dist/collection/utils/event-listeners.js +52 -36
  623. package/dist/collection/utils/event-listeners.js.map +1 -1
  624. package/dist/collection/utils/execution-control.js +14 -14
  625. package/dist/collection/utils/execution-control.js.map +1 -1
  626. package/dist/collection/utils/focus-visible.js +28 -28
  627. package/dist/collection/utils/focus-visible.js.map +1 -1
  628. package/dist/collection/utils/form.js +15 -0
  629. package/dist/collection/utils/form.js.map +1 -0
  630. package/dist/collection/utils/modal.js +25 -25
  631. package/dist/collection/utils/modal.js.map +1 -1
  632. package/dist/collection/utils/offset.js +4 -4
  633. package/dist/collection/utils/offset.js.map +1 -1
  634. package/dist/collection/utils/popover.js +100 -100
  635. package/dist/collection/utils/popover.js.map +1 -1
  636. package/dist/collection/utils/popup.js +71 -71
  637. package/dist/collection/utils/popup.js.map +1 -1
  638. package/dist/collection/utils/scroll.js +28 -28
  639. package/dist/collection/utils/scroll.js.map +1 -1
  640. package/dist/collection/utils/slot.js +28 -29
  641. package/dist/collection/utils/slot.js.map +1 -1
  642. package/dist/collection/utils/tabbable.js +17 -17
  643. package/dist/collection/utils/tabbable.js.map +1 -1
  644. package/dist/collection/utils/time.util.js +72 -72
  645. package/dist/collection/utils/time.util.js.map +1 -1
  646. package/dist/components/event-listeners.js +52 -36
  647. package/dist/components/event-listeners.js.map +1 -1
  648. package/dist/components/execution-control.js +14 -14
  649. package/dist/components/execution-control.js.map +1 -1
  650. package/dist/components/focus-visible.js +28 -28
  651. package/dist/components/focus-visible.js.map +1 -1
  652. package/dist/components/form-control.js +26 -25
  653. package/dist/components/form-control.js.map +1 -1
  654. package/dist/components/form.js +18 -0
  655. package/dist/components/form.js.map +1 -0
  656. package/dist/components/index.d.ts +6 -0
  657. package/dist/components/index.js +126 -65
  658. package/dist/components/index.js.map +1 -1
  659. package/dist/components/modal.js +26 -42
  660. package/dist/components/modal.js.map +1 -1
  661. package/dist/components/popover.js +104 -110
  662. package/dist/components/popover.js.map +1 -1
  663. package/dist/components/scroll.js +32 -32
  664. package/dist/components/scroll.js.map +1 -1
  665. package/dist/components/six-alert.d.ts +2 -2
  666. package/dist/components/six-alert.js +178 -142
  667. package/dist/components/six-alert.js.map +1 -1
  668. package/dist/components/six-avatar.d.ts +2 -2
  669. package/dist/components/six-avatar.js +46 -45
  670. package/dist/components/six-avatar.js.map +1 -1
  671. package/dist/components/six-badge.d.ts +2 -2
  672. package/dist/components/six-badge.js +41 -40
  673. package/dist/components/six-badge.js.map +1 -1
  674. package/dist/components/six-button.d.ts +2 -2
  675. package/dist/components/six-button.js +1 -136
  676. package/dist/components/six-button.js.map +1 -1
  677. package/dist/components/six-button2.js +148 -0
  678. package/dist/components/six-button2.js.map +1 -0
  679. package/dist/components/six-card.d.ts +2 -2
  680. package/dist/components/six-card.js +22 -21
  681. package/dist/components/six-card.js.map +1 -1
  682. package/dist/components/six-checkbox.d.ts +2 -2
  683. package/dist/components/six-checkbox.js +1 -198
  684. package/dist/components/six-checkbox.js.map +1 -1
  685. package/dist/components/six-checkbox2.js +166 -0
  686. package/dist/components/six-checkbox2.js.map +1 -0
  687. package/dist/components/six-datepicker.d.ts +2 -2
  688. package/dist/components/six-datepicker.js +936 -934
  689. package/dist/components/six-datepicker.js.map +1 -1
  690. package/dist/components/six-details.d.ts +2 -2
  691. package/dist/components/six-details2.js +159 -156
  692. package/dist/components/six-details2.js.map +1 -1
  693. package/dist/components/six-dialog.d.ts +2 -2
  694. package/dist/components/six-dialog.js +145 -159
  695. package/dist/components/six-dialog.js.map +1 -1
  696. package/dist/components/six-drawer.d.ts +2 -2
  697. package/dist/components/six-drawer.js +164 -179
  698. package/dist/components/six-drawer.js.map +1 -1
  699. package/dist/components/six-dropdown.d.ts +2 -2
  700. package/dist/components/six-dropdown2.js +554 -464
  701. package/dist/components/six-dropdown2.js.map +1 -1
  702. package/dist/components/six-error-page.d.ts +2 -2
  703. package/dist/components/six-error-page.js +107 -106
  704. package/dist/components/six-error-page.js.map +1 -1
  705. package/dist/components/six-error.d.ts +11 -0
  706. package/dist/components/six-error.js +8 -0
  707. package/dist/components/six-error.js.map +1 -0
  708. package/dist/components/six-error2.js +33 -0
  709. package/dist/components/six-error2.js.map +1 -0
  710. package/dist/components/six-file-list-item.d.ts +2 -2
  711. package/dist/components/six-file-list-item.js +60 -59
  712. package/dist/components/six-file-list-item.js.map +1 -1
  713. package/dist/components/six-file-list.d.ts +2 -2
  714. package/dist/components/six-file-list.js +21 -20
  715. package/dist/components/six-file-list.js.map +1 -1
  716. package/dist/components/six-file-upload.d.ts +2 -2
  717. package/dist/components/six-file-upload.js +162 -126
  718. package/dist/components/six-file-upload.js.map +1 -1
  719. package/dist/components/six-footer.d.ts +2 -2
  720. package/dist/components/six-footer.js +22 -21
  721. package/dist/components/six-footer.js.map +1 -1
  722. package/dist/components/six-group-label.d.ts +2 -2
  723. package/dist/components/six-group-label.js +72 -62
  724. package/dist/components/six-group-label.js.map +1 -1
  725. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  726. package/dist/components/six-header-dropdown-item.js +103 -0
  727. package/dist/components/six-header-dropdown-item.js.map +1 -0
  728. package/dist/components/{set-attributes.d.ts → six-header-item.d.ts} +4 -4
  729. package/dist/components/six-header-item.js +8 -0
  730. package/dist/components/six-header-item.js.map +1 -0
  731. package/dist/components/six-header-item2.js +39 -0
  732. package/dist/components/six-header-item2.js.map +1 -0
  733. package/dist/components/six-header-menu-button.d.ts +11 -0
  734. package/dist/components/six-header-menu-button.js +57 -0
  735. package/dist/components/six-header-menu-button.js.map +1 -0
  736. package/dist/components/six-header.d.ts +2 -2
  737. package/dist/components/six-header.js +271 -210
  738. package/dist/components/six-header.js.map +1 -1
  739. package/dist/components/six-icon-button.d.ts +2 -2
  740. package/dist/components/six-icon-button2.js +65 -55
  741. package/dist/components/six-icon-button2.js.map +1 -1
  742. package/dist/components/six-icon.d.ts +2 -2
  743. package/dist/components/six-icon2.js +39 -38
  744. package/dist/components/six-icon2.js.map +1 -1
  745. package/dist/components/six-input.d.ts +2 -2
  746. package/dist/components/six-input2.js +265 -303
  747. package/dist/components/six-input2.js.map +1 -1
  748. package/dist/components/six-item-picker.d.ts +2 -2
  749. package/dist/components/six-item-picker2.js +451 -348
  750. package/dist/components/six-item-picker2.js.map +1 -1
  751. package/dist/components/six-language-switcher.d.ts +2 -2
  752. package/dist/components/six-language-switcher.js +70 -63
  753. package/dist/components/six-language-switcher.js.map +1 -1
  754. package/dist/components/six-layout-grid.d.ts +2 -2
  755. package/dist/components/six-layout-grid.js +38 -35
  756. package/dist/components/six-layout-grid.js.map +1 -1
  757. package/dist/components/{six-form.d.ts → six-logo.d.ts} +4 -4
  758. package/dist/components/six-logo.js +8 -0
  759. package/dist/components/six-logo.js.map +1 -0
  760. package/dist/components/six-logo2.js +42 -0
  761. package/dist/components/six-logo2.js.map +1 -0
  762. package/dist/components/six-main-container.d.ts +2 -2
  763. package/dist/components/six-main-container.js +25 -24
  764. package/dist/components/six-main-container.js.map +1 -1
  765. package/dist/components/six-menu-divider.d.ts +2 -2
  766. package/dist/components/six-menu-divider.js +22 -21
  767. package/dist/components/six-menu-divider.js.map +1 -1
  768. package/dist/components/six-menu-item.d.ts +2 -2
  769. package/dist/components/six-menu-item2.js +99 -75
  770. package/dist/components/six-menu-item2.js.map +1 -1
  771. package/dist/components/six-menu-label.d.ts +2 -2
  772. package/dist/components/six-menu-label.js +22 -21
  773. package/dist/components/six-menu-label.js.map +1 -1
  774. package/dist/components/six-menu.d.ts +2 -2
  775. package/dist/components/six-menu2.js +246 -220
  776. package/dist/components/six-menu2.js.map +1 -1
  777. package/dist/components/six-picto.d.ts +2 -2
  778. package/dist/components/six-picto2.js +30 -29
  779. package/dist/components/six-picto2.js.map +1 -1
  780. package/dist/components/six-progress-bar.d.ts +2 -2
  781. package/dist/components/six-progress-bar.js +32 -31
  782. package/dist/components/six-progress-bar.js.map +1 -1
  783. package/dist/components/six-progress-ring.d.ts +2 -2
  784. package/dist/components/six-progress-ring.js +50 -47
  785. package/dist/components/six-progress-ring.js.map +1 -1
  786. package/dist/components/six-radio.d.ts +2 -2
  787. package/dist/components/six-radio.js +129 -143
  788. package/dist/components/six-radio.js.map +1 -1
  789. package/dist/components/six-range.d.ts +2 -2
  790. package/dist/components/six-range.js +234 -247
  791. package/dist/components/six-range.js.map +1 -1
  792. package/dist/components/six-root.d.ts +2 -2
  793. package/dist/components/six-root.js +40 -66
  794. package/dist/components/six-root.js.map +1 -1
  795. package/dist/components/six-search-field.d.ts +2 -2
  796. package/dist/components/six-search-field.js +80 -71
  797. package/dist/components/six-search-field.js.map +1 -1
  798. package/dist/components/six-select.d.ts +2 -2
  799. package/dist/components/six-select.js +767 -495
  800. package/dist/components/six-select.js.map +1 -1
  801. package/dist/components/six-sidebar-item-group.d.ts +2 -2
  802. package/dist/components/six-sidebar-item-group.js +88 -75
  803. package/dist/components/six-sidebar-item-group.js.map +1 -1
  804. package/dist/components/six-sidebar-item.d.ts +2 -2
  805. package/dist/components/six-sidebar-item.js +36 -32
  806. package/dist/components/six-sidebar-item.js.map +1 -1
  807. package/dist/components/six-sidebar.d.ts +2 -2
  808. package/dist/components/six-sidebar.js +200 -197
  809. package/dist/components/six-sidebar.js.map +1 -1
  810. package/dist/components/six-spinner.d.ts +2 -2
  811. package/dist/components/six-spinner2.js +65 -30
  812. package/dist/components/six-spinner2.js.map +1 -1
  813. package/dist/components/six-stage-indicator.d.ts +2 -2
  814. package/dist/components/six-stage-indicator2.js +30 -29
  815. package/dist/components/six-stage-indicator2.js.map +1 -1
  816. package/dist/components/six-switch.d.ts +2 -2
  817. package/dist/components/six-switch.js +144 -127
  818. package/dist/components/six-switch.js.map +1 -1
  819. package/dist/components/six-tab-group.d.ts +2 -2
  820. package/dist/components/six-tab-group.js +286 -262
  821. package/dist/components/six-tab-group.js.map +1 -1
  822. package/dist/components/six-tab-panel.d.ts +2 -2
  823. package/dist/components/six-tab-panel.js +31 -30
  824. package/dist/components/six-tab-panel.js.map +1 -1
  825. package/dist/components/six-tab.d.ts +2 -2
  826. package/dist/components/six-tab.js +86 -69
  827. package/dist/components/six-tab.js.map +1 -1
  828. package/dist/components/six-tag.d.ts +2 -2
  829. package/dist/components/six-tag.js +99 -1
  830. package/dist/components/six-tag.js.map +1 -1
  831. package/dist/components/six-textarea.d.ts +2 -2
  832. package/dist/components/six-textarea.js +227 -264
  833. package/dist/components/six-textarea.js.map +1 -1
  834. package/dist/components/six-tile.d.ts +2 -2
  835. package/dist/components/six-tile.js +118 -117
  836. package/dist/components/six-tile.js.map +1 -1
  837. package/dist/components/six-timepicker.d.ts +2 -2
  838. package/dist/components/six-timepicker2.js +492 -500
  839. package/dist/components/six-timepicker2.js.map +1 -1
  840. package/dist/components/six-tooltip.d.ts +2 -2
  841. package/dist/components/six-tooltip2.js +173 -170
  842. package/dist/components/six-tooltip2.js.map +1 -1
  843. package/dist/components/slot.js +29 -30
  844. package/dist/components/slot.js.map +1 -1
  845. package/dist/components.d.ts +375 -88
  846. package/dist/components.json +5526 -1032
  847. package/dist/esm/app-globals-0f993ce5.js +5 -0
  848. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  849. package/dist/esm/error-messages-1eaaad23.js +115 -0
  850. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  851. package/dist/esm/event-listeners-706d4309.js +59 -0
  852. package/dist/esm/event-listeners-706d4309.js.map +1 -0
  853. package/dist/esm/{execution-control-72cc50f4.js → execution-control-2ebaf4ef.js} +15 -15
  854. package/dist/esm/execution-control-2ebaf4ef.js.map +1 -0
  855. package/dist/esm/focus-visible-d9dbfeef.js +45 -0
  856. package/dist/esm/focus-visible-d9dbfeef.js.map +1 -0
  857. package/dist/esm/form-4b145b7a.js +18 -0
  858. package/dist/esm/form-4b145b7a.js.map +1 -0
  859. package/dist/esm/form-control-ad1710bf.js +34 -0
  860. package/dist/esm/form-control-ad1710bf.js.map +1 -0
  861. package/dist/esm/index-a7bee415.js +1919 -0
  862. package/dist/esm/index-a7bee415.js.map +1 -0
  863. package/dist/esm/index.js +56 -0
  864. package/dist/esm/index.js.map +1 -1
  865. package/dist/esm/loader.js +8 -15
  866. package/dist/esm/loader.js.map +1 -1
  867. package/dist/esm/modal-6c1288e3.js +33 -0
  868. package/dist/esm/modal-6c1288e3.js.map +1 -0
  869. package/dist/esm/{popover-1aacbae8.js → popover-25996e62.js} +105 -111
  870. package/dist/esm/popover-25996e62.js.map +1 -0
  871. package/dist/esm/popup-7209e9d5.js +98 -0
  872. package/dist/esm/popup-7209e9d5.js.map +1 -0
  873. package/dist/esm/scroll-3e16851e.js +64 -0
  874. package/dist/esm/scroll-3e16851e.js.map +1 -0
  875. package/dist/esm/six-alert.entry.js +144 -111
  876. package/dist/esm/six-alert.entry.js.map +1 -1
  877. package/dist/esm/six-avatar.entry.js +23 -22
  878. package/dist/esm/six-avatar.entry.js.map +1 -1
  879. package/dist/esm/six-badge.entry.js +25 -24
  880. package/dist/esm/six-badge.entry.js.map +1 -1
  881. package/dist/esm/six-button.entry.js +98 -90
  882. package/dist/esm/six-button.entry.js.map +1 -1
  883. package/dist/esm/six-card.entry.js +10 -9
  884. package/dist/esm/six-card.entry.js.map +1 -1
  885. package/dist/esm/six-checkbox.entry.js +110 -153
  886. package/dist/esm/six-checkbox.entry.js.map +1 -1
  887. package/dist/esm/six-datepicker.entry.js +866 -871
  888. package/dist/esm/six-datepicker.entry.js.map +1 -1
  889. package/dist/esm/six-details.entry.js +129 -128
  890. package/dist/esm/six-details.entry.js.map +1 -1
  891. package/dist/esm/six-dialog.entry.js +115 -131
  892. package/dist/esm/six-dialog.entry.js.map +1 -1
  893. package/dist/esm/six-drawer.entry.js +132 -149
  894. package/dist/esm/six-drawer.entry.js.map +1 -1
  895. package/dist/esm/six-dropdown_3.entry.js +812 -0
  896. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  897. package/dist/esm/six-error-page.entry.js +84 -83
  898. package/dist/esm/six-error-page.entry.js.map +1 -1
  899. package/dist/esm/six-error.entry.js +18 -0
  900. package/dist/esm/six-error.entry.js.map +1 -0
  901. package/dist/esm/six-file-list-item.entry.js +36 -35
  902. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  903. package/dist/esm/six-file-list.entry.js +9 -8
  904. package/dist/esm/six-file-list.entry.js.map +1 -1
  905. package/dist/esm/six-file-upload.entry.js +120 -100
  906. package/dist/esm/six-file-upload.entry.js.map +1 -1
  907. package/dist/esm/six-footer.entry.js +10 -9
  908. package/dist/esm/six-footer.entry.js.map +1 -1
  909. package/dist/esm/six-group-label.entry.js +45 -44
  910. package/dist/esm/six-group-label.entry.js.map +1 -1
  911. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  912. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  913. package/dist/esm/six-header-item_2.entry.js +42 -0
  914. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  915. package/dist/esm/six-header-menu-button.entry.js +19 -0
  916. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  917. package/dist/esm/six-header.entry.js +189 -157
  918. package/dist/esm/six-header.entry.js.map +1 -1
  919. package/dist/esm/six-icon-button.entry.js +40 -33
  920. package/dist/esm/six-icon-button.entry.js.map +1 -1
  921. package/dist/esm/six-icon.entry.js +24 -23
  922. package/dist/esm/six-icon.entry.js.map +1 -1
  923. package/dist/esm/six-input.entry.js +198 -242
  924. package/dist/esm/six-input.entry.js.map +1 -1
  925. package/dist/esm/six-item-picker.entry.js +407 -310
  926. package/dist/esm/six-item-picker.entry.js.map +1 -1
  927. package/dist/esm/six-language-switcher.entry.js +53 -48
  928. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  929. package/dist/esm/six-layout-grid.entry.js +22 -21
  930. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  931. package/dist/esm/six-main-container.entry.js +11 -10
  932. package/dist/esm/six-main-container.entry.js.map +1 -1
  933. package/dist/esm/six-menu-divider.entry.js +10 -9
  934. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  935. package/dist/esm/six-menu-label.entry.js +10 -9
  936. package/dist/esm/six-menu-label.entry.js.map +1 -1
  937. package/dist/esm/six-picto.entry.js +16 -15
  938. package/dist/esm/six-picto.entry.js.map +1 -1
  939. package/dist/esm/six-progress-bar.entry.js +17 -16
  940. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  941. package/dist/esm/six-progress-ring.entry.js +32 -31
  942. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  943. package/dist/esm/six-radio.entry.js +105 -118
  944. package/dist/esm/six-radio.entry.js.map +1 -1
  945. package/dist/esm/six-range.entry.js +200 -224
  946. package/dist/esm/six-range.entry.js.map +1 -1
  947. package/dist/esm/six-root.entry.js +13 -31
  948. package/dist/esm/six-root.entry.js.map +1 -1
  949. package/dist/esm/six-search-field.entry.js +46 -45
  950. package/dist/esm/six-search-field.entry.js.map +1 -1
  951. package/dist/esm/six-select.entry.js +539 -401
  952. package/dist/esm/six-select.entry.js.map +1 -1
  953. package/dist/esm/six-sidebar-item-group.entry.js +58 -46
  954. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  955. package/dist/esm/six-sidebar-item.entry.js +19 -16
  956. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  957. package/dist/esm/six-sidebar.entry.js +176 -175
  958. package/dist/esm/six-sidebar.entry.js.map +1 -1
  959. package/dist/esm/six-spinner.entry.js +50 -16
  960. package/dist/esm/six-spinner.entry.js.map +1 -1
  961. package/dist/esm/six-stage-indicator.entry.js +19 -0
  962. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  963. package/dist/esm/six-switch.entry.js +108 -101
  964. package/dist/esm/six-switch.entry.js.map +1 -1
  965. package/dist/esm/six-tab-group.entry.js +256 -235
  966. package/dist/esm/six-tab-group.entry.js.map +1 -1
  967. package/dist/esm/six-tab-panel.entry.js +16 -15
  968. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  969. package/dist/esm/six-tab.entry.js +57 -40
  970. package/dist/esm/six-tab.entry.js.map +1 -1
  971. package/dist/esm/six-tag.entry.js +57 -34
  972. package/dist/esm/six-tag.entry.js.map +1 -1
  973. package/dist/esm/six-textarea.entry.js +184 -229
  974. package/dist/esm/six-textarea.entry.js.map +1 -1
  975. package/dist/esm/six-tile.entry.js +79 -78
  976. package/dist/esm/six-tile.entry.js.map +1 -1
  977. package/dist/esm/six-timepicker.entry.js +350 -364
  978. package/dist/esm/six-timepicker.entry.js.map +1 -1
  979. package/dist/esm/six-tooltip.entry.js +150 -149
  980. package/dist/esm/six-tooltip.entry.js.map +1 -1
  981. package/dist/esm/slot-56531341.js +47 -0
  982. package/dist/esm/slot-56531341.js.map +1 -0
  983. package/dist/esm/types-a07bb999.js +19 -0
  984. package/dist/esm/types-a07bb999.js.map +1 -0
  985. package/dist/esm/ui-library.js +14 -15
  986. package/dist/esm/ui-library.js.map +1 -1
  987. package/dist/types/components/six-alert/six-alert.d.ts +47 -40
  988. package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
  989. package/dist/types/components/six-badge/six-badge.d.ts +7 -7
  990. package/dist/types/components/six-button/six-button.d.ts +48 -48
  991. package/dist/types/components/six-card/six-card.d.ts +1 -1
  992. package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -71
  993. package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
  994. package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
  995. package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
  996. package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
  997. package/dist/types/components/six-datepicker/six-datepicker.d.ts +188 -192
  998. package/dist/types/components/six-details/six-details.d.ts +42 -42
  999. package/dist/types/components/six-dialog/six-dialog.d.ts +51 -50
  1000. package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
  1001. package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -112
  1002. package/dist/types/components/six-error/six-error.d.ts +9 -0
  1003. package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
  1004. package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
  1005. package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
  1006. package/dist/types/components/six-file-upload/six-file-upload.d.ts +43 -33
  1007. package/dist/types/components/six-footer/six-footer.d.ts +1 -1
  1008. package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
  1009. package/dist/types/components/six-header/six-header.d.ts +127 -60
  1010. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  1011. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  1012. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  1013. package/dist/types/components/six-icon/six-icon.d.ts +5 -5
  1014. package/dist/types/components/six-icon-button/six-icon-button.d.ts +24 -18
  1015. package/dist/types/components/six-input/six-input.d.ts +120 -129
  1016. package/dist/types/components/six-item-picker/six-item-picker.d.ts +95 -88
  1017. package/dist/types/components/six-item-picker/types.d.ts +7 -7
  1018. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
  1019. package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
  1020. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  1021. package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
  1022. package/dist/types/components/six-menu/six-menu.d.ts +67 -63
  1023. package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
  1024. package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
  1025. package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
  1026. package/dist/types/components/six-picto/six-picto.d.ts +6 -6
  1027. package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
  1028. package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
  1029. package/dist/types/components/six-radio/six-radio.d.ts +38 -48
  1030. package/dist/types/components/six-range/six-range.d.ts +77 -87
  1031. package/dist/types/components/six-root/six-root.d.ts +8 -21
  1032. package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
  1033. package/dist/types/components/six-select/six-select.d.ts +135 -134
  1034. package/dist/types/components/six-select/util.d.ts +3 -1
  1035. package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
  1036. package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
  1037. package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
  1038. package/dist/types/components/six-spinner/six-spinner.d.ts +26 -5
  1039. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
  1040. package/dist/types/components/six-switch/six-switch.d.ts +49 -44
  1041. package/dist/types/components/six-tab/six-tab.d.ts +20 -20
  1042. package/dist/types/components/six-tab-group/six-tab-group.d.ts +38 -38
  1043. package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
  1044. package/dist/types/components/six-tag/six-tag.d.ts +20 -12
  1045. package/dist/types/components/six-textarea/six-textarea.d.ts +89 -105
  1046. package/dist/types/components/six-tile/six-tile.d.ts +31 -31
  1047. package/dist/types/components/six-timepicker/six-timepicker.d.ts +154 -156
  1048. package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
  1049. package/dist/types/components.d.ts +887 -381
  1050. package/dist/types/functional-components/form-control/form-control.d.ts +32 -30
  1051. package/dist/types/index.d.ts +2 -0
  1052. package/dist/types/stencil-public-runtime.d.ts +52 -15
  1053. package/dist/types/types.d.ts +3 -0
  1054. package/dist/types/utils/alert.d.ts +10 -0
  1055. package/dist/types/utils/animation.d.ts +12 -0
  1056. package/dist/types/utils/date-util.d.ts +59 -50
  1057. package/dist/types/utils/error-messages.d.ts +44 -0
  1058. package/dist/types/utils/event-listeners.d.ts +11 -10
  1059. package/dist/types/utils/focus-visible.d.ts +2 -2
  1060. package/dist/types/utils/form.d.ts +1 -0
  1061. package/dist/types/utils/modal.d.ts +8 -8
  1062. package/dist/types/utils/offset.d.ts +2 -2
  1063. package/dist/types/utils/popover.d.ts +21 -21
  1064. package/dist/types/utils/slot.d.ts +0 -1
  1065. package/dist/types/utils/time.util.d.ts +6 -6
  1066. package/dist/types/utils/type-check.d.ts +1 -1
  1067. package/dist/types/utils/types.d.ts +1 -1
  1068. package/dist/ui-library/assets/TRADEMARKS.md +3 -3
  1069. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  1070. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  1071. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  1072. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  1073. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  1074. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  1075. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  1076. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  1077. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  1078. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  1079. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  1080. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  1081. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  1082. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  1083. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  1084. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  1085. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  1086. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  1087. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  1088. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  1089. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  1090. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  1091. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  1092. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  1093. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  1094. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  1095. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  1096. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  1097. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  1098. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  1099. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  1100. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  1101. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  1102. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  1103. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  1104. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  1105. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  1106. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  1107. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  1108. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  1109. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  1110. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  1111. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  1112. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  1113. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  1114. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  1115. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  1116. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  1117. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  1118. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  1119. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  1120. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  1121. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  1122. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  1123. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  1124. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  1125. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  1126. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  1127. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  1128. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  1129. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  1130. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  1131. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  1132. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  1133. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  1134. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  1135. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  1136. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  1137. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  1138. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  1139. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  1140. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  1141. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  1142. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  1143. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  1144. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  1145. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  1146. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  1147. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  1148. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  1149. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  1150. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  1151. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  1152. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  1153. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  1154. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  1155. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  1156. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  1157. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  1158. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  1159. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  1160. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  1161. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  1162. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  1163. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  1164. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  1165. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  1166. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  1167. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  1168. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  1169. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  1170. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  1171. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  1172. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  1173. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  1174. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  1175. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  1176. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  1177. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  1178. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  1179. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  1180. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  1181. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  1182. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  1183. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  1184. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  1185. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  1186. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  1187. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  1188. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  1189. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  1190. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  1191. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  1192. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  1193. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  1194. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  1195. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  1196. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  1197. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  1198. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  1199. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  1200. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  1201. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  1202. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  1203. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  1204. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  1205. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  1206. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  1207. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  1208. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  1209. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  1210. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  1211. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  1212. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  1213. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  1214. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  1215. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  1216. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  1217. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  1218. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  1219. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  1220. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  1221. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  1222. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  1223. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  1224. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  1225. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  1226. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  1227. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  1228. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  1229. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  1230. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  1231. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  1232. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  1233. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  1234. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  1235. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  1236. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  1237. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  1238. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  1239. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  1240. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  1241. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  1242. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  1243. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  1244. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  1245. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  1246. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  1247. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  1248. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  1249. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  1250. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  1251. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  1252. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  1253. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  1254. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  1255. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  1256. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  1257. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  1258. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  1259. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  1260. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  1261. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  1262. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  1263. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  1264. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  1265. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  1266. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  1267. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  1268. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  1269. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  1270. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  1271. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  1272. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  1273. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  1274. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  1275. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  1276. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  1277. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  1278. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  1279. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  1280. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  1281. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  1282. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  1283. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  1284. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  1285. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  1286. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  1287. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  1288. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  1289. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  1290. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  1291. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  1292. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  1293. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  1294. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  1295. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  1296. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  1297. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  1298. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  1299. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  1300. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  1301. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  1302. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  1303. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  1304. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  1305. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  1306. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  1307. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  1308. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  1309. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  1310. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  1311. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  1312. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  1313. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  1314. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  1315. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  1316. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  1317. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  1318. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  1319. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  1320. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  1321. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  1322. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  1323. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  1324. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  1325. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  1326. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  1327. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  1328. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  1329. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  1330. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  1331. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  1332. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  1333. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  1334. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  1335. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  1336. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  1337. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  1338. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  1339. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  1340. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  1341. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  1342. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  1343. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  1344. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  1345. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  1346. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  1347. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  1348. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  1349. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  1350. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  1351. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  1352. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  1353. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  1354. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  1355. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  1356. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  1357. package/dist/ui-library/index.esm.js +1 -1
  1358. package/dist/ui-library/index.esm.js.map +1 -1
  1359. package/dist/ui-library/p-03acec96.entry.js +2 -0
  1360. package/dist/ui-library/p-03acec96.entry.js.map +1 -0
  1361. package/dist/ui-library/{p-0cc08e91.js → p-06ba4450.js} +1 -1
  1362. package/dist/ui-library/p-06ba4450.js.map +1 -0
  1363. package/dist/ui-library/p-06d562b7.entry.js +2 -0
  1364. package/dist/ui-library/p-06d562b7.entry.js.map +1 -0
  1365. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  1366. package/dist/ui-library/p-07b6203f.entry.js.map +1 -0
  1367. package/dist/ui-library/p-0a6b6429.entry.js +2 -0
  1368. package/dist/ui-library/p-0a6b6429.entry.js.map +1 -0
  1369. package/dist/ui-library/p-0cebf1d2.js +2 -0
  1370. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  1371. package/dist/ui-library/p-14d09601.entry.js +2 -0
  1372. package/dist/ui-library/p-14d09601.entry.js.map +1 -0
  1373. package/dist/ui-library/p-171df3ad.entry.js +2 -0
  1374. package/dist/ui-library/p-171df3ad.entry.js.map +1 -0
  1375. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  1376. package/dist/ui-library/p-1cc3b56d.entry.js.map +1 -0
  1377. package/dist/ui-library/p-1cd09d9b.entry.js +2 -0
  1378. package/dist/ui-library/p-1cd09d9b.entry.js.map +1 -0
  1379. package/dist/ui-library/p-1f7a0cb5.entry.js +2 -0
  1380. package/dist/ui-library/p-1f7a0cb5.entry.js.map +1 -0
  1381. package/dist/ui-library/p-2355c444.entry.js +2 -0
  1382. package/dist/ui-library/p-2355c444.entry.js.map +1 -0
  1383. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  1384. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  1385. package/dist/ui-library/p-2ad904a7.entry.js +2 -0
  1386. package/dist/ui-library/p-2ad904a7.entry.js.map +1 -0
  1387. package/dist/ui-library/p-30000e86.entry.js +2 -0
  1388. package/dist/ui-library/p-30000e86.entry.js.map +1 -0
  1389. package/dist/ui-library/p-42cd3588.entry.js +2 -0
  1390. package/dist/ui-library/p-42cd3588.entry.js.map +1 -0
  1391. package/dist/ui-library/p-48118ce8.js +3 -0
  1392. package/dist/ui-library/p-48118ce8.js.map +1 -0
  1393. package/dist/ui-library/p-49019d6c.entry.js +2 -0
  1394. package/dist/ui-library/p-49019d6c.entry.js.map +1 -0
  1395. package/dist/ui-library/p-4d72b179.entry.js +2 -0
  1396. package/dist/ui-library/p-4d72b179.entry.js.map +1 -0
  1397. package/dist/ui-library/p-4de4ee7a.entry.js +2 -0
  1398. package/dist/ui-library/p-4de4ee7a.entry.js.map +1 -0
  1399. package/dist/ui-library/p-4edde816.entry.js +2 -0
  1400. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  1401. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  1402. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  1403. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1404. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1405. package/dist/ui-library/p-5ece7986.entry.js +2 -0
  1406. package/dist/ui-library/p-5ece7986.entry.js.map +1 -0
  1407. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1408. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1409. package/dist/ui-library/p-5fc9cd7b.entry.js +2 -0
  1410. package/dist/ui-library/p-5fc9cd7b.entry.js.map +1 -0
  1411. package/dist/ui-library/p-618bf750.entry.js +2 -0
  1412. package/dist/ui-library/p-618bf750.entry.js.map +1 -0
  1413. package/dist/ui-library/p-62a1f514.entry.js +2 -0
  1414. package/dist/ui-library/p-62a1f514.entry.js.map +1 -0
  1415. package/dist/ui-library/p-651293e7.js +2 -0
  1416. package/dist/ui-library/p-651293e7.js.map +1 -0
  1417. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1418. package/dist/ui-library/p-6513b8ce.entry.js.map +1 -0
  1419. package/dist/ui-library/p-6795e0a9.entry.js +2 -0
  1420. package/dist/ui-library/p-6795e0a9.entry.js.map +1 -0
  1421. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1422. package/dist/ui-library/p-6ec126f7.entry.js.map +1 -0
  1423. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1424. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1425. package/dist/ui-library/p-70fac778.entry.js +2 -0
  1426. package/dist/ui-library/p-70fac778.entry.js.map +1 -0
  1427. package/dist/ui-library/p-7afdff5c.entry.js +2 -0
  1428. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1429. package/dist/ui-library/p-7eb9ae75.entry.js +2 -0
  1430. package/dist/ui-library/p-7eb9ae75.entry.js.map +1 -0
  1431. package/dist/ui-library/{p-bf4a35ec.js → p-7f856f00.js} +1 -1
  1432. package/dist/ui-library/p-7f856f00.js.map +1 -0
  1433. package/dist/ui-library/{p-eb8f05a9.js → p-8227aaed.js} +2 -2
  1434. package/dist/ui-library/p-8227aaed.js.map +1 -0
  1435. package/dist/ui-library/p-842b492e.js +2 -0
  1436. package/dist/ui-library/p-842b492e.js.map +1 -0
  1437. package/dist/ui-library/{p-25a3bf57.js → p-862d474e.js} +1 -1
  1438. package/dist/ui-library/p-862d474e.js.map +1 -0
  1439. package/dist/ui-library/p-870139dc.entry.js +2 -0
  1440. package/dist/ui-library/p-870139dc.entry.js.map +1 -0
  1441. package/dist/ui-library/p-8bfb4bfc.js +2 -0
  1442. package/dist/ui-library/p-8bfb4bfc.js.map +1 -0
  1443. package/dist/ui-library/p-a04460e3.js +2 -0
  1444. package/dist/ui-library/p-a04460e3.js.map +1 -0
  1445. package/dist/ui-library/{p-8cf72af6.js → p-a1502802.js} +1 -1
  1446. package/dist/ui-library/p-a1502802.js.map +1 -0
  1447. package/dist/ui-library/p-a20a702a.entry.js +2 -0
  1448. package/dist/ui-library/p-a20a702a.entry.js.map +1 -0
  1449. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1450. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1451. package/dist/ui-library/p-afb15ea4.entry.js +2 -0
  1452. package/dist/ui-library/p-afb15ea4.entry.js.map +1 -0
  1453. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1454. package/dist/ui-library/p-b361d5da.entry.js.map +1 -0
  1455. package/dist/ui-library/p-bfb398c6.entry.js +2 -0
  1456. package/dist/ui-library/p-bfb398c6.entry.js.map +1 -0
  1457. package/dist/ui-library/p-cd65e3b2.entry.js +2 -0
  1458. package/dist/ui-library/p-cd65e3b2.entry.js.map +1 -0
  1459. package/dist/ui-library/p-cd79700c.entry.js +2 -0
  1460. package/dist/ui-library/p-cd79700c.entry.js.map +1 -0
  1461. package/dist/ui-library/p-cdc9224d.entry.js +2 -0
  1462. package/dist/ui-library/p-cdc9224d.entry.js.map +1 -0
  1463. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1464. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1465. package/dist/ui-library/{p-5084ca7c.entry.js → p-d46acf21.entry.js} +2 -2
  1466. package/dist/ui-library/p-d46acf21.entry.js.map +1 -0
  1467. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1468. package/dist/ui-library/p-d67b8482.entry.js.map +1 -0
  1469. package/dist/ui-library/p-db193a32.entry.js +2 -0
  1470. package/dist/ui-library/p-db193a32.entry.js.map +1 -0
  1471. package/dist/ui-library/p-e080d5b6.js +2 -0
  1472. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  1473. package/dist/ui-library/p-e1255160.js +2 -0
  1474. package/dist/ui-library/p-e1255160.js.map +1 -0
  1475. package/dist/ui-library/p-e1529ef6.entry.js +2 -0
  1476. package/dist/ui-library/p-e1529ef6.entry.js.map +1 -0
  1477. package/dist/ui-library/p-e181944f.entry.js +2 -0
  1478. package/dist/ui-library/p-e181944f.entry.js.map +1 -0
  1479. package/dist/ui-library/p-e6efc08a.entry.js +2 -0
  1480. package/dist/ui-library/p-e6efc08a.entry.js.map +1 -0
  1481. package/dist/ui-library/p-e9462085.entry.js +2 -0
  1482. package/dist/ui-library/p-e9462085.entry.js.map +1 -0
  1483. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1484. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1485. package/dist/ui-library/p-f12b22bc.entry.js +2 -0
  1486. package/dist/ui-library/p-f12b22bc.entry.js.map +1 -0
  1487. package/dist/ui-library/p-f136a6b2.js +2 -0
  1488. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  1489. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1490. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1491. package/dist/ui-library/p-ffce31da.entry.js +2 -0
  1492. package/dist/ui-library/p-ffce31da.entry.js.map +1 -0
  1493. package/dist/ui-library/ui-library.css +1 -10
  1494. package/dist/ui-library/ui-library.esm.js +1 -1
  1495. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1496. package/loader/cdn.js +1 -3
  1497. package/loader/index.cjs.js +1 -3
  1498. package/loader/index.d.ts +4 -1
  1499. package/loader/index.es2017.js +1 -3
  1500. package/loader/index.js +1 -3
  1501. package/package.json +19 -32
  1502. package/dist/cjs/event-listeners-dd94dcfb.js +0 -45
  1503. package/dist/cjs/event-listeners-dd94dcfb.js.map +0 -1
  1504. package/dist/cjs/execution-control-45c84c46.js.map +0 -1
  1505. package/dist/cjs/focus-visible-e0d93a95.js +0 -47
  1506. package/dist/cjs/focus-visible-e0d93a95.js.map +0 -1
  1507. package/dist/cjs/form-control-7494488a.js +0 -35
  1508. package/dist/cjs/form-control-7494488a.js.map +0 -1
  1509. package/dist/cjs/index-ccf35821.js +0 -2126
  1510. package/dist/cjs/index-ccf35821.js.map +0 -1
  1511. package/dist/cjs/modal-21350fb5.js +0 -52
  1512. package/dist/cjs/modal-21350fb5.js.map +0 -1
  1513. package/dist/cjs/popover-b5e2d5ef.js.map +0 -1
  1514. package/dist/cjs/popup-44836aaf.js +0 -103
  1515. package/dist/cjs/popup-44836aaf.js.map +0 -1
  1516. package/dist/cjs/scroll-76e6f5d7.js +0 -69
  1517. package/dist/cjs/scroll-76e6f5d7.js.map +0 -1
  1518. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  1519. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  1520. package/dist/cjs/six-dropdown_2.cjs.entry.js +0 -671
  1521. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1522. package/dist/cjs/six-form.cjs.entry.js +0 -236
  1523. package/dist/cjs/six-form.cjs.entry.js.map +0 -1
  1524. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  1525. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  1526. package/dist/cjs/slot-bccbdb59.js +0 -53
  1527. package/dist/cjs/slot-bccbdb59.js.map +0 -1
  1528. package/dist/cjs/types-64878648.js +0 -17
  1529. package/dist/cjs/types-64878648.js.map +0 -1
  1530. package/dist/collection/components/six-form/six-form.css +0 -11
  1531. package/dist/collection/components/six-form/six-form.js +0 -427
  1532. package/dist/collection/components/six-form/six-form.js.map +0 -1
  1533. package/dist/collection/components/six-header/assets/six-logo.svg +0 -1
  1534. package/dist/collection/files/file-list.json +0 -308
  1535. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1536. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1537. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1538. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1539. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1540. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1541. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1542. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1543. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1544. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1545. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1546. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1547. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1548. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1549. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1550. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1551. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1552. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1553. package/dist/collection/utils/support.js +0 -16
  1554. package/dist/collection/utils/support.js.map +0 -1
  1555. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  1556. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  1557. package/dist/components/set-attributes.js +0 -8
  1558. package/dist/components/set-attributes.js.map +0 -1
  1559. package/dist/components/set-attributes2.js +0 -71
  1560. package/dist/components/set-attributes2.js.map +0 -1
  1561. package/dist/components/six-form.js +0 -257
  1562. package/dist/components/six-form.js.map +0 -1
  1563. package/dist/components/six-tag2.js +0 -74
  1564. package/dist/components/six-tag2.js.map +0 -1
  1565. package/dist/esm/event-listeners-6b434035.js +0 -43
  1566. package/dist/esm/event-listeners-6b434035.js.map +0 -1
  1567. package/dist/esm/execution-control-72cc50f4.js.map +0 -1
  1568. package/dist/esm/focus-visible-fa7129a0.js +0 -45
  1569. package/dist/esm/focus-visible-fa7129a0.js.map +0 -1
  1570. package/dist/esm/form-control-44a50dd6.js +0 -33
  1571. package/dist/esm/form-control-44a50dd6.js.map +0 -1
  1572. package/dist/esm/index-371fb9d4.js +0 -2096
  1573. package/dist/esm/index-371fb9d4.js.map +0 -1
  1574. package/dist/esm/modal-b1d96441.js +0 -49
  1575. package/dist/esm/modal-b1d96441.js.map +0 -1
  1576. package/dist/esm/polyfills/core-js.js +0 -11
  1577. package/dist/esm/polyfills/css-shim.js +0 -1
  1578. package/dist/esm/polyfills/dom.js +0 -79
  1579. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1580. package/dist/esm/polyfills/index.js +0 -34
  1581. package/dist/esm/polyfills/system.js +0 -6
  1582. package/dist/esm/popover-1aacbae8.js.map +0 -1
  1583. package/dist/esm/popup-678b8592.js +0 -98
  1584. package/dist/esm/popup-678b8592.js.map +0 -1
  1585. package/dist/esm/scroll-180b53fd.js +0 -64
  1586. package/dist/esm/set-attributes_2.entry.js +0 -68
  1587. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  1588. package/dist/esm/six-dropdown_2.entry.js +0 -666
  1589. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1590. package/dist/esm/six-form.entry.js +0 -232
  1591. package/dist/esm/six-form.entry.js.map +0 -1
  1592. package/dist/esm/six-menu-item.entry.js +0 -59
  1593. package/dist/esm/six-menu-item.entry.js.map +0 -1
  1594. package/dist/esm/slot-2e64df19.js +0 -48
  1595. package/dist/esm/slot-2e64df19.js.map +0 -1
  1596. package/dist/esm/types-4b10b413.js +0 -17
  1597. package/dist/esm/types-4b10b413.js.map +0 -1
  1598. package/dist/types/components/six-form/six-form.d.ts +0 -60
  1599. package/dist/types/utils/support.d.ts +0 -1
  1600. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  1601. package/dist/ui-library/assets/six-logo.svg +0 -1
  1602. package/dist/ui-library/files/file-list.json +0 -308
  1603. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1604. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1605. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1606. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1607. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1608. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1609. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1610. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1611. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1612. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1613. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1614. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1615. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1616. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1617. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1618. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1619. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1620. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1621. package/dist/ui-library/p-02d5a6d8.js +0 -2
  1622. package/dist/ui-library/p-02d5a6d8.js.map +0 -1
  1623. package/dist/ui-library/p-053d6de8.entry.js +0 -2
  1624. package/dist/ui-library/p-053d6de8.entry.js.map +0 -1
  1625. package/dist/ui-library/p-0cc08e91.js.map +0 -1
  1626. package/dist/ui-library/p-0eee4c41.entry.js +0 -2
  1627. package/dist/ui-library/p-0eee4c41.entry.js.map +0 -1
  1628. package/dist/ui-library/p-0fe78f9b.js +0 -2
  1629. package/dist/ui-library/p-0fe78f9b.js.map +0 -1
  1630. package/dist/ui-library/p-187fbba0.js +0 -3
  1631. package/dist/ui-library/p-187fbba0.js.map +0 -1
  1632. package/dist/ui-library/p-25a3bf57.js.map +0 -1
  1633. package/dist/ui-library/p-25b42655.entry.js +0 -2
  1634. package/dist/ui-library/p-25b42655.entry.js.map +0 -1
  1635. package/dist/ui-library/p-271ba152.entry.js +0 -2
  1636. package/dist/ui-library/p-271ba152.entry.js.map +0 -1
  1637. package/dist/ui-library/p-27c4ee88.entry.js +0 -2
  1638. package/dist/ui-library/p-27c4ee88.entry.js.map +0 -1
  1639. package/dist/ui-library/p-2a36b7d0.entry.js +0 -2
  1640. package/dist/ui-library/p-2a36b7d0.entry.js.map +0 -1
  1641. package/dist/ui-library/p-2a8ad91b.entry.js +0 -2
  1642. package/dist/ui-library/p-2a8ad91b.entry.js.map +0 -1
  1643. package/dist/ui-library/p-30e0cdce.entry.js +0 -2
  1644. package/dist/ui-library/p-30e0cdce.entry.js.map +0 -1
  1645. package/dist/ui-library/p-3a47c8ad.entry.js +0 -2
  1646. package/dist/ui-library/p-3a47c8ad.entry.js.map +0 -1
  1647. package/dist/ui-library/p-3a4815cb.entry.js +0 -2
  1648. package/dist/ui-library/p-3a4815cb.entry.js.map +0 -1
  1649. package/dist/ui-library/p-3b71cac4.entry.js +0 -2
  1650. package/dist/ui-library/p-3b71cac4.entry.js.map +0 -1
  1651. package/dist/ui-library/p-3d4a2e03.entry.js +0 -2
  1652. package/dist/ui-library/p-3d4a2e03.entry.js.map +0 -1
  1653. package/dist/ui-library/p-3e4b9341.entry.js +0 -2
  1654. package/dist/ui-library/p-3e4b9341.entry.js.map +0 -1
  1655. package/dist/ui-library/p-41f0b6ff.entry.js +0 -2
  1656. package/dist/ui-library/p-41f0b6ff.entry.js.map +0 -1
  1657. package/dist/ui-library/p-435242a8.entry.js +0 -2
  1658. package/dist/ui-library/p-435242a8.entry.js.map +0 -1
  1659. package/dist/ui-library/p-5084ca7c.entry.js.map +0 -1
  1660. package/dist/ui-library/p-5b3e6eb7.entry.js +0 -2
  1661. package/dist/ui-library/p-5b3e6eb7.entry.js.map +0 -1
  1662. package/dist/ui-library/p-5c1dd25a.entry.js +0 -2
  1663. package/dist/ui-library/p-5c1dd25a.entry.js.map +0 -1
  1664. package/dist/ui-library/p-5c60227f.entry.js +0 -2
  1665. package/dist/ui-library/p-5c60227f.entry.js.map +0 -1
  1666. package/dist/ui-library/p-5dc40a6a.entry.js +0 -2
  1667. package/dist/ui-library/p-5dc40a6a.entry.js.map +0 -1
  1668. package/dist/ui-library/p-649017db.entry.js +0 -2
  1669. package/dist/ui-library/p-649017db.entry.js.map +0 -1
  1670. package/dist/ui-library/p-713684c7.entry.js +0 -2
  1671. package/dist/ui-library/p-713684c7.entry.js.map +0 -1
  1672. package/dist/ui-library/p-73325eec.entry.js +0 -2
  1673. package/dist/ui-library/p-73325eec.entry.js.map +0 -1
  1674. package/dist/ui-library/p-7639c68e.entry.js +0 -2
  1675. package/dist/ui-library/p-7639c68e.entry.js.map +0 -1
  1676. package/dist/ui-library/p-764f56dd.entry.js +0 -2
  1677. package/dist/ui-library/p-764f56dd.entry.js.map +0 -1
  1678. package/dist/ui-library/p-886a35ee.entry.js +0 -2
  1679. package/dist/ui-library/p-886a35ee.entry.js.map +0 -1
  1680. package/dist/ui-library/p-8cf72af6.js.map +0 -1
  1681. package/dist/ui-library/p-8d6f4311.entry.js +0 -2
  1682. package/dist/ui-library/p-8d6f4311.entry.js.map +0 -1
  1683. package/dist/ui-library/p-90c2dc30.entry.js +0 -2
  1684. package/dist/ui-library/p-90c2dc30.entry.js.map +0 -1
  1685. package/dist/ui-library/p-965fa6a6.entry.js +0 -2
  1686. package/dist/ui-library/p-965fa6a6.entry.js.map +0 -1
  1687. package/dist/ui-library/p-98234e3f.entry.js +0 -2
  1688. package/dist/ui-library/p-98234e3f.entry.js.map +0 -1
  1689. package/dist/ui-library/p-9b9c3afc.entry.js +0 -2
  1690. package/dist/ui-library/p-9b9c3afc.entry.js.map +0 -1
  1691. package/dist/ui-library/p-9c34eab7.entry.js +0 -2
  1692. package/dist/ui-library/p-9c34eab7.entry.js.map +0 -1
  1693. package/dist/ui-library/p-9e0c386f.entry.js +0 -2
  1694. package/dist/ui-library/p-9e0c386f.entry.js.map +0 -1
  1695. package/dist/ui-library/p-9f8b6144.entry.js +0 -2
  1696. package/dist/ui-library/p-9f8b6144.entry.js.map +0 -1
  1697. package/dist/ui-library/p-a3cc0521.entry.js +0 -2
  1698. package/dist/ui-library/p-a3cc0521.entry.js.map +0 -1
  1699. package/dist/ui-library/p-a5143b8d.entry.js +0 -2
  1700. package/dist/ui-library/p-a5143b8d.entry.js.map +0 -1
  1701. package/dist/ui-library/p-aa6f71e1.entry.js +0 -2
  1702. package/dist/ui-library/p-aa6f71e1.entry.js.map +0 -1
  1703. package/dist/ui-library/p-abb98245.entry.js +0 -2
  1704. package/dist/ui-library/p-abb98245.entry.js.map +0 -1
  1705. package/dist/ui-library/p-b183e44f.js +0 -2
  1706. package/dist/ui-library/p-b183e44f.js.map +0 -1
  1707. package/dist/ui-library/p-b27f496f.entry.js +0 -2
  1708. package/dist/ui-library/p-b27f496f.entry.js.map +0 -1
  1709. package/dist/ui-library/p-ba74863a.js +0 -2
  1710. package/dist/ui-library/p-ba74863a.js.map +0 -1
  1711. package/dist/ui-library/p-bf4a35ec.js.map +0 -1
  1712. package/dist/ui-library/p-c07adc21.entry.js +0 -2
  1713. package/dist/ui-library/p-c07adc21.entry.js.map +0 -1
  1714. package/dist/ui-library/p-c700e3eb.entry.js +0 -2
  1715. package/dist/ui-library/p-c700e3eb.entry.js.map +0 -1
  1716. package/dist/ui-library/p-cab99e54.entry.js +0 -2
  1717. package/dist/ui-library/p-cab99e54.entry.js.map +0 -1
  1718. package/dist/ui-library/p-cf1133a0.entry.js +0 -2
  1719. package/dist/ui-library/p-cf1133a0.entry.js.map +0 -1
  1720. package/dist/ui-library/p-cf1d36c0.entry.js +0 -2
  1721. package/dist/ui-library/p-cf1d36c0.entry.js.map +0 -1
  1722. package/dist/ui-library/p-d87a6f4d.js +0 -2
  1723. package/dist/ui-library/p-d87a6f4d.js.map +0 -1
  1724. package/dist/ui-library/p-d8c97778.entry.js +0 -2
  1725. package/dist/ui-library/p-d8c97778.entry.js.map +0 -1
  1726. package/dist/ui-library/p-deb01174.entry.js +0 -2
  1727. package/dist/ui-library/p-deb01174.entry.js.map +0 -1
  1728. package/dist/ui-library/p-e5ba13d2.entry.js +0 -2
  1729. package/dist/ui-library/p-e5ba13d2.entry.js.map +0 -1
  1730. package/dist/ui-library/p-eb8f05a9.js.map +0 -1
  1731. package/dist/ui-library/p-f29ba9cb.entry.js +0 -2
  1732. package/dist/ui-library/p-f29ba9cb.entry.js.map +0 -1
  1733. package/dist/ui-library/p-f66eb76c.entry.js +0 -2
  1734. package/dist/ui-library/p-f66eb76c.entry.js.map +0 -1
  1735. package/dist/ui-library/p-f974a184.entry.js +0 -2
  1736. package/dist/ui-library/p-f974a184.entry.js.map +0 -1
  1737. package/dist/ui-library/p-fb8d0734.entry.js +0 -2
  1738. package/dist/ui-library/p-fb8d0734.entry.js.map +0 -1
  1739. package/readme.md +0 -156
@@ -1,2096 +0,0 @@
1
- const NAMESPACE = 'ui-library';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let scopeId;
12
- let contentRef;
13
- let hostTagName;
14
- let useNativeShadowDom = false;
15
- let checkSlotFallbackVisibility = false;
16
- let checkSlotRelocate = false;
17
- let isSvgMode = false;
18
- let queuePending = false;
19
- const createTime = (fnName, tagName = '') => {
20
- {
21
- return () => {
22
- return;
23
- };
24
- }
25
- };
26
- const uniqueTime = (key, measureText) => {
27
- {
28
- return () => {
29
- return;
30
- };
31
- }
32
- };
33
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
34
- /**
35
- * Default style mode id
36
- */
37
- /**
38
- * Reusable empty obj/array
39
- * Don't add values to these!!
40
- */
41
- const EMPTY_OBJ = {};
42
- /**
43
- * Namespaces
44
- */
45
- const SVG_NS = 'http://www.w3.org/2000/svg';
46
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
47
- const isDef = (v) => v != null;
48
- /**
49
- * Check whether a value is a 'complex type', defined here as an object or a
50
- * function.
51
- *
52
- * @param o the value to check
53
- * @returns whether it's a complex type or not
54
- */
55
- const isComplexType = (o) => {
56
- // https://jsperf.com/typeof-fn-object/5
57
- o = typeof o;
58
- return o === 'object' || o === 'function';
59
- };
60
- /**
61
- * Helper method for querying a `meta` tag that contains a nonce value
62
- * out of a DOM's head.
63
- *
64
- * @param doc The DOM containing the `head` to query against
65
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
66
- * exists or the tag has no content.
67
- */
68
- function queryNonceMetaTagContent(doc) {
69
- var _a, _b, _c;
70
- 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;
71
- }
72
- /**
73
- * Production h() function based on Preact by
74
- * Jason Miller (@developit)
75
- * Licensed under the MIT License
76
- * https://github.com/developit/preact/blob/master/LICENSE
77
- *
78
- * Modified for Stencil's compiler and vdom
79
- */
80
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
81
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
82
- const h = (nodeName, vnodeData, ...children) => {
83
- let child = null;
84
- let key = null;
85
- let slotName = null;
86
- let simple = false;
87
- let lastSimple = false;
88
- const vNodeChildren = [];
89
- const walk = (c) => {
90
- for (let i = 0; i < c.length; i++) {
91
- child = c[i];
92
- if (Array.isArray(child)) {
93
- walk(child);
94
- }
95
- else if (child != null && typeof child !== 'boolean') {
96
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
97
- child = String(child);
98
- }
99
- if (simple && lastSimple) {
100
- // If the previous child was simple (string), we merge both
101
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
102
- }
103
- else {
104
- // Append a new vNode, if it's text, we create a text vNode
105
- vNodeChildren.push(simple ? newVNode(null, child) : child);
106
- }
107
- lastSimple = simple;
108
- }
109
- }
110
- };
111
- walk(children);
112
- if (vnodeData) {
113
- // normalize class / classname attributes
114
- if (vnodeData.key) {
115
- key = vnodeData.key;
116
- }
117
- if (vnodeData.name) {
118
- slotName = vnodeData.name;
119
- }
120
- {
121
- const classData = vnodeData.className || vnodeData.class;
122
- if (classData) {
123
- vnodeData.class =
124
- typeof classData !== 'object'
125
- ? classData
126
- : Object.keys(classData)
127
- .filter((k) => classData[k])
128
- .join(' ');
129
- }
130
- }
131
- }
132
- if (typeof nodeName === 'function') {
133
- // nodeName is a functional component
134
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
135
- }
136
- const vnode = newVNode(nodeName, null);
137
- vnode.$attrs$ = vnodeData;
138
- if (vNodeChildren.length > 0) {
139
- vnode.$children$ = vNodeChildren;
140
- }
141
- {
142
- vnode.$key$ = key;
143
- }
144
- {
145
- vnode.$name$ = slotName;
146
- }
147
- return vnode;
148
- };
149
- /**
150
- * A utility function for creating a virtual DOM node from a tag and some
151
- * possible text content.
152
- *
153
- * @param tag the tag for this element
154
- * @param text possible text content for the node
155
- * @returns a newly-minted virtual DOM node
156
- */
157
- const newVNode = (tag, text) => {
158
- const vnode = {
159
- $flags$: 0,
160
- $tag$: tag,
161
- $text$: text,
162
- $elm$: null,
163
- $children$: null,
164
- };
165
- {
166
- vnode.$attrs$ = null;
167
- }
168
- {
169
- vnode.$key$ = null;
170
- }
171
- {
172
- vnode.$name$ = null;
173
- }
174
- return vnode;
175
- };
176
- const Host = {};
177
- /**
178
- * Check whether a given node is a Host node or not
179
- *
180
- * @param node the virtual DOM node to check
181
- * @returns whether it's a Host node or not
182
- */
183
- const isHost = (node) => node && node.$tag$ === Host;
184
- /**
185
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
186
- *
187
- * Note that these functions convert from {@link d.VNode} to
188
- * {@link d.ChildNode} to give functional component developers a friendly
189
- * interface.
190
- */
191
- const vdomFnUtils = {
192
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
193
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
194
- };
195
- /**
196
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
197
- * friendlier public interface (hence, 'convertToPublic').
198
- *
199
- * @param node the virtual DOM node to convert
200
- * @returns a converted child node
201
- */
202
- const convertToPublic = (node) => ({
203
- vattrs: node.$attrs$,
204
- vchildren: node.$children$,
205
- vkey: node.$key$,
206
- vname: node.$name$,
207
- vtag: node.$tag$,
208
- vtext: node.$text$,
209
- });
210
- /**
211
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
212
- * order to use the resulting object in the virtual DOM. The initial object was
213
- * likely created as part of presenting a public API, so converting it back
214
- * involved making it 'private' again (hence, `convertToPrivate`).
215
- *
216
- * @param node the child node to convert
217
- * @returns a converted virtual DOM node
218
- */
219
- const convertToPrivate = (node) => {
220
- if (typeof node.vtag === 'function') {
221
- const vnodeData = Object.assign({}, node.vattrs);
222
- if (node.vkey) {
223
- vnodeData.key = node.vkey;
224
- }
225
- if (node.vname) {
226
- vnodeData.name = node.vname;
227
- }
228
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
229
- }
230
- const vnode = newVNode(node.vtag, node.vtext);
231
- vnode.$attrs$ = node.vattrs;
232
- vnode.$children$ = node.vchildren;
233
- vnode.$key$ = node.vkey;
234
- vnode.$name$ = node.vname;
235
- return vnode;
236
- };
237
- /**
238
- * Parse a new property value for a given property type.
239
- *
240
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
241
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
242
- * 1. `any`, the type given to `propValue` in the function signature
243
- * 2. the type stored from `propType`.
244
- *
245
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
246
- *
247
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
248
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
249
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
250
- * ```tsx
251
- * <my-cmp prop-val={0}></my-cmp>
252
- * ```
253
- *
254
- * HTML prop values on the other hand, will always a string
255
- *
256
- * @param propValue the new value to coerce to some type
257
- * @param propType the type of the prop, expressed as a binary number
258
- * @returns the parsed/coerced value
259
- */
260
- const parsePropertyValue = (propValue, propType) => {
261
- // ensure this value is of the correct prop type
262
- if (propValue != null && !isComplexType(propValue)) {
263
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
264
- // per the HTML spec, any string value means it is a boolean true value
265
- // but we'll cheat here and say that the string "false" is the boolean false
266
- return propValue === 'false' ? false : propValue === '' || !!propValue;
267
- }
268
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
269
- // force it to be a number
270
- return parseFloat(propValue);
271
- }
272
- if (propType & 1 /* MEMBER_FLAGS.String */) {
273
- // could have been passed as a number or boolean
274
- // but we still want it as a string
275
- return String(propValue);
276
- }
277
- // redundant return here for better minification
278
- return propValue;
279
- }
280
- // not sure exactly what type we want
281
- // so no need to change to a different type
282
- return propValue;
283
- };
284
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
285
- const createEvent = (ref, name, flags) => {
286
- const elm = getElement(ref);
287
- return {
288
- emit: (detail) => {
289
- return emitEvent(elm, name, {
290
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
291
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
292
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
293
- detail,
294
- });
295
- },
296
- };
297
- };
298
- /**
299
- * Helper function to create & dispatch a custom Event on a provided target
300
- * @param elm the target of the Event
301
- * @param name the name to give the custom Event
302
- * @param opts options for configuring a custom Event
303
- * @returns the custom Event
304
- */
305
- const emitEvent = (elm, name, opts) => {
306
- const ev = plt.ce(name, opts);
307
- elm.dispatchEvent(ev);
308
- return ev;
309
- };
310
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
311
- const registerStyle = (scopeId, cssText, allowCS) => {
312
- let style = styles.get(scopeId);
313
- if (supportsConstructableStylesheets && allowCS) {
314
- style = (style || new CSSStyleSheet());
315
- if (typeof style === 'string') {
316
- style = cssText;
317
- }
318
- else {
319
- style.replaceSync(cssText);
320
- }
321
- }
322
- else {
323
- style = cssText;
324
- }
325
- styles.set(scopeId, style);
326
- };
327
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
328
- var _a;
329
- let scopeId = getScopeId(cmpMeta);
330
- const style = styles.get(scopeId);
331
- // if an element is NOT connected then getRootNode() will return the wrong root node
332
- // so the fallback is to always use the document for the root node in those cases
333
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
334
- if (style) {
335
- if (typeof style === 'string') {
336
- styleContainerNode = styleContainerNode.head || styleContainerNode;
337
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
338
- let styleElm;
339
- if (!appliedStyles) {
340
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
341
- }
342
- if (!appliedStyles.has(scopeId)) {
343
- {
344
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
345
- {
346
- styleElm = doc.createElement('style');
347
- styleElm.innerHTML = style;
348
- }
349
- // Apply CSP nonce to the style tag if it exists
350
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
351
- if (nonce != null) {
352
- styleElm.setAttribute('nonce', nonce);
353
- }
354
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
355
- }
356
- if (appliedStyles) {
357
- appliedStyles.add(scopeId);
358
- }
359
- }
360
- }
361
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
362
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
363
- }
364
- }
365
- return scopeId;
366
- };
367
- const attachStyles = (hostRef) => {
368
- const cmpMeta = hostRef.$cmpMeta$;
369
- const elm = hostRef.$hostElement$;
370
- const flags = cmpMeta.$flags$;
371
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
372
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
373
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
374
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
375
- // only required when we're NOT using native shadow dom (slot)
376
- // or this browser doesn't support native shadow dom
377
- // and this host element was NOT created with SSR
378
- // let's pick out the inner content for slot projection
379
- // create a node to represent where the original
380
- // content was first placed, which is useful later on
381
- // DOM WRITE!!
382
- elm['s-sc'] = scopeId;
383
- elm.classList.add(scopeId + '-h');
384
- if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
385
- elm.classList.add(scopeId + '-s');
386
- }
387
- }
388
- endAttachStyles();
389
- };
390
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
391
- /**
392
- * Production setAccessor() function based on Preact by
393
- * Jason Miller (@developit)
394
- * Licensed under the MIT License
395
- * https://github.com/developit/preact/blob/master/LICENSE
396
- *
397
- * Modified for Stencil's compiler and vdom
398
- */
399
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
400
- if (oldValue !== newValue) {
401
- let isProp = isMemberInElement(elm, memberName);
402
- let ln = memberName.toLowerCase();
403
- if (memberName === 'class') {
404
- const classList = elm.classList;
405
- const oldClasses = parseClassList(oldValue);
406
- const newClasses = parseClassList(newValue);
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
- }
410
- else if (memberName === 'style') {
411
- // update style attribute, css properties and values
412
- {
413
- for (const prop in oldValue) {
414
- if (!newValue || newValue[prop] == null) {
415
- if (prop.includes('-')) {
416
- elm.style.removeProperty(prop);
417
- }
418
- else {
419
- elm.style[prop] = '';
420
- }
421
- }
422
- }
423
- }
424
- for (const prop in newValue) {
425
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
426
- if (prop.includes('-')) {
427
- elm.style.setProperty(prop, newValue[prop]);
428
- }
429
- else {
430
- elm.style[prop] = newValue[prop];
431
- }
432
- }
433
- }
434
- }
435
- else if (memberName === 'key')
436
- ;
437
- else if (memberName === 'ref') {
438
- // minifier will clean this up
439
- if (newValue) {
440
- newValue(elm);
441
- }
442
- }
443
- else if ((!isProp ) &&
444
- memberName[0] === 'o' &&
445
- memberName[1] === 'n') {
446
- // Event Handlers
447
- // so if the member name starts with "on" and the 3rd characters is
448
- // a capital letter, and it's not already a member on the element,
449
- // then we're assuming it's an event listener
450
- if (memberName[2] === '-') {
451
- // on- prefixed events
452
- // allows to be explicit about the dom event to listen without any magic
453
- // under the hood:
454
- // <my-cmp on-click> // listens for "click"
455
- // <my-cmp on-Click> // listens for "Click"
456
- // <my-cmp on-ionChange> // listens for "ionChange"
457
- // <my-cmp on-EVENTS> // listens for "EVENTS"
458
- memberName = memberName.slice(3);
459
- }
460
- else if (isMemberInElement(win, ln)) {
461
- // standard event
462
- // the JSX attribute could have been "onMouseOver" and the
463
- // member name "onmouseover" is on the window's prototype
464
- // so let's add the listener "mouseover", which is all lowercased
465
- memberName = ln.slice(2);
466
- }
467
- else {
468
- // custom event
469
- // the JSX attribute could have been "onMyCustomEvent"
470
- // so let's trim off the "on" prefix and lowercase the first character
471
- // and add the listener "myCustomEvent"
472
- // except for the first character, we keep the event name case
473
- memberName = ln[2] + memberName.slice(3);
474
- }
475
- if (oldValue) {
476
- plt.rel(elm, memberName, oldValue, false);
477
- }
478
- if (newValue) {
479
- plt.ael(elm, memberName, newValue, false);
480
- }
481
- }
482
- else {
483
- // Set property if it exists and it's not a SVG
484
- const isComplex = isComplexType(newValue);
485
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
486
- try {
487
- if (!elm.tagName.includes('-')) {
488
- const n = newValue == null ? '' : newValue;
489
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
490
- if (memberName === 'list') {
491
- isProp = false;
492
- }
493
- else if (oldValue == null || elm[memberName] != n) {
494
- elm[memberName] = n;
495
- }
496
- }
497
- else {
498
- elm[memberName] = newValue;
499
- }
500
- }
501
- catch (e) { }
502
- }
503
- if (newValue == null || newValue === false) {
504
- if (newValue !== false || elm.getAttribute(memberName) === '') {
505
- {
506
- elm.removeAttribute(memberName);
507
- }
508
- }
509
- }
510
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
511
- newValue = newValue === true ? '' : newValue;
512
- {
513
- elm.setAttribute(memberName, newValue);
514
- }
515
- }
516
- }
517
- }
518
- };
519
- const parseClassListRegex = /\s/;
520
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
521
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
522
- // if the element passed in is a shadow root, which is a document fragment
523
- // then we want to be adding attrs/props to the shadow root's "host" element
524
- // if it's not a shadow root, then we add attrs/props to the same element
525
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
526
- ? newVnode.$elm$.host
527
- : newVnode.$elm$;
528
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
529
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
530
- {
531
- // remove attributes no longer present on the vnode by setting them to undefined
532
- for (memberName in oldVnodeAttrs) {
533
- if (!(memberName in newVnodeAttrs)) {
534
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
535
- }
536
- }
537
- }
538
- // add new & update changed attributes
539
- for (memberName in newVnodeAttrs) {
540
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
541
- }
542
- };
543
- /**
544
- * Create a DOM Node corresponding to one of the children of a given VNode.
545
- *
546
- * @param oldParentVNode the parent VNode from the previous render
547
- * @param newParentVNode the parent VNode from the current render
548
- * @param childIndex the index of the VNode, in the _new_ parent node's
549
- * children, for which we will create a new DOM node
550
- * @param parentElm the parent DOM node which our new node will be a child of
551
- * @returns the newly created node
552
- */
553
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
554
- // tslint:disable-next-line: prefer-const
555
- const newVNode = newParentVNode.$children$[childIndex];
556
- let i = 0;
557
- let elm;
558
- let childNode;
559
- let oldVNode;
560
- if (!useNativeShadowDom) {
561
- // remember for later we need to check to relocate nodes
562
- checkSlotRelocate = true;
563
- if (newVNode.$tag$ === 'slot') {
564
- if (scopeId) {
565
- // scoped css needs to add its scoped id to the parent element
566
- parentElm.classList.add(scopeId + '-s');
567
- }
568
- newVNode.$flags$ |= newVNode.$children$
569
- ? // slot element has fallback content
570
- 2 /* VNODE_FLAGS.isSlotFallback */
571
- : // slot element does not have fallback content
572
- 1 /* VNODE_FLAGS.isSlotReference */;
573
- }
574
- }
575
- if (newVNode.$text$ !== null) {
576
- // create text node
577
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
578
- }
579
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
580
- // create a slot reference node
581
- elm = newVNode.$elm$ =
582
- doc.createTextNode('');
583
- }
584
- else {
585
- if (!isSvgMode) {
586
- isSvgMode = newVNode.$tag$ === 'svg';
587
- }
588
- // create element
589
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
590
- ? 'slot-fb'
591
- : newVNode.$tag$)
592
- );
593
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
594
- isSvgMode = false;
595
- }
596
- // add css classes, attrs, props, listeners, etc.
597
- {
598
- updateElement(null, newVNode, isSvgMode);
599
- }
600
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
601
- // if there is a scopeId and this is the initial render
602
- // then let's add the scopeId as a css class
603
- elm.classList.add((elm['s-si'] = scopeId));
604
- }
605
- if (newVNode.$children$) {
606
- for (i = 0; i < newVNode.$children$.length; ++i) {
607
- // create the node
608
- childNode = createElm(oldParentVNode, newVNode, i, elm);
609
- // return node could have been null
610
- if (childNode) {
611
- // append our new node
612
- elm.appendChild(childNode);
613
- }
614
- }
615
- }
616
- {
617
- if (newVNode.$tag$ === 'svg') {
618
- // Only reset the SVG context when we're exiting <svg> element
619
- isSvgMode = false;
620
- }
621
- else if (elm.tagName === 'foreignObject') {
622
- // Reenter SVG context when we're exiting <foreignObject> element
623
- isSvgMode = true;
624
- }
625
- }
626
- }
627
- {
628
- elm['s-hn'] = hostTagName;
629
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
630
- // remember the content reference comment
631
- elm['s-sr'] = true;
632
- // remember the content reference comment
633
- elm['s-cr'] = contentRef;
634
- // remember the slot name, or empty string for default slot
635
- elm['s-sn'] = newVNode.$name$ || '';
636
- // check if we've got an old vnode for this slot
637
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
638
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
639
- // we've got an old slot vnode and the wrapper is being replaced
640
- // so let's move the old slot content back to it's original location
641
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
642
- }
643
- }
644
- }
645
- return elm;
646
- };
647
- const putBackInOriginalLocation = (parentElm, recursive) => {
648
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
649
- const oldSlotChildNodes = parentElm.childNodes;
650
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
651
- const childNode = oldSlotChildNodes[i];
652
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
653
- // // this child node in the old element is from another component
654
- // // remove this node from the old slot's parent
655
- // childNode.remove();
656
- // and relocate it back to it's original location
657
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
658
- // remove the old original location comment entirely
659
- // later on the patch function will know what to do
660
- // and move this to the correct spot in need be
661
- childNode['s-ol'].remove();
662
- childNode['s-ol'] = undefined;
663
- checkSlotRelocate = true;
664
- }
665
- if (recursive) {
666
- putBackInOriginalLocation(childNode, recursive);
667
- }
668
- }
669
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
670
- };
671
- /**
672
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
673
- * add them to the DOM in the appropriate place.
674
- *
675
- * @param parentElm the DOM node which should be used as a parent for the new
676
- * DOM nodes
677
- * @param before a child of the `parentElm` which the new children should be
678
- * inserted before (optional)
679
- * @param parentVNode the parent virtual DOM node
680
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
681
- * @param startIdx the index in the child virtual DOM nodes at which to start
682
- * creating DOM nodes (inclusive)
683
- * @param endIdx the index in the child virtual DOM nodes at which to stop
684
- * creating DOM nodes (inclusive)
685
- */
686
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
687
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
688
- let childNode;
689
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
690
- containerElm = containerElm.shadowRoot;
691
- }
692
- for (; startIdx <= endIdx; ++startIdx) {
693
- if (vnodes[startIdx]) {
694
- childNode = createElm(null, parentVNode, startIdx, parentElm);
695
- if (childNode) {
696
- vnodes[startIdx].$elm$ = childNode;
697
- containerElm.insertBefore(childNode, referenceNode(before) );
698
- }
699
- }
700
- }
701
- };
702
- /**
703
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
704
- * This can be used to, for instance, clean up after a list of children which
705
- * should no longer be shown.
706
- *
707
- * This function also handles some of Stencil's slot relocation logic.
708
- *
709
- * @param vnodes a list of virtual DOM nodes to remove
710
- * @param startIdx the index at which to start removing nodes (inclusive)
711
- * @param endIdx the index at which to stop removing nodes (inclusive)
712
- * @param vnode a VNode
713
- * @param elm an element
714
- */
715
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
716
- for (; startIdx <= endIdx; ++startIdx) {
717
- if ((vnode = vnodes[startIdx])) {
718
- elm = vnode.$elm$;
719
- callNodeRefs(vnode);
720
- {
721
- // we're removing this element
722
- // so it's possible we need to show slot fallback content now
723
- checkSlotFallbackVisibility = true;
724
- if (elm['s-ol']) {
725
- // remove the original location comment
726
- elm['s-ol'].remove();
727
- }
728
- else {
729
- // it's possible that child nodes of the node
730
- // that's being removed are slot nodes
731
- putBackInOriginalLocation(elm, true);
732
- }
733
- }
734
- // remove the vnode's element from the dom
735
- elm.remove();
736
- }
737
- }
738
- };
739
- /**
740
- * Reconcile the children of a new VNode with the children of an old VNode by
741
- * traversing the two collections of children, identifying nodes that are
742
- * conserved or changed, calling out to `patch` to make any necessary
743
- * updates to the DOM, and rearranging DOM nodes as needed.
744
- *
745
- * The algorithm for reconciling children works by analyzing two 'windows' onto
746
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
747
- * 'windows' by storing start and end indices and references to the
748
- * corresponding array entries. Initially the two 'windows' are basically equal
749
- * to the entire array, but we progressively narrow the windows until there are
750
- * no children left to update by doing the following:
751
- *
752
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
753
- * that if we have an initial array like the following we'll end up dealing
754
- * only with a window bounded by the highlighted elements:
755
- *
756
- * [null, null, VNode1 , ... , VNode2, null, null]
757
- * ^^^^^^ ^^^^^^
758
- *
759
- * 2. Check to see if the elements at the head and tail positions are equal
760
- * across the windows. This will basically detect elements which haven't
761
- * been added, removed, or changed position, i.e. if you had the following
762
- * VNode elements (represented as HTML):
763
- *
764
- * oldVNode: `<div><p><span>HEY</span></p></div>`
765
- * newVNode: `<div><p><span>THERE</span></p></div>`
766
- *
767
- * Then when comparing the children of the `<div>` tag we check the equality
768
- * of the VNodes corresponding to the `<p>` tags and, since they are the
769
- * same tag in the same position, we'd be able to avoid completely
770
- * re-rendering the subtree under them with a new DOM element and would just
771
- * call out to `patch` to handle reconciling their children and so on.
772
- *
773
- * 3. Check, for both windows, to see if the element at the beginning of the
774
- * window corresponds to the element at the end of the other window. This is
775
- * a heuristic which will let us identify _some_ situations in which
776
- * elements have changed position, for instance it _should_ detect that the
777
- * children nodes themselves have not changed but merely moved in the
778
- * following example:
779
- *
780
- * oldVNode: `<div><element-one /><element-two /></div>`
781
- * newVNode: `<div><element-two /><element-one /></div>`
782
- *
783
- * If we find cases like this then we also need to move the concrete DOM
784
- * elements corresponding to the moved children to write the re-order to the
785
- * DOM.
786
- *
787
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
788
- * nodes in the old children which have the same key as the first element in
789
- * our window on the new children. If we find such a node we handle calling
790
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
791
- * what we find.
792
- *
793
- * Finally, once we've narrowed our 'windows' to the point that either of them
794
- * collapse (i.e. they have length 0) we then handle any remaining VNode
795
- * insertion or deletion that needs to happen to get a DOM state that correctly
796
- * reflects the new child VNodes. If, for instance, after our window on the old
797
- * children has collapsed we still have more nodes on the new children that
798
- * we haven't dealt with yet then we need to add them, or if the new children
799
- * collapse but we still have unhandled _old_ children then we need to make
800
- * sure the corresponding DOM nodes are removed.
801
- *
802
- * @param parentElm the node into which the parent VNode is rendered
803
- * @param oldCh the old children of the parent node
804
- * @param newVNode the new VNode which will replace the parent
805
- * @param newCh the new children of the parent node
806
- */
807
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
808
- let oldStartIdx = 0;
809
- let newStartIdx = 0;
810
- let idxInOld = 0;
811
- let i = 0;
812
- let oldEndIdx = oldCh.length - 1;
813
- let oldStartVnode = oldCh[0];
814
- let oldEndVnode = oldCh[oldEndIdx];
815
- let newEndIdx = newCh.length - 1;
816
- let newStartVnode = newCh[0];
817
- let newEndVnode = newCh[newEndIdx];
818
- let node;
819
- let elmToMove;
820
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
821
- if (oldStartVnode == null) {
822
- // VNode might have been moved left
823
- oldStartVnode = oldCh[++oldStartIdx];
824
- }
825
- else if (oldEndVnode == null) {
826
- oldEndVnode = oldCh[--oldEndIdx];
827
- }
828
- else if (newStartVnode == null) {
829
- newStartVnode = newCh[++newStartIdx];
830
- }
831
- else if (newEndVnode == null) {
832
- newEndVnode = newCh[--newEndIdx];
833
- }
834
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
835
- // if the start nodes are the same then we should patch the new VNode
836
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
837
- // indices to reflect that. We don't need to move any DOM Nodes around
838
- // since things are matched up in order.
839
- patch(oldStartVnode, newStartVnode);
840
- oldStartVnode = oldCh[++oldStartIdx];
841
- newStartVnode = newCh[++newStartIdx];
842
- }
843
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
844
- // likewise, if the end nodes are the same we patch new onto old and
845
- // decrement our end indices, and also likewise in this case we don't
846
- // need to move any DOM Nodes.
847
- patch(oldEndVnode, newEndVnode);
848
- oldEndVnode = oldCh[--oldEndIdx];
849
- newEndVnode = newCh[--newEndIdx];
850
- }
851
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
852
- // case: "Vnode moved right"
853
- //
854
- // We've found that the last node in our window on the new children is
855
- // the same VNode as the _first_ node in our window on the old children
856
- // we're dealing with now. Visually, this is the layout of these two
857
- // nodes:
858
- //
859
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
860
- // ^^^^^^^^^^^
861
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
862
- // ^^^^^^^^^^^^^
863
- //
864
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
865
- // and move the DOM element for `oldStartVnode`.
866
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
867
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
868
- }
869
- patch(oldStartVnode, newEndVnode);
870
- // We need to move the element for `oldStartVnode` into a position which
871
- // will be appropriate for `newEndVnode`. For this we can use
872
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
873
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
874
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
875
- //
876
- // <old-start-node />
877
- // <some-intervening-node />
878
- // <old-end-node />
879
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
880
- // <next-sibling />
881
- //
882
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
883
- // the node for `oldStartVnode` at the end of the children of
884
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
885
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
886
- // append it to the children of the parent element.
887
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
888
- oldStartVnode = oldCh[++oldStartIdx];
889
- newEndVnode = newCh[--newEndIdx];
890
- }
891
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
892
- // case: "Vnode moved left"
893
- //
894
- // We've found that the first node in our window on the new children is
895
- // the same VNode as the _last_ node in our window on the old children.
896
- // Visually, this is the layout of these two nodes:
897
- //
898
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
899
- // ^^^^^^^^^^^^^
900
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
901
- // ^^^^^^^^^^^
902
- //
903
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
904
- // (which will handle updating any changed attributes, reconciling their
905
- // children etc) but we also need to move the DOM node to which
906
- // `oldEndVnode` corresponds.
907
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
908
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
909
- }
910
- patch(oldEndVnode, newStartVnode);
911
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
912
- // the same node, so since we're here we know that they are not. Thus we
913
- // can move the element for `oldEndVnode` _before_ the element for
914
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
915
- // future.
916
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
917
- oldEndVnode = oldCh[--oldEndIdx];
918
- newStartVnode = newCh[++newStartIdx];
919
- }
920
- else {
921
- // Here we do some checks to match up old and new nodes based on the
922
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
923
- // in the JSX for a DOM element in the implementation of a Stencil
924
- // component.
925
- //
926
- // First we check to see if there are any nodes in the array of old
927
- // children which have the same key as the first node in the new
928
- // children.
929
- idxInOld = -1;
930
- {
931
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
932
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
933
- idxInOld = i;
934
- break;
935
- }
936
- }
937
- }
938
- if (idxInOld >= 0) {
939
- // We found a node in the old children which matches up with the first
940
- // node in the new children! So let's deal with that
941
- elmToMove = oldCh[idxInOld];
942
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
943
- // the tag doesn't match so we'll need a new DOM element
944
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
945
- }
946
- else {
947
- patch(elmToMove, newStartVnode);
948
- // invalidate the matching old node so that we won't try to update it
949
- // again later on
950
- oldCh[idxInOld] = undefined;
951
- node = elmToMove.$elm$;
952
- }
953
- newStartVnode = newCh[++newStartIdx];
954
- }
955
- else {
956
- // We either didn't find an element in the old children that matches
957
- // the key of the first new child OR the build is not using `key`
958
- // attributes at all. In either case we need to create a new element
959
- // for the new node.
960
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
961
- newStartVnode = newCh[++newStartIdx];
962
- }
963
- if (node) {
964
- // if we created a new node then handle inserting it to the DOM
965
- {
966
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
967
- }
968
- }
969
- }
970
- }
971
- if (oldStartIdx > oldEndIdx) {
972
- // we have some more new nodes to add which don't match up with old nodes
973
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
974
- }
975
- else if (newStartIdx > newEndIdx) {
976
- // there are nodes in the `oldCh` array which no longer correspond to nodes
977
- // in the new array, so lets remove them (which entails cleaning up the
978
- // relevant DOM nodes)
979
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
980
- }
981
- };
982
- /**
983
- * Compare two VNodes to determine if they are the same
984
- *
985
- * **NB**: This function is an equality _heuristic_ based on the available
986
- * information set on the two VNodes and can be misleading under certain
987
- * circumstances. In particular, if the two nodes do not have `key` attrs
988
- * (available under `$key$` on VNodes) then the function falls back on merely
989
- * checking that they have the same tag.
990
- *
991
- * So, in other words, if `key` attrs are not set on VNodes which may be
992
- * changing order within a `children` array or something along those lines then
993
- * we could obtain a false negative and then have to do needless re-rendering
994
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
995
- *
996
- * @param leftVNode the first VNode to check
997
- * @param rightVNode the second VNode to check
998
- * @returns whether they're equal or not
999
- */
1000
- const isSameVnode = (leftVNode, rightVNode) => {
1001
- // compare if two vnode to see if they're "technically" the same
1002
- // need to have the same element tag, and same key to be the same
1003
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1004
- if (leftVNode.$tag$ === 'slot') {
1005
- return leftVNode.$name$ === rightVNode.$name$;
1006
- }
1007
- // this will be set if components in the build have `key` attrs set on them
1008
- {
1009
- return leftVNode.$key$ === rightVNode.$key$;
1010
- }
1011
- }
1012
- return false;
1013
- };
1014
- const referenceNode = (node) => {
1015
- // this node was relocated to a new location in the dom
1016
- // because of some other component's slot
1017
- // but we still have an html comment in place of where
1018
- // it's original location was according to it's original vdom
1019
- return (node && node['s-ol']) || node;
1020
- };
1021
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1022
- /**
1023
- * Handle reconciling an outdated VNode with a new one which corresponds to
1024
- * it. This function handles flushing updates to the DOM and reconciling the
1025
- * children of the two nodes (if any).
1026
- *
1027
- * @param oldVNode an old VNode whose DOM element and children we want to update
1028
- * @param newVNode a new VNode representing an updated version of the old one
1029
- */
1030
- const patch = (oldVNode, newVNode) => {
1031
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1032
- const oldChildren = oldVNode.$children$;
1033
- const newChildren = newVNode.$children$;
1034
- const tag = newVNode.$tag$;
1035
- const text = newVNode.$text$;
1036
- let defaultHolder;
1037
- if (text === null) {
1038
- {
1039
- // test if we're rendering an svg element, or still rendering nodes inside of one
1040
- // only add this to the when the compiler sees we're using an svg somewhere
1041
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1042
- }
1043
- {
1044
- if (tag === 'slot')
1045
- ;
1046
- else {
1047
- // either this is the first render of an element OR it's an update
1048
- // AND we already know it's possible it could have changed
1049
- // this updates the element's css classes, attrs, props, listeners, etc.
1050
- updateElement(oldVNode, newVNode, isSvgMode);
1051
- }
1052
- }
1053
- if (oldChildren !== null && newChildren !== null) {
1054
- // looks like there's child vnodes for both the old and new vnodes
1055
- // so we need to call `updateChildren` to reconcile them
1056
- updateChildren(elm, oldChildren, newVNode, newChildren);
1057
- }
1058
- else if (newChildren !== null) {
1059
- // no old child vnodes, but there are new child vnodes to add
1060
- if (oldVNode.$text$ !== null) {
1061
- // the old vnode was text, so be sure to clear it out
1062
- elm.textContent = '';
1063
- }
1064
- // add the new vnode children
1065
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1066
- }
1067
- else if (oldChildren !== null) {
1068
- // no new child vnodes, but there are old child vnodes to remove
1069
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1070
- }
1071
- if (isSvgMode && tag === 'svg') {
1072
- isSvgMode = false;
1073
- }
1074
- }
1075
- else if ((defaultHolder = elm['s-cr'])) {
1076
- // this element has slotted content
1077
- defaultHolder.parentNode.textContent = text;
1078
- }
1079
- else if (oldVNode.$text$ !== text) {
1080
- // update the text content for the text only vnode
1081
- // and also only if the text is different than before
1082
- elm.data = text;
1083
- }
1084
- };
1085
- const updateFallbackSlotVisibility = (elm) => {
1086
- // tslint:disable-next-line: prefer-const
1087
- const childNodes = elm.childNodes;
1088
- let childNode;
1089
- let i;
1090
- let ilen;
1091
- let j;
1092
- let slotNameAttr;
1093
- let nodeType;
1094
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1095
- childNode = childNodes[i];
1096
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1097
- if (childNode['s-sr']) {
1098
- // this is a slot fallback node
1099
- // get the slot name for this slot reference node
1100
- slotNameAttr = childNode['s-sn'];
1101
- // by default always show a fallback slot node
1102
- // then hide it if there are other slots in the light dom
1103
- childNode.hidden = false;
1104
- for (j = 0; j < ilen; j++) {
1105
- nodeType = childNodes[j].nodeType;
1106
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1107
- // this sibling node is from a different component OR is a named fallback slot node
1108
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1109
- childNode.hidden = true;
1110
- break;
1111
- }
1112
- }
1113
- else {
1114
- // this is a default fallback slot node
1115
- // any element or text node (with content)
1116
- // should hide the default fallback slot node
1117
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1118
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1119
- childNode.hidden = true;
1120
- break;
1121
- }
1122
- }
1123
- }
1124
- }
1125
- // keep drilling down
1126
- updateFallbackSlotVisibility(childNode);
1127
- }
1128
- }
1129
- };
1130
- const relocateNodes = [];
1131
- const relocateSlotContent = (elm) => {
1132
- // tslint:disable-next-line: prefer-const
1133
- let childNode;
1134
- let node;
1135
- let hostContentNodes;
1136
- let slotNameAttr;
1137
- let relocateNodeData;
1138
- let j;
1139
- let i = 0;
1140
- const childNodes = elm.childNodes;
1141
- const ilen = childNodes.length;
1142
- for (; i < ilen; i++) {
1143
- childNode = childNodes[i];
1144
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1145
- // first got the content reference comment node
1146
- // then we got it's parent, which is where all the host content is in now
1147
- hostContentNodes = node.parentNode.childNodes;
1148
- slotNameAttr = childNode['s-sn'];
1149
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1150
- node = hostContentNodes[j];
1151
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1152
- // let's do some relocating to its new home
1153
- // but never relocate a content reference node
1154
- // that is suppose to always represent the original content location
1155
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1156
- // it's possible we've already decided to relocate this node
1157
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1158
- // made some changes to slots
1159
- // let's make sure we also double check
1160
- // fallbacks are correctly hidden or shown
1161
- checkSlotFallbackVisibility = true;
1162
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1163
- if (relocateNodeData) {
1164
- // previously we never found a slot home for this node
1165
- // but turns out we did, so let's remember it now
1166
- relocateNodeData.$slotRefNode$ = childNode;
1167
- }
1168
- else {
1169
- // add to our list of nodes to relocate
1170
- relocateNodes.push({
1171
- $slotRefNode$: childNode,
1172
- $nodeToRelocate$: node,
1173
- });
1174
- }
1175
- if (node['s-sr']) {
1176
- relocateNodes.map((relocateNode) => {
1177
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1178
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1179
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1180
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1181
- }
1182
- }
1183
- });
1184
- }
1185
- }
1186
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1187
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1188
- // if we never find a home for this element then we'll need to hide it
1189
- relocateNodes.push({
1190
- $nodeToRelocate$: node,
1191
- });
1192
- }
1193
- }
1194
- }
1195
- }
1196
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1197
- relocateSlotContent(childNode);
1198
- }
1199
- }
1200
- };
1201
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1202
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1203
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1204
- return true;
1205
- }
1206
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1207
- return true;
1208
- }
1209
- return false;
1210
- }
1211
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1212
- return true;
1213
- }
1214
- return slotNameAttr === '';
1215
- };
1216
- const callNodeRefs = (vNode) => {
1217
- {
1218
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1219
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
1220
- }
1221
- };
1222
- /**
1223
- * The main entry point for Stencil's virtual DOM-based rendering engine
1224
- *
1225
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1226
- * function will handle creating a virtual DOM tree with a single root, patching
1227
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1228
- * relocation, and reflecting attributes.
1229
- *
1230
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1231
- * the DOM node into which it should be rendered.
1232
- * @param renderFnResults the virtual DOM nodes to be rendered
1233
- */
1234
- const renderVdom = (hostRef, renderFnResults) => {
1235
- const hostElm = hostRef.$hostElement$;
1236
- const cmpMeta = hostRef.$cmpMeta$;
1237
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1238
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1239
- hostTagName = hostElm.tagName;
1240
- if (cmpMeta.$attrsToReflect$) {
1241
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1242
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1243
- }
1244
- rootVnode.$tag$ = null;
1245
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1246
- hostRef.$vnode$ = rootVnode;
1247
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1248
- {
1249
- scopeId = hostElm['s-sc'];
1250
- }
1251
- {
1252
- contentRef = hostElm['s-cr'];
1253
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1254
- // always reset
1255
- checkSlotFallbackVisibility = false;
1256
- }
1257
- // synchronous patch
1258
- patch(oldVNode, rootVnode);
1259
- {
1260
- // while we're moving nodes around existing nodes, temporarily disable
1261
- // the disconnectCallback from working
1262
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1263
- if (checkSlotRelocate) {
1264
- relocateSlotContent(rootVnode.$elm$);
1265
- let relocateData;
1266
- let nodeToRelocate;
1267
- let orgLocationNode;
1268
- let parentNodeRef;
1269
- let insertBeforeNode;
1270
- let refNode;
1271
- let i = 0;
1272
- for (; i < relocateNodes.length; i++) {
1273
- relocateData = relocateNodes[i];
1274
- nodeToRelocate = relocateData.$nodeToRelocate$;
1275
- if (!nodeToRelocate['s-ol']) {
1276
- // add a reference node marking this node's original location
1277
- // keep a reference to this node for later lookups
1278
- orgLocationNode =
1279
- doc.createTextNode('');
1280
- orgLocationNode['s-nr'] = nodeToRelocate;
1281
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1282
- }
1283
- }
1284
- for (i = 0; i < relocateNodes.length; i++) {
1285
- relocateData = relocateNodes[i];
1286
- nodeToRelocate = relocateData.$nodeToRelocate$;
1287
- if (relocateData.$slotRefNode$) {
1288
- // by default we're just going to insert it directly
1289
- // after the slot reference node
1290
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1291
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1292
- orgLocationNode = nodeToRelocate['s-ol'];
1293
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1294
- refNode = orgLocationNode['s-nr'];
1295
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1296
- refNode = refNode.nextSibling;
1297
- if (!refNode || !refNode['s-nr']) {
1298
- insertBeforeNode = refNode;
1299
- break;
1300
- }
1301
- }
1302
- }
1303
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1304
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1305
- // we've checked that it's worth while to relocate
1306
- // since that the node to relocate
1307
- // has a different next sibling or parent relocated
1308
- if (nodeToRelocate !== insertBeforeNode) {
1309
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1310
- // probably a component in the index.html that doesn't have it's hostname set
1311
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1312
- }
1313
- // add it back to the dom but in its new home
1314
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1315
- }
1316
- }
1317
- }
1318
- else {
1319
- // this node doesn't have a slot home to go to, so let's hide it
1320
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1321
- nodeToRelocate.hidden = true;
1322
- }
1323
- }
1324
- }
1325
- }
1326
- if (checkSlotFallbackVisibility) {
1327
- updateFallbackSlotVisibility(rootVnode.$elm$);
1328
- }
1329
- // done moving nodes around
1330
- // allow the disconnect callback to work again
1331
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1332
- // always reset
1333
- relocateNodes.length = 0;
1334
- }
1335
- };
1336
- const attachToAncestor = (hostRef, ancestorComponent) => {
1337
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1338
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1339
- }
1340
- };
1341
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1342
- {
1343
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1344
- }
1345
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1346
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1347
- return;
1348
- }
1349
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1350
- // there is no ancestor component or the ancestor component
1351
- // has already fired off its lifecycle update then
1352
- // fire off the initial update
1353
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1354
- return writeTask(dispatch) ;
1355
- };
1356
- const dispatchHooks = (hostRef, isInitialLoad) => {
1357
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1358
- const instance = hostRef.$lazyInstance$ ;
1359
- let promise;
1360
- if (isInitialLoad) {
1361
- {
1362
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1363
- if (hostRef.$queuedListeners$) {
1364
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1365
- hostRef.$queuedListeners$ = null;
1366
- }
1367
- }
1368
- {
1369
- promise = safeCall(instance, 'componentWillLoad');
1370
- }
1371
- }
1372
- endSchedule();
1373
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1374
- };
1375
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1376
- // updateComponent
1377
- const elm = hostRef.$hostElement$;
1378
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1379
- const rc = elm['s-rc'];
1380
- if (isInitialLoad) {
1381
- // DOM WRITE!
1382
- attachStyles(hostRef);
1383
- }
1384
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1385
- {
1386
- callRender(hostRef, instance);
1387
- }
1388
- if (rc) {
1389
- // ok, so turns out there are some child host elements
1390
- // waiting on this parent element to load
1391
- // let's fire off all update callbacks waiting
1392
- rc.map((cb) => cb());
1393
- elm['s-rc'] = undefined;
1394
- }
1395
- endRender();
1396
- endUpdate();
1397
- {
1398
- const childrenPromises = elm['s-p'];
1399
- const postUpdate = () => postUpdateComponent(hostRef);
1400
- if (childrenPromises.length === 0) {
1401
- postUpdate();
1402
- }
1403
- else {
1404
- Promise.all(childrenPromises).then(postUpdate);
1405
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1406
- childrenPromises.length = 0;
1407
- }
1408
- }
1409
- };
1410
- const callRender = (hostRef, instance, elm) => {
1411
- try {
1412
- instance = instance.render() ;
1413
- {
1414
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1415
- }
1416
- {
1417
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1418
- }
1419
- {
1420
- {
1421
- // looks like we've got child nodes to render into this host element
1422
- // or we need to update the css class/attrs on the host element
1423
- // DOM WRITE!
1424
- {
1425
- renderVdom(hostRef, instance);
1426
- }
1427
- }
1428
- }
1429
- }
1430
- catch (e) {
1431
- consoleError(e, hostRef.$hostElement$);
1432
- }
1433
- return null;
1434
- };
1435
- const postUpdateComponent = (hostRef) => {
1436
- const tagName = hostRef.$cmpMeta$.$tagName$;
1437
- const elm = hostRef.$hostElement$;
1438
- const endPostUpdate = createTime('postUpdate', tagName);
1439
- const instance = hostRef.$lazyInstance$ ;
1440
- const ancestorComponent = hostRef.$ancestorComponent$;
1441
- {
1442
- safeCall(instance, 'componentDidRender');
1443
- }
1444
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1445
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1446
- {
1447
- // DOM WRITE!
1448
- addHydratedFlag(elm);
1449
- }
1450
- {
1451
- safeCall(instance, 'componentDidLoad');
1452
- }
1453
- endPostUpdate();
1454
- {
1455
- hostRef.$onReadyResolve$(elm);
1456
- if (!ancestorComponent) {
1457
- appDidLoad();
1458
- }
1459
- }
1460
- }
1461
- else {
1462
- {
1463
- safeCall(instance, 'componentDidUpdate');
1464
- }
1465
- endPostUpdate();
1466
- }
1467
- {
1468
- hostRef.$onInstanceResolve$(elm);
1469
- }
1470
- // load events fire from bottom to top
1471
- // the deepest elements load first then bubbles up
1472
- {
1473
- if (hostRef.$onRenderResolve$) {
1474
- hostRef.$onRenderResolve$();
1475
- hostRef.$onRenderResolve$ = undefined;
1476
- }
1477
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1478
- nextTick(() => scheduleUpdate(hostRef, false));
1479
- }
1480
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1481
- }
1482
- // ( •_•)
1483
- // ( •_•)>⌐■-■
1484
- // (⌐■_■)
1485
- };
1486
- const appDidLoad = (who) => {
1487
- // on appload
1488
- // we have finish the first big initial render
1489
- {
1490
- addHydratedFlag(doc.documentElement);
1491
- }
1492
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1493
- };
1494
- const safeCall = (instance, method, arg) => {
1495
- if (instance && instance[method]) {
1496
- try {
1497
- return instance[method](arg);
1498
- }
1499
- catch (e) {
1500
- consoleError(e);
1501
- }
1502
- }
1503
- return undefined;
1504
- };
1505
- const then = (promise, thenFn) => {
1506
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1507
- };
1508
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1509
- ;
1510
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1511
- const setValue = (ref, propName, newVal, cmpMeta) => {
1512
- // check our new property value against our internal value
1513
- const hostRef = getHostRef(ref);
1514
- const elm = hostRef.$hostElement$ ;
1515
- const oldVal = hostRef.$instanceValues$.get(propName);
1516
- const flags = hostRef.$flags$;
1517
- const instance = hostRef.$lazyInstance$ ;
1518
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1519
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1520
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1521
- const didValueChange = newVal !== oldVal && !areBothNaN;
1522
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1523
- // gadzooks! the property's value has changed!!
1524
- // set our new value!
1525
- hostRef.$instanceValues$.set(propName, newVal);
1526
- if (instance) {
1527
- // get an array of method names of watch functions to call
1528
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1529
- const watchMethods = cmpMeta.$watchers$[propName];
1530
- if (watchMethods) {
1531
- // this instance is watching for when this property changed
1532
- watchMethods.map((watchMethodName) => {
1533
- try {
1534
- // fire off each of the watch methods that are watching this property
1535
- instance[watchMethodName](newVal, oldVal, propName);
1536
- }
1537
- catch (e) {
1538
- consoleError(e, elm);
1539
- }
1540
- });
1541
- }
1542
- }
1543
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1544
- // looks like this value actually changed, so we've got work to do!
1545
- // but only if we've already rendered, otherwise just chill out
1546
- // queue that we need to do an update, but don't worry about queuing
1547
- // up millions cuz this function ensures it only runs once
1548
- scheduleUpdate(hostRef, false);
1549
- }
1550
- }
1551
- }
1552
- };
1553
- /**
1554
- * Attach a series of runtime constructs to a compiled Stencil component
1555
- * constructor, including getters and setters for the `@Prop` and `@State`
1556
- * decorators, callbacks for when attributes change, and so on.
1557
- *
1558
- * @param Cstr the constructor for a component that we need to process
1559
- * @param cmpMeta metadata collected previously about the component
1560
- * @param flags a number used to store a series of bit flags
1561
- * @returns a reference to the same constructor passed in (but now mutated)
1562
- */
1563
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1564
- if (cmpMeta.$members$) {
1565
- if (Cstr.watchers) {
1566
- cmpMeta.$watchers$ = Cstr.watchers;
1567
- }
1568
- // It's better to have a const than two Object.entries()
1569
- const members = Object.entries(cmpMeta.$members$);
1570
- const prototype = Cstr.prototype;
1571
- members.map(([memberName, [memberFlags]]) => {
1572
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1573
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1574
- // proxyComponent - prop
1575
- Object.defineProperty(prototype, memberName, {
1576
- get() {
1577
- // proxyComponent, get value
1578
- return getValue(this, memberName);
1579
- },
1580
- set(newValue) {
1581
- // proxyComponent, set value
1582
- setValue(this, memberName, newValue, cmpMeta);
1583
- },
1584
- configurable: true,
1585
- enumerable: true,
1586
- });
1587
- }
1588
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1589
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1590
- // proxyComponent - method
1591
- Object.defineProperty(prototype, memberName, {
1592
- value(...args) {
1593
- const ref = getHostRef(this);
1594
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1595
- },
1596
- });
1597
- }
1598
- });
1599
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1600
- const attrNameToPropName = new Map();
1601
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1602
- plt.jmp(() => {
1603
- const propName = attrNameToPropName.get(attrName);
1604
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1605
- // in the case where an attribute was set inline.
1606
- // ```html
1607
- // <my-component some-attribute="some-value"></my-component>
1608
- // ```
1609
- //
1610
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1611
- // programmatically changes it before it has been upgraded as shown below:
1612
- //
1613
- // ```html
1614
- // <!-- this component has _not_ been upgraded yet -->
1615
- // <my-component id="test" some-attribute="some-value"></my-component>
1616
- // <script>
1617
- // // grab non-upgraded component
1618
- // el = document.querySelector("#test");
1619
- // el.someAttribute = "another-value";
1620
- // // upgrade component
1621
- // customElements.define('my-component', MyComponent);
1622
- // </script>
1623
- // ```
1624
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1625
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1626
- // to the value that was set inline i.e. "some-value" from above example. When
1627
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1628
- //
1629
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1630
- // by connectedCallback as this attributeChangedCallback will not fire.
1631
- //
1632
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1633
- //
1634
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1635
- // properties here given that this goes against best practices outlined here
1636
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1637
- if (this.hasOwnProperty(propName)) {
1638
- newValue = this[propName];
1639
- delete this[propName];
1640
- }
1641
- else if (prototype.hasOwnProperty(propName) &&
1642
- typeof this[propName] === 'number' &&
1643
- this[propName] == newValue) {
1644
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1645
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1646
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1647
- return;
1648
- }
1649
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1650
- });
1651
- };
1652
- // create an array of attributes to observe
1653
- // and also create a map of html attribute name to js property name
1654
- Cstr.observedAttributes = members
1655
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1656
- .map(([propName, m]) => {
1657
- const attrName = m[1] || propName;
1658
- attrNameToPropName.set(attrName, propName);
1659
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1660
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1661
- }
1662
- return attrName;
1663
- });
1664
- }
1665
- }
1666
- return Cstr;
1667
- };
1668
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1669
- // initializeComponent
1670
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1671
- {
1672
- // we haven't initialized this element yet
1673
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1674
- // lazy loaded components
1675
- // request the component's implementation to be
1676
- // wired up with the host element
1677
- Cstr = loadModule(cmpMeta);
1678
- if (Cstr.then) {
1679
- // Await creates a micro-task avoid if possible
1680
- const endLoad = uniqueTime();
1681
- Cstr = await Cstr;
1682
- endLoad();
1683
- }
1684
- if (!Cstr.isProxied) {
1685
- // we've never proxied this Constructor before
1686
- // let's add the getters/setters to its prototype before
1687
- // the first time we create an instance of the implementation
1688
- {
1689
- cmpMeta.$watchers$ = Cstr.watchers;
1690
- }
1691
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1692
- Cstr.isProxied = true;
1693
- }
1694
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1695
- // ok, time to construct the instance
1696
- // but let's keep track of when we start and stop
1697
- // so that the getters/setters don't incorrectly step on data
1698
- {
1699
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1700
- }
1701
- // construct the lazy-loaded component implementation
1702
- // passing the hostRef is very important during
1703
- // construction in order to directly wire together the
1704
- // host element and the lazy-loaded instance
1705
- try {
1706
- new Cstr(hostRef);
1707
- }
1708
- catch (e) {
1709
- consoleError(e);
1710
- }
1711
- {
1712
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1713
- }
1714
- {
1715
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1716
- }
1717
- endNewInstance();
1718
- fireConnectedCallback(hostRef.$lazyInstance$);
1719
- }
1720
- if (Cstr.style) {
1721
- // this component has styles but we haven't registered them yet
1722
- let style = Cstr.style;
1723
- const scopeId = getScopeId(cmpMeta);
1724
- if (!styles.has(scopeId)) {
1725
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1726
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1727
- endRegisterStyles();
1728
- }
1729
- }
1730
- }
1731
- // we've successfully created a lazy instance
1732
- const ancestorComponent = hostRef.$ancestorComponent$;
1733
- const schedule = () => scheduleUpdate(hostRef, true);
1734
- if (ancestorComponent && ancestorComponent['s-rc']) {
1735
- // this is the initial load and this component it has an ancestor component
1736
- // but the ancestor component has NOT fired its will update lifecycle yet
1737
- // so let's just cool our jets and wait for the ancestor to continue first
1738
- // this will get fired off when the ancestor component
1739
- // finally gets around to rendering its lazy self
1740
- // fire off the initial update
1741
- ancestorComponent['s-rc'].push(schedule);
1742
- }
1743
- else {
1744
- schedule();
1745
- }
1746
- };
1747
- const fireConnectedCallback = (instance) => {
1748
- {
1749
- safeCall(instance, 'connectedCallback');
1750
- }
1751
- };
1752
- const connectedCallback = (elm) => {
1753
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1754
- const hostRef = getHostRef(elm);
1755
- const cmpMeta = hostRef.$cmpMeta$;
1756
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1757
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1758
- // first time this component has connected
1759
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1760
- {
1761
- // initUpdate
1762
- // if the slot polyfill is required we'll need to put some nodes
1763
- // in here to act as original content anchors as we move nodes around
1764
- // host element has been connected to the DOM
1765
- if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1766
- cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1767
- setContentReference(elm);
1768
- }
1769
- }
1770
- {
1771
- // find the first ancestor component (if there is one) and register
1772
- // this component as one of the actively loading child components for its ancestor
1773
- let ancestorComponent = elm;
1774
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1775
- // climb up the ancestors looking for the first
1776
- // component that hasn't finished its lifecycle update yet
1777
- if (ancestorComponent['s-p']) {
1778
- // we found this components first ancestor component
1779
- // keep a reference to this component's ancestor component
1780
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1781
- break;
1782
- }
1783
- }
1784
- }
1785
- // Lazy properties
1786
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1787
- if (cmpMeta.$members$) {
1788
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1789
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1790
- const value = elm[memberName];
1791
- delete elm[memberName];
1792
- elm[memberName] = value;
1793
- }
1794
- });
1795
- }
1796
- {
1797
- initializeComponent(elm, hostRef, cmpMeta);
1798
- }
1799
- }
1800
- else {
1801
- // not the first time this has connected
1802
- // reattach any event listeners to the host
1803
- // since they would have been removed when disconnected
1804
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1805
- // fire off connectedCallback() on component instance
1806
- fireConnectedCallback(hostRef.$lazyInstance$);
1807
- }
1808
- endConnected();
1809
- }
1810
- };
1811
- const setContentReference = (elm) => {
1812
- // only required when we're NOT using native shadow dom (slot)
1813
- // or this browser doesn't support native shadow dom
1814
- // and this host element was NOT created with SSR
1815
- // let's pick out the inner content for slot projection
1816
- // create a node to represent where the original
1817
- // content was first placed, which is useful later on
1818
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1819
- contentRefElm['s-cn'] = true;
1820
- elm.insertBefore(contentRefElm, elm.firstChild);
1821
- };
1822
- const disconnectedCallback = (elm) => {
1823
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1824
- const hostRef = getHostRef(elm);
1825
- const instance = hostRef.$lazyInstance$ ;
1826
- {
1827
- if (hostRef.$rmListeners$) {
1828
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1829
- hostRef.$rmListeners$ = undefined;
1830
- }
1831
- }
1832
- {
1833
- safeCall(instance, 'disconnectedCallback');
1834
- }
1835
- }
1836
- };
1837
- const bootstrapLazy = (lazyBundles, options = {}) => {
1838
- var _a;
1839
- const endBootstrap = createTime();
1840
- const cmpTags = [];
1841
- const exclude = options.exclude || [];
1842
- const customElements = win.customElements;
1843
- const head = doc.head;
1844
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1845
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1846
- const deferredConnectedCallbacks = [];
1847
- let appLoadFallback;
1848
- let isBootstrapping = true;
1849
- Object.assign(plt, options);
1850
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1851
- lazyBundles.map((lazyBundle) => {
1852
- lazyBundle[1].map((compactMeta) => {
1853
- const cmpMeta = {
1854
- $flags$: compactMeta[0],
1855
- $tagName$: compactMeta[1],
1856
- $members$: compactMeta[2],
1857
- $listeners$: compactMeta[3],
1858
- };
1859
- {
1860
- cmpMeta.$members$ = compactMeta[2];
1861
- }
1862
- {
1863
- cmpMeta.$listeners$ = compactMeta[3];
1864
- }
1865
- {
1866
- cmpMeta.$attrsToReflect$ = [];
1867
- }
1868
- {
1869
- cmpMeta.$watchers$ = {};
1870
- }
1871
- const tagName = cmpMeta.$tagName$;
1872
- const HostElement = class extends HTMLElement {
1873
- // StencilLazyHost
1874
- constructor(self) {
1875
- // @ts-ignore
1876
- super(self);
1877
- self = this;
1878
- registerHost(self, cmpMeta);
1879
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1880
- // this component is using shadow dom
1881
- // and this browser supports shadow dom
1882
- // add the read-only property "shadowRoot" to the host element
1883
- // adding the shadow root build conditionals to minimize runtime
1884
- {
1885
- {
1886
- self.attachShadow({ mode: 'open' });
1887
- }
1888
- }
1889
- }
1890
- }
1891
- connectedCallback() {
1892
- if (appLoadFallback) {
1893
- clearTimeout(appLoadFallback);
1894
- appLoadFallback = null;
1895
- }
1896
- if (isBootstrapping) {
1897
- // connectedCallback will be processed once all components have been registered
1898
- deferredConnectedCallbacks.push(this);
1899
- }
1900
- else {
1901
- plt.jmp(() => connectedCallback(this));
1902
- }
1903
- }
1904
- disconnectedCallback() {
1905
- plt.jmp(() => disconnectedCallback(this));
1906
- }
1907
- componentOnReady() {
1908
- return getHostRef(this).$onReadyPromise$;
1909
- }
1910
- };
1911
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1912
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1913
- cmpTags.push(tagName);
1914
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1915
- }
1916
- });
1917
- });
1918
- {
1919
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1920
- visibilityStyle.setAttribute('data-styles', '');
1921
- // Apply CSP nonce to the style tag if it exists
1922
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1923
- if (nonce != null) {
1924
- visibilityStyle.setAttribute('nonce', nonce);
1925
- }
1926
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1927
- }
1928
- // Process deferred connectedCallbacks now all components have been registered
1929
- isBootstrapping = false;
1930
- if (deferredConnectedCallbacks.length) {
1931
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1932
- }
1933
- else {
1934
- {
1935
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1936
- }
1937
- }
1938
- // Fallback appLoad event
1939
- endBootstrap();
1940
- };
1941
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1942
- if (listeners) {
1943
- listeners.map(([flags, name, method]) => {
1944
- const target = getHostListenerTarget(elm, flags) ;
1945
- const handler = hostListenerProxy(hostRef, method);
1946
- const opts = hostListenerOpts(flags);
1947
- plt.ael(target, name, handler, opts);
1948
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1949
- });
1950
- }
1951
- };
1952
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
1953
- try {
1954
- {
1955
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1956
- // instance is ready, let's call it's member method for this event
1957
- hostRef.$lazyInstance$[methodName](ev);
1958
- }
1959
- else {
1960
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1961
- }
1962
- }
1963
- }
1964
- catch (e) {
1965
- consoleError(e);
1966
- }
1967
- };
1968
- const getHostListenerTarget = (elm, flags) => {
1969
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
1970
- return win;
1971
- return elm;
1972
- };
1973
- // prettier-ignore
1974
- const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1975
- /**
1976
- * Assigns the given value to the nonce property on the runtime platform object.
1977
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1978
- * @param nonce The value to be assigned to the platform nonce property.
1979
- * @returns void
1980
- */
1981
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1982
- const hostRefs = /*@__PURE__*/ new WeakMap();
1983
- const getHostRef = (ref) => hostRefs.get(ref);
1984
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1985
- const registerHost = (elm, cmpMeta) => {
1986
- const hostRef = {
1987
- $flags$: 0,
1988
- $hostElement$: elm,
1989
- $cmpMeta$: cmpMeta,
1990
- $instanceValues$: new Map(),
1991
- };
1992
- {
1993
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1994
- }
1995
- {
1996
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1997
- elm['s-p'] = [];
1998
- elm['s-rc'] = [];
1999
- }
2000
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2001
- return hostRefs.set(elm, hostRef);
2002
- };
2003
- const isMemberInElement = (elm, memberName) => memberName in elm;
2004
- const consoleError = (e, el) => (0, console.error)(e, el);
2005
- const cmpModules = /*@__PURE__*/ new Map();
2006
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2007
- // loadModuleImport
2008
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2009
- const bundleId = cmpMeta.$lazyBundleId$;
2010
- const module = cmpModules.get(bundleId) ;
2011
- if (module) {
2012
- return module[exportName];
2013
- }
2014
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2015
- return import(
2016
- /* @vite-ignore */
2017
- /* webpackInclude: /\.entry\.js$/ */
2018
- /* webpackExclude: /\.system\.entry\.js$/ */
2019
- /* webpackMode: "lazy" */
2020
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
2021
- {
2022
- cmpModules.set(bundleId, importedModule);
2023
- }
2024
- return importedModule[exportName];
2025
- }, consoleError);
2026
- };
2027
- const styles = /*@__PURE__*/ new Map();
2028
- const win = typeof window !== 'undefined' ? window : {};
2029
- const doc = win.document || { head: {} };
2030
- const H = (win.HTMLElement || class {
2031
- });
2032
- const plt = {
2033
- $flags$: 0,
2034
- $resourcesUrl$: '',
2035
- jmp: (h) => h(),
2036
- raf: (h) => requestAnimationFrame(h),
2037
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2038
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2039
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2040
- };
2041
- const promiseResolve = (v) => Promise.resolve(v);
2042
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2043
- try {
2044
- new CSSStyleSheet();
2045
- return typeof new CSSStyleSheet().replaceSync === 'function';
2046
- }
2047
- catch (e) { }
2048
- return false;
2049
- })()
2050
- ;
2051
- const queueDomReads = [];
2052
- const queueDomWrites = [];
2053
- const queueTask = (queue, write) => (cb) => {
2054
- queue.push(cb);
2055
- if (!queuePending) {
2056
- queuePending = true;
2057
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2058
- nextTick(flush);
2059
- }
2060
- else {
2061
- plt.raf(flush);
2062
- }
2063
- }
2064
- };
2065
- const consume = (queue) => {
2066
- for (let i = 0; i < queue.length; i++) {
2067
- try {
2068
- queue[i](performance.now());
2069
- }
2070
- catch (e) {
2071
- consoleError(e);
2072
- }
2073
- }
2074
- queue.length = 0;
2075
- };
2076
- const flush = () => {
2077
- // always force a bunch of medium callbacks to run, but still have
2078
- // a throttle on how many can run in a certain time
2079
- // DOM READS!!!
2080
- consume(queueDomReads);
2081
- // DOM WRITES!!!
2082
- {
2083
- consume(queueDomWrites);
2084
- if ((queuePending = queueDomReads.length > 0)) {
2085
- // still more to do yet, but we've run out of time
2086
- // let's let this thing cool off and try again in the next tick
2087
- plt.raf(flush);
2088
- }
2089
- }
2090
- };
2091
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2092
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2093
-
2094
- export { Host as H, H as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2095
-
2096
- //# sourceMappingURL=index-371fb9d4.js.map