@webquark/browser 1.1.0-dev.9 → 1.1.0

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 (344) hide show
  1. package/dist/cjs/{action.props-N0urQtdP.js → action.props-B6vl_1p5.js} +1 -1
  2. package/dist/cjs/{dom-Dk77oFF6.js → dom-BYrqRYna.js} +1 -1
  3. package/dist/cjs/{field-CsrQGhG-.js → field-B5nxD8Kc.js} +1 -1
  4. package/dist/cjs/{index-DWXhKHCB.js → index-BD6Jjssb.js} +5 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/q-accordion.cjs.entry.js +2 -2
  7. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  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_2.cjs.entry.js +5 -5
  11. package/dist/cjs/q-card.cjs.entry.js +3 -3
  12. package/dist/cjs/q-carousel.cjs.entry.js +120 -18
  13. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/q-control-group.cjs.entry.js +64 -0
  15. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  16. package/dist/cjs/q-data-table.cjs.entry.js +4 -4
  17. package/dist/cjs/q-dialog.cjs.entry.js +4 -4
  18. package/dist/cjs/q-divider.cjs.entry.js +26 -0
  19. package/dist/cjs/q-dropdown.cjs.entry.js +320 -104
  20. package/dist/cjs/q-form.cjs.entry.js +16 -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 +9 -7
  26. package/dist/cjs/q-link.cjs.entry.js +2 -2
  27. package/dist/cjs/q-map.cjs.entry.js +2 -2
  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 +2 -2
  31. package/dist/cjs/q-panel.cjs.entry.js +7 -7
  32. package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
  33. package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
  34. package/dist/cjs/q-reel.cjs.entry.js +4 -4
  35. package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
  36. package/dist/cjs/q-section.cjs.entry.js +2 -2
  37. package/dist/cjs/q-sidepanel.cjs.entry.js +2 -2
  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 +1 -1
  43. package/dist/cjs/q-tabs.cjs.entry.js +2 -2
  44. package/dist/cjs/q-textarea.cjs.entry.js +7 -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/{tokens-RMRaIOqv.js → tokens-Cd7g-VMz.js} +3 -0
  50. package/dist/cjs/webquark.cjs.js +2 -2
  51. package/dist/collection/collection-manifest.json +3 -0
  52. package/dist/collection/components/actions/button/button.css +22 -0
  53. package/dist/collection/components/actions/button/{button.utils.unit.test.js → test/button.utils.unit.test.js} +1 -1
  54. package/dist/collection/components/content/carousel/carousel.css +7 -0
  55. package/dist/collection/components/content/carousel/carousel.js +256 -10
  56. package/dist/collection/components/content/carousel/internals/autoplay.js +31 -6
  57. package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +122 -0
  58. package/dist/collection/components/data-display/accordion/accordion.js +1 -1
  59. package/dist/collection/components/data-display/data-table/data-table.js +3 -3
  60. package/dist/collection/components/data-display/map/map.js +1 -1
  61. package/dist/collection/components/data-display/map/test/map.cmp.test.js +1 -1
  62. package/dist/collection/components/data-display/pagination/pagination.js +1 -1
  63. package/dist/collection/{utils → components/data-display/syntax-box/internals}/formatter.unit.test.js +1 -1
  64. package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.js +1 -1
  65. package/dist/collection/components/data-display/syntax-box/syntax-box.js +2 -2
  66. package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +1 -1
  67. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +1 -1
  68. package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
  69. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
  70. package/dist/collection/components/inputs/dropdown/dropdown.css +148 -0
  71. package/dist/collection/components/inputs/dropdown/dropdown.js +422 -104
  72. package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +28 -0
  73. package/dist/collection/components/inputs/dropdown/test/fit-options.cmp.test.js +120 -0
  74. package/dist/collection/components/inputs/dropdown/test/multiple.cmp.test.js +124 -0
  75. package/dist/collection/components/inputs/dropdown/test/search-mode.cmp.test.js +186 -0
  76. package/dist/collection/components/inputs/form/form.js +2 -2
  77. package/dist/collection/components/inputs/form/internals/controls.js +1 -1
  78. package/dist/collection/components/inputs/form/internals/field-state.js +6 -1
  79. package/dist/collection/components/inputs/form/internals/values.js +5 -0
  80. package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +14 -8
  81. package/dist/collection/components/inputs/input/input.css +42 -0
  82. package/dist/collection/components/inputs/input/input.js +31 -3
  83. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +22 -0
  84. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
  85. package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
  86. package/dist/collection/components/inputs/slider/slider.css +44 -0
  87. package/dist/collection/components/inputs/slider/slider.js +383 -0
  88. package/dist/collection/components/inputs/slider/test/slider.cmp.test.js +45 -0
  89. package/dist/collection/components/inputs/textarea/textarea.css +20 -0
  90. package/dist/collection/components/inputs/textarea/textarea.js +30 -2
  91. package/dist/collection/components/inputs/toggle/test/toggle-layout.cmp.test.js +69 -0
  92. package/dist/collection/components/inputs/toggle/toggle.css +27 -0
  93. package/dist/collection/components/inputs/toggle/toggle.js +3 -3
  94. package/dist/collection/components/layout/control-group/control-group.css +108 -0
  95. package/dist/collection/components/layout/control-group/control-group.js +142 -0
  96. package/dist/collection/components/layout/control-group/test/control-group.cmp.test.js +163 -0
  97. package/dist/collection/components/layout/divider/divider.css +40 -0
  98. package/dist/collection/components/layout/divider/divider.js +121 -0
  99. package/dist/collection/components/layout/divider/test/divider.cmp.test.js +105 -0
  100. package/dist/collection/components/layout/grid/grid.js +1 -1
  101. package/dist/collection/components/layout/inline/inline.js +1 -1
  102. package/dist/collection/components/layout/navbar/navbar.js +2 -2
  103. package/dist/collection/components/layout/panel/panel.js +4 -4
  104. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  105. package/dist/collection/components/layout/section/section.js +1 -1
  106. package/dist/collection/components/layout/stack/stack.js +1 -1
  107. package/dist/collection/components/layout/tabs/tabs.js +1 -1
  108. package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
  109. package/dist/collection/components/media/avatar/avatar.js +1 -1
  110. package/dist/collection/components/media/image-comparison/image-comparison.js +1 -1
  111. package/dist/collection/components/media/media/media.js +1 -1
  112. package/dist/collection/components/media/reel/reel.js +2 -2
  113. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  114. package/dist/collection/components/overlays/dialog/dialog.js +2 -2
  115. package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
  116. package/dist/collection/theme/test/input-width.cmp.test.js +117 -0
  117. package/dist/collection/theme/test/presets.unit.test.js +58 -0
  118. package/dist/collection/theme/tokens.js +3 -0
  119. package/dist/collection/utils/dom.js +1 -1
  120. package/dist/components/index.js +1 -1
  121. package/dist/components/p-BDsIecIx.js +1 -0
  122. package/dist/components/{p-6PPZ2sIO.js → p-BGHNFaaC.js} +1 -1
  123. package/dist/components/{p-Dfp_If-_.js → p-BZXIeEKC.js} +1 -1
  124. package/dist/components/{p-DlIn_ZWk.js → p-Bc2_QcLn.js} +1 -1
  125. package/dist/components/{p-CKuPOxKN.js → p-Bp6Xr92S.js} +1 -1
  126. package/dist/{webquark/p-Dhsn99q4.js → components/p-BwPMm43W.js} +1 -1
  127. package/dist/components/p-CArIPzJU.js +1 -0
  128. package/dist/components/p-CpkX9YAW.js +1 -0
  129. package/dist/components/p-D2nxHd1b.js +1 -0
  130. package/dist/components/{p-DQhiqYeq.js → p-DkanItP3.js} +1 -1
  131. package/dist/components/p-IwIJb0Mc.js +1 -0
  132. package/dist/components/{p-Cg0Mv7Vb.js → p-kfrqZyfJ.js} +1 -1
  133. package/dist/components/{p-BH4gQWub.js → p-x3C-wjU9.js} +1 -1
  134. package/dist/components/q-accordion.js +1 -1
  135. package/dist/components/q-alert.js +1 -1
  136. package/dist/components/q-avatar.js +1 -1
  137. package/dist/components/q-banner.js +1 -1
  138. package/dist/components/q-button.js +1 -1
  139. package/dist/components/q-card.js +1 -1
  140. package/dist/components/q-carousel.js +1 -1
  141. package/dist/components/q-chip.js +1 -1
  142. package/dist/components/q-control-group.d.ts +11 -0
  143. package/dist/components/q-control-group.js +1 -0
  144. package/dist/components/q-conversation-bubble.js +1 -1
  145. package/dist/components/q-data-table.js +1 -1
  146. package/dist/components/q-dialog.js +1 -1
  147. package/dist/components/q-divider.d.ts +11 -0
  148. package/dist/components/q-divider.js +1 -0
  149. package/dist/components/q-dropdown.js +1 -1
  150. package/dist/components/q-form.js +1 -1
  151. package/dist/components/q-grid.js +1 -1
  152. package/dist/components/q-icon.js +1 -1
  153. package/dist/components/q-image-comparison.js +1 -1
  154. package/dist/components/q-inline.js +1 -1
  155. package/dist/components/q-input.js +1 -1
  156. package/dist/components/q-link.js +1 -1
  157. package/dist/components/q-map.js +1 -1
  158. package/dist/components/q-media.js +1 -1
  159. package/dist/components/q-navbar.js +1 -1
  160. package/dist/components/q-pagination.js +1 -1
  161. package/dist/components/q-panel.js +1 -1
  162. package/dist/components/q-progress.js +1 -1
  163. package/dist/components/q-quantity-selector.js +1 -1
  164. package/dist/components/q-radio-group.js +1 -1
  165. package/dist/components/q-reel.js +1 -1
  166. package/dist/components/q-scrollable.js +1 -1
  167. package/dist/components/q-section.js +1 -1
  168. package/dist/components/q-sidepanel.js +1 -1
  169. package/dist/components/q-slider.d.ts +11 -0
  170. package/dist/components/q-slider.js +1 -0
  171. package/dist/components/q-stack.js +1 -1
  172. package/dist/components/q-step-diagram-item.js +1 -1
  173. package/dist/components/q-step-diagram.js +1 -1
  174. package/dist/components/q-syntax-box.js +2 -2
  175. package/dist/components/q-tabs.js +1 -1
  176. package/dist/components/q-textarea.js +1 -1
  177. package/dist/components/q-thumbnail.js +1 -1
  178. package/dist/components/q-toast.js +1 -1
  179. package/dist/components/q-toggle.js +1 -1
  180. package/dist/components/q-toolbar.js +1 -1
  181. package/dist/components/q-tooltip.js +1 -1
  182. package/dist/esm/{action.props-CpnGza8z.js → action.props-Di_LpF5H.js} +1 -1
  183. package/dist/esm/{dom-ByfrUWx1.js → dom-CArIPzJU.js} +1 -1
  184. package/dist/esm/{field-zfD6OQ02.js → field-C4Iilew6.js} +1 -1
  185. package/dist/esm/{index-B5ElFlHv.js → index-DoGM9gsC.js} +5 -2
  186. package/dist/esm/loader.js +3 -3
  187. package/dist/esm/q-accordion.entry.js +2 -2
  188. package/dist/esm/q-alert.entry.js +1 -1
  189. package/dist/esm/q-avatar.entry.js +2 -2
  190. package/dist/esm/q-banner.entry.js +1 -1
  191. package/dist/esm/q-button_2.entry.js +5 -5
  192. package/dist/esm/q-card.entry.js +3 -3
  193. package/dist/esm/q-carousel.entry.js +120 -18
  194. package/dist/esm/q-chip.entry.js +2 -2
  195. package/dist/esm/q-control-group.entry.js +62 -0
  196. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  197. package/dist/esm/q-data-table.entry.js +4 -4
  198. package/dist/esm/q-dialog.entry.js +4 -4
  199. package/dist/esm/q-divider.entry.js +24 -0
  200. package/dist/esm/q-dropdown.entry.js +320 -104
  201. package/dist/esm/q-form.entry.js +16 -6
  202. package/dist/esm/q-grid.entry.js +3 -3
  203. package/dist/esm/q-icon.entry.js +1 -1
  204. package/dist/esm/q-image-comparison.entry.js +2 -2
  205. package/dist/esm/q-inline.entry.js +3 -3
  206. package/dist/esm/q-input_2.entry.js +9 -7
  207. package/dist/esm/q-link.entry.js +2 -2
  208. package/dist/esm/q-map.entry.js +2 -2
  209. package/dist/esm/q-media.entry.js +2 -2
  210. package/dist/esm/q-navbar.entry.js +3 -3
  211. package/dist/esm/q-pagination.entry.js +2 -2
  212. package/dist/esm/q-panel.entry.js +7 -7
  213. package/dist/esm/q-quantity-selector.entry.js +6 -6
  214. package/dist/esm/q-radio-group.entry.js +4 -4
  215. package/dist/esm/q-reel.entry.js +4 -4
  216. package/dist/esm/q-scrollable.entry.js +4 -4
  217. package/dist/esm/q-section.entry.js +2 -2
  218. package/dist/esm/q-sidepanel.entry.js +2 -2
  219. package/dist/esm/q-slider.entry.js +120 -0
  220. package/dist/esm/q-stack.entry.js +3 -3
  221. package/dist/esm/q-step-diagram-item.entry.js +2 -2
  222. package/dist/esm/q-step-diagram.entry.js +4 -4
  223. package/dist/esm/q-syntax-box.entry.js +1 -1
  224. package/dist/esm/q-tabs.entry.js +2 -2
  225. package/dist/esm/q-textarea.entry.js +7 -5
  226. package/dist/esm/q-thumbnail.entry.js +3 -3
  227. package/dist/esm/q-toast.entry.js +1 -1
  228. package/dist/esm/q-toggle.entry.js +6 -6
  229. package/dist/esm/q-toolbar.entry.js +4 -4
  230. package/dist/esm/{tokens-B4Mg1xEw.js → tokens-BDsIecIx.js} +3 -0
  231. package/dist/esm/webquark.js +3 -3
  232. package/dist/playground/components/theme-designer/dimension-tokens.js +9 -0
  233. package/dist/playground/components/theme-designer/token-row.js +89 -0
  234. package/dist/playground/dom-factory.js +76 -0
  235. package/dist/playground/utils/color.js +26 -0
  236. package/dist/playground/utils/dom.js +38 -0
  237. package/dist/playground/utils/index.js +2 -0
  238. package/dist/types/components/content/carousel/carousel.d.ts +23 -2
  239. package/dist/types/components/content/carousel/carousel.types.d.ts +6 -0
  240. package/dist/types/components/content/carousel/internals/autoplay.d.ts +5 -0
  241. package/dist/types/components/inputs/dropdown/dropdown.d.ts +45 -1
  242. package/dist/types/components/inputs/dropdown/test/fit-options.cmp.test.d.ts +3 -0
  243. package/dist/types/components/inputs/dropdown/test/multiple.cmp.test.d.ts +1 -0
  244. package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
  245. package/dist/types/components/inputs/form/internals/field-state.d.ts +1 -1
  246. package/dist/types/components/inputs/input/input.d.ts +3 -0
  247. package/dist/types/components/inputs/slider/slider.d.ts +45 -0
  248. package/dist/types/components/inputs/slider/test/slider.cmp.test.d.ts +1 -0
  249. package/dist/types/components/inputs/textarea/textarea.d.ts +3 -1
  250. package/dist/types/components/inputs/toggle/test/toggle-layout.cmp.test.d.ts +1 -0
  251. package/dist/types/components/layout/control-group/control-group.d.ts +20 -0
  252. package/dist/types/components/layout/control-group/test/control-group.cmp.test.d.ts +7 -0
  253. package/dist/types/components/layout/divider/divider.d.ts +15 -0
  254. package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -0
  255. package/dist/types/components.d.ts +390 -6
  256. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/dimension-tokens.d.ts +3 -0
  257. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +14 -0
  258. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +12 -0
  259. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +8 -0
  260. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/dom.d.ts +15 -0
  261. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/index.d.ts +2 -0
  262. package/dist/types/index.d.ts +2 -2
  263. package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
  264. package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
  265. package/dist/types/theme/tokens.d.ts +9 -0
  266. package/dist/types/utils/form-field-adapter.d.ts +3 -3
  267. package/dist/webquark/p-0182e114.entry.js +1 -0
  268. package/dist/webquark/{p-f98f9439.entry.js → p-048103e0.entry.js} +1 -1
  269. package/dist/webquark/{p-fe8c634a.entry.js → p-0a2c52de.entry.js} +1 -1
  270. package/dist/webquark/p-0baf478a.entry.js +1 -0
  271. package/dist/webquark/{p-9e78b796.entry.js → p-15bad9ef.entry.js} +1 -1
  272. package/dist/webquark/p-17b9713f.entry.js +1 -0
  273. package/dist/webquark/{p-fec6fe0a.entry.js → p-222405b8.entry.js} +1 -1
  274. package/dist/webquark/p-2eaa3a9f.entry.js +1 -0
  275. package/dist/webquark/{p-90b0858c.entry.js → p-3daafc56.entry.js} +1 -1
  276. package/dist/webquark/{p-09cca7b9.entry.js → p-44bbe12f.entry.js} +1 -1
  277. package/dist/webquark/{p-888e46a8.entry.js → p-4609c362.entry.js} +1 -1
  278. package/dist/webquark/{p-023f8437.entry.js → p-5b584d3c.entry.js} +1 -1
  279. package/dist/webquark/p-65fe9cac.entry.js +1 -0
  280. package/dist/webquark/p-846dc838.entry.js +1 -0
  281. package/dist/webquark/{p-030ecde3.entry.js → p-84b350a3.entry.js} +1 -1
  282. package/dist/webquark/p-85131314.entry.js +1 -0
  283. package/dist/webquark/{p-f1bac94c.entry.js → p-852e88ae.entry.js} +1 -1
  284. package/dist/webquark/{p-0aa74ad6.entry.js → p-86c05afd.entry.js} +1 -1
  285. package/dist/webquark/p-8c5b2706.entry.js +1 -0
  286. package/dist/webquark/p-923527f0.entry.js +1 -0
  287. package/dist/webquark/{p-f4f97e74.entry.js → p-9a76cd71.entry.js} +1 -1
  288. package/dist/webquark/p-BDsIecIx.js +1 -0
  289. package/dist/webquark/p-CArIPzJU.js +1 -0
  290. package/dist/{components/p-BofcK-7Z.js → webquark/p-DDUED8LT.js} +1 -1
  291. package/dist/webquark/{p-DWO-pleQ.js → p-Dnz3WmdX.js} +1 -1
  292. package/dist/webquark/p-DoGM9gsC.js +3 -0
  293. package/dist/webquark/p-a0d97367.entry.js +1 -0
  294. package/dist/webquark/{p-5f232b44.entry.js → p-a16bd8d5.entry.js} +1 -1
  295. package/dist/webquark/{p-059daa8a.entry.js → p-a2334abe.entry.js} +1 -1
  296. package/dist/webquark/{p-36118d90.entry.js → p-a2ff1b64.entry.js} +1 -1
  297. package/dist/webquark/{p-dd115868.entry.js → p-a314bc21.entry.js} +1 -1
  298. package/dist/webquark/p-a3e1096d.entry.js +1 -0
  299. package/dist/webquark/{p-f63b7214.entry.js → p-a66550da.entry.js} +1 -1
  300. package/dist/webquark/{p-f9ad63ff.entry.js → p-aa342e81.entry.js} +1 -1
  301. package/dist/webquark/{p-6e28cfe2.entry.js → p-b1c771fb.entry.js} +1 -1
  302. package/dist/webquark/p-b21ad707.entry.js +1 -0
  303. package/dist/webquark/p-b45ca926.entry.js +1 -0
  304. package/dist/webquark/{p-8ece2c62.entry.js → p-b8fdef4f.entry.js} +1 -1
  305. package/dist/webquark/{p-64096386.entry.js → p-d4788321.entry.js} +1 -1
  306. package/dist/webquark/p-d86bd51d.entry.js +1 -0
  307. package/dist/webquark/{p-48fb5228.entry.js → p-dbcf7592.entry.js} +1 -1
  308. package/dist/webquark/p-e0943d41.entry.js +1 -0
  309. package/dist/webquark/{p-6bfffa79.entry.js → p-e2721e77.entry.js} +1 -1
  310. package/dist/webquark/{p-3bc4629c.entry.js → p-e723a7ae.entry.js} +1 -1
  311. package/dist/webquark/p-eb800d1e.entry.js +1 -0
  312. package/dist/webquark/{p-99d785ca.entry.js → p-f4d23ffe.entry.js} +1 -1
  313. package/dist/webquark/{p-4d61b70d.entry.js → p-f51e1098.entry.js} +1 -1
  314. package/dist/webquark/{p-9ff7e5a4.entry.js → p-fe14f038.entry.js} +1 -1
  315. package/dist/webquark/webquark.css +1 -1
  316. package/dist/webquark/webquark.esm.js +1 -1
  317. package/package.json +2 -2
  318. package/dist/components/p-B4Mg1xEw.js +0 -1
  319. package/dist/components/p-ByfrUWx1.js +0 -1
  320. package/dist/components/p-CN1ut2Lb.js +0 -1
  321. package/dist/components/p-ye27qtRo.js +0 -1
  322. package/dist/webquark/p-04c8cb9e.entry.js +0 -1
  323. package/dist/webquark/p-0ae43d6c.entry.js +0 -1
  324. package/dist/webquark/p-0c3aac3f.entry.js +0 -1
  325. package/dist/webquark/p-144ef339.entry.js +0 -1
  326. package/dist/webquark/p-296fbdb1.entry.js +0 -1
  327. package/dist/webquark/p-70d9ffde.entry.js +0 -1
  328. package/dist/webquark/p-91fff6b6.entry.js +0 -1
  329. package/dist/webquark/p-923dac41.entry.js +0 -1
  330. package/dist/webquark/p-97a89cae.entry.js +0 -1
  331. package/dist/webquark/p-B4Mg1xEw.js +0 -1
  332. package/dist/webquark/p-B5ElFlHv.js +0 -3
  333. package/dist/webquark/p-ByfrUWx1.js +0 -1
  334. package/dist/webquark/p-c523ec6f.entry.js +0 -1
  335. package/dist/webquark/p-d0253d64.entry.js +0 -1
  336. package/dist/webquark/p-d0fbd2b1.entry.js +0 -1
  337. package/dist/webquark/p-fe200f68.entry.js +0 -1
  338. /package/dist/collection/{utils → components/data-display/syntax-box/internals}/formatter.js +0 -0
  339. /package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.js +0 -0
  340. /package/dist/types/components/actions/button/{button.utils.unit.test.d.ts → test/button.utils.unit.test.d.ts} +0 -0
  341. /package/dist/types/{utils → components/data-display/syntax-box/internals}/formatter.d.ts +0 -0
  342. /package/dist/types/{utils → components/data-display/syntax-box/internals}/formatter.unit.test.d.ts +0 -0
  343. /package/dist/types/{utils → components/data-display/syntax-box/internals}/syntax.d.ts +0 -0
  344. /package/dist/types/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.d.ts +0 -0
@@ -30,6 +30,8 @@ export class QInput {
30
30
  /** Omitted inherits the enclosing form; false cancels reservation. */
31
31
  reserveFeedback;
32
32
  size = 'inherit';
33
+ /** Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout. */
34
+ width;
33
35
  /** Shows a clear button when the field has a value. */
34
36
  clearable = false;
35
37
  disabled = false;
@@ -298,16 +300,16 @@ export class QInput {
298
300
  const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
299
301
  const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
300
302
  const ariaLabel = this.ariaLabel?.trim() || undefined;
301
- return (h("div", { key: '0e7840b7336a1fa58a1e7a8caadf5201d01fddaf', style: feedbackStyle(this.reserveFeedback), class: {
303
+ return (h("div", { key: 'b71bf01d50e267da7463549040d3158e2794abbd', style: feedbackStyle(this.reserveFeedback), class: {
302
304
  'input-wrapper': true,
303
305
  'is-disabled': this.isDisabled,
304
306
  'has-error': hasError,
305
307
  [`size-${this.size}`]: true
306
- } }, this.label && (h("label", { key: '06a2ade9135e9a32a9e9e86d4a1a39f5e24041cf', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: '6613a45de2e78a0a1c4f633662e41bb25bae2113', class: "input-control", part: "control" }, h("span", { key: '5fbf515406625be7f858bdd2b392f5b445742f2a', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: '0db14593c4fef2fa5c189c97e1494e66ce0f1111', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
308
+ } }, this.label && (h("label", { key: 'b958e678ddb262d48f6e425a607419b2bf43f4d8', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: 'fb1a9bdcb5374e4248fb979f8b3d015a7073a28c', class: "input-control", part: "control" }, h("span", { key: 'd6a2a708b5725f2ad049a1d5237d222e3634faef', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: '1c456d29bf3445f1642aa82ddcb97a598042e3f3', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
307
309
  'input-box': true,
308
310
  'has-prefix-padding': this.hasPrefix,
309
311
  'has-suffix-padding': showSuffixContainer
310
- }, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.isDisabled && (h("div", { key: '43adf0ab89c2707936a809dcb5bdbb71b73e4773', class: "input-spinners", part: "spinners" }, h("button", { key: '06c2a7a29c88df2f09225f17c6a61910df53ad55', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, h("svg", { key: '97f929deb4071b94d1a4c17ab3d1f22d57e18082', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '964b1b3bd8246c0d2bb85c92cb7b1dc5054923be', d: "M18 15l-6-6-6 6" }))), h("button", { key: '818f78f1cd5c019d1a7c13e5cd55d9de1650e910', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, h("svg", { key: '2cddd6507a0f5040de732a0367fe642675d9775d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '8a024c5974c35e82627545ec026abc5c33442c2d', d: "M6 9l6 6 6-6" }))))), h("span", { key: '637b5e01d20e62bef51928ae7506275aad8f557d', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: '0acd5527b76f26646c01004f08f2cf99ac5e191b', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: '94b09cd8041c6a203ad66b9ab3ad49bf86f2ff60', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'c06b44e36b139618e80636736ca679e70b975a6a', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (h("button", { key: '0f80c2072d9c51c0b3edfb7a42ecb87ea6c9126b', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M3 3l18 18" }), h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), h("circle", { cx: "12", cy: "12", r: "3" }))))), h("span", { key: '736690c1f52724f69ada9078e92449399e4a01c9', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, h("slot", { key: 'f1d5cd767b073438728bb95e5643a29e56e3556a', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), fieldFeedback('q-field-error', displayError, this.description)));
312
+ }, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.isDisabled && (h("div", { key: '0f1a9f35efb2cdd52f3524d1230f5790b2c9dde4', class: "input-spinners", part: "spinners" }, h("button", { key: '1c7655ae1ae057c9d3e5b54d209c26ff6b9add97', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, h("svg", { key: 'f341aabd6411329fc2688d15fcfd6bed963f2839', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '168c85528a0784965cce64f1e646360cd62bc927', d: "M18 15l-6-6-6 6" }))), h("button", { key: '48cfd65993b4a56bc0eb319565656eb28f44997f', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, h("svg", { key: 'a1593bac780e54e3441cb1fe8c5f8bfaeafe038f', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '8d899374a935ec843e4cc33846747af98a37878d', d: "M6 9l6 6 6-6" }))))), h("span", { key: 'f42635f7d63b90d957c008cafe777616d5523313', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: '4b5382c98c3ff4cf00ec32131ff7000feb55f39b', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: 'aa79913aeb728e893da73a66a531b72f8ec0cbae', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: '62577d528db5bc4b5846a5f7276ed0addc22478a', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (h("button", { key: 'c34bde830e34ed73aeba3a95c33010faac039d68', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M3 3l18 18" }), h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), h("circle", { cx: "12", cy: "12", r: "3" }))))), h("span", { key: '2acf49e398fdbedf792228f8c07a5118aba3ca65', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, h("slot", { key: '5a7972e08af55587b17dbb67e1f32b6e9fbb5c60', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), fieldFeedback('q-field-error', displayError, this.description)));
311
313
  }
312
314
  static get is() { return "q-input"; }
313
315
  static get encapsulation() { return "shadow"; }
@@ -489,6 +491,32 @@ export class QInput {
489
491
  "attribute": "size",
490
492
  "defaultValue": "'inherit'"
491
493
  },
494
+ "width": {
495
+ "type": "string",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "QInputWidth",
499
+ "resolved": "\"full\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\" | \"xxl\"",
500
+ "references": {
501
+ "QInputWidth": {
502
+ "location": "import",
503
+ "path": "../../../theme/tokens",
504
+ "id": "../../../src/browser/theme/tokens.ts::QInputWidth",
505
+ "referenceLocation": "QInputWidth"
506
+ }
507
+ }
508
+ },
509
+ "required": false,
510
+ "optional": true,
511
+ "docs": {
512
+ "tags": [],
513
+ "text": "Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout."
514
+ },
515
+ "getter": false,
516
+ "setter": false,
517
+ "reflect": true,
518
+ "attribute": "width"
519
+ },
492
520
  "clearable": {
493
521
  "type": "boolean",
494
522
  "mutable": false,
@@ -169,3 +169,25 @@
169
169
  .variant-horizontal .quantity-btn { width: var(--q-quantity-selector-height, var(--_q-control-height)); min-height: calc(var(--_q-control-height) - 2px); }
170
170
  .variant-vertical .quantity-btn { height: var(--q-quantity-selector-height, var(--_q-control-height)); }
171
171
  .btn-icon { width: var(--_q-control-icon); height: var(--_q-control-icon); }
172
+
173
+ /* Shared opt-in presentation; standalone surfaces retain their existing rules. */
174
+ :host([data-q-control-group]) :is(.input-control, .dropdown-trigger, .quantity-selector, .btn, .toggle-wrapper) {
175
+ border-start-start-radius: var(--_q-group-start-start, 0px);
176
+ border-start-end-radius: var(--_q-group-start-end, 0px);
177
+ border-end-start-radius: var(--_q-group-end-start, 0px);
178
+ border-end-end-radius: var(--_q-group-end-end, 0px);
179
+ }
180
+
181
+ :host([data-q-control-group]) .toggle-wrapper {
182
+ box-sizing: border-box;
183
+ min-height: var(--_q-control-height);
184
+ padding-inline: var(--_q-control-padding);
185
+ border: var(--q-border, 1px solid var(--q-border-color, #4b5563));
186
+ background: var(--q-bg-field, var(--q-bg-surface-3, #22304d));
187
+ }
188
+
189
+ :host([data-q-control-group]) :is(.btn, .toggle-wrapper, .quantity-selector) {
190
+ width: 100%;
191
+ }
192
+
193
+
@@ -111,15 +111,15 @@ export class QQuantitySelector {
111
111
  const hasFiniteValue = Number.isFinite(this.value);
112
112
  const isMinDisabled = hasFiniteValue && hasQuantityBound(this.min) && finiteValue <= this.min;
113
113
  const isMaxDisabled = hasFiniteValue && hasQuantityBound(this.max) && finiteValue >= this.max;
114
- const decBtn = (h("button", { key: '30fa7ec5c3107fa5998b024fca52159049db44cd', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, h("svg", { key: 'db75d927d50185405dad3d3d3ef08cc272a5b9f6', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '95f9d2c1a629a09b7c7af46f78c98be815072b77', x1: "5", y1: "12", x2: "19", y2: "12" }))));
115
- const incBtn = (h("button", { key: 'f5b10472bcb204786fd5f99bb7d65460f0563085', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, h("svg", { key: '4cadfcc80ad635a1d3e071ee9ee2d1f7e7b2edba', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: 'ce8f56298de3278261fec1e5be4986ba20bca3df', x1: "12", y1: "5", x2: "12", y2: "19" }), h("line", { key: '1859bff4ee680aef496ae187fda1294ed6ec202d', x1: "5", y1: "12", x2: "19", y2: "12" }))));
114
+ const decBtn = (h("button", { key: 'cbbda2b87d557156333f6eac8a569fe66d462a84', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, h("svg", { key: 'b7180042b807332f9f608384a3dae7d8d6d46d61', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: 'cfeb1fc1bd4ef174f5175c826427e52d86824f24', x1: "5", y1: "12", x2: "19", y2: "12" }))));
115
+ const incBtn = (h("button", { key: '1c5ef6890bd91c8d35f79c90a5934c0cd614d631', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, h("svg", { key: '0b8b9db431141e89faa8185f2b1ff4d23ce9916d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: 'cb831f315150171913a9c016c2a3ac2092e73d82', x1: "12", y1: "5", x2: "12", y2: "19" }), h("line", { key: 'd0c5093d484ee49facd448a02f54f0adabf5c35e', x1: "5", y1: "12", x2: "19", y2: "12" }))));
116
116
  const calculatedWidth = orientation === 'horizontal' ? this.getCalculatedWidth() : '100%';
117
- return (h("div", { key: '080103dbd4019e6a0499ad790fe48139d3540678', class: {
117
+ return (h("div", { key: 'c1780e7303cfc38f06211661d470ae4529656084', class: {
118
118
  'quantity-selector': true,
119
119
  [`size-${this.size}`]: true,
120
120
  [`orientation-${orientation}`]: true,
121
121
  [`variant-${orientation}`]: true,
122
- }, onClick: this.handleClick }, orientation === 'vertical' ? incBtn : decBtn, h("input", { key: 'ec3160e1e2b672a0fc32e0f2485613aeae10202a', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, onKeyDown: this.handleKeyDown, role: "spinbutton", "aria-valuenow": hasFiniteValue ? String(this.value) : undefined, "aria-valuemin": hasQuantityBound(this.min) ? String(this.min) : undefined, "aria-valuemax": hasQuantityBound(this.max) ? String(this.max) : undefined, "aria-label": "Quantity", style: { width: calculatedWidth }, part: "input" }), orientation === 'vertical' ? decBtn : incBtn));
122
+ }, onClick: this.handleClick }, orientation === 'vertical' ? incBtn : decBtn, h("input", { key: 'c5877e6e3caf9c348234884707a84044c71872d2', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, onKeyDown: this.handleKeyDown, role: "spinbutton", "aria-valuenow": hasFiniteValue ? String(this.value) : undefined, "aria-valuemin": hasQuantityBound(this.min) ? String(this.min) : undefined, "aria-valuemax": hasQuantityBound(this.max) ? String(this.max) : undefined, "aria-label": "Quantity", style: { width: calculatedWidth }, part: "input" }), orientation === 'vertical' ? decBtn : incBtn));
123
123
  }
124
124
  static get is() { return "q-quantity-selector"; }
125
125
  static get encapsulation() { return "shadow"; }
@@ -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: 'daf7db6e2c9893a43e02c28a465ce8193b0e9eb4', style: feedbackStyle(this.reserveFeedback), class: {
196
+ return (h("div", { key: '2348b3c0574a2d94074fe103242b4b83bb77c5b3', 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: '9f2faf0d63a50c724b1cad0446806b6b86b12043', 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: 'ed67eae4bf57beb72d3511c6d974b33697dddf05', part: "label", class: { 'q-label-hidden': this.labelHidden } }, this.label), h("div", { key: '529d0bdf2c2fdee6d98663389b65f820507ec04a', 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: '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: {
203
203
  option: true,
204
204
  'is-selected': option.value === this.value,
205
205
  'is-disabled': this.isDisabled || option.disabled === true,
@@ -0,0 +1,44 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ font-family: var(--q-font-family, inherit);
5
+ --_primary: var(--q-slider-thumb-color, var(--q-color-primary, #6365f4));
6
+ --_hover: var(--q-slider-thumb-hover-color, color-mix(in srgb, var(--_primary) 80%, white));
7
+ --_track: var(--q-slider-track-color, color-mix(in srgb, var(--q-fg-base, #e2e8f0) 8%, transparent));
8
+ }
9
+ .field { display: flex; flex-direction: column; gap: 8px; }
10
+ .label-row { display: flex; justify-content: space-between; align-items: center; color: var(--q-fg-base, #e2e8f0); font-size: .85rem; }
11
+ .badge {
12
+ margin-inline-start: auto;
13
+ background: color-mix(in srgb, var(--_primary) 15%, transparent);
14
+ color: var(--_hover);
15
+ border: 1px solid color-mix(in srgb, var(--_primary) 30%, transparent);
16
+ padding: .1rem .4rem;
17
+ border-radius: 4px;
18
+ font-family: monospace;
19
+ font-size: .75rem;
20
+ }
21
+ input {
22
+ appearance: none; width: 100%; box-sizing: border-box; margin: 2px;
23
+ height: 6px; border-radius: 3px; background: var(--_track); outline: none;
24
+ }
25
+ input::-webkit-slider-thumb {
26
+ appearance: none; width: 16px; height: 16px; border-radius: 50%; border: none;
27
+ background: var(--_primary);
28
+ box-shadow: 0 0 8px color-mix(in srgb, var(--_primary) 80%, transparent); cursor: pointer;
29
+ }
30
+ input::-moz-range-thumb {
31
+ width: 16px; height: 16px; border-radius: 50%; border: none;
32
+ background: var(--_primary);
33
+ box-shadow: 0 0 8px color-mix(in srgb, var(--_primary) 80%, transparent); cursor: pointer;
34
+ }
35
+ input::-moz-range-track { height: 6px; background: transparent; border: none; }
36
+ input:enabled::-webkit-slider-thumb:hover { transform: scale(1.2); background: var(--_hover); }
37
+ input:enabled::-moz-range-thumb:hover { transform: scale(1.2); background: var(--_hover); }
38
+ input:focus-visible { outline: 2px solid var(--_primary); outline-offset: 4px; }
39
+ input:disabled { opacity: var(--q-disabled-opacity, .5); cursor: not-allowed; }
40
+ input:disabled::-webkit-slider-thumb { cursor: not-allowed; }
41
+ input:disabled::-moz-range-thumb { cursor: not-allowed; }
42
+ @media (forced-colors: active) {
43
+ input { appearance: auto; }
44
+ }
@@ -0,0 +1,383 @@
1
+ import { h } from "@stencil/core";
2
+ import { isFieldDisabled } from "../../../utils/form-field-state";
3
+ import { registerFormField } from "../../../utils/form-field-adapter";
4
+ /**
5
+ * Single-value range input with a themed track, glowing thumb and optional value badge.
6
+ * @part label - Label and value row.
7
+ * @part value - Current-value badge.
8
+ * @part input - Native range control.
9
+ */
10
+ export class QSlider {
11
+ el;
12
+ /** Current value. Defaults to the minimum when omitted. */
13
+ value;
14
+ label;
15
+ /** Suffix for the displayed value, such as px or %. */
16
+ suffix = '';
17
+ showValue = true;
18
+ disabled = false;
19
+ min = 0;
20
+ max = 100;
21
+ step = 1;
22
+ name;
23
+ ariaLabel = null;
24
+ internals;
25
+ /** Numeric value emitted continuously while dragging or using the keyboard. */
26
+ qInput;
27
+ /** Numeric value emitted when the interaction is committed. */
28
+ qChange;
29
+ fieldDisabled = false;
30
+ inputEl;
31
+ initialValue;
32
+ componentWillLoad() {
33
+ this.initialValue = this.value;
34
+ this.normalize();
35
+ }
36
+ constraintsChanged() { this.normalize(); }
37
+ disabledChanged() { this.syncForm(); }
38
+ get lower() { return Number.isFinite(this.min) ? this.min : 0; }
39
+ get upper() { return Math.max(this.lower, Number.isFinite(this.max) ? this.max : 100); }
40
+ get increment() { return Number.isFinite(this.step) && this.step > 0 ? this.step : 1; }
41
+ normalize() {
42
+ const candidate = Number.isFinite(this.value) ? this.value : this.lower;
43
+ const steps = Math.round((Math.min(this.upper, Math.max(this.lower, candidate)) - this.lower) / this.increment);
44
+ const lastStep = Math.floor((this.upper - this.lower) / this.increment + 1e-10);
45
+ const next = Number((this.lower + Math.min(steps, lastStep) * this.increment).toPrecision(12));
46
+ if (this.value !== next)
47
+ this.value = next;
48
+ this.syncForm();
49
+ }
50
+ syncForm() {
51
+ this.fieldDisabled = isFieldDisabled(this.el, this.disabled);
52
+ this.internals?.setFormValue?.(this.fieldDisabled ? null : String(this.value ?? this.lower));
53
+ }
54
+ componentDidLoad() {
55
+ registerFormField(this.el, {
56
+ kind: 'text',
57
+ owner: () => this.internals?.form ?? null,
58
+ active: () => true,
59
+ value: () => String(this.value),
60
+ assign: value => { this.value = Number(value); this.normalize(); },
61
+ reconcile: () => this.normalize(),
62
+ reset: () => this.formResetCallback(),
63
+ validate: () => true,
64
+ });
65
+ this.syncForm();
66
+ }
67
+ formDisabledCallback() { this.syncForm(); }
68
+ formResetCallback() { this.value = this.initialValue; this.normalize(); }
69
+ formStateRestoreCallback(state) {
70
+ if (typeof state === 'string') {
71
+ this.value = Number(state);
72
+ this.normalize();
73
+ }
74
+ }
75
+ async focusElement() { this.inputEl?.focus(); }
76
+ onValue(event, committed) {
77
+ if (this.fieldDisabled)
78
+ return;
79
+ this.value = event.target.valueAsNumber;
80
+ this.normalize();
81
+ if (committed)
82
+ this.qChange.emit(this.value);
83
+ else
84
+ this.qInput.emit(this.value);
85
+ }
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) })));
88
+ }
89
+ static get is() { return "q-slider"; }
90
+ static get encapsulation() { return "shadow"; }
91
+ static get delegatesFocus() { return true; }
92
+ static get formAssociated() { return true; }
93
+ static get originalStyleUrls() {
94
+ return {
95
+ "$": ["slider.css"]
96
+ };
97
+ }
98
+ static get styleUrls() {
99
+ return {
100
+ "$": ["slider.css"]
101
+ };
102
+ }
103
+ static get properties() {
104
+ return {
105
+ "value": {
106
+ "type": "number",
107
+ "mutable": true,
108
+ "complexType": {
109
+ "original": "number",
110
+ "resolved": "number",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Current value. Defaults to the minimum when omitted."
118
+ },
119
+ "getter": false,
120
+ "setter": false,
121
+ "reflect": false,
122
+ "attribute": "value"
123
+ },
124
+ "label": {
125
+ "type": "string",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "string",
129
+ "resolved": "string",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": true,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "getter": false,
139
+ "setter": false,
140
+ "reflect": false,
141
+ "attribute": "label"
142
+ },
143
+ "suffix": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "string",
148
+ "resolved": "string",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "Suffix for the displayed value, such as px or %."
156
+ },
157
+ "getter": false,
158
+ "setter": false,
159
+ "reflect": false,
160
+ "attribute": "suffix",
161
+ "defaultValue": "''"
162
+ },
163
+ "showValue": {
164
+ "type": "boolean",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": ""
176
+ },
177
+ "getter": false,
178
+ "setter": false,
179
+ "reflect": false,
180
+ "attribute": "show-value",
181
+ "defaultValue": "true"
182
+ },
183
+ "disabled": {
184
+ "type": "boolean",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "boolean",
188
+ "resolved": "boolean",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": false,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": ""
196
+ },
197
+ "getter": false,
198
+ "setter": false,
199
+ "reflect": true,
200
+ "attribute": "disabled",
201
+ "defaultValue": "false"
202
+ },
203
+ "min": {
204
+ "type": "number",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "number",
208
+ "resolved": "number",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "getter": false,
218
+ "setter": false,
219
+ "reflect": false,
220
+ "attribute": "min",
221
+ "defaultValue": "0"
222
+ },
223
+ "max": {
224
+ "type": "number",
225
+ "mutable": false,
226
+ "complexType": {
227
+ "original": "number",
228
+ "resolved": "number",
229
+ "references": {}
230
+ },
231
+ "required": false,
232
+ "optional": false,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": ""
236
+ },
237
+ "getter": false,
238
+ "setter": false,
239
+ "reflect": false,
240
+ "attribute": "max",
241
+ "defaultValue": "100"
242
+ },
243
+ "step": {
244
+ "type": "number",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "number",
248
+ "resolved": "number",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": ""
256
+ },
257
+ "getter": false,
258
+ "setter": false,
259
+ "reflect": false,
260
+ "attribute": "step",
261
+ "defaultValue": "1"
262
+ },
263
+ "name": {
264
+ "type": "string",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "string",
268
+ "resolved": "string",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": true,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": ""
276
+ },
277
+ "getter": false,
278
+ "setter": false,
279
+ "reflect": true,
280
+ "attribute": "name"
281
+ },
282
+ "ariaLabel": {
283
+ "type": "string",
284
+ "mutable": false,
285
+ "complexType": {
286
+ "original": "string | null",
287
+ "resolved": "string",
288
+ "references": {}
289
+ },
290
+ "required": false,
291
+ "optional": false,
292
+ "docs": {
293
+ "tags": [],
294
+ "text": ""
295
+ },
296
+ "getter": false,
297
+ "setter": false,
298
+ "reflect": false,
299
+ "attribute": "aria-label",
300
+ "defaultValue": "null"
301
+ }
302
+ };
303
+ }
304
+ static get states() {
305
+ return {
306
+ "fieldDisabled": {}
307
+ };
308
+ }
309
+ static get events() {
310
+ return [{
311
+ "method": "qInput",
312
+ "name": "qInput",
313
+ "bubbles": true,
314
+ "cancelable": true,
315
+ "composed": true,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": "Numeric value emitted continuously while dragging or using the keyboard."
319
+ },
320
+ "complexType": {
321
+ "original": "number",
322
+ "resolved": "number",
323
+ "references": {}
324
+ }
325
+ }, {
326
+ "method": "qChange",
327
+ "name": "qChange",
328
+ "bubbles": true,
329
+ "cancelable": true,
330
+ "composed": true,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": "Numeric value emitted when the interaction is committed."
334
+ },
335
+ "complexType": {
336
+ "original": "number",
337
+ "resolved": "number",
338
+ "references": {}
339
+ }
340
+ }];
341
+ }
342
+ static get methods() {
343
+ return {
344
+ "focusElement": {
345
+ "complexType": {
346
+ "signature": "() => Promise<void>",
347
+ "parameters": [],
348
+ "references": {
349
+ "Promise": {
350
+ "location": "global",
351
+ "id": "global::Promise"
352
+ }
353
+ },
354
+ "return": "Promise<void>"
355
+ },
356
+ "docs": {
357
+ "text": "",
358
+ "tags": []
359
+ }
360
+ }
361
+ };
362
+ }
363
+ static get elementRef() { return "el"; }
364
+ static get watchers() {
365
+ return [{
366
+ "propName": "value",
367
+ "methodName": "constraintsChanged"
368
+ }, {
369
+ "propName": "min",
370
+ "methodName": "constraintsChanged"
371
+ }, {
372
+ "propName": "max",
373
+ "methodName": "constraintsChanged"
374
+ }, {
375
+ "propName": "step",
376
+ "methodName": "constraintsChanged"
377
+ }, {
378
+ "propName": "disabled",
379
+ "methodName": "disabledChanged"
380
+ }];
381
+ }
382
+ static get attachInternalsMemberName() { return "internals"; }
383
+ }
@@ -0,0 +1,45 @@
1
+ import { afterEach, beforeAll, expect, it } from "vitest";
2
+ import { userEvent } from "vitest/browser";
3
+ // @ts-ignore
4
+ import { defineCustomElements } from "../../../../../../packages/browser/components/dist/loader";
5
+ defineCustomElements();
6
+ beforeAll(async () => { await customElements.whenDefined('q-slider'); });
7
+ afterEach(() => document.body.replaceChildren());
8
+ const settle = () => new Promise(resolve => setTimeout(resolve, 30));
9
+ it('supports keyboard, form submission, reset and disabled fieldsets', async () => {
10
+ const form = document.createElement('form');
11
+ form.innerHTML = '<fieldset><q-slider name="gap" label="Gap" min="4" max="40" value="16" suffix="px"></q-slider></fieldset>';
12
+ document.body.append(form);
13
+ const slider = form.querySelector('q-slider');
14
+ await slider.componentOnReady();
15
+ const input = slider.shadowRoot.querySelector('input');
16
+ await userEvent.click(input);
17
+ await userEvent.keyboard('{Home}');
18
+ await settle();
19
+ expect(slider.value).toBe(4);
20
+ await userEvent.keyboard('{ArrowRight}');
21
+ await settle();
22
+ expect(slider.value).toBe(5);
23
+ expect(new FormData(form).get('gap')).toBe('5');
24
+ form.reset();
25
+ await settle();
26
+ expect(slider.value).toBe(16);
27
+ form.querySelector('fieldset').disabled = true;
28
+ await settle();
29
+ expect(input.disabled).toBe(true);
30
+ expect(new FormData(form).has('gap')).toBe(false);
31
+ });
32
+ it('participates in q-form values and theme overrides', async () => {
33
+ const form = document.createElement('q-form');
34
+ form.innerHTML = '<q-slider name="columns" label="Columns" min="1" max="10" value="3"></q-slider>';
35
+ document.body.append(form);
36
+ await form.componentOnReady();
37
+ const slider = form.querySelector('q-slider');
38
+ await slider.componentOnReady();
39
+ await form.setValues({ columns: '7' });
40
+ await settle();
41
+ expect(slider.value).toBe(7);
42
+ expect((await form.getValues()).columns).toBe('7');
43
+ slider.style.setProperty('--q-slider-track-color', 'rgb(10, 20, 30)');
44
+ expect(getComputedStyle(slider.shadowRoot.querySelector('input')).backgroundColor).toBe('rgb(10, 20, 30)');
45
+ });
@@ -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;