@webquark/browser 0.0.0-stage → 1.1.0-dev.10

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 (802) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -2
  3. package/dist/cjs/Leaflet.GoogleMutant-i4bYl6qy.js +768 -0
  4. package/dist/cjs/action.props-N0urQtdP.js +35 -0
  5. package/dist/cjs/chevron-up-D4t2OSHA.js +30 -0
  6. package/dist/cjs/collection-identity-CV5HLD9Z.js +141 -0
  7. package/dist/cjs/data-table-cell-8uUCk2Qz.js +51 -0
  8. package/dist/cjs/dom-Dk77oFF6.js +247 -0
  9. package/dist/cjs/field-CsrQGhG-.js +14 -0
  10. package/dist/cjs/form-control-validity-D1ukC0_e.js +49 -0
  11. package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
  12. package/dist/cjs/form-field-state-P63wN30v.js +51 -0
  13. package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
  14. package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
  15. package/dist/cjs/index-DWXhKHCB.js +1869 -0
  16. package/dist/cjs/index.cjs.js +34 -0
  17. package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
  18. package/dist/cjs/leaflet-src-mrRg-Srs.js +14551 -0
  19. package/dist/cjs/loader.cjs.js +12 -0
  20. package/dist/cjs/map.types-BWymIRql.js +24 -0
  21. package/dist/cjs/q-accordion.cjs.entry.js +18 -0
  22. package/dist/cjs/q-alert.cjs.entry.js +52 -0
  23. package/dist/cjs/q-avatar.cjs.entry.js +101 -0
  24. package/dist/cjs/q-banner.cjs.entry.js +19 -0
  25. package/dist/cjs/q-button_2.cjs.entry.js +462 -0
  26. package/dist/cjs/q-card.cjs.entry.js +88 -0
  27. package/dist/cjs/q-carousel.cjs.entry.js +718 -0
  28. package/dist/cjs/q-chip.cjs.entry.js +124 -0
  29. package/dist/cjs/q-conversation-bubble.cjs.entry.js +70 -0
  30. package/dist/cjs/q-data-table.cjs.entry.js +611 -0
  31. package/dist/cjs/q-dialog.cjs.entry.js +271 -0
  32. package/dist/cjs/q-dropdown.cjs.entry.js +699 -0
  33. package/dist/cjs/q-form.cjs.entry.js +1002 -0
  34. package/dist/cjs/q-grid.cjs.entry.js +24 -0
  35. package/dist/cjs/q-icon.cjs.entry.js +439 -0
  36. package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
  37. package/dist/cjs/q-inline.cjs.entry.js +22 -0
  38. package/dist/cjs/q-input_2.cjs.entry.js +438 -0
  39. package/dist/cjs/q-link.cjs.entry.js +80 -0
  40. package/dist/cjs/q-map.cjs.entry.js +3509 -0
  41. package/dist/cjs/q-media.cjs.entry.js +21 -0
  42. package/dist/cjs/q-navbar.cjs.entry.js +415 -0
  43. package/dist/cjs/q-pagination.cjs.entry.js +68 -0
  44. package/dist/cjs/q-panel.cjs.entry.js +76 -0
  45. package/dist/cjs/q-quantity-selector.cjs.entry.js +204 -0
  46. package/dist/cjs/q-radio-group.cjs.entry.js +261 -0
  47. package/dist/cjs/q-reel.cjs.entry.js +170 -0
  48. package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
  49. package/dist/cjs/q-section.cjs.entry.js +20 -0
  50. package/dist/cjs/q-sidepanel.cjs.entry.js +793 -0
  51. package/dist/cjs/q-stack.cjs.entry.js +20 -0
  52. package/dist/cjs/q-step-diagram-item.cjs.entry.js +45 -0
  53. package/dist/cjs/q-step-diagram.cjs.entry.js +56 -0
  54. package/dist/cjs/q-syntax-box.cjs.entry.js +782 -0
  55. package/dist/cjs/q-tabs.cjs.entry.js +155 -0
  56. package/dist/cjs/q-textarea.cjs.entry.js +295 -0
  57. package/dist/cjs/q-thumbnail.cjs.entry.js +51 -0
  58. package/dist/cjs/q-toast.cjs.entry.js +400 -0
  59. package/dist/cjs/q-toggle.cjs.entry.js +233 -0
  60. package/dist/cjs/q-toolbar.cjs.entry.js +33 -0
  61. package/dist/cjs/registry-CzkkkaZO.js +323 -0
  62. package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
  63. package/dist/cjs/tokens-RMRaIOqv.js +957 -0
  64. package/dist/cjs/utils-DGQOjEwT.js +33 -0
  65. package/dist/cjs/webquark.cjs.js +24 -0
  66. package/dist/collection/assets/icons/braces.svg +14 -0
  67. package/dist/collection/assets/icons/check.svg +1 -0
  68. package/dist/collection/assets/icons/chevron-down.svg +1 -0
  69. package/dist/collection/assets/icons/chevron-left.svg +1 -0
  70. package/dist/collection/assets/icons/chevron-right.svg +1 -0
  71. package/dist/collection/assets/icons/chevron-up.svg +1 -0
  72. package/dist/collection/assets/icons/copy.svg +4 -0
  73. package/dist/collection/assets/icons/eye-off.svg +1 -0
  74. package/dist/collection/assets/icons/eye.svg +1 -0
  75. package/dist/collection/assets/icons/minus.svg +1 -0
  76. package/dist/collection/assets/icons/play.svg +1 -0
  77. package/dist/collection/assets/icons/plus.svg +1 -0
  78. package/dist/collection/assets/icons/search.svg +1 -0
  79. package/dist/collection/assets/icons/spinner.svg +1 -0
  80. package/dist/collection/assets/icons/trash-2.svg +1 -0
  81. package/dist/collection/assets/icons/x.svg +1 -0
  82. package/dist/collection/collection-manifest.json +56 -0
  83. package/dist/collection/components/actions/action.props.js +130 -0
  84. package/dist/collection/components/actions/button/button.css +242 -0
  85. package/dist/collection/components/actions/button/button.js +748 -0
  86. package/dist/collection/components/actions/button/button.types.js +1 -0
  87. package/dist/collection/components/actions/button/button.utils.js +9 -0
  88. package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
  89. package/dist/collection/components/actions/button/test/button.utils.unit.test.js +44 -0
  90. package/dist/collection/components/actions/link/link.css +102 -0
  91. package/dist/collection/components/actions/link/link.js +316 -0
  92. package/dist/collection/components/actions/link/link.types.js +1 -0
  93. package/dist/collection/components/communication/alert/alert.css +118 -0
  94. package/dist/collection/components/communication/alert/alert.js +208 -0
  95. package/dist/collection/components/communication/alert/alert.types.js +1 -0
  96. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.css +154 -0
  97. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.js +207 -0
  98. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.types.js +1 -0
  99. package/dist/collection/components/communication/toast/internals/icons.js +25 -0
  100. package/dist/collection/components/communication/toast/internals/queue.js +64 -0
  101. package/dist/collection/components/communication/toast/internals/timers.js +75 -0
  102. package/dist/collection/components/communication/toast/test/toast.cmp.test.js +38 -0
  103. package/dist/collection/components/communication/toast/test/toast.unit.test.js +104 -0
  104. package/dist/collection/components/communication/toast/toast-controller.js +105 -0
  105. package/dist/collection/components/communication/toast/toast.css +141 -0
  106. package/dist/collection/components/communication/toast/toast.js +556 -0
  107. package/dist/collection/components/communication/toast/toast.types.js +1 -0
  108. package/dist/collection/components/content/banner/banner.css +1 -0
  109. package/dist/collection/components/content/banner/banner.js +84 -0
  110. package/dist/collection/components/content/banner/banner.types.js +1 -0
  111. package/dist/collection/components/content/card/card.css +105 -0
  112. package/dist/collection/components/content/card/card.js +308 -0
  113. package/dist/collection/components/content/card/card.types.js +1 -0
  114. package/dist/collection/components/content/card/card.utils.js +15 -0
  115. package/dist/collection/components/content/carousel/carousel.css +254 -0
  116. package/dist/collection/components/content/carousel/carousel.js +956 -0
  117. package/dist/collection/components/content/carousel/carousel.types.js +1 -0
  118. package/dist/collection/components/content/carousel/carousel.utils.js +1 -0
  119. package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
  120. package/dist/collection/components/content/carousel/internals/metrics.js +59 -0
  121. package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
  122. package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
  123. package/dist/collection/components/data-display/accordion/accordion.css +1 -0
  124. package/dist/collection/components/data-display/accordion/accordion.js +54 -0
  125. package/dist/collection/components/data-display/accordion/accordion.types.js +1 -0
  126. package/dist/collection/components/data-display/chip/chip.css +219 -0
  127. package/dist/collection/components/data-display/chip/chip.js +381 -0
  128. package/dist/collection/components/data-display/chip/chip.types.js +1 -0
  129. package/dist/collection/components/data-display/data-table/data-table-cell.js +44 -0
  130. package/dist/collection/components/data-display/data-table/data-table.css +429 -0
  131. package/dist/collection/components/data-display/data-table/data-table.js +862 -0
  132. package/dist/collection/components/data-display/data-table/data-table.types.js +1 -0
  133. package/dist/collection/components/data-display/data-table/internals/data-access.js +43 -0
  134. package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +22 -0
  135. package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +5 -0
  136. package/dist/collection/components/data-display/data-table/internals/render-table-body.js +59 -0
  137. package/dist/collection/components/data-display/data-table/internals/render-table-head.js +42 -0
  138. package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +6 -0
  139. package/dist/collection/components/data-display/data-table/internals/row-events.js +27 -0
  140. package/dist/collection/components/data-display/data-table/internals/selection.js +31 -0
  141. package/dist/collection/components/data-display/data-table/internals/sort.js +57 -0
  142. package/dist/collection/components/data-display/data-table/internals/table-model.js +92 -0
  143. package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
  144. package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
  145. package/dist/collection/components/data-display/map/internals/base-layer.js +140 -0
  146. package/dist/collection/components/data-display/map/internals/bounds.js +66 -0
  147. package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +128 -0
  148. package/dist/collection/components/data-display/map/internals/cluster-collision.js +73 -0
  149. package/dist/collection/components/data-display/map/internals/google-maps.js +117 -0
  150. package/dist/collection/components/data-display/map/internals/google-mutant.js +51 -0
  151. package/dist/collection/components/data-display/map/internals/maplibre.js +50 -0
  152. package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +136 -0
  153. package/dist/collection/components/data-display/map/internals/marker-controller.js +425 -0
  154. package/dist/collection/components/data-display/map/internals/marker-presentation.js +266 -0
  155. package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
  156. package/dist/collection/components/data-display/map/internals/markers.js +191 -0
  157. package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +67 -0
  158. package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +8 -0
  159. package/dist/collection/components/data-display/map/internals/vector-padding.js +8 -0
  160. package/dist/collection/components/data-display/map/map.css +742 -0
  161. package/dist/collection/components/data-display/map/map.js +1595 -0
  162. package/dist/collection/components/data-display/map/map.types.js +12 -0
  163. package/dist/collection/components/data-display/map/test/map.cmp.test.js +961 -0
  164. package/dist/collection/components/data-display/pagination/pagination.css +81 -0
  165. package/dist/collection/components/data-display/pagination/pagination.js +240 -0
  166. package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +57 -0
  167. package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +9 -0
  168. package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +14 -0
  169. package/dist/collection/components/data-display/syntax-box/internals/formatter.js +156 -0
  170. package/dist/collection/components/data-display/syntax-box/internals/formatter.unit.test.js +71 -0
  171. package/dist/collection/components/data-display/syntax-box/internals/syntax.js +239 -0
  172. package/dist/collection/components/data-display/syntax-box/internals/syntax.unit.test.js +134 -0
  173. package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +10 -0
  174. package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
  175. package/dist/collection/components/data-display/syntax-box/syntax-box.css +209 -0
  176. package/dist/collection/components/data-display/syntax-box/syntax-box.js +678 -0
  177. package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +1 -0
  178. package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +1 -0
  179. package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
  180. package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
  181. package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
  182. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
  183. package/dist/collection/components/indicators/progress/progress.css +223 -0
  184. package/dist/collection/components/indicators/progress/progress.js +275 -0
  185. package/dist/collection/components/indicators/progress/progress.types.js +1 -0
  186. package/dist/collection/components/indicators/step-diagram/step-diagram.css +21 -0
  187. package/dist/collection/components/indicators/step-diagram/step-diagram.js +143 -0
  188. package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
  189. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +252 -0
  190. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +185 -0
  191. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +1 -0
  192. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +3 -0
  193. package/dist/collection/components/inputs/dropdown/dropdown.css +387 -0
  194. package/dist/collection/components/inputs/dropdown/dropdown.js +1236 -0
  195. package/dist/collection/components/inputs/dropdown/dropdown.types.js +1 -0
  196. package/dist/collection/components/inputs/dropdown/internals/options.js +30 -0
  197. package/dist/collection/components/inputs/dropdown/internals/position.js +35 -0
  198. package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +62 -0
  199. package/dist/collection/components/inputs/form/form.css +85 -0
  200. package/dist/collection/components/inputs/form/form.js +808 -0
  201. package/dist/collection/components/inputs/form/form.types.js +1 -0
  202. package/dist/collection/components/inputs/form/internals/controls.js +173 -0
  203. package/dist/collection/components/inputs/form/internals/enter-behavior.js +25 -0
  204. package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
  205. package/dist/collection/components/inputs/form/internals/reset.js +50 -0
  206. package/dist/collection/components/inputs/form/internals/submission.js +140 -0
  207. package/dist/collection/components/inputs/form/internals/values.js +199 -0
  208. package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
  209. package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
  210. package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
  211. package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
  212. package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
  213. package/dist/collection/components/inputs/form/test/form.cmp.test.js +157 -0
  214. package/dist/collection/components/inputs/input/input.css +293 -0
  215. package/dist/collection/components/inputs/input/input.js +907 -0
  216. package/dist/collection/components/inputs/input/input.types.js +1 -0
  217. package/dist/collection/components/inputs/input/input.utils.js +3 -0
  218. package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +64 -0
  219. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +171 -0
  220. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +390 -0
  221. package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
  222. package/dist/collection/components/inputs/radio-group/radio-group.css +224 -0
  223. package/dist/collection/components/inputs/radio-group/radio-group.js +668 -0
  224. package/dist/collection/components/inputs/radio-group/radio-group.types.js +1 -0
  225. package/dist/collection/components/inputs/radio-group/radio-group.utils.js +18 -0
  226. package/dist/collection/components/inputs/textarea/textarea.css +172 -0
  227. package/dist/collection/components/inputs/textarea/textarea.js +799 -0
  228. package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
  229. package/dist/collection/components/inputs/toggle/toggle.css +252 -0
  230. package/dist/collection/components/inputs/toggle/toggle.js +610 -0
  231. package/dist/collection/components/inputs/toggle/toggle.types.js +1 -0
  232. package/dist/collection/components/inputs/toggle/toggle.utils.js +3 -0
  233. package/dist/collection/components/layout/grid/grid.css +11 -0
  234. package/dist/collection/components/layout/grid/grid.js +152 -0
  235. package/dist/collection/components/layout/inline/inline.css +4 -0
  236. package/dist/collection/components/layout/inline/inline.js +118 -0
  237. package/dist/collection/components/layout/navbar/navbar.css +584 -0
  238. package/dist/collection/components/layout/navbar/navbar.js +848 -0
  239. package/dist/collection/components/layout/navbar/navbar.types.js +1 -0
  240. package/dist/collection/components/layout/navbar/navbar.utils.js +13 -0
  241. package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +369 -0
  242. package/dist/collection/components/layout/panel/panel.css +114 -0
  243. package/dist/collection/components/layout/panel/panel.js +394 -0
  244. package/dist/collection/components/layout/panel/panel.types.js +1 -0
  245. package/dist/collection/components/layout/scrollable/internals/metrics.js +61 -0
  246. package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +41 -0
  247. package/dist/collection/components/layout/scrollable/scrollable.css +123 -0
  248. package/dist/collection/components/layout/scrollable/scrollable.js +565 -0
  249. package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
  250. package/dist/collection/components/layout/section/section.css +1 -0
  251. package/dist/collection/components/layout/section/section.js +98 -0
  252. package/dist/collection/components/layout/section/section.types.js +1 -0
  253. package/dist/collection/components/layout/sidepanel/internals/drawer.js +98 -0
  254. package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
  255. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +30 -0
  256. package/dist/collection/components/layout/sidepanel/sidepanel.css +1035 -0
  257. package/dist/collection/components/layout/sidepanel/sidepanel.js +1001 -0
  258. package/dist/collection/components/layout/sidepanel/sidepanel.types.js +1 -0
  259. package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +17 -0
  260. package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
  261. package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
  262. package/dist/collection/components/layout/stack/stack.css +4 -0
  263. package/dist/collection/components/layout/stack/stack.js +76 -0
  264. package/dist/collection/components/layout/tabs/tabs.css +248 -0
  265. package/dist/collection/components/layout/tabs/tabs.js +322 -0
  266. package/dist/collection/components/layout/tabs/tabs.types.js +1 -0
  267. package/dist/collection/components/layout/tabs/tabs.utils.js +31 -0
  268. package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +165 -0
  269. package/dist/collection/components/layout/toolbar/toolbar.css +168 -0
  270. package/dist/collection/components/layout/toolbar/toolbar.js +251 -0
  271. package/dist/collection/components/layout/toolbar/toolbar.types.js +1 -0
  272. package/dist/collection/components/media/avatar/avatar.css +71 -0
  273. package/dist/collection/components/media/avatar/avatar.js +302 -0
  274. package/dist/collection/components/media/avatar/avatar.types.js +1 -0
  275. package/dist/collection/components/media/icon/icon.css +42 -0
  276. package/dist/collection/components/media/icon/icon.js +510 -0
  277. package/dist/collection/components/media/icon/icon.types.js +1 -0
  278. package/dist/collection/components/media/icon/internals/constants.js +3 -0
  279. package/dist/collection/components/media/icon/internals/fetch-icon.js +47 -0
  280. package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
  281. package/dist/collection/components/media/icon/internals/policy.js +184 -0
  282. package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
  283. package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
  284. package/dist/collection/components/media/icon/internals/registry.js +122 -0
  285. package/dist/collection/components/media/icon/internals/registry.unit.test.js +42 -0
  286. package/dist/collection/components/media/icon/internals/render-definition.js +24 -0
  287. package/dist/collection/components/media/icon/internals/sanitize-svg.js +86 -0
  288. package/dist/collection/components/media/icon/internals/size.js +12 -0
  289. package/dist/collection/components/media/icon/internals/url.js +52 -0
  290. package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
  291. package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
  292. package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
  293. package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
  294. package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
  295. package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
  296. package/dist/collection/components/media/media/media.css +1 -0
  297. package/dist/collection/components/media/media/media.js +125 -0
  298. package/dist/collection/components/media/media/media.types.js +1 -0
  299. package/dist/collection/components/media/reel/reel.css +193 -0
  300. package/dist/collection/components/media/reel/reel.js +279 -0
  301. package/dist/collection/components/media/reel/reel.types.js +1 -0
  302. package/dist/collection/components/media/thumbnail/thumbnail.css +111 -0
  303. package/dist/collection/components/media/thumbnail/thumbnail.js +184 -0
  304. package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
  305. package/dist/collection/components/overlays/dialog/dialog.css +264 -0
  306. package/dist/collection/components/overlays/dialog/dialog.js +743 -0
  307. package/dist/collection/components/overlays/dialog/dialog.types.js +1 -0
  308. package/dist/collection/components/overlays/dialog/internals/backdrop.js +9 -0
  309. package/dist/collection/components/overlays/dialog/internals/lifecycle.js +53 -0
  310. package/dist/collection/components/overlays/tooltip/internals/aria.js +27 -0
  311. package/dist/collection/components/overlays/tooltip/internals/positioning.js +84 -0
  312. package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
  313. package/dist/collection/components/overlays/tooltip/tooltip.css +69 -0
  314. package/dist/collection/components/overlays/tooltip/tooltip.js +196 -0
  315. package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
  316. package/dist/collection/components/shared/field.js +8 -0
  317. package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
  318. package/dist/collection/index.js +16 -0
  319. package/dist/collection/native-content.css +24 -0
  320. package/dist/collection/theme/test/foundation.cmp.test.js +353 -0
  321. package/dist/collection/theme/test/presets.cmp.test.js +129 -0
  322. package/dist/collection/theme/test/presets.unit.test.js +40 -0
  323. package/dist/collection/theme/tokens.js +960 -0
  324. package/dist/collection/utils/collection-identity.js +136 -0
  325. package/dist/collection/utils/collection-identity.unit.test.js +107 -0
  326. package/dist/collection/utils/dom.js +236 -0
  327. package/dist/collection/utils/form-control-validity.js +44 -0
  328. package/dist/collection/utils/form-field-adapter.js +44 -0
  329. package/dist/collection/utils/form-field-state.js +45 -0
  330. package/dist/collection/utils/form-reset-action.js +60 -0
  331. package/dist/collection/utils/form-submit-action.js +151 -0
  332. package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
  333. package/dist/collection/utils/image-crop.js +47 -0
  334. package/dist/collection/utils/image-crop.unit.test.js +57 -0
  335. package/dist/collection/utils/math.js +19 -0
  336. package/dist/collection/utils/utils.js +28 -0
  337. package/dist/collection/utils/utils.unit.test.js +16 -0
  338. package/dist/components/index.d.ts +35 -0
  339. package/dist/components/index.js +1 -0
  340. package/dist/components/p-6PPZ2sIO.js +1 -0
  341. package/dist/components/p-B4Mg1xEw.js +1 -0
  342. package/dist/components/p-BH4gQWub.js +1 -0
  343. package/dist/components/p-BIIQL66b.js +1 -0
  344. package/dist/components/p-BJiYCN3i.js +1 -0
  345. package/dist/components/p-BOdNg0jc.js +1 -0
  346. package/dist/components/p-BcL0NVv0.js +1 -0
  347. package/dist/components/p-Bj2RJb2E.js +1 -0
  348. package/dist/components/p-BofcK-7Z.js +1 -0
  349. package/dist/components/p-ByfrUWx1.js +1 -0
  350. package/dist/components/p-CGZPmEUB.js +1 -0
  351. package/dist/components/p-CGml_DQ8.js +1 -0
  352. package/dist/components/p-CKuPOxKN.js +1 -0
  353. package/dist/components/p-CN1ut2Lb.js +1 -0
  354. package/dist/components/p-C_RztzNv.js +5 -0
  355. package/dist/components/p-Cg0Mv7Vb.js +1 -0
  356. package/dist/components/p-CoIMrUb3.js +1 -0
  357. package/dist/components/p-CpI3m4_T.js +1 -0
  358. package/dist/components/p-DKrPmn2y.js +13 -0
  359. package/dist/components/p-DQhiqYeq.js +1 -0
  360. package/dist/components/p-DYMWBqU1.js +5 -0
  361. package/dist/components/p-Dfp_If-_.js +1 -0
  362. package/dist/components/p-DlIn_ZWk.js +1 -0
  363. package/dist/components/p-DstNl_WY.js +1 -0
  364. package/dist/components/p-DuX-9GOi.js +1 -0
  365. package/dist/components/p-SzKf4WZF.js +1 -0
  366. package/dist/components/p-ye27qtRo.js +1 -0
  367. package/dist/components/q-accordion.d.ts +11 -0
  368. package/dist/components/q-accordion.js +1 -0
  369. package/dist/components/q-alert.d.ts +11 -0
  370. package/dist/components/q-alert.js +1 -0
  371. package/dist/components/q-avatar.d.ts +11 -0
  372. package/dist/components/q-avatar.js +1 -0
  373. package/dist/components/q-banner.d.ts +11 -0
  374. package/dist/components/q-banner.js +1 -0
  375. package/dist/components/q-button.d.ts +11 -0
  376. package/dist/components/q-button.js +1 -0
  377. package/dist/components/q-card.d.ts +11 -0
  378. package/dist/components/q-card.js +1 -0
  379. package/dist/components/q-carousel.d.ts +11 -0
  380. package/dist/components/q-carousel.js +1 -0
  381. package/dist/components/q-chip.d.ts +11 -0
  382. package/dist/components/q-chip.js +1 -0
  383. package/dist/components/q-conversation-bubble.d.ts +11 -0
  384. package/dist/components/q-conversation-bubble.js +1 -0
  385. package/dist/components/q-data-table.d.ts +11 -0
  386. package/dist/components/q-data-table.js +1 -0
  387. package/dist/components/q-dialog.d.ts +11 -0
  388. package/dist/components/q-dialog.js +1 -0
  389. package/dist/components/q-dropdown.d.ts +11 -0
  390. package/dist/components/q-dropdown.js +1 -0
  391. package/dist/components/q-form.d.ts +11 -0
  392. package/dist/components/q-form.js +1 -0
  393. package/dist/components/q-grid.d.ts +11 -0
  394. package/dist/components/q-grid.js +1 -0
  395. package/dist/components/q-icon.d.ts +11 -0
  396. package/dist/components/q-icon.js +1 -0
  397. package/dist/components/q-image-comparison.d.ts +11 -0
  398. package/dist/components/q-image-comparison.js +1 -0
  399. package/dist/components/q-inline.d.ts +11 -0
  400. package/dist/components/q-inline.js +1 -0
  401. package/dist/components/q-input.d.ts +11 -0
  402. package/dist/components/q-input.js +1 -0
  403. package/dist/components/q-link.d.ts +11 -0
  404. package/dist/components/q-link.js +1 -0
  405. package/dist/components/q-map.d.ts +11 -0
  406. package/dist/components/q-map.js +1 -0
  407. package/dist/components/q-media.d.ts +11 -0
  408. package/dist/components/q-media.js +1 -0
  409. package/dist/components/q-navbar.d.ts +11 -0
  410. package/dist/components/q-navbar.js +1 -0
  411. package/dist/components/q-pagination.d.ts +11 -0
  412. package/dist/components/q-pagination.js +1 -0
  413. package/dist/components/q-panel.d.ts +11 -0
  414. package/dist/components/q-panel.js +1 -0
  415. package/dist/components/q-progress.d.ts +11 -0
  416. package/dist/components/q-progress.js +1 -0
  417. package/dist/components/q-quantity-selector.d.ts +11 -0
  418. package/dist/components/q-quantity-selector.js +1 -0
  419. package/dist/components/q-radio-group.d.ts +11 -0
  420. package/dist/components/q-radio-group.js +1 -0
  421. package/dist/components/q-reel.d.ts +11 -0
  422. package/dist/components/q-reel.js +1 -0
  423. package/dist/components/q-scrollable.d.ts +11 -0
  424. package/dist/components/q-scrollable.js +1 -0
  425. package/dist/components/q-section.d.ts +11 -0
  426. package/dist/components/q-section.js +1 -0
  427. package/dist/components/q-sidepanel.d.ts +11 -0
  428. package/dist/components/q-sidepanel.js +13 -0
  429. package/dist/components/q-stack.d.ts +11 -0
  430. package/dist/components/q-stack.js +1 -0
  431. package/dist/components/q-step-diagram-item.d.ts +11 -0
  432. package/dist/components/q-step-diagram-item.js +1 -0
  433. package/dist/components/q-step-diagram.d.ts +11 -0
  434. package/dist/components/q-step-diagram.js +1 -0
  435. package/dist/components/q-syntax-box.d.ts +11 -0
  436. package/dist/components/q-syntax-box.js +13 -0
  437. package/dist/components/q-tabs.d.ts +11 -0
  438. package/dist/components/q-tabs.js +1 -0
  439. package/dist/components/q-textarea.d.ts +11 -0
  440. package/dist/components/q-textarea.js +1 -0
  441. package/dist/components/q-thumbnail.d.ts +11 -0
  442. package/dist/components/q-thumbnail.js +1 -0
  443. package/dist/components/q-toast.d.ts +11 -0
  444. package/dist/components/q-toast.js +1 -0
  445. package/dist/components/q-toggle.d.ts +11 -0
  446. package/dist/components/q-toggle.js +1 -0
  447. package/dist/components/q-toolbar.d.ts +11 -0
  448. package/dist/components/q-toolbar.js +1 -0
  449. package/dist/components/q-tooltip.d.ts +11 -0
  450. package/dist/components/q-tooltip.js +1 -0
  451. package/dist/esm/Leaflet.GoogleMutant-MpxOb4Jm.js +766 -0
  452. package/dist/esm/action.props-CpnGza8z.js +32 -0
  453. package/dist/esm/chevron-up-DKrPmn2y.js +27 -0
  454. package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
  455. package/dist/esm/data-table-cell-SzKf4WZF.js +46 -0
  456. package/dist/esm/dom-ByfrUWx1.js +238 -0
  457. package/dist/esm/field-zfD6OQ02.js +11 -0
  458. package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
  459. package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
  460. package/dist/esm/form-field-state-DstNl_WY.js +47 -0
  461. package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
  462. package/dist/esm/image-crop-BcL0NVv0.js +49 -0
  463. package/dist/esm/index-B5ElFlHv.js +1858 -0
  464. package/dist/esm/index.js +7 -0
  465. package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
  466. package/dist/esm/leaflet-src-DYMWBqU1.js +14547 -0
  467. package/dist/esm/loader.js +10 -0
  468. package/dist/esm/map.types-CoIMrUb3.js +14 -0
  469. package/dist/esm/q-accordion.entry.js +16 -0
  470. package/dist/esm/q-alert.entry.js +50 -0
  471. package/dist/esm/q-avatar.entry.js +99 -0
  472. package/dist/esm/q-banner.entry.js +17 -0
  473. package/dist/esm/q-button_2.entry.js +459 -0
  474. package/dist/esm/q-card.entry.js +86 -0
  475. package/dist/esm/q-carousel.entry.js +716 -0
  476. package/dist/esm/q-chip.entry.js +122 -0
  477. package/dist/esm/q-conversation-bubble.entry.js +68 -0
  478. package/dist/esm/q-data-table.entry.js +609 -0
  479. package/dist/esm/q-dialog.entry.js +269 -0
  480. package/dist/esm/q-dropdown.entry.js +697 -0
  481. package/dist/esm/q-form.entry.js +1000 -0
  482. package/dist/esm/q-grid.entry.js +22 -0
  483. package/dist/esm/q-icon.entry.js +437 -0
  484. package/dist/esm/q-image-comparison.entry.js +199 -0
  485. package/dist/esm/q-inline.entry.js +20 -0
  486. package/dist/esm/q-input_2.entry.js +435 -0
  487. package/dist/esm/q-link.entry.js +78 -0
  488. package/dist/esm/q-map.entry.js +3507 -0
  489. package/dist/esm/q-media.entry.js +19 -0
  490. package/dist/esm/q-navbar.entry.js +413 -0
  491. package/dist/esm/q-pagination.entry.js +66 -0
  492. package/dist/esm/q-panel.entry.js +74 -0
  493. package/dist/esm/q-quantity-selector.entry.js +202 -0
  494. package/dist/esm/q-radio-group.entry.js +259 -0
  495. package/dist/esm/q-reel.entry.js +168 -0
  496. package/dist/esm/q-scrollable.entry.js +447 -0
  497. package/dist/esm/q-section.entry.js +18 -0
  498. package/dist/esm/q-sidepanel.entry.js +791 -0
  499. package/dist/esm/q-stack.entry.js +18 -0
  500. package/dist/esm/q-step-diagram-item.entry.js +43 -0
  501. package/dist/esm/q-step-diagram.entry.js +54 -0
  502. package/dist/esm/q-syntax-box.entry.js +780 -0
  503. package/dist/esm/q-tabs.entry.js +153 -0
  504. package/dist/esm/q-textarea.entry.js +293 -0
  505. package/dist/esm/q-thumbnail.entry.js +49 -0
  506. package/dist/esm/q-toast.entry.js +398 -0
  507. package/dist/esm/q-toggle.entry.js +231 -0
  508. package/dist/esm/q-toolbar.entry.js +31 -0
  509. package/dist/esm/registry-CpI3m4_T.js +308 -0
  510. package/dist/esm/toast-controller-BIIQL66b.js +107 -0
  511. package/dist/esm/tokens-B4Mg1xEw.js +953 -0
  512. package/dist/esm/utils-BJiYCN3i.js +30 -0
  513. package/dist/esm/webquark.js +20 -0
  514. package/dist/index.cjs.js +1 -0
  515. package/dist/index.js +1 -0
  516. package/dist/loader/cdn.js +1 -0
  517. package/dist/loader/index.cjs.js +1 -0
  518. package/dist/loader/index.d.ts +24 -0
  519. package/dist/loader/index.es2017.js +1 -0
  520. package/dist/loader/index.js +2 -0
  521. package/dist/types/components/actions/action.props.d.ts +19 -0
  522. package/dist/types/components/actions/button/button.d.ts +87 -0
  523. package/dist/types/components/actions/button/button.types.d.ts +6 -0
  524. package/dist/types/components/actions/button/button.utils.d.ts +8 -0
  525. package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
  526. package/dist/types/components/actions/button/test/button.utils.unit.test.d.ts +1 -0
  527. package/dist/types/components/actions/link/link.d.ts +43 -0
  528. package/dist/types/components/actions/link/link.types.d.ts +3 -0
  529. package/dist/types/components/communication/alert/alert.d.ts +32 -0
  530. package/dist/types/components/communication/alert/alert.types.d.ts +2 -0
  531. package/dist/types/components/communication/conversation-bubble/conversation-bubble.d.ts +38 -0
  532. package/dist/types/components/communication/conversation-bubble/conversation-bubble.types.d.ts +1 -0
  533. package/dist/types/components/communication/toast/internals/icons.d.ts +2 -0
  534. package/dist/types/components/communication/toast/internals/queue.d.ts +19 -0
  535. package/dist/types/components/communication/toast/internals/timers.d.ts +12 -0
  536. package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
  537. package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
  538. package/dist/types/components/communication/toast/toast-controller.d.ts +9 -0
  539. package/dist/types/components/communication/toast/toast.d.ts +44 -0
  540. package/dist/types/components/communication/toast/toast.types.d.ts +30 -0
  541. package/dist/types/components/content/banner/banner.d.ts +12 -0
  542. package/dist/types/components/content/banner/banner.types.d.ts +2 -0
  543. package/dist/types/components/content/card/card.d.ts +35 -0
  544. package/dist/types/components/content/card/card.types.d.ts +1 -0
  545. package/dist/types/components/content/card/card.utils.d.ts +5 -0
  546. package/dist/types/components/content/carousel/carousel.d.ts +123 -0
  547. package/dist/types/components/content/carousel/carousel.types.d.ts +10 -0
  548. package/dist/types/components/content/carousel/carousel.utils.d.ts +1 -0
  549. package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
  550. package/dist/types/components/content/carousel/internals/metrics.d.ts +23 -0
  551. package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
  552. package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
  553. package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
  554. package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
  555. package/dist/types/components/data-display/chip/chip.d.ts +55 -0
  556. package/dist/types/components/data-display/chip/chip.types.d.ts +13 -0
  557. package/dist/types/components/data-display/data-table/data-table-cell.d.ts +7 -0
  558. package/dist/types/components/data-display/data-table/data-table.d.ts +95 -0
  559. package/dist/types/components/data-display/data-table/data-table.types.d.ts +56 -0
  560. package/dist/types/components/data-display/data-table/internals/data-access.d.ts +9 -0
  561. package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +9 -0
  562. package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +5 -0
  563. package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +13 -0
  564. package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +8 -0
  565. package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +9 -0
  566. package/dist/types/components/data-display/data-table/internals/row-events.d.ts +1 -0
  567. package/dist/types/components/data-display/data-table/internals/selection.d.ts +10 -0
  568. package/dist/types/components/data-display/data-table/internals/sort.d.ts +3 -0
  569. package/dist/types/components/data-display/data-table/internals/table-model.d.ts +56 -0
  570. package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
  571. package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
  572. package/dist/types/components/data-display/map/internals/base-layer.d.ts +63 -0
  573. package/dist/types/components/data-display/map/internals/bounds.d.ts +23 -0
  574. package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +10 -0
  575. package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +15 -0
  576. package/dist/types/components/data-display/map/internals/google-maps.d.ts +9 -0
  577. package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +11 -0
  578. package/dist/types/components/data-display/map/internals/google-mutant.d.ts +18 -0
  579. package/dist/types/components/data-display/map/internals/maplibre.d.ts +14 -0
  580. package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +36 -0
  581. package/dist/types/components/data-display/map/internals/marker-controller.d.ts +57 -0
  582. package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +8 -0
  583. package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +10 -0
  584. package/dist/types/components/data-display/map/internals/markers.d.ts +4 -0
  585. package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +11 -0
  586. package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +4 -0
  587. package/dist/types/components/data-display/map/internals/vector-padding.d.ts +4 -0
  588. package/dist/types/components/data-display/map/map.d.ts +175 -0
  589. package/dist/types/components/data-display/map/map.types.d.ts +132 -0
  590. package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +1 -0
  591. package/dist/types/components/data-display/pagination/pagination.d.ts +33 -0
  592. package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +2 -0
  593. package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +2 -0
  594. package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +12 -0
  595. package/dist/types/components/data-display/syntax-box/internals/formatter.d.ts +15 -0
  596. package/dist/types/components/data-display/syntax-box/internals/formatter.unit.test.d.ts +1 -0
  597. package/dist/types/components/data-display/syntax-box/internals/syntax.d.ts +13 -0
  598. package/dist/types/components/data-display/syntax-box/internals/syntax.unit.test.d.ts +1 -0
  599. package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +15 -0
  600. package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
  601. package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +72 -0
  602. package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +2 -0
  603. package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +1 -0
  604. package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
  605. package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
  606. package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
  607. package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
  608. package/dist/types/components/indicators/progress/progress.d.ts +30 -0
  609. package/dist/types/components/indicators/progress/progress.types.d.ts +3 -0
  610. package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +19 -0
  611. package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -0
  612. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +26 -0
  613. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +5 -0
  614. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +1 -0
  615. package/dist/types/components/inputs/dropdown/dropdown.d.ts +108 -0
  616. package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +9 -0
  617. package/dist/types/components/inputs/dropdown/internals/options.d.ts +6 -0
  618. package/dist/types/components/inputs/dropdown/internals/position.d.ts +26 -0
  619. package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +1 -0
  620. package/dist/types/components/inputs/form/form.d.ts +80 -0
  621. package/dist/types/components/inputs/form/form.types.d.ts +40 -0
  622. package/dist/types/components/inputs/form/internals/controls.d.ts +8 -0
  623. package/dist/types/components/inputs/form/internals/enter-behavior.d.ts +2 -0
  624. package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
  625. package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
  626. package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
  627. package/dist/types/components/inputs/form/internals/values.d.ts +10 -0
  628. package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
  629. package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
  630. package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
  631. package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
  632. package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
  633. package/dist/types/components/inputs/form/test/form.cmp.test.d.ts +4 -0
  634. package/dist/types/components/inputs/input/input.d.ts +89 -0
  635. package/dist/types/components/inputs/input/input.types.d.ts +3 -0
  636. package/dist/types/components/inputs/input/input.utils.d.ts +1 -0
  637. package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +13 -0
  638. package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +37 -0
  639. package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -0
  640. package/dist/types/components/inputs/radio-group/radio-group.d.ts +70 -0
  641. package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +12 -0
  642. package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
  643. package/dist/types/components/inputs/textarea/textarea.d.ts +79 -0
  644. package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
  645. package/dist/types/components/inputs/toggle/toggle.d.ts +67 -0
  646. package/dist/types/components/inputs/toggle/toggle.types.d.ts +3 -0
  647. package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
  648. package/dist/types/components/layout/grid/grid.d.ts +13 -0
  649. package/dist/types/components/layout/inline/inline.d.ts +12 -0
  650. package/dist/types/components/layout/navbar/navbar.d.ts +94 -0
  651. package/dist/types/components/layout/navbar/navbar.types.d.ts +33 -0
  652. package/dist/types/components/layout/navbar/navbar.utils.d.ts +2 -0
  653. package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +1 -0
  654. package/dist/types/components/layout/panel/panel.d.ts +41 -0
  655. package/dist/types/components/layout/panel/panel.types.d.ts +3 -0
  656. package/dist/types/components/layout/scrollable/internals/metrics.d.ts +26 -0
  657. package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +4 -0
  658. package/dist/types/components/layout/scrollable/scrollable.d.ts +67 -0
  659. package/dist/types/components/layout/scrollable/scrollable.types.d.ts +6 -0
  660. package/dist/types/components/layout/section/section.d.ts +13 -0
  661. package/dist/types/components/layout/section/section.types.d.ts +1 -0
  662. package/dist/types/components/layout/sidepanel/internals/drawer.d.ts +2 -0
  663. package/dist/types/components/layout/sidepanel/internals/groups.d.ts +7 -0
  664. package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +2 -0
  665. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +110 -0
  666. package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +43 -0
  667. package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
  668. package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
  669. package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
  670. package/dist/types/components/layout/stack/stack.d.ts +10 -0
  671. package/dist/types/components/layout/tabs/tabs.d.ts +29 -0
  672. package/dist/types/components/layout/tabs/tabs.types.d.ts +14 -0
  673. package/dist/types/components/layout/tabs/tabs.utils.d.ts +4 -0
  674. package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +1 -0
  675. package/dist/types/components/layout/toolbar/toolbar.d.ts +27 -0
  676. package/dist/types/components/layout/toolbar/toolbar.types.d.ts +1 -0
  677. package/dist/types/components/media/avatar/avatar.d.ts +37 -0
  678. package/dist/types/components/media/avatar/avatar.types.d.ts +2 -0
  679. package/dist/types/components/media/icon/icon.d.ts +48 -0
  680. package/dist/types/components/media/icon/icon.types.d.ts +30 -0
  681. package/dist/types/components/media/icon/internals/constants.d.ts +3 -0
  682. package/dist/types/components/media/icon/internals/fetch-icon.d.ts +1 -0
  683. package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
  684. package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
  685. package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
  686. package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
  687. package/dist/types/components/media/icon/internals/registry.d.ts +11 -0
  688. package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +1 -0
  689. package/dist/types/components/media/icon/internals/render-definition.d.ts +2 -0
  690. package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +2 -0
  691. package/dist/types/components/media/icon/internals/size.d.ts +2 -0
  692. package/dist/types/components/media/icon/internals/url.d.ts +11 -0
  693. package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
  694. package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
  695. package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
  696. package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
  697. package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
  698. package/dist/types/components/media/media/media.d.ts +13 -0
  699. package/dist/types/components/media/media/media.types.d.ts +2 -0
  700. package/dist/types/components/media/reel/reel.d.ts +34 -0
  701. package/dist/types/components/media/reel/reel.types.d.ts +3 -0
  702. package/dist/types/components/media/thumbnail/thumbnail.d.ts +21 -0
  703. package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +7 -0
  704. package/dist/types/components/overlays/dialog/dialog.d.ts +83 -0
  705. package/dist/types/components/overlays/dialog/dialog.types.d.ts +1 -0
  706. package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +2 -0
  707. package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +21 -0
  708. package/dist/types/components/overlays/tooltip/internals/aria.d.ts +13 -0
  709. package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +7 -0
  710. package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +2 -0
  711. package/dist/types/components/overlays/tooltip/tooltip.d.ts +33 -0
  712. package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
  713. package/dist/types/components/shared/field.d.ts +3 -0
  714. package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
  715. package/dist/types/components.d.ts +6047 -0
  716. package/dist/types/declarations.d.ts +14 -0
  717. package/dist/types/index.d.ts +31 -0
  718. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  719. package/dist/types/theme/test/assets.d.ts +4 -0
  720. package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
  721. package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
  722. package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
  723. package/dist/types/theme/tokens.d.ts +141 -0
  724. package/dist/types/utils/collection-identity.d.ts +55 -0
  725. package/dist/types/utils/collection-identity.unit.test.d.ts +1 -0
  726. package/dist/types/utils/dom.d.ts +68 -0
  727. package/dist/types/utils/form-control-validity.d.ts +14 -0
  728. package/dist/types/utils/form-field-adapter.d.ts +17 -0
  729. package/dist/types/utils/form-field-state.d.ts +4 -0
  730. package/dist/types/utils/form-reset-action.d.ts +5 -0
  731. package/dist/types/utils/form-submit-action.d.ts +17 -0
  732. package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
  733. package/dist/types/utils/image-crop.d.ts +30 -0
  734. package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
  735. package/dist/types/utils/math.d.ts +10 -0
  736. package/dist/types/utils/utils.d.ts +11 -0
  737. package/dist/types/utils/utils.unit.test.d.ts +1 -0
  738. package/dist/webquark/index.esm.js +1 -0
  739. package/dist/webquark/native-content.css +24 -0
  740. package/dist/webquark/p-023f8437.entry.js +1 -0
  741. package/dist/webquark/p-030ecde3.entry.js +1 -0
  742. package/dist/webquark/p-04c8cb9e.entry.js +1 -0
  743. package/dist/webquark/p-059daa8a.entry.js +1 -0
  744. package/dist/webquark/p-09cca7b9.entry.js +1 -0
  745. package/dist/webquark/p-0aa74ad6.entry.js +1 -0
  746. package/dist/webquark/p-0ae43d6c.entry.js +1 -0
  747. package/dist/webquark/p-0c3aac3f.entry.js +1 -0
  748. package/dist/webquark/p-144ef339.entry.js +1 -0
  749. package/dist/webquark/p-296fbdb1.entry.js +1 -0
  750. package/dist/webquark/p-36118d90.entry.js +1 -0
  751. package/dist/webquark/p-3bc4629c.entry.js +1 -0
  752. package/dist/webquark/p-48fb5228.entry.js +1 -0
  753. package/dist/webquark/p-4d61b70d.entry.js +1 -0
  754. package/dist/webquark/p-5f232b44.entry.js +13 -0
  755. package/dist/webquark/p-64096386.entry.js +1 -0
  756. package/dist/webquark/p-6bfffa79.entry.js +1 -0
  757. package/dist/webquark/p-6e28cfe2.entry.js +1 -0
  758. package/dist/webquark/p-70d9ffde.entry.js +1 -0
  759. package/dist/webquark/p-888e46a8.entry.js +1 -0
  760. package/dist/webquark/p-8ece2c62.entry.js +1 -0
  761. package/dist/webquark/p-90b0858c.entry.js +1 -0
  762. package/dist/webquark/p-91fff6b6.entry.js +1 -0
  763. package/dist/webquark/p-923dac41.entry.js +1 -0
  764. package/dist/webquark/p-97a89cae.entry.js +1 -0
  765. package/dist/webquark/p-99d785ca.entry.js +1 -0
  766. package/dist/webquark/p-9e78b796.entry.js +1 -0
  767. package/dist/webquark/p-9ff7e5a4.entry.js +1 -0
  768. package/dist/webquark/p-B4Mg1xEw.js +1 -0
  769. package/dist/webquark/p-B5ElFlHv.js +3 -0
  770. package/dist/webquark/p-BIIQL66b.js +1 -0
  771. package/dist/webquark/p-BJiYCN3i.js +1 -0
  772. package/dist/webquark/p-BOdNg0jc.js +1 -0
  773. package/dist/webquark/p-BcL0NVv0.js +1 -0
  774. package/dist/webquark/p-Bj2RJb2E.js +1 -0
  775. package/dist/webquark/p-ByfrUWx1.js +1 -0
  776. package/dist/webquark/p-CGZPmEUB.js +1 -0
  777. package/dist/webquark/p-CGml_DQ8.js +1 -0
  778. package/dist/webquark/p-C_RztzNv.js +5 -0
  779. package/dist/webquark/p-CoIMrUb3.js +1 -0
  780. package/dist/webquark/p-CpI3m4_T.js +1 -0
  781. package/dist/webquark/p-DKrPmn2y.js +13 -0
  782. package/dist/webquark/p-DWO-pleQ.js +1 -0
  783. package/dist/webquark/p-DYMWBqU1.js +5 -0
  784. package/dist/webquark/p-Dhsn99q4.js +1 -0
  785. package/dist/webquark/p-DstNl_WY.js +1 -0
  786. package/dist/webquark/p-DuX-9GOi.js +1 -0
  787. package/dist/webquark/p-SzKf4WZF.js +1 -0
  788. package/dist/webquark/p-c523ec6f.entry.js +1 -0
  789. package/dist/webquark/p-d0253d64.entry.js +1 -0
  790. package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
  791. package/dist/webquark/p-dd115868.entry.js +1 -0
  792. package/dist/webquark/p-f1bac94c.entry.js +1 -0
  793. package/dist/webquark/p-f4f97e74.entry.js +1 -0
  794. package/dist/webquark/p-f63b7214.entry.js +1 -0
  795. package/dist/webquark/p-f98f9439.entry.js +1 -0
  796. package/dist/webquark/p-f9ad63ff.entry.js +1 -0
  797. package/dist/webquark/p-fe200f68.entry.js +1 -0
  798. package/dist/webquark/p-fe8c634a.entry.js +13 -0
  799. package/dist/webquark/p-fec6fe0a.entry.js +1 -0
  800. package/dist/webquark/webquark.css +1 -0
  801. package/dist/webquark/webquark.esm.js +1 -0
  802. package/package.json +78 -4
@@ -0,0 +1,202 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-B5ElFlHv.js';
2
+
3
+ function hasQuantityBound(value) {
4
+ return value !== undefined && value !== null;
5
+ }
6
+ function toFiniteQuantity(value, fallback = 0) {
7
+ return Number.isFinite(value) ? value : fallback;
8
+ }
9
+ function clampQuantityValue(value, bounds) {
10
+ let clamped = value;
11
+ if (hasQuantityBound(bounds.min)) {
12
+ clamped = Math.max(bounds.min, clamped);
13
+ }
14
+ if (hasQuantityBound(bounds.max)) {
15
+ clamped = Math.min(bounds.max, clamped);
16
+ }
17
+ return clamped;
18
+ }
19
+ function stepQuantityValue(value, step, direction, bounds) {
20
+ const current = toFiniteQuantity(value);
21
+ return clampQuantityValue(current + step * direction, bounds);
22
+ }
23
+ function sanitizeQuantityInput(rawValue) {
24
+ let value = rawValue.replace(/[^0-9.-]/g, '');
25
+ if (value.startsWith('-')) {
26
+ value = '-' + value.slice(1).replace(/-/g, '');
27
+ }
28
+ else {
29
+ value = value.replace(/-/g, '');
30
+ }
31
+ const parts = value.split('.');
32
+ if (parts.length > 2) {
33
+ value = parts[0] + '.' + parts.slice(1).join('');
34
+ }
35
+ return value;
36
+ }
37
+ function parseQuantityInput(value) {
38
+ const parsed = parseFloat(value);
39
+ return Number.isNaN(parsed) ? undefined : parsed;
40
+ }
41
+ function isWithinQuantityBounds(value, bounds) {
42
+ const isAboveMin = !hasQuantityBound(bounds.min) || value >= bounds.min;
43
+ const isBelowMax = !hasQuantityBound(bounds.max) || value <= bounds.max;
44
+ return isAboveMin && isBelowMax;
45
+ }
46
+ function reconcileQuantityInput(value, bounds) {
47
+ let parsed = parseQuantityInput(value);
48
+ if (parsed === undefined) {
49
+ if (hasQuantityBound(bounds.min)) {
50
+ parsed = bounds.min;
51
+ }
52
+ else if (hasQuantityBound(bounds.max)) {
53
+ parsed = Math.min(0, bounds.max);
54
+ }
55
+ else {
56
+ parsed = 0;
57
+ }
58
+ }
59
+ return clampQuantityValue(parsed, bounds);
60
+ }
61
+ function getQuantityInputCharCount(value, bounds) {
62
+ if (hasQuantityBound(bounds.min) || hasQuantityBound(bounds.max)) {
63
+ return Math.max(3, bounds.min?.toString().length ?? 0, bounds.max?.toString().length ?? 0);
64
+ }
65
+ return Math.max(3, value?.toString().length ?? 0);
66
+ }
67
+
68
+ const quantitySelectorCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, calc(var(--_q-context-size-sm, 0) * var(--q-control-height-sm, 1.75rem) + var(--_q-context-size-md, 1) * var(--q-control-height-md, 2.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-height-lg, 2.75rem)));--_q-control-font:var(--q-context-control-font, calc(var(--_q-context-size-sm, 0) * var(--q-control-font-sm, 0.75rem) + var(--_q-context-size-md, 1) * var(--q-control-font-md, 0.875rem) + var(--_q-context-size-lg, 0) * var(--q-control-font-lg, 1rem)));--_q-control-line:var(--q-context-control-line, calc(var(--_q-context-size-sm, 0) * var(--q-control-line-sm, 1rem) + var(--_q-context-size-md, 1) * var(--q-control-line-md, 1.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-line-lg, 1.5rem)));--_q-control-padding:var(--q-context-control-padding, calc(var(--_q-context-size-sm, 0) * var(--q-control-padding-sm, 0.5rem) + var(--_q-context-size-md, 1) * var(--q-control-padding-md, 0.75rem) + var(--_q-context-size-lg, 0) * var(--q-control-padding-lg, 1rem)));--_q-control-icon:var(--q-context-control-icon, calc(var(--_q-context-size-sm, 0) * var(--q-control-icon-sm, 0.875rem) + var(--_q-context-size-md, 1) * var(--q-control-icon-md, 1rem) + var(--_q-context-size-lg, 0) * var(--q-control-icon-lg, 1.25rem)));--_q-control-radius:var(--q-context-control-radius, calc(var(--_q-context-size-sm, 0) * var(--q-control-radius-sm, 0.34375rem) + var(--_q-context-size-md, 1) * var(--q-control-radius-md, 0.4375rem) + var(--_q-context-size-lg, 0) * var(--q-control-radius-lg, 0.53125rem)))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius, var(--q-field-radius, var(--_q-control-radius)));background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:var(--q-padding-sm, 4px) 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.quantity-btn:hover:not(:disabled){background:var(--q-quantity-selector-btn-bg-hover);color:var(--q-quantity-selector-btn-fg-hover)}.quantity-btn:disabled{opacity:0.4;cursor:not-allowed}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height);height:100%}.variant-horizontal .quantity-btn-decrement{border-right:1px solid var(--q-quantity-selector-border-color)}.variant-horizontal .quantity-btn-increment{border-left:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn{width:100%;height:var(--q-quantity-selector-height)}.variant-vertical .quantity-btn-increment{border-bottom:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn-decrement{border-top:1px solid var(--q-quantity-selector-border-color)}.btn-icon{width:16px;height:16px}.quantity-selector.variant-horizontal{min-height:var(--q-quantity-selector-height, var(--_q-control-height));height:auto}.quantity-selector .quantity-input{min-height:calc(var(--_q-control-height) - 2px);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height, var(--_q-control-height));min-height:calc(var(--_q-control-height) - 2px)}.variant-vertical .quantity-btn{height:var(--q-quantity-selector-height, var(--_q-control-height))}.btn-icon{width:var(--_q-control-icon);height:var(--_q-control-icon)}`;
69
+
70
+ const QQuantitySelector = class {
71
+ constructor(hostRef) {
72
+ registerInstance(this, hostRef);
73
+ this.qChange = createEvent(this, "qChange");
74
+ this.qFocus = createEvent(this, "qFocus");
75
+ this.qBlur = createEvent(this, "qBlur");
76
+ this.qClick = createEvent(this, "qClick");
77
+ }
78
+ // ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
79
+ value = 0;
80
+ min;
81
+ max;
82
+ step = 1;
83
+ size = 'inherit';
84
+ /** Direction of the controls. Overrides variant; defaults to horizontal when both are omitted. */
85
+ orientation;
86
+ /** @deprecated Use orientation. Used only when orientation is unset. */
87
+ variant = 'horizontal';
88
+ qChange;
89
+ qFocus;
90
+ /** Emitted when the input loses focus, after the value is reconciled. */
91
+ qBlur;
92
+ qClick;
93
+ // ========================= [2] INTERNAL STATE & REFS =========================
94
+ inputValue = '0';
95
+ // ========================= [3] LIFECYCLE & WATCHERS ==========================
96
+ watchValue(newValue) {
97
+ if (newValue !== parseFloat(this.inputValue)) {
98
+ this.inputValue = Number.isFinite(newValue) ? String(newValue) : '0';
99
+ }
100
+ }
101
+ componentWillLoad() {
102
+ this.inputValue = Number.isFinite(this.value) ? String(this.value) : '0';
103
+ }
104
+ // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
105
+ getCalculatedWidth() {
106
+ const charCount = getQuantityInputCharCount(this.value, { min: this.min, max: this.max });
107
+ return `calc(${charCount} * var(--q-quantity-selector-char-width, 1ch) + var(--q-quantity-selector-input-padding, 16px))`;
108
+ }
109
+ increment = () => {
110
+ const next = stepQuantityValue(this.value, this.step, 1, { min: this.min, max: this.max });
111
+ this.value = next;
112
+ this.inputValue = String(next);
113
+ this.qChange.emit(this.value);
114
+ };
115
+ decrement = () => {
116
+ const next = stepQuantityValue(this.value, this.step, -1, { min: this.min, max: this.max });
117
+ this.value = next;
118
+ this.inputValue = String(next);
119
+ this.qChange.emit(this.value);
120
+ };
121
+ handleInput = (ev) => {
122
+ const target = ev.target;
123
+ const val = sanitizeQuantityInput(target.value);
124
+ target.value = val;
125
+ this.inputValue = val;
126
+ const parsed = parseQuantityInput(val);
127
+ if (parsed !== undefined && isWithinQuantityBounds(parsed, { min: this.min, max: this.max })) {
128
+ if (this.value !== parsed) {
129
+ this.value = parsed;
130
+ this.qChange.emit(this.value);
131
+ }
132
+ }
133
+ };
134
+ handleBlur = (ev) => {
135
+ this.reconcileValue();
136
+ this.qBlur.emit(ev);
137
+ };
138
+ handleFocus = (ev) => {
139
+ this.qFocus.emit(ev);
140
+ };
141
+ handleClick = (ev) => {
142
+ this.qClick.emit(ev);
143
+ };
144
+ handleChange = () => {
145
+ this.reconcileValue();
146
+ };
147
+ handleKeyDown = (ev) => {
148
+ if (ev.key === 'ArrowUp') {
149
+ ev.preventDefault();
150
+ this.increment();
151
+ }
152
+ else if (ev.key === 'ArrowDown') {
153
+ ev.preventDefault();
154
+ this.decrement();
155
+ }
156
+ else if (ev.key === 'Home' && hasQuantityBound(this.min)) {
157
+ ev.preventDefault();
158
+ this.value = clampQuantityValue(this.min, { min: this.min, max: this.max });
159
+ this.inputValue = String(this.value);
160
+ this.qChange.emit(this.value);
161
+ }
162
+ else if (ev.key === 'End' && hasQuantityBound(this.max)) {
163
+ ev.preventDefault();
164
+ this.value = clampQuantityValue(this.max, { min: this.min, max: this.max });
165
+ this.inputValue = String(this.value);
166
+ this.qChange.emit(this.value);
167
+ }
168
+ };
169
+ reconcileValue() {
170
+ const clamped = reconcileQuantityInput(this.inputValue, { min: this.min, max: this.max });
171
+ this.inputValue = String(clamped);
172
+ if (this.value !== clamped) {
173
+ this.value = clamped;
174
+ this.qChange.emit(this.value);
175
+ }
176
+ }
177
+ // ===================== [6] RENDER (Visual Template Only) =====================
178
+ render() {
179
+ const orientation = this.orientation ?? this.variant;
180
+ const finiteValue = toFiniteQuantity(this.value);
181
+ const hasFiniteValue = Number.isFinite(this.value);
182
+ const isMinDisabled = hasFiniteValue && hasQuantityBound(this.min) && finiteValue <= this.min;
183
+ const isMaxDisabled = hasFiniteValue && hasQuantityBound(this.max) && finiteValue >= this.max;
184
+ 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" }))));
185
+ 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" }))));
186
+ const calculatedWidth = orientation === 'horizontal' ? this.getCalculatedWidth() : '100%';
187
+ return (h("div", { key: '080103dbd4019e6a0499ad790fe48139d3540678', class: {
188
+ 'quantity-selector': true,
189
+ [`size-${this.size}`]: true,
190
+ [`orientation-${orientation}`]: true,
191
+ [`variant-${orientation}`]: true,
192
+ }, 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));
193
+ }
194
+ static get watchers() { return {
195
+ "value": [{
196
+ "watchValue": 0
197
+ }]
198
+ }; }
199
+ };
200
+ QQuantitySelector.style = quantitySelectorCss();
201
+
202
+ export { QQuantitySelector as q_quantity_selector };
@@ -0,0 +1,259 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-B5ElFlHv.js';
2
+ import { i as isFieldDisabled, s as syncFieldHost } from './form-field-state-DstNl_WY.js';
3
+ import { r as registerFormField } from './form-field-adapter-CGml_DQ8.js';
4
+ import { f as fieldFeedback, a as feedbackStyle } from './field-zfD6OQ02.js';
5
+ import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
6
+ import { s as safeParseJson } from './utils-BJiYCN3i.js';
7
+
8
+ function getRadioGroupOptions(options) {
9
+ return safeParseJson(options, [], 'QRadioGroup').flatMap((option) => {
10
+ if (typeof option === 'string') {
11
+ const value = option.trim();
12
+ return value ? [{ label: value, value }] : [];
13
+ }
14
+ if (!option || typeof option !== 'object' || typeof option.value !== 'string' || !option.value.trim()) {
15
+ return [];
16
+ }
17
+ return [{
18
+ label: typeof option.label === 'string' ? option.label : option.value,
19
+ value: option.value,
20
+ disabled: option.disabled === true,
21
+ icon: typeof option.icon === 'string' ? option.icon : undefined,
22
+ }];
23
+ });
24
+ }
25
+
26
+ const radioGroupCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, calc(var(--_q-context-size-sm, 0) * var(--q-control-height-sm, 1.75rem) + var(--_q-context-size-md, 1) * var(--q-control-height-md, 2.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-height-lg, 2.75rem)));--_q-control-font:var(--q-context-control-font, calc(var(--_q-context-size-sm, 0) * var(--q-control-font-sm, 0.75rem) + var(--_q-context-size-md, 1) * var(--q-control-font-md, 0.875rem) + var(--_q-context-size-lg, 0) * var(--q-control-font-lg, 1rem)));--_q-control-line:var(--q-context-control-line, calc(var(--_q-context-size-sm, 0) * var(--q-control-line-sm, 1rem) + var(--_q-context-size-md, 1) * var(--q-control-line-md, 1.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-line-lg, 1.5rem)));--_q-control-padding:var(--q-context-control-padding, calc(var(--_q-context-size-sm, 0) * var(--q-control-padding-sm, 0.5rem) + var(--_q-context-size-md, 1) * var(--q-control-padding-md, 0.75rem) + var(--_q-context-size-lg, 0) * var(--q-control-padding-lg, 1rem)));--_q-control-icon:var(--q-context-control-icon, calc(var(--_q-context-size-sm, 0) * var(--q-control-icon-sm, 0.875rem) + var(--_q-context-size-md, 1) * var(--q-control-icon-md, 1rem) + var(--_q-context-size-lg, 0) * var(--q-control-icon-lg, 1.25rem)));--_q-control-radius:var(--q-context-control-radius, calc(var(--_q-context-size-sm, 0) * var(--q-control-radius-sm, 0.34375rem) + var(--_q-context-size-md, 1) * var(--q-control-radius-md, 0.4375rem) + var(--_q-context-size-lg, 0) * var(--q-control-radius-lg, 0.53125rem)))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{--q-radio-group-bg:var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d)));--q-radio-group-border:var(--q-border, 1px solid var(--q-border-color, #4b5563));--q-radio-group-selected-bg:rgba(96, 165, 250, 0.12);--q-radio-group-selected-bg:color-mix(in srgb, var(--q-color-primary, #60a5fa) 12%, var(--q-radio-group-bg));--q-radio-group-selected-color:var(--q-color-primary, #60a5fa);--q-radio-group-focus-ring:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));--q-radio-group-error-color:var(--q-color-danger, #f87171);display:block;min-width:0;color:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit)}:host([disabled]){cursor:not-allowed}.group-fieldset{min-width:0;margin:0;padding:0;border:0}legend{margin:0 0 6px;padding:0;color:var(--q-fg-base, #f9fafb);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600)}.options{display:grid;grid-template-columns:repeat(var(--q-radio-group-option-count), minmax(0, 1fr));box-sizing:border-box;overflow:hidden;border:var(--q-radio-group-border);border-radius:var(--q-radio-group-radius, var(--q-field-radius, var(--_q-control-radius)));background:var(--q-radio-group-bg)}.option{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:0;min-height:var(--q-radio-group-option-min-height);padding:var(--q-radio-group-option-padding);color:var(--q-fg-muted, #9ca3af);background:var(--q-radio-group-bg);cursor:pointer;text-align:center;font-size:var(--q-font-size-base, 0.875rem);font-weight:var(--q-font-weight-bold, 600);line-height:1.2;transition:color var(--q-transition-fast, 150ms ease), background-color var(--q-transition-fast, 150ms ease)}.option-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;opacity:0.85}.option.is-selected .option-icon{opacity:1}.option+.option{border-inline-start:var(--q-radio-group-border)}.option:hover:not(.is-disabled){color:var(--q-fg-base, #f9fafb)}.option.is-selected{color:var(--q-radio-group-selected-color);background:var(--q-radio-group-selected-bg)}.option.is-disabled{cursor:not-allowed;opacity:0.6}.option:has(input:focus-visible){outline:var(--q-radio-group-focus-ring);outline-offset:-2px;z-index:1}.has-error .options{border-color:var(--q-radio-group-error-color)}input{position:absolute;width:1px;height:1px;padding:0;border:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap}.is-disabled .options{opacity:0.6}.orientation-vertical .options{grid-template-columns:1fr}.orientation-vertical .option+.option{border-top:var(--q-radio-group-border);border-inline-start:0}.error-msg{display:block;margin-top:4px;color:var(--q-radio-group-error-color);font-size:var(--q-font-size-sm, 0.7rem)}@media (max-width: 680px){.orientation-responsive .options{grid-template-columns:1fr}.orientation-responsive .option+.option{border-top:var(--q-radio-group-border);border-inline-start:0}}.radio-group{--_q-field-error-color:var(--q-radio-group-error-color, var(--q-color-danger, #f87171))}.radio-group .options{min-height:var(--_q-control-height);height:auto}.radio-group .option{min-height:calc(var(--q-radio-group-option-min-height, var(--_q-control-height)) - 2px);height:auto;padding:var(--q-radio-group-option-padding, 0 var(--_q-control-padding));font-size:var(--_q-control-font);line-height:var(--_q-control-line);overflow-wrap:anywhere}:host{min-width:0}.q-label-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip-path:inset(50%);white-space:nowrap;border:0 !important}.q-field-feedback{display:block;min-block-size:var(--_q-feedback-min, var(--q-context-feedback-min, 0px));font-family:var(--q-font-family, inherit);font-size:var(--q-field-feedback-font, var(--q-field-text-size, .75rem));font-weight:400;line-height:var(--q-field-text-line, 1rem);color:var(--q-fg-muted, #9ca3af);overflow-wrap:anywhere;margin:min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0}.q-field-feedback:not(:empty){margin-top:var(--q-space-xs, .25rem)}.q-field-feedback.error-msg{color:var(--_q-field-error-color, var(--q-color-danger, #f87171))}[part='label']:not(.q-label-hidden){font-family:var(--q-font-family, inherit);font-size:var(--q-field-label-font, var(--q-field-text-size, .75rem));font-weight:600;line-height:var(--q-field-text-line, 1rem);margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}`;
27
+
28
+ let nextRadioGroupId = 0;
29
+ const QRadioGroup = class {
30
+ constructor(hostRef) {
31
+ registerInstance(this, hostRef);
32
+ this.qChange = createEvent(this, "qChange");
33
+ this.qFocus = createEvent(this, "qFocus");
34
+ this.qBlur = createEvent(this, "qBlur");
35
+ if (hostRef.$hostElement$["s-ei"]) {
36
+ this.internals = hostRef.$hostElement$["s-ei"];
37
+ }
38
+ else {
39
+ this.internals = hostRef.$hostElement$.attachInternals();
40
+ hostRef.$hostElement$["s-ei"] = this.internals;
41
+ }
42
+ }
43
+ get el() { return getElement(this); }
44
+ internals;
45
+ label;
46
+ /** Supporting text, replaced by an active error. */
47
+ description;
48
+ /** Options to render; strings use the same text for label and value. */
49
+ options = [];
50
+ value = '';
51
+ /** Keep the label accessible without displaying it. */
52
+ labelHidden = false;
53
+ /** Omitted inherits the enclosing form; false cancels reservation. */
54
+ reserveFeedback;
55
+ size = 'inherit';
56
+ /** `responsive` stacks the connected options below 680px. */
57
+ orientation = 'responsive';
58
+ disabled = false;
59
+ required = false;
60
+ /** Validation error text or error-state flag. */
61
+ error;
62
+ /** @deprecated Use error. Used when error is empty or unset. */
63
+ errorMessage;
64
+ name;
65
+ /** Accessible group name used when no visible label is supplied. */
66
+ ariaLabel = null;
67
+ /** Emitted with the selected option value when selection changes. */
68
+ qChange;
69
+ qFocus;
70
+ qBlur;
71
+ // ========================= [2] INTERNAL STATE & REFS =========================
72
+ disabledState = false;
73
+ get isDisabled() {
74
+ return isFieldDisabled(this.el, this.disabled);
75
+ }
76
+ internalName = `q-radio-group-${++nextRadioGroupId}`;
77
+ initialValue = '';
78
+ fieldsetEl;
79
+ // ========================= [3] LIFECYCLE & WATCHERS ==========================
80
+ watchValue() {
81
+ this.syncFormState();
82
+ }
83
+ watchConstraints() {
84
+ this.syncFormState();
85
+ }
86
+ componentWillLoad() {
87
+ this.initialValue = this.value;
88
+ this.syncFormState();
89
+ }
90
+ formDisabledCallback() {
91
+ this.syncFormState();
92
+ }
93
+ componentDidLoad() {
94
+ registerFormField(this.el, {
95
+ kind: 'selection',
96
+ owner: () => this.internals?.form ?? null,
97
+ active: () => true,
98
+ value: () => this.getSelectedOption()?.value ?? null,
99
+ assign: value => { this.value = value; },
100
+ reconcile: () => {
101
+ this.syncFormState();
102
+ },
103
+ reset: () => this.formResetCallback(),
104
+ validate: report => report ? this.internals?.reportValidity?.() ?? true : this.internals?.checkValidity?.() ?? true,
105
+ });
106
+ }
107
+ componentDidRender() {
108
+ this.syncFormState();
109
+ }
110
+ formResetCallback() {
111
+ this.value = this.initialValue;
112
+ this.syncFormState();
113
+ }
114
+ // ============================ [4] EXPOSED METHODS ============================
115
+ /** Focuses the selected option, or the first enabled option when nothing is selected. */
116
+ async focusElement() {
117
+ const inputs = this.getInputs();
118
+ (inputs.find(input => input.checked && !input.disabled) ?? inputs.find(input => !input.disabled))?.focus();
119
+ }
120
+ /** Returns whether the group satisfies its required and custom-error constraints. */
121
+ async checkValidity() {
122
+ this.syncFormState();
123
+ if (typeof this.internals?.checkValidity === 'function') {
124
+ return this.internals.checkValidity();
125
+ }
126
+ return this.isValid();
127
+ }
128
+ /** Reports group validity and returns whether the current selection is valid. */
129
+ async reportValidity() {
130
+ this.syncFormState();
131
+ if (typeof this.internals?.reportValidity === 'function') {
132
+ return this.internals.reportValidity();
133
+ }
134
+ return this.isValid();
135
+ }
136
+ // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
137
+ getOptions() {
138
+ return getRadioGroupOptions(this.options);
139
+ }
140
+ getSelectedOption(options = this.getOptions()) {
141
+ return options.find(option => option.value === this.value && !option.disabled);
142
+ }
143
+ getInputs() {
144
+ return Array.from(this.el.shadowRoot?.querySelectorAll('input[type="radio"]') ?? []);
145
+ }
146
+ isValid() {
147
+ if (this.isDisabled)
148
+ return true;
149
+ if ((this.error || this.errorMessage)?.trim())
150
+ return false;
151
+ return !this.required || this.getSelectedOption() !== undefined;
152
+ }
153
+ syncFormState() {
154
+ const disabled = syncFieldHost(this.el, this.disabled, this.name, this.required);
155
+ if (this.disabledState !== disabled)
156
+ this.disabledState = disabled;
157
+ if (this.fieldsetEl)
158
+ this.fieldsetEl.disabled = disabled;
159
+ const options = this.getOptions();
160
+ for (const input of this.getInputs()) {
161
+ const option = options.find(candidate => candidate.value === input.value);
162
+ input.disabled = disabled || !option || option.disabled === true;
163
+ input.checked = Boolean(option && option.value === this.value);
164
+ }
165
+ if (!this.internals)
166
+ return;
167
+ const selectedOption = this.getSelectedOption();
168
+ if (typeof this.internals.setFormValue === 'function') {
169
+ this.internals.setFormValue(this.isDisabled || !selectedOption ? null : selectedOption.value);
170
+ }
171
+ if (typeof this.internals.setValidity !== 'function')
172
+ return;
173
+ if (this.isDisabled) {
174
+ this.internals.setValidity({});
175
+ return;
176
+ }
177
+ const customError = (this.error || this.errorMessage)?.trim();
178
+ if (customError) {
179
+ this.internals.setValidity({ customError: true }, customError, this.getValidityAnchor());
180
+ return;
181
+ }
182
+ if (this.required && !selectedOption) {
183
+ this.internals.setValidity({ valueMissing: true }, 'Please select an option to continue.', this.getValidityAnchor());
184
+ return;
185
+ }
186
+ this.internals.setValidity({});
187
+ }
188
+ getValidityAnchor() {
189
+ return this.getInputs().find(input => input.checked && !input.disabled)
190
+ ?? this.getInputs().find(input => !input.disabled)
191
+ ?? this.fieldsetEl;
192
+ }
193
+ handleChange = (event) => {
194
+ if (this.isDisabled)
195
+ return;
196
+ const input = event.target;
197
+ const option = this.getOptions().find(candidate => candidate.value === input.value);
198
+ if (!option || option.disabled || option.value === this.value)
199
+ return;
200
+ this.value = option.value;
201
+ this.qChange.emit(option.value);
202
+ };
203
+ handleFocus = (event) => {
204
+ this.qFocus.emit(event);
205
+ };
206
+ handleBlur = (event) => {
207
+ this.qBlur.emit(event);
208
+ };
209
+ // ===================== [6] RENDER (Visual Template Only) =====================
210
+ render() {
211
+ const options = this.getOptions();
212
+ const identifiedOptions = identifyItems(options, option => option.value, {
213
+ warningContext: 'q-radio-group options',
214
+ });
215
+ const displayError = this.error || this.errorMessage;
216
+ const hasError = !!displayError;
217
+ const ariaLabel = this.ariaLabel?.trim() || undefined;
218
+ const radioName = this.name || this.internalName;
219
+ return (h("div", { key: 'daf7db6e2c9893a43e02c28a465ce8193b0e9eb4', style: feedbackStyle(this.reserveFeedback), class: {
220
+ 'radio-group': true,
221
+ 'is-disabled': this.isDisabled,
222
+ 'has-error': hasError,
223
+ [`size-${this.size}`]: true,
224
+ [`orientation-${this.orientation}`]: true,
225
+ } }, 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: {
226
+ option: true,
227
+ 'is-selected': option.value === this.value,
228
+ 'is-disabled': this.isDisabled || option.disabled === true,
229
+ }, part: "option" }, h("input", { type: "radio", name: radioName, value: option.value, checked: option.value === this.value, disabled: this.isDisabled || option.disabled, required: this.required, part: "input", onClick: this.handleChange, onInput: this.handleChange, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), option.icon && (h("q-icon", { name: option.icon, size: "var(--_q-control-icon)", part: "option-icon", class: "option-icon" })), h("span", { part: "option-label" }, option.label)))))), fieldFeedback('q-radio-group-error', displayError, this.description)));
230
+ }
231
+ static get delegatesFocus() { return true; }
232
+ static get formAssociated() { return true; }
233
+ static get watchers() { return {
234
+ "value": [{
235
+ "watchValue": 0
236
+ }],
237
+ "options": [{
238
+ "watchConstraints": 0
239
+ }],
240
+ "name": [{
241
+ "watchConstraints": 0
242
+ }],
243
+ "disabled": [{
244
+ "watchConstraints": 0
245
+ }],
246
+ "required": [{
247
+ "watchConstraints": 0
248
+ }],
249
+ "error": [{
250
+ "watchConstraints": 0
251
+ }],
252
+ "errorMessage": [{
253
+ "watchConstraints": 0
254
+ }]
255
+ }; }
256
+ };
257
+ QRadioGroup.style = radioGroupCss();
258
+
259
+ export { QRadioGroup as q_radio_group };
@@ -0,0 +1,168 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-B5ElFlHv.js';
2
+ import { g as getSlottedElements, h as handleTabTrap, s as safeFocus } from './dom-ByfrUWx1.js';
3
+
4
+ const reelCss = () => `:host{display:block;box-sizing:border-box;width:100%}.reel-container{display:grid;box-sizing:border-box}.layout-grid{grid-gap:var(--q-reel-gap, 16px);grid-template-columns:var(--q-reel-columns-mobile, repeat(auto-fill, minmax(140px, 1fr)))}@media (min-width: 768px){.layout-grid{grid-template-columns:var(--q-reel-columns-desktop, repeat(auto-fill, minmax(220px, 1fr)))}}.layout-carousel{display:flex;flex-direction:row;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:var(--q-reel-gap, 16px);padding-bottom:8px}.layout-carousel::-webkit-scrollbar{height:6px}.layout-carousel::-webkit-scrollbar-track{background:var(--q-bg-surface-1, #1f2937);border-radius:3px}.layout-carousel::-webkit-scrollbar-thumb{background:var(--q-bg-surface-3, #4b5563);border-radius:3px}.layout-carousel ::slotted(q-thumbnail){flex:0 0 auto;scroll-snap-align:start}.lightbox-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));z-index:9999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:40px;animation:fade-in var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close{position:absolute;top:20px;right:20px;background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:40px;height:40px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-close:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-close svg{width:20px;height:20px}.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:44px;height:44px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-prev{left:20px}.lightbox-next{right:20px}.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-prev:focus-visible,.lightbox-next:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-prev svg,.lightbox-next svg{width:24px;height:24px}.lightbox-content{position:relative;max-width:var(--q-lightbox-max-size, 85%);max-height:var(--q-lightbox-max-size, 85%);display:flex;flex-direction:column;align-items:center;z-index:9999}.lightbox-media{max-width:100%;max-height:80vh;border-radius:var(--q-radius-lg, 11px);border:1px solid rgba(255, 255, 255, 0.15);object-fit:contain;box-shadow:0 20px 45px rgba(0, 0, 0, 0.6)}.lightbox-caption{margin-top:16px;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-bold, 600);color:#ffffff;background:rgba(0, 0, 0, 0.7);padding:8px 16px;border-radius:var(--q-radius-md, 8px);text-align:center;border:1px solid rgba(255, 255, 255, 0.1)}@keyframes fade-in{from{opacity:0}to{opacity:1}}`;
5
+
6
+ const LIGHTBOX_FOCUS_DELAY_MS = 50;
7
+ const QReel = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.qLightboxOpen = createEvent(this, "qLightboxOpen");
11
+ this.qLightboxClose = createEvent(this, "qLightboxClose");
12
+ }
13
+ // ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
14
+ layout = 'grid';
15
+ /** Opens the built-in lightbox when thumbnails emit `qMaximize`. */
16
+ lightbox = true;
17
+ qLightboxOpen;
18
+ qLightboxClose;
19
+ get el() { return getElement(this); }
20
+ // ========================= [2] INTERNAL STATE & REFS =========================
21
+ activeMedia = null;
22
+ closeButtonRef;
23
+ focusTimer;
24
+ // ========================= [3] LIFECYCLE & WATCHERS ==========================
25
+ disconnectedCallback() {
26
+ this.clearFocusTimer();
27
+ }
28
+ handleLightboxChange(lightbox) {
29
+ if (!lightbox) {
30
+ this.closeLightbox();
31
+ }
32
+ }
33
+ // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
34
+ getThumbnails() {
35
+ const slotted = getSlottedElements(this.el, 'q-thumbnail');
36
+ if (slotted.length > 0)
37
+ return slotted;
38
+ return Array.from(this.el.querySelectorAll('q-thumbnail'));
39
+ }
40
+ handleThumbnailMaximize(event) {
41
+ if (!this.lightbox)
42
+ return;
43
+ this.activeMedia = event.detail;
44
+ this.qLightboxOpen.emit();
45
+ this.scheduleFocus(this.closeButtonRef);
46
+ }
47
+ handleGlobalKeyDown(event) {
48
+ if (!this.activeMedia)
49
+ return;
50
+ this.handleLightboxKeyDown(event);
51
+ }
52
+ closeLightbox = () => {
53
+ if (!this.activeMedia)
54
+ return;
55
+ const originalTrigger = this.activeMedia?.triggerEl;
56
+ this.activeMedia = null;
57
+ this.qLightboxClose.emit();
58
+ this.scheduleFocus(originalTrigger);
59
+ };
60
+ handleKeyDown = (e) => {
61
+ this.handleLightboxKeyDown(e);
62
+ };
63
+ handleLightboxKeyDown(e) {
64
+ if (e.key === 'Escape') {
65
+ e.preventDefault();
66
+ e.stopPropagation();
67
+ this.closeLightbox();
68
+ return;
69
+ }
70
+ if (e.key === 'Tab') {
71
+ const overlay = this.el.shadowRoot?.querySelector('.lightbox-overlay');
72
+ if (overlay) {
73
+ handleTabTrap(e, overlay);
74
+ e.stopPropagation();
75
+ }
76
+ return;
77
+ }
78
+ if (e.key === 'ArrowLeft') {
79
+ const currentIdx = this.getActiveIndex();
80
+ if (currentIdx > 0) {
81
+ this.navigateMedia(currentIdx - 1);
82
+ e.preventDefault();
83
+ e.stopPropagation();
84
+ }
85
+ return;
86
+ }
87
+ if (e.key === 'ArrowRight') {
88
+ const thumbnails = this.getThumbnails();
89
+ const currentIdx = this.getActiveIndex(thumbnails);
90
+ if (currentIdx !== -1 && currentIdx < thumbnails.length - 1) {
91
+ this.navigateMedia(currentIdx + 1);
92
+ e.preventDefault();
93
+ e.stopPropagation();
94
+ }
95
+ return;
96
+ }
97
+ }
98
+ handleCloseButtonClick = (e) => {
99
+ e.stopPropagation();
100
+ this.closeLightbox();
101
+ };
102
+ handlePreviousClick = (e) => {
103
+ e.stopPropagation();
104
+ const currentIdx = this.getActiveIndex();
105
+ if (currentIdx > 0) {
106
+ this.navigateMedia(currentIdx - 1);
107
+ }
108
+ };
109
+ handleNextClick = (e) => {
110
+ e.stopPropagation();
111
+ const thumbnails = this.getThumbnails();
112
+ const currentIdx = this.getActiveIndex(thumbnails);
113
+ if (currentIdx !== -1 && currentIdx < thumbnails.length - 1) {
114
+ this.navigateMedia(currentIdx + 1);
115
+ }
116
+ };
117
+ getActiveIndex(thumbnails = this.getThumbnails()) {
118
+ if (!this.activeMedia)
119
+ return -1;
120
+ return thumbnails.findIndex(thumbnail => thumbnail === this.activeMedia.triggerEl);
121
+ }
122
+ navigateMedia(index) {
123
+ const thumbnails = this.getThumbnails();
124
+ if (index >= 0 && index < thumbnails.length) {
125
+ const thumb = thumbnails[index];
126
+ this.activeMedia = {
127
+ src: thumb.src,
128
+ label: thumb.label,
129
+ video: thumb.video,
130
+ alt: thumb.alt,
131
+ triggerEl: thumb,
132
+ };
133
+ this.scheduleFocus(this.closeButtonRef);
134
+ }
135
+ }
136
+ clearFocusTimer() {
137
+ if (this.focusTimer) {
138
+ clearTimeout(this.focusTimer);
139
+ this.focusTimer = undefined;
140
+ }
141
+ }
142
+ scheduleFocus(element) {
143
+ this.clearFocusTimer();
144
+ this.focusTimer = setTimeout(() => {
145
+ this.focusTimer = undefined;
146
+ safeFocus(element);
147
+ }, LIGHTBOX_FOCUS_DELAY_MS);
148
+ }
149
+ // ===================== [6] RENDER (Visual Template Only) =====================
150
+ render() {
151
+ const thumbnails = this.getThumbnails();
152
+ const currentIdx = this.getActiveIndex(thumbnails);
153
+ const hasPrev = currentIdx > 0;
154
+ const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
155
+ return (h("div", { key: '7744fd5bdb4cbc917a350b6d17e8940cc9e1cff2', class: {
156
+ 'reel-container': true,
157
+ [`layout-${this.layout}`]: true,
158
+ } }, h("slot", { key: '74eda46a046b43cba85fc9bbdd76e89c349be018' }), this.activeMedia && (h("div", { key: '11f0513a929af336ba29ae37301e19f4245fc856', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '125a8cf14746401fcfb967e3a2ec6328a1f6203c', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: '9ad56cdbc49ecbc6939d4ab1c2ecaf85b8998763', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'd1d140a2465ad19a05eb310984604163799057e4', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '3879702b4473874cbdfad61df8d8baf1a9a13f89', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '945e385952b9529d56c6ef009ad583cf879a1591', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: 'd20850b91d771de7fd7b08af7920f390dd19733d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '52ac81117d6e5245b36863b9fb3cae84e4296ace', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: 'a9fb6797a16c737f7962f7b05b05958997afb610', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: '262d4a92060449f14fb0fc2cd5b75a4e33094706', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'ca32052e104a54c6860ad725660a82e065ede577', points: "9 18 15 12 9 6" })))), h("div", { key: '48503cf4be1f56eea39f1a929a5355f537861870', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: '68717bb03281d847173b40ca01ce594892907cd2', class: "lightbox-caption" }, this.activeMedia.label)))))));
159
+ }
160
+ static get watchers() { return {
161
+ "lightbox": [{
162
+ "handleLightboxChange": 0
163
+ }]
164
+ }; }
165
+ };
166
+ QReel.style = reelCss();
167
+
168
+ export { QReel as q_reel };