@db-ux/wc-core-components 1.0.0-test-13b991d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/constants-89822e5f.js +116 -0
- package/dist/cjs/constants-89822e5f.js.map +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +73 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/db-accordion.cjs.entry.js +130 -0
- package/dist/cjs/db-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/db-badge.cjs.entry.js +75 -0
- package/dist/cjs/db-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/db-brand.cjs.entry.js +58 -0
- package/dist/cjs/db-brand.cjs.entry.js.map +1 -0
- package/dist/cjs/db-button.cjs.entry.js +62 -0
- package/dist/cjs/db-button.cjs.entry.js.map +1 -0
- package/dist/cjs/db-card.cjs.entry.js +62 -0
- package/dist/cjs/db-card.cjs.entry.js.map +1 -0
- package/dist/cjs/db-checkbox.cjs.entry.js +149 -0
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/db-divider.cjs.entry.js +56 -0
- package/dist/cjs/db-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/db-drawer.cjs.entry.js +108 -0
- package/dist/cjs/db-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/db-header.cjs.entry.js +89 -0
- package/dist/cjs/db-header.cjs.entry.js.map +1 -0
- package/dist/cjs/db-icon.cjs.entry.js +56 -0
- package/dist/cjs/db-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/db-infotext.cjs.entry.js +57 -0
- package/dist/cjs/db-infotext.cjs.entry.js.map +1 -0
- package/dist/cjs/db-input.cjs.entry.js +157 -0
- package/dist/cjs/db-input.cjs.entry.js.map +1 -0
- package/dist/cjs/db-link.cjs.entry.js +63 -0
- package/dist/cjs/db-link.cjs.entry.js.map +1 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +102 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/db-navigation.cjs.entry.js +59 -0
- package/dist/cjs/db-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/db-notification.cjs.entry.js +64 -0
- package/dist/cjs/db-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/db-page.cjs.entry.js +73 -0
- package/dist/cjs/db-page.cjs.entry.js.map +1 -0
- package/dist/cjs/db-popover.cjs.entry.js +113 -0
- package/dist/cjs/db-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/db-radio.cjs.entry.js +98 -0
- package/dist/cjs/db-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/db-section.cjs.entry.js +59 -0
- package/dist/cjs/db-section.cjs.entry.js.map +1 -0
- package/dist/cjs/db-select.cjs.entry.js +170 -0
- package/dist/cjs/db-select.cjs.entry.js.map +1 -0
- package/dist/cjs/db-stack.cjs.entry.js +56 -0
- package/dist/cjs/db-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/db-switch.cjs.entry.js +91 -0
- package/dist/cjs/db-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tab-item_3.cjs.entry.js +175 -0
- package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tabs.cjs.entry.js +173 -0
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tag.cjs.entry.js +83 -0
- package/dist/cjs/db-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/db-textarea.cjs.entry.js +144 -0
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tooltip.cjs.entry.js +86 -0
- package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/db-ux.cjs.js +27 -0
- package/dist/cjs/db-ux.cjs.js.map +1 -0
- package/dist/cjs/index-3d093f06.js +1496 -0
- package/dist/cjs/index-3d093f06.js.map +1 -0
- package/dist/cjs/index-c0df827d.js +169 -0
- package/dist/cjs/index-c0df827d.js.map +1 -0
- package/dist/cjs/index.cjs.js +118 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/navigation-bb2d5552.js +140 -0
- package/dist/cjs/navigation-bb2d5552.js.map +1 -0
- package/dist/collection/collection-manifest.json +42 -0
- package/dist/collection/components/accordion/accordion.js +311 -0
- package/dist/collection/components/accordion/accordion.js.map +1 -0
- package/dist/collection/components/accordion/index.js +3 -0
- package/dist/collection/components/accordion/index.js.map +1 -0
- package/dist/collection/components/accordion/model.js +3 -0
- package/dist/collection/components/accordion/model.js.map +1 -0
- package/dist/collection/components/accordion-item/accordion-item.js +246 -0
- package/dist/collection/components/accordion-item/accordion-item.js.map +1 -0
- package/dist/collection/components/accordion-item/index.js +3 -0
- package/dist/collection/components/accordion-item/index.js.map +1 -0
- package/dist/collection/components/accordion-item/model.js +2 -0
- package/dist/collection/components/accordion-item/model.js.map +1 -0
- package/dist/collection/components/badge/badge.js +280 -0
- package/dist/collection/components/badge/badge.js.map +1 -0
- package/dist/collection/components/badge/index.js +3 -0
- package/dist/collection/components/badge/index.js.map +1 -0
- package/dist/collection/components/badge/model.js +2 -0
- package/dist/collection/components/badge/model.js.map +1 -0
- package/dist/collection/components/brand/brand.js +206 -0
- package/dist/collection/components/brand/brand.js.map +1 -0
- package/dist/collection/components/brand/index.js +3 -0
- package/dist/collection/components/brand/index.js.map +1 -0
- package/dist/collection/components/brand/model.js +2 -0
- package/dist/collection/components/brand/model.js.map +1 -0
- package/dist/collection/components/button/button.js +527 -0
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/button/index.js +3 -0
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button/model.js +4 -0
- package/dist/collection/components/button/model.js.map +1 -0
- package/dist/collection/components/card/card.js +202 -0
- package/dist/collection/components/card/card.js.map +1 -0
- package/dist/collection/components/card/index.js +3 -0
- package/dist/collection/components/card/index.js.map +1 -0
- package/dist/collection/components/card/model.js +3 -0
- package/dist/collection/components/card/model.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +699 -0
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/index.js +3 -0
- package/dist/collection/components/checkbox/index.js.map +1 -0
- package/dist/collection/components/checkbox/model.js +2 -0
- package/dist/collection/components/checkbox/model.js.map +1 -0
- package/dist/collection/components/divider/divider.js +204 -0
- package/dist/collection/components/divider/divider.js.map +1 -0
- package/dist/collection/components/divider/index.js +3 -0
- package/dist/collection/components/divider/index.js.map +1 -0
- package/dist/collection/components/divider/model.js +3 -0
- package/dist/collection/components/divider/model.js.map +1 -0
- package/dist/collection/components/drawer/drawer.js +398 -0
- package/dist/collection/components/drawer/drawer.js.map +1 -0
- package/dist/collection/components/drawer/index.js +3 -0
- package/dist/collection/components/drawer/index.js.map +1 -0
- package/dist/collection/components/drawer/model.js +4 -0
- package/dist/collection/components/drawer/model.js.map +1 -0
- package/dist/collection/components/header/header.js +266 -0
- package/dist/collection/components/header/header.js.map +1 -0
- package/dist/collection/components/header/index.js +3 -0
- package/dist/collection/components/header/index.js.map +1 -0
- package/dist/collection/components/header/model.js +2 -0
- package/dist/collection/components/header/model.js.map +1 -0
- package/dist/collection/components/icon/icon.js +204 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/icon/index.js +3 -0
- package/dist/collection/components/icon/index.js.map +1 -0
- package/dist/collection/components/icon/model.js +3 -0
- package/dist/collection/components/icon/model.js.map +1 -0
- package/dist/collection/components/infotext/index.js +3 -0
- package/dist/collection/components/infotext/index.js.map +1 -0
- package/dist/collection/components/infotext/infotext.js +230 -0
- package/dist/collection/components/infotext/infotext.js.map +1 -0
- package/dist/collection/components/infotext/model.js +2 -0
- package/dist/collection/components/infotext/model.js.map +1 -0
- package/dist/collection/components/input/index.js +3 -0
- package/dist/collection/components/input/index.js.map +1 -0
- package/dist/collection/components/input/input.js +1118 -0
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/input/model.js +6 -0
- package/dist/collection/components/input/model.js.map +1 -0
- package/dist/collection/components/link/index.js +3 -0
- package/dist/collection/components/link/index.js.map +1 -0
- package/dist/collection/components/link/link.js +478 -0
- package/dist/collection/components/link/link.js.map +1 -0
- package/dist/collection/components/link/model.js +4 -0
- package/dist/collection/components/link/model.js.map +1 -0
- package/dist/collection/components/navigation/index.js +3 -0
- package/dist/collection/components/navigation/index.js.map +1 -0
- package/dist/collection/components/navigation/model.js +2 -0
- package/dist/collection/components/navigation/model.js.map +1 -0
- package/dist/collection/components/navigation/navigation.js +139 -0
- package/dist/collection/components/navigation/navigation.js.map +1 -0
- package/dist/collection/components/navigation-item/index.js +3 -0
- package/dist/collection/components/navigation-item/index.js.map +1 -0
- package/dist/collection/components/navigation-item/model.js +2 -0
- package/dist/collection/components/navigation-item/model.js.map +1 -0
- package/dist/collection/components/navigation-item/navigation-item.js +404 -0
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -0
- package/dist/collection/components/notification/index.js +3 -0
- package/dist/collection/components/notification/index.js.map +1 -0
- package/dist/collection/components/notification/model.js +4 -0
- package/dist/collection/components/notification/model.js.map +1 -0
- package/dist/collection/components/notification/notification.js +480 -0
- package/dist/collection/components/notification/notification.js.map +1 -0
- package/dist/collection/components/page/index.js +3 -0
- package/dist/collection/components/page/index.js.map +1 -0
- package/dist/collection/components/page/model.js +3 -0
- package/dist/collection/components/page/model.js.map +1 -0
- package/dist/collection/components/page/page.js +204 -0
- package/dist/collection/components/page/page.js.map +1 -0
- package/dist/collection/components/popover/index.js +3 -0
- package/dist/collection/components/popover/index.js.map +1 -0
- package/dist/collection/components/popover/model.js +2 -0
- package/dist/collection/components/popover/model.js.map +1 -0
- package/dist/collection/components/popover/popover.js +344 -0
- package/dist/collection/components/popover/popover.js.map +1 -0
- package/dist/collection/components/radio/index.js +3 -0
- package/dist/collection/components/radio/index.js.map +1 -0
- package/dist/collection/components/radio/model.js +2 -0
- package/dist/collection/components/radio/model.js.map +1 -0
- package/dist/collection/components/radio/radio.js +518 -0
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/section/index.js +3 -0
- package/dist/collection/components/section/index.js.map +1 -0
- package/dist/collection/components/section/model.js +2 -0
- package/dist/collection/components/section/model.js.map +1 -0
- package/dist/collection/components/section/section.js +164 -0
- package/dist/collection/components/section/section.js.map +1 -0
- package/dist/collection/components/select/index.js +3 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/select/model.js +2 -0
- package/dist/collection/components/select/model.js.map +1 -0
- package/dist/collection/components/select/select.js +846 -0
- package/dist/collection/components/select/select.js.map +1 -0
- package/dist/collection/components/stack/index.js +3 -0
- package/dist/collection/components/stack/index.js.map +1 -0
- package/dist/collection/components/stack/model.js +5 -0
- package/dist/collection/components/stack/model.js.map +1 -0
- package/dist/collection/components/stack/stack.js +254 -0
- package/dist/collection/components/stack/stack.js.map +1 -0
- package/dist/collection/components/switch/index.js +3 -0
- package/dist/collection/components/switch/index.js.map +1 -0
- package/dist/collection/components/switch/model.js +2 -0
- package/dist/collection/components/switch/model.js.map +1 -0
- package/dist/collection/components/switch/switch.js +587 -0
- package/dist/collection/components/switch/switch.js.map +1 -0
- package/dist/collection/components/tab-item/index.js +3 -0
- package/dist/collection/components/tab-item/index.js.map +1 -0
- package/dist/collection/components/tab-item/model.js +2 -0
- package/dist/collection/components/tab-item/model.js.map +1 -0
- package/dist/collection/components/tab-item/tab-item.js +399 -0
- package/dist/collection/components/tab-item/tab-item.js.map +1 -0
- package/dist/collection/components/tab-list/index.js +3 -0
- package/dist/collection/components/tab-list/index.js.map +1 -0
- package/dist/collection/components/tab-list/model.js +2 -0
- package/dist/collection/components/tab-list/model.js.map +1 -0
- package/dist/collection/components/tab-list/tab-list.js +114 -0
- package/dist/collection/components/tab-list/tab-list.js.map +1 -0
- package/dist/collection/components/tab-panel/index.js +3 -0
- package/dist/collection/components/tab-panel/index.js.map +1 -0
- package/dist/collection/components/tab-panel/model.js +2 -0
- package/dist/collection/components/tab-panel/model.js.map +1 -0
- package/dist/collection/components/tab-panel/tab-panel.js +154 -0
- package/dist/collection/components/tab-panel/tab-panel.js.map +1 -0
- package/dist/collection/components/tabs/index.js +3 -0
- package/dist/collection/components/tabs/index.js.map +1 -0
- package/dist/collection/components/tabs/model.js +3 -0
- package/dist/collection/components/tabs/model.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +458 -0
- package/dist/collection/components/tabs/tabs.js.map +1 -0
- package/dist/collection/components/tag/index.js +3 -0
- package/dist/collection/components/tag/index.js.map +1 -0
- package/dist/collection/components/tag/model.js +2 -0
- package/dist/collection/components/tag/model.js.map +1 -0
- package/dist/collection/components/tag/tag.js +430 -0
- package/dist/collection/components/tag/tag.js.map +1 -0
- package/dist/collection/components/textarea/index.js +3 -0
- package/dist/collection/components/textarea/index.js.map +1 -0
- package/dist/collection/components/textarea/model.js +3 -0
- package/dist/collection/components/textarea/model.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +956 -0
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/tooltip/index.js +3 -0
- package/dist/collection/components/tooltip/index.js.map +1 -0
- package/dist/collection/components/tooltip/model.js +2 -0
- package/dist/collection/components/tooltip/model.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.js +292 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/index.js +37 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/shared/constants.js +88 -0
- package/dist/collection/shared/constants.js.map +1 -0
- package/dist/collection/shared/model.js +22 -0
- package/dist/collection/shared/model.js.map +1 -0
- package/dist/collection/utils/form-components.js +11 -0
- package/dist/collection/utils/form-components.js.map +1 -0
- package/dist/collection/utils/index.js +167 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/navigation.js +137 -0
- package/dist/collection/utils/navigation.js.map +1 -0
- package/dist/custom-elements.json +13474 -0
- package/dist/db-ux/db-ux.esm.js +2 -0
- package/dist/db-ux/db-ux.esm.js.map +1 -0
- package/dist/db-ux/index.esm.js +2 -0
- package/dist/db-ux/index.esm.js.map +1 -0
- package/dist/db-ux/p-031e9fbf.entry.js +2 -0
- package/dist/db-ux/p-031e9fbf.entry.js.map +1 -0
- package/dist/db-ux/p-08126c21.entry.js +2 -0
- package/dist/db-ux/p-08126c21.entry.js.map +1 -0
- package/dist/db-ux/p-1066cd52.entry.js +2 -0
- package/dist/db-ux/p-1066cd52.entry.js.map +1 -0
- package/dist/db-ux/p-10d30f53.entry.js +2 -0
- package/dist/db-ux/p-10d30f53.entry.js.map +1 -0
- package/dist/db-ux/p-1566cfef.entry.js +2 -0
- package/dist/db-ux/p-1566cfef.entry.js.map +1 -0
- package/dist/db-ux/p-1c12853c.entry.js +2 -0
- package/dist/db-ux/p-1c12853c.entry.js.map +1 -0
- package/dist/db-ux/p-1feee149.js +3 -0
- package/dist/db-ux/p-1feee149.js.map +1 -0
- package/dist/db-ux/p-2d32aa06.entry.js +2 -0
- package/dist/db-ux/p-2d32aa06.entry.js.map +1 -0
- package/dist/db-ux/p-2e318e2a.entry.js +2 -0
- package/dist/db-ux/p-2e318e2a.entry.js.map +1 -0
- package/dist/db-ux/p-34f88e4e.js +2 -0
- package/dist/db-ux/p-34f88e4e.js.map +1 -0
- package/dist/db-ux/p-3f2e2d87.entry.js +2 -0
- package/dist/db-ux/p-3f2e2d87.entry.js.map +1 -0
- package/dist/db-ux/p-43aa16d7.entry.js +2 -0
- package/dist/db-ux/p-43aa16d7.entry.js.map +1 -0
- package/dist/db-ux/p-5a689165.entry.js +2 -0
- package/dist/db-ux/p-5a689165.entry.js.map +1 -0
- package/dist/db-ux/p-683d690f.entry.js +2 -0
- package/dist/db-ux/p-683d690f.entry.js.map +1 -0
- package/dist/db-ux/p-6b6f1f7f.entry.js +2 -0
- package/dist/db-ux/p-6b6f1f7f.entry.js.map +1 -0
- package/dist/db-ux/p-6f645f17.entry.js +2 -0
- package/dist/db-ux/p-6f645f17.entry.js.map +1 -0
- package/dist/db-ux/p-71cb932e.entry.js +2 -0
- package/dist/db-ux/p-71cb932e.entry.js.map +1 -0
- package/dist/db-ux/p-78e5293a.entry.js +2 -0
- package/dist/db-ux/p-78e5293a.entry.js.map +1 -0
- package/dist/db-ux/p-79b43b42.entry.js +2 -0
- package/dist/db-ux/p-79b43b42.entry.js.map +1 -0
- package/dist/db-ux/p-79d9caa7.entry.js +2 -0
- package/dist/db-ux/p-79d9caa7.entry.js.map +1 -0
- package/dist/db-ux/p-871805e1.entry.js +2 -0
- package/dist/db-ux/p-871805e1.entry.js.map +1 -0
- package/dist/db-ux/p-8e2a086b.entry.js +2 -0
- package/dist/db-ux/p-8e2a086b.entry.js.map +1 -0
- package/dist/db-ux/p-99d90022.js +2 -0
- package/dist/db-ux/p-99d90022.js.map +1 -0
- package/dist/db-ux/p-a3be13fd.entry.js +2 -0
- package/dist/db-ux/p-a3be13fd.entry.js.map +1 -0
- package/dist/db-ux/p-a494046c.entry.js +2 -0
- package/dist/db-ux/p-a494046c.entry.js.map +1 -0
- package/dist/db-ux/p-ab8a1944.entry.js +2 -0
- package/dist/db-ux/p-ab8a1944.entry.js.map +1 -0
- package/dist/db-ux/p-af3834b6.js +2 -0
- package/dist/db-ux/p-af3834b6.js.map +1 -0
- package/dist/db-ux/p-b0f1a571.entry.js +2 -0
- package/dist/db-ux/p-b0f1a571.entry.js.map +1 -0
- package/dist/db-ux/p-b47af6eb.entry.js +2 -0
- package/dist/db-ux/p-b47af6eb.entry.js.map +1 -0
- package/dist/db-ux/p-c6d54dd4.entry.js +2 -0
- package/dist/db-ux/p-c6d54dd4.entry.js.map +1 -0
- package/dist/db-ux/p-d48f3770.entry.js +2 -0
- package/dist/db-ux/p-d48f3770.entry.js.map +1 -0
- package/dist/db-ux/p-e1255160.js +2 -0
- package/dist/db-ux/p-e1255160.js.map +1 -0
- package/dist/db-ux/p-f65f4eac.entry.js +2 -0
- package/dist/db-ux/p-f65f4eac.entry.js.map +1 -0
- package/dist/db-ux/p-fea6db86.entry.js +2 -0
- package/dist/db-ux/p-fea6db86.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/constants-745cf8d7.js +91 -0
- package/dist/esm/constants-745cf8d7.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +69 -0
- package/dist/esm/db-accordion-item.entry.js.map +1 -0
- package/dist/esm/db-accordion.entry.js +126 -0
- package/dist/esm/db-accordion.entry.js.map +1 -0
- package/dist/esm/db-badge.entry.js +71 -0
- package/dist/esm/db-badge.entry.js.map +1 -0
- package/dist/esm/db-brand.entry.js +54 -0
- package/dist/esm/db-brand.entry.js.map +1 -0
- package/dist/esm/db-button.entry.js +58 -0
- package/dist/esm/db-button.entry.js.map +1 -0
- package/dist/esm/db-card.entry.js +58 -0
- package/dist/esm/db-card.entry.js.map +1 -0
- package/dist/esm/db-checkbox.entry.js +145 -0
- package/dist/esm/db-checkbox.entry.js.map +1 -0
- package/dist/esm/db-divider.entry.js +52 -0
- package/dist/esm/db-divider.entry.js.map +1 -0
- package/dist/esm/db-drawer.entry.js +104 -0
- package/dist/esm/db-drawer.entry.js.map +1 -0
- package/dist/esm/db-header.entry.js +85 -0
- package/dist/esm/db-header.entry.js.map +1 -0
- package/dist/esm/db-icon.entry.js +52 -0
- package/dist/esm/db-icon.entry.js.map +1 -0
- package/dist/esm/db-infotext.entry.js +53 -0
- package/dist/esm/db-infotext.entry.js.map +1 -0
- package/dist/esm/db-input.entry.js +153 -0
- package/dist/esm/db-input.entry.js.map +1 -0
- package/dist/esm/db-link.entry.js +59 -0
- package/dist/esm/db-link.entry.js.map +1 -0
- package/dist/esm/db-navigation-item.entry.js +98 -0
- package/dist/esm/db-navigation-item.entry.js.map +1 -0
- package/dist/esm/db-navigation.entry.js +55 -0
- package/dist/esm/db-navigation.entry.js.map +1 -0
- package/dist/esm/db-notification.entry.js +60 -0
- package/dist/esm/db-notification.entry.js.map +1 -0
- package/dist/esm/db-page.entry.js +69 -0
- package/dist/esm/db-page.entry.js.map +1 -0
- package/dist/esm/db-popover.entry.js +109 -0
- package/dist/esm/db-popover.entry.js.map +1 -0
- package/dist/esm/db-radio.entry.js +94 -0
- package/dist/esm/db-radio.entry.js.map +1 -0
- package/dist/esm/db-section.entry.js +55 -0
- package/dist/esm/db-section.entry.js.map +1 -0
- package/dist/esm/db-select.entry.js +166 -0
- package/dist/esm/db-select.entry.js.map +1 -0
- package/dist/esm/db-stack.entry.js +52 -0
- package/dist/esm/db-stack.entry.js.map +1 -0
- package/dist/esm/db-switch.entry.js +87 -0
- package/dist/esm/db-switch.entry.js.map +1 -0
- package/dist/esm/db-tab-item_3.entry.js +169 -0
- package/dist/esm/db-tab-item_3.entry.js.map +1 -0
- package/dist/esm/db-tabs.entry.js +169 -0
- package/dist/esm/db-tabs.entry.js.map +1 -0
- package/dist/esm/db-tag.entry.js +79 -0
- package/dist/esm/db-tag.entry.js.map +1 -0
- package/dist/esm/db-textarea.entry.js +140 -0
- package/dist/esm/db-textarea.entry.js.map +1 -0
- package/dist/esm/db-tooltip.entry.js +82 -0
- package/dist/esm/db-tooltip.entry.js.map +1 -0
- package/dist/esm/db-ux.js +22 -0
- package/dist/esm/db-ux.js.map +1 -0
- package/dist/esm/index-5be50117.js +1468 -0
- package/dist/esm/index-5be50117.js.map +1 -0
- package/dist/esm/index-fad99efc.js +153 -0
- package/dist/esm/index-fad99efc.js.map +1 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/navigation-9fec9921.js +137 -0
- package/dist/esm/navigation-9fec9921.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/components/accordion/accordion.d.ts +29 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/accordion/model.d.ts +41 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +27 -0
- package/dist/types/components/accordion-item/index.d.ts +2 -0
- package/dist/types/components/accordion-item/model.d.ts +24 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/index.d.ts +2 -0
- package/dist/types/components/badge/model.d.ts +16 -0
- package/dist/types/components/brand/brand.d.ts +22 -0
- package/dist/types/components/brand/index.d.ts +2 -0
- package/dist/types/components/brand/model.d.ts +10 -0
- package/dist/types/components/button/button.d.ts +37 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +52 -0
- package/dist/types/components/card/card.d.ts +24 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/card/model.d.ts +18 -0
- package/dist/types/components/checkbox/checkbox.d.ts +51 -0
- package/dist/types/components/checkbox/index.d.ts +2 -0
- package/dist/types/components/checkbox/model.d.ts +10 -0
- package/dist/types/components/divider/divider.d.ts +22 -0
- package/dist/types/components/divider/index.d.ts +2 -0
- package/dist/types/components/divider/model.d.ts +18 -0
- package/dist/types/components/drawer/drawer.d.ts +32 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/drawer/model.d.ts +41 -0
- package/dist/types/components/header/header.d.ts +32 -0
- package/dist/types/components/header/index.d.ts +2 -0
- package/dist/types/components/header/model.d.ts +44 -0
- package/dist/types/components/icon/icon.d.ts +22 -0
- package/dist/types/components/icon/index.d.ts +2 -0
- package/dist/types/components/icon/model.d.ts +12 -0
- package/dist/types/components/infotext/index.d.ts +2 -0
- package/dist/types/components/infotext/infotext.d.ts +23 -0
- package/dist/types/components/infotext/model.d.ts +5 -0
- package/dist/types/components/input/index.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +71 -0
- package/dist/types/components/input/model.d.ts +39 -0
- package/dist/types/components/link/index.d.ts +2 -0
- package/dist/types/components/link/link.d.ts +35 -0
- package/dist/types/components/link/model.d.ts +24 -0
- package/dist/types/components/navigation/index.d.ts +2 -0
- package/dist/types/components/navigation/model.d.ts +5 -0
- package/dist/types/components/navigation/navigation.d.ts +20 -0
- package/dist/types/components/navigation-item/index.d.ts +2 -0
- package/dist/types/components/navigation-item/model.d.ts +34 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +39 -0
- package/dist/types/components/notification/index.d.ts +2 -0
- package/dist/types/components/notification/model.d.ts +57 -0
- package/dist/types/components/notification/notification.d.ts +36 -0
- package/dist/types/components/page/index.d.ts +2 -0
- package/dist/types/components/page/model.d.ts +32 -0
- package/dist/types/components/page/page.d.ts +24 -0
- package/dist/types/components/popover/index.d.ts +2 -0
- package/dist/types/components/popover/model.d.ts +18 -0
- package/dist/types/components/popover/popover.d.ts +31 -0
- package/dist/types/components/radio/index.d.ts +2 -0
- package/dist/types/components/radio/model.d.ts +7 -0
- package/dist/types/components/radio/radio.d.ts +41 -0
- package/dist/types/components/section/index.d.ts +2 -0
- package/dist/types/components/section/model.d.ts +5 -0
- package/dist/types/components/section/section.d.ts +21 -0
- package/dist/types/components/select/index.d.ts +2 -0
- package/dist/types/components/select/model.d.ts +43 -0
- package/dist/types/components/select/select.d.ts +62 -0
- package/dist/types/components/stack/index.d.ts +2 -0
- package/dist/types/components/stack/model.d.ts +34 -0
- package/dist/types/components/stack/stack.d.ts +24 -0
- package/dist/types/components/switch/index.d.ts +2 -0
- package/dist/types/components/switch/model.d.ts +12 -0
- package/dist/types/components/switch/switch.d.ts +44 -0
- package/dist/types/components/tab-item/index.d.ts +2 -0
- package/dist/types/components/tab-item/model.d.ts +24 -0
- package/dist/types/components/tab-item/tab-item.d.ts +34 -0
- package/dist/types/components/tab-list/index.d.ts +2 -0
- package/dist/types/components/tab-list/model.d.ts +5 -0
- package/dist/types/components/tab-list/tab-list.d.ts +19 -0
- package/dist/types/components/tab-panel/index.d.ts +2 -0
- package/dist/types/components/tab-panel/model.d.ts +10 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +20 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/model.d.ts +47 -0
- package/dist/types/components/tabs/tabs.d.ts +39 -0
- package/dist/types/components/tag/index.d.ts +2 -0
- package/dist/types/components/tag/model.d.ts +45 -0
- package/dist/types/components/tag/tag.d.ts +34 -0
- package/dist/types/components/textarea/index.d.ts +2 -0
- package/dist/types/components/textarea/model.d.ts +30 -0
- package/dist/types/components/textarea/textarea.d.ts +63 -0
- package/dist/types/components/tooltip/index.d.ts +2 -0
- package/dist/types/components/tooltip/model.d.ts +7 -0
- package/dist/types/components/tooltip/tooltip.d.ts +30 -0
- package/dist/types/components.d.ts +1479 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/shared/constants.d.ts +83 -0
- package/dist/types/shared/model.d.ts +445 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/utils/form-components.d.ts +2 -0
- package/dist/types/utils/index.d.ts +61 -0
- package/dist/types/utils/navigation.d.ts +32 -0
- package/dist/vscode.html-custom-data.json +2245 -0
- package/dist/web-types.json +3991 -0
- package/package.json +48 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { addAttributeToChildren, cls, uuid } from "../../utils";
|
|
2
|
+
import { DEFAULT_BURGER_MENU, DEFAULT_ID } from "../../shared/constants";
|
|
3
|
+
import { isEventTargetNavigationItem } from "../../utils/navigation";
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
/**
|
|
6
|
+
* @slot children - This is a default/unnamed slot
|
|
7
|
+
* @slot metaNavigation - TODO: Add description for slotMetaNavigation
|
|
8
|
+
* @slot secondaryAction - TODO: Add description for slotSecondaryAction
|
|
9
|
+
* @slot brand - TODO: Add description for slotBrand
|
|
10
|
+
* @slot primaryAction - TODO: Add description for slotPrimaryAction
|
|
11
|
+
*/
|
|
12
|
+
export class DBHeader {
|
|
13
|
+
constructor() {
|
|
14
|
+
this._id = DEFAULT_ID;
|
|
15
|
+
this.initialized = false;
|
|
16
|
+
this.forcedToMobile = false;
|
|
17
|
+
}
|
|
18
|
+
toggle() {
|
|
19
|
+
if (this.onToggle) {
|
|
20
|
+
this.onToggle.emit(!this.drawerOpen);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
handleNavigationItemClick(event) {
|
|
24
|
+
if (isEventTargetNavigationItem(event)) {
|
|
25
|
+
this.toggle();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
30
|
+
* @param element the ref for the component
|
|
31
|
+
* @param customElementSelector the custom element like `my-component`
|
|
32
|
+
*/
|
|
33
|
+
enableAttributePassing(element, customElementSelector) {
|
|
34
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
35
|
+
if (element && parent) {
|
|
36
|
+
const attributes = parent.attributes;
|
|
37
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
38
|
+
const attr = attributes.item(i);
|
|
39
|
+
if (attr &&
|
|
40
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
41
|
+
element.setAttribute(attr.name, attr.value);
|
|
42
|
+
parent.removeAttribute(attr.name);
|
|
43
|
+
}
|
|
44
|
+
if (attr && attr.name === "class") {
|
|
45
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
46
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
47
|
+
const currentClass = element.getAttribute("class");
|
|
48
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
49
|
+
if (isWebComponent) {
|
|
50
|
+
// Stencil is using this class for lazy loading component
|
|
51
|
+
parent.setAttribute("class", "hydrated");
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
parent.removeAttribute(attr.name);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
componentDidLoad() {
|
|
61
|
+
this.enableAttributePassing(this._ref, "db-header");
|
|
62
|
+
this.initialized = true;
|
|
63
|
+
this._id = this.id || "header-" + uuid();
|
|
64
|
+
}
|
|
65
|
+
componentDidUpdate() {
|
|
66
|
+
if (this.initialized && document && this._id && this.forceMobile) {
|
|
67
|
+
const headerElement = document.getElementById(this._id);
|
|
68
|
+
if (headerElement) {
|
|
69
|
+
// Adds this attribute to the header to enable all styling which would have
|
|
70
|
+
// @media screen and (min-width: $db-screens-m) to show mobile navigation on a desktop device
|
|
71
|
+
addAttributeToChildren(headerElement, {
|
|
72
|
+
key: "data-force-mobile",
|
|
73
|
+
value: "true",
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
this.forcedToMobile = true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
var _a;
|
|
81
|
+
return (h("header", { key: '90e4860c36a39e77aa080e188c190d8213e05f31', class: cls("db-header", this.className), ref: (el) => {
|
|
82
|
+
this._ref = el;
|
|
83
|
+
}, id: this._id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'baab2ea24ee50f1c57cdeee348a32a0bfe727181', class: "db-header-drawer", spacing: "small", rounded: true, open: this.drawerOpen, onClose: () => this.toggle() }, h("div", { key: '04227e024f8aa835274b00edeb729f248b843432', class: "db-header-drawer-navigation" }, h("div", { key: '49255007dd63d0f48c403c6ea6982e29cb3be8ce', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '52b2c8cea483255cebf7bbf824e490a2805c0812' })), h("div", { key: 'd53b476dd0eb375a91571ed8b25f09533952b7ac', class: "db-header-meta-navigation" }, h("slot", { key: 'd7aca8fa660affa66857c78c70bf6d3bb6baf577', name: "metaNavigation" }))), h("div", { key: '1baa944ea37df34349cafe83ff9601a96b2f3845', class: "db-header-secondary-action" }, h("slot", { key: '2df7106c6096adb6642a58d2afd865babb9a2aed', name: "secondaryAction" }))), h("div", { key: '3444df8cd284cf2f09fe8bcd561605eed25547ac', class: "db-header-meta-navigation" }, h("slot", { key: 'b3cdfb520b9bfaa69586c6d9d397b2564962e38e', name: "metaNavigation" })), h("div", { key: 'e6f467e4e541179d37d30acc045261a007cf65d1', class: "db-header-navigation-bar" }, h("div", { key: '5c6f78bcd3516b699a5f2b0c9c26a6142f6c534b', class: "db-header-brand-container" }, h("slot", { key: '9fb25e7cdc3c44e1b7a388083c1e16ec66bcd100', name: "brand" })), h("div", { key: 'a59204c004f0e03aaa7cf6190c304db448f9783e', class: "db-header-navigation-container" }, h("div", { key: '7a4c5ab818ba78209bc63a6baecb9f0460355d0b', class: "db-header-navigation" }, h("slot", { key: '799cbf46a06b87f8c2c7a42f17a0f2c23c65481f' })), h("div", { key: '756293dd8ecfff883cb90cc1ba904503beea77eb', class: "db-header-primary-action" }, h("slot", { key: '181fa4b77a2c10bf091a6690b97d4e665d4fd824', name: "primaryAction" }))), h("div", { key: '0ba2601633b491a60b33166253a7da6695249c0a', class: "db-header-action-container" }, h("div", { key: '21d5d4145aa40c14c475b9f9d72d0ce885aff81e', class: "db-header-burger-menu-container" }, h("db-button", { key: '732bb354bbb363b32365215f2db1f25b3a54cee3', icon: "menu", variant: "ghost", id: this._id + "-burger-menu", noText: true, onClick: () => this.toggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: 'c9e3f15b97eabaf94dcaee166f7d0e31577ade58', class: "db-header-secondary-action" }, h("slot", { key: '5e783e8c6347e28264f466829cd495973a6d23d8', name: "secondaryAction" }))))));
|
|
84
|
+
}
|
|
85
|
+
static get is() { return "db-header"; }
|
|
86
|
+
static get properties() {
|
|
87
|
+
return {
|
|
88
|
+
"id": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "DBHeaderProps[\"id\"]",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {
|
|
95
|
+
"DBHeaderProps": {
|
|
96
|
+
"location": "import",
|
|
97
|
+
"path": "./model",
|
|
98
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
110
|
+
"attribute": "id",
|
|
111
|
+
"reflect": false
|
|
112
|
+
},
|
|
113
|
+
"forceMobile": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "DBHeaderProps[\"forceMobile\"]",
|
|
118
|
+
"resolved": "boolean",
|
|
119
|
+
"references": {
|
|
120
|
+
"DBHeaderProps": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "./model",
|
|
123
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
135
|
+
"attribute": "force-mobile",
|
|
136
|
+
"reflect": false
|
|
137
|
+
},
|
|
138
|
+
"drawerOpen": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "DBHeaderProps[\"drawerOpen\"]",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {
|
|
145
|
+
"DBHeaderProps": {
|
|
146
|
+
"location": "import",
|
|
147
|
+
"path": "./model",
|
|
148
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": false,
|
|
153
|
+
"optional": false,
|
|
154
|
+
"docs": {
|
|
155
|
+
"tags": [],
|
|
156
|
+
"text": ""
|
|
157
|
+
},
|
|
158
|
+
"getter": false,
|
|
159
|
+
"setter": false,
|
|
160
|
+
"attribute": "drawer-open",
|
|
161
|
+
"reflect": false
|
|
162
|
+
},
|
|
163
|
+
"className": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "DBHeaderProps[\"className\"]",
|
|
168
|
+
"resolved": "string",
|
|
169
|
+
"references": {
|
|
170
|
+
"DBHeaderProps": {
|
|
171
|
+
"location": "import",
|
|
172
|
+
"path": "./model",
|
|
173
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": ""
|
|
182
|
+
},
|
|
183
|
+
"getter": false,
|
|
184
|
+
"setter": false,
|
|
185
|
+
"attribute": "classname",
|
|
186
|
+
"reflect": false
|
|
187
|
+
},
|
|
188
|
+
"width": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "DBHeaderProps[\"width\"]",
|
|
193
|
+
"resolved": "\"full\" | \"large\" | \"medium\" | \"small\"",
|
|
194
|
+
"references": {
|
|
195
|
+
"DBHeaderProps": {
|
|
196
|
+
"location": "import",
|
|
197
|
+
"path": "./model",
|
|
198
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
210
|
+
"attribute": "width",
|
|
211
|
+
"reflect": false
|
|
212
|
+
},
|
|
213
|
+
"burgerMenuLabel": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "DBHeaderProps[\"burgerMenuLabel\"]",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {
|
|
220
|
+
"DBHeaderProps": {
|
|
221
|
+
"location": "import",
|
|
222
|
+
"path": "./model",
|
|
223
|
+
"id": "src/components/header/model.ts::DBHeaderProps"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": false,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": ""
|
|
232
|
+
},
|
|
233
|
+
"getter": false,
|
|
234
|
+
"setter": false,
|
|
235
|
+
"attribute": "burger-menu-label",
|
|
236
|
+
"reflect": false
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
static get states() {
|
|
241
|
+
return {
|
|
242
|
+
"_id": {},
|
|
243
|
+
"initialized": {},
|
|
244
|
+
"forcedToMobile": {}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
static get events() {
|
|
248
|
+
return [{
|
|
249
|
+
"method": "onToggle",
|
|
250
|
+
"name": "onToggle",
|
|
251
|
+
"bubbles": true,
|
|
252
|
+
"cancelable": true,
|
|
253
|
+
"composed": true,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": ""
|
|
257
|
+
},
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "any",
|
|
260
|
+
"resolved": "any",
|
|
261
|
+
"references": {}
|
|
262
|
+
}
|
|
263
|
+
}];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/components/header/header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;;;;GAMG;AAIH,MAAM,OAAO,QAAQ;IAHpB;QAaU,QAAG,GAAG,UAAU,CAAC;QACjB,gBAAW,GAAG,KAAK,CAAC;QACpB,mBAAc,GAAG,KAAK,CAAC;KA8IjC;IA5IC,MAAM;QACJ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IACD,yBAAyB,CAAC,KAAc;QACtC,IAAI,2BAA2B,CAAC,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBHeaderProps, DBHeaderState } from \"./model\";\nimport { addAttributeToChildren, cls, uuid } from \"../../utils\";\nimport { DBButton } from \"../button/button\";\nimport { DBDrawer } from \"../drawer/drawer\";\nimport { DEFAULT_BURGER_MENU, DEFAULT_ID } from \"../../shared/constants\";\nimport { isEventTargetNavigationItem } from \"../../utils/navigation\";\n\nimport { Component, h, Fragment, Event, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot metaNavigation - TODO: Add description for slotMetaNavigation\n * @slot secondaryAction - TODO: Add description for slotSecondaryAction\n * @slot brand - TODO: Add description for slotBrand\n * @slot primaryAction - TODO: Add description for slotPrimaryAction\n */\n @Component({\n tag: \"db-header\",\n})\nexport class DBHeader {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBHeaderProps[\"id\"];\n @Prop() forceMobile: DBHeaderProps[\"forceMobile\"];\n @Event() onToggle: any;\n @Prop() drawerOpen: DBHeaderProps[\"drawerOpen\"];\n @Prop({attribute: \"classname\"}) className: DBHeaderProps[\"className\"];\n @Prop() width: DBHeaderProps[\"width\"];\n\n @Prop() burgerMenuLabel: DBHeaderProps[\"burgerMenuLabel\"];\n @State() _id = DEFAULT_ID;\n @State() initialized = false;\n @State() forcedToMobile = false;\n\n toggle() {\n if (this.onToggle) {\n this.onToggle.emit(!this.drawerOpen);\n }\n }\n handleNavigationItemClick(event: unknown) {\n if (isEventTargetNavigationItem(event)) {\n this.toggle();\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-header\");\n this.initialized = true;\n this._id = this.id || \"header-\" + uuid();\n }\n\n componentDidUpdate() {\n if (this.initialized && document && this._id && this.forceMobile) {\n const headerElement = document.getElementById(this._id) as HTMLElement;\n if (headerElement) {\n // Adds this attribute to the header to enable all styling which would have\n // @media screen and (min-width: $db-screens-m) to show mobile navigation on a desktop device\n addAttributeToChildren(headerElement, {\n key: \"data-force-mobile\",\n value: \"true\",\n });\n }\n this.forcedToMobile = true;\n }\n }\n\n render() {\n return (\n <header\n class={cls(\"db-header\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-width={this.width}\n data-on-forcing-mobile={this.forceMobile && !this.forcedToMobile}\n >\n <db-drawer\n class=\"db-header-drawer\"\n spacing=\"small\"\n rounded={true}\n open={this.drawerOpen}\n onClose={() => this.toggle()}\n >\n <div class=\"db-header-drawer-navigation\">\n <div\n class=\"db-header-navigation\"\n onClick={(event) => this.handleNavigationItemClick(event)}\n >\n <slot></slot>\n </div>\n <div class=\"db-header-meta-navigation\">\n <slot name=\"metaNavigation\"></slot>\n </div>\n </div>\n <div class=\"db-header-secondary-action\">\n <slot name=\"secondaryAction\"></slot>\n </div>\n </db-drawer>\n <div class=\"db-header-meta-navigation\">\n <slot name=\"metaNavigation\"></slot>\n </div>\n <div class=\"db-header-navigation-bar\">\n <div class=\"db-header-brand-container\">\n <slot name=\"brand\"></slot>\n </div>\n <div class=\"db-header-navigation-container\">\n <div class=\"db-header-navigation\">\n <slot></slot>\n </div>\n <div class=\"db-header-primary-action\">\n <slot name=\"primaryAction\"></slot>\n </div>\n </div>\n <div class=\"db-header-action-container\">\n <div class=\"db-header-burger-menu-container\">\n <db-button\n icon=\"menu\"\n variant=\"ghost\"\n id={this._id + \"-burger-menu\"}\n noText={true}\n onClick={() => this.toggle()}\n >\n {this.burgerMenuLabel ?? DEFAULT_BURGER_MENU}\n </db-button>\n </div>\n <div class=\"db-header-secondary-action\">\n <slot name=\"secondaryAction\"></slot>\n </div>\n </div>\n </div>\n </header>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAe,QAAQ,CAAC","sourcesContent":["import { DBHeader } from './header';\n\nexport default DBHeader;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/header/model.ts"],"names":[],"mappings":"","sourcesContent":["import { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';\nexport type DBHeaderDefaultProps = {\n /**\n * Slot to pass in the DBBrand component\n */\n brand?: any;\n /**\n * Slot to pass in a meta navigation.\n * Desktop: Above the regular header\n * Mobile: Inside the drawer\n */\n metaNavigation?: any;\n /**\n * Slot to pass one or more elements like DBButton (e.g. search) as primary action.\n * Desktop: Shown next to the main-navigation\n * Mobile: Shown next to the brand\n */\n primaryAction?: any;\n /**\n * Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.\n * Desktop: Shown seperated by divider at the end of the header\n * Mobile: Shown inside the drawer at the bottom.\n */\n secondaryAction?: any;\n\n /**\n * Open/closes the drawer for mobile header or if `forceMobile` is true.\n */\n drawerOpen?: boolean;\n\n /**\n * Forces the header to use mobile layout for desktop as well.\n * You should only use this setting if you really can't provide a smaller navigation.\n * Overwrite size of the drawer with '--db-drawer-max-width: xxx'\n */\n forceMobile?: boolean;\n\n /**\n * This attribute sets the label for the burger menu button for mobile headers.\n */\n burgerMenuLabel?: string;\n};\nexport type DBHeaderProps = DBHeaderDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps;\nexport type DBHeaderDefaultState = {\n forcedToMobile?: boolean;\n};\nexport type DBHeaderState = DBHeaderDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NavigationBehaviorState"]}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { cls } from "../../utils";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
|
+
/**
|
|
4
|
+
* @slot children - This is a default/unnamed slot
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
export class DBIcon {
|
|
8
|
+
/**
|
|
9
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
10
|
+
* @param element the ref for the component
|
|
11
|
+
* @param customElementSelector the custom element like `my-component`
|
|
12
|
+
*/
|
|
13
|
+
enableAttributePassing(element, customElementSelector) {
|
|
14
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
15
|
+
if (element && parent) {
|
|
16
|
+
const attributes = parent.attributes;
|
|
17
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
18
|
+
const attr = attributes.item(i);
|
|
19
|
+
if (attr &&
|
|
20
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
|
+
element.setAttribute(attr.name, attr.value);
|
|
22
|
+
parent.removeAttribute(attr.name);
|
|
23
|
+
}
|
|
24
|
+
if (attr && attr.name === "class") {
|
|
25
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
26
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
27
|
+
const currentClass = element.getAttribute("class");
|
|
28
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
29
|
+
if (isWebComponent) {
|
|
30
|
+
// Stencil is using this class for lazy loading component
|
|
31
|
+
parent.setAttribute("class", "hydrated");
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
parent.removeAttribute(attr.name);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
componentDidLoad() {
|
|
41
|
+
this.enableAttributePassing(this._ref, "db-icon");
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h("span", { key: '37462bfe90d8348f3ddaf4600ba12c12ae5f4756', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
45
|
+
this._ref = el;
|
|
46
|
+
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
47
|
+
}
|
|
48
|
+
static get is() { return "db-icon"; }
|
|
49
|
+
static get properties() {
|
|
50
|
+
return {
|
|
51
|
+
"id": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "DBIconProps[\"id\"]",
|
|
56
|
+
"resolved": "string",
|
|
57
|
+
"references": {
|
|
58
|
+
"DBIconProps": {
|
|
59
|
+
"location": "import",
|
|
60
|
+
"path": "./model",
|
|
61
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": ""
|
|
70
|
+
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
73
|
+
"attribute": "id",
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
76
|
+
"className": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "DBIconProps[\"className\"]",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {
|
|
83
|
+
"DBIconProps": {
|
|
84
|
+
"location": "import",
|
|
85
|
+
"path": "./model",
|
|
86
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"attribute": "classname",
|
|
99
|
+
"reflect": false
|
|
100
|
+
},
|
|
101
|
+
"icon": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "DBIconProps[\"icon\"]",
|
|
106
|
+
"resolved": "BaseIconTypes | LooseAutocomplete",
|
|
107
|
+
"references": {
|
|
108
|
+
"DBIconProps": {
|
|
109
|
+
"location": "import",
|
|
110
|
+
"path": "./model",
|
|
111
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"getter": false,
|
|
122
|
+
"setter": false,
|
|
123
|
+
"attribute": "icon",
|
|
124
|
+
"reflect": false
|
|
125
|
+
},
|
|
126
|
+
"weight": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "DBIconProps[\"weight\"]",
|
|
131
|
+
"resolved": "\"16\" | \"20\" | \"24\" | \"32\" | \"48\" | \"64\"",
|
|
132
|
+
"references": {
|
|
133
|
+
"DBIconProps": {
|
|
134
|
+
"location": "import",
|
|
135
|
+
"path": "./model",
|
|
136
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
},
|
|
146
|
+
"getter": false,
|
|
147
|
+
"setter": false,
|
|
148
|
+
"attribute": "weight",
|
|
149
|
+
"reflect": false
|
|
150
|
+
},
|
|
151
|
+
"variant": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "DBIconProps[\"variant\"]",
|
|
156
|
+
"resolved": "\"default\" | \"filled\" | \"inverted\"",
|
|
157
|
+
"references": {
|
|
158
|
+
"DBIconProps": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "./model",
|
|
161
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
173
|
+
"attribute": "variant",
|
|
174
|
+
"reflect": false
|
|
175
|
+
},
|
|
176
|
+
"text": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "DBIconProps[\"text\"]",
|
|
181
|
+
"resolved": "string",
|
|
182
|
+
"references": {
|
|
183
|
+
"DBIconProps": {
|
|
184
|
+
"location": "import",
|
|
185
|
+
"path": "./model",
|
|
186
|
+
"id": "src/components/icon/model.ts::DBIconProps"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false,
|
|
198
|
+
"attribute": "text",
|
|
199
|
+
"reflect": false
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,MAAM,eAAe,CAAC;AAG7D;;;GAGG;AAIH,MAAM,OAAO,MAAM;IAUjB;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI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C,IAAI,CAAC,CAAC,CAAC,eAAa,CACjC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import type { DBIconProps, DBIconState } from \"./model\";\nimport { cls } from \"../../utils\";\n\nimport { Component, h, Fragment, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-icon\",\n})\nexport class DBIcon {\n private _ref!: HTMLSpanElement | null;\n @Prop() id: DBIconProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBIconProps[\"className\"];\n @Prop() icon: DBIconProps[\"icon\"];\n @Prop() weight: DBIconProps[\"weight\"];\n @Prop() variant: DBIconProps[\"variant\"];\n @Prop() text: DBIconProps[\"text\"];\n\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-icon\");\n }\n\n render() {\n return (\n <span\n class={cls(\"db-icon\", this.className)}\n aria-hidden=\"true\"\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-icon={this.icon}\n data-icon-weight={this.weight}\n data-icon-variant={this.variant}\n >\n {this.text ? this.text : <slot></slot>}\n </span>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAe,MAAM,CAAC","sourcesContent":["import { DBIcon } from './icon';\n\nexport default DBIcon;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/icon/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,eAAe,GAAI,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAW,CAAC;AAE5E,MAAM,CAAC,MAAM,cAAc,GAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAW,CAAC","sourcesContent":["import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';\nexport const IconVariantList = (['default', 'inverted', 'filled'] as const);\nexport type IconVariantType = (typeof IconVariantList)[number];\nexport const IconWeightList = (['16', '20', '24', '32', '48', '64'] as const);\nexport type IconWeightType = (typeof IconWeightList)[number];\nexport type DBIconDefaultProps = {\n variant?: IconVariantType;\n weight?: IconWeightType;\n};\nexport type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;\nexport type DBIconDefaultState = {};\nexport type DBIconState = DBIconDefaultState & GlobalState"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/infotext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,eAAe,UAAU,CAAC","sourcesContent":["import { DBInfotext } from './infotext';\n\nexport default DBInfotext;"]}
|