@webquark/core 1.1.0-dev.4 → 1.1.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -9
- package/dist/cjs/{action.props-CkEZpMY6.js → action.props-CtwTiyf6.js} +1 -1
- package/dist/cjs/field-CiEtk37y.js +14 -0
- package/dist/cjs/{index-B7ex88C2.js → index-BLlc_shC.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +18 -0
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +6 -6
- package/dist/cjs/q-banner.cjs.entry.js +19 -0
- package/dist/cjs/q-button_2.cjs.entry.js +7 -7
- package/dist/cjs/q-card.cjs.entry.js +17 -6
- package/dist/cjs/q-carousel.cjs.entry.js +3 -3
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +6 -6
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +22 -8
- package/dist/cjs/q-dropdown.cjs.entry.js +50 -6
- package/dist/cjs/q-form.cjs.entry.js +11 -5
- package/dist/cjs/q-grid.cjs.entry.js +24 -0
- package/dist/cjs/q-icon.cjs.entry.js +16 -6
- package/dist/cjs/q-inline.cjs.entry.js +22 -0
- package/dist/cjs/q-input_2.cjs.entry.js +14 -7
- package/dist/cjs/q-link.cjs.entry.js +5 -5
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- package/dist/cjs/q-media.cjs.entry.js +21 -0
- package/dist/cjs/q-navbar.cjs.entry.js +229 -8
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +17 -8
- package/dist/cjs/q-quantity-selector.cjs.entry.js +15 -8
- package/dist/cjs/q-radio-group.cjs.entry.js +14 -7
- package/dist/cjs/q-reel.cjs.entry.js +3 -3
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +20 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +14 -7
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
- package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +61 -7
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +3 -3
- package/dist/cjs/q-toggle.cjs.entry.js +14 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
- package/dist/cjs/tokens-DGECOqpA.js +42 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +16 -9
- package/dist/collection/components/actions/button/button.css +55 -4
- package/dist/collection/components/actions/button/button.js +4 -4
- package/dist/collection/components/actions/link/link.js +8 -5
- package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
- package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
- package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/{layout → content}/card/card.css +12 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
- package/dist/collection/components/data-display/accordion/accordion.css +1 -0
- package/dist/collection/components/data-display/accordion/accordion.js +54 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
- package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
- package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
- package/dist/collection/components/inputs/form/form.css +85 -0
- package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/input/input.css +78 -62
- package/dist/collection/components/inputs/input/input.js +77 -9
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
- package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
- package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
- package/dist/collection/components/inputs/textarea/textarea.css +85 -1
- package/dist/collection/components/inputs/textarea/textarea.js +149 -7
- package/dist/collection/components/inputs/toggle/toggle.css +80 -48
- package/dist/collection/components/inputs/toggle/toggle.js +72 -6
- package/dist/collection/components/layout/grid/grid.css +11 -0
- package/dist/collection/components/layout/grid/grid.js +152 -0
- package/dist/collection/components/layout/inline/inline.css +4 -0
- package/dist/collection/components/layout/inline/inline.js +118 -0
- package/dist/collection/components/layout/navbar/navbar.css +119 -0
- package/dist/collection/components/layout/navbar/navbar.js +310 -9
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +317 -1
- package/dist/collection/components/layout/panel/panel.css +13 -12
- package/dist/collection/components/layout/panel/panel.js +139 -10
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.css +1 -0
- package/dist/collection/components/layout/section/section.js +98 -0
- package/dist/collection/components/layout/section/section.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +1 -1
- package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
- package/dist/collection/components/layout/stack/stack.css +4 -0
- package/dist/collection/components/layout/stack/stack.js +76 -0
- package/dist/collection/components/layout/tabs/tabs.js +2 -2
- package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
- package/dist/collection/components/media/avatar/avatar.js +43 -43
- package/dist/collection/components/media/icon/icon.js +79 -18
- package/dist/collection/components/media/media/media.css +1 -0
- package/dist/collection/components/media/media/media.js +125 -0
- package/dist/collection/components/media/media/media.types.js +1 -0
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.css +16 -0
- package/dist/collection/components/overlays/dialog/dialog.js +144 -14
- package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
- package/dist/collection/components/shared/field.js +8 -0
- package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
- package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
- package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
- package/dist/collection/playground/playground.bundled.js +846 -34
- package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
- package/dist/collection/theme/tokens.js +828 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-0PieXMX9.js +1 -0
- package/dist/components/p-BOYjkCNa.js +1 -0
- package/dist/components/p-Bw4TVbfm.js +1 -0
- package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
- package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
- package/dist/components/p-Cx1vCuMp.js +1 -0
- package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
- package/dist/components/p-GU98U1DJ.js +1 -0
- package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
- package/dist/components/p-f95uguY1.js +1 -0
- package/dist/components/q-accordion.d.ts +11 -0
- package/dist/components/q-accordion.js +1 -0
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.d.ts +11 -0
- package/dist/components/q-media.js +1 -0
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.js +3 -3
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +2 -2
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
- package/dist/esm/field-DkpyvZiX.js +11 -0
- package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +6 -6
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +7 -7
- package/dist/esm/q-card.entry.js +17 -6
- package/dist/esm/q-carousel.entry.js +3 -3
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +6 -6
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +22 -8
- package/dist/esm/q-dropdown.entry.js +50 -6
- package/dist/esm/q-form.entry.js +11 -5
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +16 -6
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +14 -7
- package/dist/esm/q-link.entry.js +5 -5
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +229 -8
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +17 -8
- package/dist/esm/q-quantity-selector.entry.js +15 -8
- package/dist/esm/q-radio-group.entry.js +14 -7
- package/dist/esm/q-reel.entry.js +3 -3
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +18 -0
- package/dist/esm/q-sidepanel.entry.js +14 -7
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +7 -4
- package/dist/esm/q-step-diagram.entry.js +21 -11
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +3 -3
- package/dist/esm/q-textarea.entry.js +61 -7
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +3 -3
- package/dist/esm/q-toggle.entry.js +14 -6
- package/dist/esm/q-toolbar.entry.js +8 -4
- package/dist/esm/tokens-f95uguY1.js +38 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/build/p-0aea8464.entry.js +1 -0
- package/dist/playground/build/p-0aecd9b1.entry.js +1 -0
- package/dist/playground/build/p-0d98e500.entry.js +1 -0
- package/dist/playground/build/p-139fec38.entry.js +1 -0
- package/dist/{webquark/p-0053ec76.entry.js → playground/build/p-15502232.entry.js} +1 -1
- package/dist/playground/build/p-17340abf.entry.js +1 -0
- package/dist/playground/build/p-303dcac8.entry.js +1 -0
- package/dist/playground/build/p-408bf48a.entry.js +1 -0
- package/dist/playground/build/p-47253466.entry.js +1 -0
- package/dist/playground/build/p-5f6860f2.entry.js +13 -0
- package/dist/playground/build/p-6b619655.entry.js +1 -0
- package/dist/playground/build/p-6b63922b.entry.js +1 -0
- package/dist/playground/build/p-71e3d582.entry.js +1 -0
- package/dist/playground/build/p-737ca99e.entry.js +1 -0
- package/dist/playground/build/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/playground/build/p-8115ec23.entry.js +1 -0
- package/dist/playground/build/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/playground/build/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/playground/build/p-9418caa0.entry.js +1 -0
- package/dist/playground/build/p-96ef2b54.entry.js +1 -0
- package/dist/playground/build/p-97dae970.entry.js +1 -0
- package/dist/{webquark/p-b5066051.entry.js → playground/build/p-989bdc1a.entry.js} +1 -1
- package/dist/playground/build/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/playground/build/p-DbGG9Q40.js +3 -0
- package/dist/playground/build/p-JgeOdXyP.js +1 -0
- package/dist/playground/build/p-a4b36120.entry.js +1 -0
- package/dist/playground/build/p-abf54361.entry.js +1 -0
- package/dist/playground/build/p-aed4b219.entry.js +1 -0
- package/dist/playground/build/p-b3a07d94.entry.js +1 -0
- package/dist/{webquark/p-8077aa3f.entry.js → playground/build/p-b465aebd.entry.js} +1 -1
- package/dist/playground/build/p-c1f3dca6.entry.js +1 -0
- package/dist/playground/build/p-c4899c2b.entry.js +1 -0
- package/dist/{webquark/p-1c9a82b8.entry.js → playground/build/p-c4fd89b8.entry.js} +1 -1
- package/dist/playground/build/p-cf8f7f2a.entry.js +1 -0
- package/dist/playground/build/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{webquark/p-6c0bc4b9.entry.js → playground/build/p-d7d436c5.entry.js} +1 -1
- package/dist/playground/build/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{webquark/p-8ec7d250.entry.js → playground/build/p-eb71e335.entry.js} +1 -1
- package/dist/playground/build/p-ecbc0fee.entry.js +1 -0
- package/dist/{webquark/p-d837603c.entry.js → playground/build/p-ed327679.entry.js} +1 -1
- package/dist/{webquark/p-e0e6b68f.entry.js → playground/build/p-f911c90f.entry.js} +1 -1
- package/dist/playground/build/p-f95uguY1.js +1 -0
- package/dist/{webquark/p-13329777.entry.js → playground/build/p-ff1e2363.entry.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/playground/components.manifest.json +40 -35
- package/dist/playground/playground/specs/q-button.sandbox.json +3 -2
- package/dist/playground/playground/specs/q-card.sandbox.json +37 -3
- package/dist/playground/playground/specs/q-dialog.sandbox.json +16 -6
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-form.sandbox.json +88 -10
- package/dist/playground/playground/specs/q-grid.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +11 -11
- package/dist/playground/playground/specs/q-inline.sandbox.json +60 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-navbar.sandbox.json +11 -3
- package/dist/playground/playground/specs/q-panel.sandbox.json +138 -17
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +46 -10
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +7 -7
- package/dist/playground/playground/specs/q-stack.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +5 -5
- package/dist/playground/playground/specs/q-textarea.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +99 -14
- package/dist/playground/playground.js +846 -34
- package/dist/types/components/actions/button/button.types.d.ts +2 -1
- package/dist/types/components/actions/link/link.d.ts +1 -1
- package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/content/banner/banner.d.ts +12 -0
- package/dist/types/components/content/banner/banner.types.d.ts +2 -0
- package/dist/types/components/{layout → content}/card/card.d.ts +11 -0
- package/dist/types/components/content/card/card.types.d.ts +1 -0
- package/dist/types/components/{layout → content}/card/card.utils.d.ts +1 -1
- package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
- package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +6 -3
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -1
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +4 -2
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -1
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +13 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +2 -1
- package/dist/types/components/{layout → inputs}/form/form.d.ts +6 -0
- package/dist/types/components/inputs/input/input.d.ts +7 -1
- package/dist/types/components/inputs/input/input.types.d.ts +2 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +6 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -1
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +7 -1
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +2 -1
- package/dist/types/components/inputs/textarea/textarea.d.ts +16 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +6 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -1
- package/dist/types/components/layout/grid/grid.d.ts +13 -0
- package/dist/types/components/layout/inline/inline.d.ts +12 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +29 -1
- package/dist/types/components/layout/navbar/navbar.types.d.ts +2 -0
- package/dist/types/components/layout/panel/panel.d.ts +8 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +2 -1
- package/dist/types/components/layout/section/section.d.ts +13 -0
- package/dist/types/components/layout/section/section.types.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +7 -0
- package/dist/types/components/layout/stack/stack.d.ts +10 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +4 -0
- package/dist/types/components/media/avatar/avatar.d.ts +4 -4
- package/dist/types/components/media/icon/icon.d.ts +7 -3
- package/dist/types/components/media/media/media.d.ts +13 -0
- package/dist/types/components/media/media/media.types.d.ts +2 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +14 -2
- package/dist/types/components/shared/field.d.ts +3 -0
- package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +911 -68
- package/dist/types/index.d.ts +8 -3
- package/dist/types/playground/components/theme-designer/token-row.d.ts +2 -1
- package/dist/types/theme/test/assets.d.ts +4 -0
- package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
- package/dist/types/theme/tokens.d.ts +63 -0
- package/dist/webquark/p-0aea8464.entry.js +1 -0
- package/dist/webquark/p-0aecd9b1.entry.js +1 -0
- package/dist/webquark/p-0d98e500.entry.js +1 -0
- package/dist/webquark/p-139fec38.entry.js +1 -0
- package/dist/{playground/build/p-0053ec76.entry.js → webquark/p-15502232.entry.js} +1 -1
- package/dist/webquark/p-17340abf.entry.js +1 -0
- package/dist/webquark/p-303dcac8.entry.js +1 -0
- package/dist/webquark/p-408bf48a.entry.js +1 -0
- package/dist/webquark/p-47253466.entry.js +1 -0
- package/dist/webquark/p-5f6860f2.entry.js +13 -0
- package/dist/webquark/p-6b619655.entry.js +1 -0
- package/dist/webquark/p-6b63922b.entry.js +1 -0
- package/dist/webquark/p-71e3d582.entry.js +1 -0
- package/dist/webquark/p-737ca99e.entry.js +1 -0
- package/dist/webquark/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/webquark/p-8115ec23.entry.js +1 -0
- package/dist/webquark/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/webquark/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/webquark/p-9418caa0.entry.js +1 -0
- package/dist/webquark/p-96ef2b54.entry.js +1 -0
- package/dist/webquark/p-97dae970.entry.js +1 -0
- package/dist/{playground/build/p-b5066051.entry.js → webquark/p-989bdc1a.entry.js} +1 -1
- package/dist/webquark/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/webquark/p-DbGG9Q40.js +3 -0
- package/dist/webquark/p-JgeOdXyP.js +1 -0
- package/dist/webquark/p-a4b36120.entry.js +1 -0
- package/dist/webquark/p-abf54361.entry.js +1 -0
- package/dist/webquark/p-aed4b219.entry.js +1 -0
- package/dist/webquark/p-b3a07d94.entry.js +1 -0
- package/dist/{playground/build/p-8077aa3f.entry.js → webquark/p-b465aebd.entry.js} +1 -1
- package/dist/webquark/p-c1f3dca6.entry.js +1 -0
- package/dist/webquark/p-c4899c2b.entry.js +1 -0
- package/dist/{playground/build/p-1c9a82b8.entry.js → webquark/p-c4fd89b8.entry.js} +1 -1
- package/dist/webquark/p-cf8f7f2a.entry.js +1 -0
- package/dist/webquark/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{playground/build/p-6c0bc4b9.entry.js → webquark/p-d7d436c5.entry.js} +1 -1
- package/dist/webquark/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{playground/build/p-8ec7d250.entry.js → webquark/p-eb71e335.entry.js} +1 -1
- package/dist/webquark/p-ecbc0fee.entry.js +1 -0
- package/dist/{playground/build/p-d837603c.entry.js → webquark/p-ed327679.entry.js} +1 -1
- package/dist/{playground/build/p-e0e6b68f.entry.js → webquark/p-f911c90f.entry.js} +1 -1
- package/dist/webquark/p-f95uguY1.js +1 -0
- package/dist/{playground/build/p-13329777.entry.js → webquark/p-ff1e2363.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +68 -5
- package/scripts/wq-switch/README.md +141 -0
- package/scripts/wq-switch/dist/index.js +543 -0
- package/scripts/wq-switch/dist/setup.js +349 -0
- package/dist/collection/components/layout/card/card.js +0 -168
- package/dist/collection/components/layout/form/form.css +0 -49
- package/dist/components/p-BygmcFxM.js +0 -1
- package/dist/components/p-CVtof65h.js +0 -1
- package/dist/components/p-I81wUKud.js +0 -1
- package/dist/components/p-vv3X99Ji.js +0 -1
- package/dist/playground/build/p-0363c0e6.entry.js +0 -1
- package/dist/playground/build/p-0e3dbe01.entry.js +0 -1
- package/dist/playground/build/p-226c2f79.entry.js +0 -13
- package/dist/playground/build/p-38b92be6.entry.js +0 -1
- package/dist/playground/build/p-42831108.entry.js +0 -1
- package/dist/playground/build/p-50ca27f7.entry.js +0 -1
- package/dist/playground/build/p-5c08aa94.entry.js +0 -1
- package/dist/playground/build/p-611ef3e0.entry.js +0 -1
- package/dist/playground/build/p-684292dd.entry.js +0 -1
- package/dist/playground/build/p-7081c96b.entry.js +0 -1
- package/dist/playground/build/p-789eb3c9.entry.js +0 -1
- package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
- package/dist/playground/build/p-9978ae38.entry.js +0 -1
- package/dist/playground/build/p-VFWyFa-_.js +0 -3
- package/dist/playground/build/p-b99541cd.entry.js +0 -1
- package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
- package/dist/playground/build/p-e15e6d76.entry.js +0 -1
- package/dist/playground/build/p-e272dd45.entry.js +0 -1
- package/dist/playground/build/p-e8003179.entry.js +0 -1
- package/dist/types/components/layout/card/card.types.d.ts +0 -1
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
- package/dist/webquark/p-0363c0e6.entry.js +0 -1
- package/dist/webquark/p-0e3dbe01.entry.js +0 -1
- package/dist/webquark/p-226c2f79.entry.js +0 -13
- package/dist/webquark/p-38b92be6.entry.js +0 -1
- package/dist/webquark/p-42831108.entry.js +0 -1
- package/dist/webquark/p-50ca27f7.entry.js +0 -1
- package/dist/webquark/p-5c08aa94.entry.js +0 -1
- package/dist/webquark/p-611ef3e0.entry.js +0 -1
- package/dist/webquark/p-684292dd.entry.js +0 -1
- package/dist/webquark/p-7081c96b.entry.js +0 -1
- package/dist/webquark/p-789eb3c9.entry.js +0 -1
- package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
- package/dist/webquark/p-9978ae38.entry.js +0 -1
- package/dist/webquark/p-VFWyFa-_.js +0 -3
- package/dist/webquark/p-b99541cd.entry.js +0 -1
- package/dist/webquark/p-ca1a1d25.entry.js +0 -1
- package/dist/webquark/p-e15e6d76.entry.js +0 -1
- package/dist/webquark/p-e272dd45.entry.js +0 -1
- package/dist/webquark/p-e8003179.entry.js +0 -1
- package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
- package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
- package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
- package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
- package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
- package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
- package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
- /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var field = require('./field-CiEtk37y.js');
|
|
4
5
|
var formControlValidity = require('./form-control-validity-D1ukC0_e.js');
|
|
5
6
|
var dom = require('./dom-Dk77oFF6.js');
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@ function hasAssignedSlotContent(slot) {
|
|
|
8
9
|
return slot.assignedNodes({ flatten: true }).length > 0;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
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
|
|
12
|
+
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}`;
|
|
12
13
|
|
|
13
14
|
const QInput = class {
|
|
14
15
|
constructor(hostRef) {
|
|
@@ -32,14 +33,20 @@ const QInput = class {
|
|
|
32
33
|
label;
|
|
33
34
|
/** Accessible name for the native input when a visible label is not used. */
|
|
34
35
|
ariaLabel = null;
|
|
35
|
-
|
|
36
|
+
/** Supporting text, replaced by an active error. */
|
|
37
|
+
description;
|
|
38
|
+
/** Keep the label accessible without displaying it. */
|
|
39
|
+
labelHidden = false;
|
|
40
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
41
|
+
reserveFeedback;
|
|
42
|
+
size = 'inherit';
|
|
36
43
|
/** Shows a clear button when the field has a value. */
|
|
37
44
|
clearable = false;
|
|
38
45
|
disabled = false;
|
|
39
46
|
required = false;
|
|
40
47
|
/** Validation error text or error-state flag. */
|
|
41
48
|
error;
|
|
42
|
-
/**
|
|
49
|
+
/** @deprecated Use error. Used when error is empty or unset. */
|
|
43
50
|
errorMessage;
|
|
44
51
|
name;
|
|
45
52
|
/** `password` adds a visibility toggle; `number` adds spinner controls. */
|
|
@@ -262,16 +269,16 @@ const QInput = class {
|
|
|
262
269
|
const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
|
|
263
270
|
const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
|
|
264
271
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
265
|
-
return (index.h("div", { key: '
|
|
272
|
+
return (index.h("div", { key: '4e3f10c0256c42bba21ed2c50d8d0b817252e418', style: field.feedbackStyle(this.reserveFeedback), class: {
|
|
266
273
|
'input-wrapper': true,
|
|
267
274
|
'is-disabled': this.disabled,
|
|
268
275
|
'has-error': hasError,
|
|
269
276
|
[`size-${this.size}`]: true
|
|
270
|
-
} }, this.label && (index.h("label", { key: '
|
|
277
|
+
} }, this.label && (index.h("label", { key: 'ee4ceb0add8f09a8f92169cbca28aab5e0589b16', class: { 'input-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), index.h("div", { key: '43fab24ca58070de570be5ca182942f64e61a902', class: "input-control", part: "control" }, index.h("span", { key: '06e7231d67ad315a2897a2399a5f47d6efdc02ee', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, index.h("slot", { key: '4f95a654ed5708cad6fbe1456a97c1e7fb4adee1', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), index.h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
271
278
|
'input-box': true,
|
|
272
279
|
'has-prefix-padding': this.hasPrefix,
|
|
273
280
|
'has-suffix-padding': showSuffixContainer
|
|
274
|
-
}, 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 && (index.h("div", { key: '
|
|
281
|
+
}, 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 && (index.h("div", { key: 'a003b95c55e27e953ab5f0eca794bb8fcaae05b8', class: "input-spinners", part: "spinners" }, index.h("button", { key: '4a968f43230dd91b3a2ddda5f57a569aad687279', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, index.h("svg", { key: '60424c3b99e50bebb32fd7aead7818e2da5adac7', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '8c3d5dc18da929975e1de91e4e71dadc447cf41c', d: "M18 15l-6-6-6 6" }))), index.h("button", { key: '03d0667903272fbd3ae14a6e9f0a056c6e676d6d', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, index.h("svg", { key: '937c656ae40e87bab6b8b5b0194f3a341f370ce1', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { key: '3a3c2db25c2a5c5f98e2cfe5490775a1106e023d', d: "M6 9l6 6 6-6" }))))), index.h("span", { key: '584a50cccd58e50597e57eaf261b6d149bde59bf', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (index.h("button", { key: 'de7d65dff1e745ec5362c909897169be7b0ac15a', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, index.h("svg", { key: 'b0f78bc3b9b3d97cd118f6602905418a3dbae354', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: '8973c4acfda6c4c9f26cedb1f5678937c9dc3823', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (index.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 ? (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M3 3l18 18" }), index.h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), index.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" }), index.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" }))) : (index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), index.h("circle", { cx: "12", cy: "12", r: "3" }))))), index.h("span", { key: 'a28828a5ae5c01967247453f1f9a5ee1ce2422ef', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, index.h("slot", { key: 'd3ec795bdfcacafdb68a33774d1a90cb96b27344', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), field.fieldFeedback('q-field-error', displayError, this.description)));
|
|
275
282
|
}
|
|
276
283
|
static get delegatesFocus() { return true; }
|
|
277
284
|
static get formAssociated() { return true; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var action_props = require('./action.props-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var action_props = require('./action.props-CtwTiyf6.js');
|
|
5
5
|
|
|
6
6
|
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}`;
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ const QLink = class extends index.Mixin(action_props.withActionProps, action_pro
|
|
|
16
16
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
17
17
|
variant = 'default';
|
|
18
18
|
underline = 'hover';
|
|
19
|
-
/**
|
|
19
|
+
/** @deprecated Use href. Used when href is empty or unset. */
|
|
20
20
|
url;
|
|
21
21
|
/** Generates a `mailto:` URL when `href` and `url` are unset. */
|
|
22
22
|
mailto;
|
|
@@ -67,12 +67,12 @@ const QLink = class extends index.Mixin(action_props.withActionProps, action_pro
|
|
|
67
67
|
const href = this.disabled ? undefined : this.resolvedHref || undefined;
|
|
68
68
|
const showExternal = this.external || this.target === '_blank';
|
|
69
69
|
const externalText = this.target === '_blank' ? 'opens in new tab' : 'external link';
|
|
70
|
-
return (index.h("a", { key: '
|
|
70
|
+
return (index.h("a", { key: '190cf38d3818d5387b546f39e79fbc670a7cc739', class: {
|
|
71
71
|
'link': true,
|
|
72
72
|
[`variant-${this.variant}`]: true,
|
|
73
73
|
[`underline-${this.underline}`]: true,
|
|
74
74
|
'is-disabled': this.disabled,
|
|
75
|
-
}, 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 }, index.h("slot", { key: '
|
|
75
|
+
}, 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 }, index.h("slot", { key: 'da416f871c0fe1747da4c9117ff7c99240bd8bdd', name: "icon-left" }), index.h("span", { key: 'fd010829d1a8fe36bb1627f7e0077e40a3affc81', class: "link-label", part: "label" }, index.h("slot", { key: '9a9b11ac5f1032525c8c828196bf3a4c0c8d284e' }, this.label)), index.h("slot", { key: '0e8938e994d6c7076d281692e1f5ce3b8fa4d267', name: "icon-right" }), showExternal && (index.h("span", { key: '0fea3416f3364a8d1d312b4d9690ad7c12395860', class: "external-affordance" }, index.h("svg", { key: 'fe3c7e149c248d7406f5107bcd8b418ad98031b7', class: "external-icon", part: "external-icon", viewBox: "0 0 24 24", "aria-hidden": "true" }, index.h("path", { key: '10e71ed796eaddc223ef6c83472d1e0745e8ae24', d: "M14 3h7v7" }), index.h("path", { key: 'e522c15547771a60fc5f93b23dace13ee4ea58b6', d: "M10 14L21 3" }), index.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" })), index.h("span", { key: '4698f7d717f468fbe8b19ea1f6c77083d440418b', class: "visually-hidden" }, "(", externalText, ")")))));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
QLink.style = linkCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
var map_types = require('./map.types-DNrz8rJh.js');
|
|
5
5
|
|
|
6
6
|
function isTilePreloadBufferRelevant(requestedProvider, activeProvider) {
|
|
@@ -3311,7 +3311,7 @@ const QMap = class {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
render() {
|
|
3314
|
-
return (index.h("div", { key: '
|
|
3314
|
+
return (index.h("div", { key: '753eeb63e0f1e0be9c018d72997d9553495b9ad8', class: "map-surface", part: "surface" }, index.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 }), index.h("q-icon", { key: 'e61c59f96ed6624a2bedf1a32b8828b0ab133cbd', class: "map-icon-registration", "aria-hidden": "true" }), this.providerStatus === 'empty' && (index.h("div", { key: 'c7b24a9d6a6f796dd92b5e4d088711113de3a448', class: "map-empty", part: "empty", role: "status" }, index.h("slot", { key: '97f0b1fe4dd669512b1a55b58fb428f37a23fdfc', name: "empty" }, "Map provider is not configured."))), this.providerStatus === 'error' && (index.h("div", { key: 'f72f0211b9df1e9eb833828215575b08479cea59', class: "map-empty map-error", part: "error", role: "alert" }, index.h("slot", { key: '44026803ec28e2acb3d8b91dec1ab85ae3c74663', name: "error" }, this.errorMessage ?? 'Map imagery is unavailable.'))), this.renderAttribution()));
|
|
3315
3315
|
}
|
|
3316
3316
|
static get watchers() { return {
|
|
3317
3317
|
"provider": [{
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
|
|
5
|
+
const mediaCss = () => `:host{display:block;min-width:0}`;
|
|
6
|
+
|
|
7
|
+
const QMedia = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
src = '';
|
|
12
|
+
alt = '';
|
|
13
|
+
kind = 'image';
|
|
14
|
+
loading = 'lazy';
|
|
15
|
+
render() {
|
|
16
|
+
return index.h(index.Host, { key: '5d45def3470847c498e95f76357253b99acee327' }, index.h("slot", { key: '909ac85b7dc76d11c2b89aee8b61fa7608be8070' }), index.h("slot", { key: 'e84ac7af04d1c0322da86c18a97e6b51676e17fc', name: "fallback" }));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
QMedia.style = mediaCss();
|
|
20
|
+
|
|
21
|
+
exports.q_media = QMedia;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
var collectionIdentity = require('./collection-identity-CV5HLD9Z.js');
|
|
5
5
|
var utils = require('./utils-DGQOjEwT.js');
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ function getNavbarItems(items) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const navbarCss = () => `:host{display:block;width:100%;box-sizing:border-box;z-index:var(--q-navbar-z-index, 100)}:host([edge='top']){--q-navbar-edge-padding:max(0px, env(safe-area-inset-top, 0px)) 24px 0;--q-navbar-edge-compact-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0;--q-navbar-edge-mobile-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0}:host([edge='bottom']){--q-navbar-edge-padding:0 24px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-compact-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-mobile-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px))}:host([edge='left']),:host([edge='right']){width:auto;height:100%}:host([edge='left']){--q-navbar-edge-padding:16px 16px 16px max(16px, env(safe-area-inset-left, 0px));--q-navbar-edge-compact-padding:12px 12px 12px max(12px, env(safe-area-inset-left, 0px))}:host([edge='right']){--q-navbar-edge-padding:16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px;--q-navbar-edge-compact-padding:12px max(12px, env(safe-area-inset-right, 0px)) 12px 12px}:host([sticky][edge='top']){position:sticky;top:0}:host([sticky][edge='right']){position:sticky;right:0}:host([sticky][edge='bottom']){position:sticky;bottom:0}:host([sticky][edge='left']){position:sticky;left:0}.navbar{width:100%;color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937));font-family:var(--q-font-family, inherit);box-sizing:border-box}:host([edge='left']) .navbar,:host([edge='right']) .navbar{height:100%}.navbar.is-transparent{background:transparent}:host([edge='top']) .navbar.is-bordered{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='right']) .navbar.is-bordered{border-left:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar.is-bordered{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='left']) .navbar.is-bordered{border-right:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}.navbar-row{display:flex;align-items:center;gap:var(--q-navbar-gap, 20px);min-height:var(--q-navbar-height, 64px);padding:var(--q-navbar-padding, var(--q-navbar-edge-padding, 0 24px));box-sizing:border-box}.is-compact .navbar-row{min-height:var(--q-navbar-compact-height, 52px);padding:var(--q-navbar-compact-padding, var(--q-navbar-edge-compact-padding, 0 16px))}:host([edge='left']) .navbar-row,:host([edge='right']) .navbar-row{flex-direction:column;align-items:stretch;width:var(--q-navbar-width, 240px);height:100%;min-height:0}:host([edge='left']) .is-compact .navbar-row,:host([edge='right']) .is-compact .navbar-row{width:var(--q-navbar-compact-width, 200px);min-height:0}.brand-link{display:inline-flex;align-items:center;min-width:0;color:inherit;text-decoration:none}.brand-content{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-logo{width:var(--q-navbar-logo-size, 32px);height:var(--q-navbar-logo-size, 32px);object-fit:contain;flex:0 0 auto}.brand-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--q-navbar-brand-size, 1rem);font-weight:var(--q-font-weight-bold, 600)}.desktop-nav{display:flex;align-items:center;gap:var(--q-navbar-nav-gap, 6px);min-width:0;flex:1 1 auto}.desktop-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--q-navbar-action-gap, 8px);flex:0 0 auto}.nav-item-shell{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:center;width:var(--q-navbar-item-width, fit-content);min-width:0}.nav-item{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--q-navbar-item-width, auto);gap:var(--q-navbar-item-gap, 8px);min-height:36px;padding:var(--q-navbar-item-padding, 7px 10px);border:0;border-radius:var(--q-navbar-item-radius, var(--q-radius-md, 7px));color:var(--q-navbar-item-fg, var(--q-fg-muted, #9ca3af));background:transparent;font:inherit;font-size:var(--q-navbar-item-size, 0.9rem);font-weight:var(--q-font-weight-medium, 500);line-height:1.2;text-decoration:none;cursor:pointer;transition:color var(--q-transition-fast, 150ms ease), background var(--q-transition-fast, 150ms ease)}.nav-item__addon{position:absolute;z-index:1;display:inline-flex;max-width:none}.nav-item__addon.is-top-start{inset-block-start:0;inset-inline-start:0;transform:translateY(-50%)}.nav-item__addon.is-top-center{inset-block-start:0;inset-inline-start:50%;transform:translate(-50%, -50%)}.nav-item__addon.is-top-end{inset-block-start:0;inset-inline-end:0;transform:translateY(-50%)}.nav-item__addon.is-bottom-start{inset-block-end:0;inset-inline-start:0;transform:translateY(50%)}.nav-item__addon.is-bottom-center{inset-block-end:0;inset-inline-start:50%;transform:translate(-50%, 50%)}.nav-item__addon.is-bottom-end{inset-block-end:0;inset-inline-end:0;transform:translateY(50%)}.nav-item:hover,.nav-item:focus-visible{color:var(--q-navbar-item-fg-hover, var(--q-fg-base, #f9fafb));background:var(--q-navbar-item-bg-hover, var(--q-bg-surface-2, #374151));outline:none}.nav-item:focus-visible{box-shadow:var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3))}.nav-item.is-active{color:var(--q-navbar-item-active-fg, var(--q-color-primary, #60a5fa));background:var(--q-navbar-item-active-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 10%, transparent))}.nav-item.is-disabled,.nav-item:disabled{color:var(--q-navbar-item-disabled-fg, var(--q-fg-muted, #9ca3af));cursor:not-allowed;opacity:0.7}.nav-item__icon{flex:0 0 auto}:host([edge='left']) .brand-link,:host([edge='right']) .brand-link,:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{width:100%}:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{flex-direction:column;align-items:stretch}:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{justify-content:flex-end}:host([edge='left']) .nav-item,:host([edge='right']) .nav-item{width:100%;justify-content:flex-start}:host([edge='left']) .nav-item-shell,:host([edge='right']) .nav-item-shell{justify-self:stretch;width:100%}:host([edge='left']) .nav-item-shell.is-icon-only,:host([edge='right']) .nav-item-shell.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center}:host([edge='left']) .nav-item.is-icon-only,:host([edge='right']) .nav-item.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center;justify-content:center}.nav-item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.is-icon-only{min-width:var(--q-navbar-item-icon-only-size, 40px);min-height:var(--q-navbar-item-icon-only-size, 40px);padding:var(--q-navbar-item-icon-only-padding, 8px)}.nav-item.is-icon-only .nav-item__label{display:none}.menu-button{display:none;width:40px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:var(--q-navbar-menu-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 7px);color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-menu-bg, transparent);cursor:pointer}.menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.mobile-panel{display:none}@media (max-width: 720px){:host([edge='top']) .desktop-actions,:host([edge='bottom']) .desktop-actions{display:none}:host([edge='top']) .navbar-row,:host([edge='bottom']) .navbar-row{flex-wrap:wrap;justify-content:space-between;padding:var(--q-navbar-mobile-padding, var(--q-navbar-edge-mobile-padding, 0 16px))}:host([edge='top'][mobile-mode='menu']) .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{order:-1}:host([edge='top'][mobile-mode='menu']) .navbar.is-open .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .navbar.is-open .desktop-nav{display:flex}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{width:100%}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{justify-content:flex-start}:host([edge='top'][mobile-mode='menu']) .desktop-nav slot[name='nav'],:host([edge='bottom'][mobile-mode='menu']) .desktop-nav slot[name='nav']{display:none}:host([edge='top']) .menu-button,:host([edge='bottom']) .menu-button{display:inline-flex}:host([edge='top']) .mobile-panel,:host([edge='bottom']) .mobile-panel{display:none;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px);background:var(--q-navbar-mobile-bg, var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937)))}:host([edge='top']) .mobile-panel{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar{display:flex;flex-direction:column-reverse}:host([edge='bottom']) .mobile-panel{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='top']) .navbar.is-open .mobile-panel.has-content,:host([edge='bottom']) .navbar.is-open .mobile-panel.has-content{display:block}.mobile-nav,.mobile-actions{display:flex;flex-direction:column;gap:6px}.mobile-actions{margin-top:12px}.mobile-nav .nav-item{justify-content:flex-start;width:100%}:host([edge='top'][mobile-mode='inline']) .desktop-nav,:host([edge='bottom'][mobile-mode='inline']) .desktop-nav{display:flex}:host([edge='top'][mobile-mode='inline']) .menu-button,:host([edge='top'][mobile-mode='inline']) .mobile-panel,:host([edge='bottom'][mobile-mode='inline']) .menu-button,:host([edge='bottom'][mobile-mode='inline']) .mobile-panel{display:none}}`;
|
|
20
|
+
const navbarCss = () => `:host{display:block;width:100%;box-sizing:border-box;z-index:var(--q-navbar-z-index, 100)}:host([edge='top']){--q-navbar-edge-padding:max(0px, env(safe-area-inset-top, 0px)) 24px 0;--q-navbar-edge-compact-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0;--q-navbar-edge-mobile-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0}:host([edge='bottom']){--q-navbar-edge-padding:0 24px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-compact-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-mobile-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px))}:host([edge='left']),:host([edge='right']){width:auto;height:100%}:host([edge='left']){--q-navbar-edge-padding:16px 16px 16px max(16px, env(safe-area-inset-left, 0px));--q-navbar-edge-compact-padding:12px 12px 12px max(12px, env(safe-area-inset-left, 0px))}:host([edge='right']){--q-navbar-edge-padding:16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px;--q-navbar-edge-compact-padding:12px max(12px, env(safe-area-inset-right, 0px)) 12px 12px}:host([sticky][edge='top']){position:sticky;top:0}:host([sticky][edge='right']){position:sticky;right:0}:host([sticky][edge='bottom']){position:sticky;bottom:0}:host([sticky][edge='left']){position:sticky;left:0}.navbar{width:100%;color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937));font-family:var(--q-font-family, inherit);box-sizing:border-box}:host([edge='left']) .navbar,:host([edge='right']) .navbar{height:100%}.navbar.is-transparent{background:transparent}:host([edge='top']) .navbar.is-bordered{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='right']) .navbar.is-bordered{border-left:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar.is-bordered{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='left']) .navbar.is-bordered{border-right:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}.navbar-row{display:flex;align-items:center;gap:var(--q-navbar-gap, 20px);min-height:var(--q-navbar-height, 64px);padding:var(--q-navbar-padding, var(--q-navbar-edge-padding, 0 24px));box-sizing:border-box}.is-compact .navbar-row{min-height:var(--q-navbar-compact-height, 52px);padding:var(--q-navbar-compact-padding, var(--q-navbar-edge-compact-padding, 0 16px))}:host([edge='left']) .navbar-row,:host([edge='right']) .navbar-row{flex-direction:column;align-items:stretch;width:var(--q-navbar-width, 240px);height:100%;min-height:0}:host([edge='left']) .is-compact .navbar-row,:host([edge='right']) .is-compact .navbar-row{width:var(--q-navbar-compact-width, 200px);min-height:0}.brand-link{display:inline-flex;align-items:center;min-width:0;color:inherit;text-decoration:none}.brand-content{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-logo{width:var(--q-navbar-logo-size, 32px);height:var(--q-navbar-logo-size, 32px);object-fit:contain;flex:0 0 auto}.brand-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--q-navbar-brand-size, 1rem);font-weight:var(--q-font-weight-bold, 600)}.desktop-nav{display:flex;align-items:center;gap:var(--q-navbar-nav-gap, 6px);min-width:0;flex:1 1 auto}.desktop-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--q-navbar-action-gap, 8px);flex:0 0 auto}.nav-item-shell{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:center;width:var(--q-navbar-item-width, fit-content);min-width:0}.nav-item{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--q-navbar-item-width, auto);gap:var(--q-navbar-item-gap, 8px);min-height:36px;padding:var(--q-navbar-item-padding, 7px 10px);border:0;border-radius:var(--q-navbar-item-radius, var(--q-radius-md, 7px));color:var(--q-navbar-item-fg, var(--q-fg-muted, #9ca3af));background:transparent;font:inherit;font-size:var(--q-navbar-item-size, 0.9rem);font-weight:var(--q-font-weight-medium, 500);line-height:1.2;text-decoration:none;cursor:pointer;transition:color var(--q-transition-fast, 150ms ease), background var(--q-transition-fast, 150ms ease)}.nav-item__addon{position:absolute;z-index:1;display:inline-flex;max-width:none}.nav-item__addon.is-top-start{inset-block-start:0;inset-inline-start:0;transform:translateY(-50%)}.nav-item__addon.is-top-center{inset-block-start:0;inset-inline-start:50%;transform:translate(-50%, -50%)}.nav-item__addon.is-top-end{inset-block-start:0;inset-inline-end:0;transform:translateY(-50%)}.nav-item__addon.is-bottom-start{inset-block-end:0;inset-inline-start:0;transform:translateY(50%)}.nav-item__addon.is-bottom-center{inset-block-end:0;inset-inline-start:50%;transform:translate(-50%, 50%)}.nav-item__addon.is-bottom-end{inset-block-end:0;inset-inline-end:0;transform:translateY(50%)}.nav-item:hover,.nav-item:focus-visible{color:var(--q-navbar-item-fg-hover, var(--q-fg-base, #f9fafb));background:var(--q-navbar-item-bg-hover, var(--q-bg-surface-2, #374151));outline:none}.nav-item:focus-visible{box-shadow:var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3))}.nav-item.is-active{color:var(--q-navbar-item-active-fg, var(--q-color-primary, #60a5fa));background:var(--q-navbar-item-active-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 10%, transparent))}.nav-item.is-disabled,.nav-item:disabled{color:var(--q-navbar-item-disabled-fg, var(--q-fg-muted, #9ca3af));cursor:not-allowed;opacity:0.7}.nav-item__icon{flex:0 0 auto}:host([edge='left']) .brand-link,:host([edge='right']) .brand-link,:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{width:100%}:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{flex-direction:column;align-items:stretch}:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{justify-content:flex-end}:host([edge='left']) .nav-item,:host([edge='right']) .nav-item{width:100%;justify-content:flex-start}:host([edge='left']) .nav-item-shell,:host([edge='right']) .nav-item-shell{justify-self:stretch;width:100%}:host([edge='left']) .nav-item-shell.is-icon-only,:host([edge='right']) .nav-item-shell.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center}:host([edge='left']) .nav-item.is-icon-only,:host([edge='right']) .nav-item.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center;justify-content:center}.nav-item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.is-icon-only{min-width:var(--q-navbar-item-icon-only-size, 40px);min-height:var(--q-navbar-item-icon-only-size, 40px);padding:var(--q-navbar-item-icon-only-padding, 8px)}.nav-item.is-icon-only .nav-item__label{display:none}.menu-button{display:none;width:40px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:var(--q-navbar-menu-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 7px);color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-menu-bg, transparent);cursor:pointer}.menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.mobile-panel{display:none}@media (max-width: 720px){:host([edge='top']) .desktop-actions,:host([edge='bottom']) .desktop-actions{display:none}:host([edge='top']) .navbar-row,:host([edge='bottom']) .navbar-row{flex-wrap:wrap;justify-content:space-between;padding:var(--q-navbar-mobile-padding, var(--q-navbar-edge-mobile-padding, 0 16px))}:host([edge='top'][mobile-mode='menu']) .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{order:-1}:host([edge='top'][mobile-mode='menu']) .navbar.is-open .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .navbar.is-open .desktop-nav{display:flex}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{width:100%}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{justify-content:flex-start}:host([edge='top'][mobile-mode='menu']) .desktop-nav slot[name='nav'],:host([edge='bottom'][mobile-mode='menu']) .desktop-nav slot[name='nav']{display:none}:host([edge='top']) .menu-button,:host([edge='bottom']) .menu-button{display:inline-flex}:host([edge='top']) .mobile-panel,:host([edge='bottom']) .mobile-panel{display:none;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px);background:var(--q-navbar-mobile-bg, var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937)))}:host([edge='top']) .mobile-panel{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar{display:flex;flex-direction:column-reverse}:host([edge='bottom']) .mobile-panel{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='top']) .navbar.is-open .mobile-panel.has-content,:host([edge='bottom']) .navbar.is-open .mobile-panel.has-content{display:block}.mobile-nav,.mobile-actions{display:flex;flex-direction:column;gap:6px}.mobile-actions{margin-top:12px}.mobile-nav .nav-item{justify-content:flex-start;width:100%}:host([edge='top'][mobile-mode='inline']) .desktop-nav,:host([edge='bottom'][mobile-mode='inline']) .desktop-nav{display:flex}:host([edge='top'][mobile-mode='inline']) .menu-button,:host([edge='top'][mobile-mode='inline']) .mobile-panel,:host([edge='bottom'][mobile-mode='inline']) .menu-button,:host([edge='bottom'][mobile-mode='inline']) .mobile-panel{display:none}}@media (min-width: 720.01px){:host(:is([edge='top'],[edge='bottom'])[nav-align='end']) .desktop-nav{justify-content:flex-end}:host(:is([edge='top'],[edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .desktop-nav{justify-content:center;position:relative;inset-inline-start:var(--q-navbar-nav-offset-inline, 0px)}:host(:is([edge='top'],[edge='bottom'])[nav-align='center'][nav-center-within='container']) .navbar:not(.is-collapsed) .navbar-row{display:grid;grid-template-columns:minmax(0, 1fr) max-content minmax(0, 1fr)}:host(:is([edge='top'],[edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .brand-link{justify-self:start;flex-shrink:0}.is-collapsed .navbar-row{display:flex;flex-wrap:wrap;justify-content:space-between}.is-collapsed .desktop-nav{order:3;flex:1 0 100%;flex-wrap:wrap;justify-content:center;inset-inline-start:auto}:host([mobile-mode='menu']) .is-collapsed .desktop-nav,:host([mobile-mode='menu']) .is-collapsed .desktop-actions{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch}:host([mobile-mode='menu']) .is-collapsed.is-open .desktop-nav,:host([mobile-mode='menu']) .is-collapsed.is-open:not(.has-mobile-actions) .desktop-actions{display:flex}:host([mobile-mode='menu']) .is-collapsed.has-mobile-nav slot[name='nav']{display:none}:host([mobile-mode='menu']) .is-collapsed .nav-item-shell,:host([mobile-mode='menu']) .is-collapsed .nav-item{width:100%;justify-content:flex-start}:host([mobile-mode='menu']) .is-collapsed .menu-button{display:inline-flex;flex-shrink:0}:host([mobile-mode='menu']) .is-collapsed.is-open .mobile-panel.has-content{display:block;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px)}.is-collapsed .mobile-nav,.is-collapsed .mobile-actions{display:flex;flex-direction:column;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .is-collapsed{display:flex;flex-direction:column-reverse}:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-actions{order:-1}:host .navbar.is-measuring .navbar-row{display:flex;flex-wrap:nowrap}:host .navbar.is-measuring :is(.brand-link,.desktop-nav,.desktop-actions){display:flex;flex:0 0 auto;width:max-content;max-width:none;flex-direction:row;flex-wrap:nowrap;order:0;align-items:center}:host .navbar.is-measuring .desktop-nav{position:relative;inset-inline-start:var(--q-navbar-nav-offset-inline, 0px)}:host .navbar.is-measuring .desktop-nav slot[name='nav']{display:contents}:host .navbar.is-measuring :is(.nav-item-shell,.nav-item){width:var(--q-navbar-item-width, max-content);flex-shrink:0}}`;
|
|
21
21
|
|
|
22
22
|
let navbarIds = 0;
|
|
23
23
|
const QNavbar = class {
|
|
@@ -35,12 +35,18 @@ const QNavbar = class {
|
|
|
35
35
|
/** Navigation items; strings use the same text for label and value, while objects enable links, icons, and state. */
|
|
36
36
|
items = [];
|
|
37
37
|
/** Matches either an item's value or `href`. */
|
|
38
|
+
value;
|
|
39
|
+
/** @deprecated Use value. Used only when value is unset. */
|
|
38
40
|
activeValue = '';
|
|
39
41
|
edge = 'top';
|
|
40
42
|
sticky = false;
|
|
41
43
|
compact = false;
|
|
42
44
|
transparent = false;
|
|
43
45
|
bordered = true;
|
|
46
|
+
/** Horizontal desktop navigation alignment. */
|
|
47
|
+
navAlign = 'start';
|
|
48
|
+
/** Reference box for centred horizontal desktop navigation. */
|
|
49
|
+
navCenterWithin = 'available';
|
|
44
50
|
/** Controls whether mobile widths collapse items into a menu or keep them inline. */
|
|
45
51
|
mobileMode = 'menu';
|
|
46
52
|
/** Accessible label for the mobile menu toggle button. */
|
|
@@ -52,13 +58,215 @@ const QNavbar = class {
|
|
|
52
58
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
53
59
|
menuOpen = false;
|
|
54
60
|
hasMobileContent = false;
|
|
61
|
+
collision = false;
|
|
62
|
+
hasMobileNav = false;
|
|
63
|
+
hasMobileActions = false;
|
|
55
64
|
instanceId = ++navbarIds;
|
|
56
65
|
primaryNavId = `q-navbar-primary-nav-${this.instanceId}`;
|
|
57
66
|
mobilePanelId = `q-navbar-mobile-panel-${this.instanceId}`;
|
|
58
67
|
dismissListenersActive = false;
|
|
68
|
+
resizeObserver;
|
|
69
|
+
mutationObserver;
|
|
70
|
+
frame = 0;
|
|
71
|
+
focusAfterRender;
|
|
72
|
+
desktopFocus;
|
|
59
73
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
74
|
+
connectedCallback() {
|
|
75
|
+
if (typeof window === 'undefined')
|
|
76
|
+
return;
|
|
77
|
+
this.resizeObserver = new ResizeObserver(this.scheduleMeasure);
|
|
78
|
+
this.resizeObserver.observe(this.el);
|
|
79
|
+
this.mutationObserver = new MutationObserver(this.refreshObservedContent);
|
|
80
|
+
this.mutationObserver.observe(this.el, { subtree: true, childList: true, characterData: true, attributes: true });
|
|
81
|
+
this.el.addEventListener('load', this.scheduleMeasure, true);
|
|
82
|
+
window.addEventListener('resize', this.scheduleMeasure);
|
|
83
|
+
document.fonts?.addEventListener('loadingdone', this.scheduleMeasure);
|
|
84
|
+
void document.fonts?.ready.then(() => this.scheduleMeasure());
|
|
85
|
+
this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
|
|
86
|
+
this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
|
|
87
|
+
if (this.el.shadowRoot)
|
|
88
|
+
this.refreshObservedContent();
|
|
89
|
+
this.scheduleMeasure();
|
|
90
|
+
}
|
|
91
|
+
componentDidLoad() {
|
|
92
|
+
this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
|
|
93
|
+
this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
|
|
94
|
+
this.refreshObservedContent();
|
|
95
|
+
}
|
|
96
|
+
componentDidRender() {
|
|
97
|
+
if (this.focusAfterRender) {
|
|
98
|
+
const target = this.focusAfterRender;
|
|
99
|
+
(target !== 'navigation' && this.canReceiveFocus(target) ? target : this.firstNavigationControl()).focus();
|
|
100
|
+
this.focusAfterRender = undefined;
|
|
101
|
+
}
|
|
102
|
+
this.scheduleMeasure();
|
|
103
|
+
}
|
|
104
|
+
mobileModeChanged() {
|
|
105
|
+
if (!this.collision)
|
|
106
|
+
return;
|
|
107
|
+
const root = this.el.shadowRoot;
|
|
108
|
+
const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
|
|
109
|
+
this.setMenuOpen(false);
|
|
110
|
+
if (this.mobileMode === 'inline' && owned && (focused === root.querySelector('.menu-button') || inMobileSlot)) {
|
|
111
|
+
this.focusAfterRender = this.desktopFocus || 'navigation';
|
|
112
|
+
}
|
|
113
|
+
else if (this.mobileMode === 'menu' && focused && owned && !inBrand) {
|
|
114
|
+
this.desktopFocus = focused;
|
|
115
|
+
this.focusAfterRender = root.querySelector('.menu-button');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
60
118
|
disconnectedCallback() {
|
|
61
119
|
this.removeMenuDismissListeners();
|
|
120
|
+
this.resizeObserver?.disconnect();
|
|
121
|
+
this.mutationObserver?.disconnect();
|
|
122
|
+
cancelAnimationFrame(this.frame);
|
|
123
|
+
this.frame = 0;
|
|
124
|
+
this.el.removeEventListener('load', this.scheduleMeasure, true);
|
|
125
|
+
this.el.shadowRoot?.removeEventListener('slotchange', this.refreshObservedContent);
|
|
126
|
+
this.el.shadowRoot?.removeEventListener('load', this.scheduleMeasure, true);
|
|
127
|
+
window.removeEventListener('resize', this.scheduleMeasure);
|
|
128
|
+
document.fonts?.removeEventListener('loadingdone', this.scheduleMeasure);
|
|
129
|
+
}
|
|
130
|
+
refreshObservedContent = () => {
|
|
131
|
+
this.handleMobileSlotChange();
|
|
132
|
+
this.resizeObserver?.disconnect();
|
|
133
|
+
this.resizeObserver?.observe(this.el);
|
|
134
|
+
for (const node of [...Array.from(this.el.querySelectorAll('*')), ...Array.from(this.el.shadowRoot?.querySelectorAll('img, .brand-link, .desktop-actions, .nav-item-shell') || [])]) {
|
|
135
|
+
this.resizeObserver?.observe(node);
|
|
136
|
+
}
|
|
137
|
+
this.scheduleMeasure();
|
|
138
|
+
};
|
|
139
|
+
scheduleMeasure = () => {
|
|
140
|
+
if (!this.el.isConnected || this.frame)
|
|
141
|
+
return;
|
|
142
|
+
this.frame = requestAnimationFrame(() => {
|
|
143
|
+
this.frame = 0;
|
|
144
|
+
this.measureLayout();
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
/** Measure the original nodes synchronously; no cloned controls or hidden-width guesses. */
|
|
148
|
+
measureLayout() {
|
|
149
|
+
const root = this.el.shadowRoot;
|
|
150
|
+
const bar = root?.querySelector('.navbar');
|
|
151
|
+
if (!bar)
|
|
152
|
+
return;
|
|
153
|
+
const enabled = window.innerWidth > 720 && this.navAlign === 'center' && (this.edge === 'top' || this.edge === 'bottom');
|
|
154
|
+
let next = false;
|
|
155
|
+
if (enabled) {
|
|
156
|
+
const row = root.querySelector('.navbar-row');
|
|
157
|
+
const nav = root.querySelector('.desktop-nav');
|
|
158
|
+
bar.classList.add('is-measuring');
|
|
159
|
+
try {
|
|
160
|
+
const style = getComputedStyle(row);
|
|
161
|
+
const available = row.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
|
162
|
+
const gap = parseFloat(style.columnGap) || 0;
|
|
163
|
+
const brand = this.visualWidth(root.querySelector('.brand-link'));
|
|
164
|
+
const actions = this.visualWidth(root.querySelector('.desktop-actions'));
|
|
165
|
+
const navRect = nav.getBoundingClientRect();
|
|
166
|
+
const bounds = this.visualBounds(nav);
|
|
167
|
+
// Symmetric overflow allowance keeps the actual navigation group centred.
|
|
168
|
+
const navigation = navRect.width + 2 * Math.max(0, navRect.left - bounds.left, bounds.right - navRect.right);
|
|
169
|
+
const offset = Math.abs(parseFloat(getComputedStyle(nav).insetInlineStart) || 0);
|
|
170
|
+
const sides = this.navCenterWithin === 'container' ? 2 * Math.max(brand, actions) : brand + actions;
|
|
171
|
+
const spare = available - (sides + 2 * gap + navigation + 2 * offset);
|
|
172
|
+
next = spare < (this.collision ? 8 : 0);
|
|
173
|
+
}
|
|
174
|
+
finally {
|
|
175
|
+
bar.classList.remove('is-measuring');
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (next === this.collision)
|
|
179
|
+
return;
|
|
180
|
+
const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
|
|
181
|
+
const toggle = root.querySelector('.menu-button');
|
|
182
|
+
if (next && this.mobileMode === 'menu' && owned && !inBrand) {
|
|
183
|
+
this.desktopFocus = focused;
|
|
184
|
+
// Expose the toggle before the render hides the focused desktop control.
|
|
185
|
+
bar.classList.add('is-collapsed');
|
|
186
|
+
toggle.focus();
|
|
187
|
+
this.focusAfterRender = toggle;
|
|
188
|
+
}
|
|
189
|
+
else if (!next && this.collision) {
|
|
190
|
+
this.setMenuOpen(false);
|
|
191
|
+
if (owned) {
|
|
192
|
+
const desktopControl = focused !== toggle && !inMobileSlot ? focused : this.desktopFocus;
|
|
193
|
+
this.focusAfterRender = window.innerWidth <= 720 && this.mobileMode === 'menu' ? toggle :
|
|
194
|
+
desktopControl?.isConnected ? desktopControl : 'navigation';
|
|
195
|
+
}
|
|
196
|
+
this.desktopFocus = undefined;
|
|
197
|
+
}
|
|
198
|
+
this.collision = next;
|
|
199
|
+
}
|
|
200
|
+
visualBounds(element) {
|
|
201
|
+
const rect = element.getBoundingClientRect();
|
|
202
|
+
let left = rect.left;
|
|
203
|
+
let right = rect.right;
|
|
204
|
+
const visit = (node) => {
|
|
205
|
+
if (getComputedStyle(node).display === 'none')
|
|
206
|
+
return;
|
|
207
|
+
const box = node.getBoundingClientRect();
|
|
208
|
+
if (box.width && getComputedStyle(node).visibility !== 'hidden') {
|
|
209
|
+
left = Math.min(left, box.left);
|
|
210
|
+
right = Math.max(right, box.right);
|
|
211
|
+
}
|
|
212
|
+
const children = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : Array.from(node.shadowRoot?.children || node.children);
|
|
213
|
+
for (const child of children)
|
|
214
|
+
visit(child);
|
|
215
|
+
};
|
|
216
|
+
visit(element);
|
|
217
|
+
return { left, right };
|
|
218
|
+
}
|
|
219
|
+
visualWidth(element) {
|
|
220
|
+
const bounds = this.visualBounds(element);
|
|
221
|
+
return bounds.right - bounds.left;
|
|
222
|
+
}
|
|
223
|
+
firstNavigationControl() {
|
|
224
|
+
// Search the rendered tree, including assigned slots and custom controls' open shadows.
|
|
225
|
+
// Resolve this after rendering so the restored desktop controls are visible.
|
|
226
|
+
const find = (node) => {
|
|
227
|
+
if (node instanceof HTMLElement && node.tabIndex >= 0 && this.canReceiveFocus(node))
|
|
228
|
+
return node;
|
|
229
|
+
const assigned = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : [];
|
|
230
|
+
const children = node instanceof HTMLSlotElement && assigned.length ? assigned : Array.from(node.shadowRoot?.children || node.children);
|
|
231
|
+
for (const child of children) {
|
|
232
|
+
const control = find(child);
|
|
233
|
+
if (control)
|
|
234
|
+
return control;
|
|
235
|
+
}
|
|
236
|
+
return undefined;
|
|
237
|
+
};
|
|
238
|
+
return find(this.el.shadowRoot.querySelector('.desktop-nav')) || this.el.shadowRoot.querySelector('.brand-link');
|
|
239
|
+
}
|
|
240
|
+
canReceiveFocus(element) {
|
|
241
|
+
if (!element.isConnected || !element.checkVisibility() || getComputedStyle(element).visibility !== 'visible')
|
|
242
|
+
return false;
|
|
243
|
+
let node = element;
|
|
244
|
+
while (node && node !== this.el) {
|
|
245
|
+
if (node instanceof HTMLElement && node.matches(':disabled, [disabled], [aria-disabled="true"], [inert], [aria-hidden="true"]'))
|
|
246
|
+
return false;
|
|
247
|
+
node = this.composedParent(node);
|
|
248
|
+
}
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
composedParent(node) {
|
|
252
|
+
return node instanceof HTMLElement && node.assignedSlot ? node.assignedSlot :
|
|
253
|
+
node.parentNode || (node instanceof ShadowRoot ? node.host : null);
|
|
254
|
+
}
|
|
255
|
+
focusContext() {
|
|
256
|
+
let focused = (this.el.shadowRoot?.activeElement || document.activeElement);
|
|
257
|
+
while (focused?.shadowRoot?.activeElement)
|
|
258
|
+
focused = focused.shadowRoot.activeElement;
|
|
259
|
+
let owner = focused;
|
|
260
|
+
let inBrand = false;
|
|
261
|
+
let inMobileSlot = false;
|
|
262
|
+
while (owner && owner !== this.el) {
|
|
263
|
+
if (owner instanceof HTMLElement) {
|
|
264
|
+
inBrand ||= owner.matches('.brand-link, [slot="brand"]');
|
|
265
|
+
inMobileSlot ||= owner.matches('[slot="mobile-nav"], [slot="mobile-actions"]');
|
|
266
|
+
}
|
|
267
|
+
owner = this.composedParent(owner);
|
|
268
|
+
}
|
|
269
|
+
return { focused, owned: owner === this.el, inBrand, inMobileSlot };
|
|
62
270
|
}
|
|
63
271
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
64
272
|
get parsedItems() {
|
|
@@ -99,6 +307,8 @@ const QNavbar = class {
|
|
|
99
307
|
handleDocumentKeyDown = (ev) => {
|
|
100
308
|
if (ev.key === 'Escape') {
|
|
101
309
|
this.handleMenuClose();
|
|
310
|
+
if (this.collision)
|
|
311
|
+
this.el.shadowRoot?.querySelector('.menu-button')?.focus();
|
|
102
312
|
}
|
|
103
313
|
};
|
|
104
314
|
handleWindowClick = (ev) => {
|
|
@@ -125,7 +335,9 @@ const QNavbar = class {
|
|
|
125
335
|
this.handleMenuClose();
|
|
126
336
|
};
|
|
127
337
|
handleMobileSlotChange = () => {
|
|
128
|
-
this.
|
|
338
|
+
this.hasMobileNav = !!this.el.querySelector(':scope > [slot="mobile-nav"]');
|
|
339
|
+
this.hasMobileActions = !!this.el.querySelector(':scope > [slot="mobile-actions"]');
|
|
340
|
+
this.hasMobileContent = this.hasMobileNav || this.hasMobileActions;
|
|
129
341
|
};
|
|
130
342
|
setIconAttribute(el, name, value) {
|
|
131
343
|
if (value === undefined || value === null || value === '') {
|
|
@@ -141,7 +353,7 @@ const QNavbar = class {
|
|
|
141
353
|
if (!el || !item.icon)
|
|
142
354
|
return;
|
|
143
355
|
this.setIconAttribute(el, 'name', item.icon);
|
|
144
|
-
this.setIconAttribute(el, '
|
|
356
|
+
this.setIconAttribute(el, 'library', item.iconLib || 'lucide');
|
|
145
357
|
this.setIconAttribute(el, 'size', item.iconSize || 'sm');
|
|
146
358
|
this.setIconAttribute(el, 'local-path', item.iconLocalPath);
|
|
147
359
|
};
|
|
@@ -152,7 +364,8 @@ const QNavbar = class {
|
|
|
152
364
|
return (index.h("a", { class: "brand-link", href: this.brandHref, part: "brand" }, index.h("slot", { name: "brand" }, content)));
|
|
153
365
|
}
|
|
154
366
|
renderNavItem({ item, key }) {
|
|
155
|
-
const
|
|
367
|
+
const value = this.value ?? this.activeValue;
|
|
368
|
+
const active = item.active || (!!value && (item.value === value || item.href === value));
|
|
156
369
|
const iconOnly = !!item.iconOnly && !!item.icon;
|
|
157
370
|
const accessibleLabel = iconOnly ? item.ariaLabel || item.label : undefined;
|
|
158
371
|
const addonPlacement = item.addonPlacement || 'top-end';
|
|
@@ -163,7 +376,7 @@ const QNavbar = class {
|
|
|
163
376
|
'is-icon-only': iconOnly,
|
|
164
377
|
};
|
|
165
378
|
const content = [
|
|
166
|
-
item.icon && (index.h("q-icon", { class: "nav-item__icon", name: item.icon,
|
|
379
|
+
item.icon && (index.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) })),
|
|
167
380
|
index.h("span", { class: "nav-item__label", "aria-hidden": iconOnly ? 'true' : undefined }, item.label),
|
|
168
381
|
];
|
|
169
382
|
const addon = item.addonSlot ? (index.h("span", { class: `nav-item__addon is-${addonPlacement}`, part: "item-addon" }, index.h("slot", { name: item.addonSlot }))) : null;
|
|
@@ -179,15 +392,23 @@ const QNavbar = class {
|
|
|
179
392
|
const items = collectionIdentity.identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
180
393
|
const hasItems = items.length > 0;
|
|
181
394
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
182
|
-
return (index.h("div", { key: '
|
|
395
|
+
return (index.h("div", { key: '00f888b080a074ec3685ceada5d496326514e2fb', class: {
|
|
183
396
|
'navbar': true,
|
|
184
397
|
'is-open': this.menuOpen,
|
|
185
398
|
'is-sticky': this.sticky,
|
|
186
399
|
'is-compact': this.compact,
|
|
187
400
|
'is-transparent': this.transparent,
|
|
188
401
|
'is-bordered': this.bordered,
|
|
189
|
-
|
|
402
|
+
'is-collapsed': this.collision,
|
|
403
|
+
'has-mobile-nav': this.hasMobileNav,
|
|
404
|
+
'has-mobile-actions': this.hasMobileActions,
|
|
405
|
+
}, part: "navbar" }, index.h("div", { key: 'f24c91309c2c5987ef1b84f79acdcb31ae521b86', class: "navbar-row" }, this.renderBrand(), index.h("nav", { key: '3e26ddc18f190a92bbd9056dabe1329f15caa4f2', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), index.h("slot", { key: '1a45ae975cff2d34f8c689901ba0f7bec4fdd3f2', name: "nav" })), index.h("div", { key: 'da8baabd5a3cc1ea8d8b15cfc18928c140d9d3be', class: "desktop-actions", part: "actions" }, index.h("slot", { key: 'd07790314852c69fd8244a6efbbb5e107beafb8f', name: "actions" })), index.h("button", { key: '68109104c149b3c7a8f63b15e5114ec9051b1c0a', 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" }, index.h("span", { key: 'bb6052833d3e863fb74e54d2c2c243dabe708767' }), index.h("span", { key: '6b2238110e06b3fa5510d4838732bcc3f5200951' }), index.h("span", { key: '5d5d00183cf6692d56a26f87282e9893a0a8ff97' }))), index.h("div", { key: 'a5b00cc3d4329ff1f8fe494e5ae018eec30eb078', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, index.h("nav", { key: 'cfddcab8350f89a39eb32a9dbd0708cd58b9ee2c', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, index.h("slot", { key: '11206e1984ec839c509055e2e67c16055617e2af', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), index.h("div", { key: 'aa0744fdee9e3657b594aa660223199a2a89a9ac', class: "mobile-actions" }, index.h("slot", { key: '3c673b53b9becd58603a1b1719c78fb06cefb92a', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
190
406
|
}
|
|
407
|
+
static get watchers() { return {
|
|
408
|
+
"mobileMode": [{
|
|
409
|
+
"mobileModeChanged": 0
|
|
410
|
+
}]
|
|
411
|
+
}; }
|
|
191
412
|
};
|
|
192
413
|
QNavbar.style = navbarCss();
|
|
193
414
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
|
|
5
5
|
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}}`;
|
|
6
6
|
|
|
@@ -54,7 +54,7 @@ const QPagination = class {
|
|
|
54
54
|
const itemLabel = this.itemLabel.trim() || 'items';
|
|
55
55
|
const previousDisabled = this.disabled || totalItems === 0 || page <= 1;
|
|
56
56
|
const nextDisabled = this.disabled || totalItems === 0 || page >= pageCount;
|
|
57
|
-
return (index.h("nav", { key: '
|
|
57
|
+
return (index.h("nav", { key: '44517344440b2f1f8fb05d09678ceb63d769ab63', class: "pagination", part: "container", "aria-label": this.ariaLabel?.trim() || 'Pagination' }, this.showSummary && (index.h("span", { key: 'fbdbe6a34b4f3b0310a48c9cd2fc78648ebc4138', class: "summary", part: "summary", "aria-live": "polite" }, "Showing ", pageStart, "-", pageEnd, " of ", totalItems, " ", itemLabel)), index.h("div", { key: '908843e7312d7a7f9c604f5c389bf1425e2df515', class: "controls", part: "controls" }, index.h("button", { key: '80b38e8bcfe16368e9a339e675cf07dd9225e783', class: "page-button", part: "previous-button", type: "button", disabled: previousDisabled, "aria-label": "Previous page", onClick: () => this.requestPage(page - 1) }, "Previous"), index.h("span", { key: 'e07fc9bbcf35c86504361768694f2bb3601eae10', class: "page-count", part: "page-count", "aria-label": `Page ${page} of ${pageCount}` }, page, " / ", pageCount), index.h("button", { key: 'cd50e90003cb0912d18f171284040a271d371444', class: "page-button", part: "next-button", type: "button", disabled: nextDisabled, "aria-label": "Next page", onClick: () => this.requestPage(page + 1) }, "Next"))));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
function positiveInteger(value, fallback) {
|