@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779265349 → 5.0.0-next.3-dev.1779279790
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/_index.scss +6 -2
- package/autocomplete/autocomplete-base-element.js +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/{autocomplete-base-element-6leI6UF4.js → autocomplete-base-element-DjfmUS0W.js} +11 -10
- package/autocomplete.js +1 -1
- package/autocomplete.pure.js +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
- package/{breadcrumb-group.component-XPdnV6-a.js → breadcrumb-group.component-a49dItu9.js} +23 -19
- package/breadcrumb.js +1 -1
- package/breadcrumb.pure.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -1
- package/button.js +1 -1
- package/button.pure.js +1 -1
- package/calendar/calendar/calendar.component.js +1 -1
- package/{calendar.component-CiT0mE7S.js → calendar.component-BhUyyFtR.js} +53 -49
- package/calendar.js +1 -1
- package/calendar.pure.js +1 -1
- package/container/sticky-bar/sticky-bar.component.js +1 -1
- package/container.js +1 -1
- package/container.pure.js +1 -1
- package/core/base-elements/button-base-element.js +47 -68
- package/core/datetime/date-adapter.js +2 -2
- package/core/mixins/form-associated-checkbox-mixin.js +17 -26
- package/core/mixins/named-slot-list-mixin.js +14 -14
- package/core/styles/_index.scss +1 -12
- package/core/styles/_theme.scss +16 -0
- package/core/styles/core/functions.scss +0 -8
- package/core/styles/{a11y.scss → features/a11y.scss} +2 -2
- package/core/styles/{animation.scss → features/animation.scss} +1 -1
- package/core/styles/features/color-scheme.scss +11 -0
- package/core/styles/{core.scss → features/core.scss} +138 -171
- package/core/styles/{image.scss → features/image.scss} +29 -7
- package/core/styles/{layout.private.scss → features/layout.private.scss} +5 -4
- package/core/styles/{layout.scss → features/layout.scss} +1 -1
- package/core/styles/{lists.scss → features/lists.scss} +1 -1
- package/core/styles/{scrollbar.scss → features/scrollbar.scss} +1 -1
- package/core/styles/features/typography.private.scss +9 -0
- package/core/styles/{typography.scss → features/typography.scss} +2 -2
- package/core/styles/internals/button-reset.scss +5 -0
- package/core/styles/{host-scrollbar.scss → internals/host-scrollbar.scss} +1 -1
- package/core/styles/internals/list-reset.scss +6 -0
- package/core/styles/internals/popover-reset.scss +6 -0
- package/core/styles/{screen-reader-only.scss → internals/screen-reader-only.scss} +1 -1
- package/core/styles/mixins/{a11y.scss → _a11y.scss} +0 -21
- package/core/styles/mixins/{helpers.scss → _helpers.scss} +3 -14
- package/core/styles/mixins/{lists.scss → _lists.scss} +8 -12
- package/core/styles/mixins/{pearl-chain-bullet.scss → _pearl-chain-bullet.scss} +5 -5
- package/core/styles/mixins/_reset.scss +38 -0
- package/core/styles/mixins/{typo.scss → _typo.scss} +23 -75
- package/core/styles/styles.js +2 -2
- package/core.js +40 -42
- package/custom-elements.json +166 -384
- package/datepicker/common/datepicker-button.js +1 -1
- package/{datepicker-button-aYDFZ_3v.js → datepicker-button-CuoZoC6e.js} +0 -3
- package/datepicker.js +1 -1
- package/datepicker.pure.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +0 -2
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +1 -1
- package/development/autocomplete/autocomplete.component.js +1 -1
- package/development/autocomplete-base-element-CTZEg--s.js +695 -0
- package/development/autocomplete.js +1 -1
- package/development/autocomplete.pure.js +1 -1
- package/development/block-link-common-DNvRfeay.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
- package/development/breadcrumb-group.component-DvY1hq51.js +197 -0
- package/development/breadcrumb.component-D6Cd2FPo.js +1 -1
- package/development/breadcrumb.js +1 -1
- package/development/breadcrumb.pure.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +1 -1
- package/development/button-common-C-A7Dulr.js +1 -1
- package/development/button.js +1 -1
- package/development/button.pure.js +1 -1
- package/development/calendar/calendar/calendar.component.d.ts +0 -6
- package/development/calendar/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar/calendar.component.js +1 -1
- package/development/calendar-cell-base-element-mWRSDeWc.js +1 -1
- package/development/calendar.component-DnC8Zkdk.js +1478 -0
- package/development/calendar.js +1 -1
- package/development/calendar.pure.js +1 -1
- package/development/card.component-CL2gHoyP.js +1 -1
- package/development/chip-label.component-DHHNtvTt.js +1 -1
- package/development/{compact-paginator.component-BgkpxaaD.js → compact-paginator.component-m8MASSB7.js} +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +1 -1
- package/development/container.js +1 -1
- package/development/container.pure.js +1 -1
- package/development/core/base-elements/button-base-element.d.ts +1 -0
- package/development/core/base-elements/button-base-element.d.ts.map +1 -1
- package/development/core/base-elements/button-base-element.js +66 -92
- package/development/core/base-elements/element.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.d.ts +0 -5
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +2 -7
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +7 -21
- package/development/core/mixins/form-associated-mixin.d.ts +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-mixin.js +1 -1
- package/development/core/mixins/named-slot-list-mixin.js +3 -3
- package/development/core/styles/styles.d.ts +3 -1
- package/development/core/styles/styles.d.ts.map +1 -1
- package/development/core/styles/styles.js +2 -2
- package/development/core.d.ts +0 -2
- package/development/core.d.ts.map +1 -1
- package/development/core.js +3 -5
- package/development/date-input.component-HxRyCudr.js +1 -1
- package/development/datepicker/common/datepicker-button.d.ts +0 -2
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common/datepicker-button.js +1 -1
- package/development/{datepicker-button-BAT1ebzJ.js → datepicker-button-Bb76EBYH.js} +1 -5
- package/development/datepicker.js +1 -1
- package/development/datepicker.pure.js +1 -1
- package/development/dialog/dialog/dialog.component.js +1 -1
- package/development/dialog-actions.component-e0ZTTUin.js +1 -1
- package/development/{dialog.component-D8B2dVck.js → dialog.component-cZ3SAujq.js} +5 -5
- package/development/dialog.js +1 -1
- package/development/dialog.pure.js +1 -1
- package/development/element-BAsBayf5.js +1 -1
- package/development/error.component-WCkiwM7_.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/development/expansion-panel-header.component-gg5A_7Pz.js +1 -1
- package/development/expansion-panel.component-DcFrWkIt.js +1 -1
- package/development/file-selector/common/file-selector-common.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/file-selector-common-Dd0S0qE3.js +421 -0
- package/development/{file-selector-dropzone.component-B84OL4Xd.js → file-selector-dropzone.component-DWLdqMmI.js} +2 -2
- package/development/file-selector.js +2 -2
- package/development/file-selector.pure.js +2 -2
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +1 -1
- package/development/flip-card.component-MmiS-x-W.js +189 -0
- package/development/flip-card.js +1 -1
- package/development/flip-card.pure.js +1 -1
- package/development/footer.component-K2bWizjw.js +1 -1
- 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.component-Cb58q-Ty.js +702 -0
- package/development/form-field.js +1 -1
- package/development/form-field.pure.js +1 -1
- package/development/header/common/header-action-common.js +1 -1
- package/development/header-action-common-BYB-HYtn.js +86 -0
- package/development/header.component-C4e7CNql.js +1 -1
- package/development/header.js +1 -1
- package/development/header.pure.js +1 -1
- package/development/icon/icon.component.d.ts +1 -1
- package/development/icon/icon.component.d.ts.map +1 -1
- package/development/icon/icon.component.js +5 -7
- package/development/inline-link-common-BV6oAtAA.js +18 -0
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link-common-2RGn9Qz_.js +1 -1
- package/development/link-list/link-list.component.js +1 -1
- package/development/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/{link-list-anchor.component-Csb-FOQL.js → link-list-anchor.component-BMtCbCRD.js} +2 -2
- package/development/link-list-anchor.js +1 -1
- package/development/link-list-anchor.pure.js +1 -1
- package/development/link-list.component-CLxhjWR7.js +97 -0
- package/development/link-list.js +1 -1
- package/development/link-list.pure.js +1 -1
- package/development/link.js +1 -1
- package/development/link.pure.js +1 -1
- package/development/loading-indicator-circle.component-Cfjw5vyz.js +1 -1
- package/development/logo.component-DYKgAgq0.js +1 -1
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +1 -1
- package/development/menu-action-common-DL4t4_-J.js +32 -0
- package/development/menu.component-3qEIFutc.js +369 -0
- 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-CdO5GyE2.js → message.component-BJ-84a0B.js} +2 -2
- package/development/message.js +1 -1
- package/development/message.pure.js +1 -1
- package/development/{mini-button-group.component-VYKZf1rq.js → mini-button-group.component-C88pIaaL.js} +2 -2
- package/development/mini-button-link.component-kpRsi8I2.js +1 -1
- package/development/navigation/navigation/navigation.component.d.ts.map +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-marker/navigation-marker.component.js +1 -1
- package/development/navigation-action-common-wrzPCkMT.js +1 -1
- package/development/navigation-list.component-CU-SGC8c.js +86 -0
- package/development/navigation-marker.component-CTk9U0kA.js +120 -0
- package/development/navigation-section.component-iaypc6yQ.js +1 -1
- package/development/navigation.component-Bu1wVUNx.js +319 -0
- package/development/navigation.js +3 -3
- package/development/navigation.pure.js +3 -3
- package/development/optgroup-base-element-BzfcJgxG.js +140 -0
- package/development/option/optgroup/optgroup-base-element.d.ts +1 -2
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +1 -1
- package/development/option/optgroup/optgroup.component.js +1 -1
- package/development/option/option/option.component.js +1 -1
- package/development/option/option-styles.d.ts +2 -0
- package/development/option/option-styles.d.ts.map +1 -0
- package/development/option/option-styles.js +2 -0
- package/development/option-styles-IEQgVpCe.js +8 -0
- package/development/option.component-BrTjDq6X.js +131 -0
- package/development/option.js +5 -4
- package/development/option.pure.d.ts +1 -0
- package/development/option.pure.d.ts.map +1 -1
- package/development/option.pure.js +4 -3
- package/development/overlay/overlay-base-element.d.ts +2 -4
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +8 -7
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-YSCuGeme.js → overlay.component-DywhKxO1.js} +5 -5
- package/development/overlay.js +1 -1
- package/development/overlay.pure.js +1 -1
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +1 -1
- package/development/{paginator-common-B7iba0wQ.js → paginator-common-CRchtcXc.js} +1 -1
- package/development/paginator.component-B8y5tVCL.js +265 -0
- package/development/paginator.js +3 -3
- package/development/paginator.pure.js +3 -3
- package/development/panel-mixin-DPybe45K.js +1 -1
- package/development/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover.component.js +1 -1
- package/development/popover.component-Ds4fNNsq.js +578 -0
- 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/radio-button.component.js +1 -1
- package/development/radio-button-common-Ckz2nMS7.js +129 -0
- package/development/{radio-button.component-DnErH-1J.js → radio-button.component-qsLFvciH.js} +2 -2
- package/development/radio-button.js +2 -2
- package/development/radio-button.pure.js +2 -2
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +1 -1
- package/development/select.component-BE7ZMrAc.js +809 -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-BT0HmTja.js → selection-action-panel.component-C3UlmLkJ.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-4Ron8XNy.js +186 -0
- 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/sidebar/sidebar.component.js +1 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/{sidebar-close-button.component-CXnf-P5H.js → sidebar-close-button.component-ByQtC65O.js} +1 -1
- package/development/sidebar-container.component-BmavabUg.js +100 -0
- package/development/{sidebar-content.component-DbcREBUa.js → sidebar-content.component-DcsIIWpz.js} +1 -1
- package/development/{sidebar-title.component-BW04otyD.js → sidebar-title.component-DgJdkoiE.js} +1 -1
- package/development/{sidebar.component-mfXnE6WQ.js → sidebar.component-BszwyJQa.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-k14RJ8FA.js → signet.component-DXLTVjJS.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-BC8rpyf9.js +129 -0
- package/development/skiplink-list.js +1 -1
- package/development/skiplink-list.pure.js +1 -1
- package/development/slider/slider.component.d.ts +1 -0
- package/development/slider/slider.component.d.ts.map +1 -1
- package/development/slider/slider.component.js +1 -1
- package/development/slider.component-Dz4Nl2ZL.js +333 -0
- 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-B9en2l26.js → status.component-thSGiOrl.js} +1 -1
- package/development/status.js +1 -1
- package/development/status.pure.js +1 -1
- package/development/step-label.component-CpdXVv32.js +127 -0
- package/development/{step.component-B_YHm1tz.js → step.component-CfA-kmt1.js} +1 -11
- package/development/stepper/step/step.component.d.ts +4 -14
- package/development/stepper/step/step.component.d.ts.map +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/stepper/stepper.component.js +1 -1
- package/development/stepper.component-2yRFnnju.js +443 -0
- package/development/stepper.js +3 -3
- package/development/stepper.pure.js +3 -3
- package/development/{sticky-bar.component-BJLtRvcd.js → sticky-bar.component-DZpy1gBU.js} +2 -2
- package/development/{styles-WppEBrlW.js → styles-BmvNZZle.js} +1 -1
- package/development/styles-D8h0fqb5.js +30 -0
- package/development/{tab-group.component-CGMBihsQ.js → tab-group.component-DhcfjVxe.js} +1 -1
- package/development/{tab-label.component-CQOLO2t7.js → tab-label.component-B7YEhR1C.js} +1 -1
- package/development/tab-nav-bar.component-DrZ1U7lM.js +109 -0
- package/development/{tab.component-BVhYPy5Y.js → tab.component-COn1G0XA.js} +1 -1
- package/development/table/table-wrapper/table-wrapper.component.js +1 -1
- package/development/{table-wrapper.component-By59zmcU.js → table-wrapper.component-9Lst6dT2.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/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.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-group.component-OQ3sxhZI.js +194 -0
- package/development/tag.component-DWOPDWwe.js +238 -0
- 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-BHMcPmdh.js → teaser-hero.component-Cp42iJGt.js} +1 -1
- package/development/teaser-hero.js +1 -1
- package/development/teaser-hero.pure.js +1 -1
- package/development/teaser-panel/teaser-panel.component.js +1 -1
- package/development/{teaser-panel.component-BRfbvmkb.js → teaser-panel.component-ptDalUEe.js} +1 -1
- package/development/teaser-panel.js +1 -1
- package/development/teaser-panel.pure.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/{teaser-product-common-DOyLdTks.js → teaser-product-common-DxBw-__I.js} +1 -1
- package/development/teaser-product.component-CPj4vJ2V.js +37 -0
- package/development/teaser-product.js +2 -2
- package/development/teaser-product.pure.js +2 -2
- package/development/teaser.component-Dgrc2jh8.js +116 -0
- 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-BFjDAfbv.js +187 -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-field/timetable-form-field.component.js +1 -1
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/development/{timetable-form-details.component-BeuAZUQe.js → timetable-form-details.component-BFmuJ8-6.js} +1 -1
- package/development/{timetable-form-field.component-DC2z1Cwf.js → timetable-form-field.component-DD04XyA0.js} +1 -1
- package/development/{timetable-form-swap-button.component-CnbVc8Ok.js → timetable-form-swap-button.component-DphGegO6.js} +1 -1
- package/development/{timetable-form.component-C8DfPePn.js → timetable-form.component-EIr4B4mA.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.d.ts.map +1 -1
- 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-vsXoAiKz.js +95 -0
- package/development/timetable-occupancy-icon.js +1 -1
- package/development/timetable-occupancy-icon.pure.js +1 -1
- package/development/timetable-occupancy.component-B0zY0RnI.js +126 -0
- 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.d.ts +0 -2
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +1 -1
- package/development/title-base-CPAVrsQ9.js +102 -0
- package/development/title.component-DCg9U2CK.js +69 -0
- package/development/title.js +2 -2
- package/development/title.pure.js +2 -2
- package/development/toast/toast.component.d.ts.map +1 -1
- package/development/toast/toast.component.js +1 -1
- package/development/{toast.component-DonS3uQm.js → toast.component-TvSfu5nl.js} +3 -3
- 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-check/toggle-check.component.js +1 -1
- package/development/{toggle-check.component-BIV7jFIc.js → toggle-check.component-CbGa5-8I.js} +1 -1
- package/development/toggle-check.js +1 -1
- package/development/toggle-check.pure.js +1 -1
- package/development/{toggle-option.component-DRxwLSKU.js → toggle-option.component-BxGnhJFH.js} +1 -1
- package/development/toggle.component-Q68IDQWX.js +243 -0
- package/development/toggle.js +2 -2
- package/development/toggle.pure.js +2 -2
- package/development/tooltip/tooltip.component.d.ts.map +1 -1
- package/development/tooltip/tooltip.component.js +1 -1
- package/development/tooltip.component-Baoh6M8V.js +369 -0
- 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-formation/train-formation.component.js +1 -1
- package/development/train/train-wagon-common.js +1 -1
- package/development/{train-blocked-passage.component-Cxd7dBDC.js → train-blocked-passage.component-C7ve-a1E.js} +1 -1
- package/development/{train-formation.component-BEg6OPib.js → train-formation.component-DQ_hLKNv.js} +2 -2
- package/development/train-wagon-common-CdckItEt.js +441 -0
- package/development/train.component-Bi74L6C7.js +239 -0
- 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-Dm8DNhH2.js → visual-checkbox.component-B4_iHcsX.js} +1 -1
- package/development/visual-checkbox.js +1 -1
- package/development/visual-checkbox.pure.js +1 -1
- package/dialog/dialog/dialog.component.js +1 -1
- package/{dialog.component-CsBryhM-.js → dialog.component-D3G0AX4Y.js} +4 -4
- package/dialog.js +1 -1
- package/dialog.pure.js +1 -1
- package/file-selector/common/file-selector-common.js +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/{file-selector-common-VNwWFEmM.js → file-selector-common-BNGnjK__.js} +1 -1
- package/{file-selector-dropzone.component-CGo6odhC.js → file-selector-dropzone.component-sE_fofSq.js} +1 -1
- package/file-selector.js +2 -2
- package/file-selector.pure.js +2 -2
- package/flip-card/flip-card/flip-card.component.js +1 -1
- package/{flip-card.component-CZ0v44Ym.js → flip-card.component-ZsA_kDPS.js} +22 -18
- package/flip-card.js +1 -1
- package/flip-card.pure.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/{form-field.component-BdfK6r2v.js → form-field.component-BoLly8qP.js} +4 -4
- package/form-field.js +1 -1
- package/form-field.pure.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/header-action-common-B-eRBjSz.js +64 -0
- package/header.js +1 -1
- package/header.pure.js +1 -1
- package/icon/icon.component.js +2 -5
- package/inline-link-common-O650N_pm.js +13 -0
- package/lean-off-brand-theme.css +416 -503
- package/lean-safety-theme.css +416 -503
- package/lean-theme.css +416 -503
- package/link/common/inline-link-common.js +1 -1
- package/link-list/link-list.component.js +1 -1
- package/link-list-anchor/link-list-anchor.component.js +1 -1
- package/{link-list-anchor.component-DG_HCtHH.js → link-list-anchor.component-Bjz_EKvE.js} +1 -1
- package/link-list-anchor.js +1 -1
- package/link-list-anchor.pure.js +1 -1
- package/{link-list.component-BNVd0a8U.js → link-list.component-Dg-7TBPC.js} +1 -1
- package/link-list.js +1 -1
- package/link-list.pure.js +1 -1
- package/link.js +1 -1
- package/link.pure.js +1 -1
- package/menu/common/menu-action-common.js +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/{menu-action-common-Wy36tk18.js → menu-action-common-DakEXPg7.js} +1 -1
- package/{menu.component-DrrKSRmJ.js → menu.component-CqXsI5Cg.js} +25 -21
- package/menu.js +2 -2
- package/menu.pure.js +2 -2
- package/message/message.component.js +1 -1
- package/{message.component-CdfsCpnE.js → message.component-CORYX4KP.js} +1 -1
- package/message.js +1 -1
- package/message.pure.js +1 -1
- package/{mini-button-group.component-DQBU0BDm.js → mini-button-group.component-DWayyUpK.js} +1 -1
- package/navigation/navigation/navigation.component.js +1 -1
- package/navigation/navigation-list/navigation-list.component.js +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/{navigation-list.component-Cezo1tC-.js → navigation-list.component-C5y3ohH0.js} +1 -1
- package/{navigation-marker.component-CNsMaqpH.js → navigation-marker.component-VbvKu1TR.js} +1 -1
- package/{navigation.component-DLgmWh_c.js → navigation.component-DKJujMqj.js} +23 -19
- package/navigation.js +3 -3
- package/navigation.pure.js +3 -3
- package/off-brand-theme.css +416 -503
- package/{optgroup-base-element-Cxe8SIQh.js → optgroup-base-element-CBxsRPUF.js} +10 -17
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/optgroup/optgroup.component.js +1 -1
- package/option/option/option.component.js +1 -1
- package/option/option-styles.js +2 -0
- package/option-styles-DcD5grSB.js +6 -0
- package/option.js +6 -5
- package/option.pure.js +5 -4
- package/overlay/overlay-base-element.js +24 -24
- package/overlay/overlay.component.js +1 -1
- package/{overlay.component-myJflfLY.js → overlay.component-OSLtja0_.js} +4 -4
- package/overlay.js +1 -1
- package/overlay.pure.js +1 -1
- package/package.json +5 -49
- package/paginator/common/paginator-common.js +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/paginator/paginator/paginator.component.js +1 -1
- package/paginator.component-Dk1xDHgW.js +212 -0
- package/paginator.js +3 -3
- package/paginator.pure.js +3 -3
- package/popover/popover.component.js +1 -1
- package/{popover.component-Dm_86bPY.js → popover.component-Bm-bx-Hs.js} +32 -32
- package/popover.js +1 -1
- package/popover.pure.js +1 -1
- package/radio-button/common/radio-button-common.js +1 -1
- package/radio-button/radio-button.component.js +1 -1
- package/{radio-button.component-CZ273yAb.js → radio-button.component-CGeTCfMq.js} +1 -1
- package/radio-button.js +2 -2
- package/radio-button.pure.js +2 -2
- package/safety-theme.css +416 -503
- package/select/select.component.js +1 -1
- package/{select.component-CLPLpFDz.js → select.component-UcWSndDu.js} +41 -39
- 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/sidebar/sidebar.component.js +1 -1
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.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.component-BXaqYpsI.js → skiplink-list.component-ClGb1J_H.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.component-BlUWAWJU.js → slider.component-BMkoF1l1.js} +23 -31
- package/slider.js +1 -1
- package/slider.pure.js +1 -1
- package/standard-theme.css +416 -503
- 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/stepper/stepper.component.js +1 -1
- package/stepper.js +3 -3
- package/stepper.pure.js +3 -3
- package/{sticky-bar.component-dmlGAZLW.js → sticky-bar.component-DtXeRUqi.js} +1 -1
- package/styles-DV41ClRb.js +5 -0
- package/{tab-nav-bar.component-FT2W0urU.js → tab-nav-bar.component-CRC6xnaX.js} +1 -1
- package/table/table-wrapper/table-wrapper.component.js +1 -1
- package/table.js +1 -1
- package/table.pure.js +1 -1
- package/tabs/common/styles.js +1 -1
- package/tabs/tab/tab.component.js +1 -1
- package/tabs/tab-group/tab-group.component.js +1 -1
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.component.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-group.component-9UfHHJ79.js → tag-group.component-wnzXwLPf.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-panel/teaser-panel.component.js +1 -1
- package/teaser-panel.js +1 -1
- package/teaser-panel.pure.js +1 -1
- package/teaser-product/common/teaser-product-common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.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.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-field/timetable-form-field.component.js +1 -1
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.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.component-DGQ20zH1.js → timetable-occupancy.component-CIkq1cT7.js} +17 -13
- 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-base-JBhKD3ur.js → title-base-B1xzk7Zb.js} +1 -1
- package/{title.component-VnTeqomb.js → title.component-DTnG8op9.js} +2 -2
- package/title.js +2 -2
- package/title.pure.js +2 -2
- package/toast/toast.component.js +1 -1
- package/{toast.component-BMN90Ouu.js → toast.component-Ew5vuGXf.js} +19 -19
- 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-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.component-NfyDxfw7.js → tooltip.component-ihyNBI7f.js} +25 -25
- 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-formation/train-formation.component.js +1 -1
- package/train/train-wagon-common.js +1 -1
- package/{train-formation.component-DVxNBPIB.js → train-formation.component-CYqdWnkL.js} +1 -1
- package/{train-wagon-common-CDCsWVgi.js → train-wagon-common-C1Py1D01.js} +1 -1
- package/{train.component-DxadS7O8.js → train.component-DRLUjuXY.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/a11y.css +0 -20
- package/animation.css +0 -14
- package/badge.css +0 -32
- package/core/decorators/host-attributes.js +0 -17
- package/core/eventing/throttle.js +0 -11
- package/core/styles/badge.scss +0 -3
- package/core/styles/mixins/badge.scss +0 -42
- package/core/styles/mixins/buttons.scss +0 -12
- package/core/styles/mixins/card.scss +0 -205
- package/core/styles/mixins/dev_and_debug.scss +0 -8
- package/core/styles/mixins/image.scss +0 -43
- package/core/styles/mixins/inputs.scss +0 -11
- package/core/styles/mixins/link.scss +0 -125
- package/core/styles/mixins/panel.scss +0 -80
- package/core/styles/mixins/popover.scss +0 -14
- package/core/styles/mixins/table.scss +0 -185
- package/core/styles/mixins/timetable-form.scss +0 -63
- package/core/styles/option-panel-common.global.scss +0 -11
- package/core/styles/option-panel-common.scss +0 -157
- package/core/styles/theme.scss +0 -20
- package/core/styles/timetable-form.scss +0 -27
- package/core/styles/typography.private.scss +0 -9
- package/core.css +0 -2713
- package/development/autocomplete-base-element-qnPoRLvM.js +0 -695
- package/development/breadcrumb-group.component-BUBfl6LV.js +0 -193
- package/development/calendar.component-CG96KGTg.js +0 -1469
- package/development/core/decorators/host-attributes.d.ts +0 -22
- package/development/core/decorators/host-attributes.d.ts.map +0 -1
- package/development/core/decorators/host-attributes.js +0 -41
- package/development/core/eventing/throttle.d.ts +0 -3
- package/development/core/eventing/throttle.d.ts.map +0 -1
- package/development/core/eventing/throttle.js +0 -18
- package/development/file-selector-common-mZ5UYxOF.js +0 -421
- package/development/flip-card.component-DujrPKzU.js +0 -185
- package/development/form-field.component-CPWBCHer.js +0 -702
- package/development/header-action-common-Be0XQge2.js +0 -86
- package/development/inline-link-common-gmt6yz3v.js +0 -18
- package/development/link-list.component-B90qHOUD.js +0 -97
- package/development/menu-action-common-DRXQc85Y.js +0 -32
- package/development/menu.component-Cv9wRj4H.js +0 -365
- package/development/navigation-list.component-Dvv-bZ2V.js +0 -86
- package/development/navigation-marker.component-DMqe-VlY.js +0 -120
- package/development/navigation.component-CqNkBvEs.js +0 -315
- package/development/optgroup-base-element-CLfE6pmz.js +0 -147
- package/development/option.component-CV6cZnJe.js +0 -131
- package/development/paginator.component-BwLUSpDj.js +0 -261
- package/development/popover.component-CKUZbWbV.js +0 -578
- package/development/radio-button-common-G0jLFo41.js +0 -129
- package/development/select.component-CUjF11sq.js +0 -807
- package/development/selection-expansion-panel.component-BT78Qhbf.js +0 -186
- package/development/sidebar-container.component-CxwDKxv9.js +0 -100
- package/development/skiplink-list.component-m7xm-pns.js +0 -129
- package/development/slider.component-D_nLTlRF.js +0 -346
- package/development/step-label.component-Bo7Z0w7N.js +0 -127
- package/development/stepper.component-BeqeUIRN.js +0 -443
- package/development/styles-Cctez2BS.js +0 -22
- package/development/tab-nav-bar.component-B_mi8GGR.js +0 -109
- package/development/tag-group.component-Db8prSBL.js +0 -194
- package/development/tag.component-DG1uxD28.js +0 -238
- package/development/teaser-product.component-DMyuB-cH.js +0 -37
- package/development/teaser.component-CF_NUbwJ.js +0 -116
- package/development/time-input.component-XxzRoupm.js +0 -187
- package/development/timetable-occupancy-icon.component-UBmyZsTO.js +0 -95
- package/development/timetable-occupancy.component-DMm242Fr.js +0 -122
- package/development/title-base-D_Rjyk_j.js +0 -102
- package/development/title.component-CMxYhTfw.js +0 -71
- package/development/toggle.component-B03k5qc1.js +0 -243
- package/development/tooltip.component-D8zik3p4.js +0 -369
- package/development/train-wagon-common-Dg-BjUtC.js +0 -441
- package/development/train.component-dECIGw2x.js +0 -239
- package/header-action-common-DuPx0U2o.js +0 -64
- package/inline-link-common-BqqH1ExY.js +0 -13
- package/layout.css +0 -30
- package/lists.css +0 -194
- package/normalize.css +0 -95
- package/paginator.component-DB8l-B6J.js +0 -208
- package/scrollbar.css +0 -124
- package/styles-DAMaYe4p.js +0 -5
- package/table.css +0 -261
- package/timetable-form.css +0 -73
- package/typography.css +0 -67
- /package/{compact-paginator.component-BAuShgQE.js → compact-paginator.component-B-8gf_qD.js} +0 -0
- /package/core/styles/{disable-animation.scss → disable-animation-extension.scss} +0 -0
- /package/core/styles/{node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss → features/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss} +0 -0
- /package/core/styles/{node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss → features/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss} +0 -0
- /package/core/styles/{normalize.scss → features/normalize.scss} +0 -0
- /package/core/styles/{scrollbar.private.scss → features/scrollbar.private.scss} +0 -0
- /package/core/styles/mixins/{animation.scss → _animation.scss} +0 -0
- /package/core/styles/mixins/{font-face.scss → _font-face.scss} +0 -0
- /package/core/styles/mixins/{layout.scss → _layout.scss} +0 -0
- /package/core/styles/mixins/{scrollbar.scss → _scrollbar.scss} +0 -0
- /package/{disable-animation.css → disable-animation-extension.css} +0 -0
- /package/{option.component-BeorlZT0.js → option.component-DiH8AMlV.js} +0 -0
- /package/{paginator-common-BWewgXga.js → paginator-common-C0Kn9ibe.js} +0 -0
- /package/{radio-button-common-CrIRn10q.js → radio-button-common-BDNSqXg-.js} +0 -0
- /package/{selection-action-panel.component-DCGJQ3Mx.js → selection-action-panel.component-Ba7N1Hgt.js} +0 -0
- /package/{selection-expansion-panel.component-Cu1egfTY.js → selection-expansion-panel.component-BL1FPfPM.js} +0 -0
- /package/{sidebar-close-button.component-8owwjvk3.js → sidebar-close-button.component-CLjOpBM2.js} +0 -0
- /package/{sidebar-container.component-Dcke-Uhr.js → sidebar-container.component-8filIF5E.js} +0 -0
- /package/{sidebar-content.component-CYupfsq_.js → sidebar-content.component-DMdjHDdq.js} +0 -0
- /package/{sidebar-title.component-Cf64lCJx.js → sidebar-title.component-DaIkBNY9.js} +0 -0
- /package/{sidebar.component-LaqQzMo2.js → sidebar.component-D_HLDNnq.js} +0 -0
- /package/{signet.component-3Xfke8uk.js → signet.component-6q3GxORI.js} +0 -0
- /package/{status.component-mel7wA1j.js → status.component-DMfZTgzz.js} +0 -0
- /package/{step-label.component-BGSaHafq.js → step-label.component-CjNZYk5b.js} +0 -0
- /package/{step.component-tJh-Pb_E.js → step.component-BCkwsZdk.js} +0 -0
- /package/{stepper.component-BCl77LVa.js → stepper.component-mq66fR06.js} +0 -0
- /package/{styles-DisU4TWi.js → styles-DWm_OYpV.js} +0 -0
- /package/{tab-group.component-CDhggNpe.js → tab-group.component-MEm2W7QR.js} +0 -0
- /package/{tab-label.component-BuF2qt1T.js → tab-label.component-BqznCfW8.js} +0 -0
- /package/{tab.component-D6hfhlZw.js → tab.component-DPwbvqp4.js} +0 -0
- /package/{table-wrapper.component-C83EYuZP.js → table-wrapper.component-LzYuAVPb.js} +0 -0
- /package/{tag.component-BKuxfdDi.js → tag.component-zGPaopTo.js} +0 -0
- /package/{teaser-hero.component-mv6HL4vm.js → teaser-hero.component-BlhffYux.js} +0 -0
- /package/{teaser-panel.component-qRmy2lbz.js → teaser-panel.component-BCbKgXVt.js} +0 -0
- /package/{teaser-product-common-J1KZ2Hlw.js → teaser-product-common-C_lgMbyC.js} +0 -0
- /package/{teaser-product.component-BcleFVcu.js → teaser-product.component-CQIXu7sq.js} +0 -0
- /package/{teaser.component-BOqCERR7.js → teaser.component-D9z78Eny.js} +0 -0
- /package/{time-input.component-Dw8pPYDK.js → time-input.component-CLHEoWze.js} +0 -0
- /package/{timetable-form-details.component-0c6h6shd.js → timetable-form-details.component-DJ3oPkQP.js} +0 -0
- /package/{timetable-form-field.component-Cya8n2Ms.js → timetable-form-field.component-6s8_sz9h.js} +0 -0
- /package/{timetable-form-swap-button.component-rI_0UYJw.js → timetable-form-swap-button.component-BY2m2_k9.js} +0 -0
- /package/{timetable-form.component-DVps6baq.js → timetable-form.component-Swe8BX7g.js} +0 -0
- /package/{timetable-occupancy-icon.component-ABh1bz-X.js → timetable-occupancy-icon.component-C44eSFOM.js} +0 -0
- /package/{toggle-check.component-BcQ5ht0O.js → toggle-check.component-Ce-klZJB.js} +0 -0
- /package/{toggle-option.component-DQcPDXyl.js → toggle-option.component-BdMfGuA-.js} +0 -0
- /package/{toggle.component-DARkqJol.js → toggle.component-ySmrXvjA.js} +0 -0
- /package/{train-blocked-passage.component-B601YYJl.js → train-blocked-passage.component-UnNCmspZ.js} +0 -0
- /package/{visual-checkbox.component-YhX5Qk3j.js → visual-checkbox.component-JmGORoDU.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
2
|
import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
|
|
3
3
|
import { property as o, state as s } from "lit/decorators.js";
|
|
4
|
-
import {
|
|
4
|
+
import { MONDAY as c, SbbElement as ee, SbbLanguageController as te, SbbMediaMatcherController as ne, SbbMediaQueryBreakpointLargeAndAbove as l, THURSDAY as re, TUESDAY as ie, WEDNESDAY as ae, buttonResetStyles as oe, defaultDateAdapter as se, forceType as u, handleDistinctChange as ce, i18nCalendarDateSelection as d, i18nCalendarWeekNumber as f, i18nNextMonth as le, i18nNextYear as ue, i18nNextYearRange as de, i18nPreviousMonth as fe, i18nPreviousYear as pe, i18nPreviousYearRange as me, i18nYearMonthSelection as he, isArrowKeyOrPageKeysPressed as ge, plainDate as p, readConfig as _e, screenReaderOnlyStyles as ve } from "./core.js";
|
|
5
5
|
import { SbbSecondaryButtonElement as ye } from "./button.pure.js";
|
|
6
6
|
import { SbbIconElement as be } from "./icon.pure.js";
|
|
7
7
|
import { SbbCalendarDayElement as xe } from "./calendar/calendar-day/calendar-day.component.js";
|
|
@@ -10,7 +10,7 @@ import { SbbCalendarWeekdayElement as Ce } from "./calendar/calendar-weekday/cal
|
|
|
10
10
|
import { SbbCalendarWeeknumberElement as we } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
11
11
|
import { SbbCalendarYearElement as Te } from "./calendar/calendar-year/calendar-year.component.js";
|
|
12
12
|
//#region src/elements/calendar/calendar/calendar.scss?inline
|
|
13
|
-
var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-height-text);--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{
|
|
13
|
+
var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-height-text);--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);line-height:var(--sbb-typo-letter-spacing-text);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-calendar-control-view-change-padding-inline);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{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-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-cell-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-cell-justify-content: center;--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg)}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}", m = 7, h = 4, g = 4, De = 12, _ = 24, v = class extends Event {
|
|
14
14
|
get range() {
|
|
15
15
|
return this._range;
|
|
16
16
|
}
|
|
@@ -31,18 +31,18 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
31
31
|
}), this._dateSelected = Object.freeze(e);
|
|
32
32
|
}
|
|
33
33
|
}, b = (() => {
|
|
34
|
-
let b =
|
|
34
|
+
let b = ee, x = [], S, C = [], w = [], Oe, 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, $, ke = [], Ae = [], je, Me = [], Ne = [];
|
|
35
35
|
return class extends b {
|
|
36
36
|
static {
|
|
37
37
|
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
38
|
-
S = [
|
|
39
|
-
|
|
38
|
+
S = [u(), o({ type: Boolean })], Oe = [o()], D = [p(), o()], A = [p(), o()], N = [
|
|
39
|
+
u(),
|
|
40
40
|
ce((e, t) => e._onMultipleChanged(t)),
|
|
41
41
|
o({ type: Boolean })
|
|
42
|
-
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [o({ reflect: !0 })], K = [
|
|
42
|
+
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [o({ reflect: !0 })], K = [u(), o({
|
|
43
43
|
attribute: "week-numbers",
|
|
44
44
|
type: Boolean
|
|
45
|
-
})], Y = [s()], Q = [s()],
|
|
45
|
+
})], Y = [s()], Q = [s()], $ = [s()], je = [s()], e(this, null, S, {
|
|
46
46
|
kind: "accessor",
|
|
47
47
|
name: "wide",
|
|
48
48
|
static: !1,
|
|
@@ -55,7 +55,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
metadata: t
|
|
58
|
-
}, C, w), e(this, null,
|
|
58
|
+
}, C, w), e(this, null, Oe, {
|
|
59
59
|
kind: "accessor",
|
|
60
60
|
name: "view",
|
|
61
61
|
static: !1,
|
|
@@ -68,7 +68,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
metadata: t
|
|
71
|
-
},
|
|
71
|
+
}, T, E), e(this, null, D, {
|
|
72
72
|
kind: "accessor",
|
|
73
73
|
name: "min",
|
|
74
74
|
static: !1,
|
|
@@ -196,7 +196,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
metadata: t
|
|
199
|
-
}, null, x), e(this, null,
|
|
199
|
+
}, null, x), e(this, null, $, {
|
|
200
200
|
kind: "accessor",
|
|
201
201
|
name: "_calendarView",
|
|
202
202
|
static: !1,
|
|
@@ -222,7 +222,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
metadata: t
|
|
225
|
-
}, Me,
|
|
225
|
+
}, Me, Ne), t && Object.defineProperty(this, Symbol.metadata, {
|
|
226
226
|
enumerable: !0,
|
|
227
227
|
configurable: !0,
|
|
228
228
|
writable: !0,
|
|
@@ -244,7 +244,11 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
244
244
|
];
|
|
245
245
|
}
|
|
246
246
|
static {
|
|
247
|
-
this.styles = [
|
|
247
|
+
this.styles = [
|
|
248
|
+
oe,
|
|
249
|
+
ve,
|
|
250
|
+
a(Ee)
|
|
251
|
+
];
|
|
248
252
|
}
|
|
249
253
|
static {
|
|
250
254
|
this.events = {
|
|
@@ -356,15 +360,15 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
356
360
|
this.#d = e;
|
|
357
361
|
}
|
|
358
362
|
constructor() {
|
|
359
|
-
super(), this.#e = (t(this, x), t(this, C, !1)), this.#t = (t(this, w), t(this,
|
|
363
|
+
super(), this.#e = (t(this, x), t(this, C, !1)), this.#t = (t(this, w), t(this, T, "day")), this.#n = (t(this, E), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this.#s = (t(this, H), t(this, W, "horizontal")), this.#c = (t(this, G), t(this, q, !1)), this._dateAdapter = (t(this, J), _e().datetime?.dateAdapter ?? se), this.#l = t(this, X, this._dateAdapter.today()), this._wideInternal = (t(this, Z), !1), this.#u = t(this, ke, "day"), this._nextCalendarView = (t(this, Ae), "day"), this._keyboardNavigationDayViewParameters = {
|
|
360
364
|
firstDayInView: null,
|
|
361
365
|
lastDayInView: null,
|
|
362
366
|
firstMonthOffset: 0,
|
|
363
367
|
firstMonthLength: 0,
|
|
364
368
|
secondMonthOffset: 0
|
|
365
|
-
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this._lastSelection = null, this.#d = t(this, Me, !1), this._language = (t(this,
|
|
369
|
+
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this._lastSelection = null, this.#d = t(this, Me, !1), this._language = (t(this, Ne), new te(this).withHandler(() => {
|
|
366
370
|
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
367
|
-
})), this._mediaMatcher = new
|
|
371
|
+
})), this._mediaMatcher = new ne(this, { [l]: () => this._init() }), this._sortDate = (e, t) => this._dateAdapter.compareDate(e, t), this._onSlotChange = () => {
|
|
368
372
|
this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
|
|
369
373
|
}, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1);
|
|
370
374
|
let e = (e) => e.target.closest("sbb-calendar-day") ?? e.composedPath().find((e) => e.localName === "sbb-calendar-day") ?? null;
|
|
@@ -406,9 +410,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
406
410
|
this.hydrationComplete.then(() => this._init());
|
|
407
411
|
return;
|
|
408
412
|
}
|
|
409
|
-
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(
|
|
413
|
+
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(l) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._weekNumbers = this._weeks.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
|
|
410
414
|
let e = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
411
|
-
this._nextMonthWeeks = this._createWeekRows(e, !0), this._nextMonthYears = this._createYearRows(
|
|
415
|
+
this._nextMonthWeeks = this._createWeekRows(e, !0), this._nextMonthYears = this._createYearRows(_), this._nextMonthWeekNumbers = this._nextMonthWeeks.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t);
|
|
412
416
|
}
|
|
413
417
|
this._initialized = !0;
|
|
414
418
|
}
|
|
@@ -430,16 +434,16 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
430
434
|
_createWeekRowsHorizontal(e, t, n) {
|
|
431
435
|
let r = [[]];
|
|
432
436
|
for (let i = 0, a = n; i < t; i++, a++) {
|
|
433
|
-
a ===
|
|
437
|
+
a === m && (r.push([]), a = 0);
|
|
434
438
|
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
|
|
435
439
|
r[r.length - 1].push(this._mapDateToDay(t));
|
|
436
440
|
}
|
|
437
441
|
return r;
|
|
438
442
|
}
|
|
439
443
|
_createWeekRowsVertical(e, t, n) {
|
|
440
|
-
let r = Array.from({ length:
|
|
444
|
+
let r = Array.from({ length: m }, () => []);
|
|
441
445
|
for (let i = 0, a = n; i < t; i++, a++) {
|
|
442
|
-
a ===
|
|
446
|
+
a === m && (a = 0);
|
|
443
447
|
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
|
|
444
448
|
r[a].push(this._mapDateToDay(t));
|
|
445
449
|
}
|
|
@@ -458,15 +462,15 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
458
462
|
}
|
|
459
463
|
_getWeek(e) {
|
|
460
464
|
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), 1, 1), n = this._dateAdapter.getDayOfWeek(t), r = +!![
|
|
461
|
-
|
|
465
|
+
c,
|
|
466
|
+
ie,
|
|
462
467
|
ae,
|
|
463
|
-
|
|
464
|
-
ie
|
|
468
|
+
re
|
|
465
469
|
].includes(n), i = this._dateAdapter.addCalendarDays(t, this._dateAdapter.getFirstWeekOffset(t) * -1);
|
|
466
470
|
for (; this._dateAdapter.compareDate(i, e) <= 0;) {
|
|
467
471
|
let n = this._dateAdapter.addCalendarDays(i, 6);
|
|
468
472
|
if (this._dateAdapter.compareDate(e, n) <= 0) return r > 0 ? r : this._getWeek(this._dateAdapter.addCalendarDays(t, -1));
|
|
469
|
-
i = this._dateAdapter.addCalendarDays(i,
|
|
473
|
+
i = this._dateAdapter.addCalendarDays(i, m), r++;
|
|
470
474
|
}
|
|
471
475
|
throw Error("The provided date is invalid");
|
|
472
476
|
}
|
|
@@ -477,20 +481,20 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
477
481
|
let e = Array(12).fill(null).map((e, t) => ({
|
|
478
482
|
value: String(t + 1).padStart(2, "0"),
|
|
479
483
|
monthValue: t + 1
|
|
480
|
-
})), t = 12 /
|
|
481
|
-
for (let r = 0; r < t; r++) n.push(e.slice(
|
|
484
|
+
})), t = 12 / h, n = [];
|
|
485
|
+
for (let r = 0; r < t; r++) n.push(e.slice(h * r, h * (r + 1)));
|
|
482
486
|
this._months = n;
|
|
483
487
|
}
|
|
484
488
|
_createYearRows(e = 0) {
|
|
485
|
-
let t = this._getStartValueYearView(), n = Array(
|
|
486
|
-
for (let e = 0; e < r; e++) i.push(n.slice(
|
|
489
|
+
let t = this._getStartValueYearView(), n = Array(_).fill(0).map((n, r) => t + e + r), r = _ / g, i = [];
|
|
490
|
+
for (let e = 0; e < r; e++) i.push(n.slice(g * e, g * (e + 1)));
|
|
487
491
|
return i;
|
|
488
492
|
}
|
|
489
493
|
_getStartValueYearView() {
|
|
490
494
|
let e = 0;
|
|
491
|
-
this.max ? e = this._dateAdapter.getYear(this.max) -
|
|
495
|
+
this.max ? e = this._dateAdapter.getYear(this.max) - _ + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
|
|
492
496
|
let t = this._dateAdapter.getYear(this._activeDate);
|
|
493
|
-
return t - ((t - e) %
|
|
497
|
+
return t - ((t - e) % _ + _) % _;
|
|
494
498
|
}
|
|
495
499
|
_isDayInRange(e) {
|
|
496
500
|
if (!this.min && !this.max) return !0;
|
|
@@ -619,9 +623,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
619
623
|
_navigateByKeyboardDayView(e, t, n, r) {
|
|
620
624
|
let i = this.orientation === "horizontal" ? {
|
|
621
625
|
leftRight: 1,
|
|
622
|
-
upDown:
|
|
626
|
+
upDown: m
|
|
623
627
|
} : {
|
|
624
|
-
leftRight:
|
|
628
|
+
leftRight: m,
|
|
625
629
|
upDown: 1
|
|
626
630
|
}, a = t < this._keyboardNavigationDayViewParameters.firstMonthLength ? this._keyboardNavigationDayViewParameters.firstMonthOffset : this._keyboardNavigationDayViewParameters.secondMonthOffset;
|
|
627
631
|
switch (e.key) {
|
|
@@ -630,17 +634,17 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
630
634
|
case "ArrowLeft": return this._findDayArrows(n, t, r.dateValue, -i.leftRight);
|
|
631
635
|
case "ArrowRight": return this._findDayArrows(n, t, r.dateValue, i.leftRight);
|
|
632
636
|
case "PageUp": if (this.orientation === "horizontal") {
|
|
633
|
-
let e = (+r.dayValue %
|
|
637
|
+
let e = (+r.dayValue % m || m) - +r.dayValue;
|
|
634
638
|
return this._findDayPageUpDown(n, t, r, e, i.upDown);
|
|
635
639
|
} else {
|
|
636
|
-
let e = (Math.ceil((+r.dayValue + a) /
|
|
640
|
+
let e = (Math.ceil((+r.dayValue + a) / m) - 1) * m - a + 1 - r.dayValue;
|
|
637
641
|
return this._findDayPageUpDown(n, t, r, e, i.upDown);
|
|
638
642
|
}
|
|
639
643
|
case "PageDown": if (this.orientation === "horizontal") {
|
|
640
|
-
let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, a = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, o = this._dateAdapter.createDate(a, e, 1), s = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(o, -1)),
|
|
641
|
-
return this._findDayPageUpDown(n, t, r,
|
|
644
|
+
let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, a = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, o = this._dateAdapter.createDate(a, e, 1), s = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(o, -1)), c = Math.trunc((s - +r.dayValue) / m) * m;
|
|
645
|
+
return this._findDayPageUpDown(n, t, r, c, -i.upDown);
|
|
642
646
|
} else {
|
|
643
|
-
let e = Math.ceil((+r.dayValue + a) /
|
|
647
|
+
let e = Math.ceil((+r.dayValue + a) / m) * m - a - +r.dayValue;
|
|
644
648
|
return this._findDayPageUpDown(n, t, r, e, -i.upDown);
|
|
645
649
|
}
|
|
646
650
|
case "Home": return this._findDayFirst(n, t, r, 1);
|
|
@@ -693,9 +697,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
699
|
_calculateParametersForKeyboardNavigation(e, t) {
|
|
696
|
-
let n = t ?
|
|
700
|
+
let n = t ? _ : De, r = Math.trunc(e / n) * n, i = r === 0 ? e : e - n;
|
|
697
701
|
return {
|
|
698
|
-
verticalOffset: t ?
|
|
702
|
+
verticalOffset: t ? g : h,
|
|
699
703
|
elementIndexForWideMode: i,
|
|
700
704
|
offsetForWideMode: e - i,
|
|
701
705
|
lastElementIndexForWideMode: r === 0 ? n : n * 2
|
|
@@ -805,7 +809,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
805
809
|
</thead>
|
|
806
810
|
<tbody class="sbb-calendar__table-body">
|
|
807
811
|
${e.map((e, r) => {
|
|
808
|
-
let o =
|
|
812
|
+
let o = m - e.length;
|
|
809
813
|
return r === 0 && o ? n`
|
|
810
814
|
<tr>
|
|
811
815
|
${this.weekNumbers ? n`
|
|
@@ -820,7 +824,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
820
824
|
></sbb-calendar-weeknumber>
|
|
821
825
|
` : n`
|
|
822
826
|
<span class="sbb-screen-reader-only"
|
|
823
|
-
>${`${
|
|
827
|
+
>${`${f[this._language.current]} ${t[0]}`}</span
|
|
824
828
|
>
|
|
825
829
|
<span aria-hidden="true">${t[0]}</span>
|
|
826
830
|
`}
|
|
@@ -843,7 +847,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
843
847
|
></sbb-calendar-weeknumber>
|
|
844
848
|
` : n`
|
|
845
849
|
<span class="sbb-screen-reader-only"
|
|
846
|
-
>${`${
|
|
850
|
+
>${`${f[this._language.current]} ${t[r]}`}</span
|
|
847
851
|
>
|
|
848
852
|
<span aria-hidden="true">${t[r]}</span>
|
|
849
853
|
`}
|
|
@@ -881,7 +885,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
881
885
|
></sbb-calendar-weeknumber>
|
|
882
886
|
` : n`
|
|
883
887
|
<span class="sbb-screen-reader-only"
|
|
884
|
-
>${`${
|
|
888
|
+
>${`${f[this._language.current]} ${e}`}</span
|
|
885
889
|
>
|
|
886
890
|
<span aria-hidden="true">${e}</span>
|
|
887
891
|
`}
|
|
@@ -944,11 +948,11 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
944
948
|
`;
|
|
945
949
|
}
|
|
946
950
|
_createLabelForMonthView() {
|
|
947
|
-
return n
|
|
951
|
+
return n`<button
|
|
948
952
|
type="button"
|
|
949
953
|
id="sbb-calendar__month-selection"
|
|
950
954
|
class="sbb-calendar__controls-change-date"
|
|
951
|
-
aria-label=${`${
|
|
955
|
+
aria-label=${`${d[this._language.current]} ${this._chosenYear}`}
|
|
952
956
|
@click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
|
|
953
957
|
>
|
|
954
958
|
${this._chosenYear} ${this._wide ? ` - ${this._chosenYear + 1}` : i}
|
|
@@ -964,7 +968,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
964
968
|
>
|
|
965
969
|
${this._wide ? n`<thead class="sbb-calendar__table-header" aria-hidden="true">
|
|
966
970
|
<tr>
|
|
967
|
-
<th class="sbb-calendar__table-header-cell" colspan=${
|
|
971
|
+
<th class="sbb-calendar__table-header-cell" colspan=${h}>${t}</th>
|
|
968
972
|
</tr>
|
|
969
973
|
</thead>` : i}
|
|
970
974
|
<tbody class="sbb-calendar__table-body">
|
|
@@ -992,9 +996,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
992
996
|
_renderYearView() {
|
|
993
997
|
return n`
|
|
994
998
|
<div class="sbb-calendar__controls">
|
|
995
|
-
${this._getArrow("left", () => this._goToDifferentYearRange(-
|
|
999
|
+
${this._getArrow("left", () => this._goToDifferentYearRange(-_), me(_)[this._language.current], this._previousYearRangeDisabled())}
|
|
996
1000
|
<div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
|
|
997
|
-
${this._getArrow("right", () => this._goToDifferentYearRange(
|
|
1001
|
+
${this._getArrow("right", () => this._goToDifferentYearRange(_), de(_)[this._language.current], this._nextYearRangeDisabled())}
|
|
998
1002
|
</div>
|
|
999
1003
|
<div class="sbb-calendar__table-overflow-break">
|
|
1000
1004
|
<div class="sbb-calendar__table-container sbb-calendar__table-year-view">
|
|
@@ -1021,7 +1025,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
1021
1025
|
type="button"
|
|
1022
1026
|
id="sbb-calendar__year-selection"
|
|
1023
1027
|
class="sbb-calendar__controls-change-date"
|
|
1024
|
-
aria-label="${
|
|
1028
|
+
aria-label="${d[this._language.current]} ${r}"
|
|
1025
1029
|
@click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
|
|
1026
1030
|
>
|
|
1027
1031
|
${r}
|
package/calendar.js
CHANGED
|
@@ -3,7 +3,7 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./calendar.component-
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-BhUyyFtR.js";
|
|
7
7
|
import { t as c } from "./calendar-cell-base-element-CUG1qYFb.js";
|
|
8
8
|
import "./calendar.pure.js";
|
|
9
9
|
s.define(), e.define(), t.define(), n.define(), r.define(), i.define();
|
package/calendar.pure.js
CHANGED
|
@@ -3,6 +3,6 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./calendar.component-
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-BhUyyFtR.js";
|
|
7
7
|
import { t as c } from "./calendar-cell-base-element-CUG1qYFb.js";
|
|
8
8
|
export { c as SbbCalendarCellBaseElement, e as SbbCalendarDayElement, s as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbDateSelectedEvent, o as SbbMonthChangeEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../sticky-bar.component-
|
|
1
|
+
import { t as e } from "../../sticky-bar.component-DtXeRUqi.js";
|
|
2
2
|
export { e as SbbStickyBarElement };
|
package/container.js
CHANGED
package/container.pure.js
CHANGED
|
@@ -3,74 +3,53 @@ import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
|
3
3
|
import { isServer as r } from "lit";
|
|
4
4
|
import { property as i } from "lit/decorators.js";
|
|
5
5
|
import { forceType as a } from "../decorators/force-type.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { SbbFormAssociatedMixin as c } from "../mixins/form-associated-mixin.js";
|
|
6
|
+
import { isEventPrevented as o } from "../eventing/is-event-prevented.js";
|
|
7
|
+
import { SbbFormAssociatedMixin as s } from "../mixins/form-associated-mixin.js";
|
|
9
8
|
//#region src/elements/core/base-elements/button-base-element.ts
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
e.key === "
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
shiftKey: i
|
|
51
|
-
}));
|
|
52
|
-
}, this.internals.states.add("button"), !r) {
|
|
53
|
-
this.setupBaseEventHandlers();
|
|
54
|
-
let e = { passive: !0 };
|
|
55
|
-
this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (e) => {
|
|
56
|
-
(e.key === "Enter" || e.key === "\n") && this._dispatchClickEvent(e);
|
|
57
|
-
}, e);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
attributeChangedCallback(e, t, n) {
|
|
61
|
-
(!["name", "value"].includes(e) || t !== n) && super.attributeChangedCallback(e, t, n);
|
|
62
|
-
}
|
|
63
|
-
static {
|
|
64
|
-
n(l, s);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
return l;
|
|
68
|
-
})(), u = (() => {
|
|
69
|
-
let e = l, r = [], o, c = [], u = [], d, f;
|
|
9
|
+
var c = class extends s(e) {
|
|
10
|
+
static {
|
|
11
|
+
this.role = "button";
|
|
12
|
+
}
|
|
13
|
+
constructor() {
|
|
14
|
+
if (super(), this._preventScrollOnSpaceKeydown = (e) => {
|
|
15
|
+
e.key === " " && (e.preventDefault(), this.internals.states.add("active"));
|
|
16
|
+
}, this._removeActiveMarker = () => {
|
|
17
|
+
this.internals.states.delete("active");
|
|
18
|
+
}, this._dispatchClickEventOnSpaceKeyup = (e) => {
|
|
19
|
+
e.key === " " && (this._removeActiveMarker(), this._dispatchClickEvent(e));
|
|
20
|
+
}, this._dispatchClickEvent = (e) => {
|
|
21
|
+
let { altKey: t, ctrlKey: n, metaKey: r, shiftKey: i } = e;
|
|
22
|
+
e.target.dispatchEvent(new PointerEvent("click", {
|
|
23
|
+
bubbles: !0,
|
|
24
|
+
cancelable: !0,
|
|
25
|
+
composed: !0,
|
|
26
|
+
pointerId: -1,
|
|
27
|
+
pointerType: "",
|
|
28
|
+
altKey: t,
|
|
29
|
+
ctrlKey: n,
|
|
30
|
+
metaKey: r,
|
|
31
|
+
shiftKey: i
|
|
32
|
+
}));
|
|
33
|
+
}, this.internals.states.add("button"), !r) {
|
|
34
|
+
this.setupBaseEventHandlers();
|
|
35
|
+
let e = { passive: !0 };
|
|
36
|
+
this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (e) => {
|
|
37
|
+
(e.key === "Enter" || e.key === "\n") && this._dispatchClickEvent(e);
|
|
38
|
+
}, e);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
super.connectedCallback(), this.tabIndex = 0;
|
|
43
|
+
}
|
|
44
|
+
attributeChangedCallback(e, t, n) {
|
|
45
|
+
(!["name", "value"].includes(e) || t !== n) && super.attributeChangedCallback(e, t, n);
|
|
46
|
+
}
|
|
47
|
+
}, l = (() => {
|
|
48
|
+
let e = c, r = [], s, l = [], u = [], d, f;
|
|
70
49
|
return class extends e {
|
|
71
50
|
static {
|
|
72
51
|
let n = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
73
|
-
|
|
52
|
+
s = [a(), i()], d = [i()], f = [i()], t(this, null, s, {
|
|
74
53
|
kind: "accessor",
|
|
75
54
|
name: "value",
|
|
76
55
|
static: !1,
|
|
@@ -83,7 +62,7 @@ var l = (() => {
|
|
|
83
62
|
}
|
|
84
63
|
},
|
|
85
64
|
metadata: n
|
|
86
|
-
},
|
|
65
|
+
}, l, u), t(this, null, d, {
|
|
87
66
|
kind: "setter",
|
|
88
67
|
name: "type",
|
|
89
68
|
static: !1,
|
|
@@ -138,8 +117,8 @@ var l = (() => {
|
|
|
138
117
|
"input",
|
|
139
118
|
"sbb-date-input",
|
|
140
119
|
"sbb-time-input"
|
|
141
|
-
]), this.#e = n(this,
|
|
142
|
-
if (this.type === "button" || await
|
|
120
|
+
]), this.#e = n(this, l, ""), this._formId = (n(this, u), ""), this._handleButtonClick = async (e) => {
|
|
121
|
+
if (this.type === "button" || await o(e)) return;
|
|
143
122
|
let t = this.form;
|
|
144
123
|
if (t) this.type === "submit" ? this._requestSubmit(t) : this.type === "reset" && t.reset();
|
|
145
124
|
else return;
|
|
@@ -164,4 +143,4 @@ var l = (() => {
|
|
|
164
143
|
};
|
|
165
144
|
})();
|
|
166
145
|
//#endregion
|
|
167
|
-
export {
|
|
146
|
+
export { l as SbbButtonBaseElement, c as SbbButtonLikeBaseElement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/elements/core/datetime/date-adapter.ts
|
|
2
|
-
var e = /(0?[1-9]|[12][0-9]|3[01])[.,\\/\-\s](0?[1-9]|1[0-2])[.,\\/\-\s]([0-9]{1,4}$)?/, t = /^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-3][0-9])$/, n = 1, r = 2, i = 3, a = 4, o = 5, s = 6, c = 0, l =
|
|
2
|
+
var e = /(0?[1-9]|[12][0-9]|3[01])[.,\\/\-\s](0?[1-9]|1[0-2])[.,\\/\-\s]([0-9]{1,4}$)?/, t = /^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-3][0-9])$/, n = 1, r = 2, i = 3, a = 4, o = 5, s = 6, c = 0, l = class {
|
|
3
3
|
constructor(e = 15) {
|
|
4
4
|
this._cutoffYearOffset = e;
|
|
5
5
|
}
|
|
@@ -59,4 +59,4 @@ var e = /(0?[1-9]|[12][0-9]|3[01])[.,\\/\-\s](0?[1-9]|1[0-2])[.,\\/\-\s]([0-9]{1
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
//#endregion
|
|
62
|
-
export { l as
|
|
62
|
+
export { l as DateAdapter, e as FORMAT_DATE, o as FRIDAY, t as ISO8601_FORMAT_DATE, n as MONDAY, s as SATURDAY, c as SUNDAY, a as THURSDAY, r as TUESDAY, i as WEDNESDAY };
|
|
@@ -4,20 +4,16 @@ import { SbbRequiredMixin as n } from "./required-mixin.js";
|
|
|
4
4
|
import { __esDecorate as r, __runInitializers as i } from "tslib";
|
|
5
5
|
import { defaultConverter as a } from "lit";
|
|
6
6
|
import { property as o } from "lit/decorators.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { preventScrollOnSpacebarPress as u } from "../eventing/form-element-handlers.js";
|
|
7
|
+
import { SbbLanguageController as s } from "../controllers/language-controller.js";
|
|
8
|
+
import { i18nCheckboxRequired as c } from "../i18n/i18n.js";
|
|
9
|
+
import { preventScrollOnSpacebarPress as l } from "../eventing/form-element-handlers.js";
|
|
11
10
|
//#region src/elements/core/mixins/form-associated-checkbox-mixin.ts
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
|
|
11
|
+
var u = (u) => (() => {
|
|
12
|
+
let d = e(n(t(u))), f = [], p;
|
|
13
|
+
return class extends d {
|
|
15
14
|
static {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
static {
|
|
19
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
20
|
-
v = [o({
|
|
15
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
|
|
16
|
+
p = [o({
|
|
21
17
|
type: Boolean,
|
|
22
18
|
converter: {
|
|
23
19
|
...a,
|
|
@@ -26,7 +22,7 @@ var d = (d) => (() => {
|
|
|
26
22
|
attribute: !0
|
|
27
23
|
})
|
|
28
24
|
}
|
|
29
|
-
})], r(this, null,
|
|
25
|
+
})], r(this, null, p, {
|
|
30
26
|
kind: "setter",
|
|
31
27
|
name: "checked",
|
|
32
28
|
static: !1,
|
|
@@ -38,11 +34,7 @@ var d = (d) => (() => {
|
|
|
38
34
|
}
|
|
39
35
|
},
|
|
40
36
|
metadata: e
|
|
41
|
-
}, null,
|
|
42
|
-
kind: "class",
|
|
43
|
-
name: h.name,
|
|
44
|
-
metadata: e
|
|
45
|
-
}, null, m), y = h = p.value, e && Object.defineProperty(h, Symbol.metadata, {
|
|
37
|
+
}, null, f), e && Object.defineProperty(this, Symbol.metadata, {
|
|
46
38
|
enumerable: !0,
|
|
47
39
|
configurable: !0,
|
|
48
40
|
writable: !0,
|
|
@@ -63,14 +55,17 @@ var d = (d) => (() => {
|
|
|
63
55
|
return "checkbox";
|
|
64
56
|
}
|
|
65
57
|
constructor() {
|
|
66
|
-
super(), this._attributeMutationBlocked = (i(this,
|
|
58
|
+
super(), this._attributeMutationBlocked = (i(this, f), !1), this._languageController = new s(this), this._checked = !1, this._handleKeyboardInteraction = (e) => {
|
|
67
59
|
e.key === " " && this._handleUserInteraction();
|
|
68
60
|
}, this._handleUserInteraction = () => {
|
|
69
61
|
this.disabled || (this.withUserInteraction?.(), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", {
|
|
70
62
|
composed: !0,
|
|
71
63
|
bubbles: !0
|
|
72
64
|
})), this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
73
|
-
}, this.addEventListener?.("click", this._handleUserInteraction), this.addEventListener?.("keydown",
|
|
65
|
+
}, this.addEventListener?.("click", this._handleUserInteraction), this.addEventListener?.("keydown", l), this.addEventListener?.("keyup", this._handleKeyboardInteraction);
|
|
66
|
+
}
|
|
67
|
+
connectedCallback() {
|
|
68
|
+
super.connectedCallback(), this.tabIndex = 0;
|
|
74
69
|
}
|
|
75
70
|
attributeChangedCallback(e, t, n) {
|
|
76
71
|
(e !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(e, t, n);
|
|
@@ -91,13 +86,9 @@ var d = (d) => (() => {
|
|
|
91
86
|
return super.shouldValidate(e) || e === "checked" || e === "required";
|
|
92
87
|
}
|
|
93
88
|
validate() {
|
|
94
|
-
super.validate(), this.required && !this.checked ? this.setValidityFlag("valueMissing",
|
|
95
|
-
}
|
|
96
|
-
static {
|
|
97
|
-
i(h, m);
|
|
89
|
+
super.validate(), this.required && !this.checked ? this.setValidityFlag("valueMissing", c[this._languageController.current]) : this.removeValidityFlag("valueMissing");
|
|
98
90
|
}
|
|
99
91
|
};
|
|
100
|
-
return h;
|
|
101
92
|
})();
|
|
102
93
|
//#endregion
|
|
103
|
-
export {
|
|
94
|
+
export { u as SbbFormAssociatedCheckboxMixin };
|