@webquark/core 1.1.0-dev.7 → 1.1.0-dev.8

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 (539) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/{action.props-B87W5tRu.js → action.props-N0urQtdP.js} +1 -1
  3. package/dist/cjs/{chevron-up-Dysp_9UJ.js → chevron-up-D4t2OSHA.js} +2 -2
  4. package/dist/cjs/{data-table-cell-BAv6IIYx.js → data-table-cell-8uUCk2Qz.js} +5 -0
  5. package/dist/cjs/{field-CbUc_AWx.js → field-CsrQGhG-.js} +1 -1
  6. package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
  7. package/dist/cjs/form-field-state-P63wN30v.js +51 -0
  8. package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
  9. package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
  10. package/dist/cjs/{index-D_tObBJa.js → index-DWXhKHCB.js} +25 -26
  11. package/dist/cjs/index.cjs.js +8 -3
  12. package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/{map.types-DNrz8rJh.js → map.types-BWymIRql.js} +1 -1
  15. package/dist/cjs/q-accordion.cjs.entry.js +2 -2
  16. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/q-avatar.cjs.entry.js +2 -2
  18. package/dist/cjs/q-banner.cjs.entry.js +1 -1
  19. package/dist/cjs/q-button_2.cjs.entry.js +111 -24
  20. package/dist/cjs/q-card.cjs.entry.js +2 -2
  21. package/dist/cjs/q-carousel.cjs.entry.js +400 -13
  22. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  23. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  24. package/dist/cjs/q-data-table.cjs.entry.js +73 -11
  25. package/dist/cjs/q-dialog.cjs.entry.js +3 -3
  26. package/dist/cjs/q-dropdown.cjs.entry.js +64 -11
  27. package/dist/cjs/q-form.cjs.entry.js +774 -287
  28. package/dist/cjs/q-grid.cjs.entry.js +3 -3
  29. package/dist/cjs/q-icon.cjs.entry.js +143 -89
  30. package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
  31. package/dist/cjs/q-inline.cjs.entry.js +3 -3
  32. package/dist/cjs/q-input_2.cjs.entry.js +90 -22
  33. package/dist/cjs/q-link.cjs.entry.js +2 -2
  34. package/dist/cjs/q-map.cjs.entry.js +119 -22
  35. package/dist/cjs/q-media.cjs.entry.js +3 -3
  36. package/dist/cjs/q-navbar.cjs.entry.js +3 -3
  37. package/dist/cjs/q-pagination.cjs.entry.js +2 -2
  38. package/dist/cjs/q-panel.cjs.entry.js +6 -6
  39. package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
  40. package/dist/cjs/q-radio-group.cjs.entry.js +48 -11
  41. package/dist/cjs/q-reel.cjs.entry.js +3 -3
  42. package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
  43. package/dist/cjs/q-section.cjs.entry.js +2 -2
  44. package/dist/cjs/q-sidepanel.cjs.entry.js +145 -25
  45. package/dist/cjs/q-stack.cjs.entry.js +3 -3
  46. package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
  47. package/dist/cjs/q-step-diagram.cjs.entry.js +3 -3
  48. package/dist/cjs/q-syntax-box.cjs.entry.js +418 -301
  49. package/dist/cjs/q-tabs.cjs.entry.js +2 -2
  50. package/dist/cjs/q-textarea.cjs.entry.js +66 -21
  51. package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
  52. package/dist/cjs/q-toast.cjs.entry.js +1 -1
  53. package/dist/cjs/q-toggle.cjs.entry.js +58 -12
  54. package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
  55. package/dist/cjs/registry-C3IYlNMp.js +323 -0
  56. package/dist/cjs/{tokens-DDfS79n9.js → tokens-RMRaIOqv.js} +12 -3
  57. package/dist/cjs/webquark.cjs.js +3 -3
  58. package/dist/collection/assets/icons/spinner.svg +1 -1
  59. package/dist/collection/collection-manifest.json +2 -1
  60. package/dist/collection/components/actions/button/button.js +250 -14
  61. package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
  62. package/dist/collection/components/content/carousel/carousel.css +91 -5
  63. package/dist/collection/components/content/carousel/carousel.js +511 -20
  64. package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
  65. package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
  66. package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
  67. package/dist/collection/components/data-display/accordion/accordion.js +1 -1
  68. package/dist/collection/components/data-display/data-table/data-table-cell.js +4 -0
  69. package/dist/collection/components/data-display/data-table/data-table.css +73 -0
  70. package/dist/collection/components/data-display/data-table/data-table.js +117 -3
  71. package/dist/collection/components/data-display/data-table/internals/render-table-body.js +15 -3
  72. package/dist/collection/components/data-display/data-table/internals/render-table-head.js +1 -1
  73. package/dist/collection/components/data-display/data-table/internals/table-model.js +9 -1
  74. package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
  75. package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
  76. package/dist/collection/components/data-display/map/internals/marker-presentation.js +51 -2
  77. package/dist/collection/components/data-display/map/internals/markers.js +16 -1
  78. package/dist/collection/components/data-display/map/map.css +31 -0
  79. package/dist/collection/components/data-display/map/map.js +96 -15
  80. package/dist/collection/components/data-display/map/map.types.js +1 -1
  81. package/dist/collection/components/data-display/map/test/map.cmp.test.js +187 -0
  82. package/dist/collection/components/data-display/pagination/pagination.js +1 -1
  83. package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +6 -23
  84. package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
  85. package/dist/collection/components/data-display/syntax-box/syntax-box.css +7 -0
  86. package/dist/collection/components/data-display/syntax-box/syntax-box.js +78 -23
  87. package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
  88. package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
  89. package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
  90. package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
  91. package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
  92. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
  93. package/dist/collection/components/inputs/dropdown/dropdown.js +64 -10
  94. package/dist/collection/components/inputs/form/form.js +203 -100
  95. package/dist/collection/components/inputs/form/internals/controls.js +121 -27
  96. package/dist/collection/components/inputs/form/internals/enter-behavior.js +14 -25
  97. package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
  98. package/dist/collection/components/inputs/form/internals/reset.js +50 -0
  99. package/dist/collection/components/inputs/form/internals/submission.js +140 -0
  100. package/dist/collection/components/inputs/form/internals/values.js +176 -153
  101. package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
  102. package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
  103. package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
  104. package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
  105. package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
  106. package/dist/collection/components/inputs/input/input.js +91 -20
  107. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
  108. package/dist/collection/components/inputs/radio-group/radio-group.js +51 -9
  109. package/dist/collection/components/inputs/textarea/textarea.js +70 -18
  110. package/dist/collection/components/inputs/toggle/toggle.js +57 -10
  111. package/dist/collection/components/layout/grid/grid.js +1 -1
  112. package/dist/collection/components/layout/inline/inline.js +1 -1
  113. package/dist/collection/components/layout/navbar/navbar.js +2 -2
  114. package/dist/collection/components/layout/panel/panel.js +4 -4
  115. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  116. package/dist/collection/components/layout/section/section.js +1 -1
  117. package/dist/collection/components/layout/sidepanel/internals/drawer.js +42 -4
  118. package/dist/collection/components/layout/sidepanel/sidepanel.css +145 -14
  119. package/dist/collection/components/layout/sidepanel/sidepanel.js +99 -10
  120. package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
  121. package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
  122. package/dist/collection/components/layout/stack/stack.js +1 -1
  123. package/dist/collection/components/layout/tabs/tabs.js +1 -1
  124. package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
  125. package/dist/collection/components/media/avatar/avatar.js +1 -1
  126. package/dist/collection/components/media/icon/internals/fetch-icon.js +33 -4
  127. package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
  128. package/dist/collection/components/media/icon/internals/policy.js +184 -0
  129. package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
  130. package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
  131. package/dist/collection/components/media/icon/internals/registry.js +33 -82
  132. package/dist/collection/components/media/icon/internals/sanitize-svg.js +80 -57
  133. package/dist/collection/components/media/icon/internals/url.js +31 -27
  134. package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
  135. package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
  136. package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
  137. package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
  138. package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
  139. package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
  140. package/dist/collection/components/media/media/media.js +22 -22
  141. package/dist/collection/components/media/reel/reel.js +2 -2
  142. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  143. package/dist/collection/components/overlays/dialog/dialog.js +2 -2
  144. package/dist/collection/components/overlays/tooltip/internals/positioning.js +20 -5
  145. package/dist/collection/components/overlays/tooltip/tooltip.css +5 -1
  146. package/dist/collection/components/overlays/tooltip/tooltip.js +9 -3
  147. package/dist/collection/index.js +2 -1
  148. package/dist/collection/playground/assets/comparison-after.svg +1 -0
  149. package/dist/collection/playground/assets/comparison-before.svg +1 -0
  150. package/dist/collection/playground/playground.bundled.js +16 -7
  151. package/dist/collection/theme/test/foundation.cmp.test.js +6 -0
  152. package/dist/collection/theme/tokens.js +12 -3
  153. package/dist/collection/utils/form-field-adapter.js +44 -0
  154. package/dist/collection/utils/form-field-state.js +45 -0
  155. package/dist/collection/utils/form-reset-action.js +60 -0
  156. package/dist/collection/utils/form-submit-action.js +151 -0
  157. package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
  158. package/dist/collection/utils/formatter.js +137 -158
  159. package/dist/collection/utils/formatter.unit.test.js +69 -51
  160. package/dist/collection/utils/image-crop.js +47 -0
  161. package/dist/collection/utils/image-crop.unit.test.js +57 -0
  162. package/dist/collection/utils/syntax.js +210 -81
  163. package/dist/collection/utils/syntax.unit.test.js +134 -0
  164. package/dist/components/index.js +1 -1
  165. package/dist/components/{p-CtUn83Rs.js → p-6PPZ2sIO.js} +1 -1
  166. package/dist/{webquark/p-CyPFM3XV.js → components/p-B4Mg1xEw.js} +1 -1
  167. package/dist/components/{p-BeFSyZjp.js → p-BH4gQWub.js} +1 -1
  168. package/dist/components/p-BOdNg0jc.js +1 -0
  169. package/dist/components/p-BcL0NVv0.js +1 -0
  170. package/dist/{playground/build/p-CGcC-mvi.js → components/p-BofcK-7Z.js} +1 -1
  171. package/dist/components/p-C6vxokHH.js +1 -0
  172. package/dist/components/p-CGml_DQ8.js +1 -0
  173. package/dist/components/{p-CuJIyOwp.js → p-CKuPOxKN.js} +1 -1
  174. package/dist/components/p-CN1ut2Lb.js +1 -0
  175. package/dist/components/p-C_RztzNv.js +5 -0
  176. package/dist/components/p-CoIMrUb3.js +1 -0
  177. package/dist/components/{p-g9vOVxQ4.js → p-DKrPmn2y.js} +2 -2
  178. package/dist/components/p-DT6k8Yhx.js +1 -0
  179. package/dist/components/p-Dfp_If-_.js +1 -0
  180. package/dist/components/p-DstNl_WY.js +1 -0
  181. package/dist/components/p-GHhpSfZU.js +1 -0
  182. package/dist/components/p-SzKf4WZF.js +1 -0
  183. package/dist/components/p-ye27qtRo.js +1 -0
  184. package/dist/components/q-accordion.js +1 -1
  185. package/dist/components/q-alert.js +1 -1
  186. package/dist/components/q-avatar.js +1 -1
  187. package/dist/components/q-banner.js +1 -1
  188. package/dist/components/q-button.js +1 -1
  189. package/dist/components/q-card.js +1 -1
  190. package/dist/components/q-carousel.js +1 -1
  191. package/dist/components/q-chip.js +1 -1
  192. package/dist/components/q-conversation-bubble.js +1 -1
  193. package/dist/components/q-data-table.js +1 -1
  194. package/dist/components/q-dialog.js +1 -1
  195. package/dist/components/q-dropdown.js +1 -1
  196. package/dist/components/q-form.js +1 -1
  197. package/dist/components/q-grid.js +1 -1
  198. package/dist/components/q-icon.js +1 -1
  199. package/dist/components/q-image-comparison.d.ts +11 -0
  200. package/dist/components/q-image-comparison.js +1 -0
  201. package/dist/components/q-inline.js +1 -1
  202. package/dist/components/q-input.js +1 -1
  203. package/dist/components/q-link.js +1 -1
  204. package/dist/components/q-map.js +1 -1
  205. package/dist/components/q-media.js +1 -1
  206. package/dist/components/q-navbar.js +1 -1
  207. package/dist/components/q-pagination.js +1 -1
  208. package/dist/components/q-panel.js +1 -1
  209. package/dist/components/q-progress.js +1 -1
  210. package/dist/components/q-quantity-selector.js +1 -1
  211. package/dist/components/q-radio-group.js +1 -1
  212. package/dist/components/q-reel.js +1 -1
  213. package/dist/components/q-scrollable.js +1 -1
  214. package/dist/components/q-section.js +1 -1
  215. package/dist/components/q-sidepanel.js +5 -5
  216. package/dist/components/q-stack.js +1 -1
  217. package/dist/components/q-step-diagram-item.js +1 -1
  218. package/dist/components/q-step-diagram.js +1 -1
  219. package/dist/components/q-syntax-box.js +5 -5
  220. package/dist/components/q-tabs.js +1 -1
  221. package/dist/components/q-textarea.js +1 -1
  222. package/dist/components/q-thumbnail.js +1 -1
  223. package/dist/components/q-toast.js +1 -1
  224. package/dist/components/q-toggle.js +1 -1
  225. package/dist/components/q-toolbar.js +1 -1
  226. package/dist/components/q-tooltip.js +1 -1
  227. package/dist/esm/{action.props-BypnAgOy.js → action.props-CpnGza8z.js} +1 -1
  228. package/dist/esm/{chevron-up-g9vOVxQ4.js → chevron-up-DKrPmn2y.js} +2 -2
  229. package/dist/esm/{data-table-cell-DmqVhVoj.js → data-table-cell-SzKf4WZF.js} +5 -1
  230. package/dist/esm/{field-dFy4PXKT.js → field-zfD6OQ02.js} +1 -1
  231. package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
  232. package/dist/esm/form-field-state-DstNl_WY.js +47 -0
  233. package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
  234. package/dist/esm/image-crop-BcL0NVv0.js +49 -0
  235. package/dist/esm/{index-tSny_c7b.js → index-B5ElFlHv.js} +25 -26
  236. package/dist/esm/index.js +4 -3
  237. package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
  238. package/dist/esm/loader.js +3 -3
  239. package/dist/esm/{map.types-WJHaLJS_.js → map.types-CoIMrUb3.js} +1 -1
  240. package/dist/esm/q-accordion.entry.js +2 -2
  241. package/dist/esm/q-alert.entry.js +1 -1
  242. package/dist/esm/q-avatar.entry.js +2 -2
  243. package/dist/esm/q-banner.entry.js +1 -1
  244. package/dist/esm/q-button_2.entry.js +111 -24
  245. package/dist/esm/q-card.entry.js +2 -2
  246. package/dist/esm/q-carousel.entry.js +400 -13
  247. package/dist/esm/q-chip.entry.js +2 -2
  248. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  249. package/dist/esm/q-data-table.entry.js +73 -11
  250. package/dist/esm/q-dialog.entry.js +3 -3
  251. package/dist/esm/q-dropdown.entry.js +64 -11
  252. package/dist/esm/q-form.entry.js +774 -287
  253. package/dist/esm/q-grid.entry.js +3 -3
  254. package/dist/esm/q-icon.entry.js +143 -89
  255. package/dist/esm/q-image-comparison.entry.js +199 -0
  256. package/dist/esm/q-inline.entry.js +3 -3
  257. package/dist/esm/q-input_2.entry.js +90 -22
  258. package/dist/esm/q-link.entry.js +2 -2
  259. package/dist/esm/q-map.entry.js +119 -22
  260. package/dist/esm/q-media.entry.js +3 -3
  261. package/dist/esm/q-navbar.entry.js +3 -3
  262. package/dist/esm/q-pagination.entry.js +2 -2
  263. package/dist/esm/q-panel.entry.js +6 -6
  264. package/dist/esm/q-quantity-selector.entry.js +5 -5
  265. package/dist/esm/q-radio-group.entry.js +48 -11
  266. package/dist/esm/q-reel.entry.js +3 -3
  267. package/dist/esm/q-scrollable.entry.js +4 -4
  268. package/dist/esm/q-section.entry.js +2 -2
  269. package/dist/esm/q-sidepanel.entry.js +146 -26
  270. package/dist/esm/q-stack.entry.js +3 -3
  271. package/dist/esm/q-step-diagram-item.entry.js +2 -2
  272. package/dist/esm/q-step-diagram.entry.js +3 -3
  273. package/dist/esm/q-syntax-box.entry.js +418 -301
  274. package/dist/esm/q-tabs.entry.js +2 -2
  275. package/dist/esm/q-textarea.entry.js +66 -21
  276. package/dist/esm/q-thumbnail.entry.js +3 -3
  277. package/dist/esm/q-toast.entry.js +1 -1
  278. package/dist/esm/q-toggle.entry.js +58 -12
  279. package/dist/esm/q-toolbar.entry.js +4 -4
  280. package/dist/esm/registry-GHhpSfZU.js +308 -0
  281. package/dist/esm/{tokens-CyPFM3XV.js → tokens-B4Mg1xEw.js} +12 -3
  282. package/dist/esm/webquark.js +4 -4
  283. package/dist/playground/assets/comparison-after.svg +1 -0
  284. package/dist/playground/assets/comparison-before.svg +1 -0
  285. package/dist/playground/assets/icons/check-preview.png +0 -0
  286. package/dist/playground/assets/icons/spinner.svg +1 -1
  287. package/dist/playground/build/index.esm.js +1 -1
  288. package/dist/playground/build/{p-781d3459.entry.js → p-023f8437.entry.js} +1 -1
  289. package/dist/playground/build/{p-ca240b8b.entry.js → p-030ecde3.entry.js} +1 -1
  290. package/dist/playground/build/p-04c8cb9e.entry.js +1 -0
  291. package/dist/playground/build/{p-81f64d6f.entry.js → p-059daa8a.entry.js} +1 -1
  292. package/dist/playground/build/{p-964d27e0.entry.js → p-09cca7b9.entry.js} +1 -1
  293. package/dist/playground/build/p-0aa74ad6.entry.js +1 -0
  294. package/dist/playground/build/p-0ae43d6c.entry.js +1 -0
  295. package/dist/playground/build/p-0c3aac3f.entry.js +1 -0
  296. package/dist/playground/build/p-144ef339.entry.js +1 -0
  297. package/dist/playground/build/p-1d1f7bc3.entry.js +1 -0
  298. package/dist/playground/build/p-296fbdb1.entry.js +1 -0
  299. package/dist/playground/build/p-36118d90.entry.js +1 -0
  300. package/dist/playground/build/{p-82810ead.entry.js → p-3bc4629c.entry.js} +1 -1
  301. package/dist/playground/build/{p-25c3b776.entry.js → p-48fb5228.entry.js} +1 -1
  302. package/dist/playground/build/{p-b4dfadea.entry.js → p-4d61b70d.entry.js} +1 -1
  303. package/dist/playground/build/p-5f232b44.entry.js +13 -0
  304. package/dist/playground/build/{p-b9e83fa3.entry.js → p-64096386.entry.js} +1 -1
  305. package/dist/playground/build/{p-e6603d17.entry.js → p-6bfffa79.entry.js} +1 -1
  306. package/dist/{webquark/p-fed7219c.entry.js → playground/build/p-6e28cfe2.entry.js} +1 -1
  307. package/dist/playground/build/{p-e1c8a9aa.entry.js → p-70d9ffde.entry.js} +1 -1
  308. package/dist/{webquark/p-d0c55860.entry.js → playground/build/p-8ece2c62.entry.js} +1 -1
  309. package/dist/playground/build/p-90b0858c.entry.js +1 -0
  310. package/dist/playground/build/p-91fff6b6.entry.js +1 -0
  311. package/dist/playground/build/p-923dac41.entry.js +1 -0
  312. package/dist/playground/build/p-97a89cae.entry.js +1 -0
  313. package/dist/playground/build/{p-362c5608.entry.js → p-99d785ca.entry.js} +1 -1
  314. package/dist/playground/build/{p-5453eac7.entry.js → p-9e78b796.entry.js} +1 -1
  315. package/dist/playground/build/{p-b08d0ed8.entry.js → p-9ff7e5a4.entry.js} +1 -1
  316. package/dist/{components/p-CyPFM3XV.js → playground/build/p-B4Mg1xEw.js} +1 -1
  317. package/dist/playground/build/p-B5ElFlHv.js +3 -0
  318. package/dist/playground/build/p-BOdNg0jc.js +1 -0
  319. package/dist/playground/build/p-BcL0NVv0.js +1 -0
  320. package/dist/playground/build/p-CGml_DQ8.js +1 -0
  321. package/dist/playground/build/p-C_RztzNv.js +5 -0
  322. package/dist/playground/build/p-CoIMrUb3.js +1 -0
  323. package/dist/{webquark/p-g9vOVxQ4.js → playground/build/p-DKrPmn2y.js} +2 -2
  324. package/dist/playground/build/p-DWO-pleQ.js +1 -0
  325. package/dist/{components/p-COMoSatC.js → playground/build/p-Dhsn99q4.js} +1 -1
  326. package/dist/playground/build/p-DstNl_WY.js +1 -0
  327. package/dist/playground/build/p-GHhpSfZU.js +1 -0
  328. package/dist/playground/build/p-SzKf4WZF.js +1 -0
  329. package/dist/playground/build/p-c523ec6f.entry.js +1 -0
  330. package/dist/playground/build/p-d0253d64.entry.js +1 -0
  331. package/dist/playground/build/p-d0fbd2b1.entry.js +1 -0
  332. package/dist/{webquark/p-9b4271ea.entry.js → playground/build/p-dd115868.entry.js} +1 -1
  333. package/dist/playground/build/{p-5eeb922e.entry.js → p-f1bac94c.entry.js} +1 -1
  334. package/dist/playground/build/{p-17011e71.entry.js → p-f4f97e74.entry.js} +1 -1
  335. package/dist/playground/build/p-f63b7214.entry.js +1 -0
  336. package/dist/{webquark/p-9227780b.entry.js → playground/build/p-f98f9439.entry.js} +1 -1
  337. package/dist/playground/build/{p-ae4e5ec4.entry.js → p-f9ad63ff.entry.js} +1 -1
  338. package/dist/playground/build/p-fe200f68.entry.js +1 -0
  339. package/dist/playground/build/p-fe8c634a.entry.js +13 -0
  340. package/dist/{webquark/p-151a555e.entry.js → playground/build/p-fec6fe0a.entry.js} +1 -1
  341. package/dist/playground/build/webquark.css +1 -1
  342. package/dist/playground/build/webquark.esm.js +1 -1
  343. package/dist/playground/playground/components.manifest.json +1 -0
  344. package/dist/playground/playground/specs/q-carousel.sandbox.json +15 -0
  345. package/dist/playground/playground/specs/q-data-table.sandbox.json +24 -0
  346. package/dist/playground/playground/specs/q-icon.sandbox.json +17 -1
  347. package/dist/playground/playground/specs/q-image-comparison.sandbox.json +24 -0
  348. package/dist/playground/playground/specs/q-syntax-box.sandbox.json +68 -24
  349. package/dist/playground/playground.js +16 -7
  350. package/dist/types/components/actions/button/button.d.ts +26 -0
  351. package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
  352. package/dist/types/components/content/carousel/carousel.d.ts +71 -4
  353. package/dist/types/components/content/carousel/carousel.types.d.ts +5 -0
  354. package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
  355. package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
  356. package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
  357. package/dist/types/components/data-display/data-table/data-table-cell.d.ts +2 -0
  358. package/dist/types/components/data-display/data-table/data-table.d.ts +18 -1
  359. package/dist/types/components/data-display/data-table/data-table.types.d.ts +3 -0
  360. package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +1 -0
  361. package/dist/types/components/data-display/data-table/internals/table-model.d.ts +5 -1
  362. package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
  363. package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
  364. package/dist/types/components/data-display/map/map.d.ts +7 -3
  365. package/dist/types/components/data-display/map/map.types.d.ts +11 -1
  366. package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +1 -4
  367. package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
  368. package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +9 -3
  369. package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
  370. package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
  371. package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
  372. package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
  373. package/dist/types/components/inputs/dropdown/dropdown.d.ts +5 -0
  374. package/dist/types/components/inputs/form/form.d.ts +12 -7
  375. package/dist/types/components/inputs/form/form.types.d.ts +2 -0
  376. package/dist/types/components/inputs/form/internals/controls.d.ts +3 -0
  377. package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
  378. package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
  379. package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
  380. package/dist/types/components/inputs/form/internals/values.d.ts +6 -1
  381. package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
  382. package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
  383. package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
  384. package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
  385. package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
  386. package/dist/types/components/inputs/input/input.d.ts +7 -1
  387. package/dist/types/components/inputs/radio-group/radio-group.d.ts +4 -0
  388. package/dist/types/components/inputs/textarea/textarea.d.ts +6 -1
  389. package/dist/types/components/inputs/toggle/toggle.d.ts +5 -0
  390. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +9 -0
  391. package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
  392. package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
  393. package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
  394. package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
  395. package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
  396. package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
  397. package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +1 -1
  398. package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
  399. package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
  400. package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
  401. package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
  402. package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
  403. package/dist/types/components/media/media/media.d.ts +1 -1
  404. package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +1 -1
  405. package/dist/types/components/overlays/tooltip/tooltip.d.ts +5 -0
  406. package/dist/types/components.d.ts +436 -23
  407. package/dist/types/index.d.ts +6 -3
  408. package/dist/types/utils/form-field-adapter.d.ts +17 -0
  409. package/dist/types/utils/form-field-state.d.ts +4 -0
  410. package/dist/types/utils/form-reset-action.d.ts +5 -0
  411. package/dist/types/utils/form-submit-action.d.ts +17 -0
  412. package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
  413. package/dist/types/utils/formatter.d.ts +10 -19
  414. package/dist/types/utils/image-crop.d.ts +30 -0
  415. package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
  416. package/dist/types/utils/syntax.d.ts +11 -7
  417. package/dist/types/utils/syntax.unit.test.d.ts +1 -0
  418. package/dist/webquark/index.esm.js +1 -1
  419. package/dist/webquark/{p-781d3459.entry.js → p-023f8437.entry.js} +1 -1
  420. package/dist/webquark/{p-ca240b8b.entry.js → p-030ecde3.entry.js} +1 -1
  421. package/dist/webquark/p-04c8cb9e.entry.js +1 -0
  422. package/dist/webquark/{p-81f64d6f.entry.js → p-059daa8a.entry.js} +1 -1
  423. package/dist/webquark/{p-964d27e0.entry.js → p-09cca7b9.entry.js} +1 -1
  424. package/dist/webquark/p-0aa74ad6.entry.js +1 -0
  425. package/dist/webquark/p-0ae43d6c.entry.js +1 -0
  426. package/dist/webquark/p-0c3aac3f.entry.js +1 -0
  427. package/dist/webquark/p-144ef339.entry.js +1 -0
  428. package/dist/webquark/p-1d1f7bc3.entry.js +1 -0
  429. package/dist/webquark/p-296fbdb1.entry.js +1 -0
  430. package/dist/webquark/p-36118d90.entry.js +1 -0
  431. package/dist/webquark/{p-82810ead.entry.js → p-3bc4629c.entry.js} +1 -1
  432. package/dist/webquark/{p-25c3b776.entry.js → p-48fb5228.entry.js} +1 -1
  433. package/dist/webquark/{p-b4dfadea.entry.js → p-4d61b70d.entry.js} +1 -1
  434. package/dist/webquark/p-5f232b44.entry.js +13 -0
  435. package/dist/webquark/{p-b9e83fa3.entry.js → p-64096386.entry.js} +1 -1
  436. package/dist/webquark/{p-e6603d17.entry.js → p-6bfffa79.entry.js} +1 -1
  437. package/dist/{playground/build/p-fed7219c.entry.js → webquark/p-6e28cfe2.entry.js} +1 -1
  438. package/dist/webquark/{p-e1c8a9aa.entry.js → p-70d9ffde.entry.js} +1 -1
  439. package/dist/{playground/build/p-d0c55860.entry.js → webquark/p-8ece2c62.entry.js} +1 -1
  440. package/dist/webquark/p-90b0858c.entry.js +1 -0
  441. package/dist/webquark/p-91fff6b6.entry.js +1 -0
  442. package/dist/webquark/p-923dac41.entry.js +1 -0
  443. package/dist/webquark/p-97a89cae.entry.js +1 -0
  444. package/dist/webquark/{p-362c5608.entry.js → p-99d785ca.entry.js} +1 -1
  445. package/dist/webquark/{p-5453eac7.entry.js → p-9e78b796.entry.js} +1 -1
  446. package/dist/webquark/{p-b08d0ed8.entry.js → p-9ff7e5a4.entry.js} +1 -1
  447. package/dist/{playground/build/p-CyPFM3XV.js → webquark/p-B4Mg1xEw.js} +1 -1
  448. package/dist/webquark/p-B5ElFlHv.js +3 -0
  449. package/dist/webquark/p-BOdNg0jc.js +1 -0
  450. package/dist/webquark/p-BcL0NVv0.js +1 -0
  451. package/dist/webquark/p-CGml_DQ8.js +1 -0
  452. package/dist/webquark/p-C_RztzNv.js +5 -0
  453. package/dist/webquark/p-CoIMrUb3.js +1 -0
  454. package/dist/{playground/build/p-g9vOVxQ4.js → webquark/p-DKrPmn2y.js} +2 -2
  455. package/dist/webquark/p-DWO-pleQ.js +1 -0
  456. package/dist/webquark/{p-CGcC-mvi.js → p-Dhsn99q4.js} +1 -1
  457. package/dist/webquark/p-DstNl_WY.js +1 -0
  458. package/dist/webquark/p-GHhpSfZU.js +1 -0
  459. package/dist/webquark/p-SzKf4WZF.js +1 -0
  460. package/dist/webquark/p-c523ec6f.entry.js +1 -0
  461. package/dist/webquark/p-d0253d64.entry.js +1 -0
  462. package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
  463. package/dist/{playground/build/p-9b4271ea.entry.js → webquark/p-dd115868.entry.js} +1 -1
  464. package/dist/webquark/{p-5eeb922e.entry.js → p-f1bac94c.entry.js} +1 -1
  465. package/dist/webquark/{p-17011e71.entry.js → p-f4f97e74.entry.js} +1 -1
  466. package/dist/webquark/p-f63b7214.entry.js +1 -0
  467. package/dist/{playground/build/p-9227780b.entry.js → webquark/p-f98f9439.entry.js} +1 -1
  468. package/dist/webquark/{p-ae4e5ec4.entry.js → p-f9ad63ff.entry.js} +1 -1
  469. package/dist/webquark/p-fe200f68.entry.js +1 -0
  470. package/dist/webquark/p-fe8c634a.entry.js +13 -0
  471. package/dist/{playground/build/p-151a555e.entry.js → webquark/p-fec6fe0a.entry.js} +1 -1
  472. package/dist/webquark/webquark.css +1 -1
  473. package/dist/webquark/webquark.esm.js +1 -1
  474. package/package.json +16 -19
  475. package/scripts/webquark-serve.js +9 -7
  476. package/scripts/wq-switch/README.md +113 -109
  477. package/scripts/wq-switch/dist/index.js +106 -82
  478. package/scripts/wq-switch/dist/setup.js +80 -60
  479. package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +0 -1031
  480. package/dist/cjs/registry-BhkCNgxt.js +0 -179
  481. package/dist/components/p-2_cpBb8_.js +0 -1
  482. package/dist/components/p-BfZVatS6.js +0 -1
  483. package/dist/components/p-BvBRW3dl.js +0 -1
  484. package/dist/components/p-CFuqfXuv.js +0 -9
  485. package/dist/components/p-Cn_ChUpc.js +0 -1
  486. package/dist/components/p-DmqVhVoj.js +0 -1
  487. package/dist/components/p-DwnH6_NQ.js +0 -1
  488. package/dist/components/p-WJHaLJS_.js +0 -1
  489. package/dist/components/p-_X1v1o3K.js +0 -1
  490. package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +0 -1026
  491. package/dist/esm/registry-BvBRW3dl.js +0 -173
  492. package/dist/playground/build/p-04799ed0.entry.js +0 -1
  493. package/dist/playground/build/p-0610d5b2.entry.js +0 -1
  494. package/dist/playground/build/p-160cb4e4.entry.js +0 -1
  495. package/dist/playground/build/p-1cf51c80.entry.js +0 -1
  496. package/dist/playground/build/p-3d674223.entry.js +0 -1
  497. package/dist/playground/build/p-4fff116c.entry.js +0 -1
  498. package/dist/playground/build/p-675d0d03.entry.js +0 -13
  499. package/dist/playground/build/p-70c4f92f.entry.js +0 -1
  500. package/dist/playground/build/p-72dc1231.entry.js +0 -1
  501. package/dist/playground/build/p-736b1c8c.entry.js +0 -1
  502. package/dist/playground/build/p-96922229.entry.js +0 -1
  503. package/dist/playground/build/p-BLvl8YLq.js +0 -1
  504. package/dist/playground/build/p-BvBRW3dl.js +0 -1
  505. package/dist/playground/build/p-CFuqfXuv.js +0 -9
  506. package/dist/playground/build/p-DmqVhVoj.js +0 -1
  507. package/dist/playground/build/p-WJHaLJS_.js +0 -1
  508. package/dist/playground/build/p-b7ac65c6.entry.js +0 -1
  509. package/dist/playground/build/p-bba3c7b4.entry.js +0 -1
  510. package/dist/playground/build/p-bf47c46a.entry.js +0 -13
  511. package/dist/playground/build/p-c448b4ce.entry.js +0 -1
  512. package/dist/playground/build/p-cb5ebd01.entry.js +0 -1
  513. package/dist/playground/build/p-e762a4b7.entry.js +0 -1
  514. package/dist/playground/build/p-fb76473e.entry.js +0 -1
  515. package/dist/playground/build/p-tSny_c7b.js +0 -3
  516. package/dist/webquark/p-04799ed0.entry.js +0 -1
  517. package/dist/webquark/p-0610d5b2.entry.js +0 -1
  518. package/dist/webquark/p-160cb4e4.entry.js +0 -1
  519. package/dist/webquark/p-1cf51c80.entry.js +0 -1
  520. package/dist/webquark/p-3d674223.entry.js +0 -1
  521. package/dist/webquark/p-4fff116c.entry.js +0 -1
  522. package/dist/webquark/p-675d0d03.entry.js +0 -13
  523. package/dist/webquark/p-70c4f92f.entry.js +0 -1
  524. package/dist/webquark/p-72dc1231.entry.js +0 -1
  525. package/dist/webquark/p-736b1c8c.entry.js +0 -1
  526. package/dist/webquark/p-96922229.entry.js +0 -1
  527. package/dist/webquark/p-BLvl8YLq.js +0 -1
  528. package/dist/webquark/p-BvBRW3dl.js +0 -1
  529. package/dist/webquark/p-CFuqfXuv.js +0 -9
  530. package/dist/webquark/p-DmqVhVoj.js +0 -1
  531. package/dist/webquark/p-WJHaLJS_.js +0 -1
  532. package/dist/webquark/p-b7ac65c6.entry.js +0 -1
  533. package/dist/webquark/p-bba3c7b4.entry.js +0 -1
  534. package/dist/webquark/p-bf47c46a.entry.js +0 -13
  535. package/dist/webquark/p-c448b4ce.entry.js +0 -1
  536. package/dist/webquark/p-cb5ebd01.entry.js +0 -1
  537. package/dist/webquark/p-e762a4b7.entry.js +0 -1
  538. package/dist/webquark/p-fb76473e.entry.js +0 -1
  539. package/dist/webquark/p-tSny_c7b.js +0 -3
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-tSny_c7b.js';
2
- import { s as spaceValue } from './tokens-CyPFM3XV.js';
1
+ import { r as registerInstance, h } from './index-B5ElFlHv.js';
2
+ import { s as spaceValue } from './tokens-B4Mg1xEw.js';
3
3
 
4
4
  const gridCss = () => `:host{display:block;min-width:0}div{display:grid;min-width:0;align-items:start;column-gap:var(--_q-column-gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--_q-min-item), calc((100% - (var(--_q-columns) - 1) * var(--_q-column-gap)) / var(--_q-columns)))), 1fr))}slot{display:contents}::slotted(*){min-width:0}::slotted([data-q-span='full']){grid-column:1 / -1}`;
5
5
 
@@ -14,7 +14,7 @@ const QGrid = class {
14
14
  columnGap;
15
15
  render() {
16
16
  const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
17
- return h("div", { key: '0e35bf62529cfe1534ee7f93878569e678719338', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: 'bc4ace6988aac76c2c225fb8c0dd991a287b960f' }));
17
+ return h("div", { key: '21b51d66bb0055863da4517c11a4e4c85c3f189f', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: 'e507255e78d83768453368cd49562a00a709d9ea' }));
18
18
  }
19
19
  };
20
20
  QGrid.style = gridCss();
@@ -1,5 +1,5 @@
1
- import { h, r as registerInstance, a as getElement } from './index-tSny_c7b.js';
2
- import { a as resolveRegisteredQIcon, p as prepareQIconDefinition, i as isQIconStrictMode } from './registry-BvBRW3dl.js';
1
+ import { h, r as registerInstance, a as getElement } from './index-B5ElFlHv.js';
2
+ import { M as MAX_ICON_SVG_BYTES, S as SVG_NAMESPACE, a as cloneIconAttributes, b as cloneIconNodes, v as validateIconReferences, d as assertIconNode, e as MAX_ICON_ATTRIBUTES, X as XLINK_NAMESPACE, f as createIconBudget, g as resolveRegisteredQIcon, p as prepareQIconDefinition, i as isQIconStrictMode } from './registry-GHhpSfZU.js';
3
3
 
4
4
  const LUCIDE_STATIC_VERSION = '0.416.0';
5
5
  const FONTAWESOME_FREE_VERSION = '6.7.2';
@@ -9,17 +9,45 @@ async function fetchIconSvg(url, fetchTimeout) {
9
9
  const timeout = Number.isFinite(fetchTimeout) && fetchTimeout > 0 ? fetchTimeout : DEFAULT_FETCH_TIMEOUT_MS;
10
10
  const controller = typeof AbortController !== 'undefined' ? new AbortController() : undefined;
11
11
  const timer = controller ? setTimeout(() => controller.abort(), timeout) : undefined;
12
+ let reader;
12
13
  try {
13
14
  const response = await fetch(url, controller ? { signal: controller.signal } : undefined);
14
- if (!response.ok) {
15
+ if (!response.ok)
15
16
  throw new Error(`Failed to load icon SVG from ${url} (status: ${response.status})`);
17
+ const declaredSize = response.headers?.get('content-length');
18
+ if (declaredSize && Number(declaredSize) > MAX_ICON_SVG_BYTES) {
19
+ controller?.abort();
20
+ await response.body?.cancel().catch(() => undefined);
21
+ throw new Error(`Icon SVG exceeds ${MAX_ICON_SVG_BYTES} bytes.`);
16
22
  }
17
- return await response.text();
23
+ if (!response.body?.getReader)
24
+ throw new Error('Icon SVG requires a bounded streaming response.');
25
+ reader = response.body.getReader();
26
+ const decoder = new TextDecoder('utf-8', { fatal: true });
27
+ const chunks = [];
28
+ let bytes = 0;
29
+ while (true) {
30
+ const next = await reader.read();
31
+ if (next.done)
32
+ break;
33
+ bytes += next.value.byteLength;
34
+ if (bytes > MAX_ICON_SVG_BYTES)
35
+ throw new Error(`Icon SVG exceeds ${MAX_ICON_SVG_BYTES} bytes.`);
36
+ chunks.push(decoder.decode(next.value, { stream: true }));
37
+ }
38
+ chunks.push(decoder.decode());
39
+ return chunks.join('');
40
+ }
41
+ catch (error) {
42
+ controller?.abort();
43
+ if (reader)
44
+ await reader.cancel().catch(() => undefined);
45
+ throw error;
18
46
  }
19
47
  finally {
20
- if (timer !== undefined) {
48
+ reader?.releaseLock();
49
+ if (timer !== undefined)
21
50
  clearTimeout(timer);
22
- }
23
51
  }
24
52
  }
25
53
 
@@ -47,68 +75,90 @@ function renderQIconDefinition(definition) {
47
75
  return h('svg', attributes, definition.node.map(renderNode));
48
76
  }
49
77
 
50
- const BLOCKED_SVG_ELEMENTS = new Set(['script', 'foreignobject', 'iframe', 'object', 'embed', 'link', 'meta']);
51
- const BLOCKED_SVG_TAG_PATTERN = /<\s*(script|foreignObject|iframe|object|embed|link|meta)\b[\s\S]*?(?:<\/\s*\1\s*>|\/\s*>)/gi;
52
- const EVENT_HANDLER_ATTR_PATTERN = /\s+on[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi;
53
- const BLOCKED_ATTR_PATTERN = /\s+(style|tabindex)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi;
54
- const HREF_ATTR_PATTERN = /\s+(xlink:href|href)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi;
55
- const JAVASCRIPT_ATTR_VALUE_PATTERN = /\s+[a-z_:.-]+\s*=\s*("[^"]*javascript:[^"]*"|'[^']*javascript:[^']*'|[^\s>]*javascript:[^\s>]*)/gi;
78
+ /** Fail closed without a real XML parser; no regex recovery or browser work at import. */
56
79
  function sanitizeIconSvg(svgText) {
57
- if (typeof DOMParser === 'undefined' || typeof XMLSerializer === 'undefined') {
58
- return sanitizeIconSvgString(svgText);
59
- }
60
- const parser = new DOMParser();
61
- const document = parser.parseFromString(svgText, 'image/svg+xml');
62
- const parserError = document.querySelector('parsererror');
63
- const svg = document.documentElement;
64
- if (parserError || !svg || svg.tagName.toLowerCase() !== 'svg') {
65
- return sanitizeIconSvgString(svgText);
66
- }
67
- const walk = (element) => {
68
- const tagName = element.tagName.toLowerCase();
69
- if (BLOCKED_SVG_ELEMENTS.has(tagName)) {
70
- element.remove();
71
- return;
80
+ if (typeof DOMParser === 'undefined' || typeof XMLSerializer === 'undefined'
81
+ || typeof svgText !== 'string' || svgText.length > MAX_ICON_SVG_BYTES
82
+ || new TextEncoder().encode(svgText).byteLength > MAX_ICON_SVG_BYTES
83
+ || /<!\s*(?:DOCTYPE|ENTITY)/i.test(svgText))
84
+ return '';
85
+ try {
86
+ const parsed = new DOMParser().parseFromString(svgText, 'image/svg+xml');
87
+ const root = parsed.documentElement;
88
+ if (parsed.doctype || !root || root.tagName !== 'svg'
89
+ || parsed.getElementsByTagName('parsererror').length || ![null, SVG_NAMESPACE].includes(root.namespaceURI))
90
+ return '';
91
+ for (const child of Array.from(parsed.childNodes)) {
92
+ if (child !== root && child.nodeType !== 8 && !(child.nodeType === 3 && !child.textContent?.trim()))
93
+ return '';
72
94
  }
73
- Array.from(element.attributes).forEach(attribute => {
74
- const name = attribute.name.toLowerCase();
75
- const value = attribute.value.trim().toLowerCase();
76
- if (name.startsWith('on') ||
77
- name === 'style' ||
78
- name === 'tabindex' ||
79
- value.startsWith('javascript:') ||
80
- value.includes('url(javascript:') ||
81
- ((name === 'href' || name === 'xlink:href') && tagName === 'use' && !value.startsWith('#'))) {
82
- element.removeAttribute(attribute.name);
95
+ const namespace = root.namespaceURI;
96
+ const readAttributes = (element) => {
97
+ if (element.attributes.length > MAX_ICON_ATTRIBUTES)
98
+ throw new TypeError('SVG attribute limit exceeded.');
99
+ const attributes = {};
100
+ for (const attribute of Array.from(element.attributes)) {
101
+ if (attribute.name === 'xlink:href') {
102
+ if (attribute.namespaceURI !== XLINK_NAMESPACE)
103
+ throw new TypeError('Unsupported SVG attribute namespace.');
104
+ }
105
+ else if (attribute.namespaceURI && attribute.namespaceURI !== 'http://www.w3.org/2000/xmlns/') {
106
+ throw new TypeError('Unsupported SVG attribute namespace.');
107
+ }
108
+ attributes[attribute.name] = attribute.value;
83
109
  }
84
- });
85
- Array.from(element.children).forEach(walk);
86
- };
87
- walk(svg);
88
- svg.setAttribute('aria-hidden', 'true');
89
- svg.setAttribute('focusable', 'false');
90
- return new XMLSerializer().serializeToString(svg);
91
- }
92
- function sanitizeIconSvgString(svgText) {
93
- if (!/<svg[\s>]/i.test(svgText)) {
110
+ return attributes;
111
+ };
112
+ const parseBudget = createIconBudget();
113
+ const readChildren = (element, depth) => {
114
+ const children = [];
115
+ for (const child of Array.from(element.childNodes)) {
116
+ if (child.nodeType === 8 || child.nodeType === 3 && !child.textContent?.trim())
117
+ continue;
118
+ if (child.nodeType !== 1)
119
+ throw new TypeError('Unsupported SVG content.');
120
+ const node = child;
121
+ if (node.namespaceURI !== namespace)
122
+ throw new TypeError('Unsupported SVG element namespace.');
123
+ assertIconNode(node.tagName, depth, parseBudget, 'Fetched SVG');
124
+ children.push([node.tagName, readAttributes(node), readChildren(node, depth + 1)]);
125
+ }
126
+ return children;
127
+ };
128
+ const rawNodes = readChildren(root, 1);
129
+ const budget = createIconBudget();
130
+ const attributes = cloneIconAttributes(readAttributes(root), 'svg', budget, 'Fetched SVG root');
131
+ const nodes = cloneIconNodes(rawNodes, budget, 'Fetched SVG nodes');
132
+ validateIconReferences(nodes, attributes);
133
+ const output = parsed.implementation.createDocument(SVG_NAMESPACE, 'svg', null);
134
+ const apply = (element, attrs) => {
135
+ for (const [name, value] of Object.entries(attrs)) {
136
+ if (name === 'xmlns' || name === 'xmlns:xlink')
137
+ continue;
138
+ if (name === 'xlink:href')
139
+ element.setAttributeNS(XLINK_NAMESPACE, name, value);
140
+ else
141
+ element.setAttribute(name, value);
142
+ }
143
+ };
144
+ const append = (parent, items) => {
145
+ for (const [tag, attrs, children] of items) {
146
+ const element = output.createElementNS(SVG_NAMESPACE, tag);
147
+ apply(element, attrs);
148
+ if (children)
149
+ append(element, children);
150
+ parent.appendChild(element);
151
+ }
152
+ };
153
+ apply(output.documentElement, attributes);
154
+ output.documentElement.setAttribute('aria-hidden', 'true');
155
+ output.documentElement.setAttribute('focusable', 'false');
156
+ append(output.documentElement, nodes);
157
+ return new XMLSerializer().serializeToString(output.documentElement);
158
+ }
159
+ catch (_) {
94
160
  return '';
95
161
  }
96
- return svgText
97
- .replace(BLOCKED_SVG_TAG_PATTERN, '')
98
- .replace(EVENT_HANDLER_ATTR_PATTERN, '')
99
- .replace(BLOCKED_ATTR_PATTERN, '')
100
- .replace(JAVASCRIPT_ATTR_VALUE_PATTERN, '')
101
- .replace(HREF_ATTR_PATTERN, (match, _name, rawValue) => {
102
- const value = String(rawValue).replace(/^['"]|['"]$/g, '').trim().toLowerCase();
103
- return value.startsWith('#') ? match : '';
104
- })
105
- .replace(/<svg\b([^>]*)>/i, (_match, attributes) => {
106
- const cleanAttributes = String(attributes)
107
- .replace(/\s+aria-hidden\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, '')
108
- .replace(/\s+focusable\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, '');
109
- return `<svg${cleanAttributes} aria-hidden="true" focusable="false">`;
110
- })
111
- .trim();
112
162
  }
113
163
 
114
164
  function getIconSizeStyle(size) {
@@ -125,13 +175,28 @@ function getIconSizeStyle(size) {
125
175
  }
126
176
 
127
177
  const BINARY_ICON_EXTENSIONS = ['.png', '.jpg', '.jpeg', '.webp', '.gif', '.ico'];
178
+ const URL_BASE = 'http://localhost';
179
+ const ASSET_PROTOCOLS = ['http:', 'https:', 'file:', 'blob:'];
128
180
  function getResolvedLibraryVersion(version, fallback) {
129
- const trimmedVersion = version?.trim();
130
- return trimmedVersion || fallback;
181
+ return version?.trim() || fallback;
182
+ }
183
+ function parseIconUrl(url, base = URL_BASE) {
184
+ const parsed = new URL(url, base);
185
+ if (!ASSET_PROTOCOLS.includes(parsed.protocol)
186
+ && !(parsed.protocol === 'data:' && /^data:image\/svg\+xml(?:[;,])/i.test(url))) {
187
+ throw new TypeError('Icon URLs must use HTTP(S), file/blob assets, a relative path, or SVG image data.');
188
+ }
189
+ return parsed;
131
190
  }
132
191
  function isBinaryIconUrl(url) {
133
- const urlLower = url.toLowerCase();
134
- return BINARY_ICON_EXTENSIONS.some(extension => urlLower.endsWith(extension));
192
+ try {
193
+ const parsed = parseIconUrl(url);
194
+ return ASSET_PROTOCOLS.includes(parsed.protocol)
195
+ && BINARY_ICON_EXTENSIONS.some(extension => parsed.pathname.toLowerCase().endsWith(extension));
196
+ }
197
+ catch (_) {
198
+ return false;
199
+ }
135
200
  }
136
201
  function resolveIconUrl(options) {
137
202
  const cleanName = options.name.trim();
@@ -144,32 +209,21 @@ function resolveIconUrl(options) {
144
209
  return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${version}/svgs/solid/${encodeURIComponent(cleanName)}.svg`;
145
210
  }
146
211
  if (options.library === 'local') {
147
- let path = options.localPath || '/assets/icons/';
148
- if (!path.endsWith('/')) {
149
- path += '/';
150
- }
151
- return `${path}${cleanName}${cleanName.includes('.') ? '' : '.svg'}`;
212
+ const path = options.localPath || '/assets/icons/';
213
+ const suffixIndex = cleanName.search(/[?#]/);
214
+ const filename = suffixIndex < 0 ? cleanName : cleanName.slice(0, suffixIndex);
215
+ const suffix = suffixIndex < 0 ? '' : cleanName.slice(suffixIndex);
216
+ const basename = filename.slice(filename.lastIndexOf('/') + 1);
217
+ return `${path.endsWith('/') ? path : `${path}/`}${filename}${basename.includes('.') ? '' : '.svg'}${suffix}`;
152
218
  }
153
- if (options.library.includes('{name}')) {
219
+ if (options.library.includes('{name}'))
154
220
  return options.library.replace('{name}', cleanName);
155
- }
156
- let basePath = options.library;
157
- if (!basePath.endsWith('/')) {
158
- basePath += '/';
159
- }
160
- return `${basePath}${cleanName}`;
221
+ return `${options.library.endsWith('/') ? options.library : `${options.library}/`}${cleanName}`;
161
222
  }
162
223
  function resolveFetchableIconUrl(url, locationLike = typeof window !== 'undefined' ? window.location : undefined) {
163
- if (!locationLike || /^https?:\/\//i.test(url) || url.startsWith('data:')) {
164
- return url;
165
- }
166
- const base = locationLike.origin && locationLike.origin !== 'null' ? locationLike.origin : 'http://localhost';
167
- try {
168
- return new URL(url, base).href;
169
- }
170
- catch (_) {
171
- return url;
172
- }
224
+ const base = locationLike?.origin && locationLike.origin !== 'null' ? locationLike.origin : URL_BASE;
225
+ const parsed = parseIconUrl(url, base);
226
+ return locationLike ? parsed.href : url;
173
227
  }
174
228
 
175
229
  const iconCss = () => `: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}`;
@@ -0,0 +1,199 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-B5ElFlHv.js';
2
+ import { i as isImageCropValid, h as hasPartialImageCrop, c as calculateImageCropGeometry } from './image-crop-BcL0NVv0.js';
3
+
4
+ const imageComparisonCss = () => `:host{display:block;min-width:0;font-family:var(--q-font-family, inherit)}.frame{position:relative;width:100%;overflow:hidden;border-radius:var(--q-radius-md, 7px);background:var(--q-bg-surface-2, #19243b);touch-action:pan-y;user-select:none}.frame.ready{cursor:ew-resize}.layer,.viewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.image{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none}.image.cropped{max-width:none;max-height:none;object-fit:fill}.before{background:var(--q-bg-surface-2, #19243b)}.status{position:absolute;inset:0;display:grid;place-items:center;background:var(--q-bg-surface-2, #19243b);color:var(--q-fg-base, #f9fafb);font-size:.875rem}.decorations{pointer-events:none}.label{position:absolute;top:var(--q-space-sm, .5rem);padding:var(--q-space-xs, .25rem) var(--q-space-sm, .5rem);border-radius:var(--q-radius-sm, 4px);background:var(--q-bg-surface-1, #111827);color:var(--q-fg-base, #f9fafb);font-size:.875rem}.before-label{left:var(--q-space-sm, .5rem)}.after-label{right:var(--q-space-sm, .5rem)}.divider{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-50%);background:var(--q-color-primary, #60a5fa)}.handle{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--q-bg-surface-1, #111827);color:var(--q-fg-base, #f9fafb);border:2px solid var(--q-color-primary, #60a5fa);font-size:24px}.control{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;pointer-events:none;direction:ltr}.frame:focus-within{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}`;
5
+
6
+ const QImageComparison = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.qChange = createEvent(this, "qChange");
10
+ }
11
+ /** Source of the image revealed on the left. */
12
+ beforeSrc = '';
13
+ /** Source of the image revealed on the right. */
14
+ afterSrc = '';
15
+ /** Caption for the left image. */
16
+ beforeLabel = 'Before';
17
+ /** Caption for the right image. */
18
+ afterLabel = 'After';
19
+ /** Source-percentage rectangle selected from Before; omitted means the full image. */
20
+ beforeCrop;
21
+ /** Source-percentage rectangle selected from After; omitted means the full image. */
22
+ afterCrop;
23
+ /** Positive frame width / height ratio. Omitted derives from partial After, then Before, otherwise 16 / 9; invalid values use 16 / 9. */
24
+ aspectRatio;
25
+ /** Percentage of Before revealed, clamped to 0–100. */
26
+ position = 50;
27
+ /** Accessible description of the Before image. */
28
+ beforeAlt = '';
29
+ /** Accessible description of the After image. */
30
+ afterAlt = '';
31
+ /** Accessible name of the comparison control. */
32
+ ariaLabel = 'Image comparison';
33
+ /** Emits the numeric reveal percentage continuously for user changes only. */
34
+ qChange;
35
+ beforeStatus = 'loading';
36
+ afterStatus = 'loading';
37
+ beforeDimensions;
38
+ afterDimensions;
39
+ generation = 0;
40
+ frame;
41
+ range;
42
+ pointer;
43
+ componentWillLoad() {
44
+ this.normalizePosition();
45
+ }
46
+ normalizePosition() {
47
+ const next = Number.isFinite(this.position) ? Math.max(0, Math.min(100, this.position)) : 50;
48
+ if (next !== this.position)
49
+ this.position = next;
50
+ }
51
+ resetImages() {
52
+ this.generation++;
53
+ this.beforeStatus = 'loading';
54
+ this.afterStatus = 'loading';
55
+ this.beforeDimensions = undefined;
56
+ this.afterDimensions = undefined;
57
+ this.endPointer();
58
+ }
59
+ resetGesture() {
60
+ this.endPointer();
61
+ }
62
+ disconnectedCallback() {
63
+ this.endPointer();
64
+ }
65
+ get ready() {
66
+ return !!this.beforeSrc && !!this.afterSrc
67
+ && this.beforeStatus === 'loaded' && this.afterStatus === 'loaded'
68
+ && !this.cropUnavailable;
69
+ }
70
+ get cropUnavailable() {
71
+ return (this.beforeCrop !== undefined && (!isImageCropValid(this.beforeCrop)
72
+ || (this.beforeStatus === 'loaded' && !this.beforeDimensions)))
73
+ || (this.afterCrop !== undefined && (!isImageCropValid(this.afterCrop)
74
+ || (this.afterStatus === 'loaded' && !this.afterDimensions)));
75
+ }
76
+ get frameRatio() {
77
+ if (this.aspectRatio !== undefined)
78
+ return Number.isFinite(this.aspectRatio) && this.aspectRatio > 0 ? this.aspectRatio : 16 / 9;
79
+ const afterPartial = hasPartialImageCrop(this.afterCrop);
80
+ const crop = afterPartial ? this.afterCrop : this.beforeCrop;
81
+ const dimensions = afterPartial ? this.afterDimensions : this.beforeDimensions;
82
+ return hasPartialImageCrop(crop) && dimensions
83
+ ? calculateImageCropGeometry(dimensions.width, dimensions.height, crop)?.aspectRatio ?? 16 / 9
84
+ : 16 / 9;
85
+ }
86
+ imageResult(side, generation, source, loaded, image) {
87
+ if (generation !== this.generation || source !== (side === 'before' ? this.beforeSrc : this.afterSrc))
88
+ return;
89
+ const dimensions = loaded && image && Number.isFinite(image.naturalWidth) && image.naturalWidth > 0
90
+ && Number.isFinite(image.naturalHeight) && image.naturalHeight > 0
91
+ ? { width: image.naturalWidth, height: image.naturalHeight } : undefined;
92
+ if (side === 'before') {
93
+ this.beforeDimensions = dimensions;
94
+ this.beforeStatus = loaded ? 'loaded' : 'error';
95
+ }
96
+ else {
97
+ this.afterDimensions = dimensions;
98
+ this.afterStatus = loaded ? 'loaded' : 'error';
99
+ }
100
+ if (!loaded)
101
+ this.endPointer();
102
+ }
103
+ updatePosition(value) {
104
+ if (!this.ready || !Number.isFinite(value))
105
+ return;
106
+ const next = Math.max(0, Math.min(100, value));
107
+ if (next === this.position)
108
+ return;
109
+ this.position = next;
110
+ this.qChange.emit(next);
111
+ }
112
+ moveTo(clientX) {
113
+ const rect = this.frame.getBoundingClientRect();
114
+ if (rect.width > 0)
115
+ this.updatePosition((clientX - rect.left) / rect.width * 100);
116
+ }
117
+ handlePointerDown = (event) => {
118
+ if (!this.ready || this.pointer || !event.isPrimary || event.button !== 0)
119
+ return;
120
+ this.pointer = { id: event.pointerId, x: event.clientX, y: event.clientY, pending: event.pointerType === 'touch' };
121
+ if (!this.pointer.pending) {
122
+ this.range?.focus({ preventScroll: true });
123
+ this.frame?.setPointerCapture(event.pointerId);
124
+ this.moveTo(event.clientX);
125
+ event.preventDefault();
126
+ }
127
+ };
128
+ handlePointerMove = (event) => {
129
+ if (!this.pointer || this.pointer.id !== event.pointerId)
130
+ return;
131
+ if (this.pointer.pending) {
132
+ const x = Math.abs(event.clientX - this.pointer.x);
133
+ const y = Math.abs(event.clientY - this.pointer.y);
134
+ if (Math.max(x, y) < 8)
135
+ return;
136
+ if (y >= x) {
137
+ this.endPointer();
138
+ return;
139
+ }
140
+ this.pointer.pending = false;
141
+ this.range?.focus({ preventScroll: true });
142
+ this.frame?.setPointerCapture(event.pointerId);
143
+ }
144
+ this.moveTo(event.clientX);
145
+ };
146
+ handlePointerEnd = (event) => {
147
+ if (this.pointer?.id === event.pointerId)
148
+ this.endPointer();
149
+ };
150
+ endPointer() {
151
+ const id = this.pointer?.id;
152
+ this.pointer = undefined;
153
+ if (id !== undefined && this.frame?.hasPointerCapture(id))
154
+ this.frame.releasePointerCapture(id);
155
+ }
156
+ boxStyle(box) {
157
+ return box && { left: `${box.left}%`, top: `${box.top}%`, width: `${box.width}%`, height: `${box.height}%` };
158
+ }
159
+ renderImage(side, source, generation, ratio) {
160
+ if (!source)
161
+ return null;
162
+ const crop = side === 'before' ? this.beforeCrop : this.afterCrop;
163
+ const dimensions = side === 'before' ? this.beforeDimensions : this.afterDimensions;
164
+ const geometry = hasPartialImageCrop(crop) && dimensions
165
+ ? calculateImageCropGeometry(dimensions.width, dimensions.height, crop, ratio) : undefined;
166
+ return (h("div", { part: `${side}-layer`, class: { layer: true, before: side === 'before' }, style: side === 'before' ? { clipPath: `inset(0 ${100 - this.position}% 0 0)` } : undefined }, h("div", { part: `${side}-viewport`, class: "viewport", style: this.boxStyle(geometry?.viewport) }, h("img", { key: `${side}-${generation}`, part: `${side}-image`, class: { image: true, cropped: !!geometry }, style: this.boxStyle(geometry?.image), src: source, alt: side === 'before' ? this.beforeAlt : this.afterAlt, draggable: false, onLoad: event => this.imageResult(side, generation, source, true, event.currentTarget), onError: () => this.imageResult(side, generation, source, false) }))));
167
+ }
168
+ render() {
169
+ const generation = this.generation;
170
+ const beforeSrc = this.beforeSrc;
171
+ const afterSrc = this.afterSrc;
172
+ const ratio = this.frameRatio;
173
+ const failed = !beforeSrc || !afterSrc || this.beforeStatus === 'error' || this.afterStatus === 'error' || this.cropUnavailable;
174
+ return (h("div", { key: 'e5cb91f961fdf7315695a18493040d13d3941db9', part: "frame", class: { frame: true, ready: this.ready }, style: { aspectRatio: String(ratio) }, ref: el => this.frame = el, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerEnd, onPointerCancel: this.handlePointerEnd, onLostPointerCapture: this.handlePointerEnd }, this.renderImage('after', afterSrc, generation, ratio), this.renderImage('before', beforeSrc, generation, ratio), !this.ready && (h("div", { key: '1f2475c783766755509d9d54dcdfc4df47e53dcf', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: '2eec4ab18af3a0b36131c02863dc5c5a2df18694', class: "decorations", "aria-hidden": "true" }, h("span", { key: '7ae92c04fafd0bd31de0b401f76ce7a034b02048', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '8e8b8de5bc9d7b21673f77846b9163b613a7088d', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: '4854d62180509a1d228e4bd31e5ce7d7a52c1f37', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: 'bbf3b58ccbcb19480728ea7b99795c0bb358c8ad', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'd1137935c724bcc8e70c3c098904d3086db67a0b', part: "control", class: "control", ref: el => this.range = el, type: "range", min: "0", max: "100", step: "1", value: this.position, disabled: !this.ready, "aria-label": this.ariaLabel || 'Image comparison', "aria-valuetext": `${Math.round(this.position)}% ${this.beforeLabel || 'Before'} revealed`, onInput: event => this.updatePosition(Number(event.target.value)) })));
175
+ }
176
+ static get watchers() { return {
177
+ "position": [{
178
+ "normalizePosition": 0
179
+ }],
180
+ "beforeSrc": [{
181
+ "resetImages": 0
182
+ }],
183
+ "afterSrc": [{
184
+ "resetImages": 0
185
+ }],
186
+ "beforeCrop": [{
187
+ "resetGesture": 0
188
+ }],
189
+ "afterCrop": [{
190
+ "resetGesture": 0
191
+ }],
192
+ "aspectRatio": [{
193
+ "resetGesture": 0
194
+ }]
195
+ }; }
196
+ };
197
+ QImageComparison.style = imageComparisonCss();
198
+
199
+ export { QImageComparison as q_image_comparison };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-tSny_c7b.js';
2
- import { s as spaceValue } from './tokens-CyPFM3XV.js';
1
+ import { r as registerInstance, h } from './index-B5ElFlHv.js';
2
+ import { s as spaceValue } from './tokens-B4Mg1xEw.js';
3
3
 
4
4
  const inlineCss = () => `:host{display:block;min-width:0}div{display:flex;min-width:0}slot{display:contents}::slotted(*){min-width:0}`;
5
5
 
@@ -12,7 +12,7 @@ const QInline = class {
12
12
  justify = 'start';
13
13
  wrap = true;
14
14
  render() {
15
- return h("div", { key: 'ebe4ece8eeb27fbe52feda65eda69a7717fc3c44', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: '939bc58eb0fb9a3bf4246e51f7587c65d1014086' }));
15
+ return h("div", { key: '909f9b29f7dabbb0f900d2295f1e7a6da39f2a14', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: 'b85ecc74c6b4c25f3e12787e553a21018ce591ba' }));
16
16
  }
17
17
  };
18
18
  QInline.style = inlineCss();