@webquark/browser 0.0.0-stage → 1.1.0-dev.9
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/LICENSE +21 -0
- package/README.md +12 -2
- package/dist/cjs/Leaflet.GoogleMutant-i4bYl6qy.js +768 -0
- package/dist/cjs/action.props-N0urQtdP.js +35 -0
- package/dist/cjs/chevron-up-D4t2OSHA.js +30 -0
- package/dist/cjs/collection-identity-CV5HLD9Z.js +141 -0
- package/dist/cjs/data-table-cell-8uUCk2Qz.js +51 -0
- package/dist/cjs/dom-Dk77oFF6.js +247 -0
- package/dist/cjs/field-CsrQGhG-.js +14 -0
- package/dist/cjs/form-control-validity-D1ukC0_e.js +49 -0
- package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
- package/dist/cjs/form-field-state-P63wN30v.js +51 -0
- package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
- package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
- package/dist/cjs/index-DWXhKHCB.js +1869 -0
- package/dist/cjs/index.cjs.js +34 -0
- package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
- package/dist/cjs/leaflet-src-mrRg-Srs.js +14551 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/map.types-BWymIRql.js +24 -0
- package/dist/cjs/q-accordion.cjs.entry.js +18 -0
- package/dist/cjs/q-alert.cjs.entry.js +52 -0
- package/dist/cjs/q-avatar.cjs.entry.js +101 -0
- package/dist/cjs/q-banner.cjs.entry.js +19 -0
- package/dist/cjs/q-button_2.cjs.entry.js +462 -0
- package/dist/cjs/q-card.cjs.entry.js +88 -0
- package/dist/cjs/q-carousel.cjs.entry.js +718 -0
- package/dist/cjs/q-chip.cjs.entry.js +124 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +70 -0
- package/dist/cjs/q-data-table.cjs.entry.js +611 -0
- package/dist/cjs/q-dialog.cjs.entry.js +271 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +699 -0
- package/dist/cjs/q-form.cjs.entry.js +1002 -0
- package/dist/cjs/q-grid.cjs.entry.js +24 -0
- package/dist/cjs/q-icon.cjs.entry.js +439 -0
- package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
- package/dist/cjs/q-inline.cjs.entry.js +22 -0
- package/dist/cjs/q-input_2.cjs.entry.js +438 -0
- package/dist/cjs/q-link.cjs.entry.js +80 -0
- package/dist/cjs/q-map.cjs.entry.js +3509 -0
- package/dist/cjs/q-media.cjs.entry.js +21 -0
- package/dist/cjs/q-navbar.cjs.entry.js +415 -0
- package/dist/cjs/q-pagination.cjs.entry.js +68 -0
- package/dist/cjs/q-panel.cjs.entry.js +76 -0
- package/dist/cjs/q-quantity-selector.cjs.entry.js +204 -0
- package/dist/cjs/q-radio-group.cjs.entry.js +261 -0
- package/dist/cjs/q-reel.cjs.entry.js +170 -0
- package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
- package/dist/cjs/q-section.cjs.entry.js +20 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +793 -0
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +45 -0
- package/dist/cjs/q-step-diagram.cjs.entry.js +56 -0
- package/dist/cjs/q-syntax-box.cjs.entry.js +782 -0
- package/dist/cjs/q-tabs.cjs.entry.js +155 -0
- package/dist/cjs/q-textarea.cjs.entry.js +295 -0
- package/dist/cjs/q-thumbnail.cjs.entry.js +51 -0
- package/dist/cjs/q-toast.cjs.entry.js +400 -0
- package/dist/cjs/q-toggle.cjs.entry.js +233 -0
- package/dist/cjs/q-toolbar.cjs.entry.js +33 -0
- package/dist/cjs/registry-CzkkkaZO.js +323 -0
- package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
- package/dist/cjs/tokens-RMRaIOqv.js +957 -0
- package/dist/cjs/utils-DGQOjEwT.js +33 -0
- package/dist/cjs/webquark.cjs.js +24 -0
- package/dist/collection/assets/icons/braces.svg +14 -0
- package/dist/collection/assets/icons/check.svg +1 -0
- package/dist/collection/assets/icons/chevron-down.svg +1 -0
- package/dist/collection/assets/icons/chevron-left.svg +1 -0
- package/dist/collection/assets/icons/chevron-right.svg +1 -0
- package/dist/collection/assets/icons/chevron-up.svg +1 -0
- package/dist/collection/assets/icons/copy.svg +4 -0
- package/dist/collection/assets/icons/eye-off.svg +1 -0
- package/dist/collection/assets/icons/eye.svg +1 -0
- package/dist/collection/assets/icons/minus.svg +1 -0
- package/dist/collection/assets/icons/play.svg +1 -0
- package/dist/collection/assets/icons/plus.svg +1 -0
- package/dist/collection/assets/icons/search.svg +1 -0
- package/dist/collection/assets/icons/spinner.svg +1 -0
- package/dist/collection/assets/icons/trash-2.svg +1 -0
- package/dist/collection/assets/icons/x.svg +1 -0
- package/dist/collection/collection-manifest.json +56 -0
- package/dist/collection/components/actions/action.props.js +130 -0
- package/dist/collection/components/actions/button/button.css +242 -0
- package/dist/collection/components/actions/button/button.js +748 -0
- package/dist/collection/components/actions/button/button.types.js +1 -0
- package/dist/collection/components/actions/button/button.utils.js +9 -0
- package/dist/collection/components/actions/button/button.utils.unit.test.js +44 -0
- package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
- package/dist/collection/components/actions/link/link.css +102 -0
- package/dist/collection/components/actions/link/link.js +316 -0
- package/dist/collection/components/actions/link/link.types.js +1 -0
- package/dist/collection/components/communication/alert/alert.css +118 -0
- package/dist/collection/components/communication/alert/alert.js +208 -0
- package/dist/collection/components/communication/alert/alert.types.js +1 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.css +154 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.js +207 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.types.js +1 -0
- package/dist/collection/components/communication/toast/internals/icons.js +25 -0
- package/dist/collection/components/communication/toast/internals/queue.js +64 -0
- package/dist/collection/components/communication/toast/internals/timers.js +75 -0
- package/dist/collection/components/communication/toast/test/toast.cmp.test.js +38 -0
- package/dist/collection/components/communication/toast/test/toast.unit.test.js +104 -0
- package/dist/collection/components/communication/toast/toast-controller.js +105 -0
- package/dist/collection/components/communication/toast/toast.css +141 -0
- package/dist/collection/components/communication/toast/toast.js +556 -0
- package/dist/collection/components/communication/toast/toast.types.js +1 -0
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/content/banner/banner.types.js +1 -0
- package/dist/collection/components/content/card/card.css +105 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/content/card/card.types.js +1 -0
- package/dist/collection/components/content/card/card.utils.js +15 -0
- package/dist/collection/components/content/carousel/carousel.css +254 -0
- package/dist/collection/components/content/carousel/carousel.js +956 -0
- package/dist/collection/components/content/carousel/carousel.types.js +1 -0
- package/dist/collection/components/content/carousel/carousel.utils.js +1 -0
- package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
- package/dist/collection/components/content/carousel/internals/metrics.js +59 -0
- package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
- 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/data-display/accordion/accordion.types.js +1 -0
- package/dist/collection/components/data-display/chip/chip.css +219 -0
- package/dist/collection/components/data-display/chip/chip.js +381 -0
- package/dist/collection/components/data-display/chip/chip.types.js +1 -0
- package/dist/collection/components/data-display/data-table/data-table-cell.js +44 -0
- package/dist/collection/components/data-display/data-table/data-table.css +429 -0
- package/dist/collection/components/data-display/data-table/data-table.js +862 -0
- package/dist/collection/components/data-display/data-table/data-table.types.js +1 -0
- package/dist/collection/components/data-display/data-table/internals/data-access.js +43 -0
- package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +22 -0
- package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +5 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +59 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +42 -0
- package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +6 -0
- package/dist/collection/components/data-display/data-table/internals/row-events.js +27 -0
- package/dist/collection/components/data-display/data-table/internals/selection.js +31 -0
- package/dist/collection/components/data-display/data-table/internals/sort.js +57 -0
- package/dist/collection/components/data-display/data-table/internals/table-model.js +92 -0
- package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
- package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
- package/dist/collection/components/data-display/map/internals/base-layer.js +140 -0
- package/dist/collection/components/data-display/map/internals/bounds.js +66 -0
- package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +128 -0
- package/dist/collection/components/data-display/map/internals/cluster-collision.js +73 -0
- package/dist/collection/components/data-display/map/internals/google-maps.js +117 -0
- package/dist/collection/components/data-display/map/internals/google-mutant.js +51 -0
- package/dist/collection/components/data-display/map/internals/maplibre.js +50 -0
- package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +136 -0
- package/dist/collection/components/data-display/map/internals/marker-controller.js +425 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +266 -0
- package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
- package/dist/collection/components/data-display/map/internals/markers.js +191 -0
- package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +67 -0
- package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +8 -0
- package/dist/collection/components/data-display/map/internals/vector-padding.js +8 -0
- package/dist/collection/components/data-display/map/map.css +742 -0
- package/dist/collection/components/data-display/map/map.js +1595 -0
- package/dist/collection/components/data-display/map/map.types.js +12 -0
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +961 -0
- package/dist/collection/components/data-display/pagination/pagination.css +81 -0
- package/dist/collection/components/data-display/pagination/pagination.js +240 -0
- package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +57 -0
- package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +9 -0
- package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +14 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +10 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +209 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +678 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +1 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +1 -0
- package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
- package/dist/collection/components/indicators/progress/progress.css +223 -0
- package/dist/collection/components/indicators/progress/progress.js +275 -0
- package/dist/collection/components/indicators/progress/progress.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.css +21 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +143 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +252 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +185 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +3 -0
- package/dist/collection/components/inputs/dropdown/dropdown.css +387 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +1236 -0
- package/dist/collection/components/inputs/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/inputs/dropdown/internals/options.js +30 -0
- package/dist/collection/components/inputs/dropdown/internals/position.js +35 -0
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +62 -0
- package/dist/collection/components/inputs/form/form.css +85 -0
- package/dist/collection/components/inputs/form/form.js +808 -0
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/form/internals/controls.js +173 -0
- package/dist/collection/components/inputs/form/internals/enter-behavior.js +25 -0
- package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
- package/dist/collection/components/inputs/form/internals/reset.js +50 -0
- package/dist/collection/components/inputs/form/internals/submission.js +140 -0
- package/dist/collection/components/inputs/form/internals/values.js +199 -0
- package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
- package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
- package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
- package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
- package/dist/collection/components/inputs/form/test/form.cmp.test.js +157 -0
- package/dist/collection/components/inputs/input/input.css +293 -0
- package/dist/collection/components/inputs/input/input.js +907 -0
- package/dist/collection/components/inputs/input/input.types.js +1 -0
- package/dist/collection/components/inputs/input/input.utils.js +3 -0
- package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +64 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +171 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +390 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.css +224 -0
- package/dist/collection/components/inputs/radio-group/radio-group.js +668 -0
- package/dist/collection/components/inputs/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.utils.js +18 -0
- package/dist/collection/components/inputs/textarea/textarea.css +172 -0
- package/dist/collection/components/inputs/textarea/textarea.js +799 -0
- package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
- package/dist/collection/components/inputs/toggle/toggle.css +252 -0
- package/dist/collection/components/inputs/toggle/toggle.js +610 -0
- package/dist/collection/components/inputs/toggle/toggle.types.js +1 -0
- package/dist/collection/components/inputs/toggle/toggle.utils.js +3 -0
- 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 +584 -0
- package/dist/collection/components/layout/navbar/navbar.js +848 -0
- package/dist/collection/components/layout/navbar/navbar.types.js +1 -0
- package/dist/collection/components/layout/navbar/navbar.utils.js +13 -0
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +369 -0
- package/dist/collection/components/layout/panel/panel.css +114 -0
- package/dist/collection/components/layout/panel/panel.js +394 -0
- package/dist/collection/components/layout/panel/panel.types.js +1 -0
- package/dist/collection/components/layout/scrollable/internals/metrics.js +61 -0
- package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +41 -0
- package/dist/collection/components/layout/scrollable/scrollable.css +123 -0
- package/dist/collection/components/layout/scrollable/scrollable.js +565 -0
- package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
- 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/drawer.js +98 -0
- package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +30 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.css +1035 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +1001 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +17 -0
- package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
- package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
- 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.css +248 -0
- package/dist/collection/components/layout/tabs/tabs.js +322 -0
- package/dist/collection/components/layout/tabs/tabs.types.js +1 -0
- package/dist/collection/components/layout/tabs/tabs.utils.js +31 -0
- package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +165 -0
- package/dist/collection/components/layout/toolbar/toolbar.css +168 -0
- package/dist/collection/components/layout/toolbar/toolbar.js +251 -0
- package/dist/collection/components/layout/toolbar/toolbar.types.js +1 -0
- package/dist/collection/components/media/avatar/avatar.css +71 -0
- package/dist/collection/components/media/avatar/avatar.js +302 -0
- package/dist/collection/components/media/avatar/avatar.types.js +1 -0
- package/dist/collection/components/media/icon/icon.css +42 -0
- package/dist/collection/components/media/icon/icon.js +510 -0
- package/dist/collection/components/media/icon/icon.types.js +1 -0
- package/dist/collection/components/media/icon/internals/constants.js +3 -0
- package/dist/collection/components/media/icon/internals/fetch-icon.js +47 -0
- package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
- package/dist/collection/components/media/icon/internals/policy.js +184 -0
- package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
- package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
- package/dist/collection/components/media/icon/internals/registry.js +122 -0
- package/dist/collection/components/media/icon/internals/registry.unit.test.js +42 -0
- package/dist/collection/components/media/icon/internals/render-definition.js +24 -0
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +86 -0
- package/dist/collection/components/media/icon/internals/size.js +12 -0
- package/dist/collection/components/media/icon/internals/url.js +52 -0
- package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
- package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
- package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
- package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
- package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
- package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
- 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.css +193 -0
- package/dist/collection/components/media/reel/reel.js +279 -0
- package/dist/collection/components/media/reel/reel.types.js +1 -0
- package/dist/collection/components/media/thumbnail/thumbnail.css +111 -0
- package/dist/collection/components/media/thumbnail/thumbnail.js +184 -0
- package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
- package/dist/collection/components/overlays/dialog/dialog.css +264 -0
- package/dist/collection/components/overlays/dialog/dialog.js +743 -0
- package/dist/collection/components/overlays/dialog/dialog.types.js +1 -0
- package/dist/collection/components/overlays/dialog/internals/backdrop.js +9 -0
- package/dist/collection/components/overlays/dialog/internals/lifecycle.js +53 -0
- package/dist/collection/components/overlays/tooltip/internals/aria.js +27 -0
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +84 -0
- package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
- package/dist/collection/components/overlays/tooltip/tooltip.css +69 -0
- package/dist/collection/components/overlays/tooltip/tooltip.js +196 -0
- package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
- 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 +16 -0
- package/dist/collection/native-content.css +24 -0
- package/dist/collection/theme/test/foundation.cmp.test.js +353 -0
- package/dist/collection/theme/test/presets.cmp.test.js +129 -0
- package/dist/collection/theme/tokens.js +960 -0
- package/dist/collection/utils/collection-identity.js +136 -0
- package/dist/collection/utils/collection-identity.unit.test.js +107 -0
- package/dist/collection/utils/dom.js +236 -0
- package/dist/collection/utils/form-control-validity.js +44 -0
- package/dist/collection/utils/form-field-adapter.js +44 -0
- package/dist/collection/utils/form-field-state.js +45 -0
- package/dist/collection/utils/form-reset-action.js +60 -0
- package/dist/collection/utils/form-submit-action.js +151 -0
- package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
- package/dist/collection/utils/formatter.js +156 -0
- package/dist/collection/utils/formatter.unit.test.js +71 -0
- package/dist/collection/utils/image-crop.js +47 -0
- package/dist/collection/utils/image-crop.unit.test.js +57 -0
- package/dist/collection/utils/math.js +19 -0
- package/dist/collection/utils/syntax.js +239 -0
- package/dist/collection/utils/syntax.unit.test.js +134 -0
- package/dist/collection/utils/utils.js +28 -0
- package/dist/collection/utils/utils.unit.test.js +16 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-6PPZ2sIO.js +1 -0
- package/dist/components/p-B4Mg1xEw.js +1 -0
- package/dist/components/p-BH4gQWub.js +1 -0
- package/dist/components/p-BIIQL66b.js +1 -0
- package/dist/components/p-BJiYCN3i.js +1 -0
- package/dist/components/p-BOdNg0jc.js +1 -0
- package/dist/components/p-BcL0NVv0.js +1 -0
- package/dist/components/p-Bj2RJb2E.js +1 -0
- package/dist/components/p-BofcK-7Z.js +1 -0
- package/dist/components/p-ByfrUWx1.js +1 -0
- package/dist/components/p-CGZPmEUB.js +1 -0
- package/dist/components/p-CGml_DQ8.js +1 -0
- package/dist/components/p-CKuPOxKN.js +1 -0
- package/dist/components/p-CN1ut2Lb.js +1 -0
- package/dist/components/p-C_RztzNv.js +5 -0
- package/dist/components/p-Cg0Mv7Vb.js +1 -0
- package/dist/components/p-CoIMrUb3.js +1 -0
- package/dist/components/p-CpI3m4_T.js +1 -0
- package/dist/components/p-DKrPmn2y.js +13 -0
- package/dist/components/p-DQhiqYeq.js +1 -0
- package/dist/components/p-DYMWBqU1.js +5 -0
- package/dist/components/p-Dfp_If-_.js +1 -0
- package/dist/components/p-DlIn_ZWk.js +1 -0
- package/dist/components/p-DstNl_WY.js +1 -0
- package/dist/components/p-DuX-9GOi.js +1 -0
- package/dist/components/p-SzKf4WZF.js +1 -0
- package/dist/components/p-ye27qtRo.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.d.ts +11 -0
- package/dist/components/q-alert.js +1 -0
- package/dist/components/q-avatar.d.ts +11 -0
- package/dist/components/q-avatar.js +1 -0
- package/dist/components/q-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- package/dist/components/q-button.d.ts +11 -0
- package/dist/components/q-button.js +1 -0
- package/dist/components/q-card.d.ts +11 -0
- package/dist/components/q-card.js +1 -0
- package/dist/components/q-carousel.d.ts +11 -0
- package/dist/components/q-carousel.js +1 -0
- package/dist/components/q-chip.d.ts +11 -0
- package/dist/components/q-chip.js +1 -0
- package/dist/components/q-conversation-bubble.d.ts +11 -0
- package/dist/components/q-conversation-bubble.js +1 -0
- package/dist/components/q-data-table.d.ts +11 -0
- package/dist/components/q-data-table.js +1 -0
- package/dist/components/q-dialog.d.ts +11 -0
- package/dist/components/q-dialog.js +1 -0
- package/dist/components/q-dropdown.d.ts +11 -0
- package/dist/components/q-dropdown.js +1 -0
- package/dist/components/q-form.d.ts +11 -0
- package/dist/components/q-form.js +1 -0
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.d.ts +11 -0
- package/dist/components/q-icon.js +1 -0
- package/dist/components/q-image-comparison.d.ts +11 -0
- package/dist/components/q-image-comparison.js +1 -0
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- package/dist/components/q-input.d.ts +11 -0
- package/dist/components/q-input.js +1 -0
- package/dist/components/q-link.d.ts +11 -0
- package/dist/components/q-link.js +1 -0
- package/dist/components/q-map.d.ts +11 -0
- package/dist/components/q-map.js +1 -0
- package/dist/components/q-media.d.ts +11 -0
- package/dist/components/q-media.js +1 -0
- package/dist/components/q-navbar.d.ts +11 -0
- package/dist/components/q-navbar.js +1 -0
- package/dist/components/q-pagination.d.ts +11 -0
- package/dist/components/q-pagination.js +1 -0
- package/dist/components/q-panel.d.ts +11 -0
- package/dist/components/q-panel.js +1 -0
- package/dist/components/q-progress.d.ts +11 -0
- package/dist/components/q-progress.js +1 -0
- package/dist/components/q-quantity-selector.d.ts +11 -0
- package/dist/components/q-quantity-selector.js +1 -0
- package/dist/components/q-radio-group.d.ts +11 -0
- package/dist/components/q-radio-group.js +1 -0
- package/dist/components/q-reel.d.ts +11 -0
- package/dist/components/q-reel.js +1 -0
- package/dist/components/q-scrollable.d.ts +11 -0
- package/dist/components/q-scrollable.js +1 -0
- package/dist/components/q-section.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.d.ts +11 -0
- package/dist/components/q-sidepanel.js +13 -0
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- package/dist/components/q-step-diagram-item.d.ts +11 -0
- package/dist/components/q-step-diagram-item.js +1 -0
- package/dist/components/q-step-diagram.d.ts +11 -0
- package/dist/components/q-step-diagram.js +1 -0
- package/dist/components/q-syntax-box.d.ts +11 -0
- package/dist/components/q-syntax-box.js +13 -0
- package/dist/components/q-tabs.d.ts +11 -0
- package/dist/components/q-tabs.js +1 -0
- package/dist/components/q-textarea.d.ts +11 -0
- package/dist/components/q-textarea.js +1 -0
- package/dist/components/q-thumbnail.d.ts +11 -0
- package/dist/components/q-thumbnail.js +1 -0
- package/dist/components/q-toast.d.ts +11 -0
- package/dist/components/q-toast.js +1 -0
- package/dist/components/q-toggle.d.ts +11 -0
- package/dist/components/q-toggle.js +1 -0
- package/dist/components/q-toolbar.d.ts +11 -0
- package/dist/components/q-toolbar.js +1 -0
- package/dist/components/q-tooltip.d.ts +11 -0
- package/dist/components/q-tooltip.js +1 -0
- package/dist/esm/Leaflet.GoogleMutant-MpxOb4Jm.js +766 -0
- package/dist/esm/action.props-CpnGza8z.js +32 -0
- package/dist/esm/chevron-up-DKrPmn2y.js +27 -0
- package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
- package/dist/esm/data-table-cell-SzKf4WZF.js +46 -0
- package/dist/esm/dom-ByfrUWx1.js +238 -0
- package/dist/esm/field-zfD6OQ02.js +11 -0
- package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
- package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
- package/dist/esm/form-field-state-DstNl_WY.js +47 -0
- package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
- package/dist/esm/image-crop-BcL0NVv0.js +49 -0
- package/dist/esm/index-B5ElFlHv.js +1858 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
- package/dist/esm/leaflet-src-DYMWBqU1.js +14547 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/map.types-CoIMrUb3.js +14 -0
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +50 -0
- package/dist/esm/q-avatar.entry.js +99 -0
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +459 -0
- package/dist/esm/q-card.entry.js +86 -0
- package/dist/esm/q-carousel.entry.js +716 -0
- package/dist/esm/q-chip.entry.js +122 -0
- package/dist/esm/q-conversation-bubble.entry.js +68 -0
- package/dist/esm/q-data-table.entry.js +609 -0
- package/dist/esm/q-dialog.entry.js +269 -0
- package/dist/esm/q-dropdown.entry.js +697 -0
- package/dist/esm/q-form.entry.js +1000 -0
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +437 -0
- package/dist/esm/q-image-comparison.entry.js +199 -0
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +435 -0
- package/dist/esm/q-link.entry.js +78 -0
- package/dist/esm/q-map.entry.js +3507 -0
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +413 -0
- package/dist/esm/q-pagination.entry.js +66 -0
- package/dist/esm/q-panel.entry.js +74 -0
- package/dist/esm/q-quantity-selector.entry.js +202 -0
- package/dist/esm/q-radio-group.entry.js +259 -0
- package/dist/esm/q-reel.entry.js +168 -0
- package/dist/esm/q-scrollable.entry.js +447 -0
- package/dist/esm/q-section.entry.js +18 -0
- package/dist/esm/q-sidepanel.entry.js +791 -0
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +43 -0
- package/dist/esm/q-step-diagram.entry.js +54 -0
- package/dist/esm/q-syntax-box.entry.js +780 -0
- package/dist/esm/q-tabs.entry.js +153 -0
- package/dist/esm/q-textarea.entry.js +293 -0
- package/dist/esm/q-thumbnail.entry.js +49 -0
- package/dist/esm/q-toast.entry.js +398 -0
- package/dist/esm/q-toggle.entry.js +231 -0
- package/dist/esm/q-toolbar.entry.js +31 -0
- package/dist/esm/registry-CpI3m4_T.js +308 -0
- package/dist/esm/toast-controller-BIIQL66b.js +107 -0
- package/dist/esm/tokens-B4Mg1xEw.js +953 -0
- package/dist/esm/utils-BJiYCN3i.js +30 -0
- package/dist/esm/webquark.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/types/components/actions/action.props.d.ts +19 -0
- package/dist/types/components/actions/button/button.d.ts +87 -0
- package/dist/types/components/actions/button/button.types.d.ts +6 -0
- package/dist/types/components/actions/button/button.utils.d.ts +8 -0
- package/dist/types/components/actions/button/button.utils.unit.test.d.ts +1 -0
- package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
- package/dist/types/components/actions/link/link.d.ts +43 -0
- package/dist/types/components/actions/link/link.types.d.ts +3 -0
- package/dist/types/components/communication/alert/alert.d.ts +32 -0
- package/dist/types/components/communication/alert/alert.types.d.ts +2 -0
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.d.ts +38 -0
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.types.d.ts +1 -0
- package/dist/types/components/communication/toast/internals/icons.d.ts +2 -0
- package/dist/types/components/communication/toast/internals/queue.d.ts +19 -0
- package/dist/types/components/communication/toast/internals/timers.d.ts +12 -0
- 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/communication/toast/toast-controller.d.ts +9 -0
- package/dist/types/components/communication/toast/toast.d.ts +44 -0
- package/dist/types/components/communication/toast/toast.types.d.ts +30 -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/content/card/card.d.ts +35 -0
- package/dist/types/components/content/card/card.types.d.ts +1 -0
- package/dist/types/components/content/card/card.utils.d.ts +5 -0
- package/dist/types/components/content/carousel/carousel.d.ts +123 -0
- package/dist/types/components/content/carousel/carousel.types.d.ts +10 -0
- package/dist/types/components/content/carousel/carousel.utils.d.ts +1 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
- package/dist/types/components/content/carousel/internals/metrics.d.ts +23 -0
- package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
- package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
- 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/data-display/chip/chip.d.ts +55 -0
- package/dist/types/components/data-display/chip/chip.types.d.ts +13 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +7 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +95 -0
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +56 -0
- package/dist/types/components/data-display/data-table/internals/data-access.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +5 -0
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +13 -0
- package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +8 -0
- package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/row-events.d.ts +1 -0
- package/dist/types/components/data-display/data-table/internals/selection.d.ts +10 -0
- package/dist/types/components/data-display/data-table/internals/sort.d.ts +3 -0
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +56 -0
- package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/map/internals/base-layer.d.ts +63 -0
- package/dist/types/components/data-display/map/internals/bounds.d.ts +23 -0
- package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +15 -0
- package/dist/types/components/data-display/map/internals/google-maps.d.ts +9 -0
- package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/google-mutant.d.ts +18 -0
- package/dist/types/components/data-display/map/internals/maplibre.d.ts +14 -0
- package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +36 -0
- package/dist/types/components/data-display/map/internals/marker-controller.d.ts +57 -0
- package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +8 -0
- package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/markers.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/vector-padding.d.ts +4 -0
- package/dist/types/components/data-display/map/map.d.ts +175 -0
- package/dist/types/components/data-display/map/map.types.d.ts +132 -0
- package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/pagination/pagination.d.ts +33 -0
- package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +12 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +15 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +72 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
- package/dist/types/components/indicators/progress/progress.d.ts +30 -0
- package/dist/types/components/indicators/progress/progress.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +19 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +26 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +5 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +108 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +9 -0
- package/dist/types/components/inputs/dropdown/internals/options.d.ts +6 -0
- package/dist/types/components/inputs/dropdown/internals/position.d.ts +26 -0
- package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/form.d.ts +80 -0
- package/dist/types/components/inputs/form/form.types.d.ts +40 -0
- package/dist/types/components/inputs/form/internals/controls.d.ts +8 -0
- package/dist/types/components/inputs/form/internals/enter-behavior.d.ts +2 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
- package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
- package/dist/types/components/inputs/form/internals/values.d.ts +10 -0
- package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form.cmp.test.d.ts +4 -0
- package/dist/types/components/inputs/input/input.d.ts +89 -0
- package/dist/types/components/inputs/input/input.types.d.ts +3 -0
- package/dist/types/components/inputs/input/input.utils.d.ts +1 -0
- package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +13 -0
- package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +37 -0
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -0
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +70 -0
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +12 -0
- package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +79 -0
- package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
- package/dist/types/components/inputs/toggle/toggle.d.ts +67 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +3 -0
- package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
- 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 +94 -0
- package/dist/types/components/layout/navbar/navbar.types.d.ts +33 -0
- package/dist/types/components/layout/navbar/navbar.utils.d.ts +2 -0
- package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/panel/panel.d.ts +41 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +3 -0
- package/dist/types/components/layout/scrollable/internals/metrics.d.ts +26 -0
- package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +4 -0
- package/dist/types/components/layout/scrollable/scrollable.d.ts +67 -0
- package/dist/types/components/layout/scrollable/scrollable.types.d.ts +6 -0
- 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/internals/drawer.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/internals/groups.d.ts +7 -0
- package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +110 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +43 -0
- package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/stack/stack.d.ts +10 -0
- package/dist/types/components/layout/tabs/tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/tabs.types.d.ts +14 -0
- package/dist/types/components/layout/tabs/tabs.utils.d.ts +4 -0
- package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +27 -0
- package/dist/types/components/layout/toolbar/toolbar.types.d.ts +1 -0
- package/dist/types/components/media/avatar/avatar.d.ts +37 -0
- package/dist/types/components/media/avatar/avatar.types.d.ts +2 -0
- package/dist/types/components/media/icon/icon.d.ts +48 -0
- package/dist/types/components/media/icon/icon.types.d.ts +30 -0
- package/dist/types/components/media/icon/internals/constants.d.ts +3 -0
- package/dist/types/components/media/icon/internals/fetch-icon.d.ts +1 -0
- package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
- package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry.d.ts +11 -0
- package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/render-definition.d.ts +2 -0
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +2 -0
- package/dist/types/components/media/icon/internals/size.d.ts +2 -0
- package/dist/types/components/media/icon/internals/url.d.ts +11 -0
- package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
- package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
- package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
- package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
- 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/media/reel/reel.d.ts +34 -0
- package/dist/types/components/media/reel/reel.types.d.ts +3 -0
- package/dist/types/components/media/thumbnail/thumbnail.d.ts +21 -0
- package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +7 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +83 -0
- package/dist/types/components/overlays/dialog/dialog.types.d.ts +1 -0
- package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +2 -0
- package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +21 -0
- package/dist/types/components/overlays/tooltip/internals/aria.d.ts +13 -0
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +7 -0
- package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +2 -0
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +33 -0
- package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
- 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 +6047 -0
- package/dist/types/declarations.d.ts +14 -0
- package/dist/types/index.d.ts +31 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- 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/test/presets.cmp.test.d.ts +7 -0
- package/dist/types/theme/tokens.d.ts +141 -0
- package/dist/types/utils/collection-identity.d.ts +55 -0
- package/dist/types/utils/collection-identity.unit.test.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +68 -0
- package/dist/types/utils/form-control-validity.d.ts +14 -0
- package/dist/types/utils/form-field-adapter.d.ts +17 -0
- package/dist/types/utils/form-field-state.d.ts +4 -0
- package/dist/types/utils/form-reset-action.d.ts +5 -0
- package/dist/types/utils/form-submit-action.d.ts +17 -0
- package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +15 -0
- package/dist/types/utils/formatter.unit.test.d.ts +1 -0
- package/dist/types/utils/image-crop.d.ts +30 -0
- package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
- package/dist/types/utils/math.d.ts +10 -0
- package/dist/types/utils/syntax.d.ts +13 -0
- package/dist/types/utils/syntax.unit.test.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +11 -0
- package/dist/types/utils/utils.unit.test.d.ts +1 -0
- package/dist/webquark/index.esm.js +1 -0
- package/dist/webquark/native-content.css +24 -0
- package/dist/webquark/p-023f8437.entry.js +1 -0
- package/dist/webquark/p-030ecde3.entry.js +1 -0
- package/dist/webquark/p-04c8cb9e.entry.js +1 -0
- package/dist/webquark/p-059daa8a.entry.js +1 -0
- package/dist/webquark/p-09cca7b9.entry.js +1 -0
- package/dist/webquark/p-0aa74ad6.entry.js +1 -0
- package/dist/webquark/p-0ae43d6c.entry.js +1 -0
- package/dist/webquark/p-0c3aac3f.entry.js +1 -0
- package/dist/webquark/p-144ef339.entry.js +1 -0
- package/dist/webquark/p-296fbdb1.entry.js +1 -0
- package/dist/webquark/p-36118d90.entry.js +1 -0
- package/dist/webquark/p-3bc4629c.entry.js +1 -0
- package/dist/webquark/p-48fb5228.entry.js +1 -0
- package/dist/webquark/p-4d61b70d.entry.js +1 -0
- package/dist/webquark/p-5f232b44.entry.js +13 -0
- package/dist/webquark/p-64096386.entry.js +1 -0
- package/dist/webquark/p-6bfffa79.entry.js +1 -0
- package/dist/webquark/p-6e28cfe2.entry.js +1 -0
- package/dist/webquark/p-70d9ffde.entry.js +1 -0
- package/dist/webquark/p-888e46a8.entry.js +1 -0
- package/dist/webquark/p-8ece2c62.entry.js +1 -0
- package/dist/webquark/p-90b0858c.entry.js +1 -0
- package/dist/webquark/p-91fff6b6.entry.js +1 -0
- package/dist/webquark/p-923dac41.entry.js +1 -0
- package/dist/webquark/p-97a89cae.entry.js +1 -0
- package/dist/webquark/p-99d785ca.entry.js +1 -0
- package/dist/webquark/p-9e78b796.entry.js +1 -0
- package/dist/webquark/p-9ff7e5a4.entry.js +1 -0
- package/dist/webquark/p-B4Mg1xEw.js +1 -0
- package/dist/webquark/p-B5ElFlHv.js +3 -0
- package/dist/webquark/p-BIIQL66b.js +1 -0
- package/dist/webquark/p-BJiYCN3i.js +1 -0
- package/dist/webquark/p-BOdNg0jc.js +1 -0
- package/dist/webquark/p-BcL0NVv0.js +1 -0
- package/dist/webquark/p-Bj2RJb2E.js +1 -0
- package/dist/webquark/p-ByfrUWx1.js +1 -0
- package/dist/webquark/p-CGZPmEUB.js +1 -0
- package/dist/webquark/p-CGml_DQ8.js +1 -0
- package/dist/webquark/p-C_RztzNv.js +5 -0
- package/dist/webquark/p-CoIMrUb3.js +1 -0
- package/dist/webquark/p-CpI3m4_T.js +1 -0
- package/dist/webquark/p-DKrPmn2y.js +13 -0
- package/dist/webquark/p-DWO-pleQ.js +1 -0
- package/dist/webquark/p-DYMWBqU1.js +5 -0
- package/dist/webquark/p-Dhsn99q4.js +1 -0
- package/dist/webquark/p-DstNl_WY.js +1 -0
- package/dist/webquark/p-DuX-9GOi.js +1 -0
- package/dist/webquark/p-SzKf4WZF.js +1 -0
- package/dist/webquark/p-c523ec6f.entry.js +1 -0
- package/dist/webquark/p-d0253d64.entry.js +1 -0
- package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
- package/dist/webquark/p-dd115868.entry.js +1 -0
- package/dist/webquark/p-f1bac94c.entry.js +1 -0
- package/dist/webquark/p-f4f97e74.entry.js +1 -0
- package/dist/webquark/p-f63b7214.entry.js +1 -0
- package/dist/webquark/p-f98f9439.entry.js +1 -0
- package/dist/webquark/p-f9ad63ff.entry.js +1 -0
- package/dist/webquark/p-fe200f68.entry.js +1 -0
- package/dist/webquark/p-fe8c634a.entry.js +13 -0
- package/dist/webquark/p-fec6fe0a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -0
- package/dist/webquark/webquark.esm.js +1 -0
- package/package.json +78 -4
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { identifyItems } from "../../../utils/collection-identity";
|
|
3
|
+
import { getNavbarItems } from "./navbar.utils";
|
|
4
|
+
let navbarIds = 0;
|
|
5
|
+
/**
|
|
6
|
+
* Edge-aware site navigation with optional brand content, actions, and mobile menu.
|
|
7
|
+
*
|
|
8
|
+
* @slot brand - Custom brand link content.
|
|
9
|
+
* @slot nav - Custom desktop navigation content.
|
|
10
|
+
* @slot actions - Desktop action controls.
|
|
11
|
+
* @slot mobile-nav - Custom mobile navigation content.
|
|
12
|
+
* @slot mobile-actions - Mobile action controls.
|
|
13
|
+
* @part navbar - Navbar container.
|
|
14
|
+
* @part brand - Brand link.
|
|
15
|
+
* @part nav - Desktop navigation container.
|
|
16
|
+
* @part actions - Desktop action container.
|
|
17
|
+
* @part menu-button - Mobile menu toggle button.
|
|
18
|
+
* @part mobile-panel - Mobile menu panel.
|
|
19
|
+
* @part item-addon - Per-item slotted add-on container.
|
|
20
|
+
*/
|
|
21
|
+
export class QNavbar {
|
|
22
|
+
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
23
|
+
el;
|
|
24
|
+
brand;
|
|
25
|
+
logoSrc;
|
|
26
|
+
/** Accessible text for a logo-only brand image. */
|
|
27
|
+
logoAlt = '';
|
|
28
|
+
brandHref = '/';
|
|
29
|
+
/** Navigation items; strings use the same text for label and value, while objects enable links, icons, and state. */
|
|
30
|
+
items = [];
|
|
31
|
+
/** Matches either an item's value or `href`. */
|
|
32
|
+
value;
|
|
33
|
+
/** @deprecated Use value. Used only when value is unset. */
|
|
34
|
+
activeValue = '';
|
|
35
|
+
edge = 'top';
|
|
36
|
+
sticky = false;
|
|
37
|
+
compact = false;
|
|
38
|
+
transparent = false;
|
|
39
|
+
bordered = true;
|
|
40
|
+
/** Horizontal desktop navigation alignment. */
|
|
41
|
+
navAlign = 'start';
|
|
42
|
+
/** Reference box for centred horizontal desktop navigation. */
|
|
43
|
+
navCenterWithin = 'available';
|
|
44
|
+
/** Controls whether mobile widths collapse items into a menu or keep them inline. */
|
|
45
|
+
mobileMode = 'menu';
|
|
46
|
+
/** Accessible label for the mobile menu toggle button. */
|
|
47
|
+
mobileLabel = 'Menu';
|
|
48
|
+
/** Accessible name for the desktop and mobile navigation regions. */
|
|
49
|
+
ariaLabel = null;
|
|
50
|
+
qSelect;
|
|
51
|
+
qMenuToggle;
|
|
52
|
+
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
53
|
+
menuOpen = false;
|
|
54
|
+
hasMobileContent = false;
|
|
55
|
+
collision = false;
|
|
56
|
+
hasMobileNav = false;
|
|
57
|
+
hasMobileActions = false;
|
|
58
|
+
instanceId = ++navbarIds;
|
|
59
|
+
primaryNavId = `q-navbar-primary-nav-${this.instanceId}`;
|
|
60
|
+
mobilePanelId = `q-navbar-mobile-panel-${this.instanceId}`;
|
|
61
|
+
dismissListenersActive = false;
|
|
62
|
+
resizeObserver;
|
|
63
|
+
mutationObserver;
|
|
64
|
+
frame = 0;
|
|
65
|
+
focusAfterRender;
|
|
66
|
+
desktopFocus;
|
|
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
|
+
}
|
|
112
|
+
disconnectedCallback() {
|
|
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 };
|
|
264
|
+
}
|
|
265
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
266
|
+
get parsedItems() {
|
|
267
|
+
return getNavbarItems(this.items);
|
|
268
|
+
}
|
|
269
|
+
handleMenuToggle = () => {
|
|
270
|
+
this.setMenuOpen(!this.menuOpen);
|
|
271
|
+
};
|
|
272
|
+
handleMenuClose = () => {
|
|
273
|
+
this.setMenuOpen(false);
|
|
274
|
+
};
|
|
275
|
+
setMenuOpen(open) {
|
|
276
|
+
if (this.menuOpen === open)
|
|
277
|
+
return;
|
|
278
|
+
this.menuOpen = open;
|
|
279
|
+
this.qMenuToggle.emit(open);
|
|
280
|
+
if (open) {
|
|
281
|
+
this.addMenuDismissListeners();
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
this.removeMenuDismissListeners();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
addMenuDismissListeners() {
|
|
288
|
+
if (this.dismissListenersActive || typeof document === 'undefined' || typeof window === 'undefined')
|
|
289
|
+
return;
|
|
290
|
+
document.addEventListener('keydown', this.handleDocumentKeyDown);
|
|
291
|
+
window.addEventListener('click', this.handleWindowClick);
|
|
292
|
+
this.dismissListenersActive = true;
|
|
293
|
+
}
|
|
294
|
+
removeMenuDismissListeners() {
|
|
295
|
+
if (!this.dismissListenersActive || typeof document === 'undefined' || typeof window === 'undefined')
|
|
296
|
+
return;
|
|
297
|
+
document.removeEventListener('keydown', this.handleDocumentKeyDown);
|
|
298
|
+
window.removeEventListener('click', this.handleWindowClick);
|
|
299
|
+
this.dismissListenersActive = false;
|
|
300
|
+
}
|
|
301
|
+
handleDocumentKeyDown = (ev) => {
|
|
302
|
+
if (ev.key === 'Escape') {
|
|
303
|
+
this.handleMenuClose();
|
|
304
|
+
if (this.collision)
|
|
305
|
+
this.el.shadowRoot?.querySelector('.menu-button')?.focus();
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
handleWindowClick = (ev) => {
|
|
309
|
+
const path = typeof ev.composedPath === 'function' ? ev.composedPath() : [];
|
|
310
|
+
if (path.includes(this.el))
|
|
311
|
+
return;
|
|
312
|
+
if (!path.length && ev.target instanceof Node && this.el.contains(ev.target))
|
|
313
|
+
return;
|
|
314
|
+
this.handleMenuClose();
|
|
315
|
+
};
|
|
316
|
+
handleItemClick = (item, ev) => {
|
|
317
|
+
if (item.disabled) {
|
|
318
|
+
ev.preventDefault();
|
|
319
|
+
ev.stopPropagation();
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
const value = item.value || item.href || item.label;
|
|
323
|
+
this.qSelect.emit({
|
|
324
|
+
value,
|
|
325
|
+
label: item.label,
|
|
326
|
+
item,
|
|
327
|
+
originalEvent: ev,
|
|
328
|
+
});
|
|
329
|
+
this.handleMenuClose();
|
|
330
|
+
};
|
|
331
|
+
handleMobileSlotChange = () => {
|
|
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;
|
|
335
|
+
};
|
|
336
|
+
setIconAttribute(el, name, value) {
|
|
337
|
+
if (value === undefined || value === null || value === '') {
|
|
338
|
+
el.removeAttribute(name);
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
const nextValue = String(value);
|
|
342
|
+
if (el.getAttribute(name) !== nextValue) {
|
|
343
|
+
el.setAttribute(name, nextValue);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
syncIconAttributes = (el, item) => {
|
|
347
|
+
if (!el || !item.icon)
|
|
348
|
+
return;
|
|
349
|
+
this.setIconAttribute(el, 'name', item.icon);
|
|
350
|
+
this.setIconAttribute(el, 'library', item.iconLib || 'lucide');
|
|
351
|
+
this.setIconAttribute(el, 'size', item.iconSize || 'sm');
|
|
352
|
+
this.setIconAttribute(el, 'local-path', item.iconLocalPath);
|
|
353
|
+
};
|
|
354
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
355
|
+
renderBrand() {
|
|
356
|
+
const logoAlt = this.logoAlt || (this.brand ? '' : 'Brand');
|
|
357
|
+
const content = (h("span", { class: "brand-content" }, this.logoSrc && h("img", { class: "brand-logo", src: this.logoSrc, alt: logoAlt }), this.brand && h("span", { class: "brand-text" }, this.brand)));
|
|
358
|
+
return (h("a", { class: "brand-link", href: this.brandHref, part: "brand" }, h("slot", { name: "brand" }, content)));
|
|
359
|
+
}
|
|
360
|
+
renderNavItem({ item, key }) {
|
|
361
|
+
const value = this.value ?? this.activeValue;
|
|
362
|
+
const active = item.active || (!!value && (item.value === value || item.href === value));
|
|
363
|
+
const iconOnly = !!item.iconOnly && !!item.icon;
|
|
364
|
+
const accessibleLabel = iconOnly ? item.ariaLabel || item.label : undefined;
|
|
365
|
+
const addonPlacement = item.addonPlacement || 'top-end';
|
|
366
|
+
const classes = {
|
|
367
|
+
'nav-item': true,
|
|
368
|
+
'is-active': active,
|
|
369
|
+
'is-disabled': !!item.disabled,
|
|
370
|
+
'is-icon-only': iconOnly,
|
|
371
|
+
};
|
|
372
|
+
const content = [
|
|
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) })),
|
|
374
|
+
h("span", { class: "nav-item__label", "aria-hidden": iconOnly ? 'true' : undefined }, item.label),
|
|
375
|
+
];
|
|
376
|
+
const addon = item.addonSlot ? (h("span", { class: `nav-item__addon is-${addonPlacement}`, part: "item-addon" }, h("slot", { name: item.addonSlot }))) : null;
|
|
377
|
+
if (item.href) {
|
|
378
|
+
return (h("span", { key: key, class: { 'nav-item-shell': true, 'is-icon-only': iconOnly } }, h("a", { class: classes, href: item.disabled ? undefined : item.href, target: item.disabled ? undefined : item.target, rel: item.target === '_blank' ? 'noopener noreferrer' : undefined, "aria-current": active ? 'page' : undefined, "aria-disabled": item.disabled ? 'true' : 'false', "aria-label": accessibleLabel, onClick: (ev) => this.handleItemClick(item, ev) }, content), addon));
|
|
379
|
+
}
|
|
380
|
+
return (h("span", { key: key, class: { 'nav-item-shell': true, 'is-icon-only': iconOnly } }, h("button", { class: classes, type: "button", disabled: item.disabled, "aria-current": active ? 'page' : undefined, "aria-label": accessibleLabel, onClick: (ev) => this.handleItemClick(item, ev) }, content), addon));
|
|
381
|
+
}
|
|
382
|
+
renderNavItems(items) {
|
|
383
|
+
return items.map(item => this.renderNavItem(item));
|
|
384
|
+
}
|
|
385
|
+
render() {
|
|
386
|
+
const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
|
|
387
|
+
const hasItems = items.length > 0;
|
|
388
|
+
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
389
|
+
return (h("div", { key: '984eb99144c6a6b0984ffbcfadaabf354679ec23', class: {
|
|
390
|
+
'navbar': true,
|
|
391
|
+
'is-open': this.menuOpen,
|
|
392
|
+
'is-sticky': this.sticky,
|
|
393
|
+
'is-compact': this.compact,
|
|
394
|
+
'is-transparent': this.transparent,
|
|
395
|
+
'is-bordered': this.bordered,
|
|
396
|
+
'is-collapsed': this.collision,
|
|
397
|
+
'has-mobile-nav': this.hasMobileNav,
|
|
398
|
+
'has-mobile-actions': this.hasMobileActions,
|
|
399
|
+
}, part: "navbar" }, h("div", { key: 'b0cbb5d2aca3697d41bd6c5b95fe92dcca6f26d6', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '05a17c2ed12eb65d0ae453d4bd3afcd7f14a0ae0', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: 'be2d916604ff3b4a9e83d1a640dfe50a137976a8', name: "nav" })), h("div", { key: '93fe2b60d81c1aa0974c875949e55631a50e519f', class: "desktop-actions", part: "actions" }, h("slot", { key: '338e0a38994c7b7522ecf86761db70d277cfe009', name: "actions" })), h("button", { key: '29e0bba6ab435f3ebe3d4face01650c47d3dd0a0', 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: '787867e0d2ba07c96f1e40c3e4ed8ef2a40c11df' }), h("span", { key: '386238de66eb94177d67d8e5073d6d1179fa2976' }), h("span", { key: 'd68f9fcc3108cbda8b1ee5e359aeb4336c00fe8a' }))), h("div", { key: '145bba73cf8bdfbe201ccb5591466b491c7e997a', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '9007da2f0481fa79a5c20275e82f3f4ed1d9fa29', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '8c9968e9696413607623238759260bb57fd7f079', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'e9ef48db7fb076b4bf36d7fe7cb2b51105ec06af', class: "mobile-actions" }, h("slot", { key: 'c46d889db7fdb17180eff12eead8416dce7af707', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
|
|
400
|
+
}
|
|
401
|
+
static get is() { return "q-navbar"; }
|
|
402
|
+
static get encapsulation() { return "shadow"; }
|
|
403
|
+
static get originalStyleUrls() {
|
|
404
|
+
return {
|
|
405
|
+
"$": ["navbar.css"]
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
static get styleUrls() {
|
|
409
|
+
return {
|
|
410
|
+
"$": ["navbar.css"]
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
static get properties() {
|
|
414
|
+
return {
|
|
415
|
+
"brand": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"mutable": false,
|
|
418
|
+
"complexType": {
|
|
419
|
+
"original": "string",
|
|
420
|
+
"resolved": "string",
|
|
421
|
+
"references": {}
|
|
422
|
+
},
|
|
423
|
+
"required": false,
|
|
424
|
+
"optional": true,
|
|
425
|
+
"docs": {
|
|
426
|
+
"tags": [],
|
|
427
|
+
"text": ""
|
|
428
|
+
},
|
|
429
|
+
"getter": false,
|
|
430
|
+
"setter": false,
|
|
431
|
+
"reflect": false,
|
|
432
|
+
"attribute": "brand"
|
|
433
|
+
},
|
|
434
|
+
"logoSrc": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"mutable": false,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "string",
|
|
439
|
+
"resolved": "string",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": true,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [],
|
|
446
|
+
"text": ""
|
|
447
|
+
},
|
|
448
|
+
"getter": false,
|
|
449
|
+
"setter": false,
|
|
450
|
+
"reflect": false,
|
|
451
|
+
"attribute": "logo-src"
|
|
452
|
+
},
|
|
453
|
+
"logoAlt": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"mutable": false,
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "string",
|
|
458
|
+
"resolved": "string",
|
|
459
|
+
"references": {}
|
|
460
|
+
},
|
|
461
|
+
"required": false,
|
|
462
|
+
"optional": false,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": "Accessible text for a logo-only brand image."
|
|
466
|
+
},
|
|
467
|
+
"getter": false,
|
|
468
|
+
"setter": false,
|
|
469
|
+
"reflect": false,
|
|
470
|
+
"attribute": "logo-alt",
|
|
471
|
+
"defaultValue": "''"
|
|
472
|
+
},
|
|
473
|
+
"brandHref": {
|
|
474
|
+
"type": "string",
|
|
475
|
+
"mutable": false,
|
|
476
|
+
"complexType": {
|
|
477
|
+
"original": "string",
|
|
478
|
+
"resolved": "string",
|
|
479
|
+
"references": {}
|
|
480
|
+
},
|
|
481
|
+
"required": false,
|
|
482
|
+
"optional": false,
|
|
483
|
+
"docs": {
|
|
484
|
+
"tags": [],
|
|
485
|
+
"text": ""
|
|
486
|
+
},
|
|
487
|
+
"getter": false,
|
|
488
|
+
"setter": false,
|
|
489
|
+
"reflect": false,
|
|
490
|
+
"attribute": "brand-href",
|
|
491
|
+
"defaultValue": "'/'"
|
|
492
|
+
},
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"mutable": false,
|
|
496
|
+
"complexType": {
|
|
497
|
+
"original": "NavbarItemInput[] | string",
|
|
498
|
+
"resolved": "NavbarItemInput[] | string",
|
|
499
|
+
"references": {
|
|
500
|
+
"NavbarItemInput": {
|
|
501
|
+
"location": "import",
|
|
502
|
+
"path": "./navbar.types",
|
|
503
|
+
"id": "../../../src/browser/components/layout/navbar/navbar.types.ts::NavbarItemInput",
|
|
504
|
+
"referenceLocation": "NavbarItemInput"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"required": false,
|
|
509
|
+
"optional": false,
|
|
510
|
+
"docs": {
|
|
511
|
+
"tags": [],
|
|
512
|
+
"text": "Navigation items; strings use the same text for label and value, while objects enable links, icons, and state."
|
|
513
|
+
},
|
|
514
|
+
"getter": false,
|
|
515
|
+
"setter": false,
|
|
516
|
+
"reflect": false,
|
|
517
|
+
"attribute": "items",
|
|
518
|
+
"defaultValue": "[]"
|
|
519
|
+
},
|
|
520
|
+
"value": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"mutable": false,
|
|
523
|
+
"complexType": {
|
|
524
|
+
"original": "string",
|
|
525
|
+
"resolved": "string",
|
|
526
|
+
"references": {}
|
|
527
|
+
},
|
|
528
|
+
"required": false,
|
|
529
|
+
"optional": true,
|
|
530
|
+
"docs": {
|
|
531
|
+
"tags": [],
|
|
532
|
+
"text": "Matches either an item's value or `href`."
|
|
533
|
+
},
|
|
534
|
+
"getter": false,
|
|
535
|
+
"setter": false,
|
|
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,
|
|
559
|
+
"attribute": "active-value",
|
|
560
|
+
"defaultValue": "''"
|
|
561
|
+
},
|
|
562
|
+
"edge": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"mutable": false,
|
|
565
|
+
"complexType": {
|
|
566
|
+
"original": "QNavbarEdge",
|
|
567
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
568
|
+
"references": {
|
|
569
|
+
"QNavbarEdge": {
|
|
570
|
+
"location": "import",
|
|
571
|
+
"path": "./navbar.types",
|
|
572
|
+
"id": "../../../src/browser/components/layout/navbar/navbar.types.ts::QNavbarEdge",
|
|
573
|
+
"referenceLocation": "QNavbarEdge"
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": false,
|
|
578
|
+
"optional": false,
|
|
579
|
+
"docs": {
|
|
580
|
+
"tags": [],
|
|
581
|
+
"text": ""
|
|
582
|
+
},
|
|
583
|
+
"getter": false,
|
|
584
|
+
"setter": false,
|
|
585
|
+
"reflect": true,
|
|
586
|
+
"attribute": "edge",
|
|
587
|
+
"defaultValue": "'top'"
|
|
588
|
+
},
|
|
589
|
+
"sticky": {
|
|
590
|
+
"type": "boolean",
|
|
591
|
+
"mutable": false,
|
|
592
|
+
"complexType": {
|
|
593
|
+
"original": "boolean",
|
|
594
|
+
"resolved": "boolean",
|
|
595
|
+
"references": {}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": false,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [],
|
|
601
|
+
"text": ""
|
|
602
|
+
},
|
|
603
|
+
"getter": false,
|
|
604
|
+
"setter": false,
|
|
605
|
+
"reflect": true,
|
|
606
|
+
"attribute": "sticky",
|
|
607
|
+
"defaultValue": "false"
|
|
608
|
+
},
|
|
609
|
+
"compact": {
|
|
610
|
+
"type": "boolean",
|
|
611
|
+
"mutable": false,
|
|
612
|
+
"complexType": {
|
|
613
|
+
"original": "boolean",
|
|
614
|
+
"resolved": "boolean",
|
|
615
|
+
"references": {}
|
|
616
|
+
},
|
|
617
|
+
"required": false,
|
|
618
|
+
"optional": false,
|
|
619
|
+
"docs": {
|
|
620
|
+
"tags": [],
|
|
621
|
+
"text": ""
|
|
622
|
+
},
|
|
623
|
+
"getter": false,
|
|
624
|
+
"setter": false,
|
|
625
|
+
"reflect": true,
|
|
626
|
+
"attribute": "compact",
|
|
627
|
+
"defaultValue": "false"
|
|
628
|
+
},
|
|
629
|
+
"transparent": {
|
|
630
|
+
"type": "boolean",
|
|
631
|
+
"mutable": false,
|
|
632
|
+
"complexType": {
|
|
633
|
+
"original": "boolean",
|
|
634
|
+
"resolved": "boolean",
|
|
635
|
+
"references": {}
|
|
636
|
+
},
|
|
637
|
+
"required": false,
|
|
638
|
+
"optional": false,
|
|
639
|
+
"docs": {
|
|
640
|
+
"tags": [],
|
|
641
|
+
"text": ""
|
|
642
|
+
},
|
|
643
|
+
"getter": false,
|
|
644
|
+
"setter": false,
|
|
645
|
+
"reflect": true,
|
|
646
|
+
"attribute": "transparent",
|
|
647
|
+
"defaultValue": "false"
|
|
648
|
+
},
|
|
649
|
+
"bordered": {
|
|
650
|
+
"type": "boolean",
|
|
651
|
+
"mutable": false,
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "boolean",
|
|
654
|
+
"resolved": "boolean",
|
|
655
|
+
"references": {}
|
|
656
|
+
},
|
|
657
|
+
"required": false,
|
|
658
|
+
"optional": false,
|
|
659
|
+
"docs": {
|
|
660
|
+
"tags": [],
|
|
661
|
+
"text": ""
|
|
662
|
+
},
|
|
663
|
+
"getter": false,
|
|
664
|
+
"setter": false,
|
|
665
|
+
"reflect": true,
|
|
666
|
+
"attribute": "bordered",
|
|
667
|
+
"defaultValue": "true"
|
|
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/browser/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/browser/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
|
+
},
|
|
723
|
+
"mobileMode": {
|
|
724
|
+
"type": "string",
|
|
725
|
+
"mutable": false,
|
|
726
|
+
"complexType": {
|
|
727
|
+
"original": "QNavbarMobileMode",
|
|
728
|
+
"resolved": "\"inline\" | \"menu\"",
|
|
729
|
+
"references": {
|
|
730
|
+
"QNavbarMobileMode": {
|
|
731
|
+
"location": "import",
|
|
732
|
+
"path": "./navbar.types",
|
|
733
|
+
"id": "../../../src/browser/components/layout/navbar/navbar.types.ts::QNavbarMobileMode",
|
|
734
|
+
"referenceLocation": "QNavbarMobileMode"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"required": false,
|
|
739
|
+
"optional": false,
|
|
740
|
+
"docs": {
|
|
741
|
+
"tags": [],
|
|
742
|
+
"text": "Controls whether mobile widths collapse items into a menu or keep them inline."
|
|
743
|
+
},
|
|
744
|
+
"getter": false,
|
|
745
|
+
"setter": false,
|
|
746
|
+
"reflect": true,
|
|
747
|
+
"attribute": "mobile-mode",
|
|
748
|
+
"defaultValue": "'menu'"
|
|
749
|
+
},
|
|
750
|
+
"mobileLabel": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"mutable": false,
|
|
753
|
+
"complexType": {
|
|
754
|
+
"original": "string",
|
|
755
|
+
"resolved": "string",
|
|
756
|
+
"references": {}
|
|
757
|
+
},
|
|
758
|
+
"required": false,
|
|
759
|
+
"optional": false,
|
|
760
|
+
"docs": {
|
|
761
|
+
"tags": [],
|
|
762
|
+
"text": "Accessible label for the mobile menu toggle button."
|
|
763
|
+
},
|
|
764
|
+
"getter": false,
|
|
765
|
+
"setter": false,
|
|
766
|
+
"reflect": false,
|
|
767
|
+
"attribute": "mobile-label",
|
|
768
|
+
"defaultValue": "'Menu'"
|
|
769
|
+
},
|
|
770
|
+
"ariaLabel": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"mutable": false,
|
|
773
|
+
"complexType": {
|
|
774
|
+
"original": "string | null",
|
|
775
|
+
"resolved": "string",
|
|
776
|
+
"references": {}
|
|
777
|
+
},
|
|
778
|
+
"required": false,
|
|
779
|
+
"optional": false,
|
|
780
|
+
"docs": {
|
|
781
|
+
"tags": [],
|
|
782
|
+
"text": "Accessible name for the desktop and mobile navigation regions."
|
|
783
|
+
},
|
|
784
|
+
"getter": false,
|
|
785
|
+
"setter": false,
|
|
786
|
+
"reflect": false,
|
|
787
|
+
"attribute": "aria-label",
|
|
788
|
+
"defaultValue": "null"
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
static get states() {
|
|
793
|
+
return {
|
|
794
|
+
"menuOpen": {},
|
|
795
|
+
"hasMobileContent": {},
|
|
796
|
+
"collision": {},
|
|
797
|
+
"hasMobileNav": {},
|
|
798
|
+
"hasMobileActions": {}
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
static get events() {
|
|
802
|
+
return [{
|
|
803
|
+
"method": "qSelect",
|
|
804
|
+
"name": "qSelect",
|
|
805
|
+
"bubbles": true,
|
|
806
|
+
"cancelable": true,
|
|
807
|
+
"composed": true,
|
|
808
|
+
"docs": {
|
|
809
|
+
"tags": [],
|
|
810
|
+
"text": ""
|
|
811
|
+
},
|
|
812
|
+
"complexType": {
|
|
813
|
+
"original": "NavbarSelectDetail",
|
|
814
|
+
"resolved": "NavbarSelectDetail",
|
|
815
|
+
"references": {
|
|
816
|
+
"NavbarSelectDetail": {
|
|
817
|
+
"location": "import",
|
|
818
|
+
"path": "./navbar.types",
|
|
819
|
+
"id": "../../../src/browser/components/layout/navbar/navbar.types.ts::NavbarSelectDetail",
|
|
820
|
+
"referenceLocation": "NavbarSelectDetail"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}, {
|
|
825
|
+
"method": "qMenuToggle",
|
|
826
|
+
"name": "qMenuToggle",
|
|
827
|
+
"bubbles": true,
|
|
828
|
+
"cancelable": true,
|
|
829
|
+
"composed": true,
|
|
830
|
+
"docs": {
|
|
831
|
+
"tags": [],
|
|
832
|
+
"text": ""
|
|
833
|
+
},
|
|
834
|
+
"complexType": {
|
|
835
|
+
"original": "boolean",
|
|
836
|
+
"resolved": "boolean",
|
|
837
|
+
"references": {}
|
|
838
|
+
}
|
|
839
|
+
}];
|
|
840
|
+
}
|
|
841
|
+
static get elementRef() { return "el"; }
|
|
842
|
+
static get watchers() {
|
|
843
|
+
return [{
|
|
844
|
+
"propName": "mobileMode",
|
|
845
|
+
"methodName": "mobileModeChanged"
|
|
846
|
+
}];
|
|
847
|
+
}
|
|
848
|
+
}
|