@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,15 @@
|
|
|
1
|
+
import { type QSpace } from '../../../theme/tokens';
|
|
2
|
+
/** Static, container-relative separator.
|
|
3
|
+
* @part line - The visible separator line.
|
|
4
|
+
*/
|
|
5
|
+
export declare class QDivider {
|
|
6
|
+
/** Physical direction of the separator. */
|
|
7
|
+
orientation: 'horizontal' | 'vertical';
|
|
8
|
+
/** CSS length or percentage, capped to the allocated extent minus endpoint insets. */
|
|
9
|
+
length: string;
|
|
10
|
+
/** Symmetric external spacing perpendicular to the line. */
|
|
11
|
+
spacing: QSpace;
|
|
12
|
+
/** Hide a purely visual separator from assistive technology. */
|
|
13
|
+
decorative: boolean;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../divider';
|
|
@@ -12,7 +12,7 @@ import { QBannerAlignment, QBannerHeight } from "./components/content/banner/ban
|
|
|
12
12
|
import { QIconColor, QIconDefinition, QIconLibrary, QIconLocalPath, QIconName, QIconSize } from "./components/media/icon/icon.types";
|
|
13
13
|
import { QButtonLayout, QButtonShape, QButtonSize, QButtonType, QButtonVariant } from "./components/actions/button/button.types";
|
|
14
14
|
import { QFormAutocomplete, QFormEnctype, QFormEnterBehavior, QFormMethod, QFormResetDetail, QFormSubmitDetail, QFormTarget, QFormValues } from "./components/inputs/form/form.types";
|
|
15
|
-
import { QControlSize, QSpace, QSurface } from "./theme/tokens";
|
|
15
|
+
import { QControlSize, QInputWidth, QSpace, QSurface } from "./theme/tokens";
|
|
16
16
|
import { QCardElevation } from "./components/content/card/card.types";
|
|
17
17
|
import { QCarouselAutoplayChangeDetail, QCarouselLayout, QCarouselSlideChangeDetail, QCarouselSnapAlignment, QCarouselTransition } from "./components/content/carousel/carousel.types";
|
|
18
18
|
import { QChipRemoveDetail, QChipSize, QChipTarget, QChipVariant } from "./components/data-display/chip/chip.types";
|
|
@@ -51,7 +51,7 @@ export { QBannerAlignment, QBannerHeight } from "./components/content/banner/ban
|
|
|
51
51
|
export { QIconColor, QIconDefinition, QIconLibrary, QIconLocalPath, QIconName, QIconSize } from "./components/media/icon/icon.types";
|
|
52
52
|
export { QButtonLayout, QButtonShape, QButtonSize, QButtonType, QButtonVariant } from "./components/actions/button/button.types";
|
|
53
53
|
export { QFormAutocomplete, QFormEnctype, QFormEnterBehavior, QFormMethod, QFormResetDetail, QFormSubmitDetail, QFormTarget, QFormValues } from "./components/inputs/form/form.types";
|
|
54
|
-
export { QControlSize, QSpace, QSurface } from "./theme/tokens";
|
|
54
|
+
export { QControlSize, QInputWidth, QSpace, QSurface } from "./theme/tokens";
|
|
55
55
|
export { QCardElevation } from "./components/content/card/card.types";
|
|
56
56
|
export { QCarouselAutoplayChangeDetail, QCarouselLayout, QCarouselSlideChangeDetail, QCarouselSnapAlignment, QCarouselTransition } from "./components/content/carousel/carousel.types";
|
|
57
57
|
export { QChipRemoveDetail, QChipSize, QChipTarget, QChipVariant } from "./components/data-display/chip/chip.types";
|
|
@@ -674,6 +674,31 @@ export namespace Components {
|
|
|
674
674
|
*/
|
|
675
675
|
"size": 'sm' | 'md' | 'lg' | 'full';
|
|
676
676
|
}
|
|
677
|
+
/**
|
|
678
|
+
* Static, container-relative separator.
|
|
679
|
+
*/
|
|
680
|
+
interface QDivider {
|
|
681
|
+
/**
|
|
682
|
+
* Hide a purely visual separator from assistive technology.
|
|
683
|
+
* @default false
|
|
684
|
+
*/
|
|
685
|
+
"decorative": boolean;
|
|
686
|
+
/**
|
|
687
|
+
* CSS length or percentage, capped to the allocated extent minus endpoint insets.
|
|
688
|
+
* @default 'auto'
|
|
689
|
+
*/
|
|
690
|
+
"length": string;
|
|
691
|
+
/**
|
|
692
|
+
* Physical direction of the separator.
|
|
693
|
+
* @default 'horizontal'
|
|
694
|
+
*/
|
|
695
|
+
"orientation": 'horizontal' | 'vertical';
|
|
696
|
+
/**
|
|
697
|
+
* Symmetric external spacing perpendicular to the line.
|
|
698
|
+
* @default 'lg'
|
|
699
|
+
*/
|
|
700
|
+
"spacing": QSpace;
|
|
701
|
+
}
|
|
677
702
|
/**
|
|
678
703
|
* Form-associated dropdown/select control with optional search, incremental option rendering,
|
|
679
704
|
* and externally loaded option pages.
|
|
@@ -747,6 +772,11 @@ export namespace Components {
|
|
|
747
772
|
* Omitted inherits the enclosing form; false cancels reservation.
|
|
748
773
|
*/
|
|
749
774
|
"reserveFeedback"?: boolean;
|
|
775
|
+
/**
|
|
776
|
+
* Search in the main editable control (default) or a separate menu field. Applies only when searchable.
|
|
777
|
+
* @default 'default'
|
|
778
|
+
*/
|
|
779
|
+
"searchMode": 'default' | 'menu';
|
|
750
780
|
/**
|
|
751
781
|
* @default false
|
|
752
782
|
*/
|
|
@@ -759,6 +789,10 @@ export namespace Components {
|
|
|
759
789
|
* @default ''
|
|
760
790
|
*/
|
|
761
791
|
"value": string;
|
|
792
|
+
/**
|
|
793
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
794
|
+
*/
|
|
795
|
+
"width"?: QInputWidth;
|
|
762
796
|
}
|
|
763
797
|
/**
|
|
764
798
|
* Form wrapper that bridges slotted WebQuark controls to a native form element.
|
|
@@ -1072,6 +1106,10 @@ export namespace Components {
|
|
|
1072
1106
|
* @default ""
|
|
1073
1107
|
*/
|
|
1074
1108
|
"value": string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
1111
|
+
*/
|
|
1112
|
+
"width"?: QInputWidth;
|
|
1075
1113
|
}
|
|
1076
1114
|
/**
|
|
1077
1115
|
* Inline link with disabled handling, external-link affordances, and optional icon slots.
|
|
@@ -2027,6 +2065,10 @@ export namespace Components {
|
|
|
2027
2065
|
* @default ""
|
|
2028
2066
|
*/
|
|
2029
2067
|
"value": string;
|
|
2068
|
+
/**
|
|
2069
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
2070
|
+
*/
|
|
2071
|
+
"width"?: QInputWidth;
|
|
2030
2072
|
}
|
|
2031
2073
|
/**
|
|
2032
2074
|
* Media thumbnail that emits qMaximize for gallery and reel lightbox workflows.
|
|
@@ -2507,6 +2549,15 @@ declare global {
|
|
|
2507
2549
|
prototype: HTMLQDialogElement;
|
|
2508
2550
|
new (): HTMLQDialogElement;
|
|
2509
2551
|
};
|
|
2552
|
+
/**
|
|
2553
|
+
* Static, container-relative separator.
|
|
2554
|
+
*/
|
|
2555
|
+
interface HTMLQDividerElement extends Components.QDivider, HTMLStencilElement {
|
|
2556
|
+
}
|
|
2557
|
+
var HTMLQDividerElement: {
|
|
2558
|
+
prototype: HTMLQDividerElement;
|
|
2559
|
+
new (): HTMLQDividerElement;
|
|
2560
|
+
};
|
|
2510
2561
|
interface HTMLQDropdownElementEventMap {
|
|
2511
2562
|
"qChange": string;
|
|
2512
2563
|
"qSelect": Option;
|
|
@@ -3078,6 +3129,7 @@ declare global {
|
|
|
3078
3129
|
"q-conversation-bubble": HTMLQConversationBubbleElement;
|
|
3079
3130
|
"q-data-table": HTMLQDataTableElement;
|
|
3080
3131
|
"q-dialog": HTMLQDialogElement;
|
|
3132
|
+
"q-divider": HTMLQDividerElement;
|
|
3081
3133
|
"q-dropdown": HTMLQDropdownElement;
|
|
3082
3134
|
"q-form": HTMLQFormElement;
|
|
3083
3135
|
"q-grid": HTMLQGridElement;
|
|
@@ -3714,6 +3766,31 @@ declare namespace LocalJSX {
|
|
|
3714
3766
|
*/
|
|
3715
3767
|
"size"?: 'sm' | 'md' | 'lg' | 'full';
|
|
3716
3768
|
}
|
|
3769
|
+
/**
|
|
3770
|
+
* Static, container-relative separator.
|
|
3771
|
+
*/
|
|
3772
|
+
interface QDivider {
|
|
3773
|
+
/**
|
|
3774
|
+
* Hide a purely visual separator from assistive technology.
|
|
3775
|
+
* @default false
|
|
3776
|
+
*/
|
|
3777
|
+
"decorative"?: boolean;
|
|
3778
|
+
/**
|
|
3779
|
+
* CSS length or percentage, capped to the allocated extent minus endpoint insets.
|
|
3780
|
+
* @default 'auto'
|
|
3781
|
+
*/
|
|
3782
|
+
"length"?: string;
|
|
3783
|
+
/**
|
|
3784
|
+
* Physical direction of the separator.
|
|
3785
|
+
* @default 'horizontal'
|
|
3786
|
+
*/
|
|
3787
|
+
"orientation"?: 'horizontal' | 'vertical';
|
|
3788
|
+
/**
|
|
3789
|
+
* Symmetric external spacing perpendicular to the line.
|
|
3790
|
+
* @default 'lg'
|
|
3791
|
+
*/
|
|
3792
|
+
"spacing"?: QSpace;
|
|
3793
|
+
}
|
|
3717
3794
|
/**
|
|
3718
3795
|
* Form-associated dropdown/select control with optional search, incremental option rendering,
|
|
3719
3796
|
* and externally loaded option pages.
|
|
@@ -3810,6 +3887,11 @@ declare namespace LocalJSX {
|
|
|
3810
3887
|
* Omitted inherits the enclosing form; false cancels reservation.
|
|
3811
3888
|
*/
|
|
3812
3889
|
"reserveFeedback"?: boolean;
|
|
3890
|
+
/**
|
|
3891
|
+
* Search in the main editable control (default) or a separate menu field. Applies only when searchable.
|
|
3892
|
+
* @default 'default'
|
|
3893
|
+
*/
|
|
3894
|
+
"searchMode"?: 'default' | 'menu';
|
|
3813
3895
|
/**
|
|
3814
3896
|
* @default false
|
|
3815
3897
|
*/
|
|
@@ -3822,6 +3904,10 @@ declare namespace LocalJSX {
|
|
|
3822
3904
|
* @default ''
|
|
3823
3905
|
*/
|
|
3824
3906
|
"value"?: string;
|
|
3907
|
+
/**
|
|
3908
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
3909
|
+
*/
|
|
3910
|
+
"width"?: QInputWidth;
|
|
3825
3911
|
}
|
|
3826
3912
|
/**
|
|
3827
3913
|
* Form wrapper that bridges slotted WebQuark controls to a native form element.
|
|
@@ -4119,6 +4205,10 @@ declare namespace LocalJSX {
|
|
|
4119
4205
|
* @default ""
|
|
4120
4206
|
*/
|
|
4121
4207
|
"value"?: string;
|
|
4208
|
+
/**
|
|
4209
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
4210
|
+
*/
|
|
4211
|
+
"width"?: QInputWidth;
|
|
4122
4212
|
}
|
|
4123
4213
|
/**
|
|
4124
4214
|
* Inline link with disabled handling, external-link affordances, and optional icon slots.
|
|
@@ -5121,6 +5211,10 @@ declare namespace LocalJSX {
|
|
|
5121
5211
|
* @default ""
|
|
5122
5212
|
*/
|
|
5123
5213
|
"value"?: string;
|
|
5214
|
+
/**
|
|
5215
|
+
* Opt-in horizontal width; independent of size. Omitted uses the existing full-width layout.
|
|
5216
|
+
*/
|
|
5217
|
+
"width"?: QInputWidth;
|
|
5124
5218
|
}
|
|
5125
5219
|
/**
|
|
5126
5220
|
* Media thumbnail that emits qMaximize for gallery and reel lightbox workflows.
|
|
@@ -5419,6 +5513,12 @@ declare namespace LocalJSX {
|
|
|
5419
5513
|
"open": boolean;
|
|
5420
5514
|
"closeLabel": string;
|
|
5421
5515
|
}
|
|
5516
|
+
interface QDividerAttributes {
|
|
5517
|
+
"orientation": 'horizontal' | 'vertical';
|
|
5518
|
+
"length": string;
|
|
5519
|
+
"spacing": QSpace;
|
|
5520
|
+
"decorative": boolean;
|
|
5521
|
+
}
|
|
5422
5522
|
interface QDropdownAttributes {
|
|
5423
5523
|
"label": string;
|
|
5424
5524
|
"ariaLabel": string | null;
|
|
@@ -5429,7 +5529,9 @@ declare namespace LocalJSX {
|
|
|
5429
5529
|
"labelHidden": boolean;
|
|
5430
5530
|
"reserveFeedback": boolean;
|
|
5431
5531
|
"size": QDropdownSize;
|
|
5532
|
+
"width": QInputWidth;
|
|
5432
5533
|
"searchable": boolean;
|
|
5534
|
+
"searchMode": 'default' | 'menu';
|
|
5433
5535
|
"externalSearch": boolean;
|
|
5434
5536
|
"hasMore": boolean;
|
|
5435
5537
|
"loading": boolean;
|
|
@@ -5500,6 +5602,7 @@ declare namespace LocalJSX {
|
|
|
5500
5602
|
"labelHidden": boolean;
|
|
5501
5603
|
"reserveFeedback": boolean;
|
|
5502
5604
|
"size": QInputSize;
|
|
5605
|
+
"width": QInputWidth;
|
|
5503
5606
|
"clearable": boolean;
|
|
5504
5607
|
"disabled": boolean;
|
|
5505
5608
|
"required": boolean;
|
|
@@ -5720,6 +5823,7 @@ declare namespace LocalJSX {
|
|
|
5720
5823
|
"ariaLabel": string | null;
|
|
5721
5824
|
"description": string;
|
|
5722
5825
|
"size": QControlSize;
|
|
5826
|
+
"width": QInputWidth;
|
|
5723
5827
|
"labelHidden": boolean;
|
|
5724
5828
|
"reserveFeedback": boolean;
|
|
5725
5829
|
"rows": number;
|
|
@@ -5784,6 +5888,7 @@ declare namespace LocalJSX {
|
|
|
5784
5888
|
"q-conversation-bubble": Omit<QConversationBubble, keyof QConversationBubbleAttributes> & { [K in keyof QConversationBubble & keyof QConversationBubbleAttributes]?: QConversationBubble[K] } & { [K in keyof QConversationBubble & keyof QConversationBubbleAttributes as `attr:${K}`]?: QConversationBubbleAttributes[K] } & { [K in keyof QConversationBubble & keyof QConversationBubbleAttributes as `prop:${K}`]?: QConversationBubble[K] };
|
|
5785
5889
|
"q-data-table": Omit<QDataTable, keyof QDataTableAttributes> & { [K in keyof QDataTable & keyof QDataTableAttributes]?: QDataTable[K] } & { [K in keyof QDataTable & keyof QDataTableAttributes as `attr:${K}`]?: QDataTableAttributes[K] } & { [K in keyof QDataTable & keyof QDataTableAttributes as `prop:${K}`]?: QDataTable[K] };
|
|
5786
5890
|
"q-dialog": Omit<QDialog, keyof QDialogAttributes> & { [K in keyof QDialog & keyof QDialogAttributes]?: QDialog[K] } & { [K in keyof QDialog & keyof QDialogAttributes as `attr:${K}`]?: QDialogAttributes[K] } & { [K in keyof QDialog & keyof QDialogAttributes as `prop:${K}`]?: QDialog[K] };
|
|
5891
|
+
"q-divider": Omit<QDivider, keyof QDividerAttributes> & { [K in keyof QDivider & keyof QDividerAttributes]?: QDivider[K] } & { [K in keyof QDivider & keyof QDividerAttributes as `attr:${K}`]?: QDividerAttributes[K] } & { [K in keyof QDivider & keyof QDividerAttributes as `prop:${K}`]?: QDivider[K] };
|
|
5787
5892
|
"q-dropdown": Omit<QDropdown, keyof QDropdownAttributes> & { [K in keyof QDropdown & keyof QDropdownAttributes]?: QDropdown[K] } & { [K in keyof QDropdown & keyof QDropdownAttributes as `attr:${K}`]?: QDropdownAttributes[K] } & { [K in keyof QDropdown & keyof QDropdownAttributes as `prop:${K}`]?: QDropdown[K] };
|
|
5788
5893
|
"q-form": Omit<QForm, keyof QFormAttributes> & { [K in keyof QForm & keyof QFormAttributes]?: QForm[K] } & { [K in keyof QForm & keyof QFormAttributes as `attr:${K}`]?: QFormAttributes[K] } & { [K in keyof QForm & keyof QFormAttributes as `prop:${K}`]?: QForm[K] };
|
|
5789
5894
|
"q-grid": Omit<QGrid, keyof QGridAttributes> & { [K in keyof QGrid & keyof QGridAttributes]?: QGrid[K] } & { [K in keyof QGrid & keyof QGridAttributes as `attr:${K}`]?: QGridAttributes[K] } & { [K in keyof QGrid & keyof QGridAttributes as `prop:${K}`]?: QGrid[K] };
|
|
@@ -5882,6 +5987,10 @@ declare module "@stencil/core" {
|
|
|
5882
5987
|
* Modal confirmation or message dialog with focus trapping and safe solid backdrops.
|
|
5883
5988
|
*/
|
|
5884
5989
|
"q-dialog": LocalJSX.IntrinsicElements["q-dialog"] & JSXBase.HTMLAttributes<HTMLQDialogElement>;
|
|
5990
|
+
/**
|
|
5991
|
+
* Static, container-relative separator.
|
|
5992
|
+
*/
|
|
5993
|
+
"q-divider": LocalJSX.IntrinsicElements["q-divider"] & JSXBase.HTMLAttributes<HTMLQDividerElement>;
|
|
5885
5994
|
/**
|
|
5886
5995
|
* Form-associated dropdown/select control with optional search, incremental option rendering,
|
|
5887
5996
|
* and externally loaded option pages.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface TokenItem {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type: 'color' | 'radius' | 'dimension' | 'text';
|
|
5
|
+
desc: string;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class TokenRow extends HTMLElement {
|
|
10
|
+
token: TokenItem;
|
|
11
|
+
private pixelValue;
|
|
12
|
+
syncValue(): void;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
}
|
package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom JSX factory that returns real DOM elements.
|
|
3
|
+
* Configured via tsconfig.json to handle JSX transpilation in playground TSX files.
|
|
4
|
+
*/
|
|
5
|
+
export declare function h(tag: string | ((props: any) => HTMLElement), attrs: any, ...children: any[]): HTMLElement;
|
|
6
|
+
export declare namespace h {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
[elemName: string]: any;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for color parsing and conversion in the WebQuark Playground.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Converts an rgb() or rgba() color string to a standard hex string (#RRGGBB).
|
|
6
|
+
* If the value is already a hex string, it is returned directly.
|
|
7
|
+
*/
|
|
8
|
+
export declare function convertToHex(rgbVal: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for DOM property manipulation in the WebQuark Playground.
|
|
3
|
+
*/
|
|
4
|
+
export type ElementWithHelpers = HTMLElement & {
|
|
5
|
+
setChecked?: (v: any) => void;
|
|
6
|
+
options?: any;
|
|
7
|
+
_resizeObserver?: ResizeObserver;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Updates properties and attributes on a DOM element based on a properties configuration map.
|
|
12
|
+
* Correctly handles booleans, empty string values, and custom Stencil component properties
|
|
13
|
+
* (like setChecked on q-toggle).
|
|
14
|
+
*/
|
|
15
|
+
export declare function setElementProperties(el: ElementWithHelpers, props: Record<string, any>): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,4 +28,4 @@ export type { QBannerHeight, QBannerAlignment } from './components/content/banne
|
|
|
28
28
|
export type { QSectionLayout } from './components/layout/section/section.types';
|
|
29
29
|
export type { QMediaKind, QMediaLoading } from './components/media/media/media.types';
|
|
30
30
|
export type { QAccordionMode } from './components/data-display/accordion/accordion.types';
|
|
31
|
-
export type { QSpace, QSize, QControlSize, QSurface, QPreset } from './theme/tokens';
|
|
31
|
+
export type { QSpace, QSize, QControlSize, QInputWidth, QSurface, QPreset } from './theme/tokens';
|
|
@@ -35,6 +35,15 @@ export declare const controls: {
|
|
|
35
35
|
readonly radius: 8.5;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
export declare const inputWidths: {
|
|
39
|
+
readonly xs: 80;
|
|
40
|
+
readonly sm: 120;
|
|
41
|
+
readonly md: 180;
|
|
42
|
+
readonly lg: 240;
|
|
43
|
+
readonly xl: 290;
|
|
44
|
+
readonly xxl: 360;
|
|
45
|
+
};
|
|
46
|
+
export type QInputWidth = keyof typeof inputWidths | 'full';
|
|
38
47
|
export type QSpace = keyof typeof spaces;
|
|
39
48
|
export type QSize = keyof typeof controls;
|
|
40
49
|
export type QControlSize = QSize | 'inherit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,a as e,h as d}from"./p-
|
|
1
|
+
import{r as a,a as e,h as d}from"./p-DaJmsCb7.js";import{s as r,a as i}from"./p-BDsIecIx.js";import{g as o}from"./p-ByfrUWx1.js";const n=class{constructor(e){a(this,e)}get el(){return e(this)}surface;headerPadding;footerPadding;dividers=!1;variant="bordered";borderless;noBorders=!1;padding="lg";fullHeight=!1;scrollable=!1;stickyHeader=!1;stickyFooter=!1;ariaLabel=null;hasHeader=!1;hasFooter=!1;componentDidLoad(){this.handleSlotChange()}handleSlotChange=()=>{const a=this.el.shadowRoot?.querySelector(".panel-header"),e=this.el.shadowRoot?.querySelector(".panel-footer");this.hasHeader=!!a&&o(a).length>0,this.hasFooter=!!e&&o(e).length>0};get scrollRegionLabel(){if(this.scrollable)return this.ariaLabel?`${this.ariaLabel} content`:"Panel content"}render(){return d("section",{key:"260a54fd9f3e09b465d1bcc402f31102b3335a04",style:{"--_q-surface":i(this.surface??("plain"===this.variant?"transparent":"panel")),"--_q-body-padding":r(this.padding),"--_q-header-padding":r(this.headerPadding??this.padding),"--_q-footer-padding":r(this.footerPadding??this.padding)},class:{panel:!0,"has-dividers":this.dividers,[`variant-${this.variant}`]:!0,"has-no-borders":this.borderless??this.noBorders,[`padding-${this.padding}`]:!0,"is-scrollable":this.scrollable,"is-full-height":this.fullHeight,"has-sticky-header":this.stickyHeader,"has-sticky-footer":this.stickyFooter,"uses-sticky-scroll":this.scrollable&&(this.stickyHeader||this.stickyFooter)},"aria-label":this.ariaLabel,part:"panel"},d("div",{key:"545ad281e085c926c3f9baccd10811d8b4c3e7a0",class:{"panel-header":!0,"is-hidden":!this.hasHeader},part:"header"},d("slot",{key:"d9b6d5f0ee54f361f2bd8050be36c6fd70f300db",name:"header",onSlotchange:this.handleSlotChange})),d("div",{key:"89fe7ec9a86c67682e8e62ad7fd38bf96684adb9",class:"panel-body",part:"body",tabindex:this.scrollable?0:void 0,role:this.scrollable?"region":void 0,"aria-label":this.scrollRegionLabel},d("slot",{key:"280b4ce8039a63a2b9fe860f66951e0fd6c12957"})),d("div",{key:"ec76dfaf95ca9c998eb9695d558d2347b6725a03",class:{"panel-footer":!0,"is-hidden":!this.hasFooter},part:"footer"},d("slot",{key:"cc87f976de8e4079c80fff4bb37be2681150d3ef",name:"footer",onSlotchange:this.handleSlotChange})))}};n.style=":host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-sm .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-sm, var(--_q-body-padding)))}.padding-md .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-md, var(--_q-body-padding)))}.padding-lg .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-lg, var(--_q-body-padding)))}.panel{background:var(--q-panel-bg, var(--_q-surface))}.panel-header{padding:var(--q-panel-header-padding, var(--_q-header-padding));margin:0}.panel-body{padding:var(--q-panel-padding, var(--_q-body-padding))}.panel-footer{padding:var(--q-panel-footer-padding, var(--_q-footer-padding))}.panel-footer.is-hidden{display:none}.has-dividers .panel-header{border-bottom:var(--q-panel-divider, var(--q-border, 1px solid #374151))}.has-dividers .panel-footer{border-top:var(--q-panel-divider, var(--q-border, 1px solid #374151))}";export{n as q_panel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,a as s,h as e}from"./p-B5ElFlHv.js";import{g as o}from"./p-ByfrUWx1.js";class a{originals=new Map;update(t,i,s){for(const i of this.originals.keys())t.includes(i)||this.restoreElement(i);for(const[e,o]of t.entries()){this.originals.has(o)||this.originals.set(o,{inert:o.inert,hidden:o.getAttribute("aria-hidden"),active:o.getAttribute("data-q-carousel-active")});const t=e===i,a=this.originals.get(o),r=o.getRootNode(),n=r instanceof ShadowRoot?r.activeElement:o.ownerDocument.activeElement;!t&&o.contains(n)&&("function"==typeof s?s():s?.focus({preventScroll:!0})),o.inert=!t||a.inert,this.attribute(o,"aria-hidden",t?a.hidden:"true"),this.attribute(o,"data-q-carousel-active",t?"true":"false")}}restore(){for(const t of this.originals.keys())this.restoreElement(t)}restoreElement(t){const i=this.originals.get(t);t.inert=i.inert,this.attribute(t,"aria-hidden",i.hidden),this.attribute(t,"data-q-carousel-active",i.active),this.originals.delete(t)}attribute(t,i,s){null===s?t.removeAttribute(i):t.getAttribute(i)!==s&&t.setAttribute(i,s)}}class r{advance;changed;config={enabled:!1,navigable:!1,suspended:!0,reducedMotion:!1,interval:5e3};requested=!1;timer;constructor(t,i){this.advance=t,this.changed=i}configure(t){const i=Number.isFinite(t.interval)&&t.interval>0?t.interval:5e3,s=i!==this.config.interval;t.enabled?this.config.enabled?t.reducedMotion&&!this.config.reducedMotion&&(this.requested=!1):this.requested=!t.reducedMotion:this.requested=!1,this.config={...t,interval:i},s&&this.clearTimer(),this.sync()}play(){this.config.enabled&&(this.requested=!0,this.sync())}pause(){this.requested=!1,this.sync()}disconnect(){this.config={...this.config,suspended:!0},this.sync()}sync(){const t=this.requested&&this.config.enabled&&this.config.navigable&&!this.config.suspended;t?void 0===this.timer&&(this.timer=setInterval((()=>{this.advance()||this.pause()}),this.config.interval)):this.clearTimer(),this.changed(t,this.requested)}clearTimer(){void 0!==this.timer&&(clearInterval(this.timer),this.timer=void 0)}}function n(t,i,s){if(!(i<=0)){if(s)return t<0?i:t>i?0:t;if(!(t<0||t>i))return t}}const h=class{constructor(s){t(this,s),this.qSlideChange=i(this,"qSlideChange"),this.qAutoplayChange=i(this,"qAutoplayChange")}layout="strip";snapAlignment="start";itemWidth="auto";showArrows;showIndicators;repeat=!1;transition="slide";transitionDuration=500;autoplay=!1;autoplayInterval=5e3;autoplaySuspended=!1;ariaLabel="Carousel content";hasExtraControls=!1;activeIndex=0;maxIndex=0;isScrollable=!1;isAtStart=!0;isAtEnd=!0;autoplayRequested=!1;autoplayPlaying=!1;qSlideChange;qAutoplayChange;get el(){return s(this)}slideState=new a;touchStart;get stacked(){return"crossfade"===this.transition||"instant"===this.transition}get managesSlides(){return this.stacked||"slideshow"===this.layout}get navigable(){return this.isScrollable&&this.maxIndex>0}get arrowsVisible(){return this.navigable&&(this.showArrows??"slideshow"===this.layout)}get indicatorsVisible(){return this.navigable&&(this.showIndicators??"slideshow"===this.layout)}get viewportFocusable(){return this.managesSlides?this.navigable&&!this.arrowsVisible&&!this.indicatorsVisible:this.isScrollable}scrollContainer;resizeObserver;restoreSlideIndex;itemOffsets=[];itemWidths=[];containerWidth=0;maxScrollLeft=0;cachedChildren=[];rafId;scrollRafId;isProgrammaticScroll=!1;programmaticScrollTimer;activeScrollEndCleanup;programmaticScrollToken=0;connected=!1;hovered=!1;reducedMotion=!1;motionPreference;rotationButton;rotationPointerAction;autoplayController=new r((()=>!(!this.repeat&&this.activeIndex>=this.maxIndex||(this.scrollToIndex(this.activeIndex+1),0))),((t,i)=>{const s=t!==this.autoplayPlaying;this.autoplayRequested=i,this.autoplayPlaying=t,s&&this.qAutoplayChange.emit({playing:t})}));layoutChanged(){this.updateItemStyles(),this.managesSlides||this.slideState.restore(),this.scheduleCalculateLimits()}autoplayChanged(){this.syncAutoplay()}transitionChanged(){this.programmaticScrollToken+=1,this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1,this.touchStart=void 0,this.scrollRafId&&cancelAnimationFrame(this.scrollRafId),this.scrollRafId=void 0,this.stacked||(this.managesSlides||this.slideState.restore(),this.restoreSlideIndex=this.activeIndex),this.scrollContainer&&(this.scrollContainer.scrollLeft=0),this.scheduleCalculateLimits()}connectedCallback(){this.connected=!0,this.motionPreference=window.matchMedia("(prefers-reduced-motion: reduce)"),this.reducedMotion=this.motionPreference.matches,this.motionPreference.addEventListener("change",this.handleMotionChange),document.addEventListener("visibilitychange",this.syncAutoplay),this.syncAutoplay(),this.scrollContainer&&this.setScrollContainerRef(this.scrollContainer)}disconnectedCallback(){this.connected=!1,this.motionPreference?.removeEventListener("change",this.handleMotionChange),this.motionPreference=void 0,document.removeEventListener("visibilitychange",this.syncAutoplay),this.autoplayController.disconnect(),this.slideState.restore(),this.touchStart=void 0,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),this.scrollRafId&&(cancelAnimationFrame(this.scrollRafId),this.scrollRafId=void 0),this.programmaticScrollToken+=1,this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1}async slideTo(t){this.scrollToIndex(t)}async play(){this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits(),this.autoplay&&this.navigable&&!this.repeat&&this.activeIndex>=this.maxIndex&&this.scrollToIndex(0),this.autoplayController.play()}async pause(){this.autoplayController.pause()}async updateLimits(){this.calculateLimits()}syncAutoplay=()=>{this.autoplayController.configure({enabled:this.autoplay,navigable:this.navigable,suspended:!this.connected||this.hovered||document.hidden||this.autoplaySuspended,reducedMotion:this.reducedMotion,interval:this.autoplayInterval})};handleMotionChange=t=>{this.reducedMotion=t.matches,this.syncAutoplay()};handleHover=t=>{this.hovered=t,this.syncAutoplay()};isRotationEvent(t){return!!this.rotationButton&&t.composedPath().includes(this.rotationButton)}handleInteraction=t=>{this.isRotationEvent(t)||this.autoplayController.pause()};handleFocus=()=>this.autoplayController.pause();handleRotationClick=()=>{const t=this.rotationPointerAction??!this.autoplayRequested;this.rotationPointerAction=void 0,t?this.play():this.autoplayController.pause()};updateSlideState(){this.managesSlides?this.slideState.update(this.cachedChildren,this.activeIndex,(()=>this.recoverSlideFocus())):this.slideState.restore()}recoverSlideFocus(){const t=this.el.shadowRoot,i=this.indicatorsVisible?t?.querySelectorAll(".indicator-dot")[this.activeIndex]:void 0,s=this.arrowsVisible?t?.querySelector(this.repeat||this.activeIndex<this.maxIndex?".arrow-right":".arrow-left"):void 0;(i??s??this.rotationButton??this.scrollContainer)?.focus({preventScroll:!0})}setScrollContainerRef=t=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.scrollContainer=t||void 0,t&&(this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits(),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.scheduleCalculateLimits())),this.resizeObserver.observe(t)))};handleSlotChange=()=>{this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits()};updateCachedChildren(){this.cachedChildren=this.scrollContainer?o(this.scrollContainer):[]}updateItemStyles(){const t="auto"===this.itemWidth&&"slideshow"===this.layout?"100%":this.itemWidth;"auto"!==t?(this.el.style.setProperty("--q-carousel-item-width",t),this.el.style.setProperty("--q-carousel-item-flex",`0 0 ${t}`)):(this.el.style.removeProperty("--q-carousel-item-width"),this.el.style.removeProperty("--q-carousel-item-flex")),"none"!==this.snapAlignment?this.el.style.setProperty("--q-carousel-snap-align",this.snapAlignment):this.el.style.removeProperty("--q-carousel-snap-align")}scheduleCalculateLimits=()=>{this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame((()=>{this.calculateLimits(),this.rafId=void 0}))};calculateLimits=()=>{if(!this.scrollContainer)return;if(this.stacked)return this.maxIndex=Math.max(0,this.cachedChildren.length-1),this.isScrollable=this.cachedChildren.length>1,this.selectStacked(Math.min(this.activeIndex,this.maxIndex)),void this.syncAutoplay();const t=function(t,i){const s=t.clientWidth,e=Math.max(0,t.scrollWidth-s);return{itemOffsets:i.map((i=>i.offsetLeft-t.offsetLeft)),itemWidths:i.map((t=>t.clientWidth)),containerWidth:s,maxScrollLeft:e,isScrollable:t.scrollWidth>s,maxIndex:Math.max(0,i.length-1)}}(this.scrollContainer,this.cachedChildren);this.itemOffsets=t.itemOffsets,this.itemWidths=t.itemWidths,this.containerWidth=t.containerWidth,this.maxScrollLeft=t.maxScrollLeft,this.isScrollable=t.isScrollable,this.maxIndex=t.maxIndex;const i=Math.min(this.activeIndex,this.maxIndex);if(i!==this.activeIndex&&(this.activeIndex=i,this.cachedChildren[i]&&this.qSlideChange.emit({index:i,element:this.cachedChildren[i]})),this.updateSlideState(),this.syncAutoplay(),void 0!==this.restoreSlideIndex){const t=Math.min(this.restoreSlideIndex,this.maxIndex);this.scrollContainer.scrollTo({left:this.itemOffsets[t]??0,behavior:"instant"}),this.restoreSlideIndex=void 0}this.updateEdgeState(this.scrollContainer.scrollLeft),this.handleScroll()};updateEdgeState(t){const i=this.itemOffsets[0]||0,{isAtStart:s,isAtEnd:e}=function(t,i,s,e=5){return{isAtStart:t<=i+e,isAtEnd:t>=s-e}}(t,i,this.maxScrollLeft);this.isAtStart!==s&&(this.isAtStart=s),this.isAtEnd!==e&&(this.isAtEnd=e)}handleScroll=()=>{!this.stacked&&this.scrollContainer&&0!==this.itemOffsets.length&&(this.isProgrammaticScroll||this.scrollRafId||(this.scrollRafId=requestAnimationFrame((()=>{if(this.scrollRafId=void 0,this.stacked||!this.scrollContainer||0===this.itemOffsets.length||this.isProgrammaticScroll)return;const t=this.scrollContainer.scrollLeft;this.updateEdgeState(t);const i=function(t){let i=t.scrollLeft;"center"===t.snapAlignment?i=t.scrollLeft+t.containerWidth/2:"end"===t.snapAlignment&&(i=t.scrollLeft+t.containerWidth);let s=0,e=1/0;return t.itemOffsets.forEach(((o,a)=>{let r=o;const n=t.itemWidths[a]||0;"center"===t.snapAlignment?r=o+n/2:"end"===t.snapAlignment&&(r=o+n);const h=Math.abs(r-i);h<e&&(e=h,s=a)})),s}({scrollLeft:t,itemOffsets:this.itemOffsets,itemWidths:this.itemWidths,containerWidth:this.containerWidth,snapAlignment:this.snapAlignment});if(this.activeIndex!==i){this.activeIndex=i,this.updateSlideState();const t=this.cachedChildren;t[this.activeIndex]&&this.qSlideChange.emit({index:this.activeIndex,element:t[this.activeIndex]})}}))))};clearProgrammaticScroll(){this.activeScrollEndCleanup&&(this.activeScrollEndCleanup(),this.activeScrollEndCleanup=void 0),this.programmaticScrollTimer&&(clearTimeout(this.programmaticScrollTimer),this.programmaticScrollTimer=void 0)}selectStacked(t){const i=this.activeIndex!==t;this.activeIndex=t,this.isAtStart=0===t,this.isAtEnd=t===this.maxIndex,this.updateSlideState(),i&&this.cachedChildren[t]&&this.qSlideChange.emit({index:t,element:this.cachedChildren[t]})}scrollToIndex(t){if(this.stacked){const i=n(t,this.maxIndex,this.repeat);return void(void 0!==i&&this.cachedChildren[i]&&this.selectStacked(i))}if(!this.scrollContainer||0===this.itemOffsets.length||this.maxIndex<=0)return;const i=n(t,this.maxIndex,this.repeat);if(void 0===i)return;if(void 0===this.itemOffsets[i])return;this.clearProgrammaticScroll(),this.isProgrammaticScroll=!0;const s=++this.programmaticScrollToken;this.activeIndex=i,this.updateSlideState();const e=this.cachedChildren;e[this.activeIndex]&&this.qSlideChange.emit({index:this.activeIndex,element:e[this.activeIndex]}),this.scrollContainer.scrollTo({left:this.itemOffsets[i],behavior:this.reducedMotion?"instant":"smooth"});const o=()=>{s===this.programmaticScrollToken&&(this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1,this.handleScroll())};this.scrollContainer&&(this.scrollContainer.addEventListener("scrollend",o,{once:!0}),this.activeScrollEndCleanup=()=>{this.scrollContainer?.removeEventListener("scrollend",o)}),this.programmaticScrollTimer=setTimeout(o,600)}slidePrev=()=>{(this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtStart||!this.isScrollable)||this.scrollToIndex(this.activeIndex-1)};slideNext=()=>{(this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtEnd||!this.isScrollable)||this.scrollToIndex(this.activeIndex+1)};handleIndicatorKeyDown=t=>{if("ArrowRight"===t.key||"ArrowLeft"===t.key){t.preventDefault(),this.autoplayController.pause();const i=Array.from(this.el.shadowRoot?.querySelectorAll(".indicator-dot")||[]);if(0===i.length)return;const s=i.findIndex((t=>t===this.el.shadowRoot?.activeElement));if(-1===s)return;let e=s;e="ArrowRight"===t.key?(s+1)%i.length:(s-1+i.length)%i.length,i[e].focus(),this.scrollToIndex(e)}};isInteractiveEvent(t){return t.composedPath().some((t=>t instanceof HTMLElement&&t.matches('button, a, input, select, textarea, video, audio, [contenteditable]:not([contenteditable="false"])')))}handleKeyDown=t=>{!this.managesSlides||this.isInteractiveEvent(t)||t.defaultPrevented||"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),t.stopPropagation(),this.autoplayController.pause(),this.scrollToIndex(this.activeIndex+("ArrowRight"===t.key?1:-1)),this.viewportFocusable||this.recoverSlideFocus())};handlePointerDown=t=>{this.stacked&&t.isPrimary&&"mouse"!==t.pointerType&&!this.isInteractiveEvent(t)&&(this.touchStart={id:t.pointerId,x:t.clientX,y:t.clientY})};handlePointerUp=t=>{const i=this.touchStart;if(this.touchStart=void 0,!this.stacked||!i||i.id!==t.pointerId)return;const s=t.clientX-i.x,e=t.clientY-i.y;Math.abs(s)>=48&&Math.abs(s)>1.5*Math.abs(e)&&this.scrollToIndex(this.activeIndex+(s<0?1:-1))};handlePointerCancel=()=>{this.touchStart=void 0};handleExtraControlsChange=t=>{this.hasExtraControls=t.target.assignedElements().length>0};render(){const t=this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtStart||!this.isScrollable,i=this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtEnd||!this.isScrollable;return e("div",{key:"5332185de69a1702378c8e536ab377757727b64b",class:"carousel-wrapper",onMouseEnter:()=>this.handleHover(!0),onMouseLeave:()=>this.handleHover(!1),onFocusin:this.handleFocus,onPointerDown:this.handleInteraction,onClick:this.handleInteraction},e("div",{key:"c13f7d5a2f037163869e98d6f6b7e846d0c6dd3f",class:"carousel-controls",part:"controls",hidden:!(this.indicatorsVisible||this.autoplay&&this.navigable||this.hasExtraControls)},this.autoplay&&this.navigable&&e("button",{key:"d80a64514b6d0321d9e4033aa3d3d2cb781bb26d",class:"rotation-btn",part:"rotation-button",type:"button",onPointerDown:()=>{this.rotationPointerAction=!this.autoplayRequested},onPointerCancel:()=>{this.rotationPointerAction=void 0},onClick:this.handleRotationClick,ref:t=>{this.rotationButton=t??void 0}},this.autoplayRequested?"Pause slideshow":"Play slideshow"),this.indicatorsVisible&&e("div",{key:"eee28dc1ca9c6465864be40d5c6902dbef6b3d9e",class:"carousel-indicators",role:"group","aria-label":"Carousel slide controls",onKeyDown:this.handleIndicatorKeyDown},Array.from({length:this.maxIndex+1}).map(((t,i)=>e("button",{class:{"indicator-dot":!0,"is-active":i===this.activeIndex},part:"indicator","aria-current":i===this.activeIndex?"true":void 0,onClick:()=>this.scrollToIndex(i),"aria-label":`Go to slide ${i+1}`,type:"button",tabindex:i===this.activeIndex?0:-1})))),e("slot",{key:"ab1d7d2ed12e783f60a56c7aafafb3b34152d78b",name:"controls-extra",onSlotchange:this.handleExtraControlsChange})),e("div",{key:"33c746a7ed8d5a7efa5643fbd2c83a01a16ff83b",class:"carousel-arrow"},this.arrowsVisible&&e("button",{key:"a619e518e5d60bd2519e1cbcbef106203b60924f",class:{"arrow-btn":!0,"arrow-left":!0},part:"previous-button","aria-disabled":t?"true":"false",onClick:t?void 0:this.slidePrev,"aria-label":"Previous slide",type:"button"},e("svg",{key:"4237528155bd99c889e20fca88e2b4238987964e",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("polyline",{key:"1d461c22f7f6cf4ecaefba2f4239e998e26c6573",points:"15 18 9 12 15 6"})))),e("div",{key:"e750c909d4774969acf186effe8bb7bc0ba14aad",class:{"carousel-viewport":!0,"is-stacked":this.stacked,"viewport-focusable":this.viewportFocusable,[`snap-${this.snapAlignment}`]:"none"!==this.snapAlignment},role:"group","aria-roledescription":"carousel",part:"viewport",tabindex:this.viewportFocusable?0:-1,"aria-label":this.ariaLabel,"aria-live":this.managesSlides?this.autoplayPlaying?"off":"polite":void 0,"aria-atomic":this.managesSlides?"false":void 0,style:{"--q-carousel-transition-duration":`${Number.isFinite(this.transitionDuration)?Math.max(0,this.transitionDuration):500}ms`},onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel,onScroll:this.handleScroll,ref:this.setScrollContainerRef},e("slot",{key:"ef240455917f5e67a8699344bc1b6e8bffb2430a",onSlotchange:this.handleSlotChange})),e("div",{key:"20c2ceaf34d6699377fcfda1a586d8a8044355e8",class:"carousel-arrow"},this.arrowsVisible&&e("button",{key:"107edd387a55db86e682a95d658c762e45cb2dd3",class:{"arrow-btn":!0,"arrow-right":!0},part:"next-button","aria-disabled":i?"true":"false",onClick:i?void 0:this.slideNext,"aria-label":"Next slide",type:"button"},e("svg",{key:"8edcf7f64262b1118d3ede9cb0f819ad5843c923",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("polyline",{key:"042a951bb6271b6aee6bb4484e9abc0910c63f4f",points:"9 18 15 12 9 6"})))))}static get watchers(){return{layout:[{layoutChanged:0}],itemWidth:[{layoutChanged:0}],snapAlignment:[{layoutChanged:0}],autoplay:[{autoplayChanged:0}],autoplayInterval:[{autoplayChanged:0}],autoplaySuspended:[{autoplayChanged:0}],transition:[{transitionChanged:0}]}}};h.style=":host{display:block;width:100%;box-sizing:border-box;position:relative}::slotted(:not([slot='controls-extra'])){box-sizing:border-box;flex:var(--q-carousel-item-flex, 0 0 auto);width:var(--q-carousel-item-width, auto);scroll-snap-align:var(--q-carousel-snap-align, none)}.carousel-wrapper{position:relative;width:100%;box-sizing:border-box;display:flex;flex-direction:column}:host([layout='slideshow']){--q-carousel-padding:0;--q-carousel-gap:0}.carousel-viewport{display:flex;order:1;flex-direction:row;overflow-x:auto;width:100%;gap:var(--q-carousel-gap, 16px);padding:var(--q-carousel-padding, 48px 40px);box-sizing:border-box;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;outline:none}.carousel-viewport.viewport-focusable:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.carousel-viewport::-webkit-scrollbar{display:none}.carousel-viewport{-ms-overflow-style:none;scrollbar-width:none}.snap-start{scroll-snap-type:x mandatory}.snap-center{scroll-snap-type:x mandatory}.snap-end{scroll-snap-type:x mandatory}.carousel-arrow{display:contents}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);width:var(--q-carousel-arrow-size, 40px);height:var(--q-carousel-arrow-size, 40px);border-radius:50%;background:var(--q-carousel-arrow-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-carousel-arrow-border, var(--q-border, 1px solid var(--q-border-color, #374151)));color:var(--q-carousel-arrow-color, var(--q-fg-base, #f9fafb));display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;outline:none;box-shadow:0 8px 16px rgba(0, 0, 0, 0.3);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0,0,0,0.3));opacity:0;user-select:none;-webkit-user-select:none;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.arrow-left{left:8px}.arrow-right{right:8px}.carousel-wrapper:hover .arrow-btn,.carousel-wrapper:focus-within .arrow-btn{opacity:1}.arrow-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1;z-index:12}.arrow-btn:hover{background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa);color:var(--q-bg-base, #111827);transform:translateY(-50%) scale(1.08)}.arrow-btn:active{transform:translateY(-50%) scale(0.95)}.arrow-btn[aria-disabled=\"true\"]{opacity:0.25 !important;pointer-events:none;cursor:not-allowed;transform:translateY(-50%) scale(0.9)}.arrow-btn svg{width:20px;height:20px}.carousel-controls{display:flex;order:2;max-width:100%;flex-direction:column;align-items:center;gap:var(--q-carousel-controls-gap, 0px)}.carousel-controls[hidden]{display:none}.carousel-indicators{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--q-carousel-indicator-gap, 8px);margin-top:var(--q-carousel-indicator-margin-top, 16px);width:100%}.indicator-dot{flex-shrink:0;padding:0;width:var(--q-carousel-indicator-size, 6px);height:var(--q-carousel-indicator-size, 6px);border-radius:var(--q-carousel-indicator-size, 6px);background:var(--q-fg-muted, #9ca3af);border:none;cursor:pointer;outline:none;opacity:0.5;user-select:none;-webkit-user-select:none;transition:width var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.indicator-dot:hover{opacity:0.8}.indicator-dot:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1}.indicator-dot.is-active{background:var(--q-color-primary, #60a5fa);opacity:1;width:calc(var(--q-carousel-indicator-size, 6px) * 2.5)}.carousel-viewport.is-stacked{display:grid;overflow:hidden;gap:0;scroll-snap-type:none;touch-action:pan-y pinch-zoom;isolation:isolate}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])),:host([transition='instant']) ::slotted(:not([slot='controls-extra'])){grid-area:1 / 1;width:100%;min-width:0;opacity:0;pointer-events:none;z-index:0}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:opacity var(--q-carousel-transition-duration, 500ms) ease-in-out}:host([transition='crossfade']) ::slotted([data-q-carousel-active='true']),:host([transition='instant']) ::slotted([data-q-carousel-active='true']){opacity:1;pointer-events:auto;z-index:1}@media (prefers-reduced-motion: reduce){.carousel-viewport{scroll-behavior:auto}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:none}}.rotation-btn{min-width:44px;min-height:44px;max-width:100%;box-sizing:border-box;padding:var(--q-padding-sm, 8px) var(--q-padding-md, 12px);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:inherit;cursor:pointer}.rotation-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}@media (hover: none), (pointer: coarse){.arrow-btn{opacity:1}}";export{h as q_carousel}
|
|
1
|
+
import{r as t,c as i,a as s,h as e}from"./p-DaJmsCb7.js";import{g as o}from"./p-ByfrUWx1.js";class a{originals=new Map;update(t,i,s){for(const i of this.originals.keys())t.includes(i)||this.restoreElement(i);for(const[e,o]of t.entries()){this.originals.has(o)||this.originals.set(o,{inert:o.inert,hidden:o.getAttribute("aria-hidden"),active:o.getAttribute("data-q-carousel-active")});const t=e===i,a=this.originals.get(o),r=o.getRootNode(),n=r instanceof ShadowRoot?r.activeElement:o.ownerDocument.activeElement;!t&&o.contains(n)&&("function"==typeof s?s():s?.focus({preventScroll:!0})),o.inert=!t||a.inert,this.attribute(o,"aria-hidden",t?a.hidden:"true"),this.attribute(o,"data-q-carousel-active",t?"true":"false")}}restore(){for(const t of this.originals.keys())this.restoreElement(t)}restoreElement(t){const i=this.originals.get(t);t.inert=i.inert,this.attribute(t,"aria-hidden",i.hidden),this.attribute(t,"data-q-carousel-active",i.active),this.originals.delete(t)}attribute(t,i,s){null===s?t.removeAttribute(i):t.getAttribute(i)!==s&&t.setAttribute(i,s)}}class r{advance;changed;config={enabled:!1,navigable:!1,suspended:!0,reducedMotion:!1,interval:5e3};requested=!1;timer;constructor(t,i){this.advance=t,this.changed=i}configure(t){const i=Number.isFinite(t.interval)&&t.interval>0?t.interval:5e3,s=i!==this.config.interval;t.enabled?this.config.enabled?t.reducedMotion&&!this.config.reducedMotion&&(this.requested=!1):this.requested=!t.reducedMotion:this.requested=!1,this.config={...t,interval:i},s&&this.clearTimer(),this.sync()}play(){this.config.enabled&&(this.requested=!0,this.sync())}pause(){this.requested=!1,this.sync()}disconnect(){this.config={...this.config,suspended:!0},this.sync()}sync(){const t=this.requested&&this.config.enabled&&this.config.navigable&&!this.config.suspended;t?void 0===this.timer&&(this.timer=setInterval((()=>{this.advance()||this.pause()}),this.config.interval)):this.clearTimer(),this.changed(t,this.requested)}clearTimer(){void 0!==this.timer&&(clearInterval(this.timer),this.timer=void 0)}}function n(t,i,s){if(!(i<=0)){if(s)return t<0?i:t>i?0:t;if(!(t<0||t>i))return t}}const h=class{constructor(s){t(this,s),this.qSlideChange=i(this,"qSlideChange"),this.qAutoplayChange=i(this,"qAutoplayChange")}layout="strip";snapAlignment="start";itemWidth="auto";showArrows;showIndicators;repeat=!1;transition="slide";transitionDuration=500;autoplay=!1;autoplayInterval=5e3;autoplaySuspended=!1;ariaLabel="Carousel content";hasExtraControls=!1;activeIndex=0;maxIndex=0;isScrollable=!1;isAtStart=!0;isAtEnd=!0;autoplayRequested=!1;autoplayPlaying=!1;qSlideChange;qAutoplayChange;get el(){return s(this)}slideState=new a;touchStart;get stacked(){return"crossfade"===this.transition||"instant"===this.transition}get managesSlides(){return this.stacked||"slideshow"===this.layout}get navigable(){return this.isScrollable&&this.maxIndex>0}get arrowsVisible(){return this.navigable&&(this.showArrows??"slideshow"===this.layout)}get indicatorsVisible(){return this.navigable&&(this.showIndicators??"slideshow"===this.layout)}get viewportFocusable(){return this.managesSlides?this.navigable&&!this.arrowsVisible&&!this.indicatorsVisible:this.isScrollable}scrollContainer;resizeObserver;restoreSlideIndex;itemOffsets=[];itemWidths=[];containerWidth=0;maxScrollLeft=0;cachedChildren=[];rafId;scrollRafId;isProgrammaticScroll=!1;programmaticScrollTimer;activeScrollEndCleanup;programmaticScrollToken=0;connected=!1;hovered=!1;reducedMotion=!1;motionPreference;rotationButton;rotationPointerAction;autoplayController=new r((()=>!(!this.repeat&&this.activeIndex>=this.maxIndex||(this.scrollToIndex(this.activeIndex+1),0))),((t,i)=>{const s=t!==this.autoplayPlaying;this.autoplayRequested=i,this.autoplayPlaying=t,s&&this.qAutoplayChange.emit({playing:t})}));layoutChanged(){this.updateItemStyles(),this.managesSlides||this.slideState.restore(),this.scheduleCalculateLimits()}autoplayChanged(){this.syncAutoplay()}transitionChanged(){this.programmaticScrollToken+=1,this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1,this.touchStart=void 0,this.scrollRafId&&cancelAnimationFrame(this.scrollRafId),this.scrollRafId=void 0,this.stacked||(this.managesSlides||this.slideState.restore(),this.restoreSlideIndex=this.activeIndex),this.scrollContainer&&(this.scrollContainer.scrollLeft=0),this.scheduleCalculateLimits()}connectedCallback(){this.connected=!0,this.motionPreference=window.matchMedia("(prefers-reduced-motion: reduce)"),this.reducedMotion=this.motionPreference.matches,this.motionPreference.addEventListener("change",this.handleMotionChange),document.addEventListener("visibilitychange",this.syncAutoplay),this.syncAutoplay(),this.scrollContainer&&this.setScrollContainerRef(this.scrollContainer)}disconnectedCallback(){this.connected=!1,this.motionPreference?.removeEventListener("change",this.handleMotionChange),this.motionPreference=void 0,document.removeEventListener("visibilitychange",this.syncAutoplay),this.autoplayController.disconnect(),this.slideState.restore(),this.touchStart=void 0,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),this.scrollRafId&&(cancelAnimationFrame(this.scrollRafId),this.scrollRafId=void 0),this.programmaticScrollToken+=1,this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1}async slideTo(t){this.scrollToIndex(t)}async play(){this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits(),this.autoplay&&this.navigable&&!this.repeat&&this.activeIndex>=this.maxIndex&&this.scrollToIndex(0),this.autoplayController.play()}async pause(){this.autoplayController.pause()}async updateLimits(){this.calculateLimits()}syncAutoplay=()=>{this.autoplayController.configure({enabled:this.autoplay,navigable:this.navigable,suspended:!this.connected||this.hovered||document.hidden||this.autoplaySuspended,reducedMotion:this.reducedMotion,interval:this.autoplayInterval})};handleMotionChange=t=>{this.reducedMotion=t.matches,this.syncAutoplay()};handleHover=t=>{this.hovered=t,this.syncAutoplay()};isRotationEvent(t){return!!this.rotationButton&&t.composedPath().includes(this.rotationButton)}handleInteraction=t=>{this.isRotationEvent(t)||this.autoplayController.pause()};handleFocus=()=>this.autoplayController.pause();handleRotationClick=()=>{const t=this.rotationPointerAction??!this.autoplayRequested;this.rotationPointerAction=void 0,t?this.play():this.autoplayController.pause()};updateSlideState(){this.managesSlides?this.slideState.update(this.cachedChildren,this.activeIndex,(()=>this.recoverSlideFocus())):this.slideState.restore()}recoverSlideFocus(){const t=this.el.shadowRoot,i=this.indicatorsVisible?t?.querySelectorAll(".indicator-dot")[this.activeIndex]:void 0,s=this.arrowsVisible?t?.querySelector(this.repeat||this.activeIndex<this.maxIndex?".arrow-right":".arrow-left"):void 0;(i??s??this.rotationButton??this.scrollContainer)?.focus({preventScroll:!0})}setScrollContainerRef=t=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.scrollContainer=t||void 0,t&&(this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits(),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.scheduleCalculateLimits())),this.resizeObserver.observe(t)))};handleSlotChange=()=>{this.updateCachedChildren(),this.updateItemStyles(),this.calculateLimits()};updateCachedChildren(){this.cachedChildren=this.scrollContainer?o(this.scrollContainer):[]}updateItemStyles(){const t="auto"===this.itemWidth&&"slideshow"===this.layout?"100%":this.itemWidth;"auto"!==t?(this.el.style.setProperty("--q-carousel-item-width",t),this.el.style.setProperty("--q-carousel-item-flex",`0 0 ${t}`)):(this.el.style.removeProperty("--q-carousel-item-width"),this.el.style.removeProperty("--q-carousel-item-flex")),"none"!==this.snapAlignment?this.el.style.setProperty("--q-carousel-snap-align",this.snapAlignment):this.el.style.removeProperty("--q-carousel-snap-align")}scheduleCalculateLimits=()=>{this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame((()=>{this.calculateLimits(),this.rafId=void 0}))};calculateLimits=()=>{if(!this.scrollContainer)return;if(this.stacked)return this.maxIndex=Math.max(0,this.cachedChildren.length-1),this.isScrollable=this.cachedChildren.length>1,this.selectStacked(Math.min(this.activeIndex,this.maxIndex)),void this.syncAutoplay();const t=function(t,i){const s=t.clientWidth,e=Math.max(0,t.scrollWidth-s);return{itemOffsets:i.map((i=>i.offsetLeft-t.offsetLeft)),itemWidths:i.map((t=>t.clientWidth)),containerWidth:s,maxScrollLeft:e,isScrollable:t.scrollWidth>s,maxIndex:Math.max(0,i.length-1)}}(this.scrollContainer,this.cachedChildren);this.itemOffsets=t.itemOffsets,this.itemWidths=t.itemWidths,this.containerWidth=t.containerWidth,this.maxScrollLeft=t.maxScrollLeft,this.isScrollable=t.isScrollable,this.maxIndex=t.maxIndex;const i=Math.min(this.activeIndex,this.maxIndex);if(i!==this.activeIndex&&(this.activeIndex=i,this.cachedChildren[i]&&this.qSlideChange.emit({index:i,element:this.cachedChildren[i]})),this.updateSlideState(),this.syncAutoplay(),void 0!==this.restoreSlideIndex){const t=Math.min(this.restoreSlideIndex,this.maxIndex);this.scrollContainer.scrollTo({left:this.itemOffsets[t]??0,behavior:"instant"}),this.restoreSlideIndex=void 0}this.updateEdgeState(this.scrollContainer.scrollLeft),this.handleScroll()};updateEdgeState(t){const i=this.itemOffsets[0]||0,{isAtStart:s,isAtEnd:e}=function(t,i,s,e=5){return{isAtStart:t<=i+e,isAtEnd:t>=s-e}}(t,i,this.maxScrollLeft);this.isAtStart!==s&&(this.isAtStart=s),this.isAtEnd!==e&&(this.isAtEnd=e)}handleScroll=()=>{!this.stacked&&this.scrollContainer&&0!==this.itemOffsets.length&&(this.isProgrammaticScroll||this.scrollRafId||(this.scrollRafId=requestAnimationFrame((()=>{if(this.scrollRafId=void 0,this.stacked||!this.scrollContainer||0===this.itemOffsets.length||this.isProgrammaticScroll)return;const t=this.scrollContainer.scrollLeft;this.updateEdgeState(t);const i=function(t){let i=t.scrollLeft;"center"===t.snapAlignment?i=t.scrollLeft+t.containerWidth/2:"end"===t.snapAlignment&&(i=t.scrollLeft+t.containerWidth);let s=0,e=1/0;return t.itemOffsets.forEach(((o,a)=>{let r=o;const n=t.itemWidths[a]||0;"center"===t.snapAlignment?r=o+n/2:"end"===t.snapAlignment&&(r=o+n);const h=Math.abs(r-i);h<e&&(e=h,s=a)})),s}({scrollLeft:t,itemOffsets:this.itemOffsets,itemWidths:this.itemWidths,containerWidth:this.containerWidth,snapAlignment:this.snapAlignment});if(this.activeIndex!==i){this.activeIndex=i,this.updateSlideState();const t=this.cachedChildren;t[this.activeIndex]&&this.qSlideChange.emit({index:this.activeIndex,element:t[this.activeIndex]})}}))))};clearProgrammaticScroll(){this.activeScrollEndCleanup&&(this.activeScrollEndCleanup(),this.activeScrollEndCleanup=void 0),this.programmaticScrollTimer&&(clearTimeout(this.programmaticScrollTimer),this.programmaticScrollTimer=void 0)}selectStacked(t){const i=this.activeIndex!==t;this.activeIndex=t,this.isAtStart=0===t,this.isAtEnd=t===this.maxIndex,this.updateSlideState(),i&&this.cachedChildren[t]&&this.qSlideChange.emit({index:t,element:this.cachedChildren[t]})}scrollToIndex(t){if(this.stacked){const i=n(t,this.maxIndex,this.repeat);return void(void 0!==i&&this.cachedChildren[i]&&this.selectStacked(i))}if(!this.scrollContainer||0===this.itemOffsets.length||this.maxIndex<=0)return;const i=n(t,this.maxIndex,this.repeat);if(void 0===i)return;if(void 0===this.itemOffsets[i])return;this.clearProgrammaticScroll(),this.isProgrammaticScroll=!0;const s=++this.programmaticScrollToken;this.activeIndex=i,this.updateSlideState();const e=this.cachedChildren;e[this.activeIndex]&&this.qSlideChange.emit({index:this.activeIndex,element:e[this.activeIndex]}),this.scrollContainer.scrollTo({left:this.itemOffsets[i],behavior:this.reducedMotion?"instant":"smooth"});const o=()=>{s===this.programmaticScrollToken&&(this.clearProgrammaticScroll(),this.isProgrammaticScroll=!1,this.handleScroll())};this.scrollContainer&&(this.scrollContainer.addEventListener("scrollend",o,{once:!0}),this.activeScrollEndCleanup=()=>{this.scrollContainer?.removeEventListener("scrollend",o)}),this.programmaticScrollTimer=setTimeout(o,600)}slidePrev=()=>{(this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtStart||!this.isScrollable)||this.scrollToIndex(this.activeIndex-1)};slideNext=()=>{(this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtEnd||!this.isScrollable)||this.scrollToIndex(this.activeIndex+1)};handleIndicatorKeyDown=t=>{if("ArrowRight"===t.key||"ArrowLeft"===t.key){t.preventDefault(),this.autoplayController.pause();const i=Array.from(this.el.shadowRoot?.querySelectorAll(".indicator-dot")||[]);if(0===i.length)return;const s=i.findIndex((t=>t===this.el.shadowRoot?.activeElement));if(-1===s)return;let e=s;e="ArrowRight"===t.key?(s+1)%i.length:(s-1+i.length)%i.length,i[e].focus(),this.scrollToIndex(e)}};isInteractiveEvent(t){return t.composedPath().some((t=>t instanceof HTMLElement&&t.matches('button, a, input, select, textarea, video, audio, [contenteditable]:not([contenteditable="false"])')))}handleKeyDown=t=>{!this.managesSlides||this.isInteractiveEvent(t)||t.defaultPrevented||"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),t.stopPropagation(),this.autoplayController.pause(),this.scrollToIndex(this.activeIndex+("ArrowRight"===t.key?1:-1)),this.viewportFocusable||this.recoverSlideFocus())};handlePointerDown=t=>{this.stacked&&t.isPrimary&&"mouse"!==t.pointerType&&!this.isInteractiveEvent(t)&&(this.touchStart={id:t.pointerId,x:t.clientX,y:t.clientY})};handlePointerUp=t=>{const i=this.touchStart;if(this.touchStart=void 0,!this.stacked||!i||i.id!==t.pointerId)return;const s=t.clientX-i.x,e=t.clientY-i.y;Math.abs(s)>=48&&Math.abs(s)>1.5*Math.abs(e)&&this.scrollToIndex(this.activeIndex+(s<0?1:-1))};handlePointerCancel=()=>{this.touchStart=void 0};handleExtraControlsChange=t=>{this.hasExtraControls=t.target.assignedElements().length>0};render(){const t=this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtStart||!this.isScrollable,i=this.repeat?!this.isScrollable||this.maxIndex<=0:this.isAtEnd||!this.isScrollable;return e("div",{key:"5332185de69a1702378c8e536ab377757727b64b",class:"carousel-wrapper",onMouseEnter:()=>this.handleHover(!0),onMouseLeave:()=>this.handleHover(!1),onFocusin:this.handleFocus,onPointerDown:this.handleInteraction,onClick:this.handleInteraction},e("div",{key:"c13f7d5a2f037163869e98d6f6b7e846d0c6dd3f",class:"carousel-controls",part:"controls",hidden:!(this.indicatorsVisible||this.autoplay&&this.navigable||this.hasExtraControls)},this.autoplay&&this.navigable&&e("button",{key:"d80a64514b6d0321d9e4033aa3d3d2cb781bb26d",class:"rotation-btn",part:"rotation-button",type:"button",onPointerDown:()=>{this.rotationPointerAction=!this.autoplayRequested},onPointerCancel:()=>{this.rotationPointerAction=void 0},onClick:this.handleRotationClick,ref:t=>{this.rotationButton=t??void 0}},this.autoplayRequested?"Pause slideshow":"Play slideshow"),this.indicatorsVisible&&e("div",{key:"eee28dc1ca9c6465864be40d5c6902dbef6b3d9e",class:"carousel-indicators",role:"group","aria-label":"Carousel slide controls",onKeyDown:this.handleIndicatorKeyDown},Array.from({length:this.maxIndex+1}).map(((t,i)=>e("button",{class:{"indicator-dot":!0,"is-active":i===this.activeIndex},part:"indicator","aria-current":i===this.activeIndex?"true":void 0,onClick:()=>this.scrollToIndex(i),"aria-label":`Go to slide ${i+1}`,type:"button",tabindex:i===this.activeIndex?0:-1})))),e("slot",{key:"ab1d7d2ed12e783f60a56c7aafafb3b34152d78b",name:"controls-extra",onSlotchange:this.handleExtraControlsChange})),e("div",{key:"33c746a7ed8d5a7efa5643fbd2c83a01a16ff83b",class:"carousel-arrow"},this.arrowsVisible&&e("button",{key:"a619e518e5d60bd2519e1cbcbef106203b60924f",class:{"arrow-btn":!0,"arrow-left":!0},part:"previous-button","aria-disabled":t?"true":"false",onClick:t?void 0:this.slidePrev,"aria-label":"Previous slide",type:"button"},e("svg",{key:"4237528155bd99c889e20fca88e2b4238987964e",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("polyline",{key:"1d461c22f7f6cf4ecaefba2f4239e998e26c6573",points:"15 18 9 12 15 6"})))),e("div",{key:"e750c909d4774969acf186effe8bb7bc0ba14aad",class:{"carousel-viewport":!0,"is-stacked":this.stacked,"viewport-focusable":this.viewportFocusable,[`snap-${this.snapAlignment}`]:"none"!==this.snapAlignment},role:"group","aria-roledescription":"carousel",part:"viewport",tabindex:this.viewportFocusable?0:-1,"aria-label":this.ariaLabel,"aria-live":this.managesSlides?this.autoplayPlaying?"off":"polite":void 0,"aria-atomic":this.managesSlides?"false":void 0,style:{"--q-carousel-transition-duration":`${Number.isFinite(this.transitionDuration)?Math.max(0,this.transitionDuration):500}ms`},onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel,onScroll:this.handleScroll,ref:this.setScrollContainerRef},e("slot",{key:"ef240455917f5e67a8699344bc1b6e8bffb2430a",onSlotchange:this.handleSlotChange})),e("div",{key:"20c2ceaf34d6699377fcfda1a586d8a8044355e8",class:"carousel-arrow"},this.arrowsVisible&&e("button",{key:"107edd387a55db86e682a95d658c762e45cb2dd3",class:{"arrow-btn":!0,"arrow-right":!0},part:"next-button","aria-disabled":i?"true":"false",onClick:i?void 0:this.slideNext,"aria-label":"Next slide",type:"button"},e("svg",{key:"8edcf7f64262b1118d3ede9cb0f819ad5843c923",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("polyline",{key:"042a951bb6271b6aee6bb4484e9abc0910c63f4f",points:"9 18 15 12 9 6"})))))}static get watchers(){return{layout:[{layoutChanged:0}],itemWidth:[{layoutChanged:0}],snapAlignment:[{layoutChanged:0}],autoplay:[{autoplayChanged:0}],autoplayInterval:[{autoplayChanged:0}],autoplaySuspended:[{autoplayChanged:0}],transition:[{transitionChanged:0}]}}};h.style=":host{display:block;width:100%;box-sizing:border-box;position:relative}::slotted(:not([slot='controls-extra'])){box-sizing:border-box;flex:var(--q-carousel-item-flex, 0 0 auto);width:var(--q-carousel-item-width, auto);scroll-snap-align:var(--q-carousel-snap-align, none)}.carousel-wrapper{position:relative;width:100%;box-sizing:border-box;display:flex;flex-direction:column}:host([layout='slideshow']){--q-carousel-padding:0;--q-carousel-gap:0}.carousel-viewport{display:flex;order:1;flex-direction:row;overflow-x:auto;width:100%;gap:var(--q-carousel-gap, 16px);padding:var(--q-carousel-padding, 48px 40px);box-sizing:border-box;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;outline:none}.carousel-viewport.viewport-focusable:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.carousel-viewport::-webkit-scrollbar{display:none}.carousel-viewport{-ms-overflow-style:none;scrollbar-width:none}.snap-start{scroll-snap-type:x mandatory}.snap-center{scroll-snap-type:x mandatory}.snap-end{scroll-snap-type:x mandatory}.carousel-arrow{display:contents}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);width:var(--q-carousel-arrow-size, 40px);height:var(--q-carousel-arrow-size, 40px);border-radius:50%;background:var(--q-carousel-arrow-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-carousel-arrow-border, var(--q-border, 1px solid var(--q-border-color, #374151)));color:var(--q-carousel-arrow-color, var(--q-fg-base, #f9fafb));display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;outline:none;box-shadow:0 8px 16px rgba(0, 0, 0, 0.3);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0,0,0,0.3));opacity:0;user-select:none;-webkit-user-select:none;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.arrow-left{left:8px}.arrow-right{right:8px}.carousel-wrapper:hover .arrow-btn,.carousel-wrapper:focus-within .arrow-btn{opacity:1}.arrow-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1;z-index:12}.arrow-btn:hover{background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa);color:var(--q-bg-base, #111827);transform:translateY(-50%) scale(1.08)}.arrow-btn:active{transform:translateY(-50%) scale(0.95)}.arrow-btn[aria-disabled=\"true\"]{opacity:0.25 !important;pointer-events:none;cursor:not-allowed;transform:translateY(-50%) scale(0.9)}.arrow-btn svg{width:20px;height:20px}.carousel-controls{display:flex;order:2;max-width:100%;flex-direction:column;align-items:center;gap:var(--q-carousel-controls-gap, 0px)}.carousel-controls[hidden]{display:none}.carousel-indicators{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--q-carousel-indicator-gap, 8px);margin-top:var(--q-carousel-indicator-margin-top, 16px);width:100%}.indicator-dot{flex-shrink:0;padding:0;width:var(--q-carousel-indicator-size, 6px);height:var(--q-carousel-indicator-size, 6px);border-radius:var(--q-carousel-indicator-size, 6px);background:var(--q-fg-muted, #9ca3af);border:none;cursor:pointer;outline:none;opacity:0.5;user-select:none;-webkit-user-select:none;transition:width var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.indicator-dot:hover{opacity:0.8}.indicator-dot:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1}.indicator-dot.is-active{background:var(--q-color-primary, #60a5fa);opacity:1;width:calc(var(--q-carousel-indicator-size, 6px) * 2.5)}.carousel-viewport.is-stacked{display:grid;overflow:hidden;gap:0;scroll-snap-type:none;touch-action:pan-y pinch-zoom;isolation:isolate}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])),:host([transition='instant']) ::slotted(:not([slot='controls-extra'])){grid-area:1 / 1;width:100%;min-width:0;opacity:0;pointer-events:none;z-index:0}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:opacity var(--q-carousel-transition-duration, 500ms) ease-in-out}:host([transition='crossfade']) ::slotted([data-q-carousel-active='true']),:host([transition='instant']) ::slotted([data-q-carousel-active='true']){opacity:1;pointer-events:auto;z-index:1}@media (prefers-reduced-motion: reduce){.carousel-viewport{scroll-behavior:auto}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:none}}.rotation-btn{min-width:44px;min-height:44px;max-width:100%;box-sizing:border-box;padding:var(--q-padding-sm, 8px) var(--q-padding-md, 12px);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:inherit;cursor:pointer}.rotation-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}@media (hover: none), (pointer: coarse){.arrow-btn{opacity:1}}";export{h as q_carousel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as t,a as i,h as e}from"./p-DaJmsCb7.js";import{i as s,s as a,a as o}from"./p-DstNl_WY.js";import{r as n}from"./p-CGml_DQ8.js";import{f as l,a as c}from"./p-BuctNczf.js";import{s as h}from"./p-Bj2RJb2E.js";import{c as d}from"./p-ByfrUWx1.js";function p(r){return r.assignedNodes({flatten:!0}).length>0}const g=class{constructor(i){r(this,i),this.qChange=t(this,"qChange"),this.qInput=t(this,"qInput"),this.qBlur=t(this,"qBlur"),this.qFocus=t(this,"qFocus"),this.qClick=t(this,"qClick"),i.$hostElement$["s-ei"]?this.internals=i.$hostElement$["s-ei"]:(this.internals=i.$hostElement$.attachInternals(),i.$hostElement$["s-ei"]=this.internals)}get el(){return i(this)}value="";placeholder="";label;ariaLabel=null;description;labelHidden=!1;reserveFeedback;size="inherit";width;clearable=!1;disabled=!1;required=!1;error;errorMessage;name;type="text";min;max;step=1;internals;hasPrefix=!1;hasSuffix=!1;passwordVisible=!1;qChange;qInput;qBlur;qFocus;qClick;inputEl;disabledState=!1;get isDisabled(){return s(this.el,this.disabled)}initialValue="";watchValue(){this.syncValidity()}watchConstraints(){this.syncValidity()}componentWillLoad(){this.initialValue=this.value||"",this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(this.value)}formDisabledCallback(){this.syncValidity()}componentDidLoad(){n(this.el,{kind:"text",owner:()=>this.internals?.form??null,active:()=>!0,value:()=>this.value,assign:r=>{this.value=r},reconcile:()=>{this.inputEl&&this.inputEl.value!==this.value&&(this.inputEl.value=this.value),this.internals?.setFormValue?.(this.value),this.syncValidity()},reset:()=>this.formResetCallback(),validate:r=>r?this.internals?.reportValidity?.()??!0:this.internals?.checkValidity?.()??!0})}componentDidRender(){this.syncValidity()}formResetCallback(){this.value=this.initialValue,this.syncValidity()}async focusElement(){this.inputEl?.focus()}async clearValue(){this.handleClear()}async checkValidity(){return this.syncValidity(),"function"==typeof this.internals.checkValidity?this.internals.checkValidity():this.inputEl?.checkValidity?.()??!0}async reportValidity(){return this.syncValidity(),"function"==typeof this.internals.reportValidity?this.internals.reportValidity():this.inputEl?.reportValidity?.()??!0}handlePrefixSlotChange=r=>{this.hasPrefix=p(r.target)};handleSuffixSlotChange=r=>{this.hasSuffix=p(r.target)};syncValidity(){const r=a(this.el,this.disabled,this.name,this.required);this.disabledState!==r&&(this.disabledState=r),this.inputEl&&this.internals&&(this.inputEl.disabled=r,this.inputEl.required=this.required,this.inputEl.readOnly=this.el.hasAttribute("readonly"),this.inputEl.name=this.name??"",this.inputEl.type="password"===this.type&&this.passwordVisible?"text":this.type,o(this.inputEl,"min",this.min),o(this.inputEl,"max",this.max),o(this.inputEl,"step",this.step),this.inputEl.value!==this.value&&(this.inputEl.value=this.value),this.internals.setFormValue?.(r?null:this.value),h({internals:this.internals,control:this.inputEl,disabled:this.isDisabled,customError:this.error||this.errorMessage}))}handleInput=r=>{this.value=r.target.value,this.qInput.emit(this.value)};handleChange=r=>{this.value=r.target.value,this.qChange.emit(this.value)};resolveNumericBase(){let r=parseFloat(this.value);return isNaN(r)&&(r=null!=this.min&&this.min>0?this.min:null!=this.max&&this.max<0?this.max:0),r}clampNumericValue(r){let t=r;return null!=this.min&&(t=Math.max(this.min,t)),null!=this.max&&(t=Math.min(this.max,t)),t}stepValue(r){if(this.isDisabled)return;const t=null!=this.step?this.step:1,i=this.clampNumericValue(this.resolveNumericBase()+t*r);this.value=String(i),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value)}handleIncrement=()=>{this.stepValue(1)};handleDecrement=()=>{this.stepValue(-1)};handleBlur=r=>{if("number"===this.type&&null!=this.value&&""!==this.value){const r=parseFloat(this.value);if(!isNaN(r)){let t=r;null!=this.min&&(t=Math.max(this.min,t)),null!=this.max&&(t=Math.min(this.max,t)),t!==r&&(this.value=String(t),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value))}}this.qBlur.emit(r)};handleFocus=r=>{this.qFocus.emit(r)};handleClick=r=>{this.isDisabled||this.qClick.emit(r)};handleClear=r=>{r&&this.isDisabled||(this.value="",this.qInput.emit(this.value),this.qChange.emit(this.value),this.inputEl&&this.inputEl.focus())};handlePasswordToggle=r=>{if(r.preventDefault(),r.stopPropagation(),this.isDisabled||"password"!==this.type)return;const t=this.inputEl?.selectionStart??null,i=this.inputEl?.selectionEnd??null;this.passwordVisible=!this.passwordVisible,requestAnimationFrame((()=>{this.inputEl&&(this.inputEl.focus(),null!==t&&null!==i&&this.inputEl.setSelectionRange(t,i))}))};handleKeyDown=r=>{"number"!==this.type||this.isDisabled||("ArrowUp"===r.key?(r.preventDefault(),this.handleIncrement()):"ArrowDown"===r.key&&(r.preventDefault(),this.handleDecrement()))};render(){const r=!(!this.error&&!this.errorMessage),t=this.error||this.errorMessage,i=this.clearable&&!this.isDisabled&&this.value.length>0,s="password"===this.type&&!this.isDisabled,a=s&&this.passwordVisible?"text":this.type,o=this.hasSuffix||i||s,n=parseFloat(this.value),h="number"===this.type&&!isNaN(n),d=h&&null!=this.min&&n<=this.min,p=h&&null!=this.max&&n>=this.max,g=this.ariaLabel?.trim()||void 0;return e("div",{key:"8b42ceb7344bcf7d7e612d25363a273ac8595d73",style:c(this.reserveFeedback),class:{"input-wrapper":!0,"is-disabled":this.isDisabled,"has-error":r,[`size-${this.size}`]:!0}},this.label&&e("label",{key:"d4f0419f6acec43a62bd67b56eb8111da8e92694",class:{"input-label":!0,"q-label-hidden":this.labelHidden},htmlFor:"q-field",part:"label"},this.label),e("div",{key:"0776ffdbd55a4e83beeb86da353ef3f3275c19d5",class:"input-control",part:"control"},e("span",{key:"b6e56e21986c2b80b0e6b371e761dd3d1f70db5f",class:"prefix-container",style:{display:this.hasPrefix?"flex":"none"},part:"prefix"},e("slot",{key:"8158e89e4680516aaa430328256a928ac6d541c9",name:"prefix",onSlotchange:this.handlePrefixSlotChange})),e("input",{key:this.type,ref:r=>this.inputEl=r,id:"q-field",class:{"input-box":!0,"has-prefix-padding":this.hasPrefix,"has-suffix-padding":o},type:a,name:this.name,value:this.value,placeholder:this.placeholder,disabled:this.isDisabled,required:this.required,min:this.min,max:this.max,step:this.step,onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:"number"===this.type?"spinbutton":void 0,"aria-valuenow":h?String(n):void 0,"aria-valuemin":"number"===this.type&&null!=this.min?String(this.min):void 0,"aria-valuemax":"number"===this.type&&null!=this.max?String(this.max):void 0,"aria-invalid":r?"true":"false","aria-describedby":r||this.description?"q-field-error":void 0,"aria-label":g}),"number"===this.type&&!this.isDisabled&&e("div",{key:"f0f1937bc3ee7467f311f9c3037d5e9d6b067b35",class:"input-spinners",part:"spinners"},e("button",{key:"2b6748cdf0d6b702593f01ab125e479192cec01f",class:"spinner-btn spinner-up",type:"button",onClick:this.handleIncrement,disabled:p,"aria-label":"Increase value"},e("svg",{key:"41ea7701ce869c76fa0c608464040cf402471506",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("path",{key:"0d55f92912d4b965daf1ee703147c5794f998407",d:"M18 15l-6-6-6 6"}))),e("button",{key:"1fe024df336b0302d15696672a9806ea4dab523a",class:"spinner-btn spinner-down",type:"button",onClick:this.handleDecrement,disabled:d,"aria-label":"Decrease value"},e("svg",{key:"a893df82780770e5e14fc190c846c18605688a27",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("path",{key:"f9e9f18fb2205c39e52e2bc1eb8736c5d78ce683",d:"M6 9l6 6 6-6"})))),e("span",{key:"cf742d4de79337a7ed23f1e92526054db97e46e9",class:"suffix-container",style:{display:o?"flex":"none"},part:"suffix"},i&&e("button",{key:"18fb167f0cff4d38bc4d27a247494e8229534cec",class:"clear-btn",type:"button",onClick:this.handleClear,"aria-label":"Clear input"},e("svg",{key:"129c1fa6c4bfb87cc108ed98b7293cb21b8e5bec",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},e("path",{key:"b21f70435ca270b45a60bddc97ea2780fe79c0f4",d:"M18 6L6 18M6 6l12 12"}))),s&&e("button",{key:"6b8b9a7d77fc4dc4080981bebd6a4f0268bd94ab",class:"password-toggle-btn",type:"button",onClick:this.handlePasswordToggle,"aria-label":this.passwordVisible?"Hide password":"Show password","aria-pressed":this.passwordVisible?"true":"false"},this.passwordVisible?e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("path",{d:"M3 3l18 18"}),e("path",{d:"M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58"}),e("path",{d:"M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19"}),e("path",{d:"M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61"})):e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},e("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e("circle",{cx:"12",cy:"12",r:"3"}))),e("span",{key:"94eaabb7303710ce3cf0ad753a5f46d77af27183",style:{display:!i&&this.hasSuffix?"block":"none"}},e("slot",{key:"0a79e017573b9c992287f30a0372cb2e3e06e3c9",name:"suffix",onSlotchange:this.handleSuffixSlotChange})))),l("q-field-error",t,this.description))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{watchValue:0}],disabled:[{watchConstraints:0}],required:[{watchConstraints:0}],name:[{watchConstraints:0}],error:[{watchConstraints:0}],errorMessage:[{watchConstraints:0}],type:[{watchConstraints:0}],min:[{watchConstraints:0}],max:[{watchConstraints:0}],step:[{watchConstraints:0}]}}};g.style=':host([width="xs"]),:host([width="sm"]),:host([width="md"]),:host([width="lg"]),:host([width="xl"]),:host([width="xxl"]),:host([width="full"]){box-sizing:border-box;min-width:0;max-width:100%}:host([width="xs"]){width:var(--q-input-width-xs, 5rem)}:host([width="sm"]){width:var(--q-input-width-sm, 7.5rem)}:host([width="md"]){width:var(--q-input-width-md, 11.25rem)}:host([width="lg"]){width:var(--q-input-width-lg, 15rem)}:host([width="xl"]){width:var(--q-input-width-xl, 18.125rem)}:host([width="xxl"]){width:var(--q-input-width-xxl, 22.5rem)}:host([width="full"]){width:100%}:host{min-width:0;--_q-control-height:var(--q-context-control-height, calc(var(--_q-context-size-sm, 0) * var(--q-control-height-sm, 1.75rem) + var(--_q-context-size-md, 1) * var(--q-control-height-md, 2.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-height-lg, 2.75rem)));--_q-control-font:var(--q-context-control-font, calc(var(--_q-context-size-sm, 0) * var(--q-control-font-sm, 0.75rem) + var(--_q-context-size-md, 1) * var(--q-control-font-md, 0.875rem) + var(--_q-context-size-lg, 0) * var(--q-control-font-lg, 1rem)));--_q-control-line:var(--q-context-control-line, calc(var(--_q-context-size-sm, 0) * var(--q-control-line-sm, 1rem) + var(--_q-context-size-md, 1) * var(--q-control-line-md, 1.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-line-lg, 1.5rem)));--_q-control-padding:var(--q-context-control-padding, calc(var(--_q-context-size-sm, 0) * var(--q-control-padding-sm, 0.5rem) + var(--_q-context-size-md, 1) * var(--q-control-padding-md, 0.75rem) + var(--_q-context-size-lg, 0) * var(--q-control-padding-lg, 1rem)));--_q-control-icon:var(--q-context-control-icon, calc(var(--_q-context-size-sm, 0) * var(--q-control-icon-sm, 0.875rem) + var(--_q-context-size-md, 1) * var(--q-control-icon-md, 1rem) + var(--_q-context-size-lg, 0) * var(--q-control-icon-lg, 1.25rem)));--_q-control-radius:var(--q-context-control-radius, calc(var(--_q-context-size-sm, 0) * var(--q-control-radius-sm, 0.34375rem) + var(--_q-context-size-md, 1) * var(--q-control-radius-md, 0.4375rem) + var(--_q-context-size-lg, 0) * var(--q-control-radius-lg, 0.53125rem)))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{display:block;width:100%;box-sizing:border-box}.input-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.input-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px;transition:color var(--q-transition-fast, 150ms ease)}.input-control{display:flex;align-items:stretch;position:relative;width:100%;background:var(--q-input-bg, var(--q-bg-surface-2, #374151));border:var(--q-input-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-input-radius, var(--q-field-radius, var(--_q-control-radius)));box-sizing:border-box;overflow:hidden;transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.input-box{text-align:var(--q-input-text-align, start);width:100%;background:transparent;border:none;padding:var(--q-input-padding, 10px 14px);line-height:1.2;align-self:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-fg-base, #f9fafb);outline:none;box-sizing:border-box}.input-box[type="number"]{appearance:textfield;-moz-appearance:textfield}.input-box[type="number"]::-webkit-inner-spin-button,.input-box[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.prefix-container,.suffix-container{display:flex;align-items:center;padding:0 12px;color:var(--q-fg-muted, #9ca3af);flex-shrink:0}.prefix-container{padding-right:0}.suffix-container{padding-left:0}.input-control:focus-within{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.input-wrapper:focus-within .input-label{color:var(--q-color-primary, #60a5fa)}.has-error .input-control{border-color:var(--q-color-danger, #ef4444) !important;box-shadow:none}.has-error.input-wrapper:focus-within .input-label,.has-error .input-label{color:var(--q-color-danger, #ef4444) !important}.error-msg{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-color-danger, #ef4444);margin-top:6px}.clear-btn,.password-toggle-btn{background:transparent;border:none;cursor:pointer;padding:4px;padding-left:0;display:flex;align-items:center;justify-content:center;color:var(--q-fg-muted, #9ca3af);border-radius:50%;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.clear-btn:hover,.password-toggle-btn:hover{background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));color:var(--q-fg-base, #f9fafb)}.clear-btn svg,.password-toggle-btn svg{width:14px;height:14px}.is-disabled{opacity:0.6}.is-disabled .input-control{cursor:not-allowed;pointer-events:none}input.input-box[type="color"]{height:calc(var(--q-input-height, var(--_q-control-height)) - 2px);padding:6px;cursor:pointer;background:transparent}input.input-box[type="color"]::-webkit-color-swatch-wrapper{padding:0}input.input-box[type="color"]::-webkit-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}input.input-box[type="color"]::-moz-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}.input-spinners{display:flex;flex-direction:column;border-left:1px solid var(--q-border-color, #4b5563);width:24px;margin-left:auto;box-sizing:border-box}.spinner-btn{flex:1;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);cursor:pointer;padding:0;margin:0;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.spinner-btn:hover:not(:disabled){background:rgba(249, 250, 251, 0.08);color:var(--q-fg-base, #f9fafb)}.spinner-btn:disabled{opacity:0.3;cursor:not-allowed}.spinner-up{border-bottom:1px solid var(--q-border-color, #4b5563)}.spinner-btn svg{width:10px;height:10px}.input-wrapper .input-control{min-height:var(--q-input-height, var(--_q-control-height));height:auto;background:var(--q-input-bg, var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d))))}.input-wrapper:is(.size-sm,.size-md,.size-lg,.size-inherit) .input-box{min-width:0;padding:var(--q-input-padding, 0 var(--_q-control-padding));min-height:calc(var(--q-input-height, var(--_q-control-height)) - 2px);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.input-wrapper .prefix-container,.input-wrapper .suffix-container{padding-inline:var(--_q-control-padding)}.input-wrapper .clear-btn svg,.input-wrapper .password-toggle-btn svg{width:var(--_q-control-icon);height:var(--_q-control-icon)}:host{min-width:0}.q-label-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip-path:inset(50%);white-space:nowrap;border:0 !important}.q-field-feedback{display:block;min-block-size:var(--_q-feedback-min, var(--q-context-feedback-min, 0px));font-family:var(--q-font-family, inherit);font-size:var(--q-field-feedback-font, var(--q-field-text-size, .75rem));font-weight:400;line-height:var(--q-field-text-line, 1rem);color:var(--q-fg-muted, #9ca3af);overflow-wrap:anywhere;margin:min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0}.q-field-feedback:not(:empty){margin-top:var(--q-space-xs, .25rem)}.q-field-feedback.error-msg{color:var(--_q-field-error-color, var(--q-color-danger, #f87171))}[part=\'label\']:not(.q-label-hidden){font-family:var(--q-font-family, inherit);font-size:var(--q-field-label-font, var(--q-field-text-size, .75rem));font-weight:600;line-height:var(--q-field-text-line, 1rem);margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}';const f=2*Math.PI*52,u=new Set(["sm","md","lg"]),m=class{constructor(t){r(this,t)}value=0;label;indeterminate=!1;ariaValueText=null;variant="linear";size="md";tone="primary";ariaLabel=null;render(){const r=Number.isFinite(this.value)?this.value:0,t=Math.min(Math.max(r,0),100);return"circular"==("circular"===this.variant?"circular":"linear")?this.renderCircular(t):this.renderLinear(t)}renderLinear(r){return e("div",{class:"progress-linear",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||`${r}%`),part:"container track"},e("span",{class:{"progress-linear__fill":!0,"is-indeterminate":this.indeterminate},style:this.indeterminate?void 0:{width:`${r}%`},part:"fill"}))}renderCircular(r){const t=void 0!==this.label?this.label:`${r}%`,i=d(t,"var(--q-progress-font-size, var(--_q-progress-font-size))",5),s=this.indeterminate?.75*f:f-r/100*f;return e("div",{class:"progress-circular",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||t),part:"container"},e("svg",{class:"progress-circular__svg",viewBox:"0 0 120 120"},e("g",{class:"progress-circular__rings"},e("circle",{class:"progress-circular__track",cx:60,cy:60,r:52,part:"track"}),e("circle",{class:"progress-circular__fill",cx:60,cy:60,r:52,"stroke-dasharray":f,"stroke-dashoffset":s,part:"fill"})),!this.indeterminate&&e("text",{class:"progress-circular__label",x:"50%",y:"50%",style:i,part:"label"},t)))}progressAttributes(r,t){return{role:"progressbar","aria-label":this.ariaLabel?.trim()||"Progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?void 0:r,"aria-valuetext":this.indeterminate?void 0:t}}customSizeStyle(){if("string"==typeof this.size&&u.has(this.size))return;const r="number"==typeof this.size?this.size:Number(this.size);return Number.isFinite(r)?{"--_q-progress-custom-size":`${Math.max(0,r)}px`}:void 0}};m.style=":host{display:block;width:100%;min-width:0;box-sizing:border-box;--_q-progress-linear-height:var(--q-progress-linear-height-md, 6px);--_q-progress-circular-size:var(--q-progress-circular-size-md, 120px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-md, 8px );--_q-progress-font-size:var( --q-progress-circular-font-size-md, var(--q-font-size-lg, 1rem) );--_q-progress-track-color:var(--q-bg-surface-3, #22304d);--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([hidden]){display:none}:host([variant='circular']){display:inline-block;width:auto;--_q-progress-track-color:var(--q-border-color, #374151)}:host([size='sm']){--_q-progress-linear-height:var(--q-progress-linear-height-sm, 4px);--_q-progress-circular-size:var(--q-progress-circular-size-sm, 64px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-sm, 6px );--_q-progress-font-size:var( --q-progress-circular-font-size-sm, var(--q-font-size-sm, 0.7rem) )}:host([size='lg']){--_q-progress-linear-height:var(--q-progress-linear-height-lg, 8px);--_q-progress-circular-size:var(--q-progress-circular-size-lg, 180px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-lg, 10px );--_q-progress-font-size:var( --q-progress-circular-font-size-lg, calc(var(--q-font-size-lg, 1rem) * 1.5) )}:host([tone='neutral']){--_q-progress-tone-color:var(--q-fg-muted, #9ca3af)}:host([tone='primary']){--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([tone='success']){--_q-progress-tone-color:var(--q-color-success, #34d399)}:host([tone='warning']){--_q-progress-tone-color:var(--q-color-warning, #fbbf24)}:host([tone='danger']){--_q-progress-tone-color:var(--q-color-danger, #f87171)}.progress-linear{position:relative;width:100%;height:var( --q-progress-linear-height, var( --q-progress-bar-height, var(--_q-progress-custom-size, var(--_q-progress-linear-height)) ) );overflow:hidden;border-radius:var( --q-progress-linear-radius, var(--q-progress-bar-radius, 999px) );background:var( --q-progress-track-color, var(--q-progress-bar-track-color, var(--_q-progress-track-color)) )}.progress-linear__fill{display:block;height:100%;border-radius:inherit;background:var( --q-progress-fill-color, var(--q-progress-bar-fill-color, var(--_q-progress-tone-color)) );transition:width var( --q-progress-transition, var(--q-progress-bar-transition, var(--q-transition-normal, 250ms ease)) )}.progress-linear__fill.is-indeterminate{width:42%;animation:q-progress-linear-indeterminate var( --q-progress-indeterminate-duration, var(--q-progress-bar-indeterminate-duration, 1.4s) ) ease-in-out infinite}.progress-circular{width:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) );height:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) )}.progress-circular__svg{display:block;width:100%;height:100%}.progress-circular__rings{transform:rotate(-90deg);transform-origin:center}.progress-circular__track,.progress-circular__fill{fill:none;stroke-width:var( --q-progress-circular-stroke-width, var(--q-progress-stroke-width, var(--_q-progress-stroke-width)) )}.progress-circular__track{stroke:var(--q-progress-track-color, var(--_q-progress-track-color))}.progress-circular__fill{stroke:var( --q-progress-fill-color, var(--_q-progress-tone-color) );stroke-linecap:var(--q-progress-circular-linecap, round);transition:stroke-dashoffset var(--q-progress-transition, var(--q-transition-normal, 250ms ease))}.progress-circular__label{fill:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var( --q-progress-circular-font-size, var(--q-progress-font-size, var(--_q-progress-font-size)) );font-weight:var( --q-progress-circular-font-weight, var(--q-progress-font-weight, var(--q-font-weight-bold, 600)) );text-anchor:middle;dominant-baseline:central}:host([variant='circular'][indeterminate]) .progress-circular__rings{animation:q-progress-circular-indeterminate var(--q-progress-indeterminate-duration, 1.4s) linear infinite}@keyframes q-progress-linear-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(255%)}}@keyframes q-progress-circular-indeterminate{0%{transform:rotate(-90deg)}100%{transform:rotate(270deg)}}@media (prefers-reduced-motion: reduce){.progress-linear__fill,.progress-circular__fill{transition:none}.progress-linear__fill.is-indeterminate,:host([variant='circular'][indeterminate]) .progress-circular__rings{animation-duration:2.8s}}";export{g as q_input,m as q_progress}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as r,H as e}from"./p-DaJmsCb7.js";import{s as t}from"./p-BDsIecIx.js";const a=class{constructor(r){i(this,r)}orientation="horizontal";length="auto";spacing="lg";decorative=!1;render(){return r(e,{key:"cfdbd7fbcbd995f8ae6c5bf8b0daba8737aba50d",role:this.decorative?void 0:"separator","aria-orientation":this.decorative?void 0:this.orientation,"aria-hidden":this.decorative?"true":void 0,style:{"--_q-divider-length":"auto"===this.length?"100%":this.length,"--_q-divider-spacing":t(this.spacing)}},r("span",{key:"cc49e03920c1eced437d76b91f013a2095b6a210",part:"line","aria-hidden":"true"}))}};a.style=":host{--_q-divider-inset:var(--q-divider-inset, var(--q-space-sm, .5rem));--_q-divider-usable:max(0px, calc(100% - var(--_q-divider-inset) - var(--_q-divider-inset)));--_q-divider-thickness:var(--q-divider-thickness, 1px);position:relative;display:block;box-sizing:border-box;min-width:0;min-height:0;height:var(--_q-divider-thickness);align-self:stretch;flex:0 0 auto;margin-block:var(--_q-divider-spacing, 0px)}[part='line']{position:absolute;box-sizing:border-box;top:50%;left:50%;transform:translate(-50%, -50%);width:clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));height:0;border:0 solid var(--q-divider-color, var(--q-border-color, #374151));border-top-width:var(--_q-divider-thickness)}:host([orientation='vertical']){width:var(--_q-divider-thickness);height:auto;margin-block:0;margin-inline:var(--_q-divider-spacing, 0px)}:host([orientation='vertical']) [part='line']{width:0;height:clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));border-top-width:0;border-left-width:var(--_q-divider-thickness)}@media (forced-colors: active){[part='line']{border-color:CanvasText}}";export{a as q_divider}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a,h as i}from"./p-
|
|
1
|
+
import{r as t,a,h as i}from"./p-DaJmsCb7.js";import{a as e}from"./p-ByfrUWx1.js";const o=class{constructor(a){t(this,a)}orientation;layout="vertical";ariaLabel="Steps";get el(){return a(this)}handleOrientationChange(){this.propagateOrientation()}componentDidLoad(){this.handleOrientationChange()}handleSlotChange=()=>{this.propagateOrientation()};propagateOrientation(){const t=this.orientation??this.layout;e(this.el,"q-step-diagram-item","orientation",t),e(this.el,"q-step-diagram-item","layout",t)}render(){const t=this.orientation??this.layout;return i("div",{key:"8a5da6e14ff6dc3d908dd8952b08108d003901e9",class:{"step-diagram":!0,[`orientation-${t}`]:!0,[`layout-${t}`]:!0},role:"list","aria-label":this.ariaLabel},i("slot",{key:"7bd0969adf19ece9c3a8f60cbe64b93fa627b363",onSlotchange:this.handleSlotChange}))}static get watchers(){return{orientation:[{handleOrientationChange:0}],layout:[{handleOrientationChange:0}]}}};o.style=":host{display:block;box-sizing:border-box}.step-diagram{display:flex;width:100%;box-sizing:border-box}.layout-vertical{flex-direction:column}.layout-horizontal{flex-direction:row;align-items:flex-start;overflow-x:auto}";export{o as q_step_diagram}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as c}from"./p-DaJmsCb7.js";const s=class{constructor(a){e(this,a)}layout="full";reverse=!1;columns=1;render(){return a(c,{key:"ec3cd173ab1cf7229120cd9fd4fb678eeaffbabc"},a("slot",{key:"e095015212901c15d5fee05716e34483eec3566c",name:"media"}),a("slot",{key:"ae64167d08e71863a4edfbd9a9b8ffeabb6c029a"}),a("slot",{key:"ef42b9ecc9055a612892c4ba15f8730b2a9a85a8",name:"actions"}))}};s.style=":host{display:block;min-width:0}";export{s as q_section}
|