@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.
- package/README.md +4 -4
- package/dist/cjs/{action.props-B87W5tRu.js → action.props-N0urQtdP.js} +1 -1
- package/dist/cjs/{chevron-up-Dysp_9UJ.js → chevron-up-D4t2OSHA.js} +2 -2
- package/dist/cjs/{data-table-cell-BAv6IIYx.js → data-table-cell-8uUCk2Qz.js} +5 -0
- package/dist/cjs/{field-CbUc_AWx.js → field-CsrQGhG-.js} +1 -1
- package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
- package/dist/cjs/form-field-state-P63wN30v.js +51 -0
- package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
- package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
- package/dist/cjs/{index-D_tObBJa.js → index-DWXhKHCB.js} +25 -26
- package/dist/cjs/index.cjs.js +8 -3
- package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{map.types-DNrz8rJh.js → map.types-BWymIRql.js} +1 -1
- package/dist/cjs/q-accordion.cjs.entry.js +2 -2
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +2 -2
- package/dist/cjs/q-banner.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +111 -24
- package/dist/cjs/q-card.cjs.entry.js +2 -2
- package/dist/cjs/q-carousel.cjs.entry.js +400 -13
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +73 -11
- package/dist/cjs/q-dialog.cjs.entry.js +3 -3
- package/dist/cjs/q-dropdown.cjs.entry.js +64 -11
- package/dist/cjs/q-form.cjs.entry.js +774 -287
- package/dist/cjs/q-grid.cjs.entry.js +3 -3
- package/dist/cjs/q-icon.cjs.entry.js +143 -89
- package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
- package/dist/cjs/q-inline.cjs.entry.js +3 -3
- package/dist/cjs/q-input_2.cjs.entry.js +90 -22
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +119 -22
- package/dist/cjs/q-media.cjs.entry.js +3 -3
- package/dist/cjs/q-navbar.cjs.entry.js +3 -3
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +6 -6
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-radio-group.cjs.entry.js +48 -11
- package/dist/cjs/q-reel.cjs.entry.js +3 -3
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +145 -25
- package/dist/cjs/q-stack.cjs.entry.js +3 -3
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +3 -3
- package/dist/cjs/q-syntax-box.cjs.entry.js +418 -301
- package/dist/cjs/q-tabs.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +66 -21
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +58 -12
- package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/registry-C3IYlNMp.js +323 -0
- package/dist/cjs/{tokens-DDfS79n9.js → tokens-RMRaIOqv.js} +12 -3
- package/dist/cjs/webquark.cjs.js +3 -3
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/actions/button/button.js +250 -14
- package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
- package/dist/collection/components/content/carousel/carousel.css +91 -5
- package/dist/collection/components/content/carousel/carousel.js +511 -20
- package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
- package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
- package/dist/collection/components/data-display/accordion/accordion.js +1 -1
- package/dist/collection/components/data-display/data-table/data-table-cell.js +4 -0
- package/dist/collection/components/data-display/data-table/data-table.css +73 -0
- package/dist/collection/components/data-display/data-table/data-table.js +117 -3
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +15 -3
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +1 -1
- package/dist/collection/components/data-display/data-table/internals/table-model.js +9 -1
- package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
- package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +51 -2
- package/dist/collection/components/data-display/map/internals/markers.js +16 -1
- package/dist/collection/components/data-display/map/map.css +31 -0
- package/dist/collection/components/data-display/map/map.js +96 -15
- package/dist/collection/components/data-display/map/map.types.js +1 -1
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +187 -0
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +6 -23
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +7 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +78 -23
- package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
- package/dist/collection/components/inputs/dropdown/dropdown.js +64 -10
- package/dist/collection/components/inputs/form/form.js +203 -100
- package/dist/collection/components/inputs/form/internals/controls.js +121 -27
- package/dist/collection/components/inputs/form/internals/enter-behavior.js +14 -25
- package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
- package/dist/collection/components/inputs/form/internals/reset.js +50 -0
- package/dist/collection/components/inputs/form/internals/submission.js +140 -0
- package/dist/collection/components/inputs/form/internals/values.js +176 -153
- package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
- package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
- package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
- package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
- package/dist/collection/components/inputs/input/input.js +91 -20
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.js +51 -9
- package/dist/collection/components/inputs/textarea/textarea.js +70 -18
- package/dist/collection/components/inputs/toggle/toggle.js +57 -10
- package/dist/collection/components/layout/grid/grid.js +1 -1
- package/dist/collection/components/layout/inline/inline.js +1 -1
- package/dist/collection/components/layout/navbar/navbar.js +2 -2
- package/dist/collection/components/layout/panel/panel.js +4 -4
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.js +1 -1
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +42 -4
- package/dist/collection/components/layout/sidepanel/sidepanel.css +145 -14
- package/dist/collection/components/layout/sidepanel/sidepanel.js +99 -10
- package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
- package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
- package/dist/collection/components/layout/stack/stack.js +1 -1
- package/dist/collection/components/layout/tabs/tabs.js +1 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
- package/dist/collection/components/media/avatar/avatar.js +1 -1
- package/dist/collection/components/media/icon/internals/fetch-icon.js +33 -4
- package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
- package/dist/collection/components/media/icon/internals/policy.js +184 -0
- package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
- package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
- package/dist/collection/components/media/icon/internals/registry.js +33 -82
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +80 -57
- package/dist/collection/components/media/icon/internals/url.js +31 -27
- package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
- package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
- package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
- package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
- package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
- package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
- package/dist/collection/components/media/media/media.js +22 -22
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.js +2 -2
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +20 -5
- package/dist/collection/components/overlays/tooltip/tooltip.css +5 -1
- package/dist/collection/components/overlays/tooltip/tooltip.js +9 -3
- package/dist/collection/index.js +2 -1
- package/dist/collection/playground/assets/comparison-after.svg +1 -0
- package/dist/collection/playground/assets/comparison-before.svg +1 -0
- package/dist/collection/playground/playground.bundled.js +16 -7
- package/dist/collection/theme/test/foundation.cmp.test.js +6 -0
- package/dist/collection/theme/tokens.js +12 -3
- package/dist/collection/utils/form-field-adapter.js +44 -0
- package/dist/collection/utils/form-field-state.js +45 -0
- package/dist/collection/utils/form-reset-action.js +60 -0
- package/dist/collection/utils/form-submit-action.js +151 -0
- package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
- package/dist/collection/utils/formatter.js +137 -158
- package/dist/collection/utils/formatter.unit.test.js +69 -51
- package/dist/collection/utils/image-crop.js +47 -0
- package/dist/collection/utils/image-crop.unit.test.js +57 -0
- package/dist/collection/utils/syntax.js +210 -81
- package/dist/collection/utils/syntax.unit.test.js +134 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CtUn83Rs.js → p-6PPZ2sIO.js} +1 -1
- package/dist/{webquark/p-CyPFM3XV.js → components/p-B4Mg1xEw.js} +1 -1
- package/dist/components/{p-BeFSyZjp.js → p-BH4gQWub.js} +1 -1
- package/dist/components/p-BOdNg0jc.js +1 -0
- package/dist/components/p-BcL0NVv0.js +1 -0
- package/dist/{playground/build/p-CGcC-mvi.js → components/p-BofcK-7Z.js} +1 -1
- package/dist/components/p-C6vxokHH.js +1 -0
- package/dist/components/p-CGml_DQ8.js +1 -0
- package/dist/components/{p-CuJIyOwp.js → p-CKuPOxKN.js} +1 -1
- package/dist/components/p-CN1ut2Lb.js +1 -0
- package/dist/components/p-C_RztzNv.js +5 -0
- package/dist/components/p-CoIMrUb3.js +1 -0
- package/dist/components/{p-g9vOVxQ4.js → p-DKrPmn2y.js} +2 -2
- package/dist/components/p-DT6k8Yhx.js +1 -0
- package/dist/components/p-Dfp_If-_.js +1 -0
- package/dist/components/p-DstNl_WY.js +1 -0
- package/dist/components/p-GHhpSfZU.js +1 -0
- package/dist/components/p-SzKf4WZF.js +1 -0
- package/dist/components/p-ye27qtRo.js +1 -0
- package/dist/components/q-accordion.js +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-image-comparison.d.ts +11 -0
- package/dist/components/q-image-comparison.js +1 -0
- package/dist/components/q-inline.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.js +1 -1
- package/dist/components/q-sidepanel.js +5 -5
- package/dist/components/q-stack.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +5 -5
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-BypnAgOy.js → action.props-CpnGza8z.js} +1 -1
- package/dist/esm/{chevron-up-g9vOVxQ4.js → chevron-up-DKrPmn2y.js} +2 -2
- package/dist/esm/{data-table-cell-DmqVhVoj.js → data-table-cell-SzKf4WZF.js} +5 -1
- package/dist/esm/{field-dFy4PXKT.js → field-zfD6OQ02.js} +1 -1
- package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
- package/dist/esm/form-field-state-DstNl_WY.js +47 -0
- package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
- package/dist/esm/image-crop-BcL0NVv0.js +49 -0
- package/dist/esm/{index-tSny_c7b.js → index-B5ElFlHv.js} +25 -26
- package/dist/esm/index.js +4 -3
- package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{map.types-WJHaLJS_.js → map.types-CoIMrUb3.js} +1 -1
- package/dist/esm/q-accordion.entry.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +2 -2
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +111 -24
- package/dist/esm/q-card.entry.js +2 -2
- package/dist/esm/q-carousel.entry.js +400 -13
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +73 -11
- package/dist/esm/q-dialog.entry.js +3 -3
- package/dist/esm/q-dropdown.entry.js +64 -11
- package/dist/esm/q-form.entry.js +774 -287
- package/dist/esm/q-grid.entry.js +3 -3
- package/dist/esm/q-icon.entry.js +143 -89
- package/dist/esm/q-image-comparison.entry.js +199 -0
- package/dist/esm/q-inline.entry.js +3 -3
- package/dist/esm/q-input_2.entry.js +90 -22
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +119 -22
- package/dist/esm/q-media.entry.js +3 -3
- package/dist/esm/q-navbar.entry.js +3 -3
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +6 -6
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-radio-group.entry.js +48 -11
- package/dist/esm/q-reel.entry.js +3 -3
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +146 -26
- package/dist/esm/q-stack.entry.js +3 -3
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +3 -3
- package/dist/esm/q-syntax-box.entry.js +418 -301
- package/dist/esm/q-tabs.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +66 -21
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +58 -12
- package/dist/esm/q-toolbar.entry.js +4 -4
- package/dist/esm/registry-GHhpSfZU.js +308 -0
- package/dist/esm/{tokens-CyPFM3XV.js → tokens-B4Mg1xEw.js} +12 -3
- package/dist/esm/webquark.js +4 -4
- package/dist/playground/assets/comparison-after.svg +1 -0
- package/dist/playground/assets/comparison-before.svg +1 -0
- package/dist/playground/assets/icons/check-preview.png +0 -0
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/build/index.esm.js +1 -1
- package/dist/playground/build/{p-781d3459.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/playground/build/{p-ca240b8b.entry.js → p-030ecde3.entry.js} +1 -1
- package/dist/playground/build/p-04c8cb9e.entry.js +1 -0
- package/dist/playground/build/{p-81f64d6f.entry.js → p-059daa8a.entry.js} +1 -1
- package/dist/playground/build/{p-964d27e0.entry.js → p-09cca7b9.entry.js} +1 -1
- package/dist/playground/build/p-0aa74ad6.entry.js +1 -0
- package/dist/playground/build/p-0ae43d6c.entry.js +1 -0
- package/dist/playground/build/p-0c3aac3f.entry.js +1 -0
- package/dist/playground/build/p-144ef339.entry.js +1 -0
- package/dist/playground/build/p-1d1f7bc3.entry.js +1 -0
- package/dist/playground/build/p-296fbdb1.entry.js +1 -0
- package/dist/playground/build/p-36118d90.entry.js +1 -0
- package/dist/playground/build/{p-82810ead.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/playground/build/{p-25c3b776.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/playground/build/{p-b4dfadea.entry.js → p-4d61b70d.entry.js} +1 -1
- package/dist/playground/build/p-5f232b44.entry.js +13 -0
- package/dist/playground/build/{p-b9e83fa3.entry.js → p-64096386.entry.js} +1 -1
- package/dist/playground/build/{p-e6603d17.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{webquark/p-fed7219c.entry.js → playground/build/p-6e28cfe2.entry.js} +1 -1
- package/dist/playground/build/{p-e1c8a9aa.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/{webquark/p-d0c55860.entry.js → playground/build/p-8ece2c62.entry.js} +1 -1
- package/dist/playground/build/p-90b0858c.entry.js +1 -0
- package/dist/playground/build/p-91fff6b6.entry.js +1 -0
- package/dist/playground/build/p-923dac41.entry.js +1 -0
- package/dist/playground/build/p-97a89cae.entry.js +1 -0
- package/dist/playground/build/{p-362c5608.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/playground/build/{p-5453eac7.entry.js → p-9e78b796.entry.js} +1 -1
- package/dist/playground/build/{p-b08d0ed8.entry.js → p-9ff7e5a4.entry.js} +1 -1
- package/dist/{components/p-CyPFM3XV.js → playground/build/p-B4Mg1xEw.js} +1 -1
- package/dist/playground/build/p-B5ElFlHv.js +3 -0
- package/dist/playground/build/p-BOdNg0jc.js +1 -0
- package/dist/playground/build/p-BcL0NVv0.js +1 -0
- package/dist/playground/build/p-CGml_DQ8.js +1 -0
- package/dist/playground/build/p-C_RztzNv.js +5 -0
- package/dist/playground/build/p-CoIMrUb3.js +1 -0
- package/dist/{webquark/p-g9vOVxQ4.js → playground/build/p-DKrPmn2y.js} +2 -2
- package/dist/playground/build/p-DWO-pleQ.js +1 -0
- package/dist/{components/p-COMoSatC.js → playground/build/p-Dhsn99q4.js} +1 -1
- package/dist/playground/build/p-DstNl_WY.js +1 -0
- package/dist/playground/build/p-GHhpSfZU.js +1 -0
- package/dist/playground/build/p-SzKf4WZF.js +1 -0
- package/dist/playground/build/p-c523ec6f.entry.js +1 -0
- package/dist/playground/build/p-d0253d64.entry.js +1 -0
- package/dist/playground/build/p-d0fbd2b1.entry.js +1 -0
- package/dist/{webquark/p-9b4271ea.entry.js → playground/build/p-dd115868.entry.js} +1 -1
- package/dist/playground/build/{p-5eeb922e.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/playground/build/{p-17011e71.entry.js → p-f4f97e74.entry.js} +1 -1
- package/dist/playground/build/p-f63b7214.entry.js +1 -0
- package/dist/{webquark/p-9227780b.entry.js → playground/build/p-f98f9439.entry.js} +1 -1
- package/dist/playground/build/{p-ae4e5ec4.entry.js → p-f9ad63ff.entry.js} +1 -1
- package/dist/playground/build/p-fe200f68.entry.js +1 -0
- package/dist/playground/build/p-fe8c634a.entry.js +13 -0
- package/dist/{webquark/p-151a555e.entry.js → playground/build/p-fec6fe0a.entry.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/playground/components.manifest.json +1 -0
- package/dist/playground/playground/specs/q-carousel.sandbox.json +15 -0
- package/dist/playground/playground/specs/q-data-table.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +17 -1
- package/dist/playground/playground/specs/q-image-comparison.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +68 -24
- package/dist/playground/playground.js +16 -7
- package/dist/types/components/actions/button/button.d.ts +26 -0
- package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
- package/dist/types/components/content/carousel/carousel.d.ts +71 -4
- package/dist/types/components/content/carousel/carousel.types.d.ts +5 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
- package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
- package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +2 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +18 -1
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +3 -0
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +1 -0
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +5 -1
- package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/map/map.d.ts +7 -3
- package/dist/types/components/data-display/map/map.types.d.ts +11 -1
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +1 -4
- package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +9 -3
- package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +5 -0
- package/dist/types/components/inputs/form/form.d.ts +12 -7
- package/dist/types/components/inputs/form/form.types.d.ts +2 -0
- package/dist/types/components/inputs/form/internals/controls.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
- package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
- package/dist/types/components/inputs/form/internals/values.d.ts +6 -1
- package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/input/input.d.ts +7 -1
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +6 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +5 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +9 -0
- package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
- package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +1 -1
- package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
- package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
- package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
- package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
- package/dist/types/components/media/media/media.d.ts +1 -1
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +1 -1
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +5 -0
- package/dist/types/components.d.ts +436 -23
- package/dist/types/index.d.ts +6 -3
- package/dist/types/utils/form-field-adapter.d.ts +17 -0
- package/dist/types/utils/form-field-state.d.ts +4 -0
- package/dist/types/utils/form-reset-action.d.ts +5 -0
- package/dist/types/utils/form-submit-action.d.ts +17 -0
- package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +10 -19
- package/dist/types/utils/image-crop.d.ts +30 -0
- package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
- package/dist/types/utils/syntax.d.ts +11 -7
- package/dist/types/utils/syntax.unit.test.d.ts +1 -0
- package/dist/webquark/index.esm.js +1 -1
- package/dist/webquark/{p-781d3459.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/webquark/{p-ca240b8b.entry.js → p-030ecde3.entry.js} +1 -1
- package/dist/webquark/p-04c8cb9e.entry.js +1 -0
- package/dist/webquark/{p-81f64d6f.entry.js → p-059daa8a.entry.js} +1 -1
- package/dist/webquark/{p-964d27e0.entry.js → p-09cca7b9.entry.js} +1 -1
- package/dist/webquark/p-0aa74ad6.entry.js +1 -0
- package/dist/webquark/p-0ae43d6c.entry.js +1 -0
- package/dist/webquark/p-0c3aac3f.entry.js +1 -0
- package/dist/webquark/p-144ef339.entry.js +1 -0
- package/dist/webquark/p-1d1f7bc3.entry.js +1 -0
- package/dist/webquark/p-296fbdb1.entry.js +1 -0
- package/dist/webquark/p-36118d90.entry.js +1 -0
- package/dist/webquark/{p-82810ead.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/webquark/{p-25c3b776.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/webquark/{p-b4dfadea.entry.js → p-4d61b70d.entry.js} +1 -1
- package/dist/webquark/p-5f232b44.entry.js +13 -0
- package/dist/webquark/{p-b9e83fa3.entry.js → p-64096386.entry.js} +1 -1
- package/dist/webquark/{p-e6603d17.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{playground/build/p-fed7219c.entry.js → webquark/p-6e28cfe2.entry.js} +1 -1
- package/dist/webquark/{p-e1c8a9aa.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/{playground/build/p-d0c55860.entry.js → webquark/p-8ece2c62.entry.js} +1 -1
- package/dist/webquark/p-90b0858c.entry.js +1 -0
- package/dist/webquark/p-91fff6b6.entry.js +1 -0
- package/dist/webquark/p-923dac41.entry.js +1 -0
- package/dist/webquark/p-97a89cae.entry.js +1 -0
- package/dist/webquark/{p-362c5608.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/webquark/{p-5453eac7.entry.js → p-9e78b796.entry.js} +1 -1
- package/dist/webquark/{p-b08d0ed8.entry.js → p-9ff7e5a4.entry.js} +1 -1
- package/dist/{playground/build/p-CyPFM3XV.js → webquark/p-B4Mg1xEw.js} +1 -1
- package/dist/webquark/p-B5ElFlHv.js +3 -0
- package/dist/webquark/p-BOdNg0jc.js +1 -0
- package/dist/webquark/p-BcL0NVv0.js +1 -0
- package/dist/webquark/p-CGml_DQ8.js +1 -0
- package/dist/webquark/p-C_RztzNv.js +5 -0
- package/dist/webquark/p-CoIMrUb3.js +1 -0
- package/dist/{playground/build/p-g9vOVxQ4.js → webquark/p-DKrPmn2y.js} +2 -2
- package/dist/webquark/p-DWO-pleQ.js +1 -0
- package/dist/webquark/{p-CGcC-mvi.js → p-Dhsn99q4.js} +1 -1
- package/dist/webquark/p-DstNl_WY.js +1 -0
- package/dist/webquark/p-GHhpSfZU.js +1 -0
- package/dist/webquark/p-SzKf4WZF.js +1 -0
- package/dist/webquark/p-c523ec6f.entry.js +1 -0
- package/dist/webquark/p-d0253d64.entry.js +1 -0
- package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
- package/dist/{playground/build/p-9b4271ea.entry.js → webquark/p-dd115868.entry.js} +1 -1
- package/dist/webquark/{p-5eeb922e.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/webquark/{p-17011e71.entry.js → p-f4f97e74.entry.js} +1 -1
- package/dist/webquark/p-f63b7214.entry.js +1 -0
- package/dist/{playground/build/p-9227780b.entry.js → webquark/p-f98f9439.entry.js} +1 -1
- package/dist/webquark/{p-ae4e5ec4.entry.js → p-f9ad63ff.entry.js} +1 -1
- package/dist/webquark/p-fe200f68.entry.js +1 -0
- package/dist/webquark/p-fe8c634a.entry.js +13 -0
- package/dist/{playground/build/p-151a555e.entry.js → webquark/p-fec6fe0a.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +16 -19
- package/scripts/webquark-serve.js +9 -7
- package/scripts/wq-switch/README.md +113 -109
- package/scripts/wq-switch/dist/index.js +106 -82
- package/scripts/wq-switch/dist/setup.js +80 -60
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +0 -1031
- package/dist/cjs/registry-BhkCNgxt.js +0 -179
- package/dist/components/p-2_cpBb8_.js +0 -1
- package/dist/components/p-BfZVatS6.js +0 -1
- package/dist/components/p-BvBRW3dl.js +0 -1
- package/dist/components/p-CFuqfXuv.js +0 -9
- package/dist/components/p-Cn_ChUpc.js +0 -1
- package/dist/components/p-DmqVhVoj.js +0 -1
- package/dist/components/p-DwnH6_NQ.js +0 -1
- package/dist/components/p-WJHaLJS_.js +0 -1
- package/dist/components/p-_X1v1o3K.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +0 -1026
- package/dist/esm/registry-BvBRW3dl.js +0 -173
- package/dist/playground/build/p-04799ed0.entry.js +0 -1
- package/dist/playground/build/p-0610d5b2.entry.js +0 -1
- package/dist/playground/build/p-160cb4e4.entry.js +0 -1
- package/dist/playground/build/p-1cf51c80.entry.js +0 -1
- package/dist/playground/build/p-3d674223.entry.js +0 -1
- package/dist/playground/build/p-4fff116c.entry.js +0 -1
- package/dist/playground/build/p-675d0d03.entry.js +0 -13
- package/dist/playground/build/p-70c4f92f.entry.js +0 -1
- package/dist/playground/build/p-72dc1231.entry.js +0 -1
- package/dist/playground/build/p-736b1c8c.entry.js +0 -1
- package/dist/playground/build/p-96922229.entry.js +0 -1
- package/dist/playground/build/p-BLvl8YLq.js +0 -1
- package/dist/playground/build/p-BvBRW3dl.js +0 -1
- package/dist/playground/build/p-CFuqfXuv.js +0 -9
- package/dist/playground/build/p-DmqVhVoj.js +0 -1
- package/dist/playground/build/p-WJHaLJS_.js +0 -1
- package/dist/playground/build/p-b7ac65c6.entry.js +0 -1
- package/dist/playground/build/p-bba3c7b4.entry.js +0 -1
- package/dist/playground/build/p-bf47c46a.entry.js +0 -13
- package/dist/playground/build/p-c448b4ce.entry.js +0 -1
- package/dist/playground/build/p-cb5ebd01.entry.js +0 -1
- package/dist/playground/build/p-e762a4b7.entry.js +0 -1
- package/dist/playground/build/p-fb76473e.entry.js +0 -1
- package/dist/playground/build/p-tSny_c7b.js +0 -3
- package/dist/webquark/p-04799ed0.entry.js +0 -1
- package/dist/webquark/p-0610d5b2.entry.js +0 -1
- package/dist/webquark/p-160cb4e4.entry.js +0 -1
- package/dist/webquark/p-1cf51c80.entry.js +0 -1
- package/dist/webquark/p-3d674223.entry.js +0 -1
- package/dist/webquark/p-4fff116c.entry.js +0 -1
- package/dist/webquark/p-675d0d03.entry.js +0 -13
- package/dist/webquark/p-70c4f92f.entry.js +0 -1
- package/dist/webquark/p-72dc1231.entry.js +0 -1
- package/dist/webquark/p-736b1c8c.entry.js +0 -1
- package/dist/webquark/p-96922229.entry.js +0 -1
- package/dist/webquark/p-BLvl8YLq.js +0 -1
- package/dist/webquark/p-BvBRW3dl.js +0 -1
- package/dist/webquark/p-CFuqfXuv.js +0 -9
- package/dist/webquark/p-DmqVhVoj.js +0 -1
- package/dist/webquark/p-WJHaLJS_.js +0 -1
- package/dist/webquark/p-b7ac65c6.entry.js +0 -1
- package/dist/webquark/p-bba3c7b4.entry.js +0 -1
- package/dist/webquark/p-bf47c46a.entry.js +0 -13
- package/dist/webquark/p-c448b4ce.entry.js +0 -1
- package/dist/webquark/p-cb5ebd01.entry.js +0 -1
- package/dist/webquark/p-e762a4b7.entry.js +0 -1
- package/dist/webquark/p-fb76473e.entry.js +0 -1
- package/dist/webquark/p-tSny_c7b.js +0 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-B5ElFlHv.js';
|
|
2
|
+
import { i as isFieldDisabled, s as syncFieldHost, a as syncNativeAttribute } from './form-field-state-DstNl_WY.js';
|
|
3
|
+
import { r as registerFormField } from './form-field-adapter-CGml_DQ8.js';
|
|
4
|
+
import { f as fieldFeedback, a as feedbackStyle } from './field-zfD6OQ02.js';
|
|
3
5
|
import { s as syncNativeControlValidity } from './form-control-validity-Bj2RJb2E.js';
|
|
4
6
|
import { c as calculateDynamicFontSize } from './dom-ByfrUWx1.js';
|
|
5
7
|
|
|
@@ -25,7 +27,7 @@ const QInput = class {
|
|
|
25
27
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
|
-
|
|
30
|
+
get el() { return getElement(this); }
|
|
29
31
|
value = "";
|
|
30
32
|
placeholder = "";
|
|
31
33
|
label;
|
|
@@ -65,12 +67,17 @@ const QInput = class {
|
|
|
65
67
|
qClick;
|
|
66
68
|
inputEl;
|
|
67
69
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
70
|
+
disabledState = false;
|
|
71
|
+
get isDisabled() {
|
|
72
|
+
return isFieldDisabled(this.el, this.disabled);
|
|
73
|
+
}
|
|
68
74
|
initialValue = "";
|
|
69
75
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
70
|
-
watchValue(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
watchValue() {
|
|
77
|
+
this.syncValidity();
|
|
78
|
+
}
|
|
79
|
+
watchConstraints() {
|
|
80
|
+
this.syncValidity();
|
|
74
81
|
}
|
|
75
82
|
componentWillLoad() {
|
|
76
83
|
this.initialValue = this.value || "";
|
|
@@ -78,14 +85,32 @@ const QInput = class {
|
|
|
78
85
|
this.internals.setFormValue(this.value);
|
|
79
86
|
}
|
|
80
87
|
}
|
|
88
|
+
formDisabledCallback() {
|
|
89
|
+
this.syncValidity();
|
|
90
|
+
}
|
|
91
|
+
componentDidLoad() {
|
|
92
|
+
registerFormField(this.el, {
|
|
93
|
+
kind: 'text',
|
|
94
|
+
owner: () => this.internals?.form ?? null,
|
|
95
|
+
active: () => true,
|
|
96
|
+
value: () => this.value,
|
|
97
|
+
assign: value => { this.value = value; },
|
|
98
|
+
reconcile: () => {
|
|
99
|
+
if (this.inputEl && this.inputEl.value !== this.value)
|
|
100
|
+
this.inputEl.value = this.value;
|
|
101
|
+
this.internals?.setFormValue?.(this.value);
|
|
102
|
+
this.syncValidity();
|
|
103
|
+
},
|
|
104
|
+
reset: () => this.formResetCallback(),
|
|
105
|
+
validate: report => report ? this.internals?.reportValidity?.() ?? true : this.internals?.checkValidity?.() ?? true,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
81
108
|
componentDidRender() {
|
|
82
109
|
this.syncValidity();
|
|
83
110
|
}
|
|
84
111
|
formResetCallback() {
|
|
85
112
|
this.value = this.initialValue;
|
|
86
|
-
|
|
87
|
-
this.internals.setFormValue(this.value);
|
|
88
|
-
}
|
|
113
|
+
this.syncValidity();
|
|
89
114
|
}
|
|
90
115
|
// ============================ [4] EXPOSED METHODS ============================
|
|
91
116
|
/** Moves focus to the native input. */
|
|
@@ -122,12 +147,26 @@ const QInput = class {
|
|
|
122
147
|
this.hasSuffix = hasAssignedSlotContent(slot);
|
|
123
148
|
};
|
|
124
149
|
syncValidity() {
|
|
150
|
+
const disabled = syncFieldHost(this.el, this.disabled, this.name, this.required);
|
|
151
|
+
if (this.disabledState !== disabled)
|
|
152
|
+
this.disabledState = disabled;
|
|
125
153
|
if (!this.inputEl || !this.internals)
|
|
126
154
|
return;
|
|
155
|
+
this.inputEl.disabled = disabled;
|
|
156
|
+
this.inputEl.required = this.required;
|
|
157
|
+
this.inputEl.readOnly = this.el.hasAttribute('readonly');
|
|
158
|
+
this.inputEl.name = this.name ?? '';
|
|
159
|
+
this.inputEl.type = this.type === 'password' && this.passwordVisible ? 'text' : this.type;
|
|
160
|
+
syncNativeAttribute(this.inputEl, 'min', this.min);
|
|
161
|
+
syncNativeAttribute(this.inputEl, 'max', this.max);
|
|
162
|
+
syncNativeAttribute(this.inputEl, 'step', this.step);
|
|
163
|
+
if (this.inputEl.value !== this.value)
|
|
164
|
+
this.inputEl.value = this.value;
|
|
165
|
+
this.internals.setFormValue?.(disabled ? null : this.value);
|
|
127
166
|
syncNativeControlValidity({
|
|
128
167
|
internals: this.internals,
|
|
129
168
|
control: this.inputEl,
|
|
130
|
-
disabled: this.
|
|
169
|
+
disabled: this.isDisabled,
|
|
131
170
|
customError: this.error || this.errorMessage,
|
|
132
171
|
});
|
|
133
172
|
}
|
|
@@ -167,7 +206,7 @@ const QInput = class {
|
|
|
167
206
|
return clamped;
|
|
168
207
|
}
|
|
169
208
|
stepValue(direction) {
|
|
170
|
-
if (this.
|
|
209
|
+
if (this.isDisabled)
|
|
171
210
|
return;
|
|
172
211
|
const stepVal = (this.step !== undefined && this.step !== null) ? this.step : 1;
|
|
173
212
|
const newValue = this.clampNumericValue(this.resolveNumericBase() + (stepVal * direction));
|
|
@@ -213,11 +252,13 @@ const QInput = class {
|
|
|
213
252
|
this.qFocus.emit(ev);
|
|
214
253
|
};
|
|
215
254
|
handleClick = (ev) => {
|
|
216
|
-
if (this.
|
|
255
|
+
if (this.isDisabled)
|
|
217
256
|
return;
|
|
218
257
|
this.qClick.emit(ev);
|
|
219
258
|
};
|
|
220
|
-
handleClear = () => {
|
|
259
|
+
handleClear = (event) => {
|
|
260
|
+
if (event && this.isDisabled)
|
|
261
|
+
return;
|
|
221
262
|
this.value = "";
|
|
222
263
|
this.qInput.emit(this.value);
|
|
223
264
|
this.qChange.emit(this.value);
|
|
@@ -228,7 +269,7 @@ const QInput = class {
|
|
|
228
269
|
handlePasswordToggle = (ev) => {
|
|
229
270
|
ev.preventDefault();
|
|
230
271
|
ev.stopPropagation();
|
|
231
|
-
if (this.
|
|
272
|
+
if (this.isDisabled || this.type !== 'password')
|
|
232
273
|
return;
|
|
233
274
|
const selectionStart = this.inputEl?.selectionStart ?? null;
|
|
234
275
|
const selectionEnd = this.inputEl?.selectionEnd ?? null;
|
|
@@ -243,7 +284,7 @@ const QInput = class {
|
|
|
243
284
|
});
|
|
244
285
|
};
|
|
245
286
|
handleKeyDown = (ev) => {
|
|
246
|
-
if (this.type !== 'number' || this.
|
|
287
|
+
if (this.type !== 'number' || this.isDisabled)
|
|
247
288
|
return;
|
|
248
289
|
if (ev.key === 'ArrowUp') {
|
|
249
290
|
ev.preventDefault();
|
|
@@ -258,8 +299,8 @@ const QInput = class {
|
|
|
258
299
|
render() {
|
|
259
300
|
const hasError = !!(this.error || this.errorMessage);
|
|
260
301
|
const displayError = this.error || this.errorMessage;
|
|
261
|
-
const showClearBtn = this.clearable && !this.
|
|
262
|
-
const showPasswordToggle = this.type === 'password' && !this.
|
|
302
|
+
const showClearBtn = this.clearable && !this.isDisabled && this.value.length > 0;
|
|
303
|
+
const showPasswordToggle = this.type === 'password' && !this.isDisabled;
|
|
263
304
|
const inputType = showPasswordToggle && this.passwordVisible ? 'text' : this.type;
|
|
264
305
|
const showSuffixContainer = this.hasSuffix || showClearBtn || showPasswordToggle;
|
|
265
306
|
const numericValue = parseFloat(this.value);
|
|
@@ -267,22 +308,49 @@ const QInput = class {
|
|
|
267
308
|
const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
|
|
268
309
|
const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
|
|
269
310
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
270
|
-
return (h("div", { key: '
|
|
311
|
+
return (h("div", { key: '0e7840b7336a1fa58a1e7a8caadf5201d01fddaf', style: feedbackStyle(this.reserveFeedback), class: {
|
|
271
312
|
'input-wrapper': true,
|
|
272
|
-
'is-disabled': this.
|
|
313
|
+
'is-disabled': this.isDisabled,
|
|
273
314
|
'has-error': hasError,
|
|
274
315
|
[`size-${this.size}`]: true
|
|
275
|
-
} }, this.label && (h("label", { key: '
|
|
316
|
+
} }, this.label && (h("label", { key: '06a2ade9135e9a32a9e9e86d4a1a39f5e24041cf', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: '6613a45de2e78a0a1c4f633662e41bb25bae2113', class: "input-control", part: "control" }, h("span", { key: '5fbf515406625be7f858bdd2b392f5b445742f2a', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: '0db14593c4fef2fa5c189c97e1494e66ce0f1111', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
276
317
|
'input-box': true,
|
|
277
318
|
'has-prefix-padding': this.hasPrefix,
|
|
278
319
|
'has-suffix-padding': showSuffixContainer
|
|
279
|
-
}, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.
|
|
320
|
+
}, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.isDisabled && (h("div", { key: '43adf0ab89c2707936a809dcb5bdbb71b73e4773', class: "input-spinners", part: "spinners" }, h("button", { key: '06c2a7a29c88df2f09225f17c6a61910df53ad55', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, h("svg", { key: '97f929deb4071b94d1a4c17ab3d1f22d57e18082', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '964b1b3bd8246c0d2bb85c92cb7b1dc5054923be', d: "M18 15l-6-6-6 6" }))), h("button", { key: '818f78f1cd5c019d1a7c13e5cd55d9de1650e910', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, h("svg", { key: '2cddd6507a0f5040de732a0367fe642675d9775d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '8a024c5974c35e82627545ec026abc5c33442c2d', d: "M6 9l6 6 6-6" }))))), h("span", { key: '637b5e01d20e62bef51928ae7506275aad8f557d', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: '0acd5527b76f26646c01004f08f2cf99ac5e191b', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: '94b09cd8041c6a203ad66b9ab3ad49bf86f2ff60', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'c06b44e36b139618e80636736ca679e70b975a6a', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (h("button", { key: '0f80c2072d9c51c0b3edfb7a42ecb87ea6c9126b', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M3 3l18 18" }), h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), h("circle", { cx: "12", cy: "12", r: "3" }))))), h("span", { key: '736690c1f52724f69ada9078e92449399e4a01c9', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, h("slot", { key: 'f1d5cd767b073438728bb95e5643a29e56e3556a', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), fieldFeedback('q-field-error', displayError, this.description)));
|
|
280
321
|
}
|
|
281
322
|
static get delegatesFocus() { return true; }
|
|
282
323
|
static get formAssociated() { return true; }
|
|
283
324
|
static get watchers() { return {
|
|
284
325
|
"value": [{
|
|
285
326
|
"watchValue": 0
|
|
327
|
+
}],
|
|
328
|
+
"disabled": [{
|
|
329
|
+
"watchConstraints": 0
|
|
330
|
+
}],
|
|
331
|
+
"required": [{
|
|
332
|
+
"watchConstraints": 0
|
|
333
|
+
}],
|
|
334
|
+
"name": [{
|
|
335
|
+
"watchConstraints": 0
|
|
336
|
+
}],
|
|
337
|
+
"error": [{
|
|
338
|
+
"watchConstraints": 0
|
|
339
|
+
}],
|
|
340
|
+
"errorMessage": [{
|
|
341
|
+
"watchConstraints": 0
|
|
342
|
+
}],
|
|
343
|
+
"type": [{
|
|
344
|
+
"watchConstraints": 0
|
|
345
|
+
}],
|
|
346
|
+
"min": [{
|
|
347
|
+
"watchConstraints": 0
|
|
348
|
+
}],
|
|
349
|
+
"max": [{
|
|
350
|
+
"watchConstraints": 0
|
|
351
|
+
}],
|
|
352
|
+
"step": [{
|
|
353
|
+
"watchConstraints": 0
|
|
286
354
|
}]
|
|
287
355
|
}; }
|
|
288
356
|
};
|
package/dist/esm/q-link.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Mixin, r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { w as withActionLabel, a as withActionProps } from './action.props-
|
|
1
|
+
import { M as Mixin, r as registerInstance, c as createEvent, h } from './index-B5ElFlHv.js';
|
|
2
|
+
import { w as withActionLabel, a as withActionProps } from './action.props-CpnGza8z.js';
|
|
3
3
|
|
|
4
4
|
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}`;
|
|
5
5
|
|
package/dist/esm/q-map.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
2
|
-
import { g as Q_MAP_MARKER_VARIANTS, d as Q_MAP_MARKER_KINDS, e as Q_MAP_MARKER_RINGS, f as Q_MAP_MARKER_SIZES, a as Q_MAP_MARKER_CALLOUT_PLACEMENTS, b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS, c as Q_MAP_MARKER_CALLOUT_VISIBILITIES, Q as Q_MAP_DEFAULT_CLUSTER_GROUP } from './map.types-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-B5ElFlHv.js';
|
|
2
|
+
import { g as Q_MAP_MARKER_VARIANTS, d as Q_MAP_MARKER_KINDS, e as Q_MAP_MARKER_RINGS, f as Q_MAP_MARKER_SIZES, a as Q_MAP_MARKER_CALLOUT_PLACEMENTS, b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS, c as Q_MAP_MARKER_CALLOUT_VISIBILITIES, Q as Q_MAP_DEFAULT_CLUSTER_GROUP } from './map.types-CoIMrUb3.js';
|
|
3
3
|
|
|
4
4
|
function isTilePreloadBufferRelevant(requestedProvider, activeProvider) {
|
|
5
5
|
return requestedProvider === 'tiles' || activeProvider === 'tiles';
|
|
@@ -524,7 +524,7 @@ async function importMapLibreLayerFactory(leaflet) {
|
|
|
524
524
|
if (typeof window === 'undefined') {
|
|
525
525
|
throw new Error('QMap: the vector provider is only available in a browser environment.');
|
|
526
526
|
}
|
|
527
|
-
await import('./leaflet-maplibre-gl-
|
|
527
|
+
await import('./leaflet-maplibre-gl-BvKlNmWf.js');
|
|
528
528
|
const factory = leaflet.maplibreGL;
|
|
529
529
|
if (typeof factory !== 'function') {
|
|
530
530
|
throw new Error('QMap: MapLibre did not register its Leaflet layer factory.');
|
|
@@ -1447,6 +1447,15 @@ function getOptionalFiniteNumber(value) {
|
|
|
1447
1447
|
? value
|
|
1448
1448
|
: undefined;
|
|
1449
1449
|
}
|
|
1450
|
+
function getOptionalPixelPair(value, positive) {
|
|
1451
|
+
if (!Array.isArray(value) || value.length !== 2)
|
|
1452
|
+
return undefined;
|
|
1453
|
+
const first = getOptionalFiniteNumber(value[0]);
|
|
1454
|
+
const second = getOptionalFiniteNumber(value[1]);
|
|
1455
|
+
if (first === undefined || second === undefined || (positive && (first <= 0 || second <= 0)))
|
|
1456
|
+
return undefined;
|
|
1457
|
+
return [first, second];
|
|
1458
|
+
}
|
|
1450
1459
|
function normalizeBadge(value) {
|
|
1451
1460
|
if (!isRecord(value))
|
|
1452
1461
|
return undefined;
|
|
@@ -1535,13 +1544,17 @@ function normalizeMarker(value) {
|
|
|
1535
1544
|
return undefined;
|
|
1536
1545
|
const label = typeof value.label === 'string' && value.label.trim().length > 0 ? value.label : String(value.id);
|
|
1537
1546
|
const imageUrl = getOptionalText(value.imageUrl);
|
|
1547
|
+
const imageSize = getOptionalPixelPair(value.imageSize, true);
|
|
1548
|
+
const imageAnchor = getOptionalPixelPair(value.imageAnchor, false);
|
|
1538
1549
|
const fallbackText = getOptionalText(value.fallbackText);
|
|
1539
1550
|
const icon = getOptionalText(value.icon);
|
|
1540
1551
|
const iconSize = getOptionalFiniteNumber(value.iconSize);
|
|
1541
1552
|
const iconOffsetX = getOptionalFiniteNumber(value.iconOffsetX);
|
|
1542
1553
|
const iconOffsetY = getOptionalFiniteNumber(value.iconOffsetY);
|
|
1543
1554
|
const requestedKind = getOptionalEnum(value.kind, MARKER_KINDS);
|
|
1544
|
-
const kind = requestedKind === 'icon' && !icon
|
|
1555
|
+
const kind = (requestedKind === 'icon' && !icon) || (requestedKind === 'image' && !imageUrl)
|
|
1556
|
+
? 'dot'
|
|
1557
|
+
: requestedKind;
|
|
1545
1558
|
const size = getOptionalEnum(value.size, MARKER_SIZES);
|
|
1546
1559
|
const ring = getOptionalEnum(value.ring, MARKER_RINGS);
|
|
1547
1560
|
const badge = normalizeBadge(value.badge);
|
|
@@ -1555,6 +1568,8 @@ function normalizeMarker(value) {
|
|
|
1555
1568
|
clusterGroup: normalizeClusterGroup(value.clusterGroup),
|
|
1556
1569
|
variant: getMarkerVariant(value.variant),
|
|
1557
1570
|
...(imageUrl ? { imageUrl } : {}),
|
|
1571
|
+
...(imageSize ? { imageSize } : {}),
|
|
1572
|
+
...(imageAnchor ? { imageAnchor } : {}),
|
|
1558
1573
|
...(fallbackText ? { fallbackText } : {}),
|
|
1559
1574
|
...(kind ? { kind } : {}),
|
|
1560
1575
|
...(icon ? { icon } : {}),
|
|
@@ -1790,7 +1805,7 @@ function stableCollisionDirection(leftKey, rightKey) {
|
|
|
1790
1805
|
return { x: Math.cos(angle), y: Math.sin(angle) };
|
|
1791
1806
|
}
|
|
1792
1807
|
|
|
1793
|
-
const KIND_CLASSES = ['kind-dot', 'kind-avatar', 'kind-icon'];
|
|
1808
|
+
const KIND_CLASSES = ['kind-dot', 'kind-avatar', 'kind-icon', 'kind-image'];
|
|
1794
1809
|
const RING_CLASSES = ['ring-none', 'ring-solid', 'ring-dashed'];
|
|
1795
1810
|
const ICON_SIZE_PROPERTY = '--q-map-marker-icon-size';
|
|
1796
1811
|
const ICON_OFFSET_X_PROPERTY = '--q-map-marker-icon-offset-x';
|
|
@@ -1831,14 +1846,20 @@ function createMarkerContent(document) {
|
|
|
1831
1846
|
image.addEventListener('load', () => {
|
|
1832
1847
|
if (image.dataset.source !== image.getAttribute('src'))
|
|
1833
1848
|
return;
|
|
1849
|
+
if (surface.dataset.markerKind === 'image' && (!image.complete || image.naturalWidth <= 0))
|
|
1850
|
+
return;
|
|
1834
1851
|
image.hidden = false;
|
|
1835
1852
|
center.classList.add('has-image');
|
|
1853
|
+
syncImageMarkerPresentation(surface, image);
|
|
1836
1854
|
});
|
|
1837
1855
|
image.addEventListener('error', () => {
|
|
1838
1856
|
if (image.dataset.source !== image.getAttribute('src'))
|
|
1839
1857
|
return;
|
|
1858
|
+
if (surface.dataset.markerKind === 'image' && (!image.complete || image.naturalWidth > 0))
|
|
1859
|
+
return;
|
|
1840
1860
|
image.hidden = true;
|
|
1841
1861
|
center.classList.remove('has-image');
|
|
1862
|
+
syncImageMarkerPresentation(surface, image);
|
|
1842
1863
|
});
|
|
1843
1864
|
const icon = createIcon(document, 'q-map-marker__icon');
|
|
1844
1865
|
icon.hidden = true;
|
|
@@ -1857,6 +1878,36 @@ function createMarkerContent(document) {
|
|
|
1857
1878
|
surface.append(content);
|
|
1858
1879
|
return surface;
|
|
1859
1880
|
}
|
|
1881
|
+
function syncImageMarkerPresentation(element, image) {
|
|
1882
|
+
const position = element.parentElement;
|
|
1883
|
+
const requested = element.dataset.markerKind === 'image';
|
|
1884
|
+
const active = requested && !image.hidden;
|
|
1885
|
+
if (active) {
|
|
1886
|
+
element.classList.add('kind-image');
|
|
1887
|
+
position?.classList.add('is-image');
|
|
1888
|
+
}
|
|
1889
|
+
else {
|
|
1890
|
+
element.classList.remove('kind-image');
|
|
1891
|
+
position?.classList.remove('is-image');
|
|
1892
|
+
}
|
|
1893
|
+
if (!requested)
|
|
1894
|
+
return;
|
|
1895
|
+
element.classList.toggle('kind-dot', !active);
|
|
1896
|
+
element.classList.toggle('has-content', active);
|
|
1897
|
+
if (!active || !position)
|
|
1898
|
+
return;
|
|
1899
|
+
const naturalWidth = image.naturalWidth || 32;
|
|
1900
|
+
const naturalHeight = image.naturalHeight || 32;
|
|
1901
|
+
const scale = Math.min(1, 48 / naturalWidth, 48 / naturalHeight);
|
|
1902
|
+
const width = Number(image.dataset.width) || naturalWidth * scale;
|
|
1903
|
+
const height = Number(image.dataset.height) || naturalHeight * scale;
|
|
1904
|
+
const anchorX = image.dataset.anchorX === undefined ? width / 2 : Number(image.dataset.anchorX);
|
|
1905
|
+
const anchorY = image.dataset.anchorY === undefined ? height : Number(image.dataset.anchorY);
|
|
1906
|
+
position.style.setProperty('--q-map-image-width', `${width}px`);
|
|
1907
|
+
position.style.setProperty('--q-map-image-height', `${height}px`);
|
|
1908
|
+
position.style.setProperty('--q-map-image-anchor-x', `${anchorX}px`);
|
|
1909
|
+
position.style.setProperty('--q-map-image-anchor-y', `${anchorY}px`);
|
|
1910
|
+
}
|
|
1860
1911
|
function updateImage(center, image, imageUrl) {
|
|
1861
1912
|
if (!imageUrl) {
|
|
1862
1913
|
image.hidden = true;
|
|
@@ -1883,6 +1934,7 @@ function updateMarkerPresentation(element, marker, selected) {
|
|
|
1883
1934
|
const kind = marker.kind === 'icon' && !marker.icon ? 'dot' : marker.kind;
|
|
1884
1935
|
if (kind)
|
|
1885
1936
|
element.classList.add(`kind-${kind}`);
|
|
1937
|
+
element.dataset.markerKind = kind ?? '';
|
|
1886
1938
|
element.classList.toggle('is-pulsing', marker.pulse === true);
|
|
1887
1939
|
element.classList.toggle('is-selected', selected);
|
|
1888
1940
|
syncFinitePixelProperty(element, ICON_SIZE_PROPERTY, marker.iconSize);
|
|
@@ -1896,13 +1948,25 @@ function updateMarkerPresentation(element, marker, selected) {
|
|
|
1896
1948
|
return;
|
|
1897
1949
|
const avatarContent = kind === 'avatar' || kind === undefined;
|
|
1898
1950
|
const fallbackText = avatarContent ? marker.fallbackText ?? '' : '';
|
|
1899
|
-
const imageUrl = avatarContent ? marker.imageUrl : undefined;
|
|
1951
|
+
const imageUrl = avatarContent || kind === 'image' ? marker.imageUrl : undefined;
|
|
1900
1952
|
const iconName = kind === 'icon' ? marker.icon : undefined;
|
|
1901
1953
|
fallback.textContent = fallbackText;
|
|
1902
1954
|
fallback.hidden = !fallbackText;
|
|
1955
|
+
for (const [key, value] of Object.entries({
|
|
1956
|
+
width: marker.imageSize?.[0],
|
|
1957
|
+
height: marker.imageSize?.[1],
|
|
1958
|
+
anchorX: marker.imageAnchor?.[0],
|
|
1959
|
+
anchorY: marker.imageAnchor?.[1],
|
|
1960
|
+
})) {
|
|
1961
|
+
if (value === undefined)
|
|
1962
|
+
delete image.dataset[key];
|
|
1963
|
+
else
|
|
1964
|
+
image.dataset[key] = String(value);
|
|
1965
|
+
}
|
|
1903
1966
|
updateImage(center, image, imageUrl);
|
|
1904
1967
|
updateIcon(icon, iconName);
|
|
1905
1968
|
element.classList.toggle('has-content', Boolean(fallbackText || imageUrl || iconName));
|
|
1969
|
+
syncImageMarkerPresentation(element, image);
|
|
1906
1970
|
const badge = element.querySelector('.q-map-marker__badge');
|
|
1907
1971
|
const badgeIcon = badge?.querySelector('.q-map-marker__badge-icon');
|
|
1908
1972
|
const badgeText = badge?.querySelector('.q-map-marker__badge-text');
|
|
@@ -2673,7 +2737,7 @@ function normalizeVectorPadding(value) {
|
|
|
2673
2737
|
return Math.max(0, Math.min(MAX_VECTOR_PADDING, value));
|
|
2674
2738
|
}
|
|
2675
2739
|
|
|
2676
|
-
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}}`;
|
|
2740
|
+
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}}`;
|
|
2677
2741
|
|
|
2678
2742
|
const GOOGLE_MAP_TYPES = ['roadmap', 'satellite', 'terrain', 'hybrid'];
|
|
2679
2743
|
const SMOOTH_ZOOM_DELTA = 0.5;
|
|
@@ -2715,6 +2779,8 @@ const QMap = class {
|
|
|
2715
2779
|
/** Clamped between the normalized zoom limits. */
|
|
2716
2780
|
zoom = 2;
|
|
2717
2781
|
zoomControls = true;
|
|
2782
|
+
/** Enables mouse-wheel zoom without changing touch, keyboard, or button controls. */
|
|
2783
|
+
scrollWheelZoom = true;
|
|
2718
2784
|
/** Non-finite values normalize to zero. */
|
|
2719
2785
|
minZoom = 0;
|
|
2720
2786
|
/** Never resolves below `minZoom`. */
|
|
@@ -2763,7 +2829,6 @@ const QMap = class {
|
|
|
2763
2829
|
map;
|
|
2764
2830
|
canvas;
|
|
2765
2831
|
resizeObserver;
|
|
2766
|
-
resizeFrame;
|
|
2767
2832
|
initializationToken = 0;
|
|
2768
2833
|
markerVisibilityToken = 0;
|
|
2769
2834
|
cancelMarkerVisibilityPan;
|
|
@@ -2788,6 +2853,32 @@ const QMap = class {
|
|
|
2788
2853
|
this.initializationToken += 1;
|
|
2789
2854
|
this.destroyMap();
|
|
2790
2855
|
}
|
|
2856
|
+
/** Fits the latest valid marker coordinates without changing the configured center or zoom props. */
|
|
2857
|
+
async fitMarkers(options = {}) {
|
|
2858
|
+
const map = this.map;
|
|
2859
|
+
const markers = getMapMarkers(this.markers);
|
|
2860
|
+
if (!map || !this.connected || markers.length === 0)
|
|
2861
|
+
return false;
|
|
2862
|
+
map.invalidateSize({ animate: false, pan: false });
|
|
2863
|
+
const size = map.getSize();
|
|
2864
|
+
if (size.x <= 0 || size.y <= 0)
|
|
2865
|
+
return false;
|
|
2866
|
+
const { minimum, maximum } = this.getZoomLimits();
|
|
2867
|
+
const maxZoom = Number.isFinite(options.maxZoom)
|
|
2868
|
+
? Math.max(minimum, Math.min(maximum, options.maxZoom))
|
|
2869
|
+
: maximum;
|
|
2870
|
+
const requestedPadding = Number.isFinite(options.padding) ? Math.max(0, options.padding) : 0;
|
|
2871
|
+
const padding = Math.min(requestedPadding, Math.max(0, (Math.min(size.x, size.y) - 1) / 2));
|
|
2872
|
+
this.markerVisibilityToken += 1;
|
|
2873
|
+
this.cancelMarkerVisibilityPan?.();
|
|
2874
|
+
this.markerController?.sync(this.markers);
|
|
2875
|
+
map.fitBounds(markers.map(marker => [marker.latitude, marker.longitude]), {
|
|
2876
|
+
animate: false,
|
|
2877
|
+
padding: [padding, padding],
|
|
2878
|
+
maxZoom,
|
|
2879
|
+
});
|
|
2880
|
+
return true;
|
|
2881
|
+
}
|
|
2791
2882
|
/** Minimally pans to fully expose a marker or its current cluster without changing zoom. */
|
|
2792
2883
|
async ensureMarkerVisible(markerId, occlusions) {
|
|
2793
2884
|
const operationToken = ++this.markerVisibilityToken;
|
|
@@ -2907,6 +2998,12 @@ const QMap = class {
|
|
|
2907
2998
|
handleBoundsChange() {
|
|
2908
2999
|
this.syncBounds(true);
|
|
2909
3000
|
}
|
|
3001
|
+
handleScrollWheelZoomChange() {
|
|
3002
|
+
if (this.scrollWheelZoom)
|
|
3003
|
+
this.map?.scrollWheelZoom.enable();
|
|
3004
|
+
else
|
|
3005
|
+
this.map?.scrollWheelZoom.disable();
|
|
3006
|
+
}
|
|
2910
3007
|
handleZoomControlsChange() {
|
|
2911
3008
|
if (!this.map)
|
|
2912
3009
|
return;
|
|
@@ -2951,6 +3048,7 @@ const QMap = class {
|
|
|
2951
3048
|
wheelPxPerZoomLevel: smoothMotion ? SMOOTH_WHEEL_PIXELS_PER_LEVEL : 60,
|
|
2952
3049
|
zoomAnimation: smoothMotion,
|
|
2953
3050
|
zoomControl: this.zoomControls,
|
|
3051
|
+
scrollWheelZoom: this.scrollWheelZoom,
|
|
2954
3052
|
zoomDelta: smoothMotion ? SMOOTH_ZOOM_DELTA : 1,
|
|
2955
3053
|
zoomSnap: smoothMotion ? SMOOTH_ZOOM_SNAP : 1,
|
|
2956
3054
|
});
|
|
@@ -2966,7 +3064,7 @@ const QMap = class {
|
|
|
2966
3064
|
return;
|
|
2967
3065
|
this.markerController?.sync(this.markers);
|
|
2968
3066
|
this.observeResize();
|
|
2969
|
-
this.map.invalidateSize({ animate: false, pan:
|
|
3067
|
+
this.map.invalidateSize({ animate: false, pan: true });
|
|
2970
3068
|
this.qReady.emit();
|
|
2971
3069
|
}
|
|
2972
3070
|
catch (error) {
|
|
@@ -3274,17 +3372,17 @@ const QMap = class {
|
|
|
3274
3372
|
if (!this.canvas || typeof ResizeObserver === 'undefined')
|
|
3275
3373
|
return;
|
|
3276
3374
|
this.resizeObserver?.disconnect();
|
|
3277
|
-
|
|
3375
|
+
// Update before paint so a changing frame never paints the previous frame's center.
|
|
3376
|
+
this.resizeObserver = new ResizeObserver(() => this.resizeMap());
|
|
3278
3377
|
this.resizeObserver.observe(this.canvas);
|
|
3279
3378
|
}
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
this.map?.invalidateSize({ animate: false, debounceMoveend: true, pan: false });
|
|
3286
|
-
this.syncBounds(false);
|
|
3379
|
+
resizeMap() {
|
|
3380
|
+
this.map?.invalidateSize({
|
|
3381
|
+
animate: false,
|
|
3382
|
+
debounceMoveend: true,
|
|
3383
|
+
pan: true,
|
|
3287
3384
|
});
|
|
3385
|
+
this.syncBounds(false);
|
|
3288
3386
|
}
|
|
3289
3387
|
destroyMap() {
|
|
3290
3388
|
this.markerVisibilityToken += 1;
|
|
@@ -3292,10 +3390,6 @@ const QMap = class {
|
|
|
3292
3390
|
this.cancelMarkerVisibilityPan = undefined;
|
|
3293
3391
|
this.resizeObserver?.disconnect();
|
|
3294
3392
|
this.resizeObserver = undefined;
|
|
3295
|
-
if (this.resizeFrame !== undefined) {
|
|
3296
|
-
cancelAnimationFrame(this.resizeFrame);
|
|
3297
|
-
this.resizeFrame = undefined;
|
|
3298
|
-
}
|
|
3299
3393
|
this.markerController?.destroy();
|
|
3300
3394
|
this.markerController = undefined;
|
|
3301
3395
|
this.layerController?.destroy();
|
|
@@ -3331,7 +3425,7 @@ const QMap = class {
|
|
|
3331
3425
|
}
|
|
3332
3426
|
}
|
|
3333
3427
|
render() {
|
|
3334
|
-
return (h("div", { key: '
|
|
3428
|
+
return (h("div", { key: '033fd7a2d32834e77a2558c65534977586ceedeb', class: "map-surface", part: "surface" }, 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 }), h("q-icon", { key: 'f2257ff57c557e82e0373fed177892c37190cbeb', class: "map-icon-registration", "aria-hidden": "true" }), this.providerStatus === 'empty' && (h("div", { key: '1473bd03ecda753ae602340396a342a9f36d0869', class: "map-empty", part: "empty", role: "status" }, h("slot", { key: '3459312eb6bf78f542c6bd3f700304097dc1add8', name: "empty" }, "Map provider is not configured."))), this.providerStatus === 'error' && (h("div", { key: '7477ce15ffad0b72381973c7ffd6e3dc64557159', class: "map-empty map-error", part: "error", role: "alert" }, h("slot", { key: 'ae647a72990bde7889aed466fdb005088c47e83d', name: "error" }, this.errorMessage ?? 'Map imagery is unavailable.'))), this.renderAttribution()));
|
|
3335
3429
|
}
|
|
3336
3430
|
static get watchers() { return {
|
|
3337
3431
|
"provider": [{
|
|
@@ -3397,6 +3491,9 @@ const QMap = class {
|
|
|
3397
3491
|
"maxBoundsViscosity": [{
|
|
3398
3492
|
"handleBoundsChange": 0
|
|
3399
3493
|
}],
|
|
3494
|
+
"scrollWheelZoom": [{
|
|
3495
|
+
"handleScrollWheelZoomChange": 0
|
|
3496
|
+
}],
|
|
3400
3497
|
"zoomControls": [{
|
|
3401
3498
|
"handleZoomControlsChange": 0
|
|
3402
3499
|
}]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-B5ElFlHv.js';
|
|
2
2
|
|
|
3
3
|
const mediaCss = () => `:host{display:block;min-width:0}`;
|
|
4
4
|
|
|
@@ -7,11 +7,11 @@ const QMedia = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
src = '';
|
|
10
|
-
alt = '';
|
|
11
10
|
kind = 'image';
|
|
12
11
|
loading = 'lazy';
|
|
12
|
+
alt = '';
|
|
13
13
|
render() {
|
|
14
|
-
return h(Host, { key: '
|
|
14
|
+
return h(Host, { key: '915251e24f7197221a2a7444fecbe1ad2544b563' }, h("slot", { key: '938c8d22d6289db2fe3ac5ed1a905c61e7994a4a' }), h("slot", { key: '9be4d4ce06cac5572f3ed8b130e9085d098aaa73', name: "fallback" }));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
QMedia.style = mediaCss();
|