@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,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D_tObBJa.js');
4
- var field = require('./field-CbUc_AWx.js');
3
+ var index = require('./index-DWXhKHCB.js');
4
+ var formFieldState = require('./form-field-state-P63wN30v.js');
5
+ var formFieldAdapter = require('./form-field-adapter-D0CJ6poh.js');
6
+ var field = require('./field-CsrQGhG-.js');
5
7
  var formControlValidity = require('./form-control-validity-D1ukC0_e.js');
6
8
  var dom = require('./dom-Dk77oFF6.js');
7
9
 
@@ -27,7 +29,7 @@ const QInput = class {
27
29
  hostRef.$hostElement$["s-ei"] = this.internals;
28
30
  }
29
31
  }
30
- // ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
32
+ get el() { return index.getElement(this); }
31
33
  value = "";
32
34
  placeholder = "";
33
35
  label;
@@ -67,12 +69,17 @@ const QInput = class {
67
69
  qClick;
68
70
  inputEl;
69
71
  // ========================= [2] INTERNAL STATE & REFS =========================
72
+ disabledState = false;
73
+ get isDisabled() {
74
+ return formFieldState.isFieldDisabled(this.el, this.disabled);
75
+ }
70
76
  initialValue = "";
71
77
  // ========================= [3] LIFECYCLE & WATCHERS ==========================
72
- watchValue(newValue) {
73
- if (this.internals && typeof this.internals.setFormValue === 'function') {
74
- this.internals.setFormValue(newValue);
75
- }
78
+ watchValue() {
79
+ this.syncValidity();
80
+ }
81
+ watchConstraints() {
82
+ this.syncValidity();
76
83
  }
77
84
  componentWillLoad() {
78
85
  this.initialValue = this.value || "";
@@ -80,14 +87,32 @@ const QInput = class {
80
87
  this.internals.setFormValue(this.value);
81
88
  }
82
89
  }
90
+ formDisabledCallback() {
91
+ this.syncValidity();
92
+ }
93
+ componentDidLoad() {
94
+ formFieldAdapter.registerFormField(this.el, {
95
+ kind: 'text',
96
+ owner: () => this.internals?.form ?? null,
97
+ active: () => true,
98
+ value: () => this.value,
99
+ assign: value => { this.value = value; },
100
+ reconcile: () => {
101
+ if (this.inputEl && this.inputEl.value !== this.value)
102
+ this.inputEl.value = this.value;
103
+ this.internals?.setFormValue?.(this.value);
104
+ this.syncValidity();
105
+ },
106
+ reset: () => this.formResetCallback(),
107
+ validate: report => report ? this.internals?.reportValidity?.() ?? true : this.internals?.checkValidity?.() ?? true,
108
+ });
109
+ }
83
110
  componentDidRender() {
84
111
  this.syncValidity();
85
112
  }
86
113
  formResetCallback() {
87
114
  this.value = this.initialValue;
88
- if (this.internals && typeof this.internals.setFormValue === 'function') {
89
- this.internals.setFormValue(this.value);
90
- }
115
+ this.syncValidity();
91
116
  }
92
117
  // ============================ [4] EXPOSED METHODS ============================
93
118
  /** Moves focus to the native input. */
@@ -124,12 +149,26 @@ const QInput = class {
124
149
  this.hasSuffix = hasAssignedSlotContent(slot);
125
150
  };
126
151
  syncValidity() {
152
+ const disabled = formFieldState.syncFieldHost(this.el, this.disabled, this.name, this.required);
153
+ if (this.disabledState !== disabled)
154
+ this.disabledState = disabled;
127
155
  if (!this.inputEl || !this.internals)
128
156
  return;
157
+ this.inputEl.disabled = disabled;
158
+ this.inputEl.required = this.required;
159
+ this.inputEl.readOnly = this.el.hasAttribute('readonly');
160
+ this.inputEl.name = this.name ?? '';
161
+ this.inputEl.type = this.type === 'password' && this.passwordVisible ? 'text' : this.type;
162
+ formFieldState.syncNativeAttribute(this.inputEl, 'min', this.min);
163
+ formFieldState.syncNativeAttribute(this.inputEl, 'max', this.max);
164
+ formFieldState.syncNativeAttribute(this.inputEl, 'step', this.step);
165
+ if (this.inputEl.value !== this.value)
166
+ this.inputEl.value = this.value;
167
+ this.internals.setFormValue?.(disabled ? null : this.value);
129
168
  formControlValidity.syncNativeControlValidity({
130
169
  internals: this.internals,
131
170
  control: this.inputEl,
132
- disabled: this.disabled,
171
+ disabled: this.isDisabled,
133
172
  customError: this.error || this.errorMessage,
134
173
  });
135
174
  }
@@ -169,7 +208,7 @@ const QInput = class {
169
208
  return clamped;
170
209
  }
171
210
  stepValue(direction) {
172
- if (this.disabled)
211
+ if (this.isDisabled)
173
212
  return;
174
213
  const stepVal = (this.step !== undefined && this.step !== null) ? this.step : 1;
175
214
  const newValue = this.clampNumericValue(this.resolveNumericBase() + (stepVal * direction));
@@ -215,11 +254,13 @@ const QInput = class {
215
254
  this.qFocus.emit(ev);
216
255
  };
217
256
  handleClick = (ev) => {
218
- if (this.disabled)
257
+ if (this.isDisabled)
219
258
  return;
220
259
  this.qClick.emit(ev);
221
260
  };
222
- handleClear = () => {
261
+ handleClear = (event) => {
262
+ if (event && this.isDisabled)
263
+ return;
223
264
  this.value = "";
224
265
  this.qInput.emit(this.value);
225
266
  this.qChange.emit(this.value);
@@ -230,7 +271,7 @@ const QInput = class {
230
271
  handlePasswordToggle = (ev) => {
231
272
  ev.preventDefault();
232
273
  ev.stopPropagation();
233
- if (this.disabled || this.type !== 'password')
274
+ if (this.isDisabled || this.type !== 'password')
234
275
  return;
235
276
  const selectionStart = this.inputEl?.selectionStart ?? null;
236
277
  const selectionEnd = this.inputEl?.selectionEnd ?? null;
@@ -245,7 +286,7 @@ const QInput = class {
245
286
  });
246
287
  };
247
288
  handleKeyDown = (ev) => {
248
- if (this.type !== 'number' || this.disabled)
289
+ if (this.type !== 'number' || this.isDisabled)
249
290
  return;
250
291
  if (ev.key === 'ArrowUp') {
251
292
  ev.preventDefault();
@@ -260,8 +301,8 @@ const QInput = class {
260
301
  render() {
261
302
  const hasError = !!(this.error || this.errorMessage);
262
303
  const displayError = this.error || this.errorMessage;
263
- const showClearBtn = this.clearable && !this.disabled && this.value.length > 0;
264
- const showPasswordToggle = this.type === 'password' && !this.disabled;
304
+ const showClearBtn = this.clearable && !this.isDisabled && this.value.length > 0;
305
+ const showPasswordToggle = this.type === 'password' && !this.isDisabled;
265
306
  const inputType = showPasswordToggle && this.passwordVisible ? 'text' : this.type;
266
307
  const showSuffixContainer = this.hasSuffix || showClearBtn || showPasswordToggle;
267
308
  const numericValue = parseFloat(this.value);
@@ -269,22 +310,49 @@ const QInput = class {
269
310
  const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
270
311
  const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
271
312
  const ariaLabel = this.ariaLabel?.trim() || undefined;
272
- return (index.h("div", { key: '4e3f10c0256c42bba21ed2c50d8d0b817252e418', style: field.feedbackStyle(this.reserveFeedback), class: {
313
+ return (index.h("div", { key: '0e7840b7336a1fa58a1e7a8caadf5201d01fddaf', style: field.feedbackStyle(this.reserveFeedback), class: {
273
314
  'input-wrapper': true,
274
- 'is-disabled': this.disabled,
315
+ 'is-disabled': this.isDisabled,
275
316
  'has-error': hasError,
276
317
  [`size-${this.size}`]: true
277
- } }, this.label && (index.h("label", { key: 'ee4ceb0add8f09a8f92169cbca28aab5e0589b16', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), index.h("div", { key: '43fab24ca58070de570be5ca182942f64e61a902', class: "input-control", part: "control" }, index.h("span", { key: '06e7231d67ad315a2897a2399a5f47d6efdc02ee', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, index.h("slot", { key: '4f95a654ed5708cad6fbe1456a97c1e7fb4adee1', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), index.h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
318
+ } }, this.label && (index.h("label", { key: '06a2ade9135e9a32a9e9e86d4a1a39f5e24041cf', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), index.h("div", { key: '6613a45de2e78a0a1c4f633662e41bb25bae2113', class: "input-control", part: "control" }, index.h("span", { key: '5fbf515406625be7f858bdd2b392f5b445742f2a', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, index.h("slot", { key: '0db14593c4fef2fa5c189c97e1494e66ce0f1111', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), index.h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
278
319
  'input-box': true,
279
320
  'has-prefix-padding': this.hasPrefix,
280
321
  'has-suffix-padding': showSuffixContainer
281
- }, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.disabled && (index.h("div", { key: 'a003b95c55e27e953ab5f0eca794bb8fcaae05b8', class: "input-spinners", part: "spinners" }, index.h("button", { key: '4a968f43230dd91b3a2ddda5f57a569aad687279', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, index.h("svg", { key: '60424c3b99e50bebb32fd7aead7818e2da5adac7', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '8c3d5dc18da929975e1de91e4e71dadc447cf41c', d: "M18 15l-6-6-6 6" }))), index.h("button", { key: '03d0667903272fbd3ae14a6e9f0a056c6e676d6d', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, index.h("svg", { key: '937c656ae40e87bab6b8b5b0194f3a341f370ce1', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '3a3c2db25c2a5c5f98e2cfe5490775a1106e023d', d: "M6 9l6 6 6-6" }))))), index.h("span", { key: '584a50cccd58e50597e57eaf261b6d149bde59bf', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (index.h("button", { key: 'de7d65dff1e745ec5362c909897169be7b0ac15a', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, index.h("svg", { key: 'b0f78bc3b9b3d97cd118f6602905418a3dbae354', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: '8973c4acfda6c4c9f26cedb1f5678937c9dc3823', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (index.h("button", { key: '74baf473e1ba79f30bde2ec4b0a5a8a9d781942b', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M3 3l18 18" }), index.h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), index.h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), index.h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), index.h("circle", { cx: "12", cy: "12", r: "3" }))))), index.h("span", { key: 'a28828a5ae5c01967247453f1f9a5ee1ce2422ef', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, index.h("slot", { key: 'd3ec795bdfcacafdb68a33774d1a90cb96b27344', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), field.fieldFeedback('q-field-error', displayError, this.description)));
322
+ }, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.isDisabled && (index.h("div", { key: '43adf0ab89c2707936a809dcb5bdbb71b73e4773', class: "input-spinners", part: "spinners" }, index.h("button", { key: '06c2a7a29c88df2f09225f17c6a61910df53ad55', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, index.h("svg", { key: '97f929deb4071b94d1a4c17ab3d1f22d57e18082', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '964b1b3bd8246c0d2bb85c92cb7b1dc5054923be', d: "M18 15l-6-6-6 6" }))), index.h("button", { key: '818f78f1cd5c019d1a7c13e5cd55d9de1650e910', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, index.h("svg", { key: '2cddd6507a0f5040de732a0367fe642675d9775d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '8a024c5974c35e82627545ec026abc5c33442c2d', d: "M6 9l6 6 6-6" }))))), index.h("span", { key: '637b5e01d20e62bef51928ae7506275aad8f557d', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (index.h("button", { key: '0acd5527b76f26646c01004f08f2cf99ac5e191b', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, index.h("svg", { key: '94b09cd8041c6a203ad66b9ab3ad49bf86f2ff60', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'c06b44e36b139618e80636736ca679e70b975a6a', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (index.h("button", { key: '0f80c2072d9c51c0b3edfb7a42ecb87ea6c9126b', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M3 3l18 18" }), index.h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), index.h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), index.h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), index.h("circle", { cx: "12", cy: "12", r: "3" }))))), index.h("span", { key: '736690c1f52724f69ada9078e92449399e4a01c9', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, index.h("slot", { key: 'f1d5cd767b073438728bb95e5643a29e56e3556a', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), field.fieldFeedback('q-field-error', displayError, this.description)));
282
323
  }
283
324
  static get delegatesFocus() { return true; }
284
325
  static get formAssociated() { return true; }
285
326
  static get watchers() { return {
286
327
  "value": [{
287
328
  "watchValue": 0
329
+ }],
330
+ "disabled": [{
331
+ "watchConstraints": 0
332
+ }],
333
+ "required": [{
334
+ "watchConstraints": 0
335
+ }],
336
+ "name": [{
337
+ "watchConstraints": 0
338
+ }],
339
+ "error": [{
340
+ "watchConstraints": 0
341
+ }],
342
+ "errorMessage": [{
343
+ "watchConstraints": 0
344
+ }],
345
+ "type": [{
346
+ "watchConstraints": 0
347
+ }],
348
+ "min": [{
349
+ "watchConstraints": 0
350
+ }],
351
+ "max": [{
352
+ "watchConstraints": 0
353
+ }],
354
+ "step": [{
355
+ "watchConstraints": 0
288
356
  }]
289
357
  }; }
290
358
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D_tObBJa.js');
4
- var action_props = require('./action.props-B87W5tRu.js');
3
+ var index = require('./index-DWXhKHCB.js');
4
+ var action_props = require('./action.props-N0urQtdP.js');
5
5
 
6
6
  const linkCss = () => `:host{display:inline}.link{display:inline-flex;align-items:center;gap:var(--q-link-gap, 0.35em);color:var(--q-link-color, var(--q-color-primary, #2563eb));font-family:var(--q-font-family, inherit);font-size:var(--q-link-font-size, inherit);font-weight:var(--q-link-font-weight, var(--q-font-weight-medium, 500));line-height:1.4;text-decoration-color:currentColor;text-underline-offset:var(--q-link-underline-offset, 0.18em);transition:color var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease)}.link:hover,.link:focus-visible{color:var(--q-link-color-hover, var(--q-color-primary-hover, #1d4ed8))}.link:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #2563eb));outline-offset:var(--q-link-focus-offset, 3px);border-radius:var(--q-radius-xs, 3px)}.underline-hover{text-decoration-line:none}.underline-hover:hover,.underline-hover:focus-visible{text-decoration-line:underline}.underline-always{text-decoration-line:underline}.underline-none{text-decoration-line:none}.variant-muted{color:var(--q-link-muted-color, var(--q-fg-muted, #64748b))}.variant-muted:hover,.variant-muted:focus-visible{color:var(--q-link-muted-color-hover, var(--q-fg-base, #172033))}.variant-accent{color:var(--q-link-accent-color, var(--q-color-secondary, #7c3aed))}.variant-danger{color:var(--q-link-danger-color, var(--q-color-danger, #dc2626))}.is-disabled{color:var(--q-link-disabled-color, var(--q-fg-subtle, #94a3b8));cursor:not-allowed;opacity:0.7;pointer-events:none}.link-label{min-width:0}.external-affordance{display:inline-flex;align-items:center}.external-icon{width:var(--q-link-external-icon-size, 0.9em);height:var(--q-link-external-icon-size, 0.9em);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}`;
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D_tObBJa.js');
4
- var map_types = require('./map.types-DNrz8rJh.js');
3
+ var index = require('./index-DWXhKHCB.js');
4
+ var map_types = require('./map.types-BWymIRql.js');
5
5
 
6
6
  function isTilePreloadBufferRelevant(requestedProvider, activeProvider) {
7
7
  return requestedProvider === 'tiles' || activeProvider === 'tiles';
@@ -526,7 +526,7 @@ async function importMapLibreLayerFactory(leaflet) {
526
526
  if (typeof window === 'undefined') {
527
527
  throw new Error('QMap: the vector provider is only available in a browser environment.');
528
528
  }
529
- await Promise.resolve().then(function () { return require('./leaflet-maplibre-gl-BJKExsns.js'); });
529
+ await Promise.resolve().then(function () { return require('./leaflet-maplibre-gl-JIaCQ-7v.js'); });
530
530
  const factory = leaflet.maplibreGL;
531
531
  if (typeof factory !== 'function') {
532
532
  throw new Error('QMap: MapLibre did not register its Leaflet layer factory.');
@@ -1449,6 +1449,15 @@ function getOptionalFiniteNumber(value) {
1449
1449
  ? value
1450
1450
  : undefined;
1451
1451
  }
1452
+ function getOptionalPixelPair(value, positive) {
1453
+ if (!Array.isArray(value) || value.length !== 2)
1454
+ return undefined;
1455
+ const first = getOptionalFiniteNumber(value[0]);
1456
+ const second = getOptionalFiniteNumber(value[1]);
1457
+ if (first === undefined || second === undefined || (positive && (first <= 0 || second <= 0)))
1458
+ return undefined;
1459
+ return [first, second];
1460
+ }
1452
1461
  function normalizeBadge(value) {
1453
1462
  if (!isRecord(value))
1454
1463
  return undefined;
@@ -1537,13 +1546,17 @@ function normalizeMarker(value) {
1537
1546
  return undefined;
1538
1547
  const label = typeof value.label === 'string' && value.label.trim().length > 0 ? value.label : String(value.id);
1539
1548
  const imageUrl = getOptionalText(value.imageUrl);
1549
+ const imageSize = getOptionalPixelPair(value.imageSize, true);
1550
+ const imageAnchor = getOptionalPixelPair(value.imageAnchor, false);
1540
1551
  const fallbackText = getOptionalText(value.fallbackText);
1541
1552
  const icon = getOptionalText(value.icon);
1542
1553
  const iconSize = getOptionalFiniteNumber(value.iconSize);
1543
1554
  const iconOffsetX = getOptionalFiniteNumber(value.iconOffsetX);
1544
1555
  const iconOffsetY = getOptionalFiniteNumber(value.iconOffsetY);
1545
1556
  const requestedKind = getOptionalEnum(value.kind, MARKER_KINDS);
1546
- const kind = requestedKind === 'icon' && !icon ? 'dot' : requestedKind;
1557
+ const kind = (requestedKind === 'icon' && !icon) || (requestedKind === 'image' && !imageUrl)
1558
+ ? 'dot'
1559
+ : requestedKind;
1547
1560
  const size = getOptionalEnum(value.size, MARKER_SIZES);
1548
1561
  const ring = getOptionalEnum(value.ring, MARKER_RINGS);
1549
1562
  const badge = normalizeBadge(value.badge);
@@ -1557,6 +1570,8 @@ function normalizeMarker(value) {
1557
1570
  clusterGroup: normalizeClusterGroup(value.clusterGroup),
1558
1571
  variant: getMarkerVariant(value.variant),
1559
1572
  ...(imageUrl ? { imageUrl } : {}),
1573
+ ...(imageSize ? { imageSize } : {}),
1574
+ ...(imageAnchor ? { imageAnchor } : {}),
1560
1575
  ...(fallbackText ? { fallbackText } : {}),
1561
1576
  ...(kind ? { kind } : {}),
1562
1577
  ...(icon ? { icon } : {}),
@@ -1792,7 +1807,7 @@ function stableCollisionDirection(leftKey, rightKey) {
1792
1807
  return { x: Math.cos(angle), y: Math.sin(angle) };
1793
1808
  }
1794
1809
 
1795
- const KIND_CLASSES = ['kind-dot', 'kind-avatar', 'kind-icon'];
1810
+ const KIND_CLASSES = ['kind-dot', 'kind-avatar', 'kind-icon', 'kind-image'];
1796
1811
  const RING_CLASSES = ['ring-none', 'ring-solid', 'ring-dashed'];
1797
1812
  const ICON_SIZE_PROPERTY = '--q-map-marker-icon-size';
1798
1813
  const ICON_OFFSET_X_PROPERTY = '--q-map-marker-icon-offset-x';
@@ -1833,14 +1848,20 @@ function createMarkerContent(document) {
1833
1848
  image.addEventListener('load', () => {
1834
1849
  if (image.dataset.source !== image.getAttribute('src'))
1835
1850
  return;
1851
+ if (surface.dataset.markerKind === 'image' && (!image.complete || image.naturalWidth <= 0))
1852
+ return;
1836
1853
  image.hidden = false;
1837
1854
  center.classList.add('has-image');
1855
+ syncImageMarkerPresentation(surface, image);
1838
1856
  });
1839
1857
  image.addEventListener('error', () => {
1840
1858
  if (image.dataset.source !== image.getAttribute('src'))
1841
1859
  return;
1860
+ if (surface.dataset.markerKind === 'image' && (!image.complete || image.naturalWidth > 0))
1861
+ return;
1842
1862
  image.hidden = true;
1843
1863
  center.classList.remove('has-image');
1864
+ syncImageMarkerPresentation(surface, image);
1844
1865
  });
1845
1866
  const icon = createIcon(document, 'q-map-marker__icon');
1846
1867
  icon.hidden = true;
@@ -1859,6 +1880,36 @@ function createMarkerContent(document) {
1859
1880
  surface.append(content);
1860
1881
  return surface;
1861
1882
  }
1883
+ function syncImageMarkerPresentation(element, image) {
1884
+ const position = element.parentElement;
1885
+ const requested = element.dataset.markerKind === 'image';
1886
+ const active = requested && !image.hidden;
1887
+ if (active) {
1888
+ element.classList.add('kind-image');
1889
+ position?.classList.add('is-image');
1890
+ }
1891
+ else {
1892
+ element.classList.remove('kind-image');
1893
+ position?.classList.remove('is-image');
1894
+ }
1895
+ if (!requested)
1896
+ return;
1897
+ element.classList.toggle('kind-dot', !active);
1898
+ element.classList.toggle('has-content', active);
1899
+ if (!active || !position)
1900
+ return;
1901
+ const naturalWidth = image.naturalWidth || 32;
1902
+ const naturalHeight = image.naturalHeight || 32;
1903
+ const scale = Math.min(1, 48 / naturalWidth, 48 / naturalHeight);
1904
+ const width = Number(image.dataset.width) || naturalWidth * scale;
1905
+ const height = Number(image.dataset.height) || naturalHeight * scale;
1906
+ const anchorX = image.dataset.anchorX === undefined ? width / 2 : Number(image.dataset.anchorX);
1907
+ const anchorY = image.dataset.anchorY === undefined ? height : Number(image.dataset.anchorY);
1908
+ position.style.setProperty('--q-map-image-width', `${width}px`);
1909
+ position.style.setProperty('--q-map-image-height', `${height}px`);
1910
+ position.style.setProperty('--q-map-image-anchor-x', `${anchorX}px`);
1911
+ position.style.setProperty('--q-map-image-anchor-y', `${anchorY}px`);
1912
+ }
1862
1913
  function updateImage(center, image, imageUrl) {
1863
1914
  if (!imageUrl) {
1864
1915
  image.hidden = true;
@@ -1885,6 +1936,7 @@ function updateMarkerPresentation(element, marker, selected) {
1885
1936
  const kind = marker.kind === 'icon' && !marker.icon ? 'dot' : marker.kind;
1886
1937
  if (kind)
1887
1938
  element.classList.add(`kind-${kind}`);
1939
+ element.dataset.markerKind = kind ?? '';
1888
1940
  element.classList.toggle('is-pulsing', marker.pulse === true);
1889
1941
  element.classList.toggle('is-selected', selected);
1890
1942
  syncFinitePixelProperty(element, ICON_SIZE_PROPERTY, marker.iconSize);
@@ -1898,13 +1950,25 @@ function updateMarkerPresentation(element, marker, selected) {
1898
1950
  return;
1899
1951
  const avatarContent = kind === 'avatar' || kind === undefined;
1900
1952
  const fallbackText = avatarContent ? marker.fallbackText ?? '' : '';
1901
- const imageUrl = avatarContent ? marker.imageUrl : undefined;
1953
+ const imageUrl = avatarContent || kind === 'image' ? marker.imageUrl : undefined;
1902
1954
  const iconName = kind === 'icon' ? marker.icon : undefined;
1903
1955
  fallback.textContent = fallbackText;
1904
1956
  fallback.hidden = !fallbackText;
1957
+ for (const [key, value] of Object.entries({
1958
+ width: marker.imageSize?.[0],
1959
+ height: marker.imageSize?.[1],
1960
+ anchorX: marker.imageAnchor?.[0],
1961
+ anchorY: marker.imageAnchor?.[1],
1962
+ })) {
1963
+ if (value === undefined)
1964
+ delete image.dataset[key];
1965
+ else
1966
+ image.dataset[key] = String(value);
1967
+ }
1905
1968
  updateImage(center, image, imageUrl);
1906
1969
  updateIcon(icon, iconName);
1907
1970
  element.classList.toggle('has-content', Boolean(fallbackText || imageUrl || iconName));
1971
+ syncImageMarkerPresentation(element, image);
1908
1972
  const badge = element.querySelector('.q-map-marker__badge');
1909
1973
  const badgeIcon = badge?.querySelector('.q-map-marker__badge-icon');
1910
1974
  const badgeText = badge?.querySelector('.q-map-marker__badge-text');
@@ -2675,7 +2739,7 @@ function normalizeVectorPadding(value) {
2675
2739
  return Math.max(0, Math.min(MAX_VECTOR_PADDING, value));
2676
2740
  }
2677
2741
 
2678
- const mapCss = () => `:host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}`;
2742
+ const mapCss = () => `:host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker-position.is-image{width:var(--q-map-image-width) !important;height:var(--q-map-image-height) !important;margin-left:calc(var(--q-map-image-anchor-x) * -1) !important;margin-top:calc(var(--q-map-image-anchor-y) * -1) !important}.q-map-marker.kind-image{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.q-map-marker.kind-image.is-selected{filter:drop-shadow(0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)))}.q-map-marker.kind-image .q-map-marker__center{width:100%;height:100%;overflow:visible;border-radius:0;background:transparent}.q-map-marker.kind-image .q-map-marker__image{object-fit:contain}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}`;
2679
2743
 
2680
2744
  const GOOGLE_MAP_TYPES = ['roadmap', 'satellite', 'terrain', 'hybrid'];
2681
2745
  const SMOOTH_ZOOM_DELTA = 0.5;
@@ -2717,6 +2781,8 @@ const QMap = class {
2717
2781
  /** Clamped between the normalized zoom limits. */
2718
2782
  zoom = 2;
2719
2783
  zoomControls = true;
2784
+ /** Enables mouse-wheel zoom without changing touch, keyboard, or button controls. */
2785
+ scrollWheelZoom = true;
2720
2786
  /** Non-finite values normalize to zero. */
2721
2787
  minZoom = 0;
2722
2788
  /** Never resolves below `minZoom`. */
@@ -2765,7 +2831,6 @@ const QMap = class {
2765
2831
  map;
2766
2832
  canvas;
2767
2833
  resizeObserver;
2768
- resizeFrame;
2769
2834
  initializationToken = 0;
2770
2835
  markerVisibilityToken = 0;
2771
2836
  cancelMarkerVisibilityPan;
@@ -2790,6 +2855,32 @@ const QMap = class {
2790
2855
  this.initializationToken += 1;
2791
2856
  this.destroyMap();
2792
2857
  }
2858
+ /** Fits the latest valid marker coordinates without changing the configured center or zoom props. */
2859
+ async fitMarkers(options = {}) {
2860
+ const map = this.map;
2861
+ const markers = getMapMarkers(this.markers);
2862
+ if (!map || !this.connected || markers.length === 0)
2863
+ return false;
2864
+ map.invalidateSize({ animate: false, pan: false });
2865
+ const size = map.getSize();
2866
+ if (size.x <= 0 || size.y <= 0)
2867
+ return false;
2868
+ const { minimum, maximum } = this.getZoomLimits();
2869
+ const maxZoom = Number.isFinite(options.maxZoom)
2870
+ ? Math.max(minimum, Math.min(maximum, options.maxZoom))
2871
+ : maximum;
2872
+ const requestedPadding = Number.isFinite(options.padding) ? Math.max(0, options.padding) : 0;
2873
+ const padding = Math.min(requestedPadding, Math.max(0, (Math.min(size.x, size.y) - 1) / 2));
2874
+ this.markerVisibilityToken += 1;
2875
+ this.cancelMarkerVisibilityPan?.();
2876
+ this.markerController?.sync(this.markers);
2877
+ map.fitBounds(markers.map(marker => [marker.latitude, marker.longitude]), {
2878
+ animate: false,
2879
+ padding: [padding, padding],
2880
+ maxZoom,
2881
+ });
2882
+ return true;
2883
+ }
2793
2884
  /** Minimally pans to fully expose a marker or its current cluster without changing zoom. */
2794
2885
  async ensureMarkerVisible(markerId, occlusions) {
2795
2886
  const operationToken = ++this.markerVisibilityToken;
@@ -2909,6 +3000,12 @@ const QMap = class {
2909
3000
  handleBoundsChange() {
2910
3001
  this.syncBounds(true);
2911
3002
  }
3003
+ handleScrollWheelZoomChange() {
3004
+ if (this.scrollWheelZoom)
3005
+ this.map?.scrollWheelZoom.enable();
3006
+ else
3007
+ this.map?.scrollWheelZoom.disable();
3008
+ }
2912
3009
  handleZoomControlsChange() {
2913
3010
  if (!this.map)
2914
3011
  return;
@@ -2953,6 +3050,7 @@ const QMap = class {
2953
3050
  wheelPxPerZoomLevel: smoothMotion ? SMOOTH_WHEEL_PIXELS_PER_LEVEL : 60,
2954
3051
  zoomAnimation: smoothMotion,
2955
3052
  zoomControl: this.zoomControls,
3053
+ scrollWheelZoom: this.scrollWheelZoom,
2956
3054
  zoomDelta: smoothMotion ? SMOOTH_ZOOM_DELTA : 1,
2957
3055
  zoomSnap: smoothMotion ? SMOOTH_ZOOM_SNAP : 1,
2958
3056
  });
@@ -2968,7 +3066,7 @@ const QMap = class {
2968
3066
  return;
2969
3067
  this.markerController?.sync(this.markers);
2970
3068
  this.observeResize();
2971
- this.map.invalidateSize({ animate: false, pan: false });
3069
+ this.map.invalidateSize({ animate: false, pan: true });
2972
3070
  this.qReady.emit();
2973
3071
  }
2974
3072
  catch (error) {
@@ -3276,17 +3374,17 @@ const QMap = class {
3276
3374
  if (!this.canvas || typeof ResizeObserver === 'undefined')
3277
3375
  return;
3278
3376
  this.resizeObserver?.disconnect();
3279
- this.resizeObserver = new ResizeObserver(() => this.scheduleResize());
3377
+ // Update before paint so a changing frame never paints the previous frame's center.
3378
+ this.resizeObserver = new ResizeObserver(() => this.resizeMap());
3280
3379
  this.resizeObserver.observe(this.canvas);
3281
3380
  }
3282
- scheduleResize() {
3283
- if (this.resizeFrame !== undefined)
3284
- cancelAnimationFrame(this.resizeFrame);
3285
- this.resizeFrame = requestAnimationFrame(() => {
3286
- this.resizeFrame = undefined;
3287
- this.map?.invalidateSize({ animate: false, debounceMoveend: true, pan: false });
3288
- this.syncBounds(false);
3381
+ resizeMap() {
3382
+ this.map?.invalidateSize({
3383
+ animate: false,
3384
+ debounceMoveend: true,
3385
+ pan: true,
3289
3386
  });
3387
+ this.syncBounds(false);
3290
3388
  }
3291
3389
  destroyMap() {
3292
3390
  this.markerVisibilityToken += 1;
@@ -3294,10 +3392,6 @@ const QMap = class {
3294
3392
  this.cancelMarkerVisibilityPan = undefined;
3295
3393
  this.resizeObserver?.disconnect();
3296
3394
  this.resizeObserver = undefined;
3297
- if (this.resizeFrame !== undefined) {
3298
- cancelAnimationFrame(this.resizeFrame);
3299
- this.resizeFrame = undefined;
3300
- }
3301
3395
  this.markerController?.destroy();
3302
3396
  this.markerController = undefined;
3303
3397
  this.layerController?.destroy();
@@ -3333,7 +3427,7 @@ const QMap = class {
3333
3427
  }
3334
3428
  }
3335
3429
  render() {
3336
- return (index.h("div", { key: '753eeb63e0f1e0be9c018d72997d9553495b9ad8', class: "map-surface", part: "surface" }, index.h("div", { key: '2da65495446a24640d1f81c8b1583664664293bf', class: "map-canvas", part: "canvas", role: "region", "aria-label": this.ariaLabel, "aria-busy": this.providerStatus === 'initializing' ? 'true' : undefined, ref: this.setCanvas }), index.h("q-icon", { key: 'e61c59f96ed6624a2bedf1a32b8828b0ab133cbd', class: "map-icon-registration", "aria-hidden": "true" }), this.providerStatus === 'empty' && (index.h("div", { key: 'c7b24a9d6a6f796dd92b5e4d088711113de3a448', class: "map-empty", part: "empty", role: "status" }, index.h("slot", { key: '97f0b1fe4dd669512b1a55b58fb428f37a23fdfc', name: "empty" }, "Map provider is not configured."))), this.providerStatus === 'error' && (index.h("div", { key: 'f72f0211b9df1e9eb833828215575b08479cea59', class: "map-empty map-error", part: "error", role: "alert" }, index.h("slot", { key: '44026803ec28e2acb3d8b91dec1ab85ae3c74663', name: "error" }, this.errorMessage ?? 'Map imagery is unavailable.'))), this.renderAttribution()));
3430
+ return (index.h("div", { key: '033fd7a2d32834e77a2558c65534977586ceedeb', class: "map-surface", part: "surface" }, index.h("div", { key: 'e478148f947ed36790471bb2fbf793de05aa8c85', class: "map-canvas", part: "canvas", role: "region", "aria-label": this.ariaLabel, "aria-busy": this.providerStatus === 'initializing' ? 'true' : undefined, ref: this.setCanvas }), index.h("q-icon", { key: 'f2257ff57c557e82e0373fed177892c37190cbeb', class: "map-icon-registration", "aria-hidden": "true" }), this.providerStatus === 'empty' && (index.h("div", { key: '1473bd03ecda753ae602340396a342a9f36d0869', class: "map-empty", part: "empty", role: "status" }, index.h("slot", { key: '3459312eb6bf78f542c6bd3f700304097dc1add8', name: "empty" }, "Map provider is not configured."))), this.providerStatus === 'error' && (index.h("div", { key: '7477ce15ffad0b72381973c7ffd6e3dc64557159', class: "map-empty map-error", part: "error", role: "alert" }, index.h("slot", { key: 'ae647a72990bde7889aed466fdb005088c47e83d', name: "error" }, this.errorMessage ?? 'Map imagery is unavailable.'))), this.renderAttribution()));
3337
3431
  }
3338
3432
  static get watchers() { return {
3339
3433
  "provider": [{
@@ -3399,6 +3493,9 @@ const QMap = class {
3399
3493
  "maxBoundsViscosity": [{
3400
3494
  "handleBoundsChange": 0
3401
3495
  }],
3496
+ "scrollWheelZoom": [{
3497
+ "handleScrollWheelZoomChange": 0
3498
+ }],
3402
3499
  "zoomControls": [{
3403
3500
  "handleZoomControlsChange": 0
3404
3501
  }]
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D_tObBJa.js');
3
+ var index = require('./index-DWXhKHCB.js');
4
4
 
5
5
  const mediaCss = () => `:host{display:block;min-width:0}`;
6
6
 
@@ -9,11 +9,11 @@ const QMedia = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  src = '';
12
- alt = '';
13
12
  kind = 'image';
14
13
  loading = 'lazy';
14
+ alt = '';
15
15
  render() {
16
- return index.h(index.Host, { key: '5d45def3470847c498e95f76357253b99acee327' }, index.h("slot", { key: '909ac85b7dc76d11c2b89aee8b61fa7608be8070' }), index.h("slot", { key: 'e84ac7af04d1c0322da86c18a97e6b51676e17fc', name: "fallback" }));
16
+ return index.h(index.Host, { key: '915251e24f7197221a2a7444fecbe1ad2544b563' }, index.h("slot", { key: '938c8d22d6289db2fe3ac5ed1a905c61e7994a4a' }), index.h("slot", { key: '9be4d4ce06cac5572f3ed8b130e9085d098aaa73', name: "fallback" }));
17
17
  }
18
18
  };
19
19
  QMedia.style = mediaCss();