@db-ux/wc-core-components 4.12.1 → 4.13.0-shell-f221975
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/CHANGELOG.md +6 -0
- package/agent/ControlPanelBrand.md +9 -0
- package/agent/ControlPanelDesktop.md +46 -0
- package/agent/ControlPanelMeta.md +13 -0
- package/agent/ControlPanelMobile.md +37 -0
- package/agent/ControlPanelNavigation.md +19 -0
- package/agent/ControlPanelNavigationItem.md +33 -0
- package/agent/ControlPanelPrimaryActions.md +13 -0
- package/agent/ControlPanelSecondaryActions.md +19 -0
- package/agent/Drawer.md +0 -8
- package/agent/Shell.md +24 -0
- package/agent/ShellSubNavigation.md +6 -0
- package/agent/_instructions.md +11 -6
- package/bundle/db-accordion-item.js +1 -1
- package/bundle/db-accordion.js +1 -1
- package/bundle/db-badge.js +1 -1
- package/bundle/db-button.js +1 -1
- package/bundle/db-card.js +1 -1
- package/bundle/db-checkbox.js +1 -1
- package/bundle/db-control-panel-brand.d.ts +11 -0
- package/bundle/db-control-panel-brand.js +1 -0
- package/bundle/db-control-panel-desktop.d.ts +11 -0
- package/bundle/db-control-panel-desktop.js +1 -0
- package/bundle/db-control-panel-flat-icon.d.ts +11 -0
- package/bundle/db-control-panel-flat-icon.js +1 -0
- package/bundle/{db-navigation-item.d.ts → db-control-panel-meta.d.ts} +4 -4
- package/bundle/db-control-panel-meta.js +1 -0
- package/bundle/db-control-panel-mobile.d.ts +11 -0
- package/bundle/db-control-panel-mobile.js +1 -0
- package/bundle/db-control-panel-navigation-item-group.d.ts +11 -0
- package/bundle/db-control-panel-navigation-item-group.js +1 -0
- package/bundle/db-control-panel-navigation-item.d.ts +11 -0
- package/bundle/db-control-panel-navigation-item.js +1 -0
- package/bundle/db-control-panel-navigation.d.ts +11 -0
- package/bundle/db-control-panel-navigation.js +1 -0
- package/bundle/db-control-panel-primary-actions.d.ts +11 -0
- package/bundle/db-control-panel-primary-actions.js +1 -0
- package/bundle/db-control-panel-secondary-actions.d.ts +11 -0
- package/bundle/db-control-panel-secondary-actions.js +1 -0
- package/bundle/db-control-panel-skip-navigation.d.ts +11 -0
- package/bundle/db-control-panel-skip-navigation.js +1 -0
- package/bundle/db-custom-button.js +1 -1
- package/bundle/db-custom-select-dropdown.js +1 -1
- package/bundle/db-custom-select-form-field.js +1 -1
- package/bundle/db-custom-select-list-item.js +1 -1
- package/bundle/db-custom-select-list.js +1 -1
- package/bundle/db-custom-select.js +1 -1
- package/bundle/db-divider.js +1 -1
- package/bundle/{db-navigation.d.ts → db-drawer-footer.d.ts} +4 -4
- package/bundle/db-drawer-footer.js +1 -0
- package/bundle/{db-page.d.ts → db-drawer-header.d.ts} +4 -4
- package/bundle/db-drawer-header.js +1 -0
- package/bundle/db-drawer.js +1 -1
- package/bundle/db-icon.js +1 -1
- package/bundle/db-infotext.js +1 -1
- package/bundle/db-input.js +1 -1
- package/bundle/db-link.js +1 -1
- package/bundle/db-notification.js +1 -1
- package/bundle/db-popover.js +1 -1
- package/bundle/db-radio.js +1 -1
- package/bundle/db-section.js +1 -1
- package/bundle/db-select.js +1 -1
- package/bundle/{db-header.d.ts → db-shell-content.d.ts} +4 -4
- package/bundle/db-shell-content.js +1 -0
- package/bundle/db-shell-sub-navigation.d.ts +11 -0
- package/bundle/db-shell-sub-navigation.js +1 -0
- package/bundle/{db-brand.d.ts → db-shell.d.ts} +4 -4
- package/bundle/db-shell.js +1 -0
- package/bundle/db-stack.js +1 -1
- package/bundle/db-switch.js +1 -1
- package/bundle/db-tab-item.js +1 -1
- package/bundle/db-tab-list.js +1 -1
- package/bundle/db-tab-panel.js +1 -1
- package/bundle/db-table-body.js +1 -1
- package/bundle/db-table-caption.js +1 -1
- package/bundle/db-table-data-cell.js +1 -1
- package/bundle/db-table-footer.js +1 -1
- package/bundle/db-table-head.js +1 -1
- package/bundle/db-table-header-cell.js +1 -1
- package/bundle/db-table-row.js +1 -1
- package/bundle/db-table.js +1 -1
- package/bundle/db-tabs.js +1 -1
- package/bundle/db-tag.js +1 -1
- package/bundle/db-textarea.js +1 -1
- package/bundle/db-tooltip.js +1 -1
- package/bundle/index.js +1 -1
- package/bundle/p-6eFmbk2q.js +1 -0
- package/bundle/{p-k8bCF_aj.js → p-9FBjLlz8.js} +1 -1
- package/bundle/p-B2-mqMAV.js +1 -0
- package/bundle/{p-G57oLrr4.js → p-B3HO0pCt.js} +1 -1
- package/bundle/p-B5p2TBcA.js +1 -0
- package/bundle/{p-BQov9sQb.js → p-BSn68Z6b.js} +1 -1
- package/bundle/p-BT3wZY6f.js +1 -0
- package/bundle/p-BWWm2aVB.js +1 -0
- package/bundle/{p-Cc5hdI0x.js → p-B_cQ652T.js} +1 -1
- package/bundle/{p-DcgghWWs.js → p-BbEdAR4o.js} +1 -1
- package/bundle/{p-C0JLpZ9Q.js → p-BtQh3jbl.js} +1 -1
- package/bundle/p-C3NPZvho.js +1 -0
- package/bundle/p-CGLknNHl.js +1 -0
- package/bundle/p-COv1iCFP.js +1 -0
- package/bundle/p-C_xaJ8Kg.js +1 -0
- package/bundle/p-CjeAJfEo.js +1 -0
- package/bundle/{p-to845Mg2.js → p-Cr4l4OlK.js} +1 -1
- package/bundle/p-CtoC6vGL.js +1 -0
- package/bundle/p-D2lYeElK.js +1 -0
- package/bundle/{p-CuC4YsIB.js → p-D9qEmJkQ.js} +1 -1
- package/bundle/p-DAr8BCe0.js +1 -0
- package/bundle/{p-CYYSsu3p.js → p-DEicAzan.js} +1 -1
- package/bundle/{p-C9llbu6g.js → p-DKhSQnne.js} +1 -1
- package/bundle/{p-BpO8Ok-r.js → p-DTmum76Y.js} +1 -1
- package/bundle/p-DtqySxCV.js +1 -0
- package/bundle/p-Nyi3Ccqz.js +1 -0
- package/bundle/p-V6Dppnfj.js +1 -0
- package/bundle/p-WOdZHiUh.js +1 -0
- package/bundle/p-_kvIQ0Iy.js +1 -0
- package/bundle/{p-fu0VCCbW.js → p-mf371GRo.js} +1 -1
- package/dist/cjs/{constants-bMY2_d8A.js → constants-BM1EltPT.js} +12 -3
- package/dist/cjs/db-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +4 -4
- package/dist/cjs/db-button.cjs.entry.js +6 -3
- package/dist/cjs/db-card.cjs.entry.js +3 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/{db-brand.cjs.entry.js → db-control-panel-brand.cjs.entry.js} +9 -10
- package/dist/cjs/db-control-panel-desktop.cjs.entry.js +148 -0
- package/dist/cjs/db-control-panel-flat-icon.cjs.entry.js +134 -0
- package/dist/cjs/{db-navigation.cjs.entry.js → db-control-panel-meta.cjs.entry.js} +8 -8
- package/dist/cjs/db-control-panel-mobile.cjs.entry.js +124 -0
- package/dist/cjs/db-control-panel-navigation-item-group.cjs.entry.js +420 -0
- package/dist/cjs/db-control-panel-navigation-item.cjs.entry.js +235 -0
- package/dist/cjs/db-control-panel-navigation.cjs.entry.js +579 -0
- package/dist/cjs/db-control-panel-primary-actions.cjs.entry.js +95 -0
- package/dist/cjs/db-control-panel-secondary-actions.cjs.entry.js +95 -0
- package/dist/cjs/db-control-panel-skip-navigation.cjs.entry.js +96 -0
- package/dist/cjs/db-custom-button.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +13 -13
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +41 -25
- package/dist/cjs/db-divider.cjs.entry.js +2 -2
- package/dist/cjs/db-drawer_3.cjs.entry.js +457 -0
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js +3 -3
- package/dist/cjs/db-link_4.cjs.entry.js +12 -10
- package/dist/cjs/db-notification.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +50 -22
- package/dist/cjs/db-radio.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js +3 -3
- package/dist/cjs/db-select.cjs.entry.js +5 -5
- package/dist/cjs/db-shell-content.cjs.entry.js +97 -0
- package/dist/cjs/db-shell-sub-navigation.cjs.entry.js +110 -0
- package/dist/cjs/{db-page.cjs.entry.js → db-shell.cjs.entry.js} +16 -17
- package/dist/cjs/db-stack.cjs.entry.js +3 -3
- package/dist/cjs/db-switch.cjs.entry.js +5 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-table-body_3.cjs.entry.js +10 -10
- package/dist/cjs/db-table-caption.cjs.entry.js +4 -3
- package/dist/cjs/db-table.cjs.entry.js +4 -4
- package/dist/cjs/db-tabs.cjs.entry.js +23 -18
- package/dist/cjs/db-textarea.cjs.entry.js +5 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +39 -26
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/{document-click-listener-DdNXbErU.js → document-click-listener-D_0Q6lvb.js} +5 -9
- package/dist/cjs/{document-scroll-listener-CvAZ6uPr.js → document-scroll-listener-CgyYRmvZ.js} +29 -9
- package/dist/cjs/{floating-components-SpHkZuLA.js → floating-components-B3bpFI90.js} +141 -108
- package/dist/cjs/{form-components-CmQlkARp.js → form-components-XNiwIGq8.js} +1 -1
- package/dist/cjs/{index-spuu3sXz.js → index-Df-6pBQf.js} +41 -2
- package/dist/cjs/index.cjs.js +34 -17
- package/dist/cjs/intersection-observer-listener-DlrHabJb.js +41 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/navigation-CHCtasZv.js +178 -0
- package/dist/cjs/resize-observer-listener-CmPDfoZs.js +103 -0
- package/dist/collection/collection-manifest.json +18 -7
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/model.js +0 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/button/button.js +57 -2
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/control-panel-brand/control-panel-brand.js +179 -0
- package/dist/collection/components/control-panel-brand/index.js +2 -0
- package/dist/collection/components/control-panel-desktop/control-panel-desktop.js +343 -0
- package/dist/collection/components/control-panel-desktop/index.js +2 -0
- package/dist/collection/components/control-panel-flat-icon/control-panel-flat-icon.js +246 -0
- package/dist/collection/components/control-panel-flat-icon/index.js +2 -0
- package/dist/collection/components/control-panel-meta/control-panel-meta.js +179 -0
- package/dist/collection/components/control-panel-meta/index.js +2 -0
- package/dist/collection/components/control-panel-mobile/control-panel-mobile.js +307 -0
- package/dist/collection/components/control-panel-mobile/index.js +2 -0
- package/dist/collection/components/control-panel-mobile/model.js +1 -0
- package/dist/collection/components/control-panel-navigation/control-panel-navigation.js +829 -0
- package/dist/collection/components/control-panel-navigation/index.js +2 -0
- package/dist/collection/components/control-panel-navigation/model.js +1 -0
- package/dist/collection/components/control-panel-navigation-item/control-panel-navigation-item.js +484 -0
- package/dist/collection/components/control-panel-navigation-item/index.js +2 -0
- package/dist/collection/components/control-panel-navigation-item/model.js +1 -0
- package/dist/collection/components/control-panel-navigation-item-group/control-panel-navigation-item-group.js +772 -0
- package/dist/collection/components/control-panel-navigation-item-group/index.js +2 -0
- package/dist/collection/components/control-panel-navigation-item-group/model.js +1 -0
- package/dist/collection/components/control-panel-primary-actions/control-panel-primary-actions.js +179 -0
- package/dist/collection/components/control-panel-primary-actions/index.js +2 -0
- package/dist/collection/components/control-panel-primary-actions/model.js +1 -0
- package/dist/collection/components/control-panel-secondary-actions/control-panel-secondary-actions.js +179 -0
- package/dist/collection/components/control-panel-secondary-actions/index.js +2 -0
- package/dist/collection/components/control-panel-secondary-actions/model.js +1 -0
- package/dist/collection/components/control-panel-skip-navigation/control-panel-skip-navigation.js +232 -0
- package/dist/collection/components/control-panel-skip-navigation/index.js +2 -0
- package/dist/collection/components/control-panel-skip-navigation/model.js +1 -0
- package/dist/collection/components/custom-button/custom-button.js +2 -2
- package/dist/collection/components/custom-select/custom-select.js +37 -20
- 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 +51 -77
- package/dist/collection/components/drawer/model.js +1 -0
- package/dist/collection/components/{navigation/navigation.js → drawer-footer/drawer-footer.js} +19 -19
- package/dist/collection/components/drawer-footer/index.js +2 -0
- package/dist/collection/components/drawer-footer/model.js +1 -0
- package/dist/collection/components/{brand/brand.js → drawer-header/drawer-header.js} +83 -79
- package/dist/collection/components/drawer-header/index.js +2 -0
- package/dist/collection/components/drawer-header/model.js +1 -0
- package/dist/collection/components/icon/icon.js +2 -2
- package/dist/collection/components/infotext/infotext.js +2 -2
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/popover/popover.js +75 -46
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/shell/index.js +2 -0
- package/dist/collection/components/shell/model.js +1 -0
- package/dist/collection/components/{header/header.js → shell/shell.js} +92 -143
- package/dist/collection/components/shell-content/index.js +2 -0
- package/dist/collection/components/shell-content/model.js +1 -0
- package/dist/collection/components/{page/page.js → shell-content/shell-content.js} +67 -86
- package/dist/collection/components/shell-sub-navigation/index.js +2 -0
- package/dist/collection/components/shell-sub-navigation/model.js +1 -0
- package/dist/collection/components/shell-sub-navigation/shell-sub-navigation.js +248 -0
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +3 -3
- 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/table/table.js +27 -3
- package/dist/collection/components/table-body/table-body.js +27 -3
- package/dist/collection/components/table-caption/table-caption.js +27 -2
- package/dist/collection/components/table-data-cell/table-data-cell.js +27 -2
- package/dist/collection/components/table-footer/table-footer.js +27 -3
- package/dist/collection/components/table-head/table-head.js +27 -3
- package/dist/collection/components/table-header-cell/table-header-cell.js +27 -2
- package/dist/collection/components/table-row/table-row.js +27 -3
- package/dist/collection/components/tabs/tabs.js +75 -18
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +63 -49
- package/dist/collection/index.js +32 -10
- package/dist/collection/shared/constants.js +7 -2
- package/dist/collection/shared/model.js +4 -0
- package/dist/collection/utils/abstract-document-listener.js +23 -0
- package/dist/collection/utils/abstract-observer-listener.js +61 -0
- package/dist/collection/utils/document-click-listener.js +5 -9
- package/dist/collection/utils/document-scroll-listener.js +5 -9
- package/dist/collection/utils/floating-components.js +141 -108
- package/dist/collection/utils/index.js +40 -2
- package/dist/collection/utils/intersection-observer-listener.js +36 -0
- package/dist/collection/utils/navigation.js +113 -74
- package/dist/collection/utils/resize-observer-listener.js +36 -0
- package/dist/custom-elements.json +11955 -8557
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-d9d006e7.entry.js → p-158c64e0.entry.js} +1 -1
- package/dist/db-ux/p-1fa944fd.entry.js +1 -0
- package/dist/db-ux/{p-a176424b.entry.js → p-2012c72a.entry.js} +1 -1
- package/dist/db-ux/p-234fee81.entry.js +1 -0
- package/dist/db-ux/{p-6b8375e8.entry.js → p-3566a5b2.entry.js} +1 -1
- package/dist/db-ux/p-3b61c223.entry.js +1 -0
- package/dist/db-ux/p-3d5fc4b6.entry.js +1 -0
- package/dist/db-ux/p-3e113cfe.entry.js +1 -0
- package/dist/db-ux/p-42644385.entry.js +1 -0
- package/dist/db-ux/p-42fd6a5c.entry.js +1 -0
- package/dist/db-ux/p-441d444e.entry.js +1 -0
- package/dist/db-ux/{p-a8556349.entry.js → p-4ecd501a.entry.js} +1 -1
- package/dist/db-ux/{p-77a47225.entry.js → p-53f827e1.entry.js} +1 -1
- package/dist/db-ux/{p-eedf08e0.entry.js → p-5696a8d3.entry.js} +1 -1
- package/dist/db-ux/p-56b2a25d.entry.js +1 -0
- package/dist/db-ux/{p-68f00121.entry.js → p-5a1a7588.entry.js} +1 -1
- package/dist/db-ux/p-5c5dce95.entry.js +1 -0
- package/dist/db-ux/p-5ce9ac6d.entry.js +1 -0
- package/dist/db-ux/{p-57527cef.entry.js → p-636e6a6d.entry.js} +1 -1
- package/dist/db-ux/p-6aac51bf.entry.js +1 -0
- package/dist/db-ux/p-6fc31876.entry.js +1 -0
- package/dist/db-ux/p-7d3541c6.entry.js +1 -0
- package/dist/db-ux/p-8f288b5e.entry.js +1 -0
- package/dist/db-ux/{p-37bf8d87.entry.js → p-9174a1f8.entry.js} +1 -1
- package/dist/db-ux/p-92d1d118.entry.js +1 -0
- package/dist/db-ux/p-94806e39.entry.js +1 -0
- package/dist/db-ux/p-95afbd4b.entry.js +1 -0
- package/dist/db-ux/p-BNNa1bIH.js +1 -0
- package/dist/db-ux/p-BT3wZY6f.js +1 -0
- package/dist/db-ux/p-Bs6e6rEa.js +1 -0
- package/dist/db-ux/p-Bu2uTpuB.js +1 -0
- package/dist/db-ux/p-CHtd83tf.js +1 -0
- package/dist/db-ux/p-COv1iCFP.js +1 -0
- package/dist/db-ux/p-D-LMtTru.js +1 -0
- package/dist/db-ux/p-DB8jc8lh.js +1 -0
- package/dist/db-ux/p-a2fd6f02.entry.js +1 -0
- package/dist/db-ux/p-a526be72.entry.js +1 -0
- package/dist/db-ux/{p-db1b9f5d.entry.js → p-aa0d6af7.entry.js} +1 -1
- package/dist/db-ux/p-ab2ca4f9.entry.js +1 -0
- package/dist/db-ux/p-b124f5d7.entry.js +1 -0
- package/dist/db-ux/p-b4069c07.entry.js +1 -0
- package/dist/db-ux/p-b90adbf2.entry.js +1 -0
- package/dist/db-ux/p-bbqCwwgU.js +1 -0
- package/dist/db-ux/p-c36731c4.entry.js +1 -0
- package/dist/db-ux/p-c6e965b9.entry.js +1 -0
- package/dist/db-ux/p-d0340bf6.entry.js +1 -0
- package/dist/db-ux/p-d354d861.entry.js +1 -0
- package/dist/db-ux/{p-6d41baf1.entry.js → p-d7ffa767.entry.js} +1 -1
- package/dist/db-ux/{p-70b6ebcd.entry.js → p-da34c367.entry.js} +1 -1
- package/dist/db-ux/{p-81edb316.entry.js → p-eb18be29.entry.js} +1 -1
- package/dist/db-ux/p-eee0f32c.entry.js +1 -0
- package/dist/db-ux/p-f1f23724.entry.js +1 -0
- package/dist/esm/{constants-BdL-nI5y.js → constants-COv1iCFP.js} +8 -3
- package/dist/esm/db-accordion-item.entry.js +3 -3
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +4 -4
- package/dist/esm/db-button.entry.js +6 -3
- package/dist/esm/db-card.entry.js +3 -3
- package/dist/esm/db-checkbox.entry.js +5 -5
- package/dist/esm/db-control-panel-brand.entry.js +93 -0
- package/dist/esm/db-control-panel-desktop.entry.js +146 -0
- package/dist/esm/db-control-panel-flat-icon.entry.js +132 -0
- package/dist/esm/{db-navigation.entry.js → db-control-panel-meta.entry.js} +8 -8
- package/dist/esm/db-control-panel-mobile.entry.js +122 -0
- package/dist/esm/db-control-panel-navigation-item-group.entry.js +418 -0
- package/dist/esm/db-control-panel-navigation-item.entry.js +233 -0
- package/dist/esm/db-control-panel-navigation.entry.js +577 -0
- package/dist/esm/db-control-panel-primary-actions.entry.js +93 -0
- package/dist/esm/db-control-panel-secondary-actions.entry.js +93 -0
- package/dist/esm/{db-brand.entry.js → db-control-panel-skip-navigation.entry.js} +9 -9
- package/dist/esm/db-custom-button.entry.js +3 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js +13 -13
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +41 -25
- package/dist/esm/db-divider.entry.js +2 -2
- package/dist/esm/db-drawer_3.entry.js +453 -0
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js +3 -3
- package/dist/esm/db-link_4.entry.js +12 -10
- package/dist/esm/db-notification.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +50 -22
- package/dist/esm/db-radio.entry.js +4 -4
- package/dist/esm/db-section.entry.js +3 -3
- package/dist/esm/db-select.entry.js +5 -5
- package/dist/esm/db-shell-content.entry.js +95 -0
- package/dist/esm/db-shell-sub-navigation.entry.js +108 -0
- package/dist/esm/{db-page.entry.js → db-shell.entry.js} +16 -17
- package/dist/esm/db-stack.entry.js +3 -3
- package/dist/esm/db-switch.entry.js +5 -5
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-table-body_3.entry.js +10 -10
- package/dist/esm/db-table-caption.entry.js +4 -3
- package/dist/esm/db-table.entry.js +4 -4
- package/dist/esm/db-tabs.entry.js +23 -18
- package/dist/esm/db-textarea.entry.js +5 -5
- package/dist/esm/db-tooltip.entry.js +39 -26
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{document-click-listener-9wJfRcvz.js → document-click-listener-BEYsNvC5.js} +5 -9
- package/dist/esm/{document-scroll-listener-4F0ZAg9p.js → document-scroll-listener-B8lkAL-m.js} +29 -10
- package/dist/esm/{floating-components-C0q9XJSc.js → floating-components-BT3wZY6f.js} +142 -109
- package/dist/esm/{form-components-ZV7IN0oG.js → form-components-zJeL8XMn.js} +1 -1
- package/dist/esm/{index-fumiz06Y.js → index-DB8jc8lh.js} +41 -3
- package/dist/esm/index.js +17 -10
- package/dist/esm/intersection-observer-listener-DQ4WWSLe.js +39 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/navigation-Cc_Ln-dl.js +174 -0
- package/dist/esm/resize-observer-listener-z8XjzxC9.js +100 -0
- package/dist/types/components/accordion/model.d.ts +2 -8
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +8 -0
- package/dist/types/components/{brand/brand.d.ts → control-panel-brand/control-panel-brand.d.ts} +5 -9
- 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 +41 -0
- package/dist/types/components/control-panel-desktop/index.d.ts +2 -0
- package/dist/types/components/control-panel-desktop/model.d.ts +5 -0
- package/dist/types/components/{page/page.d.ts → control-panel-flat-icon/control-panel-flat-icon.d.ts} +10 -12
- package/dist/types/components/control-panel-flat-icon/index.d.ts +2 -0
- package/dist/types/components/control-panel-flat-icon/model.d.ts +12 -0
- package/dist/types/components/control-panel-meta/control-panel-meta.d.ts +23 -0
- package/dist/types/components/control-panel-meta/index.d.ts +2 -0
- package/dist/types/components/control-panel-meta/model.d.ts +5 -0
- package/dist/types/components/control-panel-mobile/control-panel-mobile.d.ts +36 -0
- package/dist/types/components/control-panel-mobile/index.d.ts +2 -0
- package/dist/types/components/control-panel-mobile/model.d.ts +21 -0
- package/dist/types/components/control-panel-navigation/control-panel-navigation.d.ts +54 -0
- package/dist/types/components/control-panel-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation/model.d.ts +25 -0
- package/dist/types/components/control-panel-navigation-item/control-panel-navigation-item.d.ts +42 -0
- package/dist/types/components/control-panel-navigation-item/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation-item/model.d.ts +20 -0
- package/dist/types/components/control-panel-navigation-item-group/control-panel-navigation-item-group.d.ts +74 -0
- package/dist/types/components/control-panel-navigation-item-group/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation-item-group/model.d.ts +44 -0
- package/dist/types/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +23 -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 +23 -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/control-panel-skip-navigation/control-panel-skip-navigation.d.ts +25 -0
- package/dist/types/components/control-panel-skip-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-skip-navigation/model.d.ts +16 -0
- package/dist/types/components/custom-select/custom-select.d.ts +2 -1
- package/dist/types/components/custom-select/model.d.ts +5 -1
- package/dist/types/components/drawer/drawer.d.ts +5 -5
- package/dist/types/components/drawer/model.d.ts +18 -3
- package/dist/types/components/{navigation/navigation.d.ts → drawer-footer/drawer-footer.d.ts} +5 -5
- package/dist/types/components/drawer-footer/index.d.ts +2 -0
- package/dist/types/components/drawer-footer/model.d.ts +5 -0
- package/dist/types/components/drawer-header/drawer-header.d.ts +30 -0
- package/dist/types/components/drawer-header/index.d.ts +2 -0
- package/dist/types/components/drawer-header/model.d.ts +9 -0
- package/dist/types/components/popover/popover.d.ts +3 -2
- package/dist/types/components/shell/index.d.ts +2 -0
- package/dist/types/components/shell/model.d.ts +34 -0
- package/dist/types/components/shell/shell.d.ts +30 -0
- package/dist/types/components/shell-content/index.d.ts +2 -0
- package/dist/types/components/shell-content/model.d.ts +28 -0
- package/dist/types/components/shell-content/shell-content.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 +29 -0
- package/dist/types/components/table/table.d.ts +1 -0
- package/dist/types/components/table-body/table-body.d.ts +1 -0
- package/dist/types/components/table-caption/table-caption.d.ts +1 -0
- package/dist/types/components/table-data-cell/table-data-cell.d.ts +1 -0
- package/dist/types/components/table-footer/table-footer.d.ts +1 -0
- package/dist/types/components/table-head/table-head.d.ts +1 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +1 -0
- package/dist/types/components/table-row/table-row.d.ts +1 -0
- package/dist/types/components/tabs/model.d.ts +4 -12
- package/dist/types/components/tabs/tabs.d.ts +3 -1
- package/dist/types/components/tooltip/tooltip.d.ts +3 -2
- package/dist/types/components.d.ts +621 -243
- package/dist/types/index.d.ts +32 -10
- package/dist/types/shared/constants.d.ts +44 -39
- package/dist/types/shared/figma.d.ts +11 -4
- package/dist/types/shared/model.d.ts +109 -7
- package/dist/types/utils/abstract-document-listener.d.ts +18 -0
- package/dist/types/utils/abstract-observer-listener.d.ts +39 -0
- package/dist/types/utils/document-click-listener.d.ts +3 -3
- package/dist/types/utils/document-scroll-listener.d.ts +3 -3
- package/dist/types/utils/floating-components.d.ts +29 -6
- package/dist/types/utils/index.d.ts +11 -0
- package/dist/types/utils/intersection-observer-listener.d.ts +15 -0
- package/dist/types/utils/navigation.d.ts +12 -11
- package/dist/types/utils/resize-observer-listener.d.ts +15 -0
- package/dist/vscode.html-custom-data.json +992 -540
- package/dist/web-types.json +3207 -2219
- package/package.json +5 -5
- package/agent/Brand.md +0 -13
- package/agent/Header.md +0 -29
- package/agent/Navigation.md +0 -19
- package/agent/NavigationItem.md +0 -29
- package/agent/Page.md +0 -27
- package/bundle/db-brand.js +0 -1
- package/bundle/db-header.js +0 -1
- package/bundle/db-navigation-item.js +0 -1
- package/bundle/db-navigation.js +0 -1
- package/bundle/db-page.js +0 -1
- package/bundle/p-2eQDIPlF.js +0 -1
- package/bundle/p-BFeR7jXy.js +0 -1
- package/bundle/p-BdL-nI5y.js +0 -1
- package/bundle/p-C0q9XJSc.js +0 -1
- package/bundle/p-C2w7ILj8.js +0 -1
- package/bundle/p-C47AKJPy.js +0 -1
- package/bundle/p-C_qYW0Kh.js +0 -1
- package/bundle/p-Cn5NdjPW.js +0 -1
- package/bundle/p-D6L0n3gO.js +0 -1
- package/bundle/p-DJTpgiBy.js +0 -1
- package/bundle/p-DTM6Wcbf.js +0 -1
- package/bundle/p-DVuZmW_J.js +0 -1
- package/bundle/p-DiEfz0o1.js +0 -1
- package/bundle/p-gIJnyld5.js +0 -1
- package/dist/cjs/db-drawer.cjs.entry.js +0 -225
- package/dist/cjs/db-header.cjs.entry.js +0 -145
- package/dist/cjs/db-navigation-item.cjs.entry.js +0 -182
- package/dist/cjs/navigation-DUTSDY4q.js +0 -138
- package/dist/collection/components/brand/index.js +0 -2
- package/dist/collection/components/header/index.js +0 -2
- package/dist/collection/components/navigation/index.js +0 -2
- package/dist/collection/components/navigation-item/index.js +0 -2
- package/dist/collection/components/navigation-item/navigation-item.js +0 -577
- package/dist/collection/components/page/index.js +0 -2
- package/dist/collection/components/page/model.js +0 -2
- package/dist/db-ux/p-0758418a.entry.js +0 -1
- package/dist/db-ux/p-183c78b7.entry.js +0 -1
- package/dist/db-ux/p-1e70d93f.entry.js +0 -1
- package/dist/db-ux/p-2c23efe2.entry.js +0 -1
- package/dist/db-ux/p-38c55e9c.entry.js +0 -1
- package/dist/db-ux/p-4751361d.entry.js +0 -1
- package/dist/db-ux/p-5623ff36.entry.js +0 -1
- package/dist/db-ux/p-5706f20a.entry.js +0 -1
- package/dist/db-ux/p-6ce4a109.entry.js +0 -1
- package/dist/db-ux/p-6fdc00bd.entry.js +0 -1
- package/dist/db-ux/p-71399ee3.entry.js +0 -1
- package/dist/db-ux/p-87281518.entry.js +0 -1
- package/dist/db-ux/p-90e9ec2d.entry.js +0 -1
- package/dist/db-ux/p-BdL-nI5y.js +0 -1
- package/dist/db-ux/p-BihrW11j.js +0 -1
- package/dist/db-ux/p-BtImZ8Nt.js +0 -1
- package/dist/db-ux/p-C0q9XJSc.js +0 -1
- package/dist/db-ux/p-C_qYW0Kh.js +0 -1
- package/dist/db-ux/p-OOIf-5XP.js +0 -1
- package/dist/db-ux/p-a07e33e7.entry.js +0 -1
- package/dist/db-ux/p-a6f33f3b.entry.js +0 -1
- package/dist/db-ux/p-e58fbd4d.entry.js +0 -1
- package/dist/db-ux/p-e66aa9d8.entry.js +0 -1
- package/dist/db-ux/p-f0b5c785.entry.js +0 -1
- package/dist/db-ux/p-f271332c.entry.js +0 -1
- package/dist/db-ux/p-f5f73623.entry.js +0 -1
- package/dist/db-ux/p-f964d5f5.entry.js +0 -1
- package/dist/db-ux/p-fumiz06Y.js +0 -1
- package/dist/esm/db-drawer.entry.js +0 -223
- package/dist/esm/db-header.entry.js +0 -143
- package/dist/esm/db-navigation-item.entry.js +0 -180
- package/dist/esm/navigation-Cd7KZ6E2.js +0 -135
- 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 -40
- package/dist/types/components/header/index.d.ts +0 -2
- package/dist/types/components/header/model.d.ts +0 -44
- package/dist/types/components/navigation/index.d.ts +0 -2
- package/dist/types/components/navigation/model.d.ts +0 -5
- package/dist/types/components/navigation-item/index.d.ts +0 -2
- package/dist/types/components/navigation-item/model.d.ts +0 -39
- package/dist/types/components/navigation-item/navigation-item.d.ts +0 -52
- package/dist/types/components/page/index.d.ts +0 -2
- package/dist/types/components/page/model.d.ts +0 -36
- /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/collection/components/{navigation-item → control-panel-flat-icon}/model.js +0 -0
- /package/dist/collection/components/{navigation → control-panel-meta}/model.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
6
|
const DBButton = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -16,6 +16,9 @@ const DBButton = class {
|
|
|
16
16
|
else if (this.click) {
|
|
17
17
|
return "button";
|
|
18
18
|
}
|
|
19
|
+
else if (this.commandfor) {
|
|
20
|
+
return "button";
|
|
21
|
+
}
|
|
19
22
|
return "submit";
|
|
20
23
|
}
|
|
21
24
|
setupObserver(element) {
|
|
@@ -95,10 +98,10 @@ const DBButton = class {
|
|
|
95
98
|
}
|
|
96
99
|
render() {
|
|
97
100
|
var _a, _b, _c;
|
|
98
|
-
return (index.h("button", { key: '
|
|
101
|
+
return (index.h("button", { key: '267ba7e58126895a0ef9e5faaa5f01d969b904dc', class: index$1.cls("db-button", this.className), ref: (el) => {
|
|
99
102
|
this._ref = el;
|
|
100
103
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: index$1.getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
101
|
-
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText"), name: this.name, form: this.form, value: this.value }, this.text ? this.text : null, index.h("slot", { key: '
|
|
104
|
+
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText"), name: this.name, form: this.form, value: this.value, command: this.command, commandfor: this.commandfor }, this.text ? this.text : null, index.h("slot", { key: '6336cd932f883bd4b042e1c2fd159ba7c30ee1ab' })));
|
|
102
105
|
}
|
|
103
106
|
get rootElement() { return index.getElement(this); }
|
|
104
107
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
6
|
const DBCard = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -91,9 +91,9 @@ const DBCard = class {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
var _a, _b;
|
|
94
|
-
return (index.h("div", { key: '
|
|
94
|
+
return (index.h("div", { key: 'c8b59aa078aea8911304df37d49ce773e037e580', class: index$1.cls("db-card", this.className), ref: (el) => {
|
|
95
95
|
this._ref = el;
|
|
96
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: '
|
|
96
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: 'fb9a79f1372c9fde1eb98d049a768db70be370b3' })));
|
|
97
97
|
}
|
|
98
98
|
get rootElement() { return index.getElement(this); }
|
|
99
99
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var constants = require('./constants-
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
4
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
5
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
|
+
var formComponents = require('./form-components-XNiwIGq8.js');
|
|
7
7
|
|
|
8
8
|
const DBCheckbox = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -250,9 +250,9 @@ const DBCheckbox = class {
|
|
|
250
250
|
}
|
|
251
251
|
render() {
|
|
252
252
|
var _a;
|
|
253
|
-
return (index.h("div", { key: '
|
|
253
|
+
return (index.h("div", { key: '130503bffd4d94f77a085f02d655dbbcb2fc7772', class: index$1.cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-hide-label": index$1.getHideProp(this.showLabel) }, index.h("label", { key: 'f38874a7e11630dd21abe1c8c1f4fa8b65116550', htmlFor: this._id }, index.h("input", { key: '49fa26610cfadcb064cb11e2b7fe97cae7cd93ae', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
254
254
|
this._ref = el;
|
|
255
|
-
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, index.h("slot", { key: '
|
|
255
|
+
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, index.h("slot", { key: '2119a959da0c591beb6ab2ed1909482943699e6e' })), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'aa579c03ce1cb3049c46bd454b671c74ec12f17a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '076ea23eb8d662c3ba254cea5c229831dab390bd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
256
256
|
}
|
|
257
257
|
get rootElement() { return index.getElement(this); }
|
|
258
258
|
static get watchers() { return {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var
|
|
5
|
-
var index$1 = require('./index-spuu3sXz.js');
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
5
|
|
|
7
|
-
const
|
|
6
|
+
const DBControlPanelBrand = class {
|
|
8
7
|
constructor(hostRef) {
|
|
9
8
|
index.registerInstance(this, hostRef);
|
|
10
9
|
this.observer = undefined;
|
|
@@ -12,7 +11,7 @@ const DBBrand = class {
|
|
|
12
11
|
setupObserver(element) {
|
|
13
12
|
if (!element)
|
|
14
13
|
return;
|
|
15
|
-
const parent = element.closest("db-brand");
|
|
14
|
+
const parent = element.closest("db-control-panel-brand");
|
|
16
15
|
if (!parent || this.observer)
|
|
17
16
|
return;
|
|
18
17
|
this.observer = new MutationObserver((mutations) => {
|
|
@@ -21,7 +20,7 @@ const DBBrand = class {
|
|
|
21
20
|
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
22
21
|
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
23
22
|
})) {
|
|
24
|
-
this.enableAttributePassing(element, "db-brand");
|
|
23
|
+
this.enableAttributePassing(element, "db-control-panel-brand");
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
26
|
this.observer.observe(parent, {
|
|
@@ -77,7 +76,7 @@ const DBBrand = class {
|
|
|
77
76
|
connectedElement.remove();
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
this.enableAttributePassing(this._ref, "db-brand");
|
|
79
|
+
this.enableAttributePassing(this._ref, "db-control-panel-brand");
|
|
81
80
|
this.setupObserver(this._ref);
|
|
82
81
|
}
|
|
83
82
|
disconnectedCallback() {
|
|
@@ -85,12 +84,12 @@ const DBBrand = class {
|
|
|
85
84
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
86
85
|
}
|
|
87
86
|
render() {
|
|
88
|
-
var _a, _b
|
|
89
|
-
return (index.h("div", { key: '
|
|
87
|
+
var _a, _b;
|
|
88
|
+
return (index.h("div", { key: 'bcc1befdd6504c1067a3a34b91b3ffcccf4a45b7', class: index$1.cls("db-control-panel-brand", this.className), ref: (el) => {
|
|
90
89
|
this._ref = el;
|
|
91
|
-
},
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'f02755f7e5008542816a537235aeb3c83d5e2da6' })));
|
|
92
91
|
}
|
|
93
92
|
get rootElement() { return index.getElement(this); }
|
|
94
93
|
};
|
|
95
94
|
|
|
96
|
-
exports.
|
|
95
|
+
exports.db_control_panel_brand = DBControlPanelBrand;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
5
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
|
+
|
|
7
|
+
const DBControlPanelDesktop = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this._id = undefined;
|
|
11
|
+
this._open = true;
|
|
12
|
+
this.observer = undefined;
|
|
13
|
+
}
|
|
14
|
+
handleToggle(event) {
|
|
15
|
+
/* Guard: In WC/Stencil, custom events wrap payload in event.detail as object.
|
|
16
|
+
Native click has event.detail as number. Prevents double-toggle. */
|
|
17
|
+
if (typeof event.detail !== "object") {
|
|
18
|
+
event.stopPropagation();
|
|
19
|
+
this._open = !this._open;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
getToggleButtonText() {
|
|
23
|
+
var _a;
|
|
24
|
+
if (this.expandButtonTooltip) {
|
|
25
|
+
return this.expandButtonTooltip;
|
|
26
|
+
}
|
|
27
|
+
const fnOutput = () => undefined;
|
|
28
|
+
return (_a = fnOutput()) !== null && _a !== void 0 ? _a : (this._open ? constants.DEFAULT_COLLAPSE : constants.DEFAULT_EXPAND);
|
|
29
|
+
}
|
|
30
|
+
resetIds() {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
this._id =
|
|
33
|
+
(_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `db-control-panel-desktop-${index$1.uuid()}`;
|
|
34
|
+
}
|
|
35
|
+
setupObserver(element) {
|
|
36
|
+
if (!element)
|
|
37
|
+
return;
|
|
38
|
+
const parent = element.closest("db-control-panel-desktop");
|
|
39
|
+
if (!parent || this.observer)
|
|
40
|
+
return;
|
|
41
|
+
this.observer = new MutationObserver((mutations) => {
|
|
42
|
+
if (mutations.some((mutation) => {
|
|
43
|
+
var _a;
|
|
44
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
45
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
46
|
+
})) {
|
|
47
|
+
this.enableAttributePassing(element, "db-control-panel-desktop");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
this.observer.observe(parent, {
|
|
51
|
+
attributes: true,
|
|
52
|
+
attributeOldValue: true,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
57
|
+
* @param element the ref for the component
|
|
58
|
+
* @param customElementSelector the custom element like `my-component`
|
|
59
|
+
*/
|
|
60
|
+
enableAttributePassing(element, customElementSelector) {
|
|
61
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
62
|
+
if (element && parent) {
|
|
63
|
+
const attributes = parent.attributes;
|
|
64
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
65
|
+
const attr = attributes.item(i);
|
|
66
|
+
if (attr && attr.name !== 'data-density' &&
|
|
67
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
68
|
+
if (attr.value) {
|
|
69
|
+
element.setAttribute(attr.name, attr.value);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
element.removeAttribute(attr.name);
|
|
73
|
+
}
|
|
74
|
+
parent.removeAttribute(attr.name);
|
|
75
|
+
}
|
|
76
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
77
|
+
element.setAttribute(attr.name, attr.value);
|
|
78
|
+
parent.removeAttribute(attr.name);
|
|
79
|
+
}
|
|
80
|
+
else if (attr && attr.name === "class") {
|
|
81
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
82
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
83
|
+
const currentClass = element.getAttribute("class");
|
|
84
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
85
|
+
if (isWebComponent) {
|
|
86
|
+
// Stencil is using this class for lazy loading component
|
|
87
|
+
parent.setAttribute("class", "hydrated");
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
parent.removeAttribute(attr.name);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
watch0Fn() {
|
|
97
|
+
this.resetIds();
|
|
98
|
+
}
|
|
99
|
+
watch0() {
|
|
100
|
+
this.watch0Fn();
|
|
101
|
+
}
|
|
102
|
+
watch1Fn() {
|
|
103
|
+
var _a;
|
|
104
|
+
if (this.expanded !== undefined) {
|
|
105
|
+
this._open = (_a = index$1.getBoolean(this.expanded, "expanded")) !== null && _a !== void 0 ? _a : true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
watch1() {
|
|
109
|
+
this.watch1Fn();
|
|
110
|
+
}
|
|
111
|
+
componentDidLoad() {
|
|
112
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
113
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
114
|
+
if (connectedElement) {
|
|
115
|
+
connectedElement.remove();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
this.enableAttributePassing(this._ref, "db-control-panel-desktop");
|
|
119
|
+
this.setupObserver(this._ref);
|
|
120
|
+
this.watch0Fn();
|
|
121
|
+
this.watch1Fn();
|
|
122
|
+
}
|
|
123
|
+
disconnectedCallback() {
|
|
124
|
+
var _a;
|
|
125
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
return (index.h("header", { key: '1e69bc19a8df84edc32a6ccd90fcc4910ca5215b', class: index$1.cls("db-control-panel-desktop", this.className), ref: (el) => {
|
|
129
|
+
this._ref = el;
|
|
130
|
+
}, id: this._id, "data-width": this.width, "data-orientation": this.orientation, "data-open": index$1.getBooleanAsString(this._open) }, index.h("slot", { key: '1e3a183c4e3746eaacae1dc69d74a5c61b825e47', name: "skipNavigation" }), index.h("div", { key: 'f3bd252e6dea284952c692456d45541ae03f439a', class: "db-control-panel-desktop-brand-container" }, index.h("slot", { key: '6cd6d8aabea48f6c60d99e892dc1669eb13f04af', name: "brand" })), index.h("div", { key: '17427a9e8159e9dc56bae68c713995b7cef67ea6', class: "db-control-panel-desktop-scroll-container", ref: (el) => {
|
|
131
|
+
this._scrollContainerRef = el;
|
|
132
|
+
} }, index.h("slot", { key: 'f1d0d4d75002f9668957f2bc566a8380b0709cbe' }), index.h("slot", { key: '85acca3e6977e39527c83b3bbc47cf7801525b2c', name: "metaNavigation" })), index.h("slot", { key: 'e3e1cf00d281bead1888757e39b600e0caa455b2', name: "primaryActions" }), index.h("slot", { key: '793f8cb101822660216e84df98999d6523113003', name: "secondaryActions" }), index.h("div", { key: '0ee3e4d58514e2bd989b398a4e0bbd054a3e34a9', class: "db-control-panel-desktop-button" }, index.h("button", { key: '2222f3382646d813accad996e371f7adf0d36ddc', class: "db-button", "data-variant": "ghost", "data-no-text": "true", type: "button", "data-icon": "double_chevron_left", onClick: (event) => this.handleToggle(event), "aria-controls": this._id, "aria-expanded": index$1.getBooleanAsString(this._open) }, index.h("db-tooltip", { key: '81b66866bc0bbaec059a67a1d1479c4af7309805', variant: "label", placement: "right" }, this.getToggleButtonText())))));
|
|
133
|
+
}
|
|
134
|
+
get rootElement() { return index.getElement(this); }
|
|
135
|
+
static get watchers() { return {
|
|
136
|
+
"id": [{
|
|
137
|
+
"watch0": 0
|
|
138
|
+
}],
|
|
139
|
+
"propOverrides": [{
|
|
140
|
+
"watch0": 0
|
|
141
|
+
}],
|
|
142
|
+
"expanded": [{
|
|
143
|
+
"watch1": 0
|
|
144
|
+
}]
|
|
145
|
+
}; }
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
exports.db_control_panel_desktop = DBControlPanelDesktop;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
|
+
var resizeObserverListener = require('./resize-observer-listener-CmPDfoZs.js');
|
|
6
|
+
|
|
7
|
+
const DBControlPanelFlatIcon = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this._resizeObserverCallbackId = undefined;
|
|
11
|
+
this.observer = undefined;
|
|
12
|
+
}
|
|
13
|
+
setupObserver(element) {
|
|
14
|
+
if (!element)
|
|
15
|
+
return;
|
|
16
|
+
const parent = element.closest("db-control-panel-flat-icon");
|
|
17
|
+
if (!parent || this.observer)
|
|
18
|
+
return;
|
|
19
|
+
this.observer = new MutationObserver((mutations) => {
|
|
20
|
+
if (mutations.some((mutation) => {
|
|
21
|
+
var _a;
|
|
22
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
23
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
24
|
+
})) {
|
|
25
|
+
this.enableAttributePassing(element, "db-control-panel-flat-icon");
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
this.observer.observe(parent, {
|
|
29
|
+
attributes: true,
|
|
30
|
+
attributeOldValue: true,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
35
|
+
* @param element the ref for the component
|
|
36
|
+
* @param customElementSelector the custom element like `my-component`
|
|
37
|
+
*/
|
|
38
|
+
enableAttributePassing(element, customElementSelector) {
|
|
39
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
40
|
+
if (element && parent) {
|
|
41
|
+
const attributes = parent.attributes;
|
|
42
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
43
|
+
const attr = attributes.item(i);
|
|
44
|
+
if (attr && attr.name !== 'data-density' &&
|
|
45
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
46
|
+
if (attr.value) {
|
|
47
|
+
element.setAttribute(attr.name, attr.value);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
element.removeAttribute(attr.name);
|
|
51
|
+
}
|
|
52
|
+
parent.removeAttribute(attr.name);
|
|
53
|
+
}
|
|
54
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
55
|
+
element.setAttribute(attr.name, attr.value);
|
|
56
|
+
parent.removeAttribute(attr.name);
|
|
57
|
+
}
|
|
58
|
+
else if (attr && attr.name === "class") {
|
|
59
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
60
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
61
|
+
const currentClass = element.getAttribute("class");
|
|
62
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
63
|
+
if (isWebComponent) {
|
|
64
|
+
// Stencil is using this class for lazy loading component
|
|
65
|
+
parent.setAttribute("class", "hydrated");
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
parent.removeAttribute(attr.name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
watch0Fn() {
|
|
75
|
+
if (this._ref && !this._resizeObserverCallbackId) {
|
|
76
|
+
// Capture the initial density and persist it as a data attribute
|
|
77
|
+
const initialDensity = this._ref.getAttribute("data-density");
|
|
78
|
+
if (initialDensity) {
|
|
79
|
+
this._ref.setAttribute("data-initial-density", initialDensity);
|
|
80
|
+
}
|
|
81
|
+
this._resizeObserverCallbackId = new resizeObserverListener.ResizeObserverListener().observe(this._ref, () => {
|
|
82
|
+
if (!this._ref)
|
|
83
|
+
return;
|
|
84
|
+
const isMobile = index$1.hasCssFlag(this._ref, "--db-control-panel-flat-icon-mobile");
|
|
85
|
+
const savedDensity = this._ref.getAttribute("data-initial-density");
|
|
86
|
+
if (isMobile) {
|
|
87
|
+
this._ref.setAttribute("data-density", "regular");
|
|
88
|
+
}
|
|
89
|
+
else if (savedDensity) {
|
|
90
|
+
this._ref.setAttribute("data-density", savedDensity);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this._ref.removeAttribute("data-density");
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
watch0() {
|
|
99
|
+
this.watch0Fn();
|
|
100
|
+
}
|
|
101
|
+
componentDidLoad() {
|
|
102
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
103
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
104
|
+
if (connectedElement) {
|
|
105
|
+
connectedElement.remove();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
this.enableAttributePassing(this._ref, "db-control-panel-flat-icon");
|
|
109
|
+
this.setupObserver(this._ref);
|
|
110
|
+
this.watch0Fn();
|
|
111
|
+
}
|
|
112
|
+
disconnectedCallback() {
|
|
113
|
+
var _a;
|
|
114
|
+
if (this._resizeObserverCallbackId) {
|
|
115
|
+
new resizeObserverListener.ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
116
|
+
this._resizeObserverCallbackId = undefined;
|
|
117
|
+
}
|
|
118
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
var _a, _b;
|
|
122
|
+
return (index.h("header", { key: '6402a0d80b368fcead6440a8412489a934619619', class: index$1.cls("db-control-panel-flat-icon", this.className), ref: (el) => {
|
|
123
|
+
this._ref = el;
|
|
124
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-no-text": index$1.getBooleanAsString(this.noText, "noText") }, index.h("slot", { key: '24ac665b0b511685e2ff88f45d99b9dc15630800', name: "skipNavigation" }), index.h("slot", { key: '354b01d6d250d6d9cc25a6236189bee042c1ce64' })));
|
|
125
|
+
}
|
|
126
|
+
get rootElement() { return index.getElement(this); }
|
|
127
|
+
static get watchers() { return {
|
|
128
|
+
"_ref": [{
|
|
129
|
+
"watch0": 0
|
|
130
|
+
}]
|
|
131
|
+
}; }
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
exports.db_control_panel_flat_icon = DBControlPanelFlatIcon;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const DBControlPanelMeta = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
index.registerInstance(this, hostRef);
|
|
9
9
|
this.observer = undefined;
|
|
@@ -11,7 +11,7 @@ const DBNavigation = class {
|
|
|
11
11
|
setupObserver(element) {
|
|
12
12
|
if (!element)
|
|
13
13
|
return;
|
|
14
|
-
const parent = element.closest("db-
|
|
14
|
+
const parent = element.closest("db-control-panel-meta");
|
|
15
15
|
if (!parent || this.observer)
|
|
16
16
|
return;
|
|
17
17
|
this.observer = new MutationObserver((mutations) => {
|
|
@@ -20,7 +20,7 @@ const DBNavigation = class {
|
|
|
20
20
|
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
21
21
|
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
22
22
|
})) {
|
|
23
|
-
this.enableAttributePassing(element, "db-
|
|
23
|
+
this.enableAttributePassing(element, "db-control-panel-meta");
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
this.observer.observe(parent, {
|
|
@@ -76,7 +76,7 @@ const DBNavigation = class {
|
|
|
76
76
|
connectedElement.remove();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
this.enableAttributePassing(this._ref, "db-
|
|
79
|
+
this.enableAttributePassing(this._ref, "db-control-panel-meta");
|
|
80
80
|
this.setupObserver(this._ref);
|
|
81
81
|
}
|
|
82
82
|
disconnectedCallback() {
|
|
@@ -85,11 +85,11 @@ const DBNavigation = class {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
var _a, _b;
|
|
88
|
-
return (index.h("
|
|
88
|
+
return (index.h("div", { key: 'a4131ee9def6e33560b304d2f957ab6895dd0bd6', class: index$1.cls("db-control-panel-meta", this.className), ref: (el) => {
|
|
89
89
|
this._ref = el;
|
|
90
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '2c32541f883cdb301a3aee5811fedfde0d760a01' })));
|
|
91
91
|
}
|
|
92
92
|
get rootElement() { return index.getElement(this); }
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
exports.
|
|
95
|
+
exports.db_control_panel_meta = DBControlPanelMeta;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
5
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
|
+
var navigation = require('./navigation-CHCtasZv.js');
|
|
7
|
+
require('./floating-components-B3bpFI90.js');
|
|
8
|
+
|
|
9
|
+
const DBControlPanelMobile = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.toggle = index.createEvent(this, "toggle");
|
|
13
|
+
this.open = false;
|
|
14
|
+
this.observer = undefined;
|
|
15
|
+
}
|
|
16
|
+
handleToggle(event) {
|
|
17
|
+
if (event.stopPropagation) {
|
|
18
|
+
event.stopPropagation();
|
|
19
|
+
}
|
|
20
|
+
const reverseOpen = !this.open;
|
|
21
|
+
this.open = reverseOpen;
|
|
22
|
+
if (this.toggle) {
|
|
23
|
+
this.toggle.emit(reverseOpen);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
handleClose(event) {
|
|
27
|
+
if (event.stopPropagation) {
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
}
|
|
30
|
+
this.open = false;
|
|
31
|
+
if (this.toggle) {
|
|
32
|
+
this.toggle.emit(false);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
handleNavigationItemClick(event) {
|
|
36
|
+
if (navigation.isEventTargetNavigationItem(event)) {
|
|
37
|
+
this.handleClose(event);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
setupObserver(element) {
|
|
41
|
+
if (!element)
|
|
42
|
+
return;
|
|
43
|
+
const parent = element.closest("db-control-panel-mobile");
|
|
44
|
+
if (!parent || this.observer)
|
|
45
|
+
return;
|
|
46
|
+
this.observer = new MutationObserver((mutations) => {
|
|
47
|
+
if (mutations.some((mutation) => {
|
|
48
|
+
var _a;
|
|
49
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
50
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
51
|
+
})) {
|
|
52
|
+
this.enableAttributePassing(element, "db-control-panel-mobile");
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
this.observer.observe(parent, {
|
|
56
|
+
attributes: true,
|
|
57
|
+
attributeOldValue: true,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
62
|
+
* @param element the ref for the component
|
|
63
|
+
* @param customElementSelector the custom element like `my-component`
|
|
64
|
+
*/
|
|
65
|
+
enableAttributePassing(element, customElementSelector) {
|
|
66
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
67
|
+
if (element && parent) {
|
|
68
|
+
const attributes = parent.attributes;
|
|
69
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
70
|
+
const attr = attributes.item(i);
|
|
71
|
+
if (attr && attr.name !== 'data-density' &&
|
|
72
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
73
|
+
if (attr.value) {
|
|
74
|
+
element.setAttribute(attr.name, attr.value);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
element.removeAttribute(attr.name);
|
|
78
|
+
}
|
|
79
|
+
parent.removeAttribute(attr.name);
|
|
80
|
+
}
|
|
81
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
82
|
+
element.setAttribute(attr.name, attr.value);
|
|
83
|
+
parent.removeAttribute(attr.name);
|
|
84
|
+
}
|
|
85
|
+
else if (attr && attr.name === "class") {
|
|
86
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
87
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
88
|
+
const currentClass = element.getAttribute("class");
|
|
89
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
90
|
+
if (isWebComponent) {
|
|
91
|
+
// Stencil is using this class for lazy loading component
|
|
92
|
+
parent.setAttribute("class", "hydrated");
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
parent.removeAttribute(attr.name);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
componentDidLoad() {
|
|
102
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
103
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
104
|
+
if (connectedElement) {
|
|
105
|
+
connectedElement.remove();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
this.enableAttributePassing(this._ref, "db-control-panel-mobile");
|
|
109
|
+
this.setupObserver(this._ref);
|
|
110
|
+
}
|
|
111
|
+
disconnectedCallback() {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
var _a, _b, _c;
|
|
117
|
+
return (index.h("header", { key: '25bf24bdb71c1c4f6f3c20f450969476b9de518b', class: index$1.cls("db-control-panel-mobile", this.className), "data-density": "regular", ref: (el) => {
|
|
118
|
+
this._ref = el;
|
|
119
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-position": this.position }, index.h("slot", { key: '225c01e9eab804a5fbb66614aed6fc55ec24955d', name: "skipNavigation" }), index.h("db-drawer", { key: 'e9e344091b10454d0e4b40cd709e9e5925008226', class: "db-control-panel-mobile-drawer", rounded: true, open: this.open, onClose: (event) => this.handleClose(event) }, index.h("div", { key: '4915275fceba63688f2d95ceb2016d928014dc17', class: "db-control-panel-mobile-drawer-scroll-container", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: 'd0631fc92c2623c4fa894d2766911c1653c780c9' }), index.h("slot", { key: '5d989e8ece5fe37a3477c46cf2a8f15c76670c6b', name: "metaNavigation" })), index.h("db-drawer-header", { key: '882ad83031b3730a240e638bd286f5cc91199df1', slot: "header", text: this.drawerHeaderText }), index.h("db-drawer-footer", { key: 'be124b3f769f5fa7722d48d85ebd925c5e789bac', slot: "footer" }, index.h("slot", { key: '503e666e22a9a3e7046fb44a352800e7a301f5b3', name: "secondaryActions" }))), index.h("slot", { key: 'd401592fabf808f81f764546bdcd3b72e60b5018', name: "brand" }), index.h("slot", { key: 'ff5b83e96a1a42aa4f9bf19bb00c4f650c3b90db', name: "primaryActions" }), index.h("db-button", { key: '6ec807aa071e8f917ecab14ee8086a2eb07fa4fc', class: "db-control-panel-mobile-button", icon: "menu", type: "button", variant: "ghost", noText: true, onClick: (event) => this.handleToggle(event) }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_BURGER_MENU)));
|
|
120
|
+
}
|
|
121
|
+
get rootElement() { return index.getElement(this); }
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
exports.db_control_panel_mobile = DBControlPanelMobile;
|