@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 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,KAAK,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,IAAI,GACL,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,aAAa,EACb,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBTextareaProps, DBTextareaState } from \"./model\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport {\n cls,\n delay,\n getHideProp,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_LABEL,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_PLACEHOLDER,\n DEFAULT_ROWS,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\n\nimport { Component, h, Fragment, Event, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | null;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Event() onInput: any;\n @Prop() input: DBTextareaProps[\"input\"];\n @Event() onChange: any;\n @Prop() change: DBTextareaProps[\"change\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Event() onBlur: any;\n @Prop() blur: DBTextareaProps[\"blur\"];\n @Event() onFocus: any;\n @Prop() focus: DBTextareaProps[\"focus\"];\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _descByIds = \"\";\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n if (this.onInput) {\n this.onInput.emit(event);\n }\n if (this.input) {\n this.input(event);\n }\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n if (this.onChange) {\n this.onChange.emit(event);\n }\n if (this.change) {\n this.change(event);\n }\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback =\n this.invalidMessage ??\n this._ref?.validationMessage ??\n DEFAULT_INVALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.validation === \"valid\" ||\n (this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength))\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement>) {\n if (this.onBlur) {\n this.onBlur.emit(event);\n }\n if (this.blur) {\n this.blur(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement>) {\n if (this.onFocus) {\n this.onFocus.emit(event);\n }\n if (this.focus) {\n this.focus(event);\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: HTMLTextAreaElement | 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-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n }\n\n componentDidUpdate() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n this._value = this.value;\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n disabled={this.disabled}\n required={this.required}\n readOnly={this.readOnly}\n form={this.form}\n maxLength={this.maxLength}\n minLength={this.minLength}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={this.rows ?? DEFAULT_ROWS}\n cols={this.cols}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage ?? DEFAULT_VALID_MESSAGE}\n </db-infotext>\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this.invalidMessage ??\n this._ref?.validationMessage ??\n DEFAULT_INVALID_MESSAGE}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,eAAe,SAAS,CAAC","sourcesContent":["import { DBTooltip } from './tooltip';\n\nexport default DBTooltip;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/tooltip/model.ts"],"names":[],"mappings":"","sourcesContent":["import { ClickEventState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState } from '../../shared/model';\nexport type DBTooltipDefaultProps = {\n showArrow?: boolean;\n};\nexport type DBTooltipProps = DBTooltipDefaultProps & GlobalProps & EmphasisProps & PlacementProps & PopoverProps;\nexport type DBTooltipDefaultState = {};\nexport type DBTooltipState = DBTooltipDefaultState & GlobalState & ClickEventState<HTMLElement> & PopoverState & InitializedState"]}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { cls, getBooleanAsString, handleDataOutside, uuid } from "../../utils";
|
|
2
|
+
import { DEFAULT_ID } from "../../shared/constants";
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
|
+
/**
|
|
5
|
+
* @slot children - This is a default/unnamed slot
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
export class DBTooltip {
|
|
9
|
+
constructor() {
|
|
10
|
+
this._id = DEFAULT_ID;
|
|
11
|
+
this.initialized = false;
|
|
12
|
+
}
|
|
13
|
+
handleClick(event) {
|
|
14
|
+
event.stopPropagation();
|
|
15
|
+
}
|
|
16
|
+
handleAutoPlacement() {
|
|
17
|
+
if (this._ref)
|
|
18
|
+
handleDataOutside(this._ref);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
22
|
+
* @param element the ref for the component
|
|
23
|
+
* @param customElementSelector the custom element like `my-component`
|
|
24
|
+
*/
|
|
25
|
+
enableAttributePassing(element, customElementSelector) {
|
|
26
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
27
|
+
if (element && parent) {
|
|
28
|
+
const attributes = parent.attributes;
|
|
29
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
30
|
+
const attr = attributes.item(i);
|
|
31
|
+
if (attr &&
|
|
32
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
33
|
+
element.setAttribute(attr.name, attr.value);
|
|
34
|
+
parent.removeAttribute(attr.name);
|
|
35
|
+
}
|
|
36
|
+
if (attr && attr.name === "class") {
|
|
37
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
38
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
39
|
+
const currentClass = element.getAttribute("class");
|
|
40
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
41
|
+
if (isWebComponent) {
|
|
42
|
+
// Stencil is using this class for lazy loading component
|
|
43
|
+
parent.setAttribute("class", "hydrated");
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
parent.removeAttribute(attr.name);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
componentDidLoad() {
|
|
53
|
+
this.enableAttributePassing(this._ref, "db-tooltip");
|
|
54
|
+
this._id = this.id || "tooltip-" + uuid();
|
|
55
|
+
this.initialized = true;
|
|
56
|
+
}
|
|
57
|
+
componentDidUpdate() {
|
|
58
|
+
if (this._ref && this.initialized && this._id) {
|
|
59
|
+
let parent = this._ref.parentElement;
|
|
60
|
+
if (parent && parent.localName.includes("tooltip")) {
|
|
61
|
+
// Angular workaround
|
|
62
|
+
parent = parent.parentElement;
|
|
63
|
+
}
|
|
64
|
+
if (parent) {
|
|
65
|
+
["mouseenter", "focus"].forEach((event) => {
|
|
66
|
+
parent.addEventListener(event, () => this.handleAutoPlacement());
|
|
67
|
+
});
|
|
68
|
+
parent.setAttribute("data-has-tooltip", "true");
|
|
69
|
+
parent.setAttribute("aria-describedby", this._id);
|
|
70
|
+
}
|
|
71
|
+
this.initialized = false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return (h("i", { key: '6ffc338ce6bd3a685eeaa74d718377cbcdbcbd61', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
|
|
77
|
+
this._ref = el;
|
|
78
|
+
}, id: this._id, "data-emphasis": this.emphasis, "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, h("slot", { key: '7f70a4a4064efbd8f1df49bcb70e1888cf6188ae' })));
|
|
79
|
+
}
|
|
80
|
+
static get is() { return "db-tooltip"; }
|
|
81
|
+
static get properties() {
|
|
82
|
+
return {
|
|
83
|
+
"id": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "DBTooltipProps[\"id\"]",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {
|
|
90
|
+
"DBTooltipProps": {
|
|
91
|
+
"location": "import",
|
|
92
|
+
"path": "./model",
|
|
93
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"attribute": "id",
|
|
106
|
+
"reflect": false
|
|
107
|
+
},
|
|
108
|
+
"className": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "DBTooltipProps[\"className\"]",
|
|
113
|
+
"resolved": "string",
|
|
114
|
+
"references": {
|
|
115
|
+
"DBTooltipProps": {
|
|
116
|
+
"location": "import",
|
|
117
|
+
"path": "./model",
|
|
118
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"getter": false,
|
|
129
|
+
"setter": false,
|
|
130
|
+
"attribute": "classname",
|
|
131
|
+
"reflect": false
|
|
132
|
+
},
|
|
133
|
+
"emphasis": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "DBTooltipProps[\"emphasis\"]",
|
|
138
|
+
"resolved": "\"strong\" | \"weak\"",
|
|
139
|
+
"references": {
|
|
140
|
+
"DBTooltipProps": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "./model",
|
|
143
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
155
|
+
"attribute": "emphasis",
|
|
156
|
+
"reflect": false
|
|
157
|
+
},
|
|
158
|
+
"animation": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "DBTooltipProps[\"animation\"]",
|
|
163
|
+
"resolved": "boolean",
|
|
164
|
+
"references": {
|
|
165
|
+
"DBTooltipProps": {
|
|
166
|
+
"location": "import",
|
|
167
|
+
"path": "./model",
|
|
168
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": ""
|
|
177
|
+
},
|
|
178
|
+
"getter": false,
|
|
179
|
+
"setter": false,
|
|
180
|
+
"attribute": "animation",
|
|
181
|
+
"reflect": false
|
|
182
|
+
},
|
|
183
|
+
"delay": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "DBTooltipProps[\"delay\"]",
|
|
188
|
+
"resolved": "\"fast\" | \"none\" | \"slow\"",
|
|
189
|
+
"references": {
|
|
190
|
+
"DBTooltipProps": {
|
|
191
|
+
"location": "import",
|
|
192
|
+
"path": "./model",
|
|
193
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": false,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
205
|
+
"attribute": "delay",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"width": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "DBTooltipProps[\"width\"]",
|
|
213
|
+
"resolved": "\"auto\" | \"fixed\"",
|
|
214
|
+
"references": {
|
|
215
|
+
"DBTooltipProps": {
|
|
216
|
+
"location": "import",
|
|
217
|
+
"path": "./model",
|
|
218
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": ""
|
|
227
|
+
},
|
|
228
|
+
"getter": false,
|
|
229
|
+
"setter": false,
|
|
230
|
+
"attribute": "width",
|
|
231
|
+
"reflect": false
|
|
232
|
+
},
|
|
233
|
+
"showArrow": {
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "DBTooltipProps[\"showArrow\"]",
|
|
238
|
+
"resolved": "boolean",
|
|
239
|
+
"references": {
|
|
240
|
+
"DBTooltipProps": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "./model",
|
|
243
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": ""
|
|
252
|
+
},
|
|
253
|
+
"getter": false,
|
|
254
|
+
"setter": false,
|
|
255
|
+
"attribute": "show-arrow",
|
|
256
|
+
"reflect": false
|
|
257
|
+
},
|
|
258
|
+
"placement": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "DBTooltipProps[\"placement\"]",
|
|
263
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
264
|
+
"references": {
|
|
265
|
+
"DBTooltipProps": {
|
|
266
|
+
"location": "import",
|
|
267
|
+
"path": "./model",
|
|
268
|
+
"id": "src/components/tooltip/model.ts::DBTooltipProps"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"required": false,
|
|
273
|
+
"optional": false,
|
|
274
|
+
"docs": {
|
|
275
|
+
"tags": [],
|
|
276
|
+
"text": ""
|
|
277
|
+
},
|
|
278
|
+
"getter": false,
|
|
279
|
+
"setter": false,
|
|
280
|
+
"attribute": "placement",
|
|
281
|
+
"reflect": false
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
static get states() {
|
|
286
|
+
return {
|
|
287
|
+
"_id": {},
|
|
288
|
+
"initialized": {}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,kBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBTooltipProps, DBTooltipState } from \"./model\";\nimport { cls, getBooleanAsString, handleDataOutside, uuid } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\nimport { DEFAULT_ID } from \"../../shared/constants\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-tooltip\",\n})\nexport class DBTooltip {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBTooltipProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBTooltipProps[\"className\"];\n @Prop() emphasis: DBTooltipProps[\"emphasis\"];\n @Prop() animation: DBTooltipProps[\"animation\"];\n @Prop() delay: DBTooltipProps[\"delay\"];\n @Prop() width: DBTooltipProps[\"width\"];\n @Prop() showArrow: DBTooltipProps[\"showArrow\"];\n @Prop() placement: DBTooltipProps[\"placement\"];\n\n @State() _id = DEFAULT_ID;\n @State() initialized = false;\n\n handleClick(event: ClickEvent<HTMLElement>) {\n event.stopPropagation();\n }\n handleAutoPlacement() {\n if (this._ref) handleDataOutside(this._ref);\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-tooltip\");\n this._id = this.id || \"tooltip-\" + uuid();\n this.initialized = true;\n }\n\n componentDidUpdate() {\n if (this._ref && this.initialized && this._id) {\n let parent = this._ref.parentElement;\n if (parent && parent.localName.includes(\"tooltip\")) {\n // Angular workaround\n parent = parent.parentElement;\n }\n if (parent) {\n [\"mouseenter\", \"focus\"].forEach((event) => {\n parent.addEventListener(event, () => this.handleAutoPlacement());\n });\n parent.setAttribute(\"data-has-tooltip\", \"true\");\n parent.setAttribute(\"aria-describedby\", this._id);\n }\n this.initialized = false;\n }\n }\n\n render() {\n return (\n <i\n class={cls(\"db-tooltip\", this.className)}\n role=\"tooltip\"\n aria-hidden=\"true\"\n data-gap=\"true\"\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-emphasis={this.emphasis}\n data-animation={getBooleanAsString(this.animation ?? true)}\n data-delay={this.delay}\n data-width={this.width}\n data-show-arrow={getBooleanAsString(this.showArrow ?? true)}\n data-placement={this.placement}\n onClick={(event) => this.handleClick(event)}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from './components/notification';
|
|
2
|
+
export * from './components/badge';
|
|
3
|
+
export * from './components/brand';
|
|
4
|
+
export * from './components/button';
|
|
5
|
+
export * from './components/card';
|
|
6
|
+
export * from './components/checkbox';
|
|
7
|
+
export * from './components/divider';
|
|
8
|
+
export * from './components/drawer';
|
|
9
|
+
export * from './components/header';
|
|
10
|
+
export * from './components/icon';
|
|
11
|
+
export * from './components/infotext';
|
|
12
|
+
export * from './components/input';
|
|
13
|
+
export * from './components/link';
|
|
14
|
+
export * from './components/page';
|
|
15
|
+
export * from './components/radio';
|
|
16
|
+
export * from './components/section';
|
|
17
|
+
export * from './components/select';
|
|
18
|
+
export * from './components/switch';
|
|
19
|
+
export * from './components/tab-item';
|
|
20
|
+
export * from './components/tag';
|
|
21
|
+
export * from './components/textarea';
|
|
22
|
+
export * from './components/navigation-item';
|
|
23
|
+
export * from './components/accordion';
|
|
24
|
+
export * from './components/accordion-item';
|
|
25
|
+
export * from './components/navigation';
|
|
26
|
+
export * from './components/badge';
|
|
27
|
+
export * from './components/popover';
|
|
28
|
+
export * from './components/tooltip';
|
|
29
|
+
export * from './components/tab-list';
|
|
30
|
+
export * from './components/tabs';
|
|
31
|
+
export * from './components/tab-panel';
|
|
32
|
+
export * from './shared/constants';
|
|
33
|
+
export * from './shared/model';
|
|
34
|
+
export * from './utils/index';
|
|
35
|
+
export * from './utils/navigation';
|
|
36
|
+
export * from './components/stack';
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './components/notification';\nexport * from './components/badge';\nexport * from './components/brand';\nexport * from './components/button';\nexport * from './components/card';\nexport * from './components/checkbox';\nexport * from './components/divider';\nexport * from './components/drawer';\nexport * from './components/header';\nexport * from './components/icon';\nexport * from './components/infotext';\nexport * from './components/input';\nexport * from './components/link';\nexport * from './components/page';\nexport * from './components/radio';\nexport * from './components/section';\nexport * from './components/select';\nexport * from './components/switch';\nexport * from './components/tab-item';\nexport * from './components/tag';\nexport * from './components/textarea';\nexport * from './components/navigation-item';\nexport * from './components/accordion';\nexport * from './components/accordion-item';\nexport * from './components/navigation';\nexport * from './components/badge';\nexport * from './components/popover';\nexport * from './components/tooltip';\nexport * from './components/tab-list';\nexport * from './components/tabs';\nexport * from './components/tab-panel';\nexport * from './shared/constants';\nexport * from './shared/model';\nexport * from './utils/index';\nexport * from './utils/navigation';\nexport * from './components/stack'"]}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export const DEFAULT_ID = 'OVERWRITE_DEFAULT_ID';
|
|
2
|
+
export const DEFAULT_LABEL = 'LABEL SHOULD BE SET';
|
|
3
|
+
export const DEFAULT_PLACEHOLDER = ' ';
|
|
4
|
+
export const DEFAULT_MESSAGE_ID_SUFFIX = '-message';
|
|
5
|
+
export const DEFAULT_VALID_MESSAGE_ID_SUFFIX = '-valid-message';
|
|
6
|
+
export const DEFAULT_INVALID_MESSAGE_ID_SUFFIX = '-invalid-message';
|
|
7
|
+
export const DEFAULT_PLACEHOLDER_ID_SUFFIX = '-placeholder';
|
|
8
|
+
export const DEFAULT_DATALIST_ID_SUFFIX = '-datalist';
|
|
9
|
+
export const DEFAULT_VALID_MESSAGE = 'TODO: Add a validMessage';
|
|
10
|
+
export const DEFAULT_INVALID_MESSAGE = 'TODO: Add an invalidMessage';
|
|
11
|
+
export const DEFAULT_BACK = 'Back';
|
|
12
|
+
export const DEFAULT_BURGER_MENU = 'BurgerMenu';
|
|
13
|
+
export const DEFAULT_ICON = 'brand';
|
|
14
|
+
export const DEFAULT_ROWS = 4;
|
|
15
|
+
export const DEFAULT_CLOSE_BUTTON = 'Close Button';
|
|
16
|
+
export const DENSITY_CONST = 'density';
|
|
17
|
+
export const COLOR_CONST = 'color';
|
|
18
|
+
export var DENSITY;
|
|
19
|
+
(function (DENSITY) {
|
|
20
|
+
DENSITY["FUNCTIONAL"] = "functional";
|
|
21
|
+
DENSITY["REGULAR"] = "regular";
|
|
22
|
+
DENSITY["EXPRESSIVE"] = "expressive";
|
|
23
|
+
})(DENSITY || (DENSITY = {}));
|
|
24
|
+
export const DENSITIES = Object.entries(DENSITY).map(([, value]) => value);
|
|
25
|
+
export var COLOR_SIMPLE;
|
|
26
|
+
(function (COLOR_SIMPLE) {
|
|
27
|
+
COLOR_SIMPLE["PRIMARY"] = "primary";
|
|
28
|
+
})(COLOR_SIMPLE || (COLOR_SIMPLE = {}));
|
|
29
|
+
export var COLOR;
|
|
30
|
+
(function (COLOR) {
|
|
31
|
+
COLOR["NEUTRAL_BG_LEVEL_1"] = "neutral-bg-basic-level-1";
|
|
32
|
+
COLOR["NEUTRAL_BG_LEVEL_2"] = "neutral-bg-basic-level-2";
|
|
33
|
+
COLOR["NEUTRAL_BG_LEVEL_3"] = "neutral-bg-basic-level-3";
|
|
34
|
+
COLOR["NEUTRAL_BG_TRANSPARENT_SEMI"] = "neutral-bg-basic-transparent-semi";
|
|
35
|
+
COLOR["NEUTRAL_BG_TRANSPARENT_FULL"] = "neutral-bg-basic-transparent-full";
|
|
36
|
+
COLOR["BRAND_BG_LEVEL_1"] = "brand-bg-basic-level-1";
|
|
37
|
+
COLOR["BRAND_BG_LEVEL_2"] = "brand-bg-basic-level-2";
|
|
38
|
+
COLOR["BRAND_BG_LEVEL_3"] = "brand-bg-basic-level-3";
|
|
39
|
+
COLOR["BRAND_BG_TRANSPARENT_SEMI"] = "brand-bg-basic-transparent-semi";
|
|
40
|
+
COLOR["BRAND_BG_TRANSPARENT_FULL"] = "brand-bg-basic-transparent-full";
|
|
41
|
+
COLOR["SUCCESSFUL_BG_LEVEL_1"] = "successful-bg-basic-level-1";
|
|
42
|
+
COLOR["SUCCESSFUL_BG_LEVEL_2"] = "successful-bg-basic-level-2";
|
|
43
|
+
COLOR["SUCCESSFUL_BG_LEVEL_3"] = "successful-bg-basic-level-3";
|
|
44
|
+
COLOR["SUCCESSFUL_BG_TRANSPARENT_SEMI"] = "successful-bg-basic-transparent-semi";
|
|
45
|
+
COLOR["SUCCESSFUL_BG_TRANSPARENT_FULL"] = "successful-bg-basic-transparent-full";
|
|
46
|
+
COLOR["CRITICAL_BG_LEVEL_1"] = "critical-bg-basic-level-1";
|
|
47
|
+
COLOR["CRITICAL_BG_LEVEL_2"] = "critical-bg-basic-level-2";
|
|
48
|
+
COLOR["CRITICAL_BG_LEVEL_3"] = "critical-bg-basic-level-3";
|
|
49
|
+
COLOR["CRITICAL_BG_TRANSPARENT_SEMI"] = "critical-bg-basic-transparent-semi";
|
|
50
|
+
COLOR["CRITICAL_BG_TRANSPARENT_Full"] = "critical-bg-basic-transparent-full";
|
|
51
|
+
COLOR["WARNING_BG_LEVEL_1"] = "warning-bg-basic-level-1";
|
|
52
|
+
COLOR["WARNING_BG_LEVEL_2"] = "warning-bg-basic-level-2";
|
|
53
|
+
COLOR["WARNING_BG_LEVEL_3"] = "warning-bg-basic-level-3";
|
|
54
|
+
COLOR["WARNING_BG_TRANSPARENT_SEMI"] = "warning-bg-basic-transparent-semi";
|
|
55
|
+
COLOR["WARNING_BG_TRANSPARENT_FULL"] = "warning-bg-basic-transparent-full";
|
|
56
|
+
COLOR["INFORMATIONAL_BG_LEVEL_1"] = "informational-bg-basic-level-1";
|
|
57
|
+
COLOR["INFORMATIONAL_BG_LEVEL_2"] = "informational-bg-basic-level-2";
|
|
58
|
+
COLOR["INFORMATIONAL_BG_LEVEL_3"] = "informational-bg-basic-level-3";
|
|
59
|
+
COLOR["INFORMATIONAL_BG_TRANSPARENT_SEMI"] = "informational-bg-basic-transparent-semi";
|
|
60
|
+
COLOR["INFORMATIONAL_BG_TRANSPARENT_FULL"] = "informational-bg-basic-transparent-full";
|
|
61
|
+
})(COLOR || (COLOR = {}));
|
|
62
|
+
export const COLORS = Object.entries(COLOR).map(([, value]) => value);
|
|
63
|
+
export const COLORS_SIMPLE = Object.entries(COLOR_SIMPLE).map(([, value]) => value);
|
|
64
|
+
export var SEMANTIC;
|
|
65
|
+
(function (SEMANTIC) {
|
|
66
|
+
SEMANTIC["CRITICAL"] = "critical";
|
|
67
|
+
SEMANTIC["INFORMATIONAL"] = "informational";
|
|
68
|
+
SEMANTIC["WARNING"] = "warning";
|
|
69
|
+
SEMANTIC["SUCCESSFUL"] = "successful";
|
|
70
|
+
})(SEMANTIC || (SEMANTIC = {}));
|
|
71
|
+
export const SEMANTICS = Object.entries(SEMANTIC).map(([, value]) => value);
|
|
72
|
+
export const DEFAULT_VIEWPORT = {
|
|
73
|
+
width: 390,
|
|
74
|
+
height: 884
|
|
75
|
+
};
|
|
76
|
+
export const DESKTOP_VIEWPORT = {
|
|
77
|
+
width: 1920,
|
|
78
|
+
height: 1280
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Use those viewports if your component has a css media-query otherwise use the DEFAULT_VIEWPORT
|
|
82
|
+
*/
|
|
83
|
+
export const TESTING_VIEWPORTS = [Object.assign({ name: 'desktop' }, DESKTOP_VIEWPORT), {
|
|
84
|
+
name: 'tablet',
|
|
85
|
+
width: 768,
|
|
86
|
+
height: 1024
|
|
87
|
+
}, Object.assign({ name: 'mobile' }, DEFAULT_VIEWPORT)];
|
|
88
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAW,sBAAsB,CAAC;AACzD,MAAM,CAAC,MAAM,aAAa,GAAW,qBAAqB,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAW,GAAG,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAW,UAAU,CAAC;AAC5D,MAAM,CAAC,MAAM,+BAA+B,GAAW,gBAAgB,CAAC;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAW,kBAAkB,CAAC;AAC5E,MAAM,CAAC,MAAM,6BAA6B,GAAW,cAAc,CAAC;AACpE,MAAM,CAAC,MAAM,0BAA0B,GAAW,WAAW,CAAC;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAW,0BAA0B,CAAC;AACxE,MAAM,CAAC,MAAM,uBAAuB,GAAW,6BAA6B,CAAC;AAC7E,MAAM,CAAC,MAAM,YAAY,GAAW,MAAM,CAAC;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAW,YAAY,CAAC;AACxD,MAAM,CAAC,MAAM,YAAY,GAAW,OAAO,CAAC;AAC5C,MAAM,CAAC,MAAM,YAAY,GAAW,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,oBAAoB,GAAW,cAAc,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAW,SAAS,CAAC;AAC/C,MAAM,CAAC,MAAM,WAAW,GAAW,OAAO,CAAC;AAC3C,MAAM,CAAN,IAAY,OAIX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EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAmB,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AACpG,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAuB,CAAA;IACvB,2CAAiC,CAAA;IACjC,+BAAqB,CAAA;IACrB,qCAA2B,CAAA;AAC7B,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AACD,MAAM,CAAC,MAAM,SAAS,GAAe,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;CACZ,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAC/B,IAAI,EAAE,SAAS,IACZ,gBAAgB,GAClB;QACD,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,IAAI;KACb,kBACC,IAAI,EAAE,QAAQ,IACX,gBAAgB,EACnB,CAAA","sourcesContent":["export const DEFAULT_ID: string = 'OVERWRITE_DEFAULT_ID';\nexport const DEFAULT_LABEL: string = 'LABEL SHOULD BE SET';\nexport const DEFAULT_PLACEHOLDER: string = ' ';\nexport const DEFAULT_MESSAGE_ID_SUFFIX: string = '-message';\nexport const DEFAULT_VALID_MESSAGE_ID_SUFFIX: string = '-valid-message';\nexport const DEFAULT_INVALID_MESSAGE_ID_SUFFIX: string = '-invalid-message';\nexport const DEFAULT_PLACEHOLDER_ID_SUFFIX: string = '-placeholder';\nexport const DEFAULT_DATALIST_ID_SUFFIX: string = '-datalist';\nexport const DEFAULT_VALID_MESSAGE: string = 'TODO: Add a validMessage';\nexport const DEFAULT_INVALID_MESSAGE: string = 'TODO: Add an invalidMessage';\nexport const DEFAULT_BACK: string = 'Back';\nexport const DEFAULT_BURGER_MENU: string = 'BurgerMenu';\nexport const DEFAULT_ICON: string = 'brand';\nexport const DEFAULT_ROWS: number = 4;\nexport const DEFAULT_CLOSE_BUTTON: string = 'Close Button';\nexport const DENSITY_CONST: string = 'density';\nexport const COLOR_CONST: string = 'color';\nexport enum DENSITY {\n 'FUNCTIONAL' = 'functional',\n 'REGULAR' = 'regular',\n 'EXPRESSIVE' = 'expressive',\n}\nexport const DENSITIES: DENSITY[] = Object.entries(DENSITY).map(([, value]) => value);\nexport enum COLOR_SIMPLE {\n 'PRIMARY' = 'primary',\n}\nexport enum COLOR {\n 'NEUTRAL_BG_LEVEL_1' = 'neutral-bg-basic-level-1',\n 'NEUTRAL_BG_LEVEL_2' = 'neutral-bg-basic-level-2',\n 'NEUTRAL_BG_LEVEL_3' = 'neutral-bg-basic-level-3',\n 'NEUTRAL_BG_TRANSPARENT_SEMI' = 'neutral-bg-basic-transparent-semi',\n 'NEUTRAL_BG_TRANSPARENT_FULL' = 'neutral-bg-basic-transparent-full',\n 'BRAND_BG_LEVEL_1' = 'brand-bg-basic-level-1',\n 'BRAND_BG_LEVEL_2' = 'brand-bg-basic-level-2',\n 'BRAND_BG_LEVEL_3' = 'brand-bg-basic-level-3',\n 'BRAND_BG_TRANSPARENT_SEMI' = 'brand-bg-basic-transparent-semi',\n 'BRAND_BG_TRANSPARENT_FULL' = 'brand-bg-basic-transparent-full',\n 'SUCCESSFUL_BG_LEVEL_1' = 'successful-bg-basic-level-1',\n 'SUCCESSFUL_BG_LEVEL_2' = 'successful-bg-basic-level-2',\n 'SUCCESSFUL_BG_LEVEL_3' = 'successful-bg-basic-level-3',\n 'SUCCESSFUL_BG_TRANSPARENT_SEMI' = 'successful-bg-basic-transparent-semi',\n 'SUCCESSFUL_BG_TRANSPARENT_FULL' = 'successful-bg-basic-transparent-full',\n 'CRITICAL_BG_LEVEL_1' = 'critical-bg-basic-level-1',\n 'CRITICAL_BG_LEVEL_2' = 'critical-bg-basic-level-2',\n 'CRITICAL_BG_LEVEL_3' = 'critical-bg-basic-level-3',\n 'CRITICAL_BG_TRANSPARENT_SEMI' = 'critical-bg-basic-transparent-semi',\n 'CRITICAL_BG_TRANSPARENT_Full' = 'critical-bg-basic-transparent-full',\n 'WARNING_BG_LEVEL_1' = 'warning-bg-basic-level-1',\n 'WARNING_BG_LEVEL_2' = 'warning-bg-basic-level-2',\n 'WARNING_BG_LEVEL_3' = 'warning-bg-basic-level-3',\n 'WARNING_BG_TRANSPARENT_SEMI' = 'warning-bg-basic-transparent-semi',\n 'WARNING_BG_TRANSPARENT_FULL' = 'warning-bg-basic-transparent-full',\n 'INFORMATIONAL_BG_LEVEL_1' = 'informational-bg-basic-level-1',\n 'INFORMATIONAL_BG_LEVEL_2' = 'informational-bg-basic-level-2',\n 'INFORMATIONAL_BG_LEVEL_3' = 'informational-bg-basic-level-3',\n 'INFORMATIONAL_BG_TRANSPARENT_SEMI' = 'informational-bg-basic-transparent-semi',\n 'INFORMATIONAL_BG_TRANSPARENT_FULL' = 'informational-bg-basic-transparent-full',\n}\nexport const COLORS: COLOR[] = Object.entries(COLOR).map(([, value]) => value);\nexport const COLORS_SIMPLE: COLOR_SIMPLE[] = Object.entries(COLOR_SIMPLE).map(([, value]) => value);\nexport enum SEMANTIC {\n 'CRITICAL' = 'critical',\n 'INFORMATIONAL' = 'informational',\n 'WARNING' = 'warning',\n 'SUCCESSFUL' = 'successful',\n}\nexport const SEMANTICS: SEMANTIC[] = Object.entries(SEMANTIC).map(([, value]) => value);\nexport const DEFAULT_VIEWPORT = {\n width: 390,\n height: 884\n};\nexport const DESKTOP_VIEWPORT = {\n width: 1920,\n height: 1280\n};\n\n/**\n * Use those viewports if your component has a css media-query otherwise use the DEFAULT_VIEWPORT\n */\nexport const TESTING_VIEWPORTS = [{\n name: 'desktop',\n ...DESKTOP_VIEWPORT\n}, {\n name: 'tablet',\n width: 768,\n height: 1024\n}, {\n name: 'mobile',\n ...DEFAULT_VIEWPORT\n}]"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export const SemanticList = ['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'];
|
|
3
|
+
export const SpacingList = ['medium', 'small', 'large', 'none'];
|
|
4
|
+
export const MarginList = ['medium', 'small', 'large', 'none'];
|
|
5
|
+
export const PlacementList = ['left', 'right', 'top', 'bottom', 'left-start', 'left-end', 'right-start', 'right-end', 'top-start', 'top-end', 'bottom-start', 'bottom-end'];
|
|
6
|
+
export const GapSpacingList = ['none', '3x-large', '2x-large', 'x-large', 'large', 'medium', 'small', 'x-small', '2x-small', '3x-small'];
|
|
7
|
+
export const OrientationList = ['horizontal', 'vertical'];
|
|
8
|
+
export const WidthList = ['full', 'auto'];
|
|
9
|
+
export const MaxWidthList = ['full', 'medium', 'large', 'small'];
|
|
10
|
+
export const PopoverDelayList = ['none', 'slow', 'fast'];
|
|
11
|
+
export const PopoverWidthList = ['auto', 'fixed'];
|
|
12
|
+
export const SizeList = ['small', 'medium'];
|
|
13
|
+
export const EmphasisList = ['weak', 'strong'];
|
|
14
|
+
export const TagEmphasisList = [...EmphasisList, 'origin'];
|
|
15
|
+
export const ValidationList = ['invalid', 'valid', 'no-validation'];
|
|
16
|
+
export const LabelVariantList = ['above', 'floating'];
|
|
17
|
+
export const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
18
|
+
export const LinkCurrentList = ['time', 'true', 'false', 'date', 'page', 'step', 'location'];
|
|
19
|
+
export const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
20
|
+
export const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
21
|
+
export const AlignmentList = ['start', 'center'];
|
|
22
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/shared/model.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAsCvD,MAAM,CAAC,MAAM,YAAY,GAAI,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,CAAW,CAAC;AA2BrH,MAAM,CAAC,MAAM,WAAW,GAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAW,CAAC;AAQ3E,MAAM,CAAC,MAAM,UAAU,GAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAW,CAAC;AAQ1E,MAAM,CAAC,MAAM,aAAa,GAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,CAAW,CAAC;AAiBvL,M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E,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,CAAW,CAAC;AA0Dh2B,MAAM,CAAC,MAAM,eAAe,GAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAW,CAAC;AAExG,MAAM,CAAC,MAAM,cAAc,GAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAW,CAAC;AAEhF,MAAM,CAAC,MAAM,sBAAsB,GAAI,CAAC,aAAa,EAAE,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,YAAY,CAAW,CAAC;AA6EtN,MAAM,CAAC,MAAM,aAAa,GAAI,CAAC,OAAO,EAAE,QAAQ,CAAW,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { IconTypes } from '@db-ux/core-foundations';\nexport type GlobalProps = {\n /**\n * default slot\n */\n\n children?: any;\n\n /**\n * React specific for adding className to the component.\n */\n className?: string;\n\n /**\n * Workaround for TypeScript using class for all components.\n */\n class?: string | any;\n\n /**\n * [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby) is used to link to the elements that describe the element with the set attribute.\n */\n describedbyid?: string;\n\n /**\n * [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.\n */\n id?: string;\n\n /**\n * Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)\n */\n autofocus?: boolean;\n};\nexport type GlobalState = {\n _id?: string;\n};\nexport const SemanticList = (['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'] as const);\nexport type SemanticType = (typeof SemanticList)[number];\nexport type SemanticProps = {\n /**\n * The semantic defines the default variants for most components.\n */\n semantic?: SemanticType;\n};\nexport type IconProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n icon?: IconTypes;\n};\nexport type ShowIconProps = {\n /**\n * Enables or disables the visibility of the icon. The default value depends on the component.\n * For many components this property is optional to reflect Figma properties.\n */\n showIcon?: boolean;\n};\nexport type IconAfterProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n iconAfter?: IconTypes;\n};\nexport const SpacingList = (['medium', 'small', 'large', 'none'] as const);\nexport type SpacingType = (typeof SpacingList)[number];\nexport type SpacingProps = {\n /**\n * The spacing attribute changes the padding of the component.\n */\n spacing?: SpacingType;\n};\nexport const MarginList = (['medium', 'small', 'large', 'none'] as const);\nexport type MarginType = (typeof MarginList)[number];\nexport type MarginProps = {\n /**\n * The margin attribute changes the margin of the component.\n */\n margin?: MarginType;\n};\nexport const PlacementList = (['left', 'right', 'top', 'bottom', 'left-start', 'left-end', 'right-start', 'right-end', 'top-start', 'top-end', 'bottom-start', 'bottom-end'] as const);\nexport type PlacementType = (typeof PlacementList)[number];\nexport type PlacementProps = {\n /**\n * The `placement` attributes values change the position to absolute and adds a transform based on the placement.\n */\n placement?: PlacementType;\n};\nexport type NavigationBehaviorState = {\n handleNavigationItemClick: (event: unknown) => void;\n};\nexport type GapProps = {\n /**\n * If the absolute element should have a gap between the parent element.\n */\n gap?: boolean;\n};\nexport const GapSpacingList = (['none', '3x-large', '2x-large', 'x-large', 'large', 'medium', 'small', 'x-small', '2x-small', '3x-small'] as const);\nexport type GapSpacingType = (typeof GapSpacingList)[number];\nexport type GapSpacingProps = {\n /**\n * Set the gap/spacing between elements\n */\n gap?: GapSpacingType;\n};\nexport type OverflowProps = {\n /**\n * The overflow attribute sets a max-width and longer text will be dotted.\n */\n overflow?: boolean;\n};\nexport const OrientationList = (['horizontal', 'vertical'] as const);\nexport type OrientationType = (typeof OrientationList)[number];\nexport type OrientationProps = {\n /**\n * Change the orientation. Defaults to horizontal.\n */\n orientation?: OrientationType;\n};\nexport const WidthList = (['full', 'auto'] as const);\nexport type WidthType = (typeof WidthList)[number];\nexport type WidthProps = {\n /**\n * Width of the component. Auto width based on children size, full width based on parent elements width.\n */\n width?: WidthType;\n};\nexport const MaxWidthList = (['full', 'medium', 'large', 'small'] as const);\nexport type MaxWidthType = (typeof MaxWidthList)[number];\nexport type ContainerWidthProps = {\n /**\n * Set max width for the component\n */\n width?: MaxWidthType;\n};\nexport const PopoverDelayList = (['none', 'slow', 'fast'] as const);\nexport type PopoverDelayType = (typeof PopoverDelayList)[number];\nexport const PopoverWidthList = (['auto', 'fixed'] as const);\nexport type PopoverWidthType = (typeof PopoverWidthList)[number];\nexport type PopoverProps = {\n /**\n * Add a delay before showing the tooltip\n */\n delay?: PopoverDelayType;\n /**\n * Disable animation\n */\n animation?: boolean;\n /**\n * Use fixed with for default max-width\n */\n width?: PopoverWidthType;\n};\nexport type PopoverState = {\n handleAutoPlacement: () => void;\n};\nexport type ContentSlotProps = {\n /**\n * Default slot which is used to pass in additional content.\n */\n content?: any;\n};\nexport const SizeList = (['small', 'medium'] as const);\nexport type SizeType = (typeof SizeList)[number];\nexport type SizeProps = {\n /**\n * The size attribute changes the font-size and other related sizes of the component.\n */\n size?: SizeType;\n};\nexport const EmphasisList = (['weak', 'strong'] as const);\nexport type EmphasisType = (typeof EmphasisList)[number];\nexport type EmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak or strong importance.\n */\n emphasis?: EmphasisType;\n};\nexport const TagEmphasisList = ([...EmphasisList, 'origin'] as const);\nexport type TagEmphasisType = (typeof TagEmphasisList)[number];\nexport type TagEmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak, strong or origin appearance.\n */\n emphasis?: TagEmphasisType;\n};\nexport const ValidationList = (['invalid', 'valid', 'no-validation'] as const);\nexport type ValidationType = (typeof ValidationList)[number];\nexport type FormProps = {\n /**\n * Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.\n */\n validation?: ValidationType;\n /**\n * The disabled attribute can be set to keep a user from clicking on the form element.\n */\n disabled?: boolean;\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The label attribute specifies the caption of the form element.\n */\n label?: string;\n\n /**\n * The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.\n */\n name?: string;\n\n /**\n * When the required attribute specified, the user will be required to fill the form element before submitting the form.\n */\n required?: boolean;\n /**\n * Enables/disables the visibility of the label\n */\n showLabel?: boolean;\n /**\n * The value property is to receive results from the native form element.\n */\n value?: any;\n};\nexport type FormTextProps = {\n /**\n * Maximum length (number of characters) of value\n */\n maxLength?: number;\n /**\n * Minimum length (number of characters) of value\n */\n minLength?: number;\n /**\n * The disabled attribute can be set to keep a user from edit on the form element\n */\n readOnly?: boolean;\n};\nexport type FormCheckProps = {\n /**\n * Define the radio or checkbox elements checked state\n */\n checked?: boolean;\n};\nexport const LabelVariantList = (['above', 'floating'] as const);\nexport type LabelVariantType = (typeof LabelVariantList)[number];\nexport const AutoCompleteList = (['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'] as const);\nexport type AutoCompleteType = (typeof AutoCompleteList)[number];\nexport type FormMessageProps = {\n /**\n * Change the variant of the label to float or hidden\n */\n variant?: LabelVariantType;\n /**\n * Text that appears in the form control when it has no value set\n */\n placeholder?: string;\n /**\n * Optional helper message for form components\n */\n message?: string;\n\n /**\n * Helper message for valid form components\n */\n validMessage?: string;\n\n /**\n * Helper message for invalid form components\n */\n invalidMessage?: string;\n\n /**\n * Set/overwrite icon for helper message for form components\n */\n messageIcon?: IconTypes;\n\n /**\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\n */\n autocomplete?: string | AutoCompleteType;\n\n /**\n * Enables or disables the visibility of the message.\n */\n showMessage?: boolean;\n};\nexport type FormState = {\n _messageId?: string;\n _validMessageId?: string;\n _invalidMessageId?: string;\n _descByIds?: string;\n _value?: string;\n\n /**\n * https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html\n * Currently VoiceOver isn't supporting changes from aria-describedby.\n * This is an internal Fallback\n */\n _voiceOverFallback?: string;\n};\nexport type InitializedState = {\n initialized: boolean;\n};\nexport const LinkCurrentList = (['time', 'true', 'false', 'date', 'page', 'step', 'location'] as const);\nexport type LinkCurrentType = (typeof LinkCurrentList)[number];\nexport const LinkTargetList = (['_self', '_blank', '_parent', '_top'] as const);\nexport type LinkTargetType = (typeof LinkTargetList)[number];\nexport const LinkReferrerPolicyList = (['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] as const);\nexport type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];\nexport type LinkProps = {\n /**\n * Sets aria attribute based on [`aria-current`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current).\n */\n current?: boolean | LinkCurrentType;\n /**\n * Disables the link.\n */\n disabled?: boolean;\n /**\n * The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).\n */\n href?: string;\n /**\n * Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).\n */\n hreflang?: string;\n /**\n * Sets aria attribute based on [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label).\n */\n label?: string;\n /**\n * Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: LinkTargetType;\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n rel?: string;\n /**\n * Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).\n */\n role?: string;\n /**\n * How much of the referrer to send when following the link.\n */\n referrerpolicy?: LinkReferrerPolicyType;\n /**\n * Sets aria role based on [`aria-selected`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected).\n */\n selected?: boolean;\n};\nexport type TextProps = {\n /**\n * Alternative for default slot/children.\n */\n text?: string;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ClickEvent<T> = MouseEvent;\nexport type ClickEventProps<T> = {\n /**\n * React specific onClick to pass to forward ref.\n */\n onClick?: (event: ClickEvent<T>) => void;\n};\nexport type ClickEventState<T> = {\n handleClick: (event: ClickEvent<T>) => void;\n};\nexport type ToggleEventProps = {\n onToggle?: (open: boolean) => void;\n};\nexport type ToggleEventState<T> = {\n toggle: (event?: ClickEvent<T>) => void;\n};\nexport type CloseEventProps = {\n /**\n * Function to handle button click (close).\n */\n onClose?: (event?: any) => void;\n};\nexport type CloseEventState = {\n handleClose: (event: any) => void;\n};\nexport const AlignmentList = (['start', 'center'] as const);\nexport type AlignmentType = (typeof AlignmentList)[number];\nexport type AlignmentProps = {\n /**\n * Define the content alignment in full width\n */\n alignment?: AlignmentType;\n};\nexport type ActiveProps = {\n /**\n * If the tab is checked/active.\n */\n active?: boolean;\n};\nexport type InputEvent<T> = Event;\nexport type InputEventProps<T> = {\n input?: (event: InputEvent<T>) => void;\n onInput?: (event: InputEvent<T>) => void;\n};\nexport type InputEventState<T> = {\n handleInput: (event: InputEvent<T>) => void;\n};\nexport type ChangeEvent<T> = Event;\nexport type ChangeEventProps<T> = {\n change?: (event: ChangeEvent<T>) => void;\n onChange?: (event: ChangeEvent<T>) => void;\n};\nexport type ChangeEventState<T> = {\n handleChange: (event: ChangeEvent<T>) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type InteractionEvent<T> = FocusEvent;\nexport type FocusEventProps<T> = {\n blur?: (event: InteractionEvent<T>) => void;\n onBlur?: (event: InteractionEvent<T>) => void;\n focus?: (event: InteractionEvent<T>) => void;\n onFocus?: (event: InteractionEvent<T>) => void;\n};\nexport type FocusEventState<T> = {\n handleBlur: (event: InteractionEvent<T>) => void;\n handleFocus: (event: InteractionEvent<T>) => void;\n};\nexport type InnerCloseButtonProps = {\n /**\n * The closeButtonId attribute changes the id inside the close button.\n */\n closeButtonId?: string;\n /**\n * The closeButtonText attribute changes the text inside the close button.\n */\n closeButtonText?: string;\n};\nexport type NavigationBackButtonProps = {\n /**\n * The backButtonId attribute changes the id inside the back button.\n */\n backButtonId?: string;\n /**\n * The backButtonText attribute changes the text inside the back button.\n */\n backButtonText?: string;\n};\nexport type AriaLabelledByProps = {\n /**\n * Pass aria-labelledby to inner element\n */\n labelledBy?: string;\n};\nexport type AriaControlsProps = {\n /**\n * Pass aria-controls to inner element\n */\n controls?: string;\n};\nexport type ValueLabelType = {\n value: string;\n label?: string;\n}"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export const handleFrameworkEventAngular = (component, event, modelValue = 'value') => {
|
|
3
|
+
// Change event to work with reactive and template driven forms
|
|
4
|
+
component.propagateChange(event.target[modelValue]);
|
|
5
|
+
component.writeValue(event.target[modelValue]);
|
|
6
|
+
};
|
|
7
|
+
export const handleFrameworkEventVue = (emit, event, modelValue = 'value') => {
|
|
8
|
+
// TODO: Replace this with the solution out of https://github.com/BuilderIO/mitosis/issues/833 after this has been "solved"
|
|
9
|
+
emit(`update:${modelValue}`, event.target[modelValue]);
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=form-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-components.js","sourceRoot":"","sources":["../../src/utils/form-components.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,SAAc,EAAE,KAAU,EAAE,aAAqB,OAAO,EAAQ,EAAE;IAC5G,+DAA+D;IAC/D,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAA6C,EAAE,KAAU,EAAE,aAAqB,OAAO,EAAQ,EAAE;IACvI,2HAA2H;IAC3H,IAAI,CAAC,UAAU,UAAU,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACzD,CAAC,CAAA","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const handleFrameworkEventAngular = (component: any, event: any, modelValue: string = 'value'): void => {\n // Change event to work with reactive and template driven forms\n component.propagateChange(event.target[modelValue]);\n component.writeValue(event.target[modelValue]);\n};\nexport const handleFrameworkEventVue = (emit: (event: string, ...args: any[]) => void, event: any, modelValue: string = 'value'): void => {\n // TODO: Replace this with the solution out of https://github.com/BuilderIO/mitosis/issues/833 after this has been \"solved\"\n emit(`update:${modelValue}`, event.target[modelValue]);\n}"]}
|