@db-ux/wc-core-components 3.0.2-copilot2-e7bf98b → 3.0.2-shell2-badc28f
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 +0 -10
- package/dist/cjs/{constants-CTtyzyuo.js → constants-BOd99bQT.js} +7 -2
- package/dist/cjs/constants-BOd99bQT.js.map +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +2 -2
- package/dist/cjs/db-button.cjs.entry.js +2 -2
- package/dist/cjs/db-card.cjs.entry.js +3 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/db-control-panel-brand.cjs.entry.js +57 -0
- package/dist/cjs/db-control-panel-brand.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-brand.entry.cjs.js.map +1 -0
- package/dist/cjs/db-control-panel-desktop.cjs.entry.js +91 -0
- package/dist/cjs/db-control-panel-desktop.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-desktop.entry.cjs.js.map +1 -0
- package/dist/cjs/db-control-panel-flat-icon-navigation.cjs.entry.js +76 -0
- package/dist/cjs/db-control-panel-flat-icon-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-flat-icon-navigation.entry.cjs.js.map +1 -0
- package/dist/cjs/{db-brand.cjs.entry.js → db-control-panel-meta-navigation.cjs.entry.js} +8 -10
- package/dist/cjs/db-control-panel-meta-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-meta-navigation.entry.cjs.js.map +1 -0
- package/dist/cjs/db-control-panel-mobile.cjs.entry.js +76 -0
- package/dist/cjs/db-control-panel-mobile.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-mobile.entry.cjs.js.map +1 -0
- package/dist/cjs/db-control-panel-primary-actions.cjs.entry.js +55 -0
- package/dist/cjs/db-control-panel-primary-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-primary-actions.entry.cjs.js.map +1 -0
- package/dist/cjs/db-control-panel-secondary-actions.cjs.entry.js +55 -0
- package/dist/cjs/db-control-panel-secondary-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/db-control-panel-secondary-actions.entry.cjs.js.map +1 -0
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +13 -13
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +15 -15
- package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +2 -2
- package/dist/cjs/db-drawer.cjs.entry.js +6 -6
- package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/db-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +2 -2
- package/dist/cjs/db-infotext.cjs.entry.js +2 -2
- package/dist/cjs/db-link.cjs.entry.js +2 -2
- package/dist/cjs/db-navigation-item-group.cjs.entry.js +159 -0
- package/dist/cjs/db-navigation-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/db-navigation-item-group.entry.cjs.js.map +1 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +4 -72
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +112 -6
- package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation.entry.cjs.js.map +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +5 -6
- package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +2 -2
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-select.cjs.entry.js +7 -7
- package/dist/cjs/db-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-shell-sub-navigation.cjs.entry.js +71 -0
- package/dist/cjs/db-shell-sub-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/db-shell-sub-navigation.entry.cjs.js.map +1 -0
- package/dist/cjs/{db-page.cjs.entry.js → db-shell.cjs.entry.js} +9 -15
- package/dist/cjs/db-shell.cjs.entry.js.map +1 -0
- package/dist/cjs/db-shell.entry.cjs.js.map +1 -0
- package/dist/cjs/db-stack.cjs.entry.js +3 -3
- package/dist/cjs/db-switch.cjs.entry.js +2 -2
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-tabs.cjs.entry.js +5 -5
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +6 -6
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +7 -8
- package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-DSENlGvK.js} +78 -50
- package/dist/cjs/floating-components-DSENlGvK.js.map +1 -0
- package/dist/cjs/{index-9urL1KCD.js → index-B1qpUQFv.js} +9 -3
- package/dist/cjs/index-B1qpUQFv.js.map +1 -0
- package/dist/cjs/index.cjs.js +21 -11
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-DauGE-qj.js → navigation-DWSyoPJm.js} +38 -21
- package/dist/cjs/navigation-DWSyoPJm.js.map +1 -0
- package/dist/collection/collection-manifest.json +14 -7
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/{brand/brand.js → control-panel-brand/control-panel-brand.js} +22 -47
- package/dist/collection/components/control-panel-brand/control-panel-brand.js.map +1 -0
- package/dist/collection/components/control-panel-brand/index.js +3 -0
- package/dist/collection/components/control-panel-brand/index.js.map +1 -0
- package/dist/collection/components/control-panel-brand/model.js.map +1 -0
- package/dist/collection/components/control-panel-desktop/control-panel-desktop.js +267 -0
- package/dist/collection/components/control-panel-desktop/control-panel-desktop.js.map +1 -0
- package/dist/collection/components/control-panel-desktop/index.js +3 -0
- package/dist/collection/components/control-panel-desktop/index.js.map +1 -0
- package/dist/collection/components/control-panel-desktop/model.js.map +1 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.js +162 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.js.map +1 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/index.js +3 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/index.js.map +1 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/model.js +2 -0
- package/dist/collection/components/control-panel-flat-icon-navigation/model.js.map +1 -0
- package/dist/collection/components/control-panel-meta-navigation/control-panel-meta-navigation.js +104 -0
- package/dist/collection/components/control-panel-meta-navigation/control-panel-meta-navigation.js.map +1 -0
- package/dist/collection/components/control-panel-meta-navigation/index.js +3 -0
- package/dist/collection/components/control-panel-meta-navigation/index.js.map +1 -0
- package/dist/collection/components/control-panel-meta-navigation/model.js +2 -0
- package/dist/collection/components/control-panel-meta-navigation/model.js.map +1 -0
- package/dist/collection/components/{header/header.js → control-panel-mobile/control-panel-mobile.js} +76 -76
- package/dist/collection/components/control-panel-mobile/control-panel-mobile.js.map +1 -0
- package/dist/collection/components/control-panel-mobile/index.js +3 -0
- package/dist/collection/components/control-panel-mobile/index.js.map +1 -0
- package/dist/collection/components/control-panel-mobile/model.js +2 -0
- package/dist/collection/components/control-panel-mobile/model.js.map +1 -0
- package/dist/collection/components/control-panel-primary-actions/control-panel-primary-actions.js +104 -0
- package/dist/collection/components/control-panel-primary-actions/control-panel-primary-actions.js.map +1 -0
- package/dist/collection/components/control-panel-primary-actions/index.js +3 -0
- package/dist/collection/components/control-panel-primary-actions/index.js.map +1 -0
- package/dist/collection/components/control-panel-primary-actions/model.js +2 -0
- package/dist/collection/components/control-panel-primary-actions/model.js.map +1 -0
- package/dist/collection/components/control-panel-secondary-actions/control-panel-secondary-actions.js +104 -0
- package/dist/collection/components/control-panel-secondary-actions/control-panel-secondary-actions.js.map +1 -0
- package/dist/collection/components/control-panel-secondary-actions/index.js +3 -0
- package/dist/collection/components/control-panel-secondary-actions/index.js.map +1 -0
- package/dist/collection/components/control-panel-secondary-actions/model.js +2 -0
- package/dist/collection/components/control-panel-secondary-actions/model.js.map +1 -0
- package/dist/collection/components/custom-select/custom-select.js +12 -12
- package/dist/collection/components/custom-select/custom-select.js.map +1 -1
- package/dist/collection/components/custom-select/model.js.map +1 -1
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +30 -5
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/model.js +1 -1
- package/dist/collection/components/drawer/model.js.map +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/infotext/infotext.js +1 -1
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/navigation/model.js.map +1 -1
- package/dist/collection/components/navigation/navigation.js +206 -7
- package/dist/collection/components/navigation/navigation.js.map +1 -1
- package/dist/collection/components/navigation-item/model.js.map +1 -1
- package/dist/collection/components/navigation-item/navigation-item.js +9 -238
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/collection/components/navigation-item-group/index.js +3 -0
- package/dist/collection/components/navigation-item-group/index.js.map +1 -0
- package/dist/collection/components/navigation-item-group/model.js +2 -0
- package/dist/collection/components/navigation-item-group/model.js.map +1 -0
- package/dist/collection/components/navigation-item-group/navigation-item-group.js +453 -0
- package/dist/collection/components/navigation-item-group/navigation-item-group.js.map +1 -0
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/popover/popover.js +28 -29
- package/dist/collection/components/popover/popover.js.map +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +5 -5
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/shell/index.js +3 -0
- package/dist/collection/components/shell/index.js.map +1 -0
- package/dist/collection/components/shell/model.js +2 -0
- package/dist/collection/components/shell/model.js.map +1 -0
- package/dist/collection/components/shell/shell.js +299 -0
- package/dist/collection/components/shell/shell.js.map +1 -0
- package/dist/collection/components/shell-sub-navigation/index.js +3 -0
- package/dist/collection/components/shell-sub-navigation/index.js.map +1 -0
- package/dist/collection/components/shell-sub-navigation/model.js +2 -0
- package/dist/collection/components/shell-sub-navigation/model.js.map +1 -0
- package/dist/collection/components/{page/page.js → shell-sub-navigation/shell-sub-navigation.js} +43 -94
- package/dist/collection/components/shell-sub-navigation/shell-sub-navigation.js.map +1 -0
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-item/tab-item.js +2 -2
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/tabs/model.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +4 -4
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +4 -4
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +29 -30
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/index.js +19 -6
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/shared/constants.js +3 -0
- package/dist/collection/shared/constants.js.map +1 -1
- package/dist/collection/shared/model.js +3 -0
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/collection/utils/floating-components.js +76 -48
- package/dist/collection/utils/floating-components.js.map +1 -1
- package/dist/collection/utils/navigation.js +34 -22
- package/dist/collection/utils/navigation.js.map +1 -1
- package/dist/custom-elements.json +7740 -6149
- package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
- package/dist/db-ux/db-control-panel-brand.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-desktop.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-flat-icon-navigation.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-meta-navigation.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-mobile.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-primary-actions.entry.esm.js.map +1 -0
- package/dist/db-ux/db-control-panel-secondary-actions.entry.esm.js.map +1 -0
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-drawer.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation-item-group.entry.esm.js.map +1 -0
- package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation.entry.esm.js.map +1 -1
- package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-shell-sub-navigation.entry.esm.js.map +1 -0
- package/dist/db-ux/db-shell.entry.esm.js.map +1 -0
- package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tooltip.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/p-0262e847.entry.js +2 -0
- package/dist/db-ux/p-0262e847.entry.js.map +1 -0
- package/dist/db-ux/p-13f527fb.entry.js +2 -0
- package/dist/db-ux/p-13f527fb.entry.js.map +1 -0
- package/dist/db-ux/p-1a56dee3.entry.js +2 -0
- package/dist/db-ux/p-1a56dee3.entry.js.map +1 -0
- package/dist/db-ux/p-1b0815ab.entry.js +2 -0
- package/dist/db-ux/p-1b0815ab.entry.js.map +1 -0
- package/dist/db-ux/p-1d41f71c.entry.js +2 -0
- package/dist/db-ux/p-1d41f71c.entry.js.map +1 -0
- package/dist/db-ux/p-1dccdff4.entry.js +2 -0
- package/dist/db-ux/p-29dcb78d.entry.js +2 -0
- package/dist/db-ux/p-29dcb78d.entry.js.map +1 -0
- package/dist/db-ux/p-3f2ab801.entry.js +2 -0
- package/dist/db-ux/p-3f2ab801.entry.js.map +1 -0
- package/dist/db-ux/p-40e42146.entry.js +2 -0
- package/dist/db-ux/p-40e42146.entry.js.map +1 -0
- package/dist/db-ux/p-4645cc92.entry.js +2 -0
- package/dist/db-ux/{p-c5ff3d3f.entry.js → p-504a9cfc.entry.js} +2 -2
- package/dist/db-ux/{p-e6e7719e.entry.js → p-53682d25.entry.js} +2 -2
- package/dist/db-ux/p-5be272f0.entry.js +2 -0
- package/dist/db-ux/p-5cb180c4.entry.js +2 -0
- package/dist/db-ux/p-5cb180c4.entry.js.map +1 -0
- package/dist/db-ux/{p-16f1fa7c.entry.js → p-5d292f94.entry.js} +2 -2
- package/dist/db-ux/{p-02fcd4a8.entry.js → p-5e4ac324.entry.js} +2 -2
- package/dist/db-ux/p-6c023c87.entry.js +2 -0
- package/dist/db-ux/p-6c023c87.entry.js.map +1 -0
- package/dist/db-ux/{p-f03f7076.entry.js → p-6fd148ce.entry.js} +2 -2
- package/dist/db-ux/p-7153636c.entry.js +2 -0
- package/dist/db-ux/p-73614370.entry.js +2 -0
- package/dist/db-ux/{p-209cf793.entry.js → p-81d7921b.entry.js} +2 -2
- package/dist/db-ux/{p-d7168627.entry.js → p-8262ab69.entry.js} +2 -2
- package/dist/db-ux/p-8db3c126.entry.js +2 -0
- package/dist/db-ux/{p-d6aeabf0.entry.js.map → p-8db3c126.entry.js.map} +1 -1
- package/dist/db-ux/p-99d090b7.entry.js +2 -0
- package/dist/db-ux/p-9d18d065.entry.js +2 -0
- package/dist/db-ux/p-9d18d065.entry.js.map +1 -0
- package/dist/db-ux/p-CZxi1Pek.js +2 -0
- package/dist/db-ux/p-CZxi1Pek.js.map +1 -0
- package/dist/db-ux/p-D3kmGlOI.js +2 -0
- package/dist/db-ux/p-D3kmGlOI.js.map +1 -0
- package/dist/db-ux/p-Dst8dqRS.js +2 -0
- package/dist/db-ux/p-Dst8dqRS.js.map +1 -0
- package/dist/db-ux/p-a652e0d0.entry.js +2 -0
- package/dist/db-ux/p-a652e0d0.entry.js.map +1 -0
- package/dist/db-ux/{p-bd7d1646.entry.js → p-b713791b.entry.js} +2 -2
- package/dist/db-ux/p-b90f037e.entry.js +2 -0
- package/dist/db-ux/p-b90f037e.entry.js.map +1 -0
- package/dist/db-ux/p-bb9043b3.entry.js +2 -0
- package/dist/db-ux/p-bb9043b3.entry.js.map +1 -0
- package/dist/db-ux/p-bbbb47fe.entry.js +2 -0
- package/dist/db-ux/p-bbbb47fe.entry.js.map +1 -0
- package/dist/db-ux/p-c00303d4.entry.js +2 -0
- package/dist/db-ux/p-c00303d4.entry.js.map +1 -0
- package/dist/db-ux/p-c841ce92.entry.js +2 -0
- package/dist/db-ux/p-c841ce92.entry.js.map +1 -0
- package/dist/db-ux/{p-a2b55626.entry.js → p-d6047812.entry.js} +2 -2
- package/dist/db-ux/p-d8f87aaa.entry.js +2 -0
- package/dist/db-ux/p-d8f87aaa.entry.js.map +1 -0
- package/dist/db-ux/p-e39aeff2.entry.js +2 -0
- package/dist/db-ux/p-e39aeff2.entry.js.map +1 -0
- package/dist/db-ux/p-e418dace.entry.js +2 -0
- package/dist/db-ux/p-e418dace.entry.js.map +1 -0
- package/dist/db-ux/p-eaa14b89.entry.js +2 -0
- package/dist/db-ux/p-eaa14b89.entry.js.map +1 -0
- package/dist/db-ux/p-uOzX56mL.js +3 -0
- package/dist/db-ux/p-uOzX56mL.js.map +1 -0
- package/dist/esm/{constants-DC9V_oNU.js → constants-Dst8dqRS.js} +6 -3
- package/dist/esm/constants-Dst8dqRS.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +2 -2
- package/dist/esm/db-button.entry.js +2 -2
- package/dist/esm/db-card.entry.js +3 -3
- package/dist/esm/db-checkbox.entry.js +6 -6
- package/dist/esm/db-checkbox.entry.js.map +1 -1
- package/dist/esm/db-control-panel-brand.entry.js +55 -0
- package/dist/esm/db-control-panel-brand.entry.js.map +1 -0
- package/dist/esm/db-control-panel-desktop.entry.js +89 -0
- package/dist/esm/db-control-panel-desktop.entry.js.map +1 -0
- package/dist/esm/db-control-panel-flat-icon-navigation.entry.js +74 -0
- package/dist/esm/db-control-panel-flat-icon-navigation.entry.js.map +1 -0
- package/dist/esm/{db-brand.entry.js → db-control-panel-meta-navigation.entry.js} +9 -11
- package/dist/esm/db-control-panel-meta-navigation.entry.js.map +1 -0
- package/dist/esm/db-control-panel-mobile.entry.js +74 -0
- package/dist/esm/db-control-panel-mobile.entry.js.map +1 -0
- package/dist/esm/db-control-panel-primary-actions.entry.js +53 -0
- package/dist/esm/db-control-panel-primary-actions.entry.js.map +1 -0
- package/dist/esm/db-control-panel-secondary-actions.entry.js +53 -0
- package/dist/esm/db-control-panel-secondary-actions.entry.js.map +1 -0
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +13 -13
- package/dist/esm/db-custom-select-dropdown_5.entry.js.map +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +15 -15
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-divider.entry.js +2 -2
- package/dist/esm/db-drawer.entry.js +6 -6
- package/dist/esm/db-drawer.entry.js.map +1 -1
- package/dist/esm/db-icon.entry.js +2 -2
- package/dist/esm/db-infotext.entry.js +2 -2
- package/dist/esm/db-link.entry.js +2 -2
- package/dist/esm/db-navigation-item-group.entry.js +157 -0
- package/dist/esm/db-navigation-item-group.entry.js.map +1 -0
- package/dist/esm/db-navigation-item.entry.js +5 -73
- package/dist/esm/db-navigation-item.entry.js.map +1 -1
- package/dist/esm/db-navigation.entry.js +113 -7
- package/dist/esm/db-navigation.entry.js.map +1 -1
- package/dist/esm/db-notification.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +5 -6
- package/dist/esm/db-popover.entry.js.map +1 -1
- package/dist/esm/db-radio.entry.js +2 -2
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-select.entry.js +7 -7
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-shell-sub-navigation.entry.js +69 -0
- package/dist/esm/db-shell-sub-navigation.entry.js.map +1 -0
- package/dist/esm/{db-page.entry.js → db-shell.entry.js} +9 -15
- package/dist/esm/db-shell.entry.js.map +1 -0
- package/dist/esm/db-stack.entry.js +3 -3
- package/dist/esm/db-switch.entry.js +2 -2
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-tabs.entry.js +5 -5
- package/dist/esm/db-tabs.entry.js.map +1 -1
- package/dist/esm/db-textarea.entry.js +6 -6
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-tooltip.entry.js +7 -8
- package/dist/esm/db-tooltip.entry.js.map +1 -1
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/{floating-components-G-TursYV.js → floating-components-D3kmGlOI.js} +78 -50
- package/dist/esm/floating-components-D3kmGlOI.js.map +1 -0
- package/dist/esm/{index-CNzNv7KB.js → index-uOzX56mL.js} +9 -3
- package/dist/esm/index-uOzX56mL.js.map +1 -0
- package/dist/esm/index.js +12 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation--UdC9CzO.js → navigation-CJ-OxodG.js} +38 -22
- package/dist/esm/navigation-CJ-OxodG.js.map +1 -0
- package/dist/types/components/control-panel-brand/control-panel-brand.d.ts +21 -0
- package/dist/types/components/control-panel-brand/index.d.ts +2 -0
- package/dist/types/components/control-panel-brand/model.d.ts +5 -0
- package/dist/types/components/control-panel-desktop/control-panel-desktop.d.ts +33 -0
- package/dist/types/components/control-panel-desktop/index.d.ts +2 -0
- package/dist/types/components/control-panel-desktop/model.d.ts +7 -0
- package/dist/types/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.d.ts +22 -0
- package/dist/types/components/control-panel-flat-icon-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-flat-icon-navigation/model.d.ts +7 -0
- package/dist/types/components/{brand/brand.d.ts → control-panel-meta-navigation/control-panel-meta-navigation.d.ts} +4 -8
- package/dist/types/components/control-panel-meta-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-meta-navigation/model.d.ts +5 -0
- package/dist/types/components/control-panel-mobile/control-panel-mobile.d.ts +32 -0
- package/dist/types/components/control-panel-mobile/index.d.ts +2 -0
- package/dist/types/components/control-panel-mobile/model.d.ts +30 -0
- package/dist/types/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +18 -0
- package/dist/types/components/control-panel-primary-actions/index.d.ts +2 -0
- package/dist/types/components/control-panel-primary-actions/model.d.ts +5 -0
- package/dist/types/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts +18 -0
- package/dist/types/components/control-panel-secondary-actions/index.d.ts +2 -0
- package/dist/types/components/control-panel-secondary-actions/model.d.ts +5 -0
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components/custom-select/model.d.ts +4 -1
- package/dist/types/components/drawer/drawer.d.ts +1 -0
- package/dist/types/components/drawer/model.d.ts +5 -1
- package/dist/types/components/navigation/model.d.ts +14 -5
- package/dist/types/components/navigation/navigation.d.ts +19 -1
- package/dist/types/components/navigation-item/model.d.ts +9 -24
- package/dist/types/components/navigation-item/navigation-item.d.ts +2 -24
- package/dist/types/components/navigation-item-group/index.d.ts +2 -0
- package/dist/types/components/navigation-item-group/model.d.ts +26 -0
- package/dist/types/components/navigation-item-group/navigation-item-group.d.ts +50 -0
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/shell/index.d.ts +2 -0
- package/dist/types/components/shell/model.d.ts +50 -0
- package/dist/types/components/shell/shell.d.ts +28 -0
- package/dist/types/components/shell-sub-navigation/index.d.ts +2 -0
- package/dist/types/components/shell-sub-navigation/model.d.ts +5 -0
- package/dist/types/components/shell-sub-navigation/shell-sub-navigation.d.ts +24 -0
- package/dist/types/components/tabs/model.d.ts +3 -11
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +302 -119
- package/dist/types/index.d.ts +19 -6
- package/dist/types/shared/constants.d.ts +3 -0
- package/dist/types/shared/model.d.ts +82 -3
- package/dist/types/utils/floating-components.d.ts +17 -1
- package/dist/types/utils/navigation.d.ts +2 -6
- package/dist/vscode.html-custom-data.json +532 -327
- package/dist/web-types.json +1235 -795
- package/package.json +5 -7
- package/agent/Accordion.md +0 -23
- package/agent/AccordionItem.md +0 -29
- package/agent/Badge.md +0 -32
- package/agent/Brand.md +0 -13
- package/agent/Button.md +0 -47
- package/agent/Card.md +0 -23
- package/agent/Checkbox.md +0 -41
- package/agent/CustomSelect.md +0 -54
- package/agent/Divider.md +0 -21
- package/agent/Drawer.md +0 -71
- package/agent/Header.md +0 -29
- package/agent/Icon.md +0 -20
- package/agent/Infotext.md +0 -25
- package/agent/Input.md +0 -48
- package/agent/Link.md +0 -52
- package/agent/Navigation.md +0 -19
- package/agent/NavigationItem.md +0 -29
- package/agent/Notification.md +0 -38
- package/agent/Page.md +0 -27
- package/agent/Popover.md +0 -52
- package/agent/Radio.md +0 -28
- package/agent/Section.md +0 -21
- package/agent/Select.md +0 -62
- package/agent/Stack.md +0 -35
- package/agent/Switch.md +0 -44
- package/agent/TabItem.md +0 -25
- package/agent/Tabs.md +0 -61
- package/agent/Tag.md +0 -41
- package/agent/Textarea.md +0 -44
- package/agent/Tooltip.md +0 -37
- package/agent/_instructions.md +0 -31
- package/dist/cjs/constants-CTtyzyuo.js.map +0 -1
- package/dist/cjs/db-brand.cjs.entry.js.map +0 -1
- package/dist/cjs/db-brand.entry.cjs.js.map +0 -1
- package/dist/cjs/db-header.cjs.entry.js +0 -96
- package/dist/cjs/db-header.cjs.entry.js.map +0 -1
- package/dist/cjs/db-header.entry.cjs.js.map +0 -1
- package/dist/cjs/db-page.cjs.entry.js.map +0 -1
- package/dist/cjs/db-page.entry.cjs.js.map +0 -1
- package/dist/cjs/floating-components-ogUqz72V.js.map +0 -1
- package/dist/cjs/index-9urL1KCD.js.map +0 -1
- package/dist/cjs/navigation-DauGE-qj.js.map +0 -1
- package/dist/collection/components/brand/brand.js.map +0 -1
- package/dist/collection/components/brand/index.js +0 -3
- package/dist/collection/components/brand/index.js.map +0 -1
- package/dist/collection/components/brand/model.js.map +0 -1
- package/dist/collection/components/header/header.js.map +0 -1
- package/dist/collection/components/header/index.js +0 -3
- package/dist/collection/components/header/index.js.map +0 -1
- package/dist/collection/components/header/model.js.map +0 -1
- package/dist/collection/components/page/index.js +0 -3
- package/dist/collection/components/page/index.js.map +0 -1
- package/dist/collection/components/page/model.js +0 -3
- package/dist/collection/components/page/model.js.map +0 -1
- package/dist/collection/components/page/page.js.map +0 -1
- package/dist/db-ux/db-brand.entry.esm.js.map +0 -1
- package/dist/db-ux/db-header.entry.esm.js.map +0 -1
- package/dist/db-ux/db-page.entry.esm.js.map +0 -1
- package/dist/db-ux/p-340bb722.entry.js +0 -2
- package/dist/db-ux/p-340bb722.entry.js.map +0 -1
- package/dist/db-ux/p-3d7eb768.entry.js +0 -2
- package/dist/db-ux/p-3d7eb768.entry.js.map +0 -1
- package/dist/db-ux/p-51de401e.entry.js +0 -2
- package/dist/db-ux/p-58007675.entry.js +0 -2
- package/dist/db-ux/p-58007675.entry.js.map +0 -1
- package/dist/db-ux/p-5b45664d.entry.js +0 -2
- package/dist/db-ux/p-5c6da0f3.entry.js +0 -2
- package/dist/db-ux/p-6e35a260.entry.js +0 -2
- package/dist/db-ux/p-6e35a260.entry.js.map +0 -1
- package/dist/db-ux/p-72330d25.entry.js +0 -2
- package/dist/db-ux/p-72330d25.entry.js.map +0 -1
- package/dist/db-ux/p-84dd974f.entry.js +0 -2
- package/dist/db-ux/p-84dd974f.entry.js.map +0 -1
- package/dist/db-ux/p-8b41c30e.entry.js +0 -2
- package/dist/db-ux/p-8b41c30e.entry.js.map +0 -1
- package/dist/db-ux/p-971a16c3.entry.js +0 -2
- package/dist/db-ux/p-971a16c3.entry.js.map +0 -1
- package/dist/db-ux/p-9d0996e9.entry.js +0 -2
- package/dist/db-ux/p-CNzNv7KB.js +0 -3
- package/dist/db-ux/p-CNzNv7KB.js.map +0 -1
- package/dist/db-ux/p-DC9V_oNU.js +0 -2
- package/dist/db-ux/p-DC9V_oNU.js.map +0 -1
- package/dist/db-ux/p-G-TursYV.js +0 -2
- package/dist/db-ux/p-G-TursYV.js.map +0 -1
- package/dist/db-ux/p-a3541c03.entry.js +0 -2
- package/dist/db-ux/p-a3541c03.entry.js.map +0 -1
- package/dist/db-ux/p-c8bdd952.entry.js +0 -2
- package/dist/db-ux/p-c8cdde8c.entry.js +0 -2
- package/dist/db-ux/p-ce895e0c.entry.js +0 -2
- package/dist/db-ux/p-ce895e0c.entry.js.map +0 -1
- package/dist/db-ux/p-d4e3d1db.entry.js +0 -2
- package/dist/db-ux/p-d4e3d1db.entry.js.map +0 -1
- package/dist/db-ux/p-d6aeabf0.entry.js +0 -2
- package/dist/db-ux/p-e9c323af.entry.js +0 -2
- package/dist/db-ux/p-e9c323af.entry.js.map +0 -1
- package/dist/db-ux/p-ec957247.entry.js +0 -2
- package/dist/db-ux/p-ec957247.entry.js.map +0 -1
- package/dist/db-ux/p-fdf5578d.entry.js +0 -2
- package/dist/db-ux/p-fdf5578d.entry.js.map +0 -1
- package/dist/db-ux/p-sP2NlPcu.js +0 -2
- package/dist/db-ux/p-sP2NlPcu.js.map +0 -1
- package/dist/esm/constants-DC9V_oNU.js.map +0 -1
- package/dist/esm/db-brand.entry.js.map +0 -1
- package/dist/esm/db-header.entry.js +0 -94
- package/dist/esm/db-header.entry.js.map +0 -1
- package/dist/esm/db-page.entry.js.map +0 -1
- package/dist/esm/floating-components-G-TursYV.js.map +0 -1
- package/dist/esm/index-CNzNv7KB.js.map +0 -1
- package/dist/esm/navigation--UdC9CzO.js.map +0 -1
- package/dist/types/components/brand/index.d.ts +0 -2
- package/dist/types/components/brand/model.d.ts +0 -10
- package/dist/types/components/header/header.d.ts +0 -33
- package/dist/types/components/header/index.d.ts +0 -2
- package/dist/types/components/header/model.d.ts +0 -44
- package/dist/types/components/page/index.d.ts +0 -2
- package/dist/types/components/page/model.d.ts +0 -36
- package/dist/types/components/page/page.d.ts +0 -25
- /package/dist/collection/components/{brand → control-panel-brand}/model.js +0 -0
- /package/dist/collection/components/{header → control-panel-desktop}/model.js +0 -0
- /package/dist/db-ux/{p-5c6da0f3.entry.js.map → p-1dccdff4.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c8bdd952.entry.js.map → p-4645cc92.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c5ff3d3f.entry.js.map → p-504a9cfc.entry.js.map} +0 -0
- /package/dist/db-ux/{p-e6e7719e.entry.js.map → p-53682d25.entry.js.map} +0 -0
- /package/dist/db-ux/{p-51de401e.entry.js.map → p-5be272f0.entry.js.map} +0 -0
- /package/dist/db-ux/{p-16f1fa7c.entry.js.map → p-5d292f94.entry.js.map} +0 -0
- /package/dist/db-ux/{p-02fcd4a8.entry.js.map → p-5e4ac324.entry.js.map} +0 -0
- /package/dist/db-ux/{p-f03f7076.entry.js.map → p-6fd148ce.entry.js.map} +0 -0
- /package/dist/db-ux/{p-5b45664d.entry.js.map → p-7153636c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-9d0996e9.entry.js.map → p-73614370.entry.js.map} +0 -0
- /package/dist/db-ux/{p-209cf793.entry.js.map → p-81d7921b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d7168627.entry.js.map → p-8262ab69.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c8cdde8c.entry.js.map → p-99d090b7.entry.js.map} +0 -0
- /package/dist/db-ux/{p-bd7d1646.entry.js.map → p-b713791b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-a2b55626.entry.js.map → p-d6047812.entry.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as handleDataOutside } from './floating-components-
|
|
1
|
+
import { h as handleDataOutside, b as handleFixedPopover } from './floating-components-D3kmGlOI.js';
|
|
2
2
|
|
|
3
3
|
const isEventTargetNavigationItem = (event) => {
|
|
4
|
-
var _a
|
|
4
|
+
var _a;
|
|
5
5
|
const { target } = event;
|
|
6
|
-
return Boolean(
|
|
6
|
+
return Boolean((_a = target === null || target === void 0 ? void 0 : target.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains('db-navigation-item'));
|
|
7
7
|
};
|
|
8
8
|
class NavigationItemSafeTriangle {
|
|
9
9
|
constructor(element, subNavigation) {
|
|
10
|
-
var _a;
|
|
10
|
+
var _a, _b;
|
|
11
11
|
this.parentSubNavigation = null;
|
|
12
12
|
this.initialized = false;
|
|
13
13
|
this.mouseX = 0;
|
|
@@ -17,13 +17,12 @@ class NavigationItemSafeTriangle {
|
|
|
17
17
|
if (!this.element || !this.subNavigation) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
this.parentSubNavigation = (_a = this.element) === null || _a === void 0 ? void 0 : _a.closest('.db-
|
|
20
|
+
this.parentSubNavigation = (_b = (_a = this.element) === null || _a === void 0 ? void 0 : _a.closest('.db-navigation-item-group-menu')) !== null && _b !== void 0 ? _b : this.element;
|
|
21
21
|
/*
|
|
22
22
|
* only initiate if:
|
|
23
|
-
* 1. item is not at root navigation level
|
|
24
23
|
* 2. item is not in the mobile navigation / within db-drawer
|
|
25
24
|
*/
|
|
26
|
-
if (
|
|
25
|
+
if (!this.element.closest('.db-drawer')) {
|
|
27
26
|
this.init();
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -89,20 +88,10 @@ class NavigationItemSafeTriangle {
|
|
|
89
88
|
}
|
|
90
89
|
return false;
|
|
91
90
|
}
|
|
92
|
-
getTriangleCoordinates(
|
|
91
|
+
getTriangleCoordinates() {
|
|
93
92
|
if (!this.triangleData) {
|
|
94
93
|
return;
|
|
95
94
|
}
|
|
96
|
-
if (variant === 'fill-gap') {
|
|
97
|
-
const itemHeight = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`;
|
|
98
|
-
const xStart = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
99
|
-
return {
|
|
100
|
-
lb: `${xStart} ${itemHeight}`,
|
|
101
|
-
lt: `${xStart} 0`,
|
|
102
|
-
rt: '100% 0',
|
|
103
|
-
rb: `100% ${itemHeight}`
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
95
|
const tipX = this.getTriangleTipX();
|
|
107
96
|
const tipY = this.getTriangleTipY();
|
|
108
97
|
const lb = `${tipX}px ${tipY}px`;
|
|
@@ -121,7 +110,7 @@ class NavigationItemSafeTriangle {
|
|
|
121
110
|
this.mouseX = event.clientX - this.triangleData.itemRect.left;
|
|
122
111
|
this.mouseY = event.clientY - this.triangleData.itemRect.top;
|
|
123
112
|
const isOverSubNavigation = this.hasMouseEnteredSubNavigation();
|
|
124
|
-
const coordinates = this.getTriangleCoordinates(
|
|
113
|
+
const coordinates = this.getTriangleCoordinates();
|
|
125
114
|
if (!coordinates) {
|
|
126
115
|
return;
|
|
127
116
|
}
|
|
@@ -131,8 +120,35 @@ class NavigationItemSafeTriangle {
|
|
|
131
120
|
}
|
|
132
121
|
}
|
|
133
122
|
}
|
|
123
|
+
const handleSubNavigationPosition = (element, level = 0) => {
|
|
124
|
+
for (const navItem of Array.from(element.querySelectorAll('.db-navigation-item-group'))) {
|
|
125
|
+
const subNavigation = navItem.querySelector('.db-navigation-item-group-menu');
|
|
126
|
+
const button = navItem.querySelector('.db-navigation-item-group-expand-button');
|
|
127
|
+
if (subNavigation && button) {
|
|
128
|
+
/*
|
|
129
|
+
* This is set via css inside:
|
|
130
|
+
* `packages/components/src/components/navigation-item-group/navigation-item-group-menu-popover.scss`.
|
|
131
|
+
* We don't need to calculate the position of the menu as a popover.
|
|
132
|
+
*/
|
|
133
|
+
const isMobile = getComputedStyle(subNavigation).getPropertyValue('--db-navigation-item-group-menu-mobile');
|
|
134
|
+
if (isMobile)
|
|
135
|
+
return;
|
|
136
|
+
if (level > 0 || subNavigation.dataset['open'] === 'horizontal') {
|
|
137
|
+
// Sub-Navigation should be opened horizontal
|
|
138
|
+
handleFixedPopover(subNavigation, button, 'right-start');
|
|
139
|
+
subNavigation.dataset['open'] = 'horizontal';
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
// Sub-Navigation should be opened vertical
|
|
143
|
+
handleFixedPopover(subNavigation, button, 'bottom-start');
|
|
144
|
+
subNavigation.dataset['open'] = 'vertical';
|
|
145
|
+
}
|
|
146
|
+
handleSubNavigationPosition(subNavigation, level + 1);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
134
150
|
|
|
135
|
-
export { NavigationItemSafeTriangle as N, isEventTargetNavigationItem as i };
|
|
136
|
-
//# sourceMappingURL=navigation
|
|
151
|
+
export { NavigationItemSafeTriangle as N, handleSubNavigationPosition as h, isEventTargetNavigationItem as i };
|
|
152
|
+
//# sourceMappingURL=navigation-CJ-OxodG.js.map
|
|
137
153
|
|
|
138
|
-
//# sourceMappingURL=navigation
|
|
154
|
+
//# sourceMappingURL=navigation-CJ-OxodG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-CJ-OxodG.js","sources":["src/utils/navigation.ts"],"sourcesContent":["import { handleDataOutside, handleFixedPopover } from './floating-components';\nexport type TriangleData = {\n itemRect: DOMRect;\n parentElementWidth: number;\n subNavigationHeight: number;\n padding: number;\n outsideVX: 'left' | 'right' | undefined;\n outsideVY: 'top' | 'bottom' | undefined;\n};\nexport const isEventTargetNavigationItem = (event: unknown): boolean => {\n const {\n target\n } = event as {\n target: HTMLElement;\n };\n return Boolean(target?.parentElement?.classList.contains('db-navigation-item'));\n};\nexport class NavigationItemSafeTriangle {\n private readonly element: HTMLElement | null;\n private readonly subNavigation: HTMLElement | null;\n private readonly parentSubNavigation: HTMLElement | null = null;\n private triangleData?: TriangleData;\n private initialized: boolean = false;\n private mouseX: number = 0;\n private mouseY: number = 0;\n constructor(element: HTMLElement | null, subNavigation: HTMLElement | null) {\n this.element = element;\n this.subNavigation = subNavigation;\n if (!this.element || !this.subNavigation) {\n return;\n }\n this.parentSubNavigation = this.element?.closest('.db-navigation-item-group-menu') ?? this.element;\n\n /*\n * only initiate if:\n * 2. item is not in the mobile navigation / within db-drawer\n */\n if (!this.element.closest('.db-drawer')) {\n this.init();\n }\n }\n private init() {\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n\n // the triangle has the width of the sub-navigation, current nav-item can be wider.\n // so the width of the triangle must be adapted to a possibly wider nav-item.\n this.element?.style.setProperty('--db-navigation-item-inline-size', `${parentElementWidth}px`);\n this.initialized = true;\n }\n public enableFollow() {\n if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n const dataOutsidePair = handleDataOutside(this.subNavigation);\n const itemRect = this.element.getBoundingClientRect();\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n this.triangleData = {\n itemRect,\n parentElementWidth,\n subNavigationHeight: this.subNavigation.getBoundingClientRect().height,\n padding: (parentElementWidth - itemRect.width) / 2,\n outsideVX: dataOutsidePair.vx,\n outsideVY: dataOutsidePair.vy\n };\n }\n public disableFollow() {\n this.triangleData = undefined;\n }\n private getTriangleTipX(): number {\n if (!this.triangleData) return 0;\n if (this.triangleData.outsideVX === 'right') {\n // vertical flipped triangle needs an inverted x pos\n return this.triangleData.itemRect.width - this.mouseX;\n }\n\n // triangle stops shrinking from 75% x pos\n return Math.min(this.mouseX, this.triangleData.itemRect.width * 0.75);\n }\n private getTriangleTipY(): number {\n if (!this.triangleData) return 0;\n\n // padding must be added to the y pos of the tip so that the y pos matches the cursor\n const mouseYLimited = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;\n if (this.triangleData.outsideVY === 'bottom') {\n // add offset to tip y pos to match corrected sub-navigation y pos\n return mouseYLimited + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height);\n }\n return mouseYLimited;\n }\n private hasMouseEnteredSubNavigation(): boolean {\n if (!this.triangleData) {\n return false;\n }\n const isSubNavigationOnLeftSide = this.triangleData.outsideVX === 'right';\n if (isSubNavigationOnLeftSide && this.mouseX < -1 * this.triangleData.padding) {\n return true;\n }\n if (!isSubNavigationOnLeftSide && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding) {\n return true;\n }\n return false;\n }\n private getTriangleCoordinates(): undefined | {\n lb: string;\n lt: string;\n rt: string;\n rb: string;\n } {\n if (!this.triangleData) {\n return;\n }\n const tipX = this.getTriangleTipX();\n const tipY = this.getTriangleTipY();\n const lb = `${tipX}px ${tipY}px`;\n const lt = `${tipX}px ${tipY}px`;\n return {\n lb,\n lt,\n rt: '100% 0',\n rb: '100% 100%'\n };\n }\n public followByMouseEvent(event: any) {\n if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n this.mouseX = event.clientX - this.triangleData.itemRect.left;\n this.mouseY = event.clientY - this.triangleData.itemRect.top;\n const isOverSubNavigation = this.hasMouseEnteredSubNavigation();\n const coordinates = this.getTriangleCoordinates();\n if (!coordinates) {\n return;\n }\n this.element.style.setProperty('--db-navigation-item-clip-path', `polygon(${coordinates.lb}, ${coordinates.lt}, ${coordinates.rt}, ${coordinates.rb})`);\n if (isOverSubNavigation) {\n this.triangleData = undefined;\n }\n }\n}\nexport const handleSubNavigationPosition = (element: HTMLElement, level: number = 0) => {\n for (const navItem of Array.from(element.querySelectorAll('.db-navigation-item-group'))) {\n const subNavigation: HTMLElement | null = navItem.querySelector('.db-navigation-item-group-menu');\n const button: HTMLElement | null = navItem.querySelector('.db-navigation-item-group-expand-button');\n if (subNavigation && button) {\n /*\n * This is set via css inside:\n * `packages/components/src/components/navigation-item-group/navigation-item-group-menu-popover.scss`.\n * We don't need to calculate the position of the menu as a popover.\n */\n const isMobile = getComputedStyle(subNavigation).getPropertyValue('--db-navigation-item-group-menu-mobile');\n if (isMobile) return;\n if (level > 0 || subNavigation.dataset['open'] === 'horizontal') {\n // Sub-Navigation should be opened horizontal\n handleFixedPopover(subNavigation, button, 'right-start');\n subNavigation.dataset['open'] = 'horizontal';\n } else {\n // Sub-Navigation should be opened vertical\n handleFixedPopover(subNavigation, button, 'bottom-start');\n subNavigation.dataset['open'] = 'vertical';\n }\n handleSubNavigationPosition(subNavigation, level + 1);\n }\n }\n}"],"names":[],"mappings":";;AASa,MAAA,2BAA2B,GAAG,CAAC,KAAc,KAAa;;AACrE,IAAA,MAAM,EACJ,MAAM,EACP,GAAG,KAEH;AACD,IAAA,OAAO,OAAO,CAAC,CAAA,EAAA,GAAA,MAAM,KAAN,IAAA,IAAA,MAAM,uBAAN,MAAM,CAAE,aAAa,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;AACjF;MACa,0BAA0B,CAAA;IAQrC,WAAY,CAAA,OAA2B,EAAE,aAAiC,EAAA;;QALzD,IAAmB,CAAA,mBAAA,GAAuB,IAAI;QAEvD,IAAW,CAAA,WAAA,GAAY,KAAK;QAC5B,IAAM,CAAA,MAAA,GAAW,CAAC;QAClB,IAAM,CAAA,MAAA,GAAW,CAAC;AAExB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;AACtB,QAAA,IAAI,CAAC,aAAa,GAAG,aAAa;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACxC;;AAEF,QAAA,IAAI,CAAC,mBAAmB,GAAG,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,OAAO,CAAC,gCAAgC,CAAC,mCAAI,IAAI,CAAC,OAAO;AAElG;;;AAGG;QACH,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACvC,IAAI,CAAC,IAAI,EAAE;;;IAGP,IAAI,GAAA;;AACV,QAAA,MAAM,kBAAkB,GAAG,CAAA,EAAA,GAAA,CAAA,EA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BControlPanelBrandProps } from "./model";
|
|
2
|
+
/**
|
|
3
|
+
* @slot children - This is a default/unnamed slot
|
|
4
|
+
* @slot additionalInformation - TODO: Add description for slotAdditionalInformation
|
|
5
|
+
*/
|
|
6
|
+
export declare class DBControlPanelBrand {
|
|
7
|
+
private _ref;
|
|
8
|
+
icon: DBControlPanelBrandProps["icon"];
|
|
9
|
+
showIcon: DBControlPanelBrandProps["showIcon"];
|
|
10
|
+
id: DBControlPanelBrandProps["id"];
|
|
11
|
+
className: DBControlPanelBrandProps["className"];
|
|
12
|
+
text: DBControlPanelBrandProps["text"];
|
|
13
|
+
/**
|
|
14
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
15
|
+
* @param element the ref for the component
|
|
16
|
+
* @param customElementSelector the custom element like `my-component`
|
|
17
|
+
*/
|
|
18
|
+
private enableAttributePassing;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AdditionalInformationSlotProps, GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelBrandDefaultProps = {};
|
|
3
|
+
export type DBControlPanelBrandProps = DBControlPanelBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps & AdditionalInformationSlotProps;
|
|
4
|
+
export type DBControlPanelBrandDefaultState = {};
|
|
5
|
+
export type DBControlPanelBrandState = DBControlPanelBrandDefaultState & GlobalState;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DBControlPanelDesktopProps } from "./model";
|
|
2
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* @slot children - This is a default/unnamed slot
|
|
5
|
+
* @slot brand - TODO: Add description for slotBrand
|
|
6
|
+
* @slot metaNavigation - TODO: Add description for slotMetaNavigation
|
|
7
|
+
* @slot primaryActions - TODO: Add description for slotPrimaryActions
|
|
8
|
+
* @slot secondaryActions - TODO: Add description for slotSecondaryActions
|
|
9
|
+
*/
|
|
10
|
+
export declare class DBControlPanelDesktop {
|
|
11
|
+
private _ref;
|
|
12
|
+
private _scrollContainerRef;
|
|
13
|
+
expanded: DBControlPanelDesktopProps["expanded"];
|
|
14
|
+
expandButtonTooltipFn: EventEmitter<Parameters<Required<DBControlPanelDesktopProps>["onExpandButtonTooltipFn"]>[number]> | void;
|
|
15
|
+
expandButtonTooltip: DBControlPanelDesktopProps["expandButtonTooltip"];
|
|
16
|
+
className: DBControlPanelDesktopProps["className"];
|
|
17
|
+
id: DBControlPanelDesktopProps["id"];
|
|
18
|
+
width: DBControlPanelDesktopProps["width"];
|
|
19
|
+
orientation: DBControlPanelDesktopProps["orientation"];
|
|
20
|
+
_id: string;
|
|
21
|
+
_open: boolean;
|
|
22
|
+
handleToggle(event: any): void;
|
|
23
|
+
getToggleButtonText(): string | CustomEvent<boolean>;
|
|
24
|
+
onScroll(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
27
|
+
* @param element the ref for the component
|
|
28
|
+
* @param customElementSelector the custom element like `my-component`
|
|
29
|
+
*/
|
|
30
|
+
private enableAttributePassing;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContainerWidthProps, ControlPanelProps, GlobalProps, GlobalState, OrientationProps, SidebarProps, SidebarState, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelDesktopDefaultProps = {};
|
|
3
|
+
export type DBControlPanelDesktopProps = DBControlPanelDesktopDefaultProps & GlobalProps & ContainerWidthProps & ControlPanelProps & OrientationProps & SidebarProps;
|
|
4
|
+
export type DBControlPanelDesktopDefaultState = {
|
|
5
|
+
onScroll: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type DBControlPanelDesktopState = DBControlPanelDesktopDefaultState & GlobalState & ToggleEventState<HTMLButtonElement> & SidebarState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DBControlPanelFlatIconNavigationProps } from "./model";
|
|
2
|
+
/**
|
|
3
|
+
* @slot children - This is a default/unnamed slot
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
export declare class DBControlPanelFlatIconNavigation {
|
|
7
|
+
private _ref;
|
|
8
|
+
id: DBControlPanelFlatIconNavigationProps["id"];
|
|
9
|
+
noText: DBControlPanelFlatIconNavigationProps["noText"];
|
|
10
|
+
className: DBControlPanelFlatIconNavigationProps["className"];
|
|
11
|
+
initialized: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
14
|
+
* @param element the ref for the component
|
|
15
|
+
* @param customElementSelector the custom element like `my-component`
|
|
16
|
+
*/
|
|
17
|
+
private enableAttributePassing;
|
|
18
|
+
watch0Fn(): void;
|
|
19
|
+
watch0(): void;
|
|
20
|
+
componentDidLoad(): void;
|
|
21
|
+
render(): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelFlatIconNavigationDefaultProps = {
|
|
3
|
+
noText?: string | boolean;
|
|
4
|
+
};
|
|
5
|
+
export type DBControlPanelFlatIconNavigationProps = DBControlPanelFlatIconNavigationDefaultProps & GlobalProps;
|
|
6
|
+
export type DBControlPanelFlatIconNavigationDefaultState = {};
|
|
7
|
+
export type DBControlPanelFlatIconNavigationState = DBControlPanelFlatIconNavigationDefaultState & GlobalState & InitializedState;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DBControlPanelMetaNavigationProps } from "./model";
|
|
2
2
|
/**
|
|
3
3
|
* @slot children - This is a default/unnamed slot
|
|
4
4
|
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class DBControlPanelMetaNavigation {
|
|
7
7
|
private _ref;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
showIcon: DBBrandProps["showIcon"];
|
|
11
|
-
id: DBBrandProps["id"];
|
|
12
|
-
className: DBBrandProps["className"];
|
|
13
|
-
text: DBBrandProps["text"];
|
|
8
|
+
id: DBControlPanelMetaNavigationProps["id"];
|
|
9
|
+
className: DBControlPanelMetaNavigationProps["className"];
|
|
14
10
|
/**
|
|
15
11
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
16
12
|
* @param element the ref for the component
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelMetaNavigationDefaultProps = {};
|
|
3
|
+
export type DBControlPanelMetaNavigationProps = DBControlPanelMetaNavigationDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelMetaNavigationDefaultState = {};
|
|
5
|
+
export type DBControlPanelMetaNavigationState = DBControlPanelMetaNavigationDefaultState & GlobalState;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DBControlPanelMobileProps } from "./model";
|
|
2
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* @slot children - This is a default/unnamed slot
|
|
5
|
+
* @slot metaNavigation - TODO: Add description for slotMetaNavigation
|
|
6
|
+
* @slot secondaryActions - TODO: Add description for slotSecondaryActions
|
|
7
|
+
* @slot flatIconNavigation - TODO: Add description for slotFlatIconNavigation
|
|
8
|
+
* @slot brand - TODO: Add description for slotBrand
|
|
9
|
+
* @slot primaryActions - TODO: Add description for slotPrimaryActions
|
|
10
|
+
*/
|
|
11
|
+
export declare class DBControlPanelMobile {
|
|
12
|
+
private _ref;
|
|
13
|
+
toggle: EventEmitter<Parameters<Required<DBControlPanelMobileProps>["onToggle"]>[number]> | void;
|
|
14
|
+
id: DBControlPanelMobileProps["id"];
|
|
15
|
+
width: DBControlPanelMobileProps["width"];
|
|
16
|
+
position: DBControlPanelMobileProps["position"];
|
|
17
|
+
variant: DBControlPanelMobileProps["variant"];
|
|
18
|
+
className: DBControlPanelMobileProps["className"];
|
|
19
|
+
drawerHeadlinePlain: DBControlPanelMobileProps["drawerHeadlinePlain"];
|
|
20
|
+
burgerMenuLabel: DBControlPanelMobileProps["burgerMenuLabel"];
|
|
21
|
+
open: boolean;
|
|
22
|
+
handleToggle(event: any): void;
|
|
23
|
+
handleNavigationItemClick(event: any): void;
|
|
24
|
+
/**
|
|
25
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
26
|
+
* @param element the ref for the component
|
|
27
|
+
* @param customElementSelector the custom element like `my-component`
|
|
28
|
+
*/
|
|
29
|
+
private enableAttributePassing;
|
|
30
|
+
componentDidLoad(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ContainerWidthProps, ControlPanelProps, GlobalProps, GlobalState, NavigationBehaviorState, ShellControlPanelMobilePositionType, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export declare const ShellControlPanelMobileVariant: readonly ["drawer", "flat-icon"];
|
|
3
|
+
export type ShellControlPanelMobileVariantType = (typeof ShellControlPanelMobileVariant)[number];
|
|
4
|
+
export type DBControlPanelMobileDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Text to pass in a headline for the drawer header.
|
|
7
|
+
*/
|
|
8
|
+
drawerHeadlinePlain?: string;
|
|
9
|
+
/**
|
|
10
|
+
* This attribute sets the label for the burger menu button for mobile control-panel-desktops.
|
|
11
|
+
*/
|
|
12
|
+
burgerMenuLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Change the position of the mobile content panel
|
|
15
|
+
*/
|
|
16
|
+
position?: ShellControlPanelMobilePositionType;
|
|
17
|
+
/**
|
|
18
|
+
* Change the variant of the mobile content panel
|
|
19
|
+
*/
|
|
20
|
+
variant?: ShellControlPanelMobileVariantType;
|
|
21
|
+
/**
|
|
22
|
+
* Optional flat icon navigation for a mobile app look. Only visible by using variant="flat-icon" as well.
|
|
23
|
+
*/
|
|
24
|
+
flatIconNavigation?: any;
|
|
25
|
+
};
|
|
26
|
+
export type DBControlPanelMobileProps = DBControlPanelMobileDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps & ControlPanelProps;
|
|
27
|
+
export type DBControlPanelMobileDefaultState = {
|
|
28
|
+
open: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type DBControlPanelMobileState = DBControlPanelMobileDefaultState & GlobalState & ToggleEventState<HTMLElement> & NavigationBehaviorState;
|
package/dist/types/components/control-panel-primary-actions/control-panel-primary-actions.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DBControlPanelPrimaryActionsProps } from "./model";
|
|
2
|
+
/**
|
|
3
|
+
* @slot children - This is a default/unnamed slot
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
export declare class DBControlPanelPrimaryActions {
|
|
7
|
+
private _ref;
|
|
8
|
+
id: DBControlPanelPrimaryActionsProps["id"];
|
|
9
|
+
className: DBControlPanelPrimaryActionsProps["className"];
|
|
10
|
+
/**
|
|
11
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
12
|
+
* @param element the ref for the component
|
|
13
|
+
* @param customElementSelector the custom element like `my-component`
|
|
14
|
+
*/
|
|
15
|
+
private enableAttributePassing;
|
|
16
|
+
componentDidLoad(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelPrimaryActionsDefaultProps = {};
|
|
3
|
+
export type DBControlPanelPrimaryActionsProps = DBControlPanelPrimaryActionsDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelPrimaryActionsDefaultState = {};
|
|
5
|
+
export type DBControlPanelPrimaryActionsState = DBControlPanelPrimaryActionsDefaultState & GlobalState;
|
package/dist/types/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DBControlPanelSecondaryActionsProps } from "./model";
|
|
2
|
+
/**
|
|
3
|
+
* @slot children - This is a default/unnamed slot
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
export declare class DBControlPanelSecondaryActions {
|
|
7
|
+
private _ref;
|
|
8
|
+
id: DBControlPanelSecondaryActionsProps["id"];
|
|
9
|
+
className: DBControlPanelSecondaryActionsProps["className"];
|
|
10
|
+
/**
|
|
11
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
12
|
+
* @param element the ref for the component
|
|
13
|
+
* @param customElementSelector the custom element like `my-component`
|
|
14
|
+
*/
|
|
15
|
+
private enableAttributePassing;
|
|
16
|
+
componentDidLoad(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelSecondaryActionsDefaultProps = {};
|
|
3
|
+
export type DBControlPanelSecondaryActionsProps = DBControlPanelSecondaryActionsDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelSecondaryActionsDefaultState = {};
|
|
5
|
+
export type DBControlPanelSecondaryActionsState = DBControlPanelSecondaryActionsDefaultState & GlobalState;
|
|
@@ -102,7 +102,7 @@ export declare class DBCustomSelect {
|
|
|
102
102
|
getOptionLabel(option: CustomSelectOptionType): string;
|
|
103
103
|
getOptionChecked(value?: string): boolean;
|
|
104
104
|
getTagRemoveLabel(index: number): string;
|
|
105
|
-
handleTagRemove(option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
105
|
+
handleTagRemove(option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void | any): void;
|
|
106
106
|
handleAutoPlacement(): void;
|
|
107
107
|
handleArrowDownUp(event: any): void;
|
|
108
108
|
handleKeyboardPress(event: any): void;
|
|
@@ -189,6 +189,9 @@ export type DBCustomSelectDefaultState = {
|
|
|
189
189
|
_infoTextId?: string;
|
|
190
190
|
_internalChangeTimestamp: number;
|
|
191
191
|
_documentClickListenerCallbackId?: string;
|
|
192
|
+
_documentScrollListenerCallbackId?: string;
|
|
193
|
+
handleDocumentScroll: (event: any) => void;
|
|
194
|
+
_observer?: IntersectionObserver;
|
|
192
195
|
_searchValue?: string;
|
|
193
196
|
_userInteraction?: boolean;
|
|
194
197
|
getNativeSelectValue: () => string;
|
|
@@ -199,7 +202,7 @@ export type DBCustomSelectDefaultState = {
|
|
|
199
202
|
searchEnabled: boolean;
|
|
200
203
|
amountOptions: number;
|
|
201
204
|
setDescById: (descId?: string) => void;
|
|
202
|
-
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
205
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void | any) => void;
|
|
203
206
|
handleSummaryFocus: () => void;
|
|
204
207
|
handleSelect: (value?: string) => void;
|
|
205
208
|
handleSelectAll: (event: any) => void;
|
|
@@ -19,6 +19,7 @@ export declare class DBDrawer {
|
|
|
19
19
|
spacing: DBDrawerProps["spacing"];
|
|
20
20
|
width: DBDrawerProps["width"];
|
|
21
21
|
rounded: DBDrawerProps["rounded"];
|
|
22
|
+
drawerHeaderPlain: DBDrawerProps["drawerHeaderPlain"];
|
|
22
23
|
closeButtonId: DBDrawerProps["closeButtonId"];
|
|
23
24
|
closeButtonText: DBDrawerProps["closeButtonText"];
|
|
24
25
|
initialized: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
|
-
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
4
|
+
export declare const DrawerDirectionList: readonly ["custom", "left", "right", "up", "down"];
|
|
5
5
|
export type DrawerDirectionType = (typeof DrawerDirectionList)[number];
|
|
6
6
|
export declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
7
7
|
export type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
@@ -22,6 +22,10 @@ export type DBDrawerDefaultProps = {
|
|
|
22
22
|
* Slot for changing the header of the drawer.
|
|
23
23
|
*/
|
|
24
24
|
drawerHeader?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Text for changing the header of the drawer.
|
|
27
|
+
*/
|
|
28
|
+
drawerHeaderPlain?: string;
|
|
25
29
|
/**
|
|
26
30
|
* The open attribute opens or closes the drawer based on the state.
|
|
27
31
|
*/
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
-
export type DBNavigationDefaultProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState, NavigationItemGroupVariant, NavigationItemGroupVariantType, OverflowScrollButtonProps, OverflowScrollButtonState } from '../../shared/model';
|
|
2
|
+
export type DBNavigationDefaultProps = {
|
|
3
|
+
showTreeLine?: boolean | string;
|
|
4
|
+
};
|
|
5
|
+
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps & OverflowScrollButtonProps & NavigationItemGroupVariant;
|
|
6
|
+
export type DBNavigationDefaultState = {
|
|
7
|
+
onScroll: () => void;
|
|
8
|
+
_variant?: NavigationItemGroupVariantType;
|
|
9
|
+
_shellDesktopPosition?: string | null;
|
|
10
|
+
_subNavigationDesktopPosition?: string | null;
|
|
11
|
+
_handleSubNavigation: () => void;
|
|
12
|
+
_isSubNavigation?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type DBNavigationState = DBNavigationDefaultState & GlobalState & OverflowScrollButtonState & InitializedState;
|
|
@@ -5,15 +5,33 @@ import { DBNavigationProps } from "./model";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class DBNavigation {
|
|
7
7
|
private _ref;
|
|
8
|
+
private menuRef;
|
|
9
|
+
variant: DBNavigationProps["variant"];
|
|
10
|
+
arrowScrollDistance: DBNavigationProps["arrowScrollDistance"];
|
|
8
11
|
id: DBNavigationProps["id"];
|
|
12
|
+
showTreeLine: DBNavigationProps["showTreeLine"];
|
|
9
13
|
className: DBNavigationProps["className"];
|
|
10
|
-
|
|
14
|
+
showScrollLeft: boolean;
|
|
15
|
+
showScrollRight: boolean;
|
|
16
|
+
_shellDesktopPosition: any;
|
|
17
|
+
_subNavigationDesktopPosition: any;
|
|
18
|
+
_variant: any;
|
|
19
|
+
initialized: boolean;
|
|
20
|
+
_isSubNavigation: boolean;
|
|
21
|
+
evaluateScrollButtons(tList: Element): void;
|
|
22
|
+
scroll(left?: boolean): void;
|
|
23
|
+
onScroll(): void;
|
|
24
|
+
_handleSubNavigation(): void;
|
|
11
25
|
/**
|
|
12
26
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
13
27
|
* @param element the ref for the component
|
|
14
28
|
* @param customElementSelector the custom element like `my-component`
|
|
15
29
|
*/
|
|
16
30
|
private enableAttributePassing;
|
|
31
|
+
watch0Fn(): void;
|
|
32
|
+
watch0(): void;
|
|
33
|
+
watch1Fn(): void;
|
|
34
|
+
watch1(): void;
|
|
17
35
|
componentDidLoad(): void;
|
|
18
36
|
render(): any;
|
|
19
37
|
}
|
|
@@ -1,34 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
1
|
+
import { AdditionalInformationSlotProps, DisabledProps, GlobalProps, GlobalState, IconProps, ShowIconProps } from '../../shared/model';
|
|
3
2
|
export type DBNavigationItemDefaultProps = {
|
|
4
3
|
/**
|
|
5
4
|
* Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
|
|
6
5
|
*/
|
|
7
6
|
active?: boolean;
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* If you use DBShell with controlPanelDesktopPosition="left" you need
|
|
9
|
+
* to add a tooltip for collapsed navigation
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
tooltip?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Set the text for the navigation-item
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
18
|
-
*/
|
|
19
|
-
subNavigationExpanded?: boolean | string;
|
|
20
|
-
};
|
|
21
|
-
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
22
|
-
export type DBNavigationItemDefaultState = {
|
|
23
|
-
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
24
|
-
hasAreaPopup: boolean;
|
|
25
|
-
isSubNavigationExpanded: boolean;
|
|
26
|
-
subNavigationId: string;
|
|
27
|
-
/**
|
|
28
|
-
* Internal state property to show/hide sub-navigation button
|
|
29
|
-
*/
|
|
30
|
-
hasSubNavigation?: boolean;
|
|
31
|
-
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
32
|
-
autoClose?: boolean;
|
|
15
|
+
text?: string;
|
|
33
16
|
};
|
|
34
|
-
export type
|
|
17
|
+
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & IconProps & ShowIconProps & DisabledProps & AdditionalInformationSlotProps;
|
|
18
|
+
export type DBNavigationItemDefaultState = {};
|
|
19
|
+
export type DBNavigationItemState = DBNavigationItemDefaultState & GlobalState;
|
|
@@ -1,45 +1,23 @@
|
|
|
1
|
-
import { ClickEvent } from "../../shared/model";
|
|
2
1
|
import { DBNavigationItemProps } from "./model";
|
|
3
|
-
import { EventEmitter } from "../../stencil-public-runtime";
|
|
4
2
|
/**
|
|
5
3
|
* @slot children - This is a default/unnamed slot
|
|
6
|
-
* @slot
|
|
4
|
+
* @slot additionalInformation - TODO: Add description for slotAdditionalInformation
|
|
7
5
|
*/
|
|
8
6
|
export declare class DBNavigationItem {
|
|
9
7
|
private _ref;
|
|
10
|
-
subNavigationExpanded: DBNavigationItemProps["subNavigationExpanded"];
|
|
11
|
-
click: EventEmitter<Parameters<Required<DBNavigationItemProps>["onClick"]>[number]> | void;
|
|
12
8
|
id: DBNavigationItemProps["id"];
|
|
13
9
|
className: DBNavigationItemProps["className"];
|
|
14
|
-
width: DBNavigationItemProps["width"];
|
|
15
10
|
icon: DBNavigationItemProps["icon"];
|
|
16
11
|
showIcon: DBNavigationItemProps["showIcon"];
|
|
17
12
|
active: DBNavigationItemProps["active"];
|
|
18
|
-
wrap: DBNavigationItemProps["wrap"];
|
|
19
13
|
disabled: DBNavigationItemProps["disabled"];
|
|
20
|
-
|
|
21
|
-
backButtonId: DBNavigationItemProps["backButtonId"];
|
|
22
|
-
backButtonText: DBNavigationItemProps["backButtonText"];
|
|
23
|
-
initialized: boolean;
|
|
24
|
-
hasAreaPopup: boolean;
|
|
25
|
-
hasSubNavigation: boolean;
|
|
26
|
-
isSubNavigationExpanded: boolean;
|
|
27
|
-
autoClose: boolean;
|
|
28
|
-
subNavigationId: string;
|
|
29
|
-
navigationItemSafeTriangle: any;
|
|
30
|
-
handleNavigationItemClick(event: any): void;
|
|
31
|
-
handleClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
32
|
-
handleBackClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
14
|
+
tooltip: DBNavigationItemProps["tooltip"];
|
|
33
15
|
/**
|
|
34
16
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
35
17
|
* @param element the ref for the component
|
|
36
18
|
* @param customElementSelector the custom element like `my-component`
|
|
37
19
|
*/
|
|
38
20
|
private enableAttributePassing;
|
|
39
|
-
watch0Fn(): void;
|
|
40
|
-
watch0(): void;
|
|
41
|
-
watch1Fn(): void;
|
|
42
|
-
watch1(): void;
|
|
43
21
|
componentDidLoad(): void;
|
|
44
22
|
render(): any;
|
|
45
23
|
}
|