@webquark/browser 1.1.0 → 1.1.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/dist/cjs/{action.props-B6vl_1p5.js → action.props-CNe2JXR5.js} +1 -1
  2. package/dist/cjs/{field-B5nxD8Kc.js → field-BRAR56Ex.js} +1 -1
  3. package/dist/cjs/{form-control-validity-D1ukC0_e.js → form-control-validity-BkilGb3E.js} +3 -3
  4. package/dist/cjs/{index-BD6Jjssb.js → index-BN-WdOQM.js} +13 -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 +2 -2
  8. package/dist/cjs/q-avatar.cjs.entry.js +2 -2
  9. package/dist/cjs/q-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/q-button_3.cjs.entry.js +907 -0
  11. package/dist/cjs/q-card.cjs.entry.js +2 -2
  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-control-group.cjs.entry.js +3 -3
  15. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  16. package/dist/cjs/q-data-table.cjs.entry.js +1 -1
  17. package/dist/cjs/q-dialog.cjs.entry.js +3 -3
  18. package/dist/cjs/q-divider.cjs.entry.js +3 -3
  19. package/dist/cjs/q-dropdown.cjs.entry.js +4 -4
  20. package/dist/cjs/q-form.cjs.entry.js +6 -6
  21. package/dist/cjs/q-grid.cjs.entry.js +3 -3
  22. package/dist/cjs/q-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/q-image-comparison.cjs.entry.js +2 -2
  24. package/dist/cjs/q-inline.cjs.entry.js +3 -3
  25. package/dist/cjs/q-input_2.cjs.entry.js +6 -6
  26. package/dist/cjs/q-link.cjs.entry.js +2 -2
  27. package/dist/cjs/q-map.cjs.entry.js +1 -1
  28. package/dist/cjs/q-media.cjs.entry.js +2 -2
  29. package/dist/cjs/q-navbar.cjs.entry.js +3 -3
  30. package/dist/cjs/q-pagination.cjs.entry.js +1 -1
  31. package/dist/cjs/q-panel.cjs.entry.js +6 -6
  32. package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
  33. package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
  34. package/dist/cjs/q-reel.cjs.entry.js +23 -23
  35. package/dist/cjs/q-section.cjs.entry.js +2 -2
  36. package/dist/cjs/q-sidepanel.cjs.entry.js +4 -3
  37. package/dist/cjs/q-slider.cjs.entry.js +2 -2
  38. package/dist/cjs/q-stack.cjs.entry.js +3 -3
  39. package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
  40. package/dist/cjs/q-step-diagram.cjs.entry.js +3 -3
  41. package/dist/cjs/q-syntax-box.cjs.entry.js +180 -719
  42. package/dist/cjs/q-syntax-view.cjs.entry.js +65 -0
  43. package/dist/cjs/q-tabs.cjs.entry.js +2 -2
  44. package/dist/cjs/q-textarea.cjs.entry.js +5 -5
  45. package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
  46. package/dist/cjs/q-toast.cjs.entry.js +1 -1
  47. package/dist/cjs/q-toggle.cjs.entry.js +6 -6
  48. package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
  49. package/dist/cjs/syntax-content-BmSExDiW.js +910 -0
  50. package/dist/cjs/{tokens-Cd7g-VMz.js → tokens-BMrfol_M.js} +1 -1
  51. package/dist/cjs/webquark.cjs.js +2 -2
  52. package/dist/collection/collection-manifest.json +3 -1
  53. package/dist/collection/components/actions/button/button.css +27 -9
  54. package/dist/collection/components/communication/alert/alert.css +4 -1
  55. package/dist/collection/components/data-display/syntax-box/internals/formatters/css.js +4 -0
  56. package/dist/collection/components/data-display/syntax-box/internals/formatters/formatter.js +20 -0
  57. package/dist/collection/components/data-display/syntax-box/internals/{formatter.unit.test.js → formatters/formatter.unit.test.js} +38 -11
  58. package/dist/collection/components/data-display/syntax-box/internals/formatters/html.js +4 -0
  59. package/dist/collection/components/data-display/syntax-box/internals/formatters/javascript.js +4 -0
  60. package/dist/collection/components/data-display/syntax-box/internals/{formatter.js → formatters/json.js} +2 -20
  61. package/dist/collection/components/data-display/syntax-box/internals/formatters/languages.js +15 -0
  62. package/dist/collection/components/data-display/syntax-box/internals/formatters/util/prettier.js +17 -0
  63. package/dist/collection/components/data-display/syntax-box/internals/views.js +29 -0
  64. package/dist/collection/components/data-display/syntax-box/internals/views.unit.test.js +19 -0
  65. package/dist/collection/components/data-display/syntax-box/syntax-box.css +107 -36
  66. package/dist/collection/components/data-display/syntax-box/syntax-box.js +179 -637
  67. package/dist/collection/components/data-display/syntax-box/syntax-content.js +748 -0
  68. package/dist/collection/components/data-display/syntax-box/syntax-ui.js +8 -0
  69. package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +2 -2
  70. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +20 -20
  71. package/dist/collection/components/data-display/syntax-box/test/syntax-views.cmp.test.js +228 -0
  72. package/dist/collection/components/data-display/syntax-view/syntax-view.js +64 -0
  73. package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
  74. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
  75. package/dist/collection/components/inputs/dropdown/dropdown.js +2 -2
  76. package/dist/collection/components/inputs/form/form.js +2 -2
  77. package/dist/collection/components/inputs/form/internals/controls.js +2 -2
  78. package/dist/collection/components/inputs/input/input.js +3 -3
  79. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
  80. package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
  81. package/dist/collection/components/inputs/slider/slider.js +1 -1
  82. package/dist/collection/components/inputs/textarea/textarea.js +2 -2
  83. package/dist/collection/components/inputs/toggle/toggle.js +3 -3
  84. package/dist/collection/components/layout/control-group/control-group.js +1 -1
  85. package/dist/collection/components/layout/divider/divider.js +1 -1
  86. package/dist/collection/components/layout/grid/grid.js +1 -1
  87. package/dist/collection/components/layout/inline/inline.js +1 -1
  88. package/dist/collection/components/layout/navbar/navbar.js +2 -2
  89. package/dist/collection/components/layout/panel/panel.js +4 -4
  90. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  91. package/dist/collection/components/layout/section/section.js +1 -1
  92. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +2 -2
  93. package/dist/collection/components/layout/sidepanel/sidepanel.js +3 -0
  94. package/dist/collection/components/layout/stack/stack.js +1 -1
  95. package/dist/collection/components/layout/tabs/tabs.js +1 -1
  96. package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
  97. package/dist/collection/components/media/avatar/avatar.js +1 -1
  98. package/dist/collection/components/media/image-comparison/image-comparison.js +1 -1
  99. package/dist/collection/components/media/media/media.js +1 -1
  100. package/dist/collection/components/media/reel/reel.js +23 -23
  101. package/dist/collection/components/media/reel/test/focus.cmp.test.js +33 -0
  102. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  103. package/dist/collection/components/overlays/dialog/dialog.js +2 -2
  104. package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
  105. package/dist/collection/theme/tokens.js +1 -1
  106. package/dist/collection/utils/form-control-validity.js +3 -3
  107. package/dist/components/index.js +1 -1
  108. package/dist/components/{p-CArIPzJU.js → p-B610wOGe.js} +1 -1
  109. package/dist/components/p-BGlbV43y.js +13 -0
  110. package/dist/components/{p-BZXIeEKC.js → p-BKWL9zOn.js} +1 -1
  111. package/dist/components/p-BxxU73QQ.js +1 -0
  112. package/dist/components/{p-kfrqZyfJ.js → p-CVEQfA-v.js} +1 -1
  113. package/dist/components/p-CpbWWDiY.js +1 -0
  114. package/dist/components/{p-BwPMm43W.js → p-D2fczi8m.js} +1 -1
  115. package/dist/components/{p-BGHNFaaC.js → p-D5vpGqZ9.js} +1 -1
  116. package/dist/components/p-DQIYo8zC.js +1 -0
  117. package/dist/components/{p-IwIJb0Mc.js → p-DX6PCIPS.js} +1 -1
  118. package/dist/components/{p-CpkX9YAW.js → p-DY9D4z7Z.js} +1 -1
  119. package/dist/{webquark/p-BDsIecIx.js → components/p-DbzjRzhu.js} +1 -1
  120. package/dist/components/{p-Bp6Xr92S.js → p-RX4DjgmV.js} +1 -1
  121. package/dist/components/{p-Bc2_QcLn.js → p-Ts5oOvg8.js} +1 -1
  122. package/dist/components/p-u1Qz6OcP.js +1 -0
  123. package/dist/components/q-accordion.js +1 -1
  124. package/dist/components/q-alert.js +1 -1
  125. package/dist/components/q-avatar.js +1 -1
  126. package/dist/components/q-banner.js +1 -1
  127. package/dist/components/q-button.js +1 -1
  128. package/dist/components/q-card.js +1 -1
  129. package/dist/components/q-carousel.js +1 -1
  130. package/dist/components/q-chip.js +1 -1
  131. package/dist/components/q-control-group.js +1 -1
  132. package/dist/components/q-conversation-bubble.js +1 -1
  133. package/dist/components/q-data-table.js +1 -1
  134. package/dist/components/q-dialog.js +1 -1
  135. package/dist/components/q-divider.js +1 -1
  136. package/dist/components/q-dropdown.js +1 -1
  137. package/dist/components/q-form.js +1 -1
  138. package/dist/components/q-grid.js +1 -1
  139. package/dist/components/q-icon.js +1 -1
  140. package/dist/components/q-image-comparison.js +1 -1
  141. package/dist/components/q-inline.js +1 -1
  142. package/dist/components/q-input.js +1 -1
  143. package/dist/components/q-link.js +1 -1
  144. package/dist/components/q-map.js +1 -1
  145. package/dist/components/q-media.js +1 -1
  146. package/dist/components/q-navbar.js +1 -1
  147. package/dist/components/q-pagination.js +1 -1
  148. package/dist/components/q-panel.js +1 -1
  149. package/dist/components/q-progress.js +1 -1
  150. package/dist/components/q-quantity-selector.js +1 -1
  151. package/dist/components/q-radio-group.js +1 -1
  152. package/dist/components/q-reel.js +1 -1
  153. package/dist/components/q-scrollable.js +1 -1
  154. package/dist/components/q-section.js +1 -1
  155. package/dist/components/q-sidepanel.js +2 -2
  156. package/dist/components/q-slider.js +1 -1
  157. package/dist/components/q-stack.js +1 -1
  158. package/dist/components/q-step-diagram-item.js +1 -1
  159. package/dist/components/q-step-diagram.js +1 -1
  160. package/dist/components/q-syntax-box.js +1 -13
  161. package/dist/components/q-syntax-view.d.ts +11 -0
  162. package/dist/components/q-syntax-view.js +1 -0
  163. package/dist/components/q-tabs.js +1 -1
  164. package/dist/components/q-textarea.js +1 -1
  165. package/dist/components/q-thumbnail.js +1 -1
  166. package/dist/components/q-toast.js +1 -1
  167. package/dist/components/q-toggle.js +1 -1
  168. package/dist/components/q-toolbar.js +1 -1
  169. package/dist/components/q-tooltip.js +1 -1
  170. package/dist/esm/{action.props-Di_LpF5H.js → action.props-CbSH7c-q.js} +1 -1
  171. package/dist/esm/{dom-CArIPzJU.js → dom-B610wOGe.js} +1 -1
  172. package/dist/esm/{field-C4Iilew6.js → field-D5xUxo11.js} +1 -1
  173. package/dist/esm/{form-control-validity-Bj2RJb2E.js → form-control-validity-BxxU73QQ.js} +3 -3
  174. package/dist/esm/{form-submit-action-CoEIvDqE.js → form-submit-action-BjjfVWyu.js} +1 -1
  175. package/dist/esm/{index-DoGM9gsC.js → index-CIMzZPQO.js} +13 -2
  176. package/dist/esm/loader.js +3 -3
  177. package/dist/esm/q-accordion.entry.js +1 -1
  178. package/dist/esm/q-alert.entry.js +2 -2
  179. package/dist/esm/q-avatar.entry.js +2 -2
  180. package/dist/esm/q-banner.entry.js +1 -1
  181. package/dist/esm/q-button_3.entry.js +903 -0
  182. package/dist/esm/q-card.entry.js +3 -3
  183. package/dist/esm/q-carousel.entry.js +2 -2
  184. package/dist/esm/q-chip.entry.js +2 -2
  185. package/dist/esm/q-control-group.entry.js +3 -3
  186. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  187. package/dist/esm/q-data-table.entry.js +1 -1
  188. package/dist/esm/q-dialog.entry.js +4 -4
  189. package/dist/esm/q-divider.entry.js +3 -3
  190. package/dist/esm/q-dropdown.entry.js +4 -4
  191. package/dist/esm/q-form.entry.js +7 -7
  192. package/dist/esm/q-grid.entry.js +3 -3
  193. package/dist/esm/q-icon.entry.js +1 -1
  194. package/dist/esm/q-image-comparison.entry.js +2 -2
  195. package/dist/esm/q-inline.entry.js +3 -3
  196. package/dist/esm/q-input_2.entry.js +7 -7
  197. package/dist/esm/q-link.entry.js +2 -2
  198. package/dist/esm/q-map.entry.js +1 -1
  199. package/dist/esm/q-media.entry.js +2 -2
  200. package/dist/esm/q-navbar.entry.js +3 -3
  201. package/dist/esm/q-pagination.entry.js +1 -1
  202. package/dist/esm/q-panel.entry.js +7 -7
  203. package/dist/esm/q-quantity-selector.entry.js +5 -5
  204. package/dist/esm/q-radio-group.entry.js +4 -4
  205. package/dist/esm/q-reel.entry.js +24 -24
  206. package/dist/esm/q-section.entry.js +2 -2
  207. package/dist/esm/q-sidepanel.entry.js +5 -4
  208. package/dist/esm/q-slider.entry.js +2 -2
  209. package/dist/esm/q-stack.entry.js +3 -3
  210. package/dist/esm/q-step-diagram-item.entry.js +2 -2
  211. package/dist/esm/q-step-diagram.entry.js +4 -4
  212. package/dist/esm/q-syntax-box.entry.js +180 -719
  213. package/dist/esm/q-syntax-view.entry.js +63 -0
  214. package/dist/esm/q-tabs.entry.js +2 -2
  215. package/dist/esm/q-textarea.entry.js +5 -5
  216. package/dist/esm/q-thumbnail.entry.js +3 -3
  217. package/dist/esm/q-toast.entry.js +1 -1
  218. package/dist/esm/q-toggle.entry.js +6 -6
  219. package/dist/esm/q-toolbar.entry.js +4 -4
  220. package/dist/esm/syntax-content-Cr9kSbmA.js +903 -0
  221. package/dist/esm/{tokens-BDsIecIx.js → tokens-DbzjRzhu.js} +1 -1
  222. package/dist/esm/webquark.js +3 -3
  223. package/dist/formatters/prettier/LICENSE +7 -0
  224. package/dist/formatters/prettier/THIRD-PARTY-NOTICES.md +7941 -0
  225. package/dist/formatters/prettier/html-fragment.mjs +1 -0
  226. package/dist/formatters/prettier/html-fragment.mjs.gz +0 -0
  227. package/dist/formatters/prettier/languages/angular.mjs +1 -0
  228. package/dist/formatters/prettier/languages/angular.mjs.gz +0 -0
  229. package/dist/formatters/prettier/languages/css.mjs +1 -0
  230. package/dist/formatters/prettier/languages/css.mjs.gz +0 -0
  231. package/dist/formatters/prettier/languages/flow.mjs +1 -0
  232. package/dist/formatters/prettier/languages/flow.mjs.gz +0 -0
  233. package/dist/formatters/prettier/languages/graphql.mjs +1 -0
  234. package/dist/formatters/prettier/languages/graphql.mjs.gz +0 -0
  235. package/dist/formatters/prettier/languages/handlebars.mjs +1 -0
  236. package/dist/formatters/prettier/languages/handlebars.mjs.gz +0 -0
  237. package/dist/formatters/prettier/languages/html.mjs +1 -0
  238. package/dist/formatters/prettier/languages/html.mjs.gz +0 -0
  239. package/dist/formatters/prettier/languages/javascript.mjs +1 -0
  240. package/dist/formatters/prettier/languages/javascript.mjs.gz +0 -0
  241. package/dist/formatters/prettier/languages/json-stringify.mjs +1 -0
  242. package/dist/formatters/prettier/languages/json-stringify.mjs.gz +0 -0
  243. package/dist/formatters/prettier/languages/json.mjs +1 -0
  244. package/dist/formatters/prettier/languages/json.mjs.gz +0 -0
  245. package/dist/formatters/prettier/languages/json5.mjs +1 -0
  246. package/dist/formatters/prettier/languages/json5.mjs.gz +0 -0
  247. package/dist/formatters/prettier/languages/jsonc.mjs +1 -0
  248. package/dist/formatters/prettier/languages/jsonc.mjs.gz +0 -0
  249. package/dist/formatters/prettier/languages/jsx.mjs +1 -0
  250. package/dist/formatters/prettier/languages/jsx.mjs.gz +0 -0
  251. package/dist/formatters/prettier/languages/less.mjs +1 -0
  252. package/dist/formatters/prettier/languages/less.mjs.gz +0 -0
  253. package/dist/formatters/prettier/languages/lwc.mjs +1 -0
  254. package/dist/formatters/prettier/languages/lwc.mjs.gz +0 -0
  255. package/dist/formatters/prettier/languages/markdown.mjs +1 -0
  256. package/dist/formatters/prettier/languages/markdown.mjs.gz +0 -0
  257. package/dist/formatters/prettier/languages/mdx.mjs +1 -0
  258. package/dist/formatters/prettier/languages/mdx.mjs.gz +0 -0
  259. package/dist/formatters/prettier/languages/mjml.mjs +1 -0
  260. package/dist/formatters/prettier/languages/mjml.mjs.gz +0 -0
  261. package/dist/formatters/prettier/languages/postcss.mjs +1 -0
  262. package/dist/formatters/prettier/languages/postcss.mjs.gz +0 -0
  263. package/dist/formatters/prettier/languages/scss.mjs +1 -0
  264. package/dist/formatters/prettier/languages/scss.mjs.gz +0 -0
  265. package/dist/formatters/prettier/languages/tsx.mjs +1 -0
  266. package/dist/formatters/prettier/languages/tsx.mjs.gz +0 -0
  267. package/dist/formatters/prettier/languages/typescript.mjs +1 -0
  268. package/dist/formatters/prettier/languages/typescript.mjs.gz +0 -0
  269. package/dist/formatters/prettier/languages/vue.mjs +1 -0
  270. package/dist/formatters/prettier/languages/vue.mjs.gz +0 -0
  271. package/dist/formatters/prettier/languages/yaml.mjs +1 -0
  272. package/dist/formatters/prettier/languages/yaml.mjs.gz +0 -0
  273. package/dist/formatters/prettier/manifest.json +87 -0
  274. package/dist/formatters/prettier/plugins/acorn.mjs +17 -0
  275. package/dist/formatters/prettier/plugins/acorn.mjs.gz +0 -0
  276. package/dist/formatters/prettier/plugins/angular.mjs +7 -0
  277. package/dist/formatters/prettier/plugins/angular.mjs.gz +0 -0
  278. package/dist/formatters/prettier/plugins/babel.mjs +16 -0
  279. package/dist/formatters/prettier/plugins/babel.mjs.gz +0 -0
  280. package/dist/formatters/prettier/plugins/estree.mjs +44 -0
  281. package/dist/formatters/prettier/plugins/estree.mjs.gz +0 -0
  282. package/dist/formatters/prettier/plugins/flow.mjs +7 -0
  283. package/dist/formatters/prettier/plugins/flow.mjs.gz +0 -0
  284. package/dist/formatters/prettier/plugins/glimmer.mjs +37 -0
  285. package/dist/formatters/prettier/plugins/glimmer.mjs.gz +0 -0
  286. package/dist/formatters/prettier/plugins/graphql.mjs +17 -0
  287. package/dist/formatters/prettier/plugins/graphql.mjs.gz +0 -0
  288. package/dist/formatters/prettier/plugins/html.mjs +25 -0
  289. package/dist/formatters/prettier/plugins/html.mjs.gz +0 -0
  290. package/dist/formatters/prettier/plugins/markdown.mjs +70 -0
  291. package/dist/formatters/prettier/plugins/markdown.mjs.gz +0 -0
  292. package/dist/formatters/prettier/plugins/meriyah.mjs +9 -0
  293. package/dist/formatters/prettier/plugins/meriyah.mjs.gz +0 -0
  294. package/dist/formatters/prettier/plugins/postcss.mjs +62 -0
  295. package/dist/formatters/prettier/plugins/postcss.mjs.gz +0 -0
  296. package/dist/formatters/prettier/plugins/typescript.mjs +22 -0
  297. package/dist/formatters/prettier/plugins/typescript.mjs.gz +0 -0
  298. package/dist/formatters/prettier/plugins/yaml.mjs +150 -0
  299. package/dist/formatters/prettier/plugins/yaml.mjs.gz +0 -0
  300. package/dist/formatters/prettier/runtime.d.mts +2 -0
  301. package/dist/formatters/prettier/runtime.mjs +1 -0
  302. package/dist/formatters/prettier/runtime.mjs.gz +0 -0
  303. package/dist/formatters/prettier/standalone.mjs +29 -0
  304. package/dist/formatters/prettier/standalone.mjs.gz +0 -0
  305. package/dist/playground/components/theme-designer/token-row.js +45 -74
  306. package/dist/playground/utils/color.js +14 -25
  307. package/dist/types/components/data-display/syntax-box/internals/formatters/css.d.ts +1 -0
  308. package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.d.ts +10 -0
  309. package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.types.d.ts +4 -0
  310. package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.unit.test.d.ts +1 -0
  311. package/dist/types/components/data-display/syntax-box/internals/formatters/html.d.ts +1 -0
  312. package/dist/types/components/data-display/syntax-box/internals/formatters/javascript.d.ts +1 -0
  313. package/dist/types/components/data-display/syntax-box/internals/formatters/json.d.ts +6 -0
  314. package/dist/types/components/data-display/syntax-box/internals/formatters/languages.d.ts +27 -0
  315. package/dist/types/components/data-display/syntax-box/internals/formatters/util/prettier.d.ts +3 -0
  316. package/dist/types/components/data-display/syntax-box/internals/syntax.d.ts +1 -1
  317. package/dist/types/components/data-display/syntax-box/internals/views.d.ts +11 -0
  318. package/dist/types/components/data-display/syntax-box/internals/views.unit.test.d.ts +1 -0
  319. package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +66 -63
  320. package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +1 -1
  321. package/dist/types/components/data-display/syntax-box/syntax-content.d.ts +41 -0
  322. package/dist/types/components/data-display/syntax-box/syntax-ui.d.ts +15 -0
  323. package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +1 -1
  324. package/dist/types/components/data-display/syntax-box/test/syntax-views.cmp.test.d.ts +1 -0
  325. package/dist/types/components/data-display/syntax-view/syntax-view.d.ts +48 -0
  326. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +2 -0
  327. package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +1 -0
  328. package/dist/types/components/media/reel/reel.d.ts +3 -3
  329. package/dist/types/components/media/reel/test/focus.cmp.test.d.ts +1 -0
  330. package/dist/types/components.d.ts +201 -7
  331. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +1 -1
  332. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +1 -0
  333. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +2 -8
  334. package/dist/types/utils/form-control-validity.d.ts +2 -1
  335. package/dist/webquark/{p-846dc838.entry.js → p-014c2f4a.entry.js} +1 -1
  336. package/dist/webquark/{p-0182e114.entry.js → p-0389577c.entry.js} +1 -1
  337. package/dist/webquark/p-041e17c1.entry.js +1 -0
  338. package/dist/webquark/p-0479c571.entry.js +1 -0
  339. package/dist/webquark/{p-17b9713f.entry.js → p-0ebca9be.entry.js} +1 -1
  340. package/dist/webquark/{p-0a2c52de.entry.js → p-1bf375f7.entry.js} +2 -2
  341. package/dist/webquark/{p-e2721e77.entry.js → p-20dc3ab5.entry.js} +1 -1
  342. package/dist/webquark/p-28d3348f.entry.js +1 -0
  343. package/dist/webquark/p-35c177d3.entry.js +1 -0
  344. package/dist/webquark/{p-f4d23ffe.entry.js → p-3a60086d.entry.js} +1 -1
  345. package/dist/webquark/{p-e723a7ae.entry.js → p-3ab798aa.entry.js} +1 -1
  346. package/dist/webquark/{p-15bad9ef.entry.js → p-3b580baf.entry.js} +1 -1
  347. package/dist/webquark/{p-4609c362.entry.js → p-3b65f787.entry.js} +1 -1
  348. package/dist/webquark/p-4bf610f8.entry.js +1 -0
  349. package/dist/webquark/{p-f51e1098.entry.js → p-4d30227e.entry.js} +1 -1
  350. package/dist/webquark/p-4de536ae.entry.js +1 -0
  351. package/dist/webquark/{p-3daafc56.entry.js → p-4e4d70c9.entry.js} +1 -1
  352. package/dist/webquark/p-4efeb7c9.entry.js +1 -0
  353. package/dist/webquark/{p-a314bc21.entry.js → p-51b3d71b.entry.js} +1 -1
  354. package/dist/webquark/p-778b6bbb.entry.js +1 -0
  355. package/dist/webquark/{p-a66550da.entry.js → p-7da78b2f.entry.js} +1 -1
  356. package/dist/webquark/{p-fe14f038.entry.js → p-7f8f986b.entry.js} +1 -1
  357. package/dist/webquark/{p-e0943d41.entry.js → p-8253c742.entry.js} +1 -1
  358. package/dist/webquark/{p-a2334abe.entry.js → p-9a1ddeb7.entry.js} +1 -1
  359. package/dist/webquark/{p-CArIPzJU.js → p-B610wOGe.js} +1 -1
  360. package/dist/webquark/p-BxxU73QQ.js +1 -0
  361. package/dist/webquark/p-CIMzZPQO.js +3 -0
  362. package/dist/webquark/p-CfR85WgM.js +13 -0
  363. package/dist/webquark/{p-DDUED8LT.js → p-D8p28N9s.js} +1 -1
  364. package/dist/{components/p-BDsIecIx.js → webquark/p-DbzjRzhu.js} +1 -1
  365. package/dist/webquark/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
  366. package/dist/webquark/p-a2b1de23.entry.js +1 -0
  367. package/dist/webquark/{p-dbcf7592.entry.js → p-a55edc17.entry.js} +1 -1
  368. package/dist/webquark/p-a8808020.entry.js +1 -0
  369. package/dist/webquark/{p-9a76cd71.entry.js → p-b1084b3c.entry.js} +1 -1
  370. package/dist/webquark/{p-a2ff1b64.entry.js → p-b6c4dff4.entry.js} +1 -1
  371. package/dist/webquark/{p-b21ad707.entry.js → p-b962e950.entry.js} +1 -1
  372. package/dist/webquark/{p-5b584d3c.entry.js → p-bc369cd6.entry.js} +1 -1
  373. package/dist/webquark/p-c119a8ea.entry.js +1 -0
  374. package/dist/webquark/{p-85131314.entry.js → p-c6b77e9a.entry.js} +1 -1
  375. package/dist/webquark/{p-84b350a3.entry.js → p-ca1c03b4.entry.js} +1 -1
  376. package/dist/webquark/{p-b8fdef4f.entry.js → p-ce436162.entry.js} +1 -1
  377. package/dist/webquark/{p-86c05afd.entry.js → p-d0a47a7c.entry.js} +1 -1
  378. package/dist/webquark/{p-222405b8.entry.js → p-e1fbc8fc.entry.js} +1 -1
  379. package/dist/webquark/{p-44bbe12f.entry.js → p-e32833ce.entry.js} +1 -1
  380. package/dist/webquark/{p-d86bd51d.entry.js → p-e369a4aa.entry.js} +1 -1
  381. package/dist/webquark/p-e4430c61.entry.js +1 -0
  382. package/dist/webquark/{p-aa342e81.entry.js → p-e9c0052b.entry.js} +1 -1
  383. package/dist/webquark/{p-852e88ae.entry.js → p-f5c4ca18.entry.js} +1 -1
  384. package/dist/webquark/{p-d4788321.entry.js → p-f6683126.entry.js} +1 -1
  385. package/dist/webquark/{p-Dnz3WmdX.js → p-ojSDiptZ.js} +1 -1
  386. package/dist/webquark/webquark.css +1 -1
  387. package/dist/webquark/webquark.esm.js +1 -1
  388. package/package.json +5 -1
  389. package/dist/cjs/q-button_2.cjs.entry.js +0 -462
  390. package/dist/cjs/q-scrollable.cjs.entry.js +0 -449
  391. package/dist/components/p-Bj2RJb2E.js +0 -1
  392. package/dist/components/p-D2nxHd1b.js +0 -1
  393. package/dist/components/p-x3C-wjU9.js +0 -1
  394. package/dist/esm/q-button_2.entry.js +0 -459
  395. package/dist/esm/q-scrollable.entry.js +0 -447
  396. package/dist/types/components/data-display/syntax-box/internals/formatter.d.ts +0 -15
  397. package/dist/webquark/p-048103e0.entry.js +0 -1
  398. package/dist/webquark/p-0baf478a.entry.js +0 -1
  399. package/dist/webquark/p-2eaa3a9f.entry.js +0 -1
  400. package/dist/webquark/p-65fe9cac.entry.js +0 -1
  401. package/dist/webquark/p-8c5b2706.entry.js +0 -1
  402. package/dist/webquark/p-923527f0.entry.js +0 -1
  403. package/dist/webquark/p-Bj2RJb2E.js +0 -1
  404. package/dist/webquark/p-DoGM9gsC.js +0 -3
  405. package/dist/webquark/p-a0d97367.entry.js +0 -1
  406. package/dist/webquark/p-a16bd8d5.entry.js +0 -13
  407. package/dist/webquark/p-a3e1096d.entry.js +0 -1
  408. package/dist/webquark/p-b1c771fb.entry.js +0 -1
  409. package/dist/webquark/p-b45ca926.entry.js +0 -1
  410. package/dist/webquark/p-eb800d1e.entry.js +0 -1
  411. /package/dist/{types/components/data-display/syntax-box/internals/formatter.unit.test.d.ts → collection/components/data-display/syntax-box/internals/formatters/formatter.types.js} +0 -0
@@ -193,13 +193,13 @@ export class QRadioGroup {
193
193
  const hasError = !!displayError;
194
194
  const ariaLabel = this.ariaLabel?.trim() || undefined;
195
195
  const radioName = this.name || this.internalName;
196
- return (h("div", { key: '2348b3c0574a2d94074fe103242b4b83bb77c5b3', style: feedbackStyle(this.reserveFeedback), class: {
196
+ return (h("div", { key: '5b2d2ba7ba4339d48d10cf3be1e00a9ef9425d2f', style: feedbackStyle(this.reserveFeedback), class: {
197
197
  'radio-group': true,
198
198
  'is-disabled': this.isDisabled,
199
199
  'has-error': hasError,
200
200
  [`size-${this.size}`]: true,
201
201
  [`orientation-${this.orientation}`]: true,
202
- } }, h("fieldset", { key: '7b9412fb0fecb18fb2fa52fda90758768cd85d19', ref: element => (this.fieldsetEl = element), class: "group-fieldset", part: "group", disabled: this.isDisabled, role: "radiogroup", "aria-label": !this.label ? ariaLabel : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-radio-group-error' : undefined }, this.label && h("legend", { key: '3fd75f8eaa62aa4fcbbb150aa06679160c5eac44', part: "label", class: { 'q-label-hidden': this.labelHidden } }, this.label), h("div", { key: '4987b1b9caacae6865d8c8ca1c9db30292f68c60', class: "options", part: "options", style: { '--q-radio-group-option-count': String(Math.max(identifiedOptions.length, 1)) } }, identifiedOptions.map(({ item: option, key }) => (h("label", { key: key, class: {
202
+ } }, h("fieldset", { key: '601ee48990af01f411a4263ddfcc0cbd2b4911c9', ref: element => (this.fieldsetEl = element), class: "group-fieldset", part: "group", disabled: this.isDisabled, role: "radiogroup", "aria-label": !this.label ? ariaLabel : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-radio-group-error' : undefined }, this.label && h("legend", { key: '7b0b79833d621abb97428f1ac044e8cc724275c3', part: "label", class: { 'q-label-hidden': this.labelHidden } }, this.label), h("div", { key: '5b89d54d24bda8cf7f4af38f5f4d344dc494e3e9', class: "options", part: "options", style: { '--q-radio-group-option-count': String(Math.max(identifiedOptions.length, 1)) } }, identifiedOptions.map(({ item: option, key }) => (h("label", { key: key, class: {
203
203
  option: true,
204
204
  'is-selected': option.value === this.value,
205
205
  'is-disabled': this.isDisabled || option.disabled === true,
@@ -84,7 +84,7 @@ export class QSlider {
84
84
  this.qInput.emit(this.value);
85
85
  }
86
86
  render() {
87
- return (h("div", { key: 'c7f0371d801a02a000d92dc92df3c1bf228fc842', class: "field" }, (this.label || this.showValue) && h("div", { key: 'e33ce30e1a32013e46c670ca7c605a8a001d2ff7', class: "label-row", part: "label" }, this.label && h("label", { key: '0bb615df1af862b010c5d18a96e5cfc3eaffab61', htmlFor: "range" }, this.label), this.showValue && h("span", { key: 'f49a2cf0661d9dd9dcc79e97a061f09940970dbc', class: "badge", part: "value", "aria-hidden": "true" }, this.value, this.suffix)), h("input", { key: '878163075048af3984bdf655f29558293532c004', ref: el => this.inputEl = el, id: "range", part: "input", type: "range", min: this.lower, max: this.upper, step: this.increment, value: this.value, disabled: this.fieldDisabled, "aria-label": this.ariaLabel || (!this.label ? 'Value' : undefined), "aria-valuetext": this.suffix ? `${this.value}${this.suffix}` : undefined, onInput: event => this.onValue(event, false), onChange: event => this.onValue(event, true) })));
87
+ return (h("div", { key: '4a7f04715a2469590f1180acc815f1a1356d57fc', class: "field" }, (this.label || this.showValue) && h("div", { key: '278bd775202cbba4452b1771288135ae14540d23', class: "label-row", part: "label" }, this.label && h("label", { key: 'cd4a6af20b51a30cf542353a99e60de0c09d7a52', htmlFor: "range" }, this.label), this.showValue && h("span", { key: '73f2e522f602f39575b59fb9c9af3fbd45b96079', class: "badge", part: "value", "aria-hidden": "true" }, this.value, this.suffix)), h("input", { key: 'e2bafa9d5604dbde70e243d27463d8f51de450cd', ref: el => this.inputEl = el, id: "range", part: "input", type: "range", min: this.lower, max: this.upper, step: this.increment, value: this.value, disabled: this.fieldDisabled, "aria-label": this.ariaLabel || (!this.label ? 'Value' : undefined), "aria-valuetext": this.suffix ? `${this.value}${this.suffix}` : undefined, onInput: event => this.onValue(event, false), onChange: event => this.onValue(event, true) })));
88
88
  }
89
89
  static get is() { return "q-slider"; }
90
90
  static get encapsulation() { return "shadow"; }
@@ -234,12 +234,12 @@ export class QTextarea {
234
234
  const hasError = !!(this.error || this.errorMessage);
235
235
  const displayError = this.error || this.errorMessage;
236
236
  const ariaLabel = this.ariaLabel?.trim() || (!this.label && this.placeholder ? this.placeholder : undefined);
237
- return (h("div", { key: 'b1dd4435db3190f58fd4bff45cb6b5bcc7eec0cf', style: feedbackStyle(this.reserveFeedback), class: {
237
+ return (h("div", { key: '2dfa875d382d3377f6a4c797095d1ad79c6e7d8f', style: feedbackStyle(this.reserveFeedback), class: {
238
238
  'textarea-wrapper': true,
239
239
  'is-disabled': this.isDisabled,
240
240
  'has-error': hasError,
241
241
  [`size-${this.size}`]: true
242
- } }, h("span", { key: '6633f6aea71a4eada7ae9c8d0c785bc165b5a186', class: "textarea-size-probe", "aria-hidden": "true", ref: el => (this.sizeProbeEl = el) }, "M"), this.label && (h("label", { key: '19985e8ee5ab662ab1f5edc30d605d1fecf51dac', class: { 'textarea-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("textarea", { key: '2e3f0c3830078b5405d82b178293ca9036664458', ref: (el) => (this.textareaEl = el), id: "q-field", class: {
242
+ } }, h("span", { key: 'e574e56178594b74ea708bed0938820983fd0ca7', class: "textarea-size-probe", "aria-hidden": "true", ref: el => (this.sizeProbeEl = el) }, "M"), this.label && (h("label", { key: '93230c095b18c8c6f9debcdc770bb682e058345b', class: { 'textarea-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("textarea", { key: '6f4cbb31421179e1d4939152f829abf94c5818ea', ref: (el) => (this.textareaEl = el), id: "q-field", class: {
243
243
  'textarea-box': true,
244
244
  'resize-manual': this.activeResizeMode === 'manual'
245
245
  }, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.isDisabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), fieldFeedback('q-field-error', displayError, this.description)));
@@ -191,7 +191,7 @@ export class QToggle {
191
191
  const hasLabel = this.label !== undefined && this.label !== '';
192
192
  const showLabel = hasLabel || this.hasDefaultSlot;
193
193
  const hasError = !!this.error;
194
- return (h("div", { key: '499ad05de934991e437c25dca47b2ab3f8528e83', class: "toggle-container", style: feedbackStyle(this.reserveFeedback) }, h("div", { key: 'dc6d9613fdb146314da88e7d089f280182e2b0f1', ref: el => (this.controlEl = el), class: {
194
+ return (h("div", { key: 'd48179acd7944770d0ae2609ef5cc0cbb552d061', class: "toggle-container", style: feedbackStyle(this.reserveFeedback) }, h("div", { key: '4835a9b82e93ab6c60c78dd2d647f9aaa5cbeb00', ref: el => (this.controlEl = el), class: {
195
195
  'toggle-wrapper': true,
196
196
  'is-checked': this.checked,
197
197
  'is-disabled': this.isDisabled,
@@ -199,11 +199,11 @@ export class QToggle {
199
199
  'has-error': hasError,
200
200
  [`type-${this.type}`]: true,
201
201
  [`size-${this.size}`]: true,
202
- }, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.isDisabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'toggle-error-msg' : undefined, tabindex: this.isDisabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'aec7c564a38545398b53d7b11edac6d615068efe', class: "toggle-control", part: "control" }, this.type === 'switch' ? (h("div", { class: "switch-track", part: "track" }, h("div", { class: "switch-thumb", part: "thumb" }))) : (h("div", { class: "checkbox-box", part: "box" }, h("span", { class: { 'icon-wrap': true, 'is-hidden': !this.checked }, part: "icon-checked" }, h("slot", { name: "checked-icon", onSlotchange: this.handleSlotChange }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", class: "default-check-icon", "aria-hidden": "true" }, h("polyline", { points: "20 6 9 17 4 12" })))), h("span", { class: { 'icon-wrap': true, 'is-hidden': this.checked }, part: "icon-unchecked" }, h("slot", { name: "unchecked-icon", onSlotchange: this.handleSlotChange }))))), h("span", { key: 'fbdd90cb7acd529717d07fd739299af8506ac678', class: {
202
+ }, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.isDisabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'toggle-error-msg' : undefined, tabindex: this.isDisabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '18f5a731fd6200ab4363f68e2ef3971e9d9bb807', class: "toggle-control", part: "control" }, this.type === 'switch' ? (h("div", { class: "switch-track", part: "track" }, h("div", { class: "switch-thumb", part: "thumb" }))) : (h("div", { class: "checkbox-box", part: "box" }, h("span", { class: { 'icon-wrap': true, 'is-hidden': !this.checked }, part: "icon-checked" }, h("slot", { name: "checked-icon", onSlotchange: this.handleSlotChange }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", class: "default-check-icon", "aria-hidden": "true" }, h("polyline", { points: "20 6 9 17 4 12" })))), h("span", { class: { 'icon-wrap': true, 'is-hidden': this.checked }, part: "icon-unchecked" }, h("slot", { name: "unchecked-icon", onSlotchange: this.handleSlotChange }))))), h("span", { key: '52b2da5760ba5b4ace0f3ed33e70897cf1688b13', class: {
203
203
  'toggle-label-text': true,
204
204
  'q-label-hidden': this.labelHidden,
205
205
  'is-hidden': !showLabel
206
- }, part: "label" }, h("slot", { key: '3d0d6200605b69297c0d6bea7bb6e00747d0e8b6', onSlotchange: this.handleSlotChange }, this.label))), fieldFeedback('toggle-error-msg', this.error, this.description)));
206
+ }, part: "label" }, h("slot", { key: 'ab52ad9602e9fd1a8779a9e02d46d99716ae3324', onSlotchange: this.handleSlotChange }, this.label))), fieldFeedback('toggle-error-msg', this.error, this.description)));
207
207
  }
208
208
  static get is() { return "q-toggle"; }
209
209
  static get encapsulation() { return "shadow"; }
@@ -53,7 +53,7 @@ export class QControlGroup {
53
53
  });
54
54
  };
55
55
  render() {
56
- return (h(Host, { key: '3a3eafef4761711a81b71645caa3407e00bc016f', style: controlScope(this.size) }, h("div", { key: '70c4fb37543a2a67921d4a8d8eecb4372b871fbf', part: "group", role: "group", "aria-label": this.ariaLabel || undefined }, h("slot", { key: '145ad01a8d6991b3137f642abe514051660c96e8', onSlotchange: this.updateChildren }))));
56
+ return (h(Host, { key: '9e724cedca3d8b30f842a8cf0818d1386ec073b8', style: controlScope(this.size) }, h("div", { key: 'a76241b0076ed5d373df7560f8980eef2a3a9efb', part: "group", role: "group", "aria-label": this.ariaLabel || undefined }, h("slot", { key: 'db65f42834a6841c2c33a081a88a4b0c417d9e85', onSlotchange: this.updateChildren }))));
57
57
  }
58
58
  static get is() { return "q-control-group"; }
59
59
  static get encapsulation() { return "shadow"; }
@@ -13,7 +13,7 @@ export class QDivider {
13
13
  /** Hide a purely visual separator from assistive technology. */
14
14
  decorative = false;
15
15
  render() {
16
- return h(Host, { key: 'eadd9334a6f43375fdf364710462eef9dc0b2b22', role: this.decorative ? undefined : 'separator', "aria-orientation": this.decorative ? undefined : this.orientation, "aria-hidden": this.decorative ? 'true' : undefined, style: { '--_q-divider-length': this.length === 'auto' ? '100%' : this.length, '--_q-divider-spacing': spaceValue(this.spacing) } }, h("span", { key: '999050a927f952484de99c165f2b20132d64eec4', part: "line", "aria-hidden": "true" }));
16
+ return h(Host, { key: '10601dff81297193eca4465eb2b8ffc46497b75c', role: this.decorative ? undefined : 'separator', "aria-orientation": this.decorative ? undefined : this.orientation, "aria-hidden": this.decorative ? 'true' : undefined, style: { '--_q-divider-length': this.length === 'auto' ? '100%' : this.length, '--_q-divider-spacing': spaceValue(this.spacing) } }, h("span", { key: '1d2649811fb7ffd7a084b7b846fe99e5919a192f', part: "line", "aria-hidden": "true" }));
17
17
  }
18
18
  static get is() { return "q-divider"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ export class QGrid {
12
12
  columnGap;
13
13
  render() {
14
14
  const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
15
- return h("div", { key: '6cb6f253b692cb98163938ac77b1017706921e0a', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: '6e2c2c61901e9444ad4cc789201ee1702c817d92' }));
15
+ return h("div", { key: '02759a6a8e89db1caaf9e4bde8c8d06b54195ae7', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: '0af6ddbb0437976cee93ef13166577ab6d6d8ce0' }));
16
16
  }
17
17
  static get is() { return "q-grid"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class QInline {
10
10
  justify = 'start';
11
11
  wrap = true;
12
12
  render() {
13
- return h("div", { key: '4a738a5cfb63fbfe527ef97e0d4fdc5b2b9d92bb', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: '441ff02b18335a81b7674d6b8078102bd22a46f5' }));
13
+ return h("div", { key: '653652578ec7a0fef106648ba0c1beaba88b7c63', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: 'feef94f54211d3d708c8677e4b0ddc5794001485' }));
14
14
  }
15
15
  static get is() { return "q-inline"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -386,7 +386,7 @@ export class QNavbar {
386
386
  const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
387
387
  const hasItems = items.length > 0;
388
388
  const ariaLabel = this.ariaLabel?.trim() || undefined;
389
- return (h("div", { key: '72300427ebcdcbd1fbf35538fe36af599674eec7', class: {
389
+ return (h("div", { key: '59659bb209646cafd818599957ae4493cb30c0ef', class: {
390
390
  'navbar': true,
391
391
  'is-open': this.menuOpen,
392
392
  'is-sticky': this.sticky,
@@ -396,7 +396,7 @@ export class QNavbar {
396
396
  'is-collapsed': this.collision,
397
397
  'has-mobile-nav': this.hasMobileNav,
398
398
  'has-mobile-actions': this.hasMobileActions,
399
- }, part: "navbar" }, h("div", { key: '356a76e80a441df888f98d49cdea2dc0a5173480', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '16cd03606d948a4ad0caefe2461d09b4b2e0214d', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '1df39d562f06cb2f7a2b76161a122d9f73405aff', name: "nav" })), h("div", { key: '99c982b99446849f1c8669c9c2b92eb0530e8bb6', class: "desktop-actions", part: "actions" }, h("slot", { key: '97fe69941ea841fbd570a8d2bc306d292642699c', name: "actions" })), h("button", { key: '55ac3eb3c878dcbba1709c28444f5ceed9d65952', 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: 'a4969f428a53183aff6162ca99c49344c9e22c43' }), h("span", { key: '67d19e78025a71de533d64be9648959055f371e6' }), h("span", { key: 'd8b4c1e9ad64d9c165b687b3331e035cbedde1c5' }))), h("div", { key: '7e4404dbce5035e890c3fb82774da5409532afaf', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'eff22494d13789eb4ddb95a0db64e1bfc60bc457', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '5f6acd5b274ab9fd2cd6762912c05787802be39c', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '262bfccfc84486b53b607f78c82f5e203ec79bad', class: "mobile-actions" }, h("slot", { key: '9c631d7e8d89f424442fba93e094c5562f98ea68', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
399
+ }, part: "navbar" }, h("div", { key: '69ed63bcd1728cc4f2628be40a5b6228f1447f0c', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '58633b4fdd8229cb7bb03b7508fdb1283ba978f3', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '799898ef50eb2c636881469e42543e9f0525f354', name: "nav" })), h("div", { key: '13cfdb500de97c26ffc6ec4907fc502dadd48f82', class: "desktop-actions", part: "actions" }, h("slot", { key: 'dd946e806e0a66491243829ceabe222ba3a3e4b5', name: "actions" })), h("button", { key: '51c787627dbc63aaed6f51c5d646cd80823eeb9e', 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: '2ca8b1221ab0afbb19bb6f3fd40ce2934b5605bb' }), h("span", { key: 'f0dd6987e9a50722efc962a6fd15a4417feffd43' }), h("span", { key: '5e88246aab7d23088b844dac120f5b35a45315b3' }))), h("div", { key: 'f3622686d2c8a0f2b9382231dced85e89348be41', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '20ed76cd66577bfe048a9eccc6dd10aaa227fa86', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: 'e91782d485151678011df21b88455d9f3af1808c', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'c256f1322d733812952533a6b8a000d2c69f15ea', class: "mobile-actions" }, h("slot", { key: '8c9e6d6b1862a48f4baa45d74c6fc0516e3ae387', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
400
400
  }
401
401
  static get is() { return "q-navbar"; }
402
402
  static get encapsulation() { return "shadow"; }
@@ -55,7 +55,7 @@ export class QPanel {
55
55
  }
56
56
  // ===================== [6] RENDER (Visual Template Only) =====================
57
57
  render() {
58
- return (h("section", { key: 'e4d17eda76e6fd5c295178a0cf7440e0dfa4f2bb', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
58
+ return (h("section", { key: '365312494af4110e703fa92f34160789c8cead62', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
59
59
  'panel': true,
60
60
  'has-dividers': this.dividers,
61
61
  [`variant-${this.variant}`]: true,
@@ -66,13 +66,13 @@ export class QPanel {
66
66
  'has-sticky-header': this.stickyHeader,
67
67
  'has-sticky-footer': this.stickyFooter,
68
68
  'uses-sticky-scroll': this.scrollable && (this.stickyHeader || this.stickyFooter),
69
- }, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '653bb1def51fb6ad21914ef7e5a54cbfb147640e', class: {
69
+ }, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '4495225ab9e5a43a4c4747fd824c19d2e3fbffc4', class: {
70
70
  'panel-header': true,
71
71
  'is-hidden': !this.hasHeader,
72
- }, part: "header" }, h("slot", { key: '06cc3f354673d5fe3fde67b1b86ec392e03be7df', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: 'cb4a97900e5524015eae2ee57fa78509a9bb776d', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: '3dbcb6ca0b4fa46edbf706537905d4fe073f755f' })), h("div", { key: '422214dca7949db96461944299d42c1c0aa484b3', class: {
72
+ }, part: "header" }, h("slot", { key: '6741a40e8c6e1bb06d993ee5f01b1e3be58bad05', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: 'ab4f43f31b50ded8ce8951bc3f87b39463640c23', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: '6fca5686fdf7ed46b89090a150bb8fc5473cf1ab' })), h("div", { key: '62478d85da82ce313b978264f732947d01d03939', class: {
73
73
  'panel-footer': true,
74
74
  'is-hidden': !this.hasFooter,
75
- }, part: "footer" }, h("slot", { key: '4738de4fdffc4802c02f3de0e32c6c2d2cf30f4b', name: "footer", onSlotchange: this.handleSlotChange }))));
75
+ }, part: "footer" }, h("slot", { key: 'cb061be64d404bc14f6df89816520b609da2bb5d', name: "footer", onSlotchange: this.handleSlotChange }))));
76
76
  }
77
77
  static get is() { return "q-panel"; }
78
78
  static get encapsulation() { return "shadow"; }
@@ -326,13 +326,13 @@ export class QScrollable {
326
326
  height: this.height,
327
327
  maxHeight: this.maxHeight || undefined,
328
328
  };
329
- return (h(Host, { key: '6dfe263ff199a234244d309b4b9173a0aa179651', class: {
329
+ return (h(Host, { key: '046bbaa5aeab2799e72aa0113cfbe389ce059a42', class: {
330
330
  'is-scrolling': this.isScrolling,
331
331
  'is-dragging': this.isDragging,
332
- }, style: hostStyle }, h("div", { key: '6ecf6002545a4fe54a3d8f7c79996c5f172eeafb', class: "q-scrollable-host" }, h("div", { key: '049712eb9a314295b2aeba91c85a7d2a955badbd', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '2526fef43264a34029ab3de291cd5ad8b8169ab7', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: '826a4cabc557ad0560bddbbd366aaf0d895d0265' }))), this.mode === 'custom' && (h("div", { key: 'd6f2628d74339e74aca7c0de609f9e56e211666a', class: {
332
+ }, style: hostStyle }, h("div", { key: '3939986efab2d571d320275f463924e95ecf74e6', class: "q-scrollable-host" }, h("div", { key: '0d7a74e535ec7193bfebad641321063b73956f3c', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '3eb233aa73627d81ca2508a03875b76f0e6757e3', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: 'c8a09ee7523416dbd3722b68e512ed5adf15bd2e' }))), this.mode === 'custom' && (h("div", { key: '861bd997e2791e7cc822158765a176ffe170eac8', class: {
333
333
  'q-scrollbar-track': true,
334
334
  'is-dragging': this.isDragging,
335
- }, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '49bcccd913a9ce1d991d234ef024c586a4549904', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown, onKeyDown: this.handleThumbKeyDown, role: "scrollbar", "aria-controls": this.viewportId, "aria-orientation": "vertical", "aria-valuemin": "0", "aria-valuemax": this.scrollValueMax, "aria-valuenow": this.scrollValueNow, "aria-label": "Scroll content", tabindex: 0, part: "thumb" }))))));
335
+ }, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '11bbea0624721feedf692ca04532d1cc57a967ae', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown, onKeyDown: this.handleThumbKeyDown, role: "scrollbar", "aria-controls": this.viewportId, "aria-orientation": "vertical", "aria-valuemin": "0", "aria-valuemax": this.scrollValueMax, "aria-valuenow": this.scrollValueNow, "aria-label": "Scroll content", tabindex: 0, part: "thumb" }))))));
336
336
  }
337
337
  static get is() { return "q-scrollable"; }
338
338
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class QSection {
10
10
  reverse = false;
11
11
  columns = 1;
12
12
  render() {
13
- return h(Host, { key: 'c324ed569083addd204d27d7fd74bb3f9a1ec616' }, h("slot", { key: 'e8a7d513bf2d3a817f69c71b47d1691ef33ebf1f', name: "media" }), h("slot", { key: '0d6d389f6778f523434900e58b2631668364c9a5' }), h("slot", { key: 'a65738487e173661217ef1513d7a57d88801ef76', name: "actions" }));
13
+ return h(Host, { key: 'ee72cf532c33504dabf5a2f649d7246977fb5bd5' }, h("slot", { key: 'cf32a11855ff31365756afcae43ae94cad30c0be', name: "media" }), h("slot", { key: '5a4068e0629aeffa2629fbb0938ef0f99af339b7' }), h("slot", { key: '01d3e828e3a44fd7633bd65cd319f16ea0eaaf5a', name: "actions" }));
14
14
  }
15
15
  static get is() { return "q-section"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -18,13 +18,13 @@ export function renderNavItems(options) {
18
18
  'nav-item--active': isActive,
19
19
  'nav-item--parent': hasChildren,
20
20
  'nav-item--always-expanded': isAlwaysExpanded,
21
- }, "data-depth": depth, "data-depth-tone": depthTone, style: { paddingLeft: `${16 + depth * 16}px` }, role: isAlwaysExpanded ? 'heading' : 'button', tabindex: isAlwaysExpanded ? undefined : 0, title: accessibleLabel, "aria-label": accessibleLabel, "aria-level": isAlwaysExpanded ? String(Math.min(depth + 2, 6)) : undefined, "aria-expanded": hasChildren && !isAlwaysExpanded ? String(isExpanded) : undefined, "aria-current": isActive ? 'page' : undefined, onClick: isAlwaysExpanded ? undefined : () => onItemClick(item), onKeyDown: isAlwaysExpanded
21
+ }, "data-depth": depth, "data-depth-tone": depthTone, style: { paddingLeft: `${16 + depth * 16}px` }, role: isAlwaysExpanded ? 'heading' : 'button', tabindex: isAlwaysExpanded ? undefined : 0, title: options.collapsedRail || hasBadge ? accessibleLabel : undefined, "aria-label": accessibleLabel, "aria-level": isAlwaysExpanded ? String(Math.min(depth + 2, 6)) : undefined, "aria-expanded": hasChildren && !isAlwaysExpanded ? String(isExpanded) : undefined, "aria-current": isActive ? 'page' : undefined, onClick: isAlwaysExpanded ? undefined : () => onItemClick(item), onKeyDown: isAlwaysExpanded
22
22
  ? undefined
23
23
  : (e) => {
24
24
  if (e.key === 'Enter' || e.key === ' ') {
25
25
  e.preventDefault();
26
26
  onItemClick(item);
27
27
  }
28
- } }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: "lucide", size: "sm" })), h("span", { class: "nav-item__label" }, item.label), hasBadge && (h("span", { class: "nav-item__badge", part: "item-badge", "aria-hidden": "true" }, count > 99 ? '99+' : count)), hasChildren && !isAlwaysExpanded && (h("q-icon", { class: { 'nav-item__chevron': true, 'nav-item__chevron--open': isExpanded }, definition: ChevronRight, name: "chevron-right", size: "sm" }))), hasChildren && isExpanded && (h("div", { class: "nav-children", role: "group", "aria-label": item.label }, renderNavItems({ items: item.children, expandedGroups, activeValue, onItemClick, depth: depth + 1 })))));
28
+ } }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: "lucide", size: "sm" })), h("span", { class: "nav-item__label", part: hasChildren ? 'group-label' : 'item-label' }, item.label), hasBadge && (h("span", { class: "nav-item__badge", part: "item-badge", "aria-hidden": "true" }, count > 99 ? '99+' : count)), hasChildren && !isAlwaysExpanded && (h("q-icon", { class: { 'nav-item__chevron': true, 'nav-item__chevron--open': isExpanded }, definition: ChevronRight, name: "chevron-right", size: "sm" }))), hasChildren && isExpanded && (h("div", { class: "nav-children", role: "group", "aria-label": item.label }, renderNavItems({ ...options, items: item.children, depth: depth + 1 })))));
29
29
  });
30
30
  }
@@ -34,6 +34,8 @@ const COLLAPSE_ICON_DEFINITIONS = {
34
34
  * @part surface - Stable inner content surface for persistent panels.
35
35
  * @part header - Header region.
36
36
  * @part body - Body or navigation region.
37
+ * @part group-label - Text of a navigation item with children.
38
+ * @part item-label - Text of a navigation item without children.
37
39
  * @part item-badge - Navigation item's optional count badge.
38
40
  * @part footer - Footer region.
39
41
  * @part collapse-control - Built-in collapse button.
@@ -377,6 +379,7 @@ export class QSidepanel {
377
379
  'is-hidden': !showHeader,
378
380
  }, part: "header" }, h("span", { "aria-hidden": isHiddenCollapsed ? 'true' : undefined, inert: isHiddenCollapsed ? true : undefined }, h("slot", { name: "header", onSlotchange: this.handleHeaderSlotChange }))), h("div", { ref: el => { this.persistentContent = el; }, class: "nav-body", part: "body", "aria-hidden": isHiddenCollapsed ? 'true' : undefined, inert: isHiddenCollapsed ? true : undefined }, h("div", { class: "nav-surface" }, renderNavItems({
379
381
  items: this.normalizedItems,
382
+ collapsedRail: isCollapsed && this.collapseMode === 'rail',
380
383
  expandedGroups: this.expandedGroups,
381
384
  activeValue: this.value,
382
385
  onItemClick: this.handleNavItemClick,
@@ -8,7 +8,7 @@ export class QStack {
8
8
  gap = 'lg';
9
9
  align = 'stretch';
10
10
  render() {
11
- return h("div", { key: 'ff2923042dd41fa65f782701074ef8fac385803b', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: 'fb01b80bb7193336e9fbf210c0c972d137780e4a' }));
11
+ return h("div", { key: '32865ca88ad111b8a917a09e778ae9f79171194d', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: '2658bbb4e3ac5c83377964075a2bdec6a80fc5ee' }));
12
12
  }
13
13
  static get is() { return "q-stack"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -70,7 +70,7 @@ export class QTabs {
70
70
  warningContext: 'q-tabs items',
71
71
  });
72
72
  const activeIndex = this.getActiveIndex(items);
73
- return (h("div", { key: '32da2b9996b98b24ce121fced18f670d5b2652fe', class: {
73
+ return (h("div", { key: '81aa5e7fac6e345376700bc084ec744086d27821', class: {
74
74
  'tab-list': true,
75
75
  [`size-${this.size}`]: true,
76
76
  [`variant-${this.variant}`]: true,
@@ -24,12 +24,12 @@ export class QToolbar {
24
24
  /** Accessible label for the toolbar content group. */
25
25
  ariaLabel = null;
26
26
  render() {
27
- return (h(Host, { key: 'a6ee427416e1b2804d27a5c508286e7c8145de5e', style: { ...controlScope(this.size), '--_q-toolbar-gap': spaceValue(this.gap) } }, h("div", { key: 'f6e2c4ed7ef2a0e517dd396c1f92cd709e638e4e', class: {
27
+ return (h(Host, { key: 'e2b40231a6c02020e04c60cb7b41f2b928ae2a2d', style: { ...controlScope(this.size), '--_q-toolbar-gap': spaceValue(this.gap) } }, h("div", { key: 'b6e1e8e5df74635dd5635f66065db7aa57482a34', class: {
28
28
  toolbar: true,
29
29
  'is-compact': this.compact,
30
30
  'is-transparent': this.transparent,
31
31
  'is-bordered': this.bordered,
32
- }, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: 'a67f45efad7bbe963e23c491ac055328b8940b75', class: "toolbar-row", part: "row" }, h("div", { key: '7a9201f4bd923d8b4b4576083bb18735d31d8eb0', class: "toolbar-start", part: "start" }, h("slot", { key: '7d1931b85bbc9dfd62c2a4bba4f2edfdc390c5c6', name: "start" })), h("div", { key: '4c5a681c11c91247913e234424bf774293f600f5', class: "toolbar-content", part: "content" }, h("slot", { key: 'd60e8dfefd9db036961510af3ff687e1f17996cd' })), h("div", { key: '3c7b45b143cafd7a848d7e39770494b0346f28d4', class: "toolbar-end", part: "end" }, h("slot", { key: '3a53678160791e3f0967bbecb72345621be67fc7', name: "end" }))))));
32
+ }, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: '6eeb814ac0f5e1143d30a5a94e1561683c6331ef', class: "toolbar-row", part: "row" }, h("div", { key: 'ab3335dd66328a46a3b34fab55f15c5071d52eff', class: "toolbar-start", part: "start" }, h("slot", { key: 'b6294c96eb0e9d7c861a2c6b3d534ebba4243bc3', name: "start" })), h("div", { key: '6261f48792b510d1b0897127377061d94b721b83', class: "toolbar-content", part: "content" }, h("slot", { key: '5a2a1fbccbe1cc4ae6da65c6ff96a4b27700d8d0' })), h("div", { key: '91f7396785ea4d78051a67bb06fcea7e36380b4f', class: "toolbar-end", part: "end" }, h("slot", { key: 'b94cd25a8ef576ce5d9186955c5c2a21649c7f0b', name: "end" }))))));
33
33
  }
34
34
  static get is() { return "q-toolbar"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -81,7 +81,7 @@ export class QAvatar {
81
81
  const preset = typeof this.size === 'string' && ['sm', 'md', 'lg'].includes(this.size)
82
82
  ? this.size
83
83
  : 'custom';
84
- return (h("div", { key: '4756953378ca0e5ba3b882086f19f4e797aa0966', class: {
84
+ return (h("div", { key: 'd79746af518a28982843be37e02fc6e94894ceb4', class: {
85
85
  avatar: true,
86
86
  [`size-${preset}`]: true,
87
87
  [`shape-${this.shape}`]: true,
@@ -173,7 +173,7 @@ export class QImageComparison {
173
173
  const afterSrc = this.afterSrc;
174
174
  const ratio = this.frameRatio;
175
175
  const failed = !beforeSrc || !afterSrc || this.beforeStatus === 'error' || this.afterStatus === 'error' || this.cropUnavailable;
176
- return (h("div", { key: 'e5410625988c20e6a76cccff54da4f2c1b6a9c21', part: "frame", class: { frame: true, ready: this.ready }, style: { aspectRatio: String(ratio) }, ref: el => this.frame = el, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerEnd, onPointerCancel: this.handlePointerEnd, onLostPointerCapture: this.handlePointerEnd }, this.renderImage('after', afterSrc, generation, ratio), this.renderImage('before', beforeSrc, generation, ratio), !this.ready && (h("div", { key: 'e9ec809349bcdca73642dd85dfce7be2c85e8e5d', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: '261f042c581b98249982bbaacb5e011e83e3815c', class: "decorations", "aria-hidden": "true" }, h("span", { key: 'e44600d0ebea85584ade0032ac67b2760d26fc78', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '8b5ab613e9f85fe0b8031c73a18e42baa8199f13', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: '61cd1aa7fa75b4a17e1fdeb8b5589716e481fe30', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: 'c6e5a4ac428bd57659be6ab0c1f6fdc49b1c596b', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'd070ec8fc8404a6f37385b918cedd8ebd6414204', part: "control", class: "control", ref: el => this.range = el, type: "range", min: "0", max: "100", step: "1", value: this.position, disabled: !this.ready, "aria-label": this.ariaLabel || 'Image comparison', "aria-valuetext": `${Math.round(this.position)}% ${this.beforeLabel || 'Before'} revealed`, onInput: event => this.updatePosition(Number(event.target.value)) })));
176
+ return (h("div", { key: '2d05bd7c03b0108f16150102280b705d29276400', part: "frame", class: { frame: true, ready: this.ready }, style: { aspectRatio: String(ratio) }, ref: el => this.frame = el, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerEnd, onPointerCancel: this.handlePointerEnd, onLostPointerCapture: this.handlePointerEnd }, this.renderImage('after', afterSrc, generation, ratio), this.renderImage('before', beforeSrc, generation, ratio), !this.ready && (h("div", { key: 'd72e679ceaea95ba4a28fd66ad072c96e9e27be5', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: 'ce7fd545ea71ac6d69963fc9ba7d1bb760bcff5d', class: "decorations", "aria-hidden": "true" }, h("span", { key: '34d1c59ff46aa2285375c28adea9abadb35704ba', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '236d7d9aa9165cc44e43ebef87c4a88ae3fb1b57', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: 'ee7d7164a99d7609418f70183f80b28c9d858ee9', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: '625466a5da45dd47eb96e89200271af7ec068481', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'a33ba246c25ebcc9b1f0f187d861e71f80a94de2', part: "control", class: "control", ref: el => this.range = el, type: "range", min: "0", max: "100", step: "1", value: this.position, disabled: !this.ready, "aria-label": this.ariaLabel || 'Image comparison', "aria-valuetext": `${Math.round(this.position)}% ${this.beforeLabel || 'Before'} revealed`, onInput: event => this.updatePosition(Number(event.target.value)) })));
177
177
  }
178
178
  static get is() { return "q-image-comparison"; }
179
179
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class QMedia {
10
10
  loading = 'lazy';
11
11
  alt = '';
12
12
  render() {
13
- return h(Host, { key: '49f6d5a90a5cb7afeee7ab095fef25de2033640a' }, h("slot", { key: '96b02b03210be05385b0cef1e815ea2e1815696f' }), h("slot", { key: 'ed0a47203720efe45c55e00718d20f2120c1c183', name: "fallback" }));
13
+ return h(Host, { key: 'a3c53eeed8a4b7f93564b14b79a6e860fdbe483c' }, h("slot", { key: '9ce44140bf386ff7105e4e7689c080e11ecac3a4' }), h("slot", { key: '25ba28dcd573c9594118f11ff92aef555e948c20', name: "fallback" }));
14
14
  }
15
15
  static get is() { return "q-media"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -1,6 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- import { getSlottedElements, handleTabTrap, safeFocus } from "../../../utils/dom";
3
- const LIGHTBOX_FOCUS_DELAY_MS = 50;
2
+ import { focusFirstElement, getSlottedElements, handleTabTrap } from "../../../utils/dom";
4
3
  /**
5
4
  * Gallery layout for q-thumbnail children with an optional modal lightbox.
6
5
  * @slot - One or more q-thumbnail elements.
@@ -16,10 +15,22 @@ export class QReel {
16
15
  // ========================= [2] INTERNAL STATE & REFS =========================
17
16
  activeMedia = null;
18
17
  closeButtonRef;
19
- focusTimer;
18
+ openingThumbnail;
19
+ focusAfterRender;
20
20
  // ========================= [3] LIFECYCLE & WATCHERS ==========================
21
+ componentDidRender() {
22
+ const target = this.focusAfterRender;
23
+ this.focusAfterRender = undefined;
24
+ if (target === 'viewer') {
25
+ this.closeButtonRef?.focus();
26
+ }
27
+ else if (target?.isConnected) {
28
+ focusFirstElement(target);
29
+ }
30
+ }
21
31
  disconnectedCallback() {
22
- this.clearFocusTimer();
32
+ this.focusAfterRender = undefined;
33
+ this.openingThumbnail = undefined;
23
34
  }
24
35
  handleLightboxChange(lightbox) {
25
36
  if (!lightbox) {
@@ -36,9 +47,11 @@ export class QReel {
36
47
  handleThumbnailMaximize(event) {
37
48
  if (!this.lightbox)
38
49
  return;
50
+ if (!this.activeMedia)
51
+ this.openingThumbnail = event.detail.triggerEl;
52
+ this.focusAfterRender = 'viewer';
39
53
  this.activeMedia = event.detail;
40
54
  this.qLightboxOpen.emit();
41
- this.scheduleFocus(this.closeButtonRef);
42
55
  }
43
56
  handleGlobalKeyDown(event) {
44
57
  if (!this.activeMedia)
@@ -48,10 +61,10 @@ export class QReel {
48
61
  closeLightbox = () => {
49
62
  if (!this.activeMedia)
50
63
  return;
51
- const originalTrigger = this.activeMedia?.triggerEl;
64
+ this.focusAfterRender = this.openingThumbnail;
65
+ this.openingThumbnail = undefined;
52
66
  this.activeMedia = null;
53
67
  this.qLightboxClose.emit();
54
- this.scheduleFocus(originalTrigger);
55
68
  };
56
69
  handleKeyDown = (e) => {
57
70
  this.handleLightboxKeyDown(e);
@@ -119,6 +132,7 @@ export class QReel {
119
132
  const thumbnails = this.getThumbnails();
120
133
  if (index >= 0 && index < thumbnails.length) {
121
134
  const thumb = thumbnails[index];
135
+ this.focusAfterRender = 'viewer';
122
136
  this.activeMedia = {
123
137
  src: thumb.src,
124
138
  label: thumb.label,
@@ -126,32 +140,18 @@ export class QReel {
126
140
  alt: thumb.alt,
127
141
  triggerEl: thumb,
128
142
  };
129
- this.scheduleFocus(this.closeButtonRef);
130
143
  }
131
144
  }
132
- clearFocusTimer() {
133
- if (this.focusTimer) {
134
- clearTimeout(this.focusTimer);
135
- this.focusTimer = undefined;
136
- }
137
- }
138
- scheduleFocus(element) {
139
- this.clearFocusTimer();
140
- this.focusTimer = setTimeout(() => {
141
- this.focusTimer = undefined;
142
- safeFocus(element);
143
- }, LIGHTBOX_FOCUS_DELAY_MS);
144
- }
145
145
  // ===================== [6] RENDER (Visual Template Only) =====================
146
146
  render() {
147
147
  const thumbnails = this.getThumbnails();
148
148
  const currentIdx = this.getActiveIndex(thumbnails);
149
149
  const hasPrev = currentIdx > 0;
150
150
  const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
151
- return (h("div", { key: '8c380eddb422e7aa04daa42d54944bf3e321cfd1', class: {
151
+ return (h("div", { key: 'a342240afb249070ce94a5c9a0af8dca77c55e26', class: {
152
152
  'reel-container': true,
153
153
  [`layout-${this.layout}`]: true,
154
- } }, h("slot", { key: 'f28ad233d221f13eb8c72b15fc2cd32d8792d58c' }), this.activeMedia && (h("div", { key: 'f3a6e64dd9f1a1b35fe8319d47a70245b7d47fa7', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '7063a5f5f0e14bcbd1e1f94b2bfc49bc3197c687', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: '7f7857e3d503c5c59593207f274a489293d2f806', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'a17b42d0f8be9105b6709202efe08ecba719fcd3', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '205fbf145f34926042d8563c9bc17b00f499c14a', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '76fb2144308dc2c42c73c87bb4a487c68fe738ef', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: 'f4e3069acf0ed623ece4e36d1990e1871d780943', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '3b7eca129e4de80e7a6a7a64e5674a888fab9cf1', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '3a37c591dcedcab431c3d3104d71c61688820599', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: 'f9b9fdb2158fa7d8e64f1d5980781f0c7f902095', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '8a3f09375a1ec756623ee492a1b9605d5f13a0c9', points: "9 18 15 12 9 6" })))), h("div", { key: '589de81633eea3ca158bae65f593db95a7ce52a7', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: '600aafa8078da0fc103f49c6d81bd30f1c569a08', class: "lightbox-caption" }, this.activeMedia.label)))))));
154
+ } }, h("slot", { key: '5da17a261506c3fe36eb3bdb066103663e4a161c' }), this.activeMedia && (h("div", { key: 'a6d7a15e912ae6b4fe1ac5507e6641817a8931f2', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '71db71b1812b9950bd663b26764a263b4cc6bac6', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: '7eb138f235f950cb984463f5f2b2eda5689da7e3', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '069c46fed3cfada67d7c5655c4344563af838f06', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '2ffcf854b77a902f19963faca1551a0328fde191', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '17ae53c37d4040ec5f61e9bd5c7b14be70120bdf', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: '034ed57b13a29fc1d9de340d7098e82e2c76f4e3', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '522ac09b24c3cda83125d7d5c5ada7e0ad652818', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '639dcdb54a103614324e6b9face85274bae725ca', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: '442e27f5a77d637c7a7818326a86c8dd365226b1', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'c79d346f12dfba409d35be30966ecf38403b94dd', points: "9 18 15 12 9 6" })))), h("div", { key: 'c498b03e5a25a9d995732d29da366c9570bf1b05', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: '2b6a816343a019bb6c89eb1e2f395d066fb9dbca', class: "lightbox-caption" }, this.activeMedia.label)))))));
155
155
  }
156
156
  static get is() { return "q-reel"; }
157
157
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,33 @@
1
+ import { afterEach, expect, it, vi } from "vitest";
2
+ import { userEvent } from "vitest/browser";
3
+ // @ts-ignore - the browser tests run after Stencil generates the loader.
4
+ import { defineCustomElements } from "../../../../../../packages/browser/components/dist/loader";
5
+ defineCustomElements();
6
+ afterEach(() => document.body.replaceChildren());
7
+ it('focuses the viewer on first open and restores the opening thumbnail after navigation', async () => {
8
+ const reel = document.createElement('q-reel');
9
+ const thumbnails = ['First image', 'Second image'].map(label => {
10
+ const thumbnail = document.createElement('q-thumbnail');
11
+ thumbnail.label = label;
12
+ thumbnail.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16"/%3E';
13
+ return thumbnail;
14
+ });
15
+ reel.append(...thumbnails);
16
+ document.body.append(reel);
17
+ const opener = await vi.waitFor(() => {
18
+ const trigger = thumbnails[0].shadowRoot?.querySelector('[role="button"]');
19
+ expect(trigger).toBeTruthy();
20
+ return trigger;
21
+ });
22
+ opener.focus();
23
+ await userEvent.keyboard('{Enter}');
24
+ await vi.waitFor(() => expect(reel.shadowRoot?.activeElement?.getAttribute('aria-label')).toBe('Close viewer'));
25
+ await userEvent.keyboard('{ArrowRight}');
26
+ await vi.waitFor(() => expect(reel.shadowRoot?.querySelector('[role="dialog"]')?.getAttribute('aria-label')).toBe('Second image'));
27
+ await userEvent.keyboard('{Escape}');
28
+ await vi.waitFor(() => {
29
+ expect(reel.shadowRoot?.querySelector('[role="dialog"]')).toBeNull();
30
+ expect(document.activeElement).toBe(thumbnails[0]);
31
+ expect(thumbnails[0].shadowRoot?.activeElement).toBe(opener);
32
+ });
33
+ });
@@ -34,11 +34,11 @@ export class QThumbnail {
34
34
  };
35
35
  // ===================== [6] RENDER (Visual Template Only) =====================
36
36
  render() {
37
- return (h("div", { key: '16b166cd500f563aed661e72911d4f446293765a', class: {
37
+ return (h("div", { key: '26ac5609ca43846bc136b6213c132253dd42b40a', class: {
38
38
  'thumb-wrapper': true,
39
39
  'is-highlighted': this.highlighted,
40
40
  'is-video': this.video,
41
- }, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: '7469ffc9550790a406f2fea4c62e45e6410d6f44', class: "thumb-media-container" }, h("img", { key: 'd9fe1697df917b78ea8dc7ba4555f8b61e986872', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: 'e052677c066596d04fbee87b7231d590b7cb4b90', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: 'a74a05147b38972b004c53bd04c5f1270acbe4a5', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: 'b53e1938fa735055278b22f9cdedf217befed643', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: '9f9cfb421b6313e07cd71705b082245969184581', class: "thumb-caption" }, h("span", { key: '686d3ec6e4bb05b0ab0fd3ae78e73ba5c9930862', class: "caption-text" }, this.label))), h("slot", { key: '14f7ea0aba31712761a749516407a35fc17215fe' })));
41
+ }, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: 'd38446fb11427dfcbbbf77ad5f74f05201419df6', class: "thumb-media-container" }, h("img", { key: '598186ea753e247bdd991df4a73e2a8e23328cae', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: '6decdf78e9169ffe48fc21ac326e92948ac1c99a', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: '52f88f8a3ba7c29fee38e10ac8a82e311ee57550', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: '4f1fc8e49bd96ccad99a97a94e756adf78c89701', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: 'e55eb4f9cfd407742ba5d1aced86494ffa1fb87d', class: "thumb-caption" }, h("span", { key: 'a279338834d2f2747d8fa5ddcb14728b3fec67e7', class: "caption-text" }, this.label))), h("slot", { key: '78b2793b70d314f3b4e73371062428597ffabe38' })));
42
42
  }
43
43
  static get is() { return "q-thumbnail"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -198,9 +198,9 @@ export class QDialog {
198
198
  'dialog-backdrop': true,
199
199
  [`effect-${backdropEffect}`]: true,
200
200
  };
201
- return (h("div", { key: 'c0ac67222109ef770da940730d15f7b8bc7247be', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'bae02db8240037595e49ba4a24f0500b27d9dcdf', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'af17425f8d0e1bc49dafe666d9c784e38404e807', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '040b01428317995ed761e4fe8ba8acfa9f98005a', class: "dialog-header", part: "header" }, h("slot", { key: '9fb2d093c17e214f3aee8e87506bde98cfe6e1c7', name: "header" }, titleText && h("h2", { key: 'e3ddb11d7ec13ba667beeeec46cbc939f47429fc', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: 'd719f755f33f0a540dd842d87a23c08563afc35d', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '679be75b97c3cb307dc0c8e36ada30796b9b67c5', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '40f190e8c82b440a67b2f82c5e1eb0c76092d14d', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'e96bc59a92ad0b1111907c899362ed05c54a2a30', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: 'a024b5365a183400ca8fda240e967eb4b6258fdf', class: "dialog-body", part: "body" }, h("slot", { key: 'c0aa788e43f7615732a291cd21d035426acf76ff' }, this.message && h("p", { key: 'cd68e2e7b245a85a0b92ed2b523b1859b65f3c9f', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: '066698d99c33dbdb3266d19c3d3b4acc69fa8570', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: 'd6ee1006406316e8e822a82a20ea501825db14bd', name: "footer", onSlotchange: event => {
201
+ return (h("div", { key: '0befd87b753a6e739e9af9121a09a3c2bd479009', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'c5b4f3f93c4db2975c6892209001efc221d6b396', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'a331bc9d80c33e023b030d3c632fba616fb486c4', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '03a15d5f2a3b84be42fd1209ebf8bdc5b132ccb2', class: "dialog-header", part: "header" }, h("slot", { key: 'ef03d4235b44be631fd970261ff56f36f4569a27', name: "header" }, titleText && h("h2", { key: '066ff0be97249563618aba77ef2dc937b524a9b1', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: '2c645e1f6cf629f05dbc968db8e7cb9f09a23733', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '0d0ac5e353a6f576a50e52a9d323079e3b875b1b', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'db1c90be95edcd970aace8858e91ef8188f3f9c7', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'ebaaf1378ee3b9b1352873bcea8640afabd1f4a4', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: 'b1de1e1fcf05feb6276c8fbd2a0395cd99f04bca', class: "dialog-body", part: "body" }, h("slot", { key: 'e40b55efc10544d85eaa125ce0b93f038b9cf431' }, this.message && h("p", { key: '654f5e96b6367123338223966c4385d0be6d9df2', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: 'd3b13289af5636134cc940ab74bf04f87fb2e183', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: '82db83e94e9d933f75cdfde99a0d7f072619b230', name: "footer", onSlotchange: event => {
202
202
  this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
203
- } }, h("div", { key: '97dceeacd21f3d045bfc885510b3b2b71dc9264a', class: "dialog-actions" }, this.showCancel && (h("button", { key: '5e46a756f1894edb95ee746048bf8b60aa942acd', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: 'f1769f0987e836ec5e02095e64a9efe9e9a88743', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'a8fe2b08e474ad71c07dd1a1c0f10e617a7ce2ed', class: "spinner-el" }), h("span", { key: '36f6f2690bc5043754fe2a889a132b1533249f0f', class: "btn-label" }, this.confirmLabel)))))))));
203
+ } }, h("div", { key: 'f4893c09c120757ddde44b85d5745ce106de8e08', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'd14a07895f1a843ac4d89f3c03fbd32d8194aa1c', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '810f5b3be5bb24d311fee5a5709522941ee57abc', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'e63ca58d135ac134af4cbb5b5d3ab787b5dc7f20', class: "spinner-el" }), h("span", { key: '0cfe7541848ec0107fbf940e0b794bbc80e81ebe', class: "btn-label" }, this.confirmLabel)))))))));
204
204
  }
205
205
  static get is() { return "q-dialog"; }
206
206
  static get encapsulation() { return "shadow"; }
@@ -101,9 +101,9 @@ export class QTooltip {
101
101
  }
102
102
  // ===================== [6] RENDER (Visual Template Only) =====================
103
103
  render() {
104
- return (h(Host, { key: 'f4a681553a400552be065481315cd5503c2bcc74', class: {
104
+ return (h(Host, { key: '66d5e67ca034bd9661929295a1cd21261f91fd90', class: {
105
105
  'is-visible': this.visible,
106
- }, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: 'ba8dcfb45999154c9157458d749f1423952bae81', class: "tooltip-bubble" }, this.content || h("slot", { key: 'f22b541d862e0e9e48e738127f4f2ec8e6dcf155' }))));
106
+ }, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '013fc07ba7b829734a7c323c06b3fb22deb25d6b', class: "tooltip-bubble" }, this.content || h("slot", { key: '71234028dbdacbac2b5529f75e5e19e473b0bfe3' }))));
107
107
  }
108
108
  static get is() { return "q-tooltip"; }
109
109
  static get encapsulation() { return "shadow"; }
@@ -918,7 +918,7 @@ export const componentPresetTokens = {
918
918
  '--q-table-cell-padding-inline': { compact: '8px', comfortable: '14px' },
919
919
  '--q-dropdown-option-padding': { compact: '10px 14px', comfortable: '12px 18px' },
920
920
  '--q-tooltip-padding': { compact: '6px 10px', comfortable: '8px 14px' },
921
- '--q-syntax-padding': { compact: '16px', comfortable: '24px' },
921
+ '--q-syntax-padding': { compact: 'var(--q-padding-lg, 1rem)', comfortable: 'var(--q-padding-lg, 1.5rem)' },
922
922
  '--q-syntax-compact-padding': { compact: '10px', comfortable: '16px' },
923
923
  '--q-syntax-header-padding': { compact: '4px 16px', comfortable: '8px 24px' },
924
924
  '--q-sidepanel-nav-font': { compact: '0.875rem', comfortable: '1rem' },
@@ -1,4 +1,4 @@
1
- export function syncNativeControlValidity({ internals, control, disabled, customError, }) {
1
+ export function syncNativeControlValidity({ internals, control, anchor = control, disabled, customError, }) {
2
2
  if (typeof internals.setValidity !== 'function' ||
3
3
  !control.validity) {
4
4
  return;
@@ -9,14 +9,14 @@ export function syncNativeControlValidity({ internals, control, disabled, custom
9
9
  }
10
10
  const message = customError?.trim();
11
11
  if (message) {
12
- internals.setValidity({ customError: true }, message, control);
12
+ internals.setValidity({ customError: true }, message, anchor);
13
13
  return;
14
14
  }
15
15
  if (control.validity.valid) {
16
16
  internals.setValidity({});
17
17
  return;
18
18
  }
19
- internals.setValidity(validityFlags(control.validity), control.validationMessage || 'Please enter a valid value.', control);
19
+ internals.setValidity(validityFlags(control.validity), control.validationMessage || 'Please enter a valid value.', anchor);
20
20
  }
21
21
  export function syncRequiredBooleanValidity(internals, options) {
22
22
  if (typeof internals.setValidity !== 'function') {
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-D2nxHd1b.js";export{f as format}from"./p-BJiYCN3i.js";export{c as calculateImageCropGeometry,h as hasPartialImageCrop,i as isImageCropValid}from"./p-BcL0NVv0.js";export{i as identifyItems,r as reconcileByIdentity}from"./p-CGZPmEUB.js";export{Q as Q_MAP_DEFAULT_CLUSTER_GROUP,a as Q_MAP_MARKER_CALLOUT_PLACEMENTS,b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS,c as Q_MAP_MARKER_CALLOUT_VISIBILITIES,d as Q_MAP_MARKER_KINDS,e as Q_MAP_MARKER_RINGS,f as Q_MAP_MARKER_SIZES,g as Q_MAP_MARKER_VARIANTS,h as Q_MAP_RASTER_TILE_LOADING_POLICIES}from"./p-CoIMrUb3.js";export{g as getDataTableCellSlotName,a as getDataTableCellValue,b as getDataTableItemKey,c as getDataTableRowGutterSlotName}from"./p-SzKf4WZF.js";export{c as configureQIcons,r as registerQIcons}from"./p-CpI3m4_T.js";export{t as toast}from"./p-BIIQL66b.js";
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CpbWWDiY.js";export{f as format}from"./p-BJiYCN3i.js";export{c as calculateImageCropGeometry,h as hasPartialImageCrop,i as isImageCropValid}from"./p-BcL0NVv0.js";export{i as identifyItems,r as reconcileByIdentity}from"./p-CGZPmEUB.js";export{Q as Q_MAP_DEFAULT_CLUSTER_GROUP,a as Q_MAP_MARKER_CALLOUT_PLACEMENTS,b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS,c as Q_MAP_MARKER_CALLOUT_VISIBILITIES,d as Q_MAP_MARKER_KINDS,e as Q_MAP_MARKER_RINGS,f as Q_MAP_MARKER_SIZES,g as Q_MAP_MARKER_VARIANTS,h as Q_MAP_RASTER_TILE_LOADING_POLICIES}from"./p-CoIMrUb3.js";export{g as getDataTableCellSlotName,a as getDataTableCellValue,b as getDataTableItemKey,c as getDataTableRowGutterSlotName}from"./p-SzKf4WZF.js";export{c as configureQIcons,r as registerQIcons}from"./p-CpI3m4_T.js";export{t as toast}from"./p-BIIQL66b.js";