@otto-de/b2b-core-components 1.34.0 → 1.35.0
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/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/{p-8aba659a.entry.js → p-18bb4d69.entry.js} +1 -1
- package/dist/b2b-core-components/{p-13d37dec.entry.js → p-21644e6c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-66c435c1.entry.js → p-23af5193.entry.js} +1 -1
- package/dist/b2b-core-components/{p-81cffff6.entry.js → p-419de188.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8ae9c2fe.entry.js → p-670e355a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e512628d.entry.js → p-7889e94a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-371df3f8.entry.js → p-8cb6813a.entry.js} +1 -1
- package/dist/b2b-core-components/p-abcbd1cc.entry.js +1 -0
- package/dist/b2b-core-components/p-ae7a752e.entry.js +1 -0
- package/dist/b2b-core-components/p-c430b5ba.entry.js +1 -0
- package/dist/b2b-core-components/{p-c43e067a.entry.js → p-dcaff8ab.entry.js} +1 -1
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-custom-dropdown.cjs.entry.js +9 -5
- package/dist/cjs/b2b-dropdown.cjs.entry.js +27 -4
- package/dist/cjs/b2b-time-picker.cjs.entry.js +157 -0
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +4 -4
- package/dist/cjs/b2b-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +2 -2
- package/dist/cjs/b2b-wizard.cjs.entry.js +1 -1
- package/dist/cjs/index-668808fd.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/custom-dropdown/custom-dropdown.css +13 -1
- package/dist/collection/components/custom-dropdown/custom-dropdown.e2e.js +69 -0
- package/dist/collection/components/custom-dropdown/custom-dropdown.js +26 -4
- package/dist/collection/components/custom-dropdown/custom-dropdown.stories.js +11 -0
- package/dist/collection/components/dropdown/dropdown.js +27 -4
- package/dist/collection/components/time-picker/time-picker.css +345 -0
- package/dist/collection/components/time-picker/time-picker.e2e.js +135 -0
- package/dist/collection/components/time-picker/time-picker.js +411 -0
- package/dist/collection/components/time-picker/time-picker.stories.js +80 -0
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/components/b2b-custom-dropdown.js +10 -5
- package/dist/components/b2b-dropdown.js +27 -4
- package/dist/components/b2b-time-picker.d.ts +11 -0
- package/dist/components/b2b-time-picker.js +200 -0
- package/dist/components/b2b-toggle-button.js +3 -3
- package/dist/components/b2b-toggle-chip.js +3 -3
- package/dist/components/b2b-toggle-group.js +2 -2
- package/dist/components/b2b-toggle-switch.js +4 -4
- package/dist/components/b2b-tooltip.js +3 -3
- package/dist/components/b2b-wizard-step.js +2 -2
- package/dist/components/b2b-wizard.js +1 -1
- package/dist/components/wizard-icon.js +1 -1
- package/dist/custom-elements.json +56 -0
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-custom-dropdown.entry.js +9 -5
- package/dist/esm/b2b-dropdown.entry.js +27 -4
- package/dist/esm/b2b-time-picker.entry.js +153 -0
- package/dist/esm/b2b-toggle-button.entry.js +3 -3
- package/dist/esm/b2b-toggle-chip.entry.js +3 -3
- package/dist/esm/b2b-toggle-group.entry.js +2 -2
- package/dist/esm/b2b-toggle-switch.entry.js +4 -4
- package/dist/esm/b2b-tooltip.entry.js +3 -3
- package/dist/esm/b2b-wizard-icon.entry.js +1 -1
- package/dist/esm/b2b-wizard-step.entry.js +2 -2
- package/dist/esm/b2b-wizard.entry.js +1 -1
- package/dist/esm/index-ab9eb36d.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/custom-dropdown/custom-dropdown.d.ts +2 -0
- package/dist/types/components/custom-dropdown/custom-dropdown.stories.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown.d.ts +1 -0
- package/dist/types/components/time-picker/time-picker.d.ts +50 -0
- package/dist/types/components/time-picker/time-picker.stories.d.ts +10 -0
- package/dist/types/components.d.ts +124 -0
- package/dist/web-types.json +152 -1
- package/package.json +2 -2
- package/dist/b2b-core-components/p-24c6aa56.entry.js +0 -1
- package/dist/b2b-core-components/p-e90d3aba.entry.js +0 -1
|
@@ -5,7 +5,7 @@ import { d as defineCustomElement$4 } from './icon-100.js';
|
|
|
5
5
|
import { d as defineCustomElement$3 } from './input.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './input-label.js';
|
|
7
7
|
|
|
8
|
-
const customDropdownCss = ":root,:host{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-color-background-overlay-transparent-80:#22222280;--b2b-color-background-overlay-transparent-40:#22222240;--b2b-color-table-selected-default:#CCE9FF;--b2b-color-table-expand-hover:#DBE7FA;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-page:var(--b2b-color-grey-10);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-size-icon-50:var(--b2b-size-40);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-400:var(--b2b-size-60)}:root [data-theme=\"dark\"]{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-black-100)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host{display:inline-block;position:relative;width:auto}.b2b-custom-dropdown__trigger{position:relative;display:inline !important;cursor:pointer}.b2b-custom-dropdown{position:absolute;top:100%;
|
|
8
|
+
const customDropdownCss = ":root,:host{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-color-background-overlay-transparent-80:#22222280;--b2b-color-background-overlay-transparent-40:#22222240;--b2b-color-table-selected-default:#CCE9FF;--b2b-color-table-expand-hover:#DBE7FA;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-page:var(--b2b-color-grey-10);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-size-icon-50:var(--b2b-size-40);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-400:var(--b2b-size-60)}:root [data-theme=\"dark\"]{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-black-100)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host{display:inline-block;position:relative;width:auto}.b2b-custom-dropdown__trigger{position:relative;display:inline !important;cursor:pointer}.b2b-custom-dropdown{position:absolute;top:100%;z-index:1000;inline-size:var(--b2b-dropdown-width, 300px);display:none}.b2b-custom-dropdown--on{display:block}.b2b-custom-dropdown--drop-shadow{box-shadow:0 0 5px rgba(0, 0, 0, 0.2)}.b2b-custom-dropdown--border{border:1px solid var(--b2b-color-grey-200)}.b2b-custom-dropdown--align-left{left:0;right:auto}.b2b-custom-dropdown--align-center{left:50%;right:auto;transform:translateX(-50%)}.b2b-custom-dropdown--align-right{left:auto;right:0}.b2b-custom-dropdown-search{padding:var(--b2b-size-30);display:none}.b2b-custom-dropdown-search--enabled{display:block;border-bottom:var(--b2b-size-1) solid var(--b2b-color-border-100)}.b2b-custom-dropdown__options-scroll-container{position:relative;display:block;max-height:288px;overflow-y:auto;margin:0}.b2b-custom-dropdown__options-container{position:relative;display:block;margin:0}.b2b-custom-dropdown__options-container--disabled{display:none}.b2b-custom-dropdown__option--hidden{display:none}::slotted(b2b-custom-dropdown-option.b2b-custom-dropdown__option--hidden){display:none}.b2b-custom-dropdown__empty{padding:var(--b2b-size-30);color:var(--b2b-color-grey-400);font-size:var(--b2b-size-copy-100);background-color:var(--b2b-color-white-100)}";
|
|
9
9
|
const B2bCustomDropdownStyle0 = customDropdownCss;
|
|
10
10
|
|
|
11
11
|
const B2bCustomDropdownComponent = /*@__PURE__*/ proxyCustomElement(class B2bCustomDropdownComponent extends HTMLElement {
|
|
@@ -40,6 +40,7 @@ const B2bCustomDropdownComponent = /*@__PURE__*/ proxyCustomElement(class B2bCus
|
|
|
40
40
|
this.disabled = false;
|
|
41
41
|
this.dropshadow = false;
|
|
42
42
|
this.border = false;
|
|
43
|
+
this.alignment = 'left';
|
|
43
44
|
this.autoDisableSearch = true;
|
|
44
45
|
this.opened = false;
|
|
45
46
|
this.noResultsText = 'Keine Ergebnisse gefunden, überprüfen Sie die Eingabe.';
|
|
@@ -79,17 +80,20 @@ const B2bCustomDropdownComponent = /*@__PURE__*/ proxyCustomElement(class B2bCus
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: 'be885facc6441549cd7bc28f689c2eebf07b6987' }, h("div", { key: '450a33089db12ce4730e1996d1efde9db81a71c5', class: "b2b-custom-dropdown__trigger" }, h("slot", { key: '54e75fd7e993fdfba28da2fbeb1822414bdc8457', name: "trigger" })), h("div", { key: '6b62f9590e78bf20aff37fe09e8acb78ef4b8b90', class: {
|
|
83
84
|
'b2b-custom-dropdown': true,
|
|
84
85
|
'b2b-custom-dropdown--on': this.opened && !this.disabled,
|
|
85
86
|
'b2b-custom-dropdown--drop-shadow': this.dropshadow,
|
|
86
87
|
'b2b-custom-dropdown--border': this.border,
|
|
87
|
-
|
|
88
|
+
'b2b-custom-dropdown--align-left': this.alignment === 'left',
|
|
89
|
+
'b2b-custom-dropdown--align-center': this.alignment === 'center',
|
|
90
|
+
'b2b-custom-dropdown--align-right': this.alignment === 'right',
|
|
91
|
+
} }, h("b2b-background-box", { key: '5690eb6da07a46248544fb5b1f742c21987cce7b', noPadding: true, borderTop: "none", borderBottom: "none", borderRight: "none", borderLeft: "none" }, h("div", { key: 'aab7a71ed660cce678c40bfcc36dfaf317e329a9', class: {
|
|
88
92
|
'b2b-custom-dropdown-search': true,
|
|
89
93
|
'b2b-custom-dropdown-search--enabled': this.allOptions.length > 6 && !this.disabled,
|
|
90
|
-
} }, h("b2b-input", { key: '
|
|
94
|
+
} }, h("b2b-input", { key: '7fe33bb83de99b112ff6caa3a1a7c866c6160551', placeholder: this.placeholder, "onB2b-input": this.handleInput }, h("b2b-icon-100", { key: '330b9fa7a045588743ba8d4e4de6de4291091132', icon: "b2b_icon-search", slot: "start" })))), h("div", { key: '25d7f57b346bb8da229ba0c2c9994135bd8e7cfb', class: this.allOptions.length > 6
|
|
91
95
|
? 'b2b-custom-dropdown__options-scroll-container'
|
|
92
|
-
: 'b2b-custom-dropdown__options-container' }, h("slot", { key: '
|
|
96
|
+
: 'b2b-custom-dropdown__options-container' }, h("slot", { key: 'ed7646c026e8373cbf329fec8c0379f5bd3d47f0', name: "option" })), this.value && !this.hasVisibleOptions && (h("div", { class: "b2b-custom-dropdown__empty", role: "status" }, h("slot", { name: "empty" }, this.noResultsText))))));
|
|
93
97
|
}
|
|
94
98
|
get hostElement() { return this; }
|
|
95
99
|
static get style() { return B2bCustomDropdownStyle0; }
|
|
@@ -98,6 +102,7 @@ const B2bCustomDropdownComponent = /*@__PURE__*/ proxyCustomElement(class B2bCus
|
|
|
98
102
|
"disabled": [516],
|
|
99
103
|
"dropshadow": [516],
|
|
100
104
|
"border": [516],
|
|
105
|
+
"alignment": [513],
|
|
101
106
|
"autoDisableSearch": [4, "auto-disable-search"],
|
|
102
107
|
"opened": [1028],
|
|
103
108
|
"noResultsText": [1, "no-results-text"],
|
|
@@ -12,6 +12,7 @@ const DropdownComponent = /*@__PURE__*/ proxyCustomElement(class DropdownCompone
|
|
|
12
12
|
this.b2bChange = createEvent(this, "b2b-change", 7);
|
|
13
13
|
this.b2bFocus = createEvent(this, "b2b-focus", 7);
|
|
14
14
|
this.b2bBlur = createEvent(this, "b2b-blur", 7);
|
|
15
|
+
this.ignoreNextMutation = false;
|
|
15
16
|
this.onClickOutside = (ev) => {
|
|
16
17
|
if (!this.hostElement.contains(ev.target))
|
|
17
18
|
this.isOpen = false;
|
|
@@ -34,12 +35,25 @@ const DropdownComponent = /*@__PURE__*/ proxyCustomElement(class DropdownCompone
|
|
|
34
35
|
const value = target.getAttribute('data-value');
|
|
35
36
|
const label = (_a = target.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
36
37
|
if (value != null) {
|
|
38
|
+
this.ignoreNextMutation = true;
|
|
37
39
|
this.selectedValue = value;
|
|
38
40
|
this.selectedText = label || '';
|
|
39
|
-
this.b2bChange.emit(value);
|
|
40
41
|
this.options = this.options.map(opt => (Object.assign(Object.assign({}, opt), { selected: opt.value === value })));
|
|
42
|
+
const nativeOptions = this.hostElement.querySelectorAll('option');
|
|
43
|
+
nativeOptions.forEach(opt => {
|
|
44
|
+
if (opt.value === value) {
|
|
45
|
+
opt.setAttribute('selected', '');
|
|
46
|
+
opt.selected = true;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
opt.removeAttribute('selected');
|
|
50
|
+
opt.selected = false;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
41
53
|
this.isOpen = false;
|
|
54
|
+
this.b2bChange.emit(value);
|
|
42
55
|
this.updateTruncatedText();
|
|
56
|
+
this.ignoreNextMutation = false;
|
|
43
57
|
}
|
|
44
58
|
};
|
|
45
59
|
this.updateTruncatedText = () => {
|
|
@@ -97,17 +111,26 @@ const DropdownComponent = /*@__PURE__*/ proxyCustomElement(class DropdownCompone
|
|
|
97
111
|
}
|
|
98
112
|
/** Method to programmatically clear selection of the dropdown. */
|
|
99
113
|
async clearSelection() {
|
|
114
|
+
this.ignoreNextMutation = true;
|
|
100
115
|
this.selectedValue = this.placeholderValue;
|
|
101
116
|
this.selectedText = '';
|
|
102
117
|
this.options = this.options.map(opt => (Object.assign(Object.assign({}, opt), { selected: false })));
|
|
118
|
+
const nativeOptions = this.hostElement.querySelectorAll('option');
|
|
119
|
+
nativeOptions.forEach(opt => {
|
|
120
|
+
opt.removeAttribute('selected');
|
|
121
|
+
opt.selected = false;
|
|
122
|
+
});
|
|
103
123
|
this.isOpen = false;
|
|
104
124
|
this.updateTruncatedText();
|
|
125
|
+
this.ignoreNextMutation = false;
|
|
105
126
|
}
|
|
106
127
|
componentWillLoad() {
|
|
107
128
|
this.initializeOptions();
|
|
108
129
|
if (typeof MutationObserver !== 'undefined') {
|
|
109
130
|
this.mutationObserver = new MutationObserver(() => {
|
|
110
|
-
this.
|
|
131
|
+
if (!this.ignoreNextMutation) {
|
|
132
|
+
this.initializeOptions();
|
|
133
|
+
}
|
|
111
134
|
});
|
|
112
135
|
this.mutationObserver.observe(this.hostElement, {
|
|
113
136
|
childList: true,
|
|
@@ -160,11 +183,11 @@ const DropdownComponent = /*@__PURE__*/ proxyCustomElement(class DropdownCompone
|
|
|
160
183
|
const hasError = this.invalid && !this.disabled && !this.groupDisabled;
|
|
161
184
|
const showHint = this.hint && !hasError;
|
|
162
185
|
const showError = this.error && hasError;
|
|
163
|
-
return (h(Host, { key: '
|
|
186
|
+
return (h(Host, { key: 'd8d3296f63b4cd704e43ae30e465589d14445ec2', class: {
|
|
164
187
|
'b2b-dropdown': true,
|
|
165
188
|
'b2b-dropdown--error': hasError,
|
|
166
189
|
'b2b-dropdown--disabled': this.disabled || this.groupDisabled,
|
|
167
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("div", { key: '
|
|
190
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("div", { key: '642ed6f5d43c69b490aa1a22ec7679b571519c19', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, h("div", { key: '6e9b9bc869a7307f175dd524b749de54e87fd5ed', class: {
|
|
168
191
|
'b2b-dropdown__select': true,
|
|
169
192
|
'b2b-dropdown__select--open': this.isOpen,
|
|
170
193
|
'b2b-dropdown__select--focused': this.focused,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface B2bTimePicker extends Components.B2bTimePicker, HTMLElement {}
|
|
4
|
+
export const B2bTimePicker: {
|
|
5
|
+
prototype: B2bTimePicker;
|
|
6
|
+
new (): B2bTimePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './icon-100.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './input-label.js';
|
|
4
|
+
|
|
5
|
+
const timePickerCss = ":root,:host{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-color-background-overlay-transparent-80:#22222280;--b2b-color-background-overlay-transparent-40:#22222240;--b2b-color-table-selected-default:#CCE9FF;--b2b-color-table-expand-hover:#DBE7FA;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-page:var(--b2b-color-grey-10);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-size-icon-50:var(--b2b-size-40);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-400:var(--b2b-size-60)}:root [data-theme=\"dark\"]{--b2b-color-black-50:#333333;--b2b-color-black-100:#222222;--b2b-color-white-100:#FFFFFF;--b2b-color-grey-10:#F0F0F0;--b2b-color-grey-25:#F6F6F6;--b2b-color-grey-50:#EEEEEE;--b2b-color-grey-100:#E6E6E6;--b2b-color-grey-150:#D5D5D5;--b2b-color-grey-200:#C4C4C4;--b2b-color-grey-250:#B1B1B1;--b2b-color-grey-300:#9E9E9E;--b2b-color-grey-400:#777777;--b2b-color-red-50:#FFDDE3;--b2b-color-red-100:#D4021D;--b2b-color-red-150:#E6344B;--b2b-color-red-200:#BB0004;--b2b-color-red-250:#850012;--b2b-color-blue-10:#F2F7FF;--b2b-color-blue-25:#DBE7FA;--b2b-color-blue-50:#87B1F0;--b2b-color-blue-100:#0F63E1;--b2b-color-blue-200:#093E90;--b2b-color-primary:#D4021D;--b2b-color-error-100:#E6344B;--b2b-color-warning-50:#FFD998;--b2b-color-warning-100:#FFB432;--b2b-color-success-50:#D6E0CC;--b2b-color-success-100:#326400;--b2b-color-info-50:#CCD6E0;--b2b-color-info-100:#003264;--b2b-color-hover-default:#DBE7FA;--b2b-color-hover-black:#3B3B3B;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-font-weight-thin:100;--b2b-font-weight-normal:500;--b2b-font-weight-bold:700;--b2b-size-1:0.0625rem;--b2b-size-5:0.125rem;--b2b-size-7:0.1875rem;--b2b-size-10:0.25rem;--b2b-size-13:0.3125rem;--b2b-size-15:0.375rem;--b2b-size-20:0.5rem;--b2b-size-25:0.625rem;--b2b-size-30:0.75rem;--b2b-size-35:0.875rem;--b2b-size-40:1rem;--b2b-size-45:1.125rem;--b2b-size-50:1.25rem;--b2b-size-53:1.3125rem;--b2b-size-55:1.375rem;--b2b-size-60:1.5rem;--b2b-size-70:1.75rem;--b2b-size-80:2rem;--b2b-size-90:2.25rem;--b2b-size-100:2.5rem;--b2b-size-120:3rem;--b2b-size-140:3.5rem;--b2b-size-150:3.75rem;--b2b-size-160:4rem;--b2b-size-200:5rem;--b2b-color-error-50:var(--b2b-color-red-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-inverted:var(--b2b-color-black-100)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host(.b2b-time-picker){--b2b-border-radius:var(--b2b-size-border-radius-100);--b2b-border-right:1px solid var(--b2b-color-grey-200);max-width:600px;min-width:130px;display:block}:host(.b2b-time-picker) .b2b-time-picker__options-container{display:none;position:relative;z-index:1001}:host(.b2b-time-picker) .b2b-time-picker__options-container--visible{display:block}:host(.b2b-time-picker) .b2b-time-picker__options{position:absolute;background-color:var(--b2b-color-white-100);box-sizing:border-box;height:272px;width:var(--b2b-size-200);overflow-y:scroll;border:var(--b2b-size-1) solid var(--b2b-color-black-100);border-top:none;scrollbar-color:#7f7f7f transparent;scrollbar-gutter:stable}:host(.b2b-time-picker) .b2b-time-picker__option{width:100%;box-sizing:border-box;padding:7px var(--b2b-size-space-75) var(--b2b-size-15);cursor:pointer;font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-copy-100);line-height:var(--b2b-size-copy-line-height-100)}:host(.b2b-time-picker) .b2b-time-picker__option:hover,:host(.b2b-time-picker) .b2b-time-picker__option--selected{background-color:var(--b2b-color-blue-25)}:host(.b2b-time-picker) .b2b-time-picker__wrapper{box-sizing:border-box;height:36px;display:flex;align-items:center;background-color:var(--b2b-color-white-100);color:var(--b2b-color-black-100);position:relative;padding:var(--b2b-size-15) var(--b2b-size-25);border:1px solid var(--b2b-color-grey-200);border-right:var(--b2b-border-right);border-radius:var(--b2b-border-radius)}:host(.b2b-time-picker) .b2b-time-picker__wrapper--focused{color:var(--b2b-color-black-100);border-radius:var(--b2b-border-radius);border:1px solid var(--b2b-color-black-100);z-index:9999}:host(.b2b-time-picker) .b2b-time-picker__wrapper--filled{color:var(--b2b-color-black-100)}:host(.b2b-time-picker) .b2b-time-picker__wrapper--error{background-color:var(--b2b-color-error-50);border:1px solid var(--b2b-color-error-100);color:var(--b2b-color-black-100)}:host(.b2b-time-picker) .b2b-time-picker__wrapper--error .b2b-time-picker__native-input{background-color:var(--b2b-color-error-50)}:host(.b2b-time-picker) .b2b-time-picker__wrapper .b2b-time-picker__native-input{width:100%;border:none;flex:1 1 auto;outline:none;box-shadow:none;box-sizing:border-box;margin-left:0;padding-left:0;height:100%;color:var(--b2b-color-black-100);font-size:var(--b2b-size-35);line-height:var(--b2b-size-copy-line-height-100);font-weight:var(--b2b-font-weight-normal);font-family:var(--b2b-font-family-default)}:host(.b2b-time-picker) .b2b-time-picker__wrapper .b2b-time-picker__native-input::placeholder{color:var(--b2b-color-grey-300)}:host(.b2b-time-picker) .b2b-time-picker-label{display:block;margin-bottom:var(--b2b-size-5);color:var(--b2b-color-black-100);font-size:var(b2b-size-copy-100)}.b2b-time-picker__hint{font-size:var(--b2b-size-copy-50);line-height:var(--b2b-size-copy-line-height-75);display:block;margin-top:var(--b2b-size-7);color:var(--b2b-color-grey-300)}.b2b-time-picker__hint--error{color:var(--b2b-color-error-100)}.b2b-icons{display:flex;align-items:center}.b2b-close-icon{display:block}.b2b-duration-icon{color:var(--b2b-color-black-100)}";
|
|
6
|
+
const B2bTimePickerStyle0 = timePickerCss;
|
|
7
|
+
|
|
8
|
+
const TimePickerComponent = /*@__PURE__*/ proxyCustomElement(class TimePickerComponent extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.b2bFocus = createEvent(this, "b2b-focus", 7);
|
|
14
|
+
this.b2bBlur = createEvent(this, "b2b-blur", 7);
|
|
15
|
+
this.b2bInput = createEvent(this, "b2b-input", 7);
|
|
16
|
+
this.b2bChange = createEvent(this, "b2b-selected", 7);
|
|
17
|
+
this.b2bClear = createEvent(this, "b2b-clear", 7);
|
|
18
|
+
this.onFocus = (ev) => {
|
|
19
|
+
this.hasFocus = true;
|
|
20
|
+
this.isOpen = true;
|
|
21
|
+
this.b2bFocus.emit(ev);
|
|
22
|
+
};
|
|
23
|
+
this.onBlur = (ev) => {
|
|
24
|
+
this.hasFocus = false;
|
|
25
|
+
this.isOpen = false;
|
|
26
|
+
this.b2bBlur.emit(ev);
|
|
27
|
+
};
|
|
28
|
+
this.onInput = (ev) => {
|
|
29
|
+
this.isOpen = false;
|
|
30
|
+
const input = ev.target;
|
|
31
|
+
this.value = input.value;
|
|
32
|
+
this.b2bInput.emit({ value: this.value });
|
|
33
|
+
};
|
|
34
|
+
this.validateInput = (value) => {
|
|
35
|
+
const match = value.match(/^(\d{2}):(\d{2})$/);
|
|
36
|
+
let isValid = false;
|
|
37
|
+
if (match) {
|
|
38
|
+
const hour = parseInt(match[1], 10);
|
|
39
|
+
const minute = parseInt(match[2], 10);
|
|
40
|
+
isValid = hour >= 0 && hour <= 23 && minute >= 0 && minute <= 59;
|
|
41
|
+
}
|
|
42
|
+
if (!isValid && value.length > 0) {
|
|
43
|
+
this.internalErrorMessage = 'Invalid format';
|
|
44
|
+
this.internalInvalid = true;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.internalErrorMessage = '';
|
|
48
|
+
this.internalInvalid = false;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
this.onSelect = (event) => {
|
|
52
|
+
var _a;
|
|
53
|
+
const target = event.target;
|
|
54
|
+
const selectedValue = target.getAttribute('data-value');
|
|
55
|
+
if (selectedValue !== null) {
|
|
56
|
+
this.value = selectedValue;
|
|
57
|
+
this.b2bChange.emit(selectedValue);
|
|
58
|
+
this.internalInvalid = false;
|
|
59
|
+
this.internalErrorMessage = '';
|
|
60
|
+
this.hasFocus = false;
|
|
61
|
+
this.isOpen = false;
|
|
62
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.onClear = () => {
|
|
66
|
+
this.value = '';
|
|
67
|
+
this.internalInvalid = false;
|
|
68
|
+
this.internalErrorMessage = '';
|
|
69
|
+
this.hasFocus = false;
|
|
70
|
+
this.b2bClear.emit();
|
|
71
|
+
};
|
|
72
|
+
this.toggleDropdown = () => {
|
|
73
|
+
var _a;
|
|
74
|
+
this.isOpen = !this.isOpen;
|
|
75
|
+
if (this.isOpen) {
|
|
76
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
this.label = undefined;
|
|
80
|
+
this.required = false;
|
|
81
|
+
this.placeholder = 'hh:mm';
|
|
82
|
+
this.invalid = false;
|
|
83
|
+
this.hint = undefined;
|
|
84
|
+
this.interval = 15;
|
|
85
|
+
this.error = undefined;
|
|
86
|
+
this.value = null;
|
|
87
|
+
this.hasFocus = false;
|
|
88
|
+
this.isOpen = false;
|
|
89
|
+
this.availableTimes = [];
|
|
90
|
+
this.internalErrorMessage = '';
|
|
91
|
+
this.internalInvalid = false;
|
|
92
|
+
}
|
|
93
|
+
componentWillLoad() {
|
|
94
|
+
this.availableTimes = this.getAvailableTimes();
|
|
95
|
+
if (this.value) {
|
|
96
|
+
this.validateInput(this.value);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
handleIntervalChange() {
|
|
100
|
+
this.availableTimes = this.getAvailableTimes();
|
|
101
|
+
}
|
|
102
|
+
validateValue(newValue) {
|
|
103
|
+
this.value = newValue;
|
|
104
|
+
this.validateInput(newValue);
|
|
105
|
+
}
|
|
106
|
+
get isInvalid() {
|
|
107
|
+
return this.invalid || this.internalInvalid;
|
|
108
|
+
}
|
|
109
|
+
get currentErrorMessage() {
|
|
110
|
+
return this.error || this.internalErrorMessage;
|
|
111
|
+
}
|
|
112
|
+
getAvailableTimes() {
|
|
113
|
+
const times = [];
|
|
114
|
+
const step = this.interval || 15;
|
|
115
|
+
for (let hour = 0; hour < 24; hour++) {
|
|
116
|
+
for (let minute = 0; minute < 60; minute += step) {
|
|
117
|
+
const time = `${hour.toString().padStart(2, '0')}:${minute
|
|
118
|
+
.toString()
|
|
119
|
+
.padStart(2, '0')}`;
|
|
120
|
+
times.push(time);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return times;
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return (h(Host, { key: '82d85e61e12453aa332eb1771c2ecacf84a93bce', class: {
|
|
127
|
+
'b2b-time-picker': true,
|
|
128
|
+
'b2b-time-picker--error': this.isInvalid,
|
|
129
|
+
} }, this.label && (h("b2b-input-label", { id: this.label, required: this.required }, this.label)), h("div", { key: 'e6e70210043bd5c220c03610ab4681378889b075', class: {
|
|
130
|
+
'b2b-time-picker__wrapper': true,
|
|
131
|
+
'b2b-time-picker__wrapper--focused': this.hasFocus,
|
|
132
|
+
'b2b-time-picker__wrapper--filled': !this.hasFocus && !this.invalid && this.value !== '',
|
|
133
|
+
'b2b-time-picker__wrapper--error': this.isInvalid,
|
|
134
|
+
} }, h("input", { key: '91994a1908b2c5dd5886c442fd5a3ca6415f3619', ref: el => (this.inputRef = el), class: {
|
|
135
|
+
'b2b-time-picker__native-input': true,
|
|
136
|
+
}, type: "text", placeholder: this.placeholder, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput }), h("div", { key: '4052c5c017944c767ccbf286dd4de11e74509848', class: "b2b-icons" }, this.value && (h("div", { class: "b2b-close-icon", onClick: this.onClear }, h("b2b-icon-100", { icon: "b2b_icon-close", "aria-label": "clear input", clickable: true }))), h("div", { key: '92996f5e06fc7e325088d09185b4496a00df68f5', class: "b2b-duration-icon", onMouseDown: e => {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
this.toggleDropdown();
|
|
139
|
+
} }, h("b2b-icon-100", { key: 'e24b25b79ef06002af8ce83ecf41e88b967ca4ed', icon: "b2b_icon-duration", clickable: true })))), h("div", { key: 'e3154f9b414215660041e6779668c0bb50f06284', class: {
|
|
140
|
+
'b2b-time-picker__options-container': true,
|
|
141
|
+
'b2b-time-picker__options-container--visible': this.isOpen && this.hasFocus,
|
|
142
|
+
}, onMouseDown: e => e.preventDefault() }, h("div", { key: '92e172240eaae8ddb7cef7dab5aaf02b55df44ea', class: "b2b-time-picker__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, this.availableTimes.map(time => (h("div", { key: time, class: {
|
|
143
|
+
'b2b-time-picker__option': true,
|
|
144
|
+
'b2b-time-picker__option--selected': time === this.value,
|
|
145
|
+
}, "data-value": time, onClick: this.onSelect, role: "option", "aria-selected": time === this.value ? 'true' : 'false' }, time))))), h("span", { class: {
|
|
146
|
+
'b2b-time-picker__hint': true,
|
|
147
|
+
'b2b-time-picker__hint--error': this.isInvalid,
|
|
148
|
+
} }, this.isInvalid ? this.currentErrorMessage : this.hint)));
|
|
149
|
+
}
|
|
150
|
+
static get watchers() { return {
|
|
151
|
+
"interval": ["handleIntervalChange"],
|
|
152
|
+
"value": ["validateValue"]
|
|
153
|
+
}; }
|
|
154
|
+
static get style() { return B2bTimePickerStyle0; }
|
|
155
|
+
}, [1, "b2b-time-picker", {
|
|
156
|
+
"label": [1],
|
|
157
|
+
"required": [516],
|
|
158
|
+
"placeholder": [513],
|
|
159
|
+
"invalid": [516],
|
|
160
|
+
"hint": [1],
|
|
161
|
+
"interval": [2],
|
|
162
|
+
"error": [1],
|
|
163
|
+
"value": [1537],
|
|
164
|
+
"hasFocus": [32],
|
|
165
|
+
"isOpen": [32],
|
|
166
|
+
"availableTimes": [32],
|
|
167
|
+
"internalErrorMessage": [32],
|
|
168
|
+
"internalInvalid": [32]
|
|
169
|
+
}, undefined, {
|
|
170
|
+
"interval": ["handleIntervalChange"],
|
|
171
|
+
"value": ["validateValue"]
|
|
172
|
+
}]);
|
|
173
|
+
function defineCustomElement$1() {
|
|
174
|
+
if (typeof customElements === "undefined") {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const components = ["b2b-time-picker", "b2b-icon-100", "b2b-input-label"];
|
|
178
|
+
components.forEach(tagName => { switch (tagName) {
|
|
179
|
+
case "b2b-time-picker":
|
|
180
|
+
if (!customElements.get(tagName)) {
|
|
181
|
+
customElements.define(tagName, TimePickerComponent);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
case "b2b-icon-100":
|
|
185
|
+
if (!customElements.get(tagName)) {
|
|
186
|
+
defineCustomElement$3();
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case "b2b-input-label":
|
|
190
|
+
if (!customElements.get(tagName)) {
|
|
191
|
+
defineCustomElement$2();
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
} });
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const B2bTimePicker = TimePickerComponent;
|
|
198
|
+
const defineCustomElement = defineCustomElement$1;
|
|
199
|
+
|
|
200
|
+
export { B2bTimePicker, defineCustomElement };
|
|
@@ -39,13 +39,13 @@ const B2bToggleButtonComponent = /*@__PURE__*/ proxyCustomElement(class B2bToggl
|
|
|
39
39
|
return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((toggle) => toggle.value !== this.value);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '087925aae07f41b1fe50efb4dceda7e3e48849bc', onClick: this.onClick }, h("span", { key: 'e85fea0b039ff481a18a8e194480e5432fcc6b80', class: {
|
|
43
43
|
'b2b-toggle-button': true,
|
|
44
44
|
'b2b-toggle-button--disabled': this.disabled,
|
|
45
|
-
} }, h("input", { key: '
|
|
45
|
+
} }, h("input", { key: 'd50119c68578e8db12e49a8a408c8b7b2611ea29', tabindex: 0, class: {
|
|
46
46
|
'b2b-toggle-button__input': true,
|
|
47
47
|
'b2b-toggle-button__input--disabled': this.disabled,
|
|
48
|
-
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
48
|
+
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: 'bc66888b0740d13031c0467717af4e76c4d19a67', id: this.name, tabindex: -1, class: {
|
|
49
49
|
'b2b-toggle-button__label': true,
|
|
50
50
|
'b2b-toggle-button__label--disabled': this.disabled,
|
|
51
51
|
'b2b-toggle-button__label--checked': this.checked && !this.disabled,
|
|
@@ -40,11 +40,11 @@ const B2BToggleChipComponent = /*@__PURE__*/ proxyCustomElement(class B2BToggleC
|
|
|
40
40
|
this.disabled = false;
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '9b02a8f340b5531879187d4ac97fccb6ae619a69' }, h("span", { key: '59994cb3e4c28bdf673d329d12d0e56e628c140b', onClick: this.onClick, onKeyDown: this.onKeyDown, class: {
|
|
44
44
|
'b2b-toggle-chip': true,
|
|
45
|
-
} }, h("input", { key: '
|
|
45
|
+
} }, h("input", { key: '7492ffd930e3ebb62f3df0cece70b2cc232444df', "aria-labelledby": this.name, tabindex: this.disabled ? -1 : 0, class: {
|
|
46
46
|
'b2b-toggle-chip__input': true,
|
|
47
|
-
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
47
|
+
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: 'c47d4a9483d9bccdd16722af2fd74e50f8a10257', id: this.name, tabIndex: -1, class: {
|
|
48
48
|
'b2b-toggle-chip__label': true,
|
|
49
49
|
'b2b-toggle-chip__label--active': this.active && !this.disabled,
|
|
50
50
|
'b2b-toggle-chip__label--disabled': this.disabled,
|
|
@@ -53,10 +53,10 @@ const B2BToggleGroup = /*@__PURE__*/ proxyCustomElement(class B2BToggleGroup ext
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '99ff703edae5a8759af9e4b9093c2db32108d2cd' }, h("div", { key: 'f4b20d4fcf809ec622688866ae736233d16d90ee', class: {
|
|
57
57
|
'b2b-toggle-group': true,
|
|
58
58
|
'b2b-toggle-group--disabled': this.disabled,
|
|
59
|
-
} }, h("fieldset", { key: '
|
|
59
|
+
} }, h("fieldset", { key: '97ec3070e1935d8803c8e3b7bac17f3eb92864f1' }, h("slot", { key: '787e72239b2f2300a1150787044ad5fe38c6588e' })))));
|
|
60
60
|
}
|
|
61
61
|
get host() { return this; }
|
|
62
62
|
static get watchers() { return {
|
|
@@ -46,17 +46,17 @@ const B2bToggleSwitchComponent = /*@__PURE__*/ proxyCustomElement(class B2bToggl
|
|
|
46
46
|
render() {
|
|
47
47
|
// workaround for purgecss as safelist doesn't work
|
|
48
48
|
const isLeft = this.labelPosition === 'left';
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '5a9a846632b7b3cca02a79a9ed043f5ab9d1c6fa' }, h("div", { key: '115479ac6e5df73f04d6f73e01a541c805a31a63', class: {
|
|
50
50
|
'b2b-toggle': true,
|
|
51
51
|
'b2b-toggle--disabled': this.disabled,
|
|
52
52
|
'b2b-toggle--checked': this.state,
|
|
53
|
-
} }, h("div", { key: '
|
|
53
|
+
} }, h("div", { key: 'cf530d51f4fd327135935ea500193031dedefe4e', class: {
|
|
54
54
|
'b2b-toggle__label': true,
|
|
55
55
|
'b2b-toggle__label--left': isLeft,
|
|
56
|
-
} }, h("span", { key: '
|
|
56
|
+
} }, h("span", { key: 'f758117b3dbf6256bfc810dc818c63e7aa5f5597', class: "b2b-toggle__switch", role: "switch", tabIndex: 0, onKeyDown: this.onKeyDown, onClick: this.onClick }, h("svg", { key: '08626107d93016092543c78e25c82abd0fea42f3', class: {
|
|
57
57
|
'b2b-toggle__icon': true,
|
|
58
58
|
'b2b-toggle__icon--show': this.state,
|
|
59
|
-
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '
|
|
59
|
+
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: 'a57ece77901fca3e09462f88cedd7d9407d7a91c', d: "M11.798 25.082c-.341 0-.681-.13-.942-.389l-7.132-7.115a1.334 1.334 0 0 1 1.884-1.888l6.19 6.175L26.391 7.307a1.334 1.334 0 0 1 1.884 1.888L12.74 24.693c-.26.259-.601.389-.942.389z" }))), this.label && (h("span", { class: {
|
|
60
60
|
'b2b-toggle__text': true,
|
|
61
61
|
'b2b-toggle__text--left': isLeft,
|
|
62
62
|
} }, this.label))))));
|
|
@@ -60,13 +60,13 @@ const B2BTooltipComponent = /*@__PURE__*/ proxyCustomElement(class B2BTooltipCom
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'd433aa3cbd4216722933e50fd2613afb8be0a32a', onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave }, h("span", { key: '31a5bc21f1adc031dc0d92732659138bf4e27681', class: {
|
|
64
64
|
[`b2b-tooltip--${this.position}`]: true,
|
|
65
65
|
'b2b-tooltip__trigger': true,
|
|
66
|
-
} }, h("slot", { key: '
|
|
66
|
+
} }, h("slot", { key: 'bbec9da1933c391822594f5d555bcefe316c02f3' }), h("div", { key: '4697390b2e16363008a437b9b1af37ea82ee2660', class: {
|
|
67
67
|
'b2b-tooltip__content': true,
|
|
68
68
|
'b2b-tooltip--visible': this.opened,
|
|
69
|
-
} }, h("slot", { key: '
|
|
69
|
+
} }, h("slot", { key: '2e78f5e154563a7c0e9d2e1067e00aa56991ae0c', name: "content" }, this.content)))));
|
|
70
70
|
}
|
|
71
71
|
get host() { return this; }
|
|
72
72
|
static get watchers() { return {
|
|
@@ -17,10 +17,10 @@ const WizardStepComponent = /*@__PURE__*/ proxyCustomElement(class WizardStepCom
|
|
|
17
17
|
this.checkIcon = true;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '6748e7f67b3cec569003e9b99c413dbdfb99f402' }, h("div", { key: '2ab2e6f5f76238bbe5e943551c7b0fb36df9d121', class: "b2b_wizard__step" }, h("b2b-wizard-icon", { key: '13b0071f3d02918551d65e22fb1511f3ca666926', step: this.step, state: this.state, checkIcon: this.checkIcon }), h("div", { key: '416cef0fe8bee41e1ee1b566ed5b9b7bc6469fb4', class: {
|
|
21
21
|
'b2b_wizard__step__label': true,
|
|
22
22
|
'b2b_wizard__step__label--default': this.state === WizardStatus.DEFAULT,
|
|
23
|
-
} }, h("slot", { key: '
|
|
23
|
+
} }, h("slot", { key: 'f06b1de799fc54b8ece414795b7ab0750a382108' })))));
|
|
24
24
|
}
|
|
25
25
|
static get style() { return B2bWizardStepStyle0; }
|
|
26
26
|
}, [1, "b2b-wizard-step", {
|
|
@@ -51,7 +51,7 @@ const WizardComponent = /*@__PURE__*/ proxyCustomElement(class WizardComponent e
|
|
|
51
51
|
this.setStepsState();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '489668ca4d9f27816d504f8238131697c0fe3857' }, h("div", { key: '984c7faaaf101d267b9fb89e2dd60ef4046a6443', class: "b2b_wizard" }, h("slot", { key: '87ab15ff841b158a6874cec12c4ab8c19f78df01' }))));
|
|
55
55
|
}
|
|
56
56
|
get host() { return this; }
|
|
57
57
|
static get style() { return B2bWizardStyle0; }
|
|
@@ -16,7 +16,7 @@ const WizardIconComponent = /*@__PURE__*/ proxyCustomElement(class WizardIconCom
|
|
|
16
16
|
this.checkIcon = true;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '364653c4305a1b9a2fe5deb3ec866d98e281cee4' }, h("div", { key: '20adef4ae0389dfd7167df3876bcdeccda855073', class: {
|
|
20
20
|
'b2b-wizard-icon': true,
|
|
21
21
|
} }, this.state === WizardStatus.COMPLETED && (h("b2b-rounded-icon", { color: "var(--b2b-color-success-50)", "content-color": "var(--b2b-color-success-100)" }, this.checkIcon ? (h("b2b-icon-100", { slot: "icon", icon: "b2b_icon-check" })) : (h("span", { slot: "text" }, this.step)))), this.state === WizardStatus.PENDING && (h("b2b-rounded-icon", { color: "var(--b2b-color-icon-default)", "content-color": "var(--b2b-color-icon-inverted)" }, h("span", { slot: "text" }, this.step))), this.state === WizardStatus.DISABLED && (h("b2b-rounded-icon", { color: "var(--b2b-color-grey-100)", "content-color": "var(--b2b-color-grey-400)" }, h("span", { slot: "text" }, this.step))), this.state === WizardStatus.DEFAULT && (h("b2b-rounded-icon", { color: "transparent", "border-color": "var(--b2b-color-icon-secondary)", "content-color": "var(--b2b-color-icon-secondary)" }, h("span", { slot: "text" }, this.step))))));
|
|
22
22
|
}
|
|
@@ -512,6 +512,21 @@
|
|
|
512
512
|
"value": ""
|
|
513
513
|
},
|
|
514
514
|
"attributes": [
|
|
515
|
+
{
|
|
516
|
+
"name": "alignment",
|
|
517
|
+
"description": "The horizontal alignment of the dropdown. Can be 'left', 'center', or 'right'. Default is 'left'.",
|
|
518
|
+
"values": [
|
|
519
|
+
{
|
|
520
|
+
"name": "center"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "left"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "right"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
515
530
|
{
|
|
516
531
|
"name": "auto-disable-search",
|
|
517
532
|
"description": "Search is automatically disabled for lists with fewer than six options."
|
|
@@ -4740,6 +4755,47 @@
|
|
|
4740
4755
|
}
|
|
4741
4756
|
]
|
|
4742
4757
|
},
|
|
4758
|
+
{
|
|
4759
|
+
"name": "b2b-time-picker",
|
|
4760
|
+
"description": {
|
|
4761
|
+
"kind": "markdown",
|
|
4762
|
+
"value": ""
|
|
4763
|
+
},
|
|
4764
|
+
"attributes": [
|
|
4765
|
+
{
|
|
4766
|
+
"name": "error",
|
|
4767
|
+
"description": "The error message that is shown if the input is invalid."
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
"name": "hint",
|
|
4771
|
+
"description": "The hint text that appears underneath the time picker field."
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
"name": "interval",
|
|
4775
|
+
"description": "The interval in minutes for the time options. Default is 15 minutes."
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
"name": "invalid",
|
|
4779
|
+
"description": "Whether the time picker is currently invalid. If true, the time picker is rendered with error styles. Per default, it is false."
|
|
4780
|
+
},
|
|
4781
|
+
{
|
|
4782
|
+
"name": "label",
|
|
4783
|
+
"description": "The time picker label."
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"name": "placeholder",
|
|
4787
|
+
"description": "The placeholder for the time picker input field."
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
"name": "required",
|
|
4791
|
+
"description": "Adds an asterisk at the end of the label to signify that the field is required."
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
"name": "value",
|
|
4795
|
+
"description": "The value of the time picker. It has to be in the format \"hh:mm\"."
|
|
4796
|
+
}
|
|
4797
|
+
]
|
|
4798
|
+
},
|
|
4743
4799
|
{
|
|
4744
4800
|
"name": "b2b-toggle-button",
|
|
4745
4801
|
"description": {
|