@db-ux/wc-core-components 4.12.0 → 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 +14 -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-9FBjLlz8.js +1 -0
- 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-BvgvWjGH.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 +14 -14
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +50 -26
- 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-DlstoCKH.js → floating-components-B3bpFI90.js} +193 -115
- 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 +46 -21
- 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 +2 -2
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +71 -75
- 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 +193 -115
- 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 +11897 -8400
- 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 +14 -14
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +50 -26
- 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-DOPXnIzL.js → floating-components-BT3wZY6f.js} +194 -116
- 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 +9 -6
- package/dist/types/components/drawer/model.d.ts +21 -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 +998 -540
- package/dist/web-types.json +2176 -1176
- 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-BdL-nI5y.js +0 -1
- package/bundle/p-BuBrj57D.js +0 -1
- package/bundle/p-C2w7ILj8.js +0 -1
- package/bundle/p-C47AKJPy.js +0 -1
- package/bundle/p-Cn5NdjPW.js +0 -1
- package/bundle/p-D6L0n3gO.js +0 -1
- package/bundle/p-DFypNnh0.js +0 -1
- package/bundle/p-DJTpgiBy.js +0 -1
- package/bundle/p-DOPXnIzL.js +0 -1
- package/bundle/p-DTM6Wcbf.js +0 -1
- package/bundle/p-DVuZmW_J.js +0 -1
- package/bundle/p-DW47OZNu.js +0 -1
- package/bundle/p-DiEfz0o1.js +0 -1
- package/bundle/p-n2qePi9e.js +0 -1
- package/dist/cjs/db-drawer.cjs.entry.js +0 -204
- 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-Bah882nU.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-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-4a94fbc9.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-6fd70ba4.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-88dcff6a.entry.js +0 -1
- package/dist/db-ux/p-90e9ec2d.entry.js +0 -1
- package/dist/db-ux/p-96978a7f.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-BuBrj57D.js +0 -1
- package/dist/db-ux/p-DOPXnIzL.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-a4fb4782.entry.js +0 -1
- package/dist/db-ux/p-bb5149a9.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-ef63c591.entry.js +0 -1
- package/dist/db-ux/p-f0b5c785.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 -202
- package/dist/esm/db-header.entry.js +0 -143
- package/dist/esm/db-navigation-item.entry.js +0 -180
- package/dist/esm/navigation-Jh6m0eMk.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
|
@@ -14,10 +14,14 @@ const DEFAULT_INVALID_MESSAGE = 'TODO: Add an invalidMessage';
|
|
|
14
14
|
const DEFAULT_REMOVE = 'Remove';
|
|
15
15
|
const DEFAULT_BACK = 'Back';
|
|
16
16
|
const DEFAULT_SELECTED = 'Selected';
|
|
17
|
-
const
|
|
18
|
-
const
|
|
17
|
+
const DEFAULT_EXPAND = 'Expand';
|
|
18
|
+
const DEFAULT_COLLAPSE = 'Collapse';
|
|
19
|
+
const DEFAULT_SCROLL_LEFT = 'Scroll left';
|
|
20
|
+
const DEFAULT_SCROLL_RIGHT = 'Scroll right';
|
|
21
|
+
const DEFAULT_BURGER_MENU = 'Open navigation menu';
|
|
19
22
|
const DEFAULT_ROWS = 4;
|
|
20
23
|
const DEFAULT_CLOSE_BUTTON = 'Close';
|
|
24
|
+
const MAIN_CONTENT_ID = 'main-content';
|
|
21
25
|
const DENSITY_CONST = 'density';
|
|
22
26
|
const COLOR_CONST = 'color';
|
|
23
27
|
var DENSITY;
|
|
@@ -68,6 +72,7 @@ const COLORS = Object.entries(COLOR).map(([, value]) => value);
|
|
|
68
72
|
const COLORS_SIMPLE = Object.entries(COLOR_SIMPLE).map(([, value]) => value);
|
|
69
73
|
var SEMANTIC;
|
|
70
74
|
(function (SEMANTIC) {
|
|
75
|
+
SEMANTIC["NEUTRAL"] = "neutral";
|
|
71
76
|
SEMANTIC["CRITICAL"] = "critical";
|
|
72
77
|
SEMANTIC["INFORMATIONAL"] = "informational";
|
|
73
78
|
SEMANTIC["WARNING"] = "warning";
|
|
@@ -93,4 +98,4 @@ const TESTING_VIEWPORTS = [Object.assign({ name: 'desktop' }, DESKTOP_VIEWPORT),
|
|
|
93
98
|
const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
94
99
|
const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
95
100
|
|
|
96
|
-
export {
|
|
101
|
+
export { COLOR as A, COLORS as B, COLOR_CONST as C, DEFAULT_ID as D, COLORS_SIMPLE as E, SEMANTICS as F, DEFAULT_VIEWPORT as G, DESKTOP_VIEWPORT as H, DB_UX_LOCAL_STORAGE_FRAMEWORK as I, DB_UX_LOCAL_STORAGE_MODE as J, MAIN_CONTENT_ID as M, SEMANTIC as S, TESTING_VIEWPORTS as T, DEFAULT_LABEL as a, DEFAULT_PLACEHOLDER as b, DEFAULT_MESSAGE as c, DEFAULT_LABEL_ID_SUFFIX as d, DEFAULT_SELECT_ID_SUFFIX as e, DEFAULT_MESSAGE_ID_SUFFIX as f, DEFAULT_VALID_MESSAGE_ID_SUFFIX as g, DEFAULT_INVALID_MESSAGE_ID_SUFFIX as h, DEFAULT_PLACEHOLDER_ID_SUFFIX as i, DEFAULT_DATALIST_ID_SUFFIX as j, DEFAULT_VALID_MESSAGE as k, DEFAULT_INVALID_MESSAGE as l, DEFAULT_REMOVE as m, DEFAULT_BACK as n, DEFAULT_SELECTED as o, DEFAULT_EXPAND as p, DEFAULT_COLLAPSE as q, DEFAULT_SCROLL_LEFT as r, DEFAULT_SCROLL_RIGHT as s, DEFAULT_BURGER_MENU as t, DEFAULT_ROWS as u, DEFAULT_CLOSE_BUTTON as v, DENSITY_CONST as w, DENSITY as x, DENSITIES as y, COLOR_SIMPLE as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import {
|
|
2
|
+
import { f as getBoolean, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
4
|
const DBAccordionItem = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -144,9 +144,9 @@ const DBAccordionItem = class {
|
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
146
|
var _a, _b;
|
|
147
|
-
return (h("li", { key: '
|
|
147
|
+
return (h("li", { key: '8a160debf7704879907e1281f0f54d5893b33e79', class: cls("db-accordion-item", this.className), id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("details", { key: '24cf12c75d7a6af0f5e6063a14b34a9737f07724', "aria-disabled": getBooleanAsString(this.disabled, "disabled"), ref: (el) => {
|
|
148
148
|
this._ref = el;
|
|
149
|
-
}, name: this._name, open: this._open }, h("summary", { key: '
|
|
149
|
+
}, name: this._name, open: this._open }, h("summary", { key: '077c1911850cac3662496b58ff56718ec97f814b', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? h("slot", { name: "headline" }) : null), h("div", { key: 'b5b0a02c9f2cebed99bee7d3fc9b7c23f2e1d043' }, this.text ? this.text : null, h("slot", { key: '74c340a2f3c35ab0d00555554d7c30f8b80b8f9b' })))));
|
|
150
150
|
}
|
|
151
151
|
get rootElement() { return getElement(this); }
|
|
152
152
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { u as uuid, c as cls } from './index-
|
|
2
|
+
import { u as uuid, c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
4
|
const DBAccordion = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -171,7 +171,7 @@ const DBAccordion = class {
|
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
173
|
var _a, _b, _c;
|
|
174
|
-
return (h("ul", { key: '
|
|
174
|
+
return (h("ul", { key: 'd996789030a6c8929616381063586d57f4d08a01', class: cls("db-accordion", this.className), ref: (el) => {
|
|
175
175
|
this._ref = el;
|
|
176
176
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant }, !this.items ? h("slot", null) : null, this.items
|
|
177
177
|
? (_c = this.convertItems()) === null || _c === void 0 ? void 0 : _c.map((item, index) => (h("db-accordion-item", { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { a as DEFAULT_LABEL } from './constants-
|
|
3
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
2
|
+
import { a as DEFAULT_LABEL } from './constants-COv1iCFP.js';
|
|
3
|
+
import { g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
4
4
|
|
|
5
5
|
const DBBadge = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -111,9 +111,9 @@ const DBBadge = class {
|
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
113
|
var _a, _b, _c, _d;
|
|
114
|
-
return (h("span", { key: '
|
|
114
|
+
return (h("span", { key: 'd2f49451ff0969570ebf5bfdf0d38bd24fdb74f5', class: cls("db-badge", this.className), ref: (el) => {
|
|
115
115
|
this._ref = el;
|
|
116
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-label": ((_c = this.placement) === null || _c === void 0 ? void 0 : _c.startsWith("corner")) && ((_d = this.label) !== null && _d !== void 0 ? _d : DEFAULT_LABEL) }, this.text ? this.text : null, h("slot", { key: '
|
|
116
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-label": ((_c = this.placement) === null || _c === void 0 ? void 0 : _c.startsWith("corner")) && ((_d = this.label) !== null && _d !== void 0 ? _d : DEFAULT_LABEL) }, this.text ? this.text : null, h("slot", { key: 'f8fd8178b7655c825885c010d884c00056068572' })));
|
|
117
117
|
}
|
|
118
118
|
get rootElement() { return getElement(this); }
|
|
119
119
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { g as getBooleanAsString,
|
|
2
|
+
import { g as getBooleanAsString, f as getBoolean, c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
4
|
const DBButton = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -14,6 +14,9 @@ const DBButton = class {
|
|
|
14
14
|
else if (this.click) {
|
|
15
15
|
return "button";
|
|
16
16
|
}
|
|
17
|
+
else if (this.commandfor) {
|
|
18
|
+
return "button";
|
|
19
|
+
}
|
|
17
20
|
return "submit";
|
|
18
21
|
}
|
|
19
22
|
setupObserver(element) {
|
|
@@ -93,10 +96,10 @@ const DBButton = class {
|
|
|
93
96
|
}
|
|
94
97
|
render() {
|
|
95
98
|
var _a, _b, _c;
|
|
96
|
-
return (h("button", { key: '
|
|
99
|
+
return (h("button", { key: '267ba7e58126895a0ef9e5faaa5f01d969b904dc', class: cls("db-button", this.className), ref: (el) => {
|
|
97
100
|
this._ref = el;
|
|
98
101
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
99
|
-
getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-no-text": getBooleanAsString(this.noText, "noText"), name: this.name, form: this.form, value: this.value }, this.text ? this.text : null, h("slot", { key: '
|
|
102
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-no-text": getBooleanAsString(this.noText, "noText"), name: this.name, form: this.form, value: this.value, command: this.command, commandfor: this.commandfor }, this.text ? this.text : null, h("slot", { key: '6336cd932f883bd4b042e1c2fd159ba7c30ee1ab' })));
|
|
100
103
|
}
|
|
101
104
|
get rootElement() { return getElement(this); }
|
|
102
105
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { c as cls } from './index-
|
|
2
|
+
import { c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
4
|
const DBCard = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -89,9 +89,9 @@ const DBCard = class {
|
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
91
|
var _a, _b;
|
|
92
|
-
return (h("div", { key: '
|
|
92
|
+
return (h("div", { key: 'c8b59aa078aea8911304df37d49ce773e037e580', class: cls("db-card", this.className), ref: (el) => {
|
|
93
93
|
this._ref = el;
|
|
94
|
-
}, 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) }, h("slot", { key: '
|
|
94
|
+
}, 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) }, h("slot", { key: 'fb9a79f1372c9fde1eb98d049a768db70be370b3' })));
|
|
95
95
|
}
|
|
96
96
|
get rootElement() { return getElement(this); }
|
|
97
97
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid,
|
|
4
|
-
import { a as addCheckedResetEventListener } from './form-components-
|
|
2
|
+
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-COv1iCFP.js';
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, f as getBoolean, m as getHideProp, c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
import { a as addCheckedResetEventListener } from './form-components-zJeL8XMn.js';
|
|
5
5
|
|
|
6
6
|
const DBCheckbox = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -248,9 +248,9 @@ const DBCheckbox = class {
|
|
|
248
248
|
}
|
|
249
249
|
render() {
|
|
250
250
|
var _a;
|
|
251
|
-
return (h("div", { key: '
|
|
251
|
+
return (h("div", { key: '130503bffd4d94f77a085f02d655dbbcb2fc7772', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: 'f38874a7e11630dd21abe1c8c1f4fa8b65116550', htmlFor: this._id }, h("input", { key: '49fa26610cfadcb064cb11e2b7fe97cae7cd93ae', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
252
252
|
this._ref = el;
|
|
253
|
-
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: 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, h("slot", { key: '
|
|
253
|
+
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: 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, h("slot", { key: '2119a959da0c591beb6ab2ed1909482943699e6e' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'aa579c03ce1cb3049c46bd454b671c74ec12f17a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '076ea23eb8d662c3ba254cea5c229831dab390bd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
254
254
|
}
|
|
255
255
|
get rootElement() { return getElement(this); }
|
|
256
256
|
static get watchers() { return {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-DB8jc8lh.js';
|
|
3
|
+
|
|
4
|
+
const DBControlPanelBrand = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this.observer = undefined;
|
|
8
|
+
}
|
|
9
|
+
setupObserver(element) {
|
|
10
|
+
if (!element)
|
|
11
|
+
return;
|
|
12
|
+
const parent = element.closest("db-control-panel-brand");
|
|
13
|
+
if (!parent || this.observer)
|
|
14
|
+
return;
|
|
15
|
+
this.observer = new MutationObserver((mutations) => {
|
|
16
|
+
if (mutations.some((mutation) => {
|
|
17
|
+
var _a;
|
|
18
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
19
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
20
|
+
})) {
|
|
21
|
+
this.enableAttributePassing(element, "db-control-panel-brand");
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
this.observer.observe(parent, {
|
|
25
|
+
attributes: true,
|
|
26
|
+
attributeOldValue: true,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
31
|
+
* @param element the ref for the component
|
|
32
|
+
* @param customElementSelector the custom element like `my-component`
|
|
33
|
+
*/
|
|
34
|
+
enableAttributePassing(element, customElementSelector) {
|
|
35
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
36
|
+
if (element && parent) {
|
|
37
|
+
const attributes = parent.attributes;
|
|
38
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
39
|
+
const attr = attributes.item(i);
|
|
40
|
+
if (attr && attr.name !== 'data-density' &&
|
|
41
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
42
|
+
if (attr.value) {
|
|
43
|
+
element.setAttribute(attr.name, attr.value);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
element.removeAttribute(attr.name);
|
|
47
|
+
}
|
|
48
|
+
parent.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
51
|
+
element.setAttribute(attr.name, attr.value);
|
|
52
|
+
parent.removeAttribute(attr.name);
|
|
53
|
+
}
|
|
54
|
+
else if (attr && attr.name === "class") {
|
|
55
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
56
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
57
|
+
const currentClass = element.getAttribute("class");
|
|
58
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
59
|
+
if (isWebComponent) {
|
|
60
|
+
// Stencil is using this class for lazy loading component
|
|
61
|
+
parent.setAttribute("class", "hydrated");
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
parent.removeAttribute(attr.name);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
componentDidLoad() {
|
|
71
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
72
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
73
|
+
if (connectedElement) {
|
|
74
|
+
connectedElement.remove();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
this.enableAttributePassing(this._ref, "db-control-panel-brand");
|
|
78
|
+
this.setupObserver(this._ref);
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
var _a;
|
|
82
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
return (h("div", { key: 'bcc1befdd6504c1067a3a34b91b3ffcccf4a45b7', class: cls("db-control-panel-brand", this.className), ref: (el) => {
|
|
87
|
+
this._ref = el;
|
|
88
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'f02755f7e5008542816a537235aeb3c83d5e2da6' })));
|
|
89
|
+
}
|
|
90
|
+
get rootElement() { return getElement(this); }
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { DBControlPanelBrand as db_control_panel_brand };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { q as DEFAULT_COLLAPSE, p as DEFAULT_EXPAND } from './constants-COv1iCFP.js';
|
|
3
|
+
import { u as uuid, f as getBoolean, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
|
|
5
|
+
const DBControlPanelDesktop = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this._id = undefined;
|
|
9
|
+
this._open = true;
|
|
10
|
+
this.observer = undefined;
|
|
11
|
+
}
|
|
12
|
+
handleToggle(event) {
|
|
13
|
+
/* Guard: In WC/Stencil, custom events wrap payload in event.detail as object.
|
|
14
|
+
Native click has event.detail as number. Prevents double-toggle. */
|
|
15
|
+
if (typeof event.detail !== "object") {
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
this._open = !this._open;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getToggleButtonText() {
|
|
21
|
+
var _a;
|
|
22
|
+
if (this.expandButtonTooltip) {
|
|
23
|
+
return this.expandButtonTooltip;
|
|
24
|
+
}
|
|
25
|
+
const fnOutput = () => undefined;
|
|
26
|
+
return (_a = fnOutput()) !== null && _a !== void 0 ? _a : (this._open ? DEFAULT_COLLAPSE : DEFAULT_EXPAND);
|
|
27
|
+
}
|
|
28
|
+
resetIds() {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
this._id =
|
|
31
|
+
(_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-${uuid()}`;
|
|
32
|
+
}
|
|
33
|
+
setupObserver(element) {
|
|
34
|
+
if (!element)
|
|
35
|
+
return;
|
|
36
|
+
const parent = element.closest("db-control-panel-desktop");
|
|
37
|
+
if (!parent || this.observer)
|
|
38
|
+
return;
|
|
39
|
+
this.observer = new MutationObserver((mutations) => {
|
|
40
|
+
if (mutations.some((mutation) => {
|
|
41
|
+
var _a;
|
|
42
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
43
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
44
|
+
})) {
|
|
45
|
+
this.enableAttributePassing(element, "db-control-panel-desktop");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.observer.observe(parent, {
|
|
49
|
+
attributes: true,
|
|
50
|
+
attributeOldValue: true,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
55
|
+
* @param element the ref for the component
|
|
56
|
+
* @param customElementSelector the custom element like `my-component`
|
|
57
|
+
*/
|
|
58
|
+
enableAttributePassing(element, customElementSelector) {
|
|
59
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
60
|
+
if (element && parent) {
|
|
61
|
+
const attributes = parent.attributes;
|
|
62
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
63
|
+
const attr = attributes.item(i);
|
|
64
|
+
if (attr && attr.name !== 'data-density' &&
|
|
65
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
66
|
+
if (attr.value) {
|
|
67
|
+
element.setAttribute(attr.name, attr.value);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
element.removeAttribute(attr.name);
|
|
71
|
+
}
|
|
72
|
+
parent.removeAttribute(attr.name);
|
|
73
|
+
}
|
|
74
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
75
|
+
element.setAttribute(attr.name, attr.value);
|
|
76
|
+
parent.removeAttribute(attr.name);
|
|
77
|
+
}
|
|
78
|
+
else if (attr && attr.name === "class") {
|
|
79
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
80
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
81
|
+
const currentClass = element.getAttribute("class");
|
|
82
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
83
|
+
if (isWebComponent) {
|
|
84
|
+
// Stencil is using this class for lazy loading component
|
|
85
|
+
parent.setAttribute("class", "hydrated");
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
parent.removeAttribute(attr.name);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
watch0Fn() {
|
|
95
|
+
this.resetIds();
|
|
96
|
+
}
|
|
97
|
+
watch0() {
|
|
98
|
+
this.watch0Fn();
|
|
99
|
+
}
|
|
100
|
+
watch1Fn() {
|
|
101
|
+
var _a;
|
|
102
|
+
if (this.expanded !== undefined) {
|
|
103
|
+
this._open = (_a = getBoolean(this.expanded, "expanded")) !== null && _a !== void 0 ? _a : true;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
watch1() {
|
|
107
|
+
this.watch1Fn();
|
|
108
|
+
}
|
|
109
|
+
componentDidLoad() {
|
|
110
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
111
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
112
|
+
if (connectedElement) {
|
|
113
|
+
connectedElement.remove();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
this.enableAttributePassing(this._ref, "db-control-panel-desktop");
|
|
117
|
+
this.setupObserver(this._ref);
|
|
118
|
+
this.watch0Fn();
|
|
119
|
+
this.watch1Fn();
|
|
120
|
+
}
|
|
121
|
+
disconnectedCallback() {
|
|
122
|
+
var _a;
|
|
123
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return (h("header", { key: '1e69bc19a8df84edc32a6ccd90fcc4910ca5215b', class: cls("db-control-panel-desktop", this.className), ref: (el) => {
|
|
127
|
+
this._ref = el;
|
|
128
|
+
}, id: this._id, "data-width": this.width, "data-orientation": this.orientation, "data-open": getBooleanAsString(this._open) }, h("slot", { key: '1e3a183c4e3746eaacae1dc69d74a5c61b825e47', name: "skipNavigation" }), h("div", { key: 'f3bd252e6dea284952c692456d45541ae03f439a', class: "db-control-panel-desktop-brand-container" }, h("slot", { key: '6cd6d8aabea48f6c60d99e892dc1669eb13f04af', name: "brand" })), h("div", { key: '17427a9e8159e9dc56bae68c713995b7cef67ea6', class: "db-control-panel-desktop-scroll-container", ref: (el) => {
|
|
129
|
+
this._scrollContainerRef = el;
|
|
130
|
+
} }, h("slot", { key: 'f1d0d4d75002f9668957f2bc566a8380b0709cbe' }), h("slot", { key: '85acca3e6977e39527c83b3bbc47cf7801525b2c', name: "metaNavigation" })), h("slot", { key: 'e3e1cf00d281bead1888757e39b600e0caa455b2', name: "primaryActions" }), h("slot", { key: '793f8cb101822660216e84df98999d6523113003', name: "secondaryActions" }), h("div", { key: '0ee3e4d58514e2bd989b398a4e0bbd054a3e34a9', class: "db-control-panel-desktop-button" }, 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": getBooleanAsString(this._open) }, h("db-tooltip", { key: '81b66866bc0bbaec059a67a1d1479c4af7309805', variant: "label", placement: "right" }, this.getToggleButtonText())))));
|
|
131
|
+
}
|
|
132
|
+
get rootElement() { return getElement(this); }
|
|
133
|
+
static get watchers() { return {
|
|
134
|
+
"id": [{
|
|
135
|
+
"watch0": 0
|
|
136
|
+
}],
|
|
137
|
+
"propOverrides": [{
|
|
138
|
+
"watch0": 0
|
|
139
|
+
}],
|
|
140
|
+
"expanded": [{
|
|
141
|
+
"watch1": 0
|
|
142
|
+
}]
|
|
143
|
+
}; }
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export { DBControlPanelDesktop as db_control_panel_desktop };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { e as hasCssFlag, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
3
|
+
import { R as ResizeObserverListener } from './resize-observer-listener-z8XjzxC9.js';
|
|
4
|
+
|
|
5
|
+
const DBControlPanelFlatIcon = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this._resizeObserverCallbackId = undefined;
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
setupObserver(element) {
|
|
12
|
+
if (!element)
|
|
13
|
+
return;
|
|
14
|
+
const parent = element.closest("db-control-panel-flat-icon");
|
|
15
|
+
if (!parent || this.observer)
|
|
16
|
+
return;
|
|
17
|
+
this.observer = new MutationObserver((mutations) => {
|
|
18
|
+
if (mutations.some((mutation) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
21
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
22
|
+
})) {
|
|
23
|
+
this.enableAttributePassing(element, "db-control-panel-flat-icon");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
this.observer.observe(parent, {
|
|
27
|
+
attributes: true,
|
|
28
|
+
attributeOldValue: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
33
|
+
* @param element the ref for the component
|
|
34
|
+
* @param customElementSelector the custom element like `my-component`
|
|
35
|
+
*/
|
|
36
|
+
enableAttributePassing(element, customElementSelector) {
|
|
37
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
38
|
+
if (element && parent) {
|
|
39
|
+
const attributes = parent.attributes;
|
|
40
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
41
|
+
const attr = attributes.item(i);
|
|
42
|
+
if (attr && attr.name !== 'data-density' &&
|
|
43
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
44
|
+
if (attr.value) {
|
|
45
|
+
element.setAttribute(attr.name, attr.value);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
element.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
parent.removeAttribute(attr.name);
|
|
51
|
+
}
|
|
52
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
53
|
+
element.setAttribute(attr.name, attr.value);
|
|
54
|
+
parent.removeAttribute(attr.name);
|
|
55
|
+
}
|
|
56
|
+
else if (attr && attr.name === "class") {
|
|
57
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
58
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
59
|
+
const currentClass = element.getAttribute("class");
|
|
60
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
61
|
+
if (isWebComponent) {
|
|
62
|
+
// Stencil is using this class for lazy loading component
|
|
63
|
+
parent.setAttribute("class", "hydrated");
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
parent.removeAttribute(attr.name);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
watch0Fn() {
|
|
73
|
+
if (this._ref && !this._resizeObserverCallbackId) {
|
|
74
|
+
// Capture the initial density and persist it as a data attribute
|
|
75
|
+
const initialDensity = this._ref.getAttribute("data-density");
|
|
76
|
+
if (initialDensity) {
|
|
77
|
+
this._ref.setAttribute("data-initial-density", initialDensity);
|
|
78
|
+
}
|
|
79
|
+
this._resizeObserverCallbackId = new ResizeObserverListener().observe(this._ref, () => {
|
|
80
|
+
if (!this._ref)
|
|
81
|
+
return;
|
|
82
|
+
const isMobile = hasCssFlag(this._ref, "--db-control-panel-flat-icon-mobile");
|
|
83
|
+
const savedDensity = this._ref.getAttribute("data-initial-density");
|
|
84
|
+
if (isMobile) {
|
|
85
|
+
this._ref.setAttribute("data-density", "regular");
|
|
86
|
+
}
|
|
87
|
+
else if (savedDensity) {
|
|
88
|
+
this._ref.setAttribute("data-density", savedDensity);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this._ref.removeAttribute("data-density");
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
watch0() {
|
|
97
|
+
this.watch0Fn();
|
|
98
|
+
}
|
|
99
|
+
componentDidLoad() {
|
|
100
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
101
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
102
|
+
if (connectedElement) {
|
|
103
|
+
connectedElement.remove();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
this.enableAttributePassing(this._ref, "db-control-panel-flat-icon");
|
|
107
|
+
this.setupObserver(this._ref);
|
|
108
|
+
this.watch0Fn();
|
|
109
|
+
}
|
|
110
|
+
disconnectedCallback() {
|
|
111
|
+
var _a;
|
|
112
|
+
if (this._resizeObserverCallbackId) {
|
|
113
|
+
new ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
114
|
+
this._resizeObserverCallbackId = undefined;
|
|
115
|
+
}
|
|
116
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
return (h("header", { key: '6402a0d80b368fcead6440a8412489a934619619', class: cls("db-control-panel-flat-icon", this.className), ref: (el) => {
|
|
121
|
+
this._ref = el;
|
|
122
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-no-text": getBooleanAsString(this.noText, "noText") }, h("slot", { key: '24ac665b0b511685e2ff88f45d99b9dc15630800', name: "skipNavigation" }), h("slot", { key: '354b01d6d250d6d9cc25a6236189bee042c1ce64' })));
|
|
123
|
+
}
|
|
124
|
+
get rootElement() { return getElement(this); }
|
|
125
|
+
static get watchers() { return {
|
|
126
|
+
"_ref": [{
|
|
127
|
+
"watch0": 0
|
|
128
|
+
}]
|
|
129
|
+
}; }
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export { DBControlPanelFlatIcon as db_control_panel_flat_icon };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { c as cls } from './index-
|
|
2
|
+
import { c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const DBControlPanelMeta = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
this.observer = undefined;
|
|
@@ -9,7 +9,7 @@ const DBNavigation = class {
|
|
|
9
9
|
setupObserver(element) {
|
|
10
10
|
if (!element)
|
|
11
11
|
return;
|
|
12
|
-
const parent = element.closest("db-
|
|
12
|
+
const parent = element.closest("db-control-panel-meta");
|
|
13
13
|
if (!parent || this.observer)
|
|
14
14
|
return;
|
|
15
15
|
this.observer = new MutationObserver((mutations) => {
|
|
@@ -18,7 +18,7 @@ const DBNavigation = class {
|
|
|
18
18
|
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
19
19
|
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
20
20
|
})) {
|
|
21
|
-
this.enableAttributePassing(element, "db-
|
|
21
|
+
this.enableAttributePassing(element, "db-control-panel-meta");
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
this.observer.observe(parent, {
|
|
@@ -74,7 +74,7 @@ const DBNavigation = class {
|
|
|
74
74
|
connectedElement.remove();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
this.enableAttributePassing(this._ref, "db-
|
|
77
|
+
this.enableAttributePassing(this._ref, "db-control-panel-meta");
|
|
78
78
|
this.setupObserver(this._ref);
|
|
79
79
|
}
|
|
80
80
|
disconnectedCallback() {
|
|
@@ -83,11 +83,11 @@ const DBNavigation = class {
|
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
var _a, _b;
|
|
86
|
-
return (h("
|
|
86
|
+
return (h("div", { key: 'a4131ee9def6e33560b304d2f957ab6895dd0bd6', class: cls("db-control-panel-meta", this.className), ref: (el) => {
|
|
87
87
|
this._ref = el;
|
|
88
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("
|
|
88
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '2c32541f883cdb301a3aee5811fedfde0d760a01' })));
|
|
89
89
|
}
|
|
90
90
|
get rootElement() { return getElement(this); }
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
export {
|
|
93
|
+
export { DBControlPanelMeta as db_control_panel_meta };
|