@webquark/core 1.1.0-dev.5 → 1.1.0-dev.7

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 (315) hide show
  1. package/README.md +22 -3
  2. package/dist/cjs/{action.props-CtwTiyf6.js → action.props-B87W5tRu.js} +1 -1
  3. package/dist/cjs/{field-CiEtk37y.js → field-CbUc_AWx.js} +2 -2
  4. package/dist/cjs/{index-BLlc_shC.js → index-D_tObBJa.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/q-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/q-avatar.cjs.entry.js +1 -1
  9. package/dist/cjs/q-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/q-button_2.cjs.entry.js +4 -4
  11. package/dist/cjs/q-card.cjs.entry.js +3 -3
  12. package/dist/cjs/q-carousel.cjs.entry.js +1 -1
  13. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  15. package/dist/cjs/q-data-table.cjs.entry.js +1 -1
  16. package/dist/cjs/q-dialog.cjs.entry.js +2 -2
  17. package/dist/cjs/q-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/q-form.cjs.entry.js +4 -4
  19. package/dist/cjs/q-grid.cjs.entry.js +2 -2
  20. package/dist/cjs/q-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/q-inline.cjs.entry.js +2 -2
  22. package/dist/cjs/q-input_2.cjs.entry.js +3 -3
  23. package/dist/cjs/q-link.cjs.entry.js +2 -2
  24. package/dist/cjs/q-map.cjs.entry.js +23 -1
  25. package/dist/cjs/q-media.cjs.entry.js +1 -1
  26. package/dist/cjs/q-navbar.cjs.entry.js +223 -5
  27. package/dist/cjs/q-pagination.cjs.entry.js +1 -1
  28. package/dist/cjs/q-panel.cjs.entry.js +2 -2
  29. package/dist/cjs/q-quantity-selector.cjs.entry.js +2 -2
  30. package/dist/cjs/q-radio-group.cjs.entry.js +3 -3
  31. package/dist/cjs/q-reel.cjs.entry.js +1 -1
  32. package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
  33. package/dist/cjs/q-section.cjs.entry.js +1 -1
  34. package/dist/cjs/q-sidepanel.cjs.entry.js +2 -2
  35. package/dist/cjs/q-stack.cjs.entry.js +2 -2
  36. package/dist/cjs/q-step-diagram-item.cjs.entry.js +1 -1
  37. package/dist/cjs/q-step-diagram.cjs.entry.js +1 -1
  38. package/dist/cjs/q-syntax-box.cjs.entry.js +2 -2
  39. package/dist/cjs/q-tabs.cjs.entry.js +2 -2
  40. package/dist/cjs/q-textarea.cjs.entry.js +3 -3
  41. package/dist/cjs/q-thumbnail.cjs.entry.js +1 -1
  42. package/dist/cjs/q-toast.cjs.entry.js +1 -1
  43. package/dist/cjs/q-toggle.cjs.entry.js +3 -3
  44. package/dist/cjs/q-toolbar.cjs.entry.js +3 -3
  45. package/dist/cjs/tokens-DDfS79n9.js +948 -0
  46. package/dist/cjs/webquark.cjs.js +2 -2
  47. package/dist/collection/components/actions/button/button.css +6 -6
  48. package/dist/collection/components/content/card/card.css +1 -1
  49. package/dist/collection/components/data-display/map/internals/marker-controller.js +22 -0
  50. package/dist/collection/components/data-display/map/test/map.cmp.test.js +26 -0
  51. package/dist/collection/components/data-display/syntax-box/syntax-box.css +5 -5
  52. package/dist/collection/components/inputs/dropdown/dropdown.css +11 -11
  53. package/dist/collection/components/inputs/form/form.css +5 -5
  54. package/dist/collection/components/inputs/form/form.js +1 -1
  55. package/dist/collection/components/inputs/input/input.css +10 -10
  56. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +6 -6
  57. package/dist/collection/components/inputs/radio-group/radio-group.css +10 -10
  58. package/dist/collection/components/inputs/textarea/textarea.css +10 -10
  59. package/dist/collection/components/inputs/toggle/toggle.css +10 -10
  60. package/dist/collection/components/layout/navbar/navbar.css +129 -10
  61. package/dist/collection/components/layout/navbar/navbar.js +280 -4
  62. package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +317 -1
  63. package/dist/collection/components/layout/sidepanel/sidepanel.css +3 -3
  64. package/dist/collection/components/layout/tabs/tabs.css +9 -9
  65. package/dist/collection/components/layout/toolbar/toolbar.css +6 -6
  66. package/dist/collection/components/overlays/dialog/dialog.css +1 -1
  67. package/dist/collection/components/overlays/tooltip/tooltip.css +1 -1
  68. package/dist/collection/components/shared/field.js +1 -1
  69. package/dist/collection/native-content.css +24 -0
  70. package/dist/collection/playground/components/playground-header/playground-header.js +1 -1
  71. package/dist/collection/playground/playground.bundled.js +152 -1
  72. package/dist/collection/theme/test/presets.cmp.test.js +129 -0
  73. package/dist/collection/theme/tokens.js +127 -4
  74. package/dist/components/index.js +1 -1
  75. package/dist/components/{p-Cx1vCuMp.js → p-2_cpBb8_.js} +1 -1
  76. package/dist/components/{p-BxFGkrUe.js → p-BeFSyZjp.js} +1 -1
  77. package/dist/components/p-BfZVatS6.js +1 -0
  78. package/dist/components/p-COMoSatC.js +1 -0
  79. package/dist/components/p-Cn_ChUpc.js +1 -0
  80. package/dist/components/{p-NEolaUak.js → p-CtUn83Rs.js} +1 -1
  81. package/dist/components/{p-CK7avZdv.js → p-CuJIyOwp.js} +1 -1
  82. package/dist/components/p-CyPFM3XV.js +1 -0
  83. package/dist/components/p-DwnH6_NQ.js +1 -0
  84. package/dist/components/{p-D0Q2vrt5.js → p-_X1v1o3K.js} +1 -1
  85. package/dist/components/q-accordion.js +1 -1
  86. package/dist/components/q-alert.js +1 -1
  87. package/dist/components/q-avatar.js +1 -1
  88. package/dist/components/q-banner.js +1 -1
  89. package/dist/components/q-button.js +1 -1
  90. package/dist/components/q-card.js +1 -1
  91. package/dist/components/q-carousel.js +1 -1
  92. package/dist/components/q-chip.js +1 -1
  93. package/dist/components/q-conversation-bubble.js +1 -1
  94. package/dist/components/q-data-table.js +1 -1
  95. package/dist/components/q-dialog.js +1 -1
  96. package/dist/components/q-dropdown.js +1 -1
  97. package/dist/components/q-form.js +1 -1
  98. package/dist/components/q-grid.js +1 -1
  99. package/dist/components/q-icon.js +1 -1
  100. package/dist/components/q-inline.js +1 -1
  101. package/dist/components/q-input.js +1 -1
  102. package/dist/components/q-link.js +1 -1
  103. package/dist/components/q-map.js +1 -1
  104. package/dist/components/q-media.js +1 -1
  105. package/dist/components/q-navbar.js +1 -1
  106. package/dist/components/q-pagination.js +1 -1
  107. package/dist/components/q-panel.js +1 -1
  108. package/dist/components/q-progress.js +1 -1
  109. package/dist/components/q-quantity-selector.js +1 -1
  110. package/dist/components/q-radio-group.js +1 -1
  111. package/dist/components/q-reel.js +1 -1
  112. package/dist/components/q-scrollable.js +1 -1
  113. package/dist/components/q-section.js +1 -1
  114. package/dist/components/q-sidepanel.js +2 -2
  115. package/dist/components/q-stack.js +1 -1
  116. package/dist/components/q-step-diagram-item.js +1 -1
  117. package/dist/components/q-step-diagram.js +1 -1
  118. package/dist/components/q-syntax-box.js +2 -2
  119. package/dist/components/q-tabs.js +1 -1
  120. package/dist/components/q-textarea.js +1 -1
  121. package/dist/components/q-thumbnail.js +1 -1
  122. package/dist/components/q-toast.js +1 -1
  123. package/dist/components/q-toggle.js +1 -1
  124. package/dist/components/q-toolbar.js +1 -1
  125. package/dist/components/q-tooltip.js +1 -1
  126. package/dist/esm/{action.props-GP1ameE3.js → action.props-BypnAgOy.js} +1 -1
  127. package/dist/esm/{field-DkpyvZiX.js → field-dFy4PXKT.js} +2 -2
  128. package/dist/esm/{index-DbGG9Q40.js → index-tSny_c7b.js} +1 -1
  129. package/dist/esm/loader.js +3 -3
  130. package/dist/esm/q-accordion.entry.js +1 -1
  131. package/dist/esm/q-alert.entry.js +1 -1
  132. package/dist/esm/q-avatar.entry.js +1 -1
  133. package/dist/esm/q-banner.entry.js +1 -1
  134. package/dist/esm/q-button_2.entry.js +4 -4
  135. package/dist/esm/q-card.entry.js +3 -3
  136. package/dist/esm/q-carousel.entry.js +1 -1
  137. package/dist/esm/q-chip.entry.js +2 -2
  138. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  139. package/dist/esm/q-data-table.entry.js +1 -1
  140. package/dist/esm/q-dialog.entry.js +2 -2
  141. package/dist/esm/q-dropdown.entry.js +3 -3
  142. package/dist/esm/q-form.entry.js +4 -4
  143. package/dist/esm/q-grid.entry.js +2 -2
  144. package/dist/esm/q-icon.entry.js +1 -1
  145. package/dist/esm/q-inline.entry.js +2 -2
  146. package/dist/esm/q-input_2.entry.js +3 -3
  147. package/dist/esm/q-link.entry.js +2 -2
  148. package/dist/esm/q-map.entry.js +23 -1
  149. package/dist/esm/q-media.entry.js +1 -1
  150. package/dist/esm/q-navbar.entry.js +223 -5
  151. package/dist/esm/q-pagination.entry.js +1 -1
  152. package/dist/esm/q-panel.entry.js +2 -2
  153. package/dist/esm/q-quantity-selector.entry.js +2 -2
  154. package/dist/esm/q-radio-group.entry.js +3 -3
  155. package/dist/esm/q-reel.entry.js +1 -1
  156. package/dist/esm/q-scrollable.entry.js +1 -1
  157. package/dist/esm/q-section.entry.js +1 -1
  158. package/dist/esm/q-sidepanel.entry.js +2 -2
  159. package/dist/esm/q-stack.entry.js +2 -2
  160. package/dist/esm/q-step-diagram-item.entry.js +1 -1
  161. package/dist/esm/q-step-diagram.entry.js +1 -1
  162. package/dist/esm/q-syntax-box.entry.js +2 -2
  163. package/dist/esm/q-tabs.entry.js +2 -2
  164. package/dist/esm/q-textarea.entry.js +3 -3
  165. package/dist/esm/q-thumbnail.entry.js +1 -1
  166. package/dist/esm/q-toast.entry.js +1 -1
  167. package/dist/esm/q-toggle.entry.js +3 -3
  168. package/dist/esm/q-toolbar.entry.js +3 -3
  169. package/dist/esm/tokens-CyPFM3XV.js +944 -0
  170. package/dist/esm/webquark.js +3 -3
  171. package/dist/{webquark/p-eb71e335.entry.js → playground/build/p-04799ed0.entry.js} +1 -1
  172. package/dist/playground/build/p-0610d5b2.entry.js +1 -0
  173. package/dist/playground/build/p-151a555e.entry.js +1 -0
  174. package/dist/playground/build/{p-9418caa0.entry.js → p-160cb4e4.entry.js} +1 -1
  175. package/dist/playground/build/p-17011e71.entry.js +1 -0
  176. package/dist/playground/build/{p-ed327679.entry.js → p-1cf51c80.entry.js} +1 -1
  177. package/dist/playground/build/{p-8bdababd.entry.js → p-25c3b776.entry.js} +1 -1
  178. package/dist/playground/build/{p-f911c90f.entry.js → p-362c5608.entry.js} +1 -1
  179. package/dist/playground/build/p-3d674223.entry.js +1 -0
  180. package/dist/playground/build/{p-8115ec23.entry.js → p-4fff116c.entry.js} +1 -1
  181. package/dist/playground/build/p-5453eac7.entry.js +1 -0
  182. package/dist/playground/build/{p-c4fd89b8.entry.js → p-5eeb922e.entry.js} +1 -1
  183. package/dist/{webquark/p-5f6860f2.entry.js → playground/build/p-675d0d03.entry.js} +2 -2
  184. package/dist/playground/build/{p-c1f3dca6.entry.js → p-70c4f92f.entry.js} +1 -1
  185. package/dist/playground/build/p-72dc1231.entry.js +1 -0
  186. package/dist/playground/build/{p-408bf48a.entry.js → p-736b1c8c.entry.js} +1 -1
  187. package/dist/playground/build/{p-737ca99e.entry.js → p-781d3459.entry.js} +1 -1
  188. package/dist/playground/build/p-81f64d6f.entry.js +1 -0
  189. package/dist/playground/build/{p-742e39f1.entry.js → p-82810ead.entry.js} +1 -1
  190. package/dist/playground/build/{p-b465aebd.entry.js → p-9227780b.entry.js} +1 -1
  191. package/dist/playground/build/{p-ecbc0fee.entry.js → p-964d27e0.entry.js} +1 -1
  192. package/dist/playground/build/p-96922229.entry.js +1 -0
  193. package/dist/playground/build/{p-0d98e500.entry.js → p-9b4271ea.entry.js} +1 -1
  194. package/dist/playground/build/p-BLvl8YLq.js +1 -0
  195. package/dist/playground/build/p-CGcC-mvi.js +1 -0
  196. package/dist/playground/build/p-CyPFM3XV.js +1 -0
  197. package/dist/playground/build/{p-de8813be.entry.js → p-ae4e5ec4.entry.js} +1 -1
  198. package/dist/{webquark/p-d4a915e5.entry.js → playground/build/p-b08d0ed8.entry.js} +1 -1
  199. package/dist/{webquark/p-abf54361.entry.js → playground/build/p-b4dfadea.entry.js} +1 -1
  200. package/dist/playground/build/p-b7ac65c6.entry.js +1 -0
  201. package/dist/playground/build/{p-6b63922b.entry.js → p-b9e83fa3.entry.js} +1 -1
  202. package/dist/playground/build/p-bba3c7b4.entry.js +1 -0
  203. package/dist/{webquark/p-d7d436c5.entry.js → playground/build/p-bf47c46a.entry.js} +2 -2
  204. package/dist/playground/build/{p-0aea8464.entry.js → p-c448b4ce.entry.js} +1 -1
  205. package/dist/{webquark/p-989bdc1a.entry.js → playground/build/p-ca240b8b.entry.js} +1 -1
  206. package/dist/playground/build/p-cb5ebd01.entry.js +1 -0
  207. package/dist/playground/build/{p-97dae970.entry.js → p-d0c55860.entry.js} +1 -1
  208. package/dist/playground/build/{p-96ef2b54.entry.js → p-e1c8a9aa.entry.js} +1 -1
  209. package/dist/playground/build/{p-15502232.entry.js → p-e6603d17.entry.js} +1 -1
  210. package/dist/playground/build/p-e762a4b7.entry.js +1 -0
  211. package/dist/playground/build/{p-6b619655.entry.js → p-fb76473e.entry.js} +1 -1
  212. package/dist/{webquark/p-ff1e2363.entry.js → playground/build/p-fed7219c.entry.js} +1 -1
  213. package/dist/playground/build/p-tSny_c7b.js +3 -0
  214. package/dist/playground/build/webquark.css +1 -1
  215. package/dist/playground/build/webquark.esm.js +1 -1
  216. package/dist/playground/native-content.css +24 -0
  217. package/dist/playground/playground/specs/q-navbar.sandbox.json +8 -0
  218. package/dist/playground/playground.js +152 -1
  219. package/dist/playground/presets.html +47 -0
  220. package/dist/types/components/data-display/map/internals/marker-controller.d.ts +2 -0
  221. package/dist/types/components/layout/navbar/navbar.d.ts +27 -1
  222. package/dist/types/components/layout/navbar/navbar.types.d.ts +2 -0
  223. package/dist/types/components.d.ts +24 -2
  224. package/dist/types/index.d.ts +2 -2
  225. package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
  226. package/dist/types/theme/tokens.d.ts +78 -0
  227. package/dist/webquark/native-content.css +24 -0
  228. package/dist/{playground/build/p-eb71e335.entry.js → webquark/p-04799ed0.entry.js} +1 -1
  229. package/dist/webquark/p-0610d5b2.entry.js +1 -0
  230. package/dist/webquark/p-151a555e.entry.js +1 -0
  231. package/dist/webquark/{p-9418caa0.entry.js → p-160cb4e4.entry.js} +1 -1
  232. package/dist/webquark/p-17011e71.entry.js +1 -0
  233. package/dist/webquark/{p-ed327679.entry.js → p-1cf51c80.entry.js} +1 -1
  234. package/dist/webquark/{p-8bdababd.entry.js → p-25c3b776.entry.js} +1 -1
  235. package/dist/webquark/{p-f911c90f.entry.js → p-362c5608.entry.js} +1 -1
  236. package/dist/webquark/p-3d674223.entry.js +1 -0
  237. package/dist/webquark/{p-8115ec23.entry.js → p-4fff116c.entry.js} +1 -1
  238. package/dist/webquark/p-5453eac7.entry.js +1 -0
  239. package/dist/webquark/{p-c4fd89b8.entry.js → p-5eeb922e.entry.js} +1 -1
  240. package/dist/{playground/build/p-5f6860f2.entry.js → webquark/p-675d0d03.entry.js} +2 -2
  241. package/dist/webquark/{p-c1f3dca6.entry.js → p-70c4f92f.entry.js} +1 -1
  242. package/dist/webquark/p-72dc1231.entry.js +1 -0
  243. package/dist/webquark/{p-408bf48a.entry.js → p-736b1c8c.entry.js} +1 -1
  244. package/dist/webquark/{p-737ca99e.entry.js → p-781d3459.entry.js} +1 -1
  245. package/dist/webquark/p-81f64d6f.entry.js +1 -0
  246. package/dist/webquark/{p-742e39f1.entry.js → p-82810ead.entry.js} +1 -1
  247. package/dist/webquark/{p-b465aebd.entry.js → p-9227780b.entry.js} +1 -1
  248. package/dist/webquark/{p-ecbc0fee.entry.js → p-964d27e0.entry.js} +1 -1
  249. package/dist/webquark/p-96922229.entry.js +1 -0
  250. package/dist/webquark/{p-0d98e500.entry.js → p-9b4271ea.entry.js} +1 -1
  251. package/dist/webquark/p-BLvl8YLq.js +1 -0
  252. package/dist/webquark/p-CGcC-mvi.js +1 -0
  253. package/dist/webquark/p-CyPFM3XV.js +1 -0
  254. package/dist/webquark/{p-de8813be.entry.js → p-ae4e5ec4.entry.js} +1 -1
  255. package/dist/{playground/build/p-d4a915e5.entry.js → webquark/p-b08d0ed8.entry.js} +1 -1
  256. package/dist/{playground/build/p-abf54361.entry.js → webquark/p-b4dfadea.entry.js} +1 -1
  257. package/dist/webquark/p-b7ac65c6.entry.js +1 -0
  258. package/dist/webquark/{p-6b63922b.entry.js → p-b9e83fa3.entry.js} +1 -1
  259. package/dist/webquark/p-bba3c7b4.entry.js +1 -0
  260. package/dist/{playground/build/p-d7d436c5.entry.js → webquark/p-bf47c46a.entry.js} +2 -2
  261. package/dist/webquark/{p-0aea8464.entry.js → p-c448b4ce.entry.js} +1 -1
  262. package/dist/{playground/build/p-989bdc1a.entry.js → webquark/p-ca240b8b.entry.js} +1 -1
  263. package/dist/webquark/p-cb5ebd01.entry.js +1 -0
  264. package/dist/webquark/{p-97dae970.entry.js → p-d0c55860.entry.js} +1 -1
  265. package/dist/webquark/{p-96ef2b54.entry.js → p-e1c8a9aa.entry.js} +1 -1
  266. package/dist/webquark/{p-15502232.entry.js → p-e6603d17.entry.js} +1 -1
  267. package/dist/webquark/p-e762a4b7.entry.js +1 -0
  268. package/dist/webquark/{p-6b619655.entry.js → p-fb76473e.entry.js} +1 -1
  269. package/dist/{playground/build/p-ff1e2363.entry.js → webquark/p-fed7219c.entry.js} +1 -1
  270. package/dist/webquark/p-tSny_c7b.js +3 -0
  271. package/dist/webquark/webquark.css +1 -1
  272. package/dist/webquark/webquark.esm.js +1 -1
  273. package/package.json +2 -1
  274. package/scripts/wq-switch/README.md +47 -11
  275. package/scripts/wq-switch/dist/index.js +56 -20
  276. package/scripts/wq-switch/dist/setup.js +32 -16
  277. package/dist/cjs/tokens-DGECOqpA.js +0 -42
  278. package/dist/components/p-0PieXMX9.js +0 -1
  279. package/dist/components/p-BOYjkCNa.js +0 -1
  280. package/dist/components/p-Bw4TVbfm.js +0 -1
  281. package/dist/components/p-GU98U1DJ.js +0 -1
  282. package/dist/components/p-f95uguY1.js +0 -1
  283. package/dist/esm/tokens-f95uguY1.js +0 -38
  284. package/dist/playground/build/p-139fec38.entry.js +0 -1
  285. package/dist/playground/build/p-17340abf.entry.js +0 -1
  286. package/dist/playground/build/p-303dcac8.entry.js +0 -1
  287. package/dist/playground/build/p-47253466.entry.js +0 -1
  288. package/dist/playground/build/p-71e3d582.entry.js +0 -1
  289. package/dist/playground/build/p-8ad43d7f.entry.js +0 -1
  290. package/dist/playground/build/p-BqvCR2U8.js +0 -1
  291. package/dist/playground/build/p-DbGG9Q40.js +0 -3
  292. package/dist/playground/build/p-JgeOdXyP.js +0 -1
  293. package/dist/playground/build/p-a4b36120.entry.js +0 -1
  294. package/dist/playground/build/p-aed4b219.entry.js +0 -1
  295. package/dist/playground/build/p-b3a07d94.entry.js +0 -1
  296. package/dist/playground/build/p-c4899c2b.entry.js +0 -1
  297. package/dist/playground/build/p-cf8f7f2a.entry.js +0 -1
  298. package/dist/playground/build/p-f95uguY1.js +0 -1
  299. package/dist/playground/build/p-fdd85ce4.entry.js +0 -1
  300. package/dist/webquark/p-139fec38.entry.js +0 -1
  301. package/dist/webquark/p-17340abf.entry.js +0 -1
  302. package/dist/webquark/p-303dcac8.entry.js +0 -1
  303. package/dist/webquark/p-47253466.entry.js +0 -1
  304. package/dist/webquark/p-71e3d582.entry.js +0 -1
  305. package/dist/webquark/p-8ad43d7f.entry.js +0 -1
  306. package/dist/webquark/p-BqvCR2U8.js +0 -1
  307. package/dist/webquark/p-DbGG9Q40.js +0 -3
  308. package/dist/webquark/p-JgeOdXyP.js +0 -1
  309. package/dist/webquark/p-a4b36120.entry.js +0 -1
  310. package/dist/webquark/p-aed4b219.entry.js +0 -1
  311. package/dist/webquark/p-b3a07d94.entry.js +0 -1
  312. package/dist/webquark/p-c4899c2b.entry.js +0 -1
  313. package/dist/webquark/p-cf8f7f2a.entry.js +0 -1
  314. package/dist/webquark/p-f95uguY1.js +0 -1
  315. package/dist/webquark/p-fdd85ce4.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- :host {
1
+ :host {
2
2
  display: block;
3
3
  width: 100%;
4
4
  box-sizing: border-box;
@@ -6,15 +6,15 @@
6
6
  }
7
7
 
8
8
  :host([edge='top']) {
9
- --q-navbar-edge-padding: max(0px, env(safe-area-inset-top, 0px)) 24px 0;
10
- --q-navbar-edge-compact-padding: max(0px, env(safe-area-inset-top, 0px)) 16px 0;
11
- --q-navbar-edge-mobile-padding: max(0px, env(safe-area-inset-top, 0px)) 16px 0;
9
+ --q-navbar-edge-padding: max(0px, env(safe-area-inset-top, 0px)) var(--q-bar-edge-padding, 24px) 0;
10
+ --q-navbar-edge-compact-padding: max(0px, env(safe-area-inset-top, 0px)) var(--q-bar-edge-compact-padding, 16px) 0;
11
+ --q-navbar-edge-mobile-padding: max(0px, env(safe-area-inset-top, 0px)) var(--q-bar-edge-compact-padding, 16px) 0;
12
12
  }
13
13
 
14
14
  :host([edge='bottom']) {
15
- --q-navbar-edge-padding: 0 24px max(0px, env(safe-area-inset-bottom, 0px));
16
- --q-navbar-edge-compact-padding: 0 16px max(0px, env(safe-area-inset-bottom, 0px));
17
- --q-navbar-edge-mobile-padding: 0 16px max(0px, env(safe-area-inset-bottom, 0px));
15
+ --q-navbar-edge-padding: 0 var(--q-bar-edge-padding, 24px) max(0px, env(safe-area-inset-bottom, 0px));
16
+ --q-navbar-edge-compact-padding: 0 var(--q-bar-edge-compact-padding, 16px) max(0px, env(safe-area-inset-bottom, 0px));
17
+ --q-navbar-edge-mobile-padding: 0 var(--q-bar-edge-compact-padding, 16px) max(0px, env(safe-area-inset-bottom, 0px));
18
18
  }
19
19
 
20
20
  :host([edge='left']),
@@ -24,12 +24,12 @@
24
24
  }
25
25
 
26
26
  :host([edge='left']) {
27
- --q-navbar-edge-padding: 16px 16px 16px max(16px, env(safe-area-inset-left, 0px));
27
+ --q-navbar-edge-padding: var(--q-bar-edge-compact-padding, 16px) var(--q-bar-edge-compact-padding, 16px) var(--q-bar-edge-compact-padding, 16px) max(var(--q-bar-edge-compact-padding, 16px), env(safe-area-inset-left, 0px));
28
28
  --q-navbar-edge-compact-padding: 12px 12px 12px max(12px, env(safe-area-inset-left, 0px));
29
29
  }
30
30
 
31
31
  :host([edge='right']) {
32
- --q-navbar-edge-padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px;
32
+ --q-navbar-edge-padding: var(--q-bar-edge-compact-padding, 16px) max(var(--q-bar-edge-compact-padding, 16px), env(safe-area-inset-right, 0px)) var(--q-bar-edge-compact-padding, 16px) var(--q-bar-edge-compact-padding, 16px);
33
33
  --q-navbar-edge-compact-padding: 12px max(12px, env(safe-area-inset-right, 0px)) 12px 12px;
34
34
  }
35
35
 
@@ -178,7 +178,7 @@
178
178
  justify-content: center;
179
179
  width: var(--q-navbar-item-width, auto);
180
180
  gap: var(--q-navbar-item-gap, 8px);
181
- min-height: 36px;
181
+ min-height: var(--q-navbar-item-height, 36px);
182
182
  padding: var(--q-navbar-item-padding, 7px 10px);
183
183
  border: 0;
184
184
  border-radius: var(--q-navbar-item-radius, var(--q-radius-md, 7px));
@@ -463,3 +463,122 @@
463
463
  display: none;
464
464
  }
465
465
  }
466
+
467
+ /* Alignment is deliberately isolated from the legacy viewport and vertical layouts. */
468
+ @media (min-width: 720.01px) {
469
+ :host(:is([edge='top'], [edge='bottom'])[nav-align='end']) .desktop-nav {
470
+ justify-content: flex-end;
471
+ }
472
+
473
+ :host(:is([edge='top'], [edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .desktop-nav {
474
+ justify-content: center;
475
+ position: relative;
476
+ inset-inline-start: var(--q-navbar-nav-offset-inline, 0px);
477
+ }
478
+
479
+ :host(:is([edge='top'], [edge='bottom'])[nav-align='center'][nav-center-within='container']) .navbar:not(.is-collapsed) .navbar-row {
480
+ display: grid;
481
+ grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
482
+ }
483
+
484
+ :host(:is([edge='top'], [edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .brand-link {
485
+ justify-self: start;
486
+ flex-shrink: 0;
487
+ }
488
+
489
+ .is-collapsed .navbar-row {
490
+ display: flex;
491
+ flex-wrap: wrap;
492
+ justify-content: space-between;
493
+ }
494
+
495
+ .is-collapsed .desktop-nav {
496
+ order: 3;
497
+ flex: 1 0 100%;
498
+ flex-wrap: wrap;
499
+ justify-content: center;
500
+ inset-inline-start: auto;
501
+ }
502
+
503
+ :host([mobile-mode='menu']) .is-collapsed .desktop-nav,
504
+ :host([mobile-mode='menu']) .is-collapsed .desktop-actions {
505
+ display: none;
506
+ order: 3;
507
+ flex: 1 0 100%;
508
+ flex-direction: column;
509
+ align-items: stretch;
510
+ }
511
+
512
+ :host([mobile-mode='menu']) .is-collapsed.is-open .desktop-nav,
513
+ :host([mobile-mode='menu']) .is-collapsed.is-open:not(.has-mobile-actions) .desktop-actions {
514
+ display: flex;
515
+ }
516
+
517
+ :host([mobile-mode='menu']) .is-collapsed.has-mobile-nav slot[name='nav'] {
518
+ display: none;
519
+ }
520
+
521
+ :host([mobile-mode='menu']) .is-collapsed .nav-item-shell,
522
+ :host([mobile-mode='menu']) .is-collapsed .nav-item {
523
+ width: 100%;
524
+ justify-content: flex-start;
525
+ }
526
+
527
+ :host([mobile-mode='menu']) .is-collapsed .menu-button {
528
+ display: inline-flex;
529
+ flex-shrink: 0;
530
+ }
531
+
532
+ :host([mobile-mode='menu']) .is-collapsed.is-open .mobile-panel.has-content {
533
+ display: block;
534
+ padding: var(--q-navbar-mobile-panel-padding, 8px 16px 16px);
535
+ }
536
+
537
+ .is-collapsed .mobile-nav,
538
+ .is-collapsed .mobile-actions {
539
+ display: flex;
540
+ flex-direction: column;
541
+ gap: 6px;
542
+ }
543
+
544
+ :host([edge='bottom'][mobile-mode='menu']) .is-collapsed {
545
+ display: flex;
546
+ flex-direction: column-reverse;
547
+ }
548
+
549
+ :host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-nav,
550
+ :host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-actions {
551
+ order: -1;
552
+ }
553
+
554
+ /* Read intrinsic desktop dimensions on the original nodes, then restore before paint. */
555
+ :host .navbar.is-measuring .navbar-row {
556
+ display: flex;
557
+ flex-wrap: nowrap;
558
+ }
559
+
560
+ :host .navbar.is-measuring :is(.brand-link, .desktop-nav, .desktop-actions) {
561
+ display: flex;
562
+ flex: 0 0 auto;
563
+ width: max-content;
564
+ max-width: none;
565
+ flex-direction: row;
566
+ flex-wrap: nowrap;
567
+ order: 0;
568
+ align-items: center;
569
+ }
570
+
571
+ :host .navbar.is-measuring .desktop-nav {
572
+ position: relative;
573
+ inset-inline-start: var(--q-navbar-nav-offset-inline, 0px);
574
+ }
575
+
576
+ :host .navbar.is-measuring .desktop-nav slot[name='nav'] {
577
+ display: contents;
578
+ }
579
+
580
+ :host .navbar.is-measuring :is(.nav-item-shell, .nav-item) {
581
+ width: var(--q-navbar-item-width, max-content);
582
+ flex-shrink: 0;
583
+ }
584
+ }
@@ -37,6 +37,10 @@ export class QNavbar {
37
37
  compact = false;
38
38
  transparent = false;
39
39
  bordered = true;
40
+ /** Horizontal desktop navigation alignment. */
41
+ navAlign = 'start';
42
+ /** Reference box for centred horizontal desktop navigation. */
43
+ navCenterWithin = 'available';
40
44
  /** Controls whether mobile widths collapse items into a menu or keep them inline. */
41
45
  mobileMode = 'menu';
42
46
  /** Accessible label for the mobile menu toggle button. */
@@ -48,13 +52,215 @@ export class QNavbar {
48
52
  // ========================= [2] INTERNAL STATE & REFS =========================
49
53
  menuOpen = false;
50
54
  hasMobileContent = false;
55
+ collision = false;
56
+ hasMobileNav = false;
57
+ hasMobileActions = false;
51
58
  instanceId = ++navbarIds;
52
59
  primaryNavId = `q-navbar-primary-nav-${this.instanceId}`;
53
60
  mobilePanelId = `q-navbar-mobile-panel-${this.instanceId}`;
54
61
  dismissListenersActive = false;
62
+ resizeObserver;
63
+ mutationObserver;
64
+ frame = 0;
65
+ focusAfterRender;
66
+ desktopFocus;
55
67
  // ========================= [3] LIFECYCLE & WATCHERS ==========================
68
+ connectedCallback() {
69
+ if (typeof window === 'undefined')
70
+ return;
71
+ this.resizeObserver = new ResizeObserver(this.scheduleMeasure);
72
+ this.resizeObserver.observe(this.el);
73
+ this.mutationObserver = new MutationObserver(this.refreshObservedContent);
74
+ this.mutationObserver.observe(this.el, { subtree: true, childList: true, characterData: true, attributes: true });
75
+ this.el.addEventListener('load', this.scheduleMeasure, true);
76
+ window.addEventListener('resize', this.scheduleMeasure);
77
+ document.fonts?.addEventListener('loadingdone', this.scheduleMeasure);
78
+ void document.fonts?.ready.then(() => this.scheduleMeasure());
79
+ this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
80
+ this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
81
+ if (this.el.shadowRoot)
82
+ this.refreshObservedContent();
83
+ this.scheduleMeasure();
84
+ }
85
+ componentDidLoad() {
86
+ this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
87
+ this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
88
+ this.refreshObservedContent();
89
+ }
90
+ componentDidRender() {
91
+ if (this.focusAfterRender) {
92
+ const target = this.focusAfterRender;
93
+ (target !== 'navigation' && this.canReceiveFocus(target) ? target : this.firstNavigationControl()).focus();
94
+ this.focusAfterRender = undefined;
95
+ }
96
+ this.scheduleMeasure();
97
+ }
98
+ mobileModeChanged() {
99
+ if (!this.collision)
100
+ return;
101
+ const root = this.el.shadowRoot;
102
+ const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
103
+ this.setMenuOpen(false);
104
+ if (this.mobileMode === 'inline' && owned && (focused === root.querySelector('.menu-button') || inMobileSlot)) {
105
+ this.focusAfterRender = this.desktopFocus || 'navigation';
106
+ }
107
+ else if (this.mobileMode === 'menu' && focused && owned && !inBrand) {
108
+ this.desktopFocus = focused;
109
+ this.focusAfterRender = root.querySelector('.menu-button');
110
+ }
111
+ }
56
112
  disconnectedCallback() {
57
113
  this.removeMenuDismissListeners();
114
+ this.resizeObserver?.disconnect();
115
+ this.mutationObserver?.disconnect();
116
+ cancelAnimationFrame(this.frame);
117
+ this.frame = 0;
118
+ this.el.removeEventListener('load', this.scheduleMeasure, true);
119
+ this.el.shadowRoot?.removeEventListener('slotchange', this.refreshObservedContent);
120
+ this.el.shadowRoot?.removeEventListener('load', this.scheduleMeasure, true);
121
+ window.removeEventListener('resize', this.scheduleMeasure);
122
+ document.fonts?.removeEventListener('loadingdone', this.scheduleMeasure);
123
+ }
124
+ refreshObservedContent = () => {
125
+ this.handleMobileSlotChange();
126
+ this.resizeObserver?.disconnect();
127
+ this.resizeObserver?.observe(this.el);
128
+ for (const node of [...Array.from(this.el.querySelectorAll('*')), ...Array.from(this.el.shadowRoot?.querySelectorAll('img, .brand-link, .desktop-actions, .nav-item-shell') || [])]) {
129
+ this.resizeObserver?.observe(node);
130
+ }
131
+ this.scheduleMeasure();
132
+ };
133
+ scheduleMeasure = () => {
134
+ if (!this.el.isConnected || this.frame)
135
+ return;
136
+ this.frame = requestAnimationFrame(() => {
137
+ this.frame = 0;
138
+ this.measureLayout();
139
+ });
140
+ };
141
+ /** Measure the original nodes synchronously; no cloned controls or hidden-width guesses. */
142
+ measureLayout() {
143
+ const root = this.el.shadowRoot;
144
+ const bar = root?.querySelector('.navbar');
145
+ if (!bar)
146
+ return;
147
+ const enabled = window.innerWidth > 720 && this.navAlign === 'center' && (this.edge === 'top' || this.edge === 'bottom');
148
+ let next = false;
149
+ if (enabled) {
150
+ const row = root.querySelector('.navbar-row');
151
+ const nav = root.querySelector('.desktop-nav');
152
+ bar.classList.add('is-measuring');
153
+ try {
154
+ const style = getComputedStyle(row);
155
+ const available = row.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
156
+ const gap = parseFloat(style.columnGap) || 0;
157
+ const brand = this.visualWidth(root.querySelector('.brand-link'));
158
+ const actions = this.visualWidth(root.querySelector('.desktop-actions'));
159
+ const navRect = nav.getBoundingClientRect();
160
+ const bounds = this.visualBounds(nav);
161
+ // Symmetric overflow allowance keeps the actual navigation group centred.
162
+ const navigation = navRect.width + 2 * Math.max(0, navRect.left - bounds.left, bounds.right - navRect.right);
163
+ const offset = Math.abs(parseFloat(getComputedStyle(nav).insetInlineStart) || 0);
164
+ const sides = this.navCenterWithin === 'container' ? 2 * Math.max(brand, actions) : brand + actions;
165
+ const spare = available - (sides + 2 * gap + navigation + 2 * offset);
166
+ next = spare < (this.collision ? 8 : 0);
167
+ }
168
+ finally {
169
+ bar.classList.remove('is-measuring');
170
+ }
171
+ }
172
+ if (next === this.collision)
173
+ return;
174
+ const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
175
+ const toggle = root.querySelector('.menu-button');
176
+ if (next && this.mobileMode === 'menu' && owned && !inBrand) {
177
+ this.desktopFocus = focused;
178
+ // Expose the toggle before the render hides the focused desktop control.
179
+ bar.classList.add('is-collapsed');
180
+ toggle.focus();
181
+ this.focusAfterRender = toggle;
182
+ }
183
+ else if (!next && this.collision) {
184
+ this.setMenuOpen(false);
185
+ if (owned) {
186
+ const desktopControl = focused !== toggle && !inMobileSlot ? focused : this.desktopFocus;
187
+ this.focusAfterRender = window.innerWidth <= 720 && this.mobileMode === 'menu' ? toggle :
188
+ desktopControl?.isConnected ? desktopControl : 'navigation';
189
+ }
190
+ this.desktopFocus = undefined;
191
+ }
192
+ this.collision = next;
193
+ }
194
+ visualBounds(element) {
195
+ const rect = element.getBoundingClientRect();
196
+ let left = rect.left;
197
+ let right = rect.right;
198
+ const visit = (node) => {
199
+ if (getComputedStyle(node).display === 'none')
200
+ return;
201
+ const box = node.getBoundingClientRect();
202
+ if (box.width && getComputedStyle(node).visibility !== 'hidden') {
203
+ left = Math.min(left, box.left);
204
+ right = Math.max(right, box.right);
205
+ }
206
+ const children = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : Array.from(node.shadowRoot?.children || node.children);
207
+ for (const child of children)
208
+ visit(child);
209
+ };
210
+ visit(element);
211
+ return { left, right };
212
+ }
213
+ visualWidth(element) {
214
+ const bounds = this.visualBounds(element);
215
+ return bounds.right - bounds.left;
216
+ }
217
+ firstNavigationControl() {
218
+ // Search the rendered tree, including assigned slots and custom controls' open shadows.
219
+ // Resolve this after rendering so the restored desktop controls are visible.
220
+ const find = (node) => {
221
+ if (node instanceof HTMLElement && node.tabIndex >= 0 && this.canReceiveFocus(node))
222
+ return node;
223
+ const assigned = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : [];
224
+ const children = node instanceof HTMLSlotElement && assigned.length ? assigned : Array.from(node.shadowRoot?.children || node.children);
225
+ for (const child of children) {
226
+ const control = find(child);
227
+ if (control)
228
+ return control;
229
+ }
230
+ return undefined;
231
+ };
232
+ return find(this.el.shadowRoot.querySelector('.desktop-nav')) || this.el.shadowRoot.querySelector('.brand-link');
233
+ }
234
+ canReceiveFocus(element) {
235
+ if (!element.isConnected || !element.checkVisibility() || getComputedStyle(element).visibility !== 'visible')
236
+ return false;
237
+ let node = element;
238
+ while (node && node !== this.el) {
239
+ if (node instanceof HTMLElement && node.matches(':disabled, [disabled], [aria-disabled="true"], [inert], [aria-hidden="true"]'))
240
+ return false;
241
+ node = this.composedParent(node);
242
+ }
243
+ return true;
244
+ }
245
+ composedParent(node) {
246
+ return node instanceof HTMLElement && node.assignedSlot ? node.assignedSlot :
247
+ node.parentNode || (node instanceof ShadowRoot ? node.host : null);
248
+ }
249
+ focusContext() {
250
+ let focused = (this.el.shadowRoot?.activeElement || document.activeElement);
251
+ while (focused?.shadowRoot?.activeElement)
252
+ focused = focused.shadowRoot.activeElement;
253
+ let owner = focused;
254
+ let inBrand = false;
255
+ let inMobileSlot = false;
256
+ while (owner && owner !== this.el) {
257
+ if (owner instanceof HTMLElement) {
258
+ inBrand ||= owner.matches('.brand-link, [slot="brand"]');
259
+ inMobileSlot ||= owner.matches('[slot="mobile-nav"], [slot="mobile-actions"]');
260
+ }
261
+ owner = this.composedParent(owner);
262
+ }
263
+ return { focused, owned: owner === this.el, inBrand, inMobileSlot };
58
264
  }
59
265
  // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
60
266
  get parsedItems() {
@@ -95,6 +301,8 @@ export class QNavbar {
95
301
  handleDocumentKeyDown = (ev) => {
96
302
  if (ev.key === 'Escape') {
97
303
  this.handleMenuClose();
304
+ if (this.collision)
305
+ this.el.shadowRoot?.querySelector('.menu-button')?.focus();
98
306
  }
99
307
  };
100
308
  handleWindowClick = (ev) => {
@@ -121,7 +329,9 @@ export class QNavbar {
121
329
  this.handleMenuClose();
122
330
  };
123
331
  handleMobileSlotChange = () => {
124
- this.hasMobileContent = !!this.el.querySelector('[slot="mobile-nav"], [slot="mobile-actions"]');
332
+ this.hasMobileNav = !!this.el.querySelector(':scope > [slot="mobile-nav"]');
333
+ this.hasMobileActions = !!this.el.querySelector(':scope > [slot="mobile-actions"]');
334
+ this.hasMobileContent = this.hasMobileNav || this.hasMobileActions;
125
335
  };
126
336
  setIconAttribute(el, name, value) {
127
337
  if (value === undefined || value === null || value === '') {
@@ -176,14 +386,17 @@ export class QNavbar {
176
386
  const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
177
387
  const hasItems = items.length > 0;
178
388
  const ariaLabel = this.ariaLabel?.trim() || undefined;
179
- return (h("div", { key: '09ac3cccab41f89adaae0d308067ed0952ce1eb2', class: {
389
+ return (h("div", { key: '00f888b080a074ec3685ceada5d496326514e2fb', class: {
180
390
  'navbar': true,
181
391
  'is-open': this.menuOpen,
182
392
  'is-sticky': this.sticky,
183
393
  'is-compact': this.compact,
184
394
  'is-transparent': this.transparent,
185
395
  'is-bordered': this.bordered,
186
- }, part: "navbar" }, h("div", { key: '2336b4b12aed62d0ba014f7a1e34b22e6952c444', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '2516df77be1739a34ab5b67296c11db776934261', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: 'd022935aebf6d62b6c12328d125e914a7a13b843', name: "nav" })), h("div", { key: '3f18ffcdcc918e56856df176810a049a00111886', class: "desktop-actions", part: "actions" }, h("slot", { key: '8ebc6706ac2ff1006b262978e6f870a15ed1f5d5', name: "actions" })), h("button", { key: '5f0739a91b79594ff62f769498d3ee95004c55d9', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: 'ac577f3d6b9d5505dd372a23ec7e23a41030e05b' }), h("span", { key: 'fdc13b36bff79c44df72b602078a4067db31319e' }), h("span", { key: 'bcde22fc716c623002f723e99f14412a111420ad' }))), h("div", { key: '2265e94f7236b62de6e3f237dbe81cda556f3da2', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '1166d0d59ff6a28eab548c971a94ea02199da5c0', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '812bc68a6e9f7496b8d7ea36a28fd3d83d0de780', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '8ec6523d8098e013864f4dcc07cb6abccf332e34', class: "mobile-actions" }, h("slot", { key: '92a75d93272c462624711ac2491f4ae79cf33651', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
396
+ 'is-collapsed': this.collision,
397
+ 'has-mobile-nav': this.hasMobileNav,
398
+ 'has-mobile-actions': this.hasMobileActions,
399
+ }, part: "navbar" }, h("div", { key: 'f24c91309c2c5987ef1b84f79acdcb31ae521b86', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '3e26ddc18f190a92bbd9056dabe1329f15caa4f2', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '1a45ae975cff2d34f8c689901ba0f7bec4fdd3f2', name: "nav" })), h("div", { key: 'da8baabd5a3cc1ea8d8b15cfc18928c140d9d3be', class: "desktop-actions", part: "actions" }, h("slot", { key: 'd07790314852c69fd8244a6efbbb5e107beafb8f', name: "actions" })), h("button", { key: '68109104c149b3c7a8f63b15e5114ec9051b1c0a', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: 'bb6052833d3e863fb74e54d2c2c243dabe708767' }), h("span", { key: '6b2238110e06b3fa5510d4838732bcc3f5200951' }), h("span", { key: '5d5d00183cf6692d56a26f87282e9893a0a8ff97' }))), h("div", { key: 'a5b00cc3d4329ff1f8fe494e5ae018eec30eb078', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'cfddcab8350f89a39eb32a9dbd0708cd58b9ee2c', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '11206e1984ec839c509055e2e67c16055617e2af', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'aa0744fdee9e3657b594aa660223199a2a89a9ac', class: "mobile-actions" }, h("slot", { key: '3c673b53b9becd58603a1b1719c78fb06cefb92a', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
187
400
  }
188
401
  static get is() { return "q-navbar"; }
189
402
  static get encapsulation() { return "shadow"; }
@@ -453,6 +666,60 @@ export class QNavbar {
453
666
  "attribute": "bordered",
454
667
  "defaultValue": "true"
455
668
  },
669
+ "navAlign": {
670
+ "type": "string",
671
+ "mutable": false,
672
+ "complexType": {
673
+ "original": "QNavbarNavAlign",
674
+ "resolved": "\"center\" | \"end\" | \"start\"",
675
+ "references": {
676
+ "QNavbarNavAlign": {
677
+ "location": "import",
678
+ "path": "./navbar.types",
679
+ "id": "src/components/layout/navbar/navbar.types.ts::QNavbarNavAlign",
680
+ "referenceLocation": "QNavbarNavAlign"
681
+ }
682
+ }
683
+ },
684
+ "required": false,
685
+ "optional": false,
686
+ "docs": {
687
+ "tags": [],
688
+ "text": "Horizontal desktop navigation alignment."
689
+ },
690
+ "getter": false,
691
+ "setter": false,
692
+ "reflect": true,
693
+ "attribute": "nav-align",
694
+ "defaultValue": "'start'"
695
+ },
696
+ "navCenterWithin": {
697
+ "type": "string",
698
+ "mutable": false,
699
+ "complexType": {
700
+ "original": "QNavbarNavCenterWithin",
701
+ "resolved": "\"available\" | \"container\"",
702
+ "references": {
703
+ "QNavbarNavCenterWithin": {
704
+ "location": "import",
705
+ "path": "./navbar.types",
706
+ "id": "src/components/layout/navbar/navbar.types.ts::QNavbarNavCenterWithin",
707
+ "referenceLocation": "QNavbarNavCenterWithin"
708
+ }
709
+ }
710
+ },
711
+ "required": false,
712
+ "optional": false,
713
+ "docs": {
714
+ "tags": [],
715
+ "text": "Reference box for centred horizontal desktop navigation."
716
+ },
717
+ "getter": false,
718
+ "setter": false,
719
+ "reflect": true,
720
+ "attribute": "nav-center-within",
721
+ "defaultValue": "'available'"
722
+ },
456
723
  "mobileMode": {
457
724
  "type": "string",
458
725
  "mutable": false,
@@ -525,7 +792,10 @@ export class QNavbar {
525
792
  static get states() {
526
793
  return {
527
794
  "menuOpen": {},
528
- "hasMobileContent": {}
795
+ "hasMobileContent": {},
796
+ "collision": {},
797
+ "hasMobileNav": {},
798
+ "hasMobileActions": {}
529
799
  };
530
800
  }
531
801
  static get events() {
@@ -569,4 +839,10 @@ export class QNavbar {
569
839
  }];
570
840
  }
571
841
  static get elementRef() { return "el"; }
842
+ static get watchers() {
843
+ return [{
844
+ "propName": "mobileMode",
845
+ "methodName": "mobileModeChanged"
846
+ }];
847
+ }
572
848
  }