@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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/** Separates persistent playback intent from temporary hover/visibility suspension. */
|
|
2
|
+
export class CarouselAutoplay {
|
|
3
|
+
advance;
|
|
4
|
+
changed;
|
|
5
|
+
config = {
|
|
6
|
+
enabled: false,
|
|
7
|
+
navigable: false,
|
|
8
|
+
suspended: true,
|
|
9
|
+
reducedMotion: false,
|
|
10
|
+
interval: 5000,
|
|
11
|
+
};
|
|
12
|
+
requested = false;
|
|
13
|
+
timer;
|
|
14
|
+
constructor(advance, changed) {
|
|
15
|
+
this.advance = advance;
|
|
16
|
+
this.changed = changed;
|
|
17
|
+
}
|
|
18
|
+
configure(config) {
|
|
19
|
+
const interval = Number.isFinite(config.interval) && config.interval > 0 ? config.interval : 5000;
|
|
20
|
+
const timingChanged = interval !== this.config.interval;
|
|
21
|
+
if (!config.enabled)
|
|
22
|
+
this.requested = false;
|
|
23
|
+
else if (!this.config.enabled)
|
|
24
|
+
this.requested = !config.reducedMotion;
|
|
25
|
+
else if (config.reducedMotion && !this.config.reducedMotion)
|
|
26
|
+
this.requested = false;
|
|
27
|
+
this.config = { ...config, interval };
|
|
28
|
+
if (timingChanged)
|
|
29
|
+
this.clearTimer();
|
|
30
|
+
this.sync();
|
|
31
|
+
}
|
|
32
|
+
play() {
|
|
33
|
+
if (!this.config.enabled)
|
|
34
|
+
return;
|
|
35
|
+
this.requested = true;
|
|
36
|
+
this.sync();
|
|
37
|
+
}
|
|
38
|
+
pause() {
|
|
39
|
+
this.requested = false;
|
|
40
|
+
this.sync();
|
|
41
|
+
}
|
|
42
|
+
disconnect() {
|
|
43
|
+
this.config = { ...this.config, suspended: true };
|
|
44
|
+
this.sync();
|
|
45
|
+
}
|
|
46
|
+
sync() {
|
|
47
|
+
const playing = this.requested && this.config.enabled && this.config.navigable && !this.config.suspended;
|
|
48
|
+
if (!playing)
|
|
49
|
+
this.clearTimer();
|
|
50
|
+
else if (this.timer === undefined) {
|
|
51
|
+
this.timer = setInterval(() => {
|
|
52
|
+
if (!this.advance())
|
|
53
|
+
this.pause();
|
|
54
|
+
}, this.config.interval);
|
|
55
|
+
}
|
|
56
|
+
this.changed(playing, this.requested);
|
|
57
|
+
}
|
|
58
|
+
clearTimer() {
|
|
59
|
+
if (this.timer === undefined)
|
|
60
|
+
return;
|
|
61
|
+
clearInterval(this.timer);
|
|
62
|
+
this.timer = undefined;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Own only temporary accessibility attributes; restore authored values on release. */
|
|
2
|
+
export class CarouselSlideState {
|
|
3
|
+
originals = new Map();
|
|
4
|
+
update(slides, index, focusTarget) {
|
|
5
|
+
for (const element of this.originals.keys()) {
|
|
6
|
+
if (!slides.includes(element))
|
|
7
|
+
this.restoreElement(element);
|
|
8
|
+
}
|
|
9
|
+
for (const [position, element] of slides.entries()) {
|
|
10
|
+
if (!this.originals.has(element)) {
|
|
11
|
+
this.originals.set(element, {
|
|
12
|
+
inert: element.inert,
|
|
13
|
+
hidden: element.getAttribute('aria-hidden'),
|
|
14
|
+
active: element.getAttribute('data-q-carousel-active'),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const active = position === index;
|
|
18
|
+
const original = this.originals.get(element);
|
|
19
|
+
// Focus is retargeted at each shadow boundary; inspect the slide's own root.
|
|
20
|
+
const root = element.getRootNode();
|
|
21
|
+
const focused = root instanceof ShadowRoot ? root.activeElement : element.ownerDocument.activeElement;
|
|
22
|
+
if (!active && element.contains(focused)) {
|
|
23
|
+
if (typeof focusTarget === 'function')
|
|
24
|
+
focusTarget();
|
|
25
|
+
else
|
|
26
|
+
focusTarget?.focus({ preventScroll: true });
|
|
27
|
+
}
|
|
28
|
+
element.inert = active ? original.inert : true;
|
|
29
|
+
this.attribute(element, 'aria-hidden', active ? original.hidden : 'true');
|
|
30
|
+
this.attribute(element, 'data-q-carousel-active', active ? 'true' : 'false');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
restore() {
|
|
34
|
+
for (const element of this.originals.keys())
|
|
35
|
+
this.restoreElement(element);
|
|
36
|
+
}
|
|
37
|
+
restoreElement(element) {
|
|
38
|
+
const original = this.originals.get(element);
|
|
39
|
+
element.inert = original.inert;
|
|
40
|
+
this.attribute(element, 'aria-hidden', original.hidden);
|
|
41
|
+
this.attribute(element, 'data-q-carousel-active', original.active);
|
|
42
|
+
this.originals.delete(element);
|
|
43
|
+
}
|
|
44
|
+
attribute(element, name, value) {
|
|
45
|
+
if (value === null)
|
|
46
|
+
element.removeAttribute(name);
|
|
47
|
+
else if (element.getAttribute(name) !== value)
|
|
48
|
+
element.setAttribute(name, value);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { afterEach, expect, it, vi } from "vitest";
|
|
2
|
+
import { userEvent } from "vitest/browser";
|
|
3
|
+
import "../carousel";
|
|
4
|
+
import carouselStyles from "../carousel.css?inline";
|
|
5
|
+
const frame = async () => { await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))); };
|
|
6
|
+
afterEach(() => { document.body.innerHTML = ''; });
|
|
7
|
+
async function create(transition = 'crossfade', parent = document.body, options = {}) {
|
|
8
|
+
const el = document.createElement('q-carousel');
|
|
9
|
+
Object.assign(el, { transition, showArrows: true, showIndicators: true, itemWidth: '100%', transitionDuration: 40, ...options });
|
|
10
|
+
el.style.cssText = 'width:400px;--q-carousel-padding:0;--q-carousel-gap:0';
|
|
11
|
+
el.innerHTML = '<div style="height:100px">First <button>Inside</button></div><div style="height:180px">Second</div><div style="height:120px">Third</div>';
|
|
12
|
+
parent.append(el);
|
|
13
|
+
await frame();
|
|
14
|
+
const style = document.createElement('style');
|
|
15
|
+
style.textContent = carouselStyles;
|
|
16
|
+
el.shadowRoot.prepend(style);
|
|
17
|
+
await el.updateLimits();
|
|
18
|
+
await frame();
|
|
19
|
+
return el;
|
|
20
|
+
}
|
|
21
|
+
it('overlays slides at full width, uses tallest height, and shares arrow/dot navigation', async () => {
|
|
22
|
+
const el = await create();
|
|
23
|
+
const slides = Array.from(el.children);
|
|
24
|
+
expect(slides[0].getBoundingClientRect().x).toBe(slides[1].getBoundingClientRect().x);
|
|
25
|
+
expect(slides[0].getBoundingClientRect().width).toBe(400);
|
|
26
|
+
expect(el.shadowRoot.querySelector('.carousel-viewport').getBoundingClientRect().height).toBe(180);
|
|
27
|
+
expect(slides[0].inert).toBe(false);
|
|
28
|
+
expect(slides[1].inert).toBe(true);
|
|
29
|
+
el.shadowRoot.querySelector('.arrow-right').click();
|
|
30
|
+
await frame();
|
|
31
|
+
expect(slides[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
32
|
+
expect(el.shadowRoot.querySelectorAll('.indicator-dot')).toHaveLength(3);
|
|
33
|
+
expect(el.shadowRoot.querySelectorAll('.indicator-dot')[1].getAttribute('aria-current')).toBe('true');
|
|
34
|
+
await vi.waitFor(() => expect(getComputedStyle(slides[1]).opacity).toBe('1'));
|
|
35
|
+
await vi.waitFor(() => expect(getComputedStyle(slides[0]).opacity).toBe('0'));
|
|
36
|
+
});
|
|
37
|
+
it('converges on rapid selections, wraps, clamps removals and restores authored attributes', async () => {
|
|
38
|
+
const el = await create();
|
|
39
|
+
el.repeat = true;
|
|
40
|
+
const slides = Array.from(el.children);
|
|
41
|
+
await el.slideTo(1);
|
|
42
|
+
await el.slideTo(2);
|
|
43
|
+
await el.slideTo(0);
|
|
44
|
+
await el.slideTo(-1);
|
|
45
|
+
await frame();
|
|
46
|
+
expect(slides[2].getAttribute('data-q-carousel-active')).toBe('true');
|
|
47
|
+
slides[2].remove();
|
|
48
|
+
await frame();
|
|
49
|
+
expect(slides[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
50
|
+
expect(slides[2].hasAttribute('aria-hidden')).toBe(false);
|
|
51
|
+
el.transition = 'slide';
|
|
52
|
+
await frame();
|
|
53
|
+
expect(slides[0].hasAttribute('aria-hidden')).toBe(false);
|
|
54
|
+
expect(slides[0].inert).toBe(false);
|
|
55
|
+
expect(getComputedStyle(el.shadowRoot.querySelector('.carousel-viewport')).display).toBe('flex');
|
|
56
|
+
});
|
|
57
|
+
it('instant has no fade; mode changes and disconnects do not leave stale accessibility state', async () => {
|
|
58
|
+
const el = await create('instant');
|
|
59
|
+
const slides = Array.from(el.children);
|
|
60
|
+
await el.slideTo(1);
|
|
61
|
+
await frame();
|
|
62
|
+
expect(getComputedStyle(slides[1]).transitionDuration).toBe('0s');
|
|
63
|
+
expect(getComputedStyle(slides[1]).opacity).toBe('1');
|
|
64
|
+
el.transition = 'crossfade';
|
|
65
|
+
el.transitionDuration = 800;
|
|
66
|
+
await frame();
|
|
67
|
+
expect(getComputedStyle(slides[1]).transitionDuration).toBe('0.8s');
|
|
68
|
+
el.remove();
|
|
69
|
+
expect(slides.every(slide => !slide.inert && !slide.hasAttribute('aria-hidden'))).toBe(true);
|
|
70
|
+
document.body.append(el);
|
|
71
|
+
await frame();
|
|
72
|
+
expect(slides[0].inert).toBe(true);
|
|
73
|
+
expect(slides[1].inert).toBe(false);
|
|
74
|
+
});
|
|
75
|
+
it('moves focus out of a deactivated slide and avoids duplicate keyboard navigation', async () => {
|
|
76
|
+
const el = await create();
|
|
77
|
+
const button = el.querySelector('button');
|
|
78
|
+
button.focus();
|
|
79
|
+
await el.slideTo(1);
|
|
80
|
+
expect(el.shadowRoot.activeElement).toBe(el.shadowRoot.querySelectorAll('.indicator-dot')[1]);
|
|
81
|
+
const bubbled = vi.fn();
|
|
82
|
+
el.addEventListener('keydown', bubbled);
|
|
83
|
+
el.shadowRoot.querySelector('.carousel-viewport').dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true, composed: true }));
|
|
84
|
+
await frame();
|
|
85
|
+
expect(el.children[2].getAttribute('data-q-carousel-active')).toBe('true');
|
|
86
|
+
expect(bubbled).not.toHaveBeenCalled();
|
|
87
|
+
});
|
|
88
|
+
it('accepts horizontal touch gestures but ignores vertical or cancelled gestures', async () => {
|
|
89
|
+
const el = await create();
|
|
90
|
+
const viewport = el.shadowRoot.querySelector('.carousel-viewport');
|
|
91
|
+
const pointer = (type, x, y) => viewport.dispatchEvent(new PointerEvent(type, { pointerId: 1, isPrimary: true, pointerType: 'touch', clientX: x, clientY: y, bubbles: true }));
|
|
92
|
+
pointer('pointerdown', 200, 50);
|
|
93
|
+
pointer('pointerup', 100, 55);
|
|
94
|
+
await frame();
|
|
95
|
+
expect(el.children[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
96
|
+
pointer('pointerdown', 200, 50);
|
|
97
|
+
pointer('pointerup', 100, 200);
|
|
98
|
+
pointer('pointerdown', 200, 50);
|
|
99
|
+
pointer('pointercancel', 100, 55);
|
|
100
|
+
pointer('pointerup', 100, 55);
|
|
101
|
+
await frame();
|
|
102
|
+
expect(el.children[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
103
|
+
});
|
|
104
|
+
it('keeps native sliding as the default without overlay attributes', async () => {
|
|
105
|
+
const el = await create('slide');
|
|
106
|
+
await el.slideTo(1);
|
|
107
|
+
await vi.waitFor(() => expect(el.shadowRoot.querySelector('.carousel-viewport').scrollLeft).toBeGreaterThan(390));
|
|
108
|
+
expect(el.children[0].hasAttribute('data-q-carousel-active')).toBe(false);
|
|
109
|
+
});
|
|
110
|
+
it.each(['open', 'closed'])('preserves focus when nested inside an %s shadow root', async (mode) => {
|
|
111
|
+
const outer = document.createElement('div');
|
|
112
|
+
document.body.append(outer);
|
|
113
|
+
const root = outer.attachShadow({ mode });
|
|
114
|
+
const el = await create('crossfade', root);
|
|
115
|
+
const slide = el.children[0];
|
|
116
|
+
const inner = document.createElement('div');
|
|
117
|
+
slide.append(inner);
|
|
118
|
+
const innerRoot = inner.attachShadow({ mode: 'closed' });
|
|
119
|
+
const button = document.createElement('button');
|
|
120
|
+
button.textContent = 'Nested action';
|
|
121
|
+
innerRoot.append(button);
|
|
122
|
+
button.focus();
|
|
123
|
+
expect(document.activeElement).toBe(outer);
|
|
124
|
+
expect(root.activeElement).toBe(inner);
|
|
125
|
+
await el.slideTo(1);
|
|
126
|
+
await frame();
|
|
127
|
+
expect(root.activeElement).toBe(el);
|
|
128
|
+
expect(el.shadowRoot.activeElement).toBe(el.shadowRoot.querySelectorAll('.indicator-dot')[1]);
|
|
129
|
+
expect(slide.inert).toBe(true);
|
|
130
|
+
expect(slide.getAttribute('aria-hidden')).toBe('true');
|
|
131
|
+
const outside = document.createElement('button');
|
|
132
|
+
root.append(outside);
|
|
133
|
+
outside.focus();
|
|
134
|
+
await el.slideTo(2);
|
|
135
|
+
expect(root.activeElement).toBe(outside);
|
|
136
|
+
});
|
|
137
|
+
it('groups extra controls below dots without treating the named slot as a slide', async () => {
|
|
138
|
+
const el = await create();
|
|
139
|
+
const counter = document.createElement('p');
|
|
140
|
+
counter.slot = 'controls-extra';
|
|
141
|
+
counter.textContent = '1 / 3';
|
|
142
|
+
el.append(counter);
|
|
143
|
+
await frame();
|
|
144
|
+
const controls = el.shadowRoot.querySelector('[part="controls"]');
|
|
145
|
+
const slot = controls.querySelector('slot');
|
|
146
|
+
expect(slot.assignedElements()).toEqual([counter]);
|
|
147
|
+
expect(el.shadowRoot.querySelectorAll('.indicator-dot')).toHaveLength(3);
|
|
148
|
+
expect(counter.inert).toBe(false);
|
|
149
|
+
for (const transition of ['slide', 'crossfade', 'instant']) {
|
|
150
|
+
el.transition = transition;
|
|
151
|
+
await frame();
|
|
152
|
+
expect(getComputedStyle(counter).opacity).toBe('1');
|
|
153
|
+
expect(getComputedStyle(counter).pointerEvents).not.toBe('none');
|
|
154
|
+
}
|
|
155
|
+
expect(counter.hasAttribute('data-q-carousel-active')).toBe(false);
|
|
156
|
+
el.showIndicators = false;
|
|
157
|
+
await frame();
|
|
158
|
+
expect(controls.hidden).toBe(false);
|
|
159
|
+
counter.remove();
|
|
160
|
+
await frame();
|
|
161
|
+
expect(controls.hidden).toBe(true);
|
|
162
|
+
});
|
|
163
|
+
it('supplies slideshow defaults, preserves explicit false controls, and keeps the frame square', async () => {
|
|
164
|
+
const el = await create('slide', document.body, {
|
|
165
|
+
layout: 'slideshow', itemWidth: 'auto', showArrows: undefined, showIndicators: undefined,
|
|
166
|
+
});
|
|
167
|
+
el.style.removeProperty('--q-carousel-padding');
|
|
168
|
+
el.style.removeProperty('--q-carousel-gap');
|
|
169
|
+
await el.updateLimits();
|
|
170
|
+
await frame();
|
|
171
|
+
const viewport = el.shadowRoot.querySelector('.carousel-viewport');
|
|
172
|
+
expect(el.shadowRoot.querySelectorAll('.arrow-btn')).toHaveLength(2);
|
|
173
|
+
expect(el.shadowRoot.querySelectorAll('.indicator-dot')).toHaveLength(3);
|
|
174
|
+
expect(viewport.tabIndex).toBe(-1);
|
|
175
|
+
expect(getComputedStyle(viewport).padding).toBe('0px');
|
|
176
|
+
expect(getComputedStyle(viewport).gap).toBe('0px');
|
|
177
|
+
expect(el.children[0].getBoundingClientRect().width).toBe(400);
|
|
178
|
+
expect(el.children[1].inert).toBe(true);
|
|
179
|
+
// A tabindex=-1 viewport can still receive mouse focus. Keyboard focus must
|
|
180
|
+
// move to one navigation action rather than decorate the entire banner.
|
|
181
|
+
viewport.focus();
|
|
182
|
+
viewport.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true, composed: true }));
|
|
183
|
+
await frame();
|
|
184
|
+
// Native smooth scrolling continues after rendering; finish this navigation
|
|
185
|
+
// before removing its focused indicator and starting the fallback action.
|
|
186
|
+
await vi.waitFor(() => expect(viewport.scrollLeft).toBeGreaterThan(390));
|
|
187
|
+
expect(el.children[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
188
|
+
expect(el.children[2].getAttribute('data-q-carousel-active')).toBe('false');
|
|
189
|
+
expect(el.shadowRoot.activeElement).toBe(el.shadowRoot.querySelectorAll('.indicator-dot')[1]);
|
|
190
|
+
expect(getComputedStyle(viewport).outlineStyle).toBe('none');
|
|
191
|
+
el.ariaLabel = 'Featured products';
|
|
192
|
+
el.showArrows = false;
|
|
193
|
+
el.showIndicators = false;
|
|
194
|
+
await frame();
|
|
195
|
+
expect(viewport.scrollLeft).toBeGreaterThan(390);
|
|
196
|
+
expect(el.children[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
197
|
+
expect(viewport.getAttribute('aria-label')).toBe('Featured products');
|
|
198
|
+
expect(el.shadowRoot.querySelector('.arrow-btn')).toBeNull();
|
|
199
|
+
expect(viewport.tabIndex).toBe(0);
|
|
200
|
+
viewport.focus();
|
|
201
|
+
expect(getComputedStyle(viewport).borderRadius).toBe('0px');
|
|
202
|
+
expect(getComputedStyle(viewport).boxShadow).toBe('none');
|
|
203
|
+
viewport.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true, composed: true }));
|
|
204
|
+
await frame();
|
|
205
|
+
await vi.waitFor(() => expect(viewport.scrollLeft).toBeGreaterThan(790));
|
|
206
|
+
expect(el.children[2].getAttribute('data-q-carousel-active')).toBe('true');
|
|
207
|
+
});
|
|
208
|
+
it('keeps overflowing strip content keyboard-accessible without creating a slideshow policy', async () => {
|
|
209
|
+
const el = await create('slide', document.body, {
|
|
210
|
+
itemWidth: 'auto', showArrows: undefined, showIndicators: undefined, autoplay: true,
|
|
211
|
+
});
|
|
212
|
+
el.style.removeProperty('--q-carousel-padding');
|
|
213
|
+
el.style.removeProperty('--q-carousel-gap');
|
|
214
|
+
el.innerHTML = '<div style="width:800px;height:100px">Wide native content <a href="#wide">Action</a></div>';
|
|
215
|
+
await frame();
|
|
216
|
+
await el.updateLimits();
|
|
217
|
+
const viewport = el.shadowRoot.querySelector('.carousel-viewport');
|
|
218
|
+
expect(viewport.tabIndex).toBe(0);
|
|
219
|
+
expect(el.shadowRoot.querySelector('.rotation-btn')).toBeNull();
|
|
220
|
+
expect(el.children[0].hasAttribute('aria-hidden')).toBe(false);
|
|
221
|
+
expect(getComputedStyle(viewport).padding).toBe('48px 40px');
|
|
222
|
+
const event = new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true, composed: true, cancelable: true });
|
|
223
|
+
viewport.dispatchEvent(event);
|
|
224
|
+
expect(event.defaultPrevented).toBe(false);
|
|
225
|
+
el.children[0].setAttribute('style', 'width:100px;height:100px');
|
|
226
|
+
await el.updateLimits();
|
|
227
|
+
await frame();
|
|
228
|
+
expect(viewport.tabIndex).toBe(-1);
|
|
229
|
+
});
|
|
230
|
+
it('does not let a rotation-only control remove the slide-navigation fallback', async () => {
|
|
231
|
+
const el = await create('instant', document.body, {
|
|
232
|
+
layout: 'slideshow', showArrows: false, showIndicators: false,
|
|
233
|
+
autoplay: true, autoplayInterval: 1000,
|
|
234
|
+
});
|
|
235
|
+
const viewport = el.shadowRoot.querySelector('.carousel-viewport');
|
|
236
|
+
expect(viewport.tabIndex).toBe(0);
|
|
237
|
+
expect(el.shadowRoot.querySelector('.rotation-btn')).not.toBeNull();
|
|
238
|
+
viewport.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true, composed: true }));
|
|
239
|
+
await frame();
|
|
240
|
+
expect(el.children[1].getAttribute('data-q-carousel-active')).toBe('true');
|
|
241
|
+
el.innerHTML = '<div style="height:100px">Only slide</div>';
|
|
242
|
+
await frame();
|
|
243
|
+
await el.updateLimits();
|
|
244
|
+
await frame();
|
|
245
|
+
expect(viewport.tabIndex).toBe(-1);
|
|
246
|
+
expect(el.shadowRoot.querySelector('.rotation-btn')).toBeNull();
|
|
247
|
+
});
|
|
248
|
+
it('keeps native slideshow links inactive and restores authored values when leaving slideshow', async () => {
|
|
249
|
+
const el = await create('slide', document.body, { layout: 'slideshow' });
|
|
250
|
+
const first = el.children[0];
|
|
251
|
+
const second = el.children[1];
|
|
252
|
+
expect(second.inert).toBe(true);
|
|
253
|
+
first.querySelector('button').focus();
|
|
254
|
+
await el.slideTo(1);
|
|
255
|
+
await frame();
|
|
256
|
+
expect(first.inert).toBe(true);
|
|
257
|
+
expect(second.inert).toBe(false);
|
|
258
|
+
expect(el.shadowRoot.activeElement).toBe(el.shadowRoot.querySelectorAll('.indicator-dot')[1]);
|
|
259
|
+
el.layout = 'strip';
|
|
260
|
+
await frame();
|
|
261
|
+
expect(first.inert).toBe(false);
|
|
262
|
+
expect(first.hasAttribute('aria-hidden')).toBe(false);
|
|
263
|
+
expect(second.hasAttribute('data-q-carousel-active')).toBe(false);
|
|
264
|
+
});
|
|
265
|
+
it('keeps playback intent labels distinct from temporary suspension and handles pointer focus before click', async () => {
|
|
266
|
+
const el = await create('instant', document.body, {
|
|
267
|
+
layout: 'slideshow', autoplay: true, autoplayInterval: 1000, repeat: true,
|
|
268
|
+
});
|
|
269
|
+
// Hover suspends playback. Establish running state before observing changes.
|
|
270
|
+
await userEvent.unhover(el);
|
|
271
|
+
await vi.waitFor(() => expect(el.shadowRoot.querySelector('.carousel-viewport').getAttribute('aria-live')).toBe('off'));
|
|
272
|
+
const states = [];
|
|
273
|
+
el.addEventListener('qAutoplayChange', event => states.push(event.detail.playing));
|
|
274
|
+
el.autoplaySuspended = true;
|
|
275
|
+
await frame();
|
|
276
|
+
const rotation = el.shadowRoot.querySelector('.rotation-btn');
|
|
277
|
+
expect(rotation.textContent?.trim()).toBe('Pause slideshow');
|
|
278
|
+
expect(states.at(-1)).toBe(false);
|
|
279
|
+
rotation.dispatchEvent(new PointerEvent('pointerdown', { bubbles: true, composed: true }));
|
|
280
|
+
rotation.focus();
|
|
281
|
+
rotation.click();
|
|
282
|
+
await frame();
|
|
283
|
+
expect(rotation.textContent?.trim()).toBe('Play slideshow');
|
|
284
|
+
rotation.dispatchEvent(new PointerEvent('pointerdown', { bubbles: true, composed: true }));
|
|
285
|
+
rotation.click();
|
|
286
|
+
await frame();
|
|
287
|
+
expect(rotation.textContent?.trim()).toBe('Pause slideshow');
|
|
288
|
+
expect(states.at(-1)).toBe(false);
|
|
289
|
+
el.autoplaySuspended = false;
|
|
290
|
+
await frame();
|
|
291
|
+
expect(states.at(-1)).toBe(true);
|
|
292
|
+
await el.pause();
|
|
293
|
+
el.innerHTML = '';
|
|
294
|
+
await frame();
|
|
295
|
+
el.innerHTML = '<div style="height:100px">First</div><div style="height:100px">Second</div>';
|
|
296
|
+
await frame();
|
|
297
|
+
expect(el.shadowRoot.querySelector('.rotation-btn')?.textContent?.trim()).toBe('Play slideshow');
|
|
298
|
+
});
|
|
299
|
+
it('stops non-repeating playback and restarts completed playback explicitly', async () => {
|
|
300
|
+
const el = await create('instant', document.body, {
|
|
301
|
+
layout: 'slideshow', autoplay: true, autoplayInterval: 150,
|
|
302
|
+
});
|
|
303
|
+
// The browser pointer can otherwise keep this new fixture hover-suspended.
|
|
304
|
+
await userEvent.unhover(el);
|
|
305
|
+
await vi.waitFor(() => expect(el.shadowRoot.querySelector('.carousel-viewport').getAttribute('aria-live')).toBe('off'));
|
|
306
|
+
await vi.waitFor(() => expect(el.children[2].getAttribute('data-q-carousel-active')).toBe('true'));
|
|
307
|
+
await vi.waitFor(() => expect(el.shadowRoot.querySelector('.rotation-btn')?.textContent?.trim()).toBe('Play slideshow'));
|
|
308
|
+
await el.play();
|
|
309
|
+
await frame();
|
|
310
|
+
expect(el.children[0].getAttribute('data-q-carousel-active')).toBe('true');
|
|
311
|
+
await el.pause();
|
|
312
|
+
});
|
|
313
|
+
it('preserves original dot styling while controls fit the available container width', async () => {
|
|
314
|
+
const el = await create('instant', document.body, { layout: 'slideshow' });
|
|
315
|
+
el.style.width = '180px';
|
|
316
|
+
await frame();
|
|
317
|
+
const controls = el.shadowRoot.querySelector('[part="controls"]');
|
|
318
|
+
const row = el.shadowRoot.querySelector('.carousel-indicators');
|
|
319
|
+
const dots = Array.from(row.querySelectorAll('.indicator-dot'));
|
|
320
|
+
expect(controls.getBoundingClientRect().width).toBeLessThanOrEqual(180);
|
|
321
|
+
expect(row.getBoundingClientRect().height).toBe(6);
|
|
322
|
+
expect(getComputedStyle(row).gap).toBe('8px');
|
|
323
|
+
expect(dots[0].getBoundingClientRect().width).toBe(15);
|
|
324
|
+
expect(dots[1].getBoundingClientRect().width).toBe(6);
|
|
325
|
+
expect(dots[1].getBoundingClientRect().height).toBe(6);
|
|
326
|
+
expect(getComputedStyle(dots[1]).backgroundColor).toBe('rgb(156, 163, 175)');
|
|
327
|
+
await vi.waitFor(() => expect(getComputedStyle(dots[1]).opacity).toBe('0.5'));
|
|
328
|
+
});
|
|
@@ -6,7 +6,7 @@ import { Host, h } from "@stencil/core";
|
|
|
6
6
|
export class QAccordion {
|
|
7
7
|
mode = 'single';
|
|
8
8
|
render() {
|
|
9
|
-
return h(Host, { key: '
|
|
9
|
+
return h(Host, { key: 'a085def674c1725cd5b4351a1275eed41a6cfb8e' }, h("slot", { key: 'ab42bfd2ded411291691e184d70818c8f51e5792' }));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "q-accordion"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
const CELL_SLOT_PREFIX = 'q-data-table-cell';
|
|
2
|
+
/** Row-specific gutter slot. Use the row's unique, stable collection identity. */
|
|
3
|
+
export function getDataTableRowGutterSlotName(rowKey) {
|
|
4
|
+
return `q-data-table-row-gutter-${encodeSlotPart(serializeIdentity(rowKey))}`;
|
|
5
|
+
}
|
|
2
6
|
export function getDataTableCellSlotName(columnKey, rowKey) {
|
|
3
7
|
return `${CELL_SLOT_PREFIX}-${encodeSlotPart(serializeIdentity(columnKey))}-${encodeSlotPart(serializeIdentity(rowKey))}`;
|
|
4
8
|
}
|
|
@@ -65,6 +65,61 @@ td {
|
|
|
65
65
|
box-sizing: border-box;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
:host([two-line-rows]) .table-el {
|
|
69
|
+
table-layout: fixed;
|
|
70
|
+
line-height: var(--q-table-cell-line-height, 1.5);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cell-content {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
height: var(--q-table-cell-content-height, 2lh);
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.cell-text {
|
|
82
|
+
display: block;
|
|
83
|
+
width: 100%;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cell-text-value {
|
|
88
|
+
display: -webkit-box;
|
|
89
|
+
-webkit-box-orient: vertical;
|
|
90
|
+
-webkit-line-clamp: 2;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
overflow-wrap: anywhere;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cell-text:not([data-overflow]) q-tooltip {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cell-text q-tooltip {
|
|
100
|
+
--q-tooltip-width: max-content;
|
|
101
|
+
--q-tooltip-max-width: min(32rem, calc(100vw - 16px));
|
|
102
|
+
--q-tooltip-white-space: normal;
|
|
103
|
+
--q-tooltip-overflow-wrap: anywhere;
|
|
104
|
+
--q-tooltip-viewport-padding: 8px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([two-line-rows]) .col-actions,
|
|
108
|
+
:host([two-line-rows]) .cell-actions {
|
|
109
|
+
width: calc(var(--q-table-action-count, 1) * 32px + (var(--q-table-action-count, 1) - 1) * 4px + 2 * var(--q-table-cell-padding-inline, 8px));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([two-line-rows]) .row-actions q-button {
|
|
113
|
+
width: 32px;
|
|
114
|
+
height: 32px;
|
|
115
|
+
--q-btn-height: 32px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cell-text:focus-visible {
|
|
119
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary));
|
|
120
|
+
outline-offset: -2px;
|
|
121
|
+
}
|
|
122
|
+
|
|
68
123
|
th {
|
|
69
124
|
position: sticky;
|
|
70
125
|
top: 0;
|
|
@@ -206,6 +261,24 @@ td.is-sticky-start {
|
|
|
206
261
|
color: var(--q-fg-muted, #9ca3af);
|
|
207
262
|
}
|
|
208
263
|
|
|
264
|
+
.col-row-gutter,
|
|
265
|
+
.cell-row-gutter {
|
|
266
|
+
width: var(--q-table-row-gutter-width, 36px);
|
|
267
|
+
min-width: var(--q-table-row-gutter-width, 36px);
|
|
268
|
+
max-width: var(--q-table-row-gutter-width, 36px);
|
|
269
|
+
padding-inline: 0;
|
|
270
|
+
text-align: center;
|
|
271
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.row-gutter-content {
|
|
275
|
+
width: var(--q-table-row-gutter-width, 36px);
|
|
276
|
+
max-width: var(--q-table-row-gutter-width, 36px);
|
|
277
|
+
padding-inline: 4px;
|
|
278
|
+
box-sizing: border-box;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
}
|
|
281
|
+
|
|
209
282
|
.col-selection,
|
|
210
283
|
.cell-selection {
|
|
211
284
|
width: 48px;
|