@webquark/core 1.1.0-dev.4 → 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 +14 -7
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
- package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +61 -7
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +3 -3
- package/dist/cjs/q-toggle.cjs.entry.js +14 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
- package/dist/cjs/tokens-DGECOqpA.js +42 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +16 -9
- package/dist/collection/components/actions/button/button.css +55 -4
- package/dist/collection/components/actions/button/button.js +4 -4
- package/dist/collection/components/actions/link/link.js +8 -5
- package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
- package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
- package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/{layout → content}/card/card.css +12 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
- package/dist/collection/components/data-display/accordion/accordion.css +1 -0
- package/dist/collection/components/data-display/accordion/accordion.js +54 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
- package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
- package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
- package/dist/collection/components/inputs/form/form.css +85 -0
- package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/input/input.css +78 -62
- package/dist/collection/components/inputs/input/input.js +77 -9
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
- package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
- package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
- package/dist/collection/components/inputs/textarea/textarea.css +85 -1
- package/dist/collection/components/inputs/textarea/textarea.js +149 -7
- package/dist/collection/components/inputs/toggle/toggle.css +80 -48
- package/dist/collection/components/inputs/toggle/toggle.js +72 -6
- package/dist/collection/components/layout/grid/grid.css +11 -0
- package/dist/collection/components/layout/grid/grid.js +152 -0
- package/dist/collection/components/layout/inline/inline.css +4 -0
- package/dist/collection/components/layout/inline/inline.js +118 -0
- package/dist/collection/components/layout/navbar/navbar.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 +1 -1
- package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
- package/dist/collection/components/layout/stack/stack.css +4 -0
- package/dist/collection/components/layout/stack/stack.js +76 -0
- package/dist/collection/components/layout/tabs/tabs.js +2 -2
- package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
- package/dist/collection/components/media/avatar/avatar.js +43 -43
- package/dist/collection/components/media/icon/icon.js +79 -18
- package/dist/collection/components/media/media/media.css +1 -0
- package/dist/collection/components/media/media/media.js +125 -0
- package/dist/collection/components/media/media/media.types.js +1 -0
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.css +16 -0
- package/dist/collection/components/overlays/dialog/dialog.js +144 -14
- package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
- package/dist/collection/components/shared/field.js +8 -0
- package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
- package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
- package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
- package/dist/collection/playground/playground.bundled.js +846 -34
- package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
- package/dist/collection/theme/tokens.js +828 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-0PieXMX9.js +1 -0
- package/dist/components/p-BOYjkCNa.js +1 -0
- package/dist/components/p-Bw4TVbfm.js +1 -0
- package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
- package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
- package/dist/components/p-Cx1vCuMp.js +1 -0
- package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
- package/dist/components/p-GU98U1DJ.js +1 -0
- package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
- package/dist/components/p-f95uguY1.js +1 -0
- package/dist/components/q-accordion.d.ts +11 -0
- package/dist/components/q-accordion.js +1 -0
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.d.ts +11 -0
- package/dist/components/q-media.js +1 -0
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.js +3 -3
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +2 -2
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
- package/dist/esm/field-DkpyvZiX.js +11 -0
- package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +6 -6
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +7 -7
- package/dist/esm/q-card.entry.js +17 -6
- package/dist/esm/q-carousel.entry.js +3 -3
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +6 -6
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +22 -8
- package/dist/esm/q-dropdown.entry.js +50 -6
- package/dist/esm/q-form.entry.js +11 -5
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +16 -6
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +14 -7
- package/dist/esm/q-link.entry.js +5 -5
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +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 +14 -7
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +7 -4
- package/dist/esm/q-step-diagram.entry.js +21 -11
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +3 -3
- package/dist/esm/q-textarea.entry.js +61 -7
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +3 -3
- package/dist/esm/q-toggle.entry.js +14 -6
- package/dist/esm/q-toolbar.entry.js +8 -4
- package/dist/esm/tokens-f95uguY1.js +38 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/build/p-0aea8464.entry.js +1 -0
- package/dist/playground/build/p-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-226c2f79.entry.js +0 -13
- package/dist/playground/build/p-38b92be6.entry.js +0 -1
- package/dist/playground/build/p-42831108.entry.js +0 -1
- package/dist/playground/build/p-50ca27f7.entry.js +0 -1
- package/dist/playground/build/p-611ef3e0.entry.js +0 -1
- package/dist/playground/build/p-684292dd.entry.js +0 -1
- package/dist/playground/build/p-7081c96b.entry.js +0 -1
- package/dist/playground/build/p-789eb3c9.entry.js +0 -1
- package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
- package/dist/playground/build/p-9978ae38.entry.js +0 -1
- package/dist/playground/build/p-VFWyFa-_.js +0 -3
- package/dist/playground/build/p-b99541cd.entry.js +0 -1
- package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
- package/dist/playground/build/p-e15e6d76.entry.js +0 -1
- package/dist/playground/build/p-e272dd45.entry.js +0 -1
- package/dist/playground/build/p-e8003179.entry.js +0 -1
- package/dist/types/components/layout/card/card.types.d.ts +0 -1
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
- package/dist/webquark/p-0363c0e6.entry.js +0 -1
- package/dist/webquark/p-0e3dbe01.entry.js +0 -1
- package/dist/webquark/p-226c2f79.entry.js +0 -13
- package/dist/webquark/p-38b92be6.entry.js +0 -1
- package/dist/webquark/p-42831108.entry.js +0 -1
- package/dist/webquark/p-50ca27f7.entry.js +0 -1
- package/dist/webquark/p-611ef3e0.entry.js +0 -1
- package/dist/webquark/p-684292dd.entry.js +0 -1
- package/dist/webquark/p-7081c96b.entry.js +0 -1
- package/dist/webquark/p-789eb3c9.entry.js +0 -1
- package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
- package/dist/webquark/p-9978ae38.entry.js +0 -1
- package/dist/webquark/p-VFWyFa-_.js +0 -3
- package/dist/webquark/p-b99541cd.entry.js +0 -1
- package/dist/webquark/p-ca1a1d25.entry.js +0 -1
- package/dist/webquark/p-e15e6d76.entry.js +0 -1
- package/dist/webquark/p-e272dd45.entry.js +0 -1
- package/dist/webquark/p-e8003179.entry.js +0 -1
- package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
- package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
- package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
- package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
- package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
- package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
- package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
- /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
package/dist/esm/q-form.entry.js
CHANGED
|
@@ -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, H as Host } from './index-DbGG9Q40.js';
|
|
2
|
+
import { c as controlScope } from './tokens-f95uguY1.js';
|
|
2
3
|
|
|
3
4
|
const skippedInputTypes = new Set(['button', 'checkbox', 'color', 'file', 'hidden', 'image', 'radio', 'range', 'reset', 'submit']);
|
|
4
5
|
function getNamedControls(formEl, hostEl) {
|
|
@@ -292,7 +293,7 @@ function toBoolean(value) {
|
|
|
292
293
|
return false;
|
|
293
294
|
}
|
|
294
295
|
|
|
295
|
-
const formCss = () => `:host{display:block;box-sizing:border-box}.form-shell{display:flex;flex-direction:column;gap:var(--q-form-gap,
|
|
296
|
+
const formCss = () => `:host{display:block;box-sizing:border-box}.form-shell{display:flex;flex-direction:column;gap:var(--q-form-gap, var(--q-space-xl, 1.5rem));width:100%;color:var(--q-form-fg, var(--q-fg-base, #172033));font-family:var(--q-font-family, inherit)}.form-header.is-hidden,.form-actions.is-hidden{display:none}.form-title{margin:0;color:var(--q-form-title-color, var(--q-fg-base, #172033));font-size:var(--q-form-title-size, var(--q-font-size-lg, 1rem));font-weight:var(--q-font-weight-bold, 600);line-height:1.3}form{display:flex;flex-direction:column;gap:var(--q-form-gap, var(--q-space-xl, 1.5rem));width:100%;margin:0}.form-body{display:flex;flex-direction:column;gap:var(--q-form-field-gap, 12px);min-width:0}.form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--q-form-action-gap, var(--q-space-sm, .5rem));padding-top:var(--q-form-actions-padding-top, 4px)}: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}`;
|
|
296
297
|
|
|
297
298
|
let formIds = 0;
|
|
298
299
|
const QForm = class {
|
|
@@ -304,6 +305,9 @@ const QForm = class {
|
|
|
304
305
|
get el() { return getElement(this); }
|
|
305
306
|
/** Names the native form when no custom header is slotted. */
|
|
306
307
|
label;
|
|
308
|
+
size = 'inherit';
|
|
309
|
+
reserveFeedback;
|
|
310
|
+
labelHidden = false;
|
|
307
311
|
/** Prevents the native submit event's default navigation. */
|
|
308
312
|
preventDefault = true;
|
|
309
313
|
/** Controls how Enter behaves inside text-like controls. */
|
|
@@ -314,6 +318,8 @@ const QForm = class {
|
|
|
314
318
|
autocomplete = 'on';
|
|
315
319
|
enctype = 'application/x-www-form-urlencoded';
|
|
316
320
|
target;
|
|
321
|
+
/** Names the native form without requiring a visible heading. */
|
|
322
|
+
ariaLabel = null;
|
|
317
323
|
/** Emitted after a valid submit with collected values and FormData. */
|
|
318
324
|
qSubmit;
|
|
319
325
|
qReset;
|
|
@@ -497,9 +503,9 @@ const QForm = class {
|
|
|
497
503
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
498
504
|
render() {
|
|
499
505
|
const hasHeaderContent = Boolean(this.label) || this.hasHeaderSlot;
|
|
500
|
-
const formLabelledBy = this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
501
|
-
const formAriaLabel = this.label && this.hasHeaderSlot ? this.label : undefined;
|
|
502
|
-
return (h("div", { key: '
|
|
506
|
+
const formLabelledBy = !this.ariaLabel && this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
507
|
+
const formAriaLabel = this.ariaLabel?.trim() || (this.label && this.hasHeaderSlot ? this.label : undefined);
|
|
508
|
+
return (h(Host, { key: '85fff51774e0bb0e73948cd14b8100aef6556c31', style: { ...controlScope(this.size), '--q-context-feedback-min': this.reserveFeedback === undefined ? '' : this.reserveFeedback ? '1rem' : '0px' } }, h("div", { key: 'f3dff40fcdfddc896787295c59c3e97f5d6c15ad', class: "form-shell" }, h("div", { key: '0b1fb2465c7ce04185d9cc65524562c46efe152f', class: { 'form-header': true, 'is-hidden': !hasHeaderContent, 'q-label-hidden': this.labelHidden }, part: "header" }, h("slot", { key: '391f9944a4c920a639bc62f0f1583d0cf3920884', name: "header", ref: (el) => (this.headerSlot = el), onSlotchange: this.handleHeaderSlotChange }, this.label && h("h2", { key: '54bd0774bbde169fd1f6f960fce0567daecb9db4', id: this.titleId, class: "form-title" }, this.label))), h("form", { key: 'ddb1b7d09ffe4dd64bbec548656ea0c658d56389', ref: (el) => (this.formEl = el), action: this.action, method: this.method, autocomplete: this.autocomplete, enctype: this.enctype, target: this.target, noValidate: this.noValidate, "aria-labelledby": formLabelledBy, "aria-label": formAriaLabel, part: "form", onSubmit: this.handleSubmit, onReset: this.handleReset }, h("div", { key: '7f5d47a6e57c2e7e3972d705e8e556e159584445', class: "form-body", part: "body" }, h("slot", { key: '3515728fd810c3c6d6352932ce56c07cbecc5d39' })), h("div", { key: '09e06d1ef03559336d7ac40de72c824ad8e7d656', class: { 'form-actions': true, 'is-hidden': !this.hasActionsSlot }, part: "actions" }, h("slot", { key: '05a368aea36d4c18d569d60831cb31f737ac5854', name: "actions", ref: (el) => (this.actionsSlot = el), onSlotchange: this.handleActionsSlotChange }))))));
|
|
503
509
|
}
|
|
504
510
|
};
|
|
505
511
|
QForm.style = formCss();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { s as spaceValue } from './tokens-f95uguY1.js';
|
|
3
|
+
|
|
4
|
+
const gridCss = () => `:host{display:block;min-width:0}div{display:grid;min-width:0;align-items:start;column-gap:var(--_q-column-gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--_q-min-item), calc((100% - (var(--_q-columns) - 1) * var(--_q-column-gap)) / var(--_q-columns)))), 1fr))}slot{display:contents}::slotted(*){min-width:0}::slotted([data-q-span='full']){grid-column:1 / -1}`;
|
|
5
|
+
|
|
6
|
+
const QGrid = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
columns = 2;
|
|
11
|
+
minItemWidth = '16rem';
|
|
12
|
+
gap = 'lg';
|
|
13
|
+
rowGap;
|
|
14
|
+
columnGap;
|
|
15
|
+
render() {
|
|
16
|
+
const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
|
|
17
|
+
return h("div", { key: '0e35bf62529cfe1534ee7f93878569e678719338', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: 'bc4ace6988aac76c2c225fb8c0dd991a287b960f' }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
QGrid.style = gridCss();
|
|
21
|
+
|
|
22
|
+
export { QGrid as q_grid };
|
package/dist/esm/q-icon.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, a as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, a as getElement } from './index-DbGG9Q40.js';
|
|
2
2
|
import { a as resolveRegisteredQIcon, p as prepareQIconDefinition, i as isQIconStrictMode } from './registry-BvBRW3dl.js';
|
|
3
3
|
|
|
4
4
|
const LUCIDE_STATIC_VERSION = '0.416.0';
|
|
@@ -181,16 +181,20 @@ const QIcon = class {
|
|
|
181
181
|
get el() { return getElement(this); }
|
|
182
182
|
/** Icon name or local asset filename. */
|
|
183
183
|
name;
|
|
184
|
-
/** Trusted compile-time icon data. Takes precedence over `name` and never performs I/O. */
|
|
185
|
-
definition;
|
|
186
184
|
/** Supports built-in libraries, local assets, and custom URL templates. */
|
|
185
|
+
library;
|
|
186
|
+
/** @deprecated Use library. Used only when library is unset. */
|
|
187
187
|
lib = 'lucide';
|
|
188
|
-
/** Base path used when `
|
|
188
|
+
/** Base path used when `library="local"`. */
|
|
189
189
|
localPath = '/assets/icons/';
|
|
190
190
|
/** Overrides the version of built-in remote libraries. */
|
|
191
|
+
libraryVersion;
|
|
192
|
+
/** @deprecated Use libraryVersion. Used only when libraryVersion is unset. */
|
|
191
193
|
libVersion;
|
|
192
194
|
/** SVG fetch timeout in milliseconds. */
|
|
193
195
|
fetchTimeout = DEFAULT_FETCH_TIMEOUT_MS;
|
|
196
|
+
/** Trusted compile-time icon data. Takes precedence over `name` and never performs I/O. */
|
|
197
|
+
definition;
|
|
194
198
|
/** Accepts a preset, pixel number, or CSS size. */
|
|
195
199
|
size = 'md';
|
|
196
200
|
color = 'currentColor';
|
|
@@ -293,9 +297,9 @@ const QIcon = class {
|
|
|
293
297
|
}
|
|
294
298
|
const url = resolveIconUrl({
|
|
295
299
|
name: this.name,
|
|
296
|
-
library: this.lib,
|
|
300
|
+
library: this.library ?? this.lib,
|
|
297
301
|
localPath: this.localPath,
|
|
298
|
-
libraryVersion: this.libVersion,
|
|
302
|
+
libraryVersion: this.libraryVersion ?? this.libVersion,
|
|
299
303
|
});
|
|
300
304
|
if (isBinaryIconUrl(url)) {
|
|
301
305
|
if (this.fetchId === currentFetchId) {
|
|
@@ -360,11 +364,17 @@ const QIcon = class {
|
|
|
360
364
|
"lib": [{
|
|
361
365
|
"watchHandler": 0
|
|
362
366
|
}],
|
|
367
|
+
"library": [{
|
|
368
|
+
"watchHandler": 0
|
|
369
|
+
}],
|
|
363
370
|
"localPath": [{
|
|
364
371
|
"watchHandler": 0
|
|
365
372
|
}],
|
|
366
373
|
"libVersion": [{
|
|
367
374
|
"watchHandler": 0
|
|
375
|
+
}],
|
|
376
|
+
"libraryVersion": [{
|
|
377
|
+
"watchHandler": 0
|
|
368
378
|
}]
|
|
369
379
|
}; }
|
|
370
380
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { s as spaceValue } from './tokens-f95uguY1.js';
|
|
3
|
+
|
|
4
|
+
const inlineCss = () => `:host{display:block;min-width:0}div{display:flex;min-width:0}slot{display:contents}::slotted(*){min-width:0}`;
|
|
5
|
+
|
|
6
|
+
const QInline = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
gap = 'sm';
|
|
11
|
+
align = 'center';
|
|
12
|
+
justify = 'start';
|
|
13
|
+
wrap = true;
|
|
14
|
+
render() {
|
|
15
|
+
return h("div", { key: 'ebe4ece8eeb27fbe52feda65eda69a7717fc3c44', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: '939bc58eb0fb9a3bf4246e51f7587c65d1014086' }));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
QInline.style = inlineCss();
|
|
19
|
+
|
|
20
|
+
export { QInline as q_inline };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
|
|
2
|
+
import { f as fieldFeedback, a as feedbackStyle } from './field-DkpyvZiX.js';
|
|
2
3
|
import { s as syncNativeControlValidity } from './form-control-validity-Bj2RJb2E.js';
|
|
3
4
|
import { c as calculateDynamicFontSize } from './dom-ByfrUWx1.js';
|
|
4
5
|
|
|
@@ -6,7 +7,7 @@ function hasAssignedSlotContent(slot) {
|
|
|
6
7
|
return slot.assignedNodes({ flatten: true }).length > 0;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
const inputCss = () => `:host{display:block;width:100%;box-sizing:border-box}.input-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.input-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px;transition:color var(--q-transition-fast, 150ms ease)}.input-control{display:flex;align-items:stretch;position:relative;width:100%;background:var(--q-input-bg, var(--q-bg-surface-2, #374151));border:var(--q-input-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-input-radius, var(--q-radius
|
|
10
|
+
const inputCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{display:block;width:100%;box-sizing:border-box}.input-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.input-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px;transition:color var(--q-transition-fast, 150ms ease)}.input-control{display:flex;align-items:stretch;position:relative;width:100%;background:var(--q-input-bg, var(--q-bg-surface-2, #374151));border:var(--q-input-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-input-radius, var(--q-field-radius, var(--_q-control-radius)));box-sizing:border-box;overflow:hidden;transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.input-box{text-align:var(--q-input-text-align, start);width:100%;background:transparent;border:none;padding:var(--q-input-padding, 10px 14px);line-height:1.2;align-self:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-fg-base, #f9fafb);outline:none;box-sizing:border-box}.input-box[type="number"]{appearance:textfield;-moz-appearance:textfield}.input-box[type="number"]::-webkit-inner-spin-button,.input-box[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.prefix-container,.suffix-container{display:flex;align-items:center;padding:0 12px;color:var(--q-fg-muted, #9ca3af);flex-shrink:0}.prefix-container{padding-right:0}.suffix-container{padding-left:0}.input-control:focus-within{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.input-wrapper:focus-within .input-label{color:var(--q-color-primary, #60a5fa)}.has-error .input-control{border-color:var(--q-color-danger, #ef4444) !important;box-shadow:none}.has-error.input-wrapper:focus-within .input-label,.has-error .input-label{color:var(--q-color-danger, #ef4444) !important}.error-msg{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-color-danger, #ef4444);margin-top:6px}.clear-btn,.password-toggle-btn{background:transparent;border:none;cursor:pointer;padding:4px;padding-left:0;display:flex;align-items:center;justify-content:center;color:var(--q-fg-muted, #9ca3af);border-radius:50%;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.clear-btn:hover,.password-toggle-btn:hover{background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));color:var(--q-fg-base, #f9fafb)}.clear-btn svg,.password-toggle-btn svg{width:14px;height:14px}.is-disabled{opacity:0.6}.is-disabled .input-control{cursor:not-allowed;pointer-events:none}input.input-box[type="color"]{height:calc(var(--q-input-height, var(--_q-control-height)) - 2px);padding:6px;cursor:pointer;background:transparent}input.input-box[type="color"]::-webkit-color-swatch-wrapper{padding:0}input.input-box[type="color"]::-webkit-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}input.input-box[type="color"]::-moz-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}.input-spinners{display:flex;flex-direction:column;border-left:1px solid var(--q-border-color, #4b5563);width:24px;margin-left:auto;box-sizing:border-box}.spinner-btn{flex:1;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);cursor:pointer;padding:0;margin:0;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.spinner-btn:hover:not(:disabled){background:rgba(249, 250, 251, 0.08);color:var(--q-fg-base, #f9fafb)}.spinner-btn:disabled{opacity:0.3;cursor:not-allowed}.spinner-up{border-bottom:1px solid var(--q-border-color, #4b5563)}.spinner-btn svg{width:10px;height:10px}.input-wrapper .input-control{min-height:var(--q-input-height, var(--_q-control-height));height:auto;background:var(--q-input-bg, var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d))))}.input-wrapper:is(.size-sm,.size-md,.size-lg,.size-inherit) .input-box{min-width:0;padding:var(--q-input-padding, 0 var(--_q-control-padding));min-height:calc(var(--q-input-height, var(--_q-control-height)) - 2px);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.input-wrapper .prefix-container,.input-wrapper .suffix-container{padding-inline:var(--_q-control-padding)}.input-wrapper .clear-btn svg,.input-wrapper .password-toggle-btn svg{width:var(--_q-control-icon);height:var(--_q-control-icon)}:host{min-width:0}.q-label-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip-path:inset(50%);white-space:nowrap;border:0 !important}.q-field-feedback{display:block;min-block-size:var(--_q-feedback-min, var(--q-context-feedback-min, 0px));font-family:var(--q-font-family, inherit);font-size:var(--q-field-feedback-font, .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}`;
|
|
10
11
|
|
|
11
12
|
const QInput = class {
|
|
12
13
|
constructor(hostRef) {
|
|
@@ -30,14 +31,20 @@ const QInput = class {
|
|
|
30
31
|
label;
|
|
31
32
|
/** Accessible name for the native input when a visible label is not used. */
|
|
32
33
|
ariaLabel = null;
|
|
33
|
-
|
|
34
|
+
/** Supporting text, replaced by an active error. */
|
|
35
|
+
description;
|
|
36
|
+
/** Keep the label accessible without displaying it. */
|
|
37
|
+
labelHidden = false;
|
|
38
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
39
|
+
reserveFeedback;
|
|
40
|
+
size = 'inherit';
|
|
34
41
|
/** Shows a clear button when the field has a value. */
|
|
35
42
|
clearable = false;
|
|
36
43
|
disabled = false;
|
|
37
44
|
required = false;
|
|
38
45
|
/** Validation error text or error-state flag. */
|
|
39
46
|
error;
|
|
40
|
-
/**
|
|
47
|
+
/** @deprecated Use error. Used when error is empty or unset. */
|
|
41
48
|
errorMessage;
|
|
42
49
|
name;
|
|
43
50
|
/** `password` adds a visibility toggle; `number` adds spinner controls. */
|
|
@@ -260,16 +267,16 @@ const QInput = class {
|
|
|
260
267
|
const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
|
|
261
268
|
const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
|
|
262
269
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
263
|
-
return (h("div", { key: '
|
|
270
|
+
return (h("div", { key: '4e3f10c0256c42bba21ed2c50d8d0b817252e418', style: feedbackStyle(this.reserveFeedback), class: {
|
|
264
271
|
'input-wrapper': true,
|
|
265
272
|
'is-disabled': this.disabled,
|
|
266
273
|
'has-error': hasError,
|
|
267
274
|
[`size-${this.size}`]: true
|
|
268
|
-
} }, this.label && (h("label", { key: '
|
|
275
|
+
} }, this.label && (h("label", { key: 'ee4ceb0add8f09a8f92169cbca28aab5e0589b16', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: '43fab24ca58070de570be5ca182942f64e61a902', class: "input-control", part: "control" }, h("span", { key: '06e7231d67ad315a2897a2399a5f47d6efdc02ee', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: '4f95a654ed5708cad6fbe1456a97c1e7fb4adee1', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
269
276
|
'input-box': true,
|
|
270
277
|
'has-prefix-padding': this.hasPrefix,
|
|
271
278
|
'has-suffix-padding': showSuffixContainer
|
|
272
|
-
}, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.disabled && (h("div", { key: '
|
|
279
|
+
}, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.disabled && (h("div", { key: 'a003b95c55e27e953ab5f0eca794bb8fcaae05b8', class: "input-spinners", part: "spinners" }, h("button", { key: '4a968f43230dd91b3a2ddda5f57a569aad687279', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, h("svg", { key: '60424c3b99e50bebb32fd7aead7818e2da5adac7', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '8c3d5dc18da929975e1de91e4e71dadc447cf41c', d: "M18 15l-6-6-6 6" }))), h("button", { key: '03d0667903272fbd3ae14a6e9f0a056c6e676d6d', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, h("svg", { key: '937c656ae40e87bab6b8b5b0194f3a341f370ce1', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '3a3c2db25c2a5c5f98e2cfe5490775a1106e023d', d: "M6 9l6 6 6-6" }))))), h("span", { key: '584a50cccd58e50597e57eaf261b6d149bde59bf', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: 'de7d65dff1e745ec5362c909897169be7b0ac15a', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: 'b0f78bc3b9b3d97cd118f6602905418a3dbae354', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: '8973c4acfda6c4c9f26cedb1f5678937c9dc3823', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (h("button", { key: '74baf473e1ba79f30bde2ec4b0a5a8a9d781942b', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M3 3l18 18" }), h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), h("circle", { cx: "12", cy: "12", r: "3" }))))), h("span", { key: 'a28828a5ae5c01967247453f1f9a5ee1ce2422ef', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, h("slot", { key: 'd3ec795bdfcacafdb68a33774d1a90cb96b27344', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), fieldFeedback('q-field-error', displayError, this.description)));
|
|
273
280
|
}
|
|
274
281
|
static get delegatesFocus() { return true; }
|
|
275
282
|
static get formAssociated() { return true; }
|
package/dist/esm/q-link.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 linkCss = () => `:host{display:inline}.link{display:inline-flex;align-items:center;gap:var(--q-link-gap, 0.35em);color:var(--q-link-color, var(--q-color-primary, #2563eb));font-family:var(--q-font-family, inherit);font-size:var(--q-link-font-size, inherit);font-weight:var(--q-link-font-weight, var(--q-font-weight-medium, 500));line-height:1.4;text-decoration-color:currentColor;text-underline-offset:var(--q-link-underline-offset, 0.18em);transition:color var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease)}.link:hover,.link:focus-visible{color:var(--q-link-color-hover, var(--q-color-primary-hover, #1d4ed8))}.link:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #2563eb));outline-offset:var(--q-link-focus-offset, 3px);border-radius:var(--q-radius-xs, 3px)}.underline-hover{text-decoration-line:none}.underline-hover:hover,.underline-hover:focus-visible{text-decoration-line:underline}.underline-always{text-decoration-line:underline}.underline-none{text-decoration-line:none}.variant-muted{color:var(--q-link-muted-color, var(--q-fg-muted, #64748b))}.variant-muted:hover,.variant-muted:focus-visible{color:var(--q-link-muted-color-hover, var(--q-fg-base, #172033))}.variant-accent{color:var(--q-link-accent-color, var(--q-color-secondary, #7c3aed))}.variant-danger{color:var(--q-link-danger-color, var(--q-color-danger, #dc2626))}.is-disabled{color:var(--q-link-disabled-color, var(--q-fg-subtle, #94a3b8));cursor:not-allowed;opacity:0.7;pointer-events:none}.link-label{min-width:0}.external-affordance{display:inline-flex;align-items:center}.external-icon{width:var(--q-link-external-icon-size, 0.9em);height:var(--q-link-external-icon-size, 0.9em);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}`;
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ const QLink = class extends Mixin(withActionProps, withActionLabel) {
|
|
|
14
14
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
15
15
|
variant = 'default';
|
|
16
16
|
underline = 'hover';
|
|
17
|
-
/**
|
|
17
|
+
/** @deprecated Use href. Used when href is empty or unset. */
|
|
18
18
|
url;
|
|
19
19
|
/** Generates a `mailto:` URL when `href` and `url` are unset. */
|
|
20
20
|
mailto;
|
|
@@ -65,12 +65,12 @@ const QLink = class extends Mixin(withActionProps, withActionLabel) {
|
|
|
65
65
|
const href = this.disabled ? undefined : this.resolvedHref || undefined;
|
|
66
66
|
const showExternal = this.external || this.target === '_blank';
|
|
67
67
|
const externalText = this.target === '_blank' ? 'opens in new tab' : 'external link';
|
|
68
|
-
return (h("a", { key: '
|
|
68
|
+
return (h("a", { key: '190cf38d3818d5387b546f39e79fbc670a7cc739', class: {
|
|
69
69
|
'link': true,
|
|
70
70
|
[`variant-${this.variant}`]: true,
|
|
71
71
|
[`underline-${this.underline}`]: true,
|
|
72
72
|
'is-disabled': this.disabled,
|
|
73
|
-
}, href: href, target: this.disabled ? undefined : this.target, rel: this.disabled ? undefined : this.resolvedRel, download: this.disabled ? undefined : this.download, "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : undefined, part: "link", onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("slot", { key: '
|
|
73
|
+
}, href: href, target: this.disabled ? undefined : this.target, rel: this.disabled ? undefined : this.resolvedRel, download: this.disabled ? undefined : this.download, "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : undefined, part: "link", onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("slot", { key: 'da416f871c0fe1747da4c9117ff7c99240bd8bdd', name: "icon-left" }), h("span", { key: 'fd010829d1a8fe36bb1627f7e0077e40a3affc81', class: "link-label", part: "label" }, h("slot", { key: '9a9b11ac5f1032525c8c828196bf3a4c0c8d284e' }, this.label)), h("slot", { key: '0e8938e994d6c7076d281692e1f5ce3b8fa4d267', name: "icon-right" }), showExternal && (h("span", { key: '0fea3416f3364a8d1d312b4d9690ad7c12395860', class: "external-affordance" }, h("svg", { key: 'fe3c7e149c248d7406f5107bcd8b418ad98031b7', class: "external-icon", part: "external-icon", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { key: '10e71ed796eaddc223ef6c83472d1e0745e8ae24', d: "M14 3h7v7" }), h("path", { key: 'e522c15547771a60fc5f93b23dace13ee4ea58b6', d: "M10 14L21 3" }), h("path", { key: '6316757bd05ea7f05d8c9d0ab4af3a1d0287903a', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" })), h("span", { key: '4698f7d717f468fbe8b19ea1f6c77083d440418b', class: "visually-hidden" }, "(", externalText, ")")))));
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
QLink.style = linkCss();
|
package/dist/esm/q-map.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
import { g as Q_MAP_MARKER_VARIANTS, d as Q_MAP_MARKER_KINDS, e as Q_MAP_MARKER_RINGS, f as Q_MAP_MARKER_SIZES, a as Q_MAP_MARKER_CALLOUT_PLACEMENTS, b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS, c as Q_MAP_MARKER_CALLOUT_VISIBILITIES, Q as Q_MAP_DEFAULT_CLUSTER_GROUP } from './map.types-WJHaLJS_.js';
|
|
3
3
|
|
|
4
4
|
function isTilePreloadBufferRelevant(requestedProvider, activeProvider) {
|
|
@@ -3309,7 +3309,7 @@ const QMap = class {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
render() {
|
|
3312
|
-
return (h("div", { key: '
|
|
3312
|
+
return (h("div", { key: '753eeb63e0f1e0be9c018d72997d9553495b9ad8', class: "map-surface", part: "surface" }, h("div", { key: '2da65495446a24640d1f81c8b1583664664293bf', class: "map-canvas", part: "canvas", role: "region", "aria-label": this.ariaLabel, "aria-busy": this.providerStatus === 'initializing' ? 'true' : undefined, ref: this.setCanvas }), h("q-icon", { key: 'e61c59f96ed6624a2bedf1a32b8828b0ab133cbd', class: "map-icon-registration", "aria-hidden": "true" }), this.providerStatus === 'empty' && (h("div", { key: 'c7b24a9d6a6f796dd92b5e4d088711113de3a448', class: "map-empty", part: "empty", role: "status" }, h("slot", { key: '97f0b1fe4dd669512b1a55b58fb428f37a23fdfc', name: "empty" }, "Map provider is not configured."))), this.providerStatus === 'error' && (h("div", { key: 'f72f0211b9df1e9eb833828215575b08479cea59', class: "map-empty map-error", part: "error", role: "alert" }, h("slot", { key: '44026803ec28e2acb3d8b91dec1ab85ae3c74663', name: "error" }, this.errorMessage ?? 'Map imagery is unavailable.'))), this.renderAttribution()));
|
|
3313
3313
|
}
|
|
3314
3314
|
static get watchers() { return {
|
|
3315
3315
|
"provider": [{
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-DbGG9Q40.js';
|
|
2
|
+
|
|
3
|
+
const mediaCss = () => `:host{display:block;min-width:0}`;
|
|
4
|
+
|
|
5
|
+
const QMedia = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
src = '';
|
|
10
|
+
alt = '';
|
|
11
|
+
kind = 'image';
|
|
12
|
+
loading = 'lazy';
|
|
13
|
+
render() {
|
|
14
|
+
return h(Host, { key: '5d45def3470847c498e95f76357253b99acee327' }, h("slot", { key: '909ac85b7dc76d11c2b89aee8b61fa7608be8070' }), h("slot", { key: 'e84ac7af04d1c0322da86c18a97e6b51676e17fc', name: "fallback" }));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
QMedia.style = mediaCss();
|
|
18
|
+
|
|
19
|
+
export { QMedia as q_media };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
|
|
2
2
|
import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
|
|
3
3
|
import { s as safeParseJson } from './utils-BJiYCN3i.js';
|
|
4
4
|
|
|
@@ -33,6 +33,8 @@ const QNavbar = class {
|
|
|
33
33
|
/** Navigation items; strings use the same text for label and value, while objects enable links, icons, and state. */
|
|
34
34
|
items = [];
|
|
35
35
|
/** Matches either an item's value or `href`. */
|
|
36
|
+
value;
|
|
37
|
+
/** @deprecated Use value. Used only when value is unset. */
|
|
36
38
|
activeValue = '';
|
|
37
39
|
edge = 'top';
|
|
38
40
|
sticky = false;
|
|
@@ -139,7 +141,7 @@ const QNavbar = class {
|
|
|
139
141
|
if (!el || !item.icon)
|
|
140
142
|
return;
|
|
141
143
|
this.setIconAttribute(el, 'name', item.icon);
|
|
142
|
-
this.setIconAttribute(el, '
|
|
144
|
+
this.setIconAttribute(el, 'library', item.iconLib || 'lucide');
|
|
143
145
|
this.setIconAttribute(el, 'size', item.iconSize || 'sm');
|
|
144
146
|
this.setIconAttribute(el, 'local-path', item.iconLocalPath);
|
|
145
147
|
};
|
|
@@ -150,7 +152,8 @@ const QNavbar = class {
|
|
|
150
152
|
return (h("a", { class: "brand-link", href: this.brandHref, part: "brand" }, h("slot", { name: "brand" }, content)));
|
|
151
153
|
}
|
|
152
154
|
renderNavItem({ item, key }) {
|
|
153
|
-
const
|
|
155
|
+
const value = this.value ?? this.activeValue;
|
|
156
|
+
const active = item.active || (!!value && (item.value === value || item.href === value));
|
|
154
157
|
const iconOnly = !!item.iconOnly && !!item.icon;
|
|
155
158
|
const accessibleLabel = iconOnly ? item.ariaLabel || item.label : undefined;
|
|
156
159
|
const addonPlacement = item.addonPlacement || 'top-end';
|
|
@@ -161,7 +164,7 @@ const QNavbar = class {
|
|
|
161
164
|
'is-icon-only': iconOnly,
|
|
162
165
|
};
|
|
163
166
|
const content = [
|
|
164
|
-
item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon,
|
|
167
|
+
item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: item.iconLib || 'lucide', localPath: item.iconLocalPath, size: item.iconSize || 'sm', ref: (el) => this.syncIconAttributes(el, item) })),
|
|
165
168
|
h("span", { class: "nav-item__label", "aria-hidden": iconOnly ? 'true' : undefined }, item.label),
|
|
166
169
|
];
|
|
167
170
|
const addon = item.addonSlot ? (h("span", { class: `nav-item__addon is-${addonPlacement}`, part: "item-addon" }, h("slot", { name: item.addonSlot }))) : null;
|
|
@@ -177,14 +180,14 @@ const QNavbar = class {
|
|
|
177
180
|
const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
178
181
|
const hasItems = items.length > 0;
|
|
179
182
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
180
|
-
return (h("div", { key: '
|
|
183
|
+
return (h("div", { key: '09ac3cccab41f89adaae0d308067ed0952ce1eb2', class: {
|
|
181
184
|
'navbar': true,
|
|
182
185
|
'is-open': this.menuOpen,
|
|
183
186
|
'is-sticky': this.sticky,
|
|
184
187
|
'is-compact': this.compact,
|
|
185
188
|
'is-transparent': this.transparent,
|
|
186
189
|
'is-bordered': this.bordered,
|
|
187
|
-
}, part: "navbar" }, h("div", { key: '
|
|
190
|
+
}, part: "navbar" }, h("div", { key: '2336b4b12aed62d0ba014f7a1e34b22e6952c444', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '2516df77be1739a34ab5b67296c11db776934261', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: 'd022935aebf6d62b6c12328d125e914a7a13b843', name: "nav" })), h("div", { key: '3f18ffcdcc918e56856df176810a049a00111886', class: "desktop-actions", part: "actions" }, h("slot", { key: '8ebc6706ac2ff1006b262978e6f870a15ed1f5d5', name: "actions" })), h("button", { key: '5f0739a91b79594ff62f769498d3ee95004c55d9', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: 'ac577f3d6b9d5505dd372a23ec7e23a41030e05b' }), h("span", { key: 'fdc13b36bff79c44df72b602078a4067db31319e' }), h("span", { key: 'bcde22fc716c623002f723e99f14412a111420ad' }))), h("div", { key: '2265e94f7236b62de6e3f237dbe81cda556f3da2', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '1166d0d59ff6a28eab548c971a94ea02199da5c0', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '812bc68a6e9f7496b8d7ea36a28fd3d83d0de780', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '8ec6523d8098e013864f4dcc07cb6abccf332e34', class: "mobile-actions" }, h("slot", { key: '92a75d93272c462624711ac2491f4ae79cf33651', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
188
191
|
}
|
|
189
192
|
};
|
|
190
193
|
QNavbar.style = navbarCss();
|
|
@@ -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
|
|
|
3
3
|
const paginationCss = () => `:host{display:block;min-width:0;color:var(--q-pagination-fg, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-pagination-font-size, var(--q-font-size-sm, 0.8125rem));font-weight:var(--q-pagination-font-weight, 600)}.pagination{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:var(--q-pagination-gap, 12px);box-sizing:border-box;width:100%;min-width:0}.summary{min-width:0}.controls{display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--q-pagination-controls-gap, 8px)}.page-button{box-sizing:border-box;min-height:var(--q-pagination-button-height, 30px);padding:var(--q-pagination-button-padding, 5px 8px);color:var(--q-pagination-button-fg, var(--q-fg-base, #f9fafb));border:var(--q-pagination-button-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-pagination-button-radius, var(--q-radius-sm, 4px));background:var(--q-pagination-button-bg, transparent);font:inherit;cursor:pointer;transition:background-color 150ms ease, border-color 150ms ease, color 150ms ease}.page-button:hover:not(:disabled){color:var(--q-pagination-button-hover-fg, var(--q-color-primary, #60a5fa));border-color:var(--q-pagination-button-hover-border, var(--q-color-primary, #60a5fa));background:var( --q-pagination-button-hover-bg, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent) )}.page-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.page-button:disabled{opacity:0.45;cursor:not-allowed}.page-count{min-width:var(--q-pagination-page-count-width, 48px);text-align:center}@media (max-width: 480px){.pagination{align-items:flex-start;flex-direction:column}.controls{align-self:flex-end}}`;
|
|
4
4
|
|
|
@@ -52,7 +52,7 @@ const QPagination = class {
|
|
|
52
52
|
const itemLabel = this.itemLabel.trim() || 'items';
|
|
53
53
|
const previousDisabled = this.disabled || totalItems === 0 || page <= 1;
|
|
54
54
|
const nextDisabled = this.disabled || totalItems === 0 || page >= pageCount;
|
|
55
|
-
return (h("nav", { key: '
|
|
55
|
+
return (h("nav", { key: '44517344440b2f1f8fb05d09678ceb63d769ab63', class: "pagination", part: "container", "aria-label": this.ariaLabel?.trim() || 'Pagination' }, this.showSummary && (h("span", { key: 'fbdbe6a34b4f3b0310a48c9cd2fc78648ebc4138', class: "summary", part: "summary", "aria-live": "polite" }, "Showing ", pageStart, "-", pageEnd, " of ", totalItems, " ", itemLabel)), h("div", { key: '908843e7312d7a7f9c604f5c389bf1425e2df515', class: "controls", part: "controls" }, h("button", { key: '80b38e8bcfe16368e9a339e675cf07dd9225e783', class: "page-button", part: "previous-button", type: "button", disabled: previousDisabled, "aria-label": "Previous page", onClick: () => this.requestPage(page - 1) }, "Previous"), h("span", { key: 'e07fc9bbcf35c86504361768694f2bb3601eae10', class: "page-count", part: "page-count", "aria-label": `Page ${page} of ${pageCount}` }, page, " / ", pageCount), h("button", { key: 'cd50e90003cb0912d18f171284040a271d371444', class: "page-button", part: "next-button", type: "button", disabled: nextDisabled, "aria-label": "Next page", onClick: () => this.requestPage(page + 1) }, "Next"))));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
function positiveInteger(value, fallback) {
|
|
@@ -1,17 +1,25 @@
|
|
|
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
|
-
const panelCss = () => `:host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-
|
|
5
|
+
const panelCss = () => `:host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-sm .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-sm, var(--_q-body-padding)))}.padding-md .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-md, var(--_q-body-padding)))}.padding-lg .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-lg, var(--_q-body-padding)))}.panel{background:var(--q-panel-bg, var(--_q-surface))}.panel-header{padding:var(--q-panel-header-padding, var(--_q-header-padding));margin:0}.panel-body{padding:var(--q-panel-padding, var(--_q-body-padding))}.panel-footer{padding:var(--q-panel-footer-padding, var(--_q-footer-padding))}.panel-footer.is-hidden{display:none}.has-dividers .panel-header{border-bottom:var(--q-panel-divider, var(--q-border, 1px solid #374151))}.has-dividers .panel-footer{border-top:var(--q-panel-divider, var(--q-border, 1px solid #374151))}`;
|
|
5
6
|
|
|
6
7
|
const QPanel = class {
|
|
7
8
|
constructor(hostRef) {
|
|
8
9
|
registerInstance(this, hostRef);
|
|
9
10
|
}
|
|
10
11
|
get el() { return getElement(this); }
|
|
12
|
+
/** Explicit surface; omitted preserves the variant's role. */
|
|
13
|
+
surface;
|
|
14
|
+
headerPadding;
|
|
15
|
+
footerPadding;
|
|
16
|
+
dividers = false;
|
|
11
17
|
variant = 'bordered';
|
|
12
18
|
/** Removes the panel border while preserving the selected variant's other styling. */
|
|
19
|
+
borderless;
|
|
20
|
+
/** @deprecated Use borderless. Used only when borderless is unset. */
|
|
13
21
|
noBorders = false;
|
|
14
|
-
padding = '
|
|
22
|
+
padding = 'lg';
|
|
15
23
|
fullHeight = false;
|
|
16
24
|
scrollable = false;
|
|
17
25
|
/** Keeps the header pinned when the panel itself is the scroll container. */
|
|
@@ -41,23 +49,24 @@ const QPanel = class {
|
|
|
41
49
|
}
|
|
42
50
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
43
51
|
render() {
|
|
44
|
-
return (h("section", { key: '
|
|
52
|
+
return (h("section", { key: '19d43c6fc4582a4d5c45ac740abdb3f9f7c1eee7', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
|
|
45
53
|
'panel': true,
|
|
54
|
+
'has-dividers': this.dividers,
|
|
46
55
|
[`variant-${this.variant}`]: true,
|
|
47
|
-
'has-no-borders': this.noBorders,
|
|
56
|
+
'has-no-borders': this.borderless ?? this.noBorders,
|
|
48
57
|
[`padding-${this.padding}`]: true,
|
|
49
58
|
'is-scrollable': this.scrollable,
|
|
50
59
|
'is-full-height': this.fullHeight,
|
|
51
60
|
'has-sticky-header': this.stickyHeader,
|
|
52
61
|
'has-sticky-footer': this.stickyFooter,
|
|
53
62
|
'uses-sticky-scroll': this.scrollable && (this.stickyHeader || this.stickyFooter),
|
|
54
|
-
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '
|
|
63
|
+
}, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: 'f6e294e08f93dee0d2f02e2b549caf7ded1e09cc', class: {
|
|
55
64
|
'panel-header': true,
|
|
56
65
|
'is-hidden': !this.hasHeader,
|
|
57
|
-
}, part: "header" }, h("slot", { key: '
|
|
66
|
+
}, part: "header" }, h("slot", { key: 'cbc8ee69b0c1cb170a1e1231d04c7f2a699711a2', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: '9f4bf85cb23cccae683d8cac501419e32dcf32e4', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: 'a313ab4dd5e5c1f630c008d3e7e8d5b148835496' })), h("div", { key: '9c764bd306f25706dc2d9c5819e56f6dc17888bf', class: {
|
|
58
67
|
'panel-footer': true,
|
|
59
68
|
'is-hidden': !this.hasFooter,
|
|
60
|
-
}, part: "footer" }, h("slot", { key: '
|
|
69
|
+
}, part: "footer" }, h("slot", { key: '4aafeebc0dba589e0921fc01cdda33af7b9d497c', name: "footer", onSlotchange: this.handleSlotChange }))));
|
|
61
70
|
}
|
|
62
71
|
};
|
|
63
72
|
QPanel.style = panelCss();
|
|
@@ -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
|
|
|
3
3
|
function hasQuantityBound(value) {
|
|
4
4
|
return value !== undefined && value !== null;
|
|
@@ -65,7 +65,7 @@ function getQuantityInputCharCount(value, bounds) {
|
|
|
65
65
|
return Math.max(3, value?.toString().length ?? 0);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
const quantitySelectorCss = () => `:host{--q-
|
|
68
|
+
const quantitySelectorCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius, var(--q-field-radius, var(--_q-control-radius)));background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:var(--q-padding-sm, 4px) 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.quantity-btn:hover:not(:disabled){background:var(--q-quantity-selector-btn-bg-hover);color:var(--q-quantity-selector-btn-fg-hover)}.quantity-btn:disabled{opacity:0.4;cursor:not-allowed}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height);height:100%}.variant-horizontal .quantity-btn-decrement{border-right:1px solid var(--q-quantity-selector-border-color)}.variant-horizontal .quantity-btn-increment{border-left:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn{width:100%;height:var(--q-quantity-selector-height)}.variant-vertical .quantity-btn-increment{border-bottom:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn-decrement{border-top:1px solid var(--q-quantity-selector-border-color)}.btn-icon{width:16px;height:16px}.quantity-selector.variant-horizontal{min-height:var(--q-quantity-selector-height, var(--_q-control-height));height:auto}.quantity-selector .quantity-input{min-height:calc(var(--_q-control-height) - 2px);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height, var(--_q-control-height));min-height:calc(var(--_q-control-height) - 2px)}.variant-vertical .quantity-btn{height:var(--q-quantity-selector-height, var(--_q-control-height))}.btn-icon{width:var(--_q-control-icon);height:var(--_q-control-icon)}`;
|
|
69
69
|
|
|
70
70
|
const QQuantitySelector = class {
|
|
71
71
|
constructor(hostRef) {
|
|
@@ -80,6 +80,10 @@ const QQuantitySelector = class {
|
|
|
80
80
|
min;
|
|
81
81
|
max;
|
|
82
82
|
step = 1;
|
|
83
|
+
size = 'inherit';
|
|
84
|
+
/** Direction of the controls. Overrides variant; defaults to horizontal when both are omitted. */
|
|
85
|
+
orientation;
|
|
86
|
+
/** @deprecated Use orientation. Used only when orientation is unset. */
|
|
83
87
|
variant = 'horizontal';
|
|
84
88
|
qChange;
|
|
85
89
|
qFocus;
|
|
@@ -172,17 +176,20 @@ const QQuantitySelector = class {
|
|
|
172
176
|
}
|
|
173
177
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
174
178
|
render() {
|
|
179
|
+
const orientation = this.orientation ?? this.variant;
|
|
175
180
|
const finiteValue = toFiniteQuantity(this.value);
|
|
176
181
|
const hasFiniteValue = Number.isFinite(this.value);
|
|
177
182
|
const isMinDisabled = hasFiniteValue && hasQuantityBound(this.min) && finiteValue <= this.min;
|
|
178
183
|
const isMaxDisabled = hasFiniteValue && hasQuantityBound(this.max) && finiteValue >= this.max;
|
|
179
|
-
const decBtn = (h("button", { key: '
|
|
180
|
-
const incBtn = (h("button", { key: '
|
|
181
|
-
const calculatedWidth =
|
|
182
|
-
return (h("div", { key: '
|
|
184
|
+
const decBtn = (h("button", { key: '0d205462edb2a80f34c6a505d27590292dcf3f7e', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, h("svg", { key: 'c1f577aaad5987c7c0b42226b5e2b26c204c3f73', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '239f207b73fb45245a84da8bb9edd7c0644ef54a', x1: "5", y1: "12", x2: "19", y2: "12" }))));
|
|
185
|
+
const incBtn = (h("button", { key: '6b3ee6c987e39caa232011f223ec442bcc215299', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, h("svg", { key: '349c300f4e59ff96c31bc150941bb2efedd49c40', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '1f002a894a21755d52cf646760315758b53e6395', x1: "12", y1: "5", x2: "12", y2: "19" }), h("line", { key: 'd749c9e9e222331efda484d487aefeee17feb536', x1: "5", y1: "12", x2: "19", y2: "12" }))));
|
|
186
|
+
const calculatedWidth = orientation === 'horizontal' ? this.getCalculatedWidth() : '100%';
|
|
187
|
+
return (h("div", { key: '81fc04eab40b6439c61e544118380aea27b098e0', class: {
|
|
183
188
|
'quantity-selector': true,
|
|
184
|
-
[`
|
|
185
|
-
|
|
189
|
+
[`size-${this.size}`]: true,
|
|
190
|
+
[`orientation-${orientation}`]: true,
|
|
191
|
+
[`variant-${orientation}`]: true,
|
|
192
|
+
}, onClick: this.handleClick }, orientation === 'vertical' ? incBtn : decBtn, h("input", { key: '83d11e764e2e5f988c62e16010a030a1f8ee43c9', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, onKeyDown: this.handleKeyDown, role: "spinbutton", "aria-valuenow": hasFiniteValue ? String(this.value) : undefined, "aria-valuemin": hasQuantityBound(this.min) ? String(this.min) : undefined, "aria-valuemax": hasQuantityBound(this.max) ? String(this.max) : undefined, "aria-label": "Quantity", style: { width: calculatedWidth }, part: "input" }), orientation === 'vertical' ? decBtn : incBtn));
|
|
186
193
|
}
|
|
187
194
|
static get watchers() { return {
|
|
188
195
|
"value": [{
|