@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
|
@@ -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"; }
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
2
|
+
import "../../../../packages/browser/components/dist/components/q-input.js";
|
|
3
|
+
import "../../../../packages/browser/components/dist/components/q-dropdown.js";
|
|
4
|
+
import "../../../../packages/browser/components/dist/components/q-textarea.js";
|
|
5
|
+
import shared from "../tokens.css?raw";
|
|
6
|
+
import presets from "../token-presets.css?raw";
|
|
7
|
+
const tags = ['q-input', 'q-dropdown', 'q-textarea'];
|
|
8
|
+
const frame = async () => { await new Promise(requestAnimationFrame); await new Promise(requestAnimationFrame); };
|
|
9
|
+
const width = (element) => element.getBoundingClientRect().width;
|
|
10
|
+
async function fixture(html) {
|
|
11
|
+
document.body.innerHTML = `<style>${shared}\n${presets}</style>${html}`;
|
|
12
|
+
await Promise.all(tags.map(tag => customElements.whenDefined(tag)));
|
|
13
|
+
await frame();
|
|
14
|
+
}
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
document.body.replaceChildren();
|
|
17
|
+
document.documentElement.removeAttribute('style');
|
|
18
|
+
});
|
|
19
|
+
describe.each(tags)('%s horizontal width', tag => {
|
|
20
|
+
it('supports every named width independently of size, preset, and direction', async () => {
|
|
21
|
+
await fixture(`<div style="width:600px"><${tag} id="field"></${tag}></div>`);
|
|
22
|
+
const field = document.getElementById('field');
|
|
23
|
+
for (const preset of ['compact', 'comfortable']) {
|
|
24
|
+
field.dataset.wqPreset = preset;
|
|
25
|
+
for (const direction of ['ltr', 'rtl']) {
|
|
26
|
+
field.dir = direction;
|
|
27
|
+
for (const size of ['sm', 'lg']) {
|
|
28
|
+
field.setAttribute('size', size);
|
|
29
|
+
for (const [name, expected] of Object.entries({ xs: 80, sm: 120, md: 180, lg: 240, xl: 290, xxl: 360, full: 600 })) {
|
|
30
|
+
field.setAttribute('width', name);
|
|
31
|
+
await expect.poll(() => width(field)).toBe(expected);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
it('preserves omitted, invalid and empty widths and responds to reflected property changes/removal', async () => {
|
|
38
|
+
await fixture(`<div style="width:500px"><${tag} id="field"></${tag}></div>`);
|
|
39
|
+
const field = document.getElementById('field');
|
|
40
|
+
expect(width(field)).toBe(500);
|
|
41
|
+
field.width = 'sm';
|
|
42
|
+
await expect.poll(() => field.getAttribute('width')).toBe('sm');
|
|
43
|
+
expect(width(field)).toBe(120);
|
|
44
|
+
for (const value of ['invalid', '']) {
|
|
45
|
+
field.setAttribute('width', value);
|
|
46
|
+
await expect.poll(() => width(field)).toBe(500);
|
|
47
|
+
}
|
|
48
|
+
field.width = 'xxl';
|
|
49
|
+
await expect.poll(() => field.getAttribute('width')).toBe('xxl');
|
|
50
|
+
await expect.poll(() => width(field)).toBe(360);
|
|
51
|
+
field.removeAttribute('width');
|
|
52
|
+
await expect.poll(() => width(field)).toBe(500);
|
|
53
|
+
});
|
|
54
|
+
it('honors scoped/global tokens, root rem size and external host CSS precedence', async () => {
|
|
55
|
+
await fixture(`<div id="scope" style="width:600px"><${tag} id="field" width="md"></${tag}></div>`);
|
|
56
|
+
const field = document.getElementById('field');
|
|
57
|
+
document.documentElement.style.setProperty('--q-input-width-md', '18rem');
|
|
58
|
+
expect(width(field)).toBe(288);
|
|
59
|
+
document.getElementById('scope').style.setProperty('--q-input-width-md', '12rem');
|
|
60
|
+
expect(width(field)).toBe(192);
|
|
61
|
+
document.documentElement.style.fontSize = '20px';
|
|
62
|
+
expect(width(field)).toBe(240);
|
|
63
|
+
const style = document.createElement('style');
|
|
64
|
+
style.textContent = `${tag} { width: 177px; }`;
|
|
65
|
+
document.head.append(style);
|
|
66
|
+
expect(width(field)).toBe(177);
|
|
67
|
+
style.remove();
|
|
68
|
+
expect(width(field)).toBe(240);
|
|
69
|
+
field.style.width = '191px';
|
|
70
|
+
expect(width(field)).toBe(191);
|
|
71
|
+
field.style.removeProperty('width');
|
|
72
|
+
expect(width(field)).toBe(240);
|
|
73
|
+
});
|
|
74
|
+
it('fits narrow, flex and grid containers with long content', async () => {
|
|
75
|
+
await fixture(['block', 'flex', 'grid'].map(display => `<div style="display:${display};width:110px;grid-template-columns:minmax(0,1fr)"><${tag} width="xxl" label="A lengthy visible field label" description="Supporting details wrap within available space" placeholder="An extremely long unbroken label that must not enlarge the container" value="A long selection or entered field value"></${tag}></div>`).join(''));
|
|
76
|
+
for (const field of Array.from(document.querySelectorAll(tag))) {
|
|
77
|
+
expect(width(field)).toBe(110);
|
|
78
|
+
expect(field.scrollWidth).toBeLessThanOrEqual(110);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
it('keeps the open dropdown menu aligned as width and container change', async () => {
|
|
83
|
+
await fixture('<div id="scope" style="width:500px"><q-dropdown id="field" width="sm"></q-dropdown></div>');
|
|
84
|
+
const field = document.getElementById('field');
|
|
85
|
+
field.options = [{ label: 'A very long option label that does not determine host width', value: 'one' }];
|
|
86
|
+
await frame();
|
|
87
|
+
field.shadowRoot.querySelector('.dropdown-trigger').click();
|
|
88
|
+
await frame();
|
|
89
|
+
const menu = () => field.shadowRoot.querySelector('.dropdown-menu');
|
|
90
|
+
await expect.poll(() => width(menu())).toBe(120);
|
|
91
|
+
field.width = 'xxl';
|
|
92
|
+
await expect.poll(() => width(menu())).toBe(360);
|
|
93
|
+
document.getElementById('scope').style.width = '120px';
|
|
94
|
+
await expect.poll(() => width(menu())).toBe(120);
|
|
95
|
+
});
|
|
96
|
+
it('preserves textarea auto-grow when the width becomes narrower', async () => {
|
|
97
|
+
await fixture('<q-textarea id="field" width="lg" rows="1"></q-textarea>');
|
|
98
|
+
const field = document.getElementById('field');
|
|
99
|
+
field.value = 'Words wrap into more lines as the available horizontal space becomes smaller. '.repeat(4);
|
|
100
|
+
await frame();
|
|
101
|
+
const textarea = field.shadowRoot.querySelector('textarea');
|
|
102
|
+
const initial = textarea.getBoundingClientRect().height;
|
|
103
|
+
field.width = 'sm';
|
|
104
|
+
await expect.poll(() => textarea.getBoundingClientRect().height).toBeGreaterThan(initial);
|
|
105
|
+
});
|
|
106
|
+
it.each(['manual', 'fixed'])('preserves textarea %s resize behavior while changing width', async (mode) => {
|
|
107
|
+
await fixture(`<q-textarea id="field" width="lg" resize-mode="${mode}" rows="2"></q-textarea>`);
|
|
108
|
+
const field = document.getElementById('field');
|
|
109
|
+
const textarea = field.shadowRoot.querySelector('textarea');
|
|
110
|
+
field.value = 'Many words that should not grow this textarea automatically. '.repeat(10);
|
|
111
|
+
await frame();
|
|
112
|
+
const initial = textarea.getBoundingClientRect().height;
|
|
113
|
+
field.width = 'sm';
|
|
114
|
+
await frame();
|
|
115
|
+
expect(textarea.getBoundingClientRect().height).toBe(initial);
|
|
116
|
+
expect(getComputedStyle(textarea).resize).toBe(mode === 'manual' ? 'vertical' : 'none');
|
|
117
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { dimensionTokenItems } from "../../../playground/components/theme-designer/dimension-tokens";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { comfortablePreset, dimensionTokens, presetTokens, themeGroups, internalPresetTokens } from "../tokens";
|
|
5
|
+
const read = (path) => readFileSync(new URL(path, import.meta.url), 'utf8');
|
|
6
|
+
const declarations = (css) => Object.fromEntries([...css.matchAll(/(--q-[\w-]+):\s*([^;]+);/g)].map(m => [m[1], m[2].trim()]));
|
|
7
|
+
describe('preset compatibility manifest', () => {
|
|
8
|
+
it('preserves all 180 original defaults exactly and allocates each once', () => {
|
|
9
|
+
const baseline = JSON.parse(read('./compact-baseline.json'));
|
|
10
|
+
const catalog = [...dimensionTokens, ...themeGroups.flatMap(group => group.tokens)];
|
|
11
|
+
const additions = {
|
|
12
|
+
'--q-input-width-xs': '5rem', '--q-input-width-sm': '7.5rem',
|
|
13
|
+
'--q-input-width-md': '11.25rem', '--q-input-width-lg': '15rem', '--q-input-width-xl': '18.125rem', '--q-input-width-xxl': '22.5rem',
|
|
14
|
+
};
|
|
15
|
+
expect(Object.keys(baseline)).toHaveLength(180);
|
|
16
|
+
expect(catalog).toHaveLength(186);
|
|
17
|
+
expect(Object.fromEntries(catalog.map(token => [token.name, token.value]))).toEqual({ ...baseline, ...additions });
|
|
18
|
+
const shared = declarations(read('../tokens.css').split('@media')[0]);
|
|
19
|
+
const compact = declarations(read('../token-presets.css').split(":where([data-wq-preset='comfortable'])")[0]);
|
|
20
|
+
for (const [name, value] of Object.entries({ ...baseline, ...additions })) {
|
|
21
|
+
expect(Number(name in shared) + Number(name in compact), name).toBe(1);
|
|
22
|
+
expect(shared[name] ?? compact[name], name).toBe(value);
|
|
23
|
+
}
|
|
24
|
+
expect(Object.keys(comfortablePreset)).toHaveLength(65);
|
|
25
|
+
});
|
|
26
|
+
it('has complete, valid, identical key sets and generated values for both presets', () => {
|
|
27
|
+
expect(new Set(presetTokens.map(token => token.name)).size).toBe(presetTokens.length);
|
|
28
|
+
const css = read('../token-presets.css');
|
|
29
|
+
const [compact, comfortable] = css.split(":where([data-wq-preset='comfortable'])");
|
|
30
|
+
for (const mode of ['compact', 'comfortable']) {
|
|
31
|
+
const actual = declarations(mode === 'compact' ? compact : comfortable);
|
|
32
|
+
expect(actual).toEqual(Object.fromEntries(presetTokens.map(token => [token.name, token[mode]])));
|
|
33
|
+
expect(Object.values(actual).every(value => value && !/TBD|undefined/.test(value))).toBe(true);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
it('keeps private size fallbacks out of the public token reference', () => {
|
|
37
|
+
const docs = read('../../../../docs/design-presets-tokens.md');
|
|
38
|
+
const css = read('../token-presets.css');
|
|
39
|
+
expect(presetTokens.every(token => token.name.startsWith('--q-'))).toBe(true);
|
|
40
|
+
for (const [name, values] of Object.entries(internalPresetTokens)) {
|
|
41
|
+
expect(name.startsWith('--_q-')).toBe(true);
|
|
42
|
+
expect(docs).not.toContain(name);
|
|
43
|
+
expect(css).toContain(`${name}: ${values.compact};`);
|
|
44
|
+
expect(css).toContain(`${name}: ${values.comfortable};`);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
it('gives width tokens labeled editor sliders with room for their defaults and larger overrides', () => {
|
|
49
|
+
const widths = dimensionTokenItems.filter(token => token.name.startsWith('--q-input-width-'));
|
|
50
|
+
expect(widths).toHaveLength(6);
|
|
51
|
+
for (const token of widths) {
|
|
52
|
+
expect(token.label).toBe(`Input width ${token.name.split('-').at(-1)}`);
|
|
53
|
+
expect(token.type).toBe('dimension');
|
|
54
|
+
expect(token.min).toBe(0);
|
|
55
|
+
expect(token.max).toBeGreaterThanOrEqual(400);
|
|
56
|
+
}
|
|
57
|
+
expect(dimensionTokenItems.filter(token => !widths.includes(token)).every(token => token.max === 64)).toBe(true);
|
|
58
|
+
});
|
|
@@ -5,8 +5,11 @@ export const controls = {
|
|
|
5
5
|
md: { height: 36, font: 14, line: 20, padding: 12, icon: 16, radius: 7 },
|
|
6
6
|
lg: { height: 44, font: 16, line: 24, padding: 16, icon: 20, radius: 8.5 },
|
|
7
7
|
};
|
|
8
|
+
// Horizontal field widths are independent of control height and density.
|
|
9
|
+
export const inputWidths = { xs: 80, sm: 120, md: 180, lg: 240, xl: 290, xxl: 360 };
|
|
8
10
|
export const rem = (pixels) => `${pixels / 16}rem`;
|
|
9
11
|
export const dimensionTokens = [
|
|
12
|
+
...Object.entries(inputWidths).map(([size, value]) => ({ name: `--q-input-width-${size}`, value: rem(value), label: `Input width ${size}` })),
|
|
10
13
|
...Object.entries(spaces).map(([key, value]) => ({ name: `--q-space-${key}`, value: rem(value), label: `Space ${key}` })),
|
|
11
14
|
...Object.entries(controls).flatMap(([size, metrics]) => Object.entries(metrics).map(([key, value]) => ({
|
|
12
15
|
name: `--q-control-${key}-${size}`, value: rem(value), label: `${size} control ${key}`,
|
|
@@ -915,7 +918,7 @@ export const componentPresetTokens = {
|
|
|
915
918
|
'--q-table-cell-padding-inline': { compact: '8px', comfortable: '14px' },
|
|
916
919
|
'--q-dropdown-option-padding': { compact: '10px 14px', comfortable: '12px 18px' },
|
|
917
920
|
'--q-tooltip-padding': { compact: '6px 10px', comfortable: '8px 14px' },
|
|
918
|
-
'--q-syntax-padding': { compact: '
|
|
921
|
+
'--q-syntax-padding': { compact: 'var(--q-padding-lg, 1rem)', comfortable: 'var(--q-padding-lg, 1.5rem)' },
|
|
919
922
|
'--q-syntax-compact-padding': { compact: '10px', comfortable: '16px' },
|
|
920
923
|
'--q-syntax-header-padding': { compact: '4px 16px', comfortable: '8px 24px' },
|
|
921
924
|
'--q-sidepanel-nav-font': { compact: '0.875rem', comfortable: '1rem' },
|
|
@@ -51,7 +51,7 @@ export function getDeepActiveElement() {
|
|
|
51
51
|
export function getFocusableElements(container) {
|
|
52
52
|
if (!container)
|
|
53
53
|
return [];
|
|
54
|
-
const selector = 'button, [href], input, select, textarea, [tabindex="0"], q-button, q-input, q-textarea, q-dropdown, q-radio-group';
|
|
54
|
+
const selector = 'button, [href], input, select, textarea, [tabindex="0"], q-button, q-slider, q-input, q-textarea, q-dropdown, q-radio-group';
|
|
55
55
|
const focusables = [];
|
|
56
56
|
const traverse = (node) => {
|
|
57
57
|
if (node.nodeType !== 1)
|
|
@@ -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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,n){if(!t)return[];const r=Array.from(t.querySelectorAll("slot"));if(0===r.length){const r=Array.from(t.children);if(n){const t=n.toLowerCase();return r.filter((n=>n.tagName.toLowerCase()===t))}return r}const e=[];if(r.forEach((t=>{const n=t.assignedElements({flatten:!0}).filter((t=>1===t.nodeType));e.push(...n)})),n){const t=n.toLowerCase();return e.filter((n=>n.tagName.toLowerCase()===t))}return e}function n(){let t=document.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function r(t){if(!t)return[];const n=[],r=t=>{if(1!==t.nodeType)return;const e=t,o="undefined"!=typeof window?window.getComputedStyle(e):null;if(o&&"none"===o.display)return;const i="-1"!==e.getAttribute("tabindex"),u="true"===e.getAttribute("aria-hidden");e.matches('button, [href], input, select, textarea, [tabindex="0"], q-button, q-slider, q-input, q-textarea, q-dropdown, q-radio-group')&&!e.disabled&&i&&!u&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&n.push(e),e.shadowRoot&&Array.from(e.shadowRoot.childNodes).forEach(r),"slot"===e.tagName.toLowerCase()?e.assignedElements({flatten:!0}).forEach(r):Array.from(e.childNodes).forEach((t=>r(t)))};return r(t),n}function e(t,e){if("Tab"!==t.key||!e)return;const o=r(e);if(0===o.length)return;const i=o[0],u=o[o.length-1],f=n();if(!o.includes(f))return t.shiftKey?u.focus():i.focus(),void t.preventDefault();t.shiftKey&&f===i?(u.focus(),t.preventDefault()):t.shiftKey||f!==u||(i.focus(),t.preventDefault())}function o(t,n,r,e){if(!t)return;const o=t.shadowRoot?.querySelector("slot"),i=o?o.assignedElements({flatten:!0}):Array.from(t.children),u=n.toLowerCase();let f=0;i.forEach((t=>{t.tagName.toLowerCase()===u&&(t[r]=e,f++)})),0===f&&Array.from(t.querySelectorAll(n)).forEach((t=>{t[r]=e}))}function i(t,n,r=5){return!t||t.length<=r?{fontSize:n}:{fontSize:`calc(${n} * ${Math.max(.4,r/t.length).toFixed(3)})`}}function u(t,n,r){if(!t)return n(),()=>{};let e,o=!1;const i=()=>{void 0!==e&&(clearTimeout(e),e=void 0),t.removeEventListener("transitionend",u)},u=()=>{o||(o=!0,i(),n())};let f=r;if(void 0===f&&"undefined"!=typeof window){const n=window.getComputedStyle(t).transitionDuration||"",r=parseFloat(n)*(n.includes("ms")?1:1e3);f=isNaN(r)||0===r?350:r+50}else void 0===f&&(f=350);return t.addEventListener("transitionend",u),e=setTimeout(u,f),i}function f(t){t&&"function"==typeof t.focus&&t.focus()}function a(t){if(!t)return;const n=r(t);n.length>0?n[0].focus():f(t)}export{f as a,n as b,i as c,a as f,t as g,e as h,o as s,u as w}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{h as t}from"./p-CpbWWDiY.js";import{r as s}from"./p-CGml_DQ8.js";import{i,s as e}from"./p-DstNl_WY.js";import{s as n}from"./p-BxxU73QQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @lucide/icons v1.54.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const o={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]},a={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]},r={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]},h=Symbol.for("@webquark/browser:syntax-views:v1"),c=globalThis,{syntaxBoxes:l,syntaxScrollRestorers:d,syntaxVisibility:u}=c[h]??={syntaxBoxes:new WeakMap,syntaxScrollRestorers:new WeakMap,syntaxVisibility:new WeakMap};
|
|
8
|
+
/**
|
|
9
|
+
* @license @lucide/icons v1.54.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/function f(t){return l.get(t)??("q-syntax-view"===t.localName&&t.parentElement?l.get(t.parentElement):void 0)}function p(t){const s=[];for(let i=t;i;i=i.parentElement)i!==t&&"q-syntax-view"!==i.localName||s.push(i);for(const t of s.reverse())f(t)?.select(t)}function y(t){return Array.from(t.childNodes).filter((t=>3===t.nodeType||t instanceof Element&&!t.slot&&"q-syntax-view"!==t.localName))}function m(t){return y(t).some((t=>1===t.nodeType||Boolean(t.textContent?.trim())))}class v extends Error{}const b={html:"HTML",javascript:"JavaScript",css:"CSS",json:"JSON",typescript:"TypeScript",jsx:"JSX",tsx:"TSX",flow:"Flow",json5:"JSON5",jsonc:"JSON with Comments","json-stringify":"JSON.stringify",postcss:"PostCSS",less:"Less",scss:"SCSS",angular:"Angular",vue:"Vue",lwc:"Lightning Web Components",mjml:"MJML",handlebars:"Handlebars",graphql:"GraphQL",markdown:"Markdown",mdx:"MDX",yaml:"YAML"};function w(t){const s="string"==typeof t?t.toLowerCase():"";return"js"===s?"javascript":Object.prototype.hasOwnProperty.call(b,s)?s:void 0}function x(t,s){const i=w(s);return i?"json"===i?function(t){try{const s=function(t){if(t.length>1048576)throw new v;let s=0,i=0;const e=[],n=t=>{if(i+=t.length,i>2097152)throw new v;e.push(t)},o=()=>{for(;/[\x20\t\r\n]/.test(t.charAt(s))&&s<t.length;)s++},a=i=>{if(t[s++]!==i)throw new SyntaxError("Invalid JSON.");o()},r=()=>{const i=s;if('"'!==t[s++])throw new SyntaxError("Invalid JSON string.");for(;s<t.length;){const e=t[s++];if('"'===e)return t.slice(i,s);if(e.charCodeAt(0)<32)throw new SyntaxError("Invalid JSON string.");if("\\"===e){const i=t[s++];if("u"===i){if(!/^[\da-fA-F]{4}$/.test(t.slice(s,s+4)))throw new SyntaxError("Invalid JSON escape.");s+=4}else if(!i||!'"\\/bfnrt'.includes(i))throw new SyntaxError("Invalid JSON escape.")}}throw new SyntaxError("Unterminated JSON string.")},h=t=>n("\n"+" ".repeat(t)),c=i=>{o();const e=t[s];if("{"===e||"["===e){if(i>=128)throw new v;const l="{"===e,d=l?"}":"]";if(s++,n(e),o(),t[s]===d)return s++,void n(d);for(h(i+1);;){if(l&&(n(r()),o(),a(":"),n(": ")),c(i+1),o(),t[s]===d)return s++,h(i),void n(d);a(","),n(","),h(i+1)}}if('"'===e)return void n(r());for(const i of["true","false","null"])if(t.startsWith(i,s))return s+=i.length,void n(i);const l=s;for(;s<t.length&&/[\d.eE+-]/.test(t[s]);)s++;const d=t.slice(l,s);if(!/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/.test(d))throw new SyntaxError("Invalid JSON value.");n(d)};if(c(0),o(),s!==t.length)throw new SyntaxError("Trailing JSON content.");return e.join("")}(t);return{code:s,status:s===t?"unchanged":"formatted"}}catch(s){return{code:t,status:s instanceof v?"unsupported":"invalid"}}}(t):async function(t,s){let i;try{const t=await import("../formatters/prettier/runtime.mjs");i=await t.loadFormatter(s)}catch{return{code:t,status:"unavailable"}}try{const s=await i(t);return{code:s,status:s===t?"unchanged":"formatted"}}catch(s){return{code:t,status:s instanceof SyntaxError?"invalid":"failed"}}}(t,i):{code:t,status:"unsupported"}}function g(t){const s=[];let i=0;return{emit(e,n,o){i<e&&s.push({text:t.slice(i,e)}),s.push({text:t.slice(e,n),className:o}),i=n},finish:()=>(i<t.length&&s.push({text:t.slice(i)}),s)}}function S(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}function C(t){return t>="0"&&t<="9"}function k(t){return S(t)||C(t)||"_"===t}function E(t,s){for(;s<t.length&&/\s/.test(t[s]);)s++;return s}function j(t,s,i){const e=t[s];let n=s+1;for(;n<t.length;)if(i&&"\\"===t[n])n=Math.min(t.length,n+2);else if(t[n++]===e)break;return n}const q=new Set(["const","let","var","function","return","if","else","for","while","do","switch","case","break","continue","class","export","import","from","new","this","typeof","instanceof","try","catch","finally","throw","async","await","null","undefined","true","false"]);function M(t,s){return s.editable?t??"":t}const N=h=>class extends h{constructor(){super()}code;value;heading;ariaLabel=null;variant="panel";height;copyable=!1;editable=!1;name;required=!1;language="html";disabled=!1;qChange;qInput;disabledState=!1;get isDisabled(){return i(this.el,this.disabled)}copied=!1;copyFailed=!1;formatMessage;initialValue;scrollPending=!1;copyRevision=0;formatRevision=0;copiedTimeoutId;scrollableEl;preEl;contentEl;actionsEl;validationAnchor;watchCode(t){this.formatRevision++,this.formatMessage=void 0;const s=M(t,{editable:this.editable});s!==t&&(this.code=s),this.value!==s&&(this.value=s),this.syncFormValue(s)}watchValue(t){this.formatRevision++,this.formatMessage=void 0;const s=M(t,{editable:this.editable});s!==t&&(this.value=s),this.code!==s&&(this.code=s),this.syncFormValue(s)}watchLanguage(){this.formatRevision++,this.formatMessage=void 0}watchConstraints(){this.syncValidity()}watchEditable(){this.formatRevision++,this.editable&&this.watchCode(this.code),this.syncFormValue(this.code)}componentWillLoad(){const t=function(t){const s=M(t.code??t.value,t);return{code:s,value:t.editable?s:t.value??s,initialValue:s??""}}({code:this.code,value:this.value,editable:this.editable});this.code=t.code,this.value=t.value,this.initialValue=t.code,this.syncFormValue(this.code)}formDisabledCallback(){this.syncValidity()}componentDidLoad(){d.set(this.el,(()=>this.resumeScroll())),u.set(this.el,(()=>this.syncVisibility())),s(this.el,{kind:"text",owner:()=>this.internals?.form??null,active:()=>this.editable,value:()=>this.code??"",assign:t=>{this.value=t},reconcile:()=>{const t=this.el.shadowRoot?.querySelector("textarea");t&&t.value!==(this.code??"")&&(t.value=this.code??""),this.syncFormValue(this.code),this.syncValidity()},reset:()=>this.formResetCallback(),validate:t=>this.validate(t)})}componentDidRender(){this.syncVisibility(),this.syncLogSpacing()}syncLogSpacing=()=>{const t=this.el.shadowRoot?.querySelector(".slotted-body > slot"),s=t?.assignedElements().some((t=>"log"===t.getAttribute("role")));this.el.classList.toggle("q-syntax-log-content",Boolean(s))};syncVisibility(){const t=!1===f(this.el)?.visible(this.el);t&&this.formatRevision++,this.contentEl&&(this.contentEl.inert=t),this.actionsEl&&(this.actionsEl.inert=t),this.validationAnchor&&(this.validationAnchor.hidden=!t),this.syncValidity()}disconnectedCallback(){this.formatRevision++,this.copyRevision++,this.clearCopiedTimeout()}formResetCallback(){this.formatRevision++,this.formatMessage=void 0,this.code=this.initialValue,this.value=this.initialValue,this.syncFormValue(this.code),this.syncValidity()}async scrollToBottom(){const t=f(this.el);this.scrollPending=Boolean(t&&!t.visible(this.el)),this.scrollPending||await(this.scrollableEl?.scrollToBottom())}resumeScroll(){this.scrollPending&&this.scrollToBottom()}async checkValidity(){return this.validate(!1)}async reportValidity(){return this.validate(!0)}validate(t){this.syncValidity();const s=this.el.shadowRoot?.querySelector("textarea");return t&&this.editable&&!1===s?.validity.valid&&(p(this.el),s.focus({preventScroll:!0})),t?this.internals?.reportValidity?.()??s?.reportValidity?.()??!0:this.internals?.checkValidity?.()??s?.checkValidity?.()??!0}syncFormValue(t){this.internals&&"function"==typeof this.internals.setFormValue&&(this.internals.setFormValue(this.editable?t||"":null),this.syncValidity())}syncValidity(){const t=e(this.el,this.disabled,this.name,this.required);this.disabledState!==t&&(this.disabledState=t);const s=this.el.shadowRoot?.querySelector("textarea");s&&(s.disabled=t,s.required=this.required,s.readOnly=this.el.hasAttribute("readonly"),s.value!==(this.code??"")&&(s.value=this.code??"")),this.internals?.setFormValue?.(this.editable&&!t?this.code??"":null),this.internals&&s&&this.editable?n({internals:this.internals,control:s,anchor:this.validationAnchor&&!this.validationAnchor.hidden?this.validationAnchor:s,disabled:this.isDisabled}):"function"==typeof this.internals?.setValidity&&this.internals.setValidity({})}clearCopiedTimeout(){void 0!==this.copiedTimeoutId&&(clearTimeout(this.copiedTimeoutId),this.copiedTimeoutId=void 0)}scheduleCopyStateReset(){this.clearCopiedTimeout(),this.copiedTimeoutId=setTimeout((()=>{this.copied=!1,this.copyFailed=!1,this.copiedTimeoutId=void 0}),1500)}copyCode=async()=>{if(this.isDisabled)return;const t=++this.copyRevision,s=y(this.el).map((t=>t.textContent??"")).join(""),i=void 0!==(e=this.code)?e:s||"";var e;try{if(await async function(t){if(!navigator.clipboard||"function"!=typeof navigator.clipboard.writeText)throw new Error("Clipboard API unavailable");await navigator.clipboard.writeText(t)}(i),!this.el.isConnected||t!==this.copyRevision)return;this.copied=!0,this.copyFailed=!1}catch{if(!this.el.isConnected||t!==this.copyRevision)return;this.copied=!1,this.copyFailed=!0}this.scheduleCopyStateReset()};handleScroll=t=>{const s=t.target;this.preEl&&(this.preEl.scrollLeft=s.scrollLeft,this.preEl.scrollTop=s.scrollTop)};handleInput=t=>{const s=t.target;this.code=s.value,this.value=s.value,this.qInput.emit(this.code)};handleChange=t=>{const s=t.target;this.code=s.value,this.value=s.value,this.qChange.emit(this.code)};handleKeyDown=t=>{const s=t.target,i=(n=s.value,o=s.selectionStart,a=s.selectionEnd,"Escape"===(e=t).key?{type:"blur"}:"Tab"!==e.key||e.shiftKey||e.ctrlKey||e.metaKey||e.altKey?{type:"none"}:{type:"indent",value:n.substring(0,o)+" "+n.substring(a),caret:o+2});var e,n,o,a;"none"!==i.type&&("blur"!==i.type?(t.preventDefault(),this.code=i.value,this.value=i.value,this.qInput.emit(this.code),requestAnimationFrame((()=>{s.selectionStart=s.selectionEnd=i.caret}))):s.blur())};handleFormat=async()=>{const t=w(this.language);if(this.isDisabled||!this.editable||!t||!this.code)return;const s=++this.formatRevision,i=this.code,e=x(i,t),n=e instanceof Promise?await e:e;if(s!==this.formatRevision||this.code!==i||!this.el.isConnected||this.isDisabled)return;const o=b[t];"unavailable"!==n.status?"failed"!==n.status?(this.code=n.code,this.value=n.code,this.formatMessage="invalid"===n.status?`Invalid ${o}; source unchanged.`:"unsupported"===n.status?`${o} formatting limit reached; source unchanged.`:void 0,this.qInput.emit(n.code),this.qChange.emit(n.code)):this.formatMessage=`Could not format this ${o} source.`:this.formatMessage=`Could not load the ${o} formatter. Reload and try again.`};getCopyTooltipContent(){return this.copyFailed?"Copy failed":this.copied?"Copied!":"Copy"}renderContent(s){const i=void 0!==this.height?this.height:"panel"===s?"110px":"auto",e="auto"!==i&&""!==i,n=this.editable?this.formatMessage:void 0,o=function(t,s){switch(s){case"html":return function(t){const s=g(t);let i=0;for(;i<t.length;){const e=i,n=t[i];if(t.startsWith("\x3c!--",i)){const n=t.indexOf("--\x3e",i+4);i=-1===n?t.length:n+3,s.emit(e,i,"code-comment")}else if("<"===n&&S(t[i+("/"===t[i+1]?2:1)])){for(i+="/"===t[i+1]?3:2;i<t.length&&(k(t[i])||":"===t[i]||"-"===t[i]);)i++;s.emit(e,i,"code-tag")}else if('"'===n||"'"===n)i=j(t,e,!1),s.emit(e,i,"code-value");else if(">"===n||"/"===n&&">"===t[i+1])i+="/"===n?2:1,s.emit(e,i,"code-tag");else if(k(n)||":"===n||"-"===n){for(i++;i<t.length&&(k(t[i])||":"===t[i]||"-"===t[i]);)i++;"="===t[E(t,i)]&&s.emit(e,i,"code-attr")}else i++}return s.finish()}(t);case"javascript":return function(t){const s=g(t);let i=0;for(;i<t.length;){const e=i,n=t[i];if("/"===n&&"/"===t[i+1]){for(i+=2;i<t.length&&!/[\r\n\u2028\u2029]/.test(t[i]);)i++;s.emit(e,i,"code-comment")}else if("/"===n&&"*"===t[i+1]){const n=t.indexOf("*/",i+2);i=-1===n?t.length:n+2,s.emit(e,i,"code-comment")}else if('"'===n||"'"===n||"`"===n)i=j(t,e,!0),s.emit(e,i,"code-value");else if(S(n)||"_"===n||"$"===n){for(i++;i<t.length&&(k(t[i])||"$"===t[i]);)i++;q.has(t.slice(e,i))?s.emit(e,i,"code-tag"):"("===t[E(t,i)]&&s.emit(e,i,"code-attr")}else if(C(n)){for(;i<t.length&&C(t[i]);)i++;if("."===t[i]&&C(t[i+1]))for(i++;i<t.length&&C(t[i]);)i++;if(k(t[i])||"$"===t[i])for(;i<t.length&&(k(t[i])||"$"===t[i]);)i++;else s.emit(e,i,"code-number")}else i++}return s.finish()}(t);case"css":return function(t){const s=[];let i="selector",e=0,n=0;const o=(i,e,n)=>{e>i&&s.push({text:t.slice(i,e),className:n})};for(;n<t.length;){const s=n,a=t[n];if("/"===a&&"*"===t[n+1]){const i=t.indexOf("*/",n+2);n=-1===i?t.length:i+2,o(s,n,"code-comment")}else if('"'===a||"'"===a){for(n++;n<t.length;)if("\\"===t[n])n=Math.min(t.length,n+2);else if(t[n++]===a)break;o(s,n,"code-value")}else if("{"===a||"}"===a||";"===a||":"===a&&"property"===i)n++,o(s,n),"{"===a?(e++,i="property"):"}"===a?(e=Math.max(0,e-1),i=e?"property":"selector"):i=";"===a?e?"property":"selector":"value";else{for(;n<t.length;){const s=t[n];if('"'===s||"'"===s||"{"===s||"}"===s||";"===s||":"===s&&"property"===i||"/"===s&&"*"===t[n+1])break;n++}o(s,n,"selector"===i?"code-tag":"property"===i?"code-attr":"code-value")}}return s}(t);case"json":return function(t,s,i){const e=[];let n,o=0;for(;null!==(n=s.exec(t));)o<n.index&&e.push({text:t.slice(o,n.index)}),e.push({text:n[0],className:i(n)}),o=n.index+n[0].length;return o<t.length&&e.push({text:t.slice(o)}),e}(t,/("(?:[^"\\]|\\[\s\S])*")|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\b(?:true|false|null)\b)/g,(s=>s[1]?/^\s*:/.test(t.slice(s.index+s[0].length))?"code-tag":"code-value":"code-attr"));default:return t?[{text:t}]:[]}}(this.code??"",this.language).map((s=>s.className?t("span",{class:s.className},s.text):s.text)),a=this.editable||void 0!==this.code?this.editable?t("div",{class:"editor-area",style:{height:i}},t("span",{id:"syntax-box-keyboard-help",class:"visually-hidden"},"Press Escape to leave the code editor. Press Tab to insert two spaces."),t("textarea",{class:"editor-textarea",value:this.code??"",name:this.name,disabled:this.isDisabled,required:this.required,"aria-label":this.ariaLabel?.trim()||this.heading?.trim()||`${this.language.toUpperCase()} code editor`,"aria-describedby":"syntax-box-keyboard-help",onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleScroll,onKeyDown:this.handleKeyDown}),t("pre",{class:"code-body",ref:t=>this.preEl=t},t("code",null,o))):t("pre",{class:"code-body"},t("code",null,o)):t("div",{class:"slotted-body"},t("slot",{onSlotchange:this.syncLogSpacing})),r=e&&!this.editable?t("q-scrollable",{height:i,ref:t=>{this.scrollableEl=t}},a):a;return[this.editable&&t("span",{class:"validation-anchor",tabindex:-1,ref:t=>{this.validationAnchor=t},onFocus:()=>{p(this.el),this.el.shadowRoot?.querySelector("textarea")?.focus({preventScroll:!0})}}),t("div",{class:"view-content",ref:t=>{this.contentEl=t}},"panel"===s&&n&&t("div",{class:"format-feedback",role:"status"},n),r)]}renderActions(){const s=w(this.language);return i={editable:this.editable,copyable:this.copyable,disabled:this.isDisabled,formatLabel:s&&`Format ${b[s]}`,copied:this.copied,copyFeedback:this.getCopyTooltipContent(),onFormat:this.handleFormat,onCopy:this.copyCode,ref:t=>{this.actionsEl=t}},t("div",{class:"panel-actions",ref:i.ref},t("slot",{name:"actions"}),i.editable&&i.formatLabel&&t("q-button",{class:"format-btn",ariaLabel:i.formatLabel,variant:"ghost",size:"sm",disabled:i.disabled,onClick:i.onFormat},t("q-icon",{slot:"icon-left",definition:o,name:"braces",size:"sm"}),t("q-tooltip",{slot:"icon-left",position:"bottom",content:i.formatLabel})),i.copyable&&t("q-button",{variant:"ghost",size:"sm",ariaLabel:i.copyFeedback,disabled:i.disabled,onClick:i.onCopy},t("q-icon",{slot:"icon-left",definition:i.copied?a:r,name:i.copied?"check":"copy",size:"sm"}),t("q-tooltip",{slot:"icon-left",position:"bottom",content:i.copyFeedback})));var i}};export{d as a,u as b,f as c,m as h,l as s,N as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as i,H as s,h as o,d as e}from"./p-
|
|
1
|
+
import{t,p as i,H as s,h as o,d as e}from"./p-CpbWWDiY.js";let r=0;const a=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}content;position="top";delay=200;visible=!1;showTimer;parentEl=null;describedByAdded=!1;tooltipId="";connectedCallback(){this.parentEl=this.el.parentElement,this.parentEl&&(this.syncAriaDescribedBy(),this.parentEl.addEventListener("mouseenter",this.show),this.parentEl.addEventListener("mouseleave",this.hide),this.parentEl.addEventListener("focusin",this.show),this.parentEl.addEventListener("focusout",this.hide))}disconnectedCallback(){this.parentEl&&(this.parentEl.removeEventListener("mouseenter",this.show),this.parentEl.removeEventListener("mouseleave",this.hide),this.parentEl.removeEventListener("focusin",this.show),this.parentEl.removeEventListener("focusout",this.hide),this.removeAriaDescribedBy()),this.removeScrollListeners(),clearTimeout(this.showTimer)}updatePosition=()=>{if(!this.parentEl)return;const t=parseFloat(getComputedStyle(this.el).getPropertyValue("--q-tooltip-viewport-padding")),{left:i,top:s}=function(t,i,s,o){const e=i.getBoundingClientRect(),r=function(t){let i=t;for(;i;){let t=i.parentElement;if(!t&&i.parentNode){const s=i.parentNode;t=s.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&s.host?s.host:s}if(!t||t.nodeType!==Node.ELEMENT_NODE){i=t;continue}const s=t,o=window.getComputedStyle(s),e=o.backdropFilter||o.webkitBackdropFilter;if(o.transform&&"none"!==o.transform||o.perspective&&"none"!==o.perspective||o.filter&&"none"!==o.filter||e&&"none"!==e||o.willChange&&(o.willChange.includes("transform")||o.willChange.includes("perspective")||o.willChange.includes("filter")||o.willChange.includes("backdrop-filter"))||o.contain&&(o.contain.includes("paint")||o.contain.includes("contain")||o.contain.includes("layout")||o.contain.includes("content")||o.contain.includes("strict")))return s;i=t}return null}(t),a=r?.getBoundingClientRect(),n=a?.left||0,l=a?.top||0;let h;switch(s){case"bottom":h={left:e.left+e.width/2-n,top:e.bottom-l};break;case"left":h={left:e.left-n,top:e.top+e.height/2-l};break;case"right":h={left:e.right-n,top:e.top+e.height/2-l};break;default:h={left:e.left+e.width/2-n,top:e.top-l}}if(!Number.isFinite(o)||o<0)return h;const d=t.offsetWidth,p=t.offsetHeight,c="left"===s?-d-8:"right"===s?8:-d/2,f="top"===s?-p-8:"bottom"===s?8:-p/2,b=o;return{left:Math.max(b,Math.min(h.left+n+c,window.innerWidth-b-d))-n-c,top:Math.max(b,Math.min(h.top+l+f,window.innerHeight-b-p))-l-f}}(this.el,this.parentEl,this.position,t);this.el.style.left=`${i}px`,this.el.style.top=`${s}px`};show=()=>{clearTimeout(this.showTimer),this.showTimer=setTimeout((()=>{this.visible=!0,this.updatePosition(),this.addScrollListeners()}),this.delay)};hide=()=>{clearTimeout(this.showTimer),this.visible&&(this.visible=!1,this.removeScrollListeners())};handleScroll=()=>{this.hide()};syncAriaDescribedBy(){if(!this.parentEl)return;const t=function(t){const i=t.host.id||t.fallbackId;t.host.id||(t.host.id=i);const s=t.trigger.getAttribute("aria-describedby"),o=s?s.split(/\s+/).filter(Boolean):[];return o.includes(i)?{tooltipId:i,added:!1}:(t.trigger.setAttribute("aria-describedby",[...o,i].join(" ")),{tooltipId:i,added:!0})}({host:this.el,trigger:this.parentEl,fallbackId:"q-tooltip-"+ ++r});this.tooltipId=t.tooltipId,this.describedByAdded=t.added}removeAriaDescribedBy(){!function(t){if(!t.trigger||!t.added||!t.tooltipId)return;const i=t.trigger.getAttribute("aria-describedby");if(!i)return;const s=i.split(/\s+/).filter((i=>i&&i!==t.tooltipId));s.length?t.trigger.setAttribute("aria-describedby",s.join(" ")):t.trigger.removeAttribute("aria-describedby")}({trigger:this.parentEl,tooltipId:this.tooltipId,added:this.describedByAdded}),this.describedByAdded=!1}addScrollListeners(){!function(t,i){window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i);let s=t;for(;s;)s.addEventListener("scroll",i,{passive:!0}),s=s.parentElement}(this.parentEl,this.handleScroll)}removeScrollListeners(){!function(t,i){window.removeEventListener("scroll",i),window.removeEventListener("resize",i);let s=t;for(;s;)s.removeEventListener("scroll",i),s=s.parentElement}(this.parentEl,this.handleScroll)}render(){return o(e,{key:"66d5e67ca034bd9661929295a1cd21261f91fd90",class:{"is-visible":this.visible},"aria-hidden":this.visible?"false":"true",role:"tooltip"},o("div",{key:"013fc07ba7b829734a7c323c06b3fb22deb25d6b",class:"tooltip-bubble"},this.content||o("slot",{key:"71234028dbdacbac2b5529f75e5e19e473b0bfe3"})))}static get style(){return':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}'}},[769,"q-tooltip",{content:[1],position:[513],delay:[2],visible:[32]}]);function n(){"undefined"!=typeof customElements&&["q-tooltip"].forEach((i=>{"q-tooltip"===i&&(customElements.get(t(i))||customElements.define(t(i),a))}))}n();export{a as Q,n as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t({internals:t,control:o,anchor:n=o,disabled:e,customError:r}){if("function"!=typeof t.setValidity||!o.validity)return;if(e)return void t.setValidity({});const a=r?.trim();var s;a?t.setValidity({customError:!0},a,n):o.validity.valid?t.setValidity({}):t.setValidity({badInput:(s=o.validity).badInput,customError:s.customError,patternMismatch:s.patternMismatch,rangeOverflow:s.rangeOverflow,rangeUnderflow:s.rangeUnderflow,stepMismatch:s.stepMismatch,tooLong:s.tooLong,tooShort:s.tooShort,typeMismatch:s.typeMismatch,valueMissing:s.valueMissing},o.validationMessage||"Please enter a valid value.",n)}function o(t,o){"function"==typeof t.setValidity&&(o.disabled||!o.required||o.checked?t.setValidity({}):t.setValidity({valueMissing:!0},"Please select this option to continue.",o.anchor))}export{o as a,t as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,t as e,p as i,H as n}from"./p-
|
|
1
|
+
import{h as t,t as e,p as i,H as n}from"./p-CpbWWDiY.js";import{M as r,S as s,a as o,b as a,v as c,d as l,e as h,X as d,f,g as u,p as w,i as p}from"./p-CpI3m4_T.js";function m(e){const[i,n,r]=e;return t(i,n,r?.map(m))}const g=[".png",".jpg",".jpeg",".webp",".gif",".ico"],b="http://localhost",y=["http:","https:","file:","blob:"];function v(t,e){return t?.trim()||e}function x(t,e=b){const i=new URL(t,e);if(!(y.includes(i.protocol)||"data:"===i.protocol&&/^data:image\/svg\+xml(?:[;,])/i.test(t)))throw new TypeError("Icon URLs must use HTTP(S), file/blob assets, a relative path, or SVG image data.");return i}const V=i(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}name;library;lib="lucide";localPath="/assets/icons/";libraryVersion;libVersion;fetchTimeout=8e3;definition;size="md";color="currentColor";label;svgContent="";isBinary=!1;resolvedUrl="";hasError=!1;resolvedDefinition;fetchId=0;watchHandler(){this.loadIcon()}componentWillLoad(){this.loadIcon()}componentWillRender(){this.syncHostState()}componentDidRender(){this.syncHostState()}componentDidLoad(){this.syncHostState()}componentDidUpdate(){this.syncHostState()}get accessibleLabel(){const t=this.label?.trim();return t||void 0}handleImageError=()=>{this.hasError=!0,this.syncHostState()};syncHostState(){if(!this.el)return;const t=function(t){const e=t?String(t).trim():"md";return"sm"===e?"16px":"md"===e?"24px":"lg"===e?"32px":/^\d+$/.test(e)?`${e}px`:e}(this.size),e=this.accessibleLabel;this.el.style.width=t,this.el.style.height=t,this.el.style.color=this.color,this.el.classList.toggle("q-icon-error",this.hasError),this.el.classList.toggle("q-icon-binary",!this.hasError&&this.isBinary),this.el.classList.toggle("q-icon-svg",!this.hasError&&!this.isBinary),e?(this.el.setAttribute("role","img"),this.el.setAttribute("aria-label",e),this.el.setAttribute("aria-hidden","false")):(this.el.removeAttribute("role"),this.el.removeAttribute("aria-label"),this.el.setAttribute("aria-hidden","true"))}async loadIcon(){const t=++this.fetchId;this.hasError=!1,this.resolvedDefinition=void 0,this.syncHostState();const e=this.definition??u(this.name);if(e){try{this.resolvedDefinition=this.definition?w(e,"q-icon definition"):e,this.svgContent="",this.resolvedUrl="",this.isBinary=!1}catch(t){console.error(t),this.hasError=!0}return void this.syncHostState()}if(!this.name)return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,void this.syncHostState();if(p())return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,this.hasError=!0,void this.syncHostState();const i=function(t){const e=t.name.trim();if("lucide"===t.library)return`https://cdn.jsdelivr.net/npm/lucide-static@${v(t.libraryVersion,"0.416.0")}/icons/${encodeURIComponent(e)}.svg`;if("font-awesome"===t.library||"fontawesome"===t.library)return`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${v(t.libraryVersion,"6.7.2")}/svgs/solid/${encodeURIComponent(e)}.svg`;if("local"===t.library){const i=t.localPath||"/assets/icons/",n=e.search(/[?#]/),r=n<0?e:e.slice(0,n),s=n<0?"":e.slice(n),o=r.slice(r.lastIndexOf("/")+1);return`${i.endsWith("/")?i:`${i}/`}${r}${o.includes(".")?"":".svg"}${s}`}return t.library.includes("{name}")?t.library.replace("{name}",e):`${t.library.endsWith("/")?t.library:`${t.library}/`}${e}`}({name:this.name,library:this.library??this.lib,localPath:this.localPath,libraryVersion:this.libraryVersion??this.libVersion});if(function(t){try{const e=x(t);return y.includes(e.protocol)&&g.some((t=>e.pathname.toLowerCase().endsWith(t)))}catch(t){return!1}}(i))this.fetchId===t&&(this.isBinary=!0,this.resolvedUrl=i,this.svgContent="",this.syncHostState());else{this.fetchId===t&&(this.isBinary=!1,this.resolvedUrl="",this.syncHostState());try{const e=function(t,e=("undefined"!=typeof window?window.location:void 0)){const i=x(t,e?.origin&&"null"!==e.origin?e.origin:b);return e?i.href:t}(i),n=await async function(t,e){const i=Number.isFinite(e)&&e>0?e:8e3,n="undefined"!=typeof AbortController?new AbortController:void 0,s=n?setTimeout((()=>n.abort()),i):void 0;let o;try{const e=await fetch(t,n?{signal:n.signal}:void 0);if(!e.ok)throw new Error(`Failed to load icon SVG from ${t} (status: ${e.status})`);const i=e.headers?.get("content-length");if(i&&Number(i)>r)throw n?.abort(),await(e.body?.cancel().catch((()=>{}))),new Error(`Icon SVG exceeds ${r} bytes.`);if(!e.body?.getReader)throw new Error("Icon SVG requires a bounded streaming response.");o=e.body.getReader();const s=new TextDecoder("utf-8",{fatal:!0}),a=[];let c=0;for(;;){const t=await o.read();if(t.done)break;if(c+=t.value.byteLength,c>r)throw new Error(`Icon SVG exceeds ${r} bytes.`);a.push(s.decode(t.value,{stream:!0}))}return a.push(s.decode()),a.join("")}catch(t){throw n?.abort(),o&&await o.cancel().catch((()=>{})),t}finally{o?.releaseLock(),void 0!==s&&clearTimeout(s)}}(e,this.fetchTimeout),u=function(t){if("undefined"==typeof DOMParser||"undefined"==typeof XMLSerializer||"string"!=typeof t||t.length>r||(new TextEncoder).encode(t).byteLength>r||/<!\s*(?:DOCTYPE|ENTITY)/i.test(t))return"";try{const e=(new DOMParser).parseFromString(t,"image/svg+xml"),i=e.documentElement;if(e.doctype||!i||"svg"!==i.tagName||e.getElementsByTagName("parsererror").length||![null,s].includes(i.namespaceURI))return"";for(const t of Array.from(e.childNodes))if(t!==i&&8!==t.nodeType&&(3!==t.nodeType||t.textContent?.trim()))return"";const n=i.namespaceURI,r=t=>{if(t.attributes.length>h)throw new TypeError("SVG attribute limit exceeded.");const e={};for(const i of Array.from(t.attributes)){if("xlink:href"===i.name){if(i.namespaceURI!==d)throw new TypeError("Unsupported SVG attribute namespace.")}else if(i.namespaceURI&&"http://www.w3.org/2000/xmlns/"!==i.namespaceURI)throw new TypeError("Unsupported SVG attribute namespace.");e[i.name]=i.value}return e},u=f(),w=(t,e)=>{const i=[];for(const s of Array.from(t.childNodes)){if(8===s.nodeType||3===s.nodeType&&!s.textContent?.trim())continue;if(1!==s.nodeType)throw new TypeError("Unsupported SVG content.");const t=s;if(t.namespaceURI!==n)throw new TypeError("Unsupported SVG element namespace.");l(t.tagName,e,u,"Fetched SVG"),i.push([t.tagName,r(t),w(t,e+1)])}return i},p=w(i,1),m=f(),g=o(r(i),"svg",m,"Fetched SVG root"),b=a(p,m,"Fetched SVG nodes");c(b,g);const y=e.implementation.createDocument(s,"svg",null),v=(t,e)=>{for(const[i,n]of Object.entries(e))"xmlns"!==i&&"xmlns:xlink"!==i&&("xlink:href"===i?t.setAttributeNS(d,i,n):t.setAttribute(i,n))},x=(t,e)=>{for(const[i,n,r]of e){const e=y.createElementNS(s,i);v(e,n),r&&x(e,r),t.appendChild(e)}};return v(y.documentElement,g),y.documentElement.setAttribute("aria-hidden","true"),y.documentElement.setAttribute("focusable","false"),x(y.documentElement,b),(new XMLSerializer).serializeToString(y.documentElement)}catch(t){return""}}(n);if(!u)throw new Error(`Failed to sanitize icon SVG from ${e}`);this.fetchId===t&&(this.svgContent=u,this.syncHostState())}catch(e){console.error(e),this.fetchId===t&&(this.hasError=!0,this.svgContent="",this.syncHostState())}}}render(){return this.hasError?t("div",{class:"icon-fallback",part:"fallback"},t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",focusable:"false"},t("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),t("line",{x1:"9",y1:"9",x2:"15",y2:"15"}),t("line",{x1:"15",y1:"9",x2:"9",y2:"15"}))):this.resolvedDefinition?t("div",{class:"svg-container",part:"svg"},function(e){const i={xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width??e.size??24} ${e.height??e.size??24}`,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...e.attributes,width:"100%",height:"100%","aria-hidden":"true",focusable:"false"};return t("svg",i,e.node.map(m))}(this.resolvedDefinition)):this.isBinary?t("img",{src:this.resolvedUrl,alt:"","aria-hidden":"true",part:"image",style:{width:"100%",height:"100%",objectFit:"contain"},onError:this.handleImageError}):t("div",{class:"svg-container",part:"svg",innerHTML:this.svgContent})}static get watchers(){return{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],library:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}],libraryVersion:[{watchHandler:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;line-height:1}.svg-container{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}.svg-container svg{width:100% !important;height:100% !important;stroke-width:var(--q-icon-stroke-width, 2.1) !important;display:block}.icon-fallback{display:inline-flex;align-items:center;justify-content:center;color:var(--q-color-danger, #f87171);opacity:0.8;width:100%;height:100%}.icon-fallback svg{width:100%;height:100%;stroke-width:var(--q-icon-stroke-width, 2.1);display:block}"}},[513,"q-icon",{name:[1],library:[1],lib:[1],localPath:[1,"local-path"],libraryVersion:[1,"library-version"],libVersion:[1,"lib-version"],fetchTimeout:[2,"fetch-timeout"],definition:[16],size:[8],color:[1],label:[1],svgContent:[32],isBinary:[32],resolvedUrl:[32],hasError:[32],resolvedDefinition:[32]},void 0,{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],library:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}],libraryVersion:[{watchHandler:0}]}]);function E(){"undefined"!=typeof customElements&&["q-icon"].forEach((t=>{"q-icon"===t&&(customElements.get(e(t))||customElements.define(e(t),V))}))}E();export{V as Q,E as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=":root{--q-input-width-xs:5rem;--q-input-width-sm:7.5rem;--q-input-width-md:11.25rem;--q-input-width-lg:15rem;--q-input-width-xl:18.125rem;--q-input-width-xxl:22.5rem;--q-control-radius-sm:0.34375rem;--q-control-radius-md:0.4375rem;--q-control-radius-lg:0.53125rem;--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-dialog-backdrop-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-dialog-backdrop-solid-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3);--q-border-width:1px;--q-border:var(--q-border-width) solid var(--q-border-color);--q-focus-ring:2px solid var(--q-color-primary);--q-font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--q-font-weight-normal:400;--q-font-weight-bold:600;--q-radius-sm:4px;--q-radius-md:7px;--q-radius-lg:11px;--q-transition-fast:150ms ease;--q-transition-normal:250ms cubic-bezier(0.4, 0, 0.2, 1);--q-transition-slow:400ms cubic-bezier(0.4, 0, 0.2, 1);--q-z-index-overlay:1000;--q-z-index-popover:1100;--q-z-index-toast:1200;--q-hover-transform:translateY(-4px) scale(1.02);--q-btn-hover-overlay:color-mix(in srgb, var(--q-fg-base) 8%, transparent);--q-card-border:var(--q-border);--q-card-hover-transform:var(--q-hover-transform);--q-card-transition-duration:var(--q-transition-normal);--q-step-diag-line:2px solid var(--q-border-color);--q-step-diag-border:var(--q-border);--q-thumb-aspect-ratio:16 / 9;--q-thumb-border:2px solid var(--q-thumb-border-color);--q-thumb-hover-transform:var(--q-hover-transform);--q-thumb-overlay-bg:rgba(0, 0, 0, 0.4);--q-thumb-radius:var(--q-radius-md);--q-thumb-border-color:transparent;--q-thumb-glow:var(--q-glow-interactive);--q-reel-columns-desktop:repeat(auto-fill, minmax(200px, 1fr));--q-reel-columns-mobile:1fr;--q-lightbox-max-size:90vh;--q-reel-lightbox-btn-bg:rgba(0, 0, 0, 0.5);--q-reel-lightbox-btn-border:1px solid rgba(255, 255, 255, 0.2);--q-reel-lightbox-btn-color:#ffffff;--q-reel-lightbox-btn-hover-bg:rgba(255, 255, 255, 0.2);--q-avatar-bg:var(--q-bg-surface-3);--q-avatar-fg:var(--q-fg-base);--q-avatar-border:var(--q-border);--q-conversation-incoming-bg:var(--q-bg-surface-2);--q-conversation-outgoing-bg:var(--q-color-primary);--q-conversation-outgoing-fg:#ffffff;--q-conversation-system-bg:transparent;--q-conversation-system-fg:var(--q-fg-muted);--q-carousel-arrow-bg:var(--q-bg-overlay);--q-carousel-arrow-border:var(--q-border);--q-carousel-arrow-color:#ffffff;--q-progress-transition:var(--q-transition-normal);--q-progress-indeterminate-duration:1.4s;--q-progress-linear-radius:999px;--q-progress-circular-linecap:round;--q-progress-circular-font-weight:var(--q-font-weight-bold);--q-btn-font-weight:var(--q-font-weight-bold);--q-btn-active-transform:scale(0.97);--q-btn-transition:all 150ms cubic-bezier(0.4, 0, 0.2, 1);--q-chip-radius:999px;--q-chip-border:var(--q-border);--q-chip-font-weight:var(--q-font-weight-bold);--q-chip-active-transform:scale(0.97);--q-field-border:var(--q-border);--q-field-border-color-focus:var(--q-color-primary);--q-input-border:var(--q-field-border);--q-dropdown-border:var(--q-field-border);--q-panel-border:var(--q-border);--q-sidepanel-bg:var(--q-bg-surface-1);--q-sidepanel-border:var(--q-border);--q-sidepanel-shadow:var(--q-shadow-high);--q-sidepanel-panel-width:320px;--q-sidepanel-panel-section-border:var(--q-border);--q-map-height:100%;--q-map-min-height:240px;--q-map-bg:var(--q-bg-surface-1);--q-map-border:var(--q-border);--q-map-radius:var(--q-radius-lg);--q-map-marker-color:var(--q-color-primary);--q-map-marker-success:var(--q-color-success);--q-map-marker-warning:var(--q-color-warning);--q-map-marker-danger:var(--q-color-danger);--q-map-marker-muted:var(--q-fg-muted);--q-map-marker-selected-color:var(--q-fg-base);--q-map-marker-selected-shadow:var(--q-shadow-medium);--q-map-attribution-bg:var(--q-bg-base);--q-map-attribution-color:var(--q-fg-muted);--q-scrollbar-width:6px;--q-scrollbar-width-thin:thin;--q-scrollbar-track-color:transparent;--q-scrollbar-thumb-color:var(--q-border-color, #374151);--q-scrollbar-thumb-color-hover:var(--q-color-primary, #60a5fa);--q-scrollbar-radius:var(--q-radius-sm, 4px)}@media (prefers-color-scheme: light){:root{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3);--q-sidepanel-bg:var(--q-bg-surface-1)}}[data-theme='light']{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3);--q-sidepanel-bg:var(--q-bg-surface-1)}[data-theme='dark']{--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3);--q-sidepanel-bg:var(--q-bg-surface-1)}:where(:root,[data-wq-preset='compact']){--q-space-none:0rem;--q-space-xs:0.25rem;--q-space-sm:0.5rem;--q-space-md:0.75rem;--q-space-lg:1rem;--q-space-xl:1.5rem;--q-space-2xl:2rem;--q-space-3xl:3rem;--q-control-height-sm:1.75rem;--q-control-font-sm:0.75rem;--q-control-line-sm:1rem;--q-control-padding-sm:0.5rem;--q-control-icon-sm:0.875rem;--q-control-height-md:2.25rem;--q-control-font-md:0.875rem;--q-control-line-md:1.25rem;--q-control-padding-md:0.75rem;--q-control-icon-md:1rem;--q-control-height-lg:2.75rem;--q-control-font-lg:1rem;--q-control-line-lg:1.5rem;--q-control-padding-lg:1rem;--q-control-icon-lg:1.25rem;--q-font-size-sm:0.7rem;--q-font-size-base:0.9rem;--q-font-size-lg:1rem;--q-padding-sm:var(--q-space-sm, .5rem);--q-padding-md:var(--q-space-md, .75rem);--q-padding-lg:var(--q-space-lg, 1rem);--q-step-diag-icon-size:32px;--q-step-diag-item-gap:24px;--q-reel-gap:12px;--q-avatar-size-sm:28px;--q-avatar-size-md:40px;--q-avatar-size-lg:56px;--q-carousel-gap:16px;--q-carousel-padding:24px 20px;--q-carousel-arrow-size:40px;--q-carousel-indicator-gap:8px;--q-carousel-indicator-size:6px;--q-progress-linear-height-sm:4px;--q-progress-linear-height-md:6px;--q-progress-linear-height-lg:8px;--q-progress-circular-size-sm:64px;--q-progress-circular-size-md:120px;--q-progress-circular-size-lg:180px;--q-progress-circular-stroke-width-sm:6px;--q-progress-circular-stroke-width-md:8px;--q-progress-circular-stroke-width-lg:10px;--q-btn-icon-padding-sm:4px;--q-btn-icon-padding-md:6px;--q-btn-icon-padding-lg:9px;--q-chip-padding-sm:4px 9px;--q-chip-padding-md:6px 11px;--q-chip-padding-lg:8px 14px;--q-chip-height-sm:24px;--q-chip-height-md:30px;--q-chip-height-lg:36px;--q-sidepanel-panel-padding:var(--q-padding-lg);--q-sidepanel-panel-header-padding:var(--q-padding-lg);--q-sidepanel-panel-footer-padding:var(--q-padding-lg);--q-map-marker-size:20px;--q-map-marker-size-small:16px;--q-map-marker-size-medium:var(--q-map-marker-size);--q-map-marker-size-large:24px;--q-text-body-size:var(--q-font-size-base);--q-text-body-line-height:1.5;--q-text-small-size:var(--q-font-size-sm);--q-text-small-line-height:1.5;--q-heading-display-size:var(--q-font-size-lg);--q-heading-display-line-height:1.3;--q-heading-1-size:var(--q-font-size-lg);--q-heading-2-size:var(--q-font-size-lg);--q-heading-3-size:var(--q-font-size-lg);--q-heading-4-size:var(--q-font-size-lg);--q-heading-5-size:var(--q-font-size-lg);--q-heading-6-size:var(--q-font-size-lg);--q-heading-1-line-height:1.3;--q-heading-2-line-height:1.3;--q-heading-3-line-height:1.3;--q-heading-4-line-height:1.3;--q-heading-5-line-height:1.3;--q-heading-6-line-height:1.3;--q-content-paragraph-gap:var(--q-padding-lg);--q-content-heading-gap:var(--q-padding-lg);--q-content-section-gap:var(--q-space-2xl);--q-content-padding:var(--q-padding-lg);--q-field-text-size:.75rem;--q-field-text-line:1rem;--q-toolbar-height:0px;--q-toolbar-compact-height:0px;--q-font-size-xs:0.7rem;--q-font-size-2xs:0.625rem;--q-btn-circle-size:120px;--q-btn-circle-padding:12px;--q-table-toolbar-padding-block:12px;--q-table-toolbar-padding-inline:16px;--q-bar-edge-padding:24px;--q-bar-edge-compact-padding:16px;--q-table-cell-padding-block:4.5px;--q-table-cell-padding-inline:8px;--q-dropdown-option-padding:10px 14px;--q-tooltip-padding:6px 10px;--q-syntax-padding:var(--q-padding-lg, 1rem);--q-syntax-compact-padding:10px;--q-syntax-header-padding:4px 16px;--q-sidepanel-nav-font:0.875rem;--q-sidepanel-nav-small-font:0.75rem;--q-sidepanel-nav-badge-font:0.65rem;--q-navbar-item-height:36px;--q-navbar-gap:20px;--q-navbar-height:64px;--q-navbar-compact-height:52px;--q-navbar-logo-size:32px;--q-navbar-brand-size:1rem;--q-navbar-nav-gap:6px;--q-navbar-action-gap:8px;--q-navbar-item-gap:8px;--q-navbar-item-padding:7px 10px;--q-navbar-item-size:0.9rem;--q-navbar-item-icon-only-size:40px;--q-navbar-item-icon-only-padding:8px;--q-navbar-mobile-panel-padding:8px 16px 16px;--q-avatar-font-size:0.8rem;--q-avatar-font-size-sm:0.65rem;--q-avatar-font-size-lg:1rem;--q-conversation-gap:10px;--q-conversation-header-gap:4px;--q-conversation-header-inset:4px;--q-conversation-padding:11px 13px;--q-conversation-footer-gap:10px;--q-conversation-footer-margin:6px;--q-conversation-meta-gap:6px;--q-conversation-compact-padding:7px 10px;--q-alert-padding:12px 14px;--q-alert-gap:10px;--q-alert-actions-gap:8px;--q-pagination-button-height:30px;--q-pagination-button-padding:5px 8px;--_q-preset-tabs-height-sm:34px;--_q-preset-tabs-height-md:42px;--_q-preset-tabs-height-lg:50px;--_q-preset-tabs-padding-sm:6px 10px;--_q-preset-tabs-padding-md:9px 16px;--_q-preset-tabs-padding-lg:14px 18px}:where([data-wq-preset='comfortable']){--q-space-none:0rem;--q-space-xs:0.375rem;--q-space-sm:0.75rem;--q-space-md:1rem;--q-space-lg:1.5rem;--q-space-xl:2rem;--q-space-2xl:3rem;--q-space-3xl:4rem;--q-control-height-sm:2.25rem;--q-control-font-sm:0.875rem;--q-control-line-sm:1.25rem;--q-control-padding-sm:0.75rem;--q-control-icon-sm:1rem;--q-control-height-md:2.75rem;--q-control-font-md:1rem;--q-control-line-md:1.5rem;--q-control-padding-md:1rem;--q-control-icon-md:1.25rem;--q-control-height-lg:3.25rem;--q-control-font-lg:1.125rem;--q-control-line-lg:1.75rem;--q-control-padding-lg:1.25rem;--q-control-icon-lg:1.5rem;--q-font-size-sm:0.875rem;--q-font-size-base:1.125rem;--q-font-size-lg:1.5rem;--q-padding-sm:var(--q-space-sm, .75rem);--q-padding-md:var(--q-space-md, 1rem);--q-padding-lg:var(--q-space-lg, 1.5rem);--q-step-diag-icon-size:40px;--q-step-diag-item-gap:32px;--q-reel-gap:24px;--q-avatar-size-sm:32px;--q-avatar-size-md:48px;--q-avatar-size-lg:64px;--q-carousel-gap:24px;--q-carousel-padding:32px 24px;--q-carousel-arrow-size:44px;--q-carousel-indicator-gap:12px;--q-carousel-indicator-size:8px;--q-progress-linear-height-sm:6px;--q-progress-linear-height-md:8px;--q-progress-linear-height-lg:10px;--q-progress-circular-size-sm:80px;--q-progress-circular-size-md:144px;--q-progress-circular-size-lg:200px;--q-progress-circular-stroke-width-sm:8px;--q-progress-circular-stroke-width-md:10px;--q-progress-circular-stroke-width-lg:12px;--q-btn-icon-padding-sm:6px;--q-btn-icon-padding-md:8px;--q-btn-icon-padding-lg:12px;--q-chip-padding-sm:6px 12px;--q-chip-padding-md:8px 16px;--q-chip-padding-lg:10px 20px;--q-chip-height-sm:32px;--q-chip-height-md:40px;--q-chip-height-lg:48px;--q-sidepanel-panel-padding:var(--q-padding-lg);--q-sidepanel-panel-header-padding:var(--q-padding-lg);--q-sidepanel-panel-footer-padding:var(--q-padding-lg);--q-map-marker-size:24px;--q-map-marker-size-small:20px;--q-map-marker-size-medium:var(--q-map-marker-size);--q-map-marker-size-large:28px;--q-text-body-size:var(--q-font-size-base);--q-text-body-line-height:1.6;--q-text-small-size:var(--q-font-size-sm);--q-text-small-line-height:1.5;--q-heading-display-size:clamp(2.5rem, 1.75rem + 3vw, 4rem);--q-heading-display-line-height:1.1;--q-heading-1-size:clamp(27px, 1.5rem + 2vw, 36px);--q-heading-2-size:clamp(1.4rem, 1.1rem + 1.2vw, 2rem);--q-heading-3-size:clamp(1.265625rem, 1.0546875rem + 0.84375vw, 1.6875rem);--q-heading-4-size:1.25rem;--q-heading-5-size:1.25rem;--q-heading-6-size:1.125rem;--q-heading-1-line-height:1.2;--q-heading-2-line-height:1.2;--q-heading-3-line-height:1.3;--q-heading-4-line-height:1.3;--q-heading-5-line-height:1.3;--q-heading-6-line-height:1.3;--q-content-paragraph-gap:1.5rem;--q-content-heading-gap:1.5rem;--q-content-section-gap:clamp(3rem, 2rem + 4vw, 6rem);--q-content-padding:clamp(1.5rem, 1rem + 2vw, 3rem);--q-field-text-size:.875rem;--q-field-text-line:1.25rem;--q-toolbar-height:72px;--q-toolbar-compact-height:60px;--q-font-size-xs:0.8125rem;--q-font-size-2xs:0.75rem;--q-btn-circle-size:144px;--q-btn-circle-padding:16px;--q-table-toolbar-padding-block:16px;--q-table-toolbar-padding-inline:24px;--q-bar-edge-padding:32px;--q-bar-edge-compact-padding:24px;--q-table-cell-padding-block:10px;--q-table-cell-padding-inline:14px;--q-dropdown-option-padding:12px 18px;--q-tooltip-padding:8px 14px;--q-syntax-padding:var(--q-padding-lg, 1.5rem);--q-syntax-compact-padding:16px;--q-syntax-header-padding:8px 24px;--q-sidepanel-nav-font:1rem;--q-sidepanel-nav-small-font:0.875rem;--q-sidepanel-nav-badge-font:0.75rem;--q-navbar-item-height:44px;--q-navbar-gap:28px;--q-navbar-height:72px;--q-navbar-compact-height:60px;--q-navbar-logo-size:40px;--q-navbar-brand-size:1.25rem;--q-navbar-nav-gap:10px;--q-navbar-action-gap:12px;--q-navbar-item-gap:12px;--q-navbar-item-padding:10px 14px;--q-navbar-item-size:1rem;--q-navbar-item-icon-only-size:44px;--q-navbar-item-icon-only-padding:10px;--q-navbar-mobile-panel-padding:12px 24px 24px;--q-avatar-font-size:1rem;--q-avatar-font-size-sm:0.75rem;--q-avatar-font-size-lg:1.25rem;--q-conversation-gap:16px;--q-conversation-header-gap:6px;--q-conversation-header-inset:6px;--q-conversation-padding:16px 20px;--q-conversation-footer-gap:16px;--q-conversation-footer-margin:10px;--q-conversation-meta-gap:10px;--q-conversation-compact-padding:10px 14px;--q-alert-padding:16px 20px;--q-alert-gap:16px;--q-alert-actions-gap:12px;--q-pagination-button-height:44px;--q-pagination-button-padding:8px 12px;--_q-preset-tabs-height-sm:40px;--_q-preset-tabs-height-md:48px;--_q-preset-tabs-height-lg:56px;--_q-preset-tabs-padding-sm:8px 14px;--_q-preset-tabs-padding-md:12px 20px;--_q-preset-tabs-padding-lg:16px 24px}";function r(e,r,a){const t="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;e&&e!==t;){const t=Object.getOwnPropertyDescriptor(e,r);if(t&&(!a||t.get))return t;e=Object.getPrototypeOf(e)}}var a,t=(e,a)=>{var t;Object.entries(null!=(t=a.o.t)?t:{}).map((([t,[n]])=>{if(31&n||32&n){const n=e[t],o=r(Object.getPrototypeOf(e),t,!0)||Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(e,t,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:!0,enumerable:!0}),a.i.has(t)?e[t]=a.i.get(t):void 0!==n&&(e[t]=n)}}))},n=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},o=(e,r)=>r in e,i=(e,r)=>(0,console.error)(e,r),s=new Map,l="http://www.w3.org/1999/xlink",p=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],c="undefined"!=typeof window?window:{},q=c.HTMLElement||class{},d={l:0,p:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,r,a,t)=>e.addEventListener(r,a,t),rel:(e,r,a,t)=>e.removeEventListener(r,a,t),ce:(e,r)=>new CustomEvent(e,r)},g=(()=>{var e;let r=!1;try{null==(e=c.document)||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){r=!0}}))}catch(e){}return r})(),m=(()=>{try{return!!c.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),f=!!m&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),b=!1,h=[],u=[],x=()=>{var e;return(null==(e=c.document)?void 0:e.hidden)?setTimeout(y,16):d.raf(y)},v=(e,r)=>a=>{e.push(a),b||(b=!0,r&&4&d.l?z(y):x())},w=e=>{for(let r=0;r<e.length;r++)try{e[r](performance.now())}catch(e){i(e)}e.length=0},y=()=>{w(h),w(u),(b=h.length>0)&&x()},z=e=>Promise.resolve(undefined).then(e),k=v(u,!0),$=e=>{const r=new URL(e,d.p);return r.origin!==c.location.origin?r.href:r.pathname},j=e=>d.p=e;function O(r){var t;const n={mode:"open"};n.delegatesFocus=!!(16&r.l);const o=this.attachShadow(n);if(void 0===a&&(a=null!=(t=function(e){if(!m)return;const r=new CSSStyleSheet;return r.replaceSync(e),r}(e))?t:null),a)f?o.adoptedStyleSheets.push(a):o.adoptedStyleSheets=[...o.adoptedStyleSheets,a];else if(!m){const r=document.createElement("style");r.innerHTML=e,o.prepend(r)}}var S,_=new WeakMap,M=e=>"sc-"+e.q,C=e=>"object"==(e=typeof e)||"function"===e,E=(e,r,...a)=>{let t=null,n=null,o=!1,s=!1;const l=[],p=r=>{for(let a=0;a<r.length;a++)if(t=r[a],Array.isArray(t))p(t);else if(null!=t&&"boolean"!=typeof t){if(o="function"!=typeof e&&!C(t))t=String(t);else if("function"!=typeof e&&void 0===t.l){i("Invalid vNode child");continue}o&&s?l[l.length-1].m+=t:l.push(o?A(null,t):t),s=o}};if(p(a),r){r.key&&(n=r.key);{const e=r.className||r.class;e&&(r.class="object"!=typeof e?e:Object.keys(e).filter((r=>e[r])).join(" "))}}if("function"==typeof e)return e(null===r?{}:r,l,N);const c=A(e,null);return c.h=r,l.length>0&&(c.u=l),c.v=n,c},A=(e,r)=>({l:0,k:e,m:null!=r?r:null,$:null,u:null,h:null,v:null}),R={},N={forEach:(e,r)=>e.map(D).forEach(r),map:(e,r)=>e.map(D).map(r).map(H)},D=e=>({vattrs:e.h,vchildren:e.u,vkey:e.v,vname:e.j,vtag:e.k,vtext:e.m}),H=e=>{if("function"==typeof e.vtag){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),E(e.vtag,r,...e.vchildren||[])}const r=A(e.vtag,e.vtext);return r.h=e.vattrs,r.u=e.vchildren,r.v=e.vkey,r.j=e.vname,r},L=e=>{if(!e)return;const r=Object.keys(e);if(0===r.length)return;let a=!1;for(const t of r){if(a)break;for(const r of e[t])if("string"==typeof r){a=!0;break}}if(!a)return e;const t={};for(const a of r)t[a]=e[a].map((e=>"string"==typeof e?{[e]:0}:e));return t},U=(e,r,a)=>null==e||C(e)?e:4&r?(a&&"string"==typeof e||"false"!==e)&&(""===e||!!e):2&r?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&r?String(e):e,F=(e,r)=>{const a=e;return{emit:e=>P(a,r,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},P=(e,r,a)=>{const t=d.ce(r,a);return e.dispatchEvent(t),t},T=(e,r,a,t,i,s)=>{if(a===t)return;let p=o(e,r),q=r.toLowerCase();if("class"===r){const r=e.classList,n=Y(a);let o=Y(t);{let e=n.filter((e=>e&&!o.includes(e)));r.remove(...e),r.add(...o.filter((e=>e&&!n.includes(e))))}}else if("style"===r){for(const r in a)t&&null!=t[r]||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in t)a&&t[r]===a[r]||(r.includes("-")?e.style.setProperty(r,t[r]):e.style[r]=t[r])}else if("key"===r);else if("ref"===r)t&&se(t,e);else if(e.__lookupSetter__(r)||"o"!==r[0]||"n"!==r[1]){if("a"===r[0]&&r.startsWith("attr:")){const a=r.slice(5);let o;{const r=n(e);if(r&&r.o&&r.o.t){const e=r.o.t[a];e&&e[1]&&(o=e[1])}}return o||(o=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==t||!1===t?!1===t&&""!==e.getAttribute(o)||e.removeAttribute(o):e.setAttribute(o,!0===t?"":t))}if("p"===r[0]&&r.startsWith("prop:")){const a=r.slice(5);try{e[a]=t}catch(e){}return}{const n=C(t);if((p||n&&null!==t)&&!i)try{if(e.tagName.includes("-"))e[r]!==t&&(e[r]=t);else{const n=null==t?"":t;"list"===r?p=!1:null!=a&&e[r]===n||("function"==typeof e.__lookupSetter__(r)?e[r]=n:e.setAttribute(r,n))}}catch(e){}let o=!1;q!==(q=q.replace(/^xlink\:?/,""))&&(r=q,o=!0),null==t||!1===t?(!1!==t||""===e.getAttribute(r)||4&s&&!V(r))&&(o?e.removeAttributeNS(l,r):e.removeAttribute(r)):(!p||4&s||i)&&!n&&1===e.nodeType&&(t=!0===t?"":t,o?e.setAttributeNS(l,r,t):e.setAttribute(r,t))}}else if(r="-"===r[2]?r.slice(3):o(c,q)?q.slice(2):q[2]+r.slice(3),a||t){const n=r.endsWith(B);r=r.replace(Z,""),a&&d.rel(e,r,a,n),t&&d.ael(e,r,t,n)}},W=new Set(["draggable","contenteditable","spellcheck"]),V=e=>W.has(e)||e.startsWith("aria-"),I=/\s/,Y=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(I):[]),B="Capture",Z=new RegExp(B+"$"),G=(e,r,a)=>{const t=11===r.$.nodeType&&r.$.host?r.$.host:r.$,n=e&&e.h||{},o=r.h||{};for(const e of J(Object.keys(n)))e in o||T(t,e,n[e],void 0,a,r.l);for(const e of J(Object.keys(o)))T(t,e,n[e],o[e],a,r.l)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=!1,X=[],ee=[],re=(e,r,a)=>{const t=r.u[a];let n,o,i=0;if(null!=t.m)n=t.$=c.document.createTextNode(t.m);else{if(Q||(Q="svg"===t.k),!c.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=t.$=c.document.createElementNS(Q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",t.k),Q&&"foreignObject"===t.k&&(Q=!1),G(null,t,Q),t.u){const r="template"===t.k?n.content:n;for(i=0;i<t.u.length;++i)o=re(e,t,i),o&&r.appendChild(o)}"svg"===t.k?Q=!1:"foreignObject"===n.tagName&&(Q=!0)}return n["s-hn"]=S,n},ae=(e,r,a,t,n,o)=>{let i,s=e;for(s.shadowRoot&&s.tagName===S&&(s=s.shadowRoot),"template"===a.k&&(s=s.content);n<=o;++n)t[n]&&(i=re(null,a,n),i&&(t[n].$=i,le(s,i,r)))},te=(e,r,a)=>{for(let t=r;t<=a;++t){const r=e[t];if(r){const e=r.$;ie(r),e&&e.remove()}}},ne=(e,r,a=!1)=>e.k===r.k&&(a?(a&&!e.v&&r.v&&(e.v=r.v),!0):e.v===r.v),oe=(e,r,a=!1)=>{const t=r.$=e.$,n=e.u,o=r.u,i=r.k,s=r.m;null==s?(Q="svg"===i||"foreignObject"!==i&&Q,"slot"!==i||K||e.j!==r.j&&(r.$["s-sn"]=r.j||"",(e=>{d.l|=1;const r=e.closest(S.toLowerCase());if(null!=r){const a=Array.from(r.__childNodes||r.childNodes).find((e=>e["s-cr"])),t=Array.from(e.__childNodes||e.childNodes);for(const e of a?t.reverse():t)null!=e["s-sh"]&&(le(r,e,null!=a?a:null),e["s-sh"]=void 0)}d.l&=-2})(r.$.parentElement)),G(e,r,Q),null!==n&&null!==o?((e,r,a,t,n=!1)=>{let o,i,s=0,l=0,p=0,c=0,q=r.length-1,d=r[0],g=r[q],m=t.length-1,f=t[0],b=t[m];const h="template"===a.k?e.content:e;for(;s<=q&&l<=m;)if(null==d)d=r[++s];else if(null==g)g=r[--q];else if(null==f)f=t[++l];else if(null==b)b=t[--m];else if(ne(d,f,n))oe(d,f,n),d=r[++s],f=t[++l];else if(ne(g,b,n))oe(g,b,n),g=r[--q],b=t[--m];else if(ne(d,b,n))oe(d,b,n),le(h,d.$,g.$.nextSibling),d=r[++s],b=t[--m];else if(ne(g,f,n))oe(g,f,n),le(h,g.$,d.$),g=r[--q],f=t[++l];else{for(p=-1,c=s;c<=q;++c)if(r[c]&&null!==r[c].v&&r[c].v===f.v){p=c;break}p>=0?(i=r[p],i.k!==f.k?o=re(r&&r[l],a,l):(oe(i,f,n),r[p]=void 0,o=i.$),f=t[++l]):(o=re(r&&r[l],a,l),f=t[++l]),o&&le(d.$.parentNode,o,d.$)}s>q?ae(e,null==t[m+1]?null:t[m+1].$,a,t,l,m):l>m&&te(r,s,q)})(t,n,r,o,a):null!==o?(null!==e.m&&(t.textContent=""),ae(t,null,r,o,0,o.length-1)):!a&&null!==n&&te(n,0,n.length-1),Q&&"svg"===i&&(Q=!1)):e.m!==s&&(t.data=s)},ie=e=>{e.h&&e.h.ref&&X.push((()=>e.h.ref(null))),e.u&&e.u.map(ie)},se=(e,r)=>{ee.push((()=>e(r)))},le=(e,r,a)=>null==e?void 0:e.insertBefore(r,a),pe=(e,r,a=!1)=>{const t=e.$hostElement$,n=e.o,o=e.O||A(null,null);var i;const s=(i=r)&&i.k===R?r:E(null,null,r);if(S=t.tagName,n.S&&(s.h=s.h||{},n.S.forEach((([e,r])=>{s.h[r]=t[e]}))),a&&s.h)for(const e of Object.keys(s.h))t.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.h[e]=t[e]);s.k=null,s.l|=4,e.O=s,s.$=o.$=t.shadowRoot||t,K=!(!(1&n.l)||128&n.l),oe(o,s,a),X.forEach((e=>e())),X.length=0,ee.forEach((e=>e())),ee.length=0},ce=(e,r)=>{if(r&&!e._&&r["s-p"]){const a=r["s-p"].push(new Promise((t=>e._=()=>{r["s-p"].splice(a-1,1),t()})))}},qe=(e,r)=>{if(e.l|=16,4&e.l)return void(e.l|=512);ce(e,e.M);const a=()=>de(e,r);if(!r)return k(a);queueMicrotask((()=>{a()}))},de=(e,r)=>{const a=e.$hostElement$,t=a;if(!t)throw new Error(`Can't render component <${a.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=ve(t,r?"componentWillLoad":"componentWillUpdate",void 0,a),n=ge(n,(()=>ve(t,"componentWillRender",void 0,a))),ge(n,(()=>fe(e,t,r)))},ge=(e,r)=>me(e)?e.then(r).catch((e=>{console.error(e),r()})):r(),me=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=async(e,r,a)=>{var t;const n=e.$hostElement$,o=n["s-rc"];a&&(e=>{const r=e.o,a=e.$hostElement$,t=r.l,n=((e,r)=>{var a,t,n;const o=M(r),i=s.get(o);if(!c.document)return o;if(e=11===e.nodeType?e:c.document,i)if("string"==typeof i){let n,s=_.get(e=e.head||e);if(s||_.set(e,s=new Set),!s.has(o)){n=c.document.createElement("style"),n.textContent=i;const l=null!=(a=d.C)?a:function(){var e,r,a;return null!=(a=null==(r=null==(e=c.document.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?a:void 0}();if(null!=l&&n.setAttribute("nonce",l),!(1&r.l))if("HEAD"===e.nodeName){const r=e.querySelectorAll("link[rel=preconnect]"),a=r.length>0?r[r.length-1].nextSibling:e.querySelector("style");e.insertBefore(n,(null==a?void 0:a.parentNode)===e?a:null)}else if("host"in e)if(m){const r=new(null!=(t=e.defaultView)?t:e.ownerDocument.defaultView).CSSStyleSheet;r.replaceSync(i),f?e.adoptedStyleSheets.unshift(r):e.adoptedStyleSheets=[r,...e.adoptedStyleSheets]}else{const r=e.querySelector("style");r?r.textContent=i+r.textContent:e.prepend(n)}else e.append(n);1&r.l&&e.insertBefore(n,null),4&r.l&&(n.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(o)}}else{let r=_.get(e);if(r||_.set(e,r=new Set),!r.has(o)){const a=null!=(n=e.defaultView)?n:e.ownerDocument.defaultView;let t;if(i.constructor===a.CSSStyleSheet)t=i;else{t=new a.CSSStyleSheet;for(let e=0;e<i.cssRules.length;e++)t.insertRule(i.cssRules[e].cssText,e)}f?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],r.add(o)}}return o})(a.shadowRoot?a.shadowRoot:a.getRootNode(),r);10&t&&(a["s-sc"]=n,a.classList.add(n+"-h"))})(e);be(e,r,n,a),o&&(o.map((e=>e())),n["s-rc"]=void 0);{const r=null!=(t=n["s-p"])?t:[],a=()=>he(e);0===r.length?a():(Promise.all(r).then(a).catch(a),e.l|=4,r.length=0)}},be=(e,r,a,t)=>{try{r=r.render(),e.l&=-17,e.l|=2,pe(e,r,t)}catch(r){i(r,e.$hostElement$)}return null},he=e=>{const r=e.$hostElement$,a=r,t=e.M;ve(a,"componentDidRender",void 0,r),64&e.l?ve(a,"componentDidUpdate",void 0,r):(e.l|=64,we(r),ve(a,"componentDidLoad",void 0,r),e.A(r),t||xe()),e._&&(e._(),e._=void 0),512&e.l&&z((()=>qe(e,!1))),e.l&=-517},ue=e=>{var r;{const a=n(e),t=null==(r=null==a?void 0:a.$hostElement$)?void 0:r.isConnected;return t&&2==(18&a.l)&&qe(a,!1),t}},xe=()=>{z((()=>P(c,"appload",{detail:{namespace:"webquark"}})))},ve=(e,r,a,t)=>{if(e&&e[r])try{return e[r](a)}catch(e){i(e,t)}},we=e=>e.classList.add("hydrated"),ye=(e,r,a,t)=>{const o=n(e);if(!o)return;const s=e,l=o.i.get(r),p=o.l,c=s;a=U(a,t.t[r][0],!!(64&t.l));const q=Number.isNaN(l)&&Number.isNaN(a);if(a!==l&&!q){if(o.i.set(r,a),t.R){const e=t.R[r];e&&e.map((e=>{try{const[[t,n]]=Object.entries(e);(128&p||1&n)&&(c?c[t](a,l,r):o.N.push((()=>{o.D[t](a,l,r)})))}catch(e){i(e,s)}}))}if(2&p){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(a,l,r)&&!(16&p))return;16&p||qe(o,!1)}}},ze=(e,a,t)=>{var o,i;const s=e.prototype;64&a.l&&1&t&&p.forEach((e=>{const r=s[e];Object.defineProperty(s,e,{value(...a){var t;const o=n(this),i=this;i?"function"==typeof r&&r.call(i,...a):null==(t=null==o?void 0:o.H)||t.then((r=>{const t=r[e];"function"==typeof t&&t.call(r,...a)}))}})}));{e.watchers&&!a.R&&(a.R=L(e.watchers)),e.deserializers&&!a.L&&(a.L=e.deserializers),e.serializers&&!a.U&&(a.U=e.serializers);const t=Object.entries(null!=(o=a.t)?o:{});t.map((([e,[t]])=>{if(31&t||32&t){const{get:o,set:i}=r(s,e)||{};o&&(a.t[e][0]|=2048),i&&(a.t[e][0]|=4096),Object.defineProperty(s,e,{get(){return o?o.apply(this):(r=e,n(this).i.get(r));var r},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(r){const o=n(this);if(o){if(i)return void 0===(32&t?this[e]:o.$hostElement$[e])&&o.i.get(e)&&(r=o.i.get(e)),i.apply(this,[U(r,t,!!(64&a.l))]),void ye(this,e,r=32&t?this[e]:o.$hostElement$[e],a);ye(this,e,r,a)}}})}}));{const r=new Map;s.attributeChangedCallback=function(e,o,i){d.jmp((()=>{var l;const p=r.get(e),c=n(this);if(this.hasOwnProperty(p),s.hasOwnProperty(p)&&"number"==typeof this[p]&&this[p]==i)return;if(null==p){const r=null==c?void 0:c.l;if(c&&r&&!(8&r)&&i!==o){const t=this,n=null==(l=a.R)?void 0:l[e];null==n||n.forEach((a=>{const[[n,s]]=Object.entries(a);null!=t[n]&&(128&r||1&s)&&t[n].call(t,i,o,e)}))}return}const q=t.find((([e])=>e===p)),d=q?q[1][0]:0,g=4&d;if(512&d&&8&d&&!C(this[p])&&(null==(m=this[p])||!1===m?null:!0===m?"":String(m))===i)return;var m;const f=g&&null===i&&void 0===this[p];g&&(i=!(null===i||"false"===i&&!(64&a.l)));const b=Object.getOwnPropertyDescriptor(s,p);f||i==this[p]||b.get&&!b.set||(this[p]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=a.R)?i:{}),...t.filter((([e,r])=>31&r[0])).map((([e,t])=>{var n;const o=t[1]||e;return r.set(o,e),512&t[0]&&(null==(n=a.S)||n.push([e,o])),o}))]))}}return e},ke=async(e,r,a)=>{let t;try{if(!(32&r.l)&&(r.l|=32,r.l&=-1025,t=e.constructor,customElements.whenDefined(e.localName).then((()=>r.l|=128)),t&&t.style)){let e;"string"==typeof t.style&&(e=t.style);const r=M(a);if(!s.has(r)){const t=()=>{};((e,r,a)=>{let t=s.get(e);m&&a?(t=t||new CSSStyleSheet,"string"==typeof t?t=r:t.replaceSync(r)):t=r,s.set(e,t)})(r,e,!!(1&a.l)),t()}}const n=r.M,o=()=>qe(r,!0);n&&n["s-rc"]?n["s-rc"].push(o):o()}catch(a){i(a,e),r._&&(r._(),r._=void 0),!r.A||1024&r.l||r.A(e)}},$e=(e,r)=>{const a={l:r[0],q:r[1]};try{a.t=r[2],a.F=r[3],a.R=L(e.R),a.L=e.L,a.U=e.U,a.S=[];const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,r)=>{const a={l:0,$hostElement$:e,o:r,i:new Map,P:new Map};a.H=new Promise((e=>a.A=e)),e["s-p"]=[],e["s-rc"]=[];const n=a;e.__stencil__getHostRef=()=>n,512&r.l&&t(e,a)})(this,a)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=n(this);if(!e)return;Oe(this,e,a.F),this.__hasHostListenerAttached=!0}(e=>{if(!(1&d.l)){const r=n(e);if(!r)return;const a=r.o,t=()=>{};if(1&r.l)Oe(e,r,a.F),(null==r?void 0:r.D)||(1024&r.l?setTimeout((()=>ke(e,r,a)),1e3):(null==r?void 0:r.H)&&r.H.then((()=>{})));else{r.l|=1;{let a=e;for(;a=a.parentNode||a.host;)if(a["s-p"]){ce(r,r.M=a);break}}a.t&&Object.entries(a.t).map((([r,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(e,r)){const a=e[r];delete e[r],e[r]=a}})),ke(e,r,a)}t()}})(this),o&&o.call(this)},disconnectedCallback(){(async e=>{if(!(1&d.l)){const r=n(e);(null==r?void 0:r.T)&&(r.T.map((e=>e())),r.T=void 0)}_.has(e)&&_.delete(e),e.shadowRoot&&_.has(e.shadowRoot)&&_.delete(e.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${a.q}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else O.call(this,a)}}),Object.defineProperty(e,"is",{value:a.q,configurable:!0}),ze(e,a,3)}catch(r){return i(r),e}},je=(e,r)=>r,Oe=(e,r,a)=>{a&&c.document&&a.map((([a,t,n])=>{const o=_e(c.document,e,a),i=Se(r,n),s=Me(a);d.ael(o,t,i,s),(r.T=r.T||[]).push((()=>d.rel(o,t,i,s)))}))},Se=(e,r)=>a=>{try{e.$hostElement$[r](a)}catch(r){i(r,e.$hostElement$)}},_e=(e,r,a)=>8&a?c:r,Me=e=>g?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),Ce=globalThis.HTMLElement||class{};function Ee(...e){return e.reduceRight(((e,r)=>r(e)),Ce)}var Ae=e=>d.C=e,Re=e=>Object.assign(d,e),Ne=new WeakMap;function De(e,r){let a=Ne.get(r);a||(a={l:0,o:{l:0,q:r.tagName},$hostElement$:r},Ne.set(r,a)),pe(a,e)}function He(e){return e}export{je as F,q as H,Ee as M,Ae as a,Re as b,F as c,R as d,ue as f,$ as g,E as h,$e as p,De as r,j as s,He as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./p-
|
|
1
|
+
import{h as e}from"./p-CpbWWDiY.js";function r(e){return{"--_q-feedback-min":void 0===e?"var(--q-context-feedback-min, calc(var(--_q-context-feedback-reserve, 0) * var(--q-field-text-line, 1rem)))":e?"var(--q-field-text-line, 1rem)":"0px"}}function a(r,a,i){return e("span",{id:r,"aria-live":"polite",class:{"q-field-feedback":!0,"error-msg":!!a},part:a?"feedback error-msg":"feedback description"},a||i)}export{r as a,a as f}
|