@webquark/browser 1.1.0-dev.9 → 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 (489) hide show
  1. package/dist/cjs/{action.props-N0urQtdP.js → action.props-CNe2JXR5.js} +1 -1
  2. package/dist/cjs/{dom-Dk77oFF6.js → dom-BYrqRYna.js} +1 -1
  3. package/dist/cjs/{field-CsrQGhG-.js → field-BRAR56Ex.js} +1 -1
  4. package/dist/cjs/{form-control-validity-D1ukC0_e.js → form-control-validity-BkilGb3E.js} +3 -3
  5. package/dist/cjs/{index-DWXhKHCB.js → index-BN-WdOQM.js} +17 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/q-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/q-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/q-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/q-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/q-button_3.cjs.entry.js +907 -0
  12. package/dist/cjs/q-card.cjs.entry.js +3 -3
  13. package/dist/cjs/q-carousel.cjs.entry.js +120 -18
  14. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/q-control-group.cjs.entry.js +64 -0
  16. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  17. package/dist/cjs/q-data-table.cjs.entry.js +4 -4
  18. package/dist/cjs/q-dialog.cjs.entry.js +4 -4
  19. package/dist/cjs/q-divider.cjs.entry.js +26 -0
  20. package/dist/cjs/q-dropdown.cjs.entry.js +320 -104
  21. package/dist/cjs/q-form.cjs.entry.js +17 -7
  22. package/dist/cjs/q-grid.cjs.entry.js +3 -3
  23. package/dist/cjs/q-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/q-image-comparison.cjs.entry.js +2 -2
  25. package/dist/cjs/q-inline.cjs.entry.js +3 -3
  26. package/dist/cjs/q-input_2.cjs.entry.js +10 -8
  27. package/dist/cjs/q-link.cjs.entry.js +2 -2
  28. package/dist/cjs/q-map.cjs.entry.js +2 -2
  29. package/dist/cjs/q-media.cjs.entry.js +2 -2
  30. package/dist/cjs/q-navbar.cjs.entry.js +3 -3
  31. package/dist/cjs/q-pagination.cjs.entry.js +2 -2
  32. package/dist/cjs/q-panel.cjs.entry.js +7 -7
  33. package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
  34. package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
  35. package/dist/cjs/q-reel.cjs.entry.js +24 -24
  36. package/dist/cjs/q-section.cjs.entry.js +2 -2
  37. package/dist/cjs/q-sidepanel.cjs.entry.js +5 -4
  38. package/dist/cjs/q-slider.cjs.entry.js +122 -0
  39. package/dist/cjs/q-stack.cjs.entry.js +3 -3
  40. package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
  41. package/dist/cjs/q-step-diagram.cjs.entry.js +4 -4
  42. package/dist/cjs/q-syntax-box.cjs.entry.js +180 -719
  43. package/dist/cjs/q-syntax-view.cjs.entry.js +65 -0
  44. package/dist/cjs/q-tabs.cjs.entry.js +2 -2
  45. package/dist/cjs/q-textarea.cjs.entry.js +8 -6
  46. package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
  47. package/dist/cjs/q-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/q-toggle.cjs.entry.js +7 -7
  49. package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
  50. package/dist/cjs/syntax-content-BmSExDiW.js +910 -0
  51. package/dist/cjs/{tokens-RMRaIOqv.js → tokens-BMrfol_M.js} +4 -1
  52. package/dist/cjs/webquark.cjs.js +2 -2
  53. package/dist/collection/collection-manifest.json +6 -1
  54. package/dist/collection/components/actions/button/button.css +49 -9
  55. package/dist/collection/components/actions/button/{button.utils.unit.test.js → test/button.utils.unit.test.js} +1 -1
  56. package/dist/collection/components/communication/alert/alert.css +4 -1
  57. package/dist/collection/components/content/carousel/carousel.css +7 -0
  58. package/dist/collection/components/content/carousel/carousel.js +256 -10
  59. package/dist/collection/components/content/carousel/internals/autoplay.js +31 -6
  60. package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +122 -0
  61. package/dist/collection/components/data-display/accordion/accordion.js +1 -1
  62. package/dist/collection/components/data-display/data-table/data-table.js +3 -3
  63. package/dist/collection/components/data-display/map/map.js +1 -1
  64. package/dist/collection/components/data-display/map/test/map.cmp.test.js +1 -1
  65. package/dist/collection/components/data-display/pagination/pagination.js +1 -1
  66. package/dist/collection/components/data-display/syntax-box/internals/formatters/css.js +4 -0
  67. package/dist/collection/components/data-display/syntax-box/internals/formatters/formatter.js +20 -0
  68. package/dist/collection/{utils → components/data-display/syntax-box/internals/formatters}/formatter.unit.test.js +38 -11
  69. package/dist/collection/components/data-display/syntax-box/internals/formatters/html.js +4 -0
  70. package/dist/collection/components/data-display/syntax-box/internals/formatters/javascript.js +4 -0
  71. package/dist/collection/{utils/formatter.js → components/data-display/syntax-box/internals/formatters/json.js} +2 -20
  72. package/dist/collection/components/data-display/syntax-box/internals/formatters/languages.js +15 -0
  73. package/dist/collection/components/data-display/syntax-box/internals/formatters/util/prettier.js +17 -0
  74. package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.js +1 -1
  75. package/dist/collection/components/data-display/syntax-box/internals/views.js +29 -0
  76. package/dist/collection/components/data-display/syntax-box/internals/views.unit.test.js +19 -0
  77. package/dist/collection/components/data-display/syntax-box/syntax-box.css +107 -36
  78. package/dist/collection/components/data-display/syntax-box/syntax-box.js +179 -637
  79. package/dist/collection/components/data-display/syntax-box/syntax-content.js +748 -0
  80. package/dist/collection/components/data-display/syntax-box/syntax-ui.js +8 -0
  81. package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +2 -2
  82. package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +1 -1
  83. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +20 -20
  84. package/dist/collection/components/data-display/syntax-box/test/syntax-views.cmp.test.js +228 -0
  85. package/dist/collection/components/data-display/syntax-view/syntax-view.js +64 -0
  86. package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
  87. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
  88. package/dist/collection/components/inputs/dropdown/dropdown.css +148 -0
  89. package/dist/collection/components/inputs/dropdown/dropdown.js +422 -104
  90. package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +28 -0
  91. package/dist/collection/components/inputs/dropdown/test/fit-options.cmp.test.js +120 -0
  92. package/dist/collection/components/inputs/dropdown/test/multiple.cmp.test.js +124 -0
  93. package/dist/collection/components/inputs/dropdown/test/search-mode.cmp.test.js +186 -0
  94. package/dist/collection/components/inputs/form/form.js +2 -2
  95. package/dist/collection/components/inputs/form/internals/controls.js +2 -2
  96. package/dist/collection/components/inputs/form/internals/field-state.js +6 -1
  97. package/dist/collection/components/inputs/form/internals/values.js +5 -0
  98. package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +14 -8
  99. package/dist/collection/components/inputs/input/input.css +42 -0
  100. package/dist/collection/components/inputs/input/input.js +31 -3
  101. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +22 -0
  102. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
  103. package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
  104. package/dist/collection/components/inputs/slider/slider.css +44 -0
  105. package/dist/collection/components/inputs/slider/slider.js +383 -0
  106. package/dist/collection/components/inputs/slider/test/slider.cmp.test.js +45 -0
  107. package/dist/collection/components/inputs/textarea/textarea.css +20 -0
  108. package/dist/collection/components/inputs/textarea/textarea.js +30 -2
  109. package/dist/collection/components/inputs/toggle/test/toggle-layout.cmp.test.js +69 -0
  110. package/dist/collection/components/inputs/toggle/toggle.css +27 -0
  111. package/dist/collection/components/inputs/toggle/toggle.js +3 -3
  112. package/dist/collection/components/layout/control-group/control-group.css +108 -0
  113. package/dist/collection/components/layout/control-group/control-group.js +142 -0
  114. package/dist/collection/components/layout/control-group/test/control-group.cmp.test.js +163 -0
  115. package/dist/collection/components/layout/divider/divider.css +40 -0
  116. package/dist/collection/components/layout/divider/divider.js +121 -0
  117. package/dist/collection/components/layout/divider/test/divider.cmp.test.js +105 -0
  118. package/dist/collection/components/layout/grid/grid.js +1 -1
  119. package/dist/collection/components/layout/inline/inline.js +1 -1
  120. package/dist/collection/components/layout/navbar/navbar.js +2 -2
  121. package/dist/collection/components/layout/panel/panel.js +4 -4
  122. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  123. package/dist/collection/components/layout/section/section.js +1 -1
  124. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +2 -2
  125. package/dist/collection/components/layout/sidepanel/sidepanel.js +3 -0
  126. package/dist/collection/components/layout/stack/stack.js +1 -1
  127. package/dist/collection/components/layout/tabs/tabs.js +1 -1
  128. package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
  129. package/dist/collection/components/media/avatar/avatar.js +1 -1
  130. package/dist/collection/components/media/image-comparison/image-comparison.js +1 -1
  131. package/dist/collection/components/media/media/media.js +1 -1
  132. package/dist/collection/components/media/reel/reel.js +23 -23
  133. package/dist/collection/components/media/reel/test/focus.cmp.test.js +33 -0
  134. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  135. package/dist/collection/components/overlays/dialog/dialog.js +2 -2
  136. package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
  137. package/dist/collection/theme/test/input-width.cmp.test.js +117 -0
  138. package/dist/collection/theme/test/presets.unit.test.js +58 -0
  139. package/dist/collection/theme/tokens.js +4 -1
  140. package/dist/collection/utils/dom.js +1 -1
  141. package/dist/collection/utils/form-control-validity.js +3 -3
  142. package/dist/components/index.js +1 -1
  143. package/dist/components/p-B610wOGe.js +1 -0
  144. package/dist/components/p-BGlbV43y.js +13 -0
  145. package/dist/components/{p-Dfp_If-_.js → p-BKWL9zOn.js} +1 -1
  146. package/dist/components/p-BxxU73QQ.js +1 -0
  147. package/dist/components/{p-Cg0Mv7Vb.js → p-CVEQfA-v.js} +1 -1
  148. package/dist/components/p-CpbWWDiY.js +1 -0
  149. package/dist/{webquark/p-Dhsn99q4.js → components/p-D2fczi8m.js} +1 -1
  150. package/dist/components/{p-6PPZ2sIO.js → p-D5vpGqZ9.js} +1 -1
  151. package/dist/components/p-DQIYo8zC.js +1 -0
  152. package/dist/components/p-DX6PCIPS.js +1 -0
  153. package/dist/components/p-DY9D4z7Z.js +1 -0
  154. package/dist/components/p-DbzjRzhu.js +1 -0
  155. package/dist/components/{p-DQhiqYeq.js → p-DkanItP3.js} +1 -1
  156. package/dist/components/{p-CKuPOxKN.js → p-RX4DjgmV.js} +1 -1
  157. package/dist/components/{p-DlIn_ZWk.js → p-Ts5oOvg8.js} +1 -1
  158. package/dist/components/p-u1Qz6OcP.js +1 -0
  159. package/dist/components/q-accordion.js +1 -1
  160. package/dist/components/q-alert.js +1 -1
  161. package/dist/components/q-avatar.js +1 -1
  162. package/dist/components/q-banner.js +1 -1
  163. package/dist/components/q-button.js +1 -1
  164. package/dist/components/q-card.js +1 -1
  165. package/dist/components/q-carousel.js +1 -1
  166. package/dist/components/q-chip.js +1 -1
  167. package/dist/components/q-control-group.d.ts +11 -0
  168. package/dist/components/q-control-group.js +1 -0
  169. package/dist/components/q-conversation-bubble.js +1 -1
  170. package/dist/components/q-data-table.js +1 -1
  171. package/dist/components/q-dialog.js +1 -1
  172. package/dist/components/q-divider.d.ts +11 -0
  173. package/dist/components/q-divider.js +1 -0
  174. package/dist/components/q-dropdown.js +1 -1
  175. package/dist/components/q-form.js +1 -1
  176. package/dist/components/q-grid.js +1 -1
  177. package/dist/components/q-icon.js +1 -1
  178. package/dist/components/q-image-comparison.js +1 -1
  179. package/dist/components/q-inline.js +1 -1
  180. package/dist/components/q-input.js +1 -1
  181. package/dist/components/q-link.js +1 -1
  182. package/dist/components/q-map.js +1 -1
  183. package/dist/components/q-media.js +1 -1
  184. package/dist/components/q-navbar.js +1 -1
  185. package/dist/components/q-pagination.js +1 -1
  186. package/dist/components/q-panel.js +1 -1
  187. package/dist/components/q-progress.js +1 -1
  188. package/dist/components/q-quantity-selector.js +1 -1
  189. package/dist/components/q-radio-group.js +1 -1
  190. package/dist/components/q-reel.js +1 -1
  191. package/dist/components/q-scrollable.js +1 -1
  192. package/dist/components/q-section.js +1 -1
  193. package/dist/components/q-sidepanel.js +2 -2
  194. package/dist/components/q-slider.d.ts +11 -0
  195. package/dist/components/q-slider.js +1 -0
  196. package/dist/components/q-stack.js +1 -1
  197. package/dist/components/q-step-diagram-item.js +1 -1
  198. package/dist/components/q-step-diagram.js +1 -1
  199. package/dist/components/q-syntax-box.js +1 -13
  200. package/dist/components/q-syntax-view.d.ts +11 -0
  201. package/dist/components/q-syntax-view.js +1 -0
  202. package/dist/components/q-tabs.js +1 -1
  203. package/dist/components/q-textarea.js +1 -1
  204. package/dist/components/q-thumbnail.js +1 -1
  205. package/dist/components/q-toast.js +1 -1
  206. package/dist/components/q-toggle.js +1 -1
  207. package/dist/components/q-toolbar.js +1 -1
  208. package/dist/components/q-tooltip.js +1 -1
  209. package/dist/esm/{action.props-CpnGza8z.js → action.props-CbSH7c-q.js} +1 -1
  210. package/dist/esm/{dom-ByfrUWx1.js → dom-B610wOGe.js} +2 -2
  211. package/dist/esm/{field-zfD6OQ02.js → field-D5xUxo11.js} +1 -1
  212. package/dist/esm/{form-control-validity-Bj2RJb2E.js → form-control-validity-BxxU73QQ.js} +3 -3
  213. package/dist/esm/{form-submit-action-CoEIvDqE.js → form-submit-action-BjjfVWyu.js} +1 -1
  214. package/dist/esm/{index-B5ElFlHv.js → index-CIMzZPQO.js} +16 -2
  215. package/dist/esm/loader.js +3 -3
  216. package/dist/esm/q-accordion.entry.js +2 -2
  217. package/dist/esm/q-alert.entry.js +2 -2
  218. package/dist/esm/q-avatar.entry.js +2 -2
  219. package/dist/esm/q-banner.entry.js +1 -1
  220. package/dist/esm/q-button_3.entry.js +903 -0
  221. package/dist/esm/q-card.entry.js +3 -3
  222. package/dist/esm/q-carousel.entry.js +120 -18
  223. package/dist/esm/q-chip.entry.js +2 -2
  224. package/dist/esm/q-control-group.entry.js +62 -0
  225. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  226. package/dist/esm/q-data-table.entry.js +4 -4
  227. package/dist/esm/q-dialog.entry.js +4 -4
  228. package/dist/esm/q-divider.entry.js +24 -0
  229. package/dist/esm/q-dropdown.entry.js +320 -104
  230. package/dist/esm/q-form.entry.js +18 -8
  231. package/dist/esm/q-grid.entry.js +3 -3
  232. package/dist/esm/q-icon.entry.js +1 -1
  233. package/dist/esm/q-image-comparison.entry.js +2 -2
  234. package/dist/esm/q-inline.entry.js +3 -3
  235. package/dist/esm/q-input_2.entry.js +10 -8
  236. package/dist/esm/q-link.entry.js +2 -2
  237. package/dist/esm/q-map.entry.js +2 -2
  238. package/dist/esm/q-media.entry.js +2 -2
  239. package/dist/esm/q-navbar.entry.js +3 -3
  240. package/dist/esm/q-pagination.entry.js +2 -2
  241. package/dist/esm/q-panel.entry.js +7 -7
  242. package/dist/esm/q-quantity-selector.entry.js +6 -6
  243. package/dist/esm/q-radio-group.entry.js +4 -4
  244. package/dist/esm/q-reel.entry.js +24 -24
  245. package/dist/esm/q-section.entry.js +2 -2
  246. package/dist/esm/q-sidepanel.entry.js +5 -4
  247. package/dist/esm/q-slider.entry.js +120 -0
  248. package/dist/esm/q-stack.entry.js +3 -3
  249. package/dist/esm/q-step-diagram-item.entry.js +2 -2
  250. package/dist/esm/q-step-diagram.entry.js +4 -4
  251. package/dist/esm/q-syntax-box.entry.js +180 -719
  252. package/dist/esm/q-syntax-view.entry.js +63 -0
  253. package/dist/esm/q-tabs.entry.js +2 -2
  254. package/dist/esm/q-textarea.entry.js +8 -6
  255. package/dist/esm/q-thumbnail.entry.js +3 -3
  256. package/dist/esm/q-toast.entry.js +1 -1
  257. package/dist/esm/q-toggle.entry.js +7 -7
  258. package/dist/esm/q-toolbar.entry.js +4 -4
  259. package/dist/esm/syntax-content-Cr9kSbmA.js +903 -0
  260. package/dist/esm/{tokens-B4Mg1xEw.js → tokens-DbzjRzhu.js} +4 -1
  261. package/dist/esm/webquark.js +3 -3
  262. package/dist/formatters/prettier/LICENSE +7 -0
  263. package/dist/formatters/prettier/THIRD-PARTY-NOTICES.md +7941 -0
  264. package/dist/formatters/prettier/html-fragment.mjs +1 -0
  265. package/dist/formatters/prettier/html-fragment.mjs.gz +0 -0
  266. package/dist/formatters/prettier/languages/angular.mjs +1 -0
  267. package/dist/formatters/prettier/languages/angular.mjs.gz +0 -0
  268. package/dist/formatters/prettier/languages/css.mjs +1 -0
  269. package/dist/formatters/prettier/languages/css.mjs.gz +0 -0
  270. package/dist/formatters/prettier/languages/flow.mjs +1 -0
  271. package/dist/formatters/prettier/languages/flow.mjs.gz +0 -0
  272. package/dist/formatters/prettier/languages/graphql.mjs +1 -0
  273. package/dist/formatters/prettier/languages/graphql.mjs.gz +0 -0
  274. package/dist/formatters/prettier/languages/handlebars.mjs +1 -0
  275. package/dist/formatters/prettier/languages/handlebars.mjs.gz +0 -0
  276. package/dist/formatters/prettier/languages/html.mjs +1 -0
  277. package/dist/formatters/prettier/languages/html.mjs.gz +0 -0
  278. package/dist/formatters/prettier/languages/javascript.mjs +1 -0
  279. package/dist/formatters/prettier/languages/javascript.mjs.gz +0 -0
  280. package/dist/formatters/prettier/languages/json-stringify.mjs +1 -0
  281. package/dist/formatters/prettier/languages/json-stringify.mjs.gz +0 -0
  282. package/dist/formatters/prettier/languages/json.mjs +1 -0
  283. package/dist/formatters/prettier/languages/json.mjs.gz +0 -0
  284. package/dist/formatters/prettier/languages/json5.mjs +1 -0
  285. package/dist/formatters/prettier/languages/json5.mjs.gz +0 -0
  286. package/dist/formatters/prettier/languages/jsonc.mjs +1 -0
  287. package/dist/formatters/prettier/languages/jsonc.mjs.gz +0 -0
  288. package/dist/formatters/prettier/languages/jsx.mjs +1 -0
  289. package/dist/formatters/prettier/languages/jsx.mjs.gz +0 -0
  290. package/dist/formatters/prettier/languages/less.mjs +1 -0
  291. package/dist/formatters/prettier/languages/less.mjs.gz +0 -0
  292. package/dist/formatters/prettier/languages/lwc.mjs +1 -0
  293. package/dist/formatters/prettier/languages/lwc.mjs.gz +0 -0
  294. package/dist/formatters/prettier/languages/markdown.mjs +1 -0
  295. package/dist/formatters/prettier/languages/markdown.mjs.gz +0 -0
  296. package/dist/formatters/prettier/languages/mdx.mjs +1 -0
  297. package/dist/formatters/prettier/languages/mdx.mjs.gz +0 -0
  298. package/dist/formatters/prettier/languages/mjml.mjs +1 -0
  299. package/dist/formatters/prettier/languages/mjml.mjs.gz +0 -0
  300. package/dist/formatters/prettier/languages/postcss.mjs +1 -0
  301. package/dist/formatters/prettier/languages/postcss.mjs.gz +0 -0
  302. package/dist/formatters/prettier/languages/scss.mjs +1 -0
  303. package/dist/formatters/prettier/languages/scss.mjs.gz +0 -0
  304. package/dist/formatters/prettier/languages/tsx.mjs +1 -0
  305. package/dist/formatters/prettier/languages/tsx.mjs.gz +0 -0
  306. package/dist/formatters/prettier/languages/typescript.mjs +1 -0
  307. package/dist/formatters/prettier/languages/typescript.mjs.gz +0 -0
  308. package/dist/formatters/prettier/languages/vue.mjs +1 -0
  309. package/dist/formatters/prettier/languages/vue.mjs.gz +0 -0
  310. package/dist/formatters/prettier/languages/yaml.mjs +1 -0
  311. package/dist/formatters/prettier/languages/yaml.mjs.gz +0 -0
  312. package/dist/formatters/prettier/manifest.json +87 -0
  313. package/dist/formatters/prettier/plugins/acorn.mjs +17 -0
  314. package/dist/formatters/prettier/plugins/acorn.mjs.gz +0 -0
  315. package/dist/formatters/prettier/plugins/angular.mjs +7 -0
  316. package/dist/formatters/prettier/plugins/angular.mjs.gz +0 -0
  317. package/dist/formatters/prettier/plugins/babel.mjs +16 -0
  318. package/dist/formatters/prettier/plugins/babel.mjs.gz +0 -0
  319. package/dist/formatters/prettier/plugins/estree.mjs +44 -0
  320. package/dist/formatters/prettier/plugins/estree.mjs.gz +0 -0
  321. package/dist/formatters/prettier/plugins/flow.mjs +7 -0
  322. package/dist/formatters/prettier/plugins/flow.mjs.gz +0 -0
  323. package/dist/formatters/prettier/plugins/glimmer.mjs +37 -0
  324. package/dist/formatters/prettier/plugins/glimmer.mjs.gz +0 -0
  325. package/dist/formatters/prettier/plugins/graphql.mjs +17 -0
  326. package/dist/formatters/prettier/plugins/graphql.mjs.gz +0 -0
  327. package/dist/formatters/prettier/plugins/html.mjs +25 -0
  328. package/dist/formatters/prettier/plugins/html.mjs.gz +0 -0
  329. package/dist/formatters/prettier/plugins/markdown.mjs +70 -0
  330. package/dist/formatters/prettier/plugins/markdown.mjs.gz +0 -0
  331. package/dist/formatters/prettier/plugins/meriyah.mjs +9 -0
  332. package/dist/formatters/prettier/plugins/meriyah.mjs.gz +0 -0
  333. package/dist/formatters/prettier/plugins/postcss.mjs +62 -0
  334. package/dist/formatters/prettier/plugins/postcss.mjs.gz +0 -0
  335. package/dist/formatters/prettier/plugins/typescript.mjs +22 -0
  336. package/dist/formatters/prettier/plugins/typescript.mjs.gz +0 -0
  337. package/dist/formatters/prettier/plugins/yaml.mjs +150 -0
  338. package/dist/formatters/prettier/plugins/yaml.mjs.gz +0 -0
  339. package/dist/formatters/prettier/runtime.d.mts +2 -0
  340. package/dist/formatters/prettier/runtime.mjs +1 -0
  341. package/dist/formatters/prettier/runtime.mjs.gz +0 -0
  342. package/dist/formatters/prettier/standalone.mjs +29 -0
  343. package/dist/formatters/prettier/standalone.mjs.gz +0 -0
  344. package/dist/playground/components/theme-designer/dimension-tokens.js +9 -0
  345. package/dist/playground/components/theme-designer/token-row.js +60 -0
  346. package/dist/playground/dom-factory.js +76 -0
  347. package/dist/playground/utils/color.js +15 -0
  348. package/dist/playground/utils/dom.js +38 -0
  349. package/dist/playground/utils/index.js +2 -0
  350. package/dist/types/components/content/carousel/carousel.d.ts +23 -2
  351. package/dist/types/components/content/carousel/carousel.types.d.ts +6 -0
  352. package/dist/types/components/content/carousel/internals/autoplay.d.ts +5 -0
  353. package/dist/types/components/data-display/syntax-box/internals/formatters/css.d.ts +1 -0
  354. package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.d.ts +10 -0
  355. package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.types.d.ts +4 -0
  356. package/dist/types/components/data-display/syntax-box/internals/formatters/html.d.ts +1 -0
  357. package/dist/types/components/data-display/syntax-box/internals/formatters/javascript.d.ts +1 -0
  358. package/dist/types/components/data-display/syntax-box/internals/formatters/json.d.ts +6 -0
  359. package/dist/types/components/data-display/syntax-box/internals/formatters/languages.d.ts +27 -0
  360. package/dist/types/components/data-display/syntax-box/internals/formatters/util/prettier.d.ts +3 -0
  361. package/dist/types/{utils → components/data-display/syntax-box/internals}/syntax.d.ts +1 -1
  362. package/dist/types/components/data-display/syntax-box/internals/syntax.unit.test.d.ts +1 -0
  363. package/dist/types/components/data-display/syntax-box/internals/views.d.ts +11 -0
  364. package/dist/types/components/data-display/syntax-box/internals/views.unit.test.d.ts +1 -0
  365. package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +66 -63
  366. package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +1 -1
  367. package/dist/types/components/data-display/syntax-box/syntax-content.d.ts +41 -0
  368. package/dist/types/components/data-display/syntax-box/syntax-ui.d.ts +15 -0
  369. package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +1 -1
  370. package/dist/types/components/data-display/syntax-box/test/syntax-views.cmp.test.d.ts +1 -0
  371. package/dist/types/components/data-display/syntax-view/syntax-view.d.ts +48 -0
  372. package/dist/types/components/inputs/dropdown/dropdown.d.ts +45 -1
  373. package/dist/types/components/inputs/dropdown/test/fit-options.cmp.test.d.ts +3 -0
  374. package/dist/types/components/inputs/dropdown/test/multiple.cmp.test.d.ts +1 -0
  375. package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
  376. package/dist/types/components/inputs/form/internals/field-state.d.ts +1 -1
  377. package/dist/types/components/inputs/input/input.d.ts +3 -0
  378. package/dist/types/components/inputs/slider/slider.d.ts +45 -0
  379. package/dist/types/components/inputs/slider/test/slider.cmp.test.d.ts +1 -0
  380. package/dist/types/components/inputs/textarea/textarea.d.ts +3 -1
  381. package/dist/types/components/inputs/toggle/test/toggle-layout.cmp.test.d.ts +1 -0
  382. package/dist/types/components/layout/control-group/control-group.d.ts +20 -0
  383. package/dist/types/components/layout/control-group/test/control-group.cmp.test.d.ts +7 -0
  384. package/dist/types/components/layout/divider/divider.d.ts +15 -0
  385. package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -0
  386. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +2 -0
  387. package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +1 -0
  388. package/dist/types/components/media/reel/reel.d.ts +3 -3
  389. package/dist/types/components/media/reel/test/focus.cmp.test.d.ts +1 -0
  390. package/dist/types/components.d.ts +591 -13
  391. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/dimension-tokens.d.ts +3 -0
  392. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +14 -0
  393. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +13 -0
  394. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +2 -0
  395. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/dom.d.ts +15 -0
  396. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/index.d.ts +2 -0
  397. package/dist/types/index.d.ts +2 -2
  398. package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
  399. package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
  400. package/dist/types/theme/tokens.d.ts +9 -0
  401. package/dist/types/utils/form-control-validity.d.ts +2 -1
  402. package/dist/types/utils/form-field-adapter.d.ts +3 -3
  403. package/dist/webquark/p-014c2f4a.entry.js +1 -0
  404. package/dist/webquark/p-0389577c.entry.js +1 -0
  405. package/dist/webquark/p-041e17c1.entry.js +1 -0
  406. package/dist/webquark/p-0479c571.entry.js +1 -0
  407. package/dist/webquark/p-0ebca9be.entry.js +1 -0
  408. package/dist/webquark/{p-fe8c634a.entry.js → p-1bf375f7.entry.js} +2 -2
  409. package/dist/webquark/{p-6bfffa79.entry.js → p-20dc3ab5.entry.js} +1 -1
  410. package/dist/webquark/p-28d3348f.entry.js +1 -0
  411. package/dist/webquark/p-35c177d3.entry.js +1 -0
  412. package/dist/webquark/{p-99d785ca.entry.js → p-3a60086d.entry.js} +1 -1
  413. package/dist/webquark/{p-3bc4629c.entry.js → p-3ab798aa.entry.js} +1 -1
  414. package/dist/webquark/{p-9e78b796.entry.js → p-3b580baf.entry.js} +1 -1
  415. package/dist/webquark/{p-888e46a8.entry.js → p-3b65f787.entry.js} +1 -1
  416. package/dist/webquark/p-4bf610f8.entry.js +1 -0
  417. package/dist/webquark/{p-4d61b70d.entry.js → p-4d30227e.entry.js} +1 -1
  418. package/dist/webquark/{p-70d9ffde.entry.js → p-4de536ae.entry.js} +1 -1
  419. package/dist/webquark/{p-90b0858c.entry.js → p-4e4d70c9.entry.js} +1 -1
  420. package/dist/webquark/p-4efeb7c9.entry.js +1 -0
  421. package/dist/webquark/{p-dd115868.entry.js → p-51b3d71b.entry.js} +1 -1
  422. package/dist/webquark/p-778b6bbb.entry.js +1 -0
  423. package/dist/webquark/{p-f63b7214.entry.js → p-7da78b2f.entry.js} +1 -1
  424. package/dist/webquark/{p-9ff7e5a4.entry.js → p-7f8f986b.entry.js} +1 -1
  425. package/dist/webquark/p-8253c742.entry.js +1 -0
  426. package/dist/webquark/{p-059daa8a.entry.js → p-9a1ddeb7.entry.js} +1 -1
  427. package/dist/webquark/p-B610wOGe.js +1 -0
  428. package/dist/webquark/p-BxxU73QQ.js +1 -0
  429. package/dist/webquark/p-CIMzZPQO.js +3 -0
  430. package/dist/webquark/p-CfR85WgM.js +13 -0
  431. package/dist/{components/p-BofcK-7Z.js → webquark/p-D8p28N9s.js} +1 -1
  432. package/dist/webquark/p-DbzjRzhu.js +1 -0
  433. package/dist/webquark/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
  434. package/dist/webquark/{p-d0fbd2b1.entry.js → p-a2b1de23.entry.js} +1 -1
  435. package/dist/webquark/{p-48fb5228.entry.js → p-a55edc17.entry.js} +1 -1
  436. package/dist/webquark/p-a8808020.entry.js +1 -0
  437. package/dist/webquark/{p-f4f97e74.entry.js → p-b1084b3c.entry.js} +1 -1
  438. package/dist/webquark/{p-36118d90.entry.js → p-b6c4dff4.entry.js} +1 -1
  439. package/dist/webquark/p-b962e950.entry.js +1 -0
  440. package/dist/webquark/{p-023f8437.entry.js → p-bc369cd6.entry.js} +1 -1
  441. package/dist/webquark/p-c119a8ea.entry.js +1 -0
  442. package/dist/webquark/p-c6b77e9a.entry.js +1 -0
  443. package/dist/webquark/{p-030ecde3.entry.js → p-ca1c03b4.entry.js} +1 -1
  444. package/dist/webquark/{p-8ece2c62.entry.js → p-ce436162.entry.js} +1 -1
  445. package/dist/webquark/{p-0aa74ad6.entry.js → p-d0a47a7c.entry.js} +1 -1
  446. package/dist/webquark/{p-fec6fe0a.entry.js → p-e1fbc8fc.entry.js} +1 -1
  447. package/dist/webquark/{p-09cca7b9.entry.js → p-e32833ce.entry.js} +1 -1
  448. package/dist/webquark/p-e369a4aa.entry.js +1 -0
  449. package/dist/webquark/p-e4430c61.entry.js +1 -0
  450. package/dist/webquark/{p-f9ad63ff.entry.js → p-e9c0052b.entry.js} +1 -1
  451. package/dist/webquark/{p-f1bac94c.entry.js → p-f5c4ca18.entry.js} +1 -1
  452. package/dist/webquark/{p-64096386.entry.js → p-f6683126.entry.js} +1 -1
  453. package/dist/webquark/{p-DWO-pleQ.js → p-ojSDiptZ.js} +1 -1
  454. package/dist/webquark/webquark.css +1 -1
  455. package/dist/webquark/webquark.esm.js +1 -1
  456. package/package.json +6 -2
  457. package/dist/cjs/q-button_2.cjs.entry.js +0 -462
  458. package/dist/cjs/q-scrollable.cjs.entry.js +0 -449
  459. package/dist/components/p-B4Mg1xEw.js +0 -1
  460. package/dist/components/p-BH4gQWub.js +0 -1
  461. package/dist/components/p-Bj2RJb2E.js +0 -1
  462. package/dist/components/p-ByfrUWx1.js +0 -1
  463. package/dist/components/p-CN1ut2Lb.js +0 -1
  464. package/dist/components/p-ye27qtRo.js +0 -1
  465. package/dist/esm/q-button_2.entry.js +0 -459
  466. package/dist/esm/q-scrollable.entry.js +0 -447
  467. package/dist/types/utils/formatter.d.ts +0 -15
  468. package/dist/webquark/p-04c8cb9e.entry.js +0 -1
  469. package/dist/webquark/p-0ae43d6c.entry.js +0 -1
  470. package/dist/webquark/p-0c3aac3f.entry.js +0 -1
  471. package/dist/webquark/p-144ef339.entry.js +0 -1
  472. package/dist/webquark/p-296fbdb1.entry.js +0 -1
  473. package/dist/webquark/p-5f232b44.entry.js +0 -13
  474. package/dist/webquark/p-6e28cfe2.entry.js +0 -1
  475. package/dist/webquark/p-91fff6b6.entry.js +0 -1
  476. package/dist/webquark/p-923dac41.entry.js +0 -1
  477. package/dist/webquark/p-97a89cae.entry.js +0 -1
  478. package/dist/webquark/p-B4Mg1xEw.js +0 -1
  479. package/dist/webquark/p-B5ElFlHv.js +0 -3
  480. package/dist/webquark/p-Bj2RJb2E.js +0 -1
  481. package/dist/webquark/p-ByfrUWx1.js +0 -1
  482. package/dist/webquark/p-c523ec6f.entry.js +0 -1
  483. package/dist/webquark/p-d0253d64.entry.js +0 -1
  484. package/dist/webquark/p-f98f9439.entry.js +0 -1
  485. package/dist/webquark/p-fe200f68.entry.js +0 -1
  486. /package/dist/{types/components/actions/button/button.utils.unit.test.d.ts → collection/components/data-display/syntax-box/internals/formatters/formatter.types.js} +0 -0
  487. /package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.js +0 -0
  488. /package/dist/types/{utils/formatter.unit.test.d.ts → components/actions/button/test/button.utils.unit.test.d.ts} +0 -0
  489. /package/dist/types/{utils/syntax.unit.test.d.ts → components/data-display/syntax-box/internals/formatters/formatter.unit.test.d.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ import { h } from "@stencil/core";
2
+ import { Braces, Check, Copy } from "@lucide/icons";
3
+ export function renderSyntaxActions(actions) {
4
+ return (h("div", { class: "panel-actions", ref: actions.ref }, h("slot", { name: "actions" }), actions.editable && actions.formatLabel && (h("q-button", { class: "format-btn", ariaLabel: actions.formatLabel, variant: "ghost", size: "sm", disabled: actions.disabled, onClick: actions.onFormat }, h("q-icon", { slot: "icon-left", definition: Braces, name: "braces", size: "sm" }), h("q-tooltip", { slot: "icon-left", position: "bottom", content: actions.formatLabel }))), actions.copyable && (h("q-button", { variant: "ghost", size: "sm", ariaLabel: actions.copyFeedback, disabled: actions.disabled, onClick: actions.onCopy }, h("q-icon", { slot: "icon-left", definition: actions.copied ? Check : Copy, name: actions.copied ? 'check' : 'copy', size: "sm" }), h("q-tooltip", { slot: "icon-left", position: "bottom", content: actions.copyFeedback })))));
5
+ }
6
+ export function renderSyntaxScroller(body, height, ref) {
7
+ return h("q-scrollable", { height: height, ref: ref }, body);
8
+ }
@@ -9,8 +9,8 @@ export const INVALID_JSON = [
9
9
  ['short Unicode escape', '"\\u123"'], ['raw string newline', '"keep\r\nline"'],
10
10
  ['BOM', '\ufeff{"a":1}'], ['whitespace only', ' \t\r\n '],
11
11
  ];
12
- export const UNSUPPORTED_SOURCE = [
13
- ['html', '<p>Hello <b>world</b> !</p>\r\n<pre> keep \t spaces\r\n</pre><!-- keep comment -->'],
12
+ export const NON_JSON_SOURCE = [
13
+ ['html', '<p class="message">Hello <b>world</b> !</p>\r\n<pre> keep \t spaces\r\n</pre><!-- keep comment -->'],
14
14
  ['javascript', '// keep\r\nfunction f(){return\n"x";} const t = ` a ${1}\r\n b;{} `; /[{};]/.test(t);'],
15
15
  ['css', '/* keep */\r\n.a { content: " x; { y } "; --text: a b; }\r\n'],
16
16
  ];
@@ -5,7 +5,7 @@ import { defineCustomElements } from "../../../../../../packages/browser/compone
5
5
  // @ts-ignore - use the production component theme for the guide preview.
6
6
  import "../../../../../../packages/browser/components/dist/webquark/webquark.css";
7
7
  import { LANGUAGE_SOURCE, LITERAL_SOURCES, normalizeDomNewlines, SYNTAX_LANGUAGES } from "./syntax-fixtures";
8
- import { highlight } from "../../../../utils/syntax";
8
+ import { highlight } from "../internals/syntax";
9
9
  defineCustomElements();
10
10
  afterEach(() => { document.body.replaceChildren(); vi.restoreAllMocks(); });
11
11
  async function create(props = {}, slot) {
@@ -4,8 +4,8 @@ import { page } from "vitest/browser";
4
4
  import { defineCustomElements } from "../../../../../../packages/browser/components/dist/loader";
5
5
  // @ts-ignore - real guide previews use the production theme.
6
6
  import "../../../../../../packages/browser/components/dist/webquark/webquark.css";
7
- import { INVALID_JSON, JSON_EXPECTED, JSON_SOURCE, jsonTokens, UNSUPPORTED_SOURCE } from "./format-fixtures";
8
- import { MAX_JSON_FORMAT_DEPTH } from "../../../../utils/formatter";
7
+ import { INVALID_JSON, JSON_EXPECTED, JSON_SOURCE, jsonTokens, NON_JSON_SOURCE } from "./format-fixtures";
8
+ import { MAX_JSON_FORMAT_DEPTH } from "../internals/formatters/json";
9
9
  import { normalizeDomNewlines } from "./syntax-fixtures";
10
10
  defineCustomElements();
11
11
  afterEach(() => { document.body.replaceChildren(); document.body.style.margin = ''; vi.restoreAllMocks(); });
@@ -82,21 +82,15 @@ describe('built syntax-box explicit safe formatting', () => {
82
82
  await exact(el, '{"valid":1}');
83
83
  expect(el.shadowRoot.querySelector('.format-feedback')).toBeNull();
84
84
  });
85
- it.each(UNSUPPORTED_SOURCE)('makes %s Format visibly unavailable without altering comments/literals/events', async (language, source) => {
85
+ it.each(NON_JSON_SOURCE)('offers an explicit %s Format action', async (language, source) => {
86
86
  const { el } = await create({ language, code: source });
87
87
  const observed = events(el);
88
88
  const button = await action(el);
89
- expect(button.disabled).toBe(true);
90
- expect(button.shadowRoot.querySelector('button').disabled).toBe(true);
91
- expect(el.shadowRoot.querySelector('.format-feedback').textContent).toBe('Formatting is available for JSON only.');
92
- button.click();
93
- await exact(el, source);
94
- expect(observed).toEqual([]);
95
- el.language = 'json';
96
- el.value = '{"next":1}';
97
- await exact(el, '{"next":1}');
98
- await vi.waitFor(() => expect(button.disabled).toBe(false));
89
+ expect(button.disabled).toBe(false);
99
90
  expect(el.shadowRoot.querySelector('.format-feedback')).toBeNull();
91
+ button.click();
92
+ await vi.waitFor(() => expect(observed.map(event => event.type)).toEqual(['qInput', 'qChange']));
93
+ expect(el.code).not.toBe(source);
100
94
  });
101
95
  it('keeps over-depth JSON intact with bounded-format feedback', async () => {
102
96
  const source = '['.repeat(MAX_JSON_FORMAT_DEPTH + 1) + '-0' + ']'.repeat(MAX_JSON_FORMAT_DEPTH + 1);
@@ -129,16 +123,22 @@ describe('built syntax-box explicit safe formatting', () => {
129
123
  await exact(el, '{\n "10": 9007199254740993,\n "2": -0,\n "same": 1,\n "same": 2\n}');
130
124
  await page.elementLocator(el).screenshot({ path: 'docs/components/assets/q-syntax-box-format-json.png' });
131
125
  });
132
- it('captures the runnable unsupported-format guide example', async () => {
126
+ it('formats a JavaScript template literal without losing its inner spaces', async () => {
133
127
  await page.viewport(800, 700);
134
128
  document.body.style.margin = '20px';
135
- const { el } = await create({ code: 'const message = `keep spaces; { braces }`;', language: 'javascript', heading: 'Literal JavaScript', height: '110px' });
129
+ const { el } = await create({
130
+ code: 'const message=`keep spaces; { braces }`',
131
+ language: 'javascript',
132
+ heading: 'Literal JavaScript',
133
+ ariaLabel: 'Literal JavaScript source',
134
+ height: '110px',
135
+ });
136
136
  el.style.width = '560px';
137
- expect((await action(el)).disabled).toBe(true);
138
- await exact(el, 'const message = `keep spaces; { braces }`;');
139
- await page.elementLocator(el).screenshot({ path: 'docs/components/assets/q-syntax-box-format-unsupported.png' });
137
+ (await action(el)).click();
138
+ await exact(el, 'const message = `keep spaces; { braces }`;\n');
139
+ await page.elementLocator(el).screenshot({ path: 'docs/components/assets/q-syntax-box-format-javascript.png' });
140
140
  });
141
- it('refreshes the submitted-code example with current unavailable JavaScript formatting', async () => {
141
+ it('submits the original JavaScript until Format is used', async () => {
142
142
  await page.viewport(800, 700);
143
143
  document.body.style.margin = '20px';
144
144
  const { el, form } = await create({ code: 'const ready = true;', language: 'javascript', height: '110px', name: 'template', required: true, ariaLabel: 'Template code' });
@@ -151,7 +151,7 @@ describe('built syntax-box explicit safe formatting', () => {
151
151
  form.addEventListener('submit', event => { event.preventDefault(); output.textContent = String(new FormData(form).get('template')); });
152
152
  submit.click();
153
153
  expect(output.textContent).toBe('const ready = true;');
154
- expect((await action(el)).disabled).toBe(true);
154
+ expect((await action(el)).disabled).toBe(false);
155
155
  await page.elementLocator(form).screenshot({ path: 'docs/components/assets/q-syntax-box-submit-code.png' });
156
156
  });
157
157
  });
@@ -0,0 +1,228 @@
1
+ import { afterEach, describe, expect, it, vi } from "vitest";
2
+ import { page, userEvent } from "vitest/browser";
3
+ // @ts-ignore - exercise the same generated component loader as an application.
4
+ import { defineCustomElements } from "../../../../../../packages/browser/components/dist/loader";
5
+ // @ts-ignore - visibility and focus need the component theme.
6
+ import "../../../../../../packages/browser/components/dist/webquark/webquark.css";
7
+ defineCustomElements();
8
+ afterEach(() => {
9
+ document.body.replaceChildren();
10
+ vi.restoreAllMocks();
11
+ });
12
+ async function mountBox(markup) {
13
+ document.body.innerHTML = markup;
14
+ const box = document.querySelector('q-syntax-box');
15
+ await box.componentOnReady();
16
+ await Promise.all(Array.from(box.querySelectorAll('q-syntax-view'), view => view.componentOnReady()));
17
+ return box;
18
+ }
19
+ const tab = (name, selected) => page.getByRole('tab', { name, exact: true, selected });
20
+ async function expectTabs(...labels) {
21
+ await vi.waitFor(() => {
22
+ expect(page.getByRole('tab').elements().map(element => element.textContent?.trim())).toEqual(labels);
23
+ });
24
+ }
25
+ describe('q-syntax-box composed views', () => {
26
+ it('renders standalone content and a single child directly, then adds tabs for a second child', async () => {
27
+ await mountBox('<q-syntax-box heading="Source" code="standalone"></q-syntax-box>');
28
+ await expect.element(page.getByText('standalone', { exact: true })).toBeVisible();
29
+ await expectTabs();
30
+ const box = await mountBox(`
31
+ <form>
32
+ <q-syntax-box heading="Output">
33
+ <q-button slot="actions">Box action</q-button>
34
+ <q-syntax-view heading="Example HTML" view-key="html" code="first"></q-syntax-view>
35
+ </q-syntax-box>
36
+ </form>
37
+ `);
38
+ await expect.element(page.getByText('first', { exact: true })).toBeVisible();
39
+ await expectTabs();
40
+ const events = document.createElement('q-syntax-view');
41
+ events.heading = 'Events';
42
+ box.append(events);
43
+ await expectTabs('Example HTML', 'Events');
44
+ await expect.element(tab('Example HTML', true)).toBeVisible();
45
+ await tab('Events').click();
46
+ box.closest('form').reset();
47
+ await expectTabs('Example HTML', 'Events');
48
+ await expect.element(tab('Events', true)).toBeVisible();
49
+ events.remove();
50
+ await expect.element(page.getByText('first', { exact: true })).toBeVisible();
51
+ await expectTabs();
52
+ });
53
+ it.each(['code=""', 'value=""', 'editable'])('counts the explicitly empty parent %s, with ordinary and empty child views', async (parentSource) => {
54
+ await mountBox(`
55
+ <q-syntax-box heading="Parent" ${parentSource}>
56
+ <q-syntax-view heading="First" code="sample"></q-syntax-view>
57
+ <q-syntax-view heading="Second"></q-syntax-view>
58
+ </q-syntax-box>
59
+ `);
60
+ await expectTabs('Parent', 'First', 'Second');
61
+ await expect.element(tab('Parent', true)).toBeVisible();
62
+ });
63
+ it('keeps the edited field, caret and committed value across keyboard tab changes', async () => {
64
+ const box = await mountBox(`
65
+ <q-syntax-box variant="plain">
66
+ <q-syntax-view heading="Draft" editable code="initial"></q-syntax-view>
67
+ <q-syntax-view heading="Events">Recorded</q-syntax-view>
68
+ </q-syntax-box>
69
+ `);
70
+ const changes = vi.fn();
71
+ box.addEventListener('qChange', changes);
72
+ const field = page.getByRole('textbox', { name: 'Draft' });
73
+ await field.fill('edited draft');
74
+ const textarea = field.element();
75
+ textarea.setSelectionRange(2, 5);
76
+ await tab('Draft').click();
77
+ await userEvent.keyboard('{ArrowRight}');
78
+ await expect.element(tab('Events', true)).toBeVisible();
79
+ await expect.element(page.getByText('Recorded', { exact: true })).toBeVisible();
80
+ expect(field.elements()).toHaveLength(0);
81
+ expect(textarea.isConnected).toBe(true);
82
+ await userEvent.keyboard('{Home}');
83
+ await vi.waitFor(() => expect(tab('Draft').element().matches(':focus')).toBe(true));
84
+ await expect.element(field).toHaveValue('edited draft');
85
+ expect(field.element()).toBe(textarea);
86
+ expect([textarea.selectionStart, textarea.selectionEnd]).toEqual([2, 5]);
87
+ expect(changes.mock.calls.map(([event]) => event.detail)).toEqual(['edited draft']);
88
+ expect(box.code).toBeUndefined();
89
+ });
90
+ it('preserves view identity through duplicate labels, renames, reordering and removal', async () => {
91
+ const box = await mountBox(`
92
+ <q-syntax-box>
93
+ <q-syntax-view heading="Same" view-key="one" code="first body"></q-syntax-view>
94
+ <q-syntax-view heading="Same" view-key="two" code="second body"></q-syntax-view>
95
+ <q-syntax-view heading="Last" code="third body"></q-syntax-view>
96
+ </q-syntax-box>
97
+ `);
98
+ await expectTabs('Same', 'Same', 'Last');
99
+ await tab('Same').nth(1).click();
100
+ const [first, second, third] = Array.from(box.querySelectorAll('q-syntax-view'));
101
+ second.heading = 'Renamed';
102
+ box.prepend(third);
103
+ await expectTabs('Last', 'Same', 'Renamed');
104
+ await expect.element(tab('Renamed', true)).toBeVisible();
105
+ await expect.element(page.getByText('second body', { exact: true })).toBeVisible();
106
+ second.remove();
107
+ await expect.element(tab('Same', true)).toBeVisible();
108
+ await expect.element(page.getByText('first body', { exact: true })).toBeVisible();
109
+ first.remove();
110
+ await expectTabs();
111
+ await expect.element(page.getByText('third body', { exact: true })).toBeVisible();
112
+ });
113
+ it('keeps nested tab sets independent and associates each active tab with its named panel', async () => {
114
+ await mountBox(`
115
+ <q-syntax-box>
116
+ <q-syntax-view heading="Code" view-key="code" code="outer"></q-syntax-view>
117
+ <q-syntax-view heading="Nested" view-key="nested">
118
+ <q-syntax-box>
119
+ <q-syntax-view heading="Inner code" view-key="code" code="inner"></q-syntax-view>
120
+ <q-syntax-view heading="Inner events" view-key="events"></q-syntax-view>
121
+ </q-syntax-box>
122
+ </q-syntax-view>
123
+ </q-syntax-box>
124
+ `);
125
+ await expectTabs('Code', 'Nested');
126
+ await tab('Nested').click();
127
+ await tab('Inner events').click();
128
+ for (const name of ['Nested', 'Inner events']) {
129
+ await expect.element(tab(name, true)).toBeVisible();
130
+ const panel = page.getByRole('tabpanel', { name, exact: true });
131
+ await expect.element(panel).toBeVisible();
132
+ await vi.waitFor(() => {
133
+ const selectedTab = tab(name).element();
134
+ expect(selectedTab.ariaControlsElements).toContain(panel.element());
135
+ });
136
+ }
137
+ await tab('Code').click();
138
+ await expectTabs('Code', 'Nested');
139
+ await tab('Nested').click();
140
+ await expect.element(tab('Inner events', true)).toBeVisible();
141
+ });
142
+ it('keeps Copy data and delayed feedback on the originating view', async () => {
143
+ const box = await mountBox('<q-syntax-box heading="Source" copyable>own text<q-button slot="actions">Unrelated action</q-button><q-syntax-view heading="Other" copyable code="second source"></q-syntax-view></q-syntax-box>');
144
+ await expectTabs('Source', 'Other');
145
+ let finishCopy;
146
+ const pending = new Promise(resolve => { finishCopy = resolve; });
147
+ const clipboard = vi.spyOn(navigator.clipboard, 'writeText').mockReturnValue(pending);
148
+ await page.getByRole('button', { name: 'Copy', exact: true }).click();
149
+ expect(clipboard).toHaveBeenCalledWith('own text');
150
+ await tab('Other').click();
151
+ finishCopy();
152
+ await expect.element(page.getByRole('button', { name: 'Copy', exact: true })).toBeVisible();
153
+ await tab('Source').click();
154
+ await expect.element(page.getByRole('button', { name: 'Copied!', exact: true })).toBeVisible();
155
+ expect(box.querySelector('q-syntax-view').code).toBe('second source');
156
+ });
157
+ it('submits each named native form field once and resets the inactive editor', async () => {
158
+ const box = await mountBox(`
159
+ <form><fieldset><q-syntax-box name="container">
160
+ <q-syntax-view heading="One" view-key="first-tab" editable name="source" code="a"></q-syntax-view>
161
+ <q-syntax-view heading="Two" view-key="second-tab" editable name="source" code="b"></q-syntax-view>
162
+ <q-syntax-view heading="Disabled" editable disabled name="disabled" code="omit"></q-syntax-view>
163
+ </q-syntax-box></fieldset></form>
164
+ `);
165
+ const form = box.closest('form');
166
+ const [first, second] = Array.from(box.querySelectorAll('q-syntax-view'));
167
+ await expectTabs('One', 'Two', 'Disabled');
168
+ await page.getByRole('textbox', { name: 'One' }).fill('edited');
169
+ await tab('Two').click();
170
+ await page.getByRole('textbox', { name: 'Two' }).fill('also edited');
171
+ const data = new FormData(form);
172
+ expect(data.getAll('source')).toEqual(['edited', 'also edited']);
173
+ expect(data.has('container')).toBe(false);
174
+ expect(data.has('disabled')).toBe(false);
175
+ const fieldset = form.querySelector('fieldset');
176
+ fieldset.disabled = true;
177
+ expect(new FormData(form).has('source')).toBe(false);
178
+ fieldset.disabled = false;
179
+ expect(new FormData(form).getAll('source')).toEqual(['edited', 'also edited']);
180
+ form.reset();
181
+ await vi.waitFor(() => expect([first.code, second.code]).toEqual(['a', 'b']));
182
+ await expectTabs('One', 'Two', 'Disabled');
183
+ await expect.element(tab('Two', true)).toBeVisible();
184
+ });
185
+ it('uses view fields in q-form and reveals an inactive invalid editor only when reporting', async () => {
186
+ await mountBox(`
187
+ <q-form><q-syntax-box name="output">
188
+ <q-syntax-view heading="Draft" editable name="draft" code="initial"></q-syntax-view>
189
+ <q-syntax-view heading="Required" editable required name="source"></q-syntax-view>
190
+ </q-syntax-box></q-form>
191
+ `);
192
+ const form = document.querySelector('q-form');
193
+ await form.componentOnReady();
194
+ await expectTabs('Draft', 'Required');
195
+ expect(await form.getValues()).toEqual({ draft: 'initial', source: '' });
196
+ expect(await form.checkValidity()).toBe(false);
197
+ await expect.element(tab('Draft', true)).toBeVisible();
198
+ expect(await form.reportValidity()).toBe(false);
199
+ await expect.element(tab('Required', true)).toBeVisible();
200
+ await page.getByRole('textbox', { name: 'Required' }).fill('ready');
201
+ expect(await form.checkValidity()).toBe(true);
202
+ await form.resetForm();
203
+ expect(await form.getValues()).toEqual({ draft: 'initial', source: '' });
204
+ await expectTabs('Draft', 'Required');
205
+ });
206
+ it.each(['reportValidity', 'requestSubmit'])('reveals the invalid view during native %s', async (action) => {
207
+ const box = await mountBox(`
208
+ <form><q-syntax-box>
209
+ <q-syntax-view heading="Preview" code="source"></q-syntax-view>
210
+ <q-syntax-view heading="Editor" editable required name="source"></q-syntax-view>
211
+ </q-syntax-box></form>
212
+ `);
213
+ const form = box.closest('form');
214
+ await expectTabs('Preview', 'Editor');
215
+ expect(form.checkValidity()).toBe(false);
216
+ await expect.element(tab('Preview', true)).toBeVisible();
217
+ const submit = vi.fn((event) => event.preventDefault());
218
+ form.addEventListener('submit', submit);
219
+ if (action === 'reportValidity')
220
+ expect(form.reportValidity()).toBe(false);
221
+ else
222
+ form.requestSubmit();
223
+ await expect.element(tab('Editor', true)).toBeVisible();
224
+ const editor = page.getByRole('textbox', { name: 'Editor' });
225
+ await vi.waitFor(() => expect(editor.element().matches(':focus')).toBe(true));
226
+ expect(submit).not.toHaveBeenCalled();
227
+ });
228
+ });
@@ -0,0 +1,64 @@
1
+ import { Host, Mixin, h } from "@stencil/core";
2
+ import { withSyntaxContent } from "../syntax-box/syntax-content";
3
+ import { syntaxOwner } from "../syntax-box/internals/views";
4
+ /**
5
+ * Displays one editable or read-only view, on its own or as a child of a Syntax Box.
6
+ * @slot - Read-only content when code is omitted.
7
+ * @slot actions - Actions for this view.
8
+ */
9
+ export class QSyntaxView extends Mixin(withSyntaxContent) {
10
+ constructor() {
11
+ super();
12
+ }
13
+ el;
14
+ internals;
15
+ /** Optional identity for preserving selection when replacing a view element. */
16
+ viewKey;
17
+ render() {
18
+ const owner = syntaxOwner(this.el);
19
+ const variant = owner?.variant ?? this.variant;
20
+ if (owner) {
21
+ return h(Host, { class: "embedded-view" }, variant === 'panel' && this.renderActions(), this.renderContent(variant));
22
+ }
23
+ return h(Host, null, h("div", { class: variant === 'panel' ? 'panel-container syntax-layout' : 'plain-container syntax-layout' }, variant === 'panel' && h("div", { class: "panel-header" }, h("span", null, this.heading)), variant === 'panel' && this.renderActions(), this.renderContent(variant)));
24
+ }
25
+ static get is() { return "q-syntax-view"; }
26
+ static get encapsulation() { return "shadow"; }
27
+ static get delegatesFocus() { return true; }
28
+ static get formAssociated() { return true; }
29
+ static get originalStyleUrls() {
30
+ return {
31
+ "$": ["../syntax-box/syntax-box.css"]
32
+ };
33
+ }
34
+ static get styleUrls() {
35
+ return {
36
+ "$": ["../syntax-box/syntax-box.css"]
37
+ };
38
+ }
39
+ static get properties() {
40
+ return {
41
+ "viewKey": {
42
+ "type": "string",
43
+ "mutable": false,
44
+ "complexType": {
45
+ "original": "string",
46
+ "resolved": "string",
47
+ "references": {}
48
+ },
49
+ "required": false,
50
+ "optional": true,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": "Optional identity for preserving selection when replacing a view element."
54
+ },
55
+ "getter": false,
56
+ "setter": false,
57
+ "reflect": true,
58
+ "attribute": "view-key"
59
+ }
60
+ };
61
+ }
62
+ static get elementRef() { return "el"; }
63
+ static get attachInternalsMemberName() { return "internals"; }
64
+ }
@@ -32,11 +32,11 @@ export class QStepDiagram {
32
32
  // ===================== [6] RENDER (Visual Template Only) =====================
33
33
  render() {
34
34
  const orientation = this.orientation ?? this.layout;
35
- return (h("div", { key: '8a5da6e14ff6dc3d908dd8952b08108d003901e9', class: {
35
+ return (h("div", { key: '16a7d86040c706fa80c81771fbf47c53efbedd7e', class: {
36
36
  'step-diagram': true,
37
37
  [`orientation-${orientation}`]: true,
38
38
  [`layout-${orientation}`]: true,
39
- }, role: "list", "aria-label": this.ariaLabel }, h("slot", { key: '7bd0969adf19ece9c3a8f60cbe64b93fa627b363', onSlotchange: this.handleSlotChange })));
39
+ }, role: "list", "aria-label": this.ariaLabel }, h("slot", { key: 'a5bae169f2613928be95ded5bef5644f3f382b6f', onSlotchange: this.handleSlotChange })));
40
40
  }
41
41
  static get is() { return "q-step-diagram"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class QStepDiagramItem {
36
36
  // ===================== [6] RENDER (Visual Template Only) =====================
37
37
  render() {
38
38
  const orientation = this.orientation ?? this.layout;
39
- return (h("div", { key: '2283c7ad484a5449de7074e618aad691e2277627', class: { 'step-item': true, [`orientation-${orientation}`]: true } }, h("div", { key: '463c520fef67e7a214ba968174d4791488d90016', class: "step-line-container" }, h("div", { key: '1ac40b5c49bdcc3e5dc5bb6f5481592c5cf21b8f', class: "step-badge", "aria-hidden": "true", part: "badge" }, h("slot", { key: 'ffef5d1c9335f87a0c033b3fc4923d151e4ea377', name: "badge" }, h("div", { key: '7a2d9f322f650c42614d1ca1775eed20e0ff5fd2', class: "badge-dot" }))), h("div", { key: '7f8c4c2feb18c795e4ce4fa36c0266f0721859a8', class: "step-connector", part: "connector" })), h("div", { key: '79b906b1edda9ee114b59447bfb9ef8e23b635b8', class: "step-content", onClick: this.handleTrigger, onKeyDown: this.handleKeyDown, tabindex: "0", role: "button", part: "content", "aria-current": this.status === 'active' ? 'step' : undefined, "aria-disabled": this.status === 'pending' ? 'true' : undefined }, h("div", { key: 'e9c4009533ace6c3c3f1a850ee8d7e584746e33d', class: "step-title", part: "title" }, h("slot", { key: 'd101f24344900ff70dc31f6022ec9280382b32b7', name: "title" })), h("div", { key: '393c58f0d835afea839e1fac8a6bef4bdf82d696', class: "step-body", part: "body" }, h("slot", { key: '2454d6b561fbb94961d025b3ce37fc3067e20ecc' })))));
39
+ return (h("div", { key: 'd6812cba0645647a7bec4bdd645fe2702dbc9f3b', class: { 'step-item': true, [`orientation-${orientation}`]: true } }, h("div", { key: '21ba4a08e5f54511a57e2f197954a75b7ce99bdd', class: "step-line-container" }, h("div", { key: 'ceb41b031624ca88fb1dd3929aba178540f9b333', class: "step-badge", "aria-hidden": "true", part: "badge" }, h("slot", { key: '06ffa5adba0ece2374574ed9e570a48cba1f7609', name: "badge" }, h("div", { key: '5dc64cb8e275f601f620208af6b1ce077cfe0111', class: "badge-dot" }))), h("div", { key: '478699b043fdc4703c0ed8a4be134adfbbe400a4', class: "step-connector", part: "connector" })), h("div", { key: 'f7b639e73daf75240b5d9d842d388812b738f279', class: "step-content", onClick: this.handleTrigger, onKeyDown: this.handleKeyDown, tabindex: "0", role: "button", part: "content", "aria-current": this.status === 'active' ? 'step' : undefined, "aria-disabled": this.status === 'pending' ? 'true' : undefined }, h("div", { key: '19e05789e710e014d128f8916e794fdead46c2b4', class: "step-title", part: "title" }, h("slot", { key: '8db9ab2894647d3ea040d710c436c7e6cfbc5420', name: "title" })), h("div", { key: 'bfa7dfe730a4a5ddbccdc236fc46d0597aadfdfe', class: "step-body", part: "body" }, h("slot", { key: '064fb46dfdb558b8dbce9519fdb51886fff5d405' })))));
40
40
  }
41
41
  static get is() { return "q-step-diagram-item"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -1,3 +1,23 @@
1
+ /* Generated by scripts/generate-theme.ts. */
2
+ :host([width="xs"]),
3
+ :host([width="sm"]),
4
+ :host([width="md"]),
5
+ :host([width="lg"]),
6
+ :host([width="xl"]),
7
+ :host([width="xxl"]),
8
+ :host([width="full"]) {
9
+ box-sizing: border-box;
10
+ min-width: 0;
11
+ max-width: 100%;
12
+ }
13
+ :host([width="xs"]) { width: var(--q-input-width-xs, 5rem); }
14
+ :host([width="sm"]) { width: var(--q-input-width-sm, 7.5rem); }
15
+ :host([width="md"]) { width: var(--q-input-width-md, 11.25rem); }
16
+ :host([width="lg"]) { width: var(--q-input-width-lg, 15rem); }
17
+ :host([width="xl"]) { width: var(--q-input-width-xl, 18.125rem); }
18
+ :host([width="xxl"]) { width: var(--q-input-width-xxl, 22.5rem); }
19
+ :host([width="full"]) { width: 100%; }
20
+
1
21
  /* Generated by scripts/generate-theme.ts. */
2
22
  :host {
3
23
  min-width: 0;
@@ -40,6 +60,50 @@
40
60
  box-sizing: border-box;
41
61
  }
42
62
 
63
+ :host([width='fit-options']) {
64
+ width: var(--_q-dropdown-options-width, max-content);
65
+ max-width: 100%;
66
+ }
67
+
68
+ :host([width='fit-options']) .dropdown-trigger {
69
+ column-gap: var(--q-dropdown-icon-gap, 10px);
70
+ }
71
+
72
+ .fit-options-clip {
73
+ position: absolute;
74
+ width: 0;
75
+ height: 0;
76
+ overflow: hidden;
77
+ contain: strict;
78
+ }
79
+
80
+ .dropdown-wrapper .fit-options-measure {
81
+ position: absolute;
82
+ display: grid;
83
+ grid-template-columns: max-content max-content;
84
+ width: max-content;
85
+ max-width: none;
86
+ visibility: hidden;
87
+ pointer-events: none;
88
+ }
89
+
90
+ .fit-options-labels {
91
+ display: grid;
92
+ white-space: pre;
93
+ }
94
+
95
+ .fit-options-labels > span {
96
+ grid-area: 1 / 1;
97
+ }
98
+
99
+ :host([width='fit-options']) .chevron-icon {
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ :host([width='fit-options']) .dropdown-main-input {
104
+ padding-inline-end: calc(14px + var(--_q-control-icon) + var(--q-dropdown-icon-gap, 10px)) !important;
105
+ }
106
+
43
107
  .dropdown-wrapper {
44
108
  display: flex;
45
109
  flex-direction: column;
@@ -89,6 +153,14 @@
89
153
  box-shadow: 0 0 0 1px var(--q-color-primary, #60a5fa);
90
154
  }
91
155
 
156
+ .editable-trigger { position: relative; width: 100%; }
157
+ .dropdown-main-input { display: block; cursor: text; padding-inline-end: 38px !important; text-overflow: ellipsis; }
158
+ .dropdown-main-input::placeholder { color: var(--q-fg-muted, #9ca3af); opacity: .8; }
159
+ .editable-trigger > .chevron-icon { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
160
+ .is-open .editable-trigger > .chevron-icon { transform: translateY(-50%) rotate(180deg); }
161
+ .editable-leading { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
162
+ .has-leading-icon .dropdown-main-input { padding-inline-start: 40px !important; }
163
+
92
164
  .trigger-content {
93
165
  display: flex;
94
166
  flex: 1;
@@ -147,6 +219,11 @@
147
219
  box-sizing: border-box;
148
220
  }
149
221
 
222
+ /* The search container already supplies spacing on every side of the input. */
223
+ .dropdown-menu:has(> .dropdown-search-container) {
224
+ padding-top: 0;
225
+ }
226
+
150
227
  .dropdown-menu[data-placement='top'] {
151
228
  transform-origin: bottom center;
152
229
  }
@@ -385,3 +462,74 @@
385
462
  overflow-wrap: anywhere;
386
463
  }
387
464
 
465
+
466
+ /* Shared opt-in presentation; standalone surfaces retain their existing rules. */
467
+ :host([data-q-control-group]) :is(.input-control, .dropdown-trigger, .quantity-selector, .btn, .toggle-wrapper) {
468
+ border-start-start-radius: var(--_q-group-start-start, 0px);
469
+ border-start-end-radius: var(--_q-group-start-end, 0px);
470
+ border-end-start-radius: var(--_q-group-end-start, 0px);
471
+ border-end-end-radius: var(--_q-group-end-end, 0px);
472
+ }
473
+
474
+ :host([data-q-control-group]) .toggle-wrapper {
475
+ box-sizing: border-box;
476
+ min-height: var(--_q-control-height);
477
+ padding-inline: var(--_q-control-padding);
478
+ border: var(--q-border, 1px solid var(--q-border-color, #4b5563));
479
+ background: var(--q-bg-field, var(--q-bg-surface-3, #22304d));
480
+ }
481
+
482
+ :host([data-q-control-group]) :is(.btn, .toggle-wrapper, .quantity-selector) {
483
+ width: 100%;
484
+ }
485
+
486
+
487
+
488
+ /* Multi-selection shares the field geometry; selection count never grows its height. */
489
+ .dropdown-wrapper .multiple-trigger {
490
+ height: var(--q-dropdown-height, var(--_q-control-height));
491
+ flex-wrap: nowrap;
492
+ justify-content: flex-start;
493
+ gap: 4px;
494
+ position: relative;
495
+ }
496
+ .multiple-trigger:focus-within {
497
+ border-color: var(--q-color-primary, #60a5fa);
498
+ box-shadow: 0 0 0 1px var(--q-color-primary, #60a5fa);
499
+ }
500
+ .multiple-trigger > q-chip, .multiple-trigger > .multiple-more, .multiple-trigger > .chevron-icon { flex: 0 0 auto; }
501
+ .multiple-trigger > q-chip { max-width: 45%; }
502
+ .multiple-input {
503
+ flex: 1 1 64px;
504
+ min-width: 64px;
505
+ width: 0;
506
+ padding: 0;
507
+ border: 0;
508
+ background: transparent;
509
+ outline: none;
510
+ color: inherit;
511
+ font: inherit;
512
+ }
513
+ .multiple-input::placeholder { color: var(--q-fg-muted, #9ca3af); }
514
+ .multiple-more {
515
+ padding: 2px 4px;
516
+ border: 0;
517
+ border-radius: var(--q-radius-sm, 4px);
518
+ background: transparent;
519
+ color: var(--q-color-primary, #60a5fa);
520
+ font: inherit;
521
+ white-space: nowrap;
522
+ cursor: pointer;
523
+ }
524
+ .multiple-more:focus-visible { outline: 2px solid var(--q-color-primary, #60a5fa); }
525
+ .multiple-measure {
526
+ position: absolute;
527
+ display: flex;
528
+ width: max-content;
529
+ visibility: hidden;
530
+ pointer-events: none;
531
+ inset: 0 auto auto 0;
532
+ gap: 4px;
533
+ }
534
+ .selected-options { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; overflow: auto; }
535
+ .selected-options q-chip { max-width: 100%; }