@webquark/core 1.1.0-dev.3 → 1.1.0-dev.5
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 +24 -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 +9 -6
- 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 +15 -8
- 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.js +32 -7
- 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 +2 -2
- 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 +9 -6
- 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 +15 -8
- 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-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/playground/build/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
- 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 +3 -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 +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 +887 -66
- package/dist/types/index.d.ts +7 -2
- 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-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/webquark/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
- 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 +113 -0
- package/scripts/wq-switch/dist/index.js +530 -0
- package/scripts/wq-switch/dist/setup.js +333 -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-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-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/playground/build/p-e974c1f8.entry.js +0 -13
- 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-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-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/webquark/p-e974c1f8.entry.js +0 -13
- 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,7 +1,7 @@
|
|
|
1
|
-
import { M as Mixin, r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-
|
|
2
|
-
import { a as withActionProps } from './action.props-
|
|
1
|
+
import { M as Mixin, r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-DbGG9Q40.js';
|
|
2
|
+
import { a as withActionProps } from './action.props-GP1ameE3.js';
|
|
3
3
|
|
|
4
|
-
const buttonCss = () => `:host{display:inline-block;box-sizing:border-box}:host([expand]){display:block;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;position:relative;text-decoration:none;border-radius:var(--q-btn-radius, var(--
|
|
4
|
+
const buttonCss = () => `: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:inline-block;box-sizing:border-box}:host([expand]){display:block;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;position:relative;text-decoration:none;border-radius:var(--q-btn-radius, var(--_q-control-radius));font-family:var(--q-font-family, inherit);font-weight:var(--q-btn-font-weight, var(--q-font-weight-bold, 600));border:1px solid transparent;line-height:1.2;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;-webkit-user-select:none;transition:var(--q-btn-transition, all 150ms cubic-bezier(0.4, 0, 0.2, 1))}.btn.is-expanded{width:100%}.size-sm{border-radius:var(--q-btn-radius-sm, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-sm, 6px 10px);font-size:var(--q-font-size-sm, 0.7rem)}.size-md{border-radius:var(--q-btn-radius-md, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-md, 5px 8px);font-size:var(--q-btn-font-size, var(--q-font-size-base, 0.9rem))}.size-lg{border-radius:var(--q-btn-radius-lg, var(--q-btn-radius, var(--_q-control-radius)));padding:var(--q-btn-padding-lg, 9px 16px);font-size:var(--q-font-size-lg, 1rem)}.btn.is-icon-only.size-sm{padding:var(--q-btn-icon-padding-sm, 4px);--_q-btn-icon-padding:var(--q-btn-icon-padding-sm, 0px)}.btn.is-icon-only.size-md{padding:var(--q-btn-icon-padding-md, 6px);--_q-btn-icon-padding:var(--q-btn-icon-padding-md, 0px)}.btn.is-icon-only.size-lg{padding:var(--q-btn-icon-padding-lg, 9px);--_q-btn-icon-padding:var(--q-btn-icon-padding-lg, 0px)}.btn.shape-pill{border-radius:999px}.btn.shape-circle{width:var(--q-btn-circle-size, 120px);height:var(--q-btn-circle-size, 120px);padding:var(--q-btn-circle-padding, 12px);border-radius:50%}.btn.layout-stacked .btn-content-wrap{flex-direction:column;gap:var(--q-btn-stacked-gap, 8px)}.variant-primary{background:var(--q-color-primary, #60a5fa);color:var(--q-fg-base, #f9fafb)}.variant-primary:hover:not(.is-disabled){background:var(--q-color-primary-hover, #93c5fd)}.variant-secondary{background:var(--q-color-secondary, #4b5563);color:#ffffff}.variant-secondary:hover:not(.is-disabled){opacity:0.9}.variant-success{background:var(--q-color-success, #34d399);color:var(--q-bg-base, #111827)}.variant-success:hover:not(.is-disabled){opacity:0.9}.variant-danger{background:var(--q-color-danger, #f87171);color:var(--q-bg-base, #111827)}.variant-danger:hover:not(.is-disabled){opacity:0.9}.variant-ghost{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.variant-ghost:hover:not(.is-disabled){background:rgba(249, 250, 251, 0.08);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.variant-text{background:transparent;color:var(--q-fg-base, #f9fafb)}.variant-text:hover:not(.is-disabled){color:var(--q-color-primary, #60a5fa);background:rgba(249, 250, 251, 0.05);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 5%, transparent))}.btn:active:not(.is-disabled){transform:var(--q-btn-active-transform, scale(0.97))}.btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.is-disabled{opacity:0.5;cursor:not-allowed}.btn-spinner{position:absolute;width:18px;height:18px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:btn-spin 0.6s linear infinite}.btn-content-wrap{display:inline-flex;align-items:center;gap:var(--q-btn-content-gap, 8px)}.size-sm .btn-content-wrap{gap:var(--q-btn-content-gap-sm, var(--q-btn-content-gap, 4px))}.btn.is-icon-only .btn-label:not(.has-default-slot-icon){display:none}@keyframes btn-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.btn:not(.shape-circle){min-height:var(--q-btn-height, var(--_q-control-height));padding:var(--q-btn-padding, var(--_q-btn-padding, 0 var(--_q-control-padding)));font-size:var(--q-btn-font-size, var(--_q-control-font));line-height:var(--_q-control-line)}.btn.is-icon-only:not(.shape-circle){min-width:var(--q-btn-height, var(--_q-control-height));padding:var(--_q-btn-icon-padding, 0px)}.btn-content-wrap{gap:var(--q-btn-content-gap, var(--q-space-sm, .5rem))}.size-sm{--_q-btn-padding:var(--q-btn-padding-sm, 0 var(--_q-control-padding))}.size-md{--_q-btn-padding:var(--q-btn-padding-md, 0 var(--_q-control-padding))}.size-lg{--_q-btn-padding:var(--q-btn-padding-lg, 0 var(--_q-control-padding))}.btn{max-width:100%}.btn-content-wrap,.btn-label{min-width:0;overflow-wrap:anywhere}`;
|
|
5
5
|
|
|
6
6
|
const QButton = class extends Mixin(withActionProps) {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -19,7 +19,7 @@ const QButton = class extends Mixin(withActionProps) {
|
|
|
19
19
|
/** Required when an icon-only button has no accessible text. */
|
|
20
20
|
ariaLabel = null;
|
|
21
21
|
variant = 'primary';
|
|
22
|
-
size = '
|
|
22
|
+
size = 'inherit';
|
|
23
23
|
/** The `circle` shape uses a fixed-size circular presentation. */
|
|
24
24
|
shape = 'default';
|
|
25
25
|
layout = 'inline';
|
|
@@ -130,7 +130,7 @@ const QButton = class extends Mixin(withActionProps) {
|
|
|
130
130
|
};
|
|
131
131
|
const innerContent = [
|
|
132
132
|
this.loading && h("div", { class: "btn-spinner", part: "spinner" }),
|
|
133
|
-
h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && h("q-icon", { name: shortcutIcon, size:
|
|
133
|
+
h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && h("q-icon", { name: shortcutIcon, size: "var(--_q-control-icon)", part: "icon" })), h("span", { class: { 'btn-label': true, 'has-default-slot-icon': hasDefaultSlotIcon } }, h("slot", { onSlotchange: this.handleSlotChange })), h("slot", { name: "icon-right", onSlotchange: this.handleSlotChange }))
|
|
134
134
|
];
|
|
135
135
|
if (isLink) {
|
|
136
136
|
return (h("a", { class: classes, part: "button", href: this.href, target: this.target, rel: this.getResolvedRel(), download: this.download, tabindex: isBtnDisabled ? -1 : undefined, "aria-disabled": isBtnDisabled ? 'true' : 'false', "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
@@ -362,9 +362,9 @@ const QTooltip = class {
|
|
|
362
362
|
}
|
|
363
363
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
364
364
|
render() {
|
|
365
|
-
return (h(Host, { key: '
|
|
365
|
+
return (h(Host, { key: 'caabdb699db1cae6b1d64f6289fedb10331a23db', class: {
|
|
366
366
|
'is-visible': this.visible,
|
|
367
|
-
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '
|
|
367
|
+
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: 'e331e10f1a300c53d4dd68874300391fe0ee5be4', class: "tooltip-bubble" }, this.content || h("slot", { key: 'a2cfcdc4ea2f01ad66f5302296fff3688de4d6f8' }))));
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
QTooltip.style = tooltipCss();
|
package/dist/esm/q-card.entry.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
|
+
import { s as spaceValue, a as surfaceValue } from './tokens-f95uguY1.js';
|
|
2
3
|
import { g as getSlottedElements } from './dom-ByfrUWx1.js';
|
|
3
4
|
|
|
4
5
|
function normalizeCardElevation(elevation) {
|
|
@@ -17,15 +18,21 @@ function shouldActivateCardFromKey(interactive, key, target, currentTarget) {
|
|
|
17
18
|
return interactive && target === currentTarget && isCardActivationKey(key);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const cardCss = () => `:host{display:block;min-width:var(--q-card-min-width, 280px);box-sizing:border-box;position:relative;z-index:1;transition:transform var(--q-card-transition-duration, 250ms ease)}:host([interactive]:hover),:host([interactive]:focus-within),:host([lift]:hover),:host([lift]:focus-within){transform:var(--q-card-hover-transform, translateY(-4px) scale(1.02));z-index:5}:host([interactive]:active){transform:scale(0.99)}.card-container{display:flex;flex-direction:column;height:100%;border-radius:var(--q-radius-lg, 11px);padding:var(--q-padding-lg, 16px);border:var(--q-card-border, 1px solid var(--q-border-color, #374151));box-sizing:border-box;background:#1f2937;background:var(--q-bg-card, var(--q-bg-surface-1, #1f2937));transition:border-color var(--q-card-transition-duration, 250ms ease), box-shadow var(--q-card-transition-duration, 250ms ease), opacity var(--q-card-transition-duration, 250ms ease)}.card-container.is-glass{background:rgba(25, 36, 59, 0.85);background:var(--q-bg-glass, rgba(25, 36, 59, 0.85))}.elevation-low{box-shadow:0 2px 4px rgba(0, 0, 0, 0.2);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.elevation-medium{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))}.elevation-high{box-shadow:0 16px 32px rgba(0, 0, 0, 0.45);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45))}:host([interactive]:hover) .card-container,:host([interactive]:focus-within) .card-container{box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45)), var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3));border-color:#60a5fa;border-color:var(--q-color-primary, #60a5fa);outline:none;cursor:pointer}.card-header{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-lg, 1rem);font-weight:var(--q-font-weight-bold, 600);line-height:1.4;margin-bottom:var(--q-padding-sm, 4px)}.card-header.is-hidden{display:none}.card-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);line-height:1.5}`;
|
|
21
|
+
const cardCss = () => `:host{display:block;min-width:var(--q-card-min-width, 280px);box-sizing:border-box;position:relative;z-index:1;transition:transform var(--q-card-transition-duration, 250ms ease)}:host([interactive]:hover),:host([interactive]:focus-within),:host([lift]:hover),:host([lift]:focus-within){transform:var(--q-card-hover-transform, translateY(-4px) scale(1.02));z-index:5}:host([interactive]:active){transform:scale(0.99)}.card-container{display:flex;flex-direction:column;height:100%;border-radius:var(--q-radius-lg, 11px);padding:var(--q-padding-lg, 16px);border:var(--q-card-border, 1px solid var(--q-border-color, #374151));box-sizing:border-box;background:#1f2937;background:var(--q-bg-card, var(--q-bg-surface-1, #1f2937));transition:border-color var(--q-card-transition-duration, 250ms ease), box-shadow var(--q-card-transition-duration, 250ms ease), opacity var(--q-card-transition-duration, 250ms ease)}.card-container.is-glass{background:rgba(25, 36, 59, 0.85);background:var(--q-bg-glass, rgba(25, 36, 59, 0.85))}.elevation-low{box-shadow:0 2px 4px rgba(0, 0, 0, 0.2);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.elevation-medium{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))}.elevation-high{box-shadow:0 16px 32px rgba(0, 0, 0, 0.45);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45))}:host([interactive]:hover) .card-container,:host([interactive]:focus-within) .card-container{box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45)), var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3));border-color:#60a5fa;border-color:var(--q-color-primary, #60a5fa);outline:none;cursor:pointer}.card-header{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-lg, 1rem);font-weight:var(--q-font-weight-bold, 600);line-height:1.4;margin-bottom:var(--q-padding-sm, 4px)}.card-header.is-hidden{display:none}.card-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);line-height:1.5}:host{min-width:var(--q-card-min-width, 0px)}.card-container{padding:0;background:var(--q-card-bg, var(--_q-surface))}.card-container.is-glass{background:var(--q-card-bg, var(--q-bg-glass, rgba(25,36,59,.85)))}.elevation-none{box-shadow:none}.card-header{padding:var(--q-card-header-padding, var(--_q-header-padding));margin:0}.card-body{padding:var(--q-card-padding, var(--_q-body-padding))}.card-footer{padding:var(--q-card-footer-padding, var(--_q-footer-padding))}.card-footer.is-hidden{display:none}.has-dividers .card-header{border-bottom:var(--q-card-divider, var(--q-border, 1px solid #374151))}.has-dividers .card-footer{border-top:var(--q-card-divider, var(--q-border, 1px solid #374151))}`;
|
|
21
22
|
|
|
22
23
|
const QCard = class {
|
|
23
24
|
constructor(hostRef) {
|
|
24
25
|
registerInstance(this, hostRef);
|
|
25
26
|
}
|
|
26
27
|
get el() { return getElement(this); }
|
|
28
|
+
/** Explicit surface; omitted preserves the variant's role. */
|
|
29
|
+
surface;
|
|
30
|
+
headerPadding;
|
|
31
|
+
footerPadding;
|
|
32
|
+
dividers = false;
|
|
33
|
+
padding = 'lg';
|
|
27
34
|
/** Numeric values remain supported as legacy elevation aliases. */
|
|
28
|
-
elevation = '
|
|
35
|
+
elevation = 'low';
|
|
29
36
|
/** Applies translucent glass styling without backdrop-filter. */
|
|
30
37
|
glass = false;
|
|
31
38
|
/** Applies a visual hover/focus lift without adding interactive semantics. */
|
|
@@ -34,7 +41,10 @@ const QCard = class {
|
|
|
34
41
|
interactive = false;
|
|
35
42
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
36
43
|
hasHeader = false;
|
|
44
|
+
hasFooter = false;
|
|
37
45
|
checkHeaderSlot = () => {
|
|
46
|
+
const footer = this.el.shadowRoot?.querySelector('slot[name="footer"]');
|
|
47
|
+
this.hasFooter = !!footer?.assignedNodes({ flatten: true }).some(node => node.nodeType === 1 || !!node.textContent?.trim());
|
|
38
48
|
const headerContainer = this.el.shadowRoot?.querySelector('.card-header');
|
|
39
49
|
if (headerContainer) {
|
|
40
50
|
const elements = getSlottedElements(headerContainer);
|
|
@@ -58,16 +68,17 @@ const QCard = class {
|
|
|
58
68
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
59
69
|
render() {
|
|
60
70
|
const elevationClass = normalizeCardElevation(this.elevation);
|
|
61
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '717dc0017060a51d3e862786ff08b70d0048804b', part: "container", style: { '--_q-surface': surfaceValue(this.surface ?? 'card'), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
|
|
62
72
|
'card-container': true,
|
|
73
|
+
'has-dividers': this.dividers,
|
|
63
74
|
[`elevation-${elevationClass}`]: true,
|
|
64
75
|
'is-interactive': this.interactive,
|
|
65
76
|
'is-glass': this.glass,
|
|
66
77
|
'has-lift': this.lift,
|
|
67
|
-
}, tabindex: this.interactive ? 0 : undefined, role: this.interactive ? 'button' : undefined, onKeyDown: this.interactive ? this.handleKeyDown : undefined }, h("div", { key: '
|
|
78
|
+
}, tabindex: this.interactive ? 0 : undefined, role: this.interactive ? 'button' : undefined, onKeyDown: this.interactive ? this.handleKeyDown : undefined }, h("div", { key: 'ed7dc6828609d3ce3593d1be9752633b8f3e5ca0', class: {
|
|
68
79
|
'card-header': true,
|
|
69
80
|
'is-hidden': !this.hasHeader,
|
|
70
|
-
}, part: "header" }, h("slot", { key: '
|
|
81
|
+
}, part: "header" }, h("slot", { key: '9e1b0772536874b059b9f011b5b8edaedf4e6356', name: "header", onSlotchange: this.checkHeaderSlot })), h("div", { key: '0ce6df4b64d28eaf6b5282bce51945e2c817284b', class: "card-body", part: "body" }, h("slot", { key: '664c4f3123aaf5a4cb83168d4e4c14b6f649abaf' })), h("div", { key: '450b380586a2d9db29cd8cbe7c211fb20169cc46', class: { 'card-footer': true, 'is-hidden': !this.hasFooter }, part: "footer" }, h("slot", { key: 'de12a30c8a69d6f3647666ba00329d5f38cd3310', name: "footer", onSlotchange: this.checkHeaderSlot }))));
|
|
71
82
|
}
|
|
72
83
|
};
|
|
73
84
|
QCard.style = cardCss();
|
|
@@ -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 } from './dom-ByfrUWx1.js';
|
|
3
3
|
|
|
4
4
|
function getCarouselEdgeState(scrollLeft, startOffset, maxScrollLeft, tolerance = 5) {
|
|
@@ -318,10 +318,10 @@ const QCarousel = class {
|
|
|
318
318
|
render() {
|
|
319
319
|
const isFirst = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtStart || !this.isScrollable);
|
|
320
320
|
const isLast = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtEnd || !this.isScrollable);
|
|
321
|
-
return (h("div", { key: '
|
|
321
|
+
return (h("div", { key: '815db219fbc3590b04e0b76c90e075f81a499d44', class: "carousel-wrapper" }, this.showArrows && (h("button", { key: 'f45dd5ee8c7cb8b31165b2e46c4a20c1dfec9022', class: { 'arrow-btn': true, 'arrow-left': true }, "aria-disabled": isFirst ? 'true' : 'false', onClick: isFirst ? undefined : this.slidePrev, "aria-label": "Previous slide", type: "button" }, h("svg", { key: '670137128e393713b010c88d4e465a3545c6b051', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("polyline", { key: '5c7756e1ed11f3be17c3c81d3717e5cea029a313', points: "15 18 9 12 15 6" })))), h("div", { key: 'f505b30d156e52deeed3d8efac96fbc6c60e2984', class: {
|
|
322
322
|
'carousel-viewport': true,
|
|
323
323
|
[`snap-${this.snapAlignment}`]: this.snapAlignment !== 'none'
|
|
324
|
-
}, role: "group", "aria-roledescription": "carousel", tabindex: "0", "aria-label": "Carousel content", onScroll: this.handleScroll, ref: this.setScrollContainerRef }, h("slot", { key: '
|
|
324
|
+
}, role: "group", "aria-roledescription": "carousel", tabindex: "0", "aria-label": "Carousel content", onScroll: this.handleScroll, ref: this.setScrollContainerRef }, h("slot", { key: 'c860d6a6f3726a43ce821a9ac0a3829140d29647', onSlotchange: this.handleSlotChange })), this.showArrows && (h("button", { key: '85e234fbbb9e5b639cc0fbb9bfd61204af77362c', class: { 'arrow-btn': true, 'arrow-right': true }, "aria-disabled": isLast ? 'true' : 'false', onClick: isLast ? undefined : this.slideNext, "aria-label": "Next slide", type: "button" }, h("svg", { key: '11eb8c532441910823c3c242af600315fb22b67f', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("polyline", { key: '488201279ec65762043333bd8dfb3d4cf065ef5f', points: "9 18 15 12 9 6" })))), this.showIndicators && this.isScrollable && this.maxIndex > 0 && (h("div", { key: 'e61202afcac73259cd844cab0a5d34d9086647f1', class: "carousel-indicators", "aria-label": "Carousel slide controls", onKeyDown: this.handleIndicatorKeyDown }, Array.from({ length: this.maxIndex + 1 }).map((_, idx) => (h("button", { class: { 'indicator-dot': true, 'is-active': idx === this.activeIndex }, "aria-current": idx === this.activeIndex ? 'true' : undefined, onClick: () => this.scrollToIndex(idx), "aria-label": `Go to slide ${idx + 1}`, type: "button", tabindex: idx === this.activeIndex ? 0 : -1 })))))));
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
QCarousel.style = carouselCss();
|
package/dist/esm/q-chip.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Mixin, r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { w as withActionLabel, a as withActionProps } from './action.props-
|
|
1
|
+
import { M as Mixin, r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { w as withActionLabel, a as withActionProps } from './action.props-GP1ameE3.js';
|
|
3
3
|
|
|
4
4
|
const chipCss = () => `:host{display:inline-flex;max-width:100%;box-sizing:border-box}:host([hidden]){display:none}.chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;border:var(--q-chip-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-chip-radius, 999px);box-sizing:border-box;color:var(--q-chip-fg, var(--q-fg-muted, #9ca3af));background:var(--q-chip-bg, var(--q-bg-surface-2, #374151));font-family:var(--q-font-family, inherit);font-weight:var(--q-chip-font-weight, var(--q-font-weight-bold, 600));line-height:1.2;text-decoration:none;white-space:nowrap;outline:none;user-select:none;-webkit-user-select:none;transition:background var(--q-transition-fast, 150ms ease), border-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease), transform var(--q-transition-fast, 150ms ease)}.chip.is-interactive{cursor:pointer}.chip.is-disabled{cursor:not-allowed;opacity:var(--q-chip-disabled-opacity, 0.55);pointer-events:none}.chip.is-removable{padding-inline-end:var(--q-chip-removable-padding-end, 4px)}.chip:focus-visible,.remove-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:var(--q-chip-focus-offset, 2px)}.chip.is-interactive:hover:not(.is-disabled){border-color:var(--q-chip-hover-border-color, var(--q-color-primary, #60a5fa));color:var(--q-chip-hover-fg, var(--q-fg-base, #f9fafb));background:rgba(249, 250, 251, 0.08);background:var(--q-chip-hover-bg, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, var(--q-chip-bg, transparent)))}.chip.is-interactive:active:not(.is-disabled){transform:var(--q-chip-active-transform, scale(0.97))}.size-sm{min-height:var(--q-chip-height-sm, 24px);gap:var(--q-chip-gap-sm, 5px);padding:var(--q-chip-padding-sm, 4px 9px);font-size:var(--q-chip-font-size-sm, var(--q-font-size-sm, 0.7rem))}.size-md{min-height:var(--q-chip-height-md, 30px);gap:var(--q-chip-gap-md, 7px);padding:var(--q-chip-padding-md, 6px 11px);font-size:var(--q-chip-font-size-md, var(--q-font-size-base, 0.9rem))}.size-lg{min-height:var(--q-chip-height-lg, 36px);gap:var(--q-chip-gap-lg, 9px);padding:var(--q-chip-padding-lg, 8px 14px);font-size:var(--q-chip-font-size-lg, var(--q-font-size-lg, 1rem))}.chip-label{min-width:0;overflow:hidden;text-overflow:ellipsis}::slotted([slot='icon-left']),::slotted([slot='icon-right']),::slotted(q-icon){flex:none}.variant-neutral{--q-chip-bg:var(--q-bg-surface-2, #374151);--q-chip-fg:var(--q-fg-base, #f9fafb)}.variant-filter{--q-chip-bg:var(--q-bg-surface-1, #1f2937);--q-chip-fg:var(--q-fg-muted, #9ca3af)}.variant-primary{--q-chip-bg:rgba(96, 165, 250, 0.16);--q-chip-bg:color-mix(in srgb, var(--q-color-primary, #60a5fa) 16%, transparent);--q-chip-fg:var(--q-color-primary, #60a5fa);border-color:color-mix(in srgb, var(--q-color-primary, #60a5fa) 34%, transparent)}.variant-success{--q-chip-bg:rgba(52, 211, 153, 0.14);--q-chip-bg:color-mix(in srgb, var(--q-color-success, #34d399) 14%, transparent);--q-chip-fg:var(--q-color-success, #34d399);border-color:color-mix(in srgb, var(--q-color-success, #34d399) 32%, transparent)}.variant-warning{--q-chip-bg:rgba(251, 191, 36, 0.16);--q-chip-bg:color-mix(in srgb, var(--q-color-warning, #fbbf24) 16%, transparent);--q-chip-fg:var(--q-color-warning, #fbbf24);border-color:color-mix(in srgb, var(--q-color-warning, #fbbf24) 34%, transparent)}.variant-danger{--q-chip-bg:rgba(248, 113, 113, 0.14);--q-chip-bg:color-mix(in srgb, var(--q-color-danger, #f87171) 14%, transparent);--q-chip-fg:var(--q-color-danger, #f87171);border-color:color-mix(in srgb, var(--q-color-danger, #f87171) 32%, transparent)}.chip.is-selected{border-color:var(--q-chip-selected-border-color, var(--q-color-primary, #60a5fa));color:var(--q-chip-selected-fg, var(--q-color-primary, #60a5fa));background:rgba(96, 165, 250, 0.16);background:var(--q-chip-selected-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 16%, transparent))}.variant-primary.is-selected{color:var(--q-chip-primary-selected-fg, var(--q-bg-base, #111827));background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa)}.variant-success.is-selected{border-color:var(--q-chip-success-selected-border-color, var(--q-color-success, #34d399));color:var(--q-chip-success-selected-fg, var(--q-color-success, #34d399));background:rgba(52, 211, 153, 0.16);background:var(--q-chip-success-selected-bg, color-mix(in srgb, var(--q-color-success, #34d399) 16%, transparent))}.variant-warning.is-selected{border-color:var(--q-chip-warning-selected-border-color, var(--q-color-warning, #fbbf24));color:var(--q-chip-warning-selected-fg, var(--q-color-warning, #fbbf24));background:rgba(251, 191, 36, 0.18);background:var(--q-chip-warning-selected-bg, color-mix(in srgb, var(--q-color-warning, #fbbf24) 18%, transparent))}.variant-danger.is-selected{border-color:var(--q-chip-danger-selected-border-color, var(--q-color-danger, #f87171));color:var(--q-chip-danger-selected-fg, var(--q-color-danger, #f87171));background:rgba(248, 113, 113, 0.16);background:var(--q-chip-danger-selected-bg, color-mix(in srgb, var(--q-color-danger, #f87171) 16%, transparent))}.remove-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--q-chip-remove-size, 18px);height:var(--q-chip-remove-size, 18px);margin-inline-end:var(--q-chip-remove-offset, -2px);padding:0;border:0;border-radius:999px;color:currentColor;background:transparent;cursor:pointer;opacity:var(--q-chip-remove-opacity, 0.75);transition:background var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease)}.remove-button:hover{opacity:1;background:rgba(249, 250, 251, 0.1);background:var(--q-chip-remove-hover-bg, color-mix(in srgb, currentColor 12%, transparent))}.remove-button:active{transform:scale(0.94)}.remove-icon{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}.size-sm .remove-button{--q-chip-remove-size:16px}.size-lg .remove-button{--q-chip-remove-size:20px}`;
|
|
5
5
|
|
|
@@ -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
|
|
|
3
3
|
const conversationBubbleCss = () => `:host{display:block;min-width:0;box-sizing:border-box;color:var(--q-conversation-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.conversation{display:flex;align-items:flex-end;gap:var(--q-conversation-gap, 10px);width:100%;min-width:0;box-sizing:border-box}.avatar{display:none;flex:0 0 auto}.has-avatar .avatar{display:block}.content{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-start;min-width:0;max-width:var(--q-conversation-max-width, min(76ch, 82%))}.header{margin:0 0 var(--q-conversation-header-gap, 4px);padding-inline:var(--q-conversation-header-inset, 4px)}.sender{color:var(--q-conversation-sender-fg, var(--q-fg-muted, #9ca3af));font-size:var(--q-conversation-meta-size, var(--q-font-size-sm, 0.7rem));font-weight:var(--q-font-weight-bold, 600);line-height:1.3}.bubble{min-width:0;padding:var(--q-conversation-padding, 11px 13px);border:var(--q-conversation-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-conversation-radius, var(--q-radius-lg, 11px));background:var(--q-conversation-incoming-bg, var(--q-bg-surface-2, #19243b));box-shadow:var(--q-conversation-shadow, var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2)))}.body{min-width:0;overflow-wrap:anywhere;font-size:var(--q-conversation-font-size, var(--q-font-size-base, 0.9rem));line-height:var(--q-conversation-line-height, 1.55);white-space:pre-wrap}.footer{display:none;align-items:center;justify-content:space-between;gap:var(--q-conversation-footer-gap, 10px);margin-top:var(--q-conversation-footer-margin, 6px);color:var(--q-conversation-meta-fg, var(--q-fg-muted, #9ca3af));font-size:var(--q-conversation-meta-size, var(--q-font-size-sm, 0.7rem));line-height:1.3}.footer.has-content{display:flex}.message-meta,.actions.has-content{display:inline-flex;align-items:center;gap:var(--q-conversation-meta-gap, 6px)}.meta,.actions{display:none}.meta.has-content,.actions.has-content{display:inline-flex}.variant-outgoing{flex-direction:row-reverse}.variant-outgoing .content{align-items:flex-end;margin-inline-start:auto}.variant-outgoing .bubble{color:var(--q-conversation-outgoing-fg, #ffffff);border-color:var(--q-conversation-outgoing-border, transparent);background:var(--q-conversation-outgoing-bg, var(--q-color-primary, #60a5fa))}.variant-outgoing .footer{color:var(--q-conversation-outgoing-meta-fg, rgba(255, 255, 255, 0.76))}.variant-system{justify-content:center}.variant-system .avatar,.variant-system .header{display:none}.variant-system .content{align-items:center;max-width:var(--q-conversation-system-max-width, min(80ch, 94%))}.variant-system .bubble{color:var(--q-conversation-system-fg, var(--q-fg-muted, #9ca3af));border-color:var(--q-conversation-system-border, transparent);background:var(--q-conversation-system-bg, transparent);box-shadow:none;text-align:center}.is-compact .bubble{padding:var(--q-conversation-compact-padding, 7px 10px)}.is-compact .header{margin-bottom:2px}@media (max-width: 600px){.content{max-width:var(--q-conversation-mobile-max-width, 88%)}.has-avatar .content{max-width:var(--q-conversation-mobile-avatar-max-width, calc(100% - 42px))}}`;
|
|
4
4
|
|
|
@@ -7,15 +7,15 @@ const QConversationBubble = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
get el() { return getElement(this); }
|
|
10
|
-
variant = 'incoming';
|
|
11
10
|
/** Visible sender name. */
|
|
12
11
|
sender;
|
|
13
12
|
/** Visible timestamp or short temporal description. */
|
|
14
13
|
timestamp;
|
|
15
|
-
|
|
16
|
-
ariaLabel = null;
|
|
14
|
+
variant = 'incoming';
|
|
17
15
|
/** Reduces spacing for dense conversations. */
|
|
18
16
|
compact = false;
|
|
17
|
+
/** Overrides the generated accessible message label. */
|
|
18
|
+
ariaLabel = null;
|
|
19
19
|
hasAvatar = false;
|
|
20
20
|
hasMeta = false;
|
|
21
21
|
hasActions = false;
|
|
@@ -55,12 +55,12 @@ const QConversationBubble = class {
|
|
|
55
55
|
const sender = this.sender?.trim();
|
|
56
56
|
const timestamp = this.timestamp?.trim();
|
|
57
57
|
const hasFooter = Boolean(timestamp || this.hasMeta || this.hasActions);
|
|
58
|
-
return (h("article", { key: '
|
|
58
|
+
return (h("article", { key: '91f7293d04d241d8e1b7f9bd877b1e3f9f6ca037', class: {
|
|
59
59
|
conversation: true,
|
|
60
60
|
[`variant-${this.variant}`]: true,
|
|
61
61
|
'is-compact': this.compact,
|
|
62
62
|
'has-avatar': this.hasAvatar,
|
|
63
|
-
}, part: "container", role: "group", "aria-label": this.accessibleName }, h("div", { key: '
|
|
63
|
+
}, part: "container", role: "group", "aria-label": this.accessibleName }, h("div", { key: '2edb3228a77721ce1872be2444b95e4a4a1cc9b9', class: "avatar", part: "avatar", "aria-hidden": !this.hasAvatar || this.variant === 'system' ? 'true' : undefined }, h("slot", { key: 'fc563a1914fb884f0493e6dc2929067af80df0a6', name: "avatar", onSlotchange: this.handleSlotChange })), h("div", { key: '64ffd2813def7ab357b02bf1bff94e7b4e98baa4', class: "content", part: "content" }, sender && (h("header", { key: '22f10c1407ff4c1baf8c406758106587ffb3be56', class: "header", part: "header" }, h("span", { key: 'b5dbcff142b5f36be89161228b667fc40f512238', class: "sender", part: "sender" }, sender))), h("div", { key: 'f0a7862691d3f65611a984f78ae5aee53dab4e90', class: "bubble", part: "bubble" }, h("div", { key: '21daee0cb87cabb9108e4a5b834e08e3203398a4', class: "body", part: "body" }, h("slot", { key: 'c4cb6d3e1810e46d5e0cb5576fd713837842eca5' })), h("footer", { key: '9b6006103ff49af218244c89f2b9b2f68979ef07', class: { footer: true, 'has-content': hasFooter }, part: "footer" }, h("div", { key: '34c0863ea6c929ac4aefeb9201907e14d62aea58', class: "message-meta" }, timestamp && h("time", { key: '17012405cbb55892468abc4ab17284626b74f2c9', class: "timestamp", part: "timestamp" }, timestamp), h("span", { key: 'b8a20c59cad68971afec1de94e6afd7d039a5e8f', class: { meta: true, 'has-content': this.hasMeta }, part: "meta" }, h("slot", { key: '3eb2621bcf4c4751be09d911df090d6ace98e0df', name: "meta", onSlotchange: this.handleSlotChange }))), h("span", { key: '8a8c8f30afec4b30ac3c3cd82e41ab1c2e319d0c', class: { actions: true, 'has-content': this.hasActions }, part: "actions" }, h("slot", { key: '58a071e2c192bebf9645a297f8d8e922a3a7bb80', name: "actions", onSlotchange: this.handleSlotChange })))))));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
QConversationBubble.style = conversationBubbleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent } from './index-DbGG9Q40.js';
|
|
2
2
|
import { s as safeParseJson } from './utils-BJiYCN3i.js';
|
|
3
3
|
import { b as getDataTableItemKey, a as getDataTableCellValue, g as getDataTableCellSlotName } from './data-table-cell-DmqVhVoj.js';
|
|
4
4
|
import { C as ChevronDown, a as ChevronUp } from './chevron-up-g9vOVxQ4.js';
|
|
@@ -520,14 +520,14 @@ const QDataTable = class {
|
|
|
520
520
|
sortColumn: this.sortColumn,
|
|
521
521
|
sortDirection: this.sortDirection,
|
|
522
522
|
});
|
|
523
|
-
return (h("div", { key: '
|
|
523
|
+
return (h("div", { key: '8f529185fc57de6f77c0109be7589ab4a6fa7066', class: "table-container", role: "grid", "aria-label": this.ariaLabel?.trim() || this.toolbarTitle?.trim() || 'Data table' }, renderDataTableToolbar({
|
|
524
524
|
showToolbar: this.showToolbar,
|
|
525
525
|
toolbarTitle: this.toolbarTitle,
|
|
526
526
|
showSearch: this.showSearch,
|
|
527
527
|
searchPlaceholder: this.searchPlaceholder,
|
|
528
528
|
searchValue: this.searchValue,
|
|
529
529
|
onSearchInput: this.handleSearchInput,
|
|
530
|
-
}), h("div", { key: '
|
|
530
|
+
}), h("div", { key: 'cccd8e17734d8c0f5737dd771e0c99d4842b1bae', class: "table-scroll-area" }, h("table", { key: '135bd88984195dac4c6a15808c2c0177e0a4b5d1', class: "table-el" }, renderDataTableHead({
|
|
531
531
|
model,
|
|
532
532
|
onSelectAllChange: event => this.handleSelectAllChange(event),
|
|
533
533
|
onSortToggle: column => this.handleSortToggle(column),
|
|
@@ -539,7 +539,7 @@ const QDataTable = class {
|
|
|
539
539
|
onRowCheckboxChange: (item, index, event) => this.handleRowCheckboxChange(item, index, event),
|
|
540
540
|
onRowAction: (item, index, action, event) => this.handleRowAction(item, index, action, event),
|
|
541
541
|
renderCell: (item, column) => this.renderCell(item, column),
|
|
542
|
-
}))), h("slot", { key: '
|
|
542
|
+
}))), h("slot", { key: '3293510b9ca6b5b2c850da1523e5d11beadfcb81', name: "footer" })));
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
545
|
QDataTable.style = dataTableCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
import { w as waitForTransitionEnd, f as focusFirstElement, s as safeFocus, b as getDeepActiveElement, h as handleTabTrap } from './dom-ByfrUWx1.js';
|
|
3
3
|
|
|
4
4
|
function resolveDialogBackdropEffect(effect) {
|
|
@@ -64,7 +64,7 @@ function closeDialogAfterTransition(options) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
const dialogCss = () => `:host{display:contents}.dialog-wrapper{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;z-index:var(--q-z-index-overlay, 1000);visibility:hidden;pointer-events:none;font-family:var(--q-font-family, inherit)}.dialog-wrapper.is-visible{visibility:visible;pointer-events:auto}.dialog-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--q-dialog-backdrop-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)));opacity:0;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));z-index:1}.dialog-backdrop.effect-solid{background:var(--q-dialog-backdrop-solid-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)))}.dialog-backdrop.effect-none{background:transparent}.dialog-wrapper.is-open .dialog-backdrop{opacity:1}.dialog-modal{position:relative;background:var(--q-bg-surface-1, #1f2937);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-lg, 11px);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45));width:90%;max-width:540px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;z-index:2;opacity:0;transform:scale(0.92) translateY(16px);transition:transform 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));outline:none}.dialog-wrapper.is-open .dialog-modal{opacity:1;transform:scale(1) translateY(0)}.dialog-modal:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:var(--q-padding-lg, 16px);border-bottom:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937)}.dialog-title{margin:0;font-size:var(--q-font-size-lg, 1.1rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn{background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);width:32px;height:32px;border-radius:var(--q-radius-sm, 4px);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.dialog-close-btn:hover:not(:disabled){background:var(--q-bg-surface-2, #374151);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa))}.dialog-close-btn:disabled{opacity:0.5;cursor:not-allowed}.close-icon{width:20px;height:20px}.dialog-body{padding:var(--q-padding-lg, 16px);overflow-y:auto;font-size:var(--q-font-size-base, 0.9rem);color:var(--q-fg-base, #f9fafb);line-height:1.5;background:var(--q-bg-base, #111827);flex:1}.dialog-message{margin:0}.dialog-footer{padding:var(--q-padding-lg, 16px);border-top:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937);display:flex;justify-content:flex-end}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.btn-cancel,.btn-confirm{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 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);border-radius:var(--q-radius-md, 7px);cursor:pointer;user-select:none;outline:none;transition:all var(--q-transition-fast, 150ms ease);box-sizing:border-box}.btn-cancel{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.btn-cancel:hover:not(:disabled){background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.btn-cancel:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-cancel:disabled{opacity:0.5;cursor:not-allowed}.btn-confirm{background:var(--q-color-primary, #60a5fa);border:1px solid transparent;color:var(--q-bg-base, #111827);gap:8px}.btn-confirm:hover:not(:disabled){background:var(--q-color-primary-hover, #93c5fd)}.btn-confirm:active:not(:disabled){transform:scale(0.97)}.btn-confirm:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-confirm:disabled{opacity:0.5;cursor:not-allowed}.spinner-el{width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spinner-spin 0.6s linear infinite;display:inline-block}@keyframes spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`;
|
|
67
|
+
const dialogCss = () => `:host{display:contents}.dialog-wrapper{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;z-index:var(--q-z-index-overlay, 1000);visibility:hidden;pointer-events:none;font-family:var(--q-font-family, inherit)}.dialog-wrapper.is-visible{visibility:visible;pointer-events:auto}.dialog-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--q-dialog-backdrop-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)));opacity:0;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));z-index:1}.dialog-backdrop.effect-solid{background:var(--q-dialog-backdrop-solid-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)))}.dialog-backdrop.effect-none{background:transparent}.dialog-wrapper.is-open .dialog-backdrop{opacity:1}.dialog-modal{position:relative;background:var(--q-bg-surface-1, #1f2937);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-lg, 11px);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45));width:90%;max-width:540px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;z-index:2;opacity:0;transform:scale(0.92) translateY(16px);transition:transform 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));outline:none}.dialog-wrapper.is-open .dialog-modal{opacity:1;transform:scale(1) translateY(0)}.dialog-modal:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:var(--q-padding-lg, 16px);border-bottom:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937)}.dialog-title{margin:0;font-size:var(--q-font-size-lg, 1.1rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn{background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);width:32px;height:32px;border-radius:var(--q-radius-sm, 4px);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.dialog-close-btn:hover:not(:disabled){background:var(--q-bg-surface-2, #374151);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa))}.dialog-close-btn:disabled{opacity:0.5;cursor:not-allowed}.close-icon{width:20px;height:20px}.dialog-body{padding:var(--q-padding-lg, 16px);overflow-y:auto;font-size:var(--q-font-size-base, 0.9rem);color:var(--q-fg-base, #f9fafb);line-height:1.5;background:var(--q-bg-base, #111827);flex:1}.dialog-message{margin:0}.dialog-footer{padding:var(--q-padding-lg, 16px);border-top:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937);display:flex;justify-content:flex-end}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.btn-cancel,.btn-confirm{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 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);border-radius:var(--q-radius-md, 7px);cursor:pointer;user-select:none;outline:none;transition:all var(--q-transition-fast, 150ms ease);box-sizing:border-box}.btn-cancel{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.btn-cancel:hover:not(:disabled){background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.btn-cancel:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-cancel:disabled{opacity:0.5;cursor:not-allowed}.btn-confirm{background:var(--q-color-primary, #60a5fa);border:1px solid transparent;color:var(--q-bg-base, #111827);gap:8px}.btn-confirm:hover:not(:disabled){background:var(--q-color-primary-hover, #93c5fd)}.btn-confirm:active:not(:disabled){transform:scale(0.97)}.btn-confirm:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-confirm:disabled{opacity:0.5;cursor:not-allowed}.spinner-el{width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spinner-spin 0.6s linear infinite;display:inline-block}@keyframes spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dialog-wrapper{height:100dvh;box-sizing:border-box;padding:var(--q-dialog-gutter, var(--q-space-lg, 1rem))}.dialog-modal{width:100%;max-width:var(--q-dialog-width, 36rem);max-height:100%;background:var(--q-dialog-bg, var(--q-bg-floating, var(--q-bg-surface-4, #2c3a58)))}:host([size='sm']) .dialog-modal{max-width:var(--q-dialog-width, 24rem)}:host([size='lg']) .dialog-modal{max-width:var(--q-dialog-width, 48rem)}:host([size='full']) .dialog-modal{max-width:none}.dialog-header{padding:var(--q-dialog-header-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-header-bg, transparent)}.dialog-body{padding:var(--q-dialog-body-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-body-bg, transparent)}.dialog-footer{padding:var(--q-dialog-footer-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-footer-bg, transparent);flex-wrap:wrap}.dialog-actions{flex-wrap:wrap;min-width:0}.dialog-actions>*{min-width:0;max-width:100%}.dialog-header,.dialog-footer{flex-shrink:0}.dialog-body{min-height:0}.dialog-footer.is-hidden{display:none}.btn-cancel,.btn-confirm{min-height:var(--q-control-height-md, 2.25rem);height:auto;padding:0 var(--q-control-padding-md, .75rem);font-size:var(--q-control-font-md, .875rem);line-height:var(--q-control-line-md, 1.25rem);overflow-wrap:anywhere}`;
|
|
68
68
|
|
|
69
69
|
let dialogId = 0;
|
|
70
70
|
const QDialog = class {
|
|
@@ -76,14 +76,25 @@ const QDialog = class {
|
|
|
76
76
|
}
|
|
77
77
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
78
78
|
/** Rendered by the default dialog header. */
|
|
79
|
+
heading;
|
|
80
|
+
/** @deprecated Use heading. Used only when heading is unset. */
|
|
79
81
|
dialogTitle;
|
|
80
|
-
/** Accessible name for the dialog, especially when using a custom header without
|
|
82
|
+
/** Accessible name for the dialog, especially when using a custom header without heading. */
|
|
81
83
|
ariaLabel = null;
|
|
82
84
|
/** Rendered by the default dialog body. */
|
|
83
85
|
message;
|
|
86
|
+
size = 'md';
|
|
84
87
|
/** `solid` is CEF-safe; `none` keeps only a transparent click layer. */
|
|
88
|
+
backdrop;
|
|
89
|
+
/** @deprecated Use backdrop. Used only when backdrop is unset. */
|
|
85
90
|
backdropEffect = 'solid';
|
|
91
|
+
/** Allows Escape to close the dialog when not loading. Defaults to true. */
|
|
92
|
+
closeOnEscape;
|
|
93
|
+
/** @deprecated Use closeOnEscape. Used only when closeOnEscape is unset. */
|
|
86
94
|
closeOnEsc = true;
|
|
95
|
+
/** Allows a backdrop click to close the dialog when not loading. Defaults to true. */
|
|
96
|
+
closeOnBackdropClick;
|
|
97
|
+
/** @deprecated Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset. */
|
|
87
98
|
closeOnOverlayClick = true;
|
|
88
99
|
showCancel = true;
|
|
89
100
|
cancelLabel = 'Cancel';
|
|
@@ -100,6 +111,7 @@ const QDialog = class {
|
|
|
100
111
|
qClose;
|
|
101
112
|
isVisible = false;
|
|
102
113
|
isAnimatedOpen = false;
|
|
114
|
+
hasFooter = false;
|
|
103
115
|
dialogEl;
|
|
104
116
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
105
117
|
previousActiveElement = null;
|
|
@@ -169,7 +181,7 @@ const QDialog = class {
|
|
|
169
181
|
}
|
|
170
182
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
171
183
|
handleGlobalKeyDown(event) {
|
|
172
|
-
if (this.open && event.key === 'Escape' && this.closeOnEsc) {
|
|
184
|
+
if (this.open && event.key === 'Escape' && (this.closeOnEscape ?? this.closeOnEsc)) {
|
|
173
185
|
this.handleCancel();
|
|
174
186
|
}
|
|
175
187
|
}
|
|
@@ -179,7 +191,7 @@ const QDialog = class {
|
|
|
179
191
|
}
|
|
180
192
|
};
|
|
181
193
|
handleBackdropClick = () => {
|
|
182
|
-
if (this.closeOnOverlayClick && !this.loading) {
|
|
194
|
+
if ((this.closeOnBackdropClick ?? this.closeOnOverlayClick) && !this.loading) {
|
|
183
195
|
this.handleCancel();
|
|
184
196
|
}
|
|
185
197
|
};
|
|
@@ -226,11 +238,11 @@ const QDialog = class {
|
|
|
226
238
|
clearDialogTransitionWait(this.lifecycleState);
|
|
227
239
|
}
|
|
228
240
|
getResolvedBackdropEffect() {
|
|
229
|
-
return resolveDialogBackdropEffect(this.backdropEffect);
|
|
241
|
+
return resolveDialogBackdropEffect(this.backdrop ?? this.backdropEffect);
|
|
230
242
|
}
|
|
231
243
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
232
244
|
render() {
|
|
233
|
-
const titleText = this.dialogTitle;
|
|
245
|
+
const titleText = this.heading ?? this.dialogTitle;
|
|
234
246
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
235
247
|
const classes = {
|
|
236
248
|
'dialog-wrapper': true,
|
|
@@ -242,7 +254,9 @@ const QDialog = class {
|
|
|
242
254
|
'dialog-backdrop': true,
|
|
243
255
|
[`effect-${backdropEffect}`]: true,
|
|
244
256
|
};
|
|
245
|
-
return (h("div", { key: '
|
|
257
|
+
return (h("div", { key: '6f4f623998914a87ff98d78799d53ca3c20f3555', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'aa79771790f45070761516ed8ae2c81b11a8360f', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: '8ec3714a8fc23cefa4797038b7696e5fe6eeece9', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '35bcb00625ed785cf53472337ea0bbdbd210159d', class: "dialog-header", part: "header" }, h("slot", { key: '93a34f7a8fcbe5e4f6b4014c33d296657ba941c5', name: "header" }, titleText && h("h2", { key: 'c6934914f2b02b9173eb4919b81c9791d62e34fa', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: 'bf23a027c31222d79c1b9d9b829edd9fec223e1e', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '4a9c3cc58652ae38afc505987a1f2a76259743a2', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'e794da24d95a5d4976fd78d628b7f42343a018c2', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '4a1f257f6a4e0b46b8c683b89dbd8927dc42c1e8', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '88339a0987a3e7b51645a473f4b56c6edfbc3ca0', class: "dialog-body", part: "body" }, h("slot", { key: '1899e12069176e097112516e4ef4197472de136c' }, this.message && h("p", { key: '8b08f2ba71257e4399d586e17f570764c3db1c94', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: '57c631fe35f40f3aeec3b9c398a6a283c013196f', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: 'c85dce4c97a9dc2bc4351d71fe1b7a6da0dfab8f', name: "footer", onSlotchange: event => {
|
|
258
|
+
this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
|
|
259
|
+
} }, h("div", { key: '37eadaecaafdbd81c3f9a1a792bd1085dcb52ebb', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'c94cf5d01d6bccd1a5d18f0d0763ba6ac4aab9af', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '0361c2e5080a8fcbf67bfbf0c00616ceae729f00', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'd1ac9a340da13bb754dda8328fe937e0de87732b', class: "spinner-el" }), h("span", { key: '0f54afe3126e58fc83882c8baf1b92a763ad33ae', class: "btn-label" }, this.confirmLabel)))))))));
|
|
246
260
|
}
|
|
247
261
|
static get watchers() { return {
|
|
248
262
|
"open": [{
|
|
@@ -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
|
|
|
@@ -68,7 +69,7 @@ function clamp(value, minimum, maximum) {
|
|
|
68
69
|
return Math.min(Math.max(value, minimum), maximum);
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
const dropdownCss = () => `:host{display:block;width:100%;min-width:0;box-sizing:border-box}.dropdown-wrapper{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.dropdown-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}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--q-dropdown-bg, var(--q-bg-surface-2, #374151));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius
|
|
72
|
+
const dropdownCss = () => `: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%;min-width:0;box-sizing:border-box}.dropdown-wrapper{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.dropdown-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}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--q-dropdown-bg, var(--q-bg-surface-2, #374151));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-field-radius, var(--_q-control-radius)));padding:var(--q-dropdown-padding, var(--q-field-padding, 10px 14px));line-height:1.2;box-sizing:border-box;outline:none;cursor:pointer;color:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.dropdown-trigger:focus-visible{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.trigger-content{display:flex;flex:1;align-items:center;min-width:0;gap:var(--q-dropdown-icon-gap, 10px)}.trigger-content slot[name='icon-left']::slotted(*){flex:0 0 auto}.trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trigger-text.is-placeholder{color:var(--q-fg-muted, #9ca3af);opacity:0.8}.chevron-icon{width:16px;height:16px;color:var(--q-fg-muted, #9ca3af);transition:transform var(--q-transition-fast, 150ms ease)}.is-open .chevron-icon{transform:rotate(180deg)}.dropdown-menu{position:fixed;inset:auto;display:flex;flex-direction:column;width:auto;max-width:calc(100vw - 16px);margin:0;padding:4px 0;overflow:hidden;list-style:none;z-index:1000;visibility:hidden;background:var(--q-dropdown-menu-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius-md, 8px));box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));box-sizing:border-box}.dropdown-menu[data-placement='top']{transform-origin:bottom center}.dropdown-menu[data-placement='bottom']{transform-origin:top center}.menu-item{padding:10px 14px;cursor:pointer;box-sizing:border-box;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);transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.menu-item:hover,.menu-item.is-focused,.menu-item:focus{background:var(--q-color-primary, #60a5fa);color:var(--q-fg-base, #f9fafb);outline:none}.menu-item.is-selected{background:rgba(96, 165, 250, 0.15);background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 15%, transparent);font-weight:var(--q-font-weight-bold, 600);border-left:3px solid var(--q-color-primary, #60a5fa);padding-left:11px;}.is-disabled{opacity:0.6}.is-disabled .dropdown-trigger{cursor:not-allowed;pointer-events:none}.dropdown-wrapper.size-sm .menu-item{padding:var(--q-dropdown-padding, 6px 10px);font-size:var(--q-dropdown-font-size, var(--q-font-size-sm, 0.7rem))}.dropdown-wrapper.size-sm .menu-item.is-selected{padding-left:7px}.dropdown-wrapper.size-md .menu-item{padding:var(--q-dropdown-padding, 10px 14px);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem))}.dropdown-wrapper.size-md .menu-item.is-selected{padding-left:11px}.dropdown-wrapper.size-lg .menu-item{padding:var(--q-dropdown-padding, 14px 18px);font-size:var(--q-dropdown-font-size, var(--q-font-size-lg, 1rem))}.dropdown-wrapper.size-lg .menu-item.is-selected{padding-left:15px}.dropdown-search-container{padding:8px;border-bottom:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));box-sizing:border-box}.dropdown-search-input{width:100%;padding:var(--q-dropdown-padding, 10px 14px);font-family:var(--q-font-family, inherit);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem));color:var(--q-fg-base, #f9fafb);background:var(--q-bg-surface-2, #374151);border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius-md, 8px));outline:none;box-sizing:border-box;transition:border-color var(--q-transition-fast, 150ms ease)}.dropdown-search-input:focus{border-color:var(--q-color-primary, #60a5fa)}.dropdown-wrapper.size-sm .dropdown-search-container{padding:4px}.dropdown-wrapper.size-sm .dropdown-search-input{padding:var(--q-dropdown-padding, 6px 10px);font-size:var(--q-dropdown-font-size, var(--q-font-size-sm, 0.7rem))}.dropdown-wrapper.size-md .dropdown-search-container{padding:6px}.dropdown-wrapper.size-md .dropdown-search-input{padding:var(--q-dropdown-padding, 10px 14px);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem))}.dropdown-wrapper.size-lg .dropdown-search-container{padding:8px}.dropdown-wrapper.size-lg .dropdown-search-input{padding:var(--q-dropdown-padding, 14px 18px);font-size:var(--q-dropdown-font-size, var(--q-font-size-lg, 1rem))}.dropdown-items-list{flex:1 1 auto;min-height:0;margin:0;padding:4px 0;list-style:none;max-height:240px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;box-sizing:border-box}.menu-item.is-empty{color:var(--q-fg-muted, #9ca3af);font-style:italic;cursor:default;pointer-events:none}.menu-item.is-loading-more{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-sm, 0.7rem);padding:8px;cursor:default;pointer-events:none;background:transparent !important}.spinner-circle{width:14px;height:14px;border:2px solid var(--q-border-color, #4b5563);border-top-color:var(--q-color-primary, #60a5fa);border-radius:50%;animation:dropdown-spin 0.6s linear infinite;box-sizing:border-box}@keyframes dropdown-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dropdown-items-list::-webkit-scrollbar{width:var(--q-scrollbar-width, 6px);height:var(--q-scrollbar-width, 6px)}.dropdown-items-list::-webkit-scrollbar-track{background:var(--q-scrollbar-track-color, transparent)}.dropdown-items-list::-webkit-scrollbar-thumb{background:var(--q-scrollbar-thumb-color, var(--q-border-color, #4b5563));border-radius:var(--q-scrollbar-radius, var(--q-radius-sm, 4px))}.dropdown-items-list::-webkit-scrollbar-thumb:hover{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa))}.dropdown-wrapper:is(.size-sm,.size-md,.size-lg,.size-inherit) .dropdown-trigger{min-height:var(--q-dropdown-height, var(--_q-control-height));padding:var(--q-dropdown-padding, 0 var(--_q-control-padding));font-size:var(--q-dropdown-font-size, var(--_q-control-font));line-height:var(--_q-control-line);background:var(--q-dropdown-bg, var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d))))}.dropdown-wrapper .chevron-icon{width:var(--_q-control-icon);height:var(--_q-control-icon)}.dropdown-menu{background:var(--q-dropdown-menu-bg, var(--q-bg-floating, var(--q-bg-surface-4, #2c3a58)))}.dropdown-trigger[aria-invalid='true']{border-color:var(--q-color-danger, #f87171)}: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}`;
|
|
72
73
|
|
|
73
74
|
const MENU_OFFSET = 4;
|
|
74
75
|
const QDropdown = class {
|
|
@@ -93,11 +94,17 @@ const QDropdown = class {
|
|
|
93
94
|
label;
|
|
94
95
|
/** Accessible name for the trigger and option list when no visible label is available. */
|
|
95
96
|
ariaLabel = null;
|
|
97
|
+
/** Supporting text, replaced by an active error. */
|
|
98
|
+
description;
|
|
96
99
|
placeholder = 'Select an option...';
|
|
97
100
|
/** Options to render; strings use the same text for label and value, while objects allow separate values. */
|
|
98
101
|
options = [];
|
|
99
102
|
value = '';
|
|
100
|
-
|
|
103
|
+
/** Keep the label accessible without displaying it. */
|
|
104
|
+
labelHidden = false;
|
|
105
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
106
|
+
reserveFeedback;
|
|
107
|
+
size = 'inherit';
|
|
101
108
|
searchable = false;
|
|
102
109
|
/** Delegates filtering and pagination to the consumer. */
|
|
103
110
|
externalSearch = false;
|
|
@@ -109,6 +116,9 @@ const QDropdown = class {
|
|
|
109
116
|
/** Minimum distance maintained between the open menu and viewport edges. */
|
|
110
117
|
collisionPadding = 8;
|
|
111
118
|
disabled = false;
|
|
119
|
+
required = false;
|
|
120
|
+
/** Custom validation error; independent of currently loaded options. */
|
|
121
|
+
error;
|
|
112
122
|
name;
|
|
113
123
|
isOpen = false;
|
|
114
124
|
focusedIndex = -1;
|
|
@@ -145,6 +155,7 @@ const QDropdown = class {
|
|
|
145
155
|
this.stopFloatingUpdates();
|
|
146
156
|
}
|
|
147
157
|
componentDidRender() {
|
|
158
|
+
this.syncValidity();
|
|
148
159
|
if (this.isOpen) {
|
|
149
160
|
this.openFloatingMenu();
|
|
150
161
|
return;
|
|
@@ -155,6 +166,28 @@ const QDropdown = class {
|
|
|
155
166
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
156
167
|
this.internals.setFormValue(newValue);
|
|
157
168
|
}
|
|
169
|
+
this.syncValidity();
|
|
170
|
+
}
|
|
171
|
+
syncValidity() {
|
|
172
|
+
if (typeof this.internals?.setValidity !== 'function')
|
|
173
|
+
return;
|
|
174
|
+
const message = this.disabled ? '' : this.error?.trim() || (this.required && !this.value ? 'Please select an option.' : '');
|
|
175
|
+
this.internals.setValidity(message ? this.error?.trim() ? { customError: true } : { valueMissing: true } : {}, message, this.triggerEl);
|
|
176
|
+
}
|
|
177
|
+
async checkValidity() {
|
|
178
|
+
this.syncValidity();
|
|
179
|
+
return this.disabled || !(this.error?.trim() || (this.required && !this.value));
|
|
180
|
+
}
|
|
181
|
+
async reportValidity() {
|
|
182
|
+
const valid = await this.checkValidity();
|
|
183
|
+
if (!valid) {
|
|
184
|
+
this.triggerEl?.focus();
|
|
185
|
+
this.internals?.reportValidity?.();
|
|
186
|
+
}
|
|
187
|
+
return valid;
|
|
188
|
+
}
|
|
189
|
+
async focusElement() {
|
|
190
|
+
this.triggerEl?.focus();
|
|
158
191
|
}
|
|
159
192
|
watchOptions() {
|
|
160
193
|
if (this.externalSearch) {
|
|
@@ -174,12 +207,14 @@ const QDropdown = class {
|
|
|
174
207
|
if (!this.searchTerm) {
|
|
175
208
|
this.searchTerm = '';
|
|
176
209
|
}
|
|
210
|
+
this.syncValidity();
|
|
177
211
|
}
|
|
178
212
|
formResetCallback() {
|
|
179
213
|
this.value = this.initialValue;
|
|
180
214
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
181
215
|
this.internals.setFormValue(this.value);
|
|
182
216
|
}
|
|
217
|
+
this.syncValidity();
|
|
183
218
|
}
|
|
184
219
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
185
220
|
clearScrollLoading() {
|
|
@@ -533,16 +568,16 @@ const QDropdown = class {
|
|
|
533
568
|
const displayLabel = selectedOption && selectedLabel ? selectedLabel : this.placeholder;
|
|
534
569
|
const hasSelection = selectedOption !== undefined;
|
|
535
570
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
536
|
-
return (h("div", { key: '
|
|
571
|
+
return (h("div", { key: 'a6f10c4ca5341bffc7c130664c19241fcf4ab25c', style: feedbackStyle(this.reserveFeedback), class: {
|
|
537
572
|
'dropdown-wrapper': true,
|
|
538
573
|
'is-open': this.isOpen,
|
|
539
574
|
'is-disabled': this.disabled,
|
|
540
575
|
[`size-${this.size}`]: true
|
|
541
|
-
}, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '
|
|
576
|
+
}, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '862569b26c74fafb2cd01ece2ca26990e6ebed56', class: { 'dropdown-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("button", { key: 'd4292e0a84fadae6ae1ac3efba4037dc8f9378bd', ref: (el) => (this.triggerEl = el), id: "q-field", class: "dropdown-trigger", part: "trigger", type: "button", disabled: this.disabled, onClick: this.handleTriggerClick, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-haspopup": "listbox", "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error || (this.required && !this.value) ? 'true' : 'false', "aria-describedby": this.error || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": this.isOpen ? 'q-field-menu' : undefined, "aria-activedescendant": this.isOpen && this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }, h("span", { key: '3f2035f700291d11c6c48d592a8cbaf533fbcebe', class: "trigger-content" }, h("slot", { key: '8041c1a4e9f634c49d4121f7d9cf1fa9c24f2902', name: "icon-left" }), h("span", { key: '677081d737d98e8f8902eca7cef2b4a0db332c6d', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel)), h("svg", { key: 'f1c8942fe9081869a5112d5058a7efca4aa62a4a', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'cc5b5fc75efc22b2b2d864376839557f742c6bbf', points: "6 9 12 15 18 9" }))), fieldFeedback('q-field-error', this.error, this.description), this.isOpen && (h("div", { key: '8445bfa04456f15ae8c56e1ac04e6d4c2e04fa41', ref: (el) => (this.menuEl = el), id: "q-field-menu", class: "dropdown-menu", part: "menu", role: "listbox", popover: "manual", "aria-label": ariaLabel || this.label || 'Options' }, this.searchable && (h("div", { key: '45369b8e80215adfb4f77916048302286a1ffec5', class: "dropdown-search-container" }, h("input", { key: 'a48b8c411aca183cd83ed8acb6c082fa7a208212', ref: (el) => (this.searchInputEl = el), type: "text", class: "dropdown-search-input", placeholder: "Search...", value: this.searchTerm, onInput: this.handleSearchInput, role: "combobox", "aria-autocomplete": "list", "aria-controls": "q-field-menu", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-activedescendant": this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }))), h("ul", { key: '57e165a2d8cdb0244626b986fb216bb3a1c40af1', ref: (el) => (this.itemsListEl = el), class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 && !this.loading ? (h("li", { class: "menu-item is-empty" }, "No matches found")) : (identifiedOptions.map(({ item: option, index, key }) => (h("li", { key: key, id: `q-field-item-${index}`, class: {
|
|
542
577
|
'menu-item': true,
|
|
543
578
|
'is-selected': option.value === this.value,
|
|
544
579
|
'is-focused': index === this.focusedIndex
|
|
545
|
-
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (h("li", { key: '
|
|
580
|
+
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (h("li", { key: '549ee293d9c186af7393fa3ab7d63b4f91dab061', class: "menu-item is-loading-more" }, h("span", { key: 'e35295ba4f99353c4c198d316f10141292d819f8', class: "spinner-circle" }), h("span", { key: '914f1c4b3e8e27fceed50397dbe99a1edd24fabe' }, "Loading..."))))))));
|
|
546
581
|
}
|
|
547
582
|
static get delegatesFocus() { return true; }
|
|
548
583
|
static get formAssociated() { return true; }
|
|
@@ -550,6 +585,15 @@ const QDropdown = class {
|
|
|
550
585
|
"value": [{
|
|
551
586
|
"watchValue": 0
|
|
552
587
|
}],
|
|
588
|
+
"required": [{
|
|
589
|
+
"syncValidity": 0
|
|
590
|
+
}],
|
|
591
|
+
"error": [{
|
|
592
|
+
"syncValidity": 0
|
|
593
|
+
}],
|
|
594
|
+
"disabled": [{
|
|
595
|
+
"syncValidity": 0
|
|
596
|
+
}],
|
|
553
597
|
"options": [{
|
|
554
598
|
"watchOptions": 0
|
|
555
599
|
}],
|