@webquark/core 1.1.0-dev.6 → 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 +7 -5
- package/dist/cjs/{action.props-CtwTiyf6.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-CiEtk37y.js → field-CsrQGhG-.js} +2 -2
- 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-BLlc_shC.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 +112 -25
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- 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 +4 -4
- package/dist/cjs/q-dropdown.cjs.entry.js +65 -12
- package/dist/cjs/q-form.cjs.entry.js +775 -288
- 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 +91 -23
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +141 -22
- package/dist/cjs/q-media.cjs.entry.js +3 -3
- package/dist/cjs/q-navbar.cjs.entry.js +4 -4
- 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 +6 -6
- package/dist/cjs/q-radio-group.cjs.entry.js +49 -12
- 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 +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +67 -22
- 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 +59 -13
- package/dist/cjs/q-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/registry-C3IYlNMp.js +323 -0
- package/dist/cjs/tokens-RMRaIOqv.js +957 -0
- 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.css +6 -6
- 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/card/card.css +1 -1
- 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-controller.js +22 -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 +213 -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 +12 -5
- 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.css +11 -11
- package/dist/collection/components/inputs/dropdown/dropdown.js +64 -10
- package/dist/collection/components/inputs/form/form.css +5 -5
- 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.css +10 -10
- package/dist/collection/components/inputs/input/input.js +91 -20
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +6 -6
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.css +10 -10
- package/dist/collection/components/inputs/radio-group/radio-group.js +51 -9
- package/dist/collection/components/inputs/textarea/textarea.css +10 -10
- package/dist/collection/components/inputs/textarea/textarea.js +70 -18
- package/dist/collection/components/inputs/toggle/toggle.css +10 -10
- 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.css +10 -10
- 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 +148 -17
- 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.css +9 -9
- package/dist/collection/components/layout/tabs/tabs.js +1 -1
- package/dist/collection/components/layout/toolbar/toolbar.css +6 -6
- 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.css +1 -1
- 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 +6 -2
- package/dist/collection/components/overlays/tooltip/tooltip.js +9 -3
- package/dist/collection/components/shared/field.js +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/native-content.css +24 -0
- package/dist/collection/playground/assets/comparison-after.svg +1 -0
- package/dist/collection/playground/assets/comparison-before.svg +1 -0
- package/dist/collection/playground/components/playground-header/playground-header.js +1 -1
- package/dist/collection/playground/playground.bundled.js +164 -4
- package/dist/collection/theme/test/foundation.cmp.test.js +6 -0
- package/dist/collection/theme/test/presets.cmp.test.js +129 -0
- package/dist/collection/theme/tokens.js +136 -4
- 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-NEolaUak.js → p-6PPZ2sIO.js} +1 -1
- package/dist/components/p-B4Mg1xEw.js +1 -0
- package/dist/components/{p-BxFGkrUe.js → p-BH4gQWub.js} +1 -1
- package/dist/components/p-BOdNg0jc.js +1 -0
- package/dist/components/p-BcL0NVv0.js +1 -0
- package/dist/components/p-BofcK-7Z.js +1 -0
- package/dist/components/p-C6vxokHH.js +1 -0
- package/dist/components/p-CGml_DQ8.js +1 -0
- package/dist/components/{p-CK7avZdv.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-GP1ameE3.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-DkpyvZiX.js → field-zfD6OQ02.js} +2 -2
- 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-DbGG9Q40.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 +112 -25
- package/dist/esm/q-card.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/q-dropdown.entry.js +65 -12
- package/dist/esm/q-form.entry.js +775 -288
- 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 +91 -23
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +141 -22
- package/dist/esm/q-media.entry.js +3 -3
- package/dist/esm/q-navbar.entry.js +4 -4
- 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 +6 -6
- package/dist/esm/q-radio-group.entry.js +49 -12
- 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 +3 -3
- package/dist/esm/q-textarea.entry.js +67 -22
- 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 +59 -13
- package/dist/esm/q-toolbar.entry.js +5 -5
- package/dist/esm/registry-GHhpSfZU.js +308 -0
- package/dist/esm/tokens-B4Mg1xEw.js +953 -0
- 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-737ca99e.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/{webquark/p-989bdc1a.entry.js → playground/build/p-030ecde3.entry.js} +1 -1
- package/dist/playground/build/p-04c8cb9e.entry.js +1 -0
- package/dist/playground/build/p-059daa8a.entry.js +1 -0
- package/dist/playground/build/{p-ecbc0fee.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-742e39f1.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/playground/build/{p-8bdababd.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/{webquark/p-abf54361.entry.js → playground/build/p-4d61b70d.entry.js} +1 -1
- package/dist/playground/build/p-5f232b44.entry.js +13 -0
- package/dist/playground/build/{p-6b63922b.entry.js → p-64096386.entry.js} +1 -1
- package/dist/playground/build/{p-15502232.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{webquark/p-ff1e2363.entry.js → playground/build/p-6e28cfe2.entry.js} +1 -1
- package/dist/playground/build/{p-96ef2b54.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/playground/build/{p-97dae970.entry.js → 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-f911c90f.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/playground/build/p-9e78b796.entry.js +1 -0
- package/dist/{webquark/p-d4a915e5.entry.js → playground/build/p-9ff7e5a4.entry.js} +1 -1
- package/dist/playground/build/p-B4Mg1xEw.js +1 -0
- 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-BqvCR2U8.js → p-DWO-pleQ.js} +1 -1
- package/dist/playground/build/p-Dhsn99q4.js +1 -0
- 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/playground/build/{p-0d98e500.entry.js → p-dd115868.entry.js} +1 -1
- package/dist/playground/build/{p-c4fd89b8.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/playground/build/p-f4f97e74.entry.js +1 -0
- package/dist/playground/build/p-f63b7214.entry.js +1 -0
- package/dist/{webquark/p-b465aebd.entry.js → playground/build/p-f98f9439.entry.js} +1 -1
- package/dist/playground/build/{p-de8813be.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/playground/build/p-fec6fe0a.entry.js +1 -0
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/native-content.css +24 -0
- 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 +164 -4
- package/dist/playground/presets.html +47 -0
- 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/internals/marker-controller.d.ts +2 -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 +7 -4
- package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
- package/dist/types/theme/tokens.d.ts +78 -0
- 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/native-content.css +24 -0
- package/dist/webquark/{p-737ca99e.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/{playground/build/p-989bdc1a.entry.js → webquark/p-030ecde3.entry.js} +1 -1
- package/dist/webquark/p-04c8cb9e.entry.js +1 -0
- package/dist/webquark/p-059daa8a.entry.js +1 -0
- package/dist/webquark/{p-ecbc0fee.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-742e39f1.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/webquark/{p-8bdababd.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/{playground/build/p-abf54361.entry.js → webquark/p-4d61b70d.entry.js} +1 -1
- package/dist/webquark/p-5f232b44.entry.js +13 -0
- package/dist/webquark/{p-6b63922b.entry.js → p-64096386.entry.js} +1 -1
- package/dist/webquark/{p-15502232.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{playground/build/p-ff1e2363.entry.js → webquark/p-6e28cfe2.entry.js} +1 -1
- package/dist/webquark/{p-96ef2b54.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/webquark/{p-97dae970.entry.js → 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-f911c90f.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/webquark/p-9e78b796.entry.js +1 -0
- package/dist/{playground/build/p-d4a915e5.entry.js → webquark/p-9ff7e5a4.entry.js} +1 -1
- package/dist/webquark/p-B4Mg1xEw.js +1 -0
- 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-BqvCR2U8.js → p-DWO-pleQ.js} +1 -1
- package/dist/webquark/p-Dhsn99q4.js +1 -0
- 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/webquark/{p-0d98e500.entry.js → p-dd115868.entry.js} +1 -1
- package/dist/webquark/{p-c4fd89b8.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/webquark/p-f4f97e74.entry.js +1 -0
- package/dist/webquark/p-f63b7214.entry.js +1 -0
- package/dist/{playground/build/p-b465aebd.entry.js → webquark/p-f98f9439.entry.js} +1 -1
- package/dist/webquark/{p-de8813be.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/webquark/p-fec6fe0a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +17 -19
- package/scripts/webquark-serve.js +9 -7
- package/scripts/wq-switch/README.md +115 -103
- package/scripts/wq-switch/dist/index.js +129 -82
- package/scripts/wq-switch/dist/setup.js +81 -61
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +0 -1031
- package/dist/cjs/registry-BhkCNgxt.js +0 -179
- package/dist/cjs/tokens-DGECOqpA.js +0 -42
- package/dist/components/p-0PieXMX9.js +0 -1
- package/dist/components/p-BOYjkCNa.js +0 -1
- package/dist/components/p-BvBRW3dl.js +0 -1
- package/dist/components/p-Bw4TVbfm.js +0 -1
- package/dist/components/p-CFuqfXuv.js +0 -9
- package/dist/components/p-Cx1vCuMp.js +0 -1
- package/dist/components/p-D0Q2vrt5.js +0 -1
- package/dist/components/p-DmqVhVoj.js +0 -1
- package/dist/components/p-GU98U1DJ.js +0 -1
- package/dist/components/p-WJHaLJS_.js +0 -1
- package/dist/components/p-f95uguY1.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +0 -1026
- package/dist/esm/registry-BvBRW3dl.js +0 -173
- package/dist/esm/tokens-f95uguY1.js +0 -38
- package/dist/playground/build/p-0aea8464.entry.js +0 -1
- package/dist/playground/build/p-0aecd9b1.entry.js +0 -1
- package/dist/playground/build/p-139fec38.entry.js +0 -1
- package/dist/playground/build/p-17340abf.entry.js +0 -1
- package/dist/playground/build/p-303dcac8.entry.js +0 -1
- package/dist/playground/build/p-408bf48a.entry.js +0 -1
- package/dist/playground/build/p-47253466.entry.js +0 -1
- package/dist/playground/build/p-5f6860f2.entry.js +0 -13
- package/dist/playground/build/p-6b619655.entry.js +0 -1
- package/dist/playground/build/p-71e3d582.entry.js +0 -1
- package/dist/playground/build/p-8115ec23.entry.js +0 -1
- package/dist/playground/build/p-8ad43d7f.entry.js +0 -1
- package/dist/playground/build/p-9418caa0.entry.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-DbGG9Q40.js +0 -3
- package/dist/playground/build/p-DmqVhVoj.js +0 -1
- package/dist/playground/build/p-JgeOdXyP.js +0 -1
- package/dist/playground/build/p-WJHaLJS_.js +0 -1
- package/dist/playground/build/p-a4b36120.entry.js +0 -1
- package/dist/playground/build/p-aed4b219.entry.js +0 -1
- package/dist/playground/build/p-b3a07d94.entry.js +0 -1
- package/dist/playground/build/p-c1f3dca6.entry.js +0 -1
- package/dist/playground/build/p-c4899c2b.entry.js +0 -1
- package/dist/playground/build/p-cf8f7f2a.entry.js +0 -1
- package/dist/playground/build/p-d7d436c5.entry.js +0 -13
- package/dist/playground/build/p-eb71e335.entry.js +0 -1
- package/dist/playground/build/p-ed327679.entry.js +0 -1
- package/dist/playground/build/p-f95uguY1.js +0 -1
- package/dist/webquark/p-0aea8464.entry.js +0 -1
- package/dist/webquark/p-0aecd9b1.entry.js +0 -1
- package/dist/webquark/p-139fec38.entry.js +0 -1
- package/dist/webquark/p-17340abf.entry.js +0 -1
- package/dist/webquark/p-303dcac8.entry.js +0 -1
- package/dist/webquark/p-408bf48a.entry.js +0 -1
- package/dist/webquark/p-47253466.entry.js +0 -1
- package/dist/webquark/p-5f6860f2.entry.js +0 -13
- package/dist/webquark/p-6b619655.entry.js +0 -1
- package/dist/webquark/p-71e3d582.entry.js +0 -1
- package/dist/webquark/p-8115ec23.entry.js +0 -1
- package/dist/webquark/p-8ad43d7f.entry.js +0 -1
- package/dist/webquark/p-9418caa0.entry.js +0 -1
- package/dist/webquark/p-BvBRW3dl.js +0 -1
- package/dist/webquark/p-CFuqfXuv.js +0 -9
- package/dist/webquark/p-DbGG9Q40.js +0 -3
- package/dist/webquark/p-DmqVhVoj.js +0 -1
- package/dist/webquark/p-JgeOdXyP.js +0 -1
- package/dist/webquark/p-WJHaLJS_.js +0 -1
- package/dist/webquark/p-a4b36120.entry.js +0 -1
- package/dist/webquark/p-aed4b219.entry.js +0 -1
- package/dist/webquark/p-b3a07d94.entry.js +0 -1
- package/dist/webquark/p-c1f3dca6.entry.js +0 -1
- package/dist/webquark/p-c4899c2b.entry.js +0 -1
- package/dist/webquark/p-cf8f7f2a.entry.js +0 -1
- package/dist/webquark/p-d7d436c5.entry.js +0 -13
- package/dist/webquark/p-eb71e335.entry.js +0 -1
- package/dist/webquark/p-ed327679.entry.js +0 -1
- package/dist/webquark/p-f95uguY1.js +0 -1
|
@@ -368,7 +368,9 @@ class PlaygroundHeader extends HTMLElement {
|
|
|
368
368
|
class: "logo-text"
|
|
369
369
|
}, "WebQuark")), /* @__PURE__ */ h("div", {
|
|
370
370
|
class: "header-actions"
|
|
371
|
-
}, /* @__PURE__ */ h("
|
|
371
|
+
}, /* @__PURE__ */ h("a", {
|
|
372
|
+
href: "./presets.html"
|
|
373
|
+
}, "Design presets"), /* @__PURE__ */ h("q-button", {
|
|
372
374
|
id: "themeToggle",
|
|
373
375
|
variant: "ghost",
|
|
374
376
|
onClick: () => this.toggleTheme()
|
|
@@ -2521,9 +2523,9 @@ class TokenRow extends HTMLElement {
|
|
|
2521
2523
|
value: hexVal,
|
|
2522
2524
|
onInput: (e) => {
|
|
2523
2525
|
const target = e.target;
|
|
2524
|
-
const
|
|
2525
|
-
if (
|
|
2526
|
-
|
|
2526
|
+
const textInput = this.querySelector(".color-text-input");
|
|
2527
|
+
if (textInput)
|
|
2528
|
+
textInput.value = target.value;
|
|
2527
2529
|
document.documentElement.style.setProperty(this.token.name, target.value);
|
|
2528
2530
|
}
|
|
2529
2531
|
});
|
|
@@ -3612,6 +3614,164 @@ var themeGroups = [
|
|
|
3612
3614
|
]
|
|
3613
3615
|
}
|
|
3614
3616
|
];
|
|
3617
|
+
var comfortablePreset = {
|
|
3618
|
+
"--q-space-none": "0rem",
|
|
3619
|
+
"--q-space-xs": "0.375rem",
|
|
3620
|
+
"--q-space-sm": "0.75rem",
|
|
3621
|
+
"--q-space-md": "1rem",
|
|
3622
|
+
"--q-space-lg": "1.5rem",
|
|
3623
|
+
"--q-space-xl": "2rem",
|
|
3624
|
+
"--q-space-2xl": "3rem",
|
|
3625
|
+
"--q-space-3xl": "4rem",
|
|
3626
|
+
"--q-control-height-sm": "2.25rem",
|
|
3627
|
+
"--q-control-font-sm": "0.875rem",
|
|
3628
|
+
"--q-control-line-sm": "1.25rem",
|
|
3629
|
+
"--q-control-padding-sm": "0.75rem",
|
|
3630
|
+
"--q-control-icon-sm": "1rem",
|
|
3631
|
+
"--q-control-height-md": "2.75rem",
|
|
3632
|
+
"--q-control-font-md": "1rem",
|
|
3633
|
+
"--q-control-line-md": "1.5rem",
|
|
3634
|
+
"--q-control-padding-md": "1rem",
|
|
3635
|
+
"--q-control-icon-md": "1.25rem",
|
|
3636
|
+
"--q-control-height-lg": "3.25rem",
|
|
3637
|
+
"--q-control-font-lg": "1.125rem",
|
|
3638
|
+
"--q-control-line-lg": "1.75rem",
|
|
3639
|
+
"--q-control-padding-lg": "1.25rem",
|
|
3640
|
+
"--q-control-icon-lg": "1.5rem",
|
|
3641
|
+
"--q-font-size-sm": "0.875rem",
|
|
3642
|
+
"--q-font-size-base": "1.125rem",
|
|
3643
|
+
"--q-font-size-lg": "1.5rem",
|
|
3644
|
+
"--q-padding-sm": "var(--q-space-sm, .75rem)",
|
|
3645
|
+
"--q-padding-md": "var(--q-space-md, 1rem)",
|
|
3646
|
+
"--q-padding-lg": "var(--q-space-lg, 1.5rem)",
|
|
3647
|
+
"--q-step-diag-icon-size": "40px",
|
|
3648
|
+
"--q-step-diag-item-gap": "32px",
|
|
3649
|
+
"--q-reel-gap": "24px",
|
|
3650
|
+
"--q-avatar-size-sm": "32px",
|
|
3651
|
+
"--q-avatar-size-md": "48px",
|
|
3652
|
+
"--q-avatar-size-lg": "64px",
|
|
3653
|
+
"--q-carousel-gap": "24px",
|
|
3654
|
+
"--q-carousel-padding": "32px 24px",
|
|
3655
|
+
"--q-carousel-arrow-size": "44px",
|
|
3656
|
+
"--q-carousel-indicator-gap": "12px",
|
|
3657
|
+
"--q-carousel-indicator-size": "8px",
|
|
3658
|
+
"--q-progress-linear-height-sm": "6px",
|
|
3659
|
+
"--q-progress-linear-height-md": "8px",
|
|
3660
|
+
"--q-progress-linear-height-lg": "10px",
|
|
3661
|
+
"--q-progress-circular-size-sm": "80px",
|
|
3662
|
+
"--q-progress-circular-size-md": "144px",
|
|
3663
|
+
"--q-progress-circular-size-lg": "200px",
|
|
3664
|
+
"--q-progress-circular-stroke-width-sm": "8px",
|
|
3665
|
+
"--q-progress-circular-stroke-width-md": "10px",
|
|
3666
|
+
"--q-progress-circular-stroke-width-lg": "12px",
|
|
3667
|
+
"--q-btn-icon-padding-sm": "6px",
|
|
3668
|
+
"--q-btn-icon-padding-md": "8px",
|
|
3669
|
+
"--q-btn-icon-padding-lg": "12px",
|
|
3670
|
+
"--q-chip-padding-sm": "6px 12px",
|
|
3671
|
+
"--q-chip-padding-md": "8px 16px",
|
|
3672
|
+
"--q-chip-padding-lg": "10px 20px",
|
|
3673
|
+
"--q-chip-height-sm": "32px",
|
|
3674
|
+
"--q-chip-height-md": "40px",
|
|
3675
|
+
"--q-chip-height-lg": "48px",
|
|
3676
|
+
"--q-sidepanel-panel-padding": "var(--q-padding-lg)",
|
|
3677
|
+
"--q-sidepanel-panel-header-padding": "var(--q-padding-lg)",
|
|
3678
|
+
"--q-sidepanel-panel-footer-padding": "var(--q-padding-lg)",
|
|
3679
|
+
"--q-map-marker-size": "24px",
|
|
3680
|
+
"--q-map-marker-size-small": "20px",
|
|
3681
|
+
"--q-map-marker-size-medium": "var(--q-map-marker-size)",
|
|
3682
|
+
"--q-map-marker-size-large": "28px"
|
|
3683
|
+
};
|
|
3684
|
+
var semanticPresetTokens = {
|
|
3685
|
+
"--q-text-body-size": { compact: "var(--q-font-size-base)", comfortable: "var(--q-font-size-base)" },
|
|
3686
|
+
"--q-text-body-line-height": { compact: "1.5", comfortable: "1.6" },
|
|
3687
|
+
"--q-text-small-size": { compact: "var(--q-font-size-sm)", comfortable: "var(--q-font-size-sm)" },
|
|
3688
|
+
"--q-text-small-line-height": { compact: "1.5", comfortable: "1.5" },
|
|
3689
|
+
"--q-heading-display-size": { compact: "var(--q-font-size-lg)", comfortable: "clamp(2.5rem, 1.75rem + 3vw, 4rem)" },
|
|
3690
|
+
"--q-heading-display-line-height": { compact: "1.3", comfortable: "1.1" },
|
|
3691
|
+
"--q-heading-1-size": { compact: "var(--q-font-size-lg)", comfortable: "clamp(27px, 1.5rem + 2vw, 36px)" },
|
|
3692
|
+
"--q-heading-2-size": {
|
|
3693
|
+
compact: "var(--q-font-size-lg)",
|
|
3694
|
+
comfortable: "clamp(1.4rem, 1.1rem + 1.2vw, 2rem)"
|
|
3695
|
+
},
|
|
3696
|
+
"--q-heading-3-size": {
|
|
3697
|
+
compact: "var(--q-font-size-lg)",
|
|
3698
|
+
comfortable: "clamp(1.265625rem, 1.0546875rem + 0.84375vw, 1.6875rem)"
|
|
3699
|
+
},
|
|
3700
|
+
"--q-heading-4-size": {
|
|
3701
|
+
compact: "var(--q-font-size-lg)",
|
|
3702
|
+
comfortable: "1.25rem"
|
|
3703
|
+
},
|
|
3704
|
+
"--q-heading-5-size": { compact: "var(--q-font-size-lg)", comfortable: "1.25rem" },
|
|
3705
|
+
"--q-heading-6-size": { compact: "var(--q-font-size-lg)", comfortable: "1.125rem" },
|
|
3706
|
+
...Object.fromEntries([1, 2, 3, 4, 5, 6].map((level) => [
|
|
3707
|
+
`--q-heading-${level}-line-height`,
|
|
3708
|
+
{ compact: "1.3", comfortable: level <= 2 ? "1.2" : "1.3" }
|
|
3709
|
+
])),
|
|
3710
|
+
"--q-content-paragraph-gap": { compact: "var(--q-padding-lg)", comfortable: "1.5rem" },
|
|
3711
|
+
"--q-content-heading-gap": { compact: "var(--q-padding-lg)", comfortable: "1.5rem" },
|
|
3712
|
+
"--q-content-section-gap": { compact: "var(--q-space-2xl)", comfortable: "clamp(3rem, 2rem + 4vw, 6rem)" },
|
|
3713
|
+
"--q-content-padding": { compact: "var(--q-padding-lg)", comfortable: "clamp(1.5rem, 1rem + 2vw, 3rem)" },
|
|
3714
|
+
"--q-field-text-size": { compact: ".75rem", comfortable: ".875rem" },
|
|
3715
|
+
"--q-field-text-line": { compact: "1rem", comfortable: "1.25rem" }
|
|
3716
|
+
};
|
|
3717
|
+
var componentPresetTokens = {
|
|
3718
|
+
"--q-toolbar-height": { compact: "0px", comfortable: "72px" },
|
|
3719
|
+
"--q-toolbar-compact-height": { compact: "0px", comfortable: "60px" },
|
|
3720
|
+
"--q-font-size-xs": { compact: "0.7rem", comfortable: "0.8125rem" },
|
|
3721
|
+
"--q-font-size-2xs": { compact: "0.625rem", comfortable: "0.75rem" },
|
|
3722
|
+
"--q-btn-circle-size": { compact: "120px", comfortable: "144px" },
|
|
3723
|
+
"--q-btn-circle-padding": { compact: "12px", comfortable: "16px" },
|
|
3724
|
+
"--q-table-toolbar-padding-block": { compact: "12px", comfortable: "16px" },
|
|
3725
|
+
"--q-table-toolbar-padding-inline": { compact: "16px", comfortable: "24px" },
|
|
3726
|
+
"--q-bar-edge-padding": { compact: "24px", comfortable: "32px" },
|
|
3727
|
+
"--q-bar-edge-compact-padding": { compact: "16px", comfortable: "24px" },
|
|
3728
|
+
"--q-table-cell-padding-block": { compact: "4.5px", comfortable: "10px" },
|
|
3729
|
+
"--q-table-cell-padding-inline": { compact: "8px", comfortable: "14px" },
|
|
3730
|
+
"--q-dropdown-option-padding": { compact: "10px 14px", comfortable: "12px 18px" },
|
|
3731
|
+
"--q-tooltip-padding": { compact: "6px 10px", comfortable: "8px 14px" },
|
|
3732
|
+
"--q-syntax-padding": { compact: "16px", comfortable: "24px" },
|
|
3733
|
+
"--q-syntax-compact-padding": { compact: "10px", comfortable: "16px" },
|
|
3734
|
+
"--q-syntax-header-padding": { compact: "4px 16px", comfortable: "8px 24px" },
|
|
3735
|
+
"--q-sidepanel-nav-font": { compact: "0.875rem", comfortable: "1rem" },
|
|
3736
|
+
"--q-sidepanel-nav-small-font": { compact: "0.75rem", comfortable: "0.875rem" },
|
|
3737
|
+
"--q-sidepanel-nav-badge-font": { compact: "0.65rem", comfortable: "0.75rem" },
|
|
3738
|
+
"--q-navbar-item-height": { compact: "36px", comfortable: "44px" },
|
|
3739
|
+
"--q-navbar-gap": { compact: "20px", comfortable: "28px" },
|
|
3740
|
+
"--q-navbar-height": { compact: "64px", comfortable: "72px" },
|
|
3741
|
+
"--q-navbar-compact-height": { compact: "52px", comfortable: "60px" },
|
|
3742
|
+
"--q-navbar-logo-size": { compact: "32px", comfortable: "40px" },
|
|
3743
|
+
"--q-navbar-brand-size": { compact: "1rem", comfortable: "1.25rem" },
|
|
3744
|
+
"--q-navbar-nav-gap": { compact: "6px", comfortable: "10px" },
|
|
3745
|
+
"--q-navbar-action-gap": { compact: "8px", comfortable: "12px" },
|
|
3746
|
+
"--q-navbar-item-gap": { compact: "8px", comfortable: "12px" },
|
|
3747
|
+
"--q-navbar-item-padding": { compact: "7px 10px", comfortable: "10px 14px" },
|
|
3748
|
+
"--q-navbar-item-size": { compact: "0.9rem", comfortable: "1rem" },
|
|
3749
|
+
"--q-navbar-item-icon-only-size": { compact: "40px", comfortable: "44px" },
|
|
3750
|
+
"--q-navbar-item-icon-only-padding": { compact: "8px", comfortable: "10px" },
|
|
3751
|
+
"--q-navbar-mobile-panel-padding": { compact: "8px 16px 16px", comfortable: "12px 24px 24px" },
|
|
3752
|
+
"--q-avatar-font-size": { compact: "0.8rem", comfortable: "1rem" },
|
|
3753
|
+
"--q-avatar-font-size-sm": { compact: "0.65rem", comfortable: "0.75rem" },
|
|
3754
|
+
"--q-avatar-font-size-lg": { compact: "1rem", comfortable: "1.25rem" },
|
|
3755
|
+
"--q-conversation-gap": { compact: "10px", comfortable: "16px" },
|
|
3756
|
+
"--q-conversation-header-gap": { compact: "4px", comfortable: "6px" },
|
|
3757
|
+
"--q-conversation-header-inset": { compact: "4px", comfortable: "6px" },
|
|
3758
|
+
"--q-conversation-padding": { compact: "11px 13px", comfortable: "16px 20px" },
|
|
3759
|
+
"--q-conversation-footer-gap": { compact: "10px", comfortable: "16px" },
|
|
3760
|
+
"--q-conversation-footer-margin": { compact: "6px", comfortable: "10px" },
|
|
3761
|
+
"--q-conversation-meta-gap": { compact: "6px", comfortable: "10px" },
|
|
3762
|
+
"--q-conversation-compact-padding": { compact: "7px 10px", comfortable: "10px 14px" },
|
|
3763
|
+
"--q-alert-padding": { compact: "12px 14px", comfortable: "16px 20px" },
|
|
3764
|
+
"--q-alert-gap": { compact: "10px", comfortable: "16px" },
|
|
3765
|
+
"--q-alert-actions-gap": { compact: "8px", comfortable: "12px" },
|
|
3766
|
+
"--q-pagination-button-height": { compact: "30px", comfortable: "44px" },
|
|
3767
|
+
"--q-pagination-button-padding": { compact: "5px 8px", comfortable: "8px 12px" }
|
|
3768
|
+
};
|
|
3769
|
+
var presetTokens = Object.entries(comfortablePreset).map(([name, comfortable]) => {
|
|
3770
|
+
const token = [...dimensionTokens, ...themeGroups.flatMap((group) => group.tokens)].find((token) => token.name === name);
|
|
3771
|
+
if (!token)
|
|
3772
|
+
throw new Error(`Preset token has no compact default: ${name}`);
|
|
3773
|
+
return { name, compact: token.value, comfortable };
|
|
3774
|
+
}).concat(Object.entries({ ...semanticPresetTokens, ...componentPresetTokens }).map(([name, values]) => ({ name, ...values })));
|
|
3615
3775
|
|
|
3616
3776
|
// src/playground/components/theme-designer/theme-designer.tsx
|
|
3617
3777
|
var THEME_TOKENS = [
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>WebQuark design presets</title>
|
|
7
|
+
<script type="module" src="./build/webquark.esm.js"></script>
|
|
8
|
+
<link rel="stylesheet" href="./build/webquark.css">
|
|
9
|
+
<link rel="stylesheet" href="./native-content.css">
|
|
10
|
+
<style>
|
|
11
|
+
body { margin: 0; padding: 24px; background: var(--q-bg-base); color: var(--q-fg-base); font-family: var(--q-font-family); }
|
|
12
|
+
.controls { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
|
|
13
|
+
.comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
|
|
14
|
+
article { min-width: 0; border: var(--q-border); border-radius: var(--q-radius-lg); }
|
|
15
|
+
q-input, q-card, q-form { margin-block: var(--q-space-md); }
|
|
16
|
+
a { color: var(--q-color-primary); }
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<nav class="controls">
|
|
21
|
+
<a href="./">Component playground</a>
|
|
22
|
+
<label>Colour <select id="theme"><option>dark</option><option>light</option></select></label>
|
|
23
|
+
<label>Direction <select id="direction"><option>ltr</option><option>rtl</option></select></label>
|
|
24
|
+
<label>Right preset <select id="preset"><option>comfortable</option><option>compact</option></select></label>
|
|
25
|
+
</nav>
|
|
26
|
+
<div class="comparison">
|
|
27
|
+
<article class="q-prose q-content-section" data-wq-preset="compact">
|
|
28
|
+
<small>COMPACT — existing defaults</small><h1>Work with clarity</h1>
|
|
29
|
+
<p>Compact text, controls and spacing for everyday application work.</p>
|
|
30
|
+
<q-form size="md" reserve-feedback><q-input label="Project" placeholder="Project name"></q-input><q-button size="sm">Small</q-button> <q-button>Medium</q-button> <q-button size="lg">Large</q-button></q-form>
|
|
31
|
+
<q-card><span slot="header">Card title</span>Compact card padding and body text.</q-card>
|
|
32
|
+
</article>
|
|
33
|
+
<article id="preview" class="q-prose q-content-section" data-wq-preset="comfortable">
|
|
34
|
+
<small>COMFORTABLE — balanced reading</small><h1>Give your ideas room</h1>
|
|
35
|
+
<p>Readable text, responsive headings and comfortable controls for a public website.</p>
|
|
36
|
+
<q-form size="md" reserve-feedback><q-input label="Email" placeholder="you@example.com"></q-input><q-button size="sm">Small</q-button> <q-button>Medium</q-button> <q-button size="lg">Large</q-button></q-form>
|
|
37
|
+
<q-card><span slot="header">Card title</span>Comfortable card padding and body text.</q-card>
|
|
38
|
+
<aside data-wq-preset="compact"><h2>Nested compact section</h2><q-input label="Filter"></q-input><q-button>Apply</q-button></aside>
|
|
39
|
+
</article>
|
|
40
|
+
</div>
|
|
41
|
+
<script>
|
|
42
|
+
document.querySelector('#theme').onchange = event => document.documentElement.dataset.theme = event.target.value;
|
|
43
|
+
document.querySelector('#direction').onchange = event => document.documentElement.dir = event.target.value;
|
|
44
|
+
document.querySelector('#preset').onchange = event => document.querySelector('#preview').dataset.wqPreset = event.target.value;
|
|
45
|
+
</script>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { QFormEnctype, QFormMethod } from '../../inputs/form/form.types';
|
|
1
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
3
|
import type { QIconName } from '../../media/icon/icon.types';
|
|
3
4
|
import type { QButtonLayout, QButtonShape, QButtonSize, QButtonType, QButtonVariant } from './button.types';
|
|
@@ -18,12 +19,15 @@ declare const QButton_base: abstract new (...args: any[]) => {
|
|
|
18
19
|
*/
|
|
19
20
|
export declare class QButton extends QButton_base {
|
|
20
21
|
el: HTMLElement;
|
|
22
|
+
internals: ElementInternals;
|
|
21
23
|
/** Lucide icon rendered before the label. Use icon slots for custom content. */
|
|
22
24
|
icon?: QIconName;
|
|
23
25
|
/** Auto-detected from slotted icon content when omitted. */
|
|
24
26
|
iconOnly?: boolean;
|
|
25
27
|
/** Required when an icon-only button has no accessible text. */
|
|
26
28
|
ariaLabel: string | null;
|
|
29
|
+
/** Successful submission value when this button is the submitter. */
|
|
30
|
+
value: string;
|
|
27
31
|
variant: QButtonVariant;
|
|
28
32
|
size: QButtonSize;
|
|
29
33
|
/** The `circle` shape uses a fixed-size circular presentation. */
|
|
@@ -35,18 +39,40 @@ export declare class QButton extends QButton_base {
|
|
|
35
39
|
target?: string;
|
|
36
40
|
/** Applied to the native `<button>` when `href` is unset. */
|
|
37
41
|
type: QButtonType;
|
|
42
|
+
/** Successful submission name when this button is the submitter. */
|
|
43
|
+
name?: string;
|
|
44
|
+
/** Explicit native form ID in this tree; unresolved IDs do not fall back. */
|
|
45
|
+
form?: string;
|
|
46
|
+
/** Overrides the owning form's action for this submission. */
|
|
47
|
+
formAction?: string;
|
|
48
|
+
/** Overrides the owning form's method for this submission. */
|
|
49
|
+
formMethod?: QFormMethod;
|
|
50
|
+
/** Overrides the owning form's encoding for this submission. */
|
|
51
|
+
formEnctype?: QFormEnctype;
|
|
52
|
+
/** Overrides the owning form's browsing context for this submission. */
|
|
53
|
+
formTarget?: string;
|
|
54
|
+
/** Skips validation for this submitter while retaining cancellation and collection. */
|
|
55
|
+
formNoValidate: boolean;
|
|
38
56
|
/** Emitted on activation unless disabled or loading. */
|
|
39
57
|
qClick: EventEmitter<MouseEvent>;
|
|
40
58
|
qFocus: EventEmitter<FocusEvent>;
|
|
41
59
|
qBlur: EventEmitter<FocusEvent>;
|
|
42
60
|
autoIconOnly: boolean;
|
|
61
|
+
private defaultSlotIcon;
|
|
43
62
|
private hasWarnedMissingAccessibleName;
|
|
63
|
+
private disabledState;
|
|
64
|
+
private get isDisabled();
|
|
65
|
+
private syncButtonState;
|
|
66
|
+
formDisabledCallback(): void;
|
|
67
|
+
componentDidRender(): void;
|
|
68
|
+
watchDisabled(): void;
|
|
44
69
|
componentWillLoad(): void;
|
|
45
70
|
componentDidLoad(): void;
|
|
46
71
|
handleIconAccessibilityChange(): void;
|
|
47
72
|
private checkIconOnly;
|
|
48
73
|
private handleSlotChange;
|
|
49
74
|
private getVisibleText;
|
|
75
|
+
private getDefaultSlotNodes;
|
|
50
76
|
private getShortcutIcon;
|
|
51
77
|
private hasShortcutIcon;
|
|
52
78
|
private hasIconContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,28 +1,64 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { QCarouselSlideChangeDetail, QCarouselSnapAlignment } from './carousel.types';
|
|
2
|
+
import type { QCarouselAutoplayChangeDetail, QCarouselLayout, QCarouselSlideChangeDetail, QCarouselSnapAlignment, QCarouselTransition } from './carousel.types';
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A carousel with sliding, crossfade or instant transitions and shared navigation.
|
|
5
5
|
*
|
|
6
6
|
* @slot - Carousel slide content.
|
|
7
|
+
* @slot controls-extra - Additional content below the slide indicators.
|
|
8
|
+
* @part controls - Container shared by indicators and additional controls.
|
|
9
|
+
* @part viewport - Slide viewport.
|
|
10
|
+
* @part previous-button - Previous slide control.
|
|
11
|
+
* @part next-button - Next slide control.
|
|
12
|
+
* @part indicator - Each slide indicator button.
|
|
13
|
+
* @part rotation-button - Playback intent control.
|
|
7
14
|
*/
|
|
8
15
|
export declare class QCarousel {
|
|
16
|
+
/** Slideshow provides full-width slides with no default viewport inset or gap. */
|
|
17
|
+
layout: QCarouselLayout;
|
|
9
18
|
snapAlignment: QCarouselSnapAlignment;
|
|
10
19
|
/** `auto` preserves each slotted item's natural width. */
|
|
11
20
|
itemWidth: string;
|
|
12
|
-
|
|
21
|
+
/** Omitted controls are enabled for navigable slideshows and disabled for strips. */
|
|
22
|
+
showArrows?: boolean;
|
|
13
23
|
/** Shows clickable slide indicator dots when the carousel can scroll. */
|
|
14
|
-
showIndicators
|
|
24
|
+
showIndicators?: boolean;
|
|
15
25
|
/** Wraps arrow and programmatic navigation at either end. */
|
|
16
26
|
repeat: boolean;
|
|
27
|
+
/** Animation used when selecting a slide. Overlay modes show one full-width item. */
|
|
28
|
+
transition: QCarouselTransition;
|
|
29
|
+
/** Crossfade duration in milliseconds; native sliding keeps browser-controlled timing. */
|
|
30
|
+
transitionDuration: number;
|
|
31
|
+
/** Enables rotation; user interaction pauses until explicitly restarted. */
|
|
32
|
+
autoplay: boolean;
|
|
33
|
+
/** Finite positive interval in milliseconds; invalid values use 5000. */
|
|
34
|
+
autoplayInterval: number;
|
|
35
|
+
/** Temporarily suspends requested playback without changing the button action. */
|
|
36
|
+
autoplaySuspended: boolean;
|
|
37
|
+
/** Accessible name forwarded to the slide viewport. */
|
|
38
|
+
ariaLabel: string;
|
|
39
|
+
hasExtraControls: boolean;
|
|
17
40
|
activeIndex: number;
|
|
18
41
|
maxIndex: number;
|
|
19
42
|
isScrollable: boolean;
|
|
20
43
|
isAtStart: boolean;
|
|
21
44
|
isAtEnd: boolean;
|
|
45
|
+
private autoplayRequested;
|
|
46
|
+
private autoplayPlaying;
|
|
22
47
|
qSlideChange: EventEmitter<QCarouselSlideChangeDetail>;
|
|
48
|
+
/** Actual running state, including temporary suspension. */
|
|
49
|
+
qAutoplayChange: EventEmitter<QCarouselAutoplayChangeDetail>;
|
|
23
50
|
el: HTMLElement;
|
|
51
|
+
private slideState;
|
|
52
|
+
private touchStart?;
|
|
53
|
+
private get stacked();
|
|
54
|
+
private get managesSlides();
|
|
55
|
+
private get navigable();
|
|
56
|
+
private get arrowsVisible();
|
|
57
|
+
private get indicatorsVisible();
|
|
58
|
+
private get viewportFocusable();
|
|
24
59
|
private scrollContainer?;
|
|
25
60
|
private resizeObserver?;
|
|
61
|
+
private restoreSlideIndex?;
|
|
26
62
|
private itemOffsets;
|
|
27
63
|
private itemWidths;
|
|
28
64
|
private containerWidth;
|
|
@@ -34,11 +70,35 @@ export declare class QCarousel {
|
|
|
34
70
|
private programmaticScrollTimer?;
|
|
35
71
|
private activeScrollEndCleanup?;
|
|
36
72
|
private programmaticScrollToken;
|
|
73
|
+
private connected;
|
|
74
|
+
private hovered;
|
|
75
|
+
private reducedMotion;
|
|
76
|
+
private motionPreference?;
|
|
77
|
+
private rotationButton?;
|
|
78
|
+
private rotationPointerAction?;
|
|
79
|
+
private readonly autoplayController;
|
|
80
|
+
protected layoutChanged(): void;
|
|
81
|
+
protected autoplayChanged(): void;
|
|
82
|
+
protected transitionChanged(): void;
|
|
83
|
+
connectedCallback(): void;
|
|
37
84
|
disconnectedCallback(): void;
|
|
38
85
|
/** Scrolls the carousel to a zero-based slide index. */
|
|
39
86
|
slideTo(index: number): Promise<void>;
|
|
87
|
+
/** Requests rotation when enabled; completed non-repeating playback restarts at the first slide. */
|
|
88
|
+
play(): Promise<void>;
|
|
89
|
+
/** Stops rotation until play() or the playback control explicitly restarts it. */
|
|
90
|
+
pause(): Promise<void>;
|
|
40
91
|
/** Recalculates slide offsets, scroll bounds, and navigation states. */
|
|
41
92
|
updateLimits(): Promise<void>;
|
|
93
|
+
private syncAutoplay;
|
|
94
|
+
private handleMotionChange;
|
|
95
|
+
private handleHover;
|
|
96
|
+
private isRotationEvent;
|
|
97
|
+
private handleInteraction;
|
|
98
|
+
private handleFocus;
|
|
99
|
+
private handleRotationClick;
|
|
100
|
+
private updateSlideState;
|
|
101
|
+
private recoverSlideFocus;
|
|
42
102
|
private setScrollContainerRef;
|
|
43
103
|
private handleSlotChange;
|
|
44
104
|
private updateCachedChildren;
|
|
@@ -48,9 +108,16 @@ export declare class QCarousel {
|
|
|
48
108
|
private updateEdgeState;
|
|
49
109
|
private handleScroll;
|
|
50
110
|
private clearProgrammaticScroll;
|
|
111
|
+
private selectStacked;
|
|
51
112
|
private scrollToIndex;
|
|
52
113
|
private slidePrev;
|
|
53
114
|
private slideNext;
|
|
54
115
|
private handleIndicatorKeyDown;
|
|
116
|
+
private isInteractiveEvent;
|
|
117
|
+
private handleKeyDown;
|
|
118
|
+
private handlePointerDown;
|
|
119
|
+
private handlePointerUp;
|
|
120
|
+
private handlePointerCancel;
|
|
121
|
+
private handleExtraControlsChange;
|
|
55
122
|
render(): any;
|
|
56
123
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export type QCarouselSnapAlignment = 'start' | 'center' | 'end' | 'none';
|
|
2
|
+
export type QCarouselLayout = 'strip' | 'slideshow';
|
|
3
|
+
export interface QCarouselAutoplayChangeDetail {
|
|
4
|
+
playing: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type QCarouselTransition = 'slide' | 'crossfade' | 'instant';
|
|
2
7
|
export interface QCarouselSlideChangeDetail {
|
|
3
8
|
index: number;
|
|
4
9
|
element: HTMLElement;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CarouselAutoplayConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
navigable: boolean;
|
|
4
|
+
suspended: boolean;
|
|
5
|
+
reducedMotion: boolean;
|
|
6
|
+
interval: number;
|
|
7
|
+
}
|
|
8
|
+
/** Separates persistent playback intent from temporary hover/visibility suspension. */
|
|
9
|
+
export declare class CarouselAutoplay {
|
|
10
|
+
private readonly advance;
|
|
11
|
+
private readonly changed;
|
|
12
|
+
private config;
|
|
13
|
+
private requested;
|
|
14
|
+
private timer?;
|
|
15
|
+
constructor(advance: () => boolean, changed: (playing: boolean, requested: boolean) => void);
|
|
16
|
+
configure(config: CarouselAutoplayConfig): void;
|
|
17
|
+
play(): void;
|
|
18
|
+
pause(): void;
|
|
19
|
+
disconnect(): void;
|
|
20
|
+
private sync;
|
|
21
|
+
private clearTimer;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Own only temporary accessibility attributes; restore authored values on release. */
|
|
2
|
+
export declare class CarouselSlideState {
|
|
3
|
+
private originals;
|
|
4
|
+
update(slides: HTMLElement[], index: number, focusTarget?: HTMLElement | (() => void)): void;
|
|
5
|
+
restore(): void;
|
|
6
|
+
private restoreElement;
|
|
7
|
+
private attribute;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../carousel';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { CollectionIdentity, CollectionIdentityInput } from '../../../utils/collection-identity';
|
|
2
2
|
import type { DataTableItem } from './data-table.types';
|
|
3
|
+
/** Row-specific gutter slot. Use the row's unique, stable collection identity. */
|
|
4
|
+
export declare function getDataTableRowGutterSlotName(rowKey: CollectionIdentity): string;
|
|
3
5
|
export declare function getDataTableCellSlotName(columnKey: CollectionIdentity, rowKey: CollectionIdentity): string;
|
|
4
6
|
export declare function getDataTableItemKey(item: DataTableItem, _index: number, keyField: string): CollectionIdentityInput;
|
|
5
7
|
export declare function getDataTableCellValue(item: DataTableItem, path: string): unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { DataTableItem, DataTableKey, DataTableRowAction, DataTableRowGrouper, DataTableSortDirection, DataTableSortMode, QDataTableRowActionDetail, QDataTableRowClickDetail, QDataTableSelectionChangeDetail, QDataTableSortChangeDetail, TableColumn } from './data-table.types';
|
|
2
|
+
import type { DataTableItem, DataTableKey, DataTableRowAction, DataTableRowGrouper, DataTableRowGutter, DataTableSortDirection, DataTableSortMode, QDataTableRowActionDetail, QDataTableRowClickDetail, QDataTableSelectionChangeDetail, QDataTableSortChangeDetail, TableColumn } from './data-table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Data grid with optional toolbar, search, row activation, and multi-row selection.
|
|
5
5
|
* @slot toolbar-left - Content placed before the search and filters area.
|
|
@@ -8,7 +8,11 @@ import type { DataTableItem, DataTableKey, DataTableRowAction, DataTableRowGroup
|
|
|
8
8
|
* @slot empty - Empty-state content shown when no rows are available.
|
|
9
9
|
* @slot footer - Footer content rendered below the scrollable table.
|
|
10
10
|
* @slot q-data-table-cell-* - Framework adapter cell content keyed by column and stable row key.
|
|
11
|
+
* @slot q-data-table-row-gutter-* - Custom row gutter content keyed by stable row identity.
|
|
12
|
+
* @cssprop --q-table-row-gutter-width - Row gutter width, including padding (default 36px).
|
|
11
13
|
* @cssprop --q-table-max-height - Maximum height for the scrollable table area.
|
|
14
|
+
* @cssprop --q-table-cell-line-height - Line height in two-line row mode (default 1.5).
|
|
15
|
+
* @cssprop --q-table-cell-content-height - Reserved content height in two-line row mode (default 2lh).
|
|
12
16
|
* @cssprop --q-table-group-bg - Background color for row-group divider rows.
|
|
13
17
|
* @cssprop --q-table-group-fg - Text color for row-group divider rows.
|
|
14
18
|
* @cssprop --q-table-group-border - Border color for row-group divider rows.
|
|
@@ -30,12 +34,18 @@ export declare class QDataTable {
|
|
|
30
34
|
items: DataTableItem[] | string;
|
|
31
35
|
/** Row field used as the stable selection and render key. Falls back to the row index. */
|
|
32
36
|
keyField: string;
|
|
37
|
+
/** Reserves two text lines per data cell; rich cells must fit the same content height. */
|
|
38
|
+
twoLineRows: boolean;
|
|
33
39
|
/** Inserts a divider whenever the returned group key changes. */
|
|
34
40
|
rowGroup?: DataTableRowGrouper;
|
|
35
41
|
/** Row actions rendered as trailing icon buttons. */
|
|
36
42
|
rowActions: DataTableRowAction[] | string;
|
|
37
43
|
/** Enables full-row click and keyboard activation. */
|
|
38
44
|
rowClickable: boolean;
|
|
45
|
+
/** Structural leading cell: blank by default, numbers, custom row slots, or none. */
|
|
46
|
+
rowGutter: DataTableRowGutter;
|
|
47
|
+
/** Numbering offset; invalid, negative or non-safe-integer values fall back to zero. */
|
|
48
|
+
rowNumberOffset: number;
|
|
39
49
|
/** Enables row selection checkboxes and selection state. */
|
|
40
50
|
selectable: boolean;
|
|
41
51
|
selectedKeys: DataTableKey[];
|
|
@@ -60,6 +70,13 @@ export declare class QDataTable {
|
|
|
60
70
|
qSelectionChange: EventEmitter<QDataTableSelectionChangeDetail>;
|
|
61
71
|
qSearch: EventEmitter<string>;
|
|
62
72
|
qSortChange: EventEmitter<QDataTableSortChangeDetail>;
|
|
73
|
+
host: HTMLElement;
|
|
74
|
+
private rowResizeObserver?;
|
|
75
|
+
connectedCallback(): void;
|
|
76
|
+
componentDidRender(): void;
|
|
77
|
+
private observeRowSize;
|
|
78
|
+
disconnectedCallback(): void;
|
|
79
|
+
private updateCellOverflow;
|
|
63
80
|
private getParsedItems;
|
|
64
81
|
private getItemKey;
|
|
65
82
|
private getSelectedItems;
|
|
@@ -2,6 +2,7 @@ export type DataTableItem = unknown;
|
|
|
2
2
|
export type DataTableKey = unknown;
|
|
3
3
|
export type DataTableSortDirection = 'asc' | 'desc';
|
|
4
4
|
export type DataTableSortMode = 'table' | 'external';
|
|
5
|
+
export type DataTableRowGutter = 'none' | 'blank' | 'numbers' | 'custom';
|
|
5
6
|
export type DataTableColumnSticky = 'start';
|
|
6
7
|
export type DataTableCellClassName<T = unknown> = string | ((item: T, rowIndex: number, column: TableColumn<T>) => string | null | undefined);
|
|
7
8
|
export interface DataTableRowGroup {
|
|
@@ -15,6 +16,8 @@ export interface TableColumn<T = unknown> {
|
|
|
15
16
|
width?: string;
|
|
16
17
|
className?: string;
|
|
17
18
|
cellClassName?: DataTableCellClassName<T>;
|
|
19
|
+
/** Shows full plain text on hover/focus only when two-line text is truncated. */
|
|
20
|
+
overflowTooltip?: boolean;
|
|
18
21
|
sticky?: DataTableColumnSticky;
|
|
19
22
|
sortable?: boolean;
|
|
20
23
|
sortKey?: string;
|
|
@@ -3,6 +3,7 @@ import type { DataTableModel } from './table-model';
|
|
|
3
3
|
export interface RenderDataTableBodyOptions {
|
|
4
4
|
model: DataTableModel;
|
|
5
5
|
loading: boolean;
|
|
6
|
+
twoLineRows?: boolean;
|
|
6
7
|
onRowClick: (item: DataTableItem, index: number, event: MouseEvent) => void;
|
|
7
8
|
onRowKeyDown: (item: DataTableItem, index: number, event: KeyboardEvent) => void;
|
|
8
9
|
onRowCheckboxChange: (item: DataTableItem, index: number, event: Event) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CollectionIdentity } from '../../../../utils/collection-identity';
|
|
2
|
-
import type { DataTableItem, DataTableKey, DataTableRowAction, DataTableRowGroup, DataTableRowGrouper, DataTableSortDirection, DataTableSortMode, TableColumn } from '../data-table.types';
|
|
2
|
+
import type { DataTableItem, DataTableKey, DataTableRowAction, DataTableRowGroup, DataTableRowGrouper, DataTableRowGutter, DataTableSortDirection, DataTableSortMode, TableColumn } from '../data-table.types';
|
|
3
3
|
import { type DataTableSelectionState } from './selection';
|
|
4
4
|
export interface DataTableColumnModel {
|
|
5
5
|
column: TableColumn;
|
|
@@ -28,6 +28,8 @@ export interface DataTableModel {
|
|
|
28
28
|
rowActions: DataTableRowActionModel[];
|
|
29
29
|
hasRowActions: boolean;
|
|
30
30
|
rowClickable: boolean;
|
|
31
|
+
rowGutter: DataTableRowGutter;
|
|
32
|
+
rowNumberOffset: number;
|
|
31
33
|
selectionState: DataTableSelectionState;
|
|
32
34
|
columnSpan: number;
|
|
33
35
|
selectable: boolean;
|
|
@@ -40,6 +42,8 @@ export interface GetDataTableModelOptions {
|
|
|
40
42
|
items: DataTableItem[] | string;
|
|
41
43
|
rowActions: DataTableRowAction[] | string;
|
|
42
44
|
rowClickable: boolean;
|
|
45
|
+
rowGutter?: DataTableRowGutter;
|
|
46
|
+
rowNumberOffset?: number;
|
|
43
47
|
rowGroup?: DataTableRowGrouper;
|
|
44
48
|
selectedKeys: readonly DataTableKey[] | undefined;
|
|
45
49
|
selectable: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,8 @@ export declare class MapMarkerController {
|
|
|
27
27
|
private readonly clusterIndex;
|
|
28
28
|
private visibleItems;
|
|
29
29
|
private pendingFocusMarkerKey?;
|
|
30
|
+
private markerResizeObserver?;
|
|
31
|
+
private collisionFrame?;
|
|
30
32
|
private readonly handleViewportChange;
|
|
31
33
|
constructor(options: MapMarkerControllerOptions);
|
|
32
34
|
sync(markers: QMapMarkerInput): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { QMapBoundsInput, QMapClusterSelectDetail, QMapClickDetail, QMapErrorDetail, QMapGoogleMapType, QMapMarkerId, QMapMarkerInput, QMapMarkerVisibilityResult, QMapMarkerSelectDetail, QMapProvider, QMapRasterTileLoadingPolicy, QMapStatusChangeDetail, QMapViewportRect } from './map.types';
|
|
2
|
+
import type { QMapBoundsInput, QMapClusterSelectDetail, QMapClickDetail, QMapErrorDetail, QMapGoogleMapType, QMapFitMarkersOptions, QMapMarkerId, QMapMarkerInput, QMapMarkerVisibilityResult, QMapMarkerSelectDetail, QMapProvider, QMapRasterTileLoadingPolicy, QMapStatusChangeDetail, QMapViewportRect } from './map.types';
|
|
3
3
|
/**
|
|
4
4
|
* Framework-neutral interactive map powered by Leaflet.
|
|
5
5
|
*
|
|
@@ -62,6 +62,8 @@ export declare class QMap {
|
|
|
62
62
|
/** Clamped between the normalized zoom limits. */
|
|
63
63
|
zoom: number;
|
|
64
64
|
zoomControls: boolean;
|
|
65
|
+
/** Enables mouse-wheel zoom without changing touch, keyboard, or button controls. */
|
|
66
|
+
scrollWheelZoom: boolean;
|
|
65
67
|
/** Non-finite values normalize to zero. */
|
|
66
68
|
minZoom: number;
|
|
67
69
|
/** Never resolves below `minZoom`. */
|
|
@@ -110,7 +112,6 @@ export declare class QMap {
|
|
|
110
112
|
private map?;
|
|
111
113
|
private canvas?;
|
|
112
114
|
private resizeObserver?;
|
|
113
|
-
private resizeFrame?;
|
|
114
115
|
private initializationToken;
|
|
115
116
|
private markerVisibilityToken;
|
|
116
117
|
private cancelMarkerVisibilityPan?;
|
|
@@ -124,6 +125,8 @@ export declare class QMap {
|
|
|
124
125
|
connectedCallback(): void;
|
|
125
126
|
componentDidLoad(): void;
|
|
126
127
|
disconnectedCallback(): void;
|
|
128
|
+
/** Fits the latest valid marker coordinates without changing the configured center or zoom props. */
|
|
129
|
+
fitMarkers(options?: QMapFitMarkersOptions): Promise<boolean>;
|
|
127
130
|
/** Minimally pans to fully expose a marker or its current cluster without changing zoom. */
|
|
128
131
|
ensureMarkerVisible(markerId: QMapMarkerId, occlusions: readonly QMapViewportRect[]): Promise<QMapMarkerVisibilityResult>;
|
|
129
132
|
handleBaseLayerChange(): void;
|
|
@@ -136,6 +139,7 @@ export declare class QMap {
|
|
|
136
139
|
handleViewChange(): void;
|
|
137
140
|
handleZoomLimitsChange(): void;
|
|
138
141
|
handleBoundsChange(): void;
|
|
142
|
+
handleScrollWheelZoomChange(): void;
|
|
139
143
|
handleZoomControlsChange(): void;
|
|
140
144
|
private setCanvas;
|
|
141
145
|
private handleMapClick;
|
|
@@ -163,7 +167,7 @@ export declare class QMap {
|
|
|
163
167
|
private setProviderStatus;
|
|
164
168
|
private reportError;
|
|
165
169
|
private observeResize;
|
|
166
|
-
private
|
|
170
|
+
private resizeMap;
|
|
167
171
|
private destroyMap;
|
|
168
172
|
private renderAttribution;
|
|
169
173
|
private getAttributionUrl;
|