@webquark/browser 1.1.0 → 1.1.1-dev.1
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/dist/cjs/{action.props-B6vl_1p5.js → action.props-CNe2JXR5.js} +1 -1
- package/dist/cjs/{field-B5nxD8Kc.js → field-BRAR56Ex.js} +1 -1
- package/dist/cjs/{form-control-validity-D1ukC0_e.js → form-control-validity-BkilGb3E.js} +3 -3
- package/dist/cjs/{index-BD6Jjssb.js → index-BN-WdOQM.js} +13 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +1 -1
- package/dist/cjs/q-alert.cjs.entry.js +2 -2
- 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_3.cjs.entry.js +907 -0
- package/dist/cjs/q-card.cjs.entry.js +2 -2
- package/dist/cjs/q-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-control-group.cjs.entry.js +3 -3
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q-dialog.cjs.entry.js +3 -3
- package/dist/cjs/q-divider.cjs.entry.js +3 -3
- package/dist/cjs/q-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/q-form.cjs.entry.js +6 -6
- package/dist/cjs/q-grid.cjs.entry.js +3 -3
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-image-comparison.cjs.entry.js +2 -2
- package/dist/cjs/q-inline.cjs.entry.js +3 -3
- package/dist/cjs/q-input_2.cjs.entry.js +6 -6
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +1 -1
- package/dist/cjs/q-media.cjs.entry.js +2 -2
- package/dist/cjs/q-navbar.cjs.entry.js +3 -3
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- 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 +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +23 -23
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +4 -3
- package/dist/cjs/q-slider.cjs.entry.js +2 -2
- 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 +180 -719
- package/dist/cjs/q-syntax-view.cjs.entry.js +65 -0
- package/dist/cjs/q-tabs.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +5 -5
- 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 +6 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/syntax-content-BmSExDiW.js +910 -0
- package/dist/cjs/{tokens-Cd7g-VMz.js → tokens-BMrfol_M.js} +1 -1
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/actions/button/button.css +27 -9
- package/dist/collection/components/communication/alert/alert.css +4 -1
- package/dist/collection/components/data-display/syntax-box/internals/formatters/css.js +4 -0
- package/dist/collection/components/data-display/syntax-box/internals/formatters/formatter.js +20 -0
- package/dist/collection/components/data-display/syntax-box/internals/{formatter.unit.test.js → formatters/formatter.unit.test.js} +38 -11
- package/dist/collection/components/data-display/syntax-box/internals/formatters/html.js +4 -0
- package/dist/collection/components/data-display/syntax-box/internals/formatters/javascript.js +4 -0
- package/dist/collection/components/data-display/syntax-box/internals/{formatter.js → formatters/json.js} +2 -20
- package/dist/collection/components/data-display/syntax-box/internals/formatters/languages.js +15 -0
- package/dist/collection/components/data-display/syntax-box/internals/formatters/util/prettier.js +17 -0
- package/dist/collection/components/data-display/syntax-box/internals/views.js +29 -0
- package/dist/collection/components/data-display/syntax-box/internals/views.unit.test.js +19 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +107 -36
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +179 -637
- package/dist/collection/components/data-display/syntax-box/syntax-content.js +748 -0
- package/dist/collection/components/data-display/syntax-box/syntax-ui.js +8 -0
- package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +2 -2
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +20 -20
- package/dist/collection/components/data-display/syntax-box/test/syntax-views.cmp.test.js +228 -0
- package/dist/collection/components/data-display/syntax-view/syntax-view.js +64 -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 +2 -2
- package/dist/collection/components/inputs/form/form.js +2 -2
- package/dist/collection/components/inputs/form/internals/controls.js +2 -2
- package/dist/collection/components/inputs/input/input.js +3 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
- package/dist/collection/components/inputs/slider/slider.js +1 -1
- package/dist/collection/components/inputs/textarea/textarea.js +2 -2
- package/dist/collection/components/inputs/toggle/toggle.js +3 -3
- package/dist/collection/components/layout/control-group/control-group.js +1 -1
- package/dist/collection/components/layout/divider/divider.js +1 -1
- 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/nav-items.js +2 -2
- package/dist/collection/components/layout/sidepanel/sidepanel.js +3 -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/image-comparison/image-comparison.js +1 -1
- package/dist/collection/components/media/media/media.js +1 -1
- package/dist/collection/components/media/reel/reel.js +23 -23
- package/dist/collection/components/media/reel/test/focus.cmp.test.js +33 -0
- 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/tooltip.js +2 -2
- package/dist/collection/theme/tokens.js +1 -1
- package/dist/collection/utils/form-control-validity.js +3 -3
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CArIPzJU.js → p-B610wOGe.js} +1 -1
- package/dist/components/p-BGlbV43y.js +13 -0
- package/dist/components/{p-BZXIeEKC.js → p-BKWL9zOn.js} +1 -1
- package/dist/components/p-BxxU73QQ.js +1 -0
- package/dist/components/{p-kfrqZyfJ.js → p-CVEQfA-v.js} +1 -1
- package/dist/components/p-CpbWWDiY.js +1 -0
- package/dist/components/{p-BwPMm43W.js → p-D2fczi8m.js} +1 -1
- package/dist/components/{p-BGHNFaaC.js → p-D5vpGqZ9.js} +1 -1
- package/dist/components/p-DQIYo8zC.js +1 -0
- package/dist/components/{p-IwIJb0Mc.js → p-DX6PCIPS.js} +1 -1
- package/dist/components/{p-CpkX9YAW.js → p-DY9D4z7Z.js} +1 -1
- package/dist/{webquark/p-BDsIecIx.js → components/p-DbzjRzhu.js} +1 -1
- package/dist/components/{p-Bp6Xr92S.js → p-RX4DjgmV.js} +1 -1
- package/dist/components/{p-Bc2_QcLn.js → p-Ts5oOvg8.js} +1 -1
- package/dist/components/p-u1Qz6OcP.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-control-group.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-divider.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.js +1 -1
- 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 +2 -2
- package/dist/components/q-slider.js +1 -1
- 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 +1 -13
- package/dist/components/q-syntax-view.d.ts +11 -0
- package/dist/components/q-syntax-view.js +1 -0
- 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-Di_LpF5H.js → action.props-CbSH7c-q.js} +1 -1
- package/dist/esm/{dom-CArIPzJU.js → dom-B610wOGe.js} +1 -1
- package/dist/esm/{field-C4Iilew6.js → field-D5xUxo11.js} +1 -1
- package/dist/esm/{form-control-validity-Bj2RJb2E.js → form-control-validity-BxxU73QQ.js} +3 -3
- package/dist/esm/{form-submit-action-CoEIvDqE.js → form-submit-action-BjjfVWyu.js} +1 -1
- package/dist/esm/{index-DoGM9gsC.js → index-CIMzZPQO.js} +13 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +1 -1
- package/dist/esm/q-alert.entry.js +2 -2
- package/dist/esm/q-avatar.entry.js +2 -2
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_3.entry.js +903 -0
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +2 -2
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-control-group.entry.js +3 -3
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +1 -1
- package/dist/esm/q-dialog.entry.js +4 -4
- package/dist/esm/q-divider.entry.js +3 -3
- package/dist/esm/q-dropdown.entry.js +4 -4
- package/dist/esm/q-form.entry.js +7 -7
- package/dist/esm/q-grid.entry.js +3 -3
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-image-comparison.entry.js +2 -2
- package/dist/esm/q-inline.entry.js +3 -3
- package/dist/esm/q-input_2.entry.js +7 -7
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +1 -1
- package/dist/esm/q-media.entry.js +2 -2
- package/dist/esm/q-navbar.entry.js +3 -3
- package/dist/esm/q-pagination.entry.js +1 -1
- package/dist/esm/q-panel.entry.js +7 -7
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-radio-group.entry.js +4 -4
- package/dist/esm/q-reel.entry.js +24 -24
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +5 -4
- package/dist/esm/q-slider.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/q-syntax-box.entry.js +180 -719
- package/dist/esm/q-syntax-view.entry.js +63 -0
- package/dist/esm/q-tabs.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +5 -5
- 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 +6 -6
- package/dist/esm/q-toolbar.entry.js +4 -4
- package/dist/esm/syntax-content-Cr9kSbmA.js +903 -0
- package/dist/esm/{tokens-BDsIecIx.js → tokens-DbzjRzhu.js} +1 -1
- package/dist/esm/webquark.js +3 -3
- package/dist/formatters/prettier/LICENSE +7 -0
- package/dist/formatters/prettier/THIRD-PARTY-NOTICES.md +7941 -0
- package/dist/formatters/prettier/html-fragment.mjs +1 -0
- package/dist/formatters/prettier/html-fragment.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/angular.mjs +1 -0
- package/dist/formatters/prettier/languages/angular.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/css.mjs +1 -0
- package/dist/formatters/prettier/languages/css.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/flow.mjs +1 -0
- package/dist/formatters/prettier/languages/flow.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/graphql.mjs +1 -0
- package/dist/formatters/prettier/languages/graphql.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/handlebars.mjs +1 -0
- package/dist/formatters/prettier/languages/handlebars.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/html.mjs +1 -0
- package/dist/formatters/prettier/languages/html.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/javascript.mjs +1 -0
- package/dist/formatters/prettier/languages/javascript.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/json-stringify.mjs +1 -0
- package/dist/formatters/prettier/languages/json-stringify.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/json.mjs +1 -0
- package/dist/formatters/prettier/languages/json.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/json5.mjs +1 -0
- package/dist/formatters/prettier/languages/json5.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/jsonc.mjs +1 -0
- package/dist/formatters/prettier/languages/jsonc.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/jsx.mjs +1 -0
- package/dist/formatters/prettier/languages/jsx.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/less.mjs +1 -0
- package/dist/formatters/prettier/languages/less.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/lwc.mjs +1 -0
- package/dist/formatters/prettier/languages/lwc.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/markdown.mjs +1 -0
- package/dist/formatters/prettier/languages/markdown.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/mdx.mjs +1 -0
- package/dist/formatters/prettier/languages/mdx.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/mjml.mjs +1 -0
- package/dist/formatters/prettier/languages/mjml.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/postcss.mjs +1 -0
- package/dist/formatters/prettier/languages/postcss.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/scss.mjs +1 -0
- package/dist/formatters/prettier/languages/scss.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/tsx.mjs +1 -0
- package/dist/formatters/prettier/languages/tsx.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/typescript.mjs +1 -0
- package/dist/formatters/prettier/languages/typescript.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/vue.mjs +1 -0
- package/dist/formatters/prettier/languages/vue.mjs.gz +0 -0
- package/dist/formatters/prettier/languages/yaml.mjs +1 -0
- package/dist/formatters/prettier/languages/yaml.mjs.gz +0 -0
- package/dist/formatters/prettier/manifest.json +87 -0
- package/dist/formatters/prettier/plugins/acorn.mjs +17 -0
- package/dist/formatters/prettier/plugins/acorn.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/angular.mjs +7 -0
- package/dist/formatters/prettier/plugins/angular.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/babel.mjs +16 -0
- package/dist/formatters/prettier/plugins/babel.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/estree.mjs +44 -0
- package/dist/formatters/prettier/plugins/estree.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/flow.mjs +7 -0
- package/dist/formatters/prettier/plugins/flow.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/glimmer.mjs +37 -0
- package/dist/formatters/prettier/plugins/glimmer.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/graphql.mjs +17 -0
- package/dist/formatters/prettier/plugins/graphql.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/html.mjs +25 -0
- package/dist/formatters/prettier/plugins/html.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/markdown.mjs +70 -0
- package/dist/formatters/prettier/plugins/markdown.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/meriyah.mjs +9 -0
- package/dist/formatters/prettier/plugins/meriyah.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/postcss.mjs +62 -0
- package/dist/formatters/prettier/plugins/postcss.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/typescript.mjs +22 -0
- package/dist/formatters/prettier/plugins/typescript.mjs.gz +0 -0
- package/dist/formatters/prettier/plugins/yaml.mjs +150 -0
- package/dist/formatters/prettier/plugins/yaml.mjs.gz +0 -0
- package/dist/formatters/prettier/runtime.d.mts +2 -0
- package/dist/formatters/prettier/runtime.mjs +1 -0
- package/dist/formatters/prettier/runtime.mjs.gz +0 -0
- package/dist/formatters/prettier/standalone.mjs +29 -0
- package/dist/formatters/prettier/standalone.mjs.gz +0 -0
- package/dist/playground/components/theme-designer/token-row.js +45 -74
- package/dist/playground/utils/color.js +14 -25
- package/dist/types/components/data-display/syntax-box/internals/formatters/css.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.d.ts +10 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.types.d.ts +4 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/formatter.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/html.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/javascript.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/json.d.ts +6 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/languages.d.ts +27 -0
- package/dist/types/components/data-display/syntax-box/internals/formatters/util/prettier.d.ts +3 -0
- package/dist/types/components/data-display/syntax-box/internals/syntax.d.ts +1 -1
- package/dist/types/components/data-display/syntax-box/internals/views.d.ts +11 -0
- package/dist/types/components/data-display/syntax-box/internals/views.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +66 -63
- package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +1 -1
- package/dist/types/components/data-display/syntax-box/syntax-content.d.ts +41 -0
- package/dist/types/components/data-display/syntax-box/syntax-ui.d.ts +15 -0
- package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +1 -1
- package/dist/types/components/data-display/syntax-box/test/syntax-views.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-view/syntax-view.d.ts +48 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +1 -0
- package/dist/types/components/media/reel/reel.d.ts +3 -3
- package/dist/types/components/media/reel/test/focus.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +201 -7
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +1 -1
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +1 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +2 -8
- package/dist/types/utils/form-control-validity.d.ts +2 -1
- package/dist/webquark/{p-846dc838.entry.js → p-014c2f4a.entry.js} +1 -1
- package/dist/webquark/{p-0182e114.entry.js → p-0389577c.entry.js} +1 -1
- package/dist/webquark/p-041e17c1.entry.js +1 -0
- package/dist/webquark/p-0479c571.entry.js +1 -0
- package/dist/webquark/{p-17b9713f.entry.js → p-0ebca9be.entry.js} +1 -1
- package/dist/webquark/{p-0a2c52de.entry.js → p-1bf375f7.entry.js} +2 -2
- package/dist/webquark/{p-e2721e77.entry.js → p-20dc3ab5.entry.js} +1 -1
- package/dist/webquark/p-28d3348f.entry.js +1 -0
- package/dist/webquark/p-35c177d3.entry.js +1 -0
- package/dist/webquark/{p-f4d23ffe.entry.js → p-3a60086d.entry.js} +1 -1
- package/dist/webquark/{p-e723a7ae.entry.js → p-3ab798aa.entry.js} +1 -1
- package/dist/webquark/{p-15bad9ef.entry.js → p-3b580baf.entry.js} +1 -1
- package/dist/webquark/{p-4609c362.entry.js → p-3b65f787.entry.js} +1 -1
- package/dist/webquark/p-4bf610f8.entry.js +1 -0
- package/dist/webquark/{p-f51e1098.entry.js → p-4d30227e.entry.js} +1 -1
- package/dist/webquark/p-4de536ae.entry.js +1 -0
- package/dist/webquark/{p-3daafc56.entry.js → p-4e4d70c9.entry.js} +1 -1
- package/dist/webquark/p-4efeb7c9.entry.js +1 -0
- package/dist/webquark/{p-a314bc21.entry.js → p-51b3d71b.entry.js} +1 -1
- package/dist/webquark/p-778b6bbb.entry.js +1 -0
- package/dist/webquark/{p-a66550da.entry.js → p-7da78b2f.entry.js} +1 -1
- package/dist/webquark/{p-fe14f038.entry.js → p-7f8f986b.entry.js} +1 -1
- package/dist/webquark/{p-e0943d41.entry.js → p-8253c742.entry.js} +1 -1
- package/dist/webquark/{p-a2334abe.entry.js → p-9a1ddeb7.entry.js} +1 -1
- package/dist/webquark/{p-CArIPzJU.js → p-B610wOGe.js} +1 -1
- package/dist/webquark/p-BxxU73QQ.js +1 -0
- package/dist/webquark/p-CIMzZPQO.js +3 -0
- package/dist/webquark/p-CfR85WgM.js +13 -0
- package/dist/webquark/{p-DDUED8LT.js → p-D8p28N9s.js} +1 -1
- package/dist/{components/p-BDsIecIx.js → webquark/p-DbzjRzhu.js} +1 -1
- package/dist/webquark/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
- package/dist/webquark/p-a2b1de23.entry.js +1 -0
- package/dist/webquark/{p-dbcf7592.entry.js → p-a55edc17.entry.js} +1 -1
- package/dist/webquark/p-a8808020.entry.js +1 -0
- package/dist/webquark/{p-9a76cd71.entry.js → p-b1084b3c.entry.js} +1 -1
- package/dist/webquark/{p-a2ff1b64.entry.js → p-b6c4dff4.entry.js} +1 -1
- package/dist/webquark/{p-b21ad707.entry.js → p-b962e950.entry.js} +1 -1
- package/dist/webquark/{p-5b584d3c.entry.js → p-bc369cd6.entry.js} +1 -1
- package/dist/webquark/p-c119a8ea.entry.js +1 -0
- package/dist/webquark/{p-85131314.entry.js → p-c6b77e9a.entry.js} +1 -1
- package/dist/webquark/{p-84b350a3.entry.js → p-ca1c03b4.entry.js} +1 -1
- package/dist/webquark/{p-b8fdef4f.entry.js → p-ce436162.entry.js} +1 -1
- package/dist/webquark/{p-86c05afd.entry.js → p-d0a47a7c.entry.js} +1 -1
- package/dist/webquark/{p-222405b8.entry.js → p-e1fbc8fc.entry.js} +1 -1
- package/dist/webquark/{p-44bbe12f.entry.js → p-e32833ce.entry.js} +1 -1
- package/dist/webquark/{p-d86bd51d.entry.js → p-e369a4aa.entry.js} +1 -1
- package/dist/webquark/p-e4430c61.entry.js +1 -0
- package/dist/webquark/{p-aa342e81.entry.js → p-e9c0052b.entry.js} +1 -1
- package/dist/webquark/{p-852e88ae.entry.js → p-f5c4ca18.entry.js} +1 -1
- package/dist/webquark/{p-d4788321.entry.js → p-f6683126.entry.js} +1 -1
- package/dist/webquark/{p-Dnz3WmdX.js → p-ojSDiptZ.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +5 -1
- package/dist/cjs/q-button_2.cjs.entry.js +0 -462
- package/dist/cjs/q-scrollable.cjs.entry.js +0 -449
- package/dist/components/p-Bj2RJb2E.js +0 -1
- package/dist/components/p-D2nxHd1b.js +0 -1
- package/dist/components/p-x3C-wjU9.js +0 -1
- package/dist/esm/q-button_2.entry.js +0 -459
- package/dist/esm/q-scrollable.entry.js +0 -447
- package/dist/types/components/data-display/syntax-box/internals/formatter.d.ts +0 -15
- package/dist/webquark/p-048103e0.entry.js +0 -1
- package/dist/webquark/p-0baf478a.entry.js +0 -1
- package/dist/webquark/p-2eaa3a9f.entry.js +0 -1
- package/dist/webquark/p-65fe9cac.entry.js +0 -1
- package/dist/webquark/p-8c5b2706.entry.js +0 -1
- package/dist/webquark/p-923527f0.entry.js +0 -1
- package/dist/webquark/p-Bj2RJb2E.js +0 -1
- package/dist/webquark/p-DoGM9gsC.js +0 -3
- package/dist/webquark/p-a0d97367.entry.js +0 -1
- package/dist/webquark/p-a16bd8d5.entry.js +0 -13
- package/dist/webquark/p-a3e1096d.entry.js +0 -1
- package/dist/webquark/p-b1c771fb.entry.js +0 -1
- package/dist/webquark/p-b45ca926.entry.js +0 -1
- package/dist/webquark/p-eb800d1e.entry.js +0 -1
- /package/dist/{types/components/data-display/syntax-box/internals/formatter.unit.test.d.ts → collection/components/data-display/syntax-box/internals/formatters/formatter.types.js} +0 -0
|
@@ -193,13 +193,13 @@ export class QRadioGroup {
|
|
|
193
193
|
const hasError = !!displayError;
|
|
194
194
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
195
195
|
const radioName = this.name || this.internalName;
|
|
196
|
-
return (h("div", { key: '
|
|
196
|
+
return (h("div", { key: '5b2d2ba7ba4339d48d10cf3be1e00a9ef9425d2f', style: feedbackStyle(this.reserveFeedback), class: {
|
|
197
197
|
'radio-group': true,
|
|
198
198
|
'is-disabled': this.isDisabled,
|
|
199
199
|
'has-error': hasError,
|
|
200
200
|
[`size-${this.size}`]: true,
|
|
201
201
|
[`orientation-${this.orientation}`]: true,
|
|
202
|
-
} }, h("fieldset", { key: '
|
|
202
|
+
} }, h("fieldset", { key: '601ee48990af01f411a4263ddfcc0cbd2b4911c9', ref: element => (this.fieldsetEl = element), class: "group-fieldset", part: "group", disabled: this.isDisabled, role: "radiogroup", "aria-label": !this.label ? ariaLabel : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-radio-group-error' : undefined }, this.label && h("legend", { key: '7b0b79833d621abb97428f1ac044e8cc724275c3', part: "label", class: { 'q-label-hidden': this.labelHidden } }, this.label), h("div", { key: '5b89d54d24bda8cf7f4af38f5f4d344dc494e3e9', class: "options", part: "options", style: { '--q-radio-group-option-count': String(Math.max(identifiedOptions.length, 1)) } }, identifiedOptions.map(({ item: option, key }) => (h("label", { key: key, class: {
|
|
203
203
|
option: true,
|
|
204
204
|
'is-selected': option.value === this.value,
|
|
205
205
|
'is-disabled': this.isDisabled || option.disabled === true,
|
|
@@ -84,7 +84,7 @@ export class QSlider {
|
|
|
84
84
|
this.qInput.emit(this.value);
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '4a7f04715a2469590f1180acc815f1a1356d57fc', class: "field" }, (this.label || this.showValue) && h("div", { key: '278bd775202cbba4452b1771288135ae14540d23', class: "label-row", part: "label" }, this.label && h("label", { key: 'cd4a6af20b51a30cf542353a99e60de0c09d7a52', htmlFor: "range" }, this.label), this.showValue && h("span", { key: '73f2e522f602f39575b59fb9c9af3fbd45b96079', class: "badge", part: "value", "aria-hidden": "true" }, this.value, this.suffix)), h("input", { key: 'e2bafa9d5604dbde70e243d27463d8f51de450cd', ref: el => this.inputEl = el, id: "range", part: "input", type: "range", min: this.lower, max: this.upper, step: this.increment, value: this.value, disabled: this.fieldDisabled, "aria-label": this.ariaLabel || (!this.label ? 'Value' : undefined), "aria-valuetext": this.suffix ? `${this.value}${this.suffix}` : undefined, onInput: event => this.onValue(event, false), onChange: event => this.onValue(event, true) })));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "q-slider"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -234,12 +234,12 @@ export class QTextarea {
|
|
|
234
234
|
const hasError = !!(this.error || this.errorMessage);
|
|
235
235
|
const displayError = this.error || this.errorMessage;
|
|
236
236
|
const ariaLabel = this.ariaLabel?.trim() || (!this.label && this.placeholder ? this.placeholder : undefined);
|
|
237
|
-
return (h("div", { key: '
|
|
237
|
+
return (h("div", { key: '2dfa875d382d3377f6a4c797095d1ad79c6e7d8f', style: feedbackStyle(this.reserveFeedback), class: {
|
|
238
238
|
'textarea-wrapper': true,
|
|
239
239
|
'is-disabled': this.isDisabled,
|
|
240
240
|
'has-error': hasError,
|
|
241
241
|
[`size-${this.size}`]: true
|
|
242
|
-
} }, h("span", { key: '
|
|
242
|
+
} }, h("span", { key: 'e574e56178594b74ea708bed0938820983fd0ca7', class: "textarea-size-probe", "aria-hidden": "true", ref: el => (this.sizeProbeEl = el) }, "M"), this.label && (h("label", { key: '93230c095b18c8c6f9debcdc770bb682e058345b', class: { 'textarea-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("textarea", { key: '6f4cbb31421179e1d4939152f829abf94c5818ea', ref: (el) => (this.textareaEl = el), id: "q-field", class: {
|
|
243
243
|
'textarea-box': true,
|
|
244
244
|
'resize-manual': this.activeResizeMode === 'manual'
|
|
245
245
|
}, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.isDisabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), fieldFeedback('q-field-error', displayError, this.description)));
|
|
@@ -191,7 +191,7 @@ export class QToggle {
|
|
|
191
191
|
const hasLabel = this.label !== undefined && this.label !== '';
|
|
192
192
|
const showLabel = hasLabel || this.hasDefaultSlot;
|
|
193
193
|
const hasError = !!this.error;
|
|
194
|
-
return (h("div", { key: '
|
|
194
|
+
return (h("div", { key: 'd48179acd7944770d0ae2609ef5cc0cbb552d061', class: "toggle-container", style: feedbackStyle(this.reserveFeedback) }, h("div", { key: '4835a9b82e93ab6c60c78dd2d647f9aaa5cbeb00', ref: el => (this.controlEl = el), class: {
|
|
195
195
|
'toggle-wrapper': true,
|
|
196
196
|
'is-checked': this.checked,
|
|
197
197
|
'is-disabled': this.isDisabled,
|
|
@@ -199,11 +199,11 @@ export class QToggle {
|
|
|
199
199
|
'has-error': hasError,
|
|
200
200
|
[`type-${this.type}`]: true,
|
|
201
201
|
[`size-${this.size}`]: true,
|
|
202
|
-
}, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.isDisabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'toggle-error-msg' : undefined, tabindex: this.isDisabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
202
|
+
}, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.isDisabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'toggle-error-msg' : undefined, tabindex: this.isDisabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '18f5a731fd6200ab4363f68e2ef3971e9d9bb807', class: "toggle-control", part: "control" }, this.type === 'switch' ? (h("div", { class: "switch-track", part: "track" }, h("div", { class: "switch-thumb", part: "thumb" }))) : (h("div", { class: "checkbox-box", part: "box" }, h("span", { class: { 'icon-wrap': true, 'is-hidden': !this.checked }, part: "icon-checked" }, h("slot", { name: "checked-icon", onSlotchange: this.handleSlotChange }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", class: "default-check-icon", "aria-hidden": "true" }, h("polyline", { points: "20 6 9 17 4 12" })))), h("span", { class: { 'icon-wrap': true, 'is-hidden': this.checked }, part: "icon-unchecked" }, h("slot", { name: "unchecked-icon", onSlotchange: this.handleSlotChange }))))), h("span", { key: '52b2da5760ba5b4ace0f3ed33e70897cf1688b13', class: {
|
|
203
203
|
'toggle-label-text': true,
|
|
204
204
|
'q-label-hidden': this.labelHidden,
|
|
205
205
|
'is-hidden': !showLabel
|
|
206
|
-
}, part: "label" }, h("slot", { key: '
|
|
206
|
+
}, part: "label" }, h("slot", { key: 'ab52ad9602e9fd1a8779a9e02d46d99716ae3324', onSlotchange: this.handleSlotChange }, this.label))), fieldFeedback('toggle-error-msg', this.error, this.description)));
|
|
207
207
|
}
|
|
208
208
|
static get is() { return "q-toggle"; }
|
|
209
209
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class QControlGroup {
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '9e724cedca3d8b30f842a8cf0818d1386ec073b8', style: controlScope(this.size) }, h("div", { key: 'a76241b0076ed5d373df7560f8980eef2a3a9efb', part: "group", role: "group", "aria-label": this.ariaLabel || undefined }, h("slot", { key: 'db65f42834a6841c2c33a081a88a4b0c417d9e85', onSlotchange: this.updateChildren }))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "q-control-group"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class QDivider {
|
|
|
13
13
|
/** Hide a purely visual separator from assistive technology. */
|
|
14
14
|
decorative = false;
|
|
15
15
|
render() {
|
|
16
|
-
return h(Host, { key: '
|
|
16
|
+
return h(Host, { key: '10601dff81297193eca4465eb2b8ffc46497b75c', role: this.decorative ? undefined : 'separator', "aria-orientation": this.decorative ? undefined : this.orientation, "aria-hidden": this.decorative ? 'true' : undefined, style: { '--_q-divider-length': this.length === 'auto' ? '100%' : this.length, '--_q-divider-spacing': spaceValue(this.spacing) } }, h("span", { key: '1d2649811fb7ffd7a084b7b846fe99e5919a192f', part: "line", "aria-hidden": "true" }));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "q-divider"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class QGrid {
|
|
|
12
12
|
columnGap;
|
|
13
13
|
render() {
|
|
14
14
|
const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
|
|
15
|
-
return h("div", { key: '
|
|
15
|
+
return h("div", { key: '02759a6a8e89db1caaf9e4bde8c8d06b54195ae7', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: '0af6ddbb0437976cee93ef13166577ab6d6d8ce0' }));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "q-grid"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QInline {
|
|
|
10
10
|
justify = 'start';
|
|
11
11
|
wrap = true;
|
|
12
12
|
render() {
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: '653652578ec7a0fef106648ba0c1beaba88b7c63', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: 'feef94f54211d3d708c8677e4b0ddc5794001485' }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-inline"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -386,7 +386,7 @@ export class QNavbar {
|
|
|
386
386
|
const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
387
387
|
const hasItems = items.length > 0;
|
|
388
388
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
389
|
-
return (h("div", { key: '
|
|
389
|
+
return (h("div", { key: '59659bb209646cafd818599957ae4493cb30c0ef', class: {
|
|
390
390
|
'navbar': true,
|
|
391
391
|
'is-open': this.menuOpen,
|
|
392
392
|
'is-sticky': this.sticky,
|
|
@@ -396,7 +396,7 @@ export class QNavbar {
|
|
|
396
396
|
'is-collapsed': this.collision,
|
|
397
397
|
'has-mobile-nav': this.hasMobileNav,
|
|
398
398
|
'has-mobile-actions': this.hasMobileActions,
|
|
399
|
-
}, part: "navbar" }, h("div", { key: '
|
|
399
|
+
}, part: "navbar" }, h("div", { key: '69ed63bcd1728cc4f2628be40a5b6228f1447f0c', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '58633b4fdd8229cb7bb03b7508fdb1283ba978f3', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '799898ef50eb2c636881469e42543e9f0525f354', name: "nav" })), h("div", { key: '13cfdb500de97c26ffc6ec4907fc502dadd48f82', class: "desktop-actions", part: "actions" }, h("slot", { key: 'dd946e806e0a66491243829ceabe222ba3a3e4b5', name: "actions" })), h("button", { key: '51c787627dbc63aaed6f51c5d646cd80823eeb9e', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: '2ca8b1221ab0afbb19bb6f3fd40ce2934b5605bb' }), h("span", { key: 'f0dd6987e9a50722efc962a6fd15a4417feffd43' }), h("span", { key: '5e88246aab7d23088b844dac120f5b35a45315b3' }))), h("div", { key: 'f3622686d2c8a0f2b9382231dced85e89348be41', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '20ed76cd66577bfe048a9eccc6dd10aaa227fa86', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: 'e91782d485151678011df21b88455d9f3af1808c', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'c256f1322d733812952533a6b8a000d2c69f15ea', class: "mobile-actions" }, h("slot", { key: '8c9e6d6b1862a48f4baa45d74c6fc0516e3ae387', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
400
400
|
}
|
|
401
401
|
static get is() { return "q-navbar"; }
|
|
402
402
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +55,7 @@ export class QPanel {
|
|
|
55
55
|
}
|
|
56
56
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
57
57
|
render() {
|
|
58
|
-
return (h("section", { key: '
|
|
58
|
+
return (h("section", { key: '365312494af4110e703fa92f34160789c8cead62', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
|
|
59
59
|
'panel': true,
|
|
60
60
|
'has-dividers': this.dividers,
|
|
61
61
|
[`variant-${this.variant}`]: true,
|
|
@@ -66,13 +66,13 @@ export class QPanel {
|
|
|
66
66
|
'has-sticky-header': this.stickyHeader,
|
|
67
67
|
'has-sticky-footer': this.stickyFooter,
|
|
68
68
|
'uses-sticky-scroll': this.scrollable && (this.stickyHeader || this.stickyFooter),
|
|
69
|
-
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '
|
|
69
|
+
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '4495225ab9e5a43a4c4747fd824c19d2e3fbffc4', class: {
|
|
70
70
|
'panel-header': true,
|
|
71
71
|
'is-hidden': !this.hasHeader,
|
|
72
|
-
}, part: "header" }, h("slot", { key: '
|
|
72
|
+
}, part: "header" }, h("slot", { key: '6741a40e8c6e1bb06d993ee5f01b1e3be58bad05', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: 'ab4f43f31b50ded8ce8951bc3f87b39463640c23', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: '6fca5686fdf7ed46b89090a150bb8fc5473cf1ab' })), h("div", { key: '62478d85da82ce313b978264f732947d01d03939', class: {
|
|
73
73
|
'panel-footer': true,
|
|
74
74
|
'is-hidden': !this.hasFooter,
|
|
75
|
-
}, part: "footer" }, h("slot", { key: '
|
|
75
|
+
}, part: "footer" }, h("slot", { key: 'cb061be64d404bc14f6df89816520b609da2bb5d', name: "footer", onSlotchange: this.handleSlotChange }))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "q-panel"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -326,13 +326,13 @@ export class QScrollable {
|
|
|
326
326
|
height: this.height,
|
|
327
327
|
maxHeight: this.maxHeight || undefined,
|
|
328
328
|
};
|
|
329
|
-
return (h(Host, { key: '
|
|
329
|
+
return (h(Host, { key: '046bbaa5aeab2799e72aa0113cfbe389ce059a42', class: {
|
|
330
330
|
'is-scrolling': this.isScrolling,
|
|
331
331
|
'is-dragging': this.isDragging,
|
|
332
|
-
}, style: hostStyle }, h("div", { key: '
|
|
332
|
+
}, style: hostStyle }, h("div", { key: '3939986efab2d571d320275f463924e95ecf74e6', class: "q-scrollable-host" }, h("div", { key: '0d7a74e535ec7193bfebad641321063b73956f3c', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '3eb233aa73627d81ca2508a03875b76f0e6757e3', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: 'c8a09ee7523416dbd3722b68e512ed5adf15bd2e' }))), this.mode === 'custom' && (h("div", { key: '861bd997e2791e7cc822158765a176ffe170eac8', class: {
|
|
333
333
|
'q-scrollbar-track': true,
|
|
334
334
|
'is-dragging': this.isDragging,
|
|
335
|
-
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '
|
|
335
|
+
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '11bbea0624721feedf692ca04532d1cc57a967ae', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown, onKeyDown: this.handleThumbKeyDown, role: "scrollbar", "aria-controls": this.viewportId, "aria-orientation": "vertical", "aria-valuemin": "0", "aria-valuemax": this.scrollValueMax, "aria-valuenow": this.scrollValueNow, "aria-label": "Scroll content", tabindex: 0, part: "thumb" }))))));
|
|
336
336
|
}
|
|
337
337
|
static get is() { return "q-scrollable"; }
|
|
338
338
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QSection {
|
|
|
10
10
|
reverse = false;
|
|
11
11
|
columns = 1;
|
|
12
12
|
render() {
|
|
13
|
-
return h(Host, { key: '
|
|
13
|
+
return h(Host, { key: 'ee72cf532c33504dabf5a2f649d7246977fb5bd5' }, h("slot", { key: 'cf32a11855ff31365756afcae43ae94cad30c0be', name: "media" }), h("slot", { key: '5a4068e0629aeffa2629fbb0938ef0f99af339b7' }), h("slot", { key: '01d3e828e3a44fd7633bd65cd319f16ea0eaaf5a', name: "actions" }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-section"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,13 +18,13 @@ export function renderNavItems(options) {
|
|
|
18
18
|
'nav-item--active': isActive,
|
|
19
19
|
'nav-item--parent': hasChildren,
|
|
20
20
|
'nav-item--always-expanded': isAlwaysExpanded,
|
|
21
|
-
}, "data-depth": depth, "data-depth-tone": depthTone, style: { paddingLeft: `${16 + depth * 16}px` }, role: isAlwaysExpanded ? 'heading' : 'button', tabindex: isAlwaysExpanded ? undefined : 0, title: accessibleLabel, "aria-label": accessibleLabel, "aria-level": isAlwaysExpanded ? String(Math.min(depth + 2, 6)) : undefined, "aria-expanded": hasChildren && !isAlwaysExpanded ? String(isExpanded) : undefined, "aria-current": isActive ? 'page' : undefined, onClick: isAlwaysExpanded ? undefined : () => onItemClick(item), onKeyDown: isAlwaysExpanded
|
|
21
|
+
}, "data-depth": depth, "data-depth-tone": depthTone, style: { paddingLeft: `${16 + depth * 16}px` }, role: isAlwaysExpanded ? 'heading' : 'button', tabindex: isAlwaysExpanded ? undefined : 0, title: options.collapsedRail || hasBadge ? accessibleLabel : undefined, "aria-label": accessibleLabel, "aria-level": isAlwaysExpanded ? String(Math.min(depth + 2, 6)) : undefined, "aria-expanded": hasChildren && !isAlwaysExpanded ? String(isExpanded) : undefined, "aria-current": isActive ? 'page' : undefined, onClick: isAlwaysExpanded ? undefined : () => onItemClick(item), onKeyDown: isAlwaysExpanded
|
|
22
22
|
? undefined
|
|
23
23
|
: (e) => {
|
|
24
24
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
25
25
|
e.preventDefault();
|
|
26
26
|
onItemClick(item);
|
|
27
27
|
}
|
|
28
|
-
} }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: "lucide", size: "sm" })), h("span", { class: "nav-item__label" }, item.label), hasBadge && (h("span", { class: "nav-item__badge", part: "item-badge", "aria-hidden": "true" }, count > 99 ? '99+' : count)), hasChildren && !isAlwaysExpanded && (h("q-icon", { class: { 'nav-item__chevron': true, 'nav-item__chevron--open': isExpanded }, definition: ChevronRight, name: "chevron-right", size: "sm" }))), hasChildren && isExpanded && (h("div", { class: "nav-children", role: "group", "aria-label": item.label }, renderNavItems({ items: item.children,
|
|
28
|
+
} }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: "lucide", size: "sm" })), h("span", { class: "nav-item__label", part: hasChildren ? 'group-label' : 'item-label' }, item.label), hasBadge && (h("span", { class: "nav-item__badge", part: "item-badge", "aria-hidden": "true" }, count > 99 ? '99+' : count)), hasChildren && !isAlwaysExpanded && (h("q-icon", { class: { 'nav-item__chevron': true, 'nav-item__chevron--open': isExpanded }, definition: ChevronRight, name: "chevron-right", size: "sm" }))), hasChildren && isExpanded && (h("div", { class: "nav-children", role: "group", "aria-label": item.label }, renderNavItems({ ...options, items: item.children, depth: depth + 1 })))));
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -34,6 +34,8 @@ const COLLAPSE_ICON_DEFINITIONS = {
|
|
|
34
34
|
* @part surface - Stable inner content surface for persistent panels.
|
|
35
35
|
* @part header - Header region.
|
|
36
36
|
* @part body - Body or navigation region.
|
|
37
|
+
* @part group-label - Text of a navigation item with children.
|
|
38
|
+
* @part item-label - Text of a navigation item without children.
|
|
37
39
|
* @part item-badge - Navigation item's optional count badge.
|
|
38
40
|
* @part footer - Footer region.
|
|
39
41
|
* @part collapse-control - Built-in collapse button.
|
|
@@ -377,6 +379,7 @@ export class QSidepanel {
|
|
|
377
379
|
'is-hidden': !showHeader,
|
|
378
380
|
}, part: "header" }, h("span", { "aria-hidden": isHiddenCollapsed ? 'true' : undefined, inert: isHiddenCollapsed ? true : undefined }, h("slot", { name: "header", onSlotchange: this.handleHeaderSlotChange }))), h("div", { ref: el => { this.persistentContent = el; }, class: "nav-body", part: "body", "aria-hidden": isHiddenCollapsed ? 'true' : undefined, inert: isHiddenCollapsed ? true : undefined }, h("div", { class: "nav-surface" }, renderNavItems({
|
|
379
381
|
items: this.normalizedItems,
|
|
382
|
+
collapsedRail: isCollapsed && this.collapseMode === 'rail',
|
|
380
383
|
expandedGroups: this.expandedGroups,
|
|
381
384
|
activeValue: this.value,
|
|
382
385
|
onItemClick: this.handleNavItemClick,
|
|
@@ -8,7 +8,7 @@ export class QStack {
|
|
|
8
8
|
gap = 'lg';
|
|
9
9
|
align = 'stretch';
|
|
10
10
|
render() {
|
|
11
|
-
return h("div", { key: '
|
|
11
|
+
return h("div", { key: '32865ca88ad111b8a917a09e778ae9f79171194d', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: '2658bbb4e3ac5c83377964075a2bdec6a80fc5ee' }));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "q-stack"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,7 +70,7 @@ export class QTabs {
|
|
|
70
70
|
warningContext: 'q-tabs items',
|
|
71
71
|
});
|
|
72
72
|
const activeIndex = this.getActiveIndex(items);
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: '81aa5e7fac6e345376700bc084ec744086d27821', class: {
|
|
74
74
|
'tab-list': true,
|
|
75
75
|
[`size-${this.size}`]: true,
|
|
76
76
|
[`variant-${this.variant}`]: true,
|
|
@@ -24,12 +24,12 @@ export class QToolbar {
|
|
|
24
24
|
/** Accessible label for the toolbar content group. */
|
|
25
25
|
ariaLabel = null;
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'e2b40231a6c02020e04c60cb7b41f2b928ae2a2d', style: { ...controlScope(this.size), '--_q-toolbar-gap': spaceValue(this.gap) } }, h("div", { key: 'b6e1e8e5df74635dd5635f66065db7aa57482a34', class: {
|
|
28
28
|
toolbar: true,
|
|
29
29
|
'is-compact': this.compact,
|
|
30
30
|
'is-transparent': this.transparent,
|
|
31
31
|
'is-bordered': this.bordered,
|
|
32
|
-
}, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: '
|
|
32
|
+
}, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: '6eeb814ac0f5e1143d30a5a94e1561683c6331ef', class: "toolbar-row", part: "row" }, h("div", { key: 'ab3335dd66328a46a3b34fab55f15c5071d52eff', class: "toolbar-start", part: "start" }, h("slot", { key: 'b6294c96eb0e9d7c861a2c6b3d534ebba4243bc3', name: "start" })), h("div", { key: '6261f48792b510d1b0897127377061d94b721b83', class: "toolbar-content", part: "content" }, h("slot", { key: '5a2a1fbccbe1cc4ae6da65c6ff96a4b27700d8d0' })), h("div", { key: '91f7396785ea4d78051a67bb06fcea7e36380b4f', class: "toolbar-end", part: "end" }, h("slot", { key: 'b94cd25a8ef576ce5d9186955c5c2a21649c7f0b', name: "end" }))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "q-toolbar"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,7 +81,7 @@ export class QAvatar {
|
|
|
81
81
|
const preset = typeof this.size === 'string' && ['sm', 'md', 'lg'].includes(this.size)
|
|
82
82
|
? this.size
|
|
83
83
|
: 'custom';
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: 'd79746af518a28982843be37e02fc6e94894ceb4', class: {
|
|
85
85
|
avatar: true,
|
|
86
86
|
[`size-${preset}`]: true,
|
|
87
87
|
[`shape-${this.shape}`]: true,
|
|
@@ -173,7 +173,7 @@ export class QImageComparison {
|
|
|
173
173
|
const afterSrc = this.afterSrc;
|
|
174
174
|
const ratio = this.frameRatio;
|
|
175
175
|
const failed = !beforeSrc || !afterSrc || this.beforeStatus === 'error' || this.afterStatus === 'error' || this.cropUnavailable;
|
|
176
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: '2d05bd7c03b0108f16150102280b705d29276400', part: "frame", class: { frame: true, ready: this.ready }, style: { aspectRatio: String(ratio) }, ref: el => this.frame = el, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerEnd, onPointerCancel: this.handlePointerEnd, onLostPointerCapture: this.handlePointerEnd }, this.renderImage('after', afterSrc, generation, ratio), this.renderImage('before', beforeSrc, generation, ratio), !this.ready && (h("div", { key: 'd72e679ceaea95ba4a28fd66ad072c96e9e27be5', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: 'ce7fd545ea71ac6d69963fc9ba7d1bb760bcff5d', class: "decorations", "aria-hidden": "true" }, h("span", { key: '34d1c59ff46aa2285375c28adea9abadb35704ba', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '236d7d9aa9165cc44e43ebef87c4a88ae3fb1b57', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: 'ee7d7164a99d7609418f70183f80b28c9d858ee9', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: '625466a5da45dd47eb96e89200271af7ec068481', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'a33ba246c25ebcc9b1f0f187d861e71f80a94de2', part: "control", class: "control", ref: el => this.range = el, type: "range", min: "0", max: "100", step: "1", value: this.position, disabled: !this.ready, "aria-label": this.ariaLabel || 'Image comparison', "aria-valuetext": `${Math.round(this.position)}% ${this.beforeLabel || 'Before'} revealed`, onInput: event => this.updatePosition(Number(event.target.value)) })));
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "q-image-comparison"; }
|
|
179
179
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QMedia {
|
|
|
10
10
|
loading = 'lazy';
|
|
11
11
|
alt = '';
|
|
12
12
|
render() {
|
|
13
|
-
return h(Host, { key: '
|
|
13
|
+
return h(Host, { key: 'a3c53eeed8a4b7f93564b14b79a6e860fdbe483c' }, h("slot", { key: '9ce44140bf386ff7105e4e7689c080e11ecac3a4' }), h("slot", { key: '25ba28dcd573c9594118f11ff92aef555e948c20', name: "fallback" }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-media"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { getSlottedElements, handleTabTrap
|
|
3
|
-
const LIGHTBOX_FOCUS_DELAY_MS = 50;
|
|
2
|
+
import { focusFirstElement, getSlottedElements, handleTabTrap } from "../../../utils/dom";
|
|
4
3
|
/**
|
|
5
4
|
* Gallery layout for q-thumbnail children with an optional modal lightbox.
|
|
6
5
|
* @slot - One or more q-thumbnail elements.
|
|
@@ -16,10 +15,22 @@ export class QReel {
|
|
|
16
15
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
17
16
|
activeMedia = null;
|
|
18
17
|
closeButtonRef;
|
|
19
|
-
|
|
18
|
+
openingThumbnail;
|
|
19
|
+
focusAfterRender;
|
|
20
20
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
21
|
+
componentDidRender() {
|
|
22
|
+
const target = this.focusAfterRender;
|
|
23
|
+
this.focusAfterRender = undefined;
|
|
24
|
+
if (target === 'viewer') {
|
|
25
|
+
this.closeButtonRef?.focus();
|
|
26
|
+
}
|
|
27
|
+
else if (target?.isConnected) {
|
|
28
|
+
focusFirstElement(target);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
21
31
|
disconnectedCallback() {
|
|
22
|
-
this.
|
|
32
|
+
this.focusAfterRender = undefined;
|
|
33
|
+
this.openingThumbnail = undefined;
|
|
23
34
|
}
|
|
24
35
|
handleLightboxChange(lightbox) {
|
|
25
36
|
if (!lightbox) {
|
|
@@ -36,9 +47,11 @@ export class QReel {
|
|
|
36
47
|
handleThumbnailMaximize(event) {
|
|
37
48
|
if (!this.lightbox)
|
|
38
49
|
return;
|
|
50
|
+
if (!this.activeMedia)
|
|
51
|
+
this.openingThumbnail = event.detail.triggerEl;
|
|
52
|
+
this.focusAfterRender = 'viewer';
|
|
39
53
|
this.activeMedia = event.detail;
|
|
40
54
|
this.qLightboxOpen.emit();
|
|
41
|
-
this.scheduleFocus(this.closeButtonRef);
|
|
42
55
|
}
|
|
43
56
|
handleGlobalKeyDown(event) {
|
|
44
57
|
if (!this.activeMedia)
|
|
@@ -48,10 +61,10 @@ export class QReel {
|
|
|
48
61
|
closeLightbox = () => {
|
|
49
62
|
if (!this.activeMedia)
|
|
50
63
|
return;
|
|
51
|
-
|
|
64
|
+
this.focusAfterRender = this.openingThumbnail;
|
|
65
|
+
this.openingThumbnail = undefined;
|
|
52
66
|
this.activeMedia = null;
|
|
53
67
|
this.qLightboxClose.emit();
|
|
54
|
-
this.scheduleFocus(originalTrigger);
|
|
55
68
|
};
|
|
56
69
|
handleKeyDown = (e) => {
|
|
57
70
|
this.handleLightboxKeyDown(e);
|
|
@@ -119,6 +132,7 @@ export class QReel {
|
|
|
119
132
|
const thumbnails = this.getThumbnails();
|
|
120
133
|
if (index >= 0 && index < thumbnails.length) {
|
|
121
134
|
const thumb = thumbnails[index];
|
|
135
|
+
this.focusAfterRender = 'viewer';
|
|
122
136
|
this.activeMedia = {
|
|
123
137
|
src: thumb.src,
|
|
124
138
|
label: thumb.label,
|
|
@@ -126,32 +140,18 @@ export class QReel {
|
|
|
126
140
|
alt: thumb.alt,
|
|
127
141
|
triggerEl: thumb,
|
|
128
142
|
};
|
|
129
|
-
this.scheduleFocus(this.closeButtonRef);
|
|
130
143
|
}
|
|
131
144
|
}
|
|
132
|
-
clearFocusTimer() {
|
|
133
|
-
if (this.focusTimer) {
|
|
134
|
-
clearTimeout(this.focusTimer);
|
|
135
|
-
this.focusTimer = undefined;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
scheduleFocus(element) {
|
|
139
|
-
this.clearFocusTimer();
|
|
140
|
-
this.focusTimer = setTimeout(() => {
|
|
141
|
-
this.focusTimer = undefined;
|
|
142
|
-
safeFocus(element);
|
|
143
|
-
}, LIGHTBOX_FOCUS_DELAY_MS);
|
|
144
|
-
}
|
|
145
145
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
146
146
|
render() {
|
|
147
147
|
const thumbnails = this.getThumbnails();
|
|
148
148
|
const currentIdx = this.getActiveIndex(thumbnails);
|
|
149
149
|
const hasPrev = currentIdx > 0;
|
|
150
150
|
const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
return (h("div", { key: 'a342240afb249070ce94a5c9a0af8dca77c55e26', class: {
|
|
152
152
|
'reel-container': true,
|
|
153
153
|
[`layout-${this.layout}`]: true,
|
|
154
|
-
} }, h("slot", { key: '
|
|
154
|
+
} }, h("slot", { key: '5da17a261506c3fe36eb3bdb066103663e4a161c' }), this.activeMedia && (h("div", { key: 'a6d7a15e912ae6b4fe1ac5507e6641817a8931f2', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '71db71b1812b9950bd663b26764a263b4cc6bac6', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: '7eb138f235f950cb984463f5f2b2eda5689da7e3', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '069c46fed3cfada67d7c5655c4344563af838f06', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '2ffcf854b77a902f19963faca1551a0328fde191', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '17ae53c37d4040ec5f61e9bd5c7b14be70120bdf', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: '034ed57b13a29fc1d9de340d7098e82e2c76f4e3', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '522ac09b24c3cda83125d7d5c5ada7e0ad652818', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '639dcdb54a103614324e6b9face85274bae725ca', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: '442e27f5a77d637c7a7818326a86c8dd365226b1', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'c79d346f12dfba409d35be30966ecf38403b94dd', points: "9 18 15 12 9 6" })))), h("div", { key: 'c498b03e5a25a9d995732d29da366c9570bf1b05', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: '2b6a816343a019bb6c89eb1e2f395d066fb9dbca', class: "lightbox-caption" }, this.activeMedia.label)))))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "q-reel"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { afterEach, expect, it, vi } from "vitest";
|
|
2
|
+
import { userEvent } from "vitest/browser";
|
|
3
|
+
// @ts-ignore - the browser tests run after Stencil generates the loader.
|
|
4
|
+
import { defineCustomElements } from "../../../../../../packages/browser/components/dist/loader";
|
|
5
|
+
defineCustomElements();
|
|
6
|
+
afterEach(() => document.body.replaceChildren());
|
|
7
|
+
it('focuses the viewer on first open and restores the opening thumbnail after navigation', async () => {
|
|
8
|
+
const reel = document.createElement('q-reel');
|
|
9
|
+
const thumbnails = ['First image', 'Second image'].map(label => {
|
|
10
|
+
const thumbnail = document.createElement('q-thumbnail');
|
|
11
|
+
thumbnail.label = label;
|
|
12
|
+
thumbnail.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16"/%3E';
|
|
13
|
+
return thumbnail;
|
|
14
|
+
});
|
|
15
|
+
reel.append(...thumbnails);
|
|
16
|
+
document.body.append(reel);
|
|
17
|
+
const opener = await vi.waitFor(() => {
|
|
18
|
+
const trigger = thumbnails[0].shadowRoot?.querySelector('[role="button"]');
|
|
19
|
+
expect(trigger).toBeTruthy();
|
|
20
|
+
return trigger;
|
|
21
|
+
});
|
|
22
|
+
opener.focus();
|
|
23
|
+
await userEvent.keyboard('{Enter}');
|
|
24
|
+
await vi.waitFor(() => expect(reel.shadowRoot?.activeElement?.getAttribute('aria-label')).toBe('Close viewer'));
|
|
25
|
+
await userEvent.keyboard('{ArrowRight}');
|
|
26
|
+
await vi.waitFor(() => expect(reel.shadowRoot?.querySelector('[role="dialog"]')?.getAttribute('aria-label')).toBe('Second image'));
|
|
27
|
+
await userEvent.keyboard('{Escape}');
|
|
28
|
+
await vi.waitFor(() => {
|
|
29
|
+
expect(reel.shadowRoot?.querySelector('[role="dialog"]')).toBeNull();
|
|
30
|
+
expect(document.activeElement).toBe(thumbnails[0]);
|
|
31
|
+
expect(thumbnails[0].shadowRoot?.activeElement).toBe(opener);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -34,11 +34,11 @@ export class QThumbnail {
|
|
|
34
34
|
};
|
|
35
35
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
36
36
|
render() {
|
|
37
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '26ac5609ca43846bc136b6213c132253dd42b40a', class: {
|
|
38
38
|
'thumb-wrapper': true,
|
|
39
39
|
'is-highlighted': this.highlighted,
|
|
40
40
|
'is-video': this.video,
|
|
41
|
-
}, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: '
|
|
41
|
+
}, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: 'd38446fb11427dfcbbbf77ad5f74f05201419df6', class: "thumb-media-container" }, h("img", { key: '598186ea753e247bdd991df4a73e2a8e23328cae', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: '6decdf78e9169ffe48fc21ac326e92948ac1c99a', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: '52f88f8a3ba7c29fee38e10ac8a82e311ee57550', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: '4f1fc8e49bd96ccad99a97a94e756adf78c89701', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: 'e55eb4f9cfd407742ba5d1aced86494ffa1fb87d', class: "thumb-caption" }, h("span", { key: 'a279338834d2f2747d8fa5ddcb14728b3fec67e7', class: "caption-text" }, this.label))), h("slot", { key: '78b2793b70d314f3b4e73371062428597ffabe38' })));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "q-thumbnail"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -198,9 +198,9 @@ export class QDialog {
|
|
|
198
198
|
'dialog-backdrop': true,
|
|
199
199
|
[`effect-${backdropEffect}`]: true,
|
|
200
200
|
};
|
|
201
|
-
return (h("div", { key: '
|
|
201
|
+
return (h("div", { key: '0befd87b753a6e739e9af9121a09a3c2bd479009', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'c5b4f3f93c4db2975c6892209001efc221d6b396', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'a331bc9d80c33e023b030d3c632fba616fb486c4', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '03a15d5f2a3b84be42fd1209ebf8bdc5b132ccb2', class: "dialog-header", part: "header" }, h("slot", { key: 'ef03d4235b44be631fd970261ff56f36f4569a27', name: "header" }, titleText && h("h2", { key: '066ff0be97249563618aba77ef2dc937b524a9b1', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: '2c645e1f6cf629f05dbc968db8e7cb9f09a23733', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '0d0ac5e353a6f576a50e52a9d323079e3b875b1b', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'db1c90be95edcd970aace8858e91ef8188f3f9c7', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'ebaaf1378ee3b9b1352873bcea8640afabd1f4a4', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: 'b1de1e1fcf05feb6276c8fbd2a0395cd99f04bca', class: "dialog-body", part: "body" }, h("slot", { key: 'e40b55efc10544d85eaa125ce0b93f038b9cf431' }, this.message && h("p", { key: '654f5e96b6367123338223966c4385d0be6d9df2', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: 'd3b13289af5636134cc940ab74bf04f87fb2e183', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: '82db83e94e9d933f75cdfde99a0d7f072619b230', name: "footer", onSlotchange: event => {
|
|
202
202
|
this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
|
|
203
|
-
} }, h("div", { key: '
|
|
203
|
+
} }, h("div", { key: 'f4893c09c120757ddde44b85d5745ce106de8e08', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'd14a07895f1a843ac4d89f3c03fbd32d8194aa1c', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '810f5b3be5bb24d311fee5a5709522941ee57abc', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'e63ca58d135ac134af4cbb5b5d3ab787b5dc7f20', class: "spinner-el" }), h("span", { key: '0cfe7541848ec0107fbf940e0b794bbc80e81ebe', class: "btn-label" }, this.confirmLabel)))))))));
|
|
204
204
|
}
|
|
205
205
|
static get is() { return "q-dialog"; }
|
|
206
206
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,9 +101,9 @@ export class QTooltip {
|
|
|
101
101
|
}
|
|
102
102
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
103
103
|
render() {
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: '66d5e67ca034bd9661929295a1cd21261f91fd90', class: {
|
|
105
105
|
'is-visible': this.visible,
|
|
106
|
-
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '
|
|
106
|
+
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '013fc07ba7b829734a7c323c06b3fb22deb25d6b', class: "tooltip-bubble" }, this.content || h("slot", { key: '71234028dbdacbac2b5529f75e5e19e473b0bfe3' }))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "q-tooltip"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -918,7 +918,7 @@ export const componentPresetTokens = {
|
|
|
918
918
|
'--q-table-cell-padding-inline': { compact: '8px', comfortable: '14px' },
|
|
919
919
|
'--q-dropdown-option-padding': { compact: '10px 14px', comfortable: '12px 18px' },
|
|
920
920
|
'--q-tooltip-padding': { compact: '6px 10px', comfortable: '8px 14px' },
|
|
921
|
-
'--q-syntax-padding': { compact: '
|
|
921
|
+
'--q-syntax-padding': { compact: 'var(--q-padding-lg, 1rem)', comfortable: 'var(--q-padding-lg, 1.5rem)' },
|
|
922
922
|
'--q-syntax-compact-padding': { compact: '10px', comfortable: '16px' },
|
|
923
923
|
'--q-syntax-header-padding': { compact: '4px 16px', comfortable: '8px 24px' },
|
|
924
924
|
'--q-sidepanel-nav-font': { compact: '0.875rem', comfortable: '1rem' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function syncNativeControlValidity({ internals, control, disabled, customError, }) {
|
|
1
|
+
export function syncNativeControlValidity({ internals, control, anchor = control, disabled, customError, }) {
|
|
2
2
|
if (typeof internals.setValidity !== 'function' ||
|
|
3
3
|
!control.validity) {
|
|
4
4
|
return;
|
|
@@ -9,14 +9,14 @@ export function syncNativeControlValidity({ internals, control, disabled, custom
|
|
|
9
9
|
}
|
|
10
10
|
const message = customError?.trim();
|
|
11
11
|
if (message) {
|
|
12
|
-
internals.setValidity({ customError: true }, message,
|
|
12
|
+
internals.setValidity({ customError: true }, message, anchor);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
if (control.validity.valid) {
|
|
16
16
|
internals.setValidity({});
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
internals.setValidity(validityFlags(control.validity), control.validationMessage || 'Please enter a valid value.',
|
|
19
|
+
internals.setValidity(validityFlags(control.validity), control.validationMessage || 'Please enter a valid value.', anchor);
|
|
20
20
|
}
|
|
21
21
|
export function syncRequiredBooleanValidity(internals, options) {
|
|
22
22
|
if (typeof internals.setValidity !== 'function') {
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CpbWWDiY.js";export{f as format}from"./p-BJiYCN3i.js";export{c as calculateImageCropGeometry,h as hasPartialImageCrop,i as isImageCropValid}from"./p-BcL0NVv0.js";export{i as identifyItems,r as reconcileByIdentity}from"./p-CGZPmEUB.js";export{Q as Q_MAP_DEFAULT_CLUSTER_GROUP,a as Q_MAP_MARKER_CALLOUT_PLACEMENTS,b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS,c as Q_MAP_MARKER_CALLOUT_VISIBILITIES,d as Q_MAP_MARKER_KINDS,e as Q_MAP_MARKER_RINGS,f as Q_MAP_MARKER_SIZES,g as Q_MAP_MARKER_VARIANTS,h as Q_MAP_RASTER_TILE_LOADING_POLICIES}from"./p-CoIMrUb3.js";export{g as getDataTableCellSlotName,a as getDataTableCellValue,b as getDataTableItemKey,c as getDataTableRowGutterSlotName}from"./p-SzKf4WZF.js";export{c as configureQIcons,r as registerQIcons}from"./p-CpI3m4_T.js";export{t as toast}from"./p-BIIQL66b.js";
|