@webquark/browser 1.1.0-dev.10 → 1.1.0-dev.11
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/{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 +2 -2
- package/dist/cjs/q-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q-dialog.cjs.entry.js +3 -3
- package/dist/cjs/q-divider.cjs.entry.js +26 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +111 -92
- package/dist/cjs/q-form.cjs.entry.js +4 -4
- 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 +8 -6
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +1 -1
- package/dist/cjs/q-media.cjs.entry.js +2 -2
- package/dist/cjs/q-navbar.cjs.entry.js +3 -3
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q-panel.cjs.entry.js +6 -6
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +3 -3
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -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/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/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/components/index.js +1 -1
- package/dist/components/{p-Dfp_If-_.js → p--r63tfQH.js} +1 -1
- package/dist/components/{p-Cg0Mv7Vb.js → p-0feRVg70.js} +1 -1
- package/dist/components/p-BDsIecIx.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-CKuPOxKN.js → p-DBbiaYqQ.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/{p-6PPZ2sIO.js → p-iXEnb5d5.js} +1 -1
- 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-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/{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 +2 -2
- package/dist/esm/q-carousel.entry.js +1 -1
- 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 +3 -3
- 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 +4 -4
- 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 +8 -6
- 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 +6 -6
- 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 +3 -3
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +1 -1
- 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 +1 -1
- 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/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 +111 -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-023f8437.entry.js → p-0f04ceab.entry.js} +1 -1
- package/dist/webquark/{p-97a89cae.entry.js → p-10dc5cce.entry.js} +1 -1
- package/dist/webquark/p-191a7063.entry.js +1 -0
- package/dist/webquark/p-1e8797d1.entry.js +1 -0
- package/dist/webquark/{p-09cca7b9.entry.js → p-220ec9cf.entry.js} +1 -1
- package/dist/webquark/p-2291095e.entry.js +1 -0
- package/dist/webquark/{p-fec6fe0a.entry.js → p-32055acd.entry.js} +1 -1
- package/dist/webquark/{p-5f232b44.entry.js → p-3af50215.entry.js} +2 -2
- package/dist/webquark/{p-6bfffa79.entry.js → p-41deb44c.entry.js} +1 -1
- package/dist/webquark/{p-9ff7e5a4.entry.js → p-44eda084.entry.js} +1 -1
- package/dist/webquark/{p-d0253d64.entry.js → p-473a1810.entry.js} +1 -1
- package/dist/webquark/p-4cf40080.entry.js +1 -0
- package/dist/webquark/{p-f98f9439.entry.js → p-4d611b93.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-f4f97e74.entry.js → p-687be7d4.entry.js} +1 -1
- package/dist/webquark/{p-144ef339.entry.js → p-6a5033da.entry.js} +1 -1
- package/dist/webquark/{p-059daa8a.entry.js → p-6d2d016a.entry.js} +1 -1
- package/dist/webquark/p-70e3a23a.entry.js +1 -0
- package/dist/webquark/p-7723e966.entry.js +1 -0
- package/dist/webquark/{p-64096386.entry.js → p-78c56cd3.entry.js} +1 -1
- package/dist/webquark/{p-d0fbd2b1.entry.js → p-8a0733a1.entry.js} +1 -1
- 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-DaJmsCb7.js +3 -0
- package/dist/webquark/{p-dd115868.entry.js → p-a199de7d.entry.js} +1 -1
- package/dist/webquark/{p-fe8c634a.entry.js → p-a30d212f.entry.js} +1 -1
- package/dist/webquark/{p-f1bac94c.entry.js → p-a87f0bde.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-f63b7214.entry.js → p-b9c8c081.entry.js} +1 -1
- package/dist/webquark/{p-296fbdb1.entry.js → p-bf568cda.entry.js} +1 -1
- package/dist/webquark/{p-6e28cfe2.entry.js → p-c662904e.entry.js} +1 -1
- package/dist/webquark/{p-4d61b70d.entry.js → p-cab898c2.entry.js} +1 -1
- package/dist/webquark/{p-030ecde3.entry.js → p-d2c4696f.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-8ece2c62.entry.js → p-e3c18c0e.entry.js} +1 -1
- package/dist/webquark/{p-90b0858c.entry.js → p-e7384b6e.entry.js} +1 -1
- package/dist/webquark/p-f63fd66f.entry.js +1 -0
- package/dist/webquark/p-f95aeb8d.entry.js +1 -0
- 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-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-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-c523ec6f.entry.js +0 -1
- package/dist/webquark/p-fe200f68.entry.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--_q-divider-inset: var(--q-divider-inset, var(--q-space-sm, .5rem));
|
|
3
|
+
--_q-divider-usable: max(0px, calc(100% - var(--_q-divider-inset) - var(--_q-divider-inset)));
|
|
4
|
+
--_q-divider-thickness: var(--q-divider-thickness, 1px);
|
|
5
|
+
position: relative;
|
|
6
|
+
display: block;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
min-height: 0;
|
|
10
|
+
height: var(--_q-divider-thickness);
|
|
11
|
+
align-self: stretch;
|
|
12
|
+
flex: 0 0 auto;
|
|
13
|
+
margin-block: var(--_q-divider-spacing, 0px);
|
|
14
|
+
}
|
|
15
|
+
[part='line'] {
|
|
16
|
+
position: absolute;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
top: 50%;
|
|
19
|
+
left: 50%;
|
|
20
|
+
transform: translate(-50%, -50%);
|
|
21
|
+
width: clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));
|
|
22
|
+
height: 0;
|
|
23
|
+
border: 0 solid var(--q-divider-color, var(--q-border-color, #374151));
|
|
24
|
+
border-top-width: var(--_q-divider-thickness);
|
|
25
|
+
}
|
|
26
|
+
:host([orientation='vertical']) {
|
|
27
|
+
width: var(--_q-divider-thickness);
|
|
28
|
+
height: auto;
|
|
29
|
+
margin-block: 0;
|
|
30
|
+
margin-inline: var(--_q-divider-spacing, 0px);
|
|
31
|
+
}
|
|
32
|
+
:host([orientation='vertical']) [part='line'] {
|
|
33
|
+
width: 0;
|
|
34
|
+
height: clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));
|
|
35
|
+
border-top-width: 0;
|
|
36
|
+
border-left-width: var(--_q-divider-thickness);
|
|
37
|
+
}
|
|
38
|
+
@media (forced-colors: active) {
|
|
39
|
+
[part='line'] { border-color: CanvasText; }
|
|
40
|
+
}
|
|
@@ -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: 'cfdbd7fbcbd995f8ae6c5bf8b0daba8737aba50d', 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: 'cc49e03920c1eced437d76b91f013a2095b6a210', 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: '487fcd7a708529dca39d41504b162f793fed3bd0', 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: '1430105a9cff46e8056048b9ee1b4171a6938e73' }));
|
|
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: 'fa2a09202f9d9577fb92bf376231d11c62beb45e', 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: '4bb4a12ba75883fadaea0c6e670b3d7aee1fa041' }));
|
|
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: '6f844bbaf8ee53fb91a2a928399189dc11dcbad4', 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: '747dd4d7788ad3d6fd66c720584e08cbe05793d6', class: "navbar-row" }, this.renderBrand(), h("nav", { key: 'dd7fadabfc838d4e6cd38cca76b13cc2b6c92e8c', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '582b77c3ab9738e683f4a35f82313feedc7ba4e6', name: "nav" })), h("div", { key: '6075e3739907d42990287df36a7b4c8d2054ea08', class: "desktop-actions", part: "actions" }, h("slot", { key: 'd58d3aa96a67ca7e190bbe297a7e73add6540000', name: "actions" })), h("button", { key: '1538cfbaf65f7aa63b74b588eb47792d77548246', 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: 'dedd1a04ebf3d7d8cd81425245716de46cbd70ee' }), h("span", { key: 'e9a8a53fd6f91b6eb8a1614d04b1798bcda48aed' }), h("span", { key: 'f2edee9fd2c6aa2f90660a10202512db2548cedf' }))), h("div", { key: '1a6eb5e3844f6c05bdf0400e8624d891a4f26f85', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'ca85aa9b5f2746828ca3f6328df642e02b400e1d', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '209194e22bafe2a906b9588050249ecc149af3af', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '1bda71b827a4d140a9eeba19e701e6498a700e49', class: "mobile-actions" }, h("slot", { key: 'f6d561c96756d9088d0c8d4bcd2e1e71dc584c93', 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: '260a54fd9f3e09b465d1bcc402f31102b3335a04', 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: '545ad281e085c926c3f9baccd10811d8b4c3e7a0', class: {
|
|
70
70
|
'panel-header': true,
|
|
71
71
|
'is-hidden': !this.hasHeader,
|
|
72
|
-
}, part: "header" }, h("slot", { key: '
|
|
72
|
+
}, part: "header" }, h("slot", { key: 'd9b6d5f0ee54f361f2bd8050be36c6fd70f300db', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: '89fe7ec9a86c67682e8e62ad7fd38bf96684adb9', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: '280b4ce8039a63a2b9fe860f66951e0fd6c12957' })), h("div", { key: 'ec76dfaf95ca9c998eb9695d558d2347b6725a03', class: {
|
|
73
73
|
'panel-footer': true,
|
|
74
74
|
'is-hidden': !this.hasFooter,
|
|
75
|
-
}, part: "footer" }, h("slot", { key: '
|
|
75
|
+
}, part: "footer" }, h("slot", { key: 'cc87f976de8e4079c80fff4bb37be2681150d3ef', 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: '57a46bc6553e5c00863176e4cee65f8880a7b5a7', 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: '44362d4fd13aff46d7c3affc3ac7b14b4e481186', class: "q-scrollable-host" }, h("div", { key: '61c4c6b4a23df086c5703d1cf885d6968ad11c11', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '810b61bba8cf84e64dd257f5da2bf8dda48bd99d', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: '54ed29d9da6ec966c9df1eb4c8ec4d0ad8863d6f' }))), this.mode === 'custom' && (h("div", { key: 'a7954003c9a3bee8c18cb110256335bfa2b1499c', 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: '8a404b5c168211359f12e3baa62236ada2aa6094', 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: 'ec3cd173ab1cf7229120cd9fd4fb678eeaffbabc' }, h("slot", { key: 'e095015212901c15d5fee05716e34483eec3566c', name: "media" }), h("slot", { key: 'ae64167d08e71863a4edfbd9a9b8ffeabb6c029a' }), h("slot", { key: 'ef42b9ecc9055a612892c4ba15f8730b2a9a85a8', 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: '55f80164b9f179f086fd63f5a9aca6dfe7ef0d0c', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: '900b0c224b7265e724f685096b37b86469044817' }));
|
|
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: '163285a751ed6f26ba2ed16fc49ca94bfb13f1e9', 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: 'e573a08e46f4ba3f63c4a899453da7c022034228', style: { ...controlScope(this.size), '--_q-toolbar-gap': spaceValue(this.gap) } }, h("div", { key: '690e03b4f8e890c07a750bcfb441644943bac8d4', 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: '44e4cfb83508443f808c612a3daaedf806c08d03', class: "toolbar-row", part: "row" }, h("div", { key: 'cfff905dc1b76c0a2f844618d055d05a30ff013e', class: "toolbar-start", part: "start" }, h("slot", { key: 'a8b2dd8dea0ce1e931c8a93cc32e734b5726f758', name: "start" })), h("div", { key: '0e30290c53670656725f703aba3de27c0cfc0923', class: "toolbar-content", part: "content" }, h("slot", { key: '43707c7137e5f352044d02cc1772a3a23f784e2a' })), h("div", { key: '2bea5a545fed4107416f9b55d9de6bf6f06bb9f6', class: "toolbar-end", part: "end" }, h("slot", { key: '95d7fc8b78b24af45057594905c10ff9a76af8ad', 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: '9119600fa389efd7b0873c4cef8fcfb45f015620', 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: 'ac6c824d1d20449769d6b896127ee4d288b4749b', 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: '431aa00a3a5333fab2ba2a3dc8582218bf08a529', part: "status", class: "status", role: "status" }, failed ? 'Comparison unavailable' : 'Loading images…')), this.ready && (h("div", { key: 'afa1571a569dda37378d0664fc997294272f25a2', class: "decorations", "aria-hidden": "true" }, h("span", { key: '5a4c1dbb44069c0f10ce00f2b18d91336679e250', part: "before-label", class: "label before-label" }, this.beforeLabel), h("span", { key: '64d78062cba803bb04b1f35eb54659baf5f17c13', part: "after-label", class: "label after-label" }, this.afterLabel), h("div", { key: '3494f6ed4a1a53e3be68b517a9c88edf2edfa586', part: "divider", class: "divider", style: { left: `${this.position}%` } }, h("span", { key: 'a3f163248b87f4961bfb8fe60799dd817ae38194', part: "handle", class: "handle" }, "\u2194")))), h("input", { key: 'a5144519509d21724c5c47c1408e46cc86dbfcc0', 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: '1497e7e9bda7a75cb82dfba0dc20c91875948158' }, h("slot", { key: '1183535938c73ea9f6c8a4c403a72fe57413a9ce' }), h("slot", { key: '71eb885e3833539e7ada359066e9ac43acda687e', 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: '13f263ad7bcf7f855e2567e28abcc57318776a82', class: {
|
|
152
152
|
'reel-container': true,
|
|
153
153
|
[`layout-${this.layout}`]: true,
|
|
154
|
-
} }, h("slot", { key: '
|
|
154
|
+
} }, h("slot", { key: 'd5d1ce0ef896d3916961b059dda78c076bb45424' }), this.activeMedia && (h("div", { key: '322ab4a8c985615bc67512d6bbf77413142e8fca', 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: '26bc4c6f4b7fed7331a50de46c847968670367b6', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: 'f724deab7f56af784b5b456e55cf7a38759ef7ce', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '7a931b2439ae2d441b6fe58352ba8b5d159638bf', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'd4a39d88451acacc1bb923ffd17d9bf933723ffd', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: '1a7892f3a43348ed751e15d701c97453cb5a870b', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: 'b34eca004022f00bc317eeeb9bfde7826b875de6', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: '3e91476ebd71758a95aa0e7f9c0a682ee2dffca6', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '50b2398ff6310cf6d3b9c91ffad6a57ad44217ea', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: '298adb5b96cabbb10407d3e8529235398faea0ae', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'c2a1e71569ab40f3c6c8579a5250d62d076db2dd', points: "9 18 15 12 9 6" })))), h("div", { key: '2bcac6b618724c90a8779b3818f13fd7507c1cf7', 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: '1881b19f0f70d69d17c981e3b0fdf2303b61074b', 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: '4c33fda7ff69351b01570b0b0f97510d82e56162', 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: '2dec02da41f880046ea71150c376a979d8b05056', class: "thumb-media-container" }, h("img", { key: '4d9ad98a6a675b4253ab19328766f2c15f569724', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: '3fc6499838ab855c42c4f473fb207854c5423858', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: '12634b27b023b42a29a7f39be7cf8a3d4ec5e8b3', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: '0d53dea20eabdbdae7db6a96b70a386c5c591676', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: 'e4327b2af46f7fd9058ba81d2f21d0f6f3d41ccc', class: "thumb-caption" }, h("span", { key: 'cf37cc8b8e9006595bc2dca319089395232cffd3', class: "caption-text" }, this.label))), h("slot", { key: '3caabb9d7b5811f6ebbe05ca18dd7db7e52ff6b4' })));
|
|
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: '5addeb5dad74d60b3aa61272a0e44777038b45b4', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: '966d28b1eb2141421067cf492880b4ac907ad8ac', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'bff955944bd3bb18290d12300cacad13c0a6fc06', 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: '369c69e21abe8a6181c3299e20d59ac25a134b23', class: "dialog-header", part: "header" }, h("slot", { key: '3edff644a4dda367019c32cb2f93e54be099a258', name: "header" }, titleText && h("h2", { key: 'dac9813d9cf2dc12ab47466894b2ddee8bcde7d8', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: '750ebe972664c3d425a3913d50dd4cfa2ad83f4d', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: 'b0ef86c9755da46329e84c869726f452dc442d31', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'dc096e280e36abf9a32f39b1251ce6175dd42059', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '91fa360c899889ba0b47d83c97562a69170901b1', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: 'b5f62850c62aa6374b15097761f2909b7eb862d8', class: "dialog-body", part: "body" }, h("slot", { key: '4d374323a9288c0383d370f57243b60e880f9a5e' }, this.message && h("p", { key: 'ef61217930e2dffcdfa8b83a9c5240c6e1f56b8a', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: 'bb55af8fb16c0a0f929ead2010c028caa178721e', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: '37fa324757fa0745004f5b3448f296197bce116a', 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: 'c977853918f1662e0dbd647e75bc582038fa4d75', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'ed53b4ccbd889b57f1afe3189d5b4d26ff8b20f1', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '143cf10ca1a02b0629c7ed1cc27b6c7167b9c843', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: '7108849c666b428a6466242fe1486a430aaceee5', class: "spinner-el" }), h("span", { key: 'f13fe9178f111020d21d1bb8cba04c0e7c163b79', 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: '97b84e156a7d8988d5cc611d1ba926718dff0b02', 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: '8062b57549a912f455d5abd8ec32bc6ec3eade07', class: "tooltip-bubble" }, this.content || h("slot", { key: '11fdb73242e70e1900de147990ca0eb8f403f9d0' }))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "q-tooltip"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|