@sbb-esta/lyne-elements-dev 4.9.0-dev.1775050914 → 4.9.0-dev.1775058583
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/autocomplete/autocomplete-base-element.js +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/{autocomplete-base-element-DFRA5eoY.js → autocomplete-base-element-DarHnnYC.js} +1 -1
- package/autocomplete.js +1 -1
- package/autocomplete.pure.js +1 -1
- package/{block-link-common-CoPShhIc.js → block-link-common-DzGY49Xc.js} +1 -1
- package/calendar/common/calendar-cell-base-element.js +1 -1
- package/calendar/common.js +1 -1
- package/core/i18n/i18n.js +6 -1
- package/core/i18n.js +2 -2
- package/core.js +23 -23
- package/custom-elements.json +1349 -791
- package/date-input/date-input.component.js +1 -1
- package/{date-input.component-C6UN7HzO.js → date-input.component-B3f_GThS.js} +1 -1
- package/date-input.js +1 -1
- package/date-input.pure.js +1 -1
- package/development/autocomplete/autocomplete-base-element.js +1 -1
- package/development/autocomplete/autocomplete.component.js +1 -1
- package/development/autocomplete-base-element-YwfObJzm.js +678 -0
- package/development/autocomplete.js +1 -1
- package/development/autocomplete.pure.js +1 -1
- package/development/{block-link-common-DpyfVuA5.js → block-link-common-GckvjULA.js} +2 -2
- package/development/calendar/common/calendar-cell-base-element.js +1 -1
- package/development/calendar/common.js +1 -1
- package/development/{calendar-cell-base-element-kJ39Rg4Q.js → calendar-cell-base-element-BXohfDSl.js} +1 -1
- package/development/{compact-paginator.component-C7KIOEiW.js → compact-paginator.component-TfDVt_ST.js} +1 -1
- package/development/core/i18n/i18n.d.ts +1 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +8 -2
- package/development/core/i18n.js +2 -2
- package/development/core.js +2 -2
- package/development/date-input/date-input.component.js +1 -1
- package/development/date-input.component-UP1afzgy.js +307 -0
- package/development/date-input.js +1 -1
- package/development/date-input.pure.js +1 -1
- package/development/{error.component-CUqDJHb2.js → error.component-xD_c9IBA.js} +1 -3
- package/development/form-field/error/error.component.d.ts.map +1 -1
- package/development/form-field/error/error.component.js +1 -1
- package/development/form-field/error.js +1 -1
- package/development/form-field/form-field/form-field.component.d.ts +9 -2
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +1 -1
- package/development/form-field/form-field-text-counter/form-field-text-counter.component.d.ts +27 -0
- package/development/form-field/form-field-text-counter/form-field-text-counter.component.d.ts.map +1 -0
- package/development/form-field/form-field-text-counter/form-field-text-counter.component.js +113 -0
- package/development/form-field/form-field.js +1 -1
- package/development/form-field/hint/hint.component.d.ts +23 -0
- package/development/form-field/hint/hint.component.d.ts.map +1 -0
- package/development/form-field/hint/hint.component.js +2 -0
- package/development/form-field.component-BEXX0OcL.js +702 -0
- package/development/form-field.d.ts.map +1 -1
- package/development/form-field.js +9 -5
- package/development/form-field.pure.d.ts +3 -1
- package/development/form-field.pure.d.ts.map +1 -1
- package/development/form-field.pure.js +5 -3
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/common.js +1 -1
- package/development/header/header/header.component.js +1 -1
- package/development/header/header-environment/header-environment.component.js +1 -1
- package/development/header/header-environment.js +1 -1
- package/development/header/header.js +1 -1
- package/development/{header-action-common-C5NDTcye.js → header-action-common-MTYV0dqA.js} +1 -1
- package/development/{header-environment.component-ubJnFyq6.js → header-environment.component-DHqoX_lg.js} +1 -1
- package/development/{header.component-BEHRo9sO.js → header.component-Cg0ZcA1s.js} +1 -1
- package/development/header.js +3 -3
- package/development/header.pure.js +3 -3
- package/development/hint.component-BsIzdUOV.js +38 -0
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon.component.js +1 -1
- package/development/{icon-base-DQHsE1Bf.js → icon-base-DHN9pz2I.js} +1 -1
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-container.js +1 -1
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-content.js +1 -1
- package/development/icon-sidebar/icon-sidebar.js +1 -1
- package/development/{icon-sidebar-container.component-BjhFuBjz.js → icon-sidebar-container.component-BH_R88Rf.js} +1 -1
- package/development/{icon-sidebar-content.component-1JELEFzz.js → icon-sidebar-content.component-yoF6FjkW.js} +1 -1
- package/development/{icon-sidebar.component-ClXVHOXd.js → icon-sidebar.component-BGEkfXVs.js} +1 -1
- package/development/icon-sidebar.js +3 -3
- package/development/icon-sidebar.pure.js +3 -3
- package/development/icon.js +1 -1
- package/development/icon.pure.js +1 -1
- package/development/image/image.component.js +1 -1
- package/development/{image.component-Cs7gWePk.js → image.component-BD0jc-u-.js} +1 -1
- package/development/image.js +1 -1
- package/development/image.pure.js +1 -1
- package/development/{inline-link-common-BEJPxuSK.js → inline-link-common-CgTIwFAI.js} +2 -2
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/{journey-header.component-DIhnX1zx.js → journey-header.component-Ch1IqWeE.js} +1 -1
- package/development/journey-header.js +1 -1
- package/development/journey-header.pure.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/{lead-container.component-Bk2kiEls.js → lead-container.component-CGVdBWJr.js} +1 -1
- package/development/lead-container.js +1 -1
- package/development/lead-container.pure.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.js +1 -1
- package/development/link/common.js +3 -3
- package/development/{link-common-Dd7sIH_i.js → link-common-DJ2FfG_Q.js} +1 -1
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/common.js +1 -1
- package/development/link-list/link-list-anchor.js +1 -1
- package/development/link-list/link-list.component.js +1 -1
- package/development/link-list/link-list.js +1 -1
- package/development/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/{link-list-anchor.component-rNtfve0u.js → link-list-anchor.component-Du7kfDZ-.js} +1 -1
- package/development/link-list-anchor.js +1 -1
- package/development/link-list-anchor.pure.js +1 -1
- package/development/{link-list-base-CZs_KIZj.js → link-list-base-CKMNz30d.js} +1 -1
- package/development/{link-list.component-xc1HUr40.js → link-list.component-DQMg8MdQ.js} +2 -2
- package/development/link-list.js +3 -3
- package/development/link-list.pure.js +2 -2
- package/development/link.js +3 -3
- package/development/link.pure.js +3 -3
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/{loading-indicator-circle.component-CPItDDUV.js → loading-indicator-circle.component-np96Tu5S.js} +1 -1
- package/development/loading-indicator-circle.js +1 -1
- package/development/loading-indicator-circle.pure.js +1 -1
- package/development/{loading-indicator.component-CsCLE8As.js → loading-indicator.component-CgHYNMxB.js} +1 -1
- package/development/loading-indicator.js +1 -1
- package/development/loading-indicator.pure.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/{logo.component-B5UHRriz.js → logo.component-I0yP2SKr.js} +1 -1
- package/development/logo.js +1 -1
- package/development/logo.pure.js +1 -1
- package/development/map-container/map-container.component.js +1 -1
- package/development/{map-container.component-C-uFT6aq.js → map-container.component-D9NWw-wA.js} +1 -1
- package/development/map-container.js +1 -1
- package/development/map-container.pure.js +1 -1
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/common.js +1 -1
- package/development/menu/menu/menu.component.js +1 -1
- package/development/menu/menu.js +1 -1
- package/development/{menu-action-common-D7dnFDw3.js → menu-action-common-CBZCra6n.js} +1 -1
- package/development/{menu.component-CkhaeLr_.js → menu.component-Lh3JbVow.js} +1 -1
- package/development/menu.js +2 -2
- package/development/menu.pure.js +2 -2
- package/development/message/message.component.js +1 -1
- package/development/{message.component-CYAkINUN.js → message.component-CeJhYXSC.js} +1 -1
- package/development/message.js +1 -1
- package/development/message.pure.js +1 -1
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +1 -1
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +1 -1
- package/development/mini-calendar/mini-calendar-day.js +1 -1
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/development/mini-calendar/mini-calendar-month.js +1 -1
- package/development/mini-calendar/mini-calendar.js +1 -1
- package/development/{mini-calendar-day.component-CmjhXs9O.js → mini-calendar-day.component-BUNVO4ZU.js} +1 -1
- package/development/{mini-calendar-month.component-BcZmTWNY.js → mini-calendar-month.component-DZXvAhc3.js} +1 -1
- package/development/{mini-calendar.component-JHNd5prE.js → mini-calendar.component-BufzKw74.js} +1 -1
- package/development/mini-calendar.js +3 -3
- package/development/mini-calendar.pure.js +3 -3
- package/development/navigation/common/navigation-action-common.js +1 -1
- package/development/navigation/common.js +1 -1
- package/development/navigation/navigation/navigation.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-list.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/development/navigation/navigation-marker.js +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +1 -1
- package/development/navigation/navigation-section.js +1 -1
- package/development/navigation/navigation.js +1 -1
- package/development/{navigation-action-common-C-_fYlAw.js → navigation-action-common-DpBp7-eZ.js} +1 -1
- package/development/{navigation-list.component-CM0B5xFD.js → navigation-list.component-DqITJqFx.js} +1 -1
- package/development/{navigation-marker.component-DY5lO3RR.js → navigation-marker.component-BpZdT4xz.js} +1 -1
- package/development/{navigation-section.component-BhF6ZZWa.js → navigation-section.component-CtZtuacK.js} +1 -1
- package/development/{navigation.component-DMuXItrW.js → navigation.component-CTNQ1dix.js} +1 -1
- package/development/navigation.js +5 -5
- package/development/navigation.pure.js +5 -5
- package/development/notification/notification.component.js +1 -1
- package/development/{notification.component-BNKixp4j.js → notification.component-Co9QChXc.js} +1 -1
- package/development/notification.js +1 -1
- package/development/notification.pure.js +1 -1
- package/development/{optgroup-base-element-CZoLdLWC.js → optgroup-base-element-BaG2W_AP.js} +1 -1
- package/development/option/optgroup/optgroup-base-element.js +1 -1
- package/development/option/optgroup/optgroup.component.js +1 -1
- package/development/option/optgroup.js +1 -1
- package/development/option/option/option.component.js +1 -1
- package/development/option/option-hint/option-hint.component.js +1 -1
- package/development/option/option-hint.js +1 -1
- package/development/option/option.js +1 -1
- package/development/{option-hint.component-Brtsetng.js → option-hint.component-BH8dP1fM.js} +1 -1
- package/development/{option.component-93rtf-Aa.js → option.component-CdL7fdzZ.js} +1 -1
- package/development/option.js +3 -3
- package/development/option.pure.js +3 -3
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-Dii256s8.js → overlay.component-M0JuSq4C.js} +1 -1
- package/development/overlay.js +1 -1
- package/development/overlay.pure.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/compact-paginator.js +1 -1
- package/development/paginator/paginator/paginator.component.js +1 -1
- package/development/paginator/paginator.js +1 -1
- package/development/{paginator.component-Bw_gPwHM.js → paginator.component-DAdS2mMm.js} +1 -1
- package/development/paginator.js +2 -2
- package/development/paginator.pure.js +2 -2
- package/development/popover/popover.component.js +1 -1
- package/development/{popover.component-BYcsPVtW.js → popover.component-BCMdJBUR.js} +1 -1
- package/development/popover.js +1 -1
- package/development/popover.pure.js +1 -1
- package/development/radio-button/common/radio-button-common.js +1 -1
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button.component.js +1 -1
- package/development/radio-button/radio-button.js +1 -1
- package/development/{radio-button-common-D_lUbY_T.js → radio-button-common-C3-xuY78.js} +1 -1
- package/development/{radio-button.component-DZYxSPQ1.js → radio-button.component-BrQF2FfA.js} +2 -2
- package/development/radio-button.js +2 -2
- package/development/radio-button.pure.js +2 -2
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/{screen-reader-only.component-ClEbjMgG.js → screen-reader-only.component-B77UuVCI.js} +1 -1
- package/development/screen-reader-only.js +1 -1
- package/development/screen-reader-only.pure.js +1 -1
- package/development/select/select.component.js +1 -1
- package/development/select.component-CY7l3oc2.js +784 -0
- package/development/select.js +1 -1
- package/development/select.pure.js +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +1 -1
- package/development/{selection-action-panel.component-B0kzCPuW.js → selection-action-panel.component-D6I5wdEL.js} +1 -1
- package/development/selection-action-panel.js +1 -1
- package/development/selection-action-panel.pure.js +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/development/{selection-expansion-panel.component-B5U1-EIH.js → selection-expansion-panel.component-eO7b_EQF.js} +1 -1
- package/development/selection-expansion-panel.js +1 -1
- package/development/selection-expansion-panel.pure.js +1 -1
- package/development/sidebar/common/styles.js +1 -1
- package/development/sidebar/common.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +1 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-close-button.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/development/sidebar/sidebar-container.js +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-content.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/sidebar/sidebar-title.js +1 -1
- package/development/sidebar/sidebar.js +1 -1
- package/development/{sidebar-close-button.component-BLXSUD8K.js → sidebar-close-button.component-CYWv39Mu.js} +1 -1
- package/development/{sidebar-container.component-EPxCv4OU.js → sidebar-container.component-BDSoDAym.js} +1 -1
- package/development/{sidebar-content.component-BPj82v8W.js → sidebar-content.component-JcVKpKbK.js} +1 -1
- package/development/{sidebar-title.component-C26T-aj0.js → sidebar-title.component-BA_j-Igh.js} +1 -1
- package/development/{sidebar.component-BnzIgC5r.js → sidebar.component-DvRTyNry.js} +1 -1
- package/development/sidebar.js +5 -5
- package/development/sidebar.pure.js +5 -5
- package/development/signet/signet.component.js +1 -1
- package/development/{signet.component-rqmXUSLH.js → signet.component-3D2ZsajP.js} +1 -1
- package/development/signet.js +1 -1
- package/development/signet.pure.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/{skiplink-list.component-CO25nOlI.js → skiplink-list.component-EDPOitEB.js} +1 -1
- package/development/skiplink-list.js +1 -1
- package/development/skiplink-list.pure.js +1 -1
- package/development/slider/slider.component.js +1 -1
- package/development/{slider.component-pqrTtsJM.js → slider.component-BjfLnUvP.js} +1 -1
- package/development/slider.js +1 -1
- package/development/slider.pure.js +1 -1
- package/development/status/status.component.js +1 -1
- package/development/{status.component-BglE6AsK.js → status.component-CHC2pBa-.js} +1 -1
- package/development/status.js +1 -1
- package/development/status.pure.js +1 -1
- package/development/{step-label.component--mgZ4YOV.js → step-label.component-CJFPHIZa.js} +1 -1
- package/development/{step.component-CxNwo99y.js → step.component-B-n26urC.js} +1 -1
- package/development/stepper/step/step.component.js +1 -1
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/stepper/step-label.js +1 -1
- package/development/stepper/step.js +1 -1
- package/development/stepper/stepper/stepper.component.js +1 -1
- package/development/stepper/stepper.js +1 -1
- package/development/{stepper.component-BAuHFBuI.js → stepper.component-CxOBayI1.js} +1 -1
- package/development/stepper.js +3 -3
- package/development/stepper.pure.js +3 -3
- package/development/{styles-uic4FJu4.js → styles-D2RLaAYK.js} +1 -1
- package/development/{styles-DC4ScFJf.js → styles-DCQBzC2C.js} +1 -1
- package/development/{tab-group.component-p0zom_-m.js → tab-group.component-DRipdAyc.js} +1 -1
- package/development/{tab-label.component-DXdlEjWb.js → tab-label.component-14j2eh4Z.js} +1 -1
- package/development/{tab-nav-bar.component-D1u_2faV.js → tab-nav-bar.component-CgYwCSVY.js} +1 -1
- package/development/{tab.component-OWUc8Gpx.js → tab.component-DThKG7-a.js} +1 -1
- package/development/table/table-wrapper/table-wrapper.component.js +1 -1
- package/development/table/table-wrapper.js +1 -1
- package/development/{table-wrapper.component-KoVtmnY0.js → table-wrapper.component-D1p7kqCB.js} +1 -1
- package/development/table.js +1 -1
- package/development/table.pure.js +1 -1
- package/development/tabs/common/styles.js +1 -1
- package/development/tabs/common.js +1 -1
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +1 -1
- package/development/tabs/tab-group.js +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tabs/tab-label.js +1 -1
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
- package/development/tabs/tab-nav-bar.js +1 -1
- package/development/tabs/tab.js +1 -1
- package/development/tabs.js +5 -5
- package/development/tabs.pure.js +5 -5
- package/development/tag/tag/tag.component.js +1 -1
- package/development/tag/tag-group/tag-group.component.js +1 -1
- package/development/tag/tag-group.js +1 -1
- package/development/tag/tag.js +1 -1
- package/development/{tag-group.component-CdvXWCGq.js → tag-group.component-B7bBirrj.js} +1 -1
- package/development/{tag.component-C3aB89se.js → tag.component-0vKnvMOm.js} +1 -1
- package/development/tag.js +2 -2
- package/development/tag.pure.js +2 -2
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/{teaser-hero.component-DHqOeggr.js → teaser-hero.component-DNlc8Tbl.js} +1 -1
- package/development/teaser-hero.js +1 -1
- package/development/teaser-hero.pure.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product.js +1 -1
- package/development/{teaser-product-common-CSzXfXlG.js → teaser-product-common-B_r7GkGw.js} +1 -1
- package/development/{teaser-product.component-25RrjfNG.js → teaser-product.component-DjAMYUmw.js} +1 -1
- package/development/teaser-product.js +2 -2
- package/development/teaser-product.pure.js +2 -2
- package/development/{teaser.component-BUvUPsDr.js → teaser.component-C63t0z1I.js} +1 -1
- package/development/teaser.js +1 -1
- package/development/teaser.pure.js +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/time-input.component-BtdSR8kB.js +191 -0
- package/development/time-input.js +1 -1
- package/development/time-input.pure.js +1 -1
- package/development/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/development/timetable-form/timetable-form-details.js +1 -1
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/development/timetable-form/timetable-form-field.js +1 -1
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/development/timetable-form/timetable-form-swap-button.js +1 -1
- package/development/timetable-form/timetable-form.js +1 -1
- package/development/{timetable-form-details.component-DrixSXZ_.js → timetable-form-details.component-C8awcdP5.js} +1 -1
- package/development/{timetable-form-field.component-Cf9CSQkd.js → timetable-form-field.component-BI24VjkC.js} +1 -1
- package/development/{timetable-form-swap-button.component-BkMV4VjB.js → timetable-form-swap-button.component-BUKUjrpl.js} +1 -1
- package/development/{timetable-form.component-BfHFgAom.js → timetable-form.component-CUG86CSN.js} +1 -1
- package/development/timetable-form.js +4 -4
- package/development/timetable-form.pure.js +4 -4
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/development/{timetable-occupancy-icon.component-DNc9ZPXq.js → timetable-occupancy-icon.component-lI7__-G5.js} +1 -1
- package/development/timetable-occupancy-icon.js +1 -1
- package/development/timetable-occupancy-icon.pure.js +1 -1
- package/development/{timetable-occupancy.component-BcY0Bx6d.js → timetable-occupancy.component-D_PXXvI9.js} +1 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/timetable-occupancy.pure.js +1 -1
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.js +1 -1
- package/development/{title-base-DJpSmwtr.js → title-base-CBE_2Hkb.js} +1 -1
- package/development/{title.component-sv6WOvh6.js → title.component-Dk23JVct.js} +2 -2
- package/development/title.js +2 -2
- package/development/title.pure.js +2 -2
- package/development/toast/toast.component.js +1 -1
- package/development/{toast.component-BhSgkoKC.js → toast.component-BnbpuU9L.js} +1 -1
- package/development/toast.js +1 -1
- package/development/toast.pure.js +1 -1
- package/development/toggle/toggle/toggle.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle/toggle-option.js +1 -1
- package/development/toggle/toggle.js +1 -1
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/{toggle-check.component-ClPic4fO.js → toggle-check.component-BG4w_sE8.js} +1 -1
- package/development/toggle-check.js +1 -1
- package/development/toggle-check.pure.js +1 -1
- package/development/{toggle-option.component-uCFGyBBW.js → toggle-option.component-D-F7Fh7i.js} +1 -1
- package/development/{toggle.component-CsWt2dg0.js → toggle.component-BFYLRN8o.js} +1 -1
- package/development/toggle.js +2 -2
- package/development/toggle.pure.js +2 -2
- package/development/tooltip/tooltip.component.js +1 -1
- package/development/{tooltip.component-DqPwGT8l.js → tooltip.component-DzSd9VjW.js} +1 -1
- package/development/tooltip.js +1 -1
- package/development/tooltip.pure.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-blocked-passage.js +1 -1
- package/development/train/train-formation/train-formation.component.js +1 -1
- package/development/train/train-formation.js +1 -1
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/train/train-wagon.js +1 -1
- package/development/train/train.js +1 -1
- package/development/{train-blocked-passage.component-D37GNq9K.js → train-blocked-passage.component-BrUJK0gf.js} +1 -1
- package/development/{train-formation.component-CLXwFFw_.js → train-formation.component-vt-nYQXA.js} +1 -1
- package/development/{train-wagon.component-BogxEvfg.js → train-wagon.component-BzA8-S_6.js} +1 -1
- package/development/{train.component-H1eyQwth.js → train.component-BgpmEDx-.js} +1 -1
- package/development/train.js +4 -4
- package/development/train.pure.js +4 -4
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/development/{visual-checkbox.component-cvNCtfMJ.js → visual-checkbox.component-rdeoQN40.js} +1 -1
- package/development/visual-checkbox.js +1 -1
- package/development/visual-checkbox.pure.js +1 -1
- package/{error.component-D8ehHa6T.js → error.component-B_D8WUP5.js} +3 -3
- package/form-field/error/error.component.js +1 -1
- package/form-field/error.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/form-field/form-field-text-counter/form-field-text-counter.component.js +82 -0
- package/form-field/form-field.js +1 -1
- package/form-field/hint/hint.component.js +2 -0
- package/form-field.component-D50q1wC0.js +478 -0
- package/form-field.js +7 -5
- package/form-field.pure.js +6 -4
- package/header/common/header-action-common.js +1 -1
- package/header/common.js +1 -1
- package/header/header/header.component.js +1 -1
- package/header/header-environment/header-environment.component.js +1 -1
- package/header/header-environment.js +1 -1
- package/header/header.js +1 -1
- package/header.js +3 -3
- package/header.pure.js +3 -3
- package/hint.component-BVUUrSSu.js +24 -0
- package/icon/icon-base.js +1 -1
- package/icon/icon.component.js +1 -1
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +1 -1
- package/icon-sidebar/icon-sidebar-container.js +1 -1
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/icon-sidebar/icon-sidebar-content.js +1 -1
- package/icon-sidebar/icon-sidebar.js +1 -1
- package/icon-sidebar.js +3 -3
- package/icon-sidebar.pure.js +3 -3
- package/icon.js +1 -1
- package/icon.pure.js +1 -1
- package/image/image.component.js +1 -1
- package/image.js +1 -1
- package/image.pure.js +1 -1
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/{inline-link-common-Qnx3tjAC.js → inline-link-common-B5AHg8oa.js} +1 -1
- package/journey-header/journey-header.component.js +1 -1
- package/journey-header.js +1 -1
- package/journey-header.pure.js +1 -1
- package/lead-container/lead-container.component.js +1 -1
- package/lead-container.js +1 -1
- package/lead-container.pure.js +1 -1
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.js +1 -1
- package/link/common.js +3 -3
- package/link-list/common/link-list-base.js +1 -1
- package/link-list/common.js +1 -1
- package/link-list/link-list-anchor.js +1 -1
- package/link-list/link-list.component.js +1 -1
- package/link-list/link-list.js +1 -1
- package/link-list-anchor/link-list-anchor.component.js +1 -1
- package/link-list-anchor.js +1 -1
- package/link-list-anchor.pure.js +1 -1
- package/{link-list.component-C-ZCzBsN.js → link-list.component-AiEJJGPT.js} +1 -1
- package/link-list.js +3 -3
- package/link-list.pure.js +2 -2
- package/link.js +3 -3
- package/link.pure.js +3 -3
- package/loading-indicator/loading-indicator.component.js +1 -1
- package/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/loading-indicator-circle.js +1 -1
- package/loading-indicator-circle.pure.js +1 -1
- package/loading-indicator.js +1 -1
- package/loading-indicator.pure.js +1 -1
- package/logo/logo.component.js +1 -1
- package/logo.js +1 -1
- package/logo.pure.js +1 -1
- package/map-container/map-container.component.js +1 -1
- package/map-container.js +1 -1
- package/map-container.pure.js +1 -1
- package/menu/common/menu-action-common.js +1 -1
- package/menu/common.js +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/menu/menu.js +1 -1
- package/menu.js +2 -2
- package/menu.pure.js +2 -2
- package/message/message.component.js +1 -1
- package/message.js +1 -1
- package/message.pure.js +1 -1
- package/mini-calendar/mini-calendar/mini-calendar.component.js +1 -1
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +1 -1
- package/mini-calendar/mini-calendar-day.js +1 -1
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/mini-calendar/mini-calendar-month.js +1 -1
- package/mini-calendar/mini-calendar.js +1 -1
- package/mini-calendar.js +3 -3
- package/mini-calendar.pure.js +3 -3
- package/navigation/common/navigation-action-common.js +1 -1
- package/navigation/common.js +1 -1
- package/navigation/navigation/navigation.component.js +1 -1
- package/navigation/navigation-list/navigation-list.component.js +1 -1
- package/navigation/navigation-list.js +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/navigation/navigation-marker.js +1 -1
- package/navigation/navigation-section/navigation-section.component.js +1 -1
- package/navigation/navigation-section.js +1 -1
- package/navigation/navigation.js +1 -1
- package/navigation.js +5 -5
- package/navigation.pure.js +5 -5
- package/notification/notification.component.js +1 -1
- package/notification.js +1 -1
- package/notification.pure.js +1 -1
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/optgroup/optgroup.component.js +1 -1
- package/option/optgroup.js +1 -1
- package/option/option/option.component.js +1 -1
- package/option/option-hint/option-hint.component.js +1 -1
- package/option/option-hint.js +1 -1
- package/option/option.js +1 -1
- package/option.js +3 -3
- package/option.pure.js +3 -3
- package/overlay/overlay.component.js +1 -1
- package/overlay.js +1 -1
- package/overlay.pure.js +1 -1
- package/package.json +2 -2
- package/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/paginator/compact-paginator.js +1 -1
- package/paginator/paginator/paginator.component.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator.js +2 -2
- package/paginator.pure.js +2 -2
- package/popover/popover.component.js +1 -1
- package/popover.js +1 -1
- package/popover.pure.js +1 -1
- package/radio-button/common/radio-button-common.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button.component.js +1 -1
- package/radio-button/radio-button.js +1 -1
- package/{radio-button.component-LTWtP3vA.js → radio-button.component-BiGeOI5L.js} +1 -1
- package/radio-button.js +2 -2
- package/radio-button.pure.js +2 -2
- package/screen-reader-only/screen-reader-only.component.js +1 -1
- package/screen-reader-only.js +1 -1
- package/screen-reader-only.pure.js +1 -1
- package/select/select.component.js +1 -1
- package/{select.component-A-TwBa65.js → select.component-GAwqix4S.js} +1 -1
- package/select.js +1 -1
- package/select.pure.js +1 -1
- package/selection-action-panel/selection-action-panel.component.js +1 -1
- package/selection-action-panel.js +1 -1
- package/selection-action-panel.pure.js +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/selection-expansion-panel.js +1 -1
- package/selection-expansion-panel.pure.js +1 -1
- package/sidebar/common/styles.js +1 -1
- package/sidebar/common.js +1 -1
- package/sidebar/sidebar/sidebar.component.js +1 -1
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/sidebar/sidebar-close-button.js +1 -1
- package/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/sidebar/sidebar-container.js +1 -1
- package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/sidebar/sidebar-content.js +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/sidebar/sidebar-title.js +1 -1
- package/sidebar/sidebar.js +1 -1
- package/sidebar.js +5 -5
- package/sidebar.pure.js +5 -5
- package/signet/signet.component.js +1 -1
- package/signet.js +1 -1
- package/signet.pure.js +1 -1
- package/skiplink-list/skiplink-list.component.js +1 -1
- package/skiplink-list.js +1 -1
- package/skiplink-list.pure.js +1 -1
- package/slider/slider.component.js +1 -1
- package/slider.js +1 -1
- package/slider.pure.js +1 -1
- package/status/status.component.js +1 -1
- package/status.js +1 -1
- package/status.pure.js +1 -1
- package/stepper/step/step.component.js +1 -1
- package/stepper/step-label/step-label.component.js +1 -1
- package/stepper/step-label.js +1 -1
- package/stepper/step.js +1 -1
- package/stepper/stepper/stepper.component.js +1 -1
- package/stepper/stepper.js +1 -1
- package/stepper.js +3 -3
- package/stepper.pure.js +3 -3
- package/table/table-wrapper/table-wrapper.component.js +1 -1
- package/table/table-wrapper.js +1 -1
- package/table.js +1 -1
- package/table.pure.js +1 -1
- package/tabs/common/styles.js +1 -1
- package/tabs/common.js +1 -1
- package/tabs/tab/tab.component.js +1 -1
- package/tabs/tab-group/tab-group.component.js +1 -1
- package/tabs/tab-group.js +1 -1
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tabs/tab-label.js +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
- package/tabs/tab-nav-bar.js +1 -1
- package/tabs/tab.js +1 -1
- package/tabs.js +5 -5
- package/tabs.pure.js +5 -5
- package/tag/tag/tag.component.js +1 -1
- package/tag/tag-group/tag-group.component.js +1 -1
- package/tag/tag-group.js +1 -1
- package/tag/tag.js +1 -1
- package/tag.js +2 -2
- package/tag.pure.js +2 -2
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-hero.js +1 -1
- package/teaser-hero.pure.js +1 -1
- package/teaser-product/common/teaser-product-common.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product/teaser-product.js +1 -1
- package/teaser-product.js +2 -2
- package/teaser-product.pure.js +2 -2
- package/teaser.js +1 -1
- package/teaser.pure.js +1 -1
- package/time-input/time-input.component.js +1 -1
- package/{time-input.component-KSyUufTP.js → time-input.component-CuQ-3YEM.js} +1 -1
- package/time-input.js +1 -1
- package/time-input.pure.js +1 -1
- package/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/timetable-form/timetable-form-details.js +1 -1
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/timetable-form/timetable-form-field.js +1 -1
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/timetable-form/timetable-form-swap-button.js +1 -1
- package/timetable-form/timetable-form.js +1 -1
- package/timetable-form.js +4 -4
- package/timetable-form.pure.js +4 -4
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/timetable-occupancy-icon.js +1 -1
- package/timetable-occupancy-icon.pure.js +1 -1
- package/timetable-occupancy.js +1 -1
- package/timetable-occupancy.pure.js +1 -1
- package/title/title-base.js +1 -1
- package/title/title.component.js +1 -1
- package/{title.component-DTF6ezI7.js → title.component-CoMa84Sz.js} +1 -1
- package/title.js +2 -2
- package/title.pure.js +2 -2
- package/toast/toast.component.js +1 -1
- package/toast.js +1 -1
- package/toast.pure.js +1 -1
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +1 -1
- package/toggle/toggle-option.js +1 -1
- package/toggle/toggle.js +1 -1
- package/toggle-check/toggle-check.component.js +1 -1
- package/toggle-check.js +1 -1
- package/toggle-check.pure.js +1 -1
- package/toggle.js +2 -2
- package/toggle.pure.js +2 -2
- package/tooltip/tooltip.component.js +1 -1
- package/tooltip.js +1 -1
- package/tooltip.pure.js +1 -1
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-blocked-passage.js +1 -1
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-formation.js +1 -1
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/train/train-wagon.js +1 -1
- package/train/train.js +1 -1
- package/train.js +4 -4
- package/train.pure.js +4 -4
- package/visual-checkbox/visual-checkbox.component.js +1 -1
- package/visual-checkbox.js +1 -1
- package/visual-checkbox.pure.js +1 -1
- package/development/autocomplete-base-element-CNoHrX63.js +0 -678
- package/development/date-input.component-B7Eq5hCB.js +0 -307
- package/development/form-field.component-KEFq2rmY.js +0 -650
- package/development/select.component-DNMAVhaz.js +0 -784
- package/development/time-input.component-B4HBAe0K.js +0 -191
- package/form-field.component-BKjqLhmy.js +0 -447
- /package/{calendar-cell-base-element-YuddqT5m.js → calendar-cell-base-element-CBaanSU3.js} +0 -0
- /package/{compact-paginator.component-Co8YvCZK.js → compact-paginator.component-Cyi-t_YD.js} +0 -0
- /package/{header-action-common-6ZwwwdGK.js → header-action-common-DSx5QDWI.js} +0 -0
- /package/{header-environment.component-CFcPt4Jz.js → header-environment.component-rUR1XhR5.js} +0 -0
- /package/{header.component-COdYikfO.js → header.component-hZqs06Yh.js} +0 -0
- /package/{icon-base-BAIoRuzE.js → icon-base-ChhGqAkg.js} +0 -0
- /package/{icon-sidebar-container.component-D5gPD_fK.js → icon-sidebar-container.component-BrBnPZP_.js} +0 -0
- /package/{icon-sidebar-content.component-DB-T5oM6.js → icon-sidebar-content.component-DXoyBsGO.js} +0 -0
- /package/{icon-sidebar.component-CbRd64VY.js → icon-sidebar.component-CSUM1GjR.js} +0 -0
- /package/{image.component-CHq0_Pdb.js → image.component-9ttsTuRh.js} +0 -0
- /package/{journey-header.component-DEyoiEWa.js → journey-header.component-BBRryMN8.js} +0 -0
- /package/{lead-container.component-Db1K6vO5.js → lead-container.component-D9Wotyyl.js} +0 -0
- /package/{link-common-Y5P6WKwP.js → link-common-C-LzCFHg.js} +0 -0
- /package/{link-list-anchor.component-BJV10WQ7.js → link-list-anchor.component-B1hvFA17.js} +0 -0
- /package/{link-list-base-61EYfzp8.js → link-list-base-COzF-Lbi.js} +0 -0
- /package/{loading-indicator-circle.component-C-vSHsMV.js → loading-indicator-circle.component-BSVoTtX4.js} +0 -0
- /package/{loading-indicator.component-04ibColy.js → loading-indicator.component-B85wTVDM.js} +0 -0
- /package/{logo.component-DMm7NpGb.js → logo.component-COL1QTWW.js} +0 -0
- /package/{map-container.component-BTlJ7FIz.js → map-container.component-CEyz8sfi.js} +0 -0
- /package/{menu-action-common-CahV0SY9.js → menu-action-common-p5YGaq2r.js} +0 -0
- /package/{menu.component-9oijbV_R.js → menu.component-DohFZw2N.js} +0 -0
- /package/{message.component-rMwea_q5.js → message.component-BQjnZ5Z3.js} +0 -0
- /package/{mini-calendar-day.component-RCyRsXKX.js → mini-calendar-day.component-DOMxLDsW.js} +0 -0
- /package/{mini-calendar-month.component-tGmrtTbD.js → mini-calendar-month.component-BAN0k3N6.js} +0 -0
- /package/{mini-calendar.component-B2lR4LKk.js → mini-calendar.component-DJfOT7ir.js} +0 -0
- /package/{navigation-action-common-4VIAc9FT.js → navigation-action-common-2ix0xrBs.js} +0 -0
- /package/{navigation-list.component-BUXXEC9a.js → navigation-list.component-BIl68kYy.js} +0 -0
- /package/{navigation-marker.component-DXV5IzZs.js → navigation-marker.component-DKxK16IU.js} +0 -0
- /package/{navigation-section.component-DTwwuIB9.js → navigation-section.component-CvjXVn5r.js} +0 -0
- /package/{navigation.component-BRlZyn2A.js → navigation.component-D3xUqPZB.js} +0 -0
- /package/{notification.component-DPE80gHo.js → notification.component-DjXJFh1G.js} +0 -0
- /package/{optgroup-base-element-DZpAUA_K.js → optgroup-base-element-B2WJv9gb.js} +0 -0
- /package/{option-hint.component-BkyU_7Qz.js → option-hint.component-CZH1i3mN.js} +0 -0
- /package/{option.component-BWEHCsOO.js → option.component-M-V_tdSC.js} +0 -0
- /package/{overlay.component-Cv-ZjwhZ.js → overlay.component-CbvHE6Lw.js} +0 -0
- /package/{paginator.component-BfUG2qfH.js → paginator.component-CZt7Epaf.js} +0 -0
- /package/{popover.component-Dd6_AuRe.js → popover.component-DWNuW4wM.js} +0 -0
- /package/{radio-button-common-D_KbhErH.js → radio-button-common-DP4Izwwf.js} +0 -0
- /package/{screen-reader-only.component-oKv949nW.js → screen-reader-only.component-Dxj7rAnR.js} +0 -0
- /package/{selection-action-panel.component-B5eN9396.js → selection-action-panel.component-C3g4OJY9.js} +0 -0
- /package/{selection-expansion-panel.component-B_Q_ncWJ.js → selection-expansion-panel.component-CGSkSA6y.js} +0 -0
- /package/{sidebar-close-button.component-BfcXTDpx.js → sidebar-close-button.component-BEYnX3Hk.js} +0 -0
- /package/{sidebar-container.component-C685gr2b.js → sidebar-container.component-BGh7mxq4.js} +0 -0
- /package/{sidebar-content.component-BQzWV9qh.js → sidebar-content.component-BEI3kpFh.js} +0 -0
- /package/{sidebar-title.component-CE0QQtbI.js → sidebar-title.component-CvKixoOS.js} +0 -0
- /package/{sidebar.component-APJCELuU.js → sidebar.component-DxOx02l6.js} +0 -0
- /package/{signet.component-DbWPRhDO.js → signet.component-ImdnCMXV.js} +0 -0
- /package/{skiplink-list.component-B0G4VO5R.js → skiplink-list.component-hqQIOxQD.js} +0 -0
- /package/{slider.component-D6OlU-Cm.js → slider.component-CoqCppCq.js} +0 -0
- /package/{status.component-C3yUe9Cg.js → status.component-BFyXTFXH.js} +0 -0
- /package/{step-label.component-jos0QpVe.js → step-label.component-DnQBwnL8.js} +0 -0
- /package/{step.component-CGb7wrW5.js → step.component-uBZl9yiJ.js} +0 -0
- /package/{stepper.component-CxUqITW_.js → stepper.component-CYLW1eRI.js} +0 -0
- /package/{styles-DEPbQ2X3.js → styles-BUpK1iP2.js} +0 -0
- /package/{styles-Bi-meo1w.js → styles-Dqjgvm-Y.js} +0 -0
- /package/{tab-group.component-CmoxDIUx.js → tab-group.component-Doy39cEh.js} +0 -0
- /package/{tab-label.component-XalFgxFV.js → tab-label.component-CD56RH1Z.js} +0 -0
- /package/{tab-nav-bar.component-C9Ee7Qjm.js → tab-nav-bar.component-7mG-Dk6g.js} +0 -0
- /package/{tab.component-D2QUMUCd.js → tab.component-rEJAbgtn.js} +0 -0
- /package/{table-wrapper.component-BHIm-2KW.js → table-wrapper.component-BpMpU8um.js} +0 -0
- /package/{tag-group.component-Cn0EqjGS.js → tag-group.component-DyEB8c6w.js} +0 -0
- /package/{tag.component-DoSliZAp.js → tag.component-C3ogN9Th.js} +0 -0
- /package/{teaser-hero.component-BL9zIJPw.js → teaser-hero.component-CHy82SKQ.js} +0 -0
- /package/{teaser-product-common-B9fZrp6w.js → teaser-product-common-qTPSq_o7.js} +0 -0
- /package/{teaser-product.component-XY7319H9.js → teaser-product.component-IyBPFzdf.js} +0 -0
- /package/{teaser.component-Drf3Eafw.js → teaser.component-u1uLVhwo.js} +0 -0
- /package/{timetable-form-details.component-CZp8RZSL.js → timetable-form-details.component-CBZ7QSAx.js} +0 -0
- /package/{timetable-form-field.component-BC86joSW.js → timetable-form-field.component-BKxQQqt7.js} +0 -0
- /package/{timetable-form-swap-button.component-BhCaN83Z.js → timetable-form-swap-button.component-C71eoTQH.js} +0 -0
- /package/{timetable-form.component-DdaSxRTK.js → timetable-form.component-CU1FXAZH.js} +0 -0
- /package/{timetable-occupancy-icon.component-uluD8AMi.js → timetable-occupancy-icon.component-Ck0VCzxz.js} +0 -0
- /package/{timetable-occupancy.component-BXuU3o7A.js → timetable-occupancy.component-Db9SfiyD.js} +0 -0
- /package/{title-base-BDfI9bCJ.js → title-base-D72Xo2SW.js} +0 -0
- /package/{toast.component-C4YpMnyP.js → toast.component-BDE1vYLS.js} +0 -0
- /package/{toggle-check.component-MsWfelVs.js → toggle-check.component-B6Ww5pLD.js} +0 -0
- /package/{toggle-option.component-6zS_NbTl.js → toggle-option.component-Bw-GXUQK.js} +0 -0
- /package/{toggle.component-lnDw0Rsg.js → toggle.component-BPpsMMPG.js} +0 -0
- /package/{tooltip.component-CS8d_5t5.js → tooltip.component-BY9mV5Sw.js} +0 -0
- /package/{train-blocked-passage.component-CO2uXJYY.js → train-blocked-passage.component-C-ltrsRr.js} +0 -0
- /package/{train-formation.component-Ce_AU4_i.js → train-formation.component-y0TGSIGR.js} +0 -0
- /package/{train-wagon.component-BLoxPxgb.js → train-wagon.component-BwCcF4GD.js} +0 -0
- /package/{train.component-Be7d8Ggx.js → train.component-NTimqCpY.js} +0 -0
- /package/{visual-checkbox.component-BqqxEaSW.js → visual-checkbox.component-CJWm74Zi.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SbbVisualCheckboxElement } from "./visual-checkbox.component-
|
|
1
|
+
import { t as SbbVisualCheckboxElement } from "./visual-checkbox.component-rdeoQN40.js";
|
|
2
2
|
export { SbbVisualCheckboxElement };
|
|
@@ -3,7 +3,7 @@ import { SbbElement as n } from "./core/base-elements.js";
|
|
|
3
3
|
import { SbbNegativeMixin as r } from "./core/mixins.js";
|
|
4
4
|
import { boxSizingStyles as i } from "./core/styles.js";
|
|
5
5
|
//#region src/elements/form-field/error/error.scss?inline
|
|
6
|
-
var a = ":host{--_sbb-error-height: calc(var(--sbb-typo-line-height-text) * 1em);--sbb-icon-svg-width: var(--sbb-error-icon-size);--sbb-icon-svg-height: var(--sbb-error-icon-size);display:flex;align-items:flex-start;color:var(--sbb-error-color);min-height:var(--_sbb-error-height);font-size:var(--sbb-error-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text)}@media(forced-colors:active){:host{--sbb-error-color: LinkText !important}}:host([negative]){--sbb-error-color: var(--sbb-color-red85)}.error__icon{display:flex;align-items:center;height:var(--_sbb-error-height);margin-inline-end:var(--sbb-spacing-fixed-1x)}.error-content{line-height:var(--sbb-typo-line-height-text);vertical-align:text-top}.error__icon-svg{stroke:currentcolor;height:var(--_sbb-error-height)}", o =
|
|
6
|
+
var a = ":host{--_sbb-error-height: calc(var(--sbb-typo-line-height-text) * 1em);--sbb-icon-svg-width: var(--sbb-error-icon-size);--sbb-icon-svg-height: var(--sbb-error-icon-size);display:flex;align-items:flex-start;color:var(--sbb-error-color);min-height:var(--_sbb-error-height);font-size:var(--sbb-error-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text)}@media(forced-colors:active){:host{--sbb-error-color: LinkText !important}}:host([negative]){--sbb-error-color: var(--sbb-color-red85)}.error__icon{display:flex;align-items:center;height:var(--_sbb-error-height);margin-inline-end:var(--sbb-spacing-fixed-1x)}.error-content{line-height:var(--sbb-typo-line-height-text);vertical-align:text-top}.error__icon-svg{stroke:currentcolor;height:var(--_sbb-error-height)}", o = class extends r(n) {
|
|
7
7
|
static {
|
|
8
8
|
this.elementName = "sbb-error";
|
|
9
9
|
}
|
|
@@ -11,7 +11,7 @@ var a = ":host{--_sbb-error-height: calc(var(--sbb-typo-line-height-text) * 1em)
|
|
|
11
11
|
this.styles = [i, t(a)];
|
|
12
12
|
}
|
|
13
13
|
connectedCallback() {
|
|
14
|
-
super.connectedCallback()
|
|
14
|
+
super.connectedCallback();
|
|
15
15
|
let e = this.closest?.("sbb-form-field");
|
|
16
16
|
e && (this.negative = e.hasAttribute("negative"));
|
|
17
17
|
}
|
|
@@ -41,4 +41,4 @@ var a = ":host{--_sbb-error-height: calc(var(--sbb-typo-line-height-text) * 1em)
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
|
-
export {
|
|
44
|
+
export { o as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../error.component-
|
|
1
|
+
import { t as e } from "../../error.component-B_D8WUP5.js";
|
|
2
2
|
export { e as SbbErrorElement };
|
package/form-field/error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../error.component-
|
|
1
|
+
import { t as e } from "../error.component-B_D8WUP5.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements/form-field/error.js' has been deprecated.\nUse either '@sbb-esta/elements/form-field.js' or '@sbb-esta/elements/form-field.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbErrorElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../form-field.component-
|
|
1
|
+
import { n as e, t } from "../../form-field.component-D50q1wC0.js";
|
|
2
2
|
export { t as SbbFormFieldControlEvent, e as SbbFormFieldElement };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { html as n } from "lit";
|
|
3
|
+
import { state as r } from "lit/decorators.js";
|
|
4
|
+
import { SbbLanguageController as i } from "../../core/controllers.js";
|
|
5
|
+
import { i18nRemainingCharacters as a } from "../../core/i18n.js";
|
|
6
|
+
import "../../screen-reader-only.js";
|
|
7
|
+
import { sbbLiveAnnouncer as o } from "../../core/a11y/live-announcer.js";
|
|
8
|
+
import { SbbHintElement as s } from "../hint/hint.component.js";
|
|
9
|
+
//#region src/elements/form-field/form-field-text-counter/form-field-text-counter.component.ts
|
|
10
|
+
var c = [
|
|
11
|
+
100,
|
|
12
|
+
50,
|
|
13
|
+
25,
|
|
14
|
+
10,
|
|
15
|
+
0
|
|
16
|
+
], l = (() => {
|
|
17
|
+
let l = s, u, d = [], f = [];
|
|
18
|
+
return class extends l {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.#e = t(this, d, 0), this._language = (t(this, f), new i(this)), this._abortController = null;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
24
|
+
u = [r()], e(this, null, u, {
|
|
25
|
+
kind: "accessor",
|
|
26
|
+
name: "_remainingCharacters",
|
|
27
|
+
static: !1,
|
|
28
|
+
private: !1,
|
|
29
|
+
access: {
|
|
30
|
+
has: (e) => "_remainingCharacters" in e,
|
|
31
|
+
get: (e) => e._remainingCharacters,
|
|
32
|
+
set: (e, t) => {
|
|
33
|
+
e._remainingCharacters = t;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
metadata: t
|
|
37
|
+
}, d, f), t && Object.defineProperty(this, Symbol.metadata, {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0,
|
|
41
|
+
value: t
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
static {
|
|
45
|
+
this.elementName = "sbb-form-field-text-counter";
|
|
46
|
+
}
|
|
47
|
+
static {
|
|
48
|
+
this.styles = [s.styles];
|
|
49
|
+
}
|
|
50
|
+
#e;
|
|
51
|
+
get _remainingCharacters() {
|
|
52
|
+
return this.#e;
|
|
53
|
+
}
|
|
54
|
+
set _remainingCharacters(e) {
|
|
55
|
+
this.#e = e;
|
|
56
|
+
}
|
|
57
|
+
connectedCallback() {
|
|
58
|
+
super.connectedCallback(), this.internals.ariaHidden = "true", this._abortController?.abort(), this._abortController = new AbortController(), this.formField && (this.formField.addEventListener("ɵinput", () => this._onInputUpdate(), { signal: this._abortController.signal }), this.formField.addEventListener("input", () => this._onInputUpdate(), { signal: this._abortController.signal }), this.formField.addEventListener("ɵinputattributechange", () => this._onInputUpdate(), { signal: this._abortController.signal }), this.formField.addEventListener("focusin", (e) => {
|
|
59
|
+
e.target === this.formField?.inputElement && (this.internals.ariaLabel = this._infoText());
|
|
60
|
+
}, { signal: this._abortController.signal }), this._onInputUpdate());
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
super.disconnectedCallback(), this._abortController?.abort();
|
|
64
|
+
}
|
|
65
|
+
_onInputUpdate() {
|
|
66
|
+
let e = this.formField?.inputElement;
|
|
67
|
+
if (!e) return;
|
|
68
|
+
let t = e.maxLength ?? 0, n = e.value?.length ?? 0;
|
|
69
|
+
this._remainingCharacters = Math.max(t - n, 0), [...c.map((e) => Math.round(e / 100 * t))].includes(this._remainingCharacters) && o.announce(this._infoText());
|
|
70
|
+
}
|
|
71
|
+
_infoText() {
|
|
72
|
+
return `${this._remainingCharacters} ${a[this._language.current]}`;
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
return n`${this._remainingCharacters}<slot>
|
|
76
|
+
${a[this._language.current]}</slot
|
|
77
|
+
>`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
})();
|
|
81
|
+
//#endregion
|
|
82
|
+
export { l as SbbFormFieldTextCounterElement };
|
package/form-field/form-field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../form-field.component-
|
|
1
|
+
import { n as e, t } from "../form-field.component-D50q1wC0.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements/form-field/form-field.js' has been deprecated.\nUse either '@sbb-esta/elements/form-field.js' or '@sbb-esta/elements/form-field.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { t as SbbFormFieldControlEvent, e as SbbFormFieldElement };
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
|
|
3
|
+
import { property as o, state as s } from "lit/decorators.js";
|
|
4
|
+
import { SbbElement as ee } from "./core/base-elements.js";
|
|
5
|
+
import { forceType as c } from "./core/decorators.js";
|
|
6
|
+
import { isLean as l } from "./core/dom.js";
|
|
7
|
+
import { SbbNegativeMixin as u, appendAriaElements as d, removeAriaElements as f } from "./core/mixins.js";
|
|
8
|
+
import { boxSizingStyles as p } from "./core/styles.js";
|
|
9
|
+
import { SbbLanguageController as m } from "./core/controllers.js";
|
|
10
|
+
import { i18nOptional as te } from "./core/i18n.js";
|
|
11
|
+
import "./icon.js";
|
|
12
|
+
import { sbbInputModalityDetector as h } from "./core/a11y.js";
|
|
13
|
+
//#region src/elements/form-field/form-field/form-field.scss?inline
|
|
14
|
+
var g = "@charset \"UTF-8\";:host{--sbb-form-field-hint-divider-width: var(--sbb-spacing-fixed-1x);--sbb-form-field-hint-padding-block-start: var(--sbb-form-field-hint-divider-width);--sbb-form-field-select-inline-padding-end: calc( var(--sbb-icon-svg-width) + var(--sbb-form-field-gap) );--sbb-form-field-label-size: calc( var(--sbb-form-field-label-text-size) * var(--sbb-typo-line-height-text) );--sbb-form-field-text-line-height: calc( var(--sbb-form-field-input-text-size) * var(--sbb-typo-line-height-text) );--sbb-form-field-margin-block-start: calc( ( var(--sbb-form-field-min-height) - var(--sbb-form-field-label-size) - var( --sbb-form-field-text-line-height ) + var(--_sbb-form-field-label-to-input-overlapping) ) / 2 );--sbb-icon-svg-width: var(--sbb-form-field-icon-size);--sbb-icon-svg-height: var(--sbb-form-field-icon-size);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);--sbb-focus-outline-color: light-dark( var(--sbb-focus-outline-color-default), var(--sbb-focus-outline-color-dark) );display:inline-block;color:var(--sbb-form-field-color);font-weight:400}:host(:where(:not([width=collapse]))){min-width:9.375rem;width:min(18.75rem,100%)}:host([negative]){color:var(--sbb-color-3-negative);--sbb-form-field-background-color: var(--sbb-background-color-1-negative);--sbb-form-field-border-color: var(--sbb-border-color-5);--sbb-form-field-label-color: var(--sbb-color-5);--sbb-form-field-prefix-color: var(--sbb-color-5);--sbb-form-field-text-color: var(--sbb-color-3-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-form-field-arrow-color: var(--sbb-color-3-negative)}@media(forced-colors:active){:host([negative]){--sbb-form-field-border-color: ButtonBorder}}:host([size=s]){--sbb-form-field-min-height: var(--sbb-size-element-xs);--sbb-form-field-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-form-field-input-text-size: var(--sbb-text-font-size-s);--sbb-form-field-label-text-size: var(--sbb-text-font-size-xxs);--_sbb-form-field-label-to-input-overlapping: .625rem;--_sbb-form-field-floating-label-transform: .34375rem;--_sbb-form-field-spacer-margin-block-end: -.53125rem}@media(min-width:64rem){:host([size=s]){--_sbb-form-field-label-to-input-overlapping: .6875rem;--_sbb-form-field-floating-label-transform: .3125rem;--_sbb-form-field-spacer-margin-block-end: -.5rem}}:host([size=m]){--sbb-form-field-min-height: var(--sbb-size-element-m);--sbb-form-field-padding-inline: var(--sbb-spacing-fixed-3x);--sbb-form-field-input-text-size: var(--sbb-text-font-size-m);--sbb-form-field-label-text-size: var(--sbb-text-font-size-xs);--_sbb-form-field-label-to-input-overlapping: var(--sbb-spacing-fixed-1x);--_sbb-form-field-floating-label-transform: .53125rem;--_sbb-form-field-spacer-margin-block-end: calc( -1 * var(--_sbb-form-field-label-to-input-overlapping) )}@media(min-width:64rem){:host([size=m]){--_sbb-form-field-floating-label-transform: .65625rem}}:host([size=l]){--sbb-form-field-min-height: var(--sbb-size-element-l);--sbb-form-field-padding-inline: var(--sbb-spacing-responsive-xxxs)}:host([error-space=reserve]){--sbb-form-field-hint-min-height: calc( var(--sbb-typo-line-height-text) * var(--sbb-text-font-size-xs) );--sbb-form-field-hint-padding-block-start-override: var(--sbb-form-field-hint-divider-width)}:host(:where(:is(:state(readonly),[state--readonly]),:is(:state(disabled),[state--disabled]))){--sbb-form-field-background-color: var(--sbb-background-color-3);--sbb-form-field-border-color: var(--sbb-color-graphite);--sbb-form-field-border-color: light-dark(var(--sbb-color-graphite), var(--sbb-color-smoke));--sbb-form-field-arrow-color: var(--sbb-color-granite);--sbb-form-field-arrow-color: light-dark(var(--sbb-color-granite), var(--sbb-color-storm))}@media(forced-colors:active){:host(:where(:is(:state(readonly),[state--readonly]),:is(:state(disabled),[state--disabled]))){--sbb-form-field-border-color: ButtonBorder}}:host(:where(:is(:state(readonly),[state--readonly]),:is(:state(disabled),[state--disabled]))[negative]){--sbb-form-field-background-color: var(--sbb-background-color-3-negative);--sbb-form-field-border-color: var(--sbb-border-color-5);--sbb-form-field-arrow-color: var(--sbb-border-color-5)}:host(:where(:is(:state(disabled),[state--disabled]))){--sbb-form-field-label-color: var(--sbb-color-granite);--sbb-form-field-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-form-field-prefix-color: var(--sbb-color-granite);--sbb-form-field-prefix-color: light-dark(var(--sbb-color-granite), var(--sbb-color-storm));--sbb-form-field-border-style: dashed}@media(forced-colors:active){:host(:where(:is(:state(disabled),[state--disabled]))){--sbb-form-field-label-color: GrayText !important;--sbb-form-field-prefix-color: GrayText !important;--sbb-form-field-text-color: GrayText !important;--sbb-form-field-border-color: GrayText !important}}:host(:where(:is(:state(disabled),[state--disabled]))[negative]){--sbb-form-field-text-color: var(--sbb-color-5);--sbb-form-field-label-color: var(--sbb-color-5);--sbb-form-field-prefix-color: var(--sbb-color-5)}:host(:where(:is(:state(readonly),[state--readonly])):not([negative])){--sbb-form-field-label-color: var(--sbb-color-granite);--sbb-form-field-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-form-field-prefix-color: var(--sbb-color-granite);--sbb-form-field-prefix-color: light-dark(var(--sbb-color-granite), var(--sbb-color-storm))}:host(:where(:is(:state(focus),[state--focus]))){--sbb-form-field-border-color: var(--sbb-border-color-3);--sbb-form-field-prefix-color: var(--sbb-color-3);--sbb-form-field-border-width: var(--sbb-border-width-2x)}:host(:where(:is(:state(focus),[state--focus]))[negative]){--sbb-form-field-border-color: var(--sbb-border-color-3-negative);--sbb-form-field-prefix-color: var(--sbb-color-3-negative)}@media(forced-colors:active){:host(:is(:state(focus),[state--focus])){--sbb-form-field-border-color: Highlight;--sbb-form-field-prefix-color: Highlight}}:host(:not(:where(:is(:state(has-error),[state--has-error]),:is(:state(has-hint),[state--has-hint])))){--sbb-form-field-hint-padding-block-start: 0}:host([floating-label]){--sbb-select-placeholder-color: transparent}@media(forced-colors:active){:host([floating-label]){--sbb-select-placeholder-color: Canvas}}:host(:is(:not(:is(:state(slotted-label),[state--slotted-label])),[hidden-label])){--sbb-form-field-label-size: 0rem;--_sbb-form-field-label-to-input-overlapping: 0rem}:host(:where(:is(:state(input-type-sbb-slider),[state--input-type-sbb-slider]))){--sbb-form-field-overflow: visible}.sbb-form-field__space-wrapper{display:flex;flex-direction:column;height:100%}.sbb-form-field__space-wrapper:before{content:\"\";-webkit-user-select:none;user-select:none;width:0;height:0}.sbb-form-field__wrapper{display:flex;flex:1;gap:var(--sbb-form-field-gap);padding-inline:var(--sbb-form-field-padding-inline);border-radius:var(--sbb-form-field-border-radius);min-height:var(--sbb-form-field-min-height);max-height:var(--sbb-form-field-max-height);background-color:var(--sbb-form-field-background-color);position:relative}.sbb-form-field__wrapper:before{content:\"\";display:block;position:absolute;inset:0;border:var(--sbb-form-field-border-width) var(--sbb-form-field-border-style) var(--sbb-form-field-border-color);border-radius:var(--sbb-form-field-border-radius);pointer-events:none}:host(:where(:is(:state(focus),[state--focus]):is(:state(focus-origin-keyboard),[state--focus-origin-keyboard]))) .sbb-form-field__wrapper{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-form-field-outline-offset, var(--sbb-focus-outline-offset))}@media(forced-colors:none){:host(:is([borderless],:is(:state(input-type-sbb-slider),[state--input-type-sbb-slider]))) .sbb-form-field__wrapper:before{border-color:transparent}:host(:where(:is(:state(focus),[state--focus]),:is(:state(disabled),[state--disabled]))[borderless]) .sbb-form-field__wrapper:after{content:\"\";position:absolute;border-block-end:var(--sbb-border-width-1x) var(--sbb-form-field-border-style) var(--sbb-form-field-border-color);inset-inline:var(--sbb-form-field-padding-inline);inset-block-end:0;z-index:var(--sbb-form-field-focus-underline-z-index, initial)}}::slotted(*[slot=prefix]){color:var(--sbb-form-field-prefix-color)}::slotted(*[slot=prefix]),::slotted(*[slot=suffix]){display:flex;min-width:var(--sbb-icon-svg-width);margin-block-start:calc((var(--sbb-form-field-min-height) - var(--sbb-size-icon-ui-small)) / 2)}:host(:where(:is(:state(empty),[state--empty]),:is(:state(disabled),[state--disabled]),:is(:state(readonly),[state--readonly]))) ::slotted(sbb-form-field-clear){display:none}:host(:is(:state(has-error),[state--has-error])) slot[name=hint]{display:none}:host(:where(:is(:state(disabled),[state--disabled]),:is(:state(readonly),[state--readonly]))) ::slotted(sbb-form-field-text-counter){display:none}::slotted(sbb-datepicker-toggle){padding-block-end:calc((var(--sbb-form-field-min-height) - var(--sbb-size-icon-ui-small)) / 2)}@media(forced-colors:active){::slotted(*[slot=suffix]){color:var(--sbb-form-field-prefix-color)}}.sbb-form-field__select-input-icon{top:50%;transform:translateY(-50%);position:absolute;inset-inline-end:0;margin-block-start:calc(-1 * var(--sbb-form-field-margin-block-start) / 2);pointer-events:none;color:var(--sbb-form-field-arrow-color)}.sbb-form-field__input-container{display:flex;flex-direction:column;flex:1 1 auto;position:relative;margin-block-start:var(--sbb-form-field-margin-block-start);min-width:0}.sbb-form-field__label-spacer{display:flex;height:calc(var(--sbb-form-field-label-text-size) * var(--sbb-typo-line-height-text));margin-block-end:var(--_sbb-form-field-spacer-margin-block-end)}:host(:not(:is(:state(slotted-label),[state--slotted-label]))) :is(.sbb-form-field__label,.sbb-form-field__label-spacer){display:none}:host([hidden-label]) :is(.sbb-form-field__label,.sbb-form-field__label-spacer){border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-form-field__label{display:flex;max-width:100%;cursor:var(--sbb-cursor-default);position:absolute;inset-block-start:0;color:var(--sbb-form-field-label-color);font-size:var(--sbb-form-field-label-text-size);letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:where(:is(:state(input-type-select),[state--input-type-select]),:is(:state(input-type-sbb-select),[state--input-type-sbb-select]))) .sbb-form-field__label{padding-inline-end:var(--sbb-form-field-select-inline-padding-end)}:host([floating-label]) .sbb-form-field__label{transform-origin:0 0;pointer-events:none;backface-visibility:hidden;will-change:transform,font-size;transition-duration:var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x));transition-timing-function:var(--sbb-animation-easing);transition-property:transform,font-size}:host([floating-label]:is(:not(:where(:is(:state(focus),[state--focus])):not(:where(:is(:state(input-type-sbb-select),[state--input-type-sbb-select]))),:where(:is(:state(has-popup-open),[state--has-popup-open]))),:where(:is(:state(readonly),[state--readonly]))):where(:is(:state(empty),[state--empty]))) .sbb-form-field__label{font-size:var(--sbb-form-field-input-text-size);transform:translateY(var(--_sbb-form-field-floating-label-transform))}@media(forced-colors:active){:host(:where(:is(:state(input-type-textarea),[state--input-type-textarea]))) .sbb-form-field__label{z-index:1}}.sbb-form-field__label-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-form-field__input{display:flex;flex:1;align-items:start}:host([size=s]:is(:is(:state(input-type-input),[state--input-type-input]),:is(:state(input-type-select),[state--input-type-select]),:is(:state(input-type-sbb-select),[state--input-type-sbb-select]),:is(:state(input-type-sbb-date-input),[state--input-type-sbb-date-input]),:is(:state(input-type-sbb-time-input),[state--input-type-sbb-time-input]))) .sbb-form-field__input{margin-block-end:-.125rem}.sbb-form-field__hint{display:flex;min-height:var(--sbb-form-field-hint-min-height);flex-direction:column;margin-block-start:var(--sbb-form-field-hint-padding-block-start-override, var(--sbb-form-field-hint-padding-block-start))}", _ = 0, v = /* @__PURE__ */ new WeakMap(), y = [
|
|
15
|
+
"input",
|
|
16
|
+
"textarea",
|
|
17
|
+
"select"
|
|
18
|
+
], b = class extends Event {
|
|
19
|
+
get control() {
|
|
20
|
+
return this._control;
|
|
21
|
+
}
|
|
22
|
+
constructor(e) {
|
|
23
|
+
super("formfieldcontrol"), this._control = e;
|
|
24
|
+
}
|
|
25
|
+
}, x = (() => {
|
|
26
|
+
let b = u(ee), x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [], G, K = [], q = [], J, Y = [], X = [], Z, Q = [], $ = [];
|
|
27
|
+
return class extends b {
|
|
28
|
+
static {
|
|
29
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
30
|
+
x = [o({
|
|
31
|
+
attribute: "error-space",
|
|
32
|
+
reflect: !0
|
|
33
|
+
})], w = [c(), o({ type: Boolean })], D = [o({ reflect: !0 })], A = [c(), o({
|
|
34
|
+
reflect: !0,
|
|
35
|
+
type: Boolean
|
|
36
|
+
})], N = [o({ reflect: !0 })], I = [c(), o({
|
|
37
|
+
attribute: "hidden-label",
|
|
38
|
+
reflect: !0,
|
|
39
|
+
type: Boolean
|
|
40
|
+
})], z = [c(), o({
|
|
41
|
+
attribute: "floating-label",
|
|
42
|
+
reflect: !0,
|
|
43
|
+
type: Boolean
|
|
44
|
+
})], H = [s()], G = [s()], J = [s()], Z = [s()], e(this, null, x, {
|
|
45
|
+
kind: "accessor",
|
|
46
|
+
name: "errorSpace",
|
|
47
|
+
static: !1,
|
|
48
|
+
private: !1,
|
|
49
|
+
access: {
|
|
50
|
+
has: (e) => "errorSpace" in e,
|
|
51
|
+
get: (e) => e.errorSpace,
|
|
52
|
+
set: (e, t) => {
|
|
53
|
+
e.errorSpace = t;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
metadata: t
|
|
57
|
+
}, S, C), e(this, null, w, {
|
|
58
|
+
kind: "accessor",
|
|
59
|
+
name: "optional",
|
|
60
|
+
static: !1,
|
|
61
|
+
private: !1,
|
|
62
|
+
access: {
|
|
63
|
+
has: (e) => "optional" in e,
|
|
64
|
+
get: (e) => e.optional,
|
|
65
|
+
set: (e, t) => {
|
|
66
|
+
e.optional = t;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
metadata: t
|
|
70
|
+
}, T, E), e(this, null, D, {
|
|
71
|
+
kind: "accessor",
|
|
72
|
+
name: "size",
|
|
73
|
+
static: !1,
|
|
74
|
+
private: !1,
|
|
75
|
+
access: {
|
|
76
|
+
has: (e) => "size" in e,
|
|
77
|
+
get: (e) => e.size,
|
|
78
|
+
set: (e, t) => {
|
|
79
|
+
e.size = t;
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
metadata: t
|
|
83
|
+
}, O, k), e(this, null, A, {
|
|
84
|
+
kind: "accessor",
|
|
85
|
+
name: "borderless",
|
|
86
|
+
static: !1,
|
|
87
|
+
private: !1,
|
|
88
|
+
access: {
|
|
89
|
+
has: (e) => "borderless" in e,
|
|
90
|
+
get: (e) => e.borderless,
|
|
91
|
+
set: (e, t) => {
|
|
92
|
+
e.borderless = t;
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
metadata: t
|
|
96
|
+
}, j, M), e(this, null, N, {
|
|
97
|
+
kind: "accessor",
|
|
98
|
+
name: "width",
|
|
99
|
+
static: !1,
|
|
100
|
+
private: !1,
|
|
101
|
+
access: {
|
|
102
|
+
has: (e) => "width" in e,
|
|
103
|
+
get: (e) => e.width,
|
|
104
|
+
set: (e, t) => {
|
|
105
|
+
e.width = t;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
metadata: t
|
|
109
|
+
}, P, F), e(this, null, I, {
|
|
110
|
+
kind: "accessor",
|
|
111
|
+
name: "hiddenLabel",
|
|
112
|
+
static: !1,
|
|
113
|
+
private: !1,
|
|
114
|
+
access: {
|
|
115
|
+
has: (e) => "hiddenLabel" in e,
|
|
116
|
+
get: (e) => e.hiddenLabel,
|
|
117
|
+
set: (e, t) => {
|
|
118
|
+
e.hiddenLabel = t;
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
metadata: t
|
|
122
|
+
}, L, R), e(this, null, z, {
|
|
123
|
+
kind: "accessor",
|
|
124
|
+
name: "floatingLabel",
|
|
125
|
+
static: !1,
|
|
126
|
+
private: !1,
|
|
127
|
+
access: {
|
|
128
|
+
has: (e) => "floatingLabel" in e,
|
|
129
|
+
get: (e) => e.floatingLabel,
|
|
130
|
+
set: (e, t) => {
|
|
131
|
+
e.floatingLabel = t;
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
metadata: t
|
|
135
|
+
}, B, V), e(this, null, H, {
|
|
136
|
+
kind: "accessor",
|
|
137
|
+
name: "_errorElements",
|
|
138
|
+
static: !1,
|
|
139
|
+
private: !1,
|
|
140
|
+
access: {
|
|
141
|
+
has: (e) => "_errorElements" in e,
|
|
142
|
+
get: (e) => e._errorElements,
|
|
143
|
+
set: (e, t) => {
|
|
144
|
+
e._errorElements = t;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
metadata: t
|
|
148
|
+
}, U, W), e(this, null, G, {
|
|
149
|
+
kind: "accessor",
|
|
150
|
+
name: "_hintElements",
|
|
151
|
+
static: !1,
|
|
152
|
+
private: !1,
|
|
153
|
+
access: {
|
|
154
|
+
has: (e) => "_hintElements" in e,
|
|
155
|
+
get: (e) => e._hintElements,
|
|
156
|
+
set: (e, t) => {
|
|
157
|
+
e._hintElements = t;
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
metadata: t
|
|
161
|
+
}, K, q), e(this, null, J, {
|
|
162
|
+
kind: "accessor",
|
|
163
|
+
name: "_input",
|
|
164
|
+
static: !1,
|
|
165
|
+
private: !1,
|
|
166
|
+
access: {
|
|
167
|
+
has: (e) => "_input" in e,
|
|
168
|
+
get: (e) => e._input,
|
|
169
|
+
set: (e, t) => {
|
|
170
|
+
e._input = t;
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
metadata: t
|
|
174
|
+
}, Y, X), e(this, null, Z, {
|
|
175
|
+
kind: "accessor",
|
|
176
|
+
name: "_label",
|
|
177
|
+
static: !1,
|
|
178
|
+
private: !1,
|
|
179
|
+
access: {
|
|
180
|
+
has: (e) => "_label" in e,
|
|
181
|
+
get: (e) => e._label,
|
|
182
|
+
set: (e, t) => {
|
|
183
|
+
e._label = t;
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
metadata: t
|
|
187
|
+
}, Q, $), t && Object.defineProperty(this, Symbol.metadata, {
|
|
188
|
+
enumerable: !0,
|
|
189
|
+
configurable: !0,
|
|
190
|
+
writable: !0,
|
|
191
|
+
value: t
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
static {
|
|
195
|
+
this.elementName = "sbb-form-field";
|
|
196
|
+
}
|
|
197
|
+
static {
|
|
198
|
+
this.styles = [p, a(g)];
|
|
199
|
+
}
|
|
200
|
+
#e;
|
|
201
|
+
get errorSpace() {
|
|
202
|
+
return this.#e;
|
|
203
|
+
}
|
|
204
|
+
set errorSpace(e) {
|
|
205
|
+
this.#e = e;
|
|
206
|
+
}
|
|
207
|
+
#t;
|
|
208
|
+
get optional() {
|
|
209
|
+
return this.#t;
|
|
210
|
+
}
|
|
211
|
+
set optional(e) {
|
|
212
|
+
this.#t = e;
|
|
213
|
+
}
|
|
214
|
+
#n;
|
|
215
|
+
get size() {
|
|
216
|
+
return this.#n;
|
|
217
|
+
}
|
|
218
|
+
set size(e) {
|
|
219
|
+
this.#n = e;
|
|
220
|
+
}
|
|
221
|
+
#r;
|
|
222
|
+
get borderless() {
|
|
223
|
+
return this.#r;
|
|
224
|
+
}
|
|
225
|
+
set borderless(e) {
|
|
226
|
+
this.#r = e;
|
|
227
|
+
}
|
|
228
|
+
#i;
|
|
229
|
+
get width() {
|
|
230
|
+
return this.#i;
|
|
231
|
+
}
|
|
232
|
+
set width(e) {
|
|
233
|
+
this.#i = e;
|
|
234
|
+
}
|
|
235
|
+
#a;
|
|
236
|
+
get hiddenLabel() {
|
|
237
|
+
return this.#a;
|
|
238
|
+
}
|
|
239
|
+
set hiddenLabel(e) {
|
|
240
|
+
this.#a = e;
|
|
241
|
+
}
|
|
242
|
+
#o;
|
|
243
|
+
get floatingLabel() {
|
|
244
|
+
return this.#o;
|
|
245
|
+
}
|
|
246
|
+
set floatingLabel(e) {
|
|
247
|
+
this.#o = e;
|
|
248
|
+
}
|
|
249
|
+
#s;
|
|
250
|
+
get _errorElements() {
|
|
251
|
+
return this.#s;
|
|
252
|
+
}
|
|
253
|
+
set _errorElements(e) {
|
|
254
|
+
this.#s = e;
|
|
255
|
+
}
|
|
256
|
+
#c;
|
|
257
|
+
get _hintElements() {
|
|
258
|
+
return this.#c;
|
|
259
|
+
}
|
|
260
|
+
set _hintElements(e) {
|
|
261
|
+
this.#c = e;
|
|
262
|
+
}
|
|
263
|
+
#l;
|
|
264
|
+
get _input() {
|
|
265
|
+
return this.#l;
|
|
266
|
+
}
|
|
267
|
+
set _input(e) {
|
|
268
|
+
this.#l = e;
|
|
269
|
+
}
|
|
270
|
+
#u;
|
|
271
|
+
get _label() {
|
|
272
|
+
return this.#u;
|
|
273
|
+
}
|
|
274
|
+
set _label(e) {
|
|
275
|
+
this.#u = e;
|
|
276
|
+
}
|
|
277
|
+
get inputElement() {
|
|
278
|
+
return this._input;
|
|
279
|
+
}
|
|
280
|
+
get label() {
|
|
281
|
+
return this._label;
|
|
282
|
+
}
|
|
283
|
+
constructor() {
|
|
284
|
+
super(), this._excludedFocusElements = [
|
|
285
|
+
"button",
|
|
286
|
+
"sbb-popover",
|
|
287
|
+
"sbb-option",
|
|
288
|
+
"sbb-chip"
|
|
289
|
+
], this._floatingLabelSupportedInputElements = [
|
|
290
|
+
"input",
|
|
291
|
+
"select",
|
|
292
|
+
"textarea",
|
|
293
|
+
"sbb-select"
|
|
294
|
+
], this._floatingLabelSupportedInputTypes = [
|
|
295
|
+
"email",
|
|
296
|
+
"number",
|
|
297
|
+
"password",
|
|
298
|
+
"search",
|
|
299
|
+
"tel",
|
|
300
|
+
"text",
|
|
301
|
+
"url"
|
|
302
|
+
], this.#e = t(this, S, "none"), this.#t = (t(this, C), t(this, T, !1)), this.#n = (t(this, E), t(this, O, l() ? "s" : "m")), this.#r = (t(this, k), t(this, j, !1)), this.#i = (t(this, M), t(this, P, "default")), this.#a = (t(this, F), t(this, L, !1)), this.#o = (t(this, R), t(this, B, !1)), this.#s = (t(this, V), t(this, U, [])), this.#c = (t(this, W), t(this, K, [])), this.#l = (t(this, q), t(this, Y, null)), this.#u = (t(this, X), t(this, Q, void 0)), this._language = (t(this, $), new m(this)), this._formFieldAttributeObserver = r ? null : new MutationObserver((e) => {
|
|
303
|
+
e.some((e) => e.type === "attributes") && this._input && (this._readInputState(), this._registerInputFormListener(), this._checkAndUpdateInputEmpty(), this.dispatchEvent(new Event("ɵinputattributechange")));
|
|
304
|
+
}), this._inputFormAbortController = new AbortController(), this._control = null, this.addEventListener?.("focusin", (e) => {
|
|
305
|
+
(e.target === this.inputElement || e.target === this.inputElement?.inputElement) && (this.internals.states.add("focus"), this.internals.states.add(`focus-origin-${h.mostRecentModality}`));
|
|
306
|
+
}, { passive: !0 }), this.addEventListener?.("focusout", (e) => {
|
|
307
|
+
if (e.target === this.inputElement || e.target === this.inputElement?.inputElement) {
|
|
308
|
+
this._checkAndUpdateInputEmpty(), this.internals.states.delete("focus");
|
|
309
|
+
for (let e of this.internals.states) e.startsWith("focus-origin-") && this.internals.states.delete(e);
|
|
310
|
+
}
|
|
311
|
+
}, { passive: !0 }), this.addEventListener("input", () => this._checkAndUpdateInputEmpty()), this.addEventListener("displayvaluechange", () => this._checkAndUpdateInputEmpty()), this.addEventListener("invalid", (e) => e.preventDefault(), { capture: !0 }), this.addEventListener("formfieldcontrol", (e) => {
|
|
312
|
+
this._control = e.control, this._connectInputElement() === "unchanged" && (this._assignAriaDescribedByElements(), this._readInputState(), this._checkAndUpdateInputEmpty());
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
connectedCallback() {
|
|
316
|
+
super.connectedCallback(), this._assignSlots(), this._connectInputElement(), this._syncNegative(), this._syncSize();
|
|
317
|
+
}
|
|
318
|
+
willUpdate(e) {
|
|
319
|
+
super.willUpdate(e), e.has("negative") && this._syncNegative(), e.has("size") && this._syncSize();
|
|
320
|
+
}
|
|
321
|
+
disconnectedCallback() {
|
|
322
|
+
super.disconnectedCallback(), this._formFieldAttributeObserver?.disconnect(), this._inputFormAbortController.abort(), (this._input?.localName === "input" || this._input?.localName === "textarea") && this._unpatchInputValue();
|
|
323
|
+
}
|
|
324
|
+
_handleWrapperClick(e) {
|
|
325
|
+
this._isElementFocusExcluded(e) || (this._control?.onContainerClick ? this._control?.onContainerClick(e) : e.target.localName !== "label" && (this._input?.localName === "sbb-select" && e.target.localName !== "sbb-select" && this._input.click(), this._input?.focus()));
|
|
326
|
+
}
|
|
327
|
+
_isElementFocusExcluded(e) {
|
|
328
|
+
return e.composedPath().some((e) => e instanceof window.HTMLElement && (e.getAttribute("tabindex") === "0" || e.hasAttribute("contenteditable")) || this._excludedFocusElements.includes(e.localName));
|
|
329
|
+
}
|
|
330
|
+
_onSlotLabelChange() {
|
|
331
|
+
this._label = Array.from(this.querySelectorAll("label"))[0], this._syncLabelInputReferences();
|
|
332
|
+
}
|
|
333
|
+
_onSlotInputChange() {
|
|
334
|
+
this._assignSlots(), this._connectInputElement();
|
|
335
|
+
}
|
|
336
|
+
_assignSlots() {
|
|
337
|
+
this.querySelectorAll("label:not([slot])").forEach((e) => e.setAttribute("slot", "label")), this.querySelectorAll("sbb-error:not([slot])").forEach((e) => e.setAttribute("slot", "error"));
|
|
338
|
+
}
|
|
339
|
+
_connectInputElement() {
|
|
340
|
+
let e;
|
|
341
|
+
if (this._control?.id) e = this.getRootNode().getElementById(this._control.id);
|
|
342
|
+
else {
|
|
343
|
+
let t = Array.from(this.querySelectorAll("*:not([slot],sbb-chip-group)"));
|
|
344
|
+
e = (t.find((e) => this._isInputElement(e)) || t[0]) ?? null;
|
|
345
|
+
}
|
|
346
|
+
return e === this._input ? "unchanged" : (this._input && (this.internals.states.delete(`input-type-${this._input.localName}`), (this._input.localName === "input" || this._input.localName === "textarea") && this._unpatchInputValue()), e ? (this._input = e, this._registerInputFormListener(), this._assignAriaDescribedByElements(), this._readInputState(), this._checkAndUpdateInputEmpty(), this._input.localName === "textarea" ? (this._input.setAttribute("rows", this._input.getAttribute("rows") || "3"), this._patchInputValue()) : this._input.localName === "input" ? this._patchInputValue() : (this._input.localName === "select" || this._input.localName === "sbb-select") && !this.hasUpdated && this.hydrationComplete.then(() => this.requestUpdate()), this._formFieldAttributeObserver?.disconnect(), this._formFieldAttributeObserver?.observe(this._input, {
|
|
347
|
+
attributes: !0,
|
|
348
|
+
attributeFilter: [
|
|
349
|
+
"readonly",
|
|
350
|
+
"disabled",
|
|
351
|
+
"form",
|
|
352
|
+
"class",
|
|
353
|
+
"data-expanded",
|
|
354
|
+
"maxlength"
|
|
355
|
+
]
|
|
356
|
+
}), this.internals.states.add(`input-type-${this._input.localName}`), this._syncLabelInputReferences(), "changed") : (this._input = null, "no-input"));
|
|
357
|
+
}
|
|
358
|
+
_syncLabelInputReferences() {
|
|
359
|
+
if (!(!this._input || !this._label)) if (y.includes(this._input.localName) || customElements.get(this._input.localName)?.formAssociated) this._input.id ||= `sbb-form-field-input-${_++}`, this._label.htmlFor = this._input.id;
|
|
360
|
+
else {
|
|
361
|
+
this._label.id ||= `sbb-form-field-label-${_++}`;
|
|
362
|
+
let e = this._input.getAttribute("aria-labelledby")?.split(" ").filter((e) => !!e && e !== this._label.id) ?? [];
|
|
363
|
+
this._input.setAttribute("aria-labelledby", [...e, this._label.id].join(" "));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
_isInputElement(e) {
|
|
367
|
+
return y.includes(e.localName) || !!customElements.get(e.localName)?.formAssociated;
|
|
368
|
+
}
|
|
369
|
+
_readInputState() {
|
|
370
|
+
this.toggleState("readonly", this._control?.readOnly ?? this._input.hasAttribute("readonly")), this.toggleState("disabled", this._control?.disabled ?? this._input.hasAttribute("disabled")), this.toggleState("has-popup-open", this._input.hasAttribute("data-expanded"));
|
|
371
|
+
}
|
|
372
|
+
_registerInputFormListener() {
|
|
373
|
+
this._inputFormAbortController.abort();
|
|
374
|
+
let { signal: e } = this._inputFormAbortController = new AbortController();
|
|
375
|
+
(this._input?.form ?? this._input?.closest("form"))?.addEventListener("reset", () => setTimeout(() => this.reset()), { signal: e });
|
|
376
|
+
}
|
|
377
|
+
_patchInputValue() {
|
|
378
|
+
let e = this._input;
|
|
379
|
+
if (!e || v.has(e)) return;
|
|
380
|
+
let t = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), "value");
|
|
381
|
+
if (!t || !t.set || !t.get) return;
|
|
382
|
+
v.set(e, t);
|
|
383
|
+
let { get: n, set: r } = t, i = () => {
|
|
384
|
+
this._checkAndUpdateInputEmpty(), this.dispatchEvent(new Event("ɵinput"));
|
|
385
|
+
};
|
|
386
|
+
Object.defineProperty(e, "value", {
|
|
387
|
+
...t,
|
|
388
|
+
get() {
|
|
389
|
+
return n.call(this);
|
|
390
|
+
},
|
|
391
|
+
set(e) {
|
|
392
|
+
r.call(this, e), i();
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
_unpatchInputValue() {
|
|
397
|
+
let e = this._input, t = v.get(e);
|
|
398
|
+
t && (Object.defineProperty(e, "value", t), v.delete(e));
|
|
399
|
+
}
|
|
400
|
+
_checkAndUpdateInputEmpty() {
|
|
401
|
+
this.toggleState("empty", this._control?.empty ?? (((this._floatingLabelSupportedInputElements.includes(this._input?.localName) || this._input?.constructor?.formFieldAssociated) ?? !1) && this._isInputEmpty()));
|
|
402
|
+
}
|
|
403
|
+
_isInputEmpty() {
|
|
404
|
+
let e = this.querySelector("sbb-chip-group");
|
|
405
|
+
return e ? this._isInputValueEmpty() && (Array.isArray(e.value) ? e.value.length === 0 : !e.querySelector("sbb-chip")) : this._input instanceof HTMLInputElement ? this._floatingLabelSupportedInputTypes.includes(this._input.type) && this._isInputValueEmpty() : this._input instanceof HTMLSelectElement ? this._input.selectedOptions?.item(0)?.label?.trim() === "" : this._input?.localName === "sbb-select" ? this._input.getDisplayValue?.()?.trim() === "" : this._isInputValueEmpty();
|
|
406
|
+
}
|
|
407
|
+
_isInputValueEmpty() {
|
|
408
|
+
let e = this._input.value;
|
|
409
|
+
return [
|
|
410
|
+
"",
|
|
411
|
+
void 0,
|
|
412
|
+
null
|
|
413
|
+
].includes(e) || Array.isArray(e) && e.length === 0;
|
|
414
|
+
}
|
|
415
|
+
_onSlotErrorChange(e) {
|
|
416
|
+
let t = e.target.assignedElements();
|
|
417
|
+
this._input && this._input.ariaDescribedByElements?.length && (this._input.ariaDescribedByElements = f(this._input.ariaDescribedByElements, ...this._errorElements ?? [], ...this._hintElements ?? [])), this._errorElements = t;
|
|
418
|
+
for (let e of this._errorElements) e.role ||= "status";
|
|
419
|
+
this._assignAriaDescribedByElements(), this.toggleState("has-error", !!this._errorElements.length), this._syncNegative();
|
|
420
|
+
}
|
|
421
|
+
_onSlotHintChange(e) {
|
|
422
|
+
let t = e.target.assignedElements();
|
|
423
|
+
this._input?.ariaDescribedByElements?.length && this._hintElements?.length && (this._input.ariaDescribedByElements = f(this._input.ariaDescribedByElements, ...this._hintElements)), this._hintElements = t, this._assignAriaDescribedByElements(), this.toggleState("has-hint", !!this._hintElements.length), this._syncNegative();
|
|
424
|
+
}
|
|
425
|
+
_assignAriaDescribedByElements() {
|
|
426
|
+
if (this._input) {
|
|
427
|
+
let e = this._errorElements.length ? this._errorElements : this._hintElements;
|
|
428
|
+
this._input.ariaDescribedByElements = d(this._input.ariaDescribedByElements, ...e);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
reset() {
|
|
432
|
+
this._checkAndUpdateInputEmpty();
|
|
433
|
+
}
|
|
434
|
+
clear() {
|
|
435
|
+
this._input?.localName === "input" && (this._input.value = "", this._checkAndUpdateInputEmpty());
|
|
436
|
+
}
|
|
437
|
+
_syncNegative() {
|
|
438
|
+
this.querySelectorAll?.("sbb-error,sbb-mini-button,sbb-mini-button-link,sbb-form-field-clear,sbb-datepicker-next-day,sbb-datepicker-previous-day,sbb-datepicker-toggle,sbb-select,sbb-autocomplete,sbb-autocomplete-grid,sbb-chip-group,sbb-hint,sbb-form-field-text-counter").forEach((e) => e.toggleAttribute("negative", this.negative));
|
|
439
|
+
}
|
|
440
|
+
_syncSize() {
|
|
441
|
+
this.querySelectorAll?.("sbb-autocomplete,sbb-autocomplete-grid,sbb-select").forEach((e) => e.size = this.size === "s" ? "s" : "m");
|
|
442
|
+
}
|
|
443
|
+
render() {
|
|
444
|
+
return n`
|
|
445
|
+
<div class="sbb-form-field__space-wrapper">
|
|
446
|
+
${""}
|
|
447
|
+
<div @click=${this._handleWrapperClick} class="sbb-form-field__wrapper" id="overlay-anchor">
|
|
448
|
+
<slot name="prefix" @slotchange=${this._syncNegative}></slot>
|
|
449
|
+
<div class="sbb-form-field__input-container">
|
|
450
|
+
<span class="sbb-form-field__label-spacer" aria-hidden="true"></span>
|
|
451
|
+
<span class="sbb-form-field__label">
|
|
452
|
+
<span class="sbb-form-field__label-ellipsis">
|
|
453
|
+
<slot name="label" @slotchange=${this._onSlotLabelChange}></slot>
|
|
454
|
+
${this.optional ? n` <span aria-hidden="true"> ${te[this._language.current]} </span>` : i}
|
|
455
|
+
</span>
|
|
456
|
+
</span>
|
|
457
|
+
<div class="sbb-form-field__input">
|
|
458
|
+
<slot @slotchange=${this._onSlotInputChange}></slot>
|
|
459
|
+
</div>
|
|
460
|
+
${this.hasUpdated && ["select", "sbb-select"].includes(this._input?.localName) ? n`<sbb-icon
|
|
461
|
+
name="chevron-small-down-small"
|
|
462
|
+
class="sbb-form-field__select-input-icon"
|
|
463
|
+
></sbb-icon>` : i}
|
|
464
|
+
</div>
|
|
465
|
+
<slot name="suffix" @slotchange=${this._syncNegative}></slot>
|
|
466
|
+
</div>
|
|
467
|
+
|
|
468
|
+
<div class="sbb-form-field__hint">
|
|
469
|
+
<slot name="hint" @slotchange=${this._onSlotHintChange}></slot>
|
|
470
|
+
<slot name="error" @slotchange=${this._onSlotErrorChange}></slot>
|
|
471
|
+
</div>
|
|
472
|
+
</div>
|
|
473
|
+
`;
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
})();
|
|
477
|
+
//#endregion
|
|
478
|
+
export { x as n, b as t };
|
package/form-field.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./error.component-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./error.component-B_D8WUP5.js";
|
|
2
|
+
import { n as t, t as n } from "./form-field.component-D50q1wC0.js";
|
|
3
|
+
import { SbbFormFieldClearElement as r } from "./form-field/form-field-clear/form-field-clear.component.js";
|
|
4
|
+
import { SbbFormFieldTextCounterElement as i } from "./form-field/form-field-text-counter/form-field-text-counter.component.js";
|
|
5
|
+
import { t as a } from "./hint.component-BVUUrSSu.js";
|
|
4
6
|
import "./form-field.pure.js";
|
|
5
|
-
e.define(),
|
|
7
|
+
e.define(), r.define(), t.define(), i.define(), a.define();
|
|
6
8
|
//#endregion
|
|
7
|
-
export { e as SbbErrorElement,
|
|
9
|
+
export { e as SbbErrorElement, r as SbbFormFieldClearElement, n as SbbFormFieldControlEvent, t as SbbFormFieldElement, i as SbbFormFieldTextCounterElement, a as SbbHintElement };
|
package/form-field.pure.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./error.component-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { t as e } from "./error.component-B_D8WUP5.js";
|
|
2
|
+
import { n as t, t as n } from "./form-field.component-D50q1wC0.js";
|
|
3
|
+
import { SbbFormFieldClearElement as r } from "./form-field/form-field-clear/form-field-clear.component.js";
|
|
4
|
+
import { SbbFormFieldTextCounterElement as i } from "./form-field/form-field-text-counter/form-field-text-counter.component.js";
|
|
5
|
+
import { t as a } from "./hint.component-BVUUrSSu.js";
|
|
6
|
+
export { e as SbbErrorElement, r as SbbFormFieldClearElement, n as SbbFormFieldControlEvent, t as SbbFormFieldElement, i as SbbFormFieldTextCounterElement, a as SbbHintElement };
|