@otto-de/b2b-core-components 1.29.1 → 1.29.2

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.
Files changed (65) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-436b4f63.entry.js +1 -0
  3. package/dist/cjs/b2b-dropdown.cjs.entry.js +6 -18
  4. package/dist/collection/components/alert/alert.css +2 -2
  5. package/dist/collection/components/anchor/anchor.css +2 -2
  6. package/dist/collection/components/background-box/background-box.css +2 -2
  7. package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
  8. package/dist/collection/components/button/button.css +2 -2
  9. package/dist/collection/components/card/card.css +2 -2
  10. package/dist/collection/components/checkbox/checkbox.css +2 -2
  11. package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
  12. package/dist/collection/components/chip/chip.css +2 -2
  13. package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
  14. package/dist/collection/components/date-picker/date-picker-days.css +2 -2
  15. package/dist/collection/components/date-picker/date-picker-header.css +2 -2
  16. package/dist/collection/components/date-picker/date-picker-months.css +2 -2
  17. package/dist/collection/components/date-picker/date-picker-years.css +2 -2
  18. package/dist/collection/components/date-picker/date-picker.css +2 -2
  19. package/dist/collection/components/dropdown/dropdown.css +2 -2
  20. package/dist/collection/components/dropdown/dropdown.js +6 -18
  21. package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
  22. package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
  23. package/dist/collection/components/headline/headline.css +2 -2
  24. package/dist/collection/components/icon/icon.css +2 -2
  25. package/dist/collection/components/icon-100/icon-100.css +2 -2
  26. package/dist/collection/components/icon-50/icon-50.css +2 -2
  27. package/dist/collection/components/input/input.css +2 -2
  28. package/dist/collection/components/input-group/input-group.css +2 -2
  29. package/dist/collection/components/input-list/input-list.css +2 -2
  30. package/dist/collection/components/label/label.css +2 -2
  31. package/dist/collection/components/modal/modal.css +2 -2
  32. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
  33. package/dist/collection/components/pagination/pagination.css +2 -2
  34. package/dist/collection/components/paragraph/paragraph.css +2 -2
  35. package/dist/collection/components/progress-bar/progress-bar.css +2 -2
  36. package/dist/collection/components/radio/radio.css +2 -2
  37. package/dist/collection/components/radio-group/radio-group.css +2 -2
  38. package/dist/collection/components/required-separator/required-separator.css +2 -2
  39. package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
  40. package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
  41. package/dist/collection/components/separator/separator.css +2 -2
  42. package/dist/collection/components/shimmer/shimmer.css +2 -2
  43. package/dist/collection/components/snackbar/snackbar.css +2 -2
  44. package/dist/collection/components/spinner/spinner.css +2 -2
  45. package/dist/collection/components/tab/tab.css +2 -2
  46. package/dist/collection/components/tab-panel/tab-panel.css +2 -2
  47. package/dist/collection/components/table/table-cell/table-cell.css +2 -2
  48. package/dist/collection/components/table/table-header/table-header.css +2 -2
  49. package/dist/collection/components/table/table-row/table-row.css +2 -2
  50. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
  51. package/dist/collection/components/table/table.css +2 -2
  52. package/dist/collection/components/textarea/textarea.css +2 -2
  53. package/dist/collection/components/toggle-button/toggle-button.css +2 -2
  54. package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
  55. package/dist/collection/components/toggle-group/toggle-group.css +2 -2
  56. package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
  57. package/dist/collection/components/tooltip/tooltip.css +2 -2
  58. package/dist/collection/components/wizard/wizard.css +2 -2
  59. package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
  60. package/dist/components/b2b-dropdown.js +6 -18
  61. package/dist/esm/b2b-dropdown.entry.js +6 -18
  62. package/dist/types/components/dropdown/dropdown.d.ts +0 -1
  63. package/dist/web-types.json +1 -1
  64. package/package.json +2 -2
  65. package/dist/b2b-core-components/p-6731435f.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-b6a753e8.js";export{s as setNonce}from"./p-b6a753e8.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-e59239ce",[[1,"b2b-date-picker",{"disablePastDates":[4,"disable-past-dates"],"disableFutureDates":[4,"disable-future-dates"],"disableWeekends":[4,"disable-weekends"],"disableDates":[1,"disable-dates"],"label":[1],"required":[516],"preSelectedDate":[1,"pre-selected-date"],"showHint":[4,"show-hint"],"width":[2],"disableDays":[1,"disable-days"],"disableDatesUntil":[1,"disable-dates-until"],"disableDatesFrom":[1,"disable-dates-from"],"hint":[1],"placeholder":[513],"language":[1],"showDatePicker":[32],"focused":[32],"datePickerView":[32],"selectedMonth":[32],"selectedYear":[32],"selectedDay":[32],"selectedDate":[32],"userInputDate":[32],"invalid":[32],"errorMessage":[32],"datesToBeDisabled":[32],"normalizedDisableEvery":[32],"normalizedDisableDatesUntil":[32],"normalizedDisableDatesFrom":[32]},[[0,"b2b-date-picker-escape","handleEscapePress"],[0,"b2b-date-selected","handleDateSelection"],[0,"b2b-date-picker-previous-month","getPreviousMonth"],[0,"b2b-date-picker-next-month","getNextMonth"],[0,"b2b-date-picker-view-changed","handleDatePickerViewChanged"],[0,"b2b-date-picker-month-selected","handleMonthSelected"],[0,"b2b-date-picker-year-selected","handleYearSelected"]],{"disableDates":["handleDisableDatesChanged"],"disableDays":["handleDisableDaysChanged"],"disableDatesUntil":["handleDisableDatesUntilChanged"],"disableDatesFrom":["handleDisableDatesFromChanged"],"disablePastDates":["handleDisablePastDatesChanged"],"disableFutureDates":["handleDisableFutureDatesChanged"],"disableWeekends":["handleDisableWeekendsChanged"]}]]],["p-f5786cad",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]},[[0,"keydown","handleKeyDown"]]]]],["p-5e6aa5f2",[[1,"b2b-multiselect-dropdown",{"label":[1],"placeholder":[513],"selectedValues":[1,"selected-values"],"optionsList":[1,"options-list"],"searchPlaceholder":[1,"search-placeholder"],"selectAllLabel":[1,"select-all-label"],"maxOptionsVisible":[2,"max-options-visible"],"required":[516],"invalid":[516],"errorMessage":[1,"error-message"],"hint":[1],"disabled":[516],"currentSelectedValues":[32],"currentList":[32],"value":[32],"isElementFocused":[32],"isOpen":[32],"hasOptionList":[32]},null,{"optionsList":["watchPropHandler"],"selectedValues":["handleSelectedValuesChangeFromOutside"],"currentSelectedValues":["handleSelectedValuesChange"]}]]],["p-6ff0ffdf",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"selectable":[4],"size":[1],"value":[1],"indeterminate":[4],"checked":[1028],"isAccordionValue":[32],"isOpen":[32],"toggleAccordion":[64]},[[0,"b2b-change","toggleSelected"]]]]],["p-659c5d92",[[1,"b2b-wizard-step",{"state":[1],"step":[1],"checkIcon":[4,"check-icon"]}]]],["p-6cf5561b",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]],{"opened":["openedChanged"]}]]],["p-5450ce1c",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]},null,{"totalPages":["onTotalPagesChange"],"activePage":["onActivePageChange"]}]]],["p-2a64d962",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]},null,{"opened":["openedChanged"]}]]],["p-fe7c7068",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]],{"disabled":["disabledChanged"],"invalid":["invalidChanged"]}]]],["p-6731435f",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"placeholder":[1],"placeholderValue":[1,"placeholder-value"],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"isOpen":[32],"focused":[32],"selectedValue":[32],"selectedText":[32],"options":[32],"clearSelection":[64]},null,{"isOpen":["watchDropdownState"]}]]],["p-8d73c38a",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["p-c2a7f367",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]],{"invalid":["invalidChanged"],"disabled":["disabledChanged"]}]]],["p-14a72105",[[1,"b2b-required-separator",{"label":[1]}]]],["p-a9ba47d6",[[1,"b2b-snackbar",{"description":[1],"type":[1],"opened":[1540],"timed":[4],"duration":[2],"hasAction":[4,"has-action"],"actionLabel":[1,"action-label"],"width":[1]},null,{"opened":["onVisibleChange"]}]]],["p-a155219a",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["p-561b8fd3",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"],"height":[1]}]]],["p-b5b0f18e",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1],"hoverColor":[1,"hover-color"],"underlineText":[4,"underline-text"]}]]],["p-dbc638ef",[[1,"b2b-background-box",{"maxWidth":[4,"max-width"],"noPadding":[4,"no-padding"],"borderTop":[1,"border-top"],"borderRight":[1,"border-right"],"borderBottom":[1,"border-bottom"],"borderLeft":[1,"border-left"]}]]],["p-3fda7682",[[1,"b2b-breadcrumb",{"paddingTop":[2,"padding-top"],"paddingBottom":[2,"padding-bottom"]},[[0,"b2b-change","onSelectedChange"]]]]],["p-bb32be62",[[1,"b2b-breadcrumb-item",{"href":[1],"value":[8],"active":[1028]}]]],["p-8abf78b9",[[1,"b2b-card",{"disabled":[4],"href":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","onKeyDown"]]]]],["p-bbbbd519",[[1,"b2b-flyout-menu",{"opened":[1028]},[[0,"keydown","handleKeyDown"],[0,"b2b-option-selected","handleSelected"],[4,"click","handleClickOutside"]]]]],["p-d93b45d6",[[1,"b2b-flyout-menu-option",{"option":[1],"disabled":[516],"separator":[4]},[[0,"keydown","handleKeyDown"]]]]],["p-383d0a10",[[1,"b2b-grid",{"margin":[2]}]]],["p-db205434",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["p-d1c8105b",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["p-661b0094",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-5b9fabe6",[[1,"b2b-icon-50",{"icon":[1],"color":[1],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-f51f72d4",[[1,"b2b-label",{"type":[1]}]]],["p-dad8f664",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1],"margin":[4],"variant":[1],"display":[1]}]]],["p-3cc11116",[[1,"b2b-progress-bar",{"progress":[2],"label":[1],"labelType":[1,"label-type"],"labelPosition":[1,"label-position"]}]]],["p-fbb917b5",[[1,"b2b-scrollable-container"]]],["p-c6cc2dea",[[1,"b2b-shimmer",{"loading":[4],"width":[2],"height":[2]}]]],["p-22dd07cc",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]},null,{"selected":["propagateChange"]}]]],["p-80c5af85",[[1,"b2b-tab-panel"]]],["p-2647450d",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["p-9487b0bf",[[1,"b2b-table-rowgroup",{"type":[1],"size":[1],"accordion":[516],"selectable":[4],"fixed":[4],"opened":[516],"selectedValues":[32]},[[0,"b2b-open","handleOpenChange"],[0,"b2b-row-selected","handleSelectedChange"]]]]],["p-93bf8bbe",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["p-3568c300",[[1,"b2b-toggle-chip",{"label":[1],"value":[520],"name":[513],"active":[1028],"disabled":[516]}]]],["p-fdc01d9c",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]],{"disabled":["disabledChanged"]}]]],["p-348f152b",[[1,"b2b-toggle-switch",{"label":[1],"name":[1],"labelPosition":[1,"label-position"],"disabled":[4],"state":[1028]}]]],["p-fe75bd7e",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]},null,{"opened":["handleOpenedChange"]}]]],["p-77eabb15",[[1,"b2b-wizard",{"activeStep":[1,"active-step"],"custom":[4],"checkIcon":[4,"check-icon"]}]]],["p-7e5a8e61",[[1,"b2b-wizard-icon",{"step":[1],"state":[1],"checkIcon":[4,"check-icon"]}]]],["p-c8a68b79",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"disabled":[516],"groupDisabled":[4,"group-disabled"],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]],{"optionsList":["watchPropHandler"]}],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]},null,{"invalid":["invalidChanged"],"disabled":["disabledChanged"]}]]],["p-bf0a5d26",[[0,"b2b-multiselect-option",{"option":[1],"selected":[1028],"indeterminate":[4]}],[1,"b2b-chip-component",{"label":[1],"type":[1],"labelStyle":[1,"label-style"],"disabled":[4],"hasCloseButton":[4,"has-close-button"],"value":[520],"customMargin":[1,"custom-margin"]}]]],["p-f67e3fbe",[[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1],"colspan":[2],"totalCols":[2,"total-cols"],"useTextEllipsis":[32]}],[1,"b2b-table-header",{"divider":[4],"size":[1],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"colspan":[2],"contentAlign":[1,"content-align"],"totalCols":[2,"total-cols"],"active":[32],"iconAlign":[32]}]]],["p-aa8b6283",[[1,"b2b-rounded-icon",{"color":[1],"borderColor":[1,"border-color"],"contentColor":[1,"content-color"]}]]],["p-f982a075",[[1,"b2b-separator",{"alignment":[1]}]]],["p-e81d0f3a",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"indeterminate":[1028],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4],"standalone":[4],"groupDisabled":[4,"group-disabled"]}]]],["p-07a49843",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["p-9356a466",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"groupDisabled":[4,"group-disabled"],"inputTextAlign":[1,"input-text-align"],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64],"clearInput":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["p-6723772d",[[1,"b2b-date-picker-header",{"selectedMonth":[2,"selected-month"],"selectedYear":[2,"selected-year"],"language":[1]}],[1,"b2b-date-picker-days",{"selectedMonth":[2,"selected-month"],"selectedYear":[2,"selected-year"],"selectedDay":[2,"selected-day"],"disablePastDates":[4,"disable-past-dates"],"disableFutureDates":[4,"disable-future-dates"],"disableWeekends":[4,"disable-weekends"],"disableDates":[16],"disableEvery":[16],"disableDatesUntil":[16],"disableDatesFrom":[16],"disabled":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-date-picker-days-header",{"language":[1]}],[1,"b2b-date-picker-months",{"selectedMonth":[2,"selected-month"],"language":[1]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-date-picker-years",{"selectedYear":[2,"selected-year"],"yearsRange":[32]},[[0,"keydown","handleKeyDown"]]]]],["p-08c8a952",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"width":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"groupDisabled":[4,"group-disabled"],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]],["p-2202abf9",[[1,"b2b-icon-100",{"icon":[1],"color":[1],"size":[2],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-400fa973",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]]]'),e))));
1
+ import{p as e,b as a}from"./p-b6a753e8.js";export{s as setNonce}from"./p-b6a753e8.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-e59239ce",[[1,"b2b-date-picker",{"disablePastDates":[4,"disable-past-dates"],"disableFutureDates":[4,"disable-future-dates"],"disableWeekends":[4,"disable-weekends"],"disableDates":[1,"disable-dates"],"label":[1],"required":[516],"preSelectedDate":[1,"pre-selected-date"],"showHint":[4,"show-hint"],"width":[2],"disableDays":[1,"disable-days"],"disableDatesUntil":[1,"disable-dates-until"],"disableDatesFrom":[1,"disable-dates-from"],"hint":[1],"placeholder":[513],"language":[1],"showDatePicker":[32],"focused":[32],"datePickerView":[32],"selectedMonth":[32],"selectedYear":[32],"selectedDay":[32],"selectedDate":[32],"userInputDate":[32],"invalid":[32],"errorMessage":[32],"datesToBeDisabled":[32],"normalizedDisableEvery":[32],"normalizedDisableDatesUntil":[32],"normalizedDisableDatesFrom":[32]},[[0,"b2b-date-picker-escape","handleEscapePress"],[0,"b2b-date-selected","handleDateSelection"],[0,"b2b-date-picker-previous-month","getPreviousMonth"],[0,"b2b-date-picker-next-month","getNextMonth"],[0,"b2b-date-picker-view-changed","handleDatePickerViewChanged"],[0,"b2b-date-picker-month-selected","handleMonthSelected"],[0,"b2b-date-picker-year-selected","handleYearSelected"]],{"disableDates":["handleDisableDatesChanged"],"disableDays":["handleDisableDaysChanged"],"disableDatesUntil":["handleDisableDatesUntilChanged"],"disableDatesFrom":["handleDisableDatesFromChanged"],"disablePastDates":["handleDisablePastDatesChanged"],"disableFutureDates":["handleDisableFutureDatesChanged"],"disableWeekends":["handleDisableWeekendsChanged"]}]]],["p-f5786cad",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]},[[0,"keydown","handleKeyDown"]]]]],["p-5e6aa5f2",[[1,"b2b-multiselect-dropdown",{"label":[1],"placeholder":[513],"selectedValues":[1,"selected-values"],"optionsList":[1,"options-list"],"searchPlaceholder":[1,"search-placeholder"],"selectAllLabel":[1,"select-all-label"],"maxOptionsVisible":[2,"max-options-visible"],"required":[516],"invalid":[516],"errorMessage":[1,"error-message"],"hint":[1],"disabled":[516],"currentSelectedValues":[32],"currentList":[32],"value":[32],"isElementFocused":[32],"isOpen":[32],"hasOptionList":[32]},null,{"optionsList":["watchPropHandler"],"selectedValues":["handleSelectedValuesChangeFromOutside"],"currentSelectedValues":["handleSelectedValuesChange"]}]]],["p-6ff0ffdf",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"selectable":[4],"size":[1],"value":[1],"indeterminate":[4],"checked":[1028],"isAccordionValue":[32],"isOpen":[32],"toggleAccordion":[64]},[[0,"b2b-change","toggleSelected"]]]]],["p-659c5d92",[[1,"b2b-wizard-step",{"state":[1],"step":[1],"checkIcon":[4,"check-icon"]}]]],["p-6cf5561b",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]],{"opened":["openedChanged"]}]]],["p-5450ce1c",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]},null,{"totalPages":["onTotalPagesChange"],"activePage":["onActivePageChange"]}]]],["p-2a64d962",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]},null,{"opened":["openedChanged"]}]]],["p-fe7c7068",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]],{"disabled":["disabledChanged"],"invalid":["invalidChanged"]}]]],["p-436b4f63",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"placeholder":[1],"placeholderValue":[1,"placeholder-value"],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"isOpen":[32],"focused":[32],"selectedValue":[32],"selectedText":[32],"options":[32],"clearSelection":[64]},null,{"isOpen":["watchDropdownState"]}]]],["p-8d73c38a",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["p-c2a7f367",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]],{"invalid":["invalidChanged"],"disabled":["disabledChanged"]}]]],["p-14a72105",[[1,"b2b-required-separator",{"label":[1]}]]],["p-a9ba47d6",[[1,"b2b-snackbar",{"description":[1],"type":[1],"opened":[1540],"timed":[4],"duration":[2],"hasAction":[4,"has-action"],"actionLabel":[1,"action-label"],"width":[1]},null,{"opened":["onVisibleChange"]}]]],["p-a155219a",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["p-561b8fd3",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"],"height":[1]}]]],["p-b5b0f18e",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1],"hoverColor":[1,"hover-color"],"underlineText":[4,"underline-text"]}]]],["p-dbc638ef",[[1,"b2b-background-box",{"maxWidth":[4,"max-width"],"noPadding":[4,"no-padding"],"borderTop":[1,"border-top"],"borderRight":[1,"border-right"],"borderBottom":[1,"border-bottom"],"borderLeft":[1,"border-left"]}]]],["p-3fda7682",[[1,"b2b-breadcrumb",{"paddingTop":[2,"padding-top"],"paddingBottom":[2,"padding-bottom"]},[[0,"b2b-change","onSelectedChange"]]]]],["p-bb32be62",[[1,"b2b-breadcrumb-item",{"href":[1],"value":[8],"active":[1028]}]]],["p-8abf78b9",[[1,"b2b-card",{"disabled":[4],"href":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","onKeyDown"]]]]],["p-bbbbd519",[[1,"b2b-flyout-menu",{"opened":[1028]},[[0,"keydown","handleKeyDown"],[0,"b2b-option-selected","handleSelected"],[4,"click","handleClickOutside"]]]]],["p-d93b45d6",[[1,"b2b-flyout-menu-option",{"option":[1],"disabled":[516],"separator":[4]},[[0,"keydown","handleKeyDown"]]]]],["p-383d0a10",[[1,"b2b-grid",{"margin":[2]}]]],["p-db205434",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["p-d1c8105b",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["p-661b0094",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-5b9fabe6",[[1,"b2b-icon-50",{"icon":[1],"color":[1],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-f51f72d4",[[1,"b2b-label",{"type":[1]}]]],["p-dad8f664",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1],"margin":[4],"variant":[1],"display":[1]}]]],["p-3cc11116",[[1,"b2b-progress-bar",{"progress":[2],"label":[1],"labelType":[1,"label-type"],"labelPosition":[1,"label-position"]}]]],["p-fbb917b5",[[1,"b2b-scrollable-container"]]],["p-c6cc2dea",[[1,"b2b-shimmer",{"loading":[4],"width":[2],"height":[2]}]]],["p-22dd07cc",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]},null,{"selected":["propagateChange"]}]]],["p-80c5af85",[[1,"b2b-tab-panel"]]],["p-2647450d",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["p-9487b0bf",[[1,"b2b-table-rowgroup",{"type":[1],"size":[1],"accordion":[516],"selectable":[4],"fixed":[4],"opened":[516],"selectedValues":[32]},[[0,"b2b-open","handleOpenChange"],[0,"b2b-row-selected","handleSelectedChange"]]]]],["p-93bf8bbe",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["p-3568c300",[[1,"b2b-toggle-chip",{"label":[1],"value":[520],"name":[513],"active":[1028],"disabled":[516]}]]],["p-fdc01d9c",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]],{"disabled":["disabledChanged"]}]]],["p-348f152b",[[1,"b2b-toggle-switch",{"label":[1],"name":[1],"labelPosition":[1,"label-position"],"disabled":[4],"state":[1028]}]]],["p-fe75bd7e",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]},null,{"opened":["handleOpenedChange"]}]]],["p-77eabb15",[[1,"b2b-wizard",{"activeStep":[1,"active-step"],"custom":[4],"checkIcon":[4,"check-icon"]}]]],["p-7e5a8e61",[[1,"b2b-wizard-icon",{"step":[1],"state":[1],"checkIcon":[4,"check-icon"]}]]],["p-c8a68b79",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"disabled":[516],"groupDisabled":[4,"group-disabled"],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]],{"optionsList":["watchPropHandler"]}],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]},null,{"invalid":["invalidChanged"],"disabled":["disabledChanged"]}]]],["p-bf0a5d26",[[0,"b2b-multiselect-option",{"option":[1],"selected":[1028],"indeterminate":[4]}],[1,"b2b-chip-component",{"label":[1],"type":[1],"labelStyle":[1,"label-style"],"disabled":[4],"hasCloseButton":[4,"has-close-button"],"value":[520],"customMargin":[1,"custom-margin"]}]]],["p-f67e3fbe",[[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1],"colspan":[2],"totalCols":[2,"total-cols"],"useTextEllipsis":[32]}],[1,"b2b-table-header",{"divider":[4],"size":[1],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"colspan":[2],"contentAlign":[1,"content-align"],"totalCols":[2,"total-cols"],"active":[32],"iconAlign":[32]}]]],["p-aa8b6283",[[1,"b2b-rounded-icon",{"color":[1],"borderColor":[1,"border-color"],"contentColor":[1,"content-color"]}]]],["p-f982a075",[[1,"b2b-separator",{"alignment":[1]}]]],["p-e81d0f3a",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"indeterminate":[1028],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4],"standalone":[4],"groupDisabled":[4,"group-disabled"]}]]],["p-07a49843",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["p-9356a466",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"groupDisabled":[4,"group-disabled"],"inputTextAlign":[1,"input-text-align"],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64],"clearInput":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["p-6723772d",[[1,"b2b-date-picker-header",{"selectedMonth":[2,"selected-month"],"selectedYear":[2,"selected-year"],"language":[1]}],[1,"b2b-date-picker-days",{"selectedMonth":[2,"selected-month"],"selectedYear":[2,"selected-year"],"selectedDay":[2,"selected-day"],"disablePastDates":[4,"disable-past-dates"],"disableFutureDates":[4,"disable-future-dates"],"disableWeekends":[4,"disable-weekends"],"disableDates":[16],"disableEvery":[16],"disableDatesUntil":[16],"disableDatesFrom":[16],"disabled":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-date-picker-days-header",{"language":[1]}],[1,"b2b-date-picker-months",{"selectedMonth":[2,"selected-month"],"language":[1]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-date-picker-years",{"selectedYear":[2,"selected-year"],"yearsRange":[32]},[[0,"keydown","handleKeyDown"]]]]],["p-08c8a952",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"width":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"groupDisabled":[4,"group-disabled"],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]],["p-2202abf9",[[1,"b2b-icon-100",{"icon":[1],"color":[1],"size":[2],"clickable":[4],"focusable":[4],"pathData":[32]},null,{"icon":["loadIconPathData"]}]]],["p-400fa973",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]]]'),e))));
@@ -0,0 +1 @@
1
+ import{r as b,c as o,h as r,H as e,g as i}from"./p-b6a753e8.js";const t=class{constructor(r){b(this,r),this.b2bChange=o(this,"b2b-change",7),this.b2bFocus=o(this,"b2b-focus",7),this.b2bBlur=o(this,"b2b-blur",7),this.truncatedText="",this.onClickOutside=b=>{this.hostElement.contains(b.target)||(this.isOpen=!1)},this.toggleDropdown=()=>{this.disabled||(this.isOpen=!this.isOpen)},this.onFocus=b=>{this.focused=!0,this.b2bFocus.emit(b)},this.onBlur=b=>{this.focused=!1,this.b2bBlur.emit(b)},this.onSelect=b=>{var o;const r=b.target,e=r.getAttribute("data-value"),i=null===(o=r.textContent)||void 0===o?void 0:o.trim();e&&(this.selectedValue=e,this.selectedText=i||"",this.b2bChange.emit(e),this.options=this.options.map((b=>Object.assign(Object.assign({},b),{selected:b.value===e}))),this.isOpen=!1,this.updateTruncatedText())},this.updateTruncatedText=()=>{if(!this.selectEl)return;const b=this.selectedText||this.placeholder,o=window.getComputedStyle(this.selectEl),r=document.createElement("canvas").getContext("2d");if(!r)return;r.font=`${o.fontWeight} ${o.fontSize} ${o.fontFamily}`;const e=this.selectEl.clientWidth-parseFloat(o.paddingRight||"0")-24;if(r.measureText(b).width<=e)return void(this.truncatedText=b);let i="";for(let o=0;o<b.length;o++){const t=b.slice(0,o+1)+"…";if(r.measureText(t).width>e)break;i=b.slice(0,o+1)}this.truncatedText=i+"…"},this.label=void 0,this.required=!1,this.name=void 0,this.placeholder="Select an option...",this.placeholderValue="",this.disabled=!1,this.invalid=!1,this.hint=void 0,this.error=void 0,this.isOpen=!1,this.focused=!1,this.selectedValue="",this.selectedText="",this.options=[]}async clearSelection(){this.selectedValue=this.placeholderValue||"",this.selectedText=this.placeholder||"Select an option...",this.options=this.options.map((b=>Object.assign(Object.assign({},b),{selected:!1}))),this.isOpen=!1,this.updateTruncatedText()}componentWillLoad(){this.selectedValue=this.placeholderValue||"",this.selectedText=""}componentDidLoad(){this.initializeOptions(),this.updateTruncatedText(),document.addEventListener("click",this.onClickOutside),window.addEventListener("resize",this.updateTruncatedText),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((()=>{this.initializeOptions()})),this.mutationObserver.observe(this.hostElement,{childList:!0,subtree:!0}))}disconnectedCallback(){document.removeEventListener("click",this.onClickOutside),window.removeEventListener("resize",this.updateTruncatedText),this.mutationObserver&&this.mutationObserver.disconnect()}watchDropdownState(){this.isOpen&&this.closeOtherDropdowns()}initializeOptions(){const b=Array.from(this.hostElement.querySelectorAll("option"));this.options=b.map((b=>{var o;return{value:b.value,label:(null===(o=b.textContent)||void 0===o?void 0:o.trim())||"",selected:b.selected||b.hasAttribute("selected"),disabled:b.disabled||b.hasAttribute("disabled")}}));const o=this.options.find((b=>b.selected));o&&(this.selectedValue=o.value,this.selectedText=o.label),this.updateTruncatedText()}closeOtherDropdowns(){document.querySelectorAll("b2b-dropdown").forEach((b=>{b!==this.hostElement&&(b.isOpen=!1)}))}render(){const b=this.invalid&&!this.disabled,o=this.hint&&(!this.invalid||this.disabled),i=this.error&&b;return r(e,{key:"a2b06d84969c61375e9768f7f6c268e33f3d3d3b",class:{"b2b-dropdown":!0,"b2b-dropdown--error":b,"b2b-dropdown--disabled":this.disabled}},this.label&&r("b2b-input-label",{id:this.name,required:this.required},this.label),r("div",{key:"22f461ff3cde097705ef0832fe24178678a5ac90",class:"b2b-dropdown__wrapper",onFocus:this.onFocus,onBlur:this.onBlur},r("div",{key:"937e9b977f1259375cb86c8e7f96c62bad6dac2d",class:{"b2b-dropdown__select":!0,"b2b-dropdown__select--open":this.isOpen,"b2b-dropdown__select--focused":this.focused},ref:b=>this.selectEl=b,onClick:this.toggleDropdown,role:"combobox","aria-expanded":`${this.isOpen}`,"aria-labelledby":this.name},this.selectedText?this.truncatedText:this.placeholder),this.isOpen&&r("div",{class:"b2b-dropdown__options",role:"listbox"},this.options.map((b=>r("div",{key:b.value,class:{"b2b-dropdown__option":!0,"b2b-dropdown__option--selected":b.selected,"b2b-dropdown__option--disabled":b.disabled},"data-value":b.value,onClick:b.disabled?void 0:this.onSelect,role:"option","aria-selected":b.selected?"true":"false","aria-disabled":b.disabled?"true":"false"},b.label))))),o&&r("span",null,this.hint),i&&r("span",null,this.error))}get hostElement(){return i(this)}static get watchers(){return{isOpen:["watchDropdownState"]}}};t.style=':root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-hover-black:#3b3b3b;--b2b-color-hover-default:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-grey-10:#f0f0f0;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-10);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme="dark"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-hover-black:#3b3b3b;--b2b-color-hover-default:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-grey-10:#f0f0f0;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@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-dropdown){--b2b-border-radius:var(--b2b-size-border-radius-100);--b2b-border-right:1px solid var(--b2b-color-grey-200);display:block;position:relative;width:100%;min-width:fit-content;font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-copy-100);max-width:600px}:host(.b2b-dropdown) .b2b-dropdown__wrapper{display:flex;position:relative;width:100%;box-sizing:border-box;flex:1}:host(.b2b-dropdown) .b2b-dropdown__select{font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-copy-100);appearance:none;background-color:var(--b2b-color-white-100);background-image:url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M27.748 12.017l-11.333 9.01a.666.666 0 0 1-.829 0l-11.333-9a.665.665 0 1 1 .829-1.044l10.919 8.671 10.919-8.68a.663.663 0 0 1 .936.107.667.667 0 0 1-.107.937z"/></svg>\');background-position:right 0.5rem center;background-repeat:no-repeat;background-size:1.5rem;width:100%;min-width:fit-content;border:1px solid var(--b2b-color-grey-200);border-right:var(--b2b-border-right);border-radius:var(--b2b-border-radius);padding:7px 10px 6px;padding-right:calc(1.75rem + 6px);height:var(--b2b-size-90);line-height:var(--b2b-size-copy-line-height-100);box-sizing:border-box;text-align:left;overflow-x:auto;overflow-y:hidden}:host(.b2b-dropdown) .b2b-dropdown__select--focused{outline:2px solid Highlight;outline:2px solid -webkit-focus-ring-color;border-radius:var(--b2b-border-radius);outline-offset:-1px;z-index:300}:host(.b2b-dropdown) .b2b-dropdown__select--open{outline:2px solid Highlight;outline:2px solid -webkit-focus-ring-color;border-radius:var(--b2b-border-radius);outline-offset:-1px;z-index:1001}:host(.b2b-dropdown) .b2b-dropdown__options{display:block;background-color:var(--b2b-color-white-100);max-height:288px;overflow-y:auto;margin:0;border-right:var(--b2b-size-1) solid var(--b2b-color-black-100);border-left:var(--b2b-size-1) solid var(--b2b-color-black-100);border-bottom:var(--b2b-size-1) solid var(--b2b-color-black-100);margin-top:0;border-top:none;text-align:left;top:100%;position:absolute;left:0;right:0;width:100%;z-index:1000;box-sizing:border-box;white-space:pre-wrap}:host(.b2b-dropdown) .b2b-dropdown__option{padding:10px;cursor:pointer;font-size:var(--b2b-size-copy-100);margin-top:0;border-top:none;display:block;width:100%;box-sizing:border-box}:host(.b2b-dropdown) .b2b-dropdown__option:hover{background-color:var(--b2b-color-hover-default)}:host(.b2b-dropdown) .b2b-dropdown__option--disabled{color:var(--b2b-color-grey-250);background-color:var(--b2b-color-white-100);pointer-events:none}:host(.b2b-dropdown) b2b-input-label{display:block;margin-bottom:var(--b2b-size-5)}:host(.b2b-dropdown) span{display:block;color:var(--b2b-color-grey-300);margin-top:var(--b2b-size-10);font-size:var(--b2b-size-copy-50);line-height:var(--b2b-size-copy-line-height-75)}:host(.b2b-dropdown--error) .b2b-dropdown__select{background-color:var(--b2b-color-error-50);border:1px solid var(--b2b-color-error-100);border-right:var(--b2b-border-right);border-color:var(--b2b-color-error-100)}:host(.b2b-dropdown--error) .b2b-dropdown__select:focus{outline:2px solid var(--b2b-color-error-100);outline-offset:-1px}:host(.b2b-dropdown--error) span{color:var(--b2b-color-error-100)}:host(.b2b-dropdown--disabled) .b2b-dropdown__select{background-image:url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" fill="grey" viewBox="0 0 32 32"><path d="M27.748 12.017l-11.333 9.01a.666.666 0 0 1-.829 0l-11.333-9a.665.665 0 1 1 .829-1.044l10.919 8.671 10.919-8.68a.663.663 0 0 1 .936.107.667.667 0 0 1-.107.937z"/></svg>\');background-color:var(--b2b-color-grey-25);color:var(--b2b-color-grey-250);border-color:var(--b2b-color-grey-200);opacity:1}';export{t as b2b_dropdown}
@@ -95,27 +95,14 @@ const DropdownComponent = class {
95
95
  this.selectedValue = this.placeholderValue || '';
96
96
  this.selectedText = '';
97
97
  }
98
- refreshOptions() {
99
- const optionElements = Array.from(this.hostElement.querySelectorAll('option'));
100
- this.options = optionElements.map(option => {
101
- var _a;
102
- return ({
103
- value: option.getAttribute('value') || '',
104
- label: ((_a = option.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '',
105
- selected: option.hasAttribute('selected'),
106
- disabled: option.hasAttribute('disabled'),
107
- });
108
- });
109
- }
110
98
  componentDidLoad() {
111
99
  this.initializeOptions();
112
100
  this.updateTruncatedText();
113
101
  document.addEventListener('click', this.onClickOutside);
114
102
  window.addEventListener('resize', this.updateTruncatedText);
115
- this.refreshOptions();
116
103
  if (typeof MutationObserver !== 'undefined') {
117
104
  this.mutationObserver = new MutationObserver(() => {
118
- this.refreshOptions();
105
+ this.initializeOptions();
119
106
  });
120
107
  this.mutationObserver.observe(this.hostElement, {
121
108
  childList: true,
@@ -141,8 +128,8 @@ const DropdownComponent = class {
141
128
  return ({
142
129
  value: opt.value,
143
130
  label: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '',
144
- selected: opt.hasAttribute('selected'),
145
- disabled: opt.hasAttribute('disabled'),
131
+ selected: opt.selected || opt.hasAttribute('selected'),
132
+ disabled: opt.disabled || opt.hasAttribute('disabled'),
146
133
  });
147
134
  });
148
135
  const selected = this.options.find(o => o.selected);
@@ -150,6 +137,7 @@ const DropdownComponent = class {
150
137
  this.selectedValue = selected.value;
151
138
  this.selectedText = selected.label;
152
139
  }
140
+ this.updateTruncatedText();
153
141
  }
154
142
  closeOtherDropdowns() {
155
143
  const others = document.querySelectorAll('b2b-dropdown');
@@ -162,11 +150,11 @@ const DropdownComponent = class {
162
150
  const hasError = this.invalid && !this.disabled;
163
151
  const showHint = this.hint && (!this.invalid || this.disabled);
164
152
  const showError = this.error && hasError;
165
- return (index.h(index.Host, { key: 'c637b01d1726e3986a086fda92e76baf3a4aebf3', class: {
153
+ return (index.h(index.Host, { key: 'a2b06d84969c61375e9768f7f6c268e33f3d3d3b', class: {
166
154
  'b2b-dropdown': true,
167
155
  'b2b-dropdown--error': hasError,
168
156
  'b2b-dropdown--disabled': this.disabled,
169
- } }, this.label && (index.h("b2b-input-label", { id: this.name, required: this.required }, this.label)), index.h("div", { key: 'de226d45b1c2f01ab465c180c3adcd646d714a6d', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, index.h("div", { key: '4cbf77b6f513e0f00987ef7aa95b63377f8d2169', class: {
157
+ } }, this.label && (index.h("b2b-input-label", { id: this.name, required: this.required }, this.label)), index.h("div", { key: '22f461ff3cde097705ef0832fe24178678a5ac90', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, index.h("div", { key: '937e9b977f1259375cb86c8e7f96c62bad6dac2d', class: {
170
158
  'b2b-dropdown__select': true,
171
159
  'b2b-dropdown__select--open': this.isOpen,
172
160
  'b2b-dropdown__select--focused': this.focused,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
4
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
5
5
  */
6
6
  :root, :host {
7
7
  --b2b-size-200: 5rem; /* 80px */
@@ -125,7 +125,7 @@
125
125
  }
126
126
  /**
127
127
  * Do not edit directly
128
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
128
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
129
129
  */
130
130
  :root [data-theme="dark"] {
131
131
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -83,27 +83,14 @@ export class DropdownComponent {
83
83
  this.selectedValue = this.placeholderValue || '';
84
84
  this.selectedText = '';
85
85
  }
86
- refreshOptions() {
87
- const optionElements = Array.from(this.hostElement.querySelectorAll('option'));
88
- this.options = optionElements.map(option => {
89
- var _a;
90
- return ({
91
- value: option.getAttribute('value') || '',
92
- label: ((_a = option.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '',
93
- selected: option.hasAttribute('selected'),
94
- disabled: option.hasAttribute('disabled'),
95
- });
96
- });
97
- }
98
86
  componentDidLoad() {
99
87
  this.initializeOptions();
100
88
  this.updateTruncatedText();
101
89
  document.addEventListener('click', this.onClickOutside);
102
90
  window.addEventListener('resize', this.updateTruncatedText);
103
- this.refreshOptions();
104
91
  if (typeof MutationObserver !== 'undefined') {
105
92
  this.mutationObserver = new MutationObserver(() => {
106
- this.refreshOptions();
93
+ this.initializeOptions();
107
94
  });
108
95
  this.mutationObserver.observe(this.hostElement, {
109
96
  childList: true,
@@ -129,8 +116,8 @@ export class DropdownComponent {
129
116
  return ({
130
117
  value: opt.value,
131
118
  label: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '',
132
- selected: opt.hasAttribute('selected'),
133
- disabled: opt.hasAttribute('disabled'),
119
+ selected: opt.selected || opt.hasAttribute('selected'),
120
+ disabled: opt.disabled || opt.hasAttribute('disabled'),
134
121
  });
135
122
  });
136
123
  const selected = this.options.find(o => o.selected);
@@ -138,6 +125,7 @@ export class DropdownComponent {
138
125
  this.selectedValue = selected.value;
139
126
  this.selectedText = selected.label;
140
127
  }
128
+ this.updateTruncatedText();
141
129
  }
142
130
  closeOtherDropdowns() {
143
131
  const others = document.querySelectorAll('b2b-dropdown');
@@ -150,11 +138,11 @@ export class DropdownComponent {
150
138
  const hasError = this.invalid && !this.disabled;
151
139
  const showHint = this.hint && (!this.invalid || this.disabled);
152
140
  const showError = this.error && hasError;
153
- return (h(Host, { key: 'c637b01d1726e3986a086fda92e76baf3a4aebf3', class: {
141
+ return (h(Host, { key: 'a2b06d84969c61375e9768f7f6c268e33f3d3d3b', class: {
154
142
  'b2b-dropdown': true,
155
143
  'b2b-dropdown--error': hasError,
156
144
  'b2b-dropdown--disabled': this.disabled,
157
- } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("div", { key: 'de226d45b1c2f01ab465c180c3adcd646d714a6d', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, h("div", { key: '4cbf77b6f513e0f00987ef7aa95b63377f8d2169', class: {
145
+ } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("div", { key: '22f461ff3cde097705ef0832fe24178678a5ac90', class: "b2b-dropdown__wrapper", onFocus: this.onFocus, onBlur: this.onBlur }, h("div", { key: '937e9b977f1259375cb86c8e7f96c62bad6dac2d', class: {
158
146
  'b2b-dropdown__select': true,
159
147
  'b2b-dropdown__select--open': this.isOpen,
160
148
  'b2b-dropdown__select--focused': this.focused,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
3
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -124,7 +124,7 @@
124
124
  }
125
125
  /**
126
126
  * Do not edit directly
127
- * Generated on Mon, 02 Jun 2025 07:16:21 GMT
127
+ * Generated on Tue, 03 Jun 2025 06:55:39 GMT
128
128
  */
129
129
  :root [data-theme="dark"] {
130
130
  --b2b-size-200: 5rem; /* 80px */