@six-group/ui-library 0.0.0-insider.2b3efd5 → 0.0.0-insider.2c5f541

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 (368) hide show
  1. package/dist/cjs/index-417a06c8.js +14 -10
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/six-avatar.cjs.entry.js +2 -2
  4. package/dist/cjs/six-badge.cjs.entry.js +2 -2
  5. package/dist/cjs/six-button.cjs.entry.js +2 -2
  6. package/dist/cjs/six-card.cjs.entry.js +1 -1
  7. package/dist/cjs/{six-checkbox.cjs.entry.js → six-checkbox_2.cjs.entry.js} +67 -3
  8. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  9. package/dist/cjs/six-details.cjs.entry.js +3 -3
  10. package/dist/cjs/six-dialog.cjs.entry.js +2 -2
  11. package/dist/cjs/six-drawer.cjs.entry.js +2 -2
  12. package/dist/cjs/{six-dropdown_3.cjs.entry.js → six-dropdown_2.cjs.entry.js} +6 -81
  13. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -0
  14. package/dist/cjs/six-error-page.cjs.entry.js +1 -1
  15. package/dist/cjs/six-error.cjs.entry.js +1 -1
  16. package/dist/cjs/six-file-list.cjs.entry.js +1 -1
  17. package/dist/cjs/six-footer.cjs.entry.js +1 -1
  18. package/dist/cjs/six-group-label.cjs.entry.js +1 -1
  19. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +5 -3
  20. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-header-item.cjs.entry.js +23 -0
  22. package/dist/cjs/six-header-item.cjs.entry.js.map +1 -0
  23. package/dist/cjs/six-header-menu-button.cjs.entry.js +7 -3
  24. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-header.cjs.entry.js +7 -175
  26. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-icon-button.cjs.entry.js +3 -3
  28. package/dist/cjs/six-icon.cjs.entry.js +2 -2
  29. package/dist/cjs/six-input.cjs.entry.js +3 -3
  30. package/dist/cjs/six-language-switcher.cjs.entry.js +1 -1
  31. package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
  32. package/dist/cjs/six-logo.cjs.entry.js +29 -0
  33. package/dist/cjs/six-logo.cjs.entry.js.map +1 -0
  34. package/dist/cjs/six-main-container.cjs.entry.js +1 -1
  35. package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
  36. package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
  37. package/dist/cjs/six-picto.cjs.entry.js +1 -1
  38. package/dist/cjs/six-progress-bar.cjs.entry.js +3 -3
  39. package/dist/cjs/six-progress-ring.cjs.entry.js +1 -1
  40. package/dist/cjs/six-radio.cjs.entry.js +2 -2
  41. package/dist/cjs/six-range.cjs.entry.js +2 -2
  42. package/dist/cjs/six-root.cjs.entry.js +1 -1
  43. package/dist/cjs/six-search-field.cjs.entry.js +1 -1
  44. package/dist/cjs/six-select.cjs.entry.js +6 -7
  45. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  46. package/dist/cjs/six-sidebar-item.cjs.entry.js +2 -2
  47. package/dist/cjs/six-sidebar.cjs.entry.js +2 -2
  48. package/dist/cjs/six-switch.cjs.entry.js +2 -2
  49. package/dist/cjs/six-tab-group.cjs.entry.js +2 -2
  50. package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
  51. package/dist/cjs/six-tab.cjs.entry.js +2 -2
  52. package/dist/cjs/six-tag.cjs.entry.js +2 -2
  53. package/dist/cjs/six-textarea.cjs.entry.js +2 -2
  54. package/dist/cjs/six-tile.cjs.entry.js +5 -5
  55. package/dist/cjs/six-timepicker.cjs.entry.js +1 -1
  56. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-tooltip.cjs.entry.js +2 -2
  58. package/dist/cjs/ui-library.cjs.js +1 -1
  59. package/dist/collection/collection-manifest.json +1 -1
  60. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  61. package/dist/collection/components/six-badge/six-badge.js +2 -2
  62. package/dist/collection/components/six-button/six-button.js +2 -2
  63. package/dist/collection/components/six-card/six-card.js +1 -1
  64. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  65. package/dist/collection/components/six-details/six-details.js +3 -3
  66. package/dist/collection/components/six-dialog/six-dialog.js +2 -2
  67. package/dist/collection/components/six-drawer/six-drawer.js +2 -2
  68. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -36
  69. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  70. package/dist/collection/components/six-error/six-error.js +1 -1
  71. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  72. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  73. package/dist/collection/components/six-footer/six-footer.js +1 -1
  74. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  75. package/dist/collection/components/six-header/six-header.css +0 -20
  76. package/dist/collection/components/six-header/six-header.js +8 -484
  77. package/dist/collection/components/six-header/six-header.js.map +1 -1
  78. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +0 -2
  79. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +45 -3
  80. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -1
  81. package/dist/collection/components/six-header-item/six-header-item.css +2 -2
  82. package/dist/collection/components/six-header-item/six-header-item.js +2 -5
  83. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -1
  84. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +5 -0
  85. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +86 -10
  86. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -1
  87. package/dist/collection/components/six-icon/six-icon.js +2 -2
  88. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  89. package/dist/collection/components/six-input/six-input.js +3 -3
  90. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  91. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  92. package/dist/collection/components/six-logo/six-logo.js +1 -1
  93. package/dist/collection/components/six-logo/six-logo.js.map +1 -1
  94. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  95. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  96. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  97. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  98. package/dist/collection/components/six-picto/six-picto.js +1 -1
  99. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  100. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  101. package/dist/collection/components/six-radio/six-radio.js +2 -2
  102. package/dist/collection/components/six-range/six-range.js +2 -2
  103. package/dist/collection/components/six-root/six-root.js +1 -1
  104. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  105. package/dist/collection/components/six-select/six-select.js +6 -28
  106. package/dist/collection/components/six-select/six-select.js.map +1 -1
  107. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  108. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  109. package/dist/collection/components/six-switch/six-switch.js +2 -2
  110. package/dist/collection/components/six-tab/six-tab.js +2 -2
  111. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  112. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  113. package/dist/collection/components/six-tag/six-tag.js +2 -2
  114. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  115. package/dist/collection/components/six-tile/six-tile.js +5 -5
  116. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -2
  117. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  118. package/dist/components/six-avatar.js +2 -2
  119. package/dist/components/six-badge.js +2 -2
  120. package/dist/components/six-button2.js +2 -2
  121. package/dist/components/six-card.js +1 -1
  122. package/dist/components/six-checkbox2.js +2 -2
  123. package/dist/components/six-details2.js +3 -3
  124. package/dist/components/six-dialog.js +2 -2
  125. package/dist/components/six-drawer.js +2 -2
  126. package/dist/components/six-dropdown2.js +6 -18
  127. package/dist/components/six-dropdown2.js.map +1 -1
  128. package/dist/components/six-error-page.js +1 -1
  129. package/dist/components/six-error2.js +1 -1
  130. package/dist/components/six-file-list.js +1 -1
  131. package/dist/components/six-footer.js +1 -1
  132. package/dist/components/six-group-label.js +1 -1
  133. package/dist/components/six-header-dropdown-item.js +7 -3
  134. package/dist/components/six-header-dropdown-item.js.map +1 -1
  135. package/dist/components/six-header-item.js +32 -1
  136. package/dist/components/six-header-item.js.map +1 -1
  137. package/dist/components/six-header-menu-button.js +14 -12
  138. package/dist/components/six-header-menu-button.js.map +1 -1
  139. package/dist/components/six-header.js +11 -248
  140. package/dist/components/six-header.js.map +1 -1
  141. package/dist/components/six-icon-button2.js +3 -3
  142. package/dist/components/six-icon2.js +2 -2
  143. package/dist/components/six-input2.js +3 -3
  144. package/dist/components/six-language-switcher.js +1 -1
  145. package/dist/components/six-layout-grid.js +1 -1
  146. package/dist/components/six-logo.js +38 -1
  147. package/dist/components/six-logo.js.map +1 -1
  148. package/dist/components/six-main-container.js +1 -1
  149. package/dist/components/six-menu-divider.js +1 -1
  150. package/dist/components/six-menu-item2.js +2 -2
  151. package/dist/components/six-menu-label.js +1 -1
  152. package/dist/components/six-picto2.js +1 -1
  153. package/dist/components/six-progress-bar.js +3 -3
  154. package/dist/components/six-progress-ring.js +1 -1
  155. package/dist/components/six-radio.js +2 -2
  156. package/dist/components/six-range.js +2 -2
  157. package/dist/components/six-root.js +1 -1
  158. package/dist/components/six-search-field.js +1 -1
  159. package/dist/components/six-select.js +6 -8
  160. package/dist/components/six-select.js.map +1 -1
  161. package/dist/components/six-sidebar-item.js +2 -2
  162. package/dist/components/six-sidebar.js +2 -2
  163. package/dist/components/six-switch.js +2 -2
  164. package/dist/components/six-tab-group.js +2 -2
  165. package/dist/components/six-tab-panel.js +1 -1
  166. package/dist/components/six-tab.js +2 -2
  167. package/dist/components/six-tag.js +2 -2
  168. package/dist/components/six-textarea.js +2 -2
  169. package/dist/components/six-tile.js +5 -5
  170. package/dist/components/six-timepicker2.js +1 -1
  171. package/dist/components/six-timepicker2.js.map +1 -1
  172. package/dist/components/six-tooltip2.js +2 -2
  173. package/dist/components.json +158 -571
  174. package/dist/esm/index-a7bee415.js +14 -10
  175. package/dist/esm/loader.js +1 -1
  176. package/dist/esm/six-avatar.entry.js +2 -2
  177. package/dist/esm/six-badge.entry.js +2 -2
  178. package/dist/esm/six-button.entry.js +2 -2
  179. package/dist/esm/six-card.entry.js +1 -1
  180. package/dist/esm/{six-checkbox.entry.js → six-checkbox_2.entry.js} +68 -5
  181. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  182. package/dist/esm/six-details.entry.js +3 -3
  183. package/dist/esm/six-dialog.entry.js +2 -2
  184. package/dist/esm/six-drawer.entry.js +2 -2
  185. package/dist/esm/{six-dropdown_3.entry.js → six-dropdown_2.entry.js} +7 -81
  186. package/dist/esm/six-dropdown_2.entry.js.map +1 -0
  187. package/dist/esm/six-error-page.entry.js +1 -1
  188. package/dist/esm/six-error.entry.js +1 -1
  189. package/dist/esm/six-file-list.entry.js +1 -1
  190. package/dist/esm/six-footer.entry.js +1 -1
  191. package/dist/esm/six-group-label.entry.js +1 -1
  192. package/dist/esm/six-header-dropdown-item.entry.js +5 -3
  193. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -1
  194. package/dist/esm/six-header-item.entry.js +19 -0
  195. package/dist/esm/six-header-item.entry.js.map +1 -0
  196. package/dist/esm/six-header-menu-button.entry.js +7 -3
  197. package/dist/esm/six-header-menu-button.entry.js.map +1 -1
  198. package/dist/esm/six-header.entry.js +9 -177
  199. package/dist/esm/six-header.entry.js.map +1 -1
  200. package/dist/esm/six-icon-button.entry.js +3 -3
  201. package/dist/esm/six-icon.entry.js +2 -2
  202. package/dist/esm/six-input.entry.js +3 -3
  203. package/dist/esm/six-language-switcher.entry.js +1 -1
  204. package/dist/esm/six-layout-grid.entry.js +1 -1
  205. package/dist/esm/six-logo.entry.js +25 -0
  206. package/dist/esm/six-logo.entry.js.map +1 -0
  207. package/dist/esm/six-main-container.entry.js +1 -1
  208. package/dist/esm/six-menu-divider.entry.js +1 -1
  209. package/dist/esm/six-menu-label.entry.js +1 -1
  210. package/dist/esm/six-picto.entry.js +1 -1
  211. package/dist/esm/six-progress-bar.entry.js +3 -3
  212. package/dist/esm/six-progress-ring.entry.js +1 -1
  213. package/dist/esm/six-radio.entry.js +2 -2
  214. package/dist/esm/six-range.entry.js +2 -2
  215. package/dist/esm/six-root.entry.js +1 -1
  216. package/dist/esm/six-search-field.entry.js +1 -1
  217. package/dist/esm/six-select.entry.js +6 -7
  218. package/dist/esm/six-select.entry.js.map +1 -1
  219. package/dist/esm/six-sidebar-item.entry.js +2 -2
  220. package/dist/esm/six-sidebar.entry.js +2 -2
  221. package/dist/esm/six-switch.entry.js +2 -2
  222. package/dist/esm/six-tab-group.entry.js +2 -2
  223. package/dist/esm/six-tab-panel.entry.js +1 -1
  224. package/dist/esm/six-tab.entry.js +2 -2
  225. package/dist/esm/six-tag.entry.js +2 -2
  226. package/dist/esm/six-textarea.entry.js +2 -2
  227. package/dist/esm/six-tile.entry.js +5 -5
  228. package/dist/esm/six-timepicker.entry.js +1 -1
  229. package/dist/esm/six-timepicker.entry.js.map +1 -1
  230. package/dist/esm/six-tooltip.entry.js +2 -2
  231. package/dist/esm/ui-library.js +1 -1
  232. package/dist/types/components/six-dropdown/six-dropdown.d.ts +0 -7
  233. package/dist/types/components/six-header/six-header.d.ts +2 -128
  234. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +10 -1
  235. package/dist/types/components/six-header-item/six-header-item.d.ts +1 -1
  236. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -5
  237. package/dist/types/components/six-select/six-select.d.ts +0 -7
  238. package/dist/types/components.d.ts +66 -147
  239. package/dist/ui-library/{p-1f7a0cb5.entry.js → p-0e3be65b.entry.js} +2 -2
  240. package/dist/ui-library/{p-f12b22bc.entry.js → p-0ea87016.entry.js} +2 -2
  241. package/dist/ui-library/{p-4d72b179.entry.js → p-107c1cc9.entry.js} +2 -2
  242. package/dist/ui-library/{p-e1529ef6.entry.js → p-119e0252.entry.js} +2 -2
  243. package/dist/ui-library/{p-5fc9cd7b.entry.js → p-2dda9f79.entry.js} +2 -2
  244. package/dist/ui-library/{p-171df3ad.entry.js → p-31dc219a.entry.js} +2 -2
  245. package/dist/ui-library/p-31dc219a.entry.js.map +1 -0
  246. package/dist/ui-library/{p-49019d6c.entry.js → p-3362f0a6.entry.js} +2 -2
  247. package/dist/ui-library/p-33eff94d.entry.js +2 -0
  248. package/dist/ui-library/p-33eff94d.entry.js.map +1 -0
  249. package/dist/ui-library/p-38dca7f5.entry.js +2 -0
  250. package/dist/ui-library/{p-1cc3b56d.entry.js.map → p-38dca7f5.entry.js.map} +1 -1
  251. package/dist/ui-library/p-3dde8246.entry.js +2 -0
  252. package/dist/ui-library/p-3dde8246.entry.js.map +1 -0
  253. package/dist/ui-library/{p-03acec96.entry.js → p-3de9f1dd.entry.js} +2 -2
  254. package/dist/ui-library/p-4777053f.entry.js +2 -0
  255. package/dist/ui-library/{p-618bf750.entry.js → p-484f68f9.entry.js} +2 -2
  256. package/dist/ui-library/p-4eb49fc9.entry.js +2 -0
  257. package/dist/ui-library/{p-5ece7986.entry.js → p-5236fc59.entry.js} +2 -2
  258. package/dist/ui-library/{p-f9a1f6ab.entry.js → p-5442fd21.entry.js} +2 -2
  259. package/dist/ui-library/{p-4de4ee7a.entry.js → p-54713ac9.entry.js} +2 -2
  260. package/dist/ui-library/p-59c4dc13.entry.js +2 -0
  261. package/dist/ui-library/p-62cb7f97.entry.js +2 -0
  262. package/dist/ui-library/p-62cb7f97.entry.js.map +1 -0
  263. package/dist/ui-library/p-7abd746b.entry.js +2 -0
  264. package/dist/ui-library/p-7abd746b.entry.js.map +1 -0
  265. package/dist/ui-library/p-7b413e80.entry.js +2 -0
  266. package/dist/ui-library/{p-62a1f514.entry.js.map → p-7b413e80.entry.js.map} +1 -1
  267. package/dist/ui-library/{p-a20a702a.entry.js → p-7f3769d0.entry.js} +2 -2
  268. package/dist/ui-library/{p-06d562b7.entry.js → p-801c8ff4.entry.js} +2 -2
  269. package/dist/ui-library/p-8837e3fc.entry.js +2 -0
  270. package/dist/ui-library/p-8837e3fc.entry.js.map +1 -0
  271. package/dist/ui-library/{p-281ffc35.entry.js → p-88f4177a.entry.js} +2 -2
  272. package/dist/ui-library/{p-afb15ea4.entry.js → p-8d0d99c9.entry.js} +2 -2
  273. package/dist/ui-library/{p-ce13acf3.entry.js → p-90462eea.entry.js} +2 -2
  274. package/dist/ui-library/p-99c8138a.entry.js +2 -0
  275. package/dist/ui-library/p-99c8138a.entry.js.map +1 -0
  276. package/dist/ui-library/{p-ffce31da.entry.js → p-9af41a65.entry.js} +2 -2
  277. package/dist/ui-library/{p-bfb398c6.entry.js → p-9c40c714.entry.js} +2 -2
  278. package/dist/ui-library/{p-0a6b6429.entry.js → p-a480590a.entry.js} +2 -2
  279. package/dist/ui-library/{p-ea854ec5.entry.js → p-aa980af9.entry.js} +2 -2
  280. package/dist/ui-library/{p-db193a32.entry.js → p-b5f193e8.entry.js} +2 -2
  281. package/dist/ui-library/{p-cd65e3b2.entry.js → p-b8b15329.entry.js} +2 -2
  282. package/dist/ui-library/{p-1cd09d9b.entry.js → p-c4045cb9.entry.js} +2 -2
  283. package/dist/ui-library/{p-e6efc08a.entry.js → p-c656cbbe.entry.js} +2 -2
  284. package/dist/ui-library/{p-cd79700c.entry.js → p-c71f6a4d.entry.js} +2 -2
  285. package/dist/ui-library/{p-6795e0a9.entry.js → p-c7860973.entry.js} +2 -2
  286. package/dist/ui-library/{p-e181944f.entry.js → p-cc5d6ffb.entry.js} +2 -2
  287. package/dist/ui-library/{p-870139dc.entry.js → p-d18354fa.entry.js} +2 -2
  288. package/dist/ui-library/p-d5ea5ee3.entry.js +2 -0
  289. package/dist/ui-library/p-df01fb64.entry.js +2 -0
  290. package/dist/ui-library/p-ed371177.entry.js +2 -0
  291. package/dist/ui-library/p-f206cd87.entry.js +2 -0
  292. package/dist/ui-library/p-f206cd87.entry.js.map +1 -0
  293. package/dist/ui-library/p-f5145520.entry.js +2 -0
  294. package/dist/ui-library/p-f5145520.entry.js.map +1 -0
  295. package/dist/ui-library/{p-7eb9ae75.entry.js → p-f90411a2.entry.js} +2 -2
  296. package/dist/ui-library/ui-library.esm.js +1 -1
  297. package/dist/ui-library/ui-library.esm.js.map +1 -1
  298. package/package.json +1 -1
  299. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  300. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +0 -1
  301. package/dist/cjs/six-header-item_2.cjs.entry.js +0 -47
  302. package/dist/cjs/six-header-item_2.cjs.entry.js.map +0 -1
  303. package/dist/components/six-header-item2.js +0 -39
  304. package/dist/components/six-header-item2.js.map +0 -1
  305. package/dist/components/six-logo2.js +0 -42
  306. package/dist/components/six-logo2.js.map +0 -1
  307. package/dist/esm/six-checkbox.entry.js.map +0 -1
  308. package/dist/esm/six-dropdown_3.entry.js.map +0 -1
  309. package/dist/esm/six-header-item_2.entry.js +0 -42
  310. package/dist/esm/six-header-item_2.entry.js.map +0 -1
  311. package/dist/ui-library/p-07b6203f.entry.js +0 -2
  312. package/dist/ui-library/p-14d09601.entry.js +0 -2
  313. package/dist/ui-library/p-171df3ad.entry.js.map +0 -1
  314. package/dist/ui-library/p-1cc3b56d.entry.js +0 -2
  315. package/dist/ui-library/p-2355c444.entry.js +0 -2
  316. package/dist/ui-library/p-30000e86.entry.js +0 -2
  317. package/dist/ui-library/p-30000e86.entry.js.map +0 -1
  318. package/dist/ui-library/p-4f129bb3.entry.js +0 -2
  319. package/dist/ui-library/p-4f129bb3.entry.js.map +0 -1
  320. package/dist/ui-library/p-57ea4cb7.entry.js +0 -2
  321. package/dist/ui-library/p-57ea4cb7.entry.js.map +0 -1
  322. package/dist/ui-library/p-5f491974.entry.js +0 -2
  323. package/dist/ui-library/p-5f491974.entry.js.map +0 -1
  324. package/dist/ui-library/p-62a1f514.entry.js +0 -2
  325. package/dist/ui-library/p-6513b8ce.entry.js +0 -2
  326. package/dist/ui-library/p-6ec126f7.entry.js +0 -2
  327. package/dist/ui-library/p-705e3612.entry.js +0 -2
  328. package/dist/ui-library/p-705e3612.entry.js.map +0 -1
  329. package/dist/ui-library/p-adc65fc8.entry.js +0 -2
  330. package/dist/ui-library/p-adc65fc8.entry.js.map +0 -1
  331. package/dist/ui-library/p-cdc94cd6.entry.js +0 -2
  332. package/dist/ui-library/p-cdc94cd6.entry.js.map +0 -1
  333. package/dist/ui-library/p-d67b8482.entry.js +0 -2
  334. /package/dist/ui-library/{p-1f7a0cb5.entry.js.map → p-0e3be65b.entry.js.map} +0 -0
  335. /package/dist/ui-library/{p-f12b22bc.entry.js.map → p-0ea87016.entry.js.map} +0 -0
  336. /package/dist/ui-library/{p-4d72b179.entry.js.map → p-107c1cc9.entry.js.map} +0 -0
  337. /package/dist/ui-library/{p-e1529ef6.entry.js.map → p-119e0252.entry.js.map} +0 -0
  338. /package/dist/ui-library/{p-5fc9cd7b.entry.js.map → p-2dda9f79.entry.js.map} +0 -0
  339. /package/dist/ui-library/{p-49019d6c.entry.js.map → p-3362f0a6.entry.js.map} +0 -0
  340. /package/dist/ui-library/{p-03acec96.entry.js.map → p-3de9f1dd.entry.js.map} +0 -0
  341. /package/dist/ui-library/{p-d67b8482.entry.js.map → p-4777053f.entry.js.map} +0 -0
  342. /package/dist/ui-library/{p-618bf750.entry.js.map → p-484f68f9.entry.js.map} +0 -0
  343. /package/dist/ui-library/{p-6ec126f7.entry.js.map → p-4eb49fc9.entry.js.map} +0 -0
  344. /package/dist/ui-library/{p-5ece7986.entry.js.map → p-5236fc59.entry.js.map} +0 -0
  345. /package/dist/ui-library/{p-f9a1f6ab.entry.js.map → p-5442fd21.entry.js.map} +0 -0
  346. /package/dist/ui-library/{p-4de4ee7a.entry.js.map → p-54713ac9.entry.js.map} +0 -0
  347. /package/dist/ui-library/{p-07b6203f.entry.js.map → p-59c4dc13.entry.js.map} +0 -0
  348. /package/dist/ui-library/{p-a20a702a.entry.js.map → p-7f3769d0.entry.js.map} +0 -0
  349. /package/dist/ui-library/{p-06d562b7.entry.js.map → p-801c8ff4.entry.js.map} +0 -0
  350. /package/dist/ui-library/{p-281ffc35.entry.js.map → p-88f4177a.entry.js.map} +0 -0
  351. /package/dist/ui-library/{p-afb15ea4.entry.js.map → p-8d0d99c9.entry.js.map} +0 -0
  352. /package/dist/ui-library/{p-ce13acf3.entry.js.map → p-90462eea.entry.js.map} +0 -0
  353. /package/dist/ui-library/{p-ffce31da.entry.js.map → p-9af41a65.entry.js.map} +0 -0
  354. /package/dist/ui-library/{p-bfb398c6.entry.js.map → p-9c40c714.entry.js.map} +0 -0
  355. /package/dist/ui-library/{p-0a6b6429.entry.js.map → p-a480590a.entry.js.map} +0 -0
  356. /package/dist/ui-library/{p-ea854ec5.entry.js.map → p-aa980af9.entry.js.map} +0 -0
  357. /package/dist/ui-library/{p-db193a32.entry.js.map → p-b5f193e8.entry.js.map} +0 -0
  358. /package/dist/ui-library/{p-cd65e3b2.entry.js.map → p-b8b15329.entry.js.map} +0 -0
  359. /package/dist/ui-library/{p-1cd09d9b.entry.js.map → p-c4045cb9.entry.js.map} +0 -0
  360. /package/dist/ui-library/{p-e6efc08a.entry.js.map → p-c656cbbe.entry.js.map} +0 -0
  361. /package/dist/ui-library/{p-cd79700c.entry.js.map → p-c71f6a4d.entry.js.map} +0 -0
  362. /package/dist/ui-library/{p-6795e0a9.entry.js.map → p-c7860973.entry.js.map} +0 -0
  363. /package/dist/ui-library/{p-e181944f.entry.js.map → p-cc5d6ffb.entry.js.map} +0 -0
  364. /package/dist/ui-library/{p-870139dc.entry.js.map → p-d18354fa.entry.js.map} +0 -0
  365. /package/dist/ui-library/{p-14d09601.entry.js.map → p-d5ea5ee3.entry.js.map} +0 -0
  366. /package/dist/ui-library/{p-6513b8ce.entry.js.map → p-df01fb64.entry.js.map} +0 -0
  367. /package/dist/ui-library/{p-2355c444.entry.js.map → p-ed371177.entry.js.map} +0 -0
  368. /package/dist/ui-library/{p-7eb9ae75.entry.js.map → p-f90411a2.entry.js.map} +0 -0
@@ -1,200 +1,33 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { EventListeners } from "../../utils/event-listeners";
3
- import { getSlot, hasSlot } from "../../utils/slot";
4
- var Section;
5
- (function (Section) {
6
- Section[Section["None"] = 0] = "None";
7
- Section[Section["Search"] = 1] = "Search";
8
- Section[Section["AppSwitcher"] = 2] = "AppSwitcher";
9
- Section[Section["Profile"] = 3] = "Profile";
10
- })(Section || (Section = {}));
11
- var Slot;
12
- (function (Slot) {
13
- Slot["Search"] = "search-field";
14
- Slot["Notifications"] = "notifications";
15
- Slot["AppSwitcher"] = "app-switcher-menu";
16
- Slot["Profile"] = "profile-menu";
17
- Slot["Logo"] = "logo";
18
- })(Slot || (Slot = {}));
3
+ import { getSlot } from "../../utils/slot";
19
4
  /**
20
5
  * @since 1.0
21
6
  * @status stable
22
- * @slot - Used to define a custom component that is included in the header.
23
7
  * @slot search-field - Used to define the search field component in the header.
24
- * @slot notifications - <span style="color:red">[Deprecated]</span>, use six-header `custom` property instead. Used to define the notification component in the header.
25
- * @slot app-switcher-menu - <span style="color:red">[Deprecated]</span>, use six-header `custom` property instead. Used to define the application switcher menu in the header.
26
- * @slot profile-menu - <span style="color:red">[Deprecated]</span>, use six-header `custom` property instead. Used to define the profile menu in the header.
27
- * @slot profile-avatar - <span style="color:red">[Deprecated]</span>, use six-header `custom` property instead. Used to define the avator in the header.
28
8
  */
29
9
  export class SixHeader {
30
10
  constructor() {
31
11
  this.eventListeners = new EventListeners();
32
- this.setupMenu = (el) => {
33
- if (el == null)
34
- return;
35
- this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());
36
- };
37
- this.setupLogo = (el) => {
38
- if (!this.clickableLogo || el == null)
39
- return;
40
- this.eventListeners.add(el, 'click', () => this.logoClick.emit());
41
- };
42
- this.setupProfile = (el) => {
43
- if (el == null)
44
- return;
45
- this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));
46
- this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));
47
- this.eventListeners.add(el, 'six-menu-item-selected', (event) => {
48
- const { name, item } = event.detail;
49
- this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });
50
- });
51
- };
52
- this.setupAppSwitcher = (el) => {
53
- if (el == null)
54
- return;
55
- this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));
56
- this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));
57
- this.eventListeners.add(el, 'six-menu-item-selected', (event) => {
58
- const { name, item } = event.detail;
59
- this.selectedApp = item.innerText;
60
- this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });
61
- });
62
- };
63
- this.appNameClicked = () => this.sixAppNameClicked.emit();
64
- this.computeSearchOpenState = () => {
65
- this.selectedSection = this.openSearch ? Section.Search : Section.None;
66
- };
67
- this.custom = false;
68
12
  this.shiftContent = false;
69
- this.hideHamburgerMenu = false;
70
- this.openHamburgerMenu = false;
71
13
  this.openSearch = false;
72
- this.clickableLogo = false;
73
- this.logo = 'six';
74
- this.selectedApp = undefined;
75
- this.selectedSection = undefined;
76
14
  }
77
15
  handleOpenSearchChange() {
78
- if (this.custom) {
79
- if (this.openSearch) {
80
- // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772
81
- setTimeout(async () => {
82
- var _a, _b;
83
- const slot = getSlot(this.host, Slot.Search);
84
- (_b = (_a = slot === null || slot === void 0 ? void 0 : slot.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('six-input')) === null || _b === void 0 ? void 0 : _b.setFocus();
85
- }, 50);
86
- }
87
- }
88
- else {
89
- this.computeSearchOpenState();
90
- }
91
- }
92
- /**
93
- * Sets open state for search
94
- *
95
- * @deprecated Use six-header `custom` property instead
96
- */
97
- async setSearchOpenState(openState) {
98
- if (this.selectedSection === Section.Search && !openState) {
99
- this.selectedSection = Section.None;
100
- }
101
- else if (openState && this.selectedSection !== Section.Search) {
102
- this.selectedSection = Section.Search;
103
- }
104
- }
105
- /**
106
- * Get open state for search
107
- *
108
- * @deprecated Use six-header `custom` property instead
109
- */
110
- async getIsSearchOpen() {
111
- return this.selectedSection === Section.Search;
112
- }
113
- hasSlot(slot) {
114
- if (this.slots == null) {
115
- return false;
116
- }
117
- return this.slots[slot];
118
- }
119
- isSectionSelected(value) {
120
- return value === this.selectedSection;
121
- }
122
- selectSection(section) {
123
- return () => (this.selectedSection = section);
124
- }
125
- toggleSearch() {
126
- const visible = this.selectedSection !== Section.Search;
127
- this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;
128
- this.sixSearchFieldToggle.emit({ visible });
129
- if (this.selectedSection === Section.Search) {
130
- // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772
131
- setTimeout(async () => {
132
- var _a, _b;
133
- const slot = getSlot(this.host, Slot.Search);
134
- (_b = (_a = slot === null || slot === void 0 ? void 0 : slot.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('six-input')) === null || _b === void 0 ? void 0 : _b.setFocus();
135
- }, 50);
136
- }
137
- }
138
- componentWillLoad() {
139
- this.slots = {
140
- [Slot.Search]: hasSlot(this.host, Slot.Search),
141
- [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),
142
- [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),
143
- [Slot.Profile]: hasSlot(this.host, Slot.Profile),
144
- [Slot.Logo]: hasSlot(this.host, Slot.Logo),
145
- };
146
- if (this.hasSlot(Slot.AppSwitcher)) {
147
- this.updateSelectedApp();
148
- }
149
- if (this.hasSlot(Slot.Search)) {
150
- this.computeSearchOpenState();
151
- }
152
- }
153
- connectedCallback() {
154
- const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);
155
- if (appSwitcherSlot) {
156
- this.mutationObserver = new MutationObserver((mutations) => {
157
- if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {
158
- this.updateSelectedApp();
159
- }
160
- });
161
- this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });
162
- }
163
- }
164
- updateSelectedApp() {
165
- var _a;
166
- // there are more concise ways to select the first checked menu item, but this is one that works for jest
167
- const element = getSlot(this.host, Slot.AppSwitcher);
168
- if (element == null) {
169
- return undefined;
16
+ if (this.openSearch) {
17
+ // deferred due to https://github.com/ionic-team/stencil/issues/3772
18
+ setTimeout(async () => { var _a, _b, _c; return (_c = (_b = (_a = getSlot(this.host, 'search-field')) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('six-input')) === null || _c === void 0 ? void 0 : _c.setFocus(); }, 50);
170
19
  }
171
- const items = Array.from(element.querySelectorAll('six-menu-item'));
172
- const firstCheckedMenuItem = items.find((item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false');
173
- this.selectedApp = (_a = firstCheckedMenuItem === null || firstCheckedMenuItem === void 0 ? void 0 : firstCheckedMenuItem.textContent) !== null && _a !== void 0 ? _a : undefined;
174
20
  }
175
21
  disconnectedCallback() {
176
- var _a;
177
22
  this.eventListeners.removeAll();
178
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
179
23
  }
180
24
  render() {
181
- const hamburgerMenu = !this.hideHamburgerMenu && (h("six-header-item", { key: 'f5e4bf7b91ab71b6fde280777ef56741c4e8593b' }, h("six-icon-button", { key: '691a031db2a0f40177b54d689c2041647977a6f1', name: this.openHamburgerMenu ? 'menu_open' : 'menu', ref: this.setupMenu })));
182
- const search = this.hasSlot(Slot.Search) && (h("six-header-item", { key: 'd25050b55ff11cd3888fd1cd7a922f850c43d513', active: this.isSectionSelected(Section.Search) }, h("six-icon-button", { key: '59cb3875f60c30c7829f57b39ad5a49dd58b3f6b', name: "search", onClick: () => this.toggleSearch(), "data-testid": "search-trigger" })));
183
- const notifications = this.hasSlot(Slot.Notifications) && (h("six-header-item", { key: '2093e028f6b63d5a746121ce7f34a60ccd8b814c' }, h("slot", { key: '14b764a489ccef0d535d990c5827c0bfdcdfadb3', name: Slot.Notifications })));
184
- const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (h("six-header-item", { key: 'b0640d2560ff7cb738f48985aaf0471cb7b49972', active: this.isSectionSelected(Section.AppSwitcher) }, h("six-dropdown", { key: '8e25753fce395164ce9cfc5479a46a19975de4b0', distance: 14, skidding: 20, placement: "bottom-end", ref: this.setupAppSwitcher }, h("div", { key: 'fe5f0fdf9411f05221c914533732db7be3d3d033', slot: "trigger", class: "six-header__app-switcher-dropdown" }, h("a", { key: '81a4d4647b1de8acaadc19d5e58d674c2b930ac4', onClick: this.appNameClicked, class: "six-header__selected-app" }, this.selectedApp), h("six-icon-button", { key: 'd903125dfa9ceadb186bc1eb56f15799c7705eb3', name: "apps" })), h("slot", { key: '57316a36e610fdedcd49a0eed7c81d3e26df3cca', name: Slot.AppSwitcher }))));
185
- const profile = this.hasSlot(Slot.Profile) && (h("six-header-item", { key: 'a3133d7f1c50dda15b211fbf46f596e7934aa037', active: this.isSectionSelected(Section.Profile) }, h("six-dropdown", { key: 'c06dc87cd548d08ad0821350a54364e03189ec31', distance: 18, skidding: 20, placement: "bottom-end", ref: this.setupProfile }, h("slot", { key: '2f661377226178aee7fc5915939df0918991e4c6', name: "profile-avatar", slot: "trigger" }), h("slot", { key: '0c9ab4cf7a943e169515a2e73f5d154bf88e0300', name: "profile-menu" }))));
186
- const logo = this.hasSlot(Slot.Logo) ? (h("six-header-item", null, h("slot", { name: "logo" }))) : (h("six-header-item", { class: { 'six-header__logo--clickable': this.clickableLogo }, ref: this.setupLogo }, h("six-logo", { brand: this.logo })));
187
- const customView = (h(Host, { key: '0b95cbc2c5e2e132f1c6c789c33941efcc4e5a22' }, h("header", { key: 'e8c71cb2c22f2cdc410d2e678f5e30528e50f074', part: "header", class: "six-header" }, h("slot", { key: 'c8d3c17a6c3435f9d7338bcdf4e0dee210b5527a' })), h("div", { key: '1cfe987e74fb40b1ee774a0d3e9718e50770ef0e', class: {
25
+ console.log('render', this.openSearch);
26
+ return (h(Host, { key: '52af99894d875dcaab9e43584e3f85a032ee5297' }, h("header", { key: '0de37377a1ec6137940c9dc06d6db2be650473c4', part: "header", class: "six-header" }, h("slot", { key: '5a236e823be39bbf26073ac7ff5413ef09c25bda' })), h("div", { key: '77182a4e207a72ba9400a2d13d3cfddfdb98668c', class: {
188
27
  'six-header__search-field': true,
189
28
  'six-header__search-field--visible': this.openSearch,
190
29
  'six-header__search-field--shift-content': this.shiftContent,
191
- } }, h("slot", { key: 'c6f91d3251a01c33281a0437c1273c1851641251', name: Slot.Search }))));
192
- const defaultView = (h(Host, { key: '64fad48c1c9f738ec60d46eca751e0fbaa02121a' }, h("header", { key: '96ebb16b846a8f6331fa882dd557fb57bbc19bc1', part: "header", class: "six-header" }, hamburgerMenu, logo, h("six-header-item", { key: 'dbf70c1f28a8ac8e5fce05cd5d7d46b219057f59', class: "six-header__placeholder" }), h("six-header-item", { key: 'd3c30d7836f81bf58114f1ef9dffcd0ef51f078f' }, h("slot", { key: '2a0901b0730ed12d5f8f56f1b1ab575fb4863c6f' })), search, notifications, appSwitcher, profile), h("div", { key: 'aaf0973d3476a29d6ab3f117aa961e9dc6958bbe', class: {
193
- 'six-header__search-field': true,
194
- 'six-header__search-field--visible': this.isSectionSelected(Section.Search),
195
- 'six-header__search-field--shift-content': this.shiftContent,
196
- } }, h("slot", { key: '708bead402bdd620a21fa629b4ddf37772fc75e0', name: Slot.Search }))));
197
- return this.custom ? customView : defaultView;
30
+ } }, h("slot", { key: '27cfb931af55b164761a22c11c320874ddac3e3a', name: 'search-field' }))));
198
31
  }
199
32
  static get is() { return "six-header"; }
200
33
  static get encapsulation() { return "shadow"; }
@@ -211,30 +44,6 @@ export class SixHeader {
211
44
  static get assetsDirs() { return ["assets"]; }
212
45
  static get properties() {
213
46
  return {
214
- "custom": {
215
- "type": "boolean",
216
- "mutable": false,
217
- "complexType": {
218
- "original": "boolean",
219
- "resolved": "boolean",
220
- "references": {}
221
- },
222
- "required": false,
223
- "optional": false,
224
- "docs": {
225
- "tags": [{
226
- "name": "since",
227
- "text": "4.2.7"
228
- }, {
229
- "name": "status",
230
- "text": "beta"
231
- }],
232
- "text": "Set `custom` to `true` for complete control over the header content. When enabled, all other properties and slots\nare ignored.\n\nUse `six-header-item`, `six-header-dropdown-item` and `six-header-menu-button` to structure the content."
233
- },
234
- "attribute": "custom",
235
- "reflect": false,
236
- "defaultValue": "false"
237
- },
238
47
  "shiftContent": {
239
48
  "type": "boolean",
240
49
  "mutable": false,
@@ -253,48 +62,6 @@ export class SixHeader {
253
62
  "reflect": false,
254
63
  "defaultValue": "false"
255
64
  },
256
- "hideHamburgerMenu": {
257
- "type": "boolean",
258
- "mutable": false,
259
- "complexType": {
260
- "original": "boolean",
261
- "resolved": "boolean",
262
- "references": {}
263
- },
264
- "required": false,
265
- "optional": false,
266
- "docs": {
267
- "tags": [{
268
- "name": "deprecated",
269
- "text": "Use six-header `custom` property instead"
270
- }],
271
- "text": "Set whether the hamburger menu should be visible or not"
272
- },
273
- "attribute": "hide-hamburger-menu",
274
- "reflect": false,
275
- "defaultValue": "false"
276
- },
277
- "openHamburgerMenu": {
278
- "type": "boolean",
279
- "mutable": false,
280
- "complexType": {
281
- "original": "boolean",
282
- "resolved": "boolean",
283
- "references": {}
284
- },
285
- "required": false,
286
- "optional": false,
287
- "docs": {
288
- "tags": [{
289
- "name": "deprecated",
290
- "text": "Use six-header `custom` property instead"
291
- }],
292
- "text": "Set the hamburger menu icon to open or closed state"
293
- },
294
- "attribute": "open-hamburger-menu",
295
- "reflect": false,
296
- "defaultValue": "false"
297
- },
298
65
  "openSearch": {
299
66
  "type": "boolean",
300
67
  "mutable": false,
@@ -307,254 +74,11 @@ export class SixHeader {
307
74
  "optional": false,
308
75
  "docs": {
309
76
  "tags": [],
310
- "text": "Set the header search to be in an open or closed state.\n\nIf `custom` is `true`, focuses the first `six-input` found in the search slot."
77
+ "text": "Set the header search input to be in an open or closed state.\n\nFocuses the first `six-input` found in the search slot."
311
78
  },
312
79
  "attribute": "open-search",
313
80
  "reflect": false,
314
81
  "defaultValue": "false"
315
- },
316
- "clickableLogo": {
317
- "type": "boolean",
318
- "mutable": false,
319
- "complexType": {
320
- "original": "boolean",
321
- "resolved": "boolean",
322
- "references": {}
323
- },
324
- "required": false,
325
- "optional": false,
326
- "docs": {
327
- "tags": [{
328
- "name": "deprecated",
329
- "text": "Use six-header `custom` property with `six-logo` instead"
330
- }],
331
- "text": "Set whether the logo should be clickable"
332
- },
333
- "attribute": "clickable-logo",
334
- "reflect": false,
335
- "defaultValue": "false"
336
- },
337
- "logo": {
338
- "type": "string",
339
- "mutable": false,
340
- "complexType": {
341
- "original": "'six' | 'bme'",
342
- "resolved": "\"bme\" | \"six\"",
343
- "references": {}
344
- },
345
- "required": false,
346
- "optional": false,
347
- "docs": {
348
- "tags": [{
349
- "name": "deprecated",
350
- "text": "Use six-header `custom` property with `six-logo` instead"
351
- }],
352
- "text": "The displayed logo. Either six or bme. Defaults to six."
353
- },
354
- "attribute": "logo",
355
- "reflect": false,
356
- "defaultValue": "'six'"
357
- }
358
- };
359
- }
360
- static get states() {
361
- return {
362
- "selectedApp": {},
363
- "selectedSection": {}
364
- };
365
- }
366
- static get events() {
367
- return [{
368
- "method": "sixAppNameClicked",
369
- "name": "six-header-app-name-clicked",
370
- "bubbles": true,
371
- "cancelable": true,
372
- "composed": true,
373
- "docs": {
374
- "tags": [{
375
- "name": "deprecated",
376
- "text": "Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead"
377
- }],
378
- "text": "Emitted when the name of the selected app is clicked."
379
- },
380
- "complexType": {
381
- "original": "EmptyPayload",
382
- "resolved": "undefined",
383
- "references": {
384
- "EmptyPayload": {
385
- "location": "import",
386
- "path": "../../utils/types",
387
- "id": "src/utils/types.ts::EmptyPayload"
388
- }
389
- }
390
- }
391
- }, {
392
- "method": "sixAppSwitcherSelect",
393
- "name": "six-header-app-switcher-select",
394
- "bubbles": true,
395
- "cancelable": true,
396
- "composed": true,
397
- "docs": {
398
- "tags": [{
399
- "name": "deprecated",
400
- "text": "Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead"
401
- }],
402
- "text": "Emitted when a menu item is in the app switcher menu is selected."
403
- },
404
- "complexType": {
405
- "original": "SixHeaderAppSwitcherSelectPayload",
406
- "resolved": "SixHeaderAppSwitcherSelectPayload",
407
- "references": {
408
- "SixHeaderAppSwitcherSelectPayload": {
409
- "location": "local",
410
- "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-header/six-header.tsx",
411
- "id": "src/components/six-header/six-header.tsx::SixHeaderAppSwitcherSelectPayload"
412
- }
413
- }
414
- }
415
- }, {
416
- "method": "sixProfileSelect",
417
- "name": "six-header-profile-select",
418
- "bubbles": true,
419
- "cancelable": true,
420
- "composed": true,
421
- "docs": {
422
- "tags": [{
423
- "name": "deprecated",
424
- "text": "Use six-header `custom` property with `six-header-dropdown-item` and `six-avatar` instead"
425
- }],
426
- "text": "Emitted when a menu item is in the profile menu is selected."
427
- },
428
- "complexType": {
429
- "original": "SixHeaderProfileSelectPayload",
430
- "resolved": "SixHeaderProfileSelectPayload",
431
- "references": {
432
- "SixHeaderProfileSelectPayload": {
433
- "location": "local",
434
- "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-header/six-header.tsx",
435
- "id": "src/components/six-header/six-header.tsx::SixHeaderProfileSelectPayload"
436
- }
437
- }
438
- }
439
- }, {
440
- "method": "sixHamburgerClick",
441
- "name": "six-header-hamburger-menu-clicked",
442
- "bubbles": true,
443
- "cancelable": true,
444
- "composed": true,
445
- "docs": {
446
- "tags": [{
447
- "name": "deprecated",
448
- "text": "Use six-header `custom` property instead"
449
- }],
450
- "text": "Emitted when the hamburger menu is clicked."
451
- },
452
- "complexType": {
453
- "original": "EmptyPayload",
454
- "resolved": "undefined",
455
- "references": {
456
- "EmptyPayload": {
457
- "location": "import",
458
- "path": "../../utils/types",
459
- "id": "src/utils/types.ts::EmptyPayload"
460
- }
461
- }
462
- }
463
- }, {
464
- "method": "logoClick",
465
- "name": "six-header-logo-clicked",
466
- "bubbles": true,
467
- "cancelable": true,
468
- "composed": true,
469
- "docs": {
470
- "tags": [{
471
- "name": "deprecated",
472
- "text": "Use six-header `custom` property instead"
473
- }],
474
- "text": "Emitted when the header logo is clicked."
475
- },
476
- "complexType": {
477
- "original": "EmptyPayload",
478
- "resolved": "undefined",
479
- "references": {
480
- "EmptyPayload": {
481
- "location": "import",
482
- "path": "../../utils/types",
483
- "id": "src/utils/types.ts::EmptyPayload"
484
- }
485
- }
486
- }
487
- }, {
488
- "method": "sixSearchFieldToggle",
489
- "name": "six-header-search-field-toggle",
490
- "bubbles": true,
491
- "cancelable": true,
492
- "composed": true,
493
- "docs": {
494
- "tags": [{
495
- "name": "deprecated",
496
- "text": "Use six-header `custom` property instead"
497
- }],
498
- "text": "Emitted when search field is toggled."
499
- },
500
- "complexType": {
501
- "original": "SixHeaderSearchFieldToggle",
502
- "resolved": "SixHeaderSearchFieldToggle",
503
- "references": {
504
- "SixHeaderSearchFieldToggle": {
505
- "location": "local",
506
- "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-header/six-header.tsx",
507
- "id": "src/components/six-header/six-header.tsx::SixHeaderSearchFieldToggle"
508
- }
509
- }
510
- }
511
- }];
512
- }
513
- static get methods() {
514
- return {
515
- "setSearchOpenState": {
516
- "complexType": {
517
- "signature": "(openState: boolean) => Promise<void>",
518
- "parameters": [{
519
- "name": "openState",
520
- "type": "boolean",
521
- "docs": ""
522
- }],
523
- "references": {
524
- "Promise": {
525
- "location": "global",
526
- "id": "global::Promise"
527
- }
528
- },
529
- "return": "Promise<void>"
530
- },
531
- "docs": {
532
- "text": "Sets open state for search",
533
- "tags": [{
534
- "name": "deprecated",
535
- "text": "Use six-header `custom` property instead"
536
- }]
537
- }
538
- },
539
- "getIsSearchOpen": {
540
- "complexType": {
541
- "signature": "() => Promise<boolean>",
542
- "parameters": [],
543
- "references": {
544
- "Promise": {
545
- "location": "global",
546
- "id": "global::Promise"
547
- }
548
- },
549
- "return": "Promise<boolean>"
550
- },
551
- "docs": {
552
- "text": "Get open state for search",
553
- "tags": [{
554
- "name": "deprecated",
555
- "text": "Use six-header `custom` property instead"
556
- }]
557
- }
558
82
  }
559
83
  };
560
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"six-header.js","sourceRoot":"","sources":["../../../src/components/six-header/six-header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAmBpD,IAAK,OAKJ;AALD,WAAK,OAAO;IACV,qCAAI,CAAA;IACJ,yCAAM,CAAA;IACN,mDAAW,CAAA;IACX,2CAAO,CAAA;AACT,CAAC,EALI,OAAO,KAAP,OAAO,QAKX;AAED,IAAK,IAMJ;AAND,WAAK,IAAI;IACP,+BAAuB,CAAA;IACvB,uCAA+B,CAAA;IAC/B,yCAAiC,CAAA;IACjC,gCAAwB,CAAA;IACxB,qBAAa,CAAA;AACf,CAAC,EANI,IAAI,KAAJ,IAAI,QAMR;AAED;;;;;;;;;GASG;AAOH,MAAM,OAAO,SAAS;;QAuIZ,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;QAqCtC,cAAS,GAAG,CAAC,EAA6B,EAAE,EAAE;YACpD,IAAI,EAAE,IAAI,IAAI;gBAA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AE,IAAI,CAAC,YAAY;iBAC7D;gBAED,6DAAM,IAAI,EAAE,IAAI,CAAC,MAAM,GAAI,CACvB,CACD,CACR,CAAC;QAEF,MAAM,WAAW,GAAG,CAClB,EAAC,IAAI;YACH,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY;gBACrC,aAAa;gBACb,IAAI;gBACL,wEAAiB,KAAK,EAAC,yBAAyB,GAAG;gBACnD;oBACE,8DAAQ,CACQ;gBACjB,MAAM;gBACN,aAAa;gBACb,WAAW;gBACX,OAAO,CACD;YAET,4DACE,KAAK,EAAE;oBACL,0BAA0B,EAAE,IAAI;oBAChC,mCAAmC,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;oBAC3E,yCAAyC,EAAE,IAAI,CAAC,YAAY;iBAC7D;gBAED,6DAAM,IAAI,EAAE,IAAI,CAAC,MAAM,GAAI,CACvB,CACD,CACR,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the notification component in the header.\n * @slot app-switcher-menu - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the application switcher menu in the header.\n * @slot profile-menu - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the profile menu in the header.\n * @slot profile-avatar - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the avator in the header.\n */\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /**\n * Set `custom` to `true` for complete control over the header content. When enabled, all other properties and slots\n * are ignored.\n *\n * Use `six-header-item`, `six-header-dropdown-item` and `six-header-menu-button` to structure the content.\n *\n * @since 4.2.7\n * @status beta\n */\n @Prop() custom = false;\n\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /**\n * Set whether the hamburger menu should be visible or not\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Prop() hideHamburgerMenu = false;\n\n /**\n * Set the hamburger menu icon to open or closed state\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Prop() openHamburgerMenu = false;\n\n /**\n * Set the header search to be in an open or closed state.\n *\n * If `custom` is `true`, focuses the first `six-input` found in the search slot.\n */\n @Prop() openSearch = false;\n\n /**\n * Set whether the logo should be clickable\n *\n * @deprecated Use six-header `custom` property with `six-logo` instead\n */\n @Prop() clickableLogo = false;\n\n /**\n * The displayed logo. Either six or bme. Defaults to six.\n *\n * @deprecated Use six-header `custom` property with `six-logo` instead\n */\n @Prop() logo: 'six' | 'bme' = 'six';\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n if (this.custom) {\n if (this.openSearch) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n } else {\n this.computeSearchOpenState();\n }\n }\n\n /**\n * Sets open state for search\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /**\n * Get open state for search\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /**\n * Emitted when the name of the selected app is clicked.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead\n */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when a menu item is in the app switcher menu is selected.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead\n */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /**\n * Emitted when a menu item is in the profile menu is selected.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-avatar` instead\n */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /**\n * Emitted when the hamburger menu is clicked.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the header logo is clicked.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-logo-clicked' }) logoClick!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when search field is toggled.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n private mutationObserver?: MutationObserver;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.logoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.updateSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n connectedCallback() {\n const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);\n if (appSwitcherSlot) {\n this.mutationObserver = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {\n this.updateSelectedApp();\n }\n });\n this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });\n }\n }\n\n private updateSelectedApp() {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find(\n (item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false'\n );\n this.selectedApp = firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n this.mutationObserver?.disconnect();\n }\n\n render() {\n const hamburgerMenu = !this.hideHamburgerMenu && (\n <six-header-item>\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </six-header-item>\n );\n\n const search = this.hasSlot(Slot.Search) && (\n <six-header-item active={this.isSectionSelected(Section.Search)}>\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </six-header-item>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <six-header-item>\n <slot name={Slot.Notifications} />\n </six-header-item>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <six-header-item active={this.isSectionSelected(Section.AppSwitcher)}>\n <six-dropdown distance={14} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <div slot=\"trigger\" class=\"six-header__app-switcher-dropdown\">\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-icon-button name=\"apps\" />\n </div>\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </six-header-item>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <six-header-item active={this.isSectionSelected(Section.Profile)}>\n <six-dropdown distance={18} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </six-header-item>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <six-header-item>\n <slot name=\"logo\" />\n </six-header-item>\n ) : (\n <six-header-item class={{ 'six-header__logo--clickable': this.clickableLogo }} ref={this.setupLogo}>\n <six-logo brand={this.logo} />\n </six-header-item>\n );\n\n const customView = (\n <Host>\n <header part=\"header\" class=\"six-header\">\n <slot />\n </header>\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.openSearch,\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n\n const defaultView = (\n <Host>\n <header part=\"header\" class=\"six-header\">\n {hamburgerMenu}\n {logo}\n <six-header-item class=\"six-header__placeholder\" />\n <six-header-item>\n <slot />\n </six-header-item>\n {search}\n {notifications}\n {appSwitcher}\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n\n return this.custom ? customView : defaultView;\n }\n}\n"]}
1
+ {"version":3,"file":"six-header.js","sourceRoot":"","sources":["../../../src/components/six-header/six-header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AAOH,MAAM,OAAO,SAAS;;QAwBZ,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;4BAtBvB,KAAK;0BAOP,KAAK;;IAG1B,sBAAsB;QACpB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,oEAAoE;YACpE,UAAU,CACR,KAAK,IAAI,EAAE,mBAAC,OAAA,MAAA,MAAA,MAAA,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,0CAAE,UAAU,0CAAE,aAAa,CAAC,WAAW,CAAC,0CAAE,QAAQ,EAAE,CAAA,EAAA,EAClG,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;IAMD,oBAAoB;QAClB,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;IAClC,CAAC;IAED,MAAM;QACJ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACvC,OAAO,CACL,EAAC,IAAI;YACH,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY;gBACtC,8DAAQ,CACD;YACT,4DACE,KAAK,EAAE;oBACL,0BAA0B,EAAE,IAAI;oBAChC,mCAAmC,EAAE,IAAI,CAAC,UAAU;oBACpD,yCAAyC,EAAE,IAAI,CAAC,YAAY;iBAC7D;gBAED,6DAAM,IAAI,EAAE,cAAc,GAAI,CAC1B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n * @slot search-field - Used to define the search field component in the header.\n */\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /**\n * Set the header search input to be in an open or closed state.\n *\n * Focuses the first `six-input` found in the search slot.\n */\n @Prop() openSearch = false;\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n if (this.openSearch) {\n // deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(\n async () => getSlot(this.host, 'search-field')?.shadowRoot?.querySelector('six-input')?.setFocus(),\n 50\n );\n }\n }\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n render() {\n console.log('render', this.openSearch);\n return (\n <Host>\n <header part=\"header\" class=\"six-header\">\n <slot />\n </header>\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.openSearch,\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={'search-field'} />\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -6,10 +6,8 @@
6
6
  padding: 0 var(--six-spacing-large);
7
7
  border-bottom: solid var(--six-header-border-height) transparent;
8
8
  border-top: solid var(--six-header-border-height) transparent;
9
- transition: var(--six-transition-fast) border-color;
10
9
  }
11
10
 
12
11
  :host(.six-header-dropdown-item--active) {
13
12
  border-bottom: solid var(--six-header-border-height) var(--six-header-border-color-open);
14
- transition: var(--six-transition-fast) border-color;
15
13
  }