@six-group/ui-library 0.0.0-insider.ebd822a → 0.0.0-insider.ec3ffc2

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 (1765) 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-46f388e0.js → execution-control-d728da70.js} +15 -12
  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-f743f62b.js → popover-1e7c09f1.js} +109 -101
  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 +143 -115
  31. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  32. package/dist/cjs/six-avatar.cjs.entry.js +23 -25
  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 +97 -93
  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 +114 -145
  41. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
  42. package/dist/cjs/six-datepicker.cjs.entry.js +879 -981
  43. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  44. package/dist/cjs/six-details.cjs.entry.js +129 -127
  45. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  46. package/dist/cjs/six-dialog.cjs.entry.js +114 -134
  47. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-drawer.cjs.entry.js +130 -151
  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 -85
  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 +121 -101
  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 -43
  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 +190 -136
  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 +197 -243
  79. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  80. package/dist/cjs/six-item-picker.cjs.entry.js +415 -337
  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 +23 -20
  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 -12
  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 +31 -30
  97. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  98. package/dist/cjs/six-radio.cjs.entry.js +106 -114
  99. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  100. package/dist/cjs/six-range.cjs.entry.js +200 -185
  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 -40
  105. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  106. package/dist/cjs/six-select.cjs.entry.js +538 -394
  107. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  108. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +58 -42
  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 +178 -156
  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 +109 -96
  119. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  120. package/dist/cjs/six-tab-group.cjs.entry.js +251 -212
  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 -38
  125. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  126. package/dist/cjs/six-tag.cjs.entry.js +57 -37
  127. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  128. package/dist/cjs/six-textarea.cjs.entry.js +184 -206
  129. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  130. package/dist/cjs/six-tile.cjs.entry.js +77 -79
  131. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  132. package/dist/cjs/six-timepicker.cjs.entry.js +346 -406
  133. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  134. package/dist/cjs/six-tooltip.cjs.entry.js +147 -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 -336
  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 -115
  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 -440
  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 +426 -517
  161. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  162. package/dist/collection/components/six-datepicker/components/day-selection.js +10 -10
  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 +11 -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 +11 -8
  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 +1056 -1217
  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 +409 -402
  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 +345 -359
  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 -412
  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 +984 -868
  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 -180
  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 +368 -291
  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 -156
  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 +542 -385
  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 +1006 -1107
  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 +739 -658
  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 +56 -54
  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 +400 -359
  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 -176
  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 -44
  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 +100 -99
  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 -388
  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 +582 -591
  267. package/dist/collection/components/six-range/six-range.js.map +1 -1
  268. package/dist/collection/components/six-root/six-root.js +87 -153
  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 -166
  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 +1116 -1025
  275. package/dist/collection/components/six-select/six-select.js.map +1 -1
  276. package/dist/collection/components/six-select/util.js +76 -0
  277. package/dist/collection/components/six-select/util.js.map +1 -0
  278. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  279. package/dist/collection/components/six-sidebar/six-sidebar.js +470 -435
  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 +183 -151
  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 +389 -378
  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 -184
  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 +340 -333
  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 -142
  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 +796 -882
  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 -299
  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 -911
  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 +405 -402
  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 -19
  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 +536 -502
  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 +53 -37
  623. package/dist/collection/utils/event-listeners.js.map +1 -1
  624. package/dist/collection/utils/execution-control.js +14 -13
  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 -24
  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 +104 -90
  635. package/dist/collection/utils/popover.js.map +1 -1
  636. package/dist/collection/utils/popup.js +95 -0
  637. package/dist/collection/utils/popup.js.map +1 -0
  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 +30 -46
  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 +73 -59
  645. package/dist/collection/utils/time.util.js.map +1 -1
  646. package/dist/collection/utils/type-check.js +0 -1
  647. package/dist/collection/utils/type-check.js.map +1 -1
  648. package/dist/components/event-listeners.js +53 -37
  649. package/dist/components/event-listeners.js.map +1 -1
  650. package/dist/components/execution-control.js +14 -11
  651. package/dist/components/execution-control.js.map +1 -1
  652. package/dist/components/focus-visible.js +28 -28
  653. package/dist/components/focus-visible.js.map +1 -1
  654. package/dist/components/form-control.js +26 -24
  655. package/dist/components/form-control.js.map +1 -1
  656. package/dist/components/form.js +18 -0
  657. package/dist/components/form.js.map +1 -0
  658. package/dist/components/index.d.ts +6 -0
  659. package/dist/components/index.js +126 -65
  660. package/dist/components/index.js.map +1 -1
  661. package/dist/components/modal.js +26 -41
  662. package/dist/components/modal.js.map +1 -1
  663. package/dist/components/popover.js +108 -100
  664. package/dist/components/popover.js.map +1 -1
  665. package/dist/components/scroll.js +32 -32
  666. package/dist/components/scroll.js.map +1 -1
  667. package/dist/components/six-alert.d.ts +2 -2
  668. package/dist/components/six-alert.js +177 -146
  669. package/dist/components/six-alert.js.map +1 -1
  670. package/dist/components/six-avatar.d.ts +2 -2
  671. package/dist/components/six-avatar.js +46 -48
  672. package/dist/components/six-avatar.js.map +1 -1
  673. package/dist/components/six-badge.d.ts +2 -2
  674. package/dist/components/six-badge.js +41 -40
  675. package/dist/components/six-badge.js.map +1 -1
  676. package/dist/components/six-button.d.ts +2 -2
  677. package/dist/components/six-button.js +1 -140
  678. package/dist/components/six-button.js.map +1 -1
  679. package/dist/components/six-button2.js +148 -0
  680. package/dist/components/six-button2.js.map +1 -0
  681. package/dist/components/six-card.d.ts +2 -2
  682. package/dist/components/six-card.js +22 -21
  683. package/dist/components/six-card.js.map +1 -1
  684. package/dist/components/six-checkbox.d.ts +2 -2
  685. package/dist/components/six-checkbox.js +1 -186
  686. package/dist/components/six-checkbox.js.map +1 -1
  687. package/dist/components/six-checkbox2.js +166 -0
  688. package/dist/components/six-checkbox2.js.map +1 -0
  689. package/dist/components/six-datepicker.d.ts +2 -2
  690. package/dist/components/six-datepicker.js +950 -1045
  691. package/dist/components/six-datepicker.js.map +1 -1
  692. package/dist/components/six-details.d.ts +2 -2
  693. package/dist/components/six-details2.js +159 -155
  694. package/dist/components/six-details2.js.map +1 -1
  695. package/dist/components/six-dialog.d.ts +2 -2
  696. package/dist/components/six-dialog.js +144 -162
  697. package/dist/components/six-dialog.js.map +1 -1
  698. package/dist/components/six-drawer.d.ts +2 -2
  699. package/dist/components/six-drawer.js +162 -181
  700. package/dist/components/six-drawer.js.map +1 -1
  701. package/dist/components/six-dropdown.d.ts +2 -2
  702. package/dist/components/six-dropdown2.js +550 -448
  703. package/dist/components/six-dropdown2.js.map +1 -1
  704. package/dist/components/six-error-page.d.ts +2 -2
  705. package/dist/components/six-error-page.js +107 -108
  706. package/dist/components/six-error-page.js.map +1 -1
  707. package/dist/components/six-error.d.ts +11 -0
  708. package/dist/components/six-error.js +8 -0
  709. package/dist/components/six-error.js.map +1 -0
  710. package/dist/components/six-error2.js +33 -0
  711. package/dist/components/six-error2.js.map +1 -0
  712. package/dist/components/six-file-list-item.d.ts +2 -2
  713. package/dist/components/six-file-list-item.js +60 -59
  714. package/dist/components/six-file-list-item.js.map +1 -1
  715. package/dist/components/six-file-list.d.ts +2 -2
  716. package/dist/components/six-file-list.js +21 -20
  717. package/dist/components/six-file-list.js.map +1 -1
  718. package/dist/components/six-file-upload.d.ts +2 -2
  719. package/dist/components/six-file-upload.js +163 -127
  720. package/dist/components/six-file-upload.js.map +1 -1
  721. package/dist/components/six-footer.d.ts +2 -2
  722. package/dist/components/six-footer.js +22 -21
  723. package/dist/components/six-footer.js.map +1 -1
  724. package/dist/components/six-group-label.d.ts +2 -2
  725. package/dist/components/six-group-label.js +72 -61
  726. package/dist/components/six-group-label.js.map +1 -1
  727. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  728. package/dist/components/six-header-dropdown-item.js +103 -0
  729. package/dist/components/six-header-dropdown-item.js.map +1 -0
  730. package/dist/components/{set-attributes.d.ts → six-header-item.d.ts} +4 -4
  731. package/dist/components/six-header-item.js +8 -0
  732. package/dist/components/six-header-item.js.map +1 -0
  733. package/dist/components/six-header-item2.js +39 -0
  734. package/dist/components/six-header-item2.js.map +1 -0
  735. package/dist/components/six-header-menu-button.d.ts +11 -0
  736. package/dist/components/six-header-menu-button.js +57 -0
  737. package/dist/components/six-header-menu-button.js.map +1 -0
  738. package/dist/components/six-header.d.ts +2 -2
  739. package/dist/components/six-header.js +273 -190
  740. package/dist/components/six-header.js.map +1 -1
  741. package/dist/components/six-icon-button.d.ts +2 -2
  742. package/dist/components/six-icon-button2.js +65 -55
  743. package/dist/components/six-icon-button2.js.map +1 -1
  744. package/dist/components/six-icon.d.ts +2 -2
  745. package/dist/components/six-icon2.js +39 -38
  746. package/dist/components/six-icon2.js.map +1 -1
  747. package/dist/components/six-input.d.ts +2 -2
  748. package/dist/components/six-input2.js +264 -304
  749. package/dist/components/six-input2.js.map +1 -1
  750. package/dist/components/six-item-picker.d.ts +2 -2
  751. package/dist/components/six-item-picker2.js +459 -375
  752. package/dist/components/six-item-picker2.js.map +1 -1
  753. package/dist/components/six-language-switcher.d.ts +2 -2
  754. package/dist/components/six-language-switcher.js +70 -63
  755. package/dist/components/six-language-switcher.js.map +1 -1
  756. package/dist/components/six-layout-grid.d.ts +2 -2
  757. package/dist/components/six-layout-grid.js +39 -34
  758. package/dist/components/six-layout-grid.js.map +1 -1
  759. package/dist/components/{six-form.d.ts → six-logo.d.ts} +4 -4
  760. package/dist/components/six-logo.js +8 -0
  761. package/dist/components/six-logo.js.map +1 -0
  762. package/dist/components/six-logo2.js +42 -0
  763. package/dist/components/six-logo2.js.map +1 -0
  764. package/dist/components/six-main-container.d.ts +2 -2
  765. package/dist/components/six-main-container.js +25 -24
  766. package/dist/components/six-main-container.js.map +1 -1
  767. package/dist/components/six-menu-divider.d.ts +2 -2
  768. package/dist/components/six-menu-divider.js +22 -21
  769. package/dist/components/six-menu-divider.js.map +1 -1
  770. package/dist/components/six-menu-item.d.ts +2 -2
  771. package/dist/components/six-menu-item2.js +99 -73
  772. package/dist/components/six-menu-item2.js.map +1 -1
  773. package/dist/components/six-menu-label.d.ts +2 -2
  774. package/dist/components/six-menu-label.js +22 -21
  775. package/dist/components/six-menu-label.js.map +1 -1
  776. package/dist/components/six-menu.d.ts +2 -2
  777. package/dist/components/six-menu2.js +265 -232
  778. package/dist/components/six-menu2.js.map +1 -1
  779. package/dist/components/six-picto.d.ts +2 -2
  780. package/dist/components/six-picto2.js +30 -26
  781. package/dist/components/six-picto2.js.map +1 -1
  782. package/dist/components/six-progress-bar.d.ts +2 -2
  783. package/dist/components/six-progress-bar.js +32 -31
  784. package/dist/components/six-progress-bar.js.map +1 -1
  785. package/dist/components/six-progress-ring.d.ts +2 -2
  786. package/dist/components/six-progress-ring.js +49 -46
  787. package/dist/components/six-progress-ring.js.map +1 -1
  788. package/dist/components/six-radio.d.ts +2 -2
  789. package/dist/components/six-radio.js +130 -139
  790. package/dist/components/six-radio.js.map +1 -1
  791. package/dist/components/six-range.d.ts +2 -2
  792. package/dist/components/six-range.js +244 -218
  793. package/dist/components/six-range.js.map +1 -1
  794. package/dist/components/six-root.d.ts +2 -2
  795. package/dist/components/six-root.js +40 -66
  796. package/dist/components/six-root.js.map +1 -1
  797. package/dist/components/six-search-field.d.ts +2 -2
  798. package/dist/components/six-search-field.js +80 -66
  799. package/dist/components/six-search-field.js.map +1 -1
  800. package/dist/components/six-select.d.ts +2 -2
  801. package/dist/components/six-select.js +778 -500
  802. package/dist/components/six-select.js.map +1 -1
  803. package/dist/components/six-sidebar-item-group.d.ts +2 -2
  804. package/dist/components/six-sidebar-item-group.js +88 -71
  805. package/dist/components/six-sidebar-item-group.js.map +1 -1
  806. package/dist/components/six-sidebar-item.d.ts +2 -2
  807. package/dist/components/six-sidebar-item.js +36 -32
  808. package/dist/components/six-sidebar-item.js.map +1 -1
  809. package/dist/components/six-sidebar.d.ts +2 -2
  810. package/dist/components/six-sidebar.js +202 -178
  811. package/dist/components/six-sidebar.js.map +1 -1
  812. package/dist/components/six-spinner.d.ts +2 -2
  813. package/dist/components/six-spinner2.js +65 -30
  814. package/dist/components/six-spinner2.js.map +1 -1
  815. package/dist/components/six-stage-indicator.d.ts +2 -2
  816. package/dist/components/six-stage-indicator2.js +30 -29
  817. package/dist/components/six-stage-indicator2.js.map +1 -1
  818. package/dist/components/six-switch.d.ts +2 -2
  819. package/dist/components/six-switch.js +145 -122
  820. package/dist/components/six-switch.js.map +1 -1
  821. package/dist/components/six-tab-group.d.ts +2 -2
  822. package/dist/components/six-tab-group.js +281 -239
  823. package/dist/components/six-tab-group.js.map +1 -1
  824. package/dist/components/six-tab-panel.d.ts +2 -2
  825. package/dist/components/six-tab-panel.js +31 -30
  826. package/dist/components/six-tab-panel.js.map +1 -1
  827. package/dist/components/six-tab.d.ts +2 -2
  828. package/dist/components/six-tab.js +86 -67
  829. package/dist/components/six-tab.js.map +1 -1
  830. package/dist/components/six-tag.d.ts +2 -2
  831. package/dist/components/six-tag.js +99 -1
  832. package/dist/components/six-tag.js.map +1 -1
  833. package/dist/components/six-textarea.d.ts +2 -2
  834. package/dist/components/six-textarea.js +232 -246
  835. package/dist/components/six-textarea.js.map +1 -1
  836. package/dist/components/six-tile.d.ts +2 -2
  837. package/dist/components/six-tile.js +117 -119
  838. package/dist/components/six-tile.js.map +1 -1
  839. package/dist/components/six-timepicker.d.ts +2 -2
  840. package/dist/components/six-timepicker.js +1 -1
  841. package/dist/components/six-timepicker2.js +509 -515
  842. package/dist/components/six-timepicker2.js.map +1 -1
  843. package/dist/components/six-tooltip.d.ts +2 -2
  844. package/dist/components/six-tooltip2.js +170 -170
  845. package/dist/components/six-tooltip2.js.map +1 -1
  846. package/dist/components/slot.js +31 -31
  847. package/dist/components/slot.js.map +1 -1
  848. package/dist/components.d.ts +375 -88
  849. package/dist/components.json +5823 -1139
  850. package/dist/esm/app-globals-0f993ce5.js +5 -0
  851. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  852. package/dist/esm/error-messages-1eaaad23.js +115 -0
  853. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  854. package/dist/esm/event-listeners-706d4309.js +59 -0
  855. package/dist/esm/event-listeners-706d4309.js.map +1 -0
  856. package/dist/esm/{execution-control-1a60d709.js → execution-control-2ebaf4ef.js} +15 -12
  857. package/dist/esm/execution-control-2ebaf4ef.js.map +1 -0
  858. package/dist/esm/focus-visible-d9dbfeef.js +45 -0
  859. package/dist/esm/focus-visible-d9dbfeef.js.map +1 -0
  860. package/dist/esm/form-4b145b7a.js +18 -0
  861. package/dist/esm/form-4b145b7a.js.map +1 -0
  862. package/dist/esm/form-control-ad1710bf.js +34 -0
  863. package/dist/esm/form-control-ad1710bf.js.map +1 -0
  864. package/dist/esm/index-a7bee415.js +1919 -0
  865. package/dist/esm/index-a7bee415.js.map +1 -0
  866. package/dist/esm/index.js +56 -0
  867. package/dist/esm/index.js.map +1 -1
  868. package/dist/esm/loader.js +8 -15
  869. package/dist/esm/loader.js.map +1 -1
  870. package/dist/esm/modal-6c1288e3.js +33 -0
  871. package/dist/esm/modal-6c1288e3.js.map +1 -0
  872. package/dist/esm/{popover-bd2c2fca.js → popover-25996e62.js} +109 -101
  873. package/dist/esm/popover-25996e62.js.map +1 -0
  874. package/dist/esm/popup-7209e9d5.js +98 -0
  875. package/dist/esm/popup-7209e9d5.js.map +1 -0
  876. package/dist/esm/scroll-3e16851e.js +64 -0
  877. package/dist/esm/scroll-3e16851e.js.map +1 -0
  878. package/dist/esm/six-alert.entry.js +143 -115
  879. package/dist/esm/six-alert.entry.js.map +1 -1
  880. package/dist/esm/six-avatar.entry.js +23 -25
  881. package/dist/esm/six-avatar.entry.js.map +1 -1
  882. package/dist/esm/six-badge.entry.js +25 -24
  883. package/dist/esm/six-badge.entry.js.map +1 -1
  884. package/dist/esm/six-button.entry.js +97 -93
  885. package/dist/esm/six-button.entry.js.map +1 -1
  886. package/dist/esm/six-card.entry.js +10 -9
  887. package/dist/esm/six-card.entry.js.map +1 -1
  888. package/dist/esm/six-checkbox.entry.js +114 -145
  889. package/dist/esm/six-checkbox.entry.js.map +1 -1
  890. package/dist/esm/six-datepicker.entry.js +879 -981
  891. package/dist/esm/six-datepicker.entry.js.map +1 -1
  892. package/dist/esm/six-details.entry.js +129 -127
  893. package/dist/esm/six-details.entry.js.map +1 -1
  894. package/dist/esm/six-dialog.entry.js +114 -134
  895. package/dist/esm/six-dialog.entry.js.map +1 -1
  896. package/dist/esm/six-drawer.entry.js +130 -151
  897. package/dist/esm/six-drawer.entry.js.map +1 -1
  898. package/dist/esm/six-dropdown_3.entry.js +812 -0
  899. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  900. package/dist/esm/six-error-page.entry.js +84 -85
  901. package/dist/esm/six-error-page.entry.js.map +1 -1
  902. package/dist/esm/six-error.entry.js +18 -0
  903. package/dist/esm/six-error.entry.js.map +1 -0
  904. package/dist/esm/six-file-list-item.entry.js +36 -35
  905. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  906. package/dist/esm/six-file-list.entry.js +9 -8
  907. package/dist/esm/six-file-list.entry.js.map +1 -1
  908. package/dist/esm/six-file-upload.entry.js +121 -101
  909. package/dist/esm/six-file-upload.entry.js.map +1 -1
  910. package/dist/esm/six-footer.entry.js +10 -9
  911. package/dist/esm/six-footer.entry.js.map +1 -1
  912. package/dist/esm/six-group-label.entry.js +45 -43
  913. package/dist/esm/six-group-label.entry.js.map +1 -1
  914. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  915. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  916. package/dist/esm/six-header-item_2.entry.js +42 -0
  917. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  918. package/dist/esm/six-header-menu-button.entry.js +19 -0
  919. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  920. package/dist/esm/six-header.entry.js +190 -136
  921. package/dist/esm/six-header.entry.js.map +1 -1
  922. package/dist/esm/six-icon-button.entry.js +40 -33
  923. package/dist/esm/six-icon-button.entry.js.map +1 -1
  924. package/dist/esm/six-icon.entry.js +24 -23
  925. package/dist/esm/six-icon.entry.js.map +1 -1
  926. package/dist/esm/six-input.entry.js +197 -243
  927. package/dist/esm/six-input.entry.js.map +1 -1
  928. package/dist/esm/six-item-picker.entry.js +415 -337
  929. package/dist/esm/six-item-picker.entry.js.map +1 -1
  930. package/dist/esm/six-language-switcher.entry.js +53 -48
  931. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  932. package/dist/esm/six-layout-grid.entry.js +23 -20
  933. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  934. package/dist/esm/six-main-container.entry.js +11 -10
  935. package/dist/esm/six-main-container.entry.js.map +1 -1
  936. package/dist/esm/six-menu-divider.entry.js +10 -9
  937. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  938. package/dist/esm/six-menu-label.entry.js +10 -9
  939. package/dist/esm/six-menu-label.entry.js.map +1 -1
  940. package/dist/esm/six-picto.entry.js +16 -12
  941. package/dist/esm/six-picto.entry.js.map +1 -1
  942. package/dist/esm/six-progress-bar.entry.js +17 -16
  943. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  944. package/dist/esm/six-progress-ring.entry.js +31 -30
  945. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  946. package/dist/esm/six-radio.entry.js +106 -114
  947. package/dist/esm/six-radio.entry.js.map +1 -1
  948. package/dist/esm/six-range.entry.js +200 -185
  949. package/dist/esm/six-range.entry.js.map +1 -1
  950. package/dist/esm/six-root.entry.js +13 -31
  951. package/dist/esm/six-root.entry.js.map +1 -1
  952. package/dist/esm/six-search-field.entry.js +46 -40
  953. package/dist/esm/six-search-field.entry.js.map +1 -1
  954. package/dist/esm/six-select.entry.js +538 -394
  955. package/dist/esm/six-select.entry.js.map +1 -1
  956. package/dist/esm/six-sidebar-item-group.entry.js +58 -42
  957. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  958. package/dist/esm/six-sidebar-item.entry.js +19 -16
  959. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  960. package/dist/esm/six-sidebar.entry.js +178 -156
  961. package/dist/esm/six-sidebar.entry.js.map +1 -1
  962. package/dist/esm/six-spinner.entry.js +50 -16
  963. package/dist/esm/six-spinner.entry.js.map +1 -1
  964. package/dist/esm/six-stage-indicator.entry.js +19 -0
  965. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  966. package/dist/esm/six-switch.entry.js +109 -96
  967. package/dist/esm/six-switch.entry.js.map +1 -1
  968. package/dist/esm/six-tab-group.entry.js +251 -212
  969. package/dist/esm/six-tab-group.entry.js.map +1 -1
  970. package/dist/esm/six-tab-panel.entry.js +16 -15
  971. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  972. package/dist/esm/six-tab.entry.js +57 -38
  973. package/dist/esm/six-tab.entry.js.map +1 -1
  974. package/dist/esm/six-tag.entry.js +57 -37
  975. package/dist/esm/six-tag.entry.js.map +1 -1
  976. package/dist/esm/six-textarea.entry.js +184 -206
  977. package/dist/esm/six-textarea.entry.js.map +1 -1
  978. package/dist/esm/six-tile.entry.js +77 -79
  979. package/dist/esm/six-tile.entry.js.map +1 -1
  980. package/dist/esm/six-timepicker.entry.js +346 -406
  981. package/dist/esm/six-timepicker.entry.js.map +1 -1
  982. package/dist/esm/six-tooltip.entry.js +147 -149
  983. package/dist/esm/six-tooltip.entry.js.map +1 -1
  984. package/dist/esm/slot-56531341.js +47 -0
  985. package/dist/esm/slot-56531341.js.map +1 -0
  986. package/dist/esm/types-a07bb999.js +19 -0
  987. package/dist/esm/types-a07bb999.js.map +1 -0
  988. package/dist/esm/ui-library.js +14 -15
  989. package/dist/esm/ui-library.js.map +1 -1
  990. package/dist/types/components/six-alert/six-alert.d.ts +47 -42
  991. package/dist/types/components/six-avatar/six-avatar.d.ts +11 -12
  992. package/dist/types/components/six-badge/six-badge.d.ts +7 -8
  993. package/dist/types/components/six-button/six-button.d.ts +48 -49
  994. package/dist/types/components/six-card/six-card.d.ts +1 -1
  995. package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -67
  996. package/dist/types/components/six-datepicker/components/day-selection.d.ts +9 -5
  997. package/dist/types/components/six-datepicker/components/month-selection.d.ts +8 -5
  998. package/dist/types/components/six-datepicker/components/year-selection.d.ts +7 -5
  999. package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
  1000. package/dist/types/components/six-datepicker/six-datepicker.d.ts +189 -198
  1001. package/dist/types/components/six-details/six-details.d.ts +42 -42
  1002. package/dist/types/components/six-dialog/six-dialog.d.ts +51 -51
  1003. package/dist/types/components/six-drawer/six-drawer.d.ts +58 -59
  1004. package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -116
  1005. package/dist/types/components/six-error/six-error.d.ts +9 -0
  1006. package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
  1007. package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
  1008. package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
  1009. package/dist/types/components/six-file-upload/six-file-upload.d.ts +43 -33
  1010. package/dist/types/components/six-footer/six-footer.d.ts +1 -1
  1011. package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
  1012. package/dist/types/components/six-header/six-header.d.ts +127 -71
  1013. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  1014. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  1015. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  1016. package/dist/types/components/six-icon/six-icon.d.ts +5 -5
  1017. package/dist/types/components/six-icon-button/six-icon-button.d.ts +24 -18
  1018. package/dist/types/components/six-input/six-input.d.ts +120 -129
  1019. package/dist/types/components/six-item-picker/six-item-picker.d.ts +97 -93
  1020. package/dist/types/components/six-item-picker/types.d.ts +7 -7
  1021. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
  1022. package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
  1023. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  1024. package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
  1025. package/dist/types/components/six-menu/six-menu.d.ts +67 -64
  1026. package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
  1027. package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
  1028. package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
  1029. package/dist/types/components/six-picto/six-picto.d.ts +6 -6
  1030. package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
  1031. package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
  1032. package/dist/types/components/six-radio/six-radio.d.ts +38 -49
  1033. package/dist/types/components/six-range/six-range.d.ts +77 -83
  1034. package/dist/types/components/six-root/six-root.d.ts +10 -23
  1035. package/dist/types/components/six-search-field/six-search-field.d.ts +20 -21
  1036. package/dist/types/components/six-select/six-select.d.ts +135 -136
  1037. package/dist/types/components/six-select/util.d.ts +9 -0
  1038. package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
  1039. package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
  1040. package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +26 -19
  1041. package/dist/types/components/six-spinner/six-spinner.d.ts +26 -5
  1042. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
  1043. package/dist/types/components/six-switch/six-switch.d.ts +49 -45
  1044. package/dist/types/components/six-tab/six-tab.d.ts +20 -20
  1045. package/dist/types/components/six-tab-group/six-tab-group.d.ts +39 -40
  1046. package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
  1047. package/dist/types/components/six-tag/six-tag.d.ts +20 -14
  1048. package/dist/types/components/six-textarea/six-textarea.d.ts +89 -114
  1049. package/dist/types/components/six-tile/six-tile.d.ts +31 -32
  1050. package/dist/types/components/six-timepicker/six-timepicker.d.ts +156 -170
  1051. package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -57
  1052. package/dist/types/components.d.ts +990 -476
  1053. package/dist/types/functional-components/form-control/form-control.d.ts +34 -31
  1054. package/dist/types/index.d.ts +2 -0
  1055. package/dist/types/stencil-public-runtime.d.ts +52 -15
  1056. package/dist/types/testUtil/delay.d.ts +1 -1
  1057. package/dist/types/types.d.ts +3 -0
  1058. package/dist/types/utils/alert.d.ts +10 -0
  1059. package/dist/types/utils/animation.d.ts +12 -0
  1060. package/dist/types/utils/date-util.d.ts +73 -57
  1061. package/dist/types/utils/error-messages.d.ts +44 -0
  1062. package/dist/types/utils/event-listeners.d.ts +11 -10
  1063. package/dist/types/utils/execution-control.d.ts +1 -3
  1064. package/dist/types/utils/focus-visible.d.ts +2 -2
  1065. package/dist/types/utils/form.d.ts +1 -0
  1066. package/dist/types/utils/modal.d.ts +8 -8
  1067. package/dist/types/utils/offset.d.ts +2 -2
  1068. package/dist/types/utils/popover.d.ts +22 -22
  1069. package/dist/types/utils/popup.d.ts +9 -0
  1070. package/dist/types/utils/slot.d.ts +2 -8
  1071. package/dist/types/utils/tabbable.d.ts +1 -1
  1072. package/dist/types/utils/time.util.d.ts +18 -9
  1073. package/dist/types/utils/type-check.d.ts +3 -4
  1074. package/dist/types/utils/types.d.ts +1 -1
  1075. package/dist/ui-library/assets/TRADEMARKS.md +3 -3
  1076. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  1077. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  1078. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  1079. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  1080. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  1081. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  1082. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  1083. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  1084. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  1085. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  1086. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  1087. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  1088. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  1089. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  1090. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  1091. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  1092. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  1093. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  1094. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  1095. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  1096. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  1097. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  1098. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  1099. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  1100. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  1101. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  1102. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  1103. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  1104. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  1105. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  1106. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  1107. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  1108. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  1109. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  1110. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  1111. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  1112. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  1113. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  1114. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  1115. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  1116. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  1117. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  1118. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  1119. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  1120. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  1121. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  1122. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  1123. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  1124. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  1125. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  1126. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  1127. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  1128. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  1129. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  1130. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  1131. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  1132. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  1133. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  1134. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  1135. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  1136. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  1137. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  1138. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  1139. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  1140. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  1141. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  1142. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  1143. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  1144. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  1145. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  1146. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  1147. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  1148. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  1149. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  1150. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  1151. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  1152. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  1153. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  1154. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  1155. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  1156. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  1157. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  1158. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  1159. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  1160. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  1161. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  1162. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  1163. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  1164. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  1165. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  1166. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  1167. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  1168. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  1169. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  1170. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  1171. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  1172. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  1173. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  1174. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  1175. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  1176. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  1177. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  1178. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  1179. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  1180. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  1181. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  1182. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  1183. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  1184. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  1185. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  1186. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  1187. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  1188. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  1189. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  1190. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  1191. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  1192. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  1193. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  1194. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  1195. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  1196. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  1197. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  1198. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  1199. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  1200. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  1201. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  1202. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  1203. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  1204. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  1205. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  1206. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  1207. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  1208. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  1209. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  1210. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  1211. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  1212. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  1213. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  1214. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  1215. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  1216. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  1217. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  1218. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  1219. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  1220. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  1221. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  1222. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  1223. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  1224. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  1225. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  1226. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  1227. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  1228. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  1229. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  1230. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  1231. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  1232. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  1233. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  1234. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  1235. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  1236. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  1237. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  1238. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  1239. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  1240. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  1241. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  1242. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  1243. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  1244. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  1245. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  1246. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  1247. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  1248. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  1249. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  1250. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  1251. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  1252. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  1253. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  1254. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  1255. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  1256. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  1257. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  1258. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  1259. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  1260. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  1261. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  1262. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  1263. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  1264. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  1265. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  1266. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  1267. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  1268. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  1269. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  1270. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  1271. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  1272. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  1273. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  1274. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  1275. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  1276. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  1277. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  1278. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  1279. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  1280. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  1281. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  1282. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  1283. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  1284. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  1285. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  1286. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  1287. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  1288. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  1289. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  1290. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  1291. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  1292. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  1293. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  1294. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  1295. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  1296. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  1297. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  1298. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  1299. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  1300. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  1301. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  1302. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  1303. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  1304. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  1305. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  1306. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  1307. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  1308. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  1309. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  1310. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  1311. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  1312. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  1313. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  1314. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  1315. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  1316. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  1317. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  1318. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  1319. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  1320. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  1321. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  1322. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  1323. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  1324. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  1325. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  1326. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  1327. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  1328. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  1329. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  1330. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  1331. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  1332. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  1333. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  1334. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  1335. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  1336. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  1337. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  1338. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  1339. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  1340. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  1341. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  1342. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  1343. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  1344. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  1345. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  1346. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  1347. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  1348. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  1349. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  1350. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  1351. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  1352. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  1353. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  1354. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  1355. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  1356. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  1357. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  1358. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  1359. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  1360. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  1361. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  1362. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  1363. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  1364. package/dist/ui-library/index.esm.js +1 -1
  1365. package/dist/ui-library/index.esm.js.map +1 -1
  1366. package/dist/ui-library/p-03acec96.entry.js +2 -0
  1367. package/dist/ui-library/p-03acec96.entry.js.map +1 -0
  1368. package/dist/ui-library/p-06ba4450.js +2 -0
  1369. package/dist/ui-library/p-06ba4450.js.map +1 -0
  1370. package/dist/ui-library/p-06d562b7.entry.js +2 -0
  1371. package/dist/ui-library/p-06d562b7.entry.js.map +1 -0
  1372. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  1373. package/dist/ui-library/p-07b6203f.entry.js.map +1 -0
  1374. package/dist/ui-library/p-0a6b6429.entry.js +2 -0
  1375. package/dist/ui-library/p-0a6b6429.entry.js.map +1 -0
  1376. package/dist/ui-library/p-0cebf1d2.js +2 -0
  1377. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  1378. package/dist/ui-library/p-14d09601.entry.js +2 -0
  1379. package/dist/ui-library/p-14d09601.entry.js.map +1 -0
  1380. package/dist/ui-library/p-171df3ad.entry.js +2 -0
  1381. package/dist/ui-library/p-171df3ad.entry.js.map +1 -0
  1382. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  1383. package/dist/ui-library/p-1cc3b56d.entry.js.map +1 -0
  1384. package/dist/ui-library/p-1cd09d9b.entry.js +2 -0
  1385. package/dist/ui-library/p-1cd09d9b.entry.js.map +1 -0
  1386. package/dist/ui-library/p-1f7a0cb5.entry.js +2 -0
  1387. package/dist/ui-library/p-1f7a0cb5.entry.js.map +1 -0
  1388. package/dist/ui-library/p-2355c444.entry.js +2 -0
  1389. package/dist/ui-library/p-2355c444.entry.js.map +1 -0
  1390. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  1391. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  1392. package/dist/ui-library/p-2ad904a7.entry.js +2 -0
  1393. package/dist/ui-library/p-2ad904a7.entry.js.map +1 -0
  1394. package/dist/ui-library/p-30000e86.entry.js +2 -0
  1395. package/dist/ui-library/p-30000e86.entry.js.map +1 -0
  1396. package/dist/ui-library/p-42cd3588.entry.js +2 -0
  1397. package/dist/ui-library/p-42cd3588.entry.js.map +1 -0
  1398. package/dist/ui-library/p-48118ce8.js +3 -0
  1399. package/dist/ui-library/p-48118ce8.js.map +1 -0
  1400. package/dist/ui-library/p-49019d6c.entry.js +2 -0
  1401. package/dist/ui-library/p-49019d6c.entry.js.map +1 -0
  1402. package/dist/ui-library/p-4d72b179.entry.js +2 -0
  1403. package/dist/ui-library/p-4d72b179.entry.js.map +1 -0
  1404. package/dist/ui-library/p-4de4ee7a.entry.js +2 -0
  1405. package/dist/ui-library/p-4de4ee7a.entry.js.map +1 -0
  1406. package/dist/ui-library/p-4edde816.entry.js +2 -0
  1407. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  1408. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  1409. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  1410. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1411. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1412. package/dist/ui-library/p-5ece7986.entry.js +2 -0
  1413. package/dist/ui-library/p-5ece7986.entry.js.map +1 -0
  1414. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1415. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1416. package/dist/ui-library/p-5fc9cd7b.entry.js +2 -0
  1417. package/dist/ui-library/p-5fc9cd7b.entry.js.map +1 -0
  1418. package/dist/ui-library/p-618bf750.entry.js +2 -0
  1419. package/dist/ui-library/p-618bf750.entry.js.map +1 -0
  1420. package/dist/ui-library/p-62a1f514.entry.js +2 -0
  1421. package/dist/ui-library/p-62a1f514.entry.js.map +1 -0
  1422. package/dist/ui-library/p-651293e7.js +2 -0
  1423. package/dist/ui-library/p-651293e7.js.map +1 -0
  1424. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1425. package/dist/ui-library/p-6513b8ce.entry.js.map +1 -0
  1426. package/dist/ui-library/p-6795e0a9.entry.js +2 -0
  1427. package/dist/ui-library/p-6795e0a9.entry.js.map +1 -0
  1428. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1429. package/dist/ui-library/p-6ec126f7.entry.js.map +1 -0
  1430. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1431. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1432. package/dist/ui-library/p-70fac778.entry.js +2 -0
  1433. package/dist/ui-library/p-70fac778.entry.js.map +1 -0
  1434. package/dist/ui-library/p-7afdff5c.entry.js +2 -0
  1435. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1436. package/dist/ui-library/p-7eb9ae75.entry.js +2 -0
  1437. package/dist/ui-library/p-7eb9ae75.entry.js.map +1 -0
  1438. package/dist/ui-library/p-7f856f00.js +2 -0
  1439. package/dist/ui-library/p-7f856f00.js.map +1 -0
  1440. package/dist/ui-library/{p-eb8f05a9.js → p-8227aaed.js} +2 -2
  1441. package/dist/ui-library/p-8227aaed.js.map +1 -0
  1442. package/dist/ui-library/p-842b492e.js +2 -0
  1443. package/dist/ui-library/p-842b492e.js.map +1 -0
  1444. package/dist/ui-library/{p-25a3bf57.js → p-862d474e.js} +1 -1
  1445. package/dist/ui-library/p-862d474e.js.map +1 -0
  1446. package/dist/ui-library/p-870139dc.entry.js +2 -0
  1447. package/dist/ui-library/p-870139dc.entry.js.map +1 -0
  1448. package/dist/ui-library/p-8bfb4bfc.js +2 -0
  1449. package/dist/ui-library/p-8bfb4bfc.js.map +1 -0
  1450. package/dist/ui-library/p-a04460e3.js +2 -0
  1451. package/dist/ui-library/p-a04460e3.js.map +1 -0
  1452. package/dist/ui-library/p-a1502802.js +2 -0
  1453. package/dist/ui-library/p-a1502802.js.map +1 -0
  1454. package/dist/ui-library/p-a20a702a.entry.js +2 -0
  1455. package/dist/ui-library/p-a20a702a.entry.js.map +1 -0
  1456. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1457. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1458. package/dist/ui-library/p-afb15ea4.entry.js +2 -0
  1459. package/dist/ui-library/p-afb15ea4.entry.js.map +1 -0
  1460. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1461. package/dist/ui-library/p-b361d5da.entry.js.map +1 -0
  1462. package/dist/ui-library/p-bfb398c6.entry.js +2 -0
  1463. package/dist/ui-library/p-bfb398c6.entry.js.map +1 -0
  1464. package/dist/ui-library/p-cd65e3b2.entry.js +2 -0
  1465. package/dist/ui-library/p-cd65e3b2.entry.js.map +1 -0
  1466. package/dist/ui-library/p-cd79700c.entry.js +2 -0
  1467. package/dist/ui-library/p-cd79700c.entry.js.map +1 -0
  1468. package/dist/ui-library/p-cdc9224d.entry.js +2 -0
  1469. package/dist/ui-library/p-cdc9224d.entry.js.map +1 -0
  1470. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1471. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1472. package/dist/ui-library/{p-19364560.entry.js → p-d46acf21.entry.js} +2 -2
  1473. package/dist/ui-library/p-d46acf21.entry.js.map +1 -0
  1474. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1475. package/dist/ui-library/p-d67b8482.entry.js.map +1 -0
  1476. package/dist/ui-library/p-db193a32.entry.js +2 -0
  1477. package/dist/ui-library/p-db193a32.entry.js.map +1 -0
  1478. package/dist/ui-library/p-e080d5b6.js +2 -0
  1479. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  1480. package/dist/ui-library/p-e1255160.js +2 -0
  1481. package/dist/ui-library/p-e1255160.js.map +1 -0
  1482. package/dist/ui-library/p-e1529ef6.entry.js +2 -0
  1483. package/dist/ui-library/p-e1529ef6.entry.js.map +1 -0
  1484. package/dist/ui-library/p-e181944f.entry.js +2 -0
  1485. package/dist/ui-library/p-e181944f.entry.js.map +1 -0
  1486. package/dist/ui-library/p-e6efc08a.entry.js +2 -0
  1487. package/dist/ui-library/p-e6efc08a.entry.js.map +1 -0
  1488. package/dist/ui-library/p-e9462085.entry.js +2 -0
  1489. package/dist/ui-library/p-e9462085.entry.js.map +1 -0
  1490. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1491. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1492. package/dist/ui-library/p-f12b22bc.entry.js +2 -0
  1493. package/dist/ui-library/p-f12b22bc.entry.js.map +1 -0
  1494. package/dist/ui-library/p-f136a6b2.js +2 -0
  1495. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  1496. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1497. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1498. package/dist/ui-library/p-ffce31da.entry.js +2 -0
  1499. package/dist/ui-library/p-ffce31da.entry.js.map +1 -0
  1500. package/dist/ui-library/ui-library.css +1 -10
  1501. package/dist/ui-library/ui-library.esm.js +1 -1
  1502. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1503. package/loader/cdn.js +1 -3
  1504. package/loader/index.cjs.js +1 -3
  1505. package/loader/index.d.ts +4 -1
  1506. package/loader/index.es2017.js +1 -3
  1507. package/loader/index.js +1 -3
  1508. package/package.json +19 -32
  1509. package/dist/cjs/event-listeners-74715e62.js +0 -45
  1510. package/dist/cjs/event-listeners-74715e62.js.map +0 -1
  1511. package/dist/cjs/execution-control-46f388e0.js.map +0 -1
  1512. package/dist/cjs/focus-visible-0b352c74.js +0 -47
  1513. package/dist/cjs/focus-visible-0b352c74.js.map +0 -1
  1514. package/dist/cjs/form-control-2c17c573.js +0 -34
  1515. package/dist/cjs/form-control-2c17c573.js.map +0 -1
  1516. package/dist/cjs/index-2f6daa5b.js +0 -2123
  1517. package/dist/cjs/index-2f6daa5b.js.map +0 -1
  1518. package/dist/cjs/modal-48d42228.js +0 -51
  1519. package/dist/cjs/modal-48d42228.js.map +0 -1
  1520. package/dist/cjs/popover-f743f62b.js.map +0 -1
  1521. package/dist/cjs/scroll-76e6f5d7.js +0 -69
  1522. package/dist/cjs/scroll-76e6f5d7.js.map +0 -1
  1523. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -71
  1524. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  1525. package/dist/cjs/six-dropdown_2.cjs.entry.js +0 -652
  1526. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1527. package/dist/cjs/six-form.cjs.entry.js +0 -231
  1528. package/dist/cjs/six-form.cjs.entry.js.map +0 -1
  1529. package/dist/cjs/six-menu-item.cjs.entry.js +0 -61
  1530. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  1531. package/dist/cjs/six-timepicker.types-c19ebff3.js +0 -56
  1532. package/dist/cjs/six-timepicker.types-c19ebff3.js.map +0 -1
  1533. package/dist/cjs/slot-ad537f24.js +0 -52
  1534. package/dist/cjs/slot-ad537f24.js.map +0 -1
  1535. package/dist/cjs/types-64878648.js +0 -17
  1536. package/dist/cjs/types-64878648.js.map +0 -1
  1537. package/dist/collection/components/six-form/six-form.css +0 -11
  1538. package/dist/collection/components/six-form/six-form.js +0 -419
  1539. package/dist/collection/components/six-form/six-form.js.map +0 -1
  1540. package/dist/collection/components/six-header/assets/six-logo.svg +0 -1
  1541. package/dist/collection/components/six-timepicker/six-time-format.js +0 -15
  1542. package/dist/collection/components/six-timepicker/six-time-format.js.map +0 -1
  1543. package/dist/collection/components/six-timepicker/six-timepicker.types.js +0 -41
  1544. package/dist/collection/components/six-timepicker/six-timepicker.types.js.map +0 -1
  1545. package/dist/collection/files/file-list.json +0 -308
  1546. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1547. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1548. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1549. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1550. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1551. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1552. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1553. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1554. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1555. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1556. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1557. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1558. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1559. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1560. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1561. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1562. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1563. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1564. package/dist/collection/utils/as-array.js +0 -2
  1565. package/dist/collection/utils/as-array.js.map +0 -1
  1566. package/dist/collection/utils/matchers.js +0 -3
  1567. package/dist/collection/utils/matchers.js.map +0 -1
  1568. package/dist/collection/utils/support.js +0 -16
  1569. package/dist/collection/utils/support.js.map +0 -1
  1570. package/dist/collection/utils/testing.js +0 -39
  1571. package/dist/collection/utils/testing.js.map +0 -1
  1572. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -72
  1573. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  1574. package/dist/components/set-attributes.js +0 -8
  1575. package/dist/components/set-attributes.js.map +0 -1
  1576. package/dist/components/set-attributes2.js +0 -69
  1577. package/dist/components/set-attributes2.js.map +0 -1
  1578. package/dist/components/six-form.js +0 -252
  1579. package/dist/components/six-form.js.map +0 -1
  1580. package/dist/components/six-tag2.js +0 -77
  1581. package/dist/components/six-tag2.js.map +0 -1
  1582. package/dist/esm/event-listeners-570a24ea.js +0 -43
  1583. package/dist/esm/event-listeners-570a24ea.js.map +0 -1
  1584. package/dist/esm/execution-control-1a60d709.js.map +0 -1
  1585. package/dist/esm/focus-visible-97933ea9.js +0 -45
  1586. package/dist/esm/focus-visible-97933ea9.js.map +0 -1
  1587. package/dist/esm/form-control-3b440ea1.js +0 -32
  1588. package/dist/esm/form-control-3b440ea1.js.map +0 -1
  1589. package/dist/esm/index-5c0f6628.js +0 -2094
  1590. package/dist/esm/index-5c0f6628.js.map +0 -1
  1591. package/dist/esm/modal-5ebdc320.js +0 -48
  1592. package/dist/esm/modal-5ebdc320.js.map +0 -1
  1593. package/dist/esm/polyfills/core-js.js +0 -11
  1594. package/dist/esm/polyfills/css-shim.js +0 -1
  1595. package/dist/esm/polyfills/dom.js +0 -79
  1596. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1597. package/dist/esm/polyfills/index.js +0 -34
  1598. package/dist/esm/polyfills/system.js +0 -6
  1599. package/dist/esm/popover-bd2c2fca.js.map +0 -1
  1600. package/dist/esm/scroll-180b53fd.js +0 -64
  1601. package/dist/esm/set-attributes_2.entry.js +0 -66
  1602. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  1603. package/dist/esm/six-dropdown_2.entry.js +0 -647
  1604. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1605. package/dist/esm/six-form.entry.js +0 -227
  1606. package/dist/esm/six-form.entry.js.map +0 -1
  1607. package/dist/esm/six-menu-item.entry.js +0 -57
  1608. package/dist/esm/six-menu-item.entry.js.map +0 -1
  1609. package/dist/esm/six-timepicker.types-e161a447.js +0 -50
  1610. package/dist/esm/six-timepicker.types-e161a447.js.map +0 -1
  1611. package/dist/esm/slot-6f3984c7.js +0 -47
  1612. package/dist/esm/slot-6f3984c7.js.map +0 -1
  1613. package/dist/esm/types-4b10b413.js +0 -17
  1614. package/dist/esm/types-4b10b413.js.map +0 -1
  1615. package/dist/types/components/six-form/six-form.d.ts +0 -69
  1616. package/dist/types/components/six-timepicker/six-time-format.d.ts +0 -13
  1617. package/dist/types/components/six-timepicker/six-timepicker.types.d.ts +0 -36
  1618. package/dist/types/utils/as-array.d.ts +0 -1
  1619. package/dist/types/utils/matchers.d.ts +0 -2
  1620. package/dist/types/utils/popper.d.ts +0 -33
  1621. package/dist/types/utils/support.d.ts +0 -1
  1622. package/dist/types/utils/testing.d.ts +0 -2
  1623. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  1624. package/dist/ui-library/assets/six-logo.svg +0 -1
  1625. package/dist/ui-library/files/file-list.json +0 -308
  1626. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1627. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1628. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1629. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1630. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1631. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1632. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1633. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1634. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1635. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1636. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1637. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1638. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1639. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1640. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1641. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1642. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1643. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1644. package/dist/ui-library/p-054e12cc.entry.js +0 -2
  1645. package/dist/ui-library/p-054e12cc.entry.js.map +0 -1
  1646. package/dist/ui-library/p-0786fa7c.js +0 -2
  1647. package/dist/ui-library/p-0786fa7c.js.map +0 -1
  1648. package/dist/ui-library/p-097cced4.entry.js +0 -2
  1649. package/dist/ui-library/p-097cced4.entry.js.map +0 -1
  1650. package/dist/ui-library/p-0d79b0c6.entry.js +0 -2
  1651. package/dist/ui-library/p-0d79b0c6.entry.js.map +0 -1
  1652. package/dist/ui-library/p-18e5f772.entry.js +0 -2
  1653. package/dist/ui-library/p-18e5f772.entry.js.map +0 -1
  1654. package/dist/ui-library/p-18ea0c56.js +0 -2
  1655. package/dist/ui-library/p-18ea0c56.js.map +0 -1
  1656. package/dist/ui-library/p-19364560.entry.js.map +0 -1
  1657. package/dist/ui-library/p-19b50b5a.entry.js +0 -2
  1658. package/dist/ui-library/p-19b50b5a.entry.js.map +0 -1
  1659. package/dist/ui-library/p-21859bca.entry.js +0 -2
  1660. package/dist/ui-library/p-21859bca.entry.js.map +0 -1
  1661. package/dist/ui-library/p-25a3bf57.js.map +0 -1
  1662. package/dist/ui-library/p-2e48c8d2.entry.js +0 -2
  1663. package/dist/ui-library/p-2e48c8d2.entry.js.map +0 -1
  1664. package/dist/ui-library/p-308261c4.entry.js +0 -2
  1665. package/dist/ui-library/p-308261c4.entry.js.map +0 -1
  1666. package/dist/ui-library/p-33f7e22b.entry.js +0 -2
  1667. package/dist/ui-library/p-33f7e22b.entry.js.map +0 -1
  1668. package/dist/ui-library/p-4ae91795.entry.js +0 -2
  1669. package/dist/ui-library/p-4ae91795.entry.js.map +0 -1
  1670. package/dist/ui-library/p-4f8394d7.js +0 -2
  1671. package/dist/ui-library/p-4f8394d7.js.map +0 -1
  1672. package/dist/ui-library/p-53a13db5.entry.js +0 -2
  1673. package/dist/ui-library/p-53a13db5.entry.js.map +0 -1
  1674. package/dist/ui-library/p-559c87f0.entry.js +0 -2
  1675. package/dist/ui-library/p-559c87f0.entry.js.map +0 -1
  1676. package/dist/ui-library/p-611e1978.entry.js +0 -2
  1677. package/dist/ui-library/p-611e1978.entry.js.map +0 -1
  1678. package/dist/ui-library/p-63703ba3.entry.js +0 -2
  1679. package/dist/ui-library/p-63703ba3.entry.js.map +0 -1
  1680. package/dist/ui-library/p-6403fd87.entry.js +0 -2
  1681. package/dist/ui-library/p-6403fd87.entry.js.map +0 -1
  1682. package/dist/ui-library/p-6433c0da.entry.js +0 -2
  1683. package/dist/ui-library/p-6433c0da.entry.js.map +0 -1
  1684. package/dist/ui-library/p-6d75f216.entry.js +0 -2
  1685. package/dist/ui-library/p-6d75f216.entry.js.map +0 -1
  1686. package/dist/ui-library/p-73597d13.entry.js +0 -2
  1687. package/dist/ui-library/p-73597d13.entry.js.map +0 -1
  1688. package/dist/ui-library/p-79eee01b.js +0 -2
  1689. package/dist/ui-library/p-79eee01b.js.map +0 -1
  1690. package/dist/ui-library/p-7e0cc4ae.entry.js +0 -2
  1691. package/dist/ui-library/p-7e0cc4ae.entry.js.map +0 -1
  1692. package/dist/ui-library/p-820c23f0.entry.js +0 -2
  1693. package/dist/ui-library/p-820c23f0.entry.js.map +0 -1
  1694. package/dist/ui-library/p-835c3ff7.entry.js +0 -2
  1695. package/dist/ui-library/p-835c3ff7.entry.js.map +0 -1
  1696. package/dist/ui-library/p-8a970a40.entry.js +0 -2
  1697. package/dist/ui-library/p-8a970a40.entry.js.map +0 -1
  1698. package/dist/ui-library/p-90824648.entry.js +0 -2
  1699. package/dist/ui-library/p-90824648.entry.js.map +0 -1
  1700. package/dist/ui-library/p-90dc6af4.entry.js +0 -2
  1701. package/dist/ui-library/p-90dc6af4.entry.js.map +0 -1
  1702. package/dist/ui-library/p-9328e5bc.entry.js +0 -2
  1703. package/dist/ui-library/p-9328e5bc.entry.js.map +0 -1
  1704. package/dist/ui-library/p-97323ad7.entry.js +0 -2
  1705. package/dist/ui-library/p-97323ad7.entry.js.map +0 -1
  1706. package/dist/ui-library/p-9a860acc.js +0 -2
  1707. package/dist/ui-library/p-9a860acc.js.map +0 -1
  1708. package/dist/ui-library/p-9d1d222f.entry.js +0 -2
  1709. package/dist/ui-library/p-9d1d222f.entry.js.map +0 -1
  1710. package/dist/ui-library/p-a1d4f6cf.entry.js +0 -2
  1711. package/dist/ui-library/p-a1d4f6cf.entry.js.map +0 -1
  1712. package/dist/ui-library/p-ac4f4d45.js +0 -3
  1713. package/dist/ui-library/p-ac4f4d45.js.map +0 -1
  1714. package/dist/ui-library/p-af793d04.entry.js +0 -2
  1715. package/dist/ui-library/p-af793d04.entry.js.map +0 -1
  1716. package/dist/ui-library/p-b0e5658f.entry.js +0 -2
  1717. package/dist/ui-library/p-b0e5658f.entry.js.map +0 -1
  1718. package/dist/ui-library/p-b1e66136.js +0 -2
  1719. package/dist/ui-library/p-b1e66136.js.map +0 -1
  1720. package/dist/ui-library/p-b4dfb7cf.js +0 -2
  1721. package/dist/ui-library/p-b4dfb7cf.js.map +0 -1
  1722. package/dist/ui-library/p-b997e43c.entry.js +0 -2
  1723. package/dist/ui-library/p-b997e43c.entry.js.map +0 -1
  1724. package/dist/ui-library/p-baa03951.entry.js +0 -2
  1725. package/dist/ui-library/p-baa03951.entry.js.map +0 -1
  1726. package/dist/ui-library/p-c0cb6436.entry.js +0 -2
  1727. package/dist/ui-library/p-c0cb6436.entry.js.map +0 -1
  1728. package/dist/ui-library/p-c30f9e0b.entry.js +0 -2
  1729. package/dist/ui-library/p-c30f9e0b.entry.js.map +0 -1
  1730. package/dist/ui-library/p-c349d1d4.entry.js +0 -2
  1731. package/dist/ui-library/p-c349d1d4.entry.js.map +0 -1
  1732. package/dist/ui-library/p-c53a63f9.entry.js +0 -2
  1733. package/dist/ui-library/p-c53a63f9.entry.js.map +0 -1
  1734. package/dist/ui-library/p-c640c2d8.entry.js +0 -2
  1735. package/dist/ui-library/p-c640c2d8.entry.js.map +0 -1
  1736. package/dist/ui-library/p-c94d0b07.entry.js +0 -2
  1737. package/dist/ui-library/p-c94d0b07.entry.js.map +0 -1
  1738. package/dist/ui-library/p-d12c6092.js +0 -2
  1739. package/dist/ui-library/p-d12c6092.js.map +0 -1
  1740. package/dist/ui-library/p-d5633a29.entry.js +0 -2
  1741. package/dist/ui-library/p-d5633a29.entry.js.map +0 -1
  1742. package/dist/ui-library/p-dd3c76f1.entry.js +0 -2
  1743. package/dist/ui-library/p-dd3c76f1.entry.js.map +0 -1
  1744. package/dist/ui-library/p-df655bc9.entry.js +0 -2
  1745. package/dist/ui-library/p-df655bc9.entry.js.map +0 -1
  1746. package/dist/ui-library/p-e19a6c95.entry.js +0 -2
  1747. package/dist/ui-library/p-e19a6c95.entry.js.map +0 -1
  1748. package/dist/ui-library/p-e9e930d2.entry.js +0 -2
  1749. package/dist/ui-library/p-e9e930d2.entry.js.map +0 -1
  1750. package/dist/ui-library/p-eb8f05a9.js.map +0 -1
  1751. package/dist/ui-library/p-edc96efc.entry.js +0 -2
  1752. package/dist/ui-library/p-edc96efc.entry.js.map +0 -1
  1753. package/dist/ui-library/p-f18ba86f.entry.js +0 -2
  1754. package/dist/ui-library/p-f18ba86f.entry.js.map +0 -1
  1755. package/dist/ui-library/p-f4938771.entry.js +0 -2
  1756. package/dist/ui-library/p-f4938771.entry.js.map +0 -1
  1757. package/dist/ui-library/p-f70e2403.entry.js +0 -2
  1758. package/dist/ui-library/p-f70e2403.entry.js.map +0 -1
  1759. package/dist/ui-library/p-f9d345e0.entry.js +0 -2
  1760. package/dist/ui-library/p-f9d345e0.entry.js.map +0 -1
  1761. package/dist/ui-library/p-fed07a1f.entry.js +0 -2
  1762. package/dist/ui-library/p-fed07a1f.entry.js.map +0 -1
  1763. package/dist/ui-library/p-ff0257bf.entry.js +0 -2
  1764. package/dist/ui-library/p-ff0257bf.entry.js.map +0 -1
  1765. package/readme.md +0 -156
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixButtonCss","SixButton","connectedCallback","this","handleBlur","bind","handleFocus","handleClick","handleSlotChange","componentWillLoad","async","options","button","focus","blur","hasLabel","hasSlot","host","hasPrefix","hasSuffix","hasFocus","sixBlur","emit","sixFocus","event","disabled","loading","preventDefault","stopPropagation","render","isLink","href","isButton","Button","h","onClick","class","ref","el","part","type","size","caret","circle","pill","submit","reset","name","value","target","download","rel","onBlur","onFocus","onSlotchange","viewBox","fill","stroke","points"],"sources":["./src/components/six-button/six-button.scss?tag=six-button&encapsulation=shadow","./src/components/six-button/six-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n width: auto;\n cursor: pointer;\n}\n\n.button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--six-border-width);\n border-radius: 0;\n font-family: var(--six-font-family);\n font-weight: var(--six-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition: var(--six-transition-fast) background-color, var(--six-transition-fast) color,\n var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;\n cursor: inherit;\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &.button--disabled {\n pointer-events: none;\n }\n\n // Clicks on icons shouldn't prevent the button from gaining focus\n ::slotted(six-icon) {\n pointer-events: none;\n }\n}\n\n.button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.button__prefix,\n.button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Standard buttons\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button {\n &.button--secondary {\n background-color: var(--six-color-white);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-900);\n border-width: var(--six-focus-ring-width);\n }\n }\n\n &.button--primary {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-800);\n border-color: var(--six-color-web-rock-800);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n opacity: 70%;\n }\n }\n\n &.button--link {\n background-color: transparent;\n border-color: transparent;\n color: var(--six-color-action-500);\n\n &.button--disabled {\n color: var(--six-color-web-rock-400);\n }\n\n &:hover:not(.button--disabled) {\n color: var(--six-color-action-600);\n }\n\n &:focus:not(.button--disabled) {\n border-color: var(--six-color-web-rock-400);\n }\n\n &:active:not(.button--disabled) {\n color: var(--six-color-action-light-to-be-defined);\n }\n }\n\n &.button--danger {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-danger-900);\n border-color: var(--six-color-danger-900);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n opacity: 70%;\n }\n }\n\n &.button--warning {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-warning-800);\n border-color: var(--six-color-warning-800);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n opacity: 70%;\n }\n }\n\n &.button--success {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-success-600);\n border-color: var(--six-color-success-600);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n opacity: 70%;\n }\n }\n\n &.button--action {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-action-600);\n border-color: var(--six-color-action-600);\n }\n\n &:focus:not(.button--disabled) {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-web-rock-400);\n box-shadow: var(--six-button-focus-shadow);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n opacity: 70%;\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--small {\n font-size: var(--six-button-font-size-small);\n height: var(--six-height-small);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n}\n\n.button--medium {\n font-size: var(--six-button-font-size-medium);\n height: var(--six-height-medium);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n}\n\n.button--large {\n font-size: var(--six-button-font-size-large);\n height: var(--six-height-large);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--pill {\n &.button--small {\n border-radius: var(--six-height-small);\n }\n\n &.button--medium {\n border-radius: var(--six-height-medium);\n }\n\n &.button--large {\n border-radius: var(--six-height-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Circle modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--circle {\n padding-left: 0;\n padding-right: 0;\n font-size: revert;\n\n &.button--small {\n width: var(--six-height-small);\n border-radius: 50%;\n }\n\n &.button--medium {\n width: var(--six-height-medium);\n border-radius: 50%;\n }\n\n &.button--large {\n width: var(--six-height-large);\n border-radius: 50%;\n }\n\n .button__prefix,\n .button__suffix,\n .button__caret {\n display: none;\n\n svg {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Caret modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--caret {\n .button__suffix {\n display: none;\n }\n\n .button__caret {\n display: flex;\n align-items: center;\n\n svg {\n color: var(--six-color-web-rock-900);\n width: 1em;\n height: 1em;\n }\n }\n}\n\n.button--primary,\n.button--action,\n.button--danger {\n .button__caret {\n svg {\n color: var(--six-color-white);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Loading modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--loading {\n position: relative;\n cursor: wait;\n\n .button__prefix,\n .button__label,\n .button__suffix,\n .button__caret {\n visibility: hidden;\n }\n\n six-spinner {\n --indicator-color: currentColor;\n position: absolute;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Badges\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n transform: translateY(-50%) translateX(50%);\n pointer-events: none;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Button spacing\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--has-label {\n &.button--small .button__label {\n padding: 0 var(--six-spacing-small);\n }\n\n &.button--medium .button__label {\n padding: 0 var(--six-spacing-medium);\n }\n\n &.button--large .button__label {\n padding: 0 var(--six-spacing-large);\n }\n}\n\n.button--has-prefix {\n &.button--small {\n padding-left: var(--six-spacing-x-small);\n\n .button__label {\n padding-left: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n}\n\n.button--has-suffix,\n.button--caret {\n &.button--small {\n padding-right: var(--six-spacing-x-small);\n\n .button__label {\n padding-right: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n}\n","import { Component, Element, h, Method, Prop, State, Event, EventEmitter } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The button's label.\n * @slot prefix - Used to prepend an icon or similar element to the button.\n * @slot suffix - Used to append an icon or similar element to the button.\n *\n * @part base - The component's base wrapper.\n * @part prefix - The prefix container.\n * @part label - The button's label.\n * @part suffix - The suffix container.\n * @part caret - The button's caret.\n */\n\n@Component({\n tag: 'six-button',\n styleUrl: 'six-button.scss',\n shadow: true,\n})\nexport class SixButton {\n button: HTMLButtonElement;\n\n @Element() host: HTMLSixButtonElement;\n\n @State() hasFocus = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n\n /** The button's type. */\n @Prop({ reflect: true }) type: 'secondary' | 'primary' | 'link' | 'success' | 'warning' | 'danger' | 'action' =\n 'primary';\n\n /** The button's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw the button with a caret for use with dropdowns, popovers, etc. */\n @Prop() caret = false;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to draw the button in a loading state. */\n @Prop({ reflect: true }) loading = false;\n\n /** Set to true to draw a pill-style button with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to draw a circle button. */\n @Prop({ reflect: true }) circle = false;\n\n /** Indicates if activating the button should submit the form. Ignored when `href` is set. */\n @Prop({ reflect: true }) submit = false;\n\n /** Indicates if activating the button should reset the form. */\n @Prop({ reflect: true }) reset = false;\n\n /** An optional name for the button. Ignored when `href` is set. */\n @Prop() name: string;\n\n /** An optional value for the button. Ignored when `href` is set. */\n @Prop() value: string;\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @Prop() href: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @Prop() target: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @Prop() download: string;\n\n /** Emitted when the button loses focus. */\n @Event({ eventName: 'six-button-blur' }) sixBlur: EventEmitter<EmptyPayload>;\n\n /** Emitted when the button gains focus. */\n @Event({ eventName: 'six-button-focus' }) sixFocus: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleClick = this.handleClick.bind(this);\n this.handleSlotChange = this.handleSlotChange.bind(this);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.button.blur();\n }\n\n handleSlotChange() {\n this.hasLabel = hasSlot(this.host);\n this.hasPrefix = hasSlot(this.host, 'prefix');\n this.hasSuffix = hasSlot(this.host, 'suffix');\n }\n\n handleBlur() {\n this.hasFocus = false;\n this.sixBlur.emit();\n }\n\n handleFocus() {\n this.hasFocus = true;\n this.sixFocus.emit();\n }\n\n handleClick(event: MouseEvent) {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n render() {\n const isLink = !!this.href;\n const isButton = !isLink;\n const Button = isLink ? 'a' : 'button';\n\n return (\n <div onClick={this.handleClick} class={{ 'button-wrapper--disabled': this.disabled }}>\n <Button\n ref={(el) => (this.button = el)}\n part=\"base\"\n class={{\n button: true,\n\n // Types\n 'button--secondary': this.type === 'secondary',\n 'button--primary': this.type === 'primary',\n 'button--link': this.type === 'link',\n 'button--success': this.type === 'success',\n 'button--warning': this.type === 'warning',\n 'button--danger': this.type === 'danger',\n 'button--action': this.type === 'action',\n\n // Sizes\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n\n // Modifiers\n 'button--caret': this.caret,\n 'button--circle': this.circle,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--pill': this.pill,\n 'button--has-label': this.hasLabel,\n 'button--has-prefix': this.hasPrefix,\n 'button--has-suffix': this.hasSuffix,\n }}\n disabled={isButton ? this.disabled : null}\n type={isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : null}\n name={isButton ? this.name : null}\n value={isButton ? this.value : null}\n href={isLink && this.href}\n target={isLink && this.target ? this.target : null}\n download={isLink && this.download ? this.download : null}\n rel={isLink && this.target ? 'noreferrer noopener' : null}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onClick={this.handleClick}\n data-testid=\"button\"\n >\n <span part=\"prefix\" class=\"button__prefix\">\n <slot onSlotchange={this.handleSlotChange} name=\"prefix\" />\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot onSlotchange={this.handleSlotChange} />\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot onSlotchange={this.handleSlotChange} name=\"suffix\" />\n </span>\n {this.caret && (\n <span part=\"caret\" class=\"button__caret\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n )}\n\n {this.loading && <six-spinner />}\n </Button>\n </div>\n );\n }\n}\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D,QAAO,kBACN,SAEhBvB,EAAA,YAAUwB,OAAO,qBAKtBvD,KAAKuB,SAAWQ,EAAA,qB"}
@@ -1,2 +0,0 @@
1
- const o=new WeakMap;function e(e){if(!e)return;const n=["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageDown","PageUp"];const s=o=>{if(n.includes(o.key)){e.classList.add("focus-visible")}};const i=()=>e.classList.remove("focus-visible");o.set(e,{is:s,isNot:i});e.addEventListener("keydown",s);e.addEventListener("keyup",s);e.addEventListener("mousedown",i);e.addEventListener("mousedown",i)}function n(e){if(!e)return;const n=o.get(e);if(!n){return}const{is:s,isNot:i}=n;e.classList.remove("focus-visible");e.removeEventListener("keydown",s);e.removeEventListener("keyup",s);e.removeEventListener("mousedown",i);e.removeEventListener("mousedown",i)}const s={observe:e,unobserve:n};export{s as f};
2
- //# sourceMappingURL=p-b1e66136.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["listeners","WeakMap","observe","el","keys","is","event","includes","key","classList","add","isNot","remove","set","addEventListener","unobserve","listener","get","removeEventListener","focusVisible"],"sources":["./src/utils/focus-visible.ts"],"sourcesContent":["//\n// Simulates :focus-visible behavior on an element by watching for certain keyboard and mouse heuristics and toggling a\n// `focus-visible` class. Works at the component level so no global polyfill is necessary.\n//\n// This will eventually be removed pending better :focus-visible support: https://caniuse.com/#search=focus-visible\n//\nconst listeners = new WeakMap();\n\nexport function observe(el: HTMLElement) {\n if (!el) return;\n\n const keys = ['Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageDown', 'PageUp'];\n const is = (event: KeyboardEvent) => {\n if (keys.includes(event.key)) {\n el.classList.add('focus-visible');\n }\n };\n const isNot = () => el.classList.remove('focus-visible');\n listeners.set(el, { is, isNot });\n\n el.addEventListener('keydown', is);\n el.addEventListener('keyup', is);\n el.addEventListener('mousedown', isNot);\n el.addEventListener('mousedown', isNot);\n}\n\nexport function unobserve(el: HTMLElement) {\n if (!el) return;\n\n const listener = listeners.get(el);\n\n if (!listener) {\n return;\n }\n\n const { is, isNot } = listener;\n\n el.classList.remove('focus-visible');\n el.removeEventListener('keydown', is);\n el.removeEventListener('keyup', is);\n el.removeEventListener('mousedown', isNot);\n el.removeEventListener('mousedown', isNot);\n}\n\nexport const focusVisible = {\n observe,\n unobserve,\n};\n"],"mappings":"AAMA,MAAMA,EAAY,IAAIC,Q,SAENC,EAAQC,GACtB,IAAKA,EAAI,OAET,MAAMC,EAAO,CAAC,MAAO,UAAW,YAAa,YAAa,aAAc,OAAQ,MAAO,WAAY,UACnG,MAAMC,EAAMC,IACV,GAAIF,EAAKG,SAASD,EAAME,KAAM,CAC5BL,EAAGM,UAAUC,IAAI,gB,GAGrB,MAAMC,EAAQ,IAAMR,EAAGM,UAAUG,OAAO,iBACxCZ,EAAUa,IAAIV,EAAI,CAAEE,KAAIM,UAExBR,EAAGW,iBAAiB,UAAWT,GAC/BF,EAAGW,iBAAiB,QAAST,GAC7BF,EAAGW,iBAAiB,YAAaH,GACjCR,EAAGW,iBAAiB,YAAaH,EACnC,C,SAEgBI,EAAUZ,GACxB,IAAKA,EAAI,OAET,MAAMa,EAAWhB,EAAUiB,IAAId,GAE/B,IAAKa,EAAU,CACb,M,CAGF,MAAMX,GAAEA,EAAEM,MAAEA,GAAUK,EAEtBb,EAAGM,UAAUG,OAAO,iBACpBT,EAAGe,oBAAoB,UAAWb,GAClCF,EAAGe,oBAAoB,QAASb,GAChCF,EAAGe,oBAAoB,YAAaP,GACpCR,EAAGe,oBAAoB,YAAaP,EACtC,C,MAEaQ,EAAe,CAC1BjB,UACAa,oB"}
@@ -1,2 +0,0 @@
1
- function t(t){const r=t?t.assignedNodes({flatten:true}):[];let e="";[...r].map((t=>{if(t.nodeType===Node.TEXT_NODE){e+=t.textContent}}));return e}function r(t,r){if(r){return t.querySelector(`[slot="${r}"]`)!==null}return Array.from(t.childNodes).some((t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""){return true}if(t.nodeType===t.ELEMENT_NODE){const r=t;if(!r.hasAttribute("slot")){return true}}return false}))}const e=(t,[r,e])=>Object.assign(Object.assign({},t),{[r]:e});const n=t=>n=>Object.values(t).map((t=>[t,r(n,t)])).reduce(e,{});const u=t=>{var r;return(r=t.querySelector("slot"))===null||r===void 0?void 0:r.assignedElements({flatten:true})};export{t as a,u as b,n as g,r as h};
2
- //# sourceMappingURL=p-b4dfb7cf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getTextContent","slot","nodes","assignedNodes","flatten","text","map","node","nodeType","Node","TEXT_NODE","textContent","hasSlot","el","name","querySelector","Array","from","childNodes","some","trim","ELEMENT_NODE","hasAttribute","fromPairs","acc","k","v","Object","assign","getAvailableSlots","slots","host","values","reduce","getSlotChildren","_a","assignedElements"],"sources":["./src/utils/slot.ts"],"sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned element and text nodes and returns the concatenated\n// HTML as a string. This is useful because we can't use slot.innerHTML as an alternative.\n//\nexport function getInnerHTML(slot: HTMLSlotElement): string {\n const nodes = slot.assignedNodes({ flatten: true });\n let html = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n html += (node as HTMLElement).outerHTML;\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n html += node.textContent;\n }\n });\n\n return html;\n}\n\n//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot: HTMLSlotElement): string {\n const nodes = slot ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\ntype AvailableSlots<T> = { readonly [K in keyof T]: boolean };\n\nconst fromPairs = <T extends string>(acc, [k, v]: [T, boolean]) => ({ ...acc, [k]: v });\n\nexport const getAvailableSlots =\n <T extends object>(slots: T) =>\n <E extends HTMLElement>(host: E): AvailableSlots<T> =>\n Object.values(slots)\n .map((name) => [name, hasSlot(host, name)])\n .reduce(fromPairs, {} as AvailableSlots<T>);\n\nexport const getSlotChildren = <T extends HTMLElement>(el: HTMLElement) =>\n el.querySelector('slot')?.assignedElements({ flatten: true }) as T[];\n"],"mappings":"SAyBgBA,EAAeC,GAC7B,MAAMC,EAAQD,EAAOA,EAAKE,cAAc,CAAEC,QAAS,OAAU,GAC7D,IAAIC,EAAO,GAEX,IAAIH,GAAOI,KAAKC,IACd,GAAIA,EAAKC,WAAaC,KAAKC,UAAW,CACpCL,GAAQE,EAAKI,W,KAIjB,OAAON,CACT,C,SAMgBO,EAAQC,EAAiBC,GAEvC,GAAIA,EAAM,CACR,OAAOD,EAAGE,cAAc,UAAUD,SAAc,I,CAIlD,OAAOE,MAAMC,KAAKJ,EAAGK,YAAYC,MAAMZ,IACrC,GAAIA,EAAKC,WAAaD,EAAKG,WAAaH,EAAKI,YAAYS,SAAW,GAAI,CACtE,OAAO,I,CAGT,GAAIb,EAAKC,WAAaD,EAAKc,aAAc,CACvC,MAAMR,EAAKN,EACX,IAAKM,EAAGS,aAAa,QAAS,CAC5B,OAAO,I,EAIX,OAAO,KAAK,GAEhB,CAIA,MAAMC,EAAY,CAAmBC,GAAMC,EAAGC,KAAgBC,OAAAC,OAAAD,OAAAC,OAAA,GAAWJ,GAAG,CAAEC,CAACA,GAAIC,I,MAEtEG,EACQC,GACKC,GACtBJ,OAAOK,OAAOF,GACXxB,KAAKQ,GAAS,CAACA,EAAMF,EAAQmB,EAAMjB,MACnCmB,OAAOV,EAAW,I,MAEZW,EAA0CrB,IAAe,IAAAsB,EACpE,OAAAA,EAAAtB,EAAGE,cAAc,WAAO,MAAAoB,SAAA,SAAAA,EAAEC,iBAAiB,CAAEhC,QAAS,MAAc,S"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-ac4f4d45.js";import{s as o}from"./p-eb8f05a9.js";import{P as n}from"./p-18ea0c56.js";import{E as h}from"./p-9a860acc.js";import{b as r,a as l}from"./p-b4dfb7cf.js";import{D as a,a as d}from"./p-0786fa7c.js";function u(t){const i=t.tabIndex;return i>-1}function c(t){if(u(t)){return t}if(t.shadowRoot){const i=[...t.shadowRoot.children].find(u);if(i){return i}}if(t.children){return[...t.children].map(c)[0]}return null}const p=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.dropdown{position:relative}.dropdown__trigger{display:block}.dropdown__positioner{position:absolute;z-index:var(--six-z-index-dropdown)}.dropdown__positioner__filtered{width:100%}.dropdown__panel{max-height:50vh;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);color:var(--color);background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);box-shadow:var(--six-elevation-2dp);opacity:0;overflow:auto;overscroll-behavior:none;pointer-events:none;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;scrollbar-width:thin}.filter-hidden{display:none}.dropdown__positioner[data-popper-placement^=top] .dropdown__panel{transform-origin:bottom}.dropdown__positioner[data-popper-placement^=bottom] .dropdown__panel{transform-origin:top}.dropdown__positioner[data-popper-placement^=left] .dropdown__panel{transform-origin:right}.dropdown__positioner[data-popper-placement^=right] .dropdown__panel{transform-origin:left}.dropdown__positioner.popover-visible .dropdown__panel{opacity:1;transform:none;pointer-events:all}";const f=t=>i=>(i===null||i===void 0?void 0:i.tagName.toLowerCase())===t.toLowerCase();const v=f("six-menu");const m=f("six-menu-item");let w=0;const g=class{constructor(e){t(this,e);this.sixShow=i(this,"six-dropdown-show",7);this.sixAfterShow=i(this,"six-dropdown-after-show",7);this.sixHide=i(this,"six-dropdown-hide",7);this.sixAfterHide=i(this,"six-dropdown-after-hide",7);this.sixAutoFilterFired=i(this,"six-dropdown-auto-filter-fired",7);this.sixAsyncFilterFired=i(this,"six-async-filter-fired",7);this.sixScroll=i(this,"six-dropdown-scroll",7);this.componentId=`dropdown-${++w}`;this.isVisible=false;this.hasBeenInitialized=false;this.eventListeners=new h;this.getMenuItems=()=>{if(this._options!==null){return this._options.map((t=>s("six-menu-item",{value:t.value},t.label)))}const[t]=r(this.panel);return r(t)||Array.from(t.querySelectorAll("six-menu-item"))};this.handleFilterInputChange=()=>{var t,i;const s=((i=(t=this.filterInputElement.value)===null||t===void 0?void 0:t.toLowerCase())===null||i===void 0?void 0:i.trim())||"";if(this._options){this.handleFilteringForAttributeItems(s)}else{this.handleFilteringForSlotItems(s)}this.sixAutoFilterFired.emit({filterValue:s})};this.open=false;this.placement="bottom-start";this.closeOnSelect=true;this.distance=0;this.skidding=0;this.hoist=false;this.containingElement=undefined;this.filter=false;this.asyncFilter=false;this.filterPlaceholder="Filter...";this.autofocusFilter=true;this.filterDebounce=a;this.disableHideOnEnterAndSpace=false;this.options=null;this.virtualScroll=false;this._options=null}get hasFilterEnabled(){return this.filter||this.asyncFilter}get container(){return this.containingElement||this.host}handleOpenChange(){this.open?this.show():this.hide();this.updateAccessibleTrigger()}handlePopoverOptionsChange(){this.popover.setOptions({strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding})}handleOptionsChange(){this._options=[...this.options]}connectedCallback(){if(this.virtualScroll&&this.options===null){console.error("Options must be defined when using virtual scrolling")}if(this.options!==null){this._options=[...this.options]}this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this);this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this);this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this);this.handlePanelSelect=this.handlePanelSelect.bind(this);this.handleTriggerClick=this.handleTriggerClick.bind(this);this.handleTriggerKeyDown=this.handleTriggerKeyDown.bind(this);this.handleTriggerKeyUp=this.handleTriggerKeyUp.bind(this);this.handleTriggerSlotChange=this.handleTriggerSlotChange.bind(this);this.handleDropdownScroll=this.handleDropdownScroll.bind(this);if(this.hasBeenInitialized&&!this.popover){this.initializePopover()}}componentDidLoad(){this.hasBeenInitialized=true;this.initializePopover();if(this.open){void this.show()}if(this.filter){this.setupFiltering(this.handleFilterInputChange)}else if(this.asyncFilter){this.setupFiltering((()=>this.sixAsyncFilterFired.emit({filterValue:this.filterInputElement.value})))}}initializePopover(){const t=()=>{if(this.filter){this.filterInputElement.value="";if(this._options!==null){this._options=[...this.options]}else{const t=this.getMenuItems();t.forEach((t=>t.style.display="unset"))}}this.sixAfterHide.emit()};const i=async()=>{if(this.hasFilterEnabled&&this.autofocusFilter){await this.filterInputElement.setFocus()}this.sixAfterShow.emit()};const s=()=>{if(!this.open){this.panel.scrollTop=0}};this.popover=new n(this.trigger,this.positioner,{strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding,transitionElement:this.panel,onAfterHide:t,onAfterShow:i,onTransitionEnd:s})}setupFiltering(t){this.eventListeners.add(this.filterInputElement,"six-input-input",d(t,this.filterDebounce))}handleFilteringForAttributeItems(t){if(t===""){this._options=[...this.options];return}this._options=this.options.filter((i=>{var s,e,o,n;return i.label&&((e=(s=String(i.label))===null||s===void 0?void 0:s.toLowerCase())===null||e===void 0?void 0:e.includes(t))||i.value&&((n=(o=String(i.value))===null||o===void 0?void 0:o.toLowerCase())===null||n===void 0?void 0:n.includes(t))}))}handleFilteringForSlotItems(t){const i=this.getMenuItems();i.forEach((async i=>{var s,e,o,n;const h=((e=(s=i===null||i===void 0?void 0:i.value)===null||s===void 0?void 0:s.toLowerCase())===null||e===void 0?void 0:e.includes(t))||((n=(o=await(i===null||i===void 0?void 0:i.getTextLabel()))===null||o===void 0?void 0:o.toLowerCase())===null||n===void 0?void 0:n.includes(t));i.style.display=h?"unset":"none"}))}disconnectedCallback(){this.eventListeners.removeAll();void this.hide();this.popover.destroy();this.popover=null}async show(){if(this.isVisible){return}const t=this.sixShow.emit();if(t.defaultPrevented){this.open=false;return}this.eventListeners.add(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.add(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=true;this.open=true;this.popover.show()}async hide(){if(!this.isVisible){return}const t=this.sixHide.emit();if(t.defaultPrevented){this.open=true;return}this.eventListeners.remove(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.remove(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.remove(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=false;this.open=false;this.popover.hide()}focusOnTrigger(){const[t]=r(this.trigger);if(t){if(typeof t.setFocus==="function"){t.setFocus()}else if(typeof t.focus==="function"){t.focus()}}}getMenu(){const[t]=r(this.panel).filter(v);return t}async reposition(){if(!this.open){return}this.popover.reposition()}handleDocumentKeyDown(t){if(t.key==="Escape"){void this.hide();this.focusOnTrigger();return}if(this.filterInputElement===this.host.shadowRoot.activeElement){if(t.key==="ArrowDown"){const t=this.getMenuItems().find((t=>t.style.display!=="none"));if(t){t.setFocus()}}}if(t.key==="Tab"){if(this.open&&m(document.activeElement)){t.preventDefault();void this.hide();this.focusOnTrigger();return}setTimeout((()=>{var t;const i=this.container.getRootNode()instanceof ShadowRoot?(t=document.activeElement.shadowRoot)===null||t===void 0?void 0:t.activeElement:document.activeElement;if((i===null||i===void 0?void 0:i.closest(this.container.tagName.toLowerCase()))!==this.container){void this.hide();return}}))}}handleDocumentMouseDown(t){const i=t.composedPath();if(!i.includes(this.container)){void this.hide();return}}handleMenuItemActivate(t){const i=t.target;o(i,this.panel)}handlePanelSelect(t){const i=t.target;if(this.closeOnSelect&&v(i)){void this.hide();this.focusOnTrigger()}}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){const i=this.getMenu();const s=i?[...i.querySelectorAll("six-menu-item")]:null;const e=s[0];const o=s[s.length-1];if(t.key==="Escape"){this.focusOnTrigger();void this.hide();return}if(!this.disableHideOnEnterAndSpace&&[" ","Enter"].includes(t.key)){t.preventDefault();this.open?void this.hide():void this.show();return}if(["ArrowDown","ArrowUp"].includes(t.key)){t.preventDefault();if(!this.open){void this.show()}if(t.key==="ArrowDown"&&e){e.setFocus();return}if(t.key==="ArrowUp"&&o){o.setFocus();return}}const n=["Tab","Shift","Meta","Ctrl","Alt"];if(this.open&&i&&!n.includes(t.key)){void i.typeToSelect(t.key);return}}handleTriggerKeyUp(t){if(t.key===" "){t.preventDefault()}}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDropdownScroll(){this.sixScroll.emit({scrollHeight:this.panel.scrollHeight,scrollTop:this.panel.scrollTop,scrollbarHeight:this.panel.offsetHeight*(this.panel.offsetHeight/this.panel.scrollHeight),scrollRatio:this.panel.scrollTop/(this.panel.scrollHeight-this.panel.clientHeight)})}updateAccessibleTrigger(){const[t]=r(this.trigger).map(c);if(t){t.setAttribute("aria-haspopup","true");t.setAttribute("aria-expanded",this.open?"true":"false")}}render(){return s("div",{part:"base",id:this.componentId,class:{dropdown:true,"dropdown--open":this.open}},s("span",{part:"trigger",class:"dropdown__trigger",ref:t=>this.trigger=t,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown,onKeyUp:this.handleTriggerKeyUp},s("slot",{name:"trigger",onSlotchange:this.handleTriggerSlotChange})),s("div",{ref:t=>this.positioner=t,class:{dropdown__positioner:true,dropdown__positioner__filtered:(this.filter||this.asyncFilter)&&!this.hoist}},this.hasFilterEnabled&&s("six-input",{class:{"filter-hidden":!this.open},"aria-hidden":this.open?"false":"true",ref:t=>this.filterInputElement=t,placeholder:this.filterPlaceholder}),s("div",{ref:t=>this.panel=t,part:"panel",class:"dropdown__panel",role:"menu","aria-hidden":this.open?"false":"true","aria-labelledby":this.componentId,onScroll:this.handleDropdownScroll},s("slot",null),this._options&&s("six-menu",{part:"menu",items:this._options,virtualScroll:this.virtualScroll}))))}get host(){return e(this)}static get watchers(){return{open:["handleOpenChange"],distance:["handlePopoverOptionsChange"],hoist:["handlePopoverOptionsChange"],placement:["handlePopoverOptionsChange"],skidding:["handlePopoverOptionsChange"],options:["handleOptionsChange"]}}};g.style=p;const b=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu{padding:0 0;border:none;box-shadow:var(--six-elevation-2dp)}.menu:focus{outline:none}.menu--noshadow{box-shadow:none}.menu__wrapper--scrollable{overflow-y:auto}";const x=t=>{var i,s,e;return(e=(s=(i=t===null||t===void 0?void 0:t.shadowRoot)===null||i===void 0?void 0:i.querySelector(".menu-item"))===null||s===void 0?void 0:s.classList)===null||e===void 0?void 0:e.contains("menu-item--focused")};const _=t=>(t===null||t===void 0?void 0:t.tagName.toLowerCase())==="six-menu-item";const y=({value:t,label:i})=>s("six-menu-item",{value:t},i);const A=5;const C=64;const k=undefined;const S=class{constructor(s){t(this,s);this.sixMenuItemSelected=i(this,"six-menu-item-selected",7);this.eventListeners=new h;this.typeToSelectString="";this.handleScrolling=()=>{this.scrollingIndex=Math.floor(this.menuWrapper.scrollTop/this.sixMenuItemHeight)};this.removeBoxShadow=false;this.items=null;this.itemsShown=k;this.virtualScroll=false;this.itemSize=10;this.scrollingDebounce=15;this.scrollingIndex=0;this.sixMenuItemHeight=C}connectedCallback(){this.handleClick=this.handleClick.bind(this);this.handleKeyDown=this.handleKeyDown.bind(this)}componentWillLoad(){if(this.items===null){return}}componentDidLoad(){this.setupForVirtualScrollingAfterRendering()}disconnectedCallback(){this.eventListeners.removeAll()}async typeToSelect(t){var i;clearTimeout(this.typeToSelectTimeout);this.typeToSelectTimeout=setTimeout((()=>this.typeToSelectString=""),750);this.typeToSelectString+=t.toLowerCase();const s=this.getItems();for(const t of s){const s=(i=t.shadowRoot)===null||i===void 0?void 0:i.querySelector("slot:not([name])");const e=l(s).toLowerCase().trim();if(e.substring(0,this.typeToSelectString.length)===this.typeToSelectString){t.setFocus();break}}}getItemsShown(){var t;const i=this.virtualScroll?A:k;return(t=this.itemsShown)!==null&&t!==void 0?t:i}setupForVirtualScrollingAfterRendering(){var t,i;if(!this.virtualScroll){return}this.eventListeners.add(this.menuWrapper,"scroll",d(this.handleScrolling,this.scrollingDebounce));const s=(i=(t=this.menu)===null||t===void 0?void 0:t.querySelector("six-menu-item"))===null||i===void 0?void 0:i.clientHeight;if(s&&s>0){this.sixMenuItemHeight=s}}getItems(){if(this.items!==null&&this.items!==undefined){return this.items.map(y)}const t=this.menu.querySelector("slot");return[...t.assignedElements({flatten:true})].filter((t=>_(t)&&!t.disabled))}getActiveItemIndex(){const t=this.getItems();const i=this.getActiveItem();const s=t.indexOf(i);if(s>-1){return s}const e=this.extractItemsFromDOM();return e.findIndex(x)}getActiveItem(){var t;const i=this.getItems().find((t=>t===document.activeElement));if(i){return i}return(t=this.extractItemsFromDOM())===null||t===void 0?void 0:t.find(x)}extractItemsFromDOM(){var t,i;return Array.from((i=(t=this.host)===null||t===void 0?void 0:t.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("six-menu-item"))}setActiveItem(t){t.setFocus()}handleClick(t){const i=t.target;const s=i.closest("six-menu-item");if(s&&!s.disabled){this.sixMenuItemSelected.emit({name:s.value,item:s})}}handleKeyDown(t){if(t.key==="Enter"){const i=this.getActiveItem();t.preventDefault();if(i){this.sixMenuItemSelected.emit({name:i.value,item:i})}}if(t.key===" "){t.preventDefault()}if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){const i=this.items===null?this.getItems():this.extractItemsFromDOM();let s=this.getActiveItemIndex();if(i.length){t.preventDefault();if(t.key==="ArrowDown"){s++}else if(t.key==="ArrowUp"){s--}else if(t.key==="Home"){s=0}else if(t.key==="End"){s=i.length-1}if(s<0)s=0;if(s>i.length-1)s=i.length-1;this.setActiveItem(i[s]);return}}void this.typeToSelect(t.key)}getMenuWrapperStyle(){const t={};if(this.getItemsShown()>0){t.height=`${this.getItemsShown()*this.sixMenuItemHeight}px`}return Object.assign({},t)}getMenuContainerStyle(){const t={};if(this.virtualScroll){t.transform=`translateY(${this.sixMenuItemHeight*this.scrollingIndex}px)`}return Object.assign({},t)}getScrollbarGhostStyle(){const t={};if(this.virtualScroll&&this.items!==null){t.height=`${this.items.length*this.sixMenuItemHeight-this.itemSize*this.sixMenuItemHeight}px`}return Object.assign({},t)}renderItems(){if(this.items===undefined||this.items===null){return}if(!this.virtualScroll){return this.items.map(y)}return this.items.slice(this.scrollingIndex,Math.min(this.items.length,this.itemSize+this.scrollingIndex)).map(y)}render(){return s("div",{ref:t=>this.menuWrapper=t,style:this.getMenuWrapperStyle(),part:"wrapper",class:{menu:true,"menu--noshadow":this.removeBoxShadow,"menu__wrapper--scrollable":this.getItemsShown()>0}},s("div",{ref:t=>this.menu=t,part:"base",role:"menu",onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:0,style:this.getMenuContainerStyle()},s("slot",null),this.renderItems()),this.virtualScroll&&s("div",{style:this.getScrollbarGhostStyle()}))}get host(){return e(this)}};S.style=b;export{g as six_dropdown,S as six_menu};
2
- //# sourceMappingURL=p-b997e43c.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["isTabbable","el","tabIndex","getNearestTabbableElement","shadowRoot","tabbableShadowChild","children","find","map","sixDropdownCss","isTagName","name","tagName","toLowerCase","isSixMenu","isSixMenuItem","id","SixDropdown","this","componentId","isVisible","hasBeenInitialized","eventListeners","EventListeners","getMenuItems","_options","option","h","value","label","panel","getSlotChildren","Array","from","querySelectorAll","handleFilterInputChange","lowerCaseFilterTerm","_b","_a","filterInputElement","trim","handleFilteringForAttributeItems","handleFilteringForSlotItems","sixAutoFilterFired","emit","filterValue","DEFAULT_DEBOUNCE_FAST","hasFilterEnabled","filter","asyncFilter","container","containingElement","host","handleOpenChange","open","show","hide","updateAccessibleTrigger","handlePopoverOptionsChange","popover","setOptions","strategy","hoist","placement","distance","skidding","handleOptionsChange","options","connectedCallback","virtualScroll","console","error","handleDocumentKeyDown","bind","handleDocumentMouseDown","handleMenuItemActivate","handlePanelSelect","handleTriggerClick","handleTriggerKeyDown","handleTriggerKeyUp","handleTriggerSlotChange","handleDropdownScroll","initializePopover","componentDidLoad","setupFiltering","sixAsyncFilterFired","onAfterHide","menuItems","forEach","item","style","display","sixAfterHide","onAfterShow","async","autofocusFilter","setFocus","sixAfterShow","onTransitionEnd","scrollTop","Popover","trigger","positioner","transitionElement","callback","add","debounce","filterDebounce","String","includes","_d","_c","menuItem","elementContainsFilterTerm","getTextLabel","disconnectedCallback","removeAll","destroy","sixShow","defaultPrevented","document","sixHide","remove","focusOnTrigger","focus","getMenu","menu","reposition","event","key","activeElement","preventDefault","setTimeout","getRootNode","ShadowRoot","closest","path","composedPath","target","scrollIntoView","closeOnSelect","firstMenuItem","lastMenuItem","length","disableHideOnEnterAndSpace","ignoredKeys","typeToSelect","sixScroll","scrollHeight","scrollbarHeight","offsetHeight","scrollRatio","clientHeight","accessibleTrigger","setAttribute","render","part","class","dropdown","ref","onClick","onKeyDown","onKeyUp","onSlotchange","dropdown__positioner","dropdown__positioner__filtered","placeholder","filterPlaceholder","role","onScroll","items","sixMenuCss","isFocusedMenuItem","querySelector","classList","contains","isSIXMenuItemElement","mapToMenuItem","DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING","DEFAULT_SIX_MENU_ITEM_HEIGHT","ITEMS_SHOWN_NOT_SET","undefined","SixMenu","typeToSelectString","handleScrolling","scrollingIndex","Math","floor","menuWrapper","sixMenuItemHeight","handleClick","handleKeyDown","componentWillLoad","setupForVirtualScrollingAfterRendering","clearTimeout","typeToSelectTimeout","getItems","slot","getTextContent","substring","getItemsShown","defaultItemsShown","itemsShown","scrollingDebounce","menuItemHeight","assignedElements","flatten","disabled","getActiveItemIndex","selectedItem","getActiveItem","itemIndex","indexOf","sixMenuItems","extractItemsFromDOM","findIndex","i","setActiveItem","clickedItem","sixMenuItemSelected","activeItem","indexOfActiveItem","getMenuWrapperStyle","styles","height","Object","assign","getMenuContainerStyle","transform","getScrollbarGhostStyle","itemSize","renderItems","slice","min","removeBoxShadow"],"sources":["./src/utils/tabbable.ts","./src/components/six-dropdown/six-dropdown.scss?tag=six-dropdown&encapsulation=shadow","./src/components/six-dropdown/six-dropdown.tsx","./src/components/six-menu/six-menu.scss?tag=six-menu&encapsulation=shadow","./src/components/six-menu/six-menu.tsx"],"sourcesContent":["export function isTabbable(el: HTMLElement) {\n const tabIndex = el.tabIndex;\n return tabIndex > -1;\n}\n\nexport function getNearestTabbableElement(el: HTMLElement): HTMLElement {\n // Check the element\n if (isTabbable(el)) {\n return el;\n }\n\n // Check the element's shadow root\n if (el.shadowRoot) {\n const tabbableShadowChild = [...el.shadowRoot.children].find(isTabbable) as HTMLElement;\n if (tabbableShadowChild) {\n return tabbableShadowChild;\n }\n }\n\n // Check the element's children\n if (el.children) {\n return [...el.children].map(getNearestTabbableElement)[0];\n }\n\n return null;\n}\n","@import 'src/global/component';\n@import 'src/global/mixins/scrollbar';\n\n:host {\n display: inline-block;\n}\n\n.dropdown {\n position: relative;\n}\n\n.dropdown__trigger {\n display: block;\n}\n\n.dropdown__positioner {\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n\n &__filtered {\n width: 100%;\n }\n}\n\n.dropdown__panel {\n max-height: 50vh;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n color: var(--color);\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-elevation-2dp);\n opacity: 0;\n overflow: auto;\n overscroll-behavior: none;\n pointer-events: none;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n // fix for firefox scrollbar\n scrollbar-width: thin;\n}\n\n.filter-hidden {\n display: none;\n}\n\n.dropdown__positioner {\n &[data-popper-placement^='top'] .dropdown__panel {\n transform-origin: bottom;\n }\n\n &[data-popper-placement^='bottom'] .dropdown__panel {\n transform-origin: top;\n }\n\n &[data-popper-placement^='left'] .dropdown__panel {\n transform-origin: right;\n }\n\n &[data-popper-placement^='right'] .dropdown__panel {\n transform-origin: left;\n }\n\n &.popover-visible .dropdown__panel {\n opacity: 1;\n transform: none;\n pointer-events: all;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { scrollIntoView } from '../../utils/scroll';\nimport { getNearestTabbableElement } from '../../utils/tabbable';\nimport Popover from '../../utils/popover';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlotChildren } from '../../utils/slot';\nimport { debounce, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { EmptyPayload } from '../../utils/types';\nimport { SixMenuItemData } from '../six-menu/six-menu';\n\nexport interface SixDropdownAutoFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownAsyncFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownScrollPayload {\n scrollHeight: number;\n scrollTop: number;\n scrollbarHeight: number;\n scrollRatio: number;\n}\n\nconst isTagName =\n (name: string) =>\n <T extends Element>(el?: T) =>\n el?.tagName.toLowerCase() === name.toLowerCase();\nconst isSixMenu = isTagName('six-menu');\nconst isSixMenuItem = isTagName('six-menu-item');\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot trigger - The dropdown's trigger, usually a `<six-button>` element.\n * @slot - The dropdown's content.\n *\n * @part base - The component's base wrapper.\n * @part trigger - The container that wraps the trigger.\n * @part panel - The panel that gets shown when the dropdown is open.\n */\n\n@Component({\n tag: 'six-dropdown',\n styleUrl: 'six-dropdown.scss',\n shadow: true,\n})\nexport class SixDropdown {\n accessibleTrigger: HTMLElement;\n componentId = `dropdown-${++id}`;\n isVisible = false;\n panel: HTMLElement;\n positioner: HTMLElement;\n popover: Popover;\n trigger: HTMLElement;\n hasBeenInitialized = false;\n\n // the input element shown in the dropdown when filter is set to true\n filterInputElement: HTMLSixInputElement;\n\n @Element() host: HTMLSixDropdownElement;\n\n /** Indicates whether or not the dropdown is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * inside of the viewport.\n */\n @Prop() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'bottom-start';\n\n /** Determines whether the dropdown should hide when a menu item is selected. */\n @Prop() closeOnSelect = true;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @Prop() distance = 0;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @Prop() skidding = 0;\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /** The dropdown will close when the user interacts outside of this element (e.g. clicking). */\n @Prop() containingElement: HTMLElement;\n\n /**\n * Set to true to allow auto filtering for entries in the dropdown.\n * With this flag the dropdown will automatically filter itsel.\n * If you need to coordinate the shown elements yourself,\n * e.g. because you need to call an endpoint use asyncFilter instead\n */\n @Prop() filter = false;\n\n /**\n * Set to true to allow async filtering.\n * When you enter something in the search field the component will only emit an event but not filter any elements itself.\n * You can then simply listen to the 'six-async-filter-fired' event to manage the shown menu-items yourself\n */\n @Prop() asyncFilter = false;\n\n /** The filter's placeholder text. */\n @Prop() filterPlaceholder = 'Filter...';\n\n /** By default the search field will be focused when opening a dropdown with filtering enabled. */\n @Prop() autofocusFilter = true;\n\n get hasFilterEnabled() {\n return this.filter || this.asyncFilter;\n }\n\n /** The debounce for the filter callbacks. */\n @Prop() filterDebounce = DEFAULT_DEBOUNCE_FAST;\n\n /** The panel can be opend/closed by pressing the spacebar or the enter key. In some cases you might want to avoid this */\n @Prop() disableHideOnEnterAndSpace = false;\n\n /** Set the options to be shown in the dropdown (alternative to setting the elements via html)*/\n @Prop() options: SixMenuItemData[] | null = null;\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll = false;\n\n get container() {\n return this.containingElement || this.host;\n }\n\n /** Emitted when the dropdown opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dropdown-show' }) sixShow: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown opens and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-show' }) sixAfterShow: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dropdown closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dropdown-hide' }) sixHide: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown closes and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-hide' }) sixAfterHide: EventEmitter<EmptyPayload>;\n\n /** Emitted when the auto filter is triggered */\n @Event({ eventName: 'six-dropdown-auto-filter-fired' })\n sixAutoFilterFired: EventEmitter<SixDropdownAutoFilterPayload>;\n\n /** Emitted when the async filter is triggered */\n @Event({ eventName: 'six-async-filter-fired' }) sixAsyncFilterFired: EventEmitter<SixDropdownAsyncFilterPayload>;\n\n /** Emitted when the user scrolls inside dropdown panel.*/\n @Event({ eventName: 'six-dropdown-scroll' }) sixScroll: EventEmitter<SixDropdownScrollPayload>;\n\n readonly eventListeners = new EventListeners();\n\n // internal representation of options, so we don't have to make options mutable\n @State()\n _options: SixMenuItemData[] = null;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n this.updateAccessibleTrigger();\n }\n\n @Watch('distance')\n @Watch('hoist')\n @Watch('placement')\n @Watch('skidding')\n handlePopoverOptionsChange() {\n this.popover.setOptions({\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n });\n }\n\n @Watch('options')\n handleOptionsChange() {\n this._options = [...this.options];\n }\n\n connectedCallback() {\n if (this.virtualScroll && this.options === null) {\n console.error('Options must be defined when using virtual scrolling');\n }\n\n if (this.options !== null) {\n this._options = [...this.options];\n }\n\n this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);\n this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);\n this.handleMenuItemActivate = this.handleMenuItemActivate.bind(this);\n this.handlePanelSelect = this.handlePanelSelect.bind(this);\n this.handleTriggerClick = this.handleTriggerClick.bind(this);\n this.handleTriggerKeyDown = this.handleTriggerKeyDown.bind(this);\n this.handleTriggerKeyUp = this.handleTriggerKeyUp.bind(this);\n this.handleTriggerSlotChange = this.handleTriggerSlotChange.bind(this);\n this.handleDropdownScroll = this.handleDropdownScroll.bind(this);\n\n if (this.hasBeenInitialized && !this.popover) {\n // there was a weird bug when using six-dropdown inside an ag-grid filter. When closing the ag-grid filter\n // disconnectedCallback() is executed. However, since componentDidLoad() will not be rerendered the popover had\n // no longer a connected transitionEnd callback to the dropdown. To fix this, we have this sanity check here,\n // to re-initialize the popover in case the component has already been initialized but the popover is undefined.\n this.initializePopover();\n }\n }\n\n componentDidLoad() {\n this.hasBeenInitialized = true;\n this.initializePopover();\n\n // Show on init if open\n if (this.open) {\n void this.show();\n }\n\n if (this.filter) {\n this.setupFiltering(this.handleFilterInputChange);\n } else if (this.asyncFilter) {\n this.setupFiltering(() => this.sixAsyncFilterFired.emit({ filterValue: this.filterInputElement.value }));\n }\n }\n\n private initializePopover() {\n const onAfterHide = () => {\n if (this.filter) {\n this.filterInputElement.value = '';\n\n if (this._options !== null) {\n this._options = [...this.options];\n } else {\n const menuItems = this.getMenuItems();\n menuItems.forEach((item) => (item.style.display = 'unset'));\n }\n }\n\n this.sixAfterHide.emit();\n };\n\n const onAfterShow = async () => {\n if (this.hasFilterEnabled && this.autofocusFilter) {\n // if dropdown filter is enabled we should autofocus the search field\n await this.filterInputElement.setFocus();\n }\n\n this.sixAfterShow.emit();\n };\n\n const onTransitionEnd = () => {\n if (!this.open) {\n this.panel.scrollTop = 0;\n }\n };\n\n this.popover = new Popover(this.trigger, this.positioner, {\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n transitionElement: this.panel,\n onAfterHide,\n onAfterShow,\n onTransitionEnd,\n });\n }\n\n private setupFiltering(callback: () => void) {\n this.eventListeners.add(this.filterInputElement, 'six-input-input', debounce(callback, this.filterDebounce));\n }\n\n getMenuItems = (): HTMLSixMenuItemElement[] => {\n if (this._options !== null) {\n return this._options.map((option) => <six-menu-item value={option.value}>{option.label}</six-menu-item>);\n }\n\n const [panel] = getSlotChildren<HTMLSixMenuElement>(this.panel);\n\n // the menu-items can be in a slot e.g. in six-select or direct children of the panel\n return getSlotChildren(panel) || Array.from(panel.querySelectorAll('six-menu-item'));\n };\n\n handleFilterInputChange = () => {\n const lowerCaseFilterTerm = this.filterInputElement.value?.toLowerCase()?.trim() || '';\n\n if (this._options) {\n this.handleFilteringForAttributeItems(lowerCaseFilterTerm);\n } else {\n this.handleFilteringForSlotItems(lowerCaseFilterTerm);\n }\n\n this.sixAutoFilterFired.emit({ filterValue: lowerCaseFilterTerm });\n };\n\n private handleFilteringForAttributeItems(lowerCaseFilterTerm: string) {\n if (lowerCaseFilterTerm === '') {\n this._options = [...this.options];\n return;\n }\n\n this._options = this.options.filter(\n (option) =>\n (option.label && String(option.label)?.toLowerCase()?.includes(lowerCaseFilterTerm)) ||\n (option.value && String(option.value)?.toLowerCase()?.includes(lowerCaseFilterTerm))\n );\n }\n\n private handleFilteringForSlotItems(lowerCaseFilterTerm: string) {\n const menuItems = this.getMenuItems();\n menuItems.forEach(async (menuItem) => {\n // hide all elements which don't contain the entered substring\n const elementContainsFilterTerm =\n menuItem?.value?.toLowerCase()?.includes(lowerCaseFilterTerm) ||\n (await menuItem?.getTextLabel())?.toLowerCase()?.includes(lowerCaseFilterTerm);\n\n menuItem.style.display = elementContainsFilterTerm ? 'unset' : 'none';\n });\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n\n void this.hide();\n this.popover.destroy();\n this.popover = null;\n }\n\n /** Shows the dropdown panel */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.eventListeners.add(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = true;\n this.open = true;\n this.popover.show();\n }\n\n /** Hides the dropdown panel */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.eventListeners.remove(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = false;\n this.open = false;\n this.popover.hide();\n }\n\n focusOnTrigger() {\n const [trigger] = getSlotChildren<HTMLSixButtonElement>(this.trigger);\n if (trigger) {\n if (typeof trigger.setFocus === 'function') {\n trigger.setFocus();\n } else if (typeof trigger.focus === 'function') {\n trigger.focus();\n }\n }\n }\n\n getMenu() {\n const [menu] = getSlotChildren<HTMLSixMenuElement>(this.panel).filter(isSixMenu);\n return menu;\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n */\n @Method()\n async reposition() {\n if (!this.open) {\n return;\n }\n this.popover.reposition();\n }\n\n handleDocumentKeyDown(event: KeyboardEvent) {\n // Close when escape is pressed\n if (event.key === 'Escape') {\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n if (this.filterInputElement === this.host.shadowRoot.activeElement) {\n if (event.key === 'ArrowDown') {\n const item = this.getMenuItems().find((item) => item.style.display !== 'none');\n if (item) {\n item.setFocus();\n }\n }\n }\n\n // Handle tabbing\n if (event.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && isSixMenuItem(document.activeElement)) {\n event.preventDefault();\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n // Tabbing outside of the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.container.getRootNode() instanceof ShadowRoot\n ? document.activeElement.shadowRoot?.activeElement\n : document.activeElement;\n\n if (activeElement?.closest(this.container.tagName.toLowerCase()) !== this.container) {\n void this.hide();\n return;\n }\n });\n }\n }\n\n handleDocumentMouseDown(event: MouseEvent) {\n // Close when clicking outside of the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.container)) {\n void this.hide();\n return;\n }\n }\n\n handleMenuItemActivate(event: CustomEvent) {\n const item = event.target as HTMLSixMenuItemElement;\n scrollIntoView(item, this.panel);\n }\n\n handlePanelSelect(event: CustomEvent) {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (this.closeOnSelect && isSixMenu(target)) {\n void this.hide();\n this.focusOnTrigger();\n }\n }\n\n handleTriggerClick() {\n this.open ? this.hide() : this.show();\n }\n\n handleTriggerKeyDown(event: KeyboardEvent) {\n const menu = this.getMenu();\n const menuItems = menu ? [...menu.querySelectorAll('six-menu-item')] : null;\n const firstMenuItem = menuItems[0];\n const lastMenuItem = menuItems[menuItems.length - 1];\n\n // Close when escape or tab is pressed\n if (event.key === 'Escape') {\n this.focusOnTrigger();\n void this.hide();\n return;\n }\n\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if (!this.disableHideOnEnterAndSpace && [' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.open ? void this.hide() : void this.show();\n return;\n }\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n void this.show();\n }\n\n // Focus on a menu item\n if (event.key === 'ArrowDown' && firstMenuItem) {\n firstMenuItem.setFocus();\n return;\n }\n\n if (event.key === 'ArrowUp' && lastMenuItem) {\n lastMenuItem.setFocus();\n return;\n }\n }\n\n // Other keys bring focus to the menu and initiate type-to-select behavior\n const ignoredKeys = ['Tab', 'Shift', 'Meta', 'Ctrl', 'Alt'];\n if (this.open && menu && !ignoredKeys.includes(event.key)) {\n void menu.typeToSelect(event.key);\n return;\n }\n }\n\n handleTriggerKeyUp(event: KeyboardEvent) {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n }\n\n handleTriggerSlotChange() {\n this.updateAccessibleTrigger();\n }\n\n handleDropdownScroll() {\n this.sixScroll.emit({\n scrollHeight: this.panel.scrollHeight,\n scrollTop: this.panel.scrollTop,\n scrollbarHeight: this.panel.offsetHeight * (this.panel.offsetHeight / this.panel.scrollHeight),\n scrollRatio: this.panel.scrollTop / (this.panel.scrollHeight - this.panel.clientHeight),\n });\n }\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <sl-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n updateAccessibleTrigger() {\n const [accessibleTrigger] = getSlotChildren(this.trigger).map(getNearestTabbableElement);\n\n if (accessibleTrigger) {\n accessibleTrigger.setAttribute('aria-haspopup', 'true');\n accessibleTrigger.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n render() {\n return (\n <div\n part=\"base\"\n id={this.componentId}\n class={{\n dropdown: true,\n 'dropdown--open': this.open,\n }}\n >\n <span\n part=\"trigger\"\n class=\"dropdown__trigger\"\n ref={(el) => (this.trigger = el)}\n onClick={this.handleTriggerClick}\n onKeyDown={this.handleTriggerKeyDown}\n onKeyUp={this.handleTriggerKeyUp}\n >\n <slot name=\"trigger\" onSlotchange={this.handleTriggerSlotChange} />\n </span>\n\n {/* Position the panel with a wrapper since the popover makes use of `translate`. This let's us add transitions\n on the panel without interfering with the position. */}\n <div\n ref={(el) => (this.positioner = el)}\n class={{\n dropdown__positioner: true,\n dropdown__positioner__filtered: (this.filter || this.asyncFilter) && !this.hoist,\n }}\n >\n {this.hasFilterEnabled && (\n <six-input\n class={{\n 'filter-hidden': !this.open,\n }}\n aria-hidden={this.open ? 'false' : 'true'}\n ref={(el) => (this.filterInputElement = el)}\n placeholder={this.filterPlaceholder}\n />\n )}\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dropdown__panel\"\n role=\"menu\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-labelledby={this.componentId}\n onScroll={this.handleDropdownScroll}\n >\n <slot />\n {this._options && (\n <six-menu part=\"menu\" items={this._options} virtualScroll={this.virtualScroll}></six-menu>\n )}\n </div>\n </div>\n </div>\n );\n }\n}\n","@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu {\n padding: 0 0;\n border: none;\n box-shadow: var(--six-elevation-2dp);\n\n &:focus {\n outline: none;\n }\n\n &--noshadow {\n box-shadow: none;\n }\n\n &__wrapper {\n &--scrollable {\n overflow-y: auto;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\nimport { StyleDeclaration } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce } from '../../utils/execution-control';\n\nexport interface SixMenuItemData {\n label: string;\n value: string;\n}\n\nexport interface SixMenuItemSelectedPayload {\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nconst isFocusedMenuItem = (menuItem: HTMLSixMenuItemElement) =>\n menuItem?.shadowRoot?.querySelector('.menu-item')?.classList?.contains('menu-item--focused');\n\nconst isSIXMenuItemElement = (el?: Element): el is HTMLSixMenuItemElement =>\n el?.tagName.toLowerCase() === 'six-menu-item';\n\nconst mapToMenuItem = ({ value, label }) => <six-menu-item value={value}>{label}</six-menu-item>;\n\nconst DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;\n\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;\n\nconst ITEMS_SHOWN_NOT_SET = undefined;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The menu's content, including menu items, menu dividers, and menu labels.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-menu',\n styleUrl: 'six-menu.scss',\n shadow: true,\n})\nexport class SixMenu {\n private readonly eventListeners = new EventListeners();\n\n menu: HTMLElement;\n menuWrapper: HTMLElement;\n typeToSelectString = '';\n typeToSelectTimeout: NodeJS.Timeout;\n\n @Element() host: HTMLSixMenuElement;\n\n /** Emitted when a menu item is selected. */\n @Event({ eventName: 'six-menu-item-selected' }) sixMenuItemSelected: EventEmitter<SixMenuItemSelectedPayload>;\n\n /** Set to true to remove the box-shadow */\n @Prop() removeBoxShadow: boolean = false;\n\n /** Set the options to be shown in the dropdown */\n @Prop() items: SixMenuItemData[] | null = null;\n\n /** Defines how many items should be shown. If the number of items is larger than this properties a scrollbar will be shown */\n @Prop() itemsShown?: number = ITEMS_SHOWN_NOT_SET;\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll: boolean = false;\n\n /**\n * Used for virtual scrolling\n * Define how many items should be rendered in the DOM when using virtual scrolling\n */\n @Prop() itemSize: number = 10;\n\n /**\n * Used for virtual scrolling\n * Define the debounce for listening on scrolling changes in milliseconds.\n * The lower the number the more sensitive the component reacts to scrolling changes.\n */\n @Prop() scrollingDebounce: number = 15;\n\n /**\n * Used to calculate which items should be rendered in the DOM\n */\n @State()\n private scrollingIndex: number = 0;\n\n // set a default item height, this variable will be updated with the real value after the first render.\n // However, it's necessary to have a default value because we can only fetch the proper hight after the first render\n @State()\n sixMenuItemHeight = DEFAULT_SIX_MENU_ITEM_HEIGHT;\n\n connectedCallback() {\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n componentWillLoad() {\n if (this.items === null) {\n return;\n }\n }\n\n private handleScrolling = () => {\n // for performance improvements we only update the DOM if the scrollRatio change \"enough\"\n this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);\n };\n\n componentDidLoad() {\n this.setupForVirtualScrollingAfterRendering();\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n /**\n * Initiates type-to-select logic, which automatically selects an option based on what the user is currently typing.\n * The key passed will be appended to the internal query and the selection will be updated. After a brief period, the\n * internal query is cleared automatically. This method is intended to be used with the keydown event. Useful for\n * enabling type-to-select when the menu doesn't have focus.\n */\n @Method()\n async typeToSelect(key: string) {\n clearTimeout(this.typeToSelectTimeout);\n this.typeToSelectTimeout = setTimeout(() => (this.typeToSelectString = ''), 750);\n this.typeToSelectString += key.toLowerCase();\n const items = this.getItems();\n for (const item of items) {\n const slot = item.shadowRoot?.querySelector('slot:not([name])') as HTMLSlotElement;\n const label = getTextContent(slot).toLowerCase().trim();\n if (label.substring(0, this.typeToSelectString.length) === this.typeToSelectString) {\n item.setFocus();\n break;\n }\n }\n }\n\n private getItemsShown() {\n const defaultItemsShown = this.virtualScroll\n ? DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING\n : ITEMS_SHOWN_NOT_SET;\n\n return this.itemsShown ?? defaultItemsShown;\n }\n\n private setupForVirtualScrollingAfterRendering() {\n if (!this.virtualScroll) {\n return;\n }\n\n this.eventListeners.add(this.menuWrapper, 'scroll', debounce(this.handleScrolling, this.scrollingDebounce));\n\n // set menu height to proper height once the item is rendered.\n const menuItemHeight = this.menu?.querySelector('six-menu-item')?.clientHeight;\n if (menuItemHeight && menuItemHeight > 0) {\n this.sixMenuItemHeight = menuItemHeight;\n }\n }\n\n getItems() {\n if (this.items !== null && this.items !== undefined) {\n return this.items.map(mapToMenuItem);\n }\n\n const slot = this.menu.querySelector('slot');\n return [...slot.assignedElements({ flatten: true })].filter((el) => isSIXMenuItemElement(el) && !el.disabled);\n }\n\n private getActiveItemIndex() {\n const items = this.getItems();\n const selectedItem = this.getActiveItem();\n const itemIndex = items.indexOf(selectedItem);\n\n if (itemIndex > -1) {\n return itemIndex;\n }\n\n const sixMenuItems = this.extractItemsFromDOM();\n return sixMenuItems.findIndex(isFocusedMenuItem);\n }\n\n getActiveItem() {\n const activeElement = this.getItems().find((i) => i === document.activeElement);\n\n if (activeElement) {\n return activeElement;\n }\n\n return this.extractItemsFromDOM()?.find(isFocusedMenuItem);\n }\n\n private extractItemsFromDOM() {\n return Array.from(this.host?.shadowRoot?.querySelectorAll('six-menu-item'));\n }\n\n setActiveItem(item: HTMLSixMenuItemElement) {\n item.setFocus();\n }\n\n handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const clickedItem = target.closest('six-menu-item');\n if (clickedItem && !clickedItem.disabled) {\n this.sixMenuItemSelected.emit({ name: clickedItem.value, item: clickedItem });\n }\n }\n\n handleKeyDown(event: KeyboardEvent) {\n // Make a selection when pressing enter\n if (event.key === 'Enter') {\n const activeItem = this.getActiveItem();\n event.preventDefault();\n\n if (activeItem) {\n this.sixMenuItemSelected.emit({ name: activeItem.value, item: activeItem });\n }\n }\n\n // Prevent scrolling when space is pressed\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n // Move the selection when pressing down or up\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n const items = this.items === null ? this.getItems() : this.extractItemsFromDOM();\n\n let indexOfActiveItem = this.getActiveItemIndex();\n\n if (items.length) {\n event.preventDefault();\n\n if (event.key === 'ArrowDown') {\n indexOfActiveItem++;\n } else if (event.key === 'ArrowUp') {\n indexOfActiveItem--;\n } else if (event.key === 'Home') {\n indexOfActiveItem = 0;\n } else if (event.key === 'End') {\n indexOfActiveItem = items.length - 1;\n }\n\n if (indexOfActiveItem < 0) indexOfActiveItem = 0;\n if (indexOfActiveItem > items.length - 1) indexOfActiveItem = items.length - 1;\n\n this.setActiveItem(items[indexOfActiveItem]);\n\n return;\n }\n }\n\n void this.typeToSelect(event.key);\n }\n\n private getMenuWrapperStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.getItemsShown() > 0) {\n // calculate the proper height to show the correct number of items\n styles.height = `${this.getItemsShown() * this.sixMenuItemHeight}px`;\n }\n\n return {\n ...styles,\n };\n }\n\n private getMenuContainerStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll) {\n // calculate height of content are if all items would be rendered so the scrollbar has the proper size\n styles.transform = `translateY(${this.sixMenuItemHeight * this.scrollingIndex}px)`;\n }\n\n return {\n ...styles,\n };\n }\n\n private getScrollbarGhostStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll && this.items !== null) {\n styles.height = `${this.items.length * this.sixMenuItemHeight - this.itemSize * this.sixMenuItemHeight}px`;\n }\n\n return {\n ...styles,\n };\n }\n\n private renderItems() {\n if (this.items === undefined || this.items === null) {\n return;\n }\n\n if (!this.virtualScroll) {\n return this.items.map(mapToMenuItem);\n }\n\n return this.items\n .slice(this.scrollingIndex, Math.min(this.items.length, this.itemSize + this.scrollingIndex))\n .map(mapToMenuItem);\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuWrapper = el)}\n style={this.getMenuWrapperStyle()}\n part=\"wrapper\"\n class={{\n menu: true,\n 'menu--noshadow': this.removeBoxShadow,\n 'menu__wrapper--scrollable': this.getItemsShown() > 0,\n }}\n >\n <div\n ref={(el) => (this.menu = el)}\n part=\"base\"\n role=\"menu\"\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n tabIndex={0}\n style={this.getMenuContainerStyle()}\n >\n <slot />\n {this.renderItems()}\n </div>\n {this.virtualScroll && <div style={this.getScrollbarGhostStyle()} />}\n </div>\n );\n }\n}\n"],"mappings":"oQAAgBA,EAAWC,GACzB,MAAMC,EAAWD,EAAGC,SACpB,OAAOA,GAAY,CACrB,C,SAEgBC,EAA0BF,GAExC,GAAID,EAAWC,GAAK,CAClB,OAAOA,C,CAIT,GAAIA,EAAGG,WAAY,CACjB,MAAMC,EAAsB,IAAIJ,EAAGG,WAAWE,UAAUC,KAAKP,GAC7D,GAAIK,EAAqB,CACvB,OAAOA,C,EAKX,GAAIJ,EAAGK,SAAU,CACf,MAAO,IAAIL,EAAGK,UAAUE,IAAIL,GAA2B,E,CAGzD,OAAO,IACT,CCzBA,MAAMM,EAAiB,+wCCyBvB,MAAMC,EACHC,GACmBV,IAClBA,IAAE,MAAFA,SAAE,SAAFA,EAAIW,QAAQC,iBAAkBF,EAAKE,cACvC,MAAMC,EAAYJ,EAAU,YAC5B,MAAMK,EAAgBL,EAAU,iBAEhC,IAAIM,EAAK,E,MAqBIC,EAAW,M,yYAEtBC,KAAAC,YAAc,cA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EAAA,OAAK+D,MAAOxE,KAAKmN,2B"}
@@ -1,2 +0,0 @@
1
- import{r,h as o}from"./p-ac4f4d45.js";const i=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--height:16px;--track-color:var(--six-progress-track-color);--indicator-color:var(--six-progress-indicator-color);--label-color:var(--six-progress-label-color);display:block}.progress-bar{position:relative;background-color:var(--track-color);height:var(--height);border-radius:var(--sl-border-radius-pill);overflow:hidden}.progress-bar__indicator{height:100%;font-family:var(--six-font-sans);font-size:12px;font-weight:var(--six-font-weight-normal);background-color:var(--indicator-color);color:var(--label-color);text-align:center;line-height:var(--height);white-space:nowrap;overflow:hidden;transition:400ms width, 400ms background-color;user-select:none}.progress-bar--indeterminate .progress-bar__indicator{position:absolute;animation:indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1)}@keyframes indeterminate{0%{left:-50%;width:50%}75%,100%{left:100%;width:50%}}";const s=class{constructor(o){r(this,o);this.percentage=0;this.indeterminate=false}render(){return o("div",{part:"base",class:{"progress-bar":true,"progress-bar--indeterminate":this.indeterminate},role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?null:this.percentage},o("div",{part:"indicator",class:"progress-bar__indicator",style:{width:`${this.percentage}%`}},!this.indeterminate&&o("span",{part:"label",class:"progress-bar__label"},o("slot",null))))}};s.style=i;export{s as six_progress_bar};
2
- //# sourceMappingURL=p-baa03951.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixProgressBarCss","SixProgressBar","render","h","part","class","this","indeterminate","role","percentage","style","width"],"sources":["./src/components/six-progress-bar/six-progress-bar.scss?tag=six-progress-bar&encapsulation=shadow","./src/components/six-progress-bar/six-progress-bar.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --height: The progress bar's height.\n * @prop --track-color: The track color.\n * @prop --indicator-color: The indicator color.\n * @prop --label-color: The label color.\n */\n:host {\n --height: 16px;\n --track-color: var(--six-progress-track-color);\n --indicator-color: var(--six-progress-indicator-color);\n --label-color: var(--six-progress-label-color);\n\n display: block;\n}\n\n.progress-bar {\n position: relative;\n background-color: var(--track-color);\n height: var(--height);\n border-radius: var(--sl-border-radius-pill);\n overflow: hidden;\n}\n\n.progress-bar__indicator {\n height: 100%;\n font-family: var(--six-font-sans);\n font-size: 12px;\n font-weight: var(--six-font-weight-normal);\n background-color: var(--indicator-color);\n color: var(--label-color);\n text-align: center;\n line-height: var(--height);\n white-space: nowrap;\n overflow: hidden;\n transition: 400ms width, 400ms background-color;\n user-select: none;\n}\n\n// Indeterminate\n.progress-bar--indeterminate .progress-bar__indicator {\n position: absolute;\n animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);\n}\n\n@keyframes indeterminate {\n 0% {\n left: -50%;\n width: 50%;\n }\n 75%,\n 100% {\n left: 100%;\n width: 50%;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - A label to show inside the indicator.\n *\n * @part base - The component's base wrapper.\n * @part indicator - The progress bar indicator.\n * @part label - The progress bar label.\n */\n\n@Component({\n tag: 'six-progress-bar',\n styleUrl: 'six-progress-bar.scss',\n shadow: true,\n})\nexport class SixProgressBar {\n /** The progress bar's percentage, 0 to 100. */\n @Prop() percentage = 0;\n\n /** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */\n @Prop() indeterminate = false;\n\n render() {\n return (\n <div\n part=\"base\"\n class={{\n 'progress-bar': true,\n 'progress-bar--indeterminate': this.indeterminate,\n }}\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow={this.indeterminate ? null : this.percentage}\n >\n <div\n part=\"indicator\"\n class=\"progress-bar__indicator\"\n style={{\n width: `${this.percentage}%`,\n }}\n >\n {!this.indeterminate && (\n <span part=\"label\" class=\"progress-bar__label\">\n <slot />\n </span>\n )}\n </div>\n </div>\n );\n }\n}\n"],"mappings":"sCAAA,MAAMA,EAAoB,29B,MCoBbC,EAAc,M,yCAEJ,E,mBAGG,K,CAExBC,SACE,OACEC,EAAA,OACEC,KAAK,OACLC,MAAO,CACL,eAAgB,KAChB,8BAA+BC,KAAKC,eAEtCC,KAAK,cAAa,gBACJ,IAAG,gBACH,MAAK,gBACJF,KAAKC,cAAgB,KAAOD,KAAKG,YAEhDN,EAAA,OACEC,KAAK,YACLC,MAAM,0BACNK,MAAO,CACLC,MAAO,GAAGL,KAAKG,iBAGfH,KAAKC,eACLJ,EAAA,QAAMC,KAAK,QAAQC,MAAM,uBACvBF,EAAA,e"}
@@ -1,2 +0,0 @@
1
- import{r as e,c as a,h as s}from"./p-ac4f4d45.js";const t=".language-switcher__container{display:flex}.language-switcher__separator{padding:0 0.25rem}.language-switcher__label{cursor:pointer}.language-switcher__label:hover{color:var(--six-color-red)}.language-switcher__label--selected{color:var(--six-color-red)}";const r=["EN","DE","ES"];const i=class{constructor(s){e(this,s);this.sixChange=a(this,"six-language-switcher-change",7);this.handleLanguageSwitching=(e,a)=>()=>{if(a!==undefined){this.sixChange.emit(a)}else{this.sixChange.emit(e)}this.selected=e};this.selected=undefined;this.languages=r}handleChangesLanguages(e){if(!Array.isArray(e)){throw new Error("languages is expected to be an array")}this.updateSelectedLanguage()}componentWillLoad(){if(this.selected===undefined){this.updateSelectedLanguage()}}updateSelectedLanguage(){const e=this.languages[0];if(typeof e==="string"){this.selected=e;this.sixChange.emit(this.selected)}else{this.selected=e.key;this.sixChange.emit(e.value)}}render(){return s("div",{part:"container",class:"language-switcher__container"},this.languages.map(((e,a)=>{const t=typeof e==="string"?e:e.key;return s("div",{onClick:this.handleLanguageSwitching(t,e.value)},s("span",{part:"label",class:{"language-switcher__label":true,"language-switcher__label--selected":this.selected===t}},t),a<this.languages.length-1&&s("span",{part:"separator",class:"language-switcher__separator"},"/"))})))}static get watchers(){return{languages:["handleChangesLanguages"]}}};i.style=t;export{i as six_language_switcher};
2
- //# sourceMappingURL=p-c0cb6436.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixLanguageSwitcherCss","DEFAULT_LANGUAGES","SixLanguageSwitcher","this","handleLanguageSwitching","newLanguage","languageValue","undefined","sixChange","emit","selected","handleChangesLanguages","newValue","Array","isArray","Error","updateSelectedLanguage","componentWillLoad","selectedLanguage","languages","key","value","render","h","part","class","map","lang","index","language","onClick","length"],"sources":["./src/components/six-language-switcher/six-language-switcher.scss?tag=six-language-switcher&encapsulation=shadow","./src/components/six-language-switcher/six-language-switcher.tsx"],"sourcesContent":[".language-switcher {\n &__container {\n display: flex;\n }\n\n &__separator {\n padding: 0 0.25rem;\n }\n\n &__label {\n cursor: pointer;\n\n &:hover {\n color: var(--six-color-red);\n }\n\n &--selected {\n color: var(--six-color-red);\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\n\n/**\n * @since 2.1.0\n * @status experimental\n **/\n\nexport interface SixLanguageSwitcherInput {\n key: string;\n value: string;\n}\nexport type SixLanguageSwitcherChangePayload = string;\n\nconst DEFAULT_LANGUAGES = ['EN', 'DE', 'ES'];\n\n/*\n * @since 2.2.0\n * @status experimental\n * @part container - The whole component container\n * @part label - The language label\n * @part separator - The separator between the language labels\n */\n@Component({\n tag: 'six-language-switcher',\n styleUrl: 'six-language-switcher.scss',\n shadow: true,\n})\nexport class SixLanguageSwitcher {\n /** The language which should be shown as selected */\n @Prop({ mutable: true, reflect: true }) selected?: string;\n\n /** The languages which should be selectable options. */\n @Prop() languages: string[] | SixLanguageSwitcherInput[] = DEFAULT_LANGUAGES;\n\n @Watch('languages')\n handleChangesLanguages(newValue: string[]) {\n if (!Array.isArray(newValue)) {\n throw new Error('languages is expected to be an array');\n }\n\n this.updateSelectedLanguage();\n }\n /**\n * Emitted when the language switchers value changes\n */\n @Event({ eventName: 'six-language-switcher-change' }) sixChange: EventEmitter<SixLanguageSwitcherChangePayload>;\n\n componentWillLoad() {\n if (this.selected === undefined) {\n this.updateSelectedLanguage();\n }\n }\n\n private updateSelectedLanguage() {\n const selectedLanguage = this.languages[0];\n if (typeof selectedLanguage === 'string') {\n this.selected = selectedLanguage;\n this.sixChange.emit(this.selected);\n } else {\n this.selected = selectedLanguage.key;\n this.sixChange.emit(selectedLanguage.value);\n }\n }\n\n private handleLanguageSwitching = (newLanguage: string, languageValue?: string) => () => {\n if (languageValue !== undefined) {\n this.sixChange.emit(languageValue);\n } else {\n this.sixChange.emit(newLanguage);\n }\n this.selected = newLanguage;\n };\n\n render() {\n return (\n <div part=\"container\" class=\"language-switcher__container\">\n {this.languages.map((lang, index) => {\n const language = typeof lang === 'string' ? lang : lang.key;\n return (\n <div onClick={this.handleLanguageSwitching(language, lang.value)}>\n <span\n part=\"label\"\n class={{\n 'language-switcher__label': true,\n 'language-switcher__label--selected': this.selected === language,\n }}\n >\n {language}\n </span>\n {index < this.languages.length - 1 && (\n <span part=\"separator\" class=\"language-switcher__separator\">\n /\n </span>\n )}\n </div>\n );\n })}\n </div>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAyB,iQCa/B,MAAMC,EAAoB,CAAC,KAAM,KAAM,M,MAc1BC,EAAmB,M,iFAqCtBC,KAAAC,wBAA0B,CAACC,EAAqBC,IAA2B,KACjF,GAAIA,IAAkBC,UAAW,CAC/BJ,KAAKK,UAAUC,KAAKH,E,KACf,CACLH,KAAKK,UAAUC,KAAKJ,E,CAEtBF,KAAKO,SAAWL,CAAW,E,uCAtC8BJ,C,CAG3DU,uBAAuBC,GACrB,IAAKC,MAAMC,QAAQF,GAAW,CAC5B,MAAM,IAAIG,MAAM,uC,CAGlBZ,KAAKa,wB,CAOPC,oBACE,GAAId,KAAKO,WAAaH,UAAW,CAC/BJ,KAAKa,wB,EAIDA,yBACN,MAAME,EAAmBf,KAAKgB,UAAU,GACxC,UAAWD,IAAqB,SAAU,CACxCf,KAAKO,SAAWQ,EAChBf,KAAKK,UAAUC,KAAKN,KAAKO,S,KACpB,CACLP,KAAKO,SAAWQ,EAAiBE,IACjCjB,KAAKK,UAAUC,KAAKS,EAAiBG,M,EAazCC,SACE,OACEC,EAAA,OAAKC,KAAK,YAAYC,MAAM,gCACzBtB,KAAKgB,UAAUO,KAAI,CAACC,EAAMC,KACzB,MAAMC,SAAkBF,IAAS,SAAWA,EAAOA,EAAKP,IACxD,OACEG,EAAA,OAAKO,QAAS3B,KAAKC,wBAAwByB,EAAUF,EAAKN,QACxDE,EAAA,QACEC,KAAK,QACLC,MAAO,CACL,2BAA4B,KAC5B,qCAAsCtB,KAAKO,WAAamB,IAGzDA,GAEFD,EAAQzB,KAAKgB,UAAUY,OAAS,GAC/BR,EAAA,QAAMC,KAAK,YAAYC,MAAM,gCAA8B,KAIzD,I"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as s,h as a,H as i,g as o}from"./p-ac4f4d45.js";const e=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.tab{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-semibold);border-radius:4px;color:var(--six-tab-color);padding:var(--six-spacing-medium) var(--six-spacing-large);white-space:nowrap;user-select:none;cursor:pointer;transition:var(--six-transition-fast) box-shadow, var(--six-transition-fast) color}.tab:focus{outline:none}.tab:focus:not(.tab--disabled){color:var(--six-tab-color-active)}.tab.tab--active:not(.tab--disabled){color:var(--six-tab-color-active);font-weight:var(--six-font-weight-bold)}.tab.tab--closable{padding-right:var(--six-spacing-small)}.tab.tab--disabled{color:var(--six-tab-color-disabled);cursor:not-allowed}.tab:hover:not(.tab--disabled){color:var(--six-tab-color-hover)}.tab__close-button{font-size:var(--six-font-size-large);margin-left:var(--six-spacing-xx-small)}.tab__close-button::part(base){padding:var(--six-spacing-xxx-small)}";let r=0;const l=class{constructor(a){t(this,a);this.sixClose=s(this,"six-tab-close",7);this.componentId=`tab-${++r}`;this.panel="";this.active=false;this.closable=false;this.disabled=false}connectedCallback(){this.handleCloseClick=this.handleCloseClick.bind(this)}async setFocus(t){this.tab.focus(t)}async removeFocus(){this.tab.blur()}handleCloseClick(){this.sixClose.emit()}render(){return a(i,{id:this.host.id||this.componentId},a("div",{part:"base",ref:t=>this.tab=t,class:{tab:true,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled},role:"tab","aria-disabled":this.disabled?"true":"false","aria-selected":this.active?"true":"false",tabindex:this.disabled||!this.active?"-1":"0"},a("slot",null),this.closable&&a("six-icon-button",{name:"close",size:"xSmall",exportparts:"base:close-button",class:"tab__close-button",onClick:this.handleCloseClick,tabIndex:-1,"aria-hidden":"true"})))}get host(){return o(this)}};l.style=e;export{l as six_tab};
2
- //# sourceMappingURL=p-c30f9e0b.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTabCss","id","SixTab","this","componentId","connectedCallback","handleCloseClick","bind","async","options","tab","focus","blur","sixClose","emit","render","h","Host","host","part","ref","el","class","active","closable","disabled","role","tabindex","name","size","exportparts","onClick","tabIndex"],"sources":["./src/components/six-tab/six-tab.scss?tag=six-tab&encapsulation=shadow","./src/components/six-tab/six-tab.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.tab {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-semibold);\n border-radius: 4px;\n color: var(--six-tab-color);\n padding: var(--six-spacing-medium) var(--six-spacing-large);\n white-space: nowrap;\n user-select: none;\n cursor: pointer;\n transition: var(--six-transition-fast) box-shadow, var(--six-transition-fast) color;\n\n &:focus {\n outline: none;\n }\n\n &:focus:not(.tab--disabled) {\n color: var(--six-tab-color-active);\n }\n\n &.tab--active:not(.tab--disabled) {\n color: var(--six-tab-color-active);\n font-weight: var(--six-font-weight-bold);\n }\n\n &.tab--closable {\n padding-right: var(--six-spacing-small);\n }\n\n &.tab--disabled {\n color: var(--six-tab-color-disabled);\n cursor: not-allowed;\n }\n\n &:hover:not(.tab--disabled) {\n color: var(--six-tab-color-hover);\n }\n}\n\n.tab__close-button {\n font-size: var(--six-font-size-large);\n margin-left: var(--six-spacing-xx-small);\n\n &::part(base) {\n padding: var(--six-spacing-xxx-small);\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, Method, Prop, h } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n componentId = `tab-${++id}`;\n tab: HTMLElement;\n\n @Element() host: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab.blur();\n }\n\n handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n return (\n // If the user didn't provide an ID, we'll set one so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAY,kkCCGlB,IAAIC,EAAK,E,MAmBIC,EAAM,M,iEACjBC,KAAAC,YAAc,SAASH,I,WAMU,G,YAGC,M,cAGf,M,cAGiB,K,CAKpCI,oBACEF,KAAKG,iBAAmBH,KAAKG,iBAAiBC,KAAKJ,K,CAKrDK,eAAeC,GACbN,KAAKO,IAAIC,MAAMF,E,CAKjBD,oBACEL,KAAKO,IAAIE,M,CAGXN,mBACEH,KAAKU,SAASC,M,CAGhBC,SACE,OAEEC,EAACC,EAAI,CAAChB,GAAIE,KAAKe,KAAKjB,IAAME,KAAKC,aAC7BY,EAAA,OACEG,KAAK,OACLC,IAAMC,GAAQlB,KAAKO,IAAMW,EACzBC,MAAO,CACLZ,IAAK,KAGL,cAAeP,KAAKoB,OACpB,gBAAiBpB,KAAKqB,SACtB,gBAAiBrB,KAAKsB,UAExBC,KAAK,MAAK,gBACKvB,KAAKsB,SAAW,OAAS,QAAO,gBAChCtB,KAAKoB,OAAS,OAAS,QACtCI,SAAUxB,KAAKsB,WAAatB,KAAKoB,OAAS,KAAO,KAEjDP,EAAA,aACCb,KAAKqB,UACJR,EAAA,mBACEY,KAAK,QACLC,KAAK,SACLC,YAAY,oBACZR,MAAM,oBACNS,QAAS5B,KAAKG,iBACd0B,UAAW,EAAC,cACA,U"}
@@ -1,2 +0,0 @@
1
- import{r as e,h as i}from"./p-ac4f4d45.js";import{a as t}from"./p-b4dfb7cf.js";const s=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu-item{position:relative;display:flex;align-items:stretch;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:var(--six-line-height-normal);letter-spacing:var(--six-letter-spacing-normal);text-align:left;color:var(--six-input-color);border-radius:var(--six-border-radius-medium);padding:var(--six-spacing-medium) var(--six-spacing-medium);transition:var(--six-transition-fast) fill;user-select:none;white-space:nowrap;cursor:pointer}.menu-item.menu-item--focused:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--disabled{outline:none;color:var(--six-input-color-disabled);cursor:not-allowed}.menu-item .menu-item__label{flex:1 1 auto;align-self:center}.menu-item .menu-item__prefix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__prefix ::slotted(:last-child){margin-right:0.5em}.menu-item .menu-item__suffix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__suffix ::slotted(:first-child){margin-left:0.5em}.menu-item .menu-item__check{flex:0 0 auto;display:flex;align-items:center;margin-left:var(--six-spacing-small);visibility:hidden;font-size:inherit}.menu-item--checked .menu-item__check{visibility:visible}";const n=class{constructor(i){e(this,i);this.hasFocus=false;this.checked=false;this.value="";this.disabled=false}connectedCallback(){this.handleBlur=this.handleBlur.bind(this);this.handleFocus=this.handleFocus.bind(this);this.handleMouseEnter=this.handleMouseEnter.bind(this);this.handleMouseLeave=this.handleMouseLeave.bind(this)}async setFocus(e){this.menuItem.focus(e)}async removeFocus(){this.menuItem.blur()}getTextLabel(){return Promise.resolve(t(this.defaultSlot))}handleBlur(){this.hasFocus=false}handleFocus(){this.hasFocus=true}handleMouseEnter(){this.setFocus()}handleMouseLeave(){this.removeFocus()}render(){return i("div",{ref:e=>this.menuItem=e,part:"base",class:{"menu-item":true,"menu-item--checked":this.checked,"menu-item--disabled":this.disabled,"menu-item--focused":this.hasFocus},role:"menuitem","aria-disabled":this.disabled?"true":"false","aria-checked":this.checked?"true":"false",tabIndex:!this.disabled?0:null,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i("span",{part:"prefix",class:"menu-item__prefix"},i("slot",{name:"prefix"})),i("span",{part:"label",class:"menu-item__label"},i("slot",{ref:e=>this.defaultSlot=e})),i("span",{part:"suffix",class:"menu-item__suffix"},i("slot",{name:"suffix"})),i("span",{part:"checked-icon",class:"menu-item__check"},i("six-icon",{size:"small","aria-hidden":"true"},"check")))}};n.style=s;export{n as six_menu_item};
2
- //# sourceMappingURL=p-c349d1d4.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixMenuItemCss","SixMenuItem","connectedCallback","this","handleBlur","bind","handleFocus","handleMouseEnter","handleMouseLeave","async","options","menuItem","focus","blur","getTextLabel","Promise","resolve","getTextContent","defaultSlot","hasFocus","setFocus","removeFocus","render","h","ref","el","part","class","checked","disabled","role","tabIndex","onFocus","onBlur","onMouseEnter","onMouseLeave","name","size"],"sources":["./src/components/six-menu-item/six-menu-item.scss?tag=six-menu-item&encapsulation=shadow","./src/components/six-menu-item/six-menu-item.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n line-height: var(--six-line-height-normal);\n letter-spacing: var(--six-letter-spacing-normal);\n text-align: left;\n color: var(--six-input-color);\n border-radius: var(--six-border-radius-medium);\n padding: var(--six-spacing-medium) var(--six-spacing-medium);\n transition: var(--six-transition-fast) fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n\n &.menu-item--focused:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--disabled {\n outline: none;\n color: var(--six-input-color-disabled);\n cursor: not-allowed;\n }\n\n .menu-item__label {\n flex: 1 1 auto;\n align-self: center;\n }\n\n .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:last-child) {\n margin-right: 0.5em;\n }\n }\n\n .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:first-child) {\n margin-left: 0.5em;\n }\n }\n\n .menu-item__check {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n margin-left: var(--six-spacing-small);\n visibility: hidden;\n font-size: inherit;\n }\n}\n\n.menu-item--checked .menu-item__check {\n visibility: visible;\n}\n","import { Component, Method, Prop, State, h } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @part base - The component's base wrapper.\n * @part checked-icon - The container that wraps the checked icon.\n * @part prefix - The prefix container.\n * @part label - The menu item label.\n * @part suffix - The suffix container.\n */\n\n@Component({\n tag: 'six-menu-item',\n styleUrl: 'six-menu-item.scss',\n shadow: true,\n})\nexport class SixMenuItem {\n menuItem: HTMLElement;\n defaultSlot: HTMLSlotElement;\n\n @State() hasFocus = false;\n\n /** Set to true to draw the item in a checked state. */\n @Prop({ reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to draw the menu item in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.menuItem.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.menuItem.blur();\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n @Method()\n getTextLabel() {\n return Promise.resolve(getTextContent(this.defaultSlot));\n }\n\n handleBlur() {\n this.hasFocus = false;\n }\n\n handleFocus() {\n this.hasFocus = true;\n }\n\n handleMouseEnter() {\n this.setFocus();\n }\n\n handleMouseLeave() {\n this.removeFocus();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuItem = el)}\n part=\"base\"\n class={{\n 'menu-item': true,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--focused': this.hasFocus,\n }}\n role=\"menuitem\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-checked={this.checked ? 'true' : 'false'}\n tabIndex={!this.disabled ? 0 : null}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"prefix\" class=\"menu-item__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <span part=\"label\" class=\"menu-item__label\">\n <slot ref={(el) => (this.defaultSlot = el as HTMLSlotElement)} />\n </span>\n\n <span part=\"suffix\" class=\"menu-item__suffix\">\n <slot name=\"suffix\" />\n </span>\n\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <six-icon size=\"small\" aria-hidden=\"true\">\n check\n </six-icon>\n </span>\n </div>\n );\n }\n}\n"],"mappings":"+EAAA,MAAMA,EAAiB,64C,MCyBVC,EAAW,M,uCAIF,M,aAGe,M,WAGF,G,cAGG,K,CAEpCC,oBACEC,KAAKC,WAAaD,KAAKC,WAAWC,KAAKF,MACvCA,KAAKG,YAAcH,KAAKG,YAAYD,KAAKF,MACzCA,KAAKI,iBAAmBJ,KAAKI,iBAAiBF,KAAKF,MACnDA,KAAKK,iBAAmBL,KAAKK,iBAAiBH,KAAKF,K,CAKrDM,eAAeC,GACbP,KAAKQ,SAASC,MAAMF,E,CAKtBD,oBACEN,KAAKQ,SAASE,M,CAKhBC,eACE,OAAOC,QAAQC,QAAQC,EAAed,KAAKe,a,CAG7Cd,aACED,KAAKgB,SAAW,K,CAGlBb,cACEH,KAAKgB,SAAW,I,CAGlBZ,mBACEJ,KAAKiB,U,CAGPZ,mBACEL,KAAKkB,a,CAGPC,SACE,OACEC,EAAA,OACEC,IAAMC,GAAQtB,KAAKQ,SAAWc,EAC9BC,KAAK,OACLC,MAAO,CACL,YAAa,KACb,qBAAsBxB,KAAKyB,QAC3B,sBAAuBzB,KAAK0B,SAC5B,qBAAsB1B,KAAKgB,UAE7BW,KAAK,WAAU,gBACA3B,KAAK0B,SAAW,OAAS,QAAO,eACjC1B,KAAKyB,QAAU,OAAS,QACtCG,UAAW5B,KAAK0B,SAAW,EAAI,KAC/BG,QAAS7B,KAAKG,YACd2B,OAAQ9B,KAAKC,WACb8B,aAAc/B,KAAKI,iBACnB4B,aAAchC,KAAKK,kBAEnBe,EAAA,QAAMG,KAAK,SAASC,MAAM,qBACxBJ,EAAA,QAAMa,KAAK,YAGbb,EAAA,QAAMG,KAAK,QAAQC,MAAM,oBACvBJ,EAAA,QAAMC,IAAMC,GAAQtB,KAAKe,YAAcO,KAGzCF,EAAA,QAAMG,KAAK,SAASC,MAAM,qBACxBJ,EAAA,QAAMa,KAAK,YAGbb,EAAA,QAAMG,KAAK,eAAeC,MAAM,oBAC9BJ,EAAA,YAAUc,KAAK,QAAO,cAAa,QAAM,U"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-ac4f4d45.js";import{I as n}from"./p-25a3bf57.js";import{d as r,T as o,e as h,i as a,S as c}from"./p-d12c6092.js";import{D as p,b as l,a as u}from"./p-0786fa7c.js";import{E as m}from"./p-9a860acc.js";import{h as d}from"./p-b4dfb7cf.js";var f;(function(t){t["HHmmss"]="HH:mm:ss";t["hhmmssaa"]="hh:mm:ss:aa";t["HHmmssms"]="HH:mm:ss:ms";t["hhmmssmsaa"]="hh:mm:ss:ms:aa";t["HHmm"]="HH:mm";t["hhmmaa"]="hh:mm:aa";t["HH"]="HH";t["hhaa"]="hh:aa";t["mm"]="mm";t["ss"]="ss";t["ms"]="ms"})(f||(f={}));const x=()=>{const t=new Date;return{hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),milliseconds:t.getMilliseconds(),has24Hours:true}};const g=12;const k=t=>t>g?t-g:t;const b=()=>{const t=new Date;const i=t.getHours();return{hours:k(i),minutes:t.getMinutes(),seconds:t.getSeconds(),milliseconds:t.getMilliseconds(),has24Hours:false,period:i>=g?r.PM:r.AM}};const v=(t=true)=>t?x():b();const _=":";const y=(t,i)=>{const s=t.split(_);const e=i.split(_);return s.length===e.length};const w=(t,i)=>{const s=t.split(_);const e=i.split(_);if(!y(t,i)){console.error(`Timestring did not match expected format.\nExpected format: ${i}\nReceived timestring: ${t}`)}const n={};s.forEach(((t,i)=>{const s=e[i];const a=h[s];if(a!==undefined){if(s===o.PERIOD){n.period=t.toUpperCase()===r.PM?r.PM:r.AM}else{n[a]=Number(t)}}if(s===o.HOUR_24){n.has24Hours=true}else if(s===o.HOUR_12){n.has24Hours=false}}));return n};const H=(t,i)=>i.split(_).map((i=>{const s=h[i];const e=i===o.MILLISECOND?3:2;return String(t[s]).padStart(e,"0")})).join(_);const C=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block;font-family:var(--six-font-family)}.timepicker_clear{display:inline-flex;align-items:center;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;padding:0;transition:var(--six-transition-fast) color;cursor:pointer}.timepicker_clear:hover{color:var(--six-input-icon-color-hover)}.timepicker_clear:focus{outline:none}.timepicker_clear--right{right:0;position:absolute}.timepicker_clear--left{right:35px;position:absolute}.timepicker__container{position:relative}.timepicker__popup{display:flex;justify-content:center;min-width:min-content;min-height:145px;background-color:white;padding:0.5em 0.5em 1.5em;box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);user-select:none;position:absolute;z-index:var(--six-z-index-dropdown);right:0;left:0}.timepicker__popup--is-up{bottom:100%}.timepicker__popup--is-inline{position:initial;box-shadow:none;border:1px solid var(--six-color-web-rock-400)}.timepicker__separator{display:flex;align-items:center}.timepicker__item--wide{padding-left:0.5rem;padding-right:0.5rem}.input--empty .timepicker_clear{visibility:hidden}.input--hide{display:none}.prefix{cursor:pointer}.prefix--right{right:0;display:inline-flex;position:absolute;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;margin-right:var(--six-input-spacing-medium);transition:var(--six-transition-fast) color}";const P=`[SIX-TIMEPICKER]`;const S="debounced-timepicker";const z=145;const j=class{constructor(s){t(this,s);this.sixChange=i(this,"six-timepicker-change",7);this.sixChangeDebounced=i(this,"six-timepicker-change-debounced",7);this.sixClear=i(this,"six-timepicker-clear",7);this.eventListeners=new m;this.defaultValue=null;this.handleInputChange=t=>{t.stopPropagation();const i=this.inputElement.value;if(!y(i,this.format)){this.sixChange.emit({value:{},valueAsString:""});return}this.internalValue=w(i,this.format);this.sixChange.emit({value:this.internalValue,valueAsString:H(this.internalValue,this.format)})};this.handleSixTimepickerChangeDebounced=({detail:t})=>{this.sixChangeDebounced.emit(t)};this.handleChange=(t,i)=>{t.stopPropagation();this.internalValue[i]=t.detail;const s=H(this.internalValue,this.format);this.sixChange.emit({changedProperty:i,value:this.internalValue,valueAsString:s});this.value=s};this.handleDocumentMouseDown=t=>{const i=t.composedPath();if(!i.includes(this.host)){this.closePopup();return}};this.handleClearClick=t=>{t.stopPropagation();this.value=undefined;this.sixClear.emit()};this.format=f.HHmmss;this.separator=_;this.value=undefined;this.open=false;this.inline=false;this.readonly=false;this.disabled=false;this.placement=undefined;this.size="medium";this.required=undefined;this.placeholder=undefined;this.errorOnBlur=false;this.errorText="";this.label="";this.name="";this.clearable=false;this.iconPosition="left";this.hoist=false;this.timeout=p;this.interval=l;this.defaultTime=undefined;this.debounce=p;this.isPopupContentUp=false;this.isDropDownContentUp=false;this.internalValue=undefined}async resizeHandler(){this.calcIsPopupContentUp();this.moveOpenHoistedPopup()}async scrollHandler(){this.calcIsPopupContentUp();this.moveOpenHoistedPopup()}debounceChanged(){this.eventListeners.removeByIdentifier(S);this.eventListeners.add(this.host,"six-timepicker-change",u(this.handleSixTimepickerChangeDebounced,this.debounce),S)}valueChanged(t){if(this.value!==t){this.value=t}this.setupInternalTime();this.sixChange.emit({value:this.internalValue,valueAsString:H(this.internalValue,this.format)})}async reportValidity(){return this.inputElement.reportValidity()}async checkValidity(){return this.inputElement.checkValidity()}async setCustomValidity(t){await this.inputElement.setCustomValidity(t)}async reset(){this.internalValue=this.defaultValue;this.inputElement.value=H(this.internalValue,this.format);await this.inputElement.reset()}componentWillLoad(){this.setupInternalTime();if(this.inline){this.open=true}if(this.open){this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown)}}componentDidLoad(){this.eventListeners.add(this.host,"six-timepicker-change",u(this.handleSixTimepickerChangeDebounced,this.debounce),S);this.eventListeners.add(this.inputElement,"six-input-input",u(this.handleInputChange,this.debounce))}disconnectedCallback(){this.eventListeners.removeAll()}calcIsPopupContentUp(){if(!this.inputElement||!this.wrapper){return}const t=this.inputElement.getBoundingClientRect();const i=this.wrapper.getBoundingClientRect();const s=Math.max(i.height,z);const e=t.y>window.innerHeight/2;this.isPopupContentUp=e&&window.innerHeight<t.bottom+s}moveOpenHoistedPopup(){if(!this.hoist||!this.open){return}const t=this.popup.getBoundingClientRect();const i=t.height;const s=this.inputElement.getBoundingClientRect();const e=s.top;const n=s.height;this.calcIsPopupContentUp();if(this.isPopupContentUp){this.popup.style.top=`${e-i}px`}else{this.popup.style.top=`${e+n}px`}}getSixTimeUnitPicker(t){return s("six-item-picker",{class:t.class,timeout:this.timeout,interval:this.interval,padded:true,min:t.min,max:t.max,value:this.internalValue[t.propertyName],items:t.items,type:t.type||n.NUMBER,"padding-length":t.paddingLength,"onSix-item-picker-change":i=>this.handleChange(i,t.propertyName)})}setupInternalTime(){if(this.is12HourClock()&&!this.format.includes(o.PERIOD)){console.error(`${P} You provided a 12-hour-clock format but are missing the period (am or pm) in the time-format-string!`)}if(this.value===null||this.value===undefined){this.internalValue=a(this.defaultTime)?v(this.is24HourClock()):w(this.defaultTime,this.format)}else{this.internalValue=w(this.value,this.format)}this.defaultValue=this.internalValue}getHour24Picker(){if(!this.is24HourClock()){return}return this.getSixTimeUnitPicker({min:0,max:23,propertyName:c.HOURS})}is24HourClock(){return this.format.includes(o.HOUR_24)}getHour12Picker(){if(!this.is12HourClock()){return}return this.getSixTimeUnitPicker({min:0,max:11,propertyName:c.HOURS})}is12HourClock(){return this.format.includes(o.HOUR_12)}getAmPmPicker(){if(!this.is12HourClock()){return}const t=["AM","PM"];return this.getSixTimeUnitPicker({items:t,type:n.CUSTOM,propertyName:c.PERIOD})}getMinutePicker(){if(!this.format.includes(o.MINUTE)){return}return this.getSixTimeUnitPicker({min:0,max:59,propertyName:c.MINUTES})}getSecondsPicker(){if(!this.format.includes(o.SECOND)){return}return this.getSixTimeUnitPicker({min:0,max:59,propertyName:c.SECONDS})}getMillisecondsPicker(){if(!this.format.includes(o.MILLISECOND)){return}return this.getSixTimeUnitPicker({min:0,max:999,class:"timepicker__item--wide",paddingLength:3,propertyName:c.MILLISECONDS})}getSeparator(){return s("div",{class:"timepicker__separator"},s("span",null,this.separator))}getContent(){const t=[this.getHour24Picker(),this.getHour12Picker(),this.getMinutePicker(),this.getSecondsPicker(),this.getMillisecondsPicker()];const i=t.filter((t=>t!==undefined));return i.map(((t,s)=>{if(s===i.length-1){return[t]}return[t,this.getSeparator()]}))}openPopup(){if(!this.open&&!this.disabled){this.open=true;this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown)}}closePopup(){if(this.inline){return}this.open=false;this.eventListeners.remove(document,"mousedown",this.handleDocumentMouseDown)}renderClearable(){return this.clearable&&s("button",{slot:"suffix",class:{timepicker_clear:true,"timepicker_clear--right":this.iconPosition==="left","timepicker_clear--left":this.iconPosition==="right"},type:"button",onClick:this.handleClearClick,tabindex:"-1"},s("six-icon",{size:"small"},"clear"))}renderCustomIcon(){const t=d(this.host,"custom-icon")?s("slot",{name:"custom-icon"}):s("six-icon",{size:this.size==="large"?"medium":this.size},"watch_later");return s("span",{slot:"prefix",part:"icon",class:{prefix:true,"prefix--right":this.iconPosition==="right"}},t)}calcIsDropDownContentUp(){if(!this.inputElement||!this.wrapper){return}const t=this.inputElement.getBoundingClientRect();const i=this.wrapper.getBoundingClientRect();const s=Math.max(i.height,z);const e=t.y>window.innerHeight/2;this.isDropDownContentUp=e&&window.innerHeight<t.bottom+s}adjustPopupForHoisting(){if(!this.hoist){return}setTimeout((()=>{if(!this.popup){return}const t=this.popup.getBoundingClientRect();this.popup.style.position="fixed";["top","left","width","height"].forEach((i=>{this.popup.style[i]=`${t[i]}px`}));const i=this.inputElement.getBoundingClientRect();const s=i.top;const e=t.top;this.calcIsDropDownContentUp();if(this.isDropDownContentUp&&s<e){this.popup.style.top=`${e-t.height-i.height}px`}}),0)}render(){this.adjustPopupForHoisting();return s("div",{part:"container",ref:t=>this.wrapper=t,class:"timepicker__container"},s("six-input",{ref:t=>this.inputElement=t,part:"input",onClick:()=>this.openPopup(),value:this.value,placeholder:this.placeholder,readonly:this.readonly,disabled:this.disabled,size:this.size,name:this.name,label:this.label,required:this.required,"error-text":this.errorText,"error-on-blur":this.errorOnBlur,class:{"input--empty":!this.value,"input--hide":this.inline}},this.renderCustomIcon(),this.renderClearable(),d(this.host,"error-text")?s("span",{slot:"error-text"},s("slot",{name:"error-text"})):null,d(this.host,"label")?s("span",{slot:"label"},s("slot",{name:"label"})):null),this.open&&s("div",{ref:t=>this.popup=t,part:"popup",class:{timepicker__popup:true,"timepicker__popup--is-up":this.placement?this.placement==="top":this.isPopupContentUp,"timepicker__popup--is-inline":this.inline}},...this.getContent(),this.getAmPmPicker()))}get host(){return e(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};j.style=C;export{j as six_timepicker};
2
- //# sourceMappingURL=p-c53a63f9.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SixTimeFormat","getCurrentTimeIn24Hours","now","Date","hours","getHours","minutes","getMinutes","seconds","getSeconds","milliseconds","getMilliseconds","has24Hours","HOURS_IN_12_HOUR_CLOCK_FORMAT","getHoursIn12HourFormat","getCurrentTimeIn12Hours","period","SixTimePeriod","PM","AM","getCurrentTime","TIME_FORMAT_SEPARATOR","isValidTimeString","timeStr","format","timeStringParts","split","timeFormatParts","length","parseTimeString","console","error","sixTime","forEach","timeStringPart","i","formatStringPart","sixTimePropertyName","TIME_FORMAT_CHAR_TO_SIX_TIME_PROPERTY_MAP","undefined","TIME_FORMAT_CHAR","PERIOD","toUpperCase","Number","HOUR_24","HOUR_12","createTimeString","time","map","timeFormatPart","paddingLength","MILLISECOND","String","padStart","join","sixTimepickerCss","TAG","DEBOUNCE_TIMEPICKER_LISTENER","MIN_POPUP_HEIGHT","SixTimepicker","this","eventListeners","EventListeners","defaultValue","handleInputChange","event","stopPropagation","inputValue","inputElement","value","sixChange","emit","valueAsString","internalValue","handleSixTimepickerChangeDebounced","detail","sixChangeDebounced","handleChange","property","timeString","changedProperty","handleDocumentMouseDown","path","composedPath","includes","host","closePopup","handleClearClick","sixClear","HHmmss","DEFAULT_DEBOUNCE_FAST","DEFAULT_DEBOUNCE_INSANELY_FAST","async","calcIsPopupContentUp","moveOpenHoistedPopup","debounceChanged","removeByIdentifier","add","debounce","valueChanged","newValue","setupInternalTime","reportValidity","checkValidity","message","setCustomValidity","reset","componentWillLoad","inline","open","document","componentDidLoad","disconnectedCallback","removeAll","wrapper","inputBoundingRect","getBoundingClientRect","wrapperBoundingRect","minPopupHeight","Math","max","height","moreSpaceInTop","y","window","innerHeight","isPopupContentUp","bottom","hoist","popupBoundingClientRect","popup","popupHeight","inputBoundingClientRect","inputTop","top","inputHeight","style","getSixTimeUnitPicker","params","h","class","timeout","interval","padded","min","propertyName","items","type","ItemPickerType","NUMBER","is12HourClock","isNil","defaultTime","is24HourClock","getHour24Picker","SixTimePropertyName","HOURS","getHour12Picker","getAmPmPicker","CUSTOM","getMinutePicker","MINUTE","MINUTES","getSecondsPicker","SECOND","SECONDS","getMillisecondsPicker","MILLISECONDS","getSeparator","separator","getContent","elementsInOrder","visibleElements","filter","el","idx","openPopup","disabled","remove","renderClearable","clearable","slot","timepicker_clear","iconPosition","onClick","tabindex","size","renderCustomIcon","icon","hasSlot","name","part","prefix","calcIsDropDownContentUp","isDropDownContentUp","adjustPopupForHoisting","setTimeout","position","popupTop","render","ref","placeholder","readonly","label","required","errorText","errorOnBlur","timepicker__popup","placement"],"sources":["./src/components/six-timepicker/six-time-format.tsx","./src/utils/time.util.ts","./src/components/six-timepicker/six-timepicker.scss?tag=six-timepicker&encapsulation=shadow","./src/components/six-timepicker/six-timepicker.tsx"],"sourcesContent":["export enum SixTimeFormat {\n HHmmss = 'HH:mm:ss', // 24 hour format\n hhmmssaa = 'hh:mm:ss:aa',\n HHmmssms = 'HH:mm:ss:ms',\n hhmmssmsaa = 'hh:mm:ss:ms:aa',\n HHmm = 'HH:mm',\n hhmmaa = 'hh:mm:aa',\n HH = 'HH',\n hhaa = 'hh:aa',\n mm = 'mm',\n ss = 'ss',\n ms = 'ms',\n}\n","/*\n * Returns the current time in the format of your choice\n */\nimport {\n SixTime,\n SixTimePeriod,\n TIME_FORMAT_CHAR,\n TIME_FORMAT_CHAR_TO_SIX_TIME_PROPERTY_MAP,\n} from '../components/six-timepicker/six-timepicker.types';\nimport { SixTimeFormat } from '../components/six-timepicker/six-time-format';\n\nexport const getCurrentTimeIn24Hours = (): SixTime => {\n const now = new Date();\n return {\n hours: now.getHours(),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: true,\n };\n};\n\nconst HOURS_IN_12_HOUR_CLOCK_FORMAT = 12;\n\nexport const getHoursIn12HourFormat = (hours: number) =>\n hours > HOURS_IN_12_HOUR_CLOCK_FORMAT ? hours - HOURS_IN_12_HOUR_CLOCK_FORMAT : hours;\n\nexport const getCurrentTimeIn12Hours = (): SixTime => {\n const now = new Date();\n const hours = now.getHours();\n return {\n hours: getHoursIn12HourFormat(hours),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: false,\n period: hours >= HOURS_IN_12_HOUR_CLOCK_FORMAT ? SixTimePeriod.PM : SixTimePeriod.AM,\n };\n};\n\nexport const getCurrentTime = (has24Hours: boolean = true): SixTime => {\n return has24Hours ? getCurrentTimeIn24Hours() : getCurrentTimeIn12Hours();\n};\n\nexport const TIME_FORMAT_SEPARATOR = ':';\nexport const isValidTimeString = (timeStr: string, format: SixTimeFormat) => {\n const timeStringParts = timeStr.split(TIME_FORMAT_SEPARATOR);\n const timeFormatParts = format.split(TIME_FORMAT_SEPARATOR);\n return timeStringParts.length === timeFormatParts.length;\n};\n\nexport const parseTimeString = (timeStr: string, format: SixTimeFormat): SixTime => {\n const timeStringParts = timeStr.split(TIME_FORMAT_SEPARATOR);\n const timeFormatParts = format.split(TIME_FORMAT_SEPARATOR);\n\n if (!isValidTimeString(timeStr, format)) {\n console.error(\n `Timestring did not match expected format.\\nExpected format: ${format}\\nReceived timestring: ${timeStr}`\n );\n }\n\n const sixTime: SixTime = {};\n\n timeStringParts.forEach((timeStringPart, i) => {\n const formatStringPart = timeFormatParts[i];\n const sixTimePropertyName = TIME_FORMAT_CHAR_TO_SIX_TIME_PROPERTY_MAP[formatStringPart];\n\n if (sixTimePropertyName !== undefined) {\n if (formatStringPart === TIME_FORMAT_CHAR.PERIOD) {\n sixTime.period = timeStringPart.toUpperCase() === SixTimePeriod.PM ? SixTimePeriod.PM : SixTimePeriod.AM;\n } else {\n sixTime[sixTimePropertyName] = Number(timeStringPart);\n }\n }\n\n if (formatStringPart === TIME_FORMAT_CHAR.HOUR_24) {\n sixTime.has24Hours = true;\n } else if (formatStringPart === TIME_FORMAT_CHAR.HOUR_12) {\n sixTime.has24Hours = false;\n }\n });\n\n return sixTime;\n};\n\nexport const createTimeString = (time: SixTime, format: SixTimeFormat) => {\n return format\n .split(TIME_FORMAT_SEPARATOR)\n .map((timeFormatPart) => {\n const sixTimePropertyName = TIME_FORMAT_CHAR_TO_SIX_TIME_PROPERTY_MAP[timeFormatPart];\n const paddingLength = timeFormatPart === TIME_FORMAT_CHAR.MILLISECOND ? 3 : 2;\n return String(time[sixTimePropertyName]).padStart(paddingLength, '0');\n })\n .join(TIME_FORMAT_SEPARATOR);\n};\n","@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.timepicker {\n &_clear {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n\n &--right {\n right: 0;\n position: absolute;\n }\n\n &--left {\n right: 35px;\n position: absolute;\n }\n }\n\n &__container {\n position: relative;\n }\n\n &__popup {\n display: flex;\n justify-content: center;\n min-width: min-content;\n min-height: 145px;\n background-color: white;\n padding: 0.5em 0.5em 1.5em;\n box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);\n user-select: none;\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n right: 0;\n left: 0;\n\n &--is-up {\n bottom: 100%;\n }\n\n &--is-inline {\n position: initial;\n box-shadow: none;\n border: 1px solid var(--six-color-web-rock-400);\n }\n }\n\n &__separator {\n display: flex;\n align-items: center;\n }\n\n &__item {\n &--wide {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n }\n }\n}\n\n.input--empty .timepicker_clear {\n visibility: hidden;\n}\n\n.input--hide {\n display: none;\n}\n\n// Icon position\n.prefix {\n cursor: pointer;\n\n &--right {\n right: 0;\n display: inline-flex;\n position: absolute;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n margin-right: var(--six-input-spacing-medium);\n transition: var(--six-transition-fast) color;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport { SixTimeFormat } from './six-time-format';\nimport { SixTime, SixTimePropertyName, TIME_FORMAT_CHAR } from './six-timepicker.types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n TIME_FORMAT_SEPARATOR,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { isNil } from '../../utils/type-check';\n\ninterface SixTimepickerBasePayload {\n value: SixTime;\n valueAsString: string;\n}\n\nexport interface SixTimepickerChange extends SixTimepickerBasePayload {\n changedProperty?: string;\n}\n\nexport interface SixTimepickerInput extends SixTimepickerBasePayload {}\n\nexport interface SixTimepickerBlur extends SixTimepickerBasePayload {}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: string;\n}\n\nconst TAG = `[SIX-TIMEPICKER]`;\nconst DEBOUNCE_TIMEPICKER_LISTENER = 'debounced-timepicker';\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private readonly eventListeners = new EventListeners();\n\n private popup: HTMLElement;\n\n private wrapper: HTMLElement;\n\n private inputElement: HTMLSixInputElement;\n\n @Element() host: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: SixTimeFormat = SixTimeFormat.HHmmss;\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = TIME_FORMAT_SEPARATOR;\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value?: string | null;\n\n /** Indicates whether or not the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether or not the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to make the input a required field. */\n @Prop({ reflect: true }) required: boolean;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string | null;\n\n /** Set to display the error text on blur and not when typing */\n @Prop() errorOnBlur = false;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\n @Prop() errorText = '';\n\n /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string | null;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' })\n sixChangeDebounced: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Watch('debounce')\n protected debounceChanged() {\n this.eventListeners.removeByIdentifier(DEBOUNCE_TIMEPICKER_LISTENER);\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce(this.handleSixTimepickerChangeDebounced, this.debounce),\n DEBOUNCE_TIMEPICKER_LISTENER\n );\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged(newValue: string) {\n if (this.value !== newValue) {\n this.value = newValue;\n }\n this.setupInternalTime();\n this.sixChange.emit({\n value: this.internalValue,\n valueAsString: createTimeString(this.internalValue, this.format),\n });\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n @Method()\n async reportValidity() {\n return this.inputElement.reportValidity();\n }\n\n /** Checks for validity. */\n @Method()\n async checkValidity() {\n return this.inputElement.checkValidity();\n }\n\n /** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */\n @Method()\n async setCustomValidity(message: string) {\n await this.inputElement.setCustomValidity(message);\n }\n\n /** Resets the formcontrol */\n @Method()\n async reset() {\n this.internalValue = this.defaultValue;\n this.inputElement.value = createTimeString(this.internalValue, this.format);\n await this.inputElement.reset();\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State()\n private internalValue: SixTime;\n\n private defaultValue: SixTime = null;\n\n componentWillLoad() {\n this.setupInternalTime();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce(this.handleSixTimepickerChangeDebounced, this.debounce),\n DEBOUNCE_TIMEPICKER_LISTENER\n );\n this.eventListeners.add(this.inputElement, 'six-input-input', debounce(this.handleInputChange, this.debounce));\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private handleInputChange = (event: Event) => {\n event.stopPropagation();\n const inputValue = this.inputElement.value;\n\n if (!isValidTimeString(inputValue, this.format)) {\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n this.internalValue = parseTimeString(inputValue, this.format);\n this.sixChange.emit({\n value: this.internalValue,\n valueAsString: createTimeString(this.internalValue, this.format),\n });\n };\n\n private calcIsPopupContentUp() {\n if (!this.inputElement || !this.wrapper) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n /*\n * The position of the hoisted timepicker needs to be correctly calculated since the position changes to fixed.\n * Thus if the user scrolls or adjusts the screen size we need to recalculate the timepicker position.\n */\n private moveOpenHoistedPopup() {\n if (!this.hoist || !this.open) {\n return;\n }\n\n const popupBoundingClientRect = this.popup.getBoundingClientRect();\n const popupHeight = popupBoundingClientRect.height;\n const inputBoundingClientRect = this.inputElement.getBoundingClientRect();\n const inputTop = inputBoundingClientRect.top;\n const inputHeight = inputBoundingClientRect.height;\n\n this.calcIsPopupContentUp();\n\n if (this.isPopupContentUp) {\n this.popup.style.top = `${inputTop - popupHeight}px`;\n } else {\n this.popup.style.top = `${inputTop + inputHeight}px`;\n }\n }\n\n private handleSixTimepickerChangeDebounced = ({ detail }) => {\n this.sixChangeDebounced.emit(detail);\n };\n\n private handleChange = (event: CustomEvent<SixItemPickerChangePayload>, property: string) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n\n // update the internal state\n this.internalValue[property] = event.detail;\n\n const timeString = createTimeString(this.internalValue, this.format);\n\n // fire timepicker's own event\n this.sixChange.emit({\n changedProperty: property,\n value: this.internalValue,\n valueAsString: timeString,\n });\n\n // update the input value\n this.value = timeString;\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n value={this.internalValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handleChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private setupInternalTime() {\n if (this.is12HourClock() && !this.format.includes(TIME_FORMAT_CHAR.PERIOD)) {\n console.error(\n `${TAG} You provided a 12-hour-clock format but are missing the period (am or pm) in the time-format-string!`\n );\n }\n\n if (this.value === null || this.value === undefined) {\n this.internalValue = isNil(this.defaultTime)\n ? getCurrentTime(this.is24HourClock())\n : parseTimeString(this.defaultTime, this.format);\n } else {\n this.internalValue = parseTimeString(this.value, this.format);\n }\n\n this.defaultValue = this.internalValue;\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: SixTimePropertyName.HOURS });\n }\n\n private is24HourClock() {\n return this.format.includes(TIME_FORMAT_CHAR.HOUR_24);\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: SixTimePropertyName.HOURS });\n }\n\n private is12HourClock() {\n return this.format.includes(TIME_FORMAT_CHAR.HOUR_12);\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: SixTimePropertyName.PERIOD,\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes(TIME_FORMAT_CHAR.MINUTE)) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: SixTimePropertyName.MINUTES });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes(TIME_FORMAT_CHAR.SECOND)) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: SixTimePropertyName.SECONDS });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes(TIME_FORMAT_CHAR.MILLISECOND)) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: SixTimePropertyName.MILLISECONDS,\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = undefined;\n this.sixClear.emit();\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n private calcIsDropDownContentUp() {\n if (!this.inputElement || !this.wrapper) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isDropDownContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n /*\n * If the popup is hoisted we popup is hoisted its position will change to fix to not be clipped of by a containing container.\n * To render the popup correctly we render it normally, and then assign this screenposition to the fixed popup\n */\n private adjustPopupForHoisting() {\n if (!this.hoist) {\n return;\n }\n\n // execute after dropdown has been rendered to make sure the popup reference is correctly set\n setTimeout(() => {\n if (!this.popup) {\n return;\n }\n\n // take a snapshot of normally rendered popup\n const popupBoundingClientRect = this.popup.getBoundingClientRect();\n\n // apply screen position to fixed popup\n this.popup.style.position = 'fixed';\n ['top', 'left', 'width', 'height'].forEach((property) => {\n this.popup.style[property] = `${popupBoundingClientRect[property]}px`;\n });\n\n const inputBoundingClientRect = this.inputElement.getBoundingClientRect();\n const inputTop = inputBoundingClientRect.top;\n const popupTop = popupBoundingClientRect.top;\n\n this.calcIsDropDownContentUp();\n // check screen position to check whether the popup should be moved above or below the trigger element\n if (this.isDropDownContentUp && inputTop < popupTop) {\n // move popup above input field if timepicker is at bottom of screen\n this.popup.style.top = `${popupTop - popupBoundingClientRect.height - inputBoundingClientRect.height}px`;\n }\n }, 0);\n }\n\n render() {\n this.adjustPopupForHoisting();\n\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n error-text={this.errorText}\n error-on-blur={this.errorOnBlur}\n class={{\n 'input--empty': !this.value,\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"],"mappings":"uRAAA,IAAYA,GAAZ,SAAYA,GACVA,EAAA,qBACAA,EAAA,0BACAA,EAAA,0BACAA,EAAA,+BACAA,EAAA,gBACAA,EAAA,qBACAA,EAAA,WACAA,EAAA,gBACAA,EAAA,WACAA,EAAA,WACAA,EAAA,UACD,EAZD,CAAYA,MAAa,KCWlB,MAAMC,EAA0B,KACrC,MAAMC,EAAM,IAAIC,KAChB,MAAO,CACLC,MAAOF,EAAIG,WACXC,QAASJ,EAAIK,aACbC,QAASN,EAAIO,aACbC,aAAcR,EAAIS,kBAClBC,WAAY,KACb,EAGH,MAAMC,EAAgC,GAE/B,MAAMC,EAA0BV,GACrCA,EAAQS,EAAgCT,EAAQS,EAAgCT,EAE3E,MAAMW,EAA0B,KACrC,MAAMb,EAAM,IAAIC,KAChB,MAAMC,EAAQF,EAAIG,WAClB,MAAO,CACLD,MAAOU,EAAuBV,GAC9BE,QAASJ,EAAIK,aACbC,QAASN,EAAIO,aACbC,aAAcR,EAAIS,kBAClBC,WAAY,MACZI,OAAQZ,GAASS,EAAgCI,EAAcC,GAAKD,EAAcE,GACnF,EAGI,MAAMC,EAAiB,CAACR,EAAsB,OAC5CA,EAA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QAAMmD,KAAK,WAEX,MAELlI,KAAKiD,MACJ8B,EAAA,OACE6D,IAAM1B,GAAQlH,KAAKsE,MAAQ4C,EAC3BiB,KAAK,QACLnD,MAAO,CACLmE,kBAAmB,KACnB,2BAA4BnJ,KAAKoJ,UAAYpJ,KAAKoJ,YAAc,MAAQpJ,KAAKkE,iBAC7E,+BAAgClE,KAAKgD,YAGnChD,KAAK8G,aACR9G,KAAKkG,iB"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as s}from"./p-ac4f4d45.js";import{E as e}from"./p-9a860acc.js";const n=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}";const a=class{constructor(s){t(this,s);this.sixSubmit=i(this,"six-form-submit",7);this.sixChange=i(this,"six-form-change",7);this.sixReset=i(this,"six-form-reset",7);this.eventListeners=new e;this.novalidate=false}connectedCallback(){this.formControls=[{tag:"six-button",serialize:(t,i)=>t.name&&!t.disabled?i.append(t.name,t.value):null,click:t=>{const i=t.target;if(i.submit){this.submit()}if(i.reset){this.reset()}}},{tag:"six-checkbox",serialize:(t,i)=>t.name&&t.checked&&!t.disabled?i.append(t.name,t.value):null,changeEventName:"six-checkbox-change"},{tag:"six-color-picker",serialize:(t,i)=>t.name&&!t.disabled?i.append(t.name,t.value):null},{tag:"six-input",serialize:(t,i)=>t.name&&!t.disabled?i.append(t.name,t.value):null,keyDown:t=>{if(t.key==="Enter"&&!t.defaultPrevented){this.submit()}},changeEventName:"six-input-change"},{tag:"six-datepicker",serialize:(t,i)=>{var s;return t.name&&!t.disabled?i.append(t.name,(s=t.value)===null||s===void 0?void 0:s.toISOString()):null},keyDown:t=>{if(t.key==="Enter"&&!t.defaultPrevented){this.submit()}},changeEventName:"six-datepicker-select"},{tag:"six-radio",serialize:(t,i)=>t.name&&t.checked&&!t.disabled?i.append(t.name,t.value):null,changeEventName:"six-radio-change"},{tag:"six-range",serialize:(t,i)=>{if(t.name&&!t.disabled){i.append(t.name,t.value+"")}},changeEventName:"six-range-change"},{tag:"six-select",serialize:(t,i)=>{if(t.name&&!t.disabled){if(t.multiple){const s=[...t.value];if(s.length){s.map((s=>i.append(t.name,s)))}else{i.append(t.name,"")}}else{i.append(t.name,t.value+"")}}},changeEventName:"six-select-change"},{tag:"six-switch",serialize:(t,i)=>t.name&&t.checked&&!t.disabled?i.append(t.name,t.value):null,changeEventName:"six-switch-change"},{tag:"six-textarea",serialize:(t,i)=>t.name&&!t.disabled?i.append(t.name,t.value):null,changeEventName:"six-textarea-change"},{tag:"six-timepicker",serialize:(t,i)=>t.name&&!t.disabled?i.append(t.name,t.value):null,keyDown:t=>{if(t.key==="Enter"&&!t.defaultPrevented){this.submit()}},changeEventName:"six-timepicker-change"}];this.handleClick=this.handleClick.bind(this);this.handleKeyDown=this.handleKeyDown.bind(this)}disconnectedCallback(){this.eventListeners.removeAll()}componentDidLoad(){this.getFormControls().then((t=>t.forEach((t=>this.appendChangeListener(t)))))}appendChangeListener(t){const i=t.tagName.toLowerCase();for(const s of this.formControls){if(s.tag===i&&s.changeEventName){this.eventListeners.add(t,s.changeEventName,(()=>this.handleChange(t)))}}}async getFormData(){const t=new FormData;const i=await this.getFormControls();i.map((i=>this.serializeElement(i,t)));return t}async getFormControls(){const t=this.form.querySelector("slot");const i=this.formControls.map((t=>t.tag));return t.assignedElements({flatten:true}).reduce(((t,i)=>t.concat(i,[...i.querySelectorAll("*")])),[]).filter((t=>i.includes(t.tagName.toLowerCase())))}async submit(){const t=await this.getFormData();const i=await this.getFormControls();const s=i.filter((t=>typeof t.reportValidity==="function"));if(!this.novalidate){let t=true;for(const i of s){if(!await i.reportValidity()){t=false}}if(!t){return false}}this.sixSubmit.emit({formData:t,formControls:i});return true}async checkValidity(){const t=await this.getFormControls();const i=t.filter((t=>typeof t.checkValidity==="function")).map((t=>t.checkValidity()));const s=await Promise.all(i).then((t=>t.filter((t=>t===false))));return s.length==0}async reset(){const t=await this.getFormControls();t.filter((t=>(t===null||t===void 0?void 0:t.reset)&&typeof(t===null||t===void 0?void 0:t.reset)==="function")).forEach((t=>t.reset()));this.sixReset.emit()}handleClick(t){const i=t.target;const s=i.tagName.toLowerCase();for(const i of this.formControls){if(i.tag===s&&i.click){i.click(t)}}}handleKeyDown(t){const i=t.target;const s=i.tagName.toLowerCase();for(const i of this.formControls){if(i.tag===s&&i.keyDown){i.keyDown(t)}}}handleChange(t){this.checkValidity().then((i=>this.sixChange.emit({valid:i,formControl:t})))}serializeElement(t,i){const s=t.tagName.toLowerCase();for(const e of this.formControls){if(e.tag===s){return e.serialize(t,i)}}return null}render(){return s("div",{ref:t=>this.form=t,part:"base",class:"form",role:"form",onClick:this.handleClick,onKeyDown:this.handleKeyDown},s("slot",null))}};a.style=n;export{a as six_form};
2
- //# sourceMappingURL=p-c640c2d8.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixFormCss","SixForm","this","eventListeners","EventListeners","connectedCallback","formControls","tag","serialize","el","formData","name","disabled","append","value","click","event","target","submit","reset","checked","changeEventName","keyDown","key","defaultPrevented","_a","toISOString","multiple","selectedOptions","length","map","handleClick","bind","handleKeyDown","disconnectedCallback","removeAll","componentDidLoad","getFormControls","then","controls","forEach","control","appendChangeListener","tagName","toLowerCase","formControl","add","handleChange","async","FormData","serializeElement","slot","form","querySelector","tags","assignedElements","flatten","reduce","all","concat","querySelectorAll","filter","includes","getFormData","formControlsThatReport","reportValidity","novalidate","isValid","sixSubmit","emit","validationTasks","checkValidity","invalidControls","Promise","results","valid","sixReset","sixChange","render","h","ref","part","class","role","onClick","onKeyDown"],"sources":["./src/components/six-form/six-form.scss?tag=six-form&encapsulation=shadow","./src/components/six-form/six-form.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n","import { Component, Event, EventEmitter, h, Method, Prop } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixFormSubmitPayload {\n formData: FormData;\n formControls: HTMLFormElement[];\n}\n\nexport interface SixFormChangePayload {\n formControl: HTMLFormElement;\n valid: boolean;\n}\n\ninterface FormControl {\n tag: string;\n\n serialize(el: HTMLFormElement | HTMLElement, formData: FormData): void;\n\n click?(event: MouseEvent): any;\n\n keyDown?(event: KeyboardEvent): any;\n\n changeEventName?: string;\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The form's content.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-form',\n styleUrl: 'six-form.scss',\n shadow: true,\n})\nexport class SixForm {\n form: HTMLElement;\n formControls: FormControl[];\n\n readonly eventListeners = new EventListeners();\n\n /** Prevent the form from validating inputs before submitting. */\n @Prop() novalidate = false;\n\n /**\n * Emitted when the form is submitted. This event will not be emitted if any form control inside of it is in an\n * invalid state, unless the form has the `novalidate` attribute. Note that there is never a need to prevent this\n * event, since it doen't send a GET or POST request like native forms. To \"prevent\" submission, use a conditional\n * around the XHR request you use to submit the form's data with.\n */\n @Event({ eventName: 'six-form-submit' }) sixSubmit: EventEmitter<SixFormSubmitPayload>;\n\n /** Emitted when the control's value changes. */\n @Event({ eventName: 'six-form-change' }) sixChange: EventEmitter<SixFormChangePayload>;\n\n /** Emitted when the forms values are reset. */\n @Event({ eventName: 'six-form-reset' }) sixReset: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.formControls = [\n {\n tag: 'six-button',\n serialize: (el: HTMLSixButtonElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value) : null,\n click: (event) => {\n const target = event.target as HTMLSixButtonElement;\n if (target.submit) {\n this.submit();\n }\n\n if (target.reset) {\n this.reset();\n }\n },\n },\n {\n tag: 'six-checkbox',\n serialize: (el: HTMLSixCheckboxElement, formData) =>\n el.name && el.checked && !el.disabled ? formData.append(el.name, el.value) : null,\n changeEventName: 'six-checkbox-change',\n },\n {\n tag: 'six-color-picker',\n serialize: (el: HTMLSixCheckboxElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value) : null,\n },\n {\n tag: 'six-input',\n serialize: (el: HTMLSixInputElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value) : null,\n keyDown: (event) => {\n if (event.key === 'Enter' && !event.defaultPrevented) {\n this.submit();\n }\n },\n changeEventName: 'six-input-change',\n },\n {\n tag: 'six-datepicker',\n serialize: (el: HTMLSixDatepickerElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value?.toISOString()) : null,\n keyDown: (event) => {\n if (event.key === 'Enter' && !event.defaultPrevented) {\n this.submit();\n }\n },\n changeEventName: 'six-datepicker-select',\n },\n {\n tag: 'six-radio',\n serialize: (el: HTMLSixRadioElement, formData) =>\n el.name && el.checked && !el.disabled ? formData.append(el.name, el.value) : null,\n changeEventName: 'six-radio-change',\n },\n {\n tag: 'six-range',\n serialize: (el: HTMLSixRangeElement, formData) => {\n if (el.name && !el.disabled) {\n formData.append(el.name, el.value + '');\n }\n },\n changeEventName: 'six-range-change',\n },\n {\n tag: 'six-select',\n serialize: (el: HTMLSixSelectElement, formData) => {\n if (el.name && !el.disabled) {\n if (el.multiple) {\n const selectedOptions = [...el.value];\n if (selectedOptions.length) {\n selectedOptions.map((value) => formData.append(el.name, value));\n } else {\n formData.append(el.name, '');\n }\n } else {\n formData.append(el.name, el.value + '');\n }\n }\n },\n changeEventName: 'six-select-change',\n },\n {\n tag: 'six-switch',\n serialize: (el: HTMLSixSwitchElement, formData) =>\n el.name && el.checked && !el.disabled ? formData.append(el.name, el.value) : null,\n changeEventName: 'six-switch-change',\n },\n {\n tag: 'six-textarea',\n serialize: (el: HTMLSixTextareaElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value) : null,\n changeEventName: 'six-textarea-change',\n },\n {\n tag: 'six-timepicker',\n serialize: (el: HTMLSixTimepickerElement, formData) =>\n el.name && !el.disabled ? formData.append(el.name, el.value) : null,\n keyDown: (event) => {\n if (event.key === 'Enter' && !event.defaultPrevented) {\n this.submit();\n }\n },\n changeEventName: 'six-timepicker-change',\n },\n ];\n\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n componentDidLoad() {\n this.getFormControls().then((controls) => controls.forEach((control) => this.appendChangeListener(control)));\n }\n\n private appendChangeListener(el: HTMLFormElement) {\n const tag = el.tagName.toLowerCase();\n for (const formControl of this.formControls) {\n if (formControl.tag === tag && formControl.changeEventName) {\n this.eventListeners.add(el as HTMLElement, formControl.changeEventName, () => this.handleChange(el));\n }\n }\n }\n\n /** Serializes all form controls elements and returns a `FormData` object. */\n @Method()\n async getFormData() {\n const formData = new FormData();\n const formControls = await this.getFormControls();\n\n formControls.map((el) => this.serializeElement(el, formData));\n\n return formData;\n }\n\n /** Gets all form control elements (native and custom). */\n @Method()\n async getFormControls() {\n const slot = this.form.querySelector('slot');\n const tags = this.formControls.map((control) => control.tag);\n return slot\n .assignedElements({ flatten: true })\n .reduce((all, el) => all.concat(el, [...el.querySelectorAll('*')]), [])\n .filter((el) => tags.includes(el.tagName.toLowerCase())) as HTMLFormElement[];\n }\n\n /**\n * Submits the form. If all controls are valid, the `six-form-submit` event will be emitted and the promise will resolve\n * with `true`. If any form control is invalid, the promise will resolve with `false` and no event will be emitted.\n */\n @Method()\n async submit() {\n const formData = await this.getFormData();\n const formControls = await this.getFormControls();\n const formControlsThatReport = formControls.filter(\n (el: HTMLFormElement) => typeof el.reportValidity === 'function'\n ) as any;\n\n if (!this.novalidate) {\n let isValid = true;\n for (const el of formControlsThatReport) {\n if (!(await el.reportValidity())) {\n isValid = false;\n }\n }\n if (!isValid) {\n return false;\n }\n }\n\n this.sixSubmit.emit({ formData, formControls });\n\n return true;\n }\n\n /** Checks for validity. */\n @Method()\n async checkValidity() {\n const formControls = await this.getFormControls();\n const validationTasks = formControls\n .filter((el: HTMLFormElement) => typeof el.checkValidity === 'function')\n .map((el: HTMLFormElement) => el.checkValidity());\n const invalidControls = await Promise.all(validationTasks).then((results) =>\n results.filter((valid) => valid === false)\n );\n return invalidControls.length == 0;\n }\n\n /** Resets the form and resets the value of all descendants*/\n @Method()\n async reset() {\n const formControls = await this.getFormControls();\n\n formControls\n .filter((control) => control?.reset && typeof control?.reset === 'function')\n .forEach((formControl) => formControl.reset());\n\n this.sixReset.emit();\n }\n\n handleClick(event: MouseEvent) {\n const target = event.target as HTMLFormElement;\n const tag = target.tagName.toLowerCase();\n\n for (const formControl of this.formControls) {\n if (formControl.tag === tag && formControl.click) {\n formControl.click(event);\n }\n }\n }\n\n handleKeyDown(event: KeyboardEvent) {\n const target = event.target as HTMLFormElement;\n const tag = target.tagName.toLowerCase();\n\n for (const formControl of this.formControls) {\n if (formControl.tag === tag && formControl.keyDown) {\n formControl.keyDown(event);\n }\n }\n }\n\n handleChange(el: HTMLFormElement) {\n this.checkValidity().then((isValid) =>\n this.sixChange.emit({\n valid: isValid,\n formControl: el,\n })\n );\n }\n\n serializeElement(el: HTMLFormElement, formData: FormData) {\n const tag = el.tagName.toLowerCase();\n\n for (const formControl of this.formControls) {\n if (formControl.tag === tag) {\n return formControl.serialize(el, formData);\n }\n }\n\n return null;\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.form = el)}\n part=\"base\"\n class=\"form\"\n role=\"form\"\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n >\n <slot />\n </div>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAa,6H,MCyCNC,EAAO,M,wJAITC,KAAAC,eAAiB,IAAIC,E,gBAGT,K,CAgBrBC,oBACEH,KAAKI,aAAe,CAClB,CACEC,IAAK,aACLC,UAAW,CAACC,EAA0BC,IACpCD,EAAGE,OAASF,EAAGG,SAAWF,EAASG,OAAOJ,EAAGE,KAAMF,EAAGK,OAAS,KACjEC,MAAQC,IACN,MAAMC,EAASD,EAAMC,OACrB,GAAIA,EAAOC,OAAQ,CACjBhB,KAAKgB,Q,CAGP,GAAID,EAAOE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