@six-group/ui-library 3.0.0-beta.1.8 → 4.0.0-beta.1

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 (882) hide show
  1. package/dist/cjs/event-listeners-74715e62.js +2 -0
  2. package/dist/cjs/event-listeners-74715e62.js.map +1 -0
  3. package/dist/cjs/execution-control-46f388e0.js +2 -0
  4. package/dist/cjs/execution-control-46f388e0.js.map +1 -0
  5. package/dist/cjs/focus-visible-0b352c74.js +2 -0
  6. package/dist/cjs/focus-visible-0b352c74.js.map +1 -0
  7. package/dist/cjs/{form-control-866bbece.js → form-control-2c17c573.js} +3 -1
  8. package/dist/cjs/form-control-2c17c573.js.map +1 -0
  9. package/dist/cjs/{index-341df120.js → index-2f6daa5b.js} +602 -280
  10. package/dist/cjs/index-2f6daa5b.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/index.cjs.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +6 -3
  14. package/dist/cjs/loader.cjs.js.map +1 -0
  15. package/dist/cjs/modal-48d42228.js +2 -0
  16. package/dist/cjs/modal-48d42228.js.map +1 -0
  17. package/dist/cjs/{popover-1d2a037c.js → popover-f743f62b.js} +5 -4
  18. package/dist/cjs/popover-f743f62b.js.map +1 -0
  19. package/dist/cjs/scroll-76e6f5d7.js +2 -0
  20. package/dist/cjs/scroll-76e6f5d7.js.map +1 -0
  21. package/dist/cjs/set-attributes_2.cjs.entry.js +5 -5
  22. package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -0
  23. package/dist/cjs/six-alert.cjs.entry.js +4 -9
  24. package/dist/cjs/six-alert.cjs.entry.js.map +1 -0
  25. package/dist/cjs/six-avatar.cjs.entry.js +4 -6
  26. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -0
  27. package/dist/cjs/six-badge.cjs.entry.js +4 -5
  28. package/dist/cjs/six-badge.cjs.entry.js.map +1 -0
  29. package/dist/cjs/six-button.cjs.entry.js +9 -11
  30. package/dist/cjs/six-button.cjs.entry.js.map +1 -0
  31. package/dist/cjs/six-card.cjs.entry.js +4 -2
  32. package/dist/cjs/six-card.cjs.entry.js.map +1 -0
  33. package/dist/cjs/six-checkbox.cjs.entry.js +9 -13
  34. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
  35. package/dist/cjs/six-datepicker.cjs.entry.js +34 -87
  36. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -0
  37. package/dist/cjs/six-details.cjs.entry.js +6 -9
  38. package/dist/cjs/six-details.cjs.entry.js.map +1 -0
  39. package/dist/cjs/six-dialog.cjs.entry.js +4 -11
  40. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -0
  41. package/dist/cjs/six-drawer.cjs.entry.js +4 -16
  42. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -0
  43. package/dist/cjs/{six-dropdown_3.cjs.entry.js → six-dropdown_2.cjs.entry.js} +31 -130
  44. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -0
  45. package/dist/cjs/six-error-page.cjs.entry.js +8 -5
  46. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -0
  47. package/dist/cjs/six-file-list-item.cjs.entry.js +10 -12
  48. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -0
  49. package/dist/cjs/six-file-list.cjs.entry.js +4 -2
  50. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -0
  51. package/dist/cjs/six-file-upload.cjs.entry.js +30 -17
  52. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -0
  53. package/dist/cjs/six-footer.cjs.entry.js +4 -2
  54. package/dist/cjs/six-footer.cjs.entry.js.map +1 -0
  55. package/dist/cjs/six-form.cjs.entry.js +4 -3
  56. package/dist/cjs/six-form.cjs.entry.js.map +1 -0
  57. package/dist/cjs/six-group-label.cjs.entry.js +6 -7
  58. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -0
  59. package/dist/cjs/six-header.cjs.entry.js +11 -11
  60. package/dist/cjs/six-header.cjs.entry.js.map +1 -0
  61. package/dist/cjs/six-icon-button.cjs.entry.js +9 -6
  62. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -0
  63. package/dist/cjs/six-icon.cjs.entry.js +4 -4
  64. package/dist/cjs/six-icon.cjs.entry.js.map +1 -0
  65. package/dist/cjs/six-input.cjs.entry.js +21 -23
  66. package/dist/cjs/six-input.cjs.entry.js.map +1 -0
  67. package/dist/cjs/six-item-picker.cjs.entry.js +11 -26
  68. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -0
  69. package/dist/cjs/six-language-switcher.cjs.entry.js +6 -4
  70. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -0
  71. package/dist/cjs/six-layout-grid.cjs.entry.js +5 -2
  72. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -0
  73. package/dist/cjs/six-main-container.cjs.entry.js +4 -3
  74. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -0
  75. package/dist/cjs/six-menu-divider.cjs.entry.js +4 -2
  76. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -0
  77. package/dist/cjs/six-menu-item.cjs.entry.js +61 -0
  78. package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -0
  79. package/dist/cjs/six-menu-label.cjs.entry.js +4 -2
  80. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -0
  81. package/dist/cjs/six-picto.cjs.entry.js +4 -5
  82. package/dist/cjs/six-picto.cjs.entry.js.map +1 -0
  83. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  84. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -0
  85. package/dist/cjs/six-progress-ring.cjs.entry.js +5 -4
  86. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -0
  87. package/dist/cjs/six-radio.cjs.entry.js +8 -10
  88. package/dist/cjs/six-radio.cjs.entry.js.map +1 -0
  89. package/dist/cjs/six-range.cjs.entry.js +9 -20
  90. package/dist/cjs/six-range.cjs.entry.js.map +1 -0
  91. package/dist/cjs/six-root.cjs.entry.js +9 -10
  92. package/dist/cjs/six-root.cjs.entry.js.map +1 -0
  93. package/dist/cjs/six-search-field.cjs.entry.js +9 -10
  94. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -0
  95. package/dist/cjs/six-select.cjs.entry.js +31 -57
  96. package/dist/cjs/six-select.cjs.entry.js.map +1 -0
  97. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +11 -10
  98. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -0
  99. package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -5
  100. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -0
  101. package/dist/cjs/six-sidebar.cjs.entry.js +9 -11
  102. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -0
  103. package/dist/cjs/six-spinner.cjs.entry.js +4 -3
  104. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -0
  105. package/dist/cjs/six-switch.cjs.entry.js +8 -8
  106. package/dist/cjs/six-switch.cjs.entry.js.map +1 -0
  107. package/dist/cjs/six-tab-group.cjs.entry.js +4 -4
  108. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -0
  109. package/dist/cjs/six-tab-panel.cjs.entry.js +4 -4
  110. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -0
  111. package/dist/cjs/six-tab.cjs.entry.js +4 -6
  112. package/dist/cjs/six-tab.cjs.entry.js.map +1 -0
  113. package/dist/cjs/six-tag.cjs.entry.js +4 -6
  114. package/dist/cjs/six-tag.cjs.entry.js.map +1 -0
  115. package/dist/cjs/six-textarea.cjs.entry.js +17 -20
  116. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -0
  117. package/dist/cjs/six-tile.cjs.entry.js +12 -15
  118. package/dist/cjs/six-tile.cjs.entry.js.map +1 -0
  119. package/dist/cjs/six-timepicker.cjs.entry.js +29 -78
  120. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -0
  121. package/dist/cjs/six-timepicker.types-c19ebff3.js +2 -0
  122. package/dist/cjs/six-timepicker.types-c19ebff3.js.map +1 -0
  123. package/dist/cjs/six-tooltip.cjs.entry.js +8 -18
  124. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -0
  125. package/dist/cjs/slot-ad537f24.js +2 -0
  126. package/dist/cjs/slot-ad537f24.js.map +1 -0
  127. package/dist/cjs/types-64878648.js +2 -0
  128. package/dist/cjs/types-64878648.js.map +1 -0
  129. package/dist/cjs/ui-library.cjs.js +12 -3
  130. package/dist/cjs/ui-library.cjs.js.map +1 -0
  131. package/dist/collection/collection-manifest.json +2 -7
  132. package/dist/collection/components/six-alert/six-alert.js +221 -219
  133. package/dist/collection/components/six-alert/six-alert.js.map +1 -0
  134. package/dist/collection/components/six-avatar/six-avatar.js +91 -91
  135. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -0
  136. package/dist/collection/components/six-badge/six-badge.js +69 -66
  137. package/dist/collection/components/six-badge/six-badge.js.map +1 -0
  138. package/dist/collection/components/six-button/six-button.js +377 -379
  139. package/dist/collection/components/six-button/six-button.js.map +1 -0
  140. package/dist/collection/components/six-card/six-card.js +13 -9
  141. package/dist/collection/components/six-card/six-card.js.map +1 -0
  142. package/dist/collection/components/six-checkbox/six-checkbox.js +372 -381
  143. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -0
  144. package/dist/collection/components/six-datepicker/components/day-selection.js +9 -10
  145. package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -0
  146. package/dist/collection/components/six-datepicker/components/month-selection.js +6 -6
  147. package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -0
  148. package/dist/collection/components/six-datepicker/components/year-selection.js +6 -6
  149. package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -0
  150. package/dist/collection/components/six-datepicker/six-date-formats.js +1 -0
  151. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -0
  152. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  153. package/dist/collection/components/six-datepicker/six-datepicker.js +670 -742
  154. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -0
  155. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +1 -0
  156. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -0
  157. package/dist/collection/components/six-details/six-details.js +276 -274
  158. package/dist/collection/components/six-details/six-details.js.map +1 -0
  159. package/dist/collection/components/six-dialog/six-dialog.js +224 -228
  160. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -0
  161. package/dist/collection/components/six-drawer/six-drawer.js +258 -267
  162. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -0
  163. package/dist/collection/components/six-dropdown/six-dropdown.js +514 -534
  164. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -0
  165. package/dist/collection/components/six-error-page/six-error-page.js +100 -96
  166. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -0
  167. package/dist/collection/components/six-file-list/six-file-list.js +13 -9
  168. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -0
  169. package/dist/collection/components/six-file-list-item/six-file-list-item.js +170 -169
  170. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -0
  171. package/dist/collection/components/six-file-upload/six-file-upload.js +221 -186
  172. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -0
  173. package/dist/collection/components/six-footer/six-footer.js +13 -9
  174. package/dist/collection/components/six-footer/six-footer.js.map +1 -0
  175. package/dist/collection/components/six-form/six-form.js +174 -163
  176. package/dist/collection/components/six-form/six-form.js.map +1 -0
  177. package/dist/collection/components/six-group-label/six-group-label.js +118 -111
  178. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -0
  179. package/dist/collection/components/six-header/six-header.js +260 -268
  180. package/dist/collection/components/six-header/six-header.js.map +1 -0
  181. package/dist/collection/components/six-icon/six-icon.js +52 -48
  182. package/dist/collection/components/six-icon/six-icon.js.map +1 -0
  183. package/dist/collection/components/six-icon-button/six-icon-button.js +108 -104
  184. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -0
  185. package/dist/collection/components/six-input/six-input.js +895 -896
  186. package/dist/collection/components/six-input/six-input.js.map +1 -0
  187. package/dist/collection/components/six-item-picker/six-item-picker.js +329 -336
  188. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -0
  189. package/dist/collection/components/six-item-picker/types.js +1 -0
  190. package/dist/collection/components/six-item-picker/types.js.map +1 -0
  191. package/dist/collection/components/six-language-switcher/six-language-switcher.js +85 -74
  192. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -0
  193. package/dist/collection/components/six-layout-grid/six-layout-grid.js +43 -32
  194. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -0
  195. package/dist/collection/components/six-main-container/six-main-container.js +35 -33
  196. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -0
  197. package/dist/collection/components/six-menu/six-menu.js +176 -184
  198. package/dist/collection/components/six-menu/six-menu.js.map +1 -0
  199. package/dist/collection/components/six-menu-divider/six-menu-divider.js +12 -7
  200. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -0
  201. package/dist/collection/components/six-menu-item/six-menu-item.js +131 -110
  202. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -0
  203. package/dist/collection/components/six-menu-label/six-menu-label.js +13 -9
  204. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -0
  205. package/dist/collection/components/six-picto/six-picto.js +35 -32
  206. package/dist/collection/components/six-picto/six-picto.js.map +1 -0
  207. package/dist/collection/components/six-progress-bar/six-progress-bar.js +54 -51
  208. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -0
  209. package/dist/collection/components/six-progress-ring/six-progress-ring.js +75 -72
  210. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -0
  211. package/dist/collection/components/six-radio/six-radio.js +269 -267
  212. package/dist/collection/components/six-radio/six-radio.js.map +1 -0
  213. package/dist/collection/components/six-range/six-range.js +426 -427
  214. package/dist/collection/components/six-range/six-range.js.map +1 -0
  215. package/dist/collection/components/six-root/six-root.js +127 -129
  216. package/dist/collection/components/six-root/six-root.js.map +1 -0
  217. package/dist/collection/components/six-search-field/six-search-field.js +134 -128
  218. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -0
  219. package/dist/collection/components/six-select/six-select.css +1 -2
  220. package/dist/collection/components/six-select/six-select.js +665 -689
  221. package/dist/collection/components/six-select/six-select.js.map +1 -0
  222. package/dist/collection/components/six-sidebar/six-sidebar.js +288 -279
  223. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -0
  224. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +69 -66
  225. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -0
  226. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +116 -115
  227. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -0
  228. package/dist/collection/components/six-spinner/six-spinner.js +35 -32
  229. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -0
  230. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +39 -36
  231. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -0
  232. package/dist/collection/components/six-switch/six-switch.js +279 -271
  233. package/dist/collection/components/six-switch/six-switch.js.map +1 -0
  234. package/dist/collection/components/six-tab/six-tab.js +150 -146
  235. package/dist/collection/components/six-tab/six-tab.js.map +1 -0
  236. package/dist/collection/components/six-tab-group/six-tab-group.js +126 -120
  237. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -0
  238. package/dist/collection/components/six-tab-panel/six-tab-panel.js +52 -49
  239. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -0
  240. package/dist/collection/components/six-tag/six-tag.js +107 -105
  241. package/dist/collection/components/six-tag/six-tag.js.map +1 -0
  242. package/dist/collection/components/six-textarea/six-textarea.js +708 -700
  243. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -0
  244. package/dist/collection/components/six-tile/six-tile.js +237 -238
  245. package/dist/collection/components/six-tile/six-tile.js.map +1 -0
  246. package/dist/collection/components/six-timepicker/six-time-format.js +1 -0
  247. package/dist/collection/components/six-timepicker/six-time-format.js.map +1 -0
  248. package/dist/collection/components/six-timepicker/six-timepicker.js +597 -641
  249. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -0
  250. package/dist/collection/components/six-timepicker/six-timepicker.types.js +1 -0
  251. package/dist/collection/components/six-timepicker/six-timepicker.types.js.map +1 -0
  252. package/dist/collection/components/six-tooltip/six-tooltip.js +256 -259
  253. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -0
  254. package/dist/collection/functional-components/form-control/form-control.js +5 -10
  255. package/dist/collection/functional-components/form-control/form-control.js.map +1 -0
  256. package/dist/collection/index.js +1 -0
  257. package/dist/collection/index.js.map +1 -0
  258. package/dist/collection/testUtil/delay.js +1 -0
  259. package/dist/collection/testUtil/delay.js.map +1 -0
  260. package/dist/collection/utils/as-array.js +1 -0
  261. package/dist/collection/utils/as-array.js.map +1 -0
  262. package/dist/collection/utils/date-util.js +1 -0
  263. package/dist/collection/utils/date-util.js.map +1 -0
  264. package/dist/collection/utils/event-listeners.js +1 -0
  265. package/dist/collection/utils/event-listeners.js.map +1 -0
  266. package/dist/collection/utils/execution-control.js +1 -0
  267. package/dist/collection/utils/execution-control.js.map +1 -0
  268. package/dist/collection/utils/focus-visible.js +1 -0
  269. package/dist/collection/utils/focus-visible.js.map +1 -0
  270. package/dist/collection/utils/matchers.js +1 -0
  271. package/dist/collection/utils/matchers.js.map +1 -0
  272. package/dist/collection/utils/modal.js +1 -0
  273. package/dist/collection/utils/modal.js.map +1 -0
  274. package/dist/collection/utils/offset.js +1 -0
  275. package/dist/collection/utils/offset.js.map +1 -0
  276. package/dist/collection/utils/popover.js +1 -0
  277. package/dist/collection/utils/popover.js.map +1 -0
  278. package/dist/collection/utils/scroll.js +1 -0
  279. package/dist/collection/utils/scroll.js.map +1 -0
  280. package/dist/collection/utils/slot.js +1 -0
  281. package/dist/collection/utils/slot.js.map +1 -0
  282. package/dist/collection/utils/support.js +1 -0
  283. package/dist/collection/utils/support.js.map +1 -0
  284. package/dist/collection/utils/tabbable.js +1 -0
  285. package/dist/collection/utils/tabbable.js.map +1 -0
  286. package/dist/collection/utils/testing.js +1 -0
  287. package/dist/collection/utils/testing.js.map +1 -0
  288. package/dist/collection/utils/time.util.js +1 -0
  289. package/dist/collection/utils/time.util.js.map +1 -0
  290. package/dist/collection/utils/type-check.js +1 -0
  291. package/dist/collection/utils/type-check.js.map +1 -0
  292. package/dist/collection/utils/types.js +1 -0
  293. package/dist/collection/utils/types.js.map +1 -0
  294. package/dist/collection/wrappers/set-attributes/set-attributes.js +28 -24
  295. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +1 -0
  296. package/dist/components/event-listeners.js +43 -0
  297. package/dist/components/event-listeners.js.map +1 -0
  298. package/dist/components/execution-control.js +40 -0
  299. package/dist/components/execution-control.js.map +1 -0
  300. package/dist/components/focus-visible.js +45 -0
  301. package/dist/components/focus-visible.js.map +1 -0
  302. package/dist/components/form-control.js +32 -0
  303. package/dist/components/form-control.js.map +1 -0
  304. package/dist/components/index.d.ts +39 -0
  305. package/dist/components/index.js +122 -0
  306. package/dist/components/index.js.map +1 -0
  307. package/dist/components/modal.js +48 -0
  308. package/dist/components/modal.js.map +1 -0
  309. package/dist/{esm/popover-1c7a1139.js → components/popover.js} +5 -4
  310. package/dist/components/popover.js.map +1 -0
  311. package/dist/components/scroll.js +64 -0
  312. package/dist/components/scroll.js.map +1 -0
  313. package/dist/components/set-attributes.d.ts +11 -0
  314. package/dist/components/set-attributes.js +8 -0
  315. package/dist/components/set-attributes.js.map +1 -0
  316. package/dist/components/set-attributes2.js +69 -0
  317. package/dist/components/set-attributes2.js.map +1 -0
  318. package/dist/components/six-alert.d.ts +11 -0
  319. package/dist/components/six-alert.js +172 -0
  320. package/dist/components/six-alert.js.map +1 -0
  321. package/dist/components/six-avatar.d.ts +11 -0
  322. package/dist/components/six-avatar.js +63 -0
  323. package/dist/components/six-avatar.js.map +1 -0
  324. package/dist/components/six-badge.d.ts +11 -0
  325. package/dist/components/six-badge.js +54 -0
  326. package/dist/components/six-badge.js.map +1 -0
  327. package/dist/components/six-button.d.ts +11 -0
  328. package/dist/components/six-button.js +147 -0
  329. package/dist/components/six-button.js.map +1 -0
  330. package/dist/components/six-card.d.ts +11 -0
  331. package/dist/components/six-card.js +35 -0
  332. package/dist/components/six-card.js.map +1 -0
  333. package/dist/components/six-checkbox.d.ts +11 -0
  334. package/dist/components/six-checkbox.js +193 -0
  335. package/dist/components/six-checkbox.js.map +1 -0
  336. package/dist/components/six-datepicker.d.ts +11 -0
  337. package/dist/components/six-datepicker.js +1229 -0
  338. package/dist/components/six-datepicker.js.map +1 -0
  339. package/dist/components/six-details.d.ts +11 -0
  340. package/dist/components/six-details.js +8 -0
  341. package/dist/components/six-details.js.map +1 -0
  342. package/dist/components/six-details2.js +176 -0
  343. package/dist/components/six-details2.js.map +1 -0
  344. package/dist/components/six-dialog.d.ts +11 -0
  345. package/dist/components/six-dialog.js +190 -0
  346. package/dist/components/six-dialog.js.map +1 -0
  347. package/dist/components/six-drawer.d.ts +11 -0
  348. package/dist/components/six-drawer.js +209 -0
  349. package/dist/components/six-drawer.js.map +1 -0
  350. package/dist/components/six-dropdown.d.ts +11 -0
  351. package/dist/components/six-dropdown.js +8 -0
  352. package/dist/components/six-dropdown.js.map +1 -0
  353. package/dist/components/six-dropdown2.js +499 -0
  354. package/dist/components/six-dropdown2.js.map +1 -0
  355. package/dist/components/six-error-page.d.ts +11 -0
  356. package/dist/components/six-error-page.js +134 -0
  357. package/dist/components/six-error-page.js.map +1 -0
  358. package/dist/components/six-file-list-item.d.ts +11 -0
  359. package/dist/components/six-file-list-item.js +74 -0
  360. package/dist/components/six-file-list-item.js.map +1 -0
  361. package/dist/components/six-file-list.d.ts +11 -0
  362. package/dist/components/six-file-list.js +35 -0
  363. package/dist/components/six-file-list.js.map +1 -0
  364. package/dist/components/six-file-upload.d.ts +11 -0
  365. package/dist/components/six-file-upload.js +147 -0
  366. package/dist/components/six-file-upload.js.map +1 -0
  367. package/dist/components/six-footer.d.ts +11 -0
  368. package/dist/components/six-footer.js +35 -0
  369. package/dist/components/six-footer.js.map +1 -0
  370. package/dist/components/six-form.d.ts +11 -0
  371. package/dist/components/six-form.js +252 -0
  372. package/dist/components/six-form.js.map +1 -0
  373. package/dist/components/six-group-label.d.ts +11 -0
  374. package/dist/components/six-group-label.js +78 -0
  375. package/dist/components/six-group-label.js.map +1 -0
  376. package/dist/components/six-header.d.ts +11 -0
  377. package/dist/components/six-header.js +219 -0
  378. package/dist/components/six-header.js.map +1 -0
  379. package/dist/components/six-icon-button.d.ts +11 -0
  380. package/dist/components/six-icon-button.js +8 -0
  381. package/dist/components/six-icon-button.js.map +1 -0
  382. package/dist/components/six-icon-button2.js +70 -0
  383. package/dist/components/six-icon-button2.js.map +1 -0
  384. package/dist/components/six-icon.d.ts +11 -0
  385. package/dist/components/six-icon.js +8 -0
  386. package/dist/components/six-icon.js.map +1 -0
  387. package/dist/components/six-icon2.js +49 -0
  388. package/dist/components/six-icon2.js.map +1 -0
  389. package/dist/components/six-input.d.ts +11 -0
  390. package/dist/components/six-input.js +8 -0
  391. package/dist/components/six-input.js.map +1 -0
  392. package/dist/components/six-input2.js +303 -0
  393. package/dist/components/six-input2.js.map +1 -0
  394. package/dist/components/six-item-picker.d.ts +11 -0
  395. package/dist/components/six-item-picker.js +8 -0
  396. package/dist/components/six-item-picker.js.map +1 -0
  397. package/dist/components/six-item-picker2.js +404 -0
  398. package/dist/components/six-item-picker2.js.map +1 -0
  399. package/dist/components/six-language-switcher.d.ts +11 -0
  400. package/dist/components/six-language-switcher.js +82 -0
  401. package/dist/components/six-language-switcher.js.map +1 -0
  402. package/dist/components/six-layout-grid.d.ts +11 -0
  403. package/dist/components/six-layout-grid.js +49 -0
  404. package/dist/components/six-layout-grid.js.map +1 -0
  405. package/dist/components/six-main-container.d.ts +11 -0
  406. package/dist/components/six-main-container.js +39 -0
  407. package/dist/components/six-main-container.js.map +1 -0
  408. package/dist/components/six-menu-divider.d.ts +11 -0
  409. package/dist/components/six-menu-divider.js +35 -0
  410. package/dist/components/six-menu-divider.js.map +1 -0
  411. package/dist/components/six-menu-item.d.ts +11 -0
  412. package/dist/components/six-menu-item.js +8 -0
  413. package/dist/components/six-menu-item.js.map +1 -0
  414. package/dist/components/six-menu-item2.js +86 -0
  415. package/dist/components/six-menu-item2.js.map +1 -0
  416. package/dist/components/six-menu-label.d.ts +11 -0
  417. package/dist/components/six-menu-label.js +35 -0
  418. package/dist/components/six-menu-label.js.map +1 -0
  419. package/dist/components/six-menu.d.ts +11 -0
  420. package/dist/components/six-menu.js +8 -0
  421. package/dist/components/six-menu.js.map +1 -0
  422. package/dist/components/six-menu2.js +252 -0
  423. package/dist/components/six-menu2.js.map +1 -0
  424. package/dist/components/six-picto.d.ts +11 -0
  425. package/dist/components/six-picto.js +8 -0
  426. package/dist/components/six-picto.js.map +1 -0
  427. package/dist/{custom-elements/index.js → components/six-picto2.js} +21 -9740
  428. package/dist/components/six-picto2.js.map +1 -0
  429. package/dist/components/six-progress-bar.d.ts +11 -0
  430. package/dist/components/six-progress-bar.js +45 -0
  431. package/dist/components/six-progress-bar.js.map +1 -0
  432. package/dist/components/six-progress-ring.d.ts +11 -0
  433. package/dist/components/six-progress-ring.js +61 -0
  434. package/dist/components/six-progress-ring.js.map +1 -0
  435. package/dist/components/six-radio.d.ts +11 -0
  436. package/dist/components/six-radio.js +157 -0
  437. package/dist/components/six-radio.js.map +1 -0
  438. package/dist/components/six-range.d.ts +11 -0
  439. package/dist/components/six-range.js +236 -0
  440. package/dist/components/six-range.js.map +1 -0
  441. package/dist/components/six-root.d.ts +11 -0
  442. package/dist/components/six-root.js +82 -0
  443. package/dist/components/six-root.js.map +1 -0
  444. package/dist/components/six-search-field.d.ts +11 -0
  445. package/dist/components/six-search-field.js +85 -0
  446. package/dist/components/six-search-field.js.map +1 -0
  447. package/dist/components/six-select.d.ts +11 -0
  448. package/dist/components/six-select.js +526 -0
  449. package/dist/components/six-select.js.map +1 -0
  450. package/dist/components/six-sidebar-item-group.d.ts +11 -0
  451. package/dist/components/six-sidebar-item-group.js +88 -0
  452. package/dist/components/six-sidebar-item-group.js.map +1 -0
  453. package/dist/components/six-sidebar-item.d.ts +11 -0
  454. package/dist/components/six-sidebar-item.js +46 -0
  455. package/dist/components/six-sidebar-item.js.map +1 -0
  456. package/dist/components/six-sidebar.d.ts +11 -0
  457. package/dist/components/six-sidebar.js +205 -0
  458. package/dist/components/six-sidebar.js.map +1 -0
  459. package/dist/components/six-spinner.d.ts +11 -0
  460. package/dist/components/six-spinner.js +8 -0
  461. package/dist/components/six-spinner.js.map +1 -0
  462. package/dist/components/six-spinner2.js +41 -0
  463. package/dist/components/six-spinner2.js.map +1 -0
  464. package/dist/components/six-stage-indicator.d.ts +11 -0
  465. package/dist/components/six-stage-indicator.js +8 -0
  466. package/dist/components/six-stage-indicator.js.map +1 -0
  467. package/dist/components/six-stage-indicator2.js +41 -0
  468. package/dist/components/six-stage-indicator2.js.map +1 -0
  469. package/dist/components/six-switch.d.ts +11 -0
  470. package/dist/components/six-switch.js +139 -0
  471. package/dist/components/six-switch.js.map +1 -0
  472. package/dist/components/six-tab-group.d.ts +11 -0
  473. package/dist/components/six-tab-group.js +268 -0
  474. package/dist/components/six-tab-group.js.map +1 -0
  475. package/dist/components/six-tab-panel.d.ts +11 -0
  476. package/dist/components/six-tab-panel.js +45 -0
  477. package/dist/components/six-tab-panel.js.map +1 -0
  478. package/dist/components/six-tab.d.ts +11 -0
  479. package/dist/components/six-tab.js +84 -0
  480. package/dist/components/six-tab.js.map +1 -0
  481. package/dist/components/six-tag.d.ts +11 -0
  482. package/dist/components/six-tag.js +8 -0
  483. package/dist/components/six-tag.js.map +1 -0
  484. package/dist/components/six-tag2.js +77 -0
  485. package/dist/components/six-tag2.js.map +1 -0
  486. package/dist/components/six-textarea.d.ts +11 -0
  487. package/dist/components/six-textarea.js +269 -0
  488. package/dist/components/six-textarea.js.map +1 -0
  489. package/dist/components/six-tile.d.ts +11 -0
  490. package/dist/components/six-tile.js +142 -0
  491. package/dist/components/six-tile.js.map +1 -0
  492. package/dist/components/six-timepicker.d.ts +11 -0
  493. package/dist/components/six-timepicker.js +8 -0
  494. package/dist/components/six-timepicker.js.map +1 -0
  495. package/dist/components/six-timepicker2.js +559 -0
  496. package/dist/components/six-timepicker2.js.map +1 -0
  497. package/dist/components/six-tooltip.d.ts +11 -0
  498. package/dist/components/six-tooltip.js +8 -0
  499. package/dist/components/six-tooltip.js.map +1 -0
  500. package/dist/components/six-tooltip2.js +194 -0
  501. package/dist/components/six-tooltip2.js.map +1 -0
  502. package/dist/components/slot.js +47 -0
  503. package/dist/components/slot.js.map +1 -0
  504. package/dist/components.d.ts +27 -0
  505. package/dist/components.json +47 -499
  506. package/dist/esm/event-listeners-570a24ea.js +2 -0
  507. package/dist/esm/event-listeners-570a24ea.js.map +1 -0
  508. package/dist/esm/execution-control-1a60d709.js +2 -0
  509. package/dist/esm/execution-control-1a60d709.js.map +1 -0
  510. package/dist/esm/focus-visible-97933ea9.js +2 -0
  511. package/dist/esm/focus-visible-97933ea9.js.map +1 -0
  512. package/dist/esm/{form-control-24f446af.js → form-control-3b440ea1.js} +3 -1
  513. package/dist/esm/form-control-3b440ea1.js.map +1 -0
  514. package/dist/esm/{index-a2605a62.js → index-5c0f6628.js} +602 -279
  515. package/dist/esm/index-5c0f6628.js.map +1 -0
  516. package/dist/esm/index.js +2 -0
  517. package/dist/esm/index.js.map +1 -0
  518. package/dist/esm/loader.js +6 -3
  519. package/dist/esm/loader.js.map +1 -0
  520. package/dist/esm/modal-5ebdc320.js +2 -0
  521. package/dist/esm/modal-5ebdc320.js.map +1 -0
  522. package/dist/esm/polyfills/css-shim.js +1 -1
  523. package/dist/esm/popover-bd2c2fca.js +1897 -0
  524. package/dist/esm/popover-bd2c2fca.js.map +1 -0
  525. package/dist/esm/scroll-180b53fd.js +2 -0
  526. package/dist/esm/scroll-180b53fd.js.map +1 -0
  527. package/dist/esm/set-attributes_2.entry.js +5 -5
  528. package/dist/esm/set-attributes_2.entry.js.map +1 -0
  529. package/dist/esm/six-alert.entry.js +4 -9
  530. package/dist/esm/six-alert.entry.js.map +1 -0
  531. package/dist/esm/six-avatar.entry.js +4 -6
  532. package/dist/esm/six-avatar.entry.js.map +1 -0
  533. package/dist/esm/six-badge.entry.js +4 -5
  534. package/dist/esm/six-badge.entry.js.map +1 -0
  535. package/dist/esm/six-button.entry.js +9 -11
  536. package/dist/esm/six-button.entry.js.map +1 -0
  537. package/dist/esm/six-card.entry.js +4 -2
  538. package/dist/esm/six-card.entry.js.map +1 -0
  539. package/dist/esm/six-checkbox.entry.js +9 -13
  540. package/dist/esm/six-checkbox.entry.js.map +1 -0
  541. package/dist/esm/six-datepicker.entry.js +34 -87
  542. package/dist/esm/six-datepicker.entry.js.map +1 -0
  543. package/dist/esm/six-details.entry.js +6 -9
  544. package/dist/esm/six-details.entry.js.map +1 -0
  545. package/dist/esm/six-dialog.entry.js +4 -11
  546. package/dist/esm/six-dialog.entry.js.map +1 -0
  547. package/dist/esm/six-drawer.entry.js +4 -16
  548. package/dist/esm/six-drawer.entry.js.map +1 -0
  549. package/dist/esm/{six-dropdown_3.entry.js → six-dropdown_2.entry.js} +31 -129
  550. package/dist/esm/six-dropdown_2.entry.js.map +1 -0
  551. package/dist/esm/six-error-page.entry.js +8 -5
  552. package/dist/esm/six-error-page.entry.js.map +1 -0
  553. package/dist/esm/six-file-list-item.entry.js +10 -12
  554. package/dist/esm/six-file-list-item.entry.js.map +1 -0
  555. package/dist/esm/six-file-list.entry.js +4 -2
  556. package/dist/esm/six-file-list.entry.js.map +1 -0
  557. package/dist/esm/six-file-upload.entry.js +30 -17
  558. package/dist/esm/six-file-upload.entry.js.map +1 -0
  559. package/dist/esm/six-footer.entry.js +4 -2
  560. package/dist/esm/six-footer.entry.js.map +1 -0
  561. package/dist/esm/six-form.entry.js +4 -3
  562. package/dist/esm/six-form.entry.js.map +1 -0
  563. package/dist/esm/six-group-label.entry.js +6 -7
  564. package/dist/esm/six-group-label.entry.js.map +1 -0
  565. package/dist/esm/six-header.entry.js +11 -11
  566. package/dist/esm/six-header.entry.js.map +1 -0
  567. package/dist/esm/six-icon-button.entry.js +9 -6
  568. package/dist/esm/six-icon-button.entry.js.map +1 -0
  569. package/dist/esm/six-icon.entry.js +4 -4
  570. package/dist/esm/six-icon.entry.js.map +1 -0
  571. package/dist/esm/six-input.entry.js +21 -23
  572. package/dist/esm/six-input.entry.js.map +1 -0
  573. package/dist/esm/six-item-picker.entry.js +11 -26
  574. package/dist/esm/six-item-picker.entry.js.map +1 -0
  575. package/dist/esm/six-language-switcher.entry.js +6 -4
  576. package/dist/esm/six-language-switcher.entry.js.map +1 -0
  577. package/dist/esm/six-layout-grid.entry.js +5 -2
  578. package/dist/esm/six-layout-grid.entry.js.map +1 -0
  579. package/dist/esm/six-main-container.entry.js +4 -3
  580. package/dist/esm/six-main-container.entry.js.map +1 -0
  581. package/dist/esm/six-menu-divider.entry.js +4 -2
  582. package/dist/esm/six-menu-divider.entry.js.map +1 -0
  583. package/dist/esm/six-menu-item.entry.js +57 -0
  584. package/dist/esm/six-menu-item.entry.js.map +1 -0
  585. package/dist/esm/six-menu-label.entry.js +4 -2
  586. package/dist/esm/six-menu-label.entry.js.map +1 -0
  587. package/dist/esm/six-picto.entry.js +4 -5
  588. package/dist/esm/six-picto.entry.js.map +1 -0
  589. package/dist/esm/six-progress-bar.entry.js +4 -4
  590. package/dist/esm/six-progress-bar.entry.js.map +1 -0
  591. package/dist/esm/six-progress-ring.entry.js +5 -4
  592. package/dist/esm/six-progress-ring.entry.js.map +1 -0
  593. package/dist/esm/six-radio.entry.js +8 -10
  594. package/dist/esm/six-radio.entry.js.map +1 -0
  595. package/dist/esm/six-range.entry.js +9 -20
  596. package/dist/esm/six-range.entry.js.map +1 -0
  597. package/dist/esm/six-root.entry.js +9 -10
  598. package/dist/esm/six-root.entry.js.map +1 -0
  599. package/dist/esm/six-search-field.entry.js +9 -10
  600. package/dist/esm/six-search-field.entry.js.map +1 -0
  601. package/dist/esm/six-select.entry.js +31 -57
  602. package/dist/esm/six-select.entry.js.map +1 -0
  603. package/dist/esm/six-sidebar-item-group.entry.js +11 -10
  604. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -0
  605. package/dist/esm/six-sidebar-item.entry.js +4 -5
  606. package/dist/esm/six-sidebar-item.entry.js.map +1 -0
  607. package/dist/esm/six-sidebar.entry.js +9 -11
  608. package/dist/esm/six-sidebar.entry.js.map +1 -0
  609. package/dist/esm/six-spinner.entry.js +4 -3
  610. package/dist/esm/six-spinner.entry.js.map +1 -0
  611. package/dist/esm/six-switch.entry.js +8 -8
  612. package/dist/esm/six-switch.entry.js.map +1 -0
  613. package/dist/esm/six-tab-group.entry.js +4 -4
  614. package/dist/esm/six-tab-group.entry.js.map +1 -0
  615. package/dist/esm/six-tab-panel.entry.js +4 -4
  616. package/dist/esm/six-tab-panel.entry.js.map +1 -0
  617. package/dist/esm/six-tab.entry.js +4 -6
  618. package/dist/esm/six-tab.entry.js.map +1 -0
  619. package/dist/esm/six-tag.entry.js +4 -6
  620. package/dist/esm/six-tag.entry.js.map +1 -0
  621. package/dist/esm/six-textarea.entry.js +17 -20
  622. package/dist/esm/six-textarea.entry.js.map +1 -0
  623. package/dist/esm/six-tile.entry.js +12 -15
  624. package/dist/esm/six-tile.entry.js.map +1 -0
  625. package/dist/esm/six-timepicker.entry.js +29 -78
  626. package/dist/esm/six-timepicker.entry.js.map +1 -0
  627. package/dist/esm/six-timepicker.types-e161a447.js +2 -0
  628. package/dist/esm/six-timepicker.types-e161a447.js.map +1 -0
  629. package/dist/esm/six-tooltip.entry.js +8 -18
  630. package/dist/esm/six-tooltip.entry.js.map +1 -0
  631. package/dist/esm/slot-6f3984c7.js +2 -0
  632. package/dist/esm/slot-6f3984c7.js.map +1 -0
  633. package/dist/esm/types-4b10b413.js +2 -0
  634. package/dist/esm/types-4b10b413.js.map +1 -0
  635. package/dist/esm/ui-library.js +9 -3
  636. package/dist/esm/ui-library.js.map +1 -0
  637. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  638. package/dist/types/components/six-file-upload/six-file-upload.d.ts +8 -1
  639. package/dist/types/components/six-item-picker/six-item-picker.d.ts +2 -2
  640. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +1 -1
  641. package/dist/types/components/six-menu-item/six-menu-item.d.ts +3 -0
  642. package/dist/types/components/six-select/six-select.d.ts +2 -1
  643. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +1 -1
  644. package/dist/types/components.d.ts +1154 -238
  645. package/dist/types/stencil-public-runtime.d.ts +91 -19
  646. package/dist/types/utils/slot.d.ts +1 -1
  647. package/dist/types/utils/types.d.ts +1 -1
  648. package/dist/ui-library/index.esm.js +2 -0
  649. package/dist/ui-library/index.esm.js.map +1 -0
  650. package/dist/ui-library/p-054e12cc.entry.js +2 -0
  651. package/dist/ui-library/p-054e12cc.entry.js.map +1 -0
  652. package/dist/ui-library/p-0786fa7c.js +2 -1
  653. package/dist/ui-library/p-0786fa7c.js.map +1 -0
  654. package/dist/ui-library/p-097cced4.entry.js +2 -0
  655. package/dist/ui-library/p-097cced4.entry.js.map +1 -0
  656. package/dist/ui-library/p-0d79b0c6.entry.js +2 -0
  657. package/dist/ui-library/p-0d79b0c6.entry.js.map +1 -0
  658. package/dist/ui-library/p-14f20bbb.entry.js +2 -0
  659. package/dist/ui-library/p-14f20bbb.entry.js.map +1 -0
  660. package/dist/ui-library/p-18e5f772.entry.js +2 -0
  661. package/dist/ui-library/p-18e5f772.entry.js.map +1 -0
  662. package/dist/ui-library/p-18ea0c56.js +2 -0
  663. package/dist/ui-library/p-18ea0c56.js.map +1 -0
  664. package/dist/ui-library/p-19364560.entry.js +2 -0
  665. package/dist/ui-library/p-19364560.entry.js.map +1 -0
  666. package/dist/ui-library/p-19b50b5a.entry.js +2 -0
  667. package/dist/ui-library/p-19b50b5a.entry.js.map +1 -0
  668. package/dist/ui-library/p-21859bca.entry.js +2 -0
  669. package/dist/ui-library/p-21859bca.entry.js.map +1 -0
  670. package/dist/ui-library/p-25a3bf57.js +2 -1
  671. package/dist/ui-library/p-25a3bf57.js.map +1 -0
  672. package/dist/ui-library/p-2e48c8d2.entry.js +2 -0
  673. package/dist/ui-library/p-2e48c8d2.entry.js.map +1 -0
  674. package/dist/ui-library/p-308261c4.entry.js +2 -0
  675. package/dist/ui-library/p-308261c4.entry.js.map +1 -0
  676. package/dist/ui-library/p-33f7e22b.entry.js +2 -0
  677. package/dist/ui-library/p-33f7e22b.entry.js.map +1 -0
  678. package/dist/ui-library/p-4ae91795.entry.js +2 -0
  679. package/dist/ui-library/p-4ae91795.entry.js.map +1 -0
  680. package/dist/ui-library/p-4f8394d7.js +2 -1
  681. package/dist/ui-library/p-4f8394d7.js.map +1 -0
  682. package/dist/ui-library/p-53a13db5.entry.js +2 -0
  683. package/dist/ui-library/p-53a13db5.entry.js.map +1 -0
  684. package/dist/ui-library/p-559c87f0.entry.js +2 -0
  685. package/dist/ui-library/p-559c87f0.entry.js.map +1 -0
  686. package/dist/ui-library/p-611e1978.entry.js +2 -0
  687. package/dist/ui-library/p-611e1978.entry.js.map +1 -0
  688. package/dist/ui-library/p-63703ba3.entry.js +2 -0
  689. package/dist/ui-library/p-63703ba3.entry.js.map +1 -0
  690. package/dist/ui-library/p-6403fd87.entry.js +2 -0
  691. package/dist/ui-library/p-6403fd87.entry.js.map +1 -0
  692. package/dist/ui-library/p-6433c0da.entry.js +2 -0
  693. package/dist/ui-library/p-6433c0da.entry.js.map +1 -0
  694. package/dist/ui-library/p-6d75f216.entry.js +2 -0
  695. package/dist/ui-library/p-6d75f216.entry.js.map +1 -0
  696. package/dist/ui-library/p-73597d13.entry.js +2 -0
  697. package/dist/ui-library/p-73597d13.entry.js.map +1 -0
  698. package/dist/ui-library/p-79eee01b.js +2 -0
  699. package/dist/ui-library/p-79eee01b.js.map +1 -0
  700. package/dist/ui-library/p-7e0cc4ae.entry.js +2 -0
  701. package/dist/ui-library/p-7e0cc4ae.entry.js.map +1 -0
  702. package/dist/ui-library/p-820c23f0.entry.js +2 -0
  703. package/dist/ui-library/p-820c23f0.entry.js.map +1 -0
  704. package/dist/ui-library/p-835c3ff7.entry.js +2 -0
  705. package/dist/ui-library/p-835c3ff7.entry.js.map +1 -0
  706. package/dist/ui-library/p-8a970a40.entry.js +2 -0
  707. package/dist/ui-library/p-8a970a40.entry.js.map +1 -0
  708. package/dist/ui-library/p-90824648.entry.js +2 -0
  709. package/dist/ui-library/p-90824648.entry.js.map +1 -0
  710. package/dist/ui-library/p-90dc6af4.entry.js +2 -0
  711. package/dist/ui-library/p-90dc6af4.entry.js.map +1 -0
  712. package/dist/ui-library/p-9328e5bc.entry.js +2 -0
  713. package/dist/ui-library/p-9328e5bc.entry.js.map +1 -0
  714. package/dist/ui-library/p-97323ad7.entry.js +2 -0
  715. package/dist/ui-library/p-97323ad7.entry.js.map +1 -0
  716. package/dist/ui-library/p-9a860acc.js +2 -1
  717. package/dist/ui-library/p-9a860acc.js.map +1 -0
  718. package/dist/ui-library/p-9d1d222f.entry.js +2 -0
  719. package/dist/ui-library/p-9d1d222f.entry.js.map +1 -0
  720. package/dist/ui-library/p-a1d4f6cf.entry.js +2 -0
  721. package/dist/ui-library/p-a1d4f6cf.entry.js.map +1 -0
  722. package/dist/ui-library/p-ac4f4d45.js +3 -0
  723. package/dist/ui-library/p-ac4f4d45.js.map +1 -0
  724. package/dist/ui-library/p-af793d04.entry.js +2 -0
  725. package/dist/ui-library/p-af793d04.entry.js.map +1 -0
  726. package/dist/ui-library/p-b0e5658f.entry.js +2 -0
  727. package/dist/ui-library/p-b0e5658f.entry.js.map +1 -0
  728. package/dist/ui-library/p-b1e66136.js +2 -1
  729. package/dist/ui-library/p-b1e66136.js.map +1 -0
  730. package/dist/ui-library/p-b4dfb7cf.js +2 -1
  731. package/dist/ui-library/p-b4dfb7cf.js.map +1 -0
  732. package/dist/ui-library/p-b997e43c.entry.js +2 -0
  733. package/dist/ui-library/p-b997e43c.entry.js.map +1 -0
  734. package/dist/ui-library/p-baa03951.entry.js +2 -0
  735. package/dist/ui-library/p-baa03951.entry.js.map +1 -0
  736. package/dist/ui-library/p-c0cb6436.entry.js +2 -0
  737. package/dist/ui-library/p-c0cb6436.entry.js.map +1 -0
  738. package/dist/ui-library/p-c30f9e0b.entry.js +2 -0
  739. package/dist/ui-library/p-c30f9e0b.entry.js.map +1 -0
  740. package/dist/ui-library/p-c349d1d4.entry.js +2 -0
  741. package/dist/ui-library/p-c349d1d4.entry.js.map +1 -0
  742. package/dist/ui-library/p-c53a63f9.entry.js +2 -0
  743. package/dist/ui-library/p-c53a63f9.entry.js.map +1 -0
  744. package/dist/ui-library/p-c640c2d8.entry.js +2 -0
  745. package/dist/ui-library/p-c640c2d8.entry.js.map +1 -0
  746. package/dist/ui-library/p-c94d0b07.entry.js +2 -0
  747. package/dist/ui-library/p-c94d0b07.entry.js.map +1 -0
  748. package/dist/ui-library/p-d12c6092.js +2 -1
  749. package/dist/ui-library/p-d12c6092.js.map +1 -0
  750. package/dist/ui-library/p-d5633a29.entry.js +2 -0
  751. package/dist/ui-library/p-d5633a29.entry.js.map +1 -0
  752. package/dist/ui-library/p-dd3c76f1.entry.js +2 -0
  753. package/dist/ui-library/p-dd3c76f1.entry.js.map +1 -0
  754. package/dist/ui-library/p-df655bc9.entry.js +2 -0
  755. package/dist/ui-library/p-df655bc9.entry.js.map +1 -0
  756. package/dist/ui-library/p-e19a6c95.entry.js +2 -0
  757. package/dist/ui-library/p-e19a6c95.entry.js.map +1 -0
  758. package/dist/ui-library/p-eb8f05a9.js +2 -1
  759. package/dist/ui-library/p-eb8f05a9.js.map +1 -0
  760. package/dist/ui-library/p-edc96efc.entry.js +2 -0
  761. package/dist/ui-library/p-edc96efc.entry.js.map +1 -0
  762. package/dist/ui-library/p-f18ba86f.entry.js +2 -0
  763. package/dist/ui-library/p-f18ba86f.entry.js.map +1 -0
  764. package/dist/ui-library/p-f4938771.entry.js +2 -0
  765. package/dist/ui-library/p-f4938771.entry.js.map +1 -0
  766. package/dist/ui-library/p-f70e2403.entry.js +2 -0
  767. package/dist/ui-library/p-f70e2403.entry.js.map +1 -0
  768. package/dist/ui-library/p-f9d345e0.entry.js +2 -0
  769. package/dist/ui-library/p-f9d345e0.entry.js.map +1 -0
  770. package/dist/ui-library/p-fed07a1f.entry.js +2 -0
  771. package/dist/ui-library/p-fed07a1f.entry.js.map +1 -0
  772. package/dist/ui-library/p-ff0257bf.entry.js +2 -0
  773. package/dist/ui-library/p-ff0257bf.entry.js.map +1 -0
  774. package/dist/ui-library/ui-library.css +2 -2
  775. package/dist/ui-library/ui-library.esm.js +2 -1
  776. package/dist/ui-library/ui-library.esm.js.map +1 -0
  777. package/loader/index.d.ts +9 -0
  778. package/loader/package.json +1 -0
  779. package/package.json +8 -12
  780. package/readme.md +41 -39
  781. package/dist/cjs/six-table-cell_4.cjs.entry.js +0 -102
  782. package/dist/cjs/six-table.cjs.entry.js +0 -168
  783. package/dist/cjs/types-581e8ff0.js +0 -15
  784. package/dist/collection/components/six-table/six-table.css +0 -44
  785. package/dist/collection/components/six-table/six-table.js +0 -209
  786. package/dist/collection/components/six-table/test/helpers.js +0 -13
  787. package/dist/collection/components/six-table/types.js +0 -8
  788. package/dist/collection/components/six-table/util/filter-by.js +0 -34
  789. package/dist/collection/components/six-table/util/from-data.js +0 -33
  790. package/dist/collection/components/six-table/util/is.js +0 -3
  791. package/dist/collection/components/six-table/util/quick-filter-by.js +0 -13
  792. package/dist/collection/components/six-table/util/sort-by.js +0 -25
  793. package/dist/collection/components/six-table-cell/six-table-cell.css +0 -13
  794. package/dist/collection/components/six-table-cell/six-table-cell.js +0 -21
  795. package/dist/collection/components/six-table-header/six-table-header.css +0 -17
  796. package/dist/collection/components/six-table-header/six-table-header.js +0 -21
  797. package/dist/collection/components/six-table-header-cell/get-next-state.js +0 -7
  798. package/dist/collection/components/six-table-header-cell/icons.js +0 -12
  799. package/dist/collection/components/six-table-header-cell/six-table-header-cell.css +0 -37
  800. package/dist/collection/components/six-table-header-cell/six-table-header-cell.js +0 -174
  801. package/dist/collection/components/six-table-header-cell/types.js +0 -13
  802. package/dist/collection/components/six-table-header-cell/util/create-model.js +0 -6
  803. package/dist/collection/components/six-table-header-cell/util/get-next-state.js +0 -7
  804. package/dist/collection/components/six-table-row/six-table-row.css +0 -16
  805. package/dist/collection/components/six-table-row/six-table-row.js +0 -21
  806. package/dist/custom-elements/index.d.ts +0 -387
  807. package/dist/esm/six-table-cell_4.entry.js +0 -95
  808. package/dist/esm/six-table.entry.js +0 -164
  809. package/dist/esm/types-ed860f7c.js +0 -15
  810. package/dist/types/components/six-table/six-table.d.ts +0 -30
  811. package/dist/types/components/six-table/test/helpers.d.ts +0 -2
  812. package/dist/types/components/six-table/types.d.ts +0 -33
  813. package/dist/types/components/six-table/util/filter-by.d.ts +0 -2
  814. package/dist/types/components/six-table/util/from-data.d.ts +0 -8
  815. package/dist/types/components/six-table/util/is.d.ts +0 -3
  816. package/dist/types/components/six-table/util/quick-filter-by.d.ts +0 -2
  817. package/dist/types/components/six-table/util/sort-by.d.ts +0 -2
  818. package/dist/types/components/six-table-cell/six-table-cell.d.ts +0 -9
  819. package/dist/types/components/six-table-header/six-table-header.d.ts +0 -9
  820. package/dist/types/components/six-table-header-cell/get-next-state.d.ts +0 -2
  821. package/dist/types/components/six-table-header-cell/icons.d.ts +0 -3
  822. package/dist/types/components/six-table-header-cell/six-table-header-cell.d.ts +0 -32
  823. package/dist/types/components/six-table-header-cell/types.d.ts +0 -11
  824. package/dist/types/components/six-table-header-cell/util/create-model.d.ts +0 -4
  825. package/dist/types/components/six-table-header-cell/util/get-next-state.d.ts +0 -3
  826. package/dist/types/components/six-table-row/six-table-row.d.ts +0 -9
  827. package/dist/ui-library/p-007bc8e8.entry.js +0 -1
  828. package/dist/ui-library/p-044b784e.entry.js +0 -1
  829. package/dist/ui-library/p-0493c926.entry.js +0 -1
  830. package/dist/ui-library/p-07d1e830.js +0 -1
  831. package/dist/ui-library/p-09cb13fa.entry.js +0 -1
  832. package/dist/ui-library/p-0c596054.entry.js +0 -1
  833. package/dist/ui-library/p-1005d1a8.entry.js +0 -1
  834. package/dist/ui-library/p-19ff1079.entry.js +0 -1
  835. package/dist/ui-library/p-1b8dc7b7.entry.js +0 -1
  836. package/dist/ui-library/p-2053c61a.entry.js +0 -1
  837. package/dist/ui-library/p-281e8c2d.entry.js +0 -1
  838. package/dist/ui-library/p-2924f82f.entry.js +0 -1
  839. package/dist/ui-library/p-2d7ed407.entry.js +0 -1
  840. package/dist/ui-library/p-30ebc1e7.js +0 -1
  841. package/dist/ui-library/p-354704e5.entry.js +0 -1
  842. package/dist/ui-library/p-376b8f30.entry.js +0 -1
  843. package/dist/ui-library/p-3a7daff8.entry.js +0 -1
  844. package/dist/ui-library/p-3f577392.entry.js +0 -1
  845. package/dist/ui-library/p-4162dcdd.entry.js +0 -1
  846. package/dist/ui-library/p-4d3a4e93.entry.js +0 -1
  847. package/dist/ui-library/p-4ed023b8.entry.js +0 -1
  848. package/dist/ui-library/p-530ea6ec.entry.js +0 -1
  849. package/dist/ui-library/p-531ab886.entry.js +0 -1
  850. package/dist/ui-library/p-54c48654.entry.js +0 -1
  851. package/dist/ui-library/p-55c64cbc.entry.js +0 -1
  852. package/dist/ui-library/p-5f1c6a5f.js +0 -1
  853. package/dist/ui-library/p-6494e92d.entry.js +0 -1
  854. package/dist/ui-library/p-66601906.entry.js +0 -1
  855. package/dist/ui-library/p-675a8243.entry.js +0 -1
  856. package/dist/ui-library/p-6a4f0542.entry.js +0 -1
  857. package/dist/ui-library/p-6d622ed0.entry.js +0 -1
  858. package/dist/ui-library/p-75297ad7.js +0 -1
  859. package/dist/ui-library/p-76bfa55f.entry.js +0 -1
  860. package/dist/ui-library/p-7fe09462.entry.js +0 -1
  861. package/dist/ui-library/p-88e1e390.entry.js +0 -1
  862. package/dist/ui-library/p-8e8e922b.entry.js +0 -1
  863. package/dist/ui-library/p-90b26447.entry.js +0 -1
  864. package/dist/ui-library/p-93945629.entry.js +0 -1
  865. package/dist/ui-library/p-a98198bd.entry.js +0 -1
  866. package/dist/ui-library/p-aa37e45a.entry.js +0 -1
  867. package/dist/ui-library/p-b391f704.entry.js +0 -1
  868. package/dist/ui-library/p-b9377445.entry.js +0 -1
  869. package/dist/ui-library/p-bf110ea9.entry.js +0 -1
  870. package/dist/ui-library/p-c24292b3.entry.js +0 -1
  871. package/dist/ui-library/p-c4b22513.entry.js +0 -1
  872. package/dist/ui-library/p-c536792e.entry.js +0 -1
  873. package/dist/ui-library/p-cd79de73.entry.js +0 -1
  874. package/dist/ui-library/p-ce02c34f.entry.js +0 -1
  875. package/dist/ui-library/p-d28ac80a.entry.js +0 -1
  876. package/dist/ui-library/p-d724bbc9.entry.js +0 -1
  877. package/dist/ui-library/p-d837e5a8.entry.js +0 -1
  878. package/dist/ui-library/p-dd3cae68.entry.js +0 -1
  879. package/dist/ui-library/p-ea781e94.entry.js +0 -1
  880. package/dist/ui-library/p-eae232c3.entry.js +0 -1
  881. package/dist/ui-library/p-eb0956d2.entry.js +0 -1
  882. package/dist/ui-library/p-f00c1783.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-341df120.js');
5
+ const index = require('./index-2f6daa5b.js');
6
6
  const scroll = require('./scroll-76e6f5d7.js');
7
7
  const slot = require('./slot-ad537f24.js');
8
8
  const modal = require('./modal-48d42228.js');
@@ -11,7 +11,7 @@ const sixDrawerCss = ":host{position:relative;box-sizing:border-box}:host *,:hos
11
11
 
12
12
  const hasPreventScroll = modal.isPreventScrollSupported();
13
13
  let id = 0;
14
- let SixDrawer = class {
14
+ const SixDrawer = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
17
  this.sixShow = index.createEvent(this, "six-drawer-show", 7);
@@ -25,24 +25,10 @@ let SixDrawer = class {
25
25
  this.willHide = false;
26
26
  this.hasFooter = false;
27
27
  this.isVisible = false;
28
- /** Indicates whether or not the drawer is open. You can use this in lieu of the show/hide methods. */
29
28
  this.open = false;
30
- /**
31
- * The drawer's label as displayed in the header. You should always include a relevant label even when using
32
- * `no-header`, as it is required for proper accessibility.
33
- */
34
29
  this.label = '';
35
- /** The direction from which the drawer will open. */
36
30
  this.placement = 'right';
37
- /**
38
- * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of
39
- * its parent element, set this prop and add `position: relative` to the parent.
40
- */
41
31
  this.contained = false;
42
- /**
43
- * Removes the header. This will also remove the default close button, so please ensure you provide an easy,
44
- * accessible way for users to dismiss the drawer.
45
- */
46
32
  this.noHeader = false;
47
33
  }
48
34
  handleOpenChange() {
@@ -183,3 +169,5 @@ let SixDrawer = class {
183
169
  SixDrawer.style = sixDrawerCss;
184
170
 
185
171
  exports.six_drawer = SixDrawer;
172
+
173
+ //# sourceMappingURL=six-drawer.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"six-drawer.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,YAAY,GAAG,yxEAAyxE;;ACO9yE,MAAM,gBAAgB,GAAGA,8BAAwB,EAAE,CAAC;AACpD,IAAI,EAAE,GAAG,CAAC,CAAC;MA2BE,SAAS;;;;;;;;;IACpB,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC;IAI/B,aAAQ,GAAG,KAAK,CAAC;IACjB,aAAQ,GAAG,KAAK,CAAC;qBAII,KAAK;qBACL,KAAK;gBAGqB,KAAK;iBAMpC,EAAE;qBAGuC,OAAO;qBAM5C,KAAK;oBAMN,KAAK;;EAGxB,gBAAgB;IACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;GACvC;EAuBD,iBAA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,EACrB,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACK,CACV,EAEDA,iBAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc,IACnCA,qBAAQ,CACJ,EAENA,oBAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,IAC1CA,kBAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,EACN;GACH;;;;;;;;;;","names":["isPreventScrollSupported","Modal","unlockBodyScrolling","lockBodyScrolling","hasSlot","h"],"sources":["./src/components/six-drawer/six-drawer.scss?tag=six-drawer&encapsulation=shadow","./src/components/six-drawer/six-drawer.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --size: The preferred size of the drawer. This will be applied to the drawer's width or height depending on its\n * `placement`. Note that the drawer will shrink to accommodate smaller screens.\n */\n:host {\n --size: 25rem;\n\n display: contents;\n}\n\n.drawer {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n\n &:not(.drawer--visible) {\n @include hidden;\n }\n}\n\n.drawer--contained {\n position: absolute;\n z-index: initial;\n}\n\n.drawer--fixed {\n position: fixed;\n z-index: var(--six-z-index-drawer);\n}\n\n.drawer__panel {\n position: absolute;\n display: flex;\n flex-direction: column;\n z-index: 2;\n max-width: 100%;\n max-height: 100%;\n background-color: var(--six-drawer-background-color);\n color: var(--six-drawer-color);\n box-shadow: var(--six-shadow-x-large);\n transition: var(--six-transition-medium) transform;\n overflow: auto;\n pointer-events: all;\n\n &:focus {\n outline: none;\n }\n}\n\n.drawer--top .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, -100%);\n}\n\n.drawer--right .drawer__panel {\n top: 0;\n right: 0;\n bottom: auto;\n left: auto;\n width: var(--size);\n height: 100%;\n transform: translate(100%, 0);\n}\n\n.drawer--bottom .drawer__panel {\n top: auto;\n right: auto;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, 100%);\n}\n\n.drawer--left .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: var(--size);\n height: 100%;\n transform: translate(-100%, 0);\n}\n\n.drawer--open .drawer__panel {\n // don't use translate here or it will cause problems with popovers inside the drawer e.g. dropdown, select etc.\n transform: none;\n}\n\n.drawer__header {\n display: flex;\n}\n\n.drawer__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-large);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large);\n}\n\n.drawer__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-x-large);\n padding: 0 var(--six-spacing-large);\n}\n\n.drawer__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.drawer__footer {\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:last-of-type)) {\n margin-right: var(--six-spacing-x-small);\n }\n}\n\n.drawer:not(.drawer--has-footer) .drawer__footer {\n display: none;\n}\n\n.drawer__overlay {\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--six-overlay-background-color);\n opacity: 0;\n transition: var(--six-transition-medium) opacity;\n pointer-events: all;\n}\n\n.drawer--contained .drawer__overlay {\n position: absolute;\n}\n\n.drawer--open .drawer__overlay {\n opacity: 0.4;\n}\n","import { Component, Element, Event, EventEmitter, Method, Prop, State, Watch, h } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport { isPreventScrollSupported } from '../../utils/support';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nconst hasPreventScroll = isPreventScrollSupported();\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 drawer's content.\n * @slot label - The drawer's label. Alternatively, you can use the label prop.\n * @slot footer - The drawer's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The drawer panel (where the drawer and its content is rendered).\n * @part header - The drawer header.\n * @part title - The drawer title.\n * @part close-button - The close button.\n * @part body - The drawer body.\n * @part footer - The drawer footer.\n */\n\n@Component({\n tag: 'six-drawer',\n styleUrl: 'six-drawer.scss',\n shadow: true,\n})\nexport class SixDrawer {\n componentId = `drawer-${++id}`;\n drawer: HTMLElement;\n modal: Modal;\n panel: HTMLElement;\n willShow = false;\n willHide = false;\n\n @Element() host: HTMLSixDrawerElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether or not the drawer 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 drawer's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /** The direction from which the drawer will open. */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'right';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this prop and add `position: relative` to the parent.\n */\n @Prop() contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-drawer-show' }) sixShow: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer opens and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-show' }) sixAfterShow: EventEmitter<EmptyPayload>;\n\n /** Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-drawer-hide' }) sixHide: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer closes and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-hide' }) sixAfterHide: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the drawer opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the drawer, such as an input or button.\n */\n @Event({ eventName: 'six-drawer-initial-focus' }) sixInitialFocus: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the drawer from closing. */\n @Event({ eventName: 'six-drawer-overlay-dismiss' }) sixOverlayDismiss: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n this.handleTransitionEnd = this.handleTransitionEnd.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n this.handleOverlayClick = this.handleOverlayClick.bind(this);\n this.handleSlotChange = this.handleSlotChange.bind(this);\n\n this.modal = new Modal(this.host, {\n onFocusOut: () => (this.contained ? null : this.panel.focus()),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n\n // Show on init if open\n if (this.open) {\n this.show();\n // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the drawer */\n @Method()\n async show() {\n if (this.willShow) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this.host);\n }\n\n if (this.open) {\n if (hasPreventScroll) {\n // Wait for the next frame before setting initial focus so the dialog is technically visible\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n this.panel.focus({ preventScroll: true });\n }\n });\n } else {\n // Once Safari supports { preventScroll: true } we can remove this nasty little hack, but until then we need to\n // wait for the transition to complete before setting focus, otherwise the panel may render in a buggy way its\n // out of view initially.\n //\n // Fiddle: https://jsfiddle.net/g6buoafq/1/\n // Safari: https://bugs.webkit.org/show_bug.cgi?id=178583\n //\n this.drawer.addEventListener(\n 'transitionend',\n () => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n this.panel.focus();\n }\n },\n { once: true }\n );\n }\n }\n }\n\n /** Hides the drawer */\n @Method()\n async hide() {\n if (this.willHide) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n handleCloseClick() {\n this.hide();\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'Escape') {\n this.hide();\n }\n }\n\n handleOverlayClick() {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n }\n\n handleSlotChange() {\n this.hasFooter = hasSlot(this.host, 'footer');\n }\n\n handleTransitionEnd(event: TransitionEvent) {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'transform' && target.classList.contains('drawer__panel')) {\n this.resetTransitionVariables();\n }\n }\n\n private resetTransitionVariables() {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.drawer = el)}\n part=\"base\"\n class={{\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--visible': this.isVisible,\n 'drawer--top': this.placement === 'top',\n 'drawer--right': this.placement === 'right',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--left': this.placement === 'left',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" onClick={this.handleOverlayClick} tabIndex={-1} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"drawer__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"drawer__header\">\n <span part=\"title\" class=\"drawer__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"drawer__close\"\n name=\"x\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"drawer__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-341df120.js');
5
+ const index = require('./index-2f6daa5b.js');
6
6
  const scroll = require('./scroll-76e6f5d7.js');
7
- const popover = require('./popover-1d2a037c.js');
7
+ const popover = require('./popover-f743f62b.js');
8
8
  const eventListeners = require('./event-listeners-74715e62.js');
9
9
  const slot = require('./slot-ad537f24.js');
10
10
  const executionControl = require('./execution-control-46f388e0.js');
@@ -38,7 +38,7 @@ const isTagName = (name) => (el) => (el === null || el === void 0 ? void 0 : el.
38
38
  const isSixMenu = isTagName('six-menu');
39
39
  const isSixMenuItem = isTagName('six-menu-item');
40
40
  let id = 0;
41
- let SixDropdown = class {
41
+ const SixDropdown = class {
42
42
  constructor(hostRef) {
43
43
  index.registerInstance(this, hostRef);
44
44
  this.sixShow = index.createEvent(this, "six-dropdown-show", 7);
@@ -51,53 +51,7 @@ let SixDropdown = class {
51
51
  this.componentId = `dropdown-${++id}`;
52
52
  this.isVisible = false;
53
53
  this.hasBeenInitialized = false;
54
- /** Indicates whether or not the dropdown is open. You can use this in lieu of the show/hide methods. */
55
- this.open = false;
56
- /**
57
- * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel
58
- * inside of the viewport.
59
- */
60
- this.placement = 'bottom-start';
61
- /** Determines whether the dropdown should hide when a menu item is selected. */
62
- this.closeOnSelect = true;
63
- /** The distance in pixels from which to offset the panel away from its trigger. */
64
- this.distance = 0;
65
- /** The distance in pixels from which to offset the panel along its trigger. */
66
- this.skidding = 0;
67
- /**
68
- * Enable this option to prevent the panel from being clipped when the component is placed inside a container with
69
- * `overflow: auto|scroll`.
70
- */
71
- this.hoist = false;
72
- /**
73
- * Set to true to allow auto filtering for entries in the dropdown.
74
- * With this flag the dropdown will automatically filter itsel.
75
- * If you need to coordinate the shown elements yourself,
76
- * e.g. because you need to call an endpoint use asyncFilter instead
77
- */
78
- this.filter = false;
79
- /**
80
- * Set to true to allow async filtering.
81
- * When you enter something in the search field the component will only emit an event but not filter any elements itself.
82
- * You can then simply listen to the 'six-async-filter-fired' event to manage the shown menu-items yourself
83
- */
84
- this.asyncFilter = false;
85
- /** The filter's placeholder text. */
86
- this.filterPlaceholder = 'Filter...';
87
- /** By default the search field will be focused when opening a dropdown with filtering enabled. */
88
- this.autofocusFilter = true;
89
- /** The debounce for the filter callbacks. */
90
- this.filterDebounce = executionControl.DEFAULT_DEBOUNCE_FAST;
91
- /** The panel can be opend/closed by pressing the spacebar or the enter key. In some cases you might want to avoid this */
92
- this.disableHideOnEnterAndSpace = false;
93
- /** Set the options to be shown in the dropdown (alternative to setting the elements via html)*/
94
- this.options = null;
95
- /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)
96
- * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */
97
- this.virtualScroll = false;
98
54
  this.eventListeners = new eventListeners.EventListeners();
99
- // internal representation of options, so we don't have to make options mutable
100
- this._options = null;
101
55
  this.getMenuItems = () => {
102
56
  if (this._options !== null) {
103
57
  return this._options.map((option) => index.h("six-menu-item", { value: option.value }, option.label));
@@ -117,6 +71,22 @@ let SixDropdown = class {
117
71
  }
118
72
  this.sixAutoFilterFired.emit({ filterValue: lowerCaseFilterTerm });
119
73
  };
74
+ this.open = false;
75
+ this.placement = 'bottom-start';
76
+ this.closeOnSelect = true;
77
+ this.distance = 0;
78
+ this.skidding = 0;
79
+ this.hoist = false;
80
+ this.containingElement = undefined;
81
+ this.filter = false;
82
+ this.asyncFilter = false;
83
+ this.filterPlaceholder = 'Filter...';
84
+ this.autofocusFilter = true;
85
+ this.filterDebounce = executionControl.DEFAULT_DEBOUNCE_FAST;
86
+ this.disableHideOnEnterAndSpace = false;
87
+ this.options = null;
88
+ this.virtualScroll = false;
89
+ this._options = null;
120
90
  }
121
91
  get hasFilterEnabled() {
122
92
  return this.filter || this.asyncFilter;
@@ -157,7 +127,7 @@ let SixDropdown = class {
157
127
  this.handleDropdownScroll = this.handleDropdownScroll.bind(this);
158
128
  if (this.hasBeenInitialized && !this.popover) {
159
129
  // there was a weird bug when using six-dropdown inside an ag-grid filter. When closing the ag-grid filter
160
- // disconnectedCallback() is executed. However since componentDidLoad() will not be rerendered the popover was had
130
+ // disconnectedCallback() is executed. However, since componentDidLoad() will not be rerendered the popover had
161
131
  // no longer a connected transitionEnd callback to the dropdown. To fix this, we have this sanity check here,
162
132
  // to re-initialize the popover in case the component has already been initialized but the popover is undefined.
163
133
  this.initializePopover();
@@ -230,12 +200,11 @@ let SixDropdown = class {
230
200
  }
231
201
  handleFilteringForSlotItems(lowerCaseFilterTerm) {
232
202
  const menuItems = this.getMenuItems();
233
- menuItems.forEach((menuItem) => {
234
- var _a, _b;
235
- const lowerCaseMenuItemValue = (_a = menuItem === null || menuItem === void 0 ? void 0 : menuItem.value) === null || _a === void 0 ? void 0 : _a.toLowerCase();
236
- const lowerCaseMenuText = (_b = menuItem === null || menuItem === void 0 ? void 0 : menuItem.innerText) === null || _b === void 0 ? void 0 : _b.toLowerCase();
203
+ menuItems.forEach(async (menuItem) => {
204
+ var _a, _b, _c, _d;
237
205
  // hide all elements which don't contain the entered substring
238
- const elementContainsFilterTerm = (lowerCaseMenuItemValue === null || lowerCaseMenuItemValue === void 0 ? void 0 : lowerCaseMenuItemValue.includes(lowerCaseFilterTerm)) || (lowerCaseMenuText === null || lowerCaseMenuText === void 0 ? void 0 : lowerCaseMenuText.includes(lowerCaseFilterTerm));
206
+ const elementContainsFilterTerm = ((_b = (_a = menuItem === null || menuItem === void 0 ? void 0 : menuItem.value) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes(lowerCaseFilterTerm)) ||
207
+ ((_d = (_c = (await (menuItem === null || menuItem === void 0 ? void 0 : menuItem.getTextLabel()))) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === null || _d === void 0 ? void 0 : _d.includes(lowerCaseFilterTerm));
239
208
  menuItem.style.display = elementContainsFilterTerm ? 'unset' : 'none';
240
209
  });
241
210
  }
@@ -478,43 +447,24 @@ const mapToMenuItem = ({ value, label }) => index.h("six-menu-item", { value: va
478
447
  const DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;
479
448
  const DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;
480
449
  const ITEMS_SHOWN_NOT_SET = undefined;
481
- let SixMenu = class {
450
+ const SixMenu = class {
482
451
  constructor(hostRef) {
483
452
  index.registerInstance(this, hostRef);
484
453
  this.sixMenuItemSelected = index.createEvent(this, "six-menu-item-selected", 7);
485
454
  this.eventListeners = new eventListeners.EventListeners();
486
455
  this.typeToSelectString = '';
487
- /** Set to true to remove the box-shadow */
456
+ this.handleScrolling = () => {
457
+ // for performance improvements we only update the DOM if the scrollRatio change "enough"
458
+ this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);
459
+ };
488
460
  this.removeBoxShadow = false;
489
- /** Set the options to be shown in the dropdown */
490
461
  this.items = null;
491
- /** Defines how many items should be shown. If the number of items is larger than this properties a scrollbar will be shown */
492
462
  this.itemsShown = ITEMS_SHOWN_NOT_SET;
493
- /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)
494
- * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */
495
463
  this.virtualScroll = false;
496
- /**
497
- * Used for virtual scrolling
498
- * Define how many items should be rendered in the DOM when using virtual scrolling
499
- */
500
464
  this.itemSize = 10;
501
- /**
502
- * Used for virtual scrolling
503
- * Define the debounce for listening on scrolling changes in milliseconds.
504
- * The lower the number the more sensitive the component reacts to scrolling changes.
505
- */
506
465
  this.scrollingDebounce = 15;
507
- /**
508
- * Used to calculate which items should be rendered in the DOM
509
- */
510
466
  this.scrollingIndex = 0;
511
- // set a default item height, this variable will be updated with the real value after the first render.
512
- // However, it's necessary to have a default value because we can only fetch the proper hight after the first render
513
467
  this.sixMenuItemHeight = DEFAULT_SIX_MENU_ITEM_HEIGHT;
514
- this.handleScrolling = () => {
515
- // for performance improvements we only update the DOM if the scrollRatio change "enough"
516
- this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);
517
- };
518
468
  }
519
469
  connectedCallback() {
520
470
  this.handleClick = this.handleClick.bind(this);
@@ -696,56 +646,7 @@ let SixMenu = class {
696
646
  };
697
647
  SixMenu.style = sixMenuCss;
698
648
 
699
- const sixMenuItemCss = ":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}";
700
-
701
- let SixMenuItem = class {
702
- constructor(hostRef) {
703
- index.registerInstance(this, hostRef);
704
- this.hasFocus = false;
705
- /** Set to true to draw the item in a checked state. */
706
- this.checked = false;
707
- /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */
708
- this.value = '';
709
- /** Set to true to draw the menu item in a disabled state. */
710
- this.disabled = false;
711
- }
712
- connectedCallback() {
713
- this.handleBlur = this.handleBlur.bind(this);
714
- this.handleFocus = this.handleFocus.bind(this);
715
- this.handleMouseEnter = this.handleMouseEnter.bind(this);
716
- this.handleMouseLeave = this.handleMouseLeave.bind(this);
717
- }
718
- /** Sets focus on the button. */
719
- async setFocus(options) {
720
- this.menuItem.focus(options);
721
- }
722
- /** Removes focus from the button. */
723
- async removeFocus() {
724
- this.menuItem.blur();
725
- }
726
- handleBlur() {
727
- this.hasFocus = false;
728
- }
729
- handleFocus() {
730
- this.hasFocus = true;
731
- }
732
- handleMouseEnter() {
733
- this.setFocus();
734
- }
735
- handleMouseLeave() {
736
- this.removeFocus();
737
- }
738
- render() {
739
- return (index.h("div", { ref: (el) => (this.menuItem = el), part: "base", class: {
740
- 'menu-item': true,
741
- 'menu-item--checked': this.checked,
742
- 'menu-item--disabled': this.disabled,
743
- 'menu-item--focused': this.hasFocus,
744
- }, 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 }, index.h("span", { part: "prefix", class: "menu-item__prefix" }, index.h("slot", { name: "prefix" })), index.h("span", { part: "label", class: "menu-item__label" }, index.h("slot", null)), index.h("span", { part: "suffix", class: "menu-item__suffix" }, index.h("slot", { name: "suffix" })), index.h("span", { part: "checked-icon", class: "menu-item__check" }, index.h("six-icon", { size: "small", "aria-hidden": "true" }, "check"))));
745
- }
746
- };
747
- SixMenuItem.style = sixMenuItemCss;
748
-
749
649
  exports.six_dropdown = SixDropdown;
750
650
  exports.six_menu = SixMenu;
751
- exports.six_menu_item = SixMenuItem;
651
+
652
+ //# sourceMappingURL=six-dropdown_2.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"six-dropdown.six-menu.entry.cjs.js","mappings":";;;;;;;;;;;SAAgB,UAAU,CAAC,EAAe;EACxC,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;EAC7B,OAAO,QAAQ,GAAG,CAAC,CAAC,CAAC;AACvB,CAAC;SAEe,yBAAyB,CAAC,EAAe;;EAEvD,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE;IAClB,OAAO,EAAE,CAAC;GACX;;EAGD,IAAI,EAAE,CAAC,UAAU,EAAE;IACjB,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,CAAgB,CAAC;IACxF,IAAI,mBAAmB,EAAE;MACvB,OAAO,mBAAmB,CAAC;KAC5B;GACF;;EAGD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,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAEnCA,qBAAQ,EACP,IAAI,CAAC,WAAW,EAAE,CACf,EACL,IAAI,CAAC,aAAa,IAAIA,iBAAK,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,GAAI,CAChE,EACN;GACH;;;;;;;;","names":["EventListeners","h","getSlotChildren","DEFAULT_DEBOUNCE_FAST","Popover","debounce","scrollIntoView","slot","getTextContent"],"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"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-341df120.js');
5
+ const index = require('./index-2f6daa5b.js');
6
6
 
7
7
  const sixErrorPageCss = ".six-error-page__title{display:flex;justify-content:center;font-size:var(--six-font-size-xx-large);font-weight:bold;margin-bottom:var(--six-spacing-large)}.six-error-page__description>*{text-align:center}.six-error-page__icon-container{display:flex;justify-content:center}.six-error-page__icon::part(icon){background-color:var(--six-color-web-rock-300)}";
8
8
 
@@ -49,13 +49,14 @@ const DESCRIPTION_PER_ERROR_CODE = {
49
49
  ],
50
50
  },
51
51
  };
52
- let SixErrorPage = class {
52
+ const SixErrorPage = class {
53
53
  constructor(hostRef) {
54
54
  index.registerInstance(this, hostRef);
55
- /**
56
- * Defines language and thus displays the proper error page in the selected language.
57
- */
55
+ this.errorCode = undefined;
58
56
  this.language = 'en';
57
+ this.customTitle = undefined;
58
+ this.customDescription = undefined;
59
+ this.customIcon = undefined;
59
60
  }
60
61
  getIconName() {
61
62
  if (this.customIcon !== undefined) {
@@ -103,3 +104,5 @@ let SixErrorPage = class {
103
104
  SixErrorPage.style = sixErrorPageCss;
104
105
 
105
106
  exports.six_error_page = SixErrorPage;
107
+
108
+ //# sourceMappingURL=six-error-page.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"six-error-page.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,mWAAmW;;ACE3X,IAAK,UAIJ;AAJD,WAAK,UAAU;EACb,uDAAe,CAAA;EACf,uDAAe,CAAA;EACf,+EAA2B,CAAA;AAC7B,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AACD,MAAM,oBAAoB,GAAG;EAC3B,CAAC,UAAU,CAAC,SAAS,GAAG;IACtB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,cAAc;GACnB;EACD,CAAC,UAAU,CAAC,SAAS,GAAG;IACtB,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,sBAAsB;GAC3B;EACD,CAAC,UAAU,CAAC,qBAAqB,GAAG;IAClC,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,MAAM;GACX;CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG;EACjC,CAAC,UAAU,CAAC,SAAS,GAAG;IACtB,EAAE,EAAE;MACF,iDAAiD;MACjD,oEAAoE;KACrE;IACD,EAAE,EAAE;MACF,uDAAuD;MACvD,4FAA4F;KAC7F;GACF;EACD,CAAC,UAAU,CAAC,SAAS,GAAG;IACtB,EAAE,EAAE,CAAC,2CAA2C,EAAE,wCAAwC,CAAC;IAC3F,EAAE,EAAE,CAAC,kDAAkD,EAAE,gDAAgD,CAAC;GAC3G;EACD,CAAC,UAAU,CAAC,qBAAqB,GAAG;I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;IAED,OAAO,0BAA0B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;GAClE;EAED,MAAM;IACJ,QACEA,iBAAK,IAAI,EAAC,WAAW,IACnBA,iBAAK,KAAK,EAAC,gCAAgC,EAAC,IAAI,EAAC,gBAAgB,IAC/DA,uBAAW,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,sBAAsB,EAAC,IAAI,EAAC,MAAM,IAC3D,IAAI,CAAC,WAAW,EAAE,CACT,CACR,EACNA,iBAAK,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,OAAO,IAC5C,IAAI,CAAC,aAAa,EAAE,CACjB,EACNA,iBAAK,KAAK,EAAC,6BAA6B,EAAC,IAAI,EAAC,aAAa,IACxD,IAAI,CAAC,mBAAmB,EAAE,CACvB,CACF,EACN;GACH;;;;;;","names":["h"],"sources":["./src/components/six-error-page/six-error-page.scss?tag=six-error-page&encapsulation=shadow","./src/components/six-error-page/six-error-page.tsx"],"sourcesContent":[".six-error-page {\n &__title {\n display: flex;\n justify-content: center;\n font-size: var(--six-font-size-xx-large);\n font-weight: bold;\n margin-bottom: var(--six-spacing-large);\n }\n\n &__description {\n & > * {\n text-align: center;\n }\n }\n\n &__icon-container {\n display: flex;\n justify-content: center;\n }\n\n &__icon::part(icon) {\n background-color: var(--six-color-web-rock-300);\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nenum ERROR_CODE {\n FORBIDDEN = 403,\n NOT_FOUND = 404,\n INTERNAL_SERVER_ERROR = 500,\n}\nconst TITLE_PER_ERROR_CODE = {\n [ERROR_CODE.FORBIDDEN]: {\n en: 'Access Denied',\n de: 'Kein Zugriff',\n },\n [ERROR_CODE.NOT_FOUND]: {\n en: 'Not Found',\n de: 'Seite nicht gefunden',\n },\n [ERROR_CODE.INTERNAL_SERVER_ERROR]: {\n en: 'Ooops!',\n de: 'Ups!',\n },\n};\n\nconst DESCRIPTION_PER_ERROR_CODE = {\n [ERROR_CODE.FORBIDDEN]: {\n en: [\n 'You don’t have permission to access this page. ',\n 'Please contact an administrator or click the SIX logo on top left.',\n ],\n de: [\n 'Sie haben keine Zugriffsberechtigung auf diese Seite.',\n 'Bitte wenden Sie sich an einen Administrator oder klicken Sie auf das SIX-Logo oben links.',\n ],\n },\n [ERROR_CODE.NOT_FOUND]: {\n en: ['We have not found the page you requested.', 'Please click the SIX logo on top left.'],\n de: ['Wir haben die angeforderte Seite nicht gefunden.', 'Bitte klicken Sie auf das SIX-Logo oben links.'],\n },\n [ERROR_CODE.INTERNAL_SERVER_ERROR]: {\n en: ['Sorry, we messed up! We try to fix this.', 'Please click the SIX logo on top left.'],\n de: [\n 'Sorry, das war unser Fehler! Wir versuchen das zu beheben.',\n 'Bitte klicken Sie auf das SIX-Logo oben links.',\n ],\n },\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\n@Component({\n tag: 'six-error-page',\n styleUrl: 'six-error-page.scss',\n shadow: true,\n})\nexport class SixErrorPage {\n /**\n * Defines error Code and thus displays the proper error page.\n */\n @Prop() errorCode: number;\n\n /**\n * Defines language and thus displays the proper error page in the selected language.\n */\n @Prop() language: 'en' | 'de' = 'en';\n\n /**\n * Defines a custom title.\n */\n @Prop() customTitle?: string;\n\n /**\n * Defines a custom description.\n */\n @Prop() customDescription?: string[];\n\n /**\n * Defines a custom icon.\n */\n @Prop() customIcon?: string;\n\n private getIconName() {\n if (this.customIcon !== undefined) {\n return this.customIcon;\n }\n\n if (this.errorCode === undefined) {\n return;\n }\n\n if (this.errorCode === ERROR_CODE.FORBIDDEN) {\n return 'lock';\n }\n\n if (this.errorCode === ERROR_CODE.NOT_FOUND) {\n return 'find-in-page';\n }\n\n if (this.errorCode === ERROR_CODE.INTERNAL_SERVER_ERROR) {\n return 'sentiment-dissatisfied';\n }\n }\n\n private getErrorTitle() {\n if (this.customTitle !== undefined) {\n return this.customTitle;\n }\n\n if (this.errorCode === undefined) {\n return;\n }\n\n return TITLE_PER_ERROR_CODE[this.errorCode][this.language];\n }\n\n private getErrorDescription() {\n if (this.errorCode === undefined && this.customDescription === undefined) {\n return;\n }\n\n const descriptions = this.getDescriptions();\n return descriptions.map((errorMessage) => <div>{errorMessage}</div>);\n }\n\n private getDescriptions() {\n if (this.customDescription !== undefined) {\n return this.customDescription;\n }\n\n return DESCRIPTION_PER_ERROR_CODE[this.errorCode][this.language];\n }\n\n render() {\n return (\n <div part=\"container\">\n <div class=\"six-error-page__icon-container\" part=\"icon-container\">\n <six-picto size=\"4xl\" class=\"six-error-page__icon\" part=\"icon\">\n {this.getIconName()}\n </six-picto>\n </div>\n <div class=\"six-error-page__title\" part=\"title\">\n {this.getErrorTitle()}\n </div>\n <div class=\"six-error-page__description\" part=\"description\">\n {this.getErrorDescription()}\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -2,25 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-341df120.js');
5
+ const index = require('./index-2f6daa5b.js');
6
6
 
7
7
  const sixFileListItemCss = ".six-files-list-item{padding-bottom:0.5rem}.six-files-list-item__name{color:var(--six-color-action-600);cursor:pointer}.six-files-list-item__name--disabled{cursor:inherit;color:var(--six-color-web-rock-500)}.six-files-list-item__name:hover:not(.six-files-list-item__name--disabled){color:var(--six-color-action-500)}.six-files-list-item__date{padding-left:1rem;color:var(--six-color-web-rock-600)}.six-files-list-item__size{padding-left:1rem;color:var(--six-color-web-rock-600)}.six-files-list-item__icon{padding-left:0.5rem;display:inline-block;transform:translateY(-1px);cursor:pointer;color:var(--six-color-web-rock-600)}.six-files-list-item__icon--disabled{cursor:not-allowed;color:var(--six-color-web-rock-500)}.six-files-list-item__icon:hover:not(.six-files-list-item__icon--disabled){color:var(--six-color-web-rock-900)}";
8
8
 
9
- let SixFileListItem = class {
9
+ const SixFileListItem = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.downloadEvent = index.createEvent(this, "six-file-list-item-download", 7);
13
13
  this.removeEvent = index.createEvent(this, "six-file-list-item-remove", 7);
14
- /** An id to clearly identify the file */
15
- this.identifier = '';
16
- /** The filename */
17
- this.name = '';
18
- /** The date when the file was uploaded */
19
- this.date = '';
20
- /** Set to true if you don't want to allow to download this file */
21
- this.nodownload = false;
22
- /** Set to true if you don't want to allow to delete this file */
23
- this.nodelete = false;
24
14
  this.downloadFile = () => {
25
15
  if (this.nodownload) {
26
16
  return;
@@ -33,6 +23,12 @@ let SixFileListItem = class {
33
23
  }
34
24
  this.removeEvent.emit({ fileId: this.identifier, name: this.name });
35
25
  };
26
+ this.identifier = '';
27
+ this.name = '';
28
+ this.date = '';
29
+ this.size = undefined;
30
+ this.nodownload = false;
31
+ this.nodelete = false;
36
32
  }
37
33
  render() {
38
34
  return (index.h("div", { class: "six-files-list-item" }, index.h("span", { class: {
@@ -47,3 +43,5 @@ let SixFileListItem = class {
47
43
  SixFileListItem.style = sixFileListItemCss;
48
44
 
49
45
  exports.six_file_list_item = SixFileListItem;
46
+
47
+ //# sourceMappingURL=six-file-list-item.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"six-file-list-item.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,6zBAA6zB;;MCsB30B,eAAe;;;;;IAyB1B,iBAAY,GAAG;MACb,IAAI,IAAI,CAAC,UAAU,EAAE;QACnB,OAAO;OACR;MAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;KACvE,CAAC;IAEF,eAAU,GAAG;MACX,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,OAAO;OACR;MAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;KACrE,CAAC;sBArCoC,EAAE;gBAGR,EAAE;gBAGF,EAAE;;sBAMI,KAAK;oBAGP,KAAK;;EAwBzC,MAAM;IACJ,QACEA,iBAAK,KAAK,EAAC,qBAAqB,IAC9BA,kBACE,KAAK,EAAE;QACL,2BAA2B,EAAE,IAAI;QACjC,qCAAqC,EAAE,IAAI,CAAC,UAAU;OACvD,EACD,OAAO,EAAE,IAAI,CAAC,YAAY,IAEzB,IAAI,CAAC,IAAI,CACL,EACPA,kBAAM,KAAK,EAAC,2BAA2B,IAAE,IAAI,CAAC,IAAI,CAAQ,EACzD,IAAI,CAAC,IAAI,KAAK,SAAS,IAAIA,kBAAM,KAAK,EAAC,2BAA2B,IAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAW,EAC5GA,sBACE,KAAK,EAAE;QACL,2BAA2B,EAAE,IAAI;QACjC,qCAAqC,EAAE,IAAI,CAAC,QAAQ;OACrD,EACD,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,UAAU,aAGf,CACP,EACN;GACH;;;;;;","names":["h"],"sources":["./src/components/six-file-list-item/six-file-list-item.scss?tag=six-file-list-item&encapsulation=shadow","./src/components/six-file-list-item/six-file-list-item.tsx"],"sourcesContent":[".six-files-list-item {\n padding-bottom: 0.5rem;\n\n &__name {\n color: var(--six-color-action-600);\n cursor: pointer;\n\n &--disabled {\n cursor: inherit;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-action-500);\n }\n }\n\n &__date {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__size {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__icon {\n padding-left: 0.5rem;\n display: inline-block;\n transform: translateY(-1px);\n cursor: pointer;\n color: var(--six-color-web-rock-600);\n\n &--disabled {\n cursor: not-allowed;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\nexport interface SixFileListDownloadPayload {\n fileId: string;\n name: string;\n}\n\nexport interface SixFileListRemovePayload {\n fileId: string;\n name: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-list-item',\n styleUrl: 'six-file-list-item.scss',\n shadow: true,\n})\nexport class SixFileListItem {\n /** An id to clearly identify the file */\n @Prop({ reflect: true }) identifier = '';\n\n /** The filename */\n @Prop({ reflect: true }) name = '';\n\n /** The date when the file was uploaded */\n @Prop({ reflect: true }) date = '';\n\n /** The file size. This number will be divided by 1024 to show the filesize in KB */\n @Prop({ reflect: true }) size: number;\n\n /** Set to true if you don't want to allow to download this file */\n @Prop({ reflect: true }) nodownload = false;\n\n /** Set to true if you don't want to allow to delete this file */\n @Prop({ reflect: true }) nodelete = false;\n\n /** Triggered on file download. */\n @Event({ eventName: 'six-file-list-item-download' }) downloadEvent: EventEmitter<SixFileListDownloadPayload>;\n\n /** Triggered on file remove. */\n @Event({ eventName: 'six-file-list-item-remove' }) removeEvent: EventEmitter<SixFileListRemovePayload>;\n\n downloadFile = () => {\n if (this.nodownload) {\n return;\n }\n\n this.downloadEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n removeFile = () => {\n if (this.nodelete) {\n return;\n }\n\n this.removeEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n render() {\n return (\n <div class=\"six-files-list-item\">\n <span\n class={{\n 'six-files-list-item__name': true,\n 'six-files-list-item__name--disabled': this.nodownload,\n }}\n onClick={this.downloadFile}\n >\n {this.name}\n </span>\n <span class=\"six-files-list-item__date\">{this.date}</span>\n {this.size !== undefined && <span class=\"six-files-list-item__size\">{Math.round(this.size / 1024)} KB</span>}\n <six-icon\n class={{\n 'six-files-list-item__icon': true,\n 'six-files-list-item__icon--disabled': this.nodelete,\n }}\n size=\"small\"\n onClick={this.removeFile}\n >\n delete\n </six-icon>\n </div>\n );\n }\n}\n"],"version":3}
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-341df120.js');
5
+ const index = require('./index-2f6daa5b.js');
6
6
 
7
7
  const sixFileListCss = ".six-files-list__container{padding:1rem}.six-files-list__container :last-child{padding-bottom:0}";
8
8
 
9
- let SixFileList = class {
9
+ const SixFileList = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  }
@@ -17,3 +17,5 @@ let SixFileList = class {
17
17
  SixFileList.style = sixFileListCss;
18
18
 
19
19
  exports.six_file_list = SixFileList;
20
+
21
+ //# sourceMappingURL=six-file-list.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"six-file-list.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,kGAAkG;;MCY5G,WAAW;;;;EACtB,MAAM;IACJ,QACEA,iBAAK,KAAK,EAAC,2BAA2B,IACpCA,qBAAQ,CACJ,EACN;GACH;;;;;;","names":["h"],"sources":["./src/components/six-file-list/six-file-list.scss?tag=six-file-list&encapsulation=shadow","./src/components/six-file-list/six-file-list.tsx"],"sourcesContent":[".six-files-list {\n &__container {\n padding: 1rem;\n\n & :last-child {\n padding-bottom: 0;\n }\n }\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-list',\n styleUrl: 'six-file-list.scss',\n shadow: true,\n})\nexport class SixFileList {\n render() {\n return (\n <div class=\"six-files-list__container\">\n <slot />\n </div>\n );\n }\n}\n"],"version":3}