@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
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { spaceValue } from "../../../theme/tokens";
|
|
3
|
+
/** Wrapping action/content row.
|
|
4
|
+
* @slot - Row items.
|
|
5
|
+
* @part layout - Layout container.
|
|
6
|
+
*/
|
|
7
|
+
export class QInline {
|
|
8
|
+
gap = 'sm';
|
|
9
|
+
align = 'center';
|
|
10
|
+
justify = 'start';
|
|
11
|
+
wrap = true;
|
|
12
|
+
render() {
|
|
13
|
+
return h("div", { key: 'ebe4ece8eeb27fbe52feda65eda69a7717fc3c44', part: "layout", style: { gap: spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, h("slot", { key: '939bc58eb0fb9a3bf4246e51f7587c65d1014086' }));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "q-inline"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get originalStyleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["inline.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get styleUrls() {
|
|
23
|
+
return {
|
|
24
|
+
"$": ["inline.css"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static get properties() {
|
|
28
|
+
return {
|
|
29
|
+
"gap": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"mutable": false,
|
|
32
|
+
"complexType": {
|
|
33
|
+
"original": "QSpace",
|
|
34
|
+
"resolved": "\"2xl\" | \"3xl\" | \"lg\" | \"md\" | \"none\" | \"sm\" | \"xl\" | \"xs\"",
|
|
35
|
+
"references": {
|
|
36
|
+
"QSpace": {
|
|
37
|
+
"location": "import",
|
|
38
|
+
"path": "../../../theme/tokens",
|
|
39
|
+
"id": "src/theme/tokens.ts::QSpace",
|
|
40
|
+
"referenceLocation": "QSpace"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"getter": false,
|
|
51
|
+
"setter": false,
|
|
52
|
+
"reflect": false,
|
|
53
|
+
"attribute": "gap",
|
|
54
|
+
"defaultValue": "'sm'"
|
|
55
|
+
},
|
|
56
|
+
"align": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "'stretch' | 'start' | 'center' | 'end'",
|
|
61
|
+
"resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false,
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"attribute": "align",
|
|
74
|
+
"defaultValue": "'center'"
|
|
75
|
+
},
|
|
76
|
+
"justify": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "'start' | 'center' | 'end' | 'between'",
|
|
81
|
+
"resolved": "\"between\" | \"center\" | \"end\" | \"start\"",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
92
|
+
"reflect": false,
|
|
93
|
+
"attribute": "justify",
|
|
94
|
+
"defaultValue": "'start'"
|
|
95
|
+
},
|
|
96
|
+
"wrap": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "boolean",
|
|
101
|
+
"resolved": "boolean",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"attribute": "wrap",
|
|
114
|
+
"defaultValue": "true"
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -463,3 +463,122 @@
|
|
|
463
463
|
display: none;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
+
|
|
467
|
+
/* Alignment is deliberately isolated from the legacy viewport and vertical layouts. */
|
|
468
|
+
@media (min-width: 720.01px) {
|
|
469
|
+
:host(:is([edge='top'], [edge='bottom'])[nav-align='end']) .desktop-nav {
|
|
470
|
+
justify-content: flex-end;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
:host(:is([edge='top'], [edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .desktop-nav {
|
|
474
|
+
justify-content: center;
|
|
475
|
+
position: relative;
|
|
476
|
+
inset-inline-start: var(--q-navbar-nav-offset-inline, 0px);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
:host(:is([edge='top'], [edge='bottom'])[nav-align='center'][nav-center-within='container']) .navbar:not(.is-collapsed) .navbar-row {
|
|
480
|
+
display: grid;
|
|
481
|
+
grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
:host(:is([edge='top'], [edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .brand-link {
|
|
485
|
+
justify-self: start;
|
|
486
|
+
flex-shrink: 0;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.is-collapsed .navbar-row {
|
|
490
|
+
display: flex;
|
|
491
|
+
flex-wrap: wrap;
|
|
492
|
+
justify-content: space-between;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.is-collapsed .desktop-nav {
|
|
496
|
+
order: 3;
|
|
497
|
+
flex: 1 0 100%;
|
|
498
|
+
flex-wrap: wrap;
|
|
499
|
+
justify-content: center;
|
|
500
|
+
inset-inline-start: auto;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
:host([mobile-mode='menu']) .is-collapsed .desktop-nav,
|
|
504
|
+
:host([mobile-mode='menu']) .is-collapsed .desktop-actions {
|
|
505
|
+
display: none;
|
|
506
|
+
order: 3;
|
|
507
|
+
flex: 1 0 100%;
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
align-items: stretch;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
:host([mobile-mode='menu']) .is-collapsed.is-open .desktop-nav,
|
|
513
|
+
:host([mobile-mode='menu']) .is-collapsed.is-open:not(.has-mobile-actions) .desktop-actions {
|
|
514
|
+
display: flex;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
:host([mobile-mode='menu']) .is-collapsed.has-mobile-nav slot[name='nav'] {
|
|
518
|
+
display: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
:host([mobile-mode='menu']) .is-collapsed .nav-item-shell,
|
|
522
|
+
:host([mobile-mode='menu']) .is-collapsed .nav-item {
|
|
523
|
+
width: 100%;
|
|
524
|
+
justify-content: flex-start;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
:host([mobile-mode='menu']) .is-collapsed .menu-button {
|
|
528
|
+
display: inline-flex;
|
|
529
|
+
flex-shrink: 0;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
:host([mobile-mode='menu']) .is-collapsed.is-open .mobile-panel.has-content {
|
|
533
|
+
display: block;
|
|
534
|
+
padding: var(--q-navbar-mobile-panel-padding, 8px 16px 16px);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.is-collapsed .mobile-nav,
|
|
538
|
+
.is-collapsed .mobile-actions {
|
|
539
|
+
display: flex;
|
|
540
|
+
flex-direction: column;
|
|
541
|
+
gap: 6px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
:host([edge='bottom'][mobile-mode='menu']) .is-collapsed {
|
|
545
|
+
display: flex;
|
|
546
|
+
flex-direction: column-reverse;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-nav,
|
|
550
|
+
:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-actions {
|
|
551
|
+
order: -1;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* Read intrinsic desktop dimensions on the original nodes, then restore before paint. */
|
|
555
|
+
:host .navbar.is-measuring .navbar-row {
|
|
556
|
+
display: flex;
|
|
557
|
+
flex-wrap: nowrap;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
:host .navbar.is-measuring :is(.brand-link, .desktop-nav, .desktop-actions) {
|
|
561
|
+
display: flex;
|
|
562
|
+
flex: 0 0 auto;
|
|
563
|
+
width: max-content;
|
|
564
|
+
max-width: none;
|
|
565
|
+
flex-direction: row;
|
|
566
|
+
flex-wrap: nowrap;
|
|
567
|
+
order: 0;
|
|
568
|
+
align-items: center;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
:host .navbar.is-measuring .desktop-nav {
|
|
572
|
+
position: relative;
|
|
573
|
+
inset-inline-start: var(--q-navbar-nav-offset-inline, 0px);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
:host .navbar.is-measuring .desktop-nav slot[name='nav'] {
|
|
577
|
+
display: contents;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
:host .navbar.is-measuring :is(.nav-item-shell, .nav-item) {
|
|
581
|
+
width: var(--q-navbar-item-width, max-content);
|
|
582
|
+
flex-shrink: 0;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
@@ -29,12 +29,18 @@ export class QNavbar {
|
|
|
29
29
|
/** Navigation items; strings use the same text for label and value, while objects enable links, icons, and state. */
|
|
30
30
|
items = [];
|
|
31
31
|
/** Matches either an item's value or `href`. */
|
|
32
|
+
value;
|
|
33
|
+
/** @deprecated Use value. Used only when value is unset. */
|
|
32
34
|
activeValue = '';
|
|
33
35
|
edge = 'top';
|
|
34
36
|
sticky = false;
|
|
35
37
|
compact = false;
|
|
36
38
|
transparent = false;
|
|
37
39
|
bordered = true;
|
|
40
|
+
/** Horizontal desktop navigation alignment. */
|
|
41
|
+
navAlign = 'start';
|
|
42
|
+
/** Reference box for centred horizontal desktop navigation. */
|
|
43
|
+
navCenterWithin = 'available';
|
|
38
44
|
/** Controls whether mobile widths collapse items into a menu or keep them inline. */
|
|
39
45
|
mobileMode = 'menu';
|
|
40
46
|
/** Accessible label for the mobile menu toggle button. */
|
|
@@ -46,13 +52,215 @@ export class QNavbar {
|
|
|
46
52
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
47
53
|
menuOpen = false;
|
|
48
54
|
hasMobileContent = false;
|
|
55
|
+
collision = false;
|
|
56
|
+
hasMobileNav = false;
|
|
57
|
+
hasMobileActions = false;
|
|
49
58
|
instanceId = ++navbarIds;
|
|
50
59
|
primaryNavId = `q-navbar-primary-nav-${this.instanceId}`;
|
|
51
60
|
mobilePanelId = `q-navbar-mobile-panel-${this.instanceId}`;
|
|
52
61
|
dismissListenersActive = false;
|
|
62
|
+
resizeObserver;
|
|
63
|
+
mutationObserver;
|
|
64
|
+
frame = 0;
|
|
65
|
+
focusAfterRender;
|
|
66
|
+
desktopFocus;
|
|
53
67
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
68
|
+
connectedCallback() {
|
|
69
|
+
if (typeof window === 'undefined')
|
|
70
|
+
return;
|
|
71
|
+
this.resizeObserver = new ResizeObserver(this.scheduleMeasure);
|
|
72
|
+
this.resizeObserver.observe(this.el);
|
|
73
|
+
this.mutationObserver = new MutationObserver(this.refreshObservedContent);
|
|
74
|
+
this.mutationObserver.observe(this.el, { subtree: true, childList: true, characterData: true, attributes: true });
|
|
75
|
+
this.el.addEventListener('load', this.scheduleMeasure, true);
|
|
76
|
+
window.addEventListener('resize', this.scheduleMeasure);
|
|
77
|
+
document.fonts?.addEventListener('loadingdone', this.scheduleMeasure);
|
|
78
|
+
void document.fonts?.ready.then(() => this.scheduleMeasure());
|
|
79
|
+
this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
|
|
80
|
+
this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
|
|
81
|
+
if (this.el.shadowRoot)
|
|
82
|
+
this.refreshObservedContent();
|
|
83
|
+
this.scheduleMeasure();
|
|
84
|
+
}
|
|
85
|
+
componentDidLoad() {
|
|
86
|
+
this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
|
|
87
|
+
this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
|
|
88
|
+
this.refreshObservedContent();
|
|
89
|
+
}
|
|
90
|
+
componentDidRender() {
|
|
91
|
+
if (this.focusAfterRender) {
|
|
92
|
+
const target = this.focusAfterRender;
|
|
93
|
+
(target !== 'navigation' && this.canReceiveFocus(target) ? target : this.firstNavigationControl()).focus();
|
|
94
|
+
this.focusAfterRender = undefined;
|
|
95
|
+
}
|
|
96
|
+
this.scheduleMeasure();
|
|
97
|
+
}
|
|
98
|
+
mobileModeChanged() {
|
|
99
|
+
if (!this.collision)
|
|
100
|
+
return;
|
|
101
|
+
const root = this.el.shadowRoot;
|
|
102
|
+
const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
|
|
103
|
+
this.setMenuOpen(false);
|
|
104
|
+
if (this.mobileMode === 'inline' && owned && (focused === root.querySelector('.menu-button') || inMobileSlot)) {
|
|
105
|
+
this.focusAfterRender = this.desktopFocus || 'navigation';
|
|
106
|
+
}
|
|
107
|
+
else if (this.mobileMode === 'menu' && focused && owned && !inBrand) {
|
|
108
|
+
this.desktopFocus = focused;
|
|
109
|
+
this.focusAfterRender = root.querySelector('.menu-button');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
54
112
|
disconnectedCallback() {
|
|
55
113
|
this.removeMenuDismissListeners();
|
|
114
|
+
this.resizeObserver?.disconnect();
|
|
115
|
+
this.mutationObserver?.disconnect();
|
|
116
|
+
cancelAnimationFrame(this.frame);
|
|
117
|
+
this.frame = 0;
|
|
118
|
+
this.el.removeEventListener('load', this.scheduleMeasure, true);
|
|
119
|
+
this.el.shadowRoot?.removeEventListener('slotchange', this.refreshObservedContent);
|
|
120
|
+
this.el.shadowRoot?.removeEventListener('load', this.scheduleMeasure, true);
|
|
121
|
+
window.removeEventListener('resize', this.scheduleMeasure);
|
|
122
|
+
document.fonts?.removeEventListener('loadingdone', this.scheduleMeasure);
|
|
123
|
+
}
|
|
124
|
+
refreshObservedContent = () => {
|
|
125
|
+
this.handleMobileSlotChange();
|
|
126
|
+
this.resizeObserver?.disconnect();
|
|
127
|
+
this.resizeObserver?.observe(this.el);
|
|
128
|
+
for (const node of [...Array.from(this.el.querySelectorAll('*')), ...Array.from(this.el.shadowRoot?.querySelectorAll('img, .brand-link, .desktop-actions, .nav-item-shell') || [])]) {
|
|
129
|
+
this.resizeObserver?.observe(node);
|
|
130
|
+
}
|
|
131
|
+
this.scheduleMeasure();
|
|
132
|
+
};
|
|
133
|
+
scheduleMeasure = () => {
|
|
134
|
+
if (!this.el.isConnected || this.frame)
|
|
135
|
+
return;
|
|
136
|
+
this.frame = requestAnimationFrame(() => {
|
|
137
|
+
this.frame = 0;
|
|
138
|
+
this.measureLayout();
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/** Measure the original nodes synchronously; no cloned controls or hidden-width guesses. */
|
|
142
|
+
measureLayout() {
|
|
143
|
+
const root = this.el.shadowRoot;
|
|
144
|
+
const bar = root?.querySelector('.navbar');
|
|
145
|
+
if (!bar)
|
|
146
|
+
return;
|
|
147
|
+
const enabled = window.innerWidth > 720 && this.navAlign === 'center' && (this.edge === 'top' || this.edge === 'bottom');
|
|
148
|
+
let next = false;
|
|
149
|
+
if (enabled) {
|
|
150
|
+
const row = root.querySelector('.navbar-row');
|
|
151
|
+
const nav = root.querySelector('.desktop-nav');
|
|
152
|
+
bar.classList.add('is-measuring');
|
|
153
|
+
try {
|
|
154
|
+
const style = getComputedStyle(row);
|
|
155
|
+
const available = row.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
|
156
|
+
const gap = parseFloat(style.columnGap) || 0;
|
|
157
|
+
const brand = this.visualWidth(root.querySelector('.brand-link'));
|
|
158
|
+
const actions = this.visualWidth(root.querySelector('.desktop-actions'));
|
|
159
|
+
const navRect = nav.getBoundingClientRect();
|
|
160
|
+
const bounds = this.visualBounds(nav);
|
|
161
|
+
// Symmetric overflow allowance keeps the actual navigation group centred.
|
|
162
|
+
const navigation = navRect.width + 2 * Math.max(0, navRect.left - bounds.left, bounds.right - navRect.right);
|
|
163
|
+
const offset = Math.abs(parseFloat(getComputedStyle(nav).insetInlineStart) || 0);
|
|
164
|
+
const sides = this.navCenterWithin === 'container' ? 2 * Math.max(brand, actions) : brand + actions;
|
|
165
|
+
const spare = available - (sides + 2 * gap + navigation + 2 * offset);
|
|
166
|
+
next = spare < (this.collision ? 8 : 0);
|
|
167
|
+
}
|
|
168
|
+
finally {
|
|
169
|
+
bar.classList.remove('is-measuring');
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (next === this.collision)
|
|
173
|
+
return;
|
|
174
|
+
const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
|
|
175
|
+
const toggle = root.querySelector('.menu-button');
|
|
176
|
+
if (next && this.mobileMode === 'menu' && owned && !inBrand) {
|
|
177
|
+
this.desktopFocus = focused;
|
|
178
|
+
// Expose the toggle before the render hides the focused desktop control.
|
|
179
|
+
bar.classList.add('is-collapsed');
|
|
180
|
+
toggle.focus();
|
|
181
|
+
this.focusAfterRender = toggle;
|
|
182
|
+
}
|
|
183
|
+
else if (!next && this.collision) {
|
|
184
|
+
this.setMenuOpen(false);
|
|
185
|
+
if (owned) {
|
|
186
|
+
const desktopControl = focused !== toggle && !inMobileSlot ? focused : this.desktopFocus;
|
|
187
|
+
this.focusAfterRender = window.innerWidth <= 720 && this.mobileMode === 'menu' ? toggle :
|
|
188
|
+
desktopControl?.isConnected ? desktopControl : 'navigation';
|
|
189
|
+
}
|
|
190
|
+
this.desktopFocus = undefined;
|
|
191
|
+
}
|
|
192
|
+
this.collision = next;
|
|
193
|
+
}
|
|
194
|
+
visualBounds(element) {
|
|
195
|
+
const rect = element.getBoundingClientRect();
|
|
196
|
+
let left = rect.left;
|
|
197
|
+
let right = rect.right;
|
|
198
|
+
const visit = (node) => {
|
|
199
|
+
if (getComputedStyle(node).display === 'none')
|
|
200
|
+
return;
|
|
201
|
+
const box = node.getBoundingClientRect();
|
|
202
|
+
if (box.width && getComputedStyle(node).visibility !== 'hidden') {
|
|
203
|
+
left = Math.min(left, box.left);
|
|
204
|
+
right = Math.max(right, box.right);
|
|
205
|
+
}
|
|
206
|
+
const children = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : Array.from(node.shadowRoot?.children || node.children);
|
|
207
|
+
for (const child of children)
|
|
208
|
+
visit(child);
|
|
209
|
+
};
|
|
210
|
+
visit(element);
|
|
211
|
+
return { left, right };
|
|
212
|
+
}
|
|
213
|
+
visualWidth(element) {
|
|
214
|
+
const bounds = this.visualBounds(element);
|
|
215
|
+
return bounds.right - bounds.left;
|
|
216
|
+
}
|
|
217
|
+
firstNavigationControl() {
|
|
218
|
+
// Search the rendered tree, including assigned slots and custom controls' open shadows.
|
|
219
|
+
// Resolve this after rendering so the restored desktop controls are visible.
|
|
220
|
+
const find = (node) => {
|
|
221
|
+
if (node instanceof HTMLElement && node.tabIndex >= 0 && this.canReceiveFocus(node))
|
|
222
|
+
return node;
|
|
223
|
+
const assigned = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : [];
|
|
224
|
+
const children = node instanceof HTMLSlotElement && assigned.length ? assigned : Array.from(node.shadowRoot?.children || node.children);
|
|
225
|
+
for (const child of children) {
|
|
226
|
+
const control = find(child);
|
|
227
|
+
if (control)
|
|
228
|
+
return control;
|
|
229
|
+
}
|
|
230
|
+
return undefined;
|
|
231
|
+
};
|
|
232
|
+
return find(this.el.shadowRoot.querySelector('.desktop-nav')) || this.el.shadowRoot.querySelector('.brand-link');
|
|
233
|
+
}
|
|
234
|
+
canReceiveFocus(element) {
|
|
235
|
+
if (!element.isConnected || !element.checkVisibility() || getComputedStyle(element).visibility !== 'visible')
|
|
236
|
+
return false;
|
|
237
|
+
let node = element;
|
|
238
|
+
while (node && node !== this.el) {
|
|
239
|
+
if (node instanceof HTMLElement && node.matches(':disabled, [disabled], [aria-disabled="true"], [inert], [aria-hidden="true"]'))
|
|
240
|
+
return false;
|
|
241
|
+
node = this.composedParent(node);
|
|
242
|
+
}
|
|
243
|
+
return true;
|
|
244
|
+
}
|
|
245
|
+
composedParent(node) {
|
|
246
|
+
return node instanceof HTMLElement && node.assignedSlot ? node.assignedSlot :
|
|
247
|
+
node.parentNode || (node instanceof ShadowRoot ? node.host : null);
|
|
248
|
+
}
|
|
249
|
+
focusContext() {
|
|
250
|
+
let focused = (this.el.shadowRoot?.activeElement || document.activeElement);
|
|
251
|
+
while (focused?.shadowRoot?.activeElement)
|
|
252
|
+
focused = focused.shadowRoot.activeElement;
|
|
253
|
+
let owner = focused;
|
|
254
|
+
let inBrand = false;
|
|
255
|
+
let inMobileSlot = false;
|
|
256
|
+
while (owner && owner !== this.el) {
|
|
257
|
+
if (owner instanceof HTMLElement) {
|
|
258
|
+
inBrand ||= owner.matches('.brand-link, [slot="brand"]');
|
|
259
|
+
inMobileSlot ||= owner.matches('[slot="mobile-nav"], [slot="mobile-actions"]');
|
|
260
|
+
}
|
|
261
|
+
owner = this.composedParent(owner);
|
|
262
|
+
}
|
|
263
|
+
return { focused, owned: owner === this.el, inBrand, inMobileSlot };
|
|
56
264
|
}
|
|
57
265
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
58
266
|
get parsedItems() {
|
|
@@ -93,6 +301,8 @@ export class QNavbar {
|
|
|
93
301
|
handleDocumentKeyDown = (ev) => {
|
|
94
302
|
if (ev.key === 'Escape') {
|
|
95
303
|
this.handleMenuClose();
|
|
304
|
+
if (this.collision)
|
|
305
|
+
this.el.shadowRoot?.querySelector('.menu-button')?.focus();
|
|
96
306
|
}
|
|
97
307
|
};
|
|
98
308
|
handleWindowClick = (ev) => {
|
|
@@ -119,7 +329,9 @@ export class QNavbar {
|
|
|
119
329
|
this.handleMenuClose();
|
|
120
330
|
};
|
|
121
331
|
handleMobileSlotChange = () => {
|
|
122
|
-
this.
|
|
332
|
+
this.hasMobileNav = !!this.el.querySelector(':scope > [slot="mobile-nav"]');
|
|
333
|
+
this.hasMobileActions = !!this.el.querySelector(':scope > [slot="mobile-actions"]');
|
|
334
|
+
this.hasMobileContent = this.hasMobileNav || this.hasMobileActions;
|
|
123
335
|
};
|
|
124
336
|
setIconAttribute(el, name, value) {
|
|
125
337
|
if (value === undefined || value === null || value === '') {
|
|
@@ -135,7 +347,7 @@ export class QNavbar {
|
|
|
135
347
|
if (!el || !item.icon)
|
|
136
348
|
return;
|
|
137
349
|
this.setIconAttribute(el, 'name', item.icon);
|
|
138
|
-
this.setIconAttribute(el, '
|
|
350
|
+
this.setIconAttribute(el, 'library', item.iconLib || 'lucide');
|
|
139
351
|
this.setIconAttribute(el, 'size', item.iconSize || 'sm');
|
|
140
352
|
this.setIconAttribute(el, 'local-path', item.iconLocalPath);
|
|
141
353
|
};
|
|
@@ -146,7 +358,8 @@ export class QNavbar {
|
|
|
146
358
|
return (h("a", { class: "brand-link", href: this.brandHref, part: "brand" }, h("slot", { name: "brand" }, content)));
|
|
147
359
|
}
|
|
148
360
|
renderNavItem({ item, key }) {
|
|
149
|
-
const
|
|
361
|
+
const value = this.value ?? this.activeValue;
|
|
362
|
+
const active = item.active || (!!value && (item.value === value || item.href === value));
|
|
150
363
|
const iconOnly = !!item.iconOnly && !!item.icon;
|
|
151
364
|
const accessibleLabel = iconOnly ? item.ariaLabel || item.label : undefined;
|
|
152
365
|
const addonPlacement = item.addonPlacement || 'top-end';
|
|
@@ -157,7 +370,7 @@ export class QNavbar {
|
|
|
157
370
|
'is-icon-only': iconOnly,
|
|
158
371
|
};
|
|
159
372
|
const content = [
|
|
160
|
-
item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon,
|
|
373
|
+
item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: item.iconLib || 'lucide', localPath: item.iconLocalPath, size: item.iconSize || 'sm', ref: (el) => this.syncIconAttributes(el, item) })),
|
|
161
374
|
h("span", { class: "nav-item__label", "aria-hidden": iconOnly ? 'true' : undefined }, item.label),
|
|
162
375
|
];
|
|
163
376
|
const addon = item.addonSlot ? (h("span", { class: `nav-item__addon is-${addonPlacement}`, part: "item-addon" }, h("slot", { name: item.addonSlot }))) : null;
|
|
@@ -173,14 +386,17 @@ export class QNavbar {
|
|
|
173
386
|
const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
174
387
|
const hasItems = items.length > 0;
|
|
175
388
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
176
|
-
return (h("div", { key: '
|
|
389
|
+
return (h("div", { key: '00f888b080a074ec3685ceada5d496326514e2fb', class: {
|
|
177
390
|
'navbar': true,
|
|
178
391
|
'is-open': this.menuOpen,
|
|
179
392
|
'is-sticky': this.sticky,
|
|
180
393
|
'is-compact': this.compact,
|
|
181
394
|
'is-transparent': this.transparent,
|
|
182
395
|
'is-bordered': this.bordered,
|
|
183
|
-
|
|
396
|
+
'is-collapsed': this.collision,
|
|
397
|
+
'has-mobile-nav': this.hasMobileNav,
|
|
398
|
+
'has-mobile-actions': this.hasMobileActions,
|
|
399
|
+
}, part: "navbar" }, h("div", { key: 'f24c91309c2c5987ef1b84f79acdcb31ae521b86', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '3e26ddc18f190a92bbd9056dabe1329f15caa4f2', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '1a45ae975cff2d34f8c689901ba0f7bec4fdd3f2', name: "nav" })), h("div", { key: 'da8baabd5a3cc1ea8d8b15cfc18928c140d9d3be', class: "desktop-actions", part: "actions" }, h("slot", { key: 'd07790314852c69fd8244a6efbbb5e107beafb8f', name: "actions" })), 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" }, h("span", { key: 'bb6052833d3e863fb74e54d2c2c243dabe708767' }), h("span", { key: '6b2238110e06b3fa5510d4838732bcc3f5200951' }), h("span", { key: '5d5d00183cf6692d56a26f87282e9893a0a8ff97' }))), h("div", { key: 'a5b00cc3d4329ff1f8fe494e5ae018eec30eb078', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'cfddcab8350f89a39eb32a9dbd0708cd58b9ee2c', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '11206e1984ec839c509055e2e67c16055617e2af', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'aa0744fdee9e3657b594aa660223199a2a89a9ac', class: "mobile-actions" }, h("slot", { key: '3c673b53b9becd58603a1b1719c78fb06cefb92a', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
184
400
|
}
|
|
185
401
|
static get is() { return "q-navbar"; }
|
|
186
402
|
static get encapsulation() { return "shadow"; }
|
|
@@ -301,7 +517,7 @@ export class QNavbar {
|
|
|
301
517
|
"attribute": "items",
|
|
302
518
|
"defaultValue": "[]"
|
|
303
519
|
},
|
|
304
|
-
"
|
|
520
|
+
"value": {
|
|
305
521
|
"type": "string",
|
|
306
522
|
"mutable": false,
|
|
307
523
|
"complexType": {
|
|
@@ -310,7 +526,7 @@ export class QNavbar {
|
|
|
310
526
|
"references": {}
|
|
311
527
|
},
|
|
312
528
|
"required": false,
|
|
313
|
-
"optional":
|
|
529
|
+
"optional": true,
|
|
314
530
|
"docs": {
|
|
315
531
|
"tags": [],
|
|
316
532
|
"text": "Matches either an item's value or `href`."
|
|
@@ -318,6 +534,28 @@ export class QNavbar {
|
|
|
318
534
|
"getter": false,
|
|
319
535
|
"setter": false,
|
|
320
536
|
"reflect": false,
|
|
537
|
+
"attribute": "value"
|
|
538
|
+
},
|
|
539
|
+
"activeValue": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"mutable": false,
|
|
542
|
+
"complexType": {
|
|
543
|
+
"original": "string",
|
|
544
|
+
"resolved": "string",
|
|
545
|
+
"references": {}
|
|
546
|
+
},
|
|
547
|
+
"required": false,
|
|
548
|
+
"optional": false,
|
|
549
|
+
"docs": {
|
|
550
|
+
"tags": [{
|
|
551
|
+
"name": "deprecated",
|
|
552
|
+
"text": "Use value. Used only when value is unset."
|
|
553
|
+
}],
|
|
554
|
+
"text": ""
|
|
555
|
+
},
|
|
556
|
+
"getter": false,
|
|
557
|
+
"setter": false,
|
|
558
|
+
"reflect": false,
|
|
321
559
|
"attribute": "active-value",
|
|
322
560
|
"defaultValue": "''"
|
|
323
561
|
},
|
|
@@ -428,6 +666,60 @@ export class QNavbar {
|
|
|
428
666
|
"attribute": "bordered",
|
|
429
667
|
"defaultValue": "true"
|
|
430
668
|
},
|
|
669
|
+
"navAlign": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"mutable": false,
|
|
672
|
+
"complexType": {
|
|
673
|
+
"original": "QNavbarNavAlign",
|
|
674
|
+
"resolved": "\"center\" | \"end\" | \"start\"",
|
|
675
|
+
"references": {
|
|
676
|
+
"QNavbarNavAlign": {
|
|
677
|
+
"location": "import",
|
|
678
|
+
"path": "./navbar.types",
|
|
679
|
+
"id": "src/components/layout/navbar/navbar.types.ts::QNavbarNavAlign",
|
|
680
|
+
"referenceLocation": "QNavbarNavAlign"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": false,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": "Horizontal desktop navigation alignment."
|
|
689
|
+
},
|
|
690
|
+
"getter": false,
|
|
691
|
+
"setter": false,
|
|
692
|
+
"reflect": true,
|
|
693
|
+
"attribute": "nav-align",
|
|
694
|
+
"defaultValue": "'start'"
|
|
695
|
+
},
|
|
696
|
+
"navCenterWithin": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"mutable": false,
|
|
699
|
+
"complexType": {
|
|
700
|
+
"original": "QNavbarNavCenterWithin",
|
|
701
|
+
"resolved": "\"available\" | \"container\"",
|
|
702
|
+
"references": {
|
|
703
|
+
"QNavbarNavCenterWithin": {
|
|
704
|
+
"location": "import",
|
|
705
|
+
"path": "./navbar.types",
|
|
706
|
+
"id": "src/components/layout/navbar/navbar.types.ts::QNavbarNavCenterWithin",
|
|
707
|
+
"referenceLocation": "QNavbarNavCenterWithin"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": false,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": "Reference box for centred horizontal desktop navigation."
|
|
716
|
+
},
|
|
717
|
+
"getter": false,
|
|
718
|
+
"setter": false,
|
|
719
|
+
"reflect": true,
|
|
720
|
+
"attribute": "nav-center-within",
|
|
721
|
+
"defaultValue": "'available'"
|
|
722
|
+
},
|
|
431
723
|
"mobileMode": {
|
|
432
724
|
"type": "string",
|
|
433
725
|
"mutable": false,
|
|
@@ -500,7 +792,10 @@ export class QNavbar {
|
|
|
500
792
|
static get states() {
|
|
501
793
|
return {
|
|
502
794
|
"menuOpen": {},
|
|
503
|
-
"hasMobileContent": {}
|
|
795
|
+
"hasMobileContent": {},
|
|
796
|
+
"collision": {},
|
|
797
|
+
"hasMobileNav": {},
|
|
798
|
+
"hasMobileActions": {}
|
|
504
799
|
};
|
|
505
800
|
}
|
|
506
801
|
static get events() {
|
|
@@ -544,4 +839,10 @@ export class QNavbar {
|
|
|
544
839
|
}];
|
|
545
840
|
}
|
|
546
841
|
static get elementRef() { return "el"; }
|
|
842
|
+
static get watchers() {
|
|
843
|
+
return [{
|
|
844
|
+
"propName": "mobileMode",
|
|
845
|
+
"methodName": "mobileModeChanged"
|
|
846
|
+
}];
|
|
847
|
+
}
|
|
547
848
|
}
|