@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,3 +1,6 @@
|
|
|
1
|
+
import { registerSubmitOwner, scheduleSubmitAction } from "../../../utils/form-submit-action";
|
|
2
|
+
import { isFieldDisabled, syncFieldHost, syncNativeAttribute } from "../../../utils/form-field-state";
|
|
3
|
+
import { scheduleResetAction } from "../../../utils/form-reset-action";
|
|
1
4
|
import { Build, Mixin, h } from "@stencil/core";
|
|
2
5
|
import { withActionProps } from "../action.props";
|
|
3
6
|
import { shouldWarnForMissingButtonAccessibleName } from "./button.utils";
|
|
@@ -16,12 +19,15 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
16
19
|
}
|
|
17
20
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
18
21
|
el;
|
|
22
|
+
internals;
|
|
19
23
|
/** Lucide icon rendered before the label. Use icon slots for custom content. */
|
|
20
24
|
icon;
|
|
21
25
|
/** Auto-detected from slotted icon content when omitted. */
|
|
22
26
|
iconOnly;
|
|
23
27
|
/** Required when an icon-only button has no accessible text. */
|
|
24
28
|
ariaLabel = null;
|
|
29
|
+
/** Successful submission value when this button is the submitter. */
|
|
30
|
+
value = '';
|
|
25
31
|
variant = 'primary';
|
|
26
32
|
size = 'inherit';
|
|
27
33
|
/** The `circle` shape uses a fixed-size circular presentation. */
|
|
@@ -33,13 +39,58 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
33
39
|
target;
|
|
34
40
|
/** Applied to the native `<button>` when `href` is unset. */
|
|
35
41
|
type = 'button';
|
|
42
|
+
/** Successful submission name when this button is the submitter. */
|
|
43
|
+
name;
|
|
44
|
+
/** Explicit native form ID in this tree; unresolved IDs do not fall back. */
|
|
45
|
+
form;
|
|
46
|
+
/** Overrides the owning form's action for this submission. */
|
|
47
|
+
formAction;
|
|
48
|
+
/** Overrides the owning form's method for this submission. */
|
|
49
|
+
formMethod;
|
|
50
|
+
/** Overrides the owning form's encoding for this submission. */
|
|
51
|
+
formEnctype;
|
|
52
|
+
/** Overrides the owning form's browsing context for this submission. */
|
|
53
|
+
formTarget;
|
|
54
|
+
/** Skips validation for this submitter while retaining cancellation and collection. */
|
|
55
|
+
formNoValidate = false;
|
|
36
56
|
/** Emitted on activation unless disabled or loading. */
|
|
37
57
|
qClick;
|
|
38
58
|
qFocus;
|
|
39
59
|
qBlur;
|
|
40
60
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
41
61
|
autoIconOnly = false;
|
|
62
|
+
defaultSlotIcon = false;
|
|
42
63
|
hasWarnedMissingAccessibleName = false;
|
|
64
|
+
disabledState = false;
|
|
65
|
+
get isDisabled() {
|
|
66
|
+
return isFieldDisabled(this.el, this.disabled);
|
|
67
|
+
}
|
|
68
|
+
syncButtonState() {
|
|
69
|
+
const disabled = syncFieldHost(this.el, this.disabled, this.name);
|
|
70
|
+
syncNativeAttribute(this.el, 'form', this.form);
|
|
71
|
+
registerSubmitOwner(this.el, () => this.internals?.form ?? null);
|
|
72
|
+
if (this.disabledState !== disabled)
|
|
73
|
+
this.disabledState = disabled;
|
|
74
|
+
const button = this.el.shadowRoot?.querySelector('button');
|
|
75
|
+
if (button)
|
|
76
|
+
button.disabled = disabled || this.loading;
|
|
77
|
+
const anchor = this.el.shadowRoot?.querySelector('a');
|
|
78
|
+
if (anchor) {
|
|
79
|
+
const unavailable = disabled || this.loading;
|
|
80
|
+
anchor.setAttribute('aria-disabled', String(unavailable));
|
|
81
|
+
if (unavailable)
|
|
82
|
+
anchor.tabIndex = -1;
|
|
83
|
+
else
|
|
84
|
+
anchor.removeAttribute('tabindex');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
formDisabledCallback() {
|
|
88
|
+
this.syncButtonState();
|
|
89
|
+
}
|
|
90
|
+
componentDidRender() { this.syncButtonState(); }
|
|
91
|
+
watchDisabled() {
|
|
92
|
+
this.syncButtonState();
|
|
93
|
+
}
|
|
43
94
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
44
95
|
componentWillLoad() {
|
|
45
96
|
this.checkIconOnly();
|
|
@@ -53,6 +104,7 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
53
104
|
}
|
|
54
105
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
55
106
|
checkIconOnly = () => {
|
|
107
|
+
this.defaultSlotIcon = this.hasDefaultSlotIcon();
|
|
56
108
|
const text = this.getVisibleText();
|
|
57
109
|
const hasIcon = this.hasShortcutIcon() ||
|
|
58
110
|
this.el.querySelector('q-icon') !== null ||
|
|
@@ -65,17 +117,14 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
65
117
|
this.warnForMissingAccessibleName();
|
|
66
118
|
};
|
|
67
119
|
getVisibleText() {
|
|
68
|
-
return
|
|
69
|
-
.filter(node => {
|
|
70
|
-
if (node.nodeType !== 1)
|
|
71
|
-
return true;
|
|
72
|
-
const slot = node.slot;
|
|
73
|
-
return slot !== 'icon-left' && slot !== 'icon-right';
|
|
74
|
-
})
|
|
120
|
+
return this.getDefaultSlotNodes()
|
|
75
121
|
.map(node => node.textContent || '')
|
|
76
122
|
.join('')
|
|
77
123
|
.trim();
|
|
78
124
|
}
|
|
125
|
+
getDefaultSlotNodes() {
|
|
126
|
+
return Array.from(this.el.childNodes).filter(node => node.nodeType === 3 || (node.nodeType === 1 && !node.slot));
|
|
127
|
+
}
|
|
79
128
|
getShortcutIcon() {
|
|
80
129
|
const icon = this.icon?.trim();
|
|
81
130
|
return icon || undefined;
|
|
@@ -90,7 +139,7 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
90
139
|
this.el.querySelector('[slot="icon-right"]') !== null;
|
|
91
140
|
}
|
|
92
141
|
hasDefaultSlotIcon() {
|
|
93
|
-
return this.
|
|
142
|
+
return this.getDefaultSlotNodes().some(node => node.nodeType === 1 && (node.matches('q-icon') || node.querySelector('q-icon') !== null));
|
|
94
143
|
}
|
|
95
144
|
warnForMissingAccessibleName() {
|
|
96
145
|
if (!Build.isDev)
|
|
@@ -107,12 +156,16 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
107
156
|
}
|
|
108
157
|
}
|
|
109
158
|
handleClick = (e) => {
|
|
110
|
-
if (this.
|
|
159
|
+
if (this.isDisabled || this.loading) {
|
|
111
160
|
e.preventDefault();
|
|
112
161
|
e.stopPropagation();
|
|
113
162
|
return;
|
|
114
163
|
}
|
|
115
|
-
this.qClick.emit(e);
|
|
164
|
+
const emitted = this.qClick.emit(e);
|
|
165
|
+
if (this.type === 'submit' && !this.href)
|
|
166
|
+
scheduleSubmitAction(this.el, e, emitted);
|
|
167
|
+
if (this.type === 'reset' && !this.href)
|
|
168
|
+
scheduleResetAction(this.el, e, emitted, () => this.internals?.form ?? null);
|
|
116
169
|
};
|
|
117
170
|
handleFocus = (ev) => {
|
|
118
171
|
this.qFocus.emit(ev);
|
|
@@ -128,11 +181,10 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
128
181
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
129
182
|
render() {
|
|
130
183
|
const isLink = this.href !== undefined && this.href !== null && this.href !== '';
|
|
131
|
-
const isBtnDisabled = this.
|
|
184
|
+
const isBtnDisabled = this.isDisabled || this.loading;
|
|
132
185
|
const isIcon = this.iconOnly !== undefined ? this.iconOnly : this.autoIconOnly;
|
|
133
186
|
const shortcutIcon = this.getShortcutIcon();
|
|
134
187
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
135
|
-
const hasDefaultSlotIcon = this.hasDefaultSlotIcon();
|
|
136
188
|
const classes = {
|
|
137
189
|
'btn': true,
|
|
138
190
|
[`variant-${this.variant}`]: true,
|
|
@@ -145,7 +197,7 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
145
197
|
};
|
|
146
198
|
const innerContent = [
|
|
147
199
|
this.loading && h("div", { class: "btn-spinner", part: "spinner" }),
|
|
148
|
-
h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && h("q-icon", { name: shortcutIcon, size: "var(--_q-control-icon)", part: "icon" })), h("span", { class: { 'btn-label': true, 'has-default-slot-icon':
|
|
200
|
+
h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && h("q-icon", { name: shortcutIcon, size: "var(--_q-control-icon)", part: "icon" })), h("span", { class: { 'btn-label': true, 'has-default-slot-icon': this.defaultSlotIcon } }, h("slot", { onSlotchange: this.handleSlotChange })), h("slot", { name: "icon-right", onSlotchange: this.handleSlotChange }))
|
|
149
201
|
];
|
|
150
202
|
if (isLink) {
|
|
151
203
|
return (h("a", { class: classes, part: "button", href: this.href, target: this.target, rel: this.getResolvedRel(), download: this.download, tabindex: isBtnDisabled ? -1 : undefined, "aria-disabled": isBtnDisabled ? 'true' : 'false', "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
@@ -155,6 +207,7 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
155
207
|
static get is() { return "q-button"; }
|
|
156
208
|
static get encapsulation() { return "shadow"; }
|
|
157
209
|
static get delegatesFocus() { return true; }
|
|
210
|
+
static get formAssociated() { return true; }
|
|
158
211
|
static get originalStyleUrls() {
|
|
159
212
|
return {
|
|
160
213
|
"$": ["button.css"]
|
|
@@ -232,6 +285,26 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
232
285
|
"attribute": "aria-label",
|
|
233
286
|
"defaultValue": "null"
|
|
234
287
|
},
|
|
288
|
+
"value": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"mutable": false,
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "string",
|
|
293
|
+
"resolved": "string",
|
|
294
|
+
"references": {}
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"optional": false,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Successful submission value when this button is the submitter."
|
|
301
|
+
},
|
|
302
|
+
"getter": false,
|
|
303
|
+
"setter": false,
|
|
304
|
+
"reflect": false,
|
|
305
|
+
"attribute": "value",
|
|
306
|
+
"defaultValue": "''"
|
|
307
|
+
},
|
|
235
308
|
"variant": {
|
|
236
309
|
"type": "string",
|
|
237
310
|
"mutable": false,
|
|
@@ -425,12 +498,162 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
425
498
|
"reflect": false,
|
|
426
499
|
"attribute": "type",
|
|
427
500
|
"defaultValue": "'button'"
|
|
501
|
+
},
|
|
502
|
+
"name": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "string",
|
|
507
|
+
"resolved": "string",
|
|
508
|
+
"references": {}
|
|
509
|
+
},
|
|
510
|
+
"required": false,
|
|
511
|
+
"optional": true,
|
|
512
|
+
"docs": {
|
|
513
|
+
"tags": [],
|
|
514
|
+
"text": "Successful submission name when this button is the submitter."
|
|
515
|
+
},
|
|
516
|
+
"getter": false,
|
|
517
|
+
"setter": false,
|
|
518
|
+
"reflect": true,
|
|
519
|
+
"attribute": "name"
|
|
520
|
+
},
|
|
521
|
+
"form": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"mutable": false,
|
|
524
|
+
"complexType": {
|
|
525
|
+
"original": "string",
|
|
526
|
+
"resolved": "string",
|
|
527
|
+
"references": {}
|
|
528
|
+
},
|
|
529
|
+
"required": false,
|
|
530
|
+
"optional": true,
|
|
531
|
+
"docs": {
|
|
532
|
+
"tags": [],
|
|
533
|
+
"text": "Explicit native form ID in this tree; unresolved IDs do not fall back."
|
|
534
|
+
},
|
|
535
|
+
"getter": false,
|
|
536
|
+
"setter": false,
|
|
537
|
+
"reflect": true,
|
|
538
|
+
"attribute": "form"
|
|
539
|
+
},
|
|
540
|
+
"formAction": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"mutable": false,
|
|
543
|
+
"complexType": {
|
|
544
|
+
"original": "string",
|
|
545
|
+
"resolved": "string",
|
|
546
|
+
"references": {}
|
|
547
|
+
},
|
|
548
|
+
"required": false,
|
|
549
|
+
"optional": true,
|
|
550
|
+
"docs": {
|
|
551
|
+
"tags": [],
|
|
552
|
+
"text": "Overrides the owning form's action for this submission."
|
|
553
|
+
},
|
|
554
|
+
"getter": false,
|
|
555
|
+
"setter": false,
|
|
556
|
+
"reflect": false,
|
|
557
|
+
"attribute": "formaction"
|
|
558
|
+
},
|
|
559
|
+
"formMethod": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"mutable": false,
|
|
562
|
+
"complexType": {
|
|
563
|
+
"original": "QFormMethod",
|
|
564
|
+
"resolved": "\"dialog\" | \"get\" | \"post\"",
|
|
565
|
+
"references": {
|
|
566
|
+
"QFormMethod": {
|
|
567
|
+
"location": "import",
|
|
568
|
+
"path": "../../inputs/form/form.types",
|
|
569
|
+
"id": "src/components/inputs/form/form.types.ts::QFormMethod",
|
|
570
|
+
"referenceLocation": "QFormMethod"
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": true,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": "Overrides the owning form's method for this submission."
|
|
579
|
+
},
|
|
580
|
+
"getter": false,
|
|
581
|
+
"setter": false,
|
|
582
|
+
"reflect": false,
|
|
583
|
+
"attribute": "formmethod"
|
|
584
|
+
},
|
|
585
|
+
"formEnctype": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"mutable": false,
|
|
588
|
+
"complexType": {
|
|
589
|
+
"original": "QFormEnctype",
|
|
590
|
+
"resolved": "\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"",
|
|
591
|
+
"references": {
|
|
592
|
+
"QFormEnctype": {
|
|
593
|
+
"location": "import",
|
|
594
|
+
"path": "../../inputs/form/form.types",
|
|
595
|
+
"id": "src/components/inputs/form/form.types.ts::QFormEnctype",
|
|
596
|
+
"referenceLocation": "QFormEnctype"
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"required": false,
|
|
601
|
+
"optional": true,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "Overrides the owning form's encoding for this submission."
|
|
605
|
+
},
|
|
606
|
+
"getter": false,
|
|
607
|
+
"setter": false,
|
|
608
|
+
"reflect": false,
|
|
609
|
+
"attribute": "formenctype"
|
|
610
|
+
},
|
|
611
|
+
"formTarget": {
|
|
612
|
+
"type": "string",
|
|
613
|
+
"mutable": false,
|
|
614
|
+
"complexType": {
|
|
615
|
+
"original": "string",
|
|
616
|
+
"resolved": "string",
|
|
617
|
+
"references": {}
|
|
618
|
+
},
|
|
619
|
+
"required": false,
|
|
620
|
+
"optional": true,
|
|
621
|
+
"docs": {
|
|
622
|
+
"tags": [],
|
|
623
|
+
"text": "Overrides the owning form's browsing context for this submission."
|
|
624
|
+
},
|
|
625
|
+
"getter": false,
|
|
626
|
+
"setter": false,
|
|
627
|
+
"reflect": false,
|
|
628
|
+
"attribute": "formtarget"
|
|
629
|
+
},
|
|
630
|
+
"formNoValidate": {
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"mutable": false,
|
|
633
|
+
"complexType": {
|
|
634
|
+
"original": "boolean",
|
|
635
|
+
"resolved": "boolean",
|
|
636
|
+
"references": {}
|
|
637
|
+
},
|
|
638
|
+
"required": false,
|
|
639
|
+
"optional": false,
|
|
640
|
+
"docs": {
|
|
641
|
+
"tags": [],
|
|
642
|
+
"text": "Skips validation for this submitter while retaining cancellation and collection."
|
|
643
|
+
},
|
|
644
|
+
"getter": false,
|
|
645
|
+
"setter": false,
|
|
646
|
+
"reflect": true,
|
|
647
|
+
"attribute": "formnovalidate",
|
|
648
|
+
"defaultValue": "false"
|
|
428
649
|
}
|
|
429
650
|
};
|
|
430
651
|
}
|
|
431
652
|
static get states() {
|
|
432
653
|
return {
|
|
433
|
-
"autoIconOnly": {}
|
|
654
|
+
"autoIconOnly": {},
|
|
655
|
+
"defaultSlotIcon": {},
|
|
656
|
+
"disabledState": {}
|
|
434
657
|
};
|
|
435
658
|
}
|
|
436
659
|
static get events() {
|
|
@@ -499,6 +722,18 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
499
722
|
static get elementRef() { return "el"; }
|
|
500
723
|
static get watchers() {
|
|
501
724
|
return [{
|
|
725
|
+
"propName": "disabled",
|
|
726
|
+
"methodName": "watchDisabled"
|
|
727
|
+
}, {
|
|
728
|
+
"propName": "loading",
|
|
729
|
+
"methodName": "watchDisabled"
|
|
730
|
+
}, {
|
|
731
|
+
"propName": "name",
|
|
732
|
+
"methodName": "watchDisabled"
|
|
733
|
+
}, {
|
|
734
|
+
"propName": "form",
|
|
735
|
+
"methodName": "watchDisabled"
|
|
736
|
+
}, {
|
|
502
737
|
"propName": "icon",
|
|
503
738
|
"methodName": "handleIconAccessibilityChange"
|
|
504
739
|
}, {
|
|
@@ -509,4 +744,5 @@ export class QButton extends Mixin(withActionProps) {
|
|
|
509
744
|
"methodName": "handleIconAccessibilityChange"
|
|
510
745
|
}];
|
|
511
746
|
}
|
|
747
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
512
748
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
2
|
+
// @ts-ignore Tests exercise the generated consumer API after a production build.
|
|
3
|
+
import { defineCustomElements } from "../../../../../dist/loader";
|
|
4
|
+
defineCustomElements();
|
|
5
|
+
async function settle() {
|
|
6
|
+
for (let index = 0; index < 6; index++) {
|
|
7
|
+
await new Promise(resolve => requestAnimationFrame(() => resolve()));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
async function mount(html, explicitIconOnly = false) {
|
|
11
|
+
const button = document.createElement('q-button');
|
|
12
|
+
button.ariaLabel = 'Notifications';
|
|
13
|
+
if (explicitIconOnly)
|
|
14
|
+
button.iconOnly = true;
|
|
15
|
+
button.innerHTML = html;
|
|
16
|
+
for (const icon of Array.from(button.querySelectorAll('q-icon'))) {
|
|
17
|
+
icon.definition = { node: [['circle', { cx: '12', cy: '12', r: '8' }]] };
|
|
18
|
+
}
|
|
19
|
+
document.body.append(button);
|
|
20
|
+
await customElements.whenDefined('q-button');
|
|
21
|
+
await button.componentOnReady();
|
|
22
|
+
await settle();
|
|
23
|
+
return button;
|
|
24
|
+
}
|
|
25
|
+
function label(button) {
|
|
26
|
+
return button.shadowRoot.querySelector('.btn-label');
|
|
27
|
+
}
|
|
28
|
+
function isIconOnly(button) {
|
|
29
|
+
return button.shadowRoot.querySelector('.btn').classList.contains('is-icon-only');
|
|
30
|
+
}
|
|
31
|
+
afterEach(() => document.body.replaceChildren());
|
|
32
|
+
describe('q-button default slot ownership', () => {
|
|
33
|
+
it.each(['icon-left', 'icon-right'])('hides the empty label for a q-icon nested in %s', async (slot) => {
|
|
34
|
+
const button = await mount(`<span slot="${slot}"><q-icon name="bell"></q-icon></span>`, true);
|
|
35
|
+
expect(label(button).classList.contains('has-default-slot-icon')).toBe(false);
|
|
36
|
+
expect(getComputedStyle(label(button)).display).toBe('none');
|
|
37
|
+
});
|
|
38
|
+
it.each(['<q-icon name="bell"></q-icon>', '<q-icon slot="" name="bell"></q-icon>', '<span><q-icon name="bell"></q-icon></span>'])('keeps actual default-slot icon content visible: %s', async (html) => {
|
|
39
|
+
const button = await mount(html);
|
|
40
|
+
expect(isIconOnly(button)).toBe(true);
|
|
41
|
+
expect(label(button).classList.contains('has-default-slot-icon')).toBe(true);
|
|
42
|
+
expect(getComputedStyle(label(button)).display).not.toBe('none');
|
|
43
|
+
});
|
|
44
|
+
it('preserves a visible label next to a named icon wrapper', async () => {
|
|
45
|
+
const button = await mount('<span slot="icon-left"><q-icon name="bell"></q-icon></span>Notifications');
|
|
46
|
+
expect(isIconOnly(button)).toBe(false);
|
|
47
|
+
expect(getComputedStyle(label(button)).display).not.toBe('none');
|
|
48
|
+
});
|
|
49
|
+
it('ignores framework comments when detecting icon-only content', async () => {
|
|
50
|
+
const button = await mount('<!--bindings={"unread":true}--><span slot="icon-left"><q-icon name="bell"></q-icon><span>3</span></span>');
|
|
51
|
+
expect(isIconOnly(button)).toBe(true);
|
|
52
|
+
expect(getComputedStyle(label(button)).display).toBe('none');
|
|
53
|
+
});
|
|
54
|
+
it('updates the label when an icon wrapper moves between named and default slots', async () => {
|
|
55
|
+
const button = await mount('<span slot="icon-left"><q-icon name="bell"></q-icon></span>');
|
|
56
|
+
const wrapper = button.firstElementChild;
|
|
57
|
+
expect(isIconOnly(button)).toBe(true);
|
|
58
|
+
expect(getComputedStyle(label(button)).display).toBe('none');
|
|
59
|
+
wrapper.removeAttribute('slot');
|
|
60
|
+
await settle();
|
|
61
|
+
expect(isIconOnly(button)).toBe(true);
|
|
62
|
+
expect(label(button).classList.contains('has-default-slot-icon')).toBe(true);
|
|
63
|
+
expect(getComputedStyle(label(button)).display).not.toBe('none');
|
|
64
|
+
wrapper.setAttribute('slot', 'icon-right');
|
|
65
|
+
await settle();
|
|
66
|
+
expect(isIconOnly(button)).toBe(true);
|
|
67
|
+
expect(label(button).classList.contains('has-default-slot-icon')).toBe(false);
|
|
68
|
+
expect(getComputedStyle(label(button)).display).toBe('none');
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
::slotted(
|
|
8
|
+
::slotted(:not([slot='controls-extra'])) {
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
flex: var(--q-carousel-item-flex, 0 0 auto);
|
|
11
11
|
width: var(--q-carousel-item-width, auto);
|
|
@@ -20,9 +20,16 @@
|
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/* The preset changes layout defaults without replacing authored per-instance tokens. */
|
|
24
|
+
:host([layout='slideshow']) {
|
|
25
|
+
--q-carousel-padding: 0;
|
|
26
|
+
--q-carousel-gap: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
/* Viewport slider shell */
|
|
24
30
|
.carousel-viewport {
|
|
25
31
|
display: flex;
|
|
32
|
+
order: 1;
|
|
26
33
|
flex-direction: row;
|
|
27
34
|
overflow-x: auto;
|
|
28
35
|
width: 100%;
|
|
@@ -34,9 +41,9 @@
|
|
|
34
41
|
outline: none;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
|
-
.carousel-viewport:focus-visible {
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
.carousel-viewport.viewport-focusable:focus-visible {
|
|
45
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
46
|
+
outline-offset: -2px;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
/* Hide native scrollbars to keep overlay interfaces clean */
|
|
@@ -54,6 +61,10 @@
|
|
|
54
61
|
.snap-end { scroll-snap-type: x mandatory; }
|
|
55
62
|
|
|
56
63
|
/* Navigation buttons */
|
|
64
|
+
.carousel-arrow {
|
|
65
|
+
display: contents;
|
|
66
|
+
}
|
|
67
|
+
|
|
57
68
|
.arrow-btn {
|
|
58
69
|
position: absolute;
|
|
59
70
|
top: 50%;
|
|
@@ -122,17 +133,33 @@
|
|
|
122
133
|
height: 20px;
|
|
123
134
|
}
|
|
124
135
|
|
|
136
|
+
/* Keep additional content with the native indicators; consumers can style the part. */
|
|
137
|
+
.carousel-controls {
|
|
138
|
+
display: flex;
|
|
139
|
+
order: 2;
|
|
140
|
+
max-width: 100%;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: var(--q-carousel-controls-gap, 0px);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.carousel-controls[hidden] {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
125
150
|
/* Indicator dots track */
|
|
126
151
|
.carousel-indicators {
|
|
127
152
|
display: flex;
|
|
153
|
+
flex-wrap: wrap;
|
|
128
154
|
justify-content: center;
|
|
129
155
|
align-items: center;
|
|
130
156
|
gap: var(--q-carousel-indicator-gap, 8px);
|
|
131
|
-
margin-top: 16px;
|
|
157
|
+
margin-top: var(--q-carousel-indicator-margin-top, 16px);
|
|
132
158
|
width: 100%;
|
|
133
159
|
}
|
|
134
160
|
|
|
135
161
|
.indicator-dot {
|
|
162
|
+
flex-shrink: 0;
|
|
136
163
|
padding: 0;
|
|
137
164
|
width: var(--q-carousel-indicator-size, 6px);
|
|
138
165
|
height: var(--q-carousel-indicator-size, 6px);
|
|
@@ -166,3 +193,62 @@
|
|
|
166
193
|
opacity: 1;
|
|
167
194
|
width: calc(var(--q-carousel-indicator-size, 6px) * 2.5);
|
|
168
195
|
}
|
|
196
|
+
|
|
197
|
+
/* Overlay modes retain every slide in layout and use the tallest slide's height. */
|
|
198
|
+
.carousel-viewport.is-stacked {
|
|
199
|
+
display: grid;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
gap: 0;
|
|
202
|
+
scroll-snap-type: none;
|
|
203
|
+
touch-action: pan-y pinch-zoom;
|
|
204
|
+
isolation: isolate;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])),
|
|
208
|
+
:host([transition='instant']) ::slotted(:not([slot='controls-extra'])) {
|
|
209
|
+
grid-area: 1 / 1;
|
|
210
|
+
width: 100%;
|
|
211
|
+
min-width: 0;
|
|
212
|
+
opacity: 0;
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
z-index: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])) {
|
|
218
|
+
transition: opacity var(--q-carousel-transition-duration, 500ms) ease-in-out;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host([transition='crossfade']) ::slotted([data-q-carousel-active='true']),
|
|
222
|
+
:host([transition='instant']) ::slotted([data-q-carousel-active='true']) {
|
|
223
|
+
opacity: 1;
|
|
224
|
+
pointer-events: auto;
|
|
225
|
+
z-index: 1;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (prefers-reduced-motion: reduce) {
|
|
229
|
+
.carousel-viewport { scroll-behavior: auto; }
|
|
230
|
+
:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])) { transition: none; }
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.rotation-btn {
|
|
234
|
+
min-width: 44px;
|
|
235
|
+
min-height: 44px;
|
|
236
|
+
max-width: 100%;
|
|
237
|
+
box-sizing: border-box;
|
|
238
|
+
padding: var(--q-padding-sm, 8px) var(--q-padding-md, 12px);
|
|
239
|
+
border: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
240
|
+
border-radius: var(--q-radius-md, 8px);
|
|
241
|
+
background: var(--q-bg-base, #111827);
|
|
242
|
+
color: var(--q-fg-base, #f9fafb);
|
|
243
|
+
font: inherit;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.rotation-btn:focus-visible {
|
|
248
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
249
|
+
outline-offset: 2px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@media (hover: none), (pointer: coarse) {
|
|
253
|
+
.arrow-btn { opacity: 1; }
|
|
254
|
+
}
|