@webquark/core 1.1.0-dev.4 → 1.1.0-dev.6
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/README.md +41 -9
- package/dist/cjs/{action.props-CkEZpMY6.js → action.props-CtwTiyf6.js} +1 -1
- package/dist/cjs/field-CiEtk37y.js +14 -0
- package/dist/cjs/{index-B7ex88C2.js → index-BLlc_shC.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +18 -0
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +6 -6
- package/dist/cjs/q-banner.cjs.entry.js +19 -0
- package/dist/cjs/q-button_2.cjs.entry.js +7 -7
- package/dist/cjs/q-card.cjs.entry.js +17 -6
- package/dist/cjs/q-carousel.cjs.entry.js +3 -3
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +6 -6
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +22 -8
- package/dist/cjs/q-dropdown.cjs.entry.js +50 -6
- package/dist/cjs/q-form.cjs.entry.js +11 -5
- package/dist/cjs/q-grid.cjs.entry.js +24 -0
- package/dist/cjs/q-icon.cjs.entry.js +16 -6
- package/dist/cjs/q-inline.cjs.entry.js +22 -0
- package/dist/cjs/q-input_2.cjs.entry.js +14 -7
- package/dist/cjs/q-link.cjs.entry.js +5 -5
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- package/dist/cjs/q-media.cjs.entry.js +21 -0
- package/dist/cjs/q-navbar.cjs.entry.js +229 -8
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +17 -8
- package/dist/cjs/q-quantity-selector.cjs.entry.js +15 -8
- package/dist/cjs/q-radio-group.cjs.entry.js +14 -7
- 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 +20 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +14 -7
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
- package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +61 -7
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +3 -3
- package/dist/cjs/q-toggle.cjs.entry.js +14 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
- package/dist/cjs/tokens-DGECOqpA.js +42 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +16 -9
- package/dist/collection/components/actions/button/button.css +55 -4
- package/dist/collection/components/actions/button/button.js +4 -4
- package/dist/collection/components/actions/link/link.js +8 -5
- package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
- package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
- package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/{layout → content}/card/card.css +12 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
- package/dist/collection/components/data-display/accordion/accordion.css +1 -0
- package/dist/collection/components/data-display/accordion/accordion.js +54 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
- package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
- package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
- package/dist/collection/components/inputs/form/form.css +85 -0
- package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/input/input.css +78 -62
- package/dist/collection/components/inputs/input/input.js +77 -9
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
- package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
- package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
- package/dist/collection/components/inputs/textarea/textarea.css +85 -1
- package/dist/collection/components/inputs/textarea/textarea.js +149 -7
- package/dist/collection/components/inputs/toggle/toggle.css +80 -48
- package/dist/collection/components/inputs/toggle/toggle.js +72 -6
- package/dist/collection/components/layout/grid/grid.css +11 -0
- package/dist/collection/components/layout/grid/grid.js +152 -0
- package/dist/collection/components/layout/inline/inline.css +4 -0
- package/dist/collection/components/layout/inline/inline.js +118 -0
- package/dist/collection/components/layout/navbar/navbar.css +119 -0
- package/dist/collection/components/layout/navbar/navbar.js +310 -9
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +317 -1
- package/dist/collection/components/layout/panel/panel.css +13 -12
- package/dist/collection/components/layout/panel/panel.js +139 -10
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.css +1 -0
- package/dist/collection/components/layout/section/section.js +98 -0
- package/dist/collection/components/layout/section/section.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +1 -1
- package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
- package/dist/collection/components/layout/stack/stack.css +4 -0
- package/dist/collection/components/layout/stack/stack.js +76 -0
- package/dist/collection/components/layout/tabs/tabs.js +2 -2
- package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
- package/dist/collection/components/media/avatar/avatar.js +43 -43
- package/dist/collection/components/media/icon/icon.js +79 -18
- package/dist/collection/components/media/media/media.css +1 -0
- package/dist/collection/components/media/media/media.js +125 -0
- package/dist/collection/components/media/media/media.types.js +1 -0
- 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.css +16 -0
- package/dist/collection/components/overlays/dialog/dialog.js +144 -14
- package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
- package/dist/collection/components/shared/field.js +8 -0
- package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
- package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
- package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
- package/dist/collection/playground/playground.bundled.js +846 -34
- package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
- package/dist/collection/theme/tokens.js +828 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-0PieXMX9.js +1 -0
- package/dist/components/p-BOYjkCNa.js +1 -0
- package/dist/components/p-Bw4TVbfm.js +1 -0
- package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
- package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
- package/dist/components/p-Cx1vCuMp.js +1 -0
- package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
- package/dist/components/p-GU98U1DJ.js +1 -0
- package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
- package/dist/components/p-f95uguY1.js +1 -0
- package/dist/components/q-accordion.d.ts +11 -0
- package/dist/components/q-accordion.js +1 -0
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- 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-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/q-media.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.js +3 -3
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- 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-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
- package/dist/esm/field-DkpyvZiX.js +11 -0
- package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +6 -6
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +7 -7
- package/dist/esm/q-card.entry.js +17 -6
- package/dist/esm/q-carousel.entry.js +3 -3
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +6 -6
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +22 -8
- package/dist/esm/q-dropdown.entry.js +50 -6
- package/dist/esm/q-form.entry.js +11 -5
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +16 -6
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +14 -7
- package/dist/esm/q-link.entry.js +5 -5
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +229 -8
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +17 -8
- package/dist/esm/q-quantity-selector.entry.js +15 -8
- package/dist/esm/q-radio-group.entry.js +14 -7
- 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 +18 -0
- package/dist/esm/q-sidepanel.entry.js +14 -7
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +7 -4
- package/dist/esm/q-step-diagram.entry.js +21 -11
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +3 -3
- package/dist/esm/q-textarea.entry.js +61 -7
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +3 -3
- package/dist/esm/q-toggle.entry.js +14 -6
- package/dist/esm/q-toolbar.entry.js +8 -4
- package/dist/esm/tokens-f95uguY1.js +38 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/build/p-0aea8464.entry.js +1 -0
- package/dist/playground/build/p-0aecd9b1.entry.js +1 -0
- package/dist/playground/build/p-0d98e500.entry.js +1 -0
- package/dist/playground/build/p-139fec38.entry.js +1 -0
- package/dist/{webquark/p-0053ec76.entry.js → playground/build/p-15502232.entry.js} +1 -1
- package/dist/playground/build/p-17340abf.entry.js +1 -0
- package/dist/playground/build/p-303dcac8.entry.js +1 -0
- package/dist/playground/build/p-408bf48a.entry.js +1 -0
- package/dist/playground/build/p-47253466.entry.js +1 -0
- package/dist/playground/build/p-5f6860f2.entry.js +13 -0
- package/dist/playground/build/p-6b619655.entry.js +1 -0
- package/dist/playground/build/p-6b63922b.entry.js +1 -0
- package/dist/playground/build/p-71e3d582.entry.js +1 -0
- package/dist/playground/build/p-737ca99e.entry.js +1 -0
- package/dist/playground/build/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/playground/build/p-8115ec23.entry.js +1 -0
- package/dist/playground/build/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/playground/build/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/playground/build/p-9418caa0.entry.js +1 -0
- package/dist/playground/build/p-96ef2b54.entry.js +1 -0
- package/dist/playground/build/p-97dae970.entry.js +1 -0
- package/dist/{webquark/p-b5066051.entry.js → playground/build/p-989bdc1a.entry.js} +1 -1
- package/dist/playground/build/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/playground/build/p-DbGG9Q40.js +3 -0
- package/dist/playground/build/p-JgeOdXyP.js +1 -0
- package/dist/playground/build/p-a4b36120.entry.js +1 -0
- package/dist/playground/build/p-abf54361.entry.js +1 -0
- package/dist/playground/build/p-aed4b219.entry.js +1 -0
- package/dist/playground/build/p-b3a07d94.entry.js +1 -0
- package/dist/{webquark/p-8077aa3f.entry.js → playground/build/p-b465aebd.entry.js} +1 -1
- package/dist/playground/build/p-c1f3dca6.entry.js +1 -0
- package/dist/playground/build/p-c4899c2b.entry.js +1 -0
- package/dist/{webquark/p-1c9a82b8.entry.js → playground/build/p-c4fd89b8.entry.js} +1 -1
- package/dist/playground/build/p-cf8f7f2a.entry.js +1 -0
- package/dist/playground/build/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{webquark/p-6c0bc4b9.entry.js → playground/build/p-d7d436c5.entry.js} +1 -1
- package/dist/playground/build/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{webquark/p-8ec7d250.entry.js → playground/build/p-eb71e335.entry.js} +1 -1
- package/dist/playground/build/p-ecbc0fee.entry.js +1 -0
- package/dist/{webquark/p-d837603c.entry.js → playground/build/p-ed327679.entry.js} +1 -1
- package/dist/{webquark/p-e0e6b68f.entry.js → playground/build/p-f911c90f.entry.js} +1 -1
- package/dist/playground/build/p-f95uguY1.js +1 -0
- package/dist/{webquark/p-13329777.entry.js → playground/build/p-ff1e2363.entry.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/playground/components.manifest.json +40 -35
- package/dist/playground/playground/specs/q-button.sandbox.json +3 -2
- package/dist/playground/playground/specs/q-card.sandbox.json +37 -3
- package/dist/playground/playground/specs/q-dialog.sandbox.json +16 -6
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-form.sandbox.json +88 -10
- package/dist/playground/playground/specs/q-grid.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +11 -11
- package/dist/playground/playground/specs/q-inline.sandbox.json +60 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-navbar.sandbox.json +11 -3
- package/dist/playground/playground/specs/q-panel.sandbox.json +138 -17
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +46 -10
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +7 -7
- package/dist/playground/playground/specs/q-stack.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +5 -5
- package/dist/playground/playground/specs/q-textarea.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +99 -14
- package/dist/playground/playground.js +846 -34
- package/dist/types/components/actions/button/button.types.d.ts +2 -1
- package/dist/types/components/actions/link/link.d.ts +1 -1
- package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/content/banner/banner.d.ts +12 -0
- package/dist/types/components/content/banner/banner.types.d.ts +2 -0
- package/dist/types/components/{layout → content}/card/card.d.ts +11 -0
- package/dist/types/components/content/card/card.types.d.ts +1 -0
- package/dist/types/components/{layout → content}/card/card.utils.d.ts +1 -1
- package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
- package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +6 -3
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -1
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +4 -2
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -1
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +13 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +2 -1
- package/dist/types/components/{layout → inputs}/form/form.d.ts +6 -0
- package/dist/types/components/inputs/input/input.d.ts +7 -1
- package/dist/types/components/inputs/input/input.types.d.ts +2 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +6 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -1
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +7 -1
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +2 -1
- package/dist/types/components/inputs/textarea/textarea.d.ts +16 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +6 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -1
- package/dist/types/components/layout/grid/grid.d.ts +13 -0
- package/dist/types/components/layout/inline/inline.d.ts +12 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +29 -1
- package/dist/types/components/layout/navbar/navbar.types.d.ts +2 -0
- package/dist/types/components/layout/panel/panel.d.ts +8 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +2 -1
- package/dist/types/components/layout/section/section.d.ts +13 -0
- package/dist/types/components/layout/section/section.types.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +7 -0
- package/dist/types/components/layout/stack/stack.d.ts +10 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +4 -0
- package/dist/types/components/media/avatar/avatar.d.ts +4 -4
- package/dist/types/components/media/icon/icon.d.ts +7 -3
- package/dist/types/components/media/media/media.d.ts +13 -0
- package/dist/types/components/media/media/media.types.d.ts +2 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +14 -2
- package/dist/types/components/shared/field.d.ts +3 -0
- package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +911 -68
- package/dist/types/index.d.ts +8 -3
- package/dist/types/playground/components/theme-designer/token-row.d.ts +2 -1
- package/dist/types/theme/test/assets.d.ts +4 -0
- package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
- package/dist/types/theme/tokens.d.ts +63 -0
- package/dist/webquark/p-0aea8464.entry.js +1 -0
- package/dist/webquark/p-0aecd9b1.entry.js +1 -0
- package/dist/webquark/p-0d98e500.entry.js +1 -0
- package/dist/webquark/p-139fec38.entry.js +1 -0
- package/dist/{playground/build/p-0053ec76.entry.js → webquark/p-15502232.entry.js} +1 -1
- package/dist/webquark/p-17340abf.entry.js +1 -0
- package/dist/webquark/p-303dcac8.entry.js +1 -0
- package/dist/webquark/p-408bf48a.entry.js +1 -0
- package/dist/webquark/p-47253466.entry.js +1 -0
- package/dist/webquark/p-5f6860f2.entry.js +13 -0
- package/dist/webquark/p-6b619655.entry.js +1 -0
- package/dist/webquark/p-6b63922b.entry.js +1 -0
- package/dist/webquark/p-71e3d582.entry.js +1 -0
- package/dist/webquark/p-737ca99e.entry.js +1 -0
- package/dist/webquark/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/webquark/p-8115ec23.entry.js +1 -0
- package/dist/webquark/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/webquark/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/webquark/p-9418caa0.entry.js +1 -0
- package/dist/webquark/p-96ef2b54.entry.js +1 -0
- package/dist/webquark/p-97dae970.entry.js +1 -0
- package/dist/{playground/build/p-b5066051.entry.js → webquark/p-989bdc1a.entry.js} +1 -1
- package/dist/webquark/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/webquark/p-DbGG9Q40.js +3 -0
- package/dist/webquark/p-JgeOdXyP.js +1 -0
- package/dist/webquark/p-a4b36120.entry.js +1 -0
- package/dist/webquark/p-abf54361.entry.js +1 -0
- package/dist/webquark/p-aed4b219.entry.js +1 -0
- package/dist/webquark/p-b3a07d94.entry.js +1 -0
- package/dist/{playground/build/p-8077aa3f.entry.js → webquark/p-b465aebd.entry.js} +1 -1
- package/dist/webquark/p-c1f3dca6.entry.js +1 -0
- package/dist/webquark/p-c4899c2b.entry.js +1 -0
- package/dist/{playground/build/p-1c9a82b8.entry.js → webquark/p-c4fd89b8.entry.js} +1 -1
- package/dist/webquark/p-cf8f7f2a.entry.js +1 -0
- package/dist/webquark/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{playground/build/p-6c0bc4b9.entry.js → webquark/p-d7d436c5.entry.js} +1 -1
- package/dist/webquark/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{playground/build/p-8ec7d250.entry.js → webquark/p-eb71e335.entry.js} +1 -1
- package/dist/webquark/p-ecbc0fee.entry.js +1 -0
- package/dist/{playground/build/p-d837603c.entry.js → webquark/p-ed327679.entry.js} +1 -1
- package/dist/{playground/build/p-e0e6b68f.entry.js → webquark/p-f911c90f.entry.js} +1 -1
- package/dist/webquark/p-f95uguY1.js +1 -0
- package/dist/{playground/build/p-13329777.entry.js → webquark/p-ff1e2363.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +68 -5
- package/scripts/wq-switch/README.md +141 -0
- package/scripts/wq-switch/dist/index.js +543 -0
- package/scripts/wq-switch/dist/setup.js +349 -0
- package/dist/collection/components/layout/card/card.js +0 -168
- package/dist/collection/components/layout/form/form.css +0 -49
- package/dist/components/p-BygmcFxM.js +0 -1
- package/dist/components/p-CVtof65h.js +0 -1
- package/dist/components/p-I81wUKud.js +0 -1
- package/dist/components/p-vv3X99Ji.js +0 -1
- package/dist/playground/build/p-0363c0e6.entry.js +0 -1
- package/dist/playground/build/p-0e3dbe01.entry.js +0 -1
- package/dist/playground/build/p-226c2f79.entry.js +0 -13
- package/dist/playground/build/p-38b92be6.entry.js +0 -1
- package/dist/playground/build/p-42831108.entry.js +0 -1
- package/dist/playground/build/p-50ca27f7.entry.js +0 -1
- package/dist/playground/build/p-5c08aa94.entry.js +0 -1
- package/dist/playground/build/p-611ef3e0.entry.js +0 -1
- package/dist/playground/build/p-684292dd.entry.js +0 -1
- package/dist/playground/build/p-7081c96b.entry.js +0 -1
- package/dist/playground/build/p-789eb3c9.entry.js +0 -1
- package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
- package/dist/playground/build/p-9978ae38.entry.js +0 -1
- package/dist/playground/build/p-VFWyFa-_.js +0 -3
- package/dist/playground/build/p-b99541cd.entry.js +0 -1
- package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
- package/dist/playground/build/p-e15e6d76.entry.js +0 -1
- package/dist/playground/build/p-e272dd45.entry.js +0 -1
- package/dist/playground/build/p-e8003179.entry.js +0 -1
- package/dist/types/components/layout/card/card.types.d.ts +0 -1
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
- package/dist/webquark/p-0363c0e6.entry.js +0 -1
- package/dist/webquark/p-0e3dbe01.entry.js +0 -1
- package/dist/webquark/p-226c2f79.entry.js +0 -13
- package/dist/webquark/p-38b92be6.entry.js +0 -1
- package/dist/webquark/p-42831108.entry.js +0 -1
- package/dist/webquark/p-50ca27f7.entry.js +0 -1
- package/dist/webquark/p-5c08aa94.entry.js +0 -1
- package/dist/webquark/p-611ef3e0.entry.js +0 -1
- package/dist/webquark/p-684292dd.entry.js +0 -1
- package/dist/webquark/p-7081c96b.entry.js +0 -1
- package/dist/webquark/p-789eb3c9.entry.js +0 -1
- package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
- package/dist/webquark/p-9978ae38.entry.js +0 -1
- package/dist/webquark/p-VFWyFa-_.js +0 -3
- package/dist/webquark/p-b99541cd.entry.js +0 -1
- package/dist/webquark/p-ca1a1d25.entry.js +0 -1
- package/dist/webquark/p-e15e6d76.entry.js +0 -1
- package/dist/webquark/p-e272dd45.entry.js +0 -1
- package/dist/webquark/p-e8003179.entry.js +0 -1
- package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
- package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
- package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
- package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
- package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
- package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
- package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
- /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { f as fieldFeedback, a as feedbackStyle } from './field-DkpyvZiX.js';
|
|
2
3
|
import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
|
|
3
4
|
import { s as safeParseJson } from './utils-BJiYCN3i.js';
|
|
4
5
|
|
|
@@ -20,7 +21,7 @@ function getRadioGroupOptions(options) {
|
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
const radioGroupCss = () => `:host{--q-
|
|
24
|
+
const radioGroupCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.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{--q-radio-group-bg:var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d)));--q-radio-group-border:var(--q-border, 1px solid var(--q-border-color, #4b5563));--q-radio-group-selected-bg:rgba(96, 165, 250, 0.12);--q-radio-group-selected-bg:color-mix(in srgb, var(--q-color-primary, #60a5fa) 12%, var(--q-radio-group-bg));--q-radio-group-selected-color:var(--q-color-primary, #60a5fa);--q-radio-group-focus-ring:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));--q-radio-group-error-color:var(--q-color-danger, #f87171);display:block;min-width:0;color:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit)}:host([disabled]){cursor:not-allowed}.group-fieldset{min-width:0;margin:0;padding:0;border:0}legend{margin:0 0 6px;padding:0;color:var(--q-fg-base, #f9fafb);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600)}.options{display:grid;grid-template-columns:repeat(var(--q-radio-group-option-count), minmax(0, 1fr));box-sizing:border-box;overflow:hidden;border:var(--q-radio-group-border);border-radius:var(--q-radio-group-radius, var(--q-field-radius, var(--_q-control-radius)));background:var(--q-radio-group-bg)}.option{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:0;min-height:var(--q-radio-group-option-min-height);padding:var(--q-radio-group-option-padding);color:var(--q-fg-muted, #9ca3af);background:var(--q-radio-group-bg);cursor:pointer;text-align:center;font-size:var(--q-font-size-base, 0.875rem);font-weight:var(--q-font-weight-bold, 600);line-height:1.2;transition:color var(--q-transition-fast, 150ms ease), background-color var(--q-transition-fast, 150ms ease)}.option-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;opacity:0.85}.option.is-selected .option-icon{opacity:1}.option+.option{border-inline-start:var(--q-radio-group-border)}.option:hover:not(.is-disabled){color:var(--q-fg-base, #f9fafb)}.option.is-selected{color:var(--q-radio-group-selected-color);background:var(--q-radio-group-selected-bg)}.option.is-disabled{cursor:not-allowed;opacity:0.6}.option:has(input:focus-visible){outline:var(--q-radio-group-focus-ring);outline-offset:-2px;z-index:1}.has-error .options{border-color:var(--q-radio-group-error-color)}input{position:absolute;width:1px;height:1px;padding:0;border:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap}.is-disabled .options{opacity:0.6}.orientation-vertical .options{grid-template-columns:1fr}.orientation-vertical .option+.option{border-top:var(--q-radio-group-border);border-inline-start:0}.error-msg{display:block;margin-top:4px;color:var(--q-radio-group-error-color);font-size:var(--q-font-size-sm, 0.7rem)}@media (max-width: 680px){.orientation-responsive .options{grid-template-columns:1fr}.orientation-responsive .option+.option{border-top:var(--q-radio-group-border);border-inline-start:0}}.radio-group{--_q-field-error-color:var(--q-radio-group-error-color, var(--q-color-danger, #f87171))}.radio-group .options{min-height:var(--_q-control-height);height:auto}.radio-group .option{min-height:calc(var(--q-radio-group-option-min-height, var(--_q-control-height)) - 2px);height:auto;padding:var(--q-radio-group-option-padding, 0 var(--_q-control-padding));font-size:var(--_q-control-font);line-height:var(--_q-control-line);overflow-wrap:anywhere}: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, .75rem);font-weight:400;line-height: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, .75rem);font-weight:600;line-height:1rem;margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}`;
|
|
24
25
|
|
|
25
26
|
let nextRadioGroupId = 0;
|
|
26
27
|
const QRadioGroup = class {
|
|
@@ -40,17 +41,23 @@ const QRadioGroup = class {
|
|
|
40
41
|
get el() { return getElement(this); }
|
|
41
42
|
internals;
|
|
42
43
|
label;
|
|
44
|
+
/** Supporting text, replaced by an active error. */
|
|
45
|
+
description;
|
|
43
46
|
/** Options to render; strings use the same text for label and value. */
|
|
44
47
|
options = [];
|
|
45
48
|
value = '';
|
|
46
|
-
|
|
49
|
+
/** Keep the label accessible without displaying it. */
|
|
50
|
+
labelHidden = false;
|
|
51
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
52
|
+
reserveFeedback;
|
|
53
|
+
size = 'inherit';
|
|
47
54
|
/** `responsive` stacks the connected options below 680px. */
|
|
48
55
|
orientation = 'responsive';
|
|
49
56
|
disabled = false;
|
|
50
57
|
required = false;
|
|
51
58
|
/** Validation error text or error-state flag. */
|
|
52
59
|
error;
|
|
53
|
-
/**
|
|
60
|
+
/** @deprecated Use error. Used when error is empty or unset. */
|
|
54
61
|
errorMessage;
|
|
55
62
|
name;
|
|
56
63
|
/** Accessible group name used when no visible label is supplied. */
|
|
@@ -175,17 +182,17 @@ const QRadioGroup = class {
|
|
|
175
182
|
const hasError = !!displayError;
|
|
176
183
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
177
184
|
const radioName = this.name || this.internalName;
|
|
178
|
-
return (h("div", { key: '
|
|
185
|
+
return (h("div", { key: 'fafafe465f603bb41d9e39696a4dfe4ecee42903', style: feedbackStyle(this.reserveFeedback), class: {
|
|
179
186
|
'radio-group': true,
|
|
180
187
|
'is-disabled': this.disabled,
|
|
181
188
|
'has-error': hasError,
|
|
182
189
|
[`size-${this.size}`]: true,
|
|
183
190
|
[`orientation-${this.orientation}`]: true,
|
|
184
|
-
} }, h("fieldset", { key: '
|
|
191
|
+
} }, h("fieldset", { key: 'fbe5eeab98912c79c34bf0bfc25bc22ba1aeac66', ref: element => (this.fieldsetEl = element), class: "group-fieldset", part: "group", disabled: this.disabled, role: "radiogroup", "aria-label": !this.label ? ariaLabel : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-radio-group-error' : undefined }, this.label && h("legend", { key: '0851c028f9d9329c603cf859849bd575c848ec7f', part: "label", class: { 'q-label-hidden': this.labelHidden } }, this.label), h("div", { key: '88b0bc2641d83d27700379e9ee8f6000ce23cafa', class: "options", part: "options", style: { '--q-radio-group-option-count': String(Math.max(identifiedOptions.length, 1)) } }, identifiedOptions.map(({ item: option, key }) => (h("label", { key: key, class: {
|
|
185
192
|
option: true,
|
|
186
193
|
'is-selected': option.value === this.value,
|
|
187
194
|
'is-disabled': this.disabled || option.disabled === true,
|
|
188
|
-
}, part: "option" }, h("input", { type: "radio", name: radioName, value: option.value, checked: option.value === this.value, disabled: this.disabled || option.disabled, required: this.required, part: "input", onClick: this.handleChange, onInput: this.handleChange, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), option.icon && (h("q-icon", { name: option.icon, size:
|
|
195
|
+
}, part: "option" }, h("input", { type: "radio", name: radioName, value: option.value, checked: option.value === this.value, disabled: this.disabled || option.disabled, required: this.required, part: "input", onClick: this.handleChange, onInput: this.handleChange, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), option.icon && (h("q-icon", { name: option.icon, size: "var(--_q-control-icon)", part: "option-icon", class: "option-icon" })), h("span", { part: "option-label" }, option.label)))))), fieldFeedback('q-radio-group-error', displayError, this.description)));
|
|
189
196
|
}
|
|
190
197
|
static get delegatesFocus() { return true; }
|
|
191
198
|
static get formAssociated() { return true; }
|
package/dist/esm/q-reel.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
import { g as getSlottedElements, h as handleTabTrap, s as safeFocus } from './dom-ByfrUWx1.js';
|
|
3
3
|
|
|
4
4
|
const reelCss = () => `:host{display:block;box-sizing:border-box;width:100%}.reel-container{display:grid;box-sizing:border-box}.layout-grid{grid-gap:var(--q-reel-gap, 16px);grid-template-columns:var(--q-reel-columns-mobile, repeat(auto-fill, minmax(140px, 1fr)))}@media (min-width: 768px){.layout-grid{grid-template-columns:var(--q-reel-columns-desktop, repeat(auto-fill, minmax(220px, 1fr)))}}.layout-carousel{display:flex;flex-direction:row;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:var(--q-reel-gap, 16px);padding-bottom:8px}.layout-carousel::-webkit-scrollbar{height:6px}.layout-carousel::-webkit-scrollbar-track{background:var(--q-bg-surface-1, #1f2937);border-radius:3px}.layout-carousel::-webkit-scrollbar-thumb{background:var(--q-bg-surface-3, #4b5563);border-radius:3px}.layout-carousel ::slotted(q-thumbnail){flex:0 0 auto;scroll-snap-align:start}.lightbox-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));z-index:9999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:40px;animation:fade-in var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close{position:absolute;top:20px;right:20px;background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:40px;height:40px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-close:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-close svg{width:20px;height:20px}.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:44px;height:44px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background 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))}.lightbox-prev{left:20px}.lightbox-next{right:20px}.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-prev:focus-visible,.lightbox-next:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-prev svg,.lightbox-next svg{width:24px;height:24px}.lightbox-content{position:relative;max-width:var(--q-lightbox-max-size, 85%);max-height:var(--q-lightbox-max-size, 85%);display:flex;flex-direction:column;align-items:center;z-index:9999}.lightbox-media{max-width:100%;max-height:80vh;border-radius:var(--q-radius-lg, 11px);border:1px solid rgba(255, 255, 255, 0.15);object-fit:contain;box-shadow:0 20px 45px rgba(0, 0, 0, 0.6)}.lightbox-caption{margin-top:16px;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-bold, 600);color:#ffffff;background:rgba(0, 0, 0, 0.7);padding:8px 16px;border-radius:var(--q-radius-md, 8px);text-align:center;border:1px solid rgba(255, 255, 255, 0.1)}@keyframes fade-in{from{opacity:0}to{opacity:1}}`;
|
|
@@ -152,10 +152,10 @@ const QReel = class {
|
|
|
152
152
|
const currentIdx = this.getActiveIndex(thumbnails);
|
|
153
153
|
const hasPrev = currentIdx > 0;
|
|
154
154
|
const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
|
|
155
|
-
return (h("div", { key: '
|
|
155
|
+
return (h("div", { key: '989bb3c483db06df3ff5a3c236586da7919ce046', class: {
|
|
156
156
|
'reel-container': true,
|
|
157
157
|
[`layout-${this.layout}`]: true,
|
|
158
|
-
} }, h("slot", { key: '
|
|
158
|
+
} }, h("slot", { key: 'ce75324d2cf83ac7d38e2594787576875a3a63ef' }), this.activeMedia && (h("div", { key: 'a17f7cf1a552aac23e78385e07b7004f4b5bea3e', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer', tabindex: "-1" }, h("button", { key: '0a95f4bf04f3badf8bb85ef8d941ef0ce62fc4e4', class: "lightbox-close", onClick: this.handleCloseButtonClick, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, h("svg", { key: 'fce76fcb9342b9c41f676db5daa36e7853969b6a', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '03a9503a7f1679008b62355be3d4c097d4e27c48', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '62e6cba02314654a7daedfe1a0a95f2b5ffb68ba', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (h("button", { key: 'c4e835cc10c8aeb39ee7042a5d1a55fc3fb38062', class: "lightbox-prev", onClick: this.handlePreviousClick, "aria-label": "Previous media" }, h("svg", { key: 'bfb0e611cbfd0a38405348b3c4a54d717a3b7518', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'a61352dd25b974be8eb92f2987100d450dd87fa9', points: "15 18 9 12 15 6" })))), hasNext && (h("button", { key: '5940cdf990f4af7b239033ec681eac11bd7af923', class: "lightbox-next", onClick: this.handleNextClick, "aria-label": "Next media" }, h("svg", { key: '0109b0f902aa7925d5706745e95337e80a23830f', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'a3939fc3521d5ca61a3d58fc59b89ddf961ed4cd', points: "9 18 15 12 9 6" })))), h("div", { key: 'd3c6f0da2f408c98174898317a747925fd4cd9bc', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (h("div", { key: 'f4404ff34a7b925ac5c60b5f864bfccb32d4858c', class: "lightbox-caption" }, this.activeMedia.label)))))));
|
|
159
159
|
}
|
|
160
160
|
static get watchers() { return {
|
|
161
161
|
"lightbox": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-DbGG9Q40.js';
|
|
2
2
|
|
|
3
3
|
function getScrollMetrics(viewport) {
|
|
4
4
|
if (!viewport) {
|
|
@@ -425,13 +425,13 @@ const QScrollable = class {
|
|
|
425
425
|
height: this.height,
|
|
426
426
|
maxHeight: this.maxHeight || undefined,
|
|
427
427
|
};
|
|
428
|
-
return (h(Host, { key: '
|
|
428
|
+
return (h(Host, { key: '8f16a1a28d33bc7a0382d20f17a36879ae279720', class: {
|
|
429
429
|
'is-scrolling': this.isScrolling,
|
|
430
430
|
'is-dragging': this.isDragging,
|
|
431
|
-
}, style: hostStyle }, h("div", { key: '
|
|
431
|
+
}, style: hostStyle }, h("div", { key: 'f76c3054d43ddff3657dc595f4825035a36601e7', class: "q-scrollable-host" }, h("div", { key: 'd4288bbb3b5933de2e9d2887e8756c4ca7a65f55', id: this.viewportId, class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll, tabindex: 0, part: "viewport" }, h("div", { key: '1573bd03af8fb6d65802e9762f79ec5c29d1549b', class: "q-scrollable-content", ref: this.setContentRef, part: "content" }, h("slot", { key: 'fb362b94fbc5f00eaacb4a054efa78d8e323ce9b' }))), this.mode === 'custom' && (h("div", { key: '584eb99b88589487ad6d3c9c20799019ddafa1b1', class: {
|
|
432
432
|
'q-scrollbar-track': true,
|
|
433
433
|
'is-dragging': this.isDragging,
|
|
434
|
-
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '
|
|
434
|
+
}, ref: (el) => (this.trackEl = el), part: "track" }, h("div", { key: '9c230ebab5a13e45908446f6f1d2b82698b8e56a', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown, onKeyDown: this.handleThumbKeyDown, role: "scrollbar", "aria-controls": this.viewportId, "aria-orientation": "vertical", "aria-valuemin": "0", "aria-valuemax": this.scrollValueMax, "aria-valuenow": this.scrollValueNow, "aria-label": "Scroll content", tabindex: 0, part: "thumb" }))))));
|
|
435
435
|
}
|
|
436
436
|
static get watchers() { return {
|
|
437
437
|
"mode": [{
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-DbGG9Q40.js';
|
|
2
|
+
|
|
3
|
+
const sectionCss = () => `:host{display:block;min-width:0}`;
|
|
4
|
+
|
|
5
|
+
const QSection = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
layout = 'full';
|
|
10
|
+
reverse = false;
|
|
11
|
+
columns = 1;
|
|
12
|
+
render() {
|
|
13
|
+
return h(Host, { key: '742848f9d58c70a6e21eb32d548acf01bc465d96' }, h("slot", { key: '774a388cefc0f30baab3d8c91bffd7a29ef8d596', name: "media" }), h("slot", { key: '4edfda8dc5ed7bc97f2446d1865884ca965a101d' }), h("slot", { key: 'f15da707788ef683ac04b5309da91c68333a85dd', name: "actions" }));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
QSection.style = sectionCss();
|
|
17
|
+
|
|
18
|
+
export { QSection as q_section };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, a as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, a as getElement } from './index-DbGG9Q40.js';
|
|
2
2
|
import { b as getDeepActiveElement, w as waitForTransitionEnd, f as focusFirstElement, s as safeFocus, h as handleTabTrap } from './dom-ByfrUWx1.js';
|
|
3
3
|
import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
|
|
4
4
|
import { a as ChevronUp, C as ChevronDown } from './chevron-up-g9vOVxQ4.js';
|
|
@@ -308,7 +308,7 @@ function renderNavItems(options) {
|
|
|
308
308
|
e.preventDefault();
|
|
309
309
|
onItemClick(item);
|
|
310
310
|
}
|
|
311
|
-
} }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon,
|
|
311
|
+
} }, item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: "lucide", size: "sm" })), h("span", { class: "nav-item__label" }, item.label), hasBadge && (h("span", { class: "nav-item__badge", part: "item-badge", "aria-hidden": "true" }, count > 99 ? '99+' : count)), hasChildren && !isAlwaysExpanded && (h("q-icon", { class: { 'nav-item__chevron': true, 'nav-item__chevron--open': isExpanded }, definition: ChevronRight, name: "chevron-right", size: "sm" }))), hasChildren && isExpanded && (h("div", { class: "nav-children", role: "group", "aria-label": item.label }, renderNavItems({ items: item.children, expandedGroups, activeValue, onItemClick, depth: depth + 1 })))));
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
|
|
@@ -363,6 +363,8 @@ const QSidepanel = class {
|
|
|
363
363
|
open = false;
|
|
364
364
|
side = 'right';
|
|
365
365
|
/** Drawer width or height, depending on `side`. */
|
|
366
|
+
drawerSize;
|
|
367
|
+
/** @deprecated Use drawerSize. Used only when drawerSize is unset. */
|
|
366
368
|
panelSize = '320px';
|
|
367
369
|
// ── Nav-mode props ────────────────────────────────────────────────────────
|
|
368
370
|
/** Navigation items rendered in nav mode. */
|
|
@@ -371,6 +373,9 @@ const QSidepanel = class {
|
|
|
371
373
|
value = '';
|
|
372
374
|
/** Displays items as a flat list, one-level groups, or a deep tree. */
|
|
373
375
|
mode = 'flat';
|
|
376
|
+
/** Seeds navigation group expansion before user interaction. Defaults to true. */
|
|
377
|
+
defaultGroupsExpanded;
|
|
378
|
+
/** @deprecated Use defaultGroupsExpanded. Used only when defaultGroupsExpanded is unset. */
|
|
374
379
|
expanded = true;
|
|
375
380
|
/** Opening one group collapses its siblings. */
|
|
376
381
|
accordion = false;
|
|
@@ -381,6 +386,8 @@ const QSidepanel = class {
|
|
|
381
386
|
/** `none` delegates the collapse control and `collapsed` state to the consumer. */
|
|
382
387
|
collapseControl = 'none';
|
|
383
388
|
/** `edge-tab` is intended for `collapse-control="edge"`. */
|
|
389
|
+
collapseControlStyle;
|
|
390
|
+
/** @deprecated Use collapseControlStyle. Used only when collapseControlStyle is unset. */
|
|
384
391
|
collapseControlAppearance = 'icon-button';
|
|
385
392
|
/** Measured from the top on vertical sides and left on horizontal sides. */
|
|
386
393
|
collapseControlPosition = '';
|
|
@@ -420,7 +427,7 @@ const QSidepanel = class {
|
|
|
420
427
|
this.hasFooterContent = this.hasSlotContent('footer');
|
|
421
428
|
// Nav mode
|
|
422
429
|
this.normalizedItems = getSidepanelItems(this.items);
|
|
423
|
-
if (this.expanded) {
|
|
430
|
+
if (this.defaultGroupsExpanded ?? this.expanded) {
|
|
424
431
|
seedExpandedGroups(this.normalizedItems, this.expandedGroups);
|
|
425
432
|
}
|
|
426
433
|
}
|
|
@@ -447,7 +454,7 @@ const QSidepanel = class {
|
|
|
447
454
|
}
|
|
448
455
|
handleItemsChange() {
|
|
449
456
|
this.normalizedItems = getSidepanelItems(this.items);
|
|
450
|
-
if (this.expanded && !this.hasUserToggledGroups) {
|
|
457
|
+
if ((this.defaultGroupsExpanded ?? this.expanded) && !this.hasUserToggledGroups) {
|
|
451
458
|
const newSet = new Set();
|
|
452
459
|
seedExpandedGroups(this.normalizedItems, newSet);
|
|
453
460
|
this.expandedGroups = newSet;
|
|
@@ -556,7 +563,7 @@ const QSidepanel = class {
|
|
|
556
563
|
}
|
|
557
564
|
}
|
|
558
565
|
getCollapseIconName() {
|
|
559
|
-
return this.collapseControlAppearance === 'edge-tab'
|
|
566
|
+
return (this.collapseControlStyle ?? this.collapseControlAppearance) === 'edge-tab'
|
|
560
567
|
? this.getEdgeTabCollapseIconName()
|
|
561
568
|
: this.getIconButtonCollapseIconName();
|
|
562
569
|
}
|
|
@@ -574,7 +581,7 @@ const QSidepanel = class {
|
|
|
574
581
|
renderCollapseControl(placement) {
|
|
575
582
|
const collapseControlLabel = this.getCollapseControlLabel();
|
|
576
583
|
const iconSlotName = this.collapsed ? 'expand-icon' : 'collapse-icon';
|
|
577
|
-
const isEdgeTab = placement === 'edge' && this.collapseControlAppearance === 'edge-tab';
|
|
584
|
+
const isEdgeTab = placement === 'edge' && (this.collapseControlStyle ?? this.collapseControlAppearance) === 'edge-tab';
|
|
578
585
|
const controlStyle = this.collapseControlPosition.trim()
|
|
579
586
|
? { '--q-sidepanel-collapse-control-position': this.collapseControlPosition.trim() }
|
|
580
587
|
: undefined;
|
|
@@ -587,7 +594,7 @@ const QSidepanel = class {
|
|
|
587
594
|
}
|
|
588
595
|
render() {
|
|
589
596
|
const customSizeStyle = {
|
|
590
|
-
'--q-panel-width': this.panelSize,
|
|
597
|
+
'--q-panel-width': this.drawerSize ?? this.panelSize,
|
|
591
598
|
};
|
|
592
599
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
593
600
|
if (this.variant === 'nav') {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { s as spaceValue } from './tokens-f95uguY1.js';
|
|
3
|
+
|
|
4
|
+
const stackCss = () => `:host{display:block;min-width:0}div{display:flex;flex-direction:column;min-width:0}slot{display:contents}::slotted(*){min-width:0}`;
|
|
5
|
+
|
|
6
|
+
const QStack = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
gap = 'lg';
|
|
11
|
+
align = 'stretch';
|
|
12
|
+
render() {
|
|
13
|
+
return h("div", { key: '71cf654e1609c0c884683e8feab0e6825c5633ca', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align } }, h("slot", { key: 'f1e8958aadabfdf876754bf5addd6b9aab0cf046' }));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
QStack.style = stackCss();
|
|
17
|
+
|
|
18
|
+
export { QStack as q_stack };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
|
|
2
2
|
|
|
3
3
|
function isStepDiagramItemActivationKey(key) {
|
|
4
4
|
return key === 'Enter' || key === ' ';
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
const stepDiagramItemCss = () => `:host{display:block;box-sizing:border-box;flex:1;}.step-item{display:flex;box-sizing:border-box;position:relative}
|
|
7
|
+
const stepDiagramItemCss = () => `:host{display:block;box-sizing:border-box;flex:1;}.step-item{display:flex;box-sizing:border-box;position:relative}.step-item.orientation-vertical{flex-direction:row;padding-bottom:var(--q-step-diag-item-gap, 24px)}.step-item.orientation-horizontal{flex-direction:column;align-items:center;padding-right:var(--q-step-diag-item-gap, 24px)}.step-badge{position:relative;width:var(--q-step-diag-icon-size, 32px);height:var(--q-step-diag-icon-size, 32px);border-radius:50%;background:var(--q-bg-surface-2, #374151);border:var(--q-step-diag-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));display:flex;align-items:center;justify-content:center;z-index:2;outline:none;transition:all var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.badge-dot{width:8px;height:8px;border-radius:50%;background:var(--q-color-secondary, #9ca3af);transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.step-line-container{display:flex;position:relative;align-items:center}.orientation-vertical .step-line-container{flex-direction:column;width:var(--q-step-diag-icon-size, 32px)}.orientation-horizontal .step-line-container{flex-direction:row;width:100%}.step-connector{position:absolute;z-index:1;border-color:var(--q-border-color, #4b5563);transition:border-color var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.orientation-vertical .step-connector{top:var(--q-step-diag-icon-size, 32px);left:calc(50% - 1px);height:100%;border-left:var(--q-step-diag-line, 2px solid var(--q-border-color, #4b5563))}.orientation-horizontal .step-connector{left:var(--q-step-diag-icon-size, 32px);top:calc(50% - 1px);width:100%;border-top:var(--q-step-diag-line, 2px solid var(--q-border-color, #4b5563))}:host([line-style="dashed"]) .step-connector{border-style:dashed}:host([line-style="dotted"]) .step-connector{border-style:dotted}:host([line-style="none"]) .step-connector{display:none}:host([status="completed"]) .step-badge,:host([status="success"]) .step-badge{background:var(--q-color-success, #34d399);border-color:var(--q-color-success, #34d399)}:host([status="completed"]) .badge-dot,:host([status="success"]) .badge-dot{background:var(--q-bg-base, #111827)}:host([status="completed"]) .step-connector,:host([status="success"]) .step-connector{border-color:var(--q-color-success, #34d399)}:host([status="active"]) .step-badge{background:var(--q-bg-surface-2, #374151);border-color:var(--q-color-primary, #60a5fa)}:host([status="active"]) .badge-dot{background:var(--q-color-primary, #60a5fa)}:host([status="active"]) .step-badge::after{content:'';position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;border-radius:50%;border:2px solid var(--q-color-primary, #60a5fa);opacity:0;animation:active-pulse-gpu 2s infinite ease-out;pointer-events:none}:host([status="warning"]) .step-badge{background:var(--q-bg-surface-2, #374151);border-color:var(--q-color-warning, #fbbf24)}:host([status="warning"]) .badge-dot{background:var(--q-color-warning, #fbbf24)}:host([status="warning"]) .step-connector{border-color:var(--q-color-warning, #fbbf24)}:host([status="danger"]) .step-badge{background:var(--q-bg-surface-2, #374151);border-color:var(--q-color-danger, #ef4444)}:host([status="danger"]) .badge-dot{background:var(--q-color-danger, #ef4444)}:host([status="danger"]) .step-connector{border-color:var(--q-color-danger, #ef4444)}:host([status="pending"]) .step-badge{background:transparent;border-color:var(--q-border-color, #4b5563)}:host([status="pending"]) .badge-dot{background:var(--q-color-secondary, #9ca3af);opacity:0.5}:host([status="pending"]) .step-connector{border-color:var(--q-border-color, #4b5563)}.step-content{flex:1;background:var(--q-bg-surface-1, #1f2937);border:var(--q-step-diag-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-radius-lg, 11px);padding:var(--q-padding-md, 9px);margin-left:var(--q-padding-md, 9px);cursor:pointer;outline:none;transition:all var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.orientation-horizontal .step-content{margin-left:0;margin-top:var(--q-padding-md, 9px);width:100%}.step-content:hover,.step-content:focus-visible{border-color:var(--q-color-primary, #60a5fa);transform:translateY(-2px);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0,0,0,0.1))}.step-content:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.step-title{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-color-primary, #60a5fa);margin-bottom:4px}:host([status="completed"]) .step-title,:host([status="success"]) .step-title{color:var(--q-color-success, #34d399)}:host([status="active"]) .step-title{color:var(--q-color-primary, #60a5fa)}:host([status="warning"]) .step-title{color:var(--q-color-warning, #fbbf24)}:host([status="danger"]) .step-title{color:var(--q-color-danger, #ef4444)}:host([status="pending"]) .step-title{color:var(--q-fg-muted, #9ca3af)}.step-body{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)}@keyframes active-pulse-gpu{0%{transform:scale(0.95);opacity:0.8}100%{transform:scale(1.35);opacity:0}}`;
|
|
8
8
|
|
|
9
9
|
const QStepDiagramItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -13,7 +13,9 @@ const QStepDiagramItem = class {
|
|
|
13
13
|
}
|
|
14
14
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
15
15
|
lineStyle = 'solid';
|
|
16
|
-
/**
|
|
16
|
+
/** Direction of the step. A q-step-diagram parent supplies its orientation; standalone default is vertical. */
|
|
17
|
+
orientation;
|
|
18
|
+
/** @deprecated Use orientation. Used only when orientation is unset. */
|
|
17
19
|
layout = 'vertical';
|
|
18
20
|
status = 'completed';
|
|
19
21
|
/** Emitted when the focusable step content is clicked or activated with Enter/Space. */
|
|
@@ -32,7 +34,8 @@ const QStepDiagramItem = class {
|
|
|
32
34
|
};
|
|
33
35
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
34
36
|
render() {
|
|
35
|
-
|
|
37
|
+
const orientation = this.orientation ?? this.layout;
|
|
38
|
+
return (h("div", { key: 'e33bd52746ebac7b6c4d094698600ebb808a489f', class: { 'step-item': true, [`orientation-${orientation}`]: true } }, h("div", { key: 'c14061fd0b9113bc3d87494118d2ae6e2a18ced3', class: "step-line-container" }, h("div", { key: '8be3af0c07eb52b631028419806a3874bcc2c6c7', class: "step-badge", "aria-hidden": "true", part: "badge" }, h("slot", { key: '99743f4c62b724b2344eb4a102c855cf7d13a487', name: "badge" }, h("div", { key: '20dfe66dea3c203022061ad24836aedc108c61a7', class: "badge-dot" }))), h("div", { key: 'c7ac704b0da0c418418015fc2a06347ff7013b9f', class: "step-connector", part: "connector" })), h("div", { key: 'b5cc679f950214f6e3ca212de9ab72256c44c529', class: "step-content", onClick: this.handleTrigger, onKeyDown: this.handleKeyDown, tabindex: "0", role: "button", part: "content", "aria-current": this.status === 'active' ? 'step' : undefined, "aria-disabled": this.status === 'pending' ? 'true' : undefined }, h("div", { key: '8912226f8e7f5a14645380756e3e8d60edc2c5ad', class: "step-title", part: "title" }, h("slot", { key: '711795873e70de3270605256cae8abb295ef1428', name: "title" })), h("div", { key: '6cb5f4cd4c6343d0503c88d555a9f9f404e428fa', class: "step-body", part: "body" }, h("slot", { key: '9ec59e6c87bb2bd4bef39a3953b57bb92400dceb' })))));
|
|
36
39
|
}
|
|
37
40
|
};
|
|
38
41
|
QStepDiagramItem.style = stepDiagramItemCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
import { a as syncPropertyToSlottedChildren } from './dom-ByfrUWx1.js';
|
|
3
3
|
|
|
4
4
|
const stepDiagramCss = () => `: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}`;
|
|
@@ -8,34 +8,44 @@ const QStepDiagram = class {
|
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
}
|
|
10
10
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
11
|
+
/** Direction of the sequence and its items. Overrides layout; defaults to vertical when both are omitted. */
|
|
12
|
+
orientation;
|
|
13
|
+
/** @deprecated Use orientation. Used only when orientation is unset. */
|
|
11
14
|
layout = 'vertical';
|
|
12
15
|
/** Accessible label for the step sequence. */
|
|
13
16
|
ariaLabel = 'Steps';
|
|
14
17
|
get el() { return getElement(this); }
|
|
15
18
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
16
|
-
|
|
17
|
-
this.
|
|
19
|
+
handleOrientationChange() {
|
|
20
|
+
this.propagateOrientation();
|
|
18
21
|
}
|
|
19
22
|
componentDidLoad() {
|
|
20
|
-
this.
|
|
23
|
+
this.handleOrientationChange();
|
|
21
24
|
}
|
|
22
25
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
23
26
|
handleSlotChange = () => {
|
|
24
|
-
this.
|
|
27
|
+
this.propagateOrientation();
|
|
25
28
|
};
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
propagateOrientation() {
|
|
30
|
+
const orientation = this.orientation ?? this.layout;
|
|
31
|
+
syncPropertyToSlottedChildren(this.el, 'q-step-diagram-item', 'orientation', orientation);
|
|
32
|
+
syncPropertyToSlottedChildren(this.el, 'q-step-diagram-item', 'layout', orientation);
|
|
28
33
|
}
|
|
29
34
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
30
35
|
render() {
|
|
31
|
-
|
|
36
|
+
const orientation = this.orientation ?? this.layout;
|
|
37
|
+
return (h("div", { key: '1fddc04b537873198cdc8b026646e6a18902c25f', class: {
|
|
32
38
|
'step-diagram': true,
|
|
33
|
-
[`
|
|
34
|
-
|
|
39
|
+
[`orientation-${orientation}`]: true,
|
|
40
|
+
[`layout-${orientation}`]: true,
|
|
41
|
+
}, role: "list", "aria-label": this.ariaLabel }, h("slot", { key: '10a2934ec992d00446a28cb0ad73fed9eb3cabb6', onSlotchange: this.handleSlotChange })));
|
|
35
42
|
}
|
|
36
43
|
static get watchers() { return {
|
|
44
|
+
"orientation": [{
|
|
45
|
+
"handleOrientationChange": 0
|
|
46
|
+
}],
|
|
37
47
|
"layout": [{
|
|
38
|
-
"
|
|
48
|
+
"handleOrientationChange": 0
|
|
39
49
|
}]
|
|
40
50
|
}; }
|
|
41
51
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-DbGG9Q40.js';
|
|
2
2
|
import { s as syncNativeControlValidity } from './form-control-validity-Bj2RJb2E.js';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/esm/q-tabs.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
|
|
3
3
|
import { s as safeParseJson } from './utils-BJiYCN3i.js';
|
|
4
4
|
|
|
@@ -101,7 +101,7 @@ const QTabs = class {
|
|
|
101
101
|
warningContext: 'q-tabs items',
|
|
102
102
|
});
|
|
103
103
|
const activeIndex = this.getActiveIndex(items);
|
|
104
|
-
return (h("div", { key: '
|
|
104
|
+
return (h("div", { key: '31312b7a411bea958f415b19638aabd8721b5f63', class: {
|
|
105
105
|
'tab-list': true,
|
|
106
106
|
[`size-${this.size}`]: true,
|
|
107
107
|
[`variant-${this.variant}`]: true,
|
|
@@ -113,7 +113,7 @@ const QTabs = class {
|
|
|
113
113
|
'has-icon': Boolean(item.icon),
|
|
114
114
|
'is-icon-only': iconOnly,
|
|
115
115
|
'is-selected': selected,
|
|
116
|
-
}, type: "button", role: "tab", part: `tab${selected ? ' selected-tab' : ''}`, disabled: item.disabled, "aria-label": iconOnly ? item.label : undefined, "aria-selected": selected ? 'true' : 'false', "aria-controls": item.panelId, tabindex: selected ? 0 : -1, title: item.label, onClick: () => this.selectItem(item), onKeyDown: event => this.handleKeyDown(event, index) }, item.icon && (h("q-icon", { class: "tab__icon", name: item.icon,
|
|
116
|
+
}, type: "button", role: "tab", part: `tab${selected ? ' selected-tab' : ''}`, disabled: item.disabled, "aria-label": iconOnly ? item.label : undefined, "aria-selected": selected ? 'true' : 'false', "aria-controls": item.panelId, tabindex: selected ? 0 : -1, title: item.label, onClick: () => this.selectItem(item), onKeyDown: event => this.handleKeyDown(event, index) }, item.icon && (h("q-icon", { class: "tab__icon", name: item.icon, library: "lucide", size: this.size, "aria-hidden": "true" })), !iconOnly && h("span", { class: "tab__label" }, item.label)));
|
|
117
117
|
})));
|
|
118
118
|
}
|
|
119
119
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { f as fieldFeedback, a as feedbackStyle } from './field-DkpyvZiX.js';
|
|
2
3
|
import { s as syncNativeControlValidity } from './form-control-validity-Bj2RJb2E.js';
|
|
3
4
|
|
|
4
|
-
const textareaCss = () => `:host{display:block;width:100%;box-sizing:border-box}.textarea-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.textarea-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)}.textarea-box{width:100%;box-sizing:border-box;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-radius
|
|
5
|
+
const textareaCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.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}.textarea-wrapper{position:relative;display:flex;flex-direction:column;width:100%;box-sizing:border-box}.textarea-size-probe{position:absolute;visibility:hidden;pointer-events:none;width:max-content;font-family:var(--q-font-family, inherit);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.textarea-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)}.textarea-box{width:100%;box-sizing:border-box;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)));padding:var(--q-input-padding, 10px 14px);font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);line-height:1.5;color:var(--q-fg-base, #f9fafb);resize:none;outline:none;transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.textarea-box.resize-manual{resize:vertical}.textarea-box:focus{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.textarea-wrapper:focus-within .textarea-label{color:var(--q-color-primary, #60a5fa)}.has-error .textarea-box{border-color:var(--q-color-danger, #ef4444) !important;box-shadow:none}.has-error.textarea-wrapper:focus-within .textarea-label,.has-error .textarea-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}.is-disabled{opacity:0.6}.is-disabled .textarea-box{cursor:not-allowed;pointer-events:none}.textarea-wrapper .textarea-box{min-height:var(--_q-control-height);padding:var(--q-input-padding, var(--q-field-padding, var(--q-space-sm, .5rem) var(--_q-control-padding)));font-size:var(--_q-control-font);line-height:var(--_q-control-line);background:var(--q-input-bg, var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d))))}: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, .75rem);font-weight:400;line-height: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, .75rem);font-weight:600;line-height:1rem;margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}`;
|
|
5
6
|
|
|
6
7
|
const QTextarea = class {
|
|
7
8
|
constructor(hostRef) {
|
|
@@ -25,6 +26,13 @@ const QTextarea = class {
|
|
|
25
26
|
label;
|
|
26
27
|
/** Accessible name for the native textarea when a visible label is not used. */
|
|
27
28
|
ariaLabel = null;
|
|
29
|
+
/** Supporting text, replaced by an active error. */
|
|
30
|
+
description;
|
|
31
|
+
size = 'inherit';
|
|
32
|
+
/** Keep the label accessible without displaying it. */
|
|
33
|
+
labelHidden = false;
|
|
34
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
35
|
+
reserveFeedback;
|
|
28
36
|
rows = 3;
|
|
29
37
|
/** Grows with content when `resizeMode` is `auto`. */
|
|
30
38
|
autoGrow = true;
|
|
@@ -34,7 +42,7 @@ const QTextarea = class {
|
|
|
34
42
|
required = false;
|
|
35
43
|
/** Validation error text or error-state flag. */
|
|
36
44
|
error;
|
|
37
|
-
/**
|
|
45
|
+
/** @deprecated Use error. Used when error is empty or unset. */
|
|
38
46
|
errorMessage;
|
|
39
47
|
name;
|
|
40
48
|
internals;
|
|
@@ -45,6 +53,10 @@ const QTextarea = class {
|
|
|
45
53
|
qFocus;
|
|
46
54
|
qClick;
|
|
47
55
|
textareaEl;
|
|
56
|
+
sizeProbeEl;
|
|
57
|
+
resizeObserver;
|
|
58
|
+
resizeFrame;
|
|
59
|
+
lastGeometry = '';
|
|
48
60
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
49
61
|
initialValue = "";
|
|
50
62
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
@@ -70,6 +82,41 @@ const QTextarea = class {
|
|
|
70
82
|
componentDidLoad() {
|
|
71
83
|
this.adjustHeightInternal();
|
|
72
84
|
this.syncValidity();
|
|
85
|
+
this.observeGeometry();
|
|
86
|
+
}
|
|
87
|
+
connectedCallback() {
|
|
88
|
+
if (this.textareaEl)
|
|
89
|
+
this.observeGeometry();
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
this.resizeObserver?.disconnect();
|
|
93
|
+
this.resizeObserver = undefined;
|
|
94
|
+
if (this.resizeFrame !== undefined)
|
|
95
|
+
cancelAnimationFrame(this.resizeFrame);
|
|
96
|
+
this.resizeFrame = undefined;
|
|
97
|
+
this.lastGeometry = '';
|
|
98
|
+
}
|
|
99
|
+
observeGeometry() {
|
|
100
|
+
if (this.resizeObserver || !this.textareaEl || !this.sizeProbeEl || typeof ResizeObserver === 'undefined')
|
|
101
|
+
return;
|
|
102
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
103
|
+
if (this.resizeFrame !== undefined)
|
|
104
|
+
return;
|
|
105
|
+
this.resizeFrame = requestAnimationFrame(() => {
|
|
106
|
+
this.resizeFrame = undefined;
|
|
107
|
+
if (!this.textareaEl || this.activeResizeMode !== 'auto')
|
|
108
|
+
return;
|
|
109
|
+
const style = getComputedStyle(this.textareaEl);
|
|
110
|
+
// Exclude height: changing it is the result of auto-grow, not a new input.
|
|
111
|
+
const geometry = [style.width, style.font, style.letterSpacing, style.padding, style.borderWidth, this.rows].join('|');
|
|
112
|
+
if (geometry === this.lastGeometry)
|
|
113
|
+
return;
|
|
114
|
+
this.lastGeometry = geometry;
|
|
115
|
+
this.adjustHeightInternal();
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
this.resizeObserver.observe(this.textareaEl);
|
|
119
|
+
this.resizeObserver.observe(this.sizeProbeEl);
|
|
73
120
|
}
|
|
74
121
|
componentDidRender() {
|
|
75
122
|
this.syncValidity();
|
|
@@ -166,14 +213,15 @@ const QTextarea = class {
|
|
|
166
213
|
const hasError = !!(this.error || this.errorMessage);
|
|
167
214
|
const displayError = this.error || this.errorMessage;
|
|
168
215
|
const ariaLabel = this.ariaLabel?.trim() || (!this.label && this.placeholder ? this.placeholder : undefined);
|
|
169
|
-
return (h("div", { key: '
|
|
216
|
+
return (h("div", { key: '2a5903876010bed67599eb68af9078719a54bf65', style: feedbackStyle(this.reserveFeedback), class: {
|
|
170
217
|
'textarea-wrapper': true,
|
|
171
218
|
'is-disabled': this.disabled,
|
|
172
|
-
'has-error': hasError
|
|
173
|
-
|
|
219
|
+
'has-error': hasError,
|
|
220
|
+
[`size-${this.size}`]: true
|
|
221
|
+
} }, h("span", { key: '8f12d79c7132c89cf4b67637aa627c60901df37a', class: "textarea-size-probe", "aria-hidden": "true", ref: el => (this.sizeProbeEl = el) }, "M"), this.label && (h("label", { key: 'a7ec4cadaef80883fbf0814c8ed23689d5286e69', class: { 'textarea-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("textarea", { key: '984ae770743e70a82d3511b6f00c9961027f03de', ref: (el) => (this.textareaEl = el), id: "q-field", class: {
|
|
174
222
|
'textarea-box': true,
|
|
175
223
|
'resize-manual': this.activeResizeMode === 'manual'
|
|
176
|
-
}, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.disabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined, "aria-label": ariaLabel }),
|
|
224
|
+
}, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.disabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), fieldFeedback('q-field-error', displayError, this.description)));
|
|
177
225
|
}
|
|
178
226
|
static get delegatesFocus() { return true; }
|
|
179
227
|
static get formAssociated() { return true; }
|
|
@@ -186,6 +234,12 @@ const QTextarea = class {
|
|
|
186
234
|
}],
|
|
187
235
|
"autoGrow": [{
|
|
188
236
|
"handleResizeModeChange": 0
|
|
237
|
+
}],
|
|
238
|
+
"size": [{
|
|
239
|
+
"handleResizeModeChange": 0
|
|
240
|
+
}],
|
|
241
|
+
"rows": [{
|
|
242
|
+
"handleResizeModeChange": 0
|
|
189
243
|
}]
|
|
190
244
|
}; }
|
|
191
245
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
|
|
3
3
|
const thumbnailCss = () => `:host{display:block;box-sizing:border-box}.thumb-wrapper{position:relative;display:flex;flex-direction:column;border-radius:var(--q-thumb-radius, var(--q-radius-md, 8px));border:2px solid var(--q-thumb-border-color, transparent);border:var(--q-thumb-border, 2px solid var(--q-thumb-border-color, transparent));overflow:hidden;cursor:pointer;outline:none;box-sizing:border-box;user-select:none;-webkit-user-select:none;transition:transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), box-shadow var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), border-color var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.thumb-wrapper:hover,.thumb-wrapper:focus-visible{transform:scale(1.03);transform:var(--q-thumb-hover-transform, translateY(-4px) scale(1.02));--q-thumb-border-color:var(--q-color-primary, #60a5fa);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0,0,0,0.3))}.is-highlighted{--q-thumb-border-color:var(--q-color-primary, #60a5fa);box-shadow:var(--q-thumb-glow, var(--q-glow-interactive, 0 0 20px rgba(96,165,250,0.3)))}.thumb-media-container{position:relative;width:100%;aspect-ratio:var(--q-thumb-aspect-ratio, 16 / 9);background:var(--q-bg-surface-2, #374151);overflow:hidden}.thumb-image{width:100%;height:100%;object-fit:cover;transition:transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.thumb-wrapper:hover .thumb-image{transform:scale(1.05)}.video-play-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:rgba(0, 0, 0, 0.7);background:var(--q-thumb-overlay-bg, rgba(0, 0, 0, 0.7));border:2px solid #ffffff;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#ffffff;transition:background 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))}.thumb-wrapper:hover .video-play-indicator{background:var(--q-color-primary, #60a5fa);transform:translate(-50%, -50%) scale(1.1)}.video-play-indicator svg{width:16px;height:16px;margin-left:2px}.thumb-caption{position:absolute;bottom:0;left:0;width:100%;background:linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, var(--q-thumb-overlay-bg, rgba(0, 0, 0, 0.4)) 70%, rgba(0, 0, 0, 0) 100%);padding:12px 8px 8px 8px;box-sizing:border-box}.caption-text{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:#ffffff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 2px rgba(0, 0, 0, 0.8)}`;
|
|
4
4
|
|
|
@@ -37,11 +37,11 @@ const QThumbnail = class {
|
|
|
37
37
|
};
|
|
38
38
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
39
39
|
render() {
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: '48d86628bc779cf1191e39c652d95bbae8c2a547', class: {
|
|
41
41
|
'thumb-wrapper': true,
|
|
42
42
|
'is-highlighted': this.highlighted,
|
|
43
43
|
'is-video': this.video,
|
|
44
|
-
}, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: '
|
|
44
|
+
}, onClick: this.handleTrigger, role: "button", tabindex: "0", "aria-label": this.label || this.alt || 'Media item', onKeyDown: this.handleKeyDown }, h("div", { key: 'c113b418d73954bf9ba2901b09020383a891c577', class: "thumb-media-container" }, h("img", { key: '6e7836db7bb9a0cd88e40cb068fac615ddff7e54', class: "thumb-image", src: this.src, alt: this.alt, loading: "lazy" }), this.video && (h("div", { key: '117d2d4bcd5550ac81694638dfd93b68e4c24454', class: "video-play-indicator", "aria-hidden": "true" }, h("svg", { key: '635d3c0f800c0694b94f387c432dc162de2bf1a4', viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, h("polygon", { key: '9458e20ee888f443e8b71df67aa910036574bdec', points: "5 3 19 12 5 21 5 3" }))))), this.label && (h("div", { key: 'e2af4d4c581ab289d7041487e82d6c4ef8c729ca', class: "thumb-caption" }, h("span", { key: 'ad665af92f8341f3e72ec3b7aebfee8368547303', class: "caption-text" }, this.label))), h("slot", { key: '76065889919408e0566bca08e0257d264d4b47d9' })));
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
QThumbnail.style = thumbnailCss();
|