@webquark/browser 1.1.0-dev.9 → 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-N0urQtdP.js → action.props-CNe2JXR5.js} +1 -1
- package/dist/cjs/{dom-Dk77oFF6.js → dom-BYrqRYna.js} +1 -1
- package/dist/cjs/{field-CsrQGhG-.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-DWXhKHCB.js → index-BN-WdOQM.js} +17 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +120 -18
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-control-group.cjs.entry.js +64 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +4 -4
- package/dist/cjs/q-divider.cjs.entry.js +26 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +320 -104
- package/dist/cjs/q-form.cjs.entry.js +17 -7
- 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 +10 -8
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +7 -7
- package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
- package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +24 -24
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +5 -4
- package/dist/cjs/q-slider.cjs.entry.js +122 -0
- 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 +4 -4
- 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 +8 -6
- 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 +7 -7
- package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/syntax-content-BmSExDiW.js +910 -0
- package/dist/cjs/{tokens-RMRaIOqv.js → tokens-BMrfol_M.js} +4 -1
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -1
- package/dist/collection/components/actions/button/button.css +49 -9
- package/dist/collection/components/actions/button/{button.utils.unit.test.js → test/button.utils.unit.test.js} +1 -1
- package/dist/collection/components/communication/alert/alert.css +4 -1
- package/dist/collection/components/content/carousel/carousel.css +7 -0
- package/dist/collection/components/content/carousel/carousel.js +256 -10
- package/dist/collection/components/content/carousel/internals/autoplay.js +31 -6
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +122 -0
- package/dist/collection/components/data-display/accordion/accordion.js +1 -1
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -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/{utils → components/data-display/syntax-box/internals/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/{utils/formatter.js → components/data-display/syntax-box/internals/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/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.js +1 -1
- 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-box.cmp.test.js +1 -1
- 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.css +148 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +422 -104
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +28 -0
- package/dist/collection/components/inputs/dropdown/test/fit-options.cmp.test.js +120 -0
- package/dist/collection/components/inputs/dropdown/test/multiple.cmp.test.js +124 -0
- package/dist/collection/components/inputs/dropdown/test/search-mode.cmp.test.js +186 -0
- 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/form/internals/field-state.js +6 -1
- package/dist/collection/components/inputs/form/internals/values.js +5 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +14 -8
- package/dist/collection/components/inputs/input/input.css +42 -0
- package/dist/collection/components/inputs/input/input.js +31 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +22 -0
- 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.css +44 -0
- package/dist/collection/components/inputs/slider/slider.js +383 -0
- package/dist/collection/components/inputs/slider/test/slider.cmp.test.js +45 -0
- package/dist/collection/components/inputs/textarea/textarea.css +20 -0
- package/dist/collection/components/inputs/textarea/textarea.js +30 -2
- package/dist/collection/components/inputs/toggle/test/toggle-layout.cmp.test.js +69 -0
- package/dist/collection/components/inputs/toggle/toggle.css +27 -0
- package/dist/collection/components/inputs/toggle/toggle.js +3 -3
- package/dist/collection/components/layout/control-group/control-group.css +108 -0
- package/dist/collection/components/layout/control-group/control-group.js +142 -0
- package/dist/collection/components/layout/control-group/test/control-group.cmp.test.js +163 -0
- package/dist/collection/components/layout/divider/divider.css +40 -0
- package/dist/collection/components/layout/divider/divider.js +121 -0
- package/dist/collection/components/layout/divider/test/divider.cmp.test.js +105 -0
- 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/test/input-width.cmp.test.js +117 -0
- package/dist/collection/theme/test/presets.unit.test.js +58 -0
- package/dist/collection/theme/tokens.js +4 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/form-control-validity.js +3 -3
- package/dist/components/index.js +1 -1
- package/dist/components/p-B610wOGe.js +1 -0
- package/dist/components/p-BGlbV43y.js +13 -0
- package/dist/components/{p-Dfp_If-_.js → p-BKWL9zOn.js} +1 -1
- package/dist/components/p-BxxU73QQ.js +1 -0
- package/dist/components/{p-Cg0Mv7Vb.js → p-CVEQfA-v.js} +1 -1
- package/dist/components/p-CpbWWDiY.js +1 -0
- package/dist/{webquark/p-Dhsn99q4.js → components/p-D2fczi8m.js} +1 -1
- package/dist/components/{p-6PPZ2sIO.js → p-D5vpGqZ9.js} +1 -1
- package/dist/components/p-DQIYo8zC.js +1 -0
- package/dist/components/p-DX6PCIPS.js +1 -0
- package/dist/components/p-DY9D4z7Z.js +1 -0
- package/dist/components/p-DbzjRzhu.js +1 -0
- package/dist/components/{p-DQhiqYeq.js → p-DkanItP3.js} +1 -1
- package/dist/components/{p-CKuPOxKN.js → p-RX4DjgmV.js} +1 -1
- package/dist/components/{p-DlIn_ZWk.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.d.ts +11 -0
- package/dist/components/q-control-group.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/q-divider.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/q-slider.js +1 -0
- 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-CpnGza8z.js → action.props-CbSH7c-q.js} +1 -1
- package/dist/esm/{dom-ByfrUWx1.js → dom-B610wOGe.js} +2 -2
- package/dist/esm/{field-zfD6OQ02.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-B5ElFlHv.js → index-CIMzZPQO.js} +16 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +2 -2
- 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 +120 -18
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-control-group.entry.js +62 -0
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +4 -4
- package/dist/esm/q-divider.entry.js +24 -0
- package/dist/esm/q-dropdown.entry.js +320 -104
- package/dist/esm/q-form.entry.js +18 -8
- 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 +10 -8
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/q-panel.entry.js +7 -7
- package/dist/esm/q-quantity-selector.entry.js +6 -6
- 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 +120 -0
- 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 +8 -6
- 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 +7 -7
- package/dist/esm/q-toolbar.entry.js +4 -4
- package/dist/esm/syntax-content-Cr9kSbmA.js +903 -0
- package/dist/esm/{tokens-B4Mg1xEw.js → tokens-DbzjRzhu.js} +4 -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/dimension-tokens.js +9 -0
- package/dist/playground/components/theme-designer/token-row.js +60 -0
- package/dist/playground/dom-factory.js +76 -0
- package/dist/playground/utils/color.js +15 -0
- package/dist/playground/utils/dom.js +38 -0
- package/dist/playground/utils/index.js +2 -0
- package/dist/types/components/content/carousel/carousel.d.ts +23 -2
- package/dist/types/components/content/carousel/carousel.types.d.ts +6 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +5 -0
- 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/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/{utils → components/data-display/syntax-box/internals}/syntax.d.ts +1 -1
- package/dist/types/components/data-display/syntax-box/internals/syntax.unit.test.d.ts +1 -0
- 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/inputs/dropdown/dropdown.d.ts +45 -1
- package/dist/types/components/inputs/dropdown/test/fit-options.cmp.test.d.ts +3 -0
- package/dist/types/components/inputs/dropdown/test/multiple.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +1 -1
- package/dist/types/components/inputs/input/input.d.ts +3 -0
- package/dist/types/components/inputs/slider/slider.d.ts +45 -0
- package/dist/types/components/inputs/slider/test/slider.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +3 -1
- package/dist/types/components/inputs/toggle/test/toggle-layout.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/control-group/control-group.d.ts +20 -0
- package/dist/types/components/layout/control-group/test/control-group.cmp.test.d.ts +7 -0
- package/dist/types/components/layout/divider/divider.d.ts +15 -0
- package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -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 +591 -13
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/dimension-tokens.d.ts +3 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +14 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +13 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +2 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/dom.d.ts +15 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
- package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
- package/dist/types/theme/tokens.d.ts +9 -0
- package/dist/types/utils/form-control-validity.d.ts +2 -1
- package/dist/types/utils/form-field-adapter.d.ts +3 -3
- package/dist/webquark/p-014c2f4a.entry.js +1 -0
- package/dist/webquark/p-0389577c.entry.js +1 -0
- package/dist/webquark/p-041e17c1.entry.js +1 -0
- package/dist/webquark/p-0479c571.entry.js +1 -0
- package/dist/webquark/p-0ebca9be.entry.js +1 -0
- package/dist/webquark/{p-fe8c634a.entry.js → p-1bf375f7.entry.js} +2 -2
- package/dist/webquark/{p-6bfffa79.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-99d785ca.entry.js → p-3a60086d.entry.js} +1 -1
- package/dist/webquark/{p-3bc4629c.entry.js → p-3ab798aa.entry.js} +1 -1
- package/dist/webquark/{p-9e78b796.entry.js → p-3b580baf.entry.js} +1 -1
- package/dist/webquark/{p-888e46a8.entry.js → p-3b65f787.entry.js} +1 -1
- package/dist/webquark/p-4bf610f8.entry.js +1 -0
- package/dist/webquark/{p-4d61b70d.entry.js → p-4d30227e.entry.js} +1 -1
- package/dist/webquark/{p-70d9ffde.entry.js → p-4de536ae.entry.js} +1 -1
- package/dist/webquark/{p-90b0858c.entry.js → p-4e4d70c9.entry.js} +1 -1
- package/dist/webquark/p-4efeb7c9.entry.js +1 -0
- package/dist/webquark/{p-dd115868.entry.js → p-51b3d71b.entry.js} +1 -1
- package/dist/webquark/p-778b6bbb.entry.js +1 -0
- package/dist/webquark/{p-f63b7214.entry.js → p-7da78b2f.entry.js} +1 -1
- package/dist/webquark/{p-9ff7e5a4.entry.js → p-7f8f986b.entry.js} +1 -1
- package/dist/webquark/p-8253c742.entry.js +1 -0
- package/dist/webquark/{p-059daa8a.entry.js → p-9a1ddeb7.entry.js} +1 -1
- package/dist/webquark/p-B610wOGe.js +1 -0
- 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/{components/p-BofcK-7Z.js → webquark/p-D8p28N9s.js} +1 -1
- package/dist/webquark/p-DbzjRzhu.js +1 -0
- package/dist/webquark/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
- package/dist/webquark/{p-d0fbd2b1.entry.js → p-a2b1de23.entry.js} +1 -1
- package/dist/webquark/{p-48fb5228.entry.js → p-a55edc17.entry.js} +1 -1
- package/dist/webquark/p-a8808020.entry.js +1 -0
- package/dist/webquark/{p-f4f97e74.entry.js → p-b1084b3c.entry.js} +1 -1
- package/dist/webquark/{p-36118d90.entry.js → p-b6c4dff4.entry.js} +1 -1
- package/dist/webquark/p-b962e950.entry.js +1 -0
- package/dist/webquark/{p-023f8437.entry.js → p-bc369cd6.entry.js} +1 -1
- package/dist/webquark/p-c119a8ea.entry.js +1 -0
- package/dist/webquark/p-c6b77e9a.entry.js +1 -0
- package/dist/webquark/{p-030ecde3.entry.js → p-ca1c03b4.entry.js} +1 -1
- package/dist/webquark/{p-8ece2c62.entry.js → p-ce436162.entry.js} +1 -1
- package/dist/webquark/{p-0aa74ad6.entry.js → p-d0a47a7c.entry.js} +1 -1
- package/dist/webquark/{p-fec6fe0a.entry.js → p-e1fbc8fc.entry.js} +1 -1
- package/dist/webquark/{p-09cca7b9.entry.js → p-e32833ce.entry.js} +1 -1
- package/dist/webquark/p-e369a4aa.entry.js +1 -0
- package/dist/webquark/p-e4430c61.entry.js +1 -0
- package/dist/webquark/{p-f9ad63ff.entry.js → p-e9c0052b.entry.js} +1 -1
- package/dist/webquark/{p-f1bac94c.entry.js → p-f5c4ca18.entry.js} +1 -1
- package/dist/webquark/{p-64096386.entry.js → p-f6683126.entry.js} +1 -1
- package/dist/webquark/{p-DWO-pleQ.js → p-ojSDiptZ.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +6 -2
- 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-B4Mg1xEw.js +0 -1
- package/dist/components/p-BH4gQWub.js +0 -1
- package/dist/components/p-Bj2RJb2E.js +0 -1
- package/dist/components/p-ByfrUWx1.js +0 -1
- package/dist/components/p-CN1ut2Lb.js +0 -1
- package/dist/components/p-ye27qtRo.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/utils/formatter.d.ts +0 -15
- package/dist/webquark/p-04c8cb9e.entry.js +0 -1
- package/dist/webquark/p-0ae43d6c.entry.js +0 -1
- package/dist/webquark/p-0c3aac3f.entry.js +0 -1
- package/dist/webquark/p-144ef339.entry.js +0 -1
- package/dist/webquark/p-296fbdb1.entry.js +0 -1
- package/dist/webquark/p-5f232b44.entry.js +0 -13
- package/dist/webquark/p-6e28cfe2.entry.js +0 -1
- package/dist/webquark/p-91fff6b6.entry.js +0 -1
- package/dist/webquark/p-923dac41.entry.js +0 -1
- package/dist/webquark/p-97a89cae.entry.js +0 -1
- package/dist/webquark/p-B4Mg1xEw.js +0 -1
- package/dist/webquark/p-B5ElFlHv.js +0 -3
- package/dist/webquark/p-Bj2RJb2E.js +0 -1
- package/dist/webquark/p-ByfrUWx1.js +0 -1
- package/dist/webquark/p-c523ec6f.entry.js +0 -1
- package/dist/webquark/p-d0253d64.entry.js +0 -1
- package/dist/webquark/p-f98f9439.entry.js +0 -1
- package/dist/webquark/p-fe200f68.entry.js +0 -1
- /package/dist/{types/components/actions/button/button.utils.unit.test.d.ts → collection/components/data-display/syntax-box/internals/formatters/formatter.types.js} +0 -0
- /package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.js +0 -0
- /package/dist/types/{utils/formatter.unit.test.d.ts → components/actions/button/test/button.utils.unit.test.d.ts} +0 -0
- /package/dist/types/{utils/syntax.unit.test.d.ts → components/data-display/syntax-box/internals/formatters/formatter.unit.test.d.ts} +0 -0
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DWXhKHCB.js');
|
|
4
|
-
var formSubmitAction = require('./form-submit-action-C6c4aq6C.js');
|
|
5
|
-
var formFieldState = require('./form-field-state-P63wN30v.js');
|
|
6
|
-
var action_props = require('./action.props-N0urQtdP.js');
|
|
7
|
-
|
|
8
|
-
const buttonCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, calc(var(--_q-context-size-sm, 0) * var(--q-control-height-sm, 1.75rem) + var(--_q-context-size-md, 1) * var(--q-control-height-md, 2.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-height-lg, 2.75rem)));--_q-control-font:var(--q-context-control-font, calc(var(--_q-context-size-sm, 0) * var(--q-control-font-sm, 0.75rem) + var(--_q-context-size-md, 1) * var(--q-control-font-md, 0.875rem) + var(--_q-context-size-lg, 0) * var(--q-control-font-lg, 1rem)));--_q-control-line:var(--q-context-control-line, calc(var(--_q-context-size-sm, 0) * var(--q-control-line-sm, 1rem) + var(--_q-context-size-md, 1) * var(--q-control-line-md, 1.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-line-lg, 1.5rem)));--_q-control-padding:var(--q-context-control-padding, calc(var(--_q-context-size-sm, 0) * var(--q-control-padding-sm, 0.5rem) + var(--_q-context-size-md, 1) * var(--q-control-padding-md, 0.75rem) + var(--_q-context-size-lg, 0) * var(--q-control-padding-lg, 1rem)));--_q-control-icon:var(--q-context-control-icon, calc(var(--_q-context-size-sm, 0) * var(--q-control-icon-sm, 0.875rem) + var(--_q-context-size-md, 1) * var(--q-control-icon-md, 1rem) + var(--_q-context-size-lg, 0) * var(--q-control-icon-lg, 1.25rem)));--_q-control-radius:var(--q-context-control-radius, calc(var(--_q-context-size-sm, 0) * var(--q-control-radius-sm, 0.34375rem) + var(--_q-context-size-md, 1) * var(--q-control-radius-md, 0.4375rem) + var(--_q-context-size-lg, 0) * var(--q-control-radius-lg, 0.53125rem)))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{display:inline-block;box-sizing:border-box}:host([expand]){display:block;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;position:relative;text-decoration:none;border-radius:var(--q-btn-radius, var(--_q-control-radius));font-family:var(--q-font-family, inherit);font-weight:var(--q-btn-font-weight, var(--q-font-weight-bold, 600));border:1px solid transparent;line-height:1.2;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;-webkit-user-select:none;transition:var(--q-btn-transition, all 150ms cubic-bezier(0.4, 0, 0.2, 1))}.btn.is-expanded{width:100%}.size-sm{border-radius:var(--q-btn-radius-sm, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-sm, 6px 10px);font-size:var(--q-font-size-sm, 0.7rem)}.size-md{border-radius:var(--q-btn-radius-md, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-md, 5px 8px);font-size:var(--q-btn-font-size, var(--q-font-size-base, 0.9rem))}.size-lg{border-radius:var(--q-btn-radius-lg, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-lg, 9px 16px);font-size:var(--q-font-size-lg, 1rem)}.btn.is-icon-only.size-sm{padding:var(--q-btn-icon-padding-sm, 4px);--_q-btn-icon-padding:var(--q-btn-icon-padding-sm, 0px)}.btn.is-icon-only.size-md{padding:var(--q-btn-icon-padding-md, 6px);--_q-btn-icon-padding:var(--q-btn-icon-padding-md, 0px)}.btn.is-icon-only.size-lg{padding:var(--q-btn-icon-padding-lg, 9px);--_q-btn-icon-padding:var(--q-btn-icon-padding-lg, 0px)}.btn.shape-pill{border-radius:999px}.btn.shape-circle{width:var(--q-btn-circle-size, 120px);height:var(--q-btn-circle-size, 120px);padding:var(--q-btn-circle-padding, 12px);border-radius:50%}.btn.layout-stacked .btn-content-wrap{flex-direction:column;gap:var(--q-btn-stacked-gap, 8px)}.variant-primary{background:var(--q-color-primary, #60a5fa);color:var(--q-fg-base, #f9fafb)}.variant-primary:hover:not(.is-disabled){background:var(--q-color-primary-hover, #93c5fd)}.variant-secondary{background:var(--q-color-secondary, #4b5563);color:#ffffff}.variant-secondary:hover:not(.is-disabled){opacity:0.9}.variant-success{background:var(--q-color-success, #34d399);color:var(--q-bg-base, #111827)}.variant-success:hover:not(.is-disabled){opacity:0.9}.variant-danger{background:var(--q-color-danger, #f87171);color:var(--q-bg-base, #111827)}.variant-danger:hover:not(.is-disabled){opacity:0.9}.variant-ghost{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.variant-ghost:hover:not(.is-disabled){background:rgba(249, 250, 251, 0.08);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.variant-text{background:transparent;color:var(--q-fg-base, #f9fafb)}.variant-text:hover:not(.is-disabled){color:var(--q-color-primary, #60a5fa);background:rgba(249, 250, 251, 0.05);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 5%, transparent))}.btn:active:not(.is-disabled){transform:var(--q-btn-active-transform, scale(0.97))}.btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.is-disabled{opacity:0.5;cursor:not-allowed}.btn-spinner{position:absolute;width:18px;height:18px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:btn-spin 0.6s linear infinite}.btn-content-wrap{display:inline-flex;align-items:center;gap:var(--q-btn-content-gap, 8px)}.size-sm .btn-content-wrap{gap:var(--q-btn-content-gap-sm, var(--q-btn-content-gap, 4px))}.btn.is-icon-only .btn-label:not(.has-default-slot-icon){display:none}@keyframes btn-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.btn:not(.shape-circle){min-height:var(--q-btn-height, var(--_q-control-height));padding:var(--q-btn-padding, var(--_q-btn-padding, 0 var(--_q-control-padding)));font-size:var(--q-btn-font-size, var(--_q-control-font));line-height:var(--_q-control-line)}.btn.is-icon-only:not(.shape-circle){min-width:var(--q-btn-height, var(--_q-control-height));padding:var(--_q-btn-icon-padding, 0px)}.btn-content-wrap{gap:var(--q-btn-content-gap, var(--q-space-sm, .5rem))}.size-sm{--_q-btn-padding:var(--q-btn-padding-sm, 0 var(--_q-control-padding))}.size-md{--_q-btn-padding:var(--q-btn-padding-md, 0 var(--_q-control-padding))}.size-lg{--_q-btn-padding:var(--q-btn-padding-lg, 0 var(--_q-control-padding))}.btn{max-width:100%}.btn-content-wrap,.btn-label{min-width:0;overflow-wrap:anywhere}`;
|
|
9
|
-
|
|
10
|
-
const QButton = class extends index.Mixin(action_props.withActionProps) {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
super();
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.qClick = index.createEvent(this, "qClick");
|
|
15
|
-
this.qFocus = index.createEvent(this, "qFocus");
|
|
16
|
-
this.qBlur = index.createEvent(this, "qBlur");
|
|
17
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
18
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
22
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
get el() { return index.getElement(this); }
|
|
26
|
-
internals;
|
|
27
|
-
/** Lucide icon rendered before the label. Use icon slots for custom content. */
|
|
28
|
-
icon;
|
|
29
|
-
/** Auto-detected from slotted icon content when omitted. */
|
|
30
|
-
iconOnly;
|
|
31
|
-
/** Required when an icon-only button has no accessible text. */
|
|
32
|
-
ariaLabel = null;
|
|
33
|
-
/** Successful submission value when this button is the submitter. */
|
|
34
|
-
value = '';
|
|
35
|
-
variant = 'primary';
|
|
36
|
-
size = 'inherit';
|
|
37
|
-
/** The `circle` shape uses a fixed-size circular presentation. */
|
|
38
|
-
shape = 'default';
|
|
39
|
-
layout = 'inline';
|
|
40
|
-
expand = false;
|
|
41
|
-
/** Shows a spinner and prevents interaction while loading. */
|
|
42
|
-
loading = false;
|
|
43
|
-
target;
|
|
44
|
-
/** Applied to the native `<button>` when `href` is unset. */
|
|
45
|
-
type = 'button';
|
|
46
|
-
/** Successful submission name when this button is the submitter. */
|
|
47
|
-
name;
|
|
48
|
-
/** Explicit native form ID in this tree; unresolved IDs do not fall back. */
|
|
49
|
-
form;
|
|
50
|
-
/** Overrides the owning form's action for this submission. */
|
|
51
|
-
formAction;
|
|
52
|
-
/** Overrides the owning form's method for this submission. */
|
|
53
|
-
formMethod;
|
|
54
|
-
/** Overrides the owning form's encoding for this submission. */
|
|
55
|
-
formEnctype;
|
|
56
|
-
/** Overrides the owning form's browsing context for this submission. */
|
|
57
|
-
formTarget;
|
|
58
|
-
/** Skips validation for this submitter while retaining cancellation and collection. */
|
|
59
|
-
formNoValidate = false;
|
|
60
|
-
/** Emitted on activation unless disabled or loading. */
|
|
61
|
-
qClick;
|
|
62
|
-
qFocus;
|
|
63
|
-
qBlur;
|
|
64
|
-
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
65
|
-
autoIconOnly = false;
|
|
66
|
-
defaultSlotIcon = false;
|
|
67
|
-
hasWarnedMissingAccessibleName = false;
|
|
68
|
-
disabledState = false;
|
|
69
|
-
get isDisabled() {
|
|
70
|
-
return formFieldState.isFieldDisabled(this.el, this.disabled);
|
|
71
|
-
}
|
|
72
|
-
syncButtonState() {
|
|
73
|
-
const disabled = formFieldState.syncFieldHost(this.el, this.disabled, this.name);
|
|
74
|
-
formFieldState.syncNativeAttribute(this.el, 'form', this.form);
|
|
75
|
-
formSubmitAction.registerSubmitOwner(this.el, () => this.internals?.form ?? null);
|
|
76
|
-
if (this.disabledState !== disabled)
|
|
77
|
-
this.disabledState = disabled;
|
|
78
|
-
const button = this.el.shadowRoot?.querySelector('button');
|
|
79
|
-
if (button)
|
|
80
|
-
button.disabled = disabled || this.loading;
|
|
81
|
-
const anchor = this.el.shadowRoot?.querySelector('a');
|
|
82
|
-
if (anchor) {
|
|
83
|
-
const unavailable = disabled || this.loading;
|
|
84
|
-
anchor.setAttribute('aria-disabled', String(unavailable));
|
|
85
|
-
if (unavailable)
|
|
86
|
-
anchor.tabIndex = -1;
|
|
87
|
-
else
|
|
88
|
-
anchor.removeAttribute('tabindex');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
formDisabledCallback() {
|
|
92
|
-
this.syncButtonState();
|
|
93
|
-
}
|
|
94
|
-
componentDidRender() { this.syncButtonState(); }
|
|
95
|
-
watchDisabled() {
|
|
96
|
-
this.syncButtonState();
|
|
97
|
-
}
|
|
98
|
-
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
99
|
-
componentWillLoad() {
|
|
100
|
-
this.checkIconOnly();
|
|
101
|
-
}
|
|
102
|
-
componentDidLoad() {
|
|
103
|
-
this.warnForMissingAccessibleName();
|
|
104
|
-
}
|
|
105
|
-
handleIconAccessibilityChange() {
|
|
106
|
-
this.checkIconOnly();
|
|
107
|
-
this.warnForMissingAccessibleName();
|
|
108
|
-
}
|
|
109
|
-
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
110
|
-
checkIconOnly = () => {
|
|
111
|
-
this.defaultSlotIcon = this.hasDefaultSlotIcon();
|
|
112
|
-
const text = this.getVisibleText();
|
|
113
|
-
const hasIcon = this.hasShortcutIcon() ||
|
|
114
|
-
this.el.querySelector('q-icon') !== null ||
|
|
115
|
-
this.el.querySelector('[slot="icon-left"]') !== null ||
|
|
116
|
-
this.el.querySelector('[slot="icon-right"]') !== null;
|
|
117
|
-
this.autoIconOnly = text === '' && hasIcon;
|
|
118
|
-
};
|
|
119
|
-
handleSlotChange = () => {
|
|
120
|
-
this.checkIconOnly();
|
|
121
|
-
this.warnForMissingAccessibleName();
|
|
122
|
-
};
|
|
123
|
-
getVisibleText() {
|
|
124
|
-
return this.getDefaultSlotNodes()
|
|
125
|
-
.map(node => node.textContent || '')
|
|
126
|
-
.join('')
|
|
127
|
-
.trim();
|
|
128
|
-
}
|
|
129
|
-
getDefaultSlotNodes() {
|
|
130
|
-
return Array.from(this.el.childNodes).filter(node => node.nodeType === 3 || (node.nodeType === 1 && !node.slot));
|
|
131
|
-
}
|
|
132
|
-
getShortcutIcon() {
|
|
133
|
-
const icon = this.icon?.trim();
|
|
134
|
-
return icon || undefined;
|
|
135
|
-
}
|
|
136
|
-
hasShortcutIcon() {
|
|
137
|
-
return this.getShortcutIcon() !== undefined;
|
|
138
|
-
}
|
|
139
|
-
hasIconContent() {
|
|
140
|
-
return this.hasShortcutIcon() ||
|
|
141
|
-
this.el.querySelector('q-icon') !== null ||
|
|
142
|
-
this.el.querySelector('[slot="icon-left"]') !== null ||
|
|
143
|
-
this.el.querySelector('[slot="icon-right"]') !== null;
|
|
144
|
-
}
|
|
145
|
-
hasDefaultSlotIcon() {
|
|
146
|
-
return this.getDefaultSlotNodes().some(node => node.nodeType === 1 && (node.matches('q-icon') || node.querySelector('q-icon') !== null));
|
|
147
|
-
}
|
|
148
|
-
warnForMissingAccessibleName() {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
handleClick = (e) => {
|
|
152
|
-
if (this.isDisabled || this.loading) {
|
|
153
|
-
e.preventDefault();
|
|
154
|
-
e.stopPropagation();
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const emitted = this.qClick.emit(e);
|
|
158
|
-
if (this.type === 'submit' && !this.href)
|
|
159
|
-
formSubmitAction.scheduleSubmitAction(this.el, e, emitted);
|
|
160
|
-
if (this.type === 'reset' && !this.href)
|
|
161
|
-
formSubmitAction.scheduleResetAction(this.el, e, emitted, () => this.internals?.form ?? null);
|
|
162
|
-
};
|
|
163
|
-
handleFocus = (ev) => {
|
|
164
|
-
this.qFocus.emit(ev);
|
|
165
|
-
};
|
|
166
|
-
handleBlur = (ev) => {
|
|
167
|
-
this.qBlur.emit(ev);
|
|
168
|
-
};
|
|
169
|
-
getResolvedRel() {
|
|
170
|
-
if (this.rel)
|
|
171
|
-
return this.rel;
|
|
172
|
-
return this.target === '_blank' ? 'noopener noreferrer' : undefined;
|
|
173
|
-
}
|
|
174
|
-
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
175
|
-
render() {
|
|
176
|
-
const isLink = this.href !== undefined && this.href !== null && this.href !== '';
|
|
177
|
-
const isBtnDisabled = this.isDisabled || this.loading;
|
|
178
|
-
const isIcon = this.iconOnly !== undefined ? this.iconOnly : this.autoIconOnly;
|
|
179
|
-
const shortcutIcon = this.getShortcutIcon();
|
|
180
|
-
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
181
|
-
const classes = {
|
|
182
|
-
'btn': true,
|
|
183
|
-
[`variant-${this.variant}`]: true,
|
|
184
|
-
[`size-${this.size}`]: true,
|
|
185
|
-
[`shape-${this.shape}`]: true,
|
|
186
|
-
[`layout-${this.layout}`]: true,
|
|
187
|
-
'is-disabled': isBtnDisabled,
|
|
188
|
-
'is-expanded': this.expand,
|
|
189
|
-
'is-icon-only': isIcon,
|
|
190
|
-
};
|
|
191
|
-
const innerContent = [
|
|
192
|
-
this.loading && index.h("div", { class: "btn-spinner", part: "spinner" }),
|
|
193
|
-
index.h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, index.h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && index.h("q-icon", { name: shortcutIcon, size: "var(--_q-control-icon)", part: "icon" })), index.h("span", { class: { 'btn-label': true, 'has-default-slot-icon': this.defaultSlotIcon } }, index.h("slot", { onSlotchange: this.handleSlotChange })), index.h("slot", { name: "icon-right", onSlotchange: this.handleSlotChange }))
|
|
194
|
-
];
|
|
195
|
-
if (isLink) {
|
|
196
|
-
return (index.h("a", { class: classes, part: "button", href: this.href, target: this.target, rel: this.getResolvedRel(), download: this.download, tabindex: isBtnDisabled ? -1 : undefined, "aria-disabled": isBtnDisabled ? 'true' : 'false', "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
197
|
-
}
|
|
198
|
-
return (index.h("button", { class: classes, part: "button", type: this.type, disabled: isBtnDisabled, "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
199
|
-
}
|
|
200
|
-
static get delegatesFocus() { return true; }
|
|
201
|
-
static get formAssociated() { return true; }
|
|
202
|
-
static get watchers() { return {
|
|
203
|
-
"disabled": [{
|
|
204
|
-
"watchDisabled": 0
|
|
205
|
-
}],
|
|
206
|
-
"loading": [{
|
|
207
|
-
"watchDisabled": 0
|
|
208
|
-
}],
|
|
209
|
-
"name": [{
|
|
210
|
-
"watchDisabled": 0
|
|
211
|
-
}],
|
|
212
|
-
"form": [{
|
|
213
|
-
"watchDisabled": 0
|
|
214
|
-
}],
|
|
215
|
-
"icon": [{
|
|
216
|
-
"handleIconAccessibilityChange": 0
|
|
217
|
-
}],
|
|
218
|
-
"iconOnly": [{
|
|
219
|
-
"handleIconAccessibilityChange": 0
|
|
220
|
-
}],
|
|
221
|
-
"ariaLabel": [{
|
|
222
|
-
"handleIconAccessibilityChange": 0
|
|
223
|
-
}]
|
|
224
|
-
}; }
|
|
225
|
-
};
|
|
226
|
-
QButton.style = buttonCss();
|
|
227
|
-
|
|
228
|
-
function ensureTooltipDescribedBy(options) {
|
|
229
|
-
const tooltipId = options.host.id || options.fallbackId;
|
|
230
|
-
if (!options.host.id) {
|
|
231
|
-
options.host.id = tooltipId;
|
|
232
|
-
}
|
|
233
|
-
const describedBy = options.trigger.getAttribute('aria-describedby');
|
|
234
|
-
const ids = describedBy ? describedBy.split(/\s+/).filter(Boolean) : [];
|
|
235
|
-
if (ids.includes(tooltipId)) {
|
|
236
|
-
return { tooltipId, added: false };
|
|
237
|
-
}
|
|
238
|
-
options.trigger.setAttribute('aria-describedby', [...ids, tooltipId].join(' '));
|
|
239
|
-
return { tooltipId, added: true };
|
|
240
|
-
}
|
|
241
|
-
function removeTooltipDescribedBy(options) {
|
|
242
|
-
if (!options.trigger || !options.added || !options.tooltipId)
|
|
243
|
-
return;
|
|
244
|
-
const describedBy = options.trigger.getAttribute('aria-describedby');
|
|
245
|
-
if (!describedBy)
|
|
246
|
-
return;
|
|
247
|
-
const ids = describedBy.split(/\s+/).filter(id => id && id !== options.tooltipId);
|
|
248
|
-
if (ids.length) {
|
|
249
|
-
options.trigger.setAttribute('aria-describedby', ids.join(' '));
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
options.trigger.removeAttribute('aria-describedby');
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
function getContainingBlock(el) {
|
|
257
|
-
let current = el;
|
|
258
|
-
while (current) {
|
|
259
|
-
let parent = current.parentElement;
|
|
260
|
-
if (!parent && current.parentNode) {
|
|
261
|
-
const node = current.parentNode;
|
|
262
|
-
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && node.host) {
|
|
263
|
-
parent = node.host;
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
parent = node;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
if (!parent || parent.nodeType !== Node.ELEMENT_NODE) {
|
|
270
|
-
current = parent;
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
const parentEl = parent;
|
|
274
|
-
const style = window.getComputedStyle(parentEl);
|
|
275
|
-
const backdropFilter = style.backdropFilter || style.webkitBackdropFilter;
|
|
276
|
-
if ((style.transform && style.transform !== 'none') ||
|
|
277
|
-
(style.perspective && style.perspective !== 'none') ||
|
|
278
|
-
(style.filter && style.filter !== 'none') ||
|
|
279
|
-
(backdropFilter && backdropFilter !== 'none') ||
|
|
280
|
-
(style.willChange && (style.willChange.includes('transform') ||
|
|
281
|
-
style.willChange.includes('perspective') ||
|
|
282
|
-
style.willChange.includes('filter') ||
|
|
283
|
-
style.willChange.includes('backdrop-filter'))) ||
|
|
284
|
-
(style.contain && (style.contain.includes('paint') ||
|
|
285
|
-
style.contain.includes('contain') ||
|
|
286
|
-
style.contain.includes('layout') ||
|
|
287
|
-
style.contain.includes('content') ||
|
|
288
|
-
style.contain.includes('strict')))) {
|
|
289
|
-
return parentEl;
|
|
290
|
-
}
|
|
291
|
-
current = parent;
|
|
292
|
-
}
|
|
293
|
-
return null;
|
|
294
|
-
}
|
|
295
|
-
function getTooltipPosition(host, trigger, position, viewportPadding) {
|
|
296
|
-
const triggerRect = trigger.getBoundingClientRect();
|
|
297
|
-
const container = getContainingBlock(host);
|
|
298
|
-
const containerRect = container?.getBoundingClientRect();
|
|
299
|
-
const offsetLeft = containerRect?.left || 0;
|
|
300
|
-
const offsetTop = containerRect?.top || 0;
|
|
301
|
-
let anchor;
|
|
302
|
-
switch (position) {
|
|
303
|
-
case 'bottom':
|
|
304
|
-
anchor = {
|
|
305
|
-
left: triggerRect.left + triggerRect.width / 2 - offsetLeft,
|
|
306
|
-
top: triggerRect.bottom - offsetTop,
|
|
307
|
-
};
|
|
308
|
-
break;
|
|
309
|
-
case 'left':
|
|
310
|
-
anchor = {
|
|
311
|
-
left: triggerRect.left - offsetLeft,
|
|
312
|
-
top: triggerRect.top + triggerRect.height / 2 - offsetTop,
|
|
313
|
-
};
|
|
314
|
-
break;
|
|
315
|
-
case 'right':
|
|
316
|
-
anchor = {
|
|
317
|
-
left: triggerRect.right - offsetLeft,
|
|
318
|
-
top: triggerRect.top + triggerRect.height / 2 - offsetTop,
|
|
319
|
-
};
|
|
320
|
-
break;
|
|
321
|
-
case 'top':
|
|
322
|
-
default:
|
|
323
|
-
anchor = {
|
|
324
|
-
left: triggerRect.left + triggerRect.width / 2 - offsetLeft,
|
|
325
|
-
top: triggerRect.top - offsetTop,
|
|
326
|
-
};
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
if (!Number.isFinite(viewportPadding) || viewportPadding < 0)
|
|
330
|
-
return anchor;
|
|
331
|
-
const width = host.offsetWidth;
|
|
332
|
-
const height = host.offsetHeight;
|
|
333
|
-
const x = position === 'left' ? -width - 8 : position === 'right' ? 8 : -width / 2;
|
|
334
|
-
const y = position === 'top' ? -height - 8 : position === 'bottom' ? 8 : -height / 2;
|
|
335
|
-
const padding = viewportPadding;
|
|
336
|
-
const left = Math.max(padding, Math.min(anchor.left + offsetLeft + x, window.innerWidth - padding - width));
|
|
337
|
-
const top = Math.max(padding, Math.min(anchor.top + offsetTop + y, window.innerHeight - padding - height));
|
|
338
|
-
return { left: left - offsetLeft - x, top: top - offsetTop - y };
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
function addTooltipScrollListeners(trigger, listener) {
|
|
342
|
-
window.addEventListener('scroll', listener, { passive: true });
|
|
343
|
-
window.addEventListener('resize', listener);
|
|
344
|
-
let parent = trigger;
|
|
345
|
-
while (parent) {
|
|
346
|
-
parent.addEventListener('scroll', listener, { passive: true });
|
|
347
|
-
parent = parent.parentElement;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
function removeTooltipScrollListeners(trigger, listener) {
|
|
351
|
-
window.removeEventListener('scroll', listener);
|
|
352
|
-
window.removeEventListener('resize', listener);
|
|
353
|
-
let parent = trigger;
|
|
354
|
-
while (parent) {
|
|
355
|
-
parent.removeEventListener('scroll', listener);
|
|
356
|
-
parent = parent.parentElement;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
const tooltipCss = () => `:host{position:fixed;pointer-events:none;z-index:1000;opacity:0;display:block;width:var(--q-tooltip-width, auto);max-width:var(--q-tooltip-max-width, none);transition:opacity 0.15s ease-out, transform 0.15s ease-out}:host(.is-visible){opacity:1}:host([position="top"]){transform:translate(-50%, -100%) translate(0, 4px)}:host([position="top"].is-visible){transform:translate(-50%, -100%) translate(0, -8px)}:host([position="bottom"]){transform:translate(-50%, 0) translate(0, -4px)}:host([position="bottom"].is-visible){transform:translate(-50%, 0) translate(0, 8px)}:host([position="left"]){transform:translate(-100%, -50%) translate(4px, 0)}:host([position="left"].is-visible){transform:translate(-100%, -50%) translate(-8px, 0)}:host([position="right"]){transform:translate(0, -50%) translate(-4px, 0)}:host([position="right"].is-visible){transform:translate(0, -50%) translate(8px, 0)}.tooltip-bubble{background:var(--q-bg-surface-3, #1e293b);color:var(--q-fg-base);border:1px solid var(--q-border-color, rgba(255, 255, 255, 0.08));padding:var(--q-tooltip-padding, 6px 10px);border-radius:var(--q-radius-sm, 4px);font-family:var(--q-font-family, system-ui, -apple-system, sans-serif);font-size:var(--q-font-size-sm);font-weight:500;max-width:var(--q-tooltip-max-width, none);white-space:var(--q-tooltip-white-space, nowrap);overflow-wrap:var(--q-tooltip-overflow-wrap, normal);box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);line-height:1.2}`;
|
|
361
|
-
|
|
362
|
-
let tooltipId = 0;
|
|
363
|
-
const QTooltip = class {
|
|
364
|
-
constructor(hostRef) {
|
|
365
|
-
index.registerInstance(this, hostRef);
|
|
366
|
-
}
|
|
367
|
-
get el() { return index.getElement(this); }
|
|
368
|
-
content;
|
|
369
|
-
position = 'top';
|
|
370
|
-
/** Delay in milliseconds before showing. */
|
|
371
|
-
delay = 200;
|
|
372
|
-
visible = false;
|
|
373
|
-
showTimer;
|
|
374
|
-
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
375
|
-
parentEl = null;
|
|
376
|
-
describedByAdded = false;
|
|
377
|
-
tooltipId = '';
|
|
378
|
-
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
379
|
-
connectedCallback() {
|
|
380
|
-
this.parentEl = this.el.parentElement;
|
|
381
|
-
if (this.parentEl) {
|
|
382
|
-
this.syncAriaDescribedBy();
|
|
383
|
-
this.parentEl.addEventListener('mouseenter', this.show);
|
|
384
|
-
this.parentEl.addEventListener('mouseleave', this.hide);
|
|
385
|
-
this.parentEl.addEventListener('focusin', this.show);
|
|
386
|
-
this.parentEl.addEventListener('focusout', this.hide);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
disconnectedCallback() {
|
|
390
|
-
if (this.parentEl) {
|
|
391
|
-
this.parentEl.removeEventListener('mouseenter', this.show);
|
|
392
|
-
this.parentEl.removeEventListener('mouseleave', this.hide);
|
|
393
|
-
this.parentEl.removeEventListener('focusin', this.show);
|
|
394
|
-
this.parentEl.removeEventListener('focusout', this.hide);
|
|
395
|
-
this.removeAriaDescribedBy();
|
|
396
|
-
}
|
|
397
|
-
this.removeScrollListeners();
|
|
398
|
-
clearTimeout(this.showTimer);
|
|
399
|
-
}
|
|
400
|
-
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
401
|
-
updatePosition = () => {
|
|
402
|
-
if (!this.parentEl)
|
|
403
|
-
return;
|
|
404
|
-
const padding = parseFloat(getComputedStyle(this.el).getPropertyValue('--q-tooltip-viewport-padding'));
|
|
405
|
-
const { left, top } = getTooltipPosition(this.el, this.parentEl, this.position, padding);
|
|
406
|
-
this.el.style.left = `${left}px`;
|
|
407
|
-
this.el.style.top = `${top}px`;
|
|
408
|
-
};
|
|
409
|
-
show = () => {
|
|
410
|
-
clearTimeout(this.showTimer);
|
|
411
|
-
this.showTimer = setTimeout(() => {
|
|
412
|
-
this.visible = true;
|
|
413
|
-
this.updatePosition();
|
|
414
|
-
this.addScrollListeners();
|
|
415
|
-
}, this.delay);
|
|
416
|
-
};
|
|
417
|
-
hide = () => {
|
|
418
|
-
clearTimeout(this.showTimer);
|
|
419
|
-
if (this.visible) {
|
|
420
|
-
this.visible = false;
|
|
421
|
-
this.removeScrollListeners();
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
handleScroll = () => {
|
|
425
|
-
this.hide();
|
|
426
|
-
};
|
|
427
|
-
syncAriaDescribedBy() {
|
|
428
|
-
if (!this.parentEl)
|
|
429
|
-
return;
|
|
430
|
-
const result = ensureTooltipDescribedBy({
|
|
431
|
-
host: this.el,
|
|
432
|
-
trigger: this.parentEl,
|
|
433
|
-
fallbackId: `q-tooltip-${++tooltipId}`,
|
|
434
|
-
});
|
|
435
|
-
this.tooltipId = result.tooltipId;
|
|
436
|
-
this.describedByAdded = result.added;
|
|
437
|
-
}
|
|
438
|
-
removeAriaDescribedBy() {
|
|
439
|
-
removeTooltipDescribedBy({
|
|
440
|
-
trigger: this.parentEl,
|
|
441
|
-
tooltipId: this.tooltipId,
|
|
442
|
-
added: this.describedByAdded,
|
|
443
|
-
});
|
|
444
|
-
this.describedByAdded = false;
|
|
445
|
-
}
|
|
446
|
-
addScrollListeners() {
|
|
447
|
-
addTooltipScrollListeners(this.parentEl, this.handleScroll);
|
|
448
|
-
}
|
|
449
|
-
removeScrollListeners() {
|
|
450
|
-
removeTooltipScrollListeners(this.parentEl, this.handleScroll);
|
|
451
|
-
}
|
|
452
|
-
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
453
|
-
render() {
|
|
454
|
-
return (index.h(index.Host, { key: '3a4bb593988fa2f6bf7fb243989f3270bbfff671', class: {
|
|
455
|
-
'is-visible': this.visible,
|
|
456
|
-
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, index.h("div", { key: 'bf10ba3ca376d7f873f8174f073d00a29e1d571c', class: "tooltip-bubble" }, this.content || index.h("slot", { key: '64e71849fac2819bbba28b40d308be2b066cda65' }))));
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
|
-
QTooltip.style = tooltipCss();
|
|
460
|
-
|
|
461
|
-
exports.q_button = QButton;
|
|
462
|
-
exports.q_tooltip = QTooltip;
|