@webquark/browser 1.1.0-dev.10 → 1.1.0-dev.12
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-DmLaQuU2.js} +1 -1
- package/dist/cjs/{dom-Dk77oFF6.js → dom-BYrqRYna.js} +1 -1
- package/dist/cjs/{field-CsrQGhG-.js → field-CEZ9NsWK.js} +1 -1
- package/dist/cjs/{index-DWXhKHCB.js → index-CMAcJ6t1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +1 -1
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +2 -2
- package/dist/cjs/q-banner.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +4 -4
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +1 -1
- 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 +111 -92
- package/dist/cjs/q-form.cjs.entry.js +5 -5
- 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 +9 -7
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +1 -1
- package/dist/cjs/q-media.cjs.entry.js +2 -2
- package/dist/cjs/q-navbar.cjs.entry.js +3 -3
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q-panel.cjs.entry.js +7 -7
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +4 -4
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/q-step-diagram.cjs.entry.js +2 -2
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +7 -5
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +6 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/{tokens-RMRaIOqv.js → tokens-Cd7g-VMz.js} +3 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/inputs/dropdown/dropdown.css +33 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +158 -91
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +28 -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 +1 -1
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +14 -8
- package/dist/collection/components/inputs/input/input.css +20 -0
- package/dist/collection/components/inputs/input/input.js +31 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
- package/dist/collection/components/inputs/slider/slider.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 +5 -0
- package/dist/collection/components/inputs/toggle/toggle.js +3 -3
- 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/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 +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.js +2 -2
- package/dist/collection/components/overlays/tooltip/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 +20 -2
- package/dist/collection/theme/tokens.js +3 -0
- package/dist/collection/utils/dom.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cg0Mv7Vb.js → p-0feRVg70.js} +1 -1
- package/dist/components/{p-6PPZ2sIO.js → p-4mHh96ug.js} +1 -1
- package/dist/components/p-BDsIecIx.js +1 -0
- package/dist/components/{p-CKuPOxKN.js → p-BKly3Y6e.js} +1 -1
- package/dist/components/{p-Dfp_If-_.js → p-BbY1XC6_.js} +1 -1
- package/dist/components/p-CArIPzJU.js +1 -0
- package/dist/components/p-CLErjC1f.js +1 -0
- package/dist/{webquark/p-Dhsn99q4.js → components/p-CSucjZb7.js} +1 -1
- package/dist/components/{p-BH4gQWub.js → p-CYG3Oakz.js} +1 -1
- package/dist/components/{p-DlIn_ZWk.js → p-DbI_F3z0.js} +1 -1
- package/dist/components/p-cSh-5xis.js +1 -0
- package/dist/components/q-accordion.js +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-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 +1 -1
- 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 +2 -2
- 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-DhnvhbLl.js} +1 -1
- package/dist/esm/{dom-ByfrUWx1.js → dom-CArIPzJU.js} +1 -1
- package/dist/esm/{field-zfD6OQ02.js → field-u-k7C7Rf.js} +1 -1
- package/dist/esm/{index-B5ElFlHv.js → index-DaJmsCb7.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +1 -1
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +2 -2
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +4 -4
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +2 -2
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +1 -1
- package/dist/esm/q-dialog.entry.js +4 -4
- package/dist/esm/q-divider.entry.js +24 -0
- package/dist/esm/q-dropdown.entry.js +111 -92
- package/dist/esm/q-form.entry.js +5 -5
- 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 +9 -7
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +1 -1
- package/dist/esm/q-media.entry.js +2 -2
- package/dist/esm/q-navbar.entry.js +3 -3
- package/dist/esm/q-pagination.entry.js +1 -1
- package/dist/esm/q-panel.entry.js +7 -7
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-radio-group.entry.js +4 -4
- package/dist/esm/q-reel.entry.js +4 -4
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/q-step-diagram.entry.js +2 -2
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +7 -5
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +6 -6
- package/dist/esm/q-toolbar.entry.js +4 -4
- package/dist/esm/{tokens-B4Mg1xEw.js → tokens-BDsIecIx.js} +3 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/components/theme-designer/dimension-tokens.js +9 -0
- package/dist/playground/components/theme-designer/token-row.js +89 -0
- package/dist/playground/dom-factory.js +76 -0
- package/dist/playground/utils/color.js +26 -0
- package/dist/playground/utils/dom.js +38 -0
- package/dist/playground/utils/index.js +2 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +18 -1
- package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
- 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/divider/divider.d.ts +15 -0
- package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +247 -2
- 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 +12 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +8 -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 +1 -1
- package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
- package/dist/types/theme/tokens.d.ts +9 -0
- package/dist/webquark/p-01a59ac3.entry.js +1 -0
- package/dist/webquark/{p-4d61b70d.entry.js → p-156d2fcf.entry.js} +1 -1
- package/dist/webquark/p-253add6d.entry.js +1 -0
- package/dist/webquark/{p-fec6fe0a.entry.js → p-253fb28b.entry.js} +1 -1
- package/dist/webquark/{p-8ece2c62.entry.js → p-29897ae6.entry.js} +1 -1
- package/dist/webquark/{p-f98f9439.entry.js → p-2c195546.entry.js} +1 -1
- package/dist/webquark/p-2e26f158.entry.js +1 -0
- package/dist/webquark/{p-f4f97e74.entry.js → p-33234157.entry.js} +1 -1
- package/dist/webquark/{p-fe8c634a.entry.js → p-3430b43c.entry.js} +1 -1
- package/dist/webquark/{p-f63b7214.entry.js → p-3726655f.entry.js} +1 -1
- package/dist/webquark/{p-5f232b44.entry.js → p-3af50215.entry.js} +2 -2
- package/dist/webquark/{p-9ff7e5a4.entry.js → p-44eda084.entry.js} +1 -1
- package/dist/webquark/{p-09cca7b9.entry.js → p-45e0d213.entry.js} +1 -1
- package/dist/webquark/{p-d0253d64.entry.js → p-473a1810.entry.js} +1 -1
- package/dist/webquark/{p-f1bac94c.entry.js → p-58aaa98b.entry.js} +1 -1
- package/dist/webquark/{p-0aa74ad6.entry.js → p-596737cc.entry.js} +1 -1
- package/dist/webquark/{p-36118d90.entry.js → p-5cccb6bc.entry.js} +1 -1
- package/dist/webquark/{p-9e78b796.entry.js → p-5d6fb0d1.entry.js} +1 -1
- package/dist/webquark/{p-64096386.entry.js → p-78c56cd3.entry.js} +1 -1
- package/dist/webquark/p-7a47e0c3.entry.js +1 -0
- package/dist/webquark/p-848e040a.entry.js +1 -0
- package/dist/webquark/{p-97a89cae.entry.js → p-881ecd5b.entry.js} +1 -1
- package/dist/webquark/{p-d0fbd2b1.entry.js → p-8a0733a1.entry.js} +1 -1
- package/dist/webquark/p-99ed0b0d.entry.js +1 -0
- package/dist/webquark/p-BDsIecIx.js +1 -0
- package/dist/webquark/{p-DWO-pleQ.js → p-Bk4FnOfb.js} +1 -1
- package/dist/{components/p-BofcK-7Z.js → webquark/p-BuctNczf.js} +1 -1
- package/dist/webquark/p-CArIPzJU.js +1 -0
- package/dist/webquark/p-DaJmsCb7.js +3 -0
- package/dist/webquark/{p-dd115868.entry.js → p-a199de7d.entry.js} +1 -1
- package/dist/webquark/{p-023f8437.entry.js → p-aca37b06.entry.js} +1 -1
- package/dist/webquark/p-b577b258.entry.js +1 -0
- package/dist/webquark/{p-6e28cfe2.entry.js → p-b702f60a.entry.js} +1 -1
- package/dist/webquark/{p-f9ad63ff.entry.js → p-b75ec829.entry.js} +1 -1
- package/dist/webquark/{p-48fb5228.entry.js → p-b82aaf4c.entry.js} +1 -1
- package/dist/webquark/p-b8f4994a.entry.js +1 -0
- package/dist/webquark/p-c2edfa2c.entry.js +1 -0
- package/dist/webquark/{p-030ecde3.entry.js → p-d2c4696f.entry.js} +1 -1
- package/dist/webquark/{p-6bfffa79.entry.js → p-dcea3702.entry.js} +1 -1
- package/dist/webquark/{p-3bc4629c.entry.js → p-ddeb2d4c.entry.js} +1 -1
- package/dist/webquark/{p-888e46a8.entry.js → p-dee50f0a.entry.js} +1 -1
- package/dist/webquark/{p-90b0858c.entry.js → p-e7384b6e.entry.js} +1 -1
- package/dist/webquark/p-e930a769.entry.js +1 -0
- package/dist/webquark/{p-296fbdb1.entry.js → p-f20ed85a.entry.js} +1 -1
- package/dist/webquark/p-f95aeb8d.entry.js +1 -0
- package/dist/webquark/{p-059daa8a.entry.js → p-fa15a69b.entry.js} +1 -1
- package/dist/webquark/{p-99d785ca.entry.js → p-fbd1cbbe.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-B4Mg1xEw.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/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-70d9ffde.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-B4Mg1xEw.js +0 -1
- package/dist/webquark/p-B5ElFlHv.js +0 -3
- package/dist/webquark/p-ByfrUWx1.js +0 -1
- package/dist/webquark/p-c523ec6f.entry.js +0 -1
- package/dist/webquark/p-fe200f68.entry.js +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { spaceValue } from "../../../theme/tokens";
|
|
3
|
+
/** Static, container-relative separator.
|
|
4
|
+
* @part line - The visible separator line.
|
|
5
|
+
*/
|
|
6
|
+
export class QDivider {
|
|
7
|
+
/** Physical direction of the separator. */
|
|
8
|
+
orientation = 'horizontal';
|
|
9
|
+
/** CSS length or percentage, capped to the allocated extent minus endpoint insets. */
|
|
10
|
+
length = 'auto';
|
|
11
|
+
/** Symmetric external spacing perpendicular to the line. */
|
|
12
|
+
spacing = 'lg';
|
|
13
|
+
/** Hide a purely visual separator from assistive technology. */
|
|
14
|
+
decorative = false;
|
|
15
|
+
render() {
|
|
16
|
+
return h(Host, { key: 'eadd9334a6f43375fdf364710462eef9dc0b2b22', role: this.decorative ? undefined : 'separator', "aria-orientation": this.decorative ? undefined : this.orientation, "aria-hidden": this.decorative ? 'true' : undefined, style: { '--_q-divider-length': this.length === 'auto' ? '100%' : this.length, '--_q-divider-spacing': spaceValue(this.spacing) } }, h("span", { key: '999050a927f952484de99c165f2b20132d64eec4', part: "line", "aria-hidden": "true" }));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "q-divider"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get originalStyleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["divider.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get styleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["divider.css"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get properties() {
|
|
31
|
+
return {
|
|
32
|
+
"orientation": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "'horizontal' | 'vertical'",
|
|
37
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
38
|
+
"references": {}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": "Physical direction of the separator."
|
|
45
|
+
},
|
|
46
|
+
"getter": false,
|
|
47
|
+
"setter": false,
|
|
48
|
+
"reflect": true,
|
|
49
|
+
"attribute": "orientation",
|
|
50
|
+
"defaultValue": "'horizontal'"
|
|
51
|
+
},
|
|
52
|
+
"length": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "string",
|
|
57
|
+
"resolved": "string",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": "CSS length or percentage, capped to the allocated extent minus endpoint insets."
|
|
65
|
+
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"attribute": "length",
|
|
70
|
+
"defaultValue": "'auto'"
|
|
71
|
+
},
|
|
72
|
+
"spacing": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "QSpace",
|
|
77
|
+
"resolved": "\"2xl\" | \"3xl\" | \"lg\" | \"md\" | \"none\" | \"sm\" | \"xl\" | \"xs\"",
|
|
78
|
+
"references": {
|
|
79
|
+
"QSpace": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "../../../theme/tokens",
|
|
82
|
+
"id": "../../../src/browser/theme/tokens.ts::QSpace",
|
|
83
|
+
"referenceLocation": "QSpace"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Symmetric external spacing perpendicular to the line."
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": false,
|
|
96
|
+
"attribute": "spacing",
|
|
97
|
+
"defaultValue": "'lg'"
|
|
98
|
+
},
|
|
99
|
+
"decorative": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "boolean",
|
|
104
|
+
"resolved": "boolean",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Hide a purely visual separator from assistive technology."
|
|
112
|
+
},
|
|
113
|
+
"getter": false,
|
|
114
|
+
"setter": false,
|
|
115
|
+
"reflect": false,
|
|
116
|
+
"attribute": "decorative",
|
|
117
|
+
"defaultValue": "false"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
2
|
+
import "../divider";
|
|
3
|
+
import css from "../divider.css?inline";
|
|
4
|
+
const frame = async () => { await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(() => resolve()))); };
|
|
5
|
+
async function setup(vertical = false, layout = 'flex') {
|
|
6
|
+
const wrapper = document.createElement('div');
|
|
7
|
+
wrapper.style.cssText = `display:${layout};${layout === 'grid' ? 'grid-template-columns:auto 1px auto;' : ''}align-items:center;width:200px;gap:8px;--q-space-sm:8px;--q-border-color:rgb(12, 34, 56)`;
|
|
8
|
+
wrapper.innerHTML = vertical ? '<div style="height:40px">A</div><q-divider orientation="vertical"></q-divider><div>B</div>' : '<q-divider></q-divider>';
|
|
9
|
+
if (!vertical)
|
|
10
|
+
wrapper.style.display = 'block';
|
|
11
|
+
document.body.append(wrapper);
|
|
12
|
+
await customElements.whenDefined('q-divider');
|
|
13
|
+
await frame();
|
|
14
|
+
const el = wrapper.querySelector('q-divider');
|
|
15
|
+
const style = document.createElement('style');
|
|
16
|
+
style.textContent = css;
|
|
17
|
+
el.shadowRoot.append(style);
|
|
18
|
+
await frame();
|
|
19
|
+
return { wrapper, el, line: el.shadowRoot.querySelector('[part="line"]') };
|
|
20
|
+
}
|
|
21
|
+
describe('q-divider allocated geometry', () => {
|
|
22
|
+
afterEach(() => document.body.replaceChildren());
|
|
23
|
+
it('follows its nested wrapper and wrapped flex line, with inherited light/dark colors', async () => {
|
|
24
|
+
const { wrapper, el, line } = await setup(true);
|
|
25
|
+
const outer = document.createElement('div');
|
|
26
|
+
outer.style.cssText = 'display:flex;flex-wrap:wrap;width:160px;gap:12px';
|
|
27
|
+
wrapper.style.width = '140px';
|
|
28
|
+
document.body.append(outer);
|
|
29
|
+
outer.append(wrapper);
|
|
30
|
+
const anotherGroup = document.createElement('div');
|
|
31
|
+
anotherGroup.style.cssText = 'width:140px;height:90px';
|
|
32
|
+
outer.append(anotherGroup);
|
|
33
|
+
await frame();
|
|
34
|
+
expect(el.getBoundingClientRect().height).toBeCloseTo(40);
|
|
35
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(24);
|
|
36
|
+
outer.style.width = '400px';
|
|
37
|
+
await frame();
|
|
38
|
+
// The wrapper now stretches to its own allocated flex line height.
|
|
39
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(el.getBoundingClientRect().height - 16);
|
|
40
|
+
wrapper.style.setProperty('--q-border-color', 'rgb(200, 210, 220)');
|
|
41
|
+
await frame();
|
|
42
|
+
expect(getComputedStyle(line).borderLeftColor).toBe('rgb(200, 210, 220)');
|
|
43
|
+
wrapper.style.setProperty('--q-divider-color', 'rgb(1, 2, 3)');
|
|
44
|
+
await frame();
|
|
45
|
+
expect(getComputedStyle(line).borderLeftColor).toBe('rgb(1, 2, 3)');
|
|
46
|
+
});
|
|
47
|
+
it('stretches horizontally in a sibling-sized column flex layout', async () => {
|
|
48
|
+
const { wrapper, el, line } = await setup();
|
|
49
|
+
wrapper.style.cssText = 'display:inline-flex;flex-direction:column;align-items:center;--q-divider-inset:6px';
|
|
50
|
+
const sibling = document.createElement('div');
|
|
51
|
+
sibling.style.width = '120px';
|
|
52
|
+
wrapper.append(sibling);
|
|
53
|
+
await frame();
|
|
54
|
+
expect(el.getBoundingClientRect().width).toBeCloseTo(120);
|
|
55
|
+
expect(line.getBoundingClientRect().width).toBeCloseTo(108);
|
|
56
|
+
el.spacing = 'sm';
|
|
57
|
+
await frame();
|
|
58
|
+
expect(getComputedStyle(el).marginBlockStart).toBe('8px');
|
|
59
|
+
expect(getComputedStyle(el).marginBlockEnd).toBe('8px');
|
|
60
|
+
});
|
|
61
|
+
it('fills horizontal width with theme insets and caps explicit percentages and oversized lengths', async () => {
|
|
62
|
+
const { wrapper, el, line } = await setup();
|
|
63
|
+
expect(getComputedStyle(el).marginBlockStart).toBe('16px');
|
|
64
|
+
expect(getComputedStyle(el).marginBlockEnd).toBe('16px');
|
|
65
|
+
expect(line.getBoundingClientRect().width).toBeCloseTo(184);
|
|
66
|
+
el.length = '50%';
|
|
67
|
+
await frame();
|
|
68
|
+
expect(line.getBoundingClientRect().width).toBeCloseTo(100);
|
|
69
|
+
el.length = '999px';
|
|
70
|
+
await frame();
|
|
71
|
+
expect(line.getBoundingClientRect().width).toBeCloseTo(184);
|
|
72
|
+
wrapper.style.width = '100px';
|
|
73
|
+
await frame();
|
|
74
|
+
expect(line.getBoundingClientRect().width).toBeCloseTo(84);
|
|
75
|
+
wrapper.style.width = '10px';
|
|
76
|
+
await frame();
|
|
77
|
+
expect(line.getBoundingClientRect().width).toBe(0);
|
|
78
|
+
});
|
|
79
|
+
for (const layout of ['flex', 'grid'])
|
|
80
|
+
it(`stretches to sibling-driven ${layout} height without influencing it`, async () => {
|
|
81
|
+
const { wrapper, el, line } = await setup(true, layout);
|
|
82
|
+
expect(el.getBoundingClientRect().height).toBeCloseTo(40);
|
|
83
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(24);
|
|
84
|
+
expect(line.getBoundingClientRect().top - el.getBoundingClientRect().top).toBeCloseTo(8);
|
|
85
|
+
wrapper.firstElementChild.style.height = '64px';
|
|
86
|
+
await frame();
|
|
87
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(48);
|
|
88
|
+
el.length = '50%';
|
|
89
|
+
await frame();
|
|
90
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(32);
|
|
91
|
+
el.length = '1000px';
|
|
92
|
+
await frame();
|
|
93
|
+
expect(line.getBoundingClientRect().height).toBeCloseTo(48);
|
|
94
|
+
wrapper.dir = 'rtl';
|
|
95
|
+
el.spacing = 'sm';
|
|
96
|
+
await frame();
|
|
97
|
+
expect(getComputedStyle(el).marginInlineStart).toBe('8px');
|
|
98
|
+
expect(getComputedStyle(el).marginInlineEnd).toBe('8px');
|
|
99
|
+
expect(getComputedStyle(line).borderLeftColor).toBe('rgb(12, 34, 56)');
|
|
100
|
+
wrapper.firstElementChild.style.height = '10px';
|
|
101
|
+
wrapper.lastElementChild.style.height = '10px';
|
|
102
|
+
await frame();
|
|
103
|
+
expect(line.getBoundingClientRect().height).toBe(0);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -12,7 +12,7 @@ export class QGrid {
|
|
|
12
12
|
columnGap;
|
|
13
13
|
render() {
|
|
14
14
|
const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
|
|
15
|
-
return h("div", { key: '
|
|
15
|
+
return h("div", { key: '6cb6f253b692cb98163938ac77b1017706921e0a', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: '6e2c2c61901e9444ad4cc789201ee1702c817d92' }));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "q-grid"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QInline {
|
|
|
10
10
|
justify = 'start';
|
|
11
11
|
wrap = true;
|
|
12
12
|
render() {
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: '4a738a5cfb63fbfe527ef97e0d4fdc5b2b9d92bb', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: '441ff02b18335a81b7674d6b8078102bd22a46f5' }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-inline"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -386,7 +386,7 @@ export class QNavbar {
|
|
|
386
386
|
const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
387
387
|
const hasItems = items.length > 0;
|
|
388
388
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
389
|
-
return (h("div", { key: '
|
|
389
|
+
return (h("div", { key: '72300427ebcdcbd1fbf35538fe36af599674eec7', class: {
|
|
390
390
|
'navbar': true,
|
|
391
391
|
'is-open': this.menuOpen,
|
|
392
392
|
'is-sticky': this.sticky,
|
|
@@ -396,7 +396,7 @@ export class QNavbar {
|
|
|
396
396
|
'is-collapsed': this.collision,
|
|
397
397
|
'has-mobile-nav': this.hasMobileNav,
|
|
398
398
|
'has-mobile-actions': this.hasMobileActions,
|
|
399
|
-
}, part: "navbar" }, h("div", { key: '
|
|
399
|
+
}, part: "navbar" }, h("div", { key: '356a76e80a441df888f98d49cdea2dc0a5173480', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '16cd03606d948a4ad0caefe2461d09b4b2e0214d', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '1df39d562f06cb2f7a2b76161a122d9f73405aff', name: "nav" })), h("div", { key: '99c982b99446849f1c8669c9c2b92eb0530e8bb6', class: "desktop-actions", part: "actions" }, h("slot", { key: '97fe69941ea841fbd570a8d2bc306d292642699c', name: "actions" })), h("button", { key: '55ac3eb3c878dcbba1709c28444f5ceed9d65952', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: 'a4969f428a53183aff6162ca99c49344c9e22c43' }), h("span", { key: '67d19e78025a71de533d64be9648959055f371e6' }), h("span", { key: 'd8b4c1e9ad64d9c165b687b3331e035cbedde1c5' }))), h("div", { key: '7e4404dbce5035e890c3fb82774da5409532afaf', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'eff22494d13789eb4ddb95a0db64e1bfc60bc457', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '5f6acd5b274ab9fd2cd6762912c05787802be39c', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '262bfccfc84486b53b607f78c82f5e203ec79bad', class: "mobile-actions" }, h("slot", { key: '9c631d7e8d89f424442fba93e094c5562f98ea68', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
400
400
|
}
|
|
401
401
|
static get is() { return "q-navbar"; }
|
|
402
402
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +55,7 @@ export class QPanel {
|
|
|
55
55
|
}
|
|
56
56
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
57
57
|
render() {
|
|
58
|
-
return (h("section", { key: '
|
|
58
|
+
return (h("section", { key: 'e4d17eda76e6fd5c295178a0cf7440e0dfa4f2bb', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
|
|
59
59
|
'panel': true,
|
|
60
60
|
'has-dividers': this.dividers,
|
|
61
61
|
[`variant-${this.variant}`]: true,
|
|
@@ -66,13 +66,13 @@ export class QPanel {
|
|
|
66
66
|
'has-sticky-header': this.stickyHeader,
|
|
67
67
|
'has-sticky-footer': this.stickyFooter,
|
|
68
68
|
'uses-sticky-scroll': this.scrollable && (this.stickyHeader || this.stickyFooter),
|
|
69
|
-
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '
|
|
69
|
+
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '653bb1def51fb6ad21914ef7e5a54cbfb147640e', class: {
|
|
70
70
|
'panel-header': true,
|
|
71
71
|
'is-hidden': !this.hasHeader,
|
|
72
|
-
}, part: "header" }, h("slot", { key: '
|
|
72
|
+
}, part: "header" }, h("slot", { key: '06cc3f354673d5fe3fde67b1b86ec392e03be7df', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: 'cb4a97900e5524015eae2ee57fa78509a9bb776d', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: '3dbcb6ca0b4fa46edbf706537905d4fe073f755f' })), h("div", { key: '422214dca7949db96461944299d42c1c0aa484b3', class: {
|
|
73
73
|
'panel-footer': true,
|
|
74
74
|
'is-hidden': !this.hasFooter,
|
|
75
|
-
}, part: "footer" }, h("slot", { key: '
|
|
75
|
+
}, part: "footer" }, h("slot", { key: '4738de4fdffc4802c02f3de0e32c6c2d2cf30f4b', name: "footer", onSlotchange: this.handleSlotChange }))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "q-panel"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -326,13 +326,13 @@ export class QScrollable {
|
|
|
326
326
|
height: this.height,
|
|
327
327
|
maxHeight: this.maxHeight || undefined,
|
|
328
328
|
};
|
|
329
|
-
return (h(Host, { key: '
|
|
329
|
+
return (h(Host, { key: '6dfe263ff199a234244d309b4b9173a0aa179651', class: {
|
|
330
330
|
'is-scrolling': this.isScrolling,
|
|
331
331
|
'is-dragging': this.isDragging,
|
|
332
|
-
}, style: hostStyle }, h("div", { key: '
|
|
332
|
+
}, style: hostStyle }, h("div", { key: '6ecf6002545a4fe54a3d8f7c79996c5f172eeafb', class: "q-scrollable-host" }, h("div", { key: '049712eb9a314295b2aeba91c85a7d2a955badbd', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '2526fef43264a34029ab3de291cd5ad8b8169ab7', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: '826a4cabc557ad0560bddbbd366aaf0d895d0265' }))), this.mode === 'custom' && (h("div", { key: 'd6f2628d74339e74aca7c0de609f9e56e211666a', class: {
|
|
333
333
|
'q-scrollbar-track': true,
|
|
334
334
|
'is-dragging': this.isDragging,
|
|
335
|
-
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '
|
|
335
|
+
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '49bcccd913a9ce1d991d234ef024c586a4549904', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown, onKeyDown: this.handleThumbKeyDown, role: "scrollbar", "aria-controls": this.viewportId, "aria-orientation": "vertical", "aria-valuemin": "0", "aria-valuemax": this.scrollValueMax, "aria-valuenow": this.scrollValueNow, "aria-label": "Scroll content", tabindex: 0, part: "thumb" }))))));
|
|
336
336
|
}
|
|
337
337
|
static get is() { return "q-scrollable"; }
|
|
338
338
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QSection {
|
|
|
10
10
|
reverse = false;
|
|
11
11
|
columns = 1;
|
|
12
12
|
render() {
|
|
13
|
-
return h(Host, { key: '
|
|
13
|
+
return h(Host, { key: 'c324ed569083addd204d27d7fd74bb3f9a1ec616' }, h("slot", { key: 'e8a7d513bf2d3a817f69c71b47d1691ef33ebf1f', name: "media" }), h("slot", { key: '0d6d389f6778f523434900e58b2631668364c9a5' }), h("slot", { key: 'a65738487e173661217ef1513d7a57d88801ef76', name: "actions" }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-section"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class QStack {
|
|
|
8
8
|
gap = 'lg';
|
|
9
9
|
align = 'stretch';
|
|
10
10
|
render() {
|
|
11
|
-
return h("div", { key: '
|
|
11
|
+
return h("div", { key: 'ff2923042dd41fa65f782701074ef8fac385803b', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: 'fb01b80bb7193336e9fbf210c0c972d137780e4a' }));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "q-stack"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,7 +70,7 @@ export class QTabs {
|
|
|
70
70
|
warningContext: 'q-tabs items',
|
|
71
71
|
});
|
|
72
72
|
const activeIndex = this.getActiveIndex(items);
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: '32da2b9996b98b24ce121fced18f670d5b2652fe', class: {
|
|
74
74
|
'tab-list': true,
|
|
75
75
|
[`size-${this.size}`]: true,
|
|
76
76
|
[`variant-${this.variant}`]: true,
|
|
@@ -24,12 +24,12 @@ export class QToolbar {
|
|
|
24
24
|
/** Accessible label for the toolbar content group. */
|
|
25
25
|
ariaLabel = null;
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'a6ee427416e1b2804d27a5c508286e7c8145de5e', style: { ...controlScope(this.size), '--_q-toolbar-gap': spaceValue(this.gap) } }, h("div", { key: 'f6e2c4ed7ef2a0e517dd396c1f92cd709e638e4e', class: {
|
|
28
28
|
toolbar: true,
|
|
29
29
|
'is-compact': this.compact,
|
|
30
30
|
'is-transparent': this.transparent,
|
|
31
31
|
'is-bordered': this.bordered,
|
|
32
|
-
}, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: '
|
|
32
|
+
}, role: this.ariaLabel ? 'group' : undefined, "aria-label": this.ariaLabel, part: "toolbar" }, h("div", { key: 'a67f45efad7bbe963e23c491ac055328b8940b75', class: "toolbar-row", part: "row" }, h("div", { key: '7a9201f4bd923d8b4b4576083bb18735d31d8eb0', class: "toolbar-start", part: "start" }, h("slot", { key: '7d1931b85bbc9dfd62c2a4bba4f2edfdc390c5c6', name: "start" })), h("div", { key: '4c5a681c11c91247913e234424bf774293f600f5', class: "toolbar-content", part: "content" }, h("slot", { key: 'd60e8dfefd9db036961510af3ff687e1f17996cd' })), h("div", { key: '3c7b45b143cafd7a848d7e39770494b0346f28d4', class: "toolbar-end", part: "end" }, h("slot", { key: '3a53678160791e3f0967bbecb72345621be67fc7', name: "end" }))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "q-toolbar"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,7 +81,7 @@ export class QAvatar {
|
|
|
81
81
|
const preset = typeof this.size === 'string' && ['sm', 'md', 'lg'].includes(this.size)
|
|
82
82
|
? this.size
|
|
83
83
|
: 'custom';
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '4756953378ca0e5ba3b882086f19f4e797aa0966', class: {
|
|
85
85
|
avatar: true,
|
|
86
86
|
[`size-${preset}`]: true,
|
|
87
87
|
[`shape-${this.shape}`]: true,
|
|
@@ -173,7 +173,7 @@ export class QImageComparison {
|
|
|
173
173
|
const afterSrc = this.afterSrc;
|
|
174
174
|
const ratio = this.frameRatio;
|
|
175
175
|
const failed = !beforeSrc || !afterSrc || this.beforeStatus === 'error' || this.afterStatus === 'error' || this.cropUnavailable;
|
|
176
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: 'e5410625988c20e6a76cccff54da4f2c1b6a9c21', part: "frame", class: { frame: true, ready: this.ready }, style: { aspectRatio: String(ratio) }, ref: el => this.frame = el, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerEnd, onPointerCancel: this.handlePointerEnd, onLostPointerCapture: this.handlePointerEnd }, this.renderImage('after', afterSrc, generation, ratio), this.renderImage('before', beforeSrc, generation, ratio), !this.ready && (h("div", { key: 'e9ec809349bcdca73642dd85dfce7be2c85e8e5d', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: '261f042c581b98249982bbaacb5e011e83e3815c', class: "decorations", "aria-hidden": "true" }, h("span", { key: 'e44600d0ebea85584ade0032ac67b2760d26fc78', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '8b5ab613e9f85fe0b8031c73a18e42baa8199f13', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: '61cd1aa7fa75b4a17e1fdeb8b5589716e481fe30', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: 'c6e5a4ac428bd57659be6ab0c1f6fdc49b1c596b', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'd070ec8fc8404a6f37385b918cedd8ebd6414204', part: "control", class: "control", ref: el => this.range = el, type: "range", min: "0", max: "100", step: "1", value: this.position, disabled: !this.ready, "aria-label": this.ariaLabel || 'Image comparison', "aria-valuetext": `${Math.round(this.position)}% ${this.beforeLabel || 'Before'} revealed`, onInput: event => this.updatePosition(Number(event.target.value)) })));
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "q-image-comparison"; }
|
|
179
179
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class QMedia {
|
|
|
10
10
|
loading = 'lazy';
|
|
11
11
|
alt = '';
|
|
12
12
|
render() {
|
|
13
|
-
return h(Host, { key: '
|
|
13
|
+
return h(Host, { key: '49f6d5a90a5cb7afeee7ab095fef25de2033640a' }, h("slot", { key: '96b02b03210be05385b0cef1e815ea2e1815696f' }), h("slot", { key: 'ed0a47203720efe45c55e00718d20f2120c1c183', name: "fallback" }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "q-media"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -148,10 +148,10 @@ export class QReel {
|
|
|
148
148
|
const currentIdx = this.getActiveIndex(thumbnails);
|
|
149
149
|
const hasPrev = currentIdx > 0;
|
|
150
150
|
const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
return (h("div", { key: '8c380eddb422e7aa04daa42d54944bf3e321cfd1', class: {
|
|
152
152
|
'reel-container': true,
|
|
153
153
|
[`layout-${this.layout}`]: true,
|
|
154
|
-
} }, h("slot", { key: '
|
|
154
|
+
} }, h("slot", { key: 'f28ad233d221f13eb8c72b15fc2cd32d8792d58c' }), this.activeMedia && (h("div", { key: 'f3a6e64dd9f1a1b35fe8319d47a70245b7d47fa7', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '7063a5f5f0e14bcbd1e1f94b2bfc49bc3197c687', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: '7f7857e3d503c5c59593207f274a489293d2f806', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'a17b42d0f8be9105b6709202efe08ecba719fcd3', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '205fbf145f34926042d8563c9bc17b00f499c14a', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '76fb2144308dc2c42c73c87bb4a487c68fe738ef', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: 'f4e3069acf0ed623ece4e36d1990e1871d780943', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '3b7eca129e4de80e7a6a7a64e5674a888fab9cf1', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '3a37c591dcedcab431c3d3104d71c61688820599', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: 'f9b9fdb2158fa7d8e64f1d5980781f0c7f902095', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '8a3f09375a1ec756623ee492a1b9605d5f13a0c9', points: "9 18 15 12 9 6" })))), h("div", { key: '589de81633eea3ca158bae65f593db95a7ce52a7', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: '600aafa8078da0fc103f49c6d81bd30f1c569a08', class: "lightbox-caption" }, this.activeMedia.label)))))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "q-reel"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '16b166cd500f563aed661e72911d4f446293765a', 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: '7469ffc9550790a406f2fea4c62e45e6410d6f44', class: "thumb-media-container" }, h("img", { key: 'd9fe1697df917b78ea8dc7ba4555f8b61e986872', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: 'e052677c066596d04fbee87b7231d590b7cb4b90', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: 'a74a05147b38972b004c53bd04c5f1270acbe4a5', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: 'b53e1938fa735055278b22f9cdedf217befed643', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: '9f9cfb421b6313e07cd71705b082245969184581', class: "thumb-caption" }, h("span", { key: '686d3ec6e4bb05b0ab0fd3ae78e73ba5c9930862', class: "caption-text" }, this.label))), h("slot", { key: '14f7ea0aba31712761a749516407a35fc17215fe' })));
|
|
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: 'c0ac67222109ef770da940730d15f7b8bc7247be', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'bae02db8240037595e49ba4a24f0500b27d9dcdf', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'af17425f8d0e1bc49dafe666d9c784e38404e807', 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: '040b01428317995ed761e4fe8ba8acfa9f98005a', class: "dialog-header", part: "header" }, h("slot", { key: '9fb2d093c17e214f3aee8e87506bde98cfe6e1c7', name: "header" }, titleText && h("h2", { key: 'e3ddb11d7ec13ba667beeeec46cbc939f47429fc', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: 'd719f755f33f0a540dd842d87a23c08563afc35d', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '679be75b97c3cb307dc0c8e36ada30796b9b67c5', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '40f190e8c82b440a67b2f82c5e1eb0c76092d14d', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'e96bc59a92ad0b1111907c899362ed05c54a2a30', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: 'a024b5365a183400ca8fda240e967eb4b6258fdf', class: "dialog-body", part: "body" }, h("slot", { key: 'c0aa788e43f7615732a291cd21d035426acf76ff' }, this.message && h("p", { key: 'cd68e2e7b245a85a0b92ed2b523b1859b65f3c9f', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: '066698d99c33dbdb3266d19c3d3b4acc69fa8570', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: 'd6ee1006406316e8e822a82a20ea501825db14bd', 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: '97dceeacd21f3d045bfc885510b3b2b71dc9264a', class: "dialog-actions" }, this.showCancel && (h("button", { key: '5e46a756f1894edb95ee746048bf8b60aa942acd', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: 'f1769f0987e836ec5e02095e64a9efe9e9a88743', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'a8fe2b08e474ad71c07dd1a1c0f10e617a7ce2ed', class: "spinner-el" }), h("span", { key: '36f6f2690bc5043754fe2a889a132b1533249f0f', 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: 'f4a681553a400552be065481315cd5503c2bcc74', 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: 'ba8dcfb45999154c9157458d749f1423952bae81', class: "tooltip-bubble" }, this.content || h("slot", { key: 'f22b541d862e0e9e48e738127f4f2ec8e6dcf155' }))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "q-tooltip"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|