@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
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { d as delay, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
-
import { D as DocumentScrollListener } from './document-scroll-listener-
|
|
4
|
-
import {
|
|
2
|
+
import { d as delay, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
3
|
+
import { D as DocumentScrollListener } from './document-scroll-listener-B8lkAL-m.js';
|
|
4
|
+
import { a as handleFixedPopover } from './floating-components-BT3wZY6f.js';
|
|
5
|
+
import { I as IntersectionObserverListener } from './intersection-observer-listener-DQ4WWSLe.js';
|
|
6
|
+
import { R as ResizeObserverListener } from './resize-observer-listener-z8XjzxC9.js';
|
|
5
7
|
|
|
6
8
|
const DBPopover = class {
|
|
7
9
|
constructor(hostRef) {
|
|
@@ -9,7 +11,8 @@ const DBPopover = class {
|
|
|
9
11
|
this.initialized = false;
|
|
10
12
|
this.isExpanded = false;
|
|
11
13
|
this._documentScrollListenerCallbackId = undefined;
|
|
12
|
-
this.
|
|
14
|
+
this._intersectionObserverCallbackId = undefined;
|
|
15
|
+
this._resizeObserverCallbackId = undefined;
|
|
13
16
|
this.observer = undefined;
|
|
14
17
|
}
|
|
15
18
|
handleEscape(event) {
|
|
@@ -27,8 +30,7 @@ const DBPopover = class {
|
|
|
27
30
|
if (article) {
|
|
28
31
|
// This is a workaround for angular
|
|
29
32
|
void delay(() => {
|
|
30
|
-
|
|
31
|
-
handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
33
|
+
handleFixedPopover(article, this._ref);
|
|
32
34
|
}, 1);
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -39,18 +41,35 @@ const DBPopover = class {
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
handleEnter() {
|
|
42
|
-
var _a;
|
|
43
44
|
this.isExpanded = true;
|
|
45
|
+
// Clean up any existing observers to prevent leaks from repeated enter
|
|
46
|
+
if (this._documentScrollListenerCallbackId) {
|
|
47
|
+
new DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
48
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
49
|
+
}
|
|
50
|
+
if (this._resizeObserverCallbackId) {
|
|
51
|
+
new ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
52
|
+
this._resizeObserverCallbackId = undefined;
|
|
53
|
+
}
|
|
54
|
+
if (this._intersectionObserverCallbackId) {
|
|
55
|
+
new IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
|
|
56
|
+
this._intersectionObserverCallbackId = undefined;
|
|
57
|
+
}
|
|
44
58
|
this._documentScrollListenerCallbackId =
|
|
45
59
|
new DocumentScrollListener().addCallback((event) => this.handleDocumentScroll(event));
|
|
46
60
|
this.handleAutoPlacement();
|
|
61
|
+
this._resizeObserverCallbackId = new ResizeObserverListener().observe(document.documentElement, () => this.handleAutoPlacement());
|
|
47
62
|
const child = this.getTrigger();
|
|
48
63
|
if (child) {
|
|
49
|
-
|
|
64
|
+
this._intersectionObserverCallbackId =
|
|
65
|
+
new IntersectionObserverListener().observe(child, (entry) => {
|
|
66
|
+
if (!entry.isIntersecting) {
|
|
67
|
+
this.handleEscape(false);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
50
70
|
}
|
|
51
71
|
}
|
|
52
72
|
handleLeave(event) {
|
|
53
|
-
var _a;
|
|
54
73
|
const element = event === null || event === void 0 ? void 0 : event.target;
|
|
55
74
|
const parent = element === null || element === void 0 ? void 0 : element.parentNode;
|
|
56
75
|
if (!parent ||
|
|
@@ -60,10 +79,15 @@ const DBPopover = class {
|
|
|
60
79
|
this.isExpanded = false;
|
|
61
80
|
if (this._documentScrollListenerCallbackId) {
|
|
62
81
|
new DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
82
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
63
83
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
84
|
+
if (this._resizeObserverCallbackId) {
|
|
85
|
+
new ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
86
|
+
this._resizeObserverCallbackId = undefined;
|
|
87
|
+
}
|
|
88
|
+
if (this._intersectionObserverCallbackId) {
|
|
89
|
+
new IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
|
|
90
|
+
this._intersectionObserverCallbackId = undefined;
|
|
67
91
|
}
|
|
68
92
|
}
|
|
69
93
|
}
|
|
@@ -162,14 +186,6 @@ const DBPopover = class {
|
|
|
162
186
|
["mouseleave", "focusout"].forEach((event) => {
|
|
163
187
|
this._ref.addEventListener(event, () => this.handleLeave());
|
|
164
188
|
});
|
|
165
|
-
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
166
|
-
this._observer = new IntersectionObserver((payload) => {
|
|
167
|
-
const entry = payload.find(({ target }) => target === this.getTrigger());
|
|
168
|
-
if (entry && !entry.isIntersecting) {
|
|
169
|
-
this.handleEscape(false);
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
189
|
}
|
|
174
190
|
}
|
|
175
191
|
watch0() {
|
|
@@ -207,13 +223,25 @@ const DBPopover = class {
|
|
|
207
223
|
}
|
|
208
224
|
disconnectedCallback() {
|
|
209
225
|
var _a;
|
|
226
|
+
if (this._documentScrollListenerCallbackId) {
|
|
227
|
+
new DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
228
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
229
|
+
}
|
|
230
|
+
if (this._resizeObserverCallbackId) {
|
|
231
|
+
new ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
232
|
+
this._resizeObserverCallbackId = undefined;
|
|
233
|
+
}
|
|
234
|
+
if (this._intersectionObserverCallbackId) {
|
|
235
|
+
new IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
|
|
236
|
+
this._intersectionObserverCallbackId = undefined;
|
|
237
|
+
}
|
|
210
238
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
211
239
|
}
|
|
212
240
|
render() {
|
|
213
241
|
var _a, _b, _c;
|
|
214
|
-
return (h("div", { key: '
|
|
242
|
+
return (h("div", { key: '05f2e24b5649f68be8480fabf05bdc79fd4a454e', class: cls("db-popover", this.className), ref: (el) => {
|
|
215
243
|
this._ref = el;
|
|
216
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
244
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '4fe2e58f6e2ccf3a18747f2810e6e62fdaa18576', name: "trigger" }), h("article", { key: '3fde13e830ddcd944854bf0123610fd5c04c8396', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap, "gap"), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true, "animation"), "data-open": getBooleanAsString(this.open, "open"), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: 'c147317adc5fdc5c2aa313396360f76fb39f59ec' }))));
|
|
217
245
|
}
|
|
218
246
|
get rootElement() { return getElement(this); }
|
|
219
247
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { u as uuid,
|
|
3
|
-
import { b as addResetEventListener } from './form-components-
|
|
2
|
+
import { u as uuid, f as getBoolean, m as getHideProp, c as cls, d as delay } from './index-DB8jc8lh.js';
|
|
3
|
+
import { b as addResetEventListener } from './form-components-zJeL8XMn.js';
|
|
4
4
|
|
|
5
5
|
const DBRadio = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -165,9 +165,9 @@ const DBRadio = class {
|
|
|
165
165
|
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h("label", { key: '
|
|
168
|
+
return (h("label", { key: 'fedde19abfa095e6215c68bdfc2602ae1b53c811', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '75e0f430e4f2a268d48f856c382d17a25506e7d0', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
169
169
|
this._ref = el;
|
|
170
|
-
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
170
|
+
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: '51a2938014418d325d73f60c5d6b30461c2832a8' })));
|
|
171
171
|
}
|
|
172
172
|
get rootElement() { return getElement(this); }
|
|
173
173
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
const DBSection = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -83,9 +83,9 @@ const DBSection = class {
|
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
var _a, _b;
|
|
86
|
-
return (h("section", { key: '
|
|
86
|
+
return (h("section", { key: '818b03641b56d6ee3324de6840216c36ad88cb5f', class: cls("db-section", 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, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '
|
|
88
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '60006ff0140b76c482ed93b65f0f56ae0eb54e07' })));
|
|
89
89
|
}
|
|
90
90
|
get rootElement() { return getElement(this); }
|
|
91
91
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, 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, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid,
|
|
4
|
-
import { c as addValueResetEventListener } 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, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-COv1iCFP.js';
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, f as getBoolean, g as getBooleanAsString, m as getHideProp, c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
import { c as addValueResetEventListener } from './form-components-zJeL8XMn.js';
|
|
5
5
|
|
|
6
6
|
const DBSelect = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -276,14 +276,14 @@ const DBSelect = class {
|
|
|
276
276
|
}
|
|
277
277
|
render() {
|
|
278
278
|
var _a, _b, _c, _d, _e, _f;
|
|
279
|
-
return (h("div", { key: '
|
|
279
|
+
return (h("div", { key: 'f8378bfa46ef070277bd139d22dca6e14144d043', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon") }, h("label", { key: '3214b7203a712bb24e9ad68d5a0c172d4936f4da', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '1dc0396696e7ae35f1379516e13746c7296c05d9', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
280
280
|
this._ref = el;
|
|
281
281
|
}, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
282
282
|
/* @ts-ignore */
|
|
283
283
|
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption(), "showEmptyOption") })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
284
284
|
var _a;
|
|
285
285
|
return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
286
|
-
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '
|
|
286
|
+
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '0f0bbbc2306021f8ec85dd4aadb679a17a469ac2', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '8d554728c58e2693a197b0136f3ebcf19dbcb061', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
287
287
|
}
|
|
288
288
|
get rootElement() { return getElement(this); }
|
|
289
289
|
static get watchers() { return {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { M as MAIN_CONTENT_ID } from './constants-COv1iCFP.js';
|
|
3
|
+
import { c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
|
|
5
|
+
const DBShellContent = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.variant = "auto";
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
setupObserver(element) {
|
|
12
|
+
if (!element)
|
|
13
|
+
return;
|
|
14
|
+
const parent = element.closest("db-shell-content");
|
|
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-shell-content");
|
|
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
|
+
componentDidLoad() {
|
|
73
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
74
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
75
|
+
if (connectedElement) {
|
|
76
|
+
connectedElement.remove();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.enableAttributePassing(this._ref, "db-shell-content");
|
|
80
|
+
this.setupObserver(this._ref);
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
return (h("div", { key: '731bf736a256dbb756c28c6ec1e2ff4013ca4ed7', class: cls("db-shell-content", this.className), ref: (el) => {
|
|
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, "data-variant": this.variant }, h("slot", { key: '10529094c104300eb4135fb6aadb4b368ddf9e66', name: "startSlot" }), h("main", { key: '7b28388d870b5351eaca6ce6d3988ed70052e69c', class: cls("db-main", this.mainClass), id: (_c = this.mainId) !== null && _c !== void 0 ? _c : MAIN_CONTENT_ID, "aria-label": this.mainLabel }, h("slot", { key: '182adf6e0563762abf939a3d9625ab56ec81a6d9' })), h("slot", { key: 'e6701313eb0aabfab1a40c4bcc44e5dd406748c2', name: "endSlot" })));
|
|
91
|
+
}
|
|
92
|
+
get rootElement() { return getElement(this); }
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export { DBShellContent as db_shell_content };
|
|
@@ -0,0 +1,108 @@
|
|
|
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, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
|
|
5
|
+
const DBShellSubNavigation = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this._id = `db-shell-sub-navigation-${uuid()}`;
|
|
9
|
+
this._open = true;
|
|
10
|
+
this.observer = undefined;
|
|
11
|
+
}
|
|
12
|
+
handleToggle(event) {
|
|
13
|
+
event.stopPropagation();
|
|
14
|
+
this._open = !this._open;
|
|
15
|
+
}
|
|
16
|
+
getToggleButtonText() {
|
|
17
|
+
var _a;
|
|
18
|
+
if (this.expandButtonTooltip) {
|
|
19
|
+
return this.expandButtonTooltip;
|
|
20
|
+
}
|
|
21
|
+
const fnOutput = () => undefined;
|
|
22
|
+
return (_a = fnOutput()) !== null && _a !== void 0 ? _a : (this._open ? DEFAULT_COLLAPSE : DEFAULT_EXPAND);
|
|
23
|
+
}
|
|
24
|
+
setupObserver(element) {
|
|
25
|
+
if (!element)
|
|
26
|
+
return;
|
|
27
|
+
const parent = element.closest("db-shell-sub-navigation");
|
|
28
|
+
if (!parent || this.observer)
|
|
29
|
+
return;
|
|
30
|
+
this.observer = new MutationObserver((mutations) => {
|
|
31
|
+
if (mutations.some((mutation) => {
|
|
32
|
+
var _a;
|
|
33
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
34
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
35
|
+
})) {
|
|
36
|
+
this.enableAttributePassing(element, "db-shell-sub-navigation");
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
this.observer.observe(parent, {
|
|
40
|
+
attributes: true,
|
|
41
|
+
attributeOldValue: true,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
46
|
+
* @param element the ref for the component
|
|
47
|
+
* @param customElementSelector the custom element like `my-component`
|
|
48
|
+
*/
|
|
49
|
+
enableAttributePassing(element, customElementSelector) {
|
|
50
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
51
|
+
if (element && parent) {
|
|
52
|
+
const attributes = parent.attributes;
|
|
53
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
54
|
+
const attr = attributes.item(i);
|
|
55
|
+
if (attr && attr.name !== 'data-density' &&
|
|
56
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
57
|
+
if (attr.value) {
|
|
58
|
+
element.setAttribute(attr.name, attr.value);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
element.removeAttribute(attr.name);
|
|
62
|
+
}
|
|
63
|
+
parent.removeAttribute(attr.name);
|
|
64
|
+
}
|
|
65
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
66
|
+
element.setAttribute(attr.name, attr.value);
|
|
67
|
+
parent.removeAttribute(attr.name);
|
|
68
|
+
}
|
|
69
|
+
else if (attr && attr.name === "class") {
|
|
70
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
71
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
72
|
+
const currentClass = element.getAttribute("class");
|
|
73
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
74
|
+
if (isWebComponent) {
|
|
75
|
+
// Stencil is using this class for lazy loading component
|
|
76
|
+
parent.setAttribute("class", "hydrated");
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
parent.removeAttribute(attr.name);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
componentDidLoad() {
|
|
86
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
87
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
88
|
+
if (connectedElement) {
|
|
89
|
+
connectedElement.remove();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
this.enableAttributePassing(this._ref, "db-shell-sub-navigation");
|
|
93
|
+
this.setupObserver(this._ref);
|
|
94
|
+
}
|
|
95
|
+
disconnectedCallback() {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
var _a, _b, _c, _d, _e, _f;
|
|
101
|
+
return (h("aside", { key: 'b7d0f24dad986142ff9dd1934ba26cf69aa8afa7', class: cls("db-shell-sub-navigation", this.className), ref: (el) => {
|
|
102
|
+
this._ref = el;
|
|
103
|
+
}, id: (_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 : this._id, "data-open": getBooleanAsString(this._open) }, h("slot", { key: 'a81ef3f89b5fd04b9a37b82104a104daa8b0a3fd' }), h("div", { key: '2b7f4c8a505e7eb2051e1cc00056fe4a128a7b7f', class: "db-shell-sub-navigation-button" }, h("button", { key: '9f58b47acff481c63e63480e8eac60c2b267c67d', class: "db-button", "data-variant": "ghost", "data-no-text": "true", "data-icon": "double_chevron_left", onClick: (event) => this.handleToggle(event), "aria-controls": (_f = (_d = this.id) !== null && _d !== void 0 ? _d : (_e = this.propOverrides) === null || _e === void 0 ? void 0 : _e.id) !== null && _f !== void 0 ? _f : this._id, "aria-expanded": getBooleanAsString(this._open) }, h("db-tooltip", { key: 'febfc5670fbce950bc756292543ab3b1de3651de', variant: "label", placement: "right" }, this.getToggleButtonText())))));
|
|
104
|
+
}
|
|
105
|
+
get rootElement() { return getElement(this); }
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export { DBShellSubNavigation as db_shell_sub_navigation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { c as cls,
|
|
2
|
+
import { g as getBooleanAsString, c as cls, f as getBoolean } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const DBShell = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
this.fontsLoaded = false;
|
|
@@ -10,7 +10,7 @@ const DBPage = class {
|
|
|
10
10
|
setupObserver(element) {
|
|
11
11
|
if (!element)
|
|
12
12
|
return;
|
|
13
|
-
const parent = element.closest("db-
|
|
13
|
+
const parent = element.closest("db-shell");
|
|
14
14
|
if (!parent || this.observer)
|
|
15
15
|
return;
|
|
16
16
|
this.observer = new MutationObserver((mutations) => {
|
|
@@ -19,7 +19,7 @@ const DBPage = class {
|
|
|
19
19
|
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
20
20
|
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
21
21
|
})) {
|
|
22
|
-
this.enableAttributePassing(element, "db-
|
|
22
|
+
this.enableAttributePassing(element, "db-shell");
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
this.observer.observe(parent, {
|
|
@@ -75,11 +75,15 @@ const DBPage = class {
|
|
|
75
75
|
connectedElement.remove();
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
this.enableAttributePassing(this._ref, "db-
|
|
78
|
+
this.enableAttributePassing(this._ref, "db-shell");
|
|
79
79
|
const onMountHook_0 = () => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const fadeIn = getBoolean(this.fadeIn, "fadeIn");
|
|
82
|
+
this.fontsLoaded = !fadeIn;
|
|
83
|
+
if (document && fadeIn) {
|
|
84
|
+
(_b = (_a = document.fonts) === null || _a === void 0 ? void 0 : _a.ready) === null || _b === void 0 ? void 0 : _b.then(() => {
|
|
85
|
+
this.fontsLoaded = true;
|
|
86
|
+
}).catch(() => {
|
|
83
87
|
this.fontsLoaded = true;
|
|
84
88
|
});
|
|
85
89
|
}
|
|
@@ -95,20 +99,15 @@ const DBPage = class {
|
|
|
95
99
|
}
|
|
96
100
|
disconnectedCallback() {
|
|
97
101
|
var _a;
|
|
98
|
-
if (typeof window !== "undefined" &&
|
|
99
|
-
document.documentElement.classList.contains("db-page-document")) {
|
|
100
|
-
// remove document styles set by this
|
|
101
|
-
document.documentElement.classList.remove("db-page-document");
|
|
102
|
-
}
|
|
103
102
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
104
103
|
}
|
|
105
104
|
render() {
|
|
106
|
-
var _a, _b;
|
|
107
|
-
return (h("div", { key: '
|
|
105
|
+
var _a, _b, _c, _d, _e, _f;
|
|
106
|
+
return (h("div", { key: '3dbac9ffe368787517b775903e88ac086614066f', class: cls("db-shell", this.className), ref: (el) => {
|
|
108
107
|
this._ref = el;
|
|
109
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-
|
|
108
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-control-panel-desktop-position": (_c = this.controlPanelDesktopPosition) !== null && _c !== void 0 ? _c : "top", "data-control-panel-mobile-position": (_d = this.controlPanelMobilePosition) !== null && _d !== void 0 ? _d : "top", "data-sub-navigation-desktop-position": (_e = this.subNavigationDesktopPosition) !== null && _e !== void 0 ? _e : "top", "data-sub-navigation-mobile-position": (_f = this.subNavigationMobilePosition) !== null && _f !== void 0 ? _f : "top", "data-show-sub-navigation": getBooleanAsString(this.showSubNavigation, "showSubNavigation"), "data-fade-in": getBooleanAsString(this.fadeIn, "fadeIn"), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '97b4ae8f0a3e718d02c1d79f41c4d0989fd543e4' })));
|
|
110
109
|
}
|
|
111
110
|
get rootElement() { return getElement(this); }
|
|
112
111
|
};
|
|
113
112
|
|
|
114
|
-
export {
|
|
113
|
+
export { DBShell as db_shell };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
3
3
|
|
|
4
4
|
const DBStack = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -83,9 +83,9 @@ const DBStack = class {
|
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
var _a, _b;
|
|
86
|
-
return (h("div", { key: '
|
|
86
|
+
return (h("div", { key: 'd5710ec1389c92d561eeafa0854415eb458100df', class: cls("db-stack", 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, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap, "wrap") }, h("slot", { key: '
|
|
88
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap, "wrap") }, h("slot", { key: '8f82797854c793e312d21c327fc90fd81d7ebed5' })));
|
|
89
89
|
}
|
|
90
90
|
get rootElement() { return getElement(this); }
|
|
91
91
|
};
|
|
@@ -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, g as getBooleanAsString, c as cls } from './index-DB8jc8lh.js';
|
|
4
|
+
import { a as addCheckedResetEventListener } from './form-components-zJeL8XMn.js';
|
|
5
5
|
|
|
6
6
|
const DBSwitch = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -226,9 +226,9 @@ const DBSwitch = class {
|
|
|
226
226
|
}
|
|
227
227
|
render() {
|
|
228
228
|
var _a, _b;
|
|
229
|
-
return (h("div", { key: '
|
|
229
|
+
return (h("div", { key: '8a2f8bfcc0fa422aa9ac10494134f8e6836b0c71', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid, "visualAid"), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: 'cba1ba915a9641372c71d8b6a0988e5b4d76590a', htmlFor: this._id }, h("input", { key: '246a9a0b3e0fc8696cfe9c3113d875ff68abf7c6', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
230
230
|
this._ref = el;
|
|
231
|
-
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
231
|
+
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: '9e127dffefe790a2b210d4ce1819ca9fca2ab5b1' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '6963789651730d6ccf8fc9788bf5e0f99db51bea', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'a96a877b37a40ece9c320e4668cb7becd60489ef', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
232
232
|
}
|
|
233
233
|
get rootElement() { return getElement(this); }
|
|
234
234
|
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 DBTabItem = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -152,10 +152,10 @@ const DBTabItem = class {
|
|
|
152
152
|
}
|
|
153
153
|
render() {
|
|
154
154
|
var _a, _b, _c, _d, _e;
|
|
155
|
-
return (h("li", { key: '
|
|
156
|
-
getBooleanAsString(this.showIcon, "showIcon"), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-no-text": getBooleanAsString(this.noText, "noText") }, h("input", { key: '
|
|
155
|
+
return (h("li", { key: '16f878de74d4ae81df0f28dd8ed750cd4f6b652d', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: '318926defb17d604ae697949101e47a3c4b92c1d', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
156
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-no-text": getBooleanAsString(this.noText, "noText") }, h("input", { key: 'cac5b09e0c5a8120ad9c7b4a35571db2d8b04594', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
|
|
157
157
|
this._ref = el;
|
|
158
|
-
}, name: this._name, id: (_d = this.id) !== null && _d !== void 0 ? _d : (_e = this.propOverrides) === null || _e === void 0 ? void 0 : _e.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
158
|
+
}, name: this._name, id: (_d = this.id) !== null && _d !== void 0 ? _d : (_e = this.propOverrides) === null || _e === void 0 ? void 0 : _e.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '131748f42adbaca7d3ca8ad5b5bdcaca4b03cefe' }))));
|
|
159
159
|
}
|
|
160
160
|
get rootElement() { return getElement(this); }
|
|
161
161
|
static get watchers() { return {
|
|
@@ -256,9 +256,9 @@ const DBTabList = class {
|
|
|
256
256
|
}
|
|
257
257
|
render() {
|
|
258
258
|
var _a, _b;
|
|
259
|
-
return (h("div", { key: '
|
|
259
|
+
return (h("div", { key: '088b4d100e85699f16b21dce5e3e201293efb188', class: cls("db-tab-list", this.className), ref: (el) => {
|
|
260
260
|
this._ref = el;
|
|
261
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '
|
|
261
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '1ba7bbfab61b97ece95ec84aeaf64a3e7a8f8b62', role: "tablist" }, h("slot", { key: '43e8ad342c97ba0f016bb799051dc7d6d0ccc682' }))));
|
|
262
262
|
}
|
|
263
263
|
get rootElement() { return getElement(this); }
|
|
264
264
|
};
|
|
@@ -348,9 +348,9 @@ const DBTabPanel = class {
|
|
|
348
348
|
}
|
|
349
349
|
render() {
|
|
350
350
|
var _a, _b;
|
|
351
|
-
return (h("section", { key: '
|
|
351
|
+
return (h("section", { key: '287373ceb888b5959d43221add298c3d99065471', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
352
352
|
this._ref = el;
|
|
353
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '
|
|
353
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: 'a5faccaa006fbbd4d5fb10d6bb1d161a00738fdd' })));
|
|
354
354
|
}
|
|
355
355
|
get rootElement() { return getElement(this); }
|
|
356
356
|
};
|