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

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 (830) 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-DmLaQuU2.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-CEZ9NsWK.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-CMAcJ6t1.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-divider.cjs.entry.js +26 -0
  33. package/dist/cjs/q-dropdown.cjs.entry.js +718 -0
  34. package/dist/cjs/q-form.cjs.entry.js +1002 -0
  35. package/dist/cjs/q-grid.cjs.entry.js +24 -0
  36. package/dist/cjs/q-icon.cjs.entry.js +439 -0
  37. package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
  38. package/dist/cjs/q-inline.cjs.entry.js +22 -0
  39. package/dist/cjs/q-input_2.cjs.entry.js +440 -0
  40. package/dist/cjs/q-link.cjs.entry.js +80 -0
  41. package/dist/cjs/q-map.cjs.entry.js +3509 -0
  42. package/dist/cjs/q-media.cjs.entry.js +21 -0
  43. package/dist/cjs/q-navbar.cjs.entry.js +415 -0
  44. package/dist/cjs/q-pagination.cjs.entry.js +68 -0
  45. package/dist/cjs/q-panel.cjs.entry.js +76 -0
  46. package/dist/cjs/q-quantity-selector.cjs.entry.js +204 -0
  47. package/dist/cjs/q-radio-group.cjs.entry.js +261 -0
  48. package/dist/cjs/q-reel.cjs.entry.js +170 -0
  49. package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
  50. package/dist/cjs/q-section.cjs.entry.js +20 -0
  51. package/dist/cjs/q-sidepanel.cjs.entry.js +793 -0
  52. package/dist/cjs/q-stack.cjs.entry.js +20 -0
  53. package/dist/cjs/q-step-diagram-item.cjs.entry.js +45 -0
  54. package/dist/cjs/q-step-diagram.cjs.entry.js +56 -0
  55. package/dist/cjs/q-syntax-box.cjs.entry.js +782 -0
  56. package/dist/cjs/q-tabs.cjs.entry.js +155 -0
  57. package/dist/cjs/q-textarea.cjs.entry.js +297 -0
  58. package/dist/cjs/q-thumbnail.cjs.entry.js +51 -0
  59. package/dist/cjs/q-toast.cjs.entry.js +400 -0
  60. package/dist/cjs/q-toggle.cjs.entry.js +233 -0
  61. package/dist/cjs/q-toolbar.cjs.entry.js +33 -0
  62. package/dist/cjs/registry-CzkkkaZO.js +323 -0
  63. package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
  64. package/dist/cjs/tokens-Cd7g-VMz.js +960 -0
  65. package/dist/cjs/utils-DGQOjEwT.js +33 -0
  66. package/dist/cjs/webquark.cjs.js +24 -0
  67. package/dist/collection/assets/icons/braces.svg +14 -0
  68. package/dist/collection/assets/icons/check.svg +1 -0
  69. package/dist/collection/assets/icons/chevron-down.svg +1 -0
  70. package/dist/collection/assets/icons/chevron-left.svg +1 -0
  71. package/dist/collection/assets/icons/chevron-right.svg +1 -0
  72. package/dist/collection/assets/icons/chevron-up.svg +1 -0
  73. package/dist/collection/assets/icons/copy.svg +4 -0
  74. package/dist/collection/assets/icons/eye-off.svg +1 -0
  75. package/dist/collection/assets/icons/eye.svg +1 -0
  76. package/dist/collection/assets/icons/minus.svg +1 -0
  77. package/dist/collection/assets/icons/play.svg +1 -0
  78. package/dist/collection/assets/icons/plus.svg +1 -0
  79. package/dist/collection/assets/icons/search.svg +1 -0
  80. package/dist/collection/assets/icons/spinner.svg +1 -0
  81. package/dist/collection/assets/icons/trash-2.svg +1 -0
  82. package/dist/collection/assets/icons/x.svg +1 -0
  83. package/dist/collection/collection-manifest.json +57 -0
  84. package/dist/collection/components/actions/action.props.js +130 -0
  85. package/dist/collection/components/actions/button/button.css +242 -0
  86. package/dist/collection/components/actions/button/button.js +748 -0
  87. package/dist/collection/components/actions/button/button.types.js +1 -0
  88. package/dist/collection/components/actions/button/button.utils.js +9 -0
  89. package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
  90. package/dist/collection/components/actions/button/test/button.utils.unit.test.js +44 -0
  91. package/dist/collection/components/actions/link/link.css +102 -0
  92. package/dist/collection/components/actions/link/link.js +316 -0
  93. package/dist/collection/components/actions/link/link.types.js +1 -0
  94. package/dist/collection/components/communication/alert/alert.css +118 -0
  95. package/dist/collection/components/communication/alert/alert.js +208 -0
  96. package/dist/collection/components/communication/alert/alert.types.js +1 -0
  97. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.css +154 -0
  98. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.js +207 -0
  99. package/dist/collection/components/communication/conversation-bubble/conversation-bubble.types.js +1 -0
  100. package/dist/collection/components/communication/toast/internals/icons.js +25 -0
  101. package/dist/collection/components/communication/toast/internals/queue.js +64 -0
  102. package/dist/collection/components/communication/toast/internals/timers.js +75 -0
  103. package/dist/collection/components/communication/toast/test/toast.cmp.test.js +38 -0
  104. package/dist/collection/components/communication/toast/test/toast.unit.test.js +104 -0
  105. package/dist/collection/components/communication/toast/toast-controller.js +105 -0
  106. package/dist/collection/components/communication/toast/toast.css +141 -0
  107. package/dist/collection/components/communication/toast/toast.js +556 -0
  108. package/dist/collection/components/communication/toast/toast.types.js +1 -0
  109. package/dist/collection/components/content/banner/banner.css +1 -0
  110. package/dist/collection/components/content/banner/banner.js +84 -0
  111. package/dist/collection/components/content/banner/banner.types.js +1 -0
  112. package/dist/collection/components/content/card/card.css +105 -0
  113. package/dist/collection/components/content/card/card.js +308 -0
  114. package/dist/collection/components/content/card/card.types.js +1 -0
  115. package/dist/collection/components/content/card/card.utils.js +15 -0
  116. package/dist/collection/components/content/carousel/carousel.css +254 -0
  117. package/dist/collection/components/content/carousel/carousel.js +956 -0
  118. package/dist/collection/components/content/carousel/carousel.types.js +1 -0
  119. package/dist/collection/components/content/carousel/carousel.utils.js +1 -0
  120. package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
  121. package/dist/collection/components/content/carousel/internals/metrics.js +59 -0
  122. package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
  123. package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
  124. package/dist/collection/components/data-display/accordion/accordion.css +1 -0
  125. package/dist/collection/components/data-display/accordion/accordion.js +54 -0
  126. package/dist/collection/components/data-display/accordion/accordion.types.js +1 -0
  127. package/dist/collection/components/data-display/chip/chip.css +219 -0
  128. package/dist/collection/components/data-display/chip/chip.js +381 -0
  129. package/dist/collection/components/data-display/chip/chip.types.js +1 -0
  130. package/dist/collection/components/data-display/data-table/data-table-cell.js +44 -0
  131. package/dist/collection/components/data-display/data-table/data-table.css +429 -0
  132. package/dist/collection/components/data-display/data-table/data-table.js +862 -0
  133. package/dist/collection/components/data-display/data-table/data-table.types.js +1 -0
  134. package/dist/collection/components/data-display/data-table/internals/data-access.js +43 -0
  135. package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +22 -0
  136. package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +5 -0
  137. package/dist/collection/components/data-display/data-table/internals/render-table-body.js +59 -0
  138. package/dist/collection/components/data-display/data-table/internals/render-table-head.js +42 -0
  139. package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +6 -0
  140. package/dist/collection/components/data-display/data-table/internals/row-events.js +27 -0
  141. package/dist/collection/components/data-display/data-table/internals/selection.js +31 -0
  142. package/dist/collection/components/data-display/data-table/internals/sort.js +57 -0
  143. package/dist/collection/components/data-display/data-table/internals/table-model.js +92 -0
  144. package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
  145. package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
  146. package/dist/collection/components/data-display/map/internals/base-layer.js +140 -0
  147. package/dist/collection/components/data-display/map/internals/bounds.js +66 -0
  148. package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +128 -0
  149. package/dist/collection/components/data-display/map/internals/cluster-collision.js +73 -0
  150. package/dist/collection/components/data-display/map/internals/google-maps.js +117 -0
  151. package/dist/collection/components/data-display/map/internals/google-mutant.js +51 -0
  152. package/dist/collection/components/data-display/map/internals/maplibre.js +50 -0
  153. package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +136 -0
  154. package/dist/collection/components/data-display/map/internals/marker-controller.js +425 -0
  155. package/dist/collection/components/data-display/map/internals/marker-presentation.js +266 -0
  156. package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
  157. package/dist/collection/components/data-display/map/internals/markers.js +191 -0
  158. package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +67 -0
  159. package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +8 -0
  160. package/dist/collection/components/data-display/map/internals/vector-padding.js +8 -0
  161. package/dist/collection/components/data-display/map/map.css +742 -0
  162. package/dist/collection/components/data-display/map/map.js +1595 -0
  163. package/dist/collection/components/data-display/map/map.types.js +12 -0
  164. package/dist/collection/components/data-display/map/test/map.cmp.test.js +961 -0
  165. package/dist/collection/components/data-display/pagination/pagination.css +81 -0
  166. package/dist/collection/components/data-display/pagination/pagination.js +240 -0
  167. package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +57 -0
  168. package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +9 -0
  169. package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +14 -0
  170. package/dist/collection/components/data-display/syntax-box/internals/formatter.js +156 -0
  171. package/dist/collection/components/data-display/syntax-box/internals/formatter.unit.test.js +71 -0
  172. package/dist/collection/components/data-display/syntax-box/internals/syntax.js +239 -0
  173. package/dist/collection/components/data-display/syntax-box/internals/syntax.unit.test.js +134 -0
  174. package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +10 -0
  175. package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
  176. package/dist/collection/components/data-display/syntax-box/syntax-box.css +209 -0
  177. package/dist/collection/components/data-display/syntax-box/syntax-box.js +678 -0
  178. package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +1 -0
  179. package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +1 -0
  180. package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
  181. package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
  182. package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
  183. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
  184. package/dist/collection/components/indicators/progress/progress.css +223 -0
  185. package/dist/collection/components/indicators/progress/progress.js +275 -0
  186. package/dist/collection/components/indicators/progress/progress.types.js +1 -0
  187. package/dist/collection/components/indicators/step-diagram/step-diagram.css +21 -0
  188. package/dist/collection/components/indicators/step-diagram/step-diagram.js +143 -0
  189. package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
  190. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +252 -0
  191. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +185 -0
  192. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +1 -0
  193. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +3 -0
  194. package/dist/collection/components/inputs/dropdown/dropdown.css +420 -0
  195. package/dist/collection/components/inputs/dropdown/dropdown.js +1303 -0
  196. package/dist/collection/components/inputs/dropdown/dropdown.types.js +1 -0
  197. package/dist/collection/components/inputs/dropdown/internals/options.js +30 -0
  198. package/dist/collection/components/inputs/dropdown/internals/position.js +35 -0
  199. package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +90 -0
  200. package/dist/collection/components/inputs/dropdown/test/search-mode.cmp.test.js +186 -0
  201. package/dist/collection/components/inputs/form/form.css +85 -0
  202. package/dist/collection/components/inputs/form/form.js +808 -0
  203. package/dist/collection/components/inputs/form/form.types.js +1 -0
  204. package/dist/collection/components/inputs/form/internals/controls.js +173 -0
  205. package/dist/collection/components/inputs/form/internals/enter-behavior.js +25 -0
  206. package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
  207. package/dist/collection/components/inputs/form/internals/reset.js +50 -0
  208. package/dist/collection/components/inputs/form/internals/submission.js +140 -0
  209. package/dist/collection/components/inputs/form/internals/values.js +199 -0
  210. package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
  211. package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
  212. package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
  213. package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +444 -0
  214. package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
  215. package/dist/collection/components/inputs/form/test/form.cmp.test.js +157 -0
  216. package/dist/collection/components/inputs/input/input.css +313 -0
  217. package/dist/collection/components/inputs/input/input.js +935 -0
  218. package/dist/collection/components/inputs/input/input.types.js +1 -0
  219. package/dist/collection/components/inputs/input/input.utils.js +3 -0
  220. package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +64 -0
  221. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +171 -0
  222. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +390 -0
  223. package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
  224. package/dist/collection/components/inputs/radio-group/radio-group.css +224 -0
  225. package/dist/collection/components/inputs/radio-group/radio-group.js +668 -0
  226. package/dist/collection/components/inputs/radio-group/radio-group.types.js +1 -0
  227. package/dist/collection/components/inputs/radio-group/radio-group.utils.js +18 -0
  228. package/dist/collection/components/inputs/textarea/textarea.css +192 -0
  229. package/dist/collection/components/inputs/textarea/textarea.js +827 -0
  230. package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
  231. package/dist/collection/components/inputs/toggle/test/toggle-layout.cmp.test.js +69 -0
  232. package/dist/collection/components/inputs/toggle/toggle.css +257 -0
  233. package/dist/collection/components/inputs/toggle/toggle.js +610 -0
  234. package/dist/collection/components/inputs/toggle/toggle.types.js +1 -0
  235. package/dist/collection/components/inputs/toggle/toggle.utils.js +3 -0
  236. package/dist/collection/components/layout/divider/divider.css +40 -0
  237. package/dist/collection/components/layout/divider/divider.js +121 -0
  238. package/dist/collection/components/layout/divider/test/divider.cmp.test.js +105 -0
  239. package/dist/collection/components/layout/grid/grid.css +11 -0
  240. package/dist/collection/components/layout/grid/grid.js +152 -0
  241. package/dist/collection/components/layout/inline/inline.css +4 -0
  242. package/dist/collection/components/layout/inline/inline.js +118 -0
  243. package/dist/collection/components/layout/navbar/navbar.css +584 -0
  244. package/dist/collection/components/layout/navbar/navbar.js +848 -0
  245. package/dist/collection/components/layout/navbar/navbar.types.js +1 -0
  246. package/dist/collection/components/layout/navbar/navbar.utils.js +13 -0
  247. package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +369 -0
  248. package/dist/collection/components/layout/panel/panel.css +114 -0
  249. package/dist/collection/components/layout/panel/panel.js +394 -0
  250. package/dist/collection/components/layout/panel/panel.types.js +1 -0
  251. package/dist/collection/components/layout/scrollable/internals/metrics.js +61 -0
  252. package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +41 -0
  253. package/dist/collection/components/layout/scrollable/scrollable.css +123 -0
  254. package/dist/collection/components/layout/scrollable/scrollable.js +565 -0
  255. package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
  256. package/dist/collection/components/layout/section/section.css +1 -0
  257. package/dist/collection/components/layout/section/section.js +98 -0
  258. package/dist/collection/components/layout/section/section.types.js +1 -0
  259. package/dist/collection/components/layout/sidepanel/internals/drawer.js +98 -0
  260. package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
  261. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +30 -0
  262. package/dist/collection/components/layout/sidepanel/sidepanel.css +1035 -0
  263. package/dist/collection/components/layout/sidepanel/sidepanel.js +1001 -0
  264. package/dist/collection/components/layout/sidepanel/sidepanel.types.js +1 -0
  265. package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +17 -0
  266. package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
  267. package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
  268. package/dist/collection/components/layout/stack/stack.css +4 -0
  269. package/dist/collection/components/layout/stack/stack.js +76 -0
  270. package/dist/collection/components/layout/tabs/tabs.css +248 -0
  271. package/dist/collection/components/layout/tabs/tabs.js +322 -0
  272. package/dist/collection/components/layout/tabs/tabs.types.js +1 -0
  273. package/dist/collection/components/layout/tabs/tabs.utils.js +31 -0
  274. package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +165 -0
  275. package/dist/collection/components/layout/toolbar/toolbar.css +168 -0
  276. package/dist/collection/components/layout/toolbar/toolbar.js +251 -0
  277. package/dist/collection/components/layout/toolbar/toolbar.types.js +1 -0
  278. package/dist/collection/components/media/avatar/avatar.css +71 -0
  279. package/dist/collection/components/media/avatar/avatar.js +302 -0
  280. package/dist/collection/components/media/avatar/avatar.types.js +1 -0
  281. package/dist/collection/components/media/icon/icon.css +42 -0
  282. package/dist/collection/components/media/icon/icon.js +510 -0
  283. package/dist/collection/components/media/icon/icon.types.js +1 -0
  284. package/dist/collection/components/media/icon/internals/constants.js +3 -0
  285. package/dist/collection/components/media/icon/internals/fetch-icon.js +47 -0
  286. package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
  287. package/dist/collection/components/media/icon/internals/policy.js +184 -0
  288. package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
  289. package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
  290. package/dist/collection/components/media/icon/internals/registry.js +122 -0
  291. package/dist/collection/components/media/icon/internals/registry.unit.test.js +42 -0
  292. package/dist/collection/components/media/icon/internals/render-definition.js +24 -0
  293. package/dist/collection/components/media/icon/internals/sanitize-svg.js +86 -0
  294. package/dist/collection/components/media/icon/internals/size.js +12 -0
  295. package/dist/collection/components/media/icon/internals/url.js +52 -0
  296. package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
  297. package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
  298. package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
  299. package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
  300. package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
  301. package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
  302. package/dist/collection/components/media/media/media.css +1 -0
  303. package/dist/collection/components/media/media/media.js +125 -0
  304. package/dist/collection/components/media/media/media.types.js +1 -0
  305. package/dist/collection/components/media/reel/reel.css +193 -0
  306. package/dist/collection/components/media/reel/reel.js +279 -0
  307. package/dist/collection/components/media/reel/reel.types.js +1 -0
  308. package/dist/collection/components/media/thumbnail/thumbnail.css +111 -0
  309. package/dist/collection/components/media/thumbnail/thumbnail.js +184 -0
  310. package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
  311. package/dist/collection/components/overlays/dialog/dialog.css +264 -0
  312. package/dist/collection/components/overlays/dialog/dialog.js +743 -0
  313. package/dist/collection/components/overlays/dialog/dialog.types.js +1 -0
  314. package/dist/collection/components/overlays/dialog/internals/backdrop.js +9 -0
  315. package/dist/collection/components/overlays/dialog/internals/lifecycle.js +53 -0
  316. package/dist/collection/components/overlays/tooltip/internals/aria.js +27 -0
  317. package/dist/collection/components/overlays/tooltip/internals/positioning.js +84 -0
  318. package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
  319. package/dist/collection/components/overlays/tooltip/tooltip.css +69 -0
  320. package/dist/collection/components/overlays/tooltip/tooltip.js +196 -0
  321. package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
  322. package/dist/collection/components/shared/field.js +8 -0
  323. package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
  324. package/dist/collection/index.js +16 -0
  325. package/dist/collection/native-content.css +24 -0
  326. package/dist/collection/theme/test/foundation.cmp.test.js +353 -0
  327. package/dist/collection/theme/test/input-width.cmp.test.js +117 -0
  328. package/dist/collection/theme/test/presets.cmp.test.js +129 -0
  329. package/dist/collection/theme/test/presets.unit.test.js +58 -0
  330. package/dist/collection/theme/tokens.js +963 -0
  331. package/dist/collection/utils/collection-identity.js +136 -0
  332. package/dist/collection/utils/collection-identity.unit.test.js +107 -0
  333. package/dist/collection/utils/dom.js +236 -0
  334. package/dist/collection/utils/form-control-validity.js +44 -0
  335. package/dist/collection/utils/form-field-adapter.js +44 -0
  336. package/dist/collection/utils/form-field-state.js +45 -0
  337. package/dist/collection/utils/form-reset-action.js +60 -0
  338. package/dist/collection/utils/form-submit-action.js +151 -0
  339. package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
  340. package/dist/collection/utils/image-crop.js +47 -0
  341. package/dist/collection/utils/image-crop.unit.test.js +57 -0
  342. package/dist/collection/utils/math.js +19 -0
  343. package/dist/collection/utils/utils.js +28 -0
  344. package/dist/collection/utils/utils.unit.test.js +16 -0
  345. package/dist/components/index.d.ts +35 -0
  346. package/dist/components/index.js +1 -0
  347. package/dist/components/p--r63tfQH.js +1 -0
  348. package/dist/components/p-0feRVg70.js +1 -0
  349. package/dist/components/p-BDsIecIx.js +1 -0
  350. package/dist/components/p-BIIQL66b.js +1 -0
  351. package/dist/components/p-BJiYCN3i.js +1 -0
  352. package/dist/components/p-BOdNg0jc.js +1 -0
  353. package/dist/components/p-BcL0NVv0.js +1 -0
  354. package/dist/components/p-Bj2RJb2E.js +1 -0
  355. package/dist/components/p-ByfrUWx1.js +1 -0
  356. package/dist/components/p-CGZPmEUB.js +1 -0
  357. package/dist/components/p-CGml_DQ8.js +1 -0
  358. package/dist/components/p-CLErjC1f.js +1 -0
  359. package/dist/components/p-CSucjZb7.js +1 -0
  360. package/dist/components/p-CYG3Oakz.js +1 -0
  361. package/dist/components/p-C_RztzNv.js +5 -0
  362. package/dist/components/p-CoIMrUb3.js +1 -0
  363. package/dist/components/p-CpI3m4_T.js +1 -0
  364. package/dist/components/p-DBbiaYqQ.js +1 -0
  365. package/dist/components/p-DKrPmn2y.js +13 -0
  366. package/dist/components/p-DQhiqYeq.js +1 -0
  367. package/dist/components/p-DYMWBqU1.js +5 -0
  368. package/dist/components/p-DbI_F3z0.js +1 -0
  369. package/dist/components/p-DstNl_WY.js +1 -0
  370. package/dist/components/p-DuX-9GOi.js +1 -0
  371. package/dist/components/p-SzKf4WZF.js +1 -0
  372. package/dist/components/p-cSh-5xis.js +1 -0
  373. package/dist/components/p-iXEnb5d5.js +1 -0
  374. package/dist/components/q-accordion.d.ts +11 -0
  375. package/dist/components/q-accordion.js +1 -0
  376. package/dist/components/q-alert.d.ts +11 -0
  377. package/dist/components/q-alert.js +1 -0
  378. package/dist/components/q-avatar.d.ts +11 -0
  379. package/dist/components/q-avatar.js +1 -0
  380. package/dist/components/q-banner.d.ts +11 -0
  381. package/dist/components/q-banner.js +1 -0
  382. package/dist/components/q-button.d.ts +11 -0
  383. package/dist/components/q-button.js +1 -0
  384. package/dist/components/q-card.d.ts +11 -0
  385. package/dist/components/q-card.js +1 -0
  386. package/dist/components/q-carousel.d.ts +11 -0
  387. package/dist/components/q-carousel.js +1 -0
  388. package/dist/components/q-chip.d.ts +11 -0
  389. package/dist/components/q-chip.js +1 -0
  390. package/dist/components/q-conversation-bubble.d.ts +11 -0
  391. package/dist/components/q-conversation-bubble.js +1 -0
  392. package/dist/components/q-data-table.d.ts +11 -0
  393. package/dist/components/q-data-table.js +1 -0
  394. package/dist/components/q-dialog.d.ts +11 -0
  395. package/dist/components/q-dialog.js +1 -0
  396. package/dist/components/q-divider.d.ts +11 -0
  397. package/dist/components/q-divider.js +1 -0
  398. package/dist/components/q-dropdown.d.ts +11 -0
  399. package/dist/components/q-dropdown.js +1 -0
  400. package/dist/components/q-form.d.ts +11 -0
  401. package/dist/components/q-form.js +1 -0
  402. package/dist/components/q-grid.d.ts +11 -0
  403. package/dist/components/q-grid.js +1 -0
  404. package/dist/components/q-icon.d.ts +11 -0
  405. package/dist/components/q-icon.js +1 -0
  406. package/dist/components/q-image-comparison.d.ts +11 -0
  407. package/dist/components/q-image-comparison.js +1 -0
  408. package/dist/components/q-inline.d.ts +11 -0
  409. package/dist/components/q-inline.js +1 -0
  410. package/dist/components/q-input.d.ts +11 -0
  411. package/dist/components/q-input.js +1 -0
  412. package/dist/components/q-link.d.ts +11 -0
  413. package/dist/components/q-link.js +1 -0
  414. package/dist/components/q-map.d.ts +11 -0
  415. package/dist/components/q-map.js +1 -0
  416. package/dist/components/q-media.d.ts +11 -0
  417. package/dist/components/q-media.js +1 -0
  418. package/dist/components/q-navbar.d.ts +11 -0
  419. package/dist/components/q-navbar.js +1 -0
  420. package/dist/components/q-pagination.d.ts +11 -0
  421. package/dist/components/q-pagination.js +1 -0
  422. package/dist/components/q-panel.d.ts +11 -0
  423. package/dist/components/q-panel.js +1 -0
  424. package/dist/components/q-progress.d.ts +11 -0
  425. package/dist/components/q-progress.js +1 -0
  426. package/dist/components/q-quantity-selector.d.ts +11 -0
  427. package/dist/components/q-quantity-selector.js +1 -0
  428. package/dist/components/q-radio-group.d.ts +11 -0
  429. package/dist/components/q-radio-group.js +1 -0
  430. package/dist/components/q-reel.d.ts +11 -0
  431. package/dist/components/q-reel.js +1 -0
  432. package/dist/components/q-scrollable.d.ts +11 -0
  433. package/dist/components/q-scrollable.js +1 -0
  434. package/dist/components/q-section.d.ts +11 -0
  435. package/dist/components/q-section.js +1 -0
  436. package/dist/components/q-sidepanel.d.ts +11 -0
  437. package/dist/components/q-sidepanel.js +13 -0
  438. package/dist/components/q-stack.d.ts +11 -0
  439. package/dist/components/q-stack.js +1 -0
  440. package/dist/components/q-step-diagram-item.d.ts +11 -0
  441. package/dist/components/q-step-diagram-item.js +1 -0
  442. package/dist/components/q-step-diagram.d.ts +11 -0
  443. package/dist/components/q-step-diagram.js +1 -0
  444. package/dist/components/q-syntax-box.d.ts +11 -0
  445. package/dist/components/q-syntax-box.js +13 -0
  446. package/dist/components/q-tabs.d.ts +11 -0
  447. package/dist/components/q-tabs.js +1 -0
  448. package/dist/components/q-textarea.d.ts +11 -0
  449. package/dist/components/q-textarea.js +1 -0
  450. package/dist/components/q-thumbnail.d.ts +11 -0
  451. package/dist/components/q-thumbnail.js +1 -0
  452. package/dist/components/q-toast.d.ts +11 -0
  453. package/dist/components/q-toast.js +1 -0
  454. package/dist/components/q-toggle.d.ts +11 -0
  455. package/dist/components/q-toggle.js +1 -0
  456. package/dist/components/q-toolbar.d.ts +11 -0
  457. package/dist/components/q-toolbar.js +1 -0
  458. package/dist/components/q-tooltip.d.ts +11 -0
  459. package/dist/components/q-tooltip.js +1 -0
  460. package/dist/esm/Leaflet.GoogleMutant-MpxOb4Jm.js +766 -0
  461. package/dist/esm/action.props-DhnvhbLl.js +32 -0
  462. package/dist/esm/chevron-up-DKrPmn2y.js +27 -0
  463. package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
  464. package/dist/esm/data-table-cell-SzKf4WZF.js +46 -0
  465. package/dist/esm/dom-ByfrUWx1.js +238 -0
  466. package/dist/esm/field-u-k7C7Rf.js +11 -0
  467. package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
  468. package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
  469. package/dist/esm/form-field-state-DstNl_WY.js +47 -0
  470. package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
  471. package/dist/esm/image-crop-BcL0NVv0.js +49 -0
  472. package/dist/esm/index-DaJmsCb7.js +1858 -0
  473. package/dist/esm/index.js +7 -0
  474. package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
  475. package/dist/esm/leaflet-src-DYMWBqU1.js +14547 -0
  476. package/dist/esm/loader.js +10 -0
  477. package/dist/esm/map.types-CoIMrUb3.js +14 -0
  478. package/dist/esm/q-accordion.entry.js +16 -0
  479. package/dist/esm/q-alert.entry.js +50 -0
  480. package/dist/esm/q-avatar.entry.js +99 -0
  481. package/dist/esm/q-banner.entry.js +17 -0
  482. package/dist/esm/q-button_2.entry.js +459 -0
  483. package/dist/esm/q-card.entry.js +86 -0
  484. package/dist/esm/q-carousel.entry.js +716 -0
  485. package/dist/esm/q-chip.entry.js +122 -0
  486. package/dist/esm/q-conversation-bubble.entry.js +68 -0
  487. package/dist/esm/q-data-table.entry.js +609 -0
  488. package/dist/esm/q-dialog.entry.js +269 -0
  489. package/dist/esm/q-divider.entry.js +24 -0
  490. package/dist/esm/q-dropdown.entry.js +716 -0
  491. package/dist/esm/q-form.entry.js +1000 -0
  492. package/dist/esm/q-grid.entry.js +22 -0
  493. package/dist/esm/q-icon.entry.js +437 -0
  494. package/dist/esm/q-image-comparison.entry.js +199 -0
  495. package/dist/esm/q-inline.entry.js +20 -0
  496. package/dist/esm/q-input_2.entry.js +437 -0
  497. package/dist/esm/q-link.entry.js +78 -0
  498. package/dist/esm/q-map.entry.js +3507 -0
  499. package/dist/esm/q-media.entry.js +19 -0
  500. package/dist/esm/q-navbar.entry.js +413 -0
  501. package/dist/esm/q-pagination.entry.js +66 -0
  502. package/dist/esm/q-panel.entry.js +74 -0
  503. package/dist/esm/q-quantity-selector.entry.js +202 -0
  504. package/dist/esm/q-radio-group.entry.js +259 -0
  505. package/dist/esm/q-reel.entry.js +168 -0
  506. package/dist/esm/q-scrollable.entry.js +447 -0
  507. package/dist/esm/q-section.entry.js +18 -0
  508. package/dist/esm/q-sidepanel.entry.js +791 -0
  509. package/dist/esm/q-stack.entry.js +18 -0
  510. package/dist/esm/q-step-diagram-item.entry.js +43 -0
  511. package/dist/esm/q-step-diagram.entry.js +54 -0
  512. package/dist/esm/q-syntax-box.entry.js +780 -0
  513. package/dist/esm/q-tabs.entry.js +153 -0
  514. package/dist/esm/q-textarea.entry.js +295 -0
  515. package/dist/esm/q-thumbnail.entry.js +49 -0
  516. package/dist/esm/q-toast.entry.js +398 -0
  517. package/dist/esm/q-toggle.entry.js +231 -0
  518. package/dist/esm/q-toolbar.entry.js +31 -0
  519. package/dist/esm/registry-CpI3m4_T.js +308 -0
  520. package/dist/esm/toast-controller-BIIQL66b.js +107 -0
  521. package/dist/esm/tokens-BDsIecIx.js +956 -0
  522. package/dist/esm/utils-BJiYCN3i.js +30 -0
  523. package/dist/esm/webquark.js +20 -0
  524. package/dist/index.cjs.js +1 -0
  525. package/dist/index.js +1 -0
  526. package/dist/loader/cdn.js +1 -0
  527. package/dist/loader/index.cjs.js +1 -0
  528. package/dist/loader/index.d.ts +24 -0
  529. package/dist/loader/index.es2017.js +1 -0
  530. package/dist/loader/index.js +2 -0
  531. package/dist/playground/components/theme-designer/dimension-tokens.js +9 -0
  532. package/dist/playground/components/theme-designer/token-row.js +89 -0
  533. package/dist/playground/dom-factory.js +76 -0
  534. package/dist/playground/utils/color.js +26 -0
  535. package/dist/playground/utils/dom.js +38 -0
  536. package/dist/playground/utils/index.js +2 -0
  537. package/dist/types/components/actions/action.props.d.ts +19 -0
  538. package/dist/types/components/actions/button/button.d.ts +87 -0
  539. package/dist/types/components/actions/button/button.types.d.ts +6 -0
  540. package/dist/types/components/actions/button/button.utils.d.ts +8 -0
  541. package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
  542. package/dist/types/components/actions/button/test/button.utils.unit.test.d.ts +1 -0
  543. package/dist/types/components/actions/link/link.d.ts +43 -0
  544. package/dist/types/components/actions/link/link.types.d.ts +3 -0
  545. package/dist/types/components/communication/alert/alert.d.ts +32 -0
  546. package/dist/types/components/communication/alert/alert.types.d.ts +2 -0
  547. package/dist/types/components/communication/conversation-bubble/conversation-bubble.d.ts +38 -0
  548. package/dist/types/components/communication/conversation-bubble/conversation-bubble.types.d.ts +1 -0
  549. package/dist/types/components/communication/toast/internals/icons.d.ts +2 -0
  550. package/dist/types/components/communication/toast/internals/queue.d.ts +19 -0
  551. package/dist/types/components/communication/toast/internals/timers.d.ts +12 -0
  552. package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
  553. package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
  554. package/dist/types/components/communication/toast/toast-controller.d.ts +9 -0
  555. package/dist/types/components/communication/toast/toast.d.ts +44 -0
  556. package/dist/types/components/communication/toast/toast.types.d.ts +30 -0
  557. package/dist/types/components/content/banner/banner.d.ts +12 -0
  558. package/dist/types/components/content/banner/banner.types.d.ts +2 -0
  559. package/dist/types/components/content/card/card.d.ts +35 -0
  560. package/dist/types/components/content/card/card.types.d.ts +1 -0
  561. package/dist/types/components/content/card/card.utils.d.ts +5 -0
  562. package/dist/types/components/content/carousel/carousel.d.ts +123 -0
  563. package/dist/types/components/content/carousel/carousel.types.d.ts +10 -0
  564. package/dist/types/components/content/carousel/carousel.utils.d.ts +1 -0
  565. package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
  566. package/dist/types/components/content/carousel/internals/metrics.d.ts +23 -0
  567. package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
  568. package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
  569. package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
  570. package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
  571. package/dist/types/components/data-display/chip/chip.d.ts +55 -0
  572. package/dist/types/components/data-display/chip/chip.types.d.ts +13 -0
  573. package/dist/types/components/data-display/data-table/data-table-cell.d.ts +7 -0
  574. package/dist/types/components/data-display/data-table/data-table.d.ts +95 -0
  575. package/dist/types/components/data-display/data-table/data-table.types.d.ts +56 -0
  576. package/dist/types/components/data-display/data-table/internals/data-access.d.ts +9 -0
  577. package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +9 -0
  578. package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +5 -0
  579. package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +13 -0
  580. package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +8 -0
  581. package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +9 -0
  582. package/dist/types/components/data-display/data-table/internals/row-events.d.ts +1 -0
  583. package/dist/types/components/data-display/data-table/internals/selection.d.ts +10 -0
  584. package/dist/types/components/data-display/data-table/internals/sort.d.ts +3 -0
  585. package/dist/types/components/data-display/data-table/internals/table-model.d.ts +56 -0
  586. package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
  587. package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
  588. package/dist/types/components/data-display/map/internals/base-layer.d.ts +63 -0
  589. package/dist/types/components/data-display/map/internals/bounds.d.ts +23 -0
  590. package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +10 -0
  591. package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +15 -0
  592. package/dist/types/components/data-display/map/internals/google-maps.d.ts +9 -0
  593. package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +11 -0
  594. package/dist/types/components/data-display/map/internals/google-mutant.d.ts +18 -0
  595. package/dist/types/components/data-display/map/internals/maplibre.d.ts +14 -0
  596. package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +36 -0
  597. package/dist/types/components/data-display/map/internals/marker-controller.d.ts +57 -0
  598. package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +8 -0
  599. package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +10 -0
  600. package/dist/types/components/data-display/map/internals/markers.d.ts +4 -0
  601. package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +11 -0
  602. package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +4 -0
  603. package/dist/types/components/data-display/map/internals/vector-padding.d.ts +4 -0
  604. package/dist/types/components/data-display/map/map.d.ts +175 -0
  605. package/dist/types/components/data-display/map/map.types.d.ts +132 -0
  606. package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +1 -0
  607. package/dist/types/components/data-display/pagination/pagination.d.ts +33 -0
  608. package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +2 -0
  609. package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +2 -0
  610. package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +12 -0
  611. package/dist/types/components/data-display/syntax-box/internals/formatter.d.ts +15 -0
  612. package/dist/types/components/data-display/syntax-box/internals/formatter.unit.test.d.ts +1 -0
  613. package/dist/types/components/data-display/syntax-box/internals/syntax.d.ts +13 -0
  614. package/dist/types/components/data-display/syntax-box/internals/syntax.unit.test.d.ts +1 -0
  615. package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +15 -0
  616. package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
  617. package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +72 -0
  618. package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +2 -0
  619. package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +1 -0
  620. package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
  621. package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
  622. package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
  623. package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
  624. package/dist/types/components/indicators/progress/progress.d.ts +30 -0
  625. package/dist/types/components/indicators/progress/progress.types.d.ts +3 -0
  626. package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +19 -0
  627. package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -0
  628. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +26 -0
  629. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +5 -0
  630. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +1 -0
  631. package/dist/types/components/inputs/dropdown/dropdown.d.ts +125 -0
  632. package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +9 -0
  633. package/dist/types/components/inputs/dropdown/internals/options.d.ts +6 -0
  634. package/dist/types/components/inputs/dropdown/internals/position.d.ts +26 -0
  635. package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +1 -0
  636. package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
  637. package/dist/types/components/inputs/form/form.d.ts +80 -0
  638. package/dist/types/components/inputs/form/form.types.d.ts +40 -0
  639. package/dist/types/components/inputs/form/internals/controls.d.ts +8 -0
  640. package/dist/types/components/inputs/form/internals/enter-behavior.d.ts +2 -0
  641. package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
  642. package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
  643. package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
  644. package/dist/types/components/inputs/form/internals/values.d.ts +10 -0
  645. package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
  646. package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
  647. package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
  648. package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
  649. package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
  650. package/dist/types/components/inputs/form/test/form.cmp.test.d.ts +4 -0
  651. package/dist/types/components/inputs/input/input.d.ts +92 -0
  652. package/dist/types/components/inputs/input/input.types.d.ts +3 -0
  653. package/dist/types/components/inputs/input/input.utils.d.ts +1 -0
  654. package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +13 -0
  655. package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +37 -0
  656. package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -0
  657. package/dist/types/components/inputs/radio-group/radio-group.d.ts +70 -0
  658. package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +12 -0
  659. package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
  660. package/dist/types/components/inputs/textarea/textarea.d.ts +81 -0
  661. package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
  662. package/dist/types/components/inputs/toggle/test/toggle-layout.cmp.test.d.ts +1 -0
  663. package/dist/types/components/inputs/toggle/toggle.d.ts +67 -0
  664. package/dist/types/components/inputs/toggle/toggle.types.d.ts +3 -0
  665. package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
  666. package/dist/types/components/layout/divider/divider.d.ts +15 -0
  667. package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -0
  668. package/dist/types/components/layout/grid/grid.d.ts +13 -0
  669. package/dist/types/components/layout/inline/inline.d.ts +12 -0
  670. package/dist/types/components/layout/navbar/navbar.d.ts +94 -0
  671. package/dist/types/components/layout/navbar/navbar.types.d.ts +33 -0
  672. package/dist/types/components/layout/navbar/navbar.utils.d.ts +2 -0
  673. package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +1 -0
  674. package/dist/types/components/layout/panel/panel.d.ts +41 -0
  675. package/dist/types/components/layout/panel/panel.types.d.ts +3 -0
  676. package/dist/types/components/layout/scrollable/internals/metrics.d.ts +26 -0
  677. package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +4 -0
  678. package/dist/types/components/layout/scrollable/scrollable.d.ts +67 -0
  679. package/dist/types/components/layout/scrollable/scrollable.types.d.ts +6 -0
  680. package/dist/types/components/layout/section/section.d.ts +13 -0
  681. package/dist/types/components/layout/section/section.types.d.ts +1 -0
  682. package/dist/types/components/layout/sidepanel/internals/drawer.d.ts +2 -0
  683. package/dist/types/components/layout/sidepanel/internals/groups.d.ts +7 -0
  684. package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +2 -0
  685. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +110 -0
  686. package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +43 -0
  687. package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
  688. package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
  689. package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
  690. package/dist/types/components/layout/stack/stack.d.ts +10 -0
  691. package/dist/types/components/layout/tabs/tabs.d.ts +29 -0
  692. package/dist/types/components/layout/tabs/tabs.types.d.ts +14 -0
  693. package/dist/types/components/layout/tabs/tabs.utils.d.ts +4 -0
  694. package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +1 -0
  695. package/dist/types/components/layout/toolbar/toolbar.d.ts +27 -0
  696. package/dist/types/components/layout/toolbar/toolbar.types.d.ts +1 -0
  697. package/dist/types/components/media/avatar/avatar.d.ts +37 -0
  698. package/dist/types/components/media/avatar/avatar.types.d.ts +2 -0
  699. package/dist/types/components/media/icon/icon.d.ts +48 -0
  700. package/dist/types/components/media/icon/icon.types.d.ts +30 -0
  701. package/dist/types/components/media/icon/internals/constants.d.ts +3 -0
  702. package/dist/types/components/media/icon/internals/fetch-icon.d.ts +1 -0
  703. package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
  704. package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
  705. package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
  706. package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
  707. package/dist/types/components/media/icon/internals/registry.d.ts +11 -0
  708. package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +1 -0
  709. package/dist/types/components/media/icon/internals/render-definition.d.ts +2 -0
  710. package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +2 -0
  711. package/dist/types/components/media/icon/internals/size.d.ts +2 -0
  712. package/dist/types/components/media/icon/internals/url.d.ts +11 -0
  713. package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
  714. package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
  715. package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
  716. package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
  717. package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
  718. package/dist/types/components/media/media/media.d.ts +13 -0
  719. package/dist/types/components/media/media/media.types.d.ts +2 -0
  720. package/dist/types/components/media/reel/reel.d.ts +34 -0
  721. package/dist/types/components/media/reel/reel.types.d.ts +3 -0
  722. package/dist/types/components/media/thumbnail/thumbnail.d.ts +21 -0
  723. package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +7 -0
  724. package/dist/types/components/overlays/dialog/dialog.d.ts +83 -0
  725. package/dist/types/components/overlays/dialog/dialog.types.d.ts +1 -0
  726. package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +2 -0
  727. package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +21 -0
  728. package/dist/types/components/overlays/tooltip/internals/aria.d.ts +13 -0
  729. package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +7 -0
  730. package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +2 -0
  731. package/dist/types/components/overlays/tooltip/tooltip.d.ts +33 -0
  732. package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
  733. package/dist/types/components/shared/field.d.ts +3 -0
  734. package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
  735. package/dist/types/components.d.ts +6156 -0
  736. package/dist/types/declarations.d.ts +14 -0
  737. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/dimension-tokens.d.ts +3 -0
  738. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +14 -0
  739. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +12 -0
  740. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +8 -0
  741. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/dom.d.ts +15 -0
  742. package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/index.d.ts +2 -0
  743. package/dist/types/index.d.ts +31 -0
  744. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  745. package/dist/types/theme/test/assets.d.ts +4 -0
  746. package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
  747. package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
  748. package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
  749. package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
  750. package/dist/types/theme/tokens.d.ts +150 -0
  751. package/dist/types/utils/collection-identity.d.ts +55 -0
  752. package/dist/types/utils/collection-identity.unit.test.d.ts +1 -0
  753. package/dist/types/utils/dom.d.ts +68 -0
  754. package/dist/types/utils/form-control-validity.d.ts +14 -0
  755. package/dist/types/utils/form-field-adapter.d.ts +17 -0
  756. package/dist/types/utils/form-field-state.d.ts +4 -0
  757. package/dist/types/utils/form-reset-action.d.ts +5 -0
  758. package/dist/types/utils/form-submit-action.d.ts +17 -0
  759. package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
  760. package/dist/types/utils/image-crop.d.ts +30 -0
  761. package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
  762. package/dist/types/utils/math.d.ts +10 -0
  763. package/dist/types/utils/utils.d.ts +11 -0
  764. package/dist/types/utils/utils.unit.test.d.ts +1 -0
  765. package/dist/webquark/index.esm.js +1 -0
  766. package/dist/webquark/native-content.css +24 -0
  767. package/dist/webquark/p-0f04ceab.entry.js +1 -0
  768. package/dist/webquark/p-10dc5cce.entry.js +1 -0
  769. package/dist/webquark/p-191a7063.entry.js +1 -0
  770. package/dist/webquark/p-1e8797d1.entry.js +1 -0
  771. package/dist/webquark/p-220ec9cf.entry.js +1 -0
  772. package/dist/webquark/p-2291095e.entry.js +1 -0
  773. package/dist/webquark/p-32055acd.entry.js +1 -0
  774. package/dist/webquark/p-3af50215.entry.js +13 -0
  775. package/dist/webquark/p-41deb44c.entry.js +1 -0
  776. package/dist/webquark/p-44eda084.entry.js +1 -0
  777. package/dist/webquark/p-473a1810.entry.js +1 -0
  778. package/dist/webquark/p-4cf40080.entry.js +1 -0
  779. package/dist/webquark/p-4d611b93.entry.js +1 -0
  780. package/dist/webquark/p-596737cc.entry.js +1 -0
  781. package/dist/webquark/p-5cccb6bc.entry.js +1 -0
  782. package/dist/webquark/p-5d6fb0d1.entry.js +1 -0
  783. package/dist/webquark/p-687be7d4.entry.js +1 -0
  784. package/dist/webquark/p-6a5033da.entry.js +1 -0
  785. package/dist/webquark/p-6d2d016a.entry.js +1 -0
  786. package/dist/webquark/p-70e3a23a.entry.js +1 -0
  787. package/dist/webquark/p-7723e966.entry.js +1 -0
  788. package/dist/webquark/p-78c56cd3.entry.js +1 -0
  789. package/dist/webquark/p-8a0733a1.entry.js +1 -0
  790. package/dist/webquark/p-BDsIecIx.js +1 -0
  791. package/dist/webquark/p-BIIQL66b.js +1 -0
  792. package/dist/webquark/p-BJiYCN3i.js +1 -0
  793. package/dist/webquark/p-BOdNg0jc.js +1 -0
  794. package/dist/webquark/p-BcL0NVv0.js +1 -0
  795. package/dist/webquark/p-Bj2RJb2E.js +1 -0
  796. package/dist/webquark/p-Bk4FnOfb.js +1 -0
  797. package/dist/webquark/p-BuctNczf.js +1 -0
  798. package/dist/webquark/p-ByfrUWx1.js +1 -0
  799. package/dist/webquark/p-CGZPmEUB.js +1 -0
  800. package/dist/webquark/p-CGml_DQ8.js +1 -0
  801. package/dist/webquark/p-C_RztzNv.js +5 -0
  802. package/dist/webquark/p-CoIMrUb3.js +1 -0
  803. package/dist/webquark/p-CpI3m4_T.js +1 -0
  804. package/dist/webquark/p-DKrPmn2y.js +13 -0
  805. package/dist/webquark/p-DYMWBqU1.js +5 -0
  806. package/dist/webquark/p-DaJmsCb7.js +3 -0
  807. package/dist/webquark/p-DstNl_WY.js +1 -0
  808. package/dist/webquark/p-DuX-9GOi.js +1 -0
  809. package/dist/webquark/p-SzKf4WZF.js +1 -0
  810. package/dist/webquark/p-a199de7d.entry.js +1 -0
  811. package/dist/webquark/p-a30d212f.entry.js +13 -0
  812. package/dist/webquark/p-a87f0bde.entry.js +1 -0
  813. package/dist/webquark/p-b75ec829.entry.js +1 -0
  814. package/dist/webquark/p-b82aaf4c.entry.js +1 -0
  815. package/dist/webquark/p-b8f4994a.entry.js +1 -0
  816. package/dist/webquark/p-b9c8c081.entry.js +1 -0
  817. package/dist/webquark/p-bf568cda.entry.js +1 -0
  818. package/dist/webquark/p-c662904e.entry.js +1 -0
  819. package/dist/webquark/p-cab898c2.entry.js +1 -0
  820. package/dist/webquark/p-d2c4696f.entry.js +1 -0
  821. package/dist/webquark/p-ddeb2d4c.entry.js +1 -0
  822. package/dist/webquark/p-dee50f0a.entry.js +1 -0
  823. package/dist/webquark/p-e3c18c0e.entry.js +1 -0
  824. package/dist/webquark/p-e7384b6e.entry.js +1 -0
  825. package/dist/webquark/p-f63fd66f.entry.js +1 -0
  826. package/dist/webquark/p-f95aeb8d.entry.js +1 -0
  827. package/dist/webquark/p-fbd1cbbe.entry.js +1 -0
  828. package/dist/webquark/webquark.css +1 -0
  829. package/dist/webquark/webquark.esm.js +1 -0
  830. package/package.json +78 -4
@@ -0,0 +1,151 @@
1
+ import { isFieldDisabled } from "./form-field-state";
2
+ import { resolveResetOwner } from "./form-reset-action";
3
+ const activationKey = Symbol.for('webquark.form.submit-activation.v1');
4
+ const ownerKey = Symbol.for('webquark.form.submit-owner.v1');
5
+ const busyKey = Symbol.for('webquark.form.submit-busy.v1');
6
+ const queued = new WeakSet();
7
+ export function setFormSubmitting(form, submitting) {
8
+ if (submitting)
9
+ form[busyKey] = true;
10
+ else
11
+ delete form[busyKey];
12
+ }
13
+ export function registerSubmitOwner(control, owner) {
14
+ control[ownerKey] = owner;
15
+ }
16
+ export function submitOwner(control) {
17
+ const native = control.tagName === 'Q-BUTTON' ? control[ownerKey]?.() : control.form;
18
+ return resolveResetOwner(control, native);
19
+ }
20
+ export function isSubmitAction(control, includeDisabled = false) {
21
+ const action = control;
22
+ const tag = control.tagName;
23
+ if (!['BUTTON', 'INPUT', 'Q-BUTTON'].includes(tag) || !['submit', 'image'].includes(action.type ?? '') || action.href)
24
+ return false;
25
+ return includeDisabled || (!action.loading && !isFieldDisabled(control, Boolean(action.disabled)));
26
+ }
27
+ export function readSubmitActivation(event) {
28
+ const supplied = event[activationKey];
29
+ if (supplied)
30
+ return supplied;
31
+ const native = event.submitter;
32
+ const activation = native && native[activationKey];
33
+ if (activation && 'click' in activation) {
34
+ // requestSubmit() from a click listener is not that click's default action.
35
+ // Native activation runs after dispatch, with eventPhase reset to NONE.
36
+ if (activation.click.eventPhase === 0 && !activation.click.defaultPrevented) {
37
+ delete native[activationKey];
38
+ return activation;
39
+ }
40
+ }
41
+ else if (activation)
42
+ return activation;
43
+ return { submitter: native ?? null };
44
+ }
45
+ export function dispatchFormSubmit(form, activation = { submitter: null }) {
46
+ const EventConstructor = form.ownerDocument.defaultView.Event;
47
+ const event = new EventConstructor('submit', { bubbles: true, cancelable: true });
48
+ event[activationKey] = activation;
49
+ form.dispatchEvent(event);
50
+ }
51
+ /** Defer until both qClick and native click listeners have had a chance to cancel. */
52
+ export function scheduleSubmitAction(control, originalEvent, emittedEvent) {
53
+ const currentOwner = submitOwner(control);
54
+ const currentForm = currentOwner?.tagName === 'Q-FORM' ? currentOwner.shadowRoot?.querySelector('form') : currentOwner;
55
+ if (currentForm && currentForm[busyKey])
56
+ return;
57
+ const coordinates = originalEvent.detail > 0 ? [Math.max(0, Math.floor(originalEvent.offsetX)), Math.max(0, Math.floor(originalEvent.offsetY))] : [0, 0];
58
+ const activation = { submitter: control, coordinates };
59
+ // Trusted event callbacks can run microtasks before later click listeners or
60
+ // the native default action. Keep coordinates through dispatch/default action,
61
+ // and run logical bridges in the next task so every listener can cancel.
62
+ const nativeImage = control.tagName === 'INPUT' && control.type === 'image' && control.form;
63
+ const imageActivation = { ...activation, click: originalEvent };
64
+ if (nativeImage)
65
+ control[activationKey] = imageActivation;
66
+ else {
67
+ if (queued.has(control))
68
+ return;
69
+ queued.add(control);
70
+ }
71
+ setTimeout(() => {
72
+ if (!nativeImage)
73
+ queued.delete(control);
74
+ if (nativeImage && control[activationKey] === imageActivation)
75
+ delete control[activationKey];
76
+ if (originalEvent.defaultPrevented || emittedEvent?.defaultPrevented || !control.isConnected || !isSubmitAction(control))
77
+ return;
78
+ const owner = submitOwner(control);
79
+ if (!owner)
80
+ return;
81
+ // A native associated button already ran its own activation/submit algorithm.
82
+ if (control.tagName !== 'Q-BUTTON' && control.form)
83
+ return;
84
+ originalEvent.preventDefault();
85
+ if (owner.tagName === 'Q-FORM') {
86
+ const form = owner.shadowRoot?.querySelector('form');
87
+ if (form)
88
+ dispatchFormSubmit(form, activation);
89
+ return;
90
+ }
91
+ const form = owner;
92
+ const proxy = form.ownerDocument.createElement('button');
93
+ proxy.type = 'submit';
94
+ proxy.hidden = true;
95
+ copySubmitAttributes(control, proxy);
96
+ proxy[activationKey] = activation;
97
+ form.append(proxy);
98
+ try {
99
+ form.ownerDocument.defaultView.HTMLFormElement.prototype.requestSubmit.call(form, proxy);
100
+ }
101
+ finally {
102
+ proxy.remove();
103
+ }
104
+ });
105
+ }
106
+ export function submitAttribute(control, property, attribute) {
107
+ if (control.tagName === 'Q-BUTTON') {
108
+ const value = control[property];
109
+ if (value !== undefined && value !== null)
110
+ return String(value);
111
+ }
112
+ return control.hasAttribute(attribute) ? control.getAttribute(attribute) : undefined;
113
+ }
114
+ export function submitterNoValidate(control) {
115
+ // Stencil reflects asynchronously; a live false must beat a stale attribute.
116
+ if (control?.tagName === 'Q-BUTTON')
117
+ return Boolean(control.formNoValidate);
118
+ return Boolean(control && (control.formNoValidate || control.hasAttribute('formnovalidate')));
119
+ }
120
+ function copySubmitAttributes(control, proxy) {
121
+ for (const [property, attribute] of [['name', 'name'], ['value', 'value'], ['formAction', 'formaction'], ['formMethod', 'formmethod'], ['formEnctype', 'formenctype'], ['formTarget', 'formtarget']]) {
122
+ const value = submitAttribute(control, property, attribute);
123
+ if (value !== undefined)
124
+ proxy.setAttribute(attribute, value);
125
+ }
126
+ proxy.formNoValidate = submitterNoValidate(control);
127
+ }
128
+ /** First owned submit button, including a disabled default that blocks Enter. */
129
+ export function defaultSubmitAction(form, host) {
130
+ if (!form)
131
+ return;
132
+ const candidates = new Set();
133
+ host.querySelectorAll('button,input,q-button').forEach(control => candidates.add(control));
134
+ const root = form.getRootNode();
135
+ root.querySelectorAll('button,input,q-button').forEach(control => {
136
+ if (submitOwner(control) === form)
137
+ candidates.add(control);
138
+ });
139
+ return Array.from(candidates).filter(control => isSubmitAction(control, true) && [form, host].includes(submitOwner(control))).sort((a, b) => {
140
+ const position = a.compareDocumentPosition(b);
141
+ return position & Node.DOCUMENT_POSITION_DISCONNECTED ? 0 : position & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
142
+ })[0];
143
+ }
144
+ export function activateSubmitAction(control) {
145
+ if (!isSubmitAction(control))
146
+ return;
147
+ if (control.tagName === 'Q-BUTTON')
148
+ control.shadowRoot?.querySelector('button')?.click();
149
+ else
150
+ control.click();
151
+ }
@@ -0,0 +1,15 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { submitterNoValidate } from "./form-submit-action";
3
+ describe('submitter validation overrides', () => {
4
+ it('reads q-button live state while its reflected attribute is stale', () => {
5
+ const button = { tagName: 'Q-BUTTON', formNoValidate: false, hasAttribute: () => true };
6
+ expect(submitterNoValidate(button)).toBe(false);
7
+ button.formNoValidate = true;
8
+ expect(submitterNoValidate(button)).toBe(true);
9
+ });
10
+ it('retains native Boolean attribute semantics and null submitters', () => {
11
+ const button = { tagName: 'BUTTON', formNoValidate: true, hasAttribute: () => true };
12
+ expect(submitterNoValidate(button)).toBe(true);
13
+ expect(submitterNoValidate(null)).toBe(false);
14
+ });
15
+ });
@@ -0,0 +1,47 @@
1
+ const fullImage = { x: 0, y: 0, width: 100, height: 100 };
2
+ /** Validate without changing or clamping an author's rectangle. */
3
+ export function isImageCropValid(crop) {
4
+ if (!crop || typeof crop !== 'object')
5
+ return false;
6
+ const { x, y, width, height } = crop;
7
+ return [x, y, width, height].every(value => typeof value === 'number' && Number.isFinite(value))
8
+ && x >= 0 && y >= 0 && width > 0 && height > 0
9
+ && x + width <= 100 && y + height <= 100;
10
+ }
11
+ export function hasPartialImageCrop(crop) {
12
+ return isImageCropValid(crop)
13
+ && (crop.x !== 0 || crop.y !== 0 || crop.width !== 100 || crop.height !== 100);
14
+ }
15
+ /**
16
+ * Contain a selected region without stretching or exposing pixels outside it.
17
+ * Omit frameAspectRatio to use the region's natural ratio. Invalid input returns
18
+ * undefined; callers can show their unavailable state instead of guessing.
19
+ */
20
+ export function calculateImageCropGeometry(naturalWidth, naturalHeight, crop, frameAspectRatio) {
21
+ if (!Number.isFinite(naturalWidth) || naturalWidth <= 0
22
+ || !Number.isFinite(naturalHeight) || naturalHeight <= 0
23
+ || (crop !== undefined && !isImageCropValid(crop))
24
+ || (frameAspectRatio !== undefined && (!Number.isFinite(frameAspectRatio) || frameAspectRatio <= 0)))
25
+ return undefined;
26
+ const region = crop ?? fullImage;
27
+ const regionWidth = naturalWidth * region.width / 100;
28
+ const regionHeight = naturalHeight * region.height / 100;
29
+ const aspectRatio = frameAspectRatio ?? regionWidth / regionHeight;
30
+ // Normalize the frame height to 1; percentages keep the result responsive.
31
+ const scale = Math.min(aspectRatio / regionWidth, 1 / regionHeight);
32
+ const width = scale * regionWidth / aspectRatio * 100;
33
+ const height = scale * regionHeight * 100;
34
+ const geometry = {
35
+ aspectRatio,
36
+ viewport: { left: (100 - width) / 2, top: (100 - height) / 2, width, height },
37
+ image: {
38
+ left: -region.x / region.width * 100,
39
+ top: -region.y / region.height * 100,
40
+ width: 100 / region.width * 100,
41
+ height: 100 / region.height * 100,
42
+ },
43
+ };
44
+ return Object.values(geometry.viewport).every(Number.isFinite)
45
+ && Object.values(geometry.image).every(Number.isFinite)
46
+ && Number.isFinite(aspectRatio) && aspectRatio > 0 ? geometry : undefined;
47
+ }
@@ -0,0 +1,57 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { calculateImageCropGeometry, hasPartialImageCrop, isImageCropValid } from "./image-crop";
3
+ describe('image crop geometry', () => {
4
+ it('rejects malformed, non-finite, empty and out-of-source regions without clamping', () => {
5
+ for (const crop of [null, {}, { x: 0, y: 0, width: 0, height: 0 },
6
+ { x: -1, y: 0, width: 50, height: 50 }, { x: 60, y: 0, width: 41, height: 100 },
7
+ { x: 0, y: 51, width: 100, height: 50 }, { x: NaN, y: 0, width: 50, height: 50 },
8
+ { x: 0, y: 0, width: Infinity, height: 50 }, { x: '0', y: 0, width: 50, height: 50 }]) {
9
+ expect(isImageCropValid(crop)).toBe(false);
10
+ expect(calculateImageCropGeometry(800, 600, crop)).toBeUndefined();
11
+ }
12
+ expect(calculateImageCropGeometry(0, 600)).toBeUndefined();
13
+ expect(calculateImageCropGeometry(800, NaN)).toBeUndefined();
14
+ expect(calculateImageCropGeometry(800, 600, undefined, 0)).toBeUndefined();
15
+ });
16
+ it('treats omitted and explicit full-image crops identically and preserves contain letterboxing', () => {
17
+ const full = { x: 0, y: 0, width: 100, height: 100 };
18
+ expect(hasPartialImageCrop()).toBe(false);
19
+ expect(hasPartialImageCrop(full)).toBe(false);
20
+ const geometry = calculateImageCropGeometry(800, 600, undefined, 2);
21
+ expect(calculateImageCropGeometry(800, 600, full, 2)).toEqual(geometry);
22
+ expect(geometry.viewport.width).toBeCloseTo(100 * 2 / 3);
23
+ expect(geometry.viewport.height).toBe(100);
24
+ expect(geometry.image.width).toBe(100);
25
+ expect(geometry.image.height).toBe(100);
26
+ });
27
+ it('uniformly scales decimal crops and clips the selected region in a different frame ratio', () => {
28
+ const crop = { x: 20.5, y: 15, width: 65, height: 70 };
29
+ const original = { ...crop };
30
+ const geometry = calculateImageCropGeometry(1200, 800, crop, 2);
31
+ expect(hasPartialImageCrop(crop)).toBe(true);
32
+ expect(geometry.viewport.width).toBeCloseTo(780 / 560 / 2 * 100);
33
+ expect(geometry.viewport.height).toBeCloseTo(100);
34
+ expect(geometry.image.left).toBeCloseTo(-20.5 / 65 * 100);
35
+ expect(geometry.image.top).toBeCloseTo(-15 / 70 * 100);
36
+ // Pixel sizes reconstructed from percentages have the original image ratio.
37
+ const imageWidth = 2 * geometry.viewport.width / 100 * geometry.image.width / 100;
38
+ const imageHeight = geometry.viewport.height / 100 * geometry.image.height / 100;
39
+ expect(imageWidth / imageHeight).toBeCloseTo(1.5);
40
+ expect(crop).toEqual(original);
41
+ });
42
+ it('uses the complete file origin for edge, corner and middle selections', () => {
43
+ for (const crop of [
44
+ { x: 60, y: 0, width: 40, height: 100 },
45
+ { x: 0, y: 55, width: 45, height: 45 },
46
+ { x: 55, y: 55, width: 45, height: 45 },
47
+ { x: 25, y: 25, width: 50, height: 50 },
48
+ ]) {
49
+ const geometry = calculateImageCropGeometry(1200, 800, crop);
50
+ expect(geometry.aspectRatio).toBeCloseTo(1200 * crop.width / (800 * crop.height));
51
+ expect(geometry.viewport.width).toBeCloseTo(100);
52
+ expect(geometry.viewport.height).toBeCloseTo(100);
53
+ expect(geometry.image.left).toBeCloseTo(-crop.x / crop.width * 100);
54
+ expect(geometry.image.top).toBeCloseTo(-crop.y / crop.height * 100);
55
+ }
56
+ });
57
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @fileoverview Mathematical utility functions for WebQuark.
3
+ */
4
+ /**
5
+ * Clamps a number value between an optional minimum and maximum range boundary.
6
+ * @param value The value to clamp.
7
+ * @param min The optional lower bound limit.
8
+ * @param max The optional upper bound limit.
9
+ */
10
+ export function clamp(value, min, max) {
11
+ let clamped = value;
12
+ if (min !== undefined && min !== null) {
13
+ clamped = Math.max(min, clamped);
14
+ }
15
+ if (max !== undefined && max !== null) {
16
+ clamped = Math.min(max, clamped);
17
+ }
18
+ return clamped;
19
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @fileoverview General purpose utility functions for WebQuark.
3
+ */
4
+ export function format(first, middle, last) {
5
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
+ }
7
+ /**
8
+ * Safely parses a JSON string or returns the value if it's already an array or object.
9
+ * @param value The value to parse (string, array, or object).
10
+ * @param fallback The fallback value to return on failure.
11
+ * @param componentName Optional name of the component for better error logging prefix.
12
+ */
13
+ export function safeParseJson(value, fallback, componentName) {
14
+ if (value === undefined || value === null) {
15
+ return fallback;
16
+ }
17
+ if (typeof value === 'string') {
18
+ try {
19
+ return JSON.parse(value);
20
+ }
21
+ catch (e) {
22
+ const prefix = componentName ? `${componentName}: ` : '';
23
+ console.error(`${prefix}Failed to parse JSON string`, e);
24
+ return fallback;
25
+ }
26
+ }
27
+ return value;
28
+ }
@@ -0,0 +1,16 @@
1
+ import { describe, it, expect } from "vitest";
2
+ import { format } from "./utils";
3
+ describe('format', () => {
4
+ it('returns empty string for no names defined', () => {
5
+ expect(format(undefined, undefined, undefined)).toEqual('');
6
+ });
7
+ it('formats just first names', () => {
8
+ expect(format('Joseph', undefined, undefined)).toEqual('Joseph');
9
+ });
10
+ it('formats first and last names', () => {
11
+ expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');
12
+ });
13
+ it('formats first, middle and last names', () => {
14
+ expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');
15
+ });
16
+ });
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
34
+
35
+ export * from '../types';
@@ -0,0 +1 @@
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CLErjC1f.js";export{f as format}from"./p-BJiYCN3i.js";export{c as calculateImageCropGeometry,h as hasPartialImageCrop,i as isImageCropValid}from"./p-BcL0NVv0.js";export{i as identifyItems,r as reconcileByIdentity}from"./p-CGZPmEUB.js";export{Q as Q_MAP_DEFAULT_CLUSTER_GROUP,a as Q_MAP_MARKER_CALLOUT_PLACEMENTS,b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS,c as Q_MAP_MARKER_CALLOUT_VISIBILITIES,d as Q_MAP_MARKER_KINDS,e as Q_MAP_MARKER_RINGS,f as Q_MAP_MARKER_SIZES,g as Q_MAP_MARKER_VARIANTS,h as Q_MAP_RASTER_TILE_LOADING_POLICIES}from"./p-CoIMrUb3.js";export{g as getDataTableCellSlotName,a as getDataTableCellValue,b as getDataTableItemKey,c as getDataTableRowGutterSlotName}from"./p-SzKf4WZF.js";export{c as configureQIcons,r as registerQIcons}from"./p-CpI3m4_T.js";export{t as toast}from"./p-BIIQL66b.js";
@@ -0,0 +1 @@
1
+ import{t,p as i,H as s,h as e,d as o}from"./p-CLErjC1f.js";let r=0;const a=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}content;position="top";delay=200;visible=!1;showTimer;parentEl=null;describedByAdded=!1;tooltipId="";connectedCallback(){this.parentEl=this.el.parentElement,this.parentEl&&(this.syncAriaDescribedBy(),this.parentEl.addEventListener("mouseenter",this.show),this.parentEl.addEventListener("mouseleave",this.hide),this.parentEl.addEventListener("focusin",this.show),this.parentEl.addEventListener("focusout",this.hide))}disconnectedCallback(){this.parentEl&&(this.parentEl.removeEventListener("mouseenter",this.show),this.parentEl.removeEventListener("mouseleave",this.hide),this.parentEl.removeEventListener("focusin",this.show),this.parentEl.removeEventListener("focusout",this.hide),this.removeAriaDescribedBy()),this.removeScrollListeners(),clearTimeout(this.showTimer)}updatePosition=()=>{if(!this.parentEl)return;const t=parseFloat(getComputedStyle(this.el).getPropertyValue("--q-tooltip-viewport-padding")),{left:i,top:s}=function(t,i,s,e){const o=i.getBoundingClientRect(),r=function(t){let i=t;for(;i;){let t=i.parentElement;if(!t&&i.parentNode){const s=i.parentNode;t=s.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&s.host?s.host:s}if(!t||t.nodeType!==Node.ELEMENT_NODE){i=t;continue}const s=t,e=window.getComputedStyle(s),o=e.backdropFilter||e.webkitBackdropFilter;if(e.transform&&"none"!==e.transform||e.perspective&&"none"!==e.perspective||e.filter&&"none"!==e.filter||o&&"none"!==o||e.willChange&&(e.willChange.includes("transform")||e.willChange.includes("perspective")||e.willChange.includes("filter")||e.willChange.includes("backdrop-filter"))||e.contain&&(e.contain.includes("paint")||e.contain.includes("contain")||e.contain.includes("layout")||e.contain.includes("content")||e.contain.includes("strict")))return s;i=t}return null}(t),a=r?.getBoundingClientRect(),n=a?.left||0,l=a?.top||0;let h;switch(s){case"bottom":h={left:o.left+o.width/2-n,top:o.bottom-l};break;case"left":h={left:o.left-n,top:o.top+o.height/2-l};break;case"right":h={left:o.right-n,top:o.top+o.height/2-l};break;default:h={left:o.left+o.width/2-n,top:o.top-l}}if(!Number.isFinite(e)||e<0)return h;const d=t.offsetWidth,p=t.offsetHeight,c="left"===s?-d-8:"right"===s?8:-d/2,f="top"===s?-p-8:"bottom"===s?8:-p/2,b=e;return{left:Math.max(b,Math.min(h.left+n+c,window.innerWidth-b-d))-n-c,top:Math.max(b,Math.min(h.top+l+f,window.innerHeight-b-p))-l-f}}(this.el,this.parentEl,this.position,t);this.el.style.left=`${i}px`,this.el.style.top=`${s}px`};show=()=>{clearTimeout(this.showTimer),this.showTimer=setTimeout((()=>{this.visible=!0,this.updatePosition(),this.addScrollListeners()}),this.delay)};hide=()=>{clearTimeout(this.showTimer),this.visible&&(this.visible=!1,this.removeScrollListeners())};handleScroll=()=>{this.hide()};syncAriaDescribedBy(){if(!this.parentEl)return;const t=function(t){const i=t.host.id||t.fallbackId;t.host.id||(t.host.id=i);const s=t.trigger.getAttribute("aria-describedby"),e=s?s.split(/\s+/).filter(Boolean):[];return e.includes(i)?{tooltipId:i,added:!1}:(t.trigger.setAttribute("aria-describedby",[...e,i].join(" ")),{tooltipId:i,added:!0})}({host:this.el,trigger:this.parentEl,fallbackId:"q-tooltip-"+ ++r});this.tooltipId=t.tooltipId,this.describedByAdded=t.added}removeAriaDescribedBy(){!function(t){if(!t.trigger||!t.added||!t.tooltipId)return;const i=t.trigger.getAttribute("aria-describedby");if(!i)return;const s=i.split(/\s+/).filter((i=>i&&i!==t.tooltipId));s.length?t.trigger.setAttribute("aria-describedby",s.join(" ")):t.trigger.removeAttribute("aria-describedby")}({trigger:this.parentEl,tooltipId:this.tooltipId,added:this.describedByAdded}),this.describedByAdded=!1}addScrollListeners(){!function(t,i){window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i);let s=t;for(;s;)s.addEventListener("scroll",i,{passive:!0}),s=s.parentElement}(this.parentEl,this.handleScroll)}removeScrollListeners(){!function(t,i){window.removeEventListener("scroll",i),window.removeEventListener("resize",i);let s=t;for(;s;)s.removeEventListener("scroll",i),s=s.parentElement}(this.parentEl,this.handleScroll)}render(){return e(o,{key:"97b84e156a7d8988d5cc611d1ba926718dff0b02",class:{"is-visible":this.visible},"aria-hidden":this.visible?"false":"true",role:"tooltip"},e("div",{key:"8062b57549a912f455d5abd8ec32bc6ec3eade07",class:"tooltip-bubble"},this.content||e("slot",{key:"11fdb73242e70e1900de147990ca0eb8f403f9d0"})))}static get style(){return':host{position:fixed;pointer-events:none;z-index:1000;opacity:0;display:block;width:var(--q-tooltip-width, auto);max-width:var(--q-tooltip-max-width, none);transition:opacity 0.15s ease-out, transform 0.15s ease-out}:host(.is-visible){opacity:1}:host([position="top"]){transform:translate(-50%, -100%) translate(0, 4px)}:host([position="top"].is-visible){transform:translate(-50%, -100%) translate(0, -8px)}:host([position="bottom"]){transform:translate(-50%, 0) translate(0, -4px)}:host([position="bottom"].is-visible){transform:translate(-50%, 0) translate(0, 8px)}:host([position="left"]){transform:translate(-100%, -50%) translate(4px, 0)}:host([position="left"].is-visible){transform:translate(-100%, -50%) translate(-8px, 0)}:host([position="right"]){transform:translate(0, -50%) translate(-4px, 0)}:host([position="right"].is-visible){transform:translate(0, -50%) translate(8px, 0)}.tooltip-bubble{background:var(--q-bg-surface-3, #1e293b);color:var(--q-fg-base);border:1px solid var(--q-border-color, rgba(255, 255, 255, 0.08));padding:var(--q-tooltip-padding, 6px 10px);border-radius:var(--q-radius-sm, 4px);font-family:var(--q-font-family, system-ui, -apple-system, sans-serif);font-size:var(--q-font-size-sm);font-weight:500;max-width:var(--q-tooltip-max-width, none);white-space:var(--q-tooltip-white-space, nowrap);overflow-wrap:var(--q-tooltip-overflow-wrap, normal);box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);line-height:1.2}'}},[769,"q-tooltip",{content:[1],position:[513],delay:[2],visible:[32]}]);function n(){"undefined"!=typeof customElements&&["q-tooltip"].forEach((i=>{"q-tooltip"===i&&(customElements.get(t(i))||customElements.define(t(i),a))}))}n();export{a as Q,n as d}
@@ -0,0 +1 @@
1
+ import{h as t,t as e,p as i,H as n}from"./p-CLErjC1f.js";import{M as r,S as s,a as o,b as a,v as c,d as l,e as h,X as d,f,g as u,p as w,i as p}from"./p-CpI3m4_T.js";function m(e){const[i,n,r]=e;return t(i,n,r?.map(m))}const g=[".png",".jpg",".jpeg",".webp",".gif",".ico"],b="http://localhost",y=["http:","https:","file:","blob:"];function v(t,e){return t?.trim()||e}function x(t,e=b){const i=new URL(t,e);if(!(y.includes(i.protocol)||"data:"===i.protocol&&/^data:image\/svg\+xml(?:[;,])/i.test(t)))throw new TypeError("Icon URLs must use HTTP(S), file/blob assets, a relative path, or SVG image data.");return i}const V=i(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}name;library;lib="lucide";localPath="/assets/icons/";libraryVersion;libVersion;fetchTimeout=8e3;definition;size="md";color="currentColor";label;svgContent="";isBinary=!1;resolvedUrl="";hasError=!1;resolvedDefinition;fetchId=0;watchHandler(){this.loadIcon()}componentWillLoad(){this.loadIcon()}componentWillRender(){this.syncHostState()}componentDidRender(){this.syncHostState()}componentDidLoad(){this.syncHostState()}componentDidUpdate(){this.syncHostState()}get accessibleLabel(){const t=this.label?.trim();return t||void 0}handleImageError=()=>{this.hasError=!0,this.syncHostState()};syncHostState(){if(!this.el)return;const t=function(t){const e=t?String(t).trim():"md";return"sm"===e?"16px":"md"===e?"24px":"lg"===e?"32px":/^\d+$/.test(e)?`${e}px`:e}(this.size),e=this.accessibleLabel;this.el.style.width=t,this.el.style.height=t,this.el.style.color=this.color,this.el.classList.toggle("q-icon-error",this.hasError),this.el.classList.toggle("q-icon-binary",!this.hasError&&this.isBinary),this.el.classList.toggle("q-icon-svg",!this.hasError&&!this.isBinary),e?(this.el.setAttribute("role","img"),this.el.setAttribute("aria-label",e),this.el.setAttribute("aria-hidden","false")):(this.el.removeAttribute("role"),this.el.removeAttribute("aria-label"),this.el.setAttribute("aria-hidden","true"))}async loadIcon(){const t=++this.fetchId;this.hasError=!1,this.resolvedDefinition=void 0,this.syncHostState();const e=this.definition??u(this.name);if(e){try{this.resolvedDefinition=this.definition?w(e,"q-icon definition"):e,this.svgContent="",this.resolvedUrl="",this.isBinary=!1}catch(t){console.error(t),this.hasError=!0}return void this.syncHostState()}if(!this.name)return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,void this.syncHostState();if(p())return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,this.hasError=!0,void this.syncHostState();const i=function(t){const e=t.name.trim();if("lucide"===t.library)return`https://cdn.jsdelivr.net/npm/lucide-static@${v(t.libraryVersion,"0.416.0")}/icons/${encodeURIComponent(e)}.svg`;if("font-awesome"===t.library||"fontawesome"===t.library)return`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${v(t.libraryVersion,"6.7.2")}/svgs/solid/${encodeURIComponent(e)}.svg`;if("local"===t.library){const i=t.localPath||"/assets/icons/",n=e.search(/[?#]/),r=n<0?e:e.slice(0,n),s=n<0?"":e.slice(n),o=r.slice(r.lastIndexOf("/")+1);return`${i.endsWith("/")?i:`${i}/`}${r}${o.includes(".")?"":".svg"}${s}`}return t.library.includes("{name}")?t.library.replace("{name}",e):`${t.library.endsWith("/")?t.library:`${t.library}/`}${e}`}({name:this.name,library:this.library??this.lib,localPath:this.localPath,libraryVersion:this.libraryVersion??this.libVersion});if(function(t){try{const e=x(t);return y.includes(e.protocol)&&g.some((t=>e.pathname.toLowerCase().endsWith(t)))}catch(t){return!1}}(i))this.fetchId===t&&(this.isBinary=!0,this.resolvedUrl=i,this.svgContent="",this.syncHostState());else{this.fetchId===t&&(this.isBinary=!1,this.resolvedUrl="",this.syncHostState());try{const e=function(t,e=("undefined"!=typeof window?window.location:void 0)){const i=x(t,e?.origin&&"null"!==e.origin?e.origin:b);return e?i.href:t}(i),n=await async function(t,e){const i=Number.isFinite(e)&&e>0?e:8e3,n="undefined"!=typeof AbortController?new AbortController:void 0,s=n?setTimeout((()=>n.abort()),i):void 0;let o;try{const e=await fetch(t,n?{signal:n.signal}:void 0);if(!e.ok)throw new Error(`Failed to load icon SVG from ${t} (status: ${e.status})`);const i=e.headers?.get("content-length");if(i&&Number(i)>r)throw n?.abort(),await(e.body?.cancel().catch((()=>{}))),new Error(`Icon SVG exceeds ${r} bytes.`);if(!e.body?.getReader)throw new Error("Icon SVG requires a bounded streaming response.");o=e.body.getReader();const s=new TextDecoder("utf-8",{fatal:!0}),a=[];let c=0;for(;;){const t=await o.read();if(t.done)break;if(c+=t.value.byteLength,c>r)throw new Error(`Icon SVG exceeds ${r} bytes.`);a.push(s.decode(t.value,{stream:!0}))}return a.push(s.decode()),a.join("")}catch(t){throw n?.abort(),o&&await o.cancel().catch((()=>{})),t}finally{o?.releaseLock(),void 0!==s&&clearTimeout(s)}}(e,this.fetchTimeout),u=function(t){if("undefined"==typeof DOMParser||"undefined"==typeof XMLSerializer||"string"!=typeof t||t.length>r||(new TextEncoder).encode(t).byteLength>r||/<!\s*(?:DOCTYPE|ENTITY)/i.test(t))return"";try{const e=(new DOMParser).parseFromString(t,"image/svg+xml"),i=e.documentElement;if(e.doctype||!i||"svg"!==i.tagName||e.getElementsByTagName("parsererror").length||![null,s].includes(i.namespaceURI))return"";for(const t of Array.from(e.childNodes))if(t!==i&&8!==t.nodeType&&(3!==t.nodeType||t.textContent?.trim()))return"";const n=i.namespaceURI,r=t=>{if(t.attributes.length>h)throw new TypeError("SVG attribute limit exceeded.");const e={};for(const i of Array.from(t.attributes)){if("xlink:href"===i.name){if(i.namespaceURI!==d)throw new TypeError("Unsupported SVG attribute namespace.")}else if(i.namespaceURI&&"http://www.w3.org/2000/xmlns/"!==i.namespaceURI)throw new TypeError("Unsupported SVG attribute namespace.");e[i.name]=i.value}return e},u=f(),w=(t,e)=>{const i=[];for(const s of Array.from(t.childNodes)){if(8===s.nodeType||3===s.nodeType&&!s.textContent?.trim())continue;if(1!==s.nodeType)throw new TypeError("Unsupported SVG content.");const t=s;if(t.namespaceURI!==n)throw new TypeError("Unsupported SVG element namespace.");l(t.tagName,e,u,"Fetched SVG"),i.push([t.tagName,r(t),w(t,e+1)])}return i},p=w(i,1),m=f(),g=o(r(i),"svg",m,"Fetched SVG root"),b=a(p,m,"Fetched SVG nodes");c(b,g);const y=e.implementation.createDocument(s,"svg",null),v=(t,e)=>{for(const[i,n]of Object.entries(e))"xmlns"!==i&&"xmlns:xlink"!==i&&("xlink:href"===i?t.setAttributeNS(d,i,n):t.setAttribute(i,n))},x=(t,e)=>{for(const[i,n,r]of e){const e=y.createElementNS(s,i);v(e,n),r&&x(e,r),t.appendChild(e)}};return v(y.documentElement,g),y.documentElement.setAttribute("aria-hidden","true"),y.documentElement.setAttribute("focusable","false"),x(y.documentElement,b),(new XMLSerializer).serializeToString(y.documentElement)}catch(t){return""}}(n);if(!u)throw new Error(`Failed to sanitize icon SVG from ${e}`);this.fetchId===t&&(this.svgContent=u,this.syncHostState())}catch(e){console.error(e),this.fetchId===t&&(this.hasError=!0,this.svgContent="",this.syncHostState())}}}render(){return this.hasError?t("div",{class:"icon-fallback",part:"fallback"},t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",focusable:"false"},t("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),t("line",{x1:"9",y1:"9",x2:"15",y2:"15"}),t("line",{x1:"15",y1:"9",x2:"9",y2:"15"}))):this.resolvedDefinition?t("div",{class:"svg-container",part:"svg"},function(e){const i={xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width??e.size??24} ${e.height??e.size??24}`,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...e.attributes,width:"100%",height:"100%","aria-hidden":"true",focusable:"false"};return t("svg",i,e.node.map(m))}(this.resolvedDefinition)):this.isBinary?t("img",{src:this.resolvedUrl,alt:"","aria-hidden":"true",part:"image",style:{width:"100%",height:"100%",objectFit:"contain"},onError:this.handleImageError}):t("div",{class:"svg-container",part:"svg",innerHTML:this.svgContent})}static get watchers(){return{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],library:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}],libraryVersion:[{watchHandler:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;line-height:1}.svg-container{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}.svg-container svg{width:100% !important;height:100% !important;stroke-width:var(--q-icon-stroke-width, 2.1) !important;display:block}.icon-fallback{display:inline-flex;align-items:center;justify-content:center;color:var(--q-color-danger, #f87171);opacity:0.8;width:100%;height:100%}.icon-fallback svg{width:100%;height:100%;stroke-width:var(--q-icon-stroke-width, 2.1);display:block}"}},[513,"q-icon",{name:[1],library:[1],lib:[1],localPath:[1,"local-path"],libraryVersion:[1,"library-version"],libVersion:[1,"lib-version"],fetchTimeout:[2,"fetch-timeout"],definition:[16],size:[8],color:[1],label:[1],svgContent:[32],isBinary:[32],resolvedUrl:[32],hasError:[32],resolvedDefinition:[32]},void 0,{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],library:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}],libraryVersion:[{watchHandler:0}]}]);function E(){"undefined"!=typeof customElements&&["q-icon"].forEach((t=>{"q-icon"===t&&(customElements.get(e(t))||customElements.define(e(t),V))}))}E();export{V as Q,E as d}
@@ -0,0 +1 @@
1
+ const a={none:0,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48},e={sm:{height:28,font:12,line:16,padding:8,icon:14,radius:5.5},md:{height:36,font:14,line:20,padding:12,icon:16,radius:7},lg:{height:44,font:16,line:24,padding:16,icon:20,radius:8.5}},r=a=>a/16+"rem",o=[...Object.entries({xs:80,sm:120,md:180,lg:240,xl:290,xxl:360}).map((([a,e])=>({name:`--q-input-width-${a}`,value:r(e),label:`Input width ${a}`}))),...Object.entries(a).map((([a,e])=>({name:`--q-space-${a}`,value:r(e),label:`Space ${a}`}))),...Object.entries(e).flatMap((([a,e])=>Object.entries(e).map((([e,o])=>({name:`--q-control-${e}-${a}`,value:r(o),label:`${a} control ${e}`})))))];function n(e){return`var(--q-space-${e}, ${r(a[e]??a.lg)})`}function t(a){return{...Object.fromEntries(Object.keys(e).map((e=>[`--_q-context-size-${e}`,"inherit"===a?"":a===e?"1":"0"]))),...Object.fromEntries(Object.keys(e.md).map((e=>[`--q-context-control-${e}`,"inherit"===a?"":"initial"])))}}function l(a){return"transparent"===a?"transparent":`var(--q-bg-${a}, ${{canvas:"var(--q-bg-base, #0b0f19)",panel:"var(--q-bg-surface-1, #111827)",card:"var(--q-bg-surface-2, #19243b)",field:"var(--q-bg-surface-3, #22304d)",floating:"var(--q-bg-surface-4, #2c3a58)",transparent:"transparent"}[a]})`}const m=[{category:"Colors",tokens:[{name:"--q-color-primary",value:"#60a5fa",light:"#3b82f6",dark:"#60a5fa"},{name:"--q-color-primary-hover",value:"#93c5fd",light:"#2563eb",dark:"#93c5fd"},{name:"--q-color-secondary",value:"#9777ea",light:"#7c3aed",dark:"#9777ea"},{name:"--q-color-success",value:"#34d399",light:"#10b981",dark:"#34d399"},{name:"--q-color-warning",value:"#fbbf24",light:"#f59e0b",dark:"#fbbf24"},{name:"--q-color-danger",value:"#f87171",light:"#ef4444",dark:"#f87171"}]},{category:"Hierarchical Surfaces & Backgrounds",tokens:[{name:"--q-bg-base",value:"#0b0f19",light:"#ffffff",dark:"#0b0f19"},{name:"--q-bg-surface-1",value:"#111827",light:"#f0f3f9",dark:"#111827"},{name:"--q-bg-surface-2",value:"#19243b",light:"#dee5f2",dark:"#19243b"},{name:"--q-bg-surface-3",value:"#22304d",light:"#c7d1e6",dark:"#22304d"},{name:"--q-bg-surface-4",value:"#2c3a58",light:"#aab8d5",dark:"#2c3a58"},{name:"--q-bg-surface-5",value:"#374761",light:"#8b9dc1",dark:"#374761"},{name:"--q-bg-glass",value:"rgba(25, 36, 59, 0.85)",light:"rgba(255, 255, 255, 0.85)",dark:"rgba(25, 36, 59, 0.85)"},{name:"--q-bg-overlay",value:"rgba(0, 0, 0, 0.85)",light:"rgba(0, 0, 0, 0.6)",dark:"rgba(0, 0, 0, 0.85)"},{name:"--q-fg-base",value:"#f9fafb",light:"#1f2937",dark:"#f9fafb"},{name:"--q-fg-muted",value:"#9ca3af",light:"#4b5563",dark:"#9ca3af"},{name:"--q-border-color",value:"#374151",light:"#e5e7eb",dark:"#374151"}]},{category:"Shadows & OSR-safe glass surfaces",tokens:[{name:"--q-dialog-backdrop-bg",value:"var(--q-bg-overlay, rgba(0, 0, 0, 0.85))"},{name:"--q-dialog-backdrop-solid-bg",value:"var(--q-bg-overlay, rgba(0, 0, 0, 0.85))"},{name:"--q-shadow-low",value:"0 2px 4px rgba(0, 0, 0, 0.2)",light:"0 2px 4px rgba(0, 0, 0, 0.05)",dark:"0 2px 4px rgba(0, 0, 0, 0.2)"},{name:"--q-shadow-medium",value:"0 8px 16px rgba(0, 0, 0, 0.3)",light:"0 8px 16px rgba(0, 0, 0, 0.08)",dark:"0 8px 16px rgba(0, 0, 0, 0.3)"},{name:"--q-shadow-high",value:"0 16px 32px rgba(0, 0, 0, 0.45)",light:"0 16px 32px rgba(0, 0, 0, 0.12)",dark:"0 16px 32px rgba(0, 0, 0, 0.45)"},{name:"--q-glow-interactive",value:"0 0 20px rgba(96, 165, 250, 0.3)",light:"0 0 20px rgba(59, 130, 246, 0.3)",dark:"0 0 20px rgba(96, 165, 250, 0.3)"}]},{category:"Borders & Outlines",tokens:[{name:"--q-border-width",value:"1px"},{name:"--q-border",value:"var(--q-border-width) solid var(--q-border-color)"},{name:"--q-focus-ring",value:"2px solid var(--q-color-primary)"}]},{category:"Typography",tokens:[{name:"--q-font-family",value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"},{name:"--q-font-size-sm",value:"0.7rem"},{name:"--q-font-size-base",value:"0.9rem"},{name:"--q-font-size-lg",value:"1rem"},{name:"--q-font-weight-normal",value:"400"},{name:"--q-font-weight-bold",value:"600"}]},{category:"Spacing & Radii",tokens:[{name:"--q-radius-sm",value:"4px"},{name:"--q-radius-md",value:"7px"},{name:"--q-radius-lg",value:"11px"},{name:"--q-padding-sm",value:"var(--q-space-sm, .5rem)"},{name:"--q-padding-md",value:"var(--q-space-md, .75rem)"},{name:"--q-padding-lg",value:"var(--q-space-lg, 1rem)"}]},{category:"Transitions",tokens:[{name:"--q-transition-fast",value:"150ms ease"},{name:"--q-transition-normal",value:"250ms cubic-bezier(0.4, 0, 0.2, 1)"},{name:"--q-transition-slow",value:"400ms cubic-bezier(0.4, 0, 0.2, 1)"}]},{category:"Z-index",tokens:[{name:"--q-z-index-overlay",value:"1000"},{name:"--q-z-index-popover",value:"1100"},{name:"--q-z-index-toast",value:"1200"}]},{category:"Global Animation Base",tokens:[{name:"--q-hover-transform",value:"translateY(-4px) scale(1.02)"}]},{category:"Theme-aware hover overlays (automatically flips in light mode)",tokens:[{name:"--q-btn-hover-overlay",value:"color-mix(in srgb, var(--q-fg-base) 8%, transparent)"}]},{category:"Card (q-card)",tokens:[{name:"--q-card-border",value:"var(--q-border)"},{name:"--q-card-hover-transform",value:"var(--q-hover-transform)"},{name:"--q-card-transition-duration",value:"var(--q-transition-normal)"}]},{category:"Step Diagram (q-step-diagram / q-step-diagram-item)",tokens:[{name:"--q-step-diag-line",value:"2px solid var(--q-border-color)"},{name:"--q-step-diag-border",value:"var(--q-border)"},{name:"--q-step-diag-icon-size",value:"32px"},{name:"--q-step-diag-item-gap",value:"24px"}]},{category:"Media Reel & Thumbnail (q-reel / q-thumbnail)",tokens:[{name:"--q-thumb-aspect-ratio",value:"16 / 9"},{name:"--q-thumb-border",value:"2px solid var(--q-thumb-border-color)"},{name:"--q-thumb-hover-transform",value:"var(--q-hover-transform)"},{name:"--q-thumb-overlay-bg",value:"rgba(0, 0, 0, 0.4)"},{name:"--q-thumb-radius",value:"var(--q-radius-md)"},{name:"--q-thumb-border-color",value:"transparent"},{name:"--q-thumb-glow",value:"var(--q-glow-interactive)"},{name:"--q-reel-gap",value:"12px"},{name:"--q-reel-columns-desktop",value:"repeat(auto-fill, minmax(200px, 1fr))"},{name:"--q-reel-columns-mobile",value:"1fr"},{name:"--q-lightbox-max-size",value:"90vh"},{name:"--q-reel-lightbox-btn-bg",value:"rgba(0, 0, 0, 0.5)"},{name:"--q-reel-lightbox-btn-border",value:"1px solid rgba(255, 255, 255, 0.2)"},{name:"--q-reel-lightbox-btn-color",value:"#ffffff"},{name:"--q-reel-lightbox-btn-hover-bg",value:"rgba(255, 255, 255, 0.2)"}]},{category:"Avatar (q-avatar)",tokens:[{name:"--q-avatar-size-sm",value:"28px"},{name:"--q-avatar-size-md",value:"40px"},{name:"--q-avatar-size-lg",value:"56px"},{name:"--q-avatar-bg",value:"var(--q-bg-surface-3)"},{name:"--q-avatar-fg",value:"var(--q-fg-base)"},{name:"--q-avatar-border",value:"var(--q-border)"}]},{category:"Conversation bubble (q-conversation-bubble)",tokens:[{name:"--q-conversation-incoming-bg",value:"var(--q-bg-surface-2)"},{name:"--q-conversation-outgoing-bg",value:"var(--q-color-primary)"},{name:"--q-conversation-outgoing-fg",value:"#ffffff"},{name:"--q-conversation-system-bg",value:"transparent"},{name:"--q-conversation-system-fg",value:"var(--q-fg-muted)"}]},{category:"Carousel (q-carousel)",tokens:[{name:"--q-carousel-gap",value:"16px"},{name:"--q-carousel-padding",value:"24px 20px"},{name:"--q-carousel-arrow-bg",value:"var(--q-bg-overlay)"},{name:"--q-carousel-arrow-border",value:"var(--q-border)"},{name:"--q-carousel-arrow-color",value:"#ffffff"},{name:"--q-carousel-arrow-size",value:"40px"},{name:"--q-carousel-indicator-gap",value:"8px"},{name:"--q-carousel-indicator-size",value:"6px"}]},{category:"Progress (q-progress)",tokens:[{name:"--q-progress-transition",value:"var(--q-transition-normal)"},{name:"--q-progress-indeterminate-duration",value:"1.4s"},{name:"--q-progress-linear-height-sm",value:"4px"},{name:"--q-progress-linear-height-md",value:"6px"},{name:"--q-progress-linear-height-lg",value:"8px"},{name:"--q-progress-linear-radius",value:"999px"},{name:"--q-progress-circular-size-sm",value:"64px"},{name:"--q-progress-circular-size-md",value:"120px"},{name:"--q-progress-circular-size-lg",value:"180px"},{name:"--q-progress-circular-stroke-width-sm",value:"6px"},{name:"--q-progress-circular-stroke-width-md",value:"8px"},{name:"--q-progress-circular-stroke-width-lg",value:"10px"},{name:"--q-progress-circular-linecap",value:"round"},{name:"--q-progress-circular-font-weight",value:"var(--q-font-weight-bold)"}]},{category:"Button (q-button)",tokens:[{name:"--q-btn-font-weight",value:"var(--q-font-weight-bold)"},{name:"--q-btn-active-transform",value:"scale(0.97)"},{name:"--q-btn-transition",value:"all 150ms cubic-bezier(0.4, 0, 0.2, 1)"},{name:"--q-btn-icon-padding-sm",value:"4px"},{name:"--q-btn-icon-padding-md",value:"6px"},{name:"--q-btn-icon-padding-lg",value:"9px"}]},{category:"Chip (q-chip)",tokens:[{name:"--q-chip-radius",value:"999px"},{name:"--q-chip-border",value:"var(--q-border)"},{name:"--q-chip-font-weight",value:"var(--q-font-weight-bold)"},{name:"--q-chip-padding-sm",value:"4px 9px"},{name:"--q-chip-padding-md",value:"6px 11px"},{name:"--q-chip-padding-lg",value:"8px 14px"},{name:"--q-chip-height-sm",value:"24px"},{name:"--q-chip-height-md",value:"30px"},{name:"--q-chip-height-lg",value:"36px"},{name:"--q-chip-active-transform",value:"scale(0.97)"}]},{category:"Unified Form Field Variables (Borders & Radius Consistency)",tokens:[{name:"--q-field-border",value:"var(--q-border)"},{name:"--q-field-border-color-focus",value:"var(--q-color-primary)"}]},{category:"Input & Textarea (q-input / q-textarea) mapped to unified field tokens",tokens:[{name:"--q-input-border",value:"var(--q-field-border)"}]},{category:"Dropdown (q-dropdown) mapped to unified field tokens",tokens:[{name:"--q-dropdown-border",value:"var(--q-field-border)"}]},{category:"Panel (q-panel)",tokens:[{name:"--q-panel-border",value:"var(--q-border)"}]},{category:"Sidepanel (q-sidepanel)",tokens:[{name:"--q-sidepanel-bg",value:"var(--q-bg-surface-1)",light:"var(--q-bg-surface-1)",dark:"var(--q-bg-surface-1)"},{name:"--q-sidepanel-border",value:"var(--q-border)"},{name:"--q-sidepanel-shadow",value:"var(--q-shadow-high)"},{name:"--q-sidepanel-panel-width",value:"320px"},{name:"--q-sidepanel-panel-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-header-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-footer-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-section-border",value:"var(--q-border)"}]},{category:"Map (q-map)",tokens:[{name:"--q-map-height",value:"100%"},{name:"--q-map-min-height",value:"240px"},{name:"--q-map-bg",value:"var(--q-bg-surface-1)"},{name:"--q-map-border",value:"var(--q-border)"},{name:"--q-map-radius",value:"var(--q-radius-lg)"},{name:"--q-map-marker-size",value:"20px"},{name:"--q-map-marker-size-small",value:"16px"},{name:"--q-map-marker-size-medium",value:"var(--q-map-marker-size)"},{name:"--q-map-marker-size-large",value:"24px"},{name:"--q-map-marker-color",value:"var(--q-color-primary)"},{name:"--q-map-marker-success",value:"var(--q-color-success)"},{name:"--q-map-marker-warning",value:"var(--q-color-warning)"},{name:"--q-map-marker-danger",value:"var(--q-color-danger)"},{name:"--q-map-marker-muted",value:"var(--q-fg-muted)"},{name:"--q-map-marker-selected-color",value:"var(--q-fg-base)"},{name:"--q-map-marker-selected-shadow",value:"var(--q-shadow-medium)"},{name:"--q-map-attribution-bg",value:"var(--q-bg-base)"},{name:"--q-map-attribution-color",value:"var(--q-fg-muted)"}]},{category:"Scrollbars",tokens:[{name:"--q-scrollbar-width",value:"6px"},{name:"--q-scrollbar-width-thin",value:"thin"},{name:"--q-scrollbar-track-color",value:"transparent"},{name:"--q-scrollbar-thumb-color",value:"var(--q-border-color, #374151)"},{name:"--q-scrollbar-thumb-color-hover",value:"var(--q-color-primary, #60a5fa)"},{name:"--q-scrollbar-radius",value:"var(--q-radius-sm, 4px)"}]}],p={"--q-text-body-size":{compact:"var(--q-font-size-base)",comfortable:"var(--q-font-size-base)"},"--q-text-body-line-height":{compact:"1.5",comfortable:"1.6"},"--q-text-small-size":{compact:"var(--q-font-size-sm)",comfortable:"var(--q-font-size-sm)"},"--q-text-small-line-height":{compact:"1.5",comfortable:"1.5"},"--q-heading-display-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(2.5rem, 1.75rem + 3vw, 4rem)"},"--q-heading-display-line-height":{compact:"1.3",comfortable:"1.1"},"--q-heading-1-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(27px, 1.5rem + 2vw, 36px)"},"--q-heading-2-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(1.4rem, 1.1rem + 1.2vw, 2rem)"},"--q-heading-3-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(1.265625rem, 1.0546875rem + 0.84375vw, 1.6875rem)"},"--q-heading-4-size":{compact:"var(--q-font-size-lg)",comfortable:"1.25rem"},"--q-heading-5-size":{compact:"var(--q-font-size-lg)",comfortable:"1.25rem"},"--q-heading-6-size":{compact:"var(--q-font-size-lg)",comfortable:"1.125rem"},...Object.fromEntries([1,2,3,4,5,6].map((a=>[`--q-heading-${a}-line-height`,{compact:"1.3",comfortable:a<=2?"1.2":"1.3"}]))),"--q-content-paragraph-gap":{compact:"var(--q-padding-lg)",comfortable:"1.5rem"},"--q-content-heading-gap":{compact:"var(--q-padding-lg)",comfortable:"1.5rem"},"--q-content-section-gap":{compact:"var(--q-space-2xl)",comfortable:"clamp(3rem, 2rem + 4vw, 6rem)"},"--q-content-padding":{compact:"var(--q-padding-lg)",comfortable:"clamp(1.5rem, 1rem + 2vw, 3rem)"},"--q-field-text-size":{compact:".75rem",comfortable:".875rem"},"--q-field-text-line":{compact:"1rem",comfortable:"1.25rem"}};Object.entries({"--q-space-none":"0rem","--q-space-xs":"0.375rem","--q-space-sm":"0.75rem","--q-space-md":"1rem","--q-space-lg":"1.5rem","--q-space-xl":"2rem","--q-space-2xl":"3rem","--q-space-3xl":"4rem","--q-control-height-sm":"2.25rem","--q-control-font-sm":"0.875rem","--q-control-line-sm":"1.25rem","--q-control-padding-sm":"0.75rem","--q-control-icon-sm":"1rem","--q-control-height-md":"2.75rem","--q-control-font-md":"1rem","--q-control-line-md":"1.5rem","--q-control-padding-md":"1rem","--q-control-icon-md":"1.25rem","--q-control-height-lg":"3.25rem","--q-control-font-lg":"1.125rem","--q-control-line-lg":"1.75rem","--q-control-padding-lg":"1.25rem","--q-control-icon-lg":"1.5rem","--q-font-size-sm":"0.875rem","--q-font-size-base":"1.125rem","--q-font-size-lg":"1.5rem","--q-padding-sm":"var(--q-space-sm, .75rem)","--q-padding-md":"var(--q-space-md, 1rem)","--q-padding-lg":"var(--q-space-lg, 1.5rem)","--q-step-diag-icon-size":"40px","--q-step-diag-item-gap":"32px","--q-reel-gap":"24px","--q-avatar-size-sm":"32px","--q-avatar-size-md":"48px","--q-avatar-size-lg":"64px","--q-carousel-gap":"24px","--q-carousel-padding":"32px 24px","--q-carousel-arrow-size":"44px","--q-carousel-indicator-gap":"12px","--q-carousel-indicator-size":"8px","--q-progress-linear-height-sm":"6px","--q-progress-linear-height-md":"8px","--q-progress-linear-height-lg":"10px","--q-progress-circular-size-sm":"80px","--q-progress-circular-size-md":"144px","--q-progress-circular-size-lg":"200px","--q-progress-circular-stroke-width-sm":"8px","--q-progress-circular-stroke-width-md":"10px","--q-progress-circular-stroke-width-lg":"12px","--q-btn-icon-padding-sm":"6px","--q-btn-icon-padding-md":"8px","--q-btn-icon-padding-lg":"12px","--q-chip-padding-sm":"6px 12px","--q-chip-padding-md":"8px 16px","--q-chip-padding-lg":"10px 20px","--q-chip-height-sm":"32px","--q-chip-height-md":"40px","--q-chip-height-lg":"48px","--q-sidepanel-panel-padding":"var(--q-padding-lg)","--q-sidepanel-panel-header-padding":"var(--q-padding-lg)","--q-sidepanel-panel-footer-padding":"var(--q-padding-lg)","--q-map-marker-size":"24px","--q-map-marker-size-small":"20px","--q-map-marker-size-medium":"var(--q-map-marker-size)","--q-map-marker-size-large":"28px"}).map((([a,e])=>{const r=[...o,...m.flatMap((a=>a.tokens))].find((e=>e.name===a));if(!r)throw new Error(`Preset token has no compact default: ${a}`);return{name:a,compact:r.value,comfortable:e}})).concat(Object.entries({...p,"--q-toolbar-height":{compact:"0px",comfortable:"72px"},"--q-toolbar-compact-height":{compact:"0px",comfortable:"60px"},"--q-font-size-xs":{compact:"0.7rem",comfortable:"0.8125rem"},"--q-font-size-2xs":{compact:"0.625rem",comfortable:"0.75rem"},"--q-btn-circle-size":{compact:"120px",comfortable:"144px"},"--q-btn-circle-padding":{compact:"12px",comfortable:"16px"},"--q-table-toolbar-padding-block":{compact:"12px",comfortable:"16px"},"--q-table-toolbar-padding-inline":{compact:"16px",comfortable:"24px"},"--q-bar-edge-padding":{compact:"24px",comfortable:"32px"},"--q-bar-edge-compact-padding":{compact:"16px",comfortable:"24px"},"--q-table-cell-padding-block":{compact:"4.5px",comfortable:"10px"},"--q-table-cell-padding-inline":{compact:"8px",comfortable:"14px"},"--q-dropdown-option-padding":{compact:"10px 14px",comfortable:"12px 18px"},"--q-tooltip-padding":{compact:"6px 10px",comfortable:"8px 14px"},"--q-syntax-padding":{compact:"16px",comfortable:"24px"},"--q-syntax-compact-padding":{compact:"10px",comfortable:"16px"},"--q-syntax-header-padding":{compact:"4px 16px",comfortable:"8px 24px"},"--q-sidepanel-nav-font":{compact:"0.875rem",comfortable:"1rem"},"--q-sidepanel-nav-small-font":{compact:"0.75rem",comfortable:"0.875rem"},"--q-sidepanel-nav-badge-font":{compact:"0.65rem",comfortable:"0.75rem"},"--q-navbar-item-height":{compact:"36px",comfortable:"44px"},"--q-navbar-gap":{compact:"20px",comfortable:"28px"},"--q-navbar-height":{compact:"64px",comfortable:"72px"},"--q-navbar-compact-height":{compact:"52px",comfortable:"60px"},"--q-navbar-logo-size":{compact:"32px",comfortable:"40px"},"--q-navbar-brand-size":{compact:"1rem",comfortable:"1.25rem"},"--q-navbar-nav-gap":{compact:"6px",comfortable:"10px"},"--q-navbar-action-gap":{compact:"8px",comfortable:"12px"},"--q-navbar-item-gap":{compact:"8px",comfortable:"12px"},"--q-navbar-item-padding":{compact:"7px 10px",comfortable:"10px 14px"},"--q-navbar-item-size":{compact:"0.9rem",comfortable:"1rem"},"--q-navbar-item-icon-only-size":{compact:"40px",comfortable:"44px"},"--q-navbar-item-icon-only-padding":{compact:"8px",comfortable:"10px"},"--q-navbar-mobile-panel-padding":{compact:"8px 16px 16px",comfortable:"12px 24px 24px"},"--q-avatar-font-size":{compact:"0.8rem",comfortable:"1rem"},"--q-avatar-font-size-sm":{compact:"0.65rem",comfortable:"0.75rem"},"--q-avatar-font-size-lg":{compact:"1rem",comfortable:"1.25rem"},"--q-conversation-gap":{compact:"10px",comfortable:"16px"},"--q-conversation-header-gap":{compact:"4px",comfortable:"6px"},"--q-conversation-header-inset":{compact:"4px",comfortable:"6px"},"--q-conversation-padding":{compact:"11px 13px",comfortable:"16px 20px"},"--q-conversation-footer-gap":{compact:"10px",comfortable:"16px"},"--q-conversation-footer-margin":{compact:"6px",comfortable:"10px"},"--q-conversation-meta-gap":{compact:"6px",comfortable:"10px"},"--q-conversation-compact-padding":{compact:"7px 10px",comfortable:"10px 14px"},"--q-alert-padding":{compact:"12px 14px",comfortable:"16px 20px"},"--q-alert-gap":{compact:"10px",comfortable:"16px"},"--q-alert-actions-gap":{compact:"8px",comfortable:"12px"},"--q-pagination-button-height":{compact:"30px",comfortable:"44px"},"--q-pagination-button-padding":{compact:"5px 8px",comfortable:"8px 12px"}}).map((([a,e])=>({name:a,...e}))));export{l as a,t as c,n as s}
@@ -0,0 +1 @@
1
+ const t="__webquarkToastRuntimeV1__",e=()=>{const e=globalThis;return e[t]||Object.defineProperty(e,t,{value:{bufferedToasts:[],nextId:0},configurable:!1,enumerable:!1,writable:!1}),e[t]},r=()=>{if("undefined"==typeof document)throw new Error("WebQuark toast methods are client-only. Call them after the document is available.")},n=(t,n,o,s)=>{r();const a=(()=>{const t=e();return t.nextId+=1,`q-toast-${Date.now().toString(36)}-${t.nextId.toString(36)}`})(),i=((t,e,r,n={})=>{const o=e.trim(),s=r?.trim();if(!o)throw new TypeError("Toast title must not be empty.");if(void 0!==n.duration&&(!Number.isFinite(n.duration)||n.duration<0))throw new RangeError("Toast duration must be a finite number of milliseconds at least 0.");return{title:o,description:s||void 0,variant:t,duration:n.duration,dismissible:n.dismissible}})(t,n,o,s),u=e();if(u.activeHost)return u.activeHost.enqueue(i,a),a;if(u.bufferedToasts.length>=50)throw new RangeError("Cannot buffer more than 50 toasts before <q-toast> connects.");return u.bufferedToasts=[...u.bufferedToasts,{id:a,request:i}],a},o=t=>{const r=e();if(r.activeHost&&r.activeHost!==t)return console.error("WebQuark QToast: only one global <q-toast> host may be connected at a time."),!1;r.activeHost=t;const n=r.bufferedToasts;return r.bufferedToasts=[],n.forEach((({request:e,id:r})=>t.enqueue(e,r))),!0},s=t=>{const r=e();r.activeHost===t&&(r.activeHost=void 0)},a=Object.freeze({info:(t,e,r)=>n("info",t,e,r),success:(t,e,r)=>n("success",t,e,r),warning:(t,e,r)=>n("warning",t,e,r),danger:(t,e,r)=>n("danger",t,e,r),error:(t,e,r)=>n("danger",t,e,r),dismiss:t=>{r();const n=e();if(n.activeHost)return n.activeHost.dismiss(t);const o=n.bufferedToasts.length;return n.bufferedToasts=n.bufferedToasts.filter((e=>e.id!==t)),n.bufferedToasts.length!==o},clear:()=>{r();const t=e();if(t.activeHost)return t.activeHost.clear();const n=t.bufferedToasts.length;return t.bufferedToasts=[],n}});export{o as r,a as t,s as u}
@@ -0,0 +1 @@
1
+ function r(r,t,n){return(r||"")+(t?` ${t}`:"")+(n?` ${n}`:"")}function t(r,t,n){if(null==r)return t;if("string"==typeof r)try{return JSON.parse(r)}catch(r){return console.error((n?`${n}: `:"")+"Failed to parse JSON string",r),t}return r}export{r as f,t as s}
@@ -0,0 +1 @@
1
+ import{i as t}from"./p-DstNl_WY.js";const n=new WeakMap;async function o(t){const o=n.get(t);o&&await Promise.all(o)}function e(t,n){if(n)return n;if(t.hasAttribute("form")){const n=t.getRootNode(),o=n.getElementById?.(t.getAttribute("form"));return"FORM"===o?.tagName?o:void 0}return t.closest("form")||(t.closest("q-form")??void 0)}function r(o,r,i,u){const s=e(o,u?.());let f;const c=new Promise((t=>{f=t}));if(s){const t=n.get(s)??new Set;t.add(c),n.set(s,t)}setTimeout((async()=>{try{const n=o;if(!o.isConnected||r.defaultPrevented||i?.defaultPrevented||n.href||n.loading||t(o,Boolean(n.disabled)))return;const s=e(o,u?.());if(!s)return;if("Q-FORM"===s.tagName)await s.resetForm();else{const t=s.ownerDocument.defaultView?.HTMLFormElement?.prototype;t?.reset.call(s)}}catch(t){console.error(t)}finally{s&&n.get(s)?.delete(c),f()}}),0)}const i=Symbol.for("webquark.form.submit-activation.v1"),u=Symbol.for("webquark.form.submit-owner.v1"),s=Symbol.for("webquark.form.submit-busy.v1"),f=new WeakSet;function c(t,n){n?t[s]=!0:delete t[s]}function a(t,n){t[u]=n}function m(t){const n="Q-BUTTON"===t.tagName?t[u]?.():t.form;return e(t,n)}function l(n,o=!1){const e=n;return!(!["BUTTON","INPUT","Q-BUTTON"].includes(n.tagName)||!["submit","image"].includes(e.type??"")||e.href)&&(o||!e.loading&&!t(n,Boolean(e.disabled)))}function b(t){const n=t[i];if(n)return n;const o=t.submitter,e=o&&o[i];if(e&&"click"in e){if(0===e.click.eventPhase&&!e.click.defaultPrevented)return delete o[i],e}else if(e)return e;return{submitter:o??null}}function T(t,n={submitter:null}){const o=new(0,t.ownerDocument.defaultView.Event)("submit",{bubbles:!0,cancelable:!0});o[i]=n,t.dispatchEvent(o)}function d(t,n,o){const e=m(t),r="Q-FORM"===e?.tagName?e.shadowRoot?.querySelector("form"):e;if(r&&r[s])return;const u=n.detail>0?[Math.max(0,Math.floor(n.offsetX)),Math.max(0,Math.floor(n.offsetY))]:[0,0],c={submitter:t,coordinates:u},a="INPUT"===t.tagName&&"image"===t.type&&t.form,b={...c,click:n};if(a)t[i]=b;else{if(f.has(t))return;f.add(t)}setTimeout((()=>{if(a||f.delete(t),a&&t[i]===b&&delete t[i],n.defaultPrevented||o?.defaultPrevented||!t.isConnected||!l(t))return;const e=m(t);if(!e)return;if("Q-BUTTON"!==t.tagName&&t.form)return;if(n.preventDefault(),"Q-FORM"===e.tagName){const t=e.shadowRoot?.querySelector("form");return void(t&&T(t,c))}const r=e,u=r.ownerDocument.createElement("button");u.type="submit",u.hidden=!0,function(t,n){for(const[o,e]of[["name","name"],["value","value"],["formAction","formaction"],["formMethod","formmethod"],["formEnctype","formenctype"],["formTarget","formtarget"]]){const r=y(t,o,e);void 0!==r&&n.setAttribute(e,r)}n.formNoValidate=v(t)}(t,u),u[i]=c,r.append(u);try{r.ownerDocument.defaultView.HTMLFormElement.prototype.requestSubmit.call(r,u)}finally{u.remove()}}))}function y(t,n,o){if("Q-BUTTON"===t.tagName){const o=t[n];if(null!=o)return String(o)}return t.hasAttribute(o)?t.getAttribute(o):void 0}function v(t){return"Q-BUTTON"===t?.tagName?Boolean(t.formNoValidate):Boolean(t&&(t.formNoValidate||t.hasAttribute("formnovalidate")))}function w(t,n){if(!t)return;const o=new Set;return n.querySelectorAll("button,input,q-button").forEach((t=>o.add(t))),t.getRootNode().querySelectorAll("button,input,q-button").forEach((n=>{m(n)===t&&o.add(n)})),Array.from(o).filter((o=>l(o,!0)&&[t,n].includes(m(o)))).sort(((t,n)=>{const o=t.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_DISCONNECTED?0:o&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))[0]}function N(t){l(t)&&("Q-BUTTON"===t.tagName?t.shadowRoot?.querySelector("button")?.click():t.click())}export{r as a,N as b,y as c,w as d,o as e,T as f,b as g,c as h,l as i,m as j,v as k,a as r,d as s}
@@ -0,0 +1 @@
1
+ const t={x:0,y:0,width:100,height:100};function e(t){if(!t||"object"!=typeof t)return!1;const{x:e,y:i,width:r,height:o}=t;return[e,i,r,o].every((t=>"number"==typeof t&&Number.isFinite(t)))&&e>=0&&i>=0&&r>0&&o>0&&e+r<=100&&i+o<=100}function i(t){return e(t)&&(0!==t.x||0!==t.y||100!==t.width||100!==t.height)}function r(i,r,o,u){if(!Number.isFinite(i)||i<=0||!Number.isFinite(r)||r<=0||void 0!==o&&!e(o)||void 0!==u&&(!Number.isFinite(u)||u<=0))return;const n=o??t,h=i*n.width/100,b=r*n.height/100,c=u??h/b,f=Math.min(c/h,1/b),m=f*h/c*100,a=f*b*100,d={aspectRatio:c,viewport:{left:(100-m)/2,top:(100-a)/2,width:m,height:a},image:{left:-n.x/n.width*100,top:-n.y/n.height*100,width:100/n.width*100,height:100/n.height*100}};return Object.values(d.viewport).every(Number.isFinite)&&Object.values(d.image).every(Number.isFinite)&&Number.isFinite(c)&&c>0?d:void 0}export{r as c,i as h,e as i}
@@ -0,0 +1 @@
1
+ function t({internals:t,control:o,disabled:e,customError:n}){if("function"!=typeof t.setValidity||!o.validity)return;if(e)return void t.setValidity({});const r=n?.trim();var s;r?t.setValidity({customError:!0},r,o):o.validity.valid?t.setValidity({}):t.setValidity({badInput:(s=o.validity).badInput,customError:s.customError,patternMismatch:s.patternMismatch,rangeOverflow:s.rangeOverflow,rangeUnderflow:s.rangeUnderflow,stepMismatch:s.stepMismatch,tooLong:s.tooLong,tooShort:s.tooShort,typeMismatch:s.typeMismatch,valueMissing:s.valueMissing},o.validationMessage||"Please enter a valid value.",o)}function o(t,o){"function"==typeof t.setValidity&&(o.disabled||!o.required||o.checked?t.setValidity({}):t.setValidity({valueMissing:!0},"Please select this option to continue.",o.anchor))}export{o as a,t as s}
@@ -0,0 +1 @@
1
+ function t(t,n){if(!t)return[];const r=Array.from(t.querySelectorAll("slot"));if(0===r.length){const r=Array.from(t.children);if(n){const t=n.toLowerCase();return r.filter((n=>n.tagName.toLowerCase()===t))}return r}const e=[];if(r.forEach((t=>{const n=t.assignedElements({flatten:!0}).filter((t=>1===t.nodeType));e.push(...n)})),n){const t=n.toLowerCase();return e.filter((n=>n.tagName.toLowerCase()===t))}return e}function n(){let t=document.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function r(t){if(!t)return[];const n=[],r=t=>{if(1!==t.nodeType)return;const e=t,o="undefined"!=typeof window?window.getComputedStyle(e):null;if(o&&"none"===o.display)return;const i="-1"!==e.getAttribute("tabindex"),u="true"===e.getAttribute("aria-hidden");e.matches('button, [href], input, select, textarea, [tabindex="0"], q-button, q-input, q-textarea, q-dropdown, q-radio-group')&&!e.disabled&&i&&!u&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&n.push(e),e.shadowRoot&&Array.from(e.shadowRoot.childNodes).forEach(r),"slot"===e.tagName.toLowerCase()?e.assignedElements({flatten:!0}).forEach(r):Array.from(e.childNodes).forEach((t=>r(t)))};return r(t),n}function e(t,e){if("Tab"!==t.key||!e)return;const o=r(e);if(0===o.length)return;const i=o[0],u=o[o.length-1],f=n();if(!o.includes(f))return t.shiftKey?u.focus():i.focus(),void t.preventDefault();t.shiftKey&&f===i?(u.focus(),t.preventDefault()):t.shiftKey||f!==u||(i.focus(),t.preventDefault())}function o(t,n,r,e){if(!t)return;const o=t.shadowRoot?.querySelector("slot"),i=o?o.assignedElements({flatten:!0}):Array.from(t.children),u=n.toLowerCase();let f=0;i.forEach((t=>{t.tagName.toLowerCase()===u&&(t[r]=e,f++)})),0===f&&Array.from(t.querySelectorAll(n)).forEach((t=>{t[r]=e}))}function i(t,n,r=5){return!t||t.length<=r?{fontSize:n}:{fontSize:`calc(${n} * ${Math.max(.4,r/t.length).toFixed(3)})`}}function u(t,n,r){if(!t)return n(),()=>{};let e,o=!1;const i=()=>{void 0!==e&&(clearTimeout(e),e=void 0),t.removeEventListener("transitionend",u)},u=()=>{o||(o=!0,i(),n())};let f=r;if(void 0===f&&"undefined"!=typeof window){const n=window.getComputedStyle(t).transitionDuration||"",r=parseFloat(n)*(n.includes("ms")?1:1e3);f=isNaN(r)||0===r?350:r+50}else void 0===f&&(f=350);return t.addEventListener("transitionend",u),e=setTimeout(u,f),i}function f(t){t&&"function"==typeof t.focus&&t.focus()}function a(t){if(!t)return;const n=r(t);n.length>0?n[0].focus():f(t)}export{o as a,n as b,i as c,a as f,t as g,e as h,f as s,u as w}
@@ -0,0 +1 @@
1
+ function e(e,t,r={}){const a=[],d=new Map,s=r.onWarning??o;return e.forEach(((e,o)=>{const u=t(e,o);var c;if("string"!=typeof(c=u)&&"number"!=typeof c){const t=null==u?"missing-identity":"invalid-identity";return s({code:t,message:i(r.warningContext,t,o,u),index:o,identity:u}),void a.push(n(e,o))}const l="string"==typeof(b=u)?`string:${b}`:Number.isNaN(b)?"number:NaN":Object.is(b,-0)?"number:-0":`number:${String(b)}`,y=d.get(l);var b;if(void 0!==y)return s({code:"duplicate-identity",message:i(r.warningContext,"duplicate-identity",o,u,y),index:o,identity:u,firstIndex:y}),void a.push(n(e,o));d.set(l,o),a.push({item:e,index:o,identity:u,key:l,usesFallback:!1})})),a}function t(t){const n=e(t.incoming,t.identify,{warningContext:t.warningContext,onWarning:t.onWarning}),i=new Map,r=[];return n.forEach((e=>{const n={index:e.index,identity:e.identity,key:e.key,usesFallback:e.usesFallback};let o;t.current.has(e.key)?(o=t.current.get(e.key),t.update?.(o,e.item,n)):o=t.create(e.item,n),i.set(e.key,o),r.push(o)})),t.current.forEach(((e,n)=>{i.has(n)||t.remove?.(e,n)})),{byIdentity:i,ordered:r}}function n(e,t){return{item:e,index:t,identity:`__webquark_collection_fallback_${t}`,key:`fallback:${t}`,usesFallback:!0}}function i(e,t,n,i,o){const a=e?`[WebQuark Collection Identity: ${e}]`:"[WebQuark Collection Identity]";return"duplicate-identity"===t?`${a} Duplicate identity ${r(i)} at index ${n}; first used at index ${o}. A fallback key was used.`:`${a} Item at index ${n} returned ${r(i)}. Identities must be strings or numbers. A fallback key was used.`}function r(e){return"string"==typeof e?`"${e}"`:null==e||"number"==typeof e||"boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e?String(e):Object.prototype.toString.call(e)}function o(e){console.warn(e.message)}export{e as i,t as r}
@@ -0,0 +1 @@
1
+ const o=Symbol.for("webquark.form-field.v1"),e=5e3;function n(e){const n=e;return n[o]||Object.defineProperty(n,o,{value:{version:1,waiting:new Set}}),n[o]}function r(o,e){const r=n(o);r.field=e;for(const o of Array.from(r.waiting))o()}function t(e){const n=e[o];return 1===n?.version?n.field:void 0}function i(o,e,r=5e3){const t=n(o);return t.field||e?.aborted?Promise.resolve():new Promise(((n,i)=>{const s=()=>{clearTimeout(a),t.waiting.delete(c),e?.removeEventListener("abort",c)},c=()=>{s(),n()},a=setTimeout((()=>{s();const e=new Error(`Form field ${o.tagName.toLowerCase()} did not become ready within 5000ms.`);e.name="TimeoutError",i(e)}),r);t.waiting.add(c),e?.addEventListener("abort",c,{once:!0})}))}export{e as F,t as a,i as b,r}