@db-ux/wc-core-components 4.12.1 → 4.13.0-shell-f221975
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/agent/ControlPanelBrand.md +9 -0
- package/agent/ControlPanelDesktop.md +46 -0
- package/agent/ControlPanelMeta.md +13 -0
- package/agent/ControlPanelMobile.md +37 -0
- package/agent/ControlPanelNavigation.md +19 -0
- package/agent/ControlPanelNavigationItem.md +33 -0
- package/agent/ControlPanelPrimaryActions.md +13 -0
- package/agent/ControlPanelSecondaryActions.md +19 -0
- package/agent/Drawer.md +0 -8
- package/agent/Shell.md +24 -0
- package/agent/ShellSubNavigation.md +6 -0
- package/agent/_instructions.md +11 -6
- package/bundle/db-accordion-item.js +1 -1
- package/bundle/db-accordion.js +1 -1
- package/bundle/db-badge.js +1 -1
- package/bundle/db-button.js +1 -1
- package/bundle/db-card.js +1 -1
- package/bundle/db-checkbox.js +1 -1
- package/bundle/db-control-panel-brand.d.ts +11 -0
- package/bundle/db-control-panel-brand.js +1 -0
- package/bundle/db-control-panel-desktop.d.ts +11 -0
- package/bundle/db-control-panel-desktop.js +1 -0
- package/bundle/db-control-panel-flat-icon.d.ts +11 -0
- package/bundle/db-control-panel-flat-icon.js +1 -0
- package/bundle/{db-navigation-item.d.ts → db-control-panel-meta.d.ts} +4 -4
- package/bundle/db-control-panel-meta.js +1 -0
- package/bundle/db-control-panel-mobile.d.ts +11 -0
- package/bundle/db-control-panel-mobile.js +1 -0
- package/bundle/db-control-panel-navigation-item-group.d.ts +11 -0
- package/bundle/db-control-panel-navigation-item-group.js +1 -0
- package/bundle/db-control-panel-navigation-item.d.ts +11 -0
- package/bundle/db-control-panel-navigation-item.js +1 -0
- package/bundle/db-control-panel-navigation.d.ts +11 -0
- package/bundle/db-control-panel-navigation.js +1 -0
- package/bundle/db-control-panel-primary-actions.d.ts +11 -0
- package/bundle/db-control-panel-primary-actions.js +1 -0
- package/bundle/db-control-panel-secondary-actions.d.ts +11 -0
- package/bundle/db-control-panel-secondary-actions.js +1 -0
- package/bundle/db-control-panel-skip-navigation.d.ts +11 -0
- package/bundle/db-control-panel-skip-navigation.js +1 -0
- package/bundle/db-custom-button.js +1 -1
- package/bundle/db-custom-select-dropdown.js +1 -1
- package/bundle/db-custom-select-form-field.js +1 -1
- package/bundle/db-custom-select-list-item.js +1 -1
- package/bundle/db-custom-select-list.js +1 -1
- package/bundle/db-custom-select.js +1 -1
- package/bundle/db-divider.js +1 -1
- package/bundle/{db-navigation.d.ts → db-drawer-footer.d.ts} +4 -4
- package/bundle/db-drawer-footer.js +1 -0
- package/bundle/{db-page.d.ts → db-drawer-header.d.ts} +4 -4
- package/bundle/db-drawer-header.js +1 -0
- package/bundle/db-drawer.js +1 -1
- package/bundle/db-icon.js +1 -1
- package/bundle/db-infotext.js +1 -1
- package/bundle/db-input.js +1 -1
- package/bundle/db-link.js +1 -1
- package/bundle/db-notification.js +1 -1
- package/bundle/db-popover.js +1 -1
- package/bundle/db-radio.js +1 -1
- package/bundle/db-section.js +1 -1
- package/bundle/db-select.js +1 -1
- package/bundle/{db-header.d.ts → db-shell-content.d.ts} +4 -4
- package/bundle/db-shell-content.js +1 -0
- package/bundle/db-shell-sub-navigation.d.ts +11 -0
- package/bundle/db-shell-sub-navigation.js +1 -0
- package/bundle/{db-brand.d.ts → db-shell.d.ts} +4 -4
- package/bundle/db-shell.js +1 -0
- package/bundle/db-stack.js +1 -1
- package/bundle/db-switch.js +1 -1
- package/bundle/db-tab-item.js +1 -1
- package/bundle/db-tab-list.js +1 -1
- package/bundle/db-tab-panel.js +1 -1
- package/bundle/db-table-body.js +1 -1
- package/bundle/db-table-caption.js +1 -1
- package/bundle/db-table-data-cell.js +1 -1
- package/bundle/db-table-footer.js +1 -1
- package/bundle/db-table-head.js +1 -1
- package/bundle/db-table-header-cell.js +1 -1
- package/bundle/db-table-row.js +1 -1
- package/bundle/db-table.js +1 -1
- package/bundle/db-tabs.js +1 -1
- package/bundle/db-tag.js +1 -1
- package/bundle/db-textarea.js +1 -1
- package/bundle/db-tooltip.js +1 -1
- package/bundle/index.js +1 -1
- package/bundle/p-6eFmbk2q.js +1 -0
- package/bundle/{p-k8bCF_aj.js → p-9FBjLlz8.js} +1 -1
- package/bundle/p-B2-mqMAV.js +1 -0
- package/bundle/{p-G57oLrr4.js → p-B3HO0pCt.js} +1 -1
- package/bundle/p-B5p2TBcA.js +1 -0
- package/bundle/{p-BQov9sQb.js → p-BSn68Z6b.js} +1 -1
- package/bundle/p-BT3wZY6f.js +1 -0
- package/bundle/p-BWWm2aVB.js +1 -0
- package/bundle/{p-Cc5hdI0x.js → p-B_cQ652T.js} +1 -1
- package/bundle/{p-DcgghWWs.js → p-BbEdAR4o.js} +1 -1
- package/bundle/{p-C0JLpZ9Q.js → p-BtQh3jbl.js} +1 -1
- package/bundle/p-C3NPZvho.js +1 -0
- package/bundle/p-CGLknNHl.js +1 -0
- package/bundle/p-COv1iCFP.js +1 -0
- package/bundle/p-C_xaJ8Kg.js +1 -0
- package/bundle/p-CjeAJfEo.js +1 -0
- package/bundle/{p-to845Mg2.js → p-Cr4l4OlK.js} +1 -1
- package/bundle/p-CtoC6vGL.js +1 -0
- package/bundle/p-D2lYeElK.js +1 -0
- package/bundle/{p-CuC4YsIB.js → p-D9qEmJkQ.js} +1 -1
- package/bundle/p-DAr8BCe0.js +1 -0
- package/bundle/{p-CYYSsu3p.js → p-DEicAzan.js} +1 -1
- package/bundle/{p-C9llbu6g.js → p-DKhSQnne.js} +1 -1
- package/bundle/{p-BpO8Ok-r.js → p-DTmum76Y.js} +1 -1
- package/bundle/p-DtqySxCV.js +1 -0
- package/bundle/p-Nyi3Ccqz.js +1 -0
- package/bundle/p-V6Dppnfj.js +1 -0
- package/bundle/p-WOdZHiUh.js +1 -0
- package/bundle/p-_kvIQ0Iy.js +1 -0
- package/bundle/{p-fu0VCCbW.js → p-mf371GRo.js} +1 -1
- package/dist/cjs/{constants-bMY2_d8A.js → constants-BM1EltPT.js} +12 -3
- package/dist/cjs/db-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +4 -4
- package/dist/cjs/db-button.cjs.entry.js +6 -3
- package/dist/cjs/db-card.cjs.entry.js +3 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/{db-brand.cjs.entry.js → db-control-panel-brand.cjs.entry.js} +9 -10
- package/dist/cjs/db-control-panel-desktop.cjs.entry.js +148 -0
- package/dist/cjs/db-control-panel-flat-icon.cjs.entry.js +134 -0
- package/dist/cjs/{db-navigation.cjs.entry.js → db-control-panel-meta.cjs.entry.js} +8 -8
- package/dist/cjs/db-control-panel-mobile.cjs.entry.js +124 -0
- package/dist/cjs/db-control-panel-navigation-item-group.cjs.entry.js +420 -0
- package/dist/cjs/db-control-panel-navigation-item.cjs.entry.js +235 -0
- package/dist/cjs/db-control-panel-navigation.cjs.entry.js +579 -0
- package/dist/cjs/db-control-panel-primary-actions.cjs.entry.js +95 -0
- package/dist/cjs/db-control-panel-secondary-actions.cjs.entry.js +95 -0
- package/dist/cjs/db-control-panel-skip-navigation.cjs.entry.js +96 -0
- package/dist/cjs/db-custom-button.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +13 -13
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +41 -25
- package/dist/cjs/db-divider.cjs.entry.js +2 -2
- package/dist/cjs/db-drawer_3.cjs.entry.js +457 -0
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js +3 -3
- package/dist/cjs/db-link_4.cjs.entry.js +12 -10
- package/dist/cjs/db-notification.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +50 -22
- package/dist/cjs/db-radio.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js +3 -3
- package/dist/cjs/db-select.cjs.entry.js +5 -5
- package/dist/cjs/db-shell-content.cjs.entry.js +97 -0
- package/dist/cjs/db-shell-sub-navigation.cjs.entry.js +110 -0
- package/dist/cjs/{db-page.cjs.entry.js → db-shell.cjs.entry.js} +16 -17
- package/dist/cjs/db-stack.cjs.entry.js +3 -3
- package/dist/cjs/db-switch.cjs.entry.js +5 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-table-body_3.cjs.entry.js +10 -10
- package/dist/cjs/db-table-caption.cjs.entry.js +4 -3
- package/dist/cjs/db-table.cjs.entry.js +4 -4
- package/dist/cjs/db-tabs.cjs.entry.js +23 -18
- package/dist/cjs/db-textarea.cjs.entry.js +5 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +39 -26
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/{document-click-listener-DdNXbErU.js → document-click-listener-D_0Q6lvb.js} +5 -9
- package/dist/cjs/{document-scroll-listener-CvAZ6uPr.js → document-scroll-listener-CgyYRmvZ.js} +29 -9
- package/dist/cjs/{floating-components-SpHkZuLA.js → floating-components-B3bpFI90.js} +141 -108
- package/dist/cjs/{form-components-CmQlkARp.js → form-components-XNiwIGq8.js} +1 -1
- package/dist/cjs/{index-spuu3sXz.js → index-Df-6pBQf.js} +41 -2
- package/dist/cjs/index.cjs.js +34 -17
- package/dist/cjs/intersection-observer-listener-DlrHabJb.js +41 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/navigation-CHCtasZv.js +178 -0
- package/dist/cjs/resize-observer-listener-CmPDfoZs.js +103 -0
- package/dist/collection/collection-manifest.json +18 -7
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/model.js +0 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/button/button.js +57 -2
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/control-panel-brand/control-panel-brand.js +179 -0
- package/dist/collection/components/control-panel-brand/index.js +2 -0
- package/dist/collection/components/control-panel-desktop/control-panel-desktop.js +343 -0
- package/dist/collection/components/control-panel-desktop/index.js +2 -0
- package/dist/collection/components/control-panel-flat-icon/control-panel-flat-icon.js +246 -0
- package/dist/collection/components/control-panel-flat-icon/index.js +2 -0
- package/dist/collection/components/control-panel-meta/control-panel-meta.js +179 -0
- package/dist/collection/components/control-panel-meta/index.js +2 -0
- package/dist/collection/components/control-panel-mobile/control-panel-mobile.js +307 -0
- package/dist/collection/components/control-panel-mobile/index.js +2 -0
- package/dist/collection/components/control-panel-mobile/model.js +1 -0
- package/dist/collection/components/control-panel-navigation/control-panel-navigation.js +829 -0
- package/dist/collection/components/control-panel-navigation/index.js +2 -0
- package/dist/collection/components/control-panel-navigation/model.js +1 -0
- package/dist/collection/components/control-panel-navigation-item/control-panel-navigation-item.js +484 -0
- package/dist/collection/components/control-panel-navigation-item/index.js +2 -0
- package/dist/collection/components/control-panel-navigation-item/model.js +1 -0
- package/dist/collection/components/control-panel-navigation-item-group/control-panel-navigation-item-group.js +772 -0
- package/dist/collection/components/control-panel-navigation-item-group/index.js +2 -0
- package/dist/collection/components/control-panel-navigation-item-group/model.js +1 -0
- package/dist/collection/components/control-panel-primary-actions/control-panel-primary-actions.js +179 -0
- package/dist/collection/components/control-panel-primary-actions/index.js +2 -0
- package/dist/collection/components/control-panel-primary-actions/model.js +1 -0
- package/dist/collection/components/control-panel-secondary-actions/control-panel-secondary-actions.js +179 -0
- package/dist/collection/components/control-panel-secondary-actions/index.js +2 -0
- package/dist/collection/components/control-panel-secondary-actions/model.js +1 -0
- package/dist/collection/components/control-panel-skip-navigation/control-panel-skip-navigation.js +232 -0
- package/dist/collection/components/control-panel-skip-navigation/index.js +2 -0
- package/dist/collection/components/control-panel-skip-navigation/model.js +1 -0
- package/dist/collection/components/custom-button/custom-button.js +2 -2
- package/dist/collection/components/custom-select/custom-select.js +37 -20
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +51 -77
- package/dist/collection/components/drawer/model.js +1 -0
- package/dist/collection/components/{navigation/navigation.js → drawer-footer/drawer-footer.js} +19 -19
- package/dist/collection/components/drawer-footer/index.js +2 -0
- package/dist/collection/components/drawer-footer/model.js +1 -0
- package/dist/collection/components/{brand/brand.js → drawer-header/drawer-header.js} +83 -79
- package/dist/collection/components/drawer-header/index.js +2 -0
- package/dist/collection/components/drawer-header/model.js +1 -0
- package/dist/collection/components/icon/icon.js +2 -2
- package/dist/collection/components/infotext/infotext.js +2 -2
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/popover/popover.js +75 -46
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/shell/index.js +2 -0
- package/dist/collection/components/shell/model.js +1 -0
- package/dist/collection/components/{header/header.js → shell/shell.js} +92 -143
- package/dist/collection/components/shell-content/index.js +2 -0
- package/dist/collection/components/shell-content/model.js +1 -0
- package/dist/collection/components/{page/page.js → shell-content/shell-content.js} +67 -86
- package/dist/collection/components/shell-sub-navigation/index.js +2 -0
- package/dist/collection/components/shell-sub-navigation/model.js +1 -0
- package/dist/collection/components/shell-sub-navigation/shell-sub-navigation.js +248 -0
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +3 -3
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/table/table.js +27 -3
- package/dist/collection/components/table-body/table-body.js +27 -3
- package/dist/collection/components/table-caption/table-caption.js +27 -2
- package/dist/collection/components/table-data-cell/table-data-cell.js +27 -2
- package/dist/collection/components/table-footer/table-footer.js +27 -3
- package/dist/collection/components/table-head/table-head.js +27 -3
- package/dist/collection/components/table-header-cell/table-header-cell.js +27 -2
- package/dist/collection/components/table-row/table-row.js +27 -3
- package/dist/collection/components/tabs/tabs.js +75 -18
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +63 -49
- package/dist/collection/index.js +32 -10
- package/dist/collection/shared/constants.js +7 -2
- package/dist/collection/shared/model.js +4 -0
- package/dist/collection/utils/abstract-document-listener.js +23 -0
- package/dist/collection/utils/abstract-observer-listener.js +61 -0
- package/dist/collection/utils/document-click-listener.js +5 -9
- package/dist/collection/utils/document-scroll-listener.js +5 -9
- package/dist/collection/utils/floating-components.js +141 -108
- package/dist/collection/utils/index.js +40 -2
- package/dist/collection/utils/intersection-observer-listener.js +36 -0
- package/dist/collection/utils/navigation.js +113 -74
- package/dist/collection/utils/resize-observer-listener.js +36 -0
- package/dist/custom-elements.json +11955 -8557
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-d9d006e7.entry.js → p-158c64e0.entry.js} +1 -1
- package/dist/db-ux/p-1fa944fd.entry.js +1 -0
- package/dist/db-ux/{p-a176424b.entry.js → p-2012c72a.entry.js} +1 -1
- package/dist/db-ux/p-234fee81.entry.js +1 -0
- package/dist/db-ux/{p-6b8375e8.entry.js → p-3566a5b2.entry.js} +1 -1
- package/dist/db-ux/p-3b61c223.entry.js +1 -0
- package/dist/db-ux/p-3d5fc4b6.entry.js +1 -0
- package/dist/db-ux/p-3e113cfe.entry.js +1 -0
- package/dist/db-ux/p-42644385.entry.js +1 -0
- package/dist/db-ux/p-42fd6a5c.entry.js +1 -0
- package/dist/db-ux/p-441d444e.entry.js +1 -0
- package/dist/db-ux/{p-a8556349.entry.js → p-4ecd501a.entry.js} +1 -1
- package/dist/db-ux/{p-77a47225.entry.js → p-53f827e1.entry.js} +1 -1
- package/dist/db-ux/{p-eedf08e0.entry.js → p-5696a8d3.entry.js} +1 -1
- package/dist/db-ux/p-56b2a25d.entry.js +1 -0
- package/dist/db-ux/{p-68f00121.entry.js → p-5a1a7588.entry.js} +1 -1
- package/dist/db-ux/p-5c5dce95.entry.js +1 -0
- package/dist/db-ux/p-5ce9ac6d.entry.js +1 -0
- package/dist/db-ux/{p-57527cef.entry.js → p-636e6a6d.entry.js} +1 -1
- package/dist/db-ux/p-6aac51bf.entry.js +1 -0
- package/dist/db-ux/p-6fc31876.entry.js +1 -0
- package/dist/db-ux/p-7d3541c6.entry.js +1 -0
- package/dist/db-ux/p-8f288b5e.entry.js +1 -0
- package/dist/db-ux/{p-37bf8d87.entry.js → p-9174a1f8.entry.js} +1 -1
- package/dist/db-ux/p-92d1d118.entry.js +1 -0
- package/dist/db-ux/p-94806e39.entry.js +1 -0
- package/dist/db-ux/p-95afbd4b.entry.js +1 -0
- package/dist/db-ux/p-BNNa1bIH.js +1 -0
- package/dist/db-ux/p-BT3wZY6f.js +1 -0
- package/dist/db-ux/p-Bs6e6rEa.js +1 -0
- package/dist/db-ux/p-Bu2uTpuB.js +1 -0
- package/dist/db-ux/p-CHtd83tf.js +1 -0
- package/dist/db-ux/p-COv1iCFP.js +1 -0
- package/dist/db-ux/p-D-LMtTru.js +1 -0
- package/dist/db-ux/p-DB8jc8lh.js +1 -0
- package/dist/db-ux/p-a2fd6f02.entry.js +1 -0
- package/dist/db-ux/p-a526be72.entry.js +1 -0
- package/dist/db-ux/{p-db1b9f5d.entry.js → p-aa0d6af7.entry.js} +1 -1
- package/dist/db-ux/p-ab2ca4f9.entry.js +1 -0
- package/dist/db-ux/p-b124f5d7.entry.js +1 -0
- package/dist/db-ux/p-b4069c07.entry.js +1 -0
- package/dist/db-ux/p-b90adbf2.entry.js +1 -0
- package/dist/db-ux/p-bbqCwwgU.js +1 -0
- package/dist/db-ux/p-c36731c4.entry.js +1 -0
- package/dist/db-ux/p-c6e965b9.entry.js +1 -0
- package/dist/db-ux/p-d0340bf6.entry.js +1 -0
- package/dist/db-ux/p-d354d861.entry.js +1 -0
- package/dist/db-ux/{p-6d41baf1.entry.js → p-d7ffa767.entry.js} +1 -1
- package/dist/db-ux/{p-70b6ebcd.entry.js → p-da34c367.entry.js} +1 -1
- package/dist/db-ux/{p-81edb316.entry.js → p-eb18be29.entry.js} +1 -1
- package/dist/db-ux/p-eee0f32c.entry.js +1 -0
- package/dist/db-ux/p-f1f23724.entry.js +1 -0
- package/dist/esm/{constants-BdL-nI5y.js → constants-COv1iCFP.js} +8 -3
- package/dist/esm/db-accordion-item.entry.js +3 -3
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +4 -4
- package/dist/esm/db-button.entry.js +6 -3
- package/dist/esm/db-card.entry.js +3 -3
- package/dist/esm/db-checkbox.entry.js +5 -5
- package/dist/esm/db-control-panel-brand.entry.js +93 -0
- package/dist/esm/db-control-panel-desktop.entry.js +146 -0
- package/dist/esm/db-control-panel-flat-icon.entry.js +132 -0
- package/dist/esm/{db-navigation.entry.js → db-control-panel-meta.entry.js} +8 -8
- package/dist/esm/db-control-panel-mobile.entry.js +122 -0
- package/dist/esm/db-control-panel-navigation-item-group.entry.js +418 -0
- package/dist/esm/db-control-panel-navigation-item.entry.js +233 -0
- package/dist/esm/db-control-panel-navigation.entry.js +577 -0
- package/dist/esm/db-control-panel-primary-actions.entry.js +93 -0
- package/dist/esm/db-control-panel-secondary-actions.entry.js +93 -0
- package/dist/esm/{db-brand.entry.js → db-control-panel-skip-navigation.entry.js} +9 -9
- package/dist/esm/db-custom-button.entry.js +3 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js +13 -13
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +41 -25
- package/dist/esm/db-divider.entry.js +2 -2
- package/dist/esm/db-drawer_3.entry.js +453 -0
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js +3 -3
- package/dist/esm/db-link_4.entry.js +12 -10
- package/dist/esm/db-notification.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +50 -22
- package/dist/esm/db-radio.entry.js +4 -4
- package/dist/esm/db-section.entry.js +3 -3
- package/dist/esm/db-select.entry.js +5 -5
- package/dist/esm/db-shell-content.entry.js +95 -0
- package/dist/esm/db-shell-sub-navigation.entry.js +108 -0
- package/dist/esm/{db-page.entry.js → db-shell.entry.js} +16 -17
- package/dist/esm/db-stack.entry.js +3 -3
- package/dist/esm/db-switch.entry.js +5 -5
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-table-body_3.entry.js +10 -10
- package/dist/esm/db-table-caption.entry.js +4 -3
- package/dist/esm/db-table.entry.js +4 -4
- package/dist/esm/db-tabs.entry.js +23 -18
- package/dist/esm/db-textarea.entry.js +5 -5
- package/dist/esm/db-tooltip.entry.js +39 -26
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{document-click-listener-9wJfRcvz.js → document-click-listener-BEYsNvC5.js} +5 -9
- package/dist/esm/{document-scroll-listener-4F0ZAg9p.js → document-scroll-listener-B8lkAL-m.js} +29 -10
- package/dist/esm/{floating-components-C0q9XJSc.js → floating-components-BT3wZY6f.js} +142 -109
- package/dist/esm/{form-components-ZV7IN0oG.js → form-components-zJeL8XMn.js} +1 -1
- package/dist/esm/{index-fumiz06Y.js → index-DB8jc8lh.js} +41 -3
- package/dist/esm/index.js +17 -10
- package/dist/esm/intersection-observer-listener-DQ4WWSLe.js +39 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/navigation-Cc_Ln-dl.js +174 -0
- package/dist/esm/resize-observer-listener-z8XjzxC9.js +100 -0
- package/dist/types/components/accordion/model.d.ts +2 -8
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +8 -0
- package/dist/types/components/{brand/brand.d.ts → control-panel-brand/control-panel-brand.d.ts} +5 -9
- package/dist/types/components/control-panel-brand/index.d.ts +2 -0
- package/dist/types/components/control-panel-brand/model.d.ts +5 -0
- package/dist/types/components/control-panel-desktop/control-panel-desktop.d.ts +41 -0
- package/dist/types/components/control-panel-desktop/index.d.ts +2 -0
- package/dist/types/components/control-panel-desktop/model.d.ts +5 -0
- package/dist/types/components/{page/page.d.ts → control-panel-flat-icon/control-panel-flat-icon.d.ts} +10 -12
- package/dist/types/components/control-panel-flat-icon/index.d.ts +2 -0
- package/dist/types/components/control-panel-flat-icon/model.d.ts +12 -0
- package/dist/types/components/control-panel-meta/control-panel-meta.d.ts +23 -0
- package/dist/types/components/control-panel-meta/index.d.ts +2 -0
- package/dist/types/components/control-panel-meta/model.d.ts +5 -0
- package/dist/types/components/control-panel-mobile/control-panel-mobile.d.ts +36 -0
- package/dist/types/components/control-panel-mobile/index.d.ts +2 -0
- package/dist/types/components/control-panel-mobile/model.d.ts +21 -0
- package/dist/types/components/control-panel-navigation/control-panel-navigation.d.ts +54 -0
- package/dist/types/components/control-panel-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation/model.d.ts +25 -0
- package/dist/types/components/control-panel-navigation-item/control-panel-navigation-item.d.ts +42 -0
- package/dist/types/components/control-panel-navigation-item/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation-item/model.d.ts +20 -0
- package/dist/types/components/control-panel-navigation-item-group/control-panel-navigation-item-group.d.ts +74 -0
- package/dist/types/components/control-panel-navigation-item-group/index.d.ts +2 -0
- package/dist/types/components/control-panel-navigation-item-group/model.d.ts +44 -0
- package/dist/types/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +23 -0
- package/dist/types/components/control-panel-primary-actions/index.d.ts +2 -0
- package/dist/types/components/control-panel-primary-actions/model.d.ts +5 -0
- package/dist/types/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts +23 -0
- package/dist/types/components/control-panel-secondary-actions/index.d.ts +2 -0
- package/dist/types/components/control-panel-secondary-actions/model.d.ts +5 -0
- package/dist/types/components/control-panel-skip-navigation/control-panel-skip-navigation.d.ts +25 -0
- package/dist/types/components/control-panel-skip-navigation/index.d.ts +2 -0
- package/dist/types/components/control-panel-skip-navigation/model.d.ts +16 -0
- package/dist/types/components/custom-select/custom-select.d.ts +2 -1
- package/dist/types/components/custom-select/model.d.ts +5 -1
- package/dist/types/components/drawer/drawer.d.ts +5 -5
- package/dist/types/components/drawer/model.d.ts +18 -3
- package/dist/types/components/{navigation/navigation.d.ts → drawer-footer/drawer-footer.d.ts} +5 -5
- package/dist/types/components/drawer-footer/index.d.ts +2 -0
- package/dist/types/components/drawer-footer/model.d.ts +5 -0
- package/dist/types/components/drawer-header/drawer-header.d.ts +30 -0
- package/dist/types/components/drawer-header/index.d.ts +2 -0
- package/dist/types/components/drawer-header/model.d.ts +9 -0
- package/dist/types/components/popover/popover.d.ts +3 -2
- package/dist/types/components/shell/index.d.ts +2 -0
- package/dist/types/components/shell/model.d.ts +34 -0
- package/dist/types/components/shell/shell.d.ts +30 -0
- package/dist/types/components/shell-content/index.d.ts +2 -0
- package/dist/types/components/shell-content/model.d.ts +28 -0
- package/dist/types/components/shell-content/shell-content.d.ts +28 -0
- package/dist/types/components/shell-sub-navigation/index.d.ts +2 -0
- package/dist/types/components/shell-sub-navigation/model.d.ts +5 -0
- package/dist/types/components/shell-sub-navigation/shell-sub-navigation.d.ts +29 -0
- package/dist/types/components/table/table.d.ts +1 -0
- package/dist/types/components/table-body/table-body.d.ts +1 -0
- package/dist/types/components/table-caption/table-caption.d.ts +1 -0
- package/dist/types/components/table-data-cell/table-data-cell.d.ts +1 -0
- package/dist/types/components/table-footer/table-footer.d.ts +1 -0
- package/dist/types/components/table-head/table-head.d.ts +1 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +1 -0
- package/dist/types/components/table-row/table-row.d.ts +1 -0
- package/dist/types/components/tabs/model.d.ts +4 -12
- package/dist/types/components/tabs/tabs.d.ts +3 -1
- package/dist/types/components/tooltip/tooltip.d.ts +3 -2
- package/dist/types/components.d.ts +621 -243
- package/dist/types/index.d.ts +32 -10
- package/dist/types/shared/constants.d.ts +44 -39
- package/dist/types/shared/figma.d.ts +11 -4
- package/dist/types/shared/model.d.ts +109 -7
- package/dist/types/utils/abstract-document-listener.d.ts +18 -0
- package/dist/types/utils/abstract-observer-listener.d.ts +39 -0
- package/dist/types/utils/document-click-listener.d.ts +3 -3
- package/dist/types/utils/document-scroll-listener.d.ts +3 -3
- package/dist/types/utils/floating-components.d.ts +29 -6
- package/dist/types/utils/index.d.ts +11 -0
- package/dist/types/utils/intersection-observer-listener.d.ts +15 -0
- package/dist/types/utils/navigation.d.ts +12 -11
- package/dist/types/utils/resize-observer-listener.d.ts +15 -0
- package/dist/vscode.html-custom-data.json +992 -540
- package/dist/web-types.json +3207 -2219
- package/package.json +5 -5
- package/agent/Brand.md +0 -13
- package/agent/Header.md +0 -29
- package/agent/Navigation.md +0 -19
- package/agent/NavigationItem.md +0 -29
- package/agent/Page.md +0 -27
- package/bundle/db-brand.js +0 -1
- package/bundle/db-header.js +0 -1
- package/bundle/db-navigation-item.js +0 -1
- package/bundle/db-navigation.js +0 -1
- package/bundle/db-page.js +0 -1
- package/bundle/p-2eQDIPlF.js +0 -1
- package/bundle/p-BFeR7jXy.js +0 -1
- package/bundle/p-BdL-nI5y.js +0 -1
- package/bundle/p-C0q9XJSc.js +0 -1
- package/bundle/p-C2w7ILj8.js +0 -1
- package/bundle/p-C47AKJPy.js +0 -1
- package/bundle/p-C_qYW0Kh.js +0 -1
- package/bundle/p-Cn5NdjPW.js +0 -1
- package/bundle/p-D6L0n3gO.js +0 -1
- package/bundle/p-DJTpgiBy.js +0 -1
- package/bundle/p-DTM6Wcbf.js +0 -1
- package/bundle/p-DVuZmW_J.js +0 -1
- package/bundle/p-DiEfz0o1.js +0 -1
- package/bundle/p-gIJnyld5.js +0 -1
- package/dist/cjs/db-drawer.cjs.entry.js +0 -225
- package/dist/cjs/db-header.cjs.entry.js +0 -145
- package/dist/cjs/db-navigation-item.cjs.entry.js +0 -182
- package/dist/cjs/navigation-DUTSDY4q.js +0 -138
- package/dist/collection/components/brand/index.js +0 -2
- package/dist/collection/components/header/index.js +0 -2
- package/dist/collection/components/navigation/index.js +0 -2
- package/dist/collection/components/navigation-item/index.js +0 -2
- package/dist/collection/components/navigation-item/navigation-item.js +0 -577
- package/dist/collection/components/page/index.js +0 -2
- package/dist/collection/components/page/model.js +0 -2
- package/dist/db-ux/p-0758418a.entry.js +0 -1
- package/dist/db-ux/p-183c78b7.entry.js +0 -1
- package/dist/db-ux/p-1e70d93f.entry.js +0 -1
- package/dist/db-ux/p-2c23efe2.entry.js +0 -1
- package/dist/db-ux/p-38c55e9c.entry.js +0 -1
- package/dist/db-ux/p-4751361d.entry.js +0 -1
- package/dist/db-ux/p-5623ff36.entry.js +0 -1
- package/dist/db-ux/p-5706f20a.entry.js +0 -1
- package/dist/db-ux/p-6ce4a109.entry.js +0 -1
- package/dist/db-ux/p-6fdc00bd.entry.js +0 -1
- package/dist/db-ux/p-71399ee3.entry.js +0 -1
- package/dist/db-ux/p-87281518.entry.js +0 -1
- package/dist/db-ux/p-90e9ec2d.entry.js +0 -1
- package/dist/db-ux/p-BdL-nI5y.js +0 -1
- package/dist/db-ux/p-BihrW11j.js +0 -1
- package/dist/db-ux/p-BtImZ8Nt.js +0 -1
- package/dist/db-ux/p-C0q9XJSc.js +0 -1
- package/dist/db-ux/p-C_qYW0Kh.js +0 -1
- package/dist/db-ux/p-OOIf-5XP.js +0 -1
- package/dist/db-ux/p-a07e33e7.entry.js +0 -1
- package/dist/db-ux/p-a6f33f3b.entry.js +0 -1
- package/dist/db-ux/p-e58fbd4d.entry.js +0 -1
- package/dist/db-ux/p-e66aa9d8.entry.js +0 -1
- package/dist/db-ux/p-f0b5c785.entry.js +0 -1
- package/dist/db-ux/p-f271332c.entry.js +0 -1
- package/dist/db-ux/p-f5f73623.entry.js +0 -1
- package/dist/db-ux/p-f964d5f5.entry.js +0 -1
- package/dist/db-ux/p-fumiz06Y.js +0 -1
- package/dist/esm/db-drawer.entry.js +0 -223
- package/dist/esm/db-header.entry.js +0 -143
- package/dist/esm/db-navigation-item.entry.js +0 -180
- package/dist/esm/navigation-Cd7KZ6E2.js +0 -135
- package/dist/types/components/brand/index.d.ts +0 -2
- package/dist/types/components/brand/model.d.ts +0 -10
- package/dist/types/components/header/header.d.ts +0 -40
- package/dist/types/components/header/index.d.ts +0 -2
- package/dist/types/components/header/model.d.ts +0 -44
- package/dist/types/components/navigation/index.d.ts +0 -2
- package/dist/types/components/navigation/model.d.ts +0 -5
- package/dist/types/components/navigation-item/index.d.ts +0 -2
- package/dist/types/components/navigation-item/model.d.ts +0 -39
- package/dist/types/components/navigation-item/navigation-item.d.ts +0 -52
- package/dist/types/components/page/index.d.ts +0 -2
- package/dist/types/components/page/model.d.ts +0 -36
- /package/dist/collection/components/{brand → control-panel-brand}/model.js +0 -0
- /package/dist/collection/components/{header → control-panel-desktop}/model.js +0 -0
- /package/dist/collection/components/{navigation-item → control-panel-flat-icon}/model.js +0 -0
- /package/dist/collection/components/{navigation → control-panel-meta}/model.js +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
|
+
|
|
6
|
+
const DBControlPanelSecondaryActions = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
setupObserver(element) {
|
|
12
|
+
if (!element)
|
|
13
|
+
return;
|
|
14
|
+
const parent = element.closest("db-control-panel-secondary-actions");
|
|
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-secondary-actions");
|
|
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-control-panel-secondary-actions");
|
|
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;
|
|
88
|
+
return (index.h("div", { key: 'ec95f71c0c49e938e209f3b7811175d870ad4989', class: index$1.cls("db-control-panel-secondary-actions", 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 }, index.h("slot", { key: 'de8c3e189de79ffd03dad8b7400a5482fc4391b8' })));
|
|
91
|
+
}
|
|
92
|
+
get rootElement() { return index.getElement(this); }
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.db_control_panel_secondary_actions = DBControlPanelSecondaryActions;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
5
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
|
+
|
|
7
|
+
const DBControlPanelSkipNavigation = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.observer = undefined;
|
|
11
|
+
}
|
|
12
|
+
setupObserver(element) {
|
|
13
|
+
if (!element)
|
|
14
|
+
return;
|
|
15
|
+
const parent = element.closest("db-control-panel-skip-navigation");
|
|
16
|
+
if (!parent || this.observer)
|
|
17
|
+
return;
|
|
18
|
+
this.observer = new MutationObserver((mutations) => {
|
|
19
|
+
if (mutations.some((mutation) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
22
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
23
|
+
})) {
|
|
24
|
+
this.enableAttributePassing(element, "db-control-panel-skip-navigation");
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
this.observer.observe(parent, {
|
|
28
|
+
attributes: true,
|
|
29
|
+
attributeOldValue: true,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
34
|
+
* @param element the ref for the component
|
|
35
|
+
* @param customElementSelector the custom element like `my-component`
|
|
36
|
+
*/
|
|
37
|
+
enableAttributePassing(element, customElementSelector) {
|
|
38
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
39
|
+
if (element && parent) {
|
|
40
|
+
const attributes = parent.attributes;
|
|
41
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
42
|
+
const attr = attributes.item(i);
|
|
43
|
+
if (attr && attr.name !== 'data-density' &&
|
|
44
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
45
|
+
if (attr.value) {
|
|
46
|
+
element.setAttribute(attr.name, attr.value);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
element.removeAttribute(attr.name);
|
|
50
|
+
}
|
|
51
|
+
parent.removeAttribute(attr.name);
|
|
52
|
+
}
|
|
53
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
54
|
+
element.setAttribute(attr.name, attr.value);
|
|
55
|
+
parent.removeAttribute(attr.name);
|
|
56
|
+
}
|
|
57
|
+
else if (attr && attr.name === "class") {
|
|
58
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
59
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
60
|
+
const currentClass = element.getAttribute("class");
|
|
61
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
62
|
+
if (isWebComponent) {
|
|
63
|
+
// Stencil is using this class for lazy loading component
|
|
64
|
+
parent.setAttribute("class", "hydrated");
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
parent.removeAttribute(attr.name);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
componentDidLoad() {
|
|
74
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
75
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
76
|
+
if (connectedElement) {
|
|
77
|
+
connectedElement.remove();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this.enableAttributePassing(this._ref, "db-control-panel-skip-navigation");
|
|
81
|
+
this.setupObserver(this._ref);
|
|
82
|
+
}
|
|
83
|
+
disconnectedCallback() {
|
|
84
|
+
var _a;
|
|
85
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
return (index.h("div", { key: '3635ad77cee43a3b1be6e98148ce4b8b63658846', class: index$1.cls("db-control-panel-skip-navigation", this.className), ref: (el) => {
|
|
90
|
+
this._ref = el;
|
|
91
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.text ? (index.h("a", { href: `#${(_c = this.target) !== null && _c !== void 0 ? _c : constants.MAIN_CONTENT_ID}` }, this.text)) : (index.h("slot", null))));
|
|
92
|
+
}
|
|
93
|
+
get rootElement() { return index.getElement(this); }
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
exports.db_control_panel_skip_navigation = DBControlPanelSkipNavigation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomButton = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -85,10 +85,10 @@ const DBCustomButton = class {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
var _a, _b, _c;
|
|
88
|
-
return (index.h("div", { key: '
|
|
88
|
+
return (index.h("div", { key: 'd0a0ad921a94f3eaae975472295d8f5120de6bb4', class: index$1.cls("db-custom-button", this.className), ref: (el) => {
|
|
89
89
|
this._ref = el;
|
|
90
90
|
}, id: (_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-show-icon": index$1.getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
91
|
-
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": index$1.getBooleanAsString(this.noText, "noText") }, index.h("slot", { key: '
|
|
91
|
+
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": index$1.getBooleanAsString(this.noText, "noText") }, index.h("slot", { key: '6bf6026fab0276e23db2b7942932cafe5f4f7e18' })));
|
|
92
92
|
}
|
|
93
93
|
get rootElement() { return index.getElement(this); }
|
|
94
94
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var constants = require('./constants-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
6
|
+
var formComponents = require('./form-components-XNiwIGq8.js');
|
|
7
7
|
|
|
8
8
|
const DBCustomSelectDropdown = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -88,9 +88,9 @@ const DBCustomSelectDropdown = class {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
var _a, _b;
|
|
91
|
-
return (index.h("article", { key: '
|
|
91
|
+
return (index.h("article", { key: 'f4f45bf53a72ecdfc2f2d8a5efe56cd97b78ea39', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
92
92
|
this._ref = el;
|
|
93
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: '
|
|
93
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: 'ca1c3bb74d4197526662177cff18d959d215d73a' })));
|
|
94
94
|
}
|
|
95
95
|
get rootElement() { return index.getElement(this); }
|
|
96
96
|
};
|
|
@@ -177,9 +177,9 @@ const DBCustomSelectList = class {
|
|
|
177
177
|
}
|
|
178
178
|
render() {
|
|
179
179
|
var _a, _b;
|
|
180
|
-
return (index.h("div", { key: '
|
|
180
|
+
return (index.h("div", { key: '298e676b1b8d6dbdb9378aa4a25c3241ebf21243', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
181
181
|
this._ref = el;
|
|
182
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '
|
|
182
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: 'b110c3a537467cc48aa291a9067ac36b1ad249de' }, index.h("slot", { key: 'f5223c7e2a6e1f8c0620a81fcb4f31e89fc06786' }))));
|
|
183
183
|
}
|
|
184
184
|
get rootElement() { return index.getElement(this); }
|
|
185
185
|
};
|
|
@@ -287,7 +287,7 @@ const DBCustomSelectListItem = class {
|
|
|
287
287
|
}
|
|
288
288
|
render() {
|
|
289
289
|
var _a, _b;
|
|
290
|
-
return (index.h("li", { key: '
|
|
290
|
+
return (index.h("li", { key: '2e8eca178b50e65b563dea560b11cf8ee20da8c8', class: index$1.cls("db-custom-select-list-item", this.className, {
|
|
291
291
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
292
292
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
293
293
|
}), ref: (el) => {
|
|
@@ -555,8 +555,8 @@ const DBInput = class {
|
|
|
555
555
|
}
|
|
556
556
|
render() {
|
|
557
557
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
558
|
-
return (index.h("div", { key: '
|
|
559
|
-
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing") }, index.h("label", { key: '
|
|
558
|
+
return (index.h("div", { key: '665e33b476a975430c1d4b3dda4ecf2ab9c54009', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
559
|
+
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing") }, index.h("label", { key: '3c7167e73e16d83886146ceb25e773574f259de4', htmlFor: this._id }, (_b = this.label) !== null && _b !== void 0 ? _b : constants.DEFAULT_LABEL), index.h("input", { key: '58867dc5de6bd5f901372f0b29630bf59d6fdaf2', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
560
560
|
this._ref = el;
|
|
561
561
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_c = this.placeholder) !== null && _c !== void 0 ? _c : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_e = (_d = this.value) !== null && _d !== void 0 ? _d : this._value) !== null && _e !== void 0 ? _e : "", maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
562
562
|
index$1.getBoolean(this.readonly, "readonly") ||
|
|
@@ -569,7 +569,7 @@ const DBInput = class {
|
|
|
569
569
|
"color",
|
|
570
570
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && index$1.isIOSSafari()
|
|
571
571
|
? "textbox"
|
|
572
|
-
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '
|
|
572
|
+
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: 'b3fa20be35535f5fe014f13246af282358bc9f1d' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '98ba96af580cb1d74b76b3ed9cff85ca94e07a44', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: 'c4aba187e2c952d69bfbf2513c751f39ece7ec98', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
573
573
|
}
|
|
574
574
|
get rootElement() { return index.getElement(this); }
|
|
575
575
|
static get watchers() { return {
|
|
@@ -694,9 +694,9 @@ const DBTag = class {
|
|
|
694
694
|
}
|
|
695
695
|
render() {
|
|
696
696
|
var _a, _b, _c;
|
|
697
|
-
return (index.h("div", { key: '
|
|
697
|
+
return (index.h("div", { key: '07d9385a8ee1ba5b9c57c501b9fae0fea15a3e3e', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
698
698
|
this._ref = el;
|
|
699
|
-
}, 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-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true, "showCheckState"), "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText"), "data-overflow": index$1.getBooleanAsString(this.overflow, "overflow") }, index.h("slot", { key: '
|
|
699
|
+
}, 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-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true, "showCheckState"), "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText"), "data-overflow": index$1.getBooleanAsString(this.overflow, "overflow") }, index.h("slot", { key: '240d6b23cb670c8d3bc8dd28118c4387e4abab6d', name: "content" }), this.text ? this.text : null, index.h("slot", { key: 'a3d3f749ee447725c439f7344d28208c6213861a' }), this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
700
700
|
}
|
|
701
701
|
get rootElement() { return index.getElement(this); }
|
|
702
702
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectFormField = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -85,9 +85,9 @@ const DBCustomSelectFormField = class {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
var _a, _b;
|
|
88
|
-
return (index.h("summary", { key: '
|
|
88
|
+
return (index.h("summary", { key: '40b13d21ae502631dacf0371a73a9410427ea74f', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
89
89
|
this._ref = el;
|
|
90
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'f65747fc63c61c12fed05d268039459b0913b041' })));
|
|
91
91
|
}
|
|
92
92
|
get rootElement() { return index.getElement(this); }
|
|
93
93
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var constants = require('./constants-
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var documentClickListener = require('./document-click-listener-
|
|
7
|
-
var documentScrollListener = require('./document-scroll-listener-
|
|
8
|
-
var floatingComponents = require('./floating-components-
|
|
9
|
-
var formComponents = require('./form-components-
|
|
4
|
+
var constants = require('./constants-BM1EltPT.js');
|
|
5
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
6
|
+
var documentClickListener = require('./document-click-listener-D_0Q6lvb.js');
|
|
7
|
+
var documentScrollListener = require('./document-scroll-listener-CgyYRmvZ.js');
|
|
8
|
+
var floatingComponents = require('./floating-components-B3bpFI90.js');
|
|
9
|
+
var formComponents = require('./form-components-XNiwIGq8.js');
|
|
10
|
+
var intersectionObserverListener = require('./intersection-observer-listener-DlrHabJb.js');
|
|
11
|
+
var resizeObserverListener = require('./resize-observer-listener-CmPDfoZs.js');
|
|
10
12
|
|
|
11
13
|
const DBCustomSelect = class {
|
|
12
14
|
constructor(hostRef) {
|
|
@@ -44,7 +46,8 @@ const DBCustomSelect = class {
|
|
|
44
46
|
this._documentClickListenerCallbackId = undefined;
|
|
45
47
|
this._internalChangeTimestamp = 0;
|
|
46
48
|
this._documentScrollListenerCallbackId = undefined;
|
|
47
|
-
this.
|
|
49
|
+
this._intersectionObserverCallbackId = undefined;
|
|
50
|
+
this._resizeObserverCallbackId = undefined;
|
|
48
51
|
this._searchValue = undefined;
|
|
49
52
|
this.selectAllChecked = false;
|
|
50
53
|
this.selectAllIndeterminate = false;
|
|
@@ -104,7 +107,6 @@ const DBCustomSelect = class {
|
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
handleDropdownToggle(event) {
|
|
107
|
-
var _a, _b;
|
|
108
110
|
if (this.dropdownToggle) {
|
|
109
111
|
event.stopPropagation();
|
|
110
112
|
this.dropdownToggle.emit(event);
|
|
@@ -115,7 +117,13 @@ const DBCustomSelect = class {
|
|
|
115
117
|
this._documentScrollListenerCallbackId =
|
|
116
118
|
new documentScrollListener.DocumentScrollListener().addCallback((event) => this.handleDocumentScroll(event));
|
|
117
119
|
this.handleAutoPlacement();
|
|
118
|
-
|
|
120
|
+
this._resizeObserverCallbackId = new resizeObserverListener.ResizeObserverListener().observe(document.documentElement, () => this.handleAutoPlacement());
|
|
121
|
+
this._intersectionObserverCallbackId =
|
|
122
|
+
new intersectionObserverListener.IntersectionObserverListener().observe(this.detailsRef, (entry) => {
|
|
123
|
+
if (!entry.isIntersecting && this.detailsRef.open) {
|
|
124
|
+
this.detailsRef.open = false;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
119
127
|
if (!event.target.dataset["test"]) {
|
|
120
128
|
// We need this workaround for snapshot testing
|
|
121
129
|
this.handleOpenByKeyboardFocus();
|
|
@@ -128,7 +136,12 @@ const DBCustomSelect = class {
|
|
|
128
136
|
if (this._documentScrollListenerCallbackId) {
|
|
129
137
|
new documentScrollListener.DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
130
138
|
}
|
|
131
|
-
(
|
|
139
|
+
if (this._resizeObserverCallbackId) {
|
|
140
|
+
new resizeObserverListener.ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
141
|
+
}
|
|
142
|
+
if (this._intersectionObserverCallbackId) {
|
|
143
|
+
new intersectionObserverListener.IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
|
|
144
|
+
}
|
|
132
145
|
}
|
|
133
146
|
}
|
|
134
147
|
getNativeSelectValue() {
|
|
@@ -799,16 +812,6 @@ const DBCustomSelect = class {
|
|
|
799
812
|
const onMountHook_0 = () => {
|
|
800
813
|
this.resetIds();
|
|
801
814
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
802
|
-
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
803
|
-
this._observer = new IntersectionObserver((payload) => {
|
|
804
|
-
if (this.detailsRef) {
|
|
805
|
-
const entry = payload.find(({ target }) => target === this.detailsRef);
|
|
806
|
-
if (entry && !entry.isIntersecting && this.detailsRef.open) {
|
|
807
|
-
this.detailsRef.open = false;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
815
|
};
|
|
813
816
|
onMountHook_0();
|
|
814
817
|
const onMountHook_1 = () => {
|
|
@@ -838,23 +841,36 @@ const DBCustomSelect = class {
|
|
|
838
841
|
disconnectedCallback() {
|
|
839
842
|
var _a, _b;
|
|
840
843
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
844
|
+
// Clean up singleton observers if dropdown was open when unmounting
|
|
845
|
+
if (this._documentClickListenerCallbackId) {
|
|
846
|
+
new documentClickListener.DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
|
|
847
|
+
}
|
|
848
|
+
if (this._documentScrollListenerCallbackId) {
|
|
849
|
+
new documentScrollListener.DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
850
|
+
}
|
|
851
|
+
if (this._resizeObserverCallbackId) {
|
|
852
|
+
new resizeObserverListener.ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
|
|
853
|
+
}
|
|
854
|
+
if (this._intersectionObserverCallbackId) {
|
|
855
|
+
new intersectionObserverListener.IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
|
|
856
|
+
}
|
|
841
857
|
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
842
858
|
}
|
|
843
859
|
render() {
|
|
844
860
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
845
|
-
return (index.h("div", { key: '
|
|
861
|
+
return (index.h("div", { key: 'e670905415a84f4edd7f9ed4cfe637201aed2b1f', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
846
862
|
this._ref = el;
|
|
847
863
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
848
864
|
this.selectedType === "tag" &&
|
|
849
865
|
this.multiple
|
|
850
866
|
? "above"
|
|
851
|
-
: this.variant, "data-required": index$1.getBooleanAsString(this.required, "required"), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon") }, index.h("label", { key: '
|
|
867
|
+
: this.variant, "data-required": index$1.getBooleanAsString(this.required, "required"), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon") }, index.h("label", { key: 'bcece5c0050e198def7da6608f9e7bc55cae2252', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '9ced4c07979c076af3a7ac9187b732035ed77c47', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
852
868
|
this.selectRef = el;
|
|
853
869
|
}, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
854
870
|
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
855
|
-
: null)), index.h("details", { key: '
|
|
871
|
+
: null)), index.h("details", { key: '56ecb82c9470119ded325d106a0f0d69ee573033', ref: (el) => {
|
|
856
872
|
this.detailsRef = el;
|
|
857
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
873
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '8f927bc9860c5c3a4859e28ae3a7cf19ef32a84b' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag", "selectedType"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
|
|
858
874
|
this.searchInputRef = el;
|
|
859
875
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
860
876
|
? this._infoTextId
|
|
@@ -864,7 +880,7 @@ const DBCustomSelect = class {
|
|
|
864
880
|
this.selectAllRef = el;
|
|
865
881
|
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
|
|
866
882
|
? this.getOptionLabel(option)
|
|
867
|
-
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '
|
|
883
|
+
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '5ea00e32bfe11384196d884a22b502f69e2645db', class: "db-custom-select-placeholder", "aria-hidden": "true", id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'c7e52d96c2b30151a5bf0468675dd346066ae5c7', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'bf805892157e5f35c4c705f6a4bc2733f732a73e', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
868
884
|
}
|
|
869
885
|
get rootElement() { return index.getElement(this); }
|
|
870
886
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C313bRqJ.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Df-6pBQf.js');
|
|
5
5
|
|
|
6
6
|
const DBDivider = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -85,7 +85,7 @@ const DBDivider = class {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
var _a, _b;
|
|
88
|
-
return (index.h("div", { key: '
|
|
88
|
+
return (index.h("div", { key: 'b74e9a9bc0bf12d414e6f828b52a1eba7406ac81', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
89
89
|
this._ref = el;
|
|
90
90
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
91
91
|
}
|