@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779265349 → 5.0.0-next.3-dev.1779268556
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-jaXVQcA7.js} +11 -9
- 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-DKgkIocz.js} +37 -33
- 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/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 +2 -2
- package/custom-elements.json +68 -22
- 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-JxM7QbC4.js +697 -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.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-CgEXjBeQ.js +1473 -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/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.js +2 -2
- package/development/date-input.component-HxRyCudr.js +1 -1
- package/development/dialog-actions.component-e0ZTTUin.js +1 -1
- package/development/dialog.component-D8B2dVck.js +1 -1
- package/development/error.component-WCkiwM7_.js +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.component-CPWBCHer.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/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/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 +4 -3
- package/development/option.pure.d.ts +1 -0
- package/development/option.pure.d.ts.map +1 -1
- package/development/option.pure.js +3 -2
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +3 -3
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-YSCuGeme.js → overlay.component-BH-aue7w.js} +1 -1
- 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.js +1 -1
- package/development/slider.component-BLptxiZ4.js +346 -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-DpSJEkrK.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/stepper/stepper.component.js +1 -1
- package/development/stepper.component-Bv6LCFU0.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/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/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/inline-link-common-O650N_pm.js +13 -0
- package/lean-off-brand-theme.css +415 -503
- package/lean-safety-theme.css +415 -503
- package/lean-theme.css +415 -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 +415 -503
- 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 +5 -4
- package/option.pure.js +4 -3
- package/overlay/overlay-base-element.js +21 -21
- package/overlay/overlay.component.js +1 -1
- 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 +415 -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.js +1 -1
- package/slider.pure.js +1 -1
- package/standard-theme.css +415 -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/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/file-selector-common-mZ5UYxOF.js +0 -421
- package/development/flip-card.component-DujrPKzU.js +0 -185
- 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/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/{overlay.component-myJflfLY.js → overlay.component-D7Z_vx1A.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/{slider.component-BlUWAWJU.js → slider.component-C8LKcM11.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,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../option.component-
|
|
1
|
+
import { t as e } from "../../option.component-DiH8AMlV.js";
|
|
2
2
|
export { e as SbbOptionElement };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { unsafeCSS as e } from "lit";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/elements/option/option-styles.ts
|
|
4
|
+
var t = e(":host{--sbb-options-panel-position-x: 0;--sbb-options-panel-position-y: 0;--sbb-options-pointer-events: all;--_sbb-options-panel-max-height: min( var(--sbb-options-panel-max-height-calculated), var(--sbb-options-panel-max-height, 100000em) );--sbb-options-panel-min-height: var(--sbb-options-panel-origin-height);--sbb-options-panel-options-border-radius: 0 0 var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius);--sbb-options-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--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) );--sbb-options-panel-internal-z-index: var( --sbb-select-z-index, var(--sbb-overlay-default-z-index) );font-weight:400}:host([negative]){--sbb-options-panel-box-shadow: var(--sbb-box-shadow-level-9-hard-negative);--sbb-options-panel-background-color: var(--sbb-background-color-2-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host(:not(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))),:host(:is(:state(state-closed),[state--state-closed])){--sbb-options-panel-visibility: hidden;--sbb-options-pointer-events: none}:host(:is(:state(state-opening),[state--state-opening])){--sbb-options-panel-animation-name: open}:host(:is(:state(state-closing),[state--state-closing])){--sbb-options-panel-animation-name: close}:host(:is(:state(options-panel-position-below),[state--options-panel-position-below])){--sbb-options-panel-animation-translate: var(--sbb-spacing-fixed-2x)}:host(:is(:state(options-panel-position-above),[state--options-panel-position-above])){--sbb-options-panel-options-border-radius: var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius) 0 0;--sbb-options-panel-animation-translate: calc(-1 * var(--sbb-spacing-fixed-2x));--sbb-options-panel-margin-block-start: calc(-1 * var(--sbb-spacing-fixed-2x))}:host([preserve-icon-space]){--sbb-option-icon-container-display: block}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}.sbb-option-panel__overlay-container{position:fixed;pointer-events:none;inset:0;z-index:var(--sbb-options-panel-internal-z-index)}.sbb-option-panel__overlay-container:after{content:\"\";display:block;position:absolute;top:var(--sbb-options-panel-origin-position-y);left:var(--sbb-options-panel-origin-position-x);width:var(--sbb-options-panel-width);height:var(--sbb-options-panel-origin-height);background-color:transparent;border-radius:var(--sbb-options-panel-border-radius);transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}:host(:is(:is(:state(state-opened),[state--state-opened]),:is(:state(state-opening),[state--state-opening])):is(:state(option-panel-origin-borderless),[state--option-panel-origin-borderless])) .sbb-option-panel__overlay-container:after{box-shadow:var(--sbb-options-panel-box-shadow)}.sbb-option-panel__overlay{display:block;position:absolute;visibility:var(--sbb-options-panel-visibility, visible);border:none;border-radius:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-position-y);left:var(--sbb-options-panel-position-x);width:var(--sbb-options-panel-width, fit-content);transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function);box-shadow:var(--sbb-options-panel-box-shadow);background-color:var(--sbb-options-panel-background-color);margin-block-start:var(--sbb-options-panel-margin-block-start);padding-block:var(--sbb-options-panel-padding-block);padding-inline:0;max-height:var(--_sbb-options-panel-max-height);min-height:var(--sbb-options-panel-min-height);pointer-events:var(--sbb-options-pointer-events);overflow:hidden auto;animation-name:var(--sbb-options-panel-animation-name);animation-duration:var(--sbb-options-panel-animation-duration);animation-timing-function:var(--sbb-options-panel-animation-timing-function)}@media(forced-colors:active){.sbb-option-panel__overlay{border:var(--sbb-border-width-1x) solid CanvasText}}@keyframes open{0%{translate:0 var(--sbb-options-panel-animation-translate);opacity:0}to{translate:0;opacity:1}}@keyframes close{0%{translate:0;opacity:1}to{translate:0 var(--sbb-options-panel-animation-translate);opacity:0}}");
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t };
|
package/option.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./optgroup-base-element-Cxe8SIQh.js";
|
|
2
2
|
import { SbbOptGroupElement as t } from "./option/optgroup/optgroup.component.js";
|
|
3
3
|
import { t as n } from "./option-hint.component-NSxCKXEy.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { t as r } from "./option-styles-DcD5grSB.js";
|
|
5
|
+
import { SbbOptionBaseElement as i } from "./option/option/option-base-element.js";
|
|
6
|
+
import { t as a } from "./option.component-DiH8AMlV.js";
|
|
6
7
|
import "./option.pure.js";
|
|
7
|
-
t.define(),
|
|
8
|
+
t.define(), a.define(), n.define();
|
|
8
9
|
//#endregion
|
|
9
|
-
export { t as SbbOptGroupElement, e as SbbOptgroupBaseElement,
|
|
10
|
+
export { t as SbbOptGroupElement, e as SbbOptgroupBaseElement, i as SbbOptionBaseElement, a as SbbOptionElement, n as SbbOptionHintElement, r as optionPanelStyles };
|
package/option.pure.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./optgroup-base-element-Cxe8SIQh.js";
|
|
2
2
|
import { SbbOptGroupElement as t } from "./option/optgroup/optgroup.component.js";
|
|
3
3
|
import { t as n } from "./option-hint.component-NSxCKXEy.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { t as r } from "./option-styles-DcD5grSB.js";
|
|
5
|
+
import { SbbOptionBaseElement as i } from "./option/option/option-base-element.js";
|
|
6
|
+
import { t as a } from "./option.component-DiH8AMlV.js";
|
|
7
|
+
export { t as SbbOptGroupElement, e as SbbOptgroupBaseElement, i as SbbOptionBaseElement, a as SbbOptionElement, n as SbbOptionHintElement, r as optionPanelStyles };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
2
|
import { isServer as n } from "lit";
|
|
3
3
|
import { property as r } from "lit/decorators.js";
|
|
4
|
-
import { SbbEscapableOverlayController as i, SbbFocusTrapController as a, SbbInertController as o, SbbLanguageController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbScrollHandler as u, forceType as d, i18nDialog as f, idReference as p,
|
|
4
|
+
import { SbbEscapableOverlayController as i, SbbFocusTrapController as a, SbbInertController as o, SbbLanguageController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbScrollHandler as u, forceType as d, i18nDialog as f, idReference as p, popoverResetStyles as m, removeAriaOverlayTriggerProperties as h, screenReaderOnlyStyles as g, setAriaOverlayTriggerProperties as _ } from "../core.js";
|
|
5
5
|
//#region src/elements/overlay/overlay-base-element.ts
|
|
6
|
-
var
|
|
6
|
+
var v = /* @__PURE__ */ new WeakMap(), y = class extends Event {
|
|
7
7
|
constructor(e, { cancelable: t, closeAttribute: n, closeTarget: r, result: i }) {
|
|
8
|
-
super(e, { cancelable: t }), this.result = i ?? (r ?
|
|
8
|
+
super(e, { cancelable: t }), this.result = i ?? (r ? v.get(r) ?? (r.getAttribute(n)?.trim() || null) : null), this.closeTarget = r ?? null;
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
|
|
11
|
+
function b(e, t) {
|
|
12
|
+
v.set(e, t);
|
|
13
13
|
}
|
|
14
|
-
var
|
|
15
|
-
let
|
|
16
|
-
return class extends
|
|
14
|
+
var x = [], S = (() => {
|
|
15
|
+
let v = c(l), y, b = [], S = [], C, w = [], T = [], E, D = [], O = [];
|
|
16
|
+
return class extends v {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this.#e = t(this,
|
|
18
|
+
super(...arguments), this.#e = t(this, b, null), this.#t = (t(this, S), t(this, w, "")), this.#n = (t(this, T), t(this, D, !1)), this.lastFocusedElement = t(this, O), this.focusTrapController = new a(this), this.scrollHandler = new u(), this.language = new s(this), this.inertController = new o(this), this.escapableOverlayController = new i(this), this._ariaLiveRefToggle = !1, this._triggerElement = null;
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
22
|
-
|
|
21
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
22
|
+
y = [p(), r()], C = [d(), r({ attribute: "accessibility-label" })], E = [d(), r({ type: Boolean })], e(this, null, y, {
|
|
23
23
|
kind: "accessor",
|
|
24
24
|
name: "trigger",
|
|
25
25
|
static: !1,
|
|
@@ -32,7 +32,7 @@ var b = [], x = (() => {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
metadata: t
|
|
35
|
-
},
|
|
35
|
+
}, b, S), e(this, null, C, {
|
|
36
36
|
kind: "accessor",
|
|
37
37
|
name: "accessibilityLabel",
|
|
38
38
|
static: !1,
|
|
@@ -45,7 +45,7 @@ var b = [], x = (() => {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
metadata: t
|
|
48
|
-
},
|
|
48
|
+
}, w, T), e(this, null, E, {
|
|
49
49
|
kind: "accessor",
|
|
50
50
|
name: "skipFocusRestoration",
|
|
51
51
|
static: !1,
|
|
@@ -58,7 +58,7 @@ var b = [], x = (() => {
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
metadata: t
|
|
61
|
-
},
|
|
61
|
+
}, D, O), t && Object.defineProperty(this, Symbol.metadata, {
|
|
62
62
|
enumerable: !0,
|
|
63
63
|
configurable: !0,
|
|
64
64
|
writable: !0,
|
|
@@ -66,7 +66,7 @@ var b = [], x = (() => {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
static {
|
|
69
|
-
this.styles = [
|
|
69
|
+
this.styles = [m, g];
|
|
70
70
|
}
|
|
71
71
|
#e;
|
|
72
72
|
get trigger() {
|
|
@@ -90,7 +90,7 @@ var b = [], x = (() => {
|
|
|
90
90
|
this.#n = e;
|
|
91
91
|
}
|
|
92
92
|
open() {
|
|
93
|
-
this.state === "opening" || this.state === "opened" || this._hasClosedParent() || !this.dispatchBeforeOpenEvent() || (this.lastFocusedElement = document.activeElement, this.showPopover?.(), this.state = "opening", this._triggerElement && (this._triggerElement.ariaExpanded = "true"),
|
|
93
|
+
this.state === "opening" || this.state === "opened" || this._hasClosedParent() || !this.dispatchBeforeOpenEvent() || (this.lastFocusedElement = document.activeElement, this.showPopover?.(), this.state = "opening", this._triggerElement && (this._triggerElement.ariaExpanded = "true"), x.push(this), this.scrollHandler.disableScroll(), this.escapableOverlayController.connect(), this.attachOpenOverlayEvents(), this.isZeroAnimationDuration() && this.handleOpening());
|
|
94
94
|
}
|
|
95
95
|
close(e, t) {
|
|
96
96
|
this._close(e, t);
|
|
@@ -106,7 +106,7 @@ var b = [], x = (() => {
|
|
|
106
106
|
this.popover = "manual", super.connectedCallback(), this.hasUpdated && this._configureTrigger();
|
|
107
107
|
}
|
|
108
108
|
_configureTrigger() {
|
|
109
|
-
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(),
|
|
109
|
+
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), h(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && (_(this, this._triggerElement, "dialog", this.state), this._triggerAbortController = new AbortController(), this._triggerElement.addEventListener("click", () => this.open(), { signal: this._triggerAbortController.signal })));
|
|
110
110
|
}
|
|
111
111
|
firstUpdated(e) {
|
|
112
112
|
super.firstUpdated(e), this._ariaLiveRef = this.shadowRoot.querySelector(".sbb-screen-reader-only"), this._configureTrigger(), this.isOpen && setTimeout(() => {
|
|
@@ -125,12 +125,12 @@ var b = [], x = (() => {
|
|
|
125
125
|
}, { signal: this.openOverlayController.signal }), window.addEventListener("click", () => this.removeAriaLiveRefContent(), { signal: this.openOverlayController.signal });
|
|
126
126
|
}
|
|
127
127
|
removeInstanceFromGlobalCollection() {
|
|
128
|
-
let e =
|
|
129
|
-
e > -1 &&
|
|
128
|
+
let e = x.indexOf(this);
|
|
129
|
+
e > -1 && x.splice(e, 1);
|
|
130
130
|
}
|
|
131
131
|
closeOnSbbOverlayCloseClick(e) {
|
|
132
132
|
let t = e.composedPath().filter((e) => e instanceof window.HTMLElement).find((e) => (e.hasAttribute(this.closeAttribute) || e.localName === this.closeTag) && !e.hasAttribute("disabled"));
|
|
133
|
-
!t || t.closest(this.localName) !== this && !this.shadowRoot?.contains(t) ||
|
|
133
|
+
!t || t.closest(this.localName) !== this && !this.shadowRoot?.contains(t) || x.length && x[x.length - 1]._close(null, t);
|
|
134
134
|
}
|
|
135
135
|
removeAriaLiveRefContent() {
|
|
136
136
|
this._ariaLiveRef && (this._ariaLiveRef.textContent = "");
|
|
@@ -144,4 +144,4 @@ var b = [], x = (() => {
|
|
|
144
144
|
};
|
|
145
145
|
})();
|
|
146
146
|
//#endregion
|
|
147
|
-
export {
|
|
147
|
+
export { S as SbbOverlayBaseElement, y as SbbOverlayCloseEvent, b as assignOverlayResult, x as overlayRefs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../overlay.component-
|
|
1
|
+
import { t as e } from "../overlay.component-D7Z_vx1A.js";
|
|
2
2
|
export { e as SbbOverlayElement };
|
package/overlay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbOverlayBaseElement as e, SbbOverlayCloseEvent as t, assignOverlayResult as n, overlayRefs as r } from "./overlay/overlay-base-element.js";
|
|
2
|
-
import { t as i } from "./overlay.component-
|
|
2
|
+
import { t as i } from "./overlay.component-D7Z_vx1A.js";
|
|
3
3
|
import "./overlay.pure.js";
|
|
4
4
|
//#region src/elements/overlay.ts
|
|
5
5
|
i.define();
|
package/overlay.pure.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SbbOverlayBaseElement as e, SbbOverlayCloseEvent as t, assignOverlayResult as n, overlayRefs as r } from "./overlay/overlay-base-element.js";
|
|
2
|
-
import { t as i } from "./overlay.component-
|
|
2
|
+
import { t as i } from "./overlay.component-D7Z_vx1A.js";
|
|
3
3
|
export { e as SbbOverlayBaseElement, t as SbbOverlayCloseEvent, i as SbbOverlayElement, n as assignOverlayResult, r as overlayRefs };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-dev",
|
|
3
|
-
"version": "5.0.0-next.3-dev.
|
|
3
|
+
"version": "5.0.0-next.3-dev.1779268556",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
9
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/78a118bb9f2630131a500b4573dd816c52b129ee"
|
|
10
10
|
],
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
@@ -19,34 +19,14 @@
|
|
|
19
19
|
"sass": "./_index.scss",
|
|
20
20
|
"default": "./_index.scss"
|
|
21
21
|
},
|
|
22
|
-
"./
|
|
23
|
-
"style": "./
|
|
24
|
-
"default": "./
|
|
25
|
-
},
|
|
26
|
-
"./animation.css": {
|
|
27
|
-
"style": "./animation.css",
|
|
28
|
-
"default": "./animation.css"
|
|
29
|
-
},
|
|
30
|
-
"./badge.css": {
|
|
31
|
-
"style": "./badge.css",
|
|
32
|
-
"default": "./badge.css"
|
|
33
|
-
},
|
|
34
|
-
"./core.css": {
|
|
35
|
-
"style": "./core.css",
|
|
36
|
-
"default": "./core.css"
|
|
37
|
-
},
|
|
38
|
-
"./disable-animation.css": {
|
|
39
|
-
"style": "./disable-animation.css",
|
|
40
|
-
"default": "./disable-animation.css"
|
|
22
|
+
"./disable-animation-extension.css": {
|
|
23
|
+
"style": "./disable-animation-extension.css",
|
|
24
|
+
"default": "./disable-animation-extension.css"
|
|
41
25
|
},
|
|
42
26
|
"./font-characters-extension.css": {
|
|
43
27
|
"style": "./font-characters-extension.css",
|
|
44
28
|
"default": "./font-characters-extension.css"
|
|
45
29
|
},
|
|
46
|
-
"./layout.css": {
|
|
47
|
-
"style": "./layout.css",
|
|
48
|
-
"default": "./layout.css"
|
|
49
|
-
},
|
|
50
30
|
"./lean-off-brand-theme.css": {
|
|
51
31
|
"style": "./lean-off-brand-theme.css",
|
|
52
32
|
"default": "./lean-off-brand-theme.css"
|
|
@@ -59,14 +39,6 @@
|
|
|
59
39
|
"style": "./lean-theme.css",
|
|
60
40
|
"default": "./lean-theme.css"
|
|
61
41
|
},
|
|
62
|
-
"./lists.css": {
|
|
63
|
-
"style": "./lists.css",
|
|
64
|
-
"default": "./lists.css"
|
|
65
|
-
},
|
|
66
|
-
"./normalize.css": {
|
|
67
|
-
"style": "./normalize.css",
|
|
68
|
-
"default": "./normalize.css"
|
|
69
|
-
},
|
|
70
42
|
"./off-brand-theme.css": {
|
|
71
43
|
"style": "./off-brand-theme.css",
|
|
72
44
|
"default": "./off-brand-theme.css"
|
|
@@ -75,26 +47,10 @@
|
|
|
75
47
|
"style": "./safety-theme.css",
|
|
76
48
|
"default": "./safety-theme.css"
|
|
77
49
|
},
|
|
78
|
-
"./scrollbar.css": {
|
|
79
|
-
"style": "./scrollbar.css",
|
|
80
|
-
"default": "./scrollbar.css"
|
|
81
|
-
},
|
|
82
50
|
"./standard-theme.css": {
|
|
83
51
|
"style": "./standard-theme.css",
|
|
84
52
|
"default": "./standard-theme.css"
|
|
85
53
|
},
|
|
86
|
-
"./table.css": {
|
|
87
|
-
"style": "./table.css",
|
|
88
|
-
"default": "./table.css"
|
|
89
|
-
},
|
|
90
|
-
"./timetable-form.css": {
|
|
91
|
-
"style": "./timetable-form.css",
|
|
92
|
-
"default": "./timetable-form.css"
|
|
93
|
-
},
|
|
94
|
-
"./typography.css": {
|
|
95
|
-
"style": "./typography.css",
|
|
96
|
-
"default": "./typography.css"
|
|
97
|
-
},
|
|
98
54
|
"./package.json": {
|
|
99
55
|
"default": "./package.json"
|
|
100
56
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../paginator-common-
|
|
1
|
+
import { n as e, t } from "../../paginator-common-C0Kn9ibe.js";
|
|
2
2
|
export { t as SbbPaginatorCommonElementMixin, e as SbbPaginatorPageEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../compact-paginator.component-
|
|
1
|
+
import { t as e } from "../../compact-paginator.component-B-8gf_qD.js";
|
|
2
2
|
export { e as SbbCompactPaginatorElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../paginator.component-
|
|
1
|
+
import { t as e } from "../../paginator.component-Dk1xDHgW.js";
|
|
2
2
|
export { e as SbbPaginatorElement };
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { property as a } from "lit/decorators.js";
|
|
4
|
+
import { SbbElement as o, buttonResetStyles as s, forceType as c, i18nItemsPerPage as l, i18nPage as u, listResetStyles as d, sbbInputModalityDetector as f } from "./core.js";
|
|
5
|
+
import { SbbOptionElement as p } from "./option.pure.js";
|
|
6
|
+
import { SbbPaginatorCommonElementMixin as m } from "./paginator/common/paginator-common.js";
|
|
7
|
+
import { repeat as h } from "lit/directives/repeat.js";
|
|
8
|
+
import { SbbFormFieldElement as g } from "./form-field.pure.js";
|
|
9
|
+
import { SbbSelectElement as _ } from "./select.pure.js";
|
|
10
|
+
//#region src/elements/paginator/paginator/paginator.scss?inline
|
|
11
|
+
var v = ":host{--sbb-paginator-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );display:block;line-height:var(--sbb-typo-line-height-text)}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([pager-position=end]){--sbb-paginator-justify-content: end;--sbb-paginator-wrapping-group-wrap: wrap;--sbb-paginator-wrap: wrap-reverse}.sbb-paginator,.sbb-paginator__wrapping-group{display:flex;gap:var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);justify-content:var(--sbb-paginator-justify-content, start)}.sbb-paginator{flex-wrap:var(--sbb-paginator-wrap, wrap);min-height:var(--sbb-paginator-height)}.sbb-paginator__wrapping-group{flex-wrap:var(--sbb-paginator-wrapping-group-wrap, wrap-reverse)}.sbb-paginator__page-size-options{display:flex;align-items:center;gap:var(--sbb-spacing-fixed-2x);white-space:nowrap;color:var(--sbb-paginator-color);font-size:var(--sbb-paginator-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text)}.sbb-paginator__page-size-options sbb-select{color:var(--sbb-form-field-text-color);font-size:var(--sbb-form-field-input-text-size);letter-spacing:var(--sbb-typo-letter-spacing-text);padding-inline-end:var(--sbb-form-field-select-inline-padding-end)}.sbb-paginator__pages{display:flex;align-items:center;justify-content:center;gap:var(--sbb-spacing-fixed-1x);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sbb-paginator__page--ellipsis,.sbb-paginator__page--number{position:relative;font-size:var(--sbb-paginator-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);color:var(--sbb-paginator-color)}.sbb-paginator__page--ellipsis-item,.sbb-paginator__page--number-item{display:flex;justify-content:center;align-items:center;width:var(--sbb-size-element-xxs);height:var(--sbb-size-element-xxs)}.sbb-paginator__page--number-item{font-family:var(--sbb-typo-font-family);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-paginator-font-size);line-height:var(--sbb-typo-line-height-text);font-weight:400;position:relative;cursor:var(--sbb-paginator-page-cursor);outline:none!important;color:var(--sbb-paginator-color);transition:color var(--sbb-paginator-animation-duration) var(--sbb-paginator-animation-easing)}.sbb-paginator__page--number-item:before{content:\"\";position:absolute;background-color:var(--sbb-paginator-page-background-color, transparent);border:var(--sbb-paginator-page-border-width) var(--sbb-paginator-page-border-style, none) var(--sbb-paginator-page-border-color, none);border-radius:var(--sbb-border-radius-infinity);inset:var(--sbb-paginator-page-inset, 0);transition-property:background-color,border,inset;transition-duration:var(--sbb-paginator-animation-duration);transition-timing-function:var(--sbb-paginator-animation-easing)}.sbb-paginator__page--number-item:focus-visible:before{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-border-width-2x)}.sbb-paginator__page--number-item[data-selected]{font-weight:700;--sbb-paginator-color: var(--sbb-color-3);--sbb-paginator-page-border-width: var(--sbb-border-width-2x);--sbb-paginator-page-border-style: solid;--sbb-paginator-page-border-color: var(--sbb-border-color-2)}:host([negative]) .sbb-paginator__page--number-item[data-selected]{--sbb-paginator-color: var(--sbb-color-3-negative);--sbb-paginator-page-border-color: var(--sbb-border-color-2-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item[data-selected]{--sbb-paginator-page-border-color: Highlight !important}}.sbb-paginator__page--number-item:disabled{--sbb-paginator-color: var(--sbb-color-5);--sbb-paginator-page-border-style: dashed;--sbb-paginator-page-border-color: var(--sbb-border-color-5);--sbb-paginator-page-background-color: var(--sbb-background-color-3);--sbb-paginator-page-cursor: var(--sbb-cursor-default)}.sbb-paginator__page--number-item:disabled:not([data-selected]){--sbb-paginator-page-border-width: var(--sbb-border-width-1x)}:host([negative]) .sbb-paginator__page--number-item:disabled{--sbb-paginator-color: var(--sbb-color-5);--sbb-paginator-page-background-color: var(--sbb-background-color-3-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item:disabled{--sbb-paginator-page-border-color: GrayText;--sbb-paginator-color: GrayText;--sbb-paginator-page-background-color: Canvas}}@media(any-hover:hover){.sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: var(--sbb-background-color-3);--sbb-paginator-page-inset: calc(var(--sbb-border-width-2x) * -1);--sbb-paginator-translate-y-content-hover: -.0625rem}:host([negative]) .sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: var(--sbb-background-color-3-negative)}}@media(any-hover:hover)and (forced-colors:active){.sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: Highlight !important}}.sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-color: var(--sbb-color-3);--sbb-paginator-page-background-color: var(--sbb-background-color-4);--sbb-paginator-page-inset: 0;--sbb-paginator-translate-y-content-hover: 0}:host([negative]) .sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-color: var(--sbb-color-3-negative);--sbb-paginator-page-background-color: var(--sbb-background-color-4-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-page-background-color: Highlight !important}}.sbb-paginator__page--number-item-label{transition:transform var(--sbb-paginator-animation-duration) var(--sbb-paginator-animation-easing);transform:translateY(var(--sbb-paginator-translate-y-content-hover, 0))}", y = 3, b = (() => {
|
|
12
|
+
let b = m(o), x, S = [], C = [], w, T = [], E = [], D, O = [], k = [];
|
|
13
|
+
return class extends b {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.#e = t(this, S, []), this.#t = (t(this, C), t(this, T, "start")), this.#n = (t(this, E), t(this, O, "")), this._markForFocus = (t(this, k), !1);
|
|
16
|
+
}
|
|
17
|
+
static {
|
|
18
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
19
|
+
x = [a({
|
|
20
|
+
attribute: "page-size-options",
|
|
21
|
+
type: Array
|
|
22
|
+
})], w = [a({
|
|
23
|
+
attribute: "pager-position",
|
|
24
|
+
reflect: !0
|
|
25
|
+
})], D = [c(), a({ attribute: "accessibility-items-per-page-label" })], e(this, null, x, {
|
|
26
|
+
kind: "accessor",
|
|
27
|
+
name: "pageSizeOptions",
|
|
28
|
+
static: !1,
|
|
29
|
+
private: !1,
|
|
30
|
+
access: {
|
|
31
|
+
has: (e) => "pageSizeOptions" in e,
|
|
32
|
+
get: (e) => e.pageSizeOptions,
|
|
33
|
+
set: (e, t) => {
|
|
34
|
+
e.pageSizeOptions = t;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
metadata: t
|
|
38
|
+
}, S, C), e(this, null, w, {
|
|
39
|
+
kind: "accessor",
|
|
40
|
+
name: "pagerPosition",
|
|
41
|
+
static: !1,
|
|
42
|
+
private: !1,
|
|
43
|
+
access: {
|
|
44
|
+
has: (e) => "pagerPosition" in e,
|
|
45
|
+
get: (e) => e.pagerPosition,
|
|
46
|
+
set: (e, t) => {
|
|
47
|
+
e.pagerPosition = t;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
metadata: t
|
|
51
|
+
}, T, E), e(this, null, D, {
|
|
52
|
+
kind: "accessor",
|
|
53
|
+
name: "accessibilityItemsPerPageLabel",
|
|
54
|
+
static: !1,
|
|
55
|
+
private: !1,
|
|
56
|
+
access: {
|
|
57
|
+
has: (e) => "accessibilityItemsPerPageLabel" in e,
|
|
58
|
+
get: (e) => e.accessibilityItemsPerPageLabel,
|
|
59
|
+
set: (e, t) => {
|
|
60
|
+
e.accessibilityItemsPerPageLabel = t;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
metadata: t
|
|
64
|
+
}, O, k), t && Object.defineProperty(this, Symbol.metadata, {
|
|
65
|
+
enumerable: !0,
|
|
66
|
+
configurable: !0,
|
|
67
|
+
writable: !0,
|
|
68
|
+
value: t
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
static {
|
|
72
|
+
this.elementName = "sbb-paginator";
|
|
73
|
+
}
|
|
74
|
+
static {
|
|
75
|
+
this.elementDependencies = [
|
|
76
|
+
g,
|
|
77
|
+
_,
|
|
78
|
+
p
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
static {
|
|
82
|
+
this.styles = [
|
|
83
|
+
d,
|
|
84
|
+
s,
|
|
85
|
+
i(v)
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
static {
|
|
89
|
+
this.events = { page: "page" };
|
|
90
|
+
}
|
|
91
|
+
#e;
|
|
92
|
+
get pageSizeOptions() {
|
|
93
|
+
return this.#e;
|
|
94
|
+
}
|
|
95
|
+
set pageSizeOptions(e) {
|
|
96
|
+
this.#e = e;
|
|
97
|
+
}
|
|
98
|
+
#t;
|
|
99
|
+
get pagerPosition() {
|
|
100
|
+
return this.#t;
|
|
101
|
+
}
|
|
102
|
+
set pagerPosition(e) {
|
|
103
|
+
this.#t = e;
|
|
104
|
+
}
|
|
105
|
+
#n;
|
|
106
|
+
get accessibilityItemsPerPageLabel() {
|
|
107
|
+
return this.#n;
|
|
108
|
+
}
|
|
109
|
+
set accessibilityItemsPerPageLabel(e) {
|
|
110
|
+
this.#n = e;
|
|
111
|
+
}
|
|
112
|
+
updated(e) {
|
|
113
|
+
if (super.updated(e), this._markForFocus) {
|
|
114
|
+
let e = this._getVisiblePages().find((e) => this.pageIndex === +e.getAttribute("data-index"));
|
|
115
|
+
e && e.focus(), this._markForFocus = !1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
_getVisiblePages() {
|
|
119
|
+
return Array.from(this.shadowRoot.querySelectorAll(".sbb-paginator__page--number-item"));
|
|
120
|
+
}
|
|
121
|
+
_getVisiblePagesIndex() {
|
|
122
|
+
let e = this.numberOfPages(), t = this.pageIndex;
|
|
123
|
+
return e <= y + 2 ? this._range(e) : t < y ? [
|
|
124
|
+
...this._range(y + 1),
|
|
125
|
+
"ellipsis",
|
|
126
|
+
e - 1
|
|
127
|
+
] : t >= e - y ? [
|
|
128
|
+
0,
|
|
129
|
+
"ellipsis",
|
|
130
|
+
...this._range(y + 1, e - 1 - y)
|
|
131
|
+
] : [
|
|
132
|
+
0,
|
|
133
|
+
"ellipsis",
|
|
134
|
+
t - 1,
|
|
135
|
+
t,
|
|
136
|
+
t + 1,
|
|
137
|
+
"ellipsis",
|
|
138
|
+
e - 1
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
_range(e, t = 0) {
|
|
142
|
+
return Array.from({ length: e }, (e, n) => n + t);
|
|
143
|
+
}
|
|
144
|
+
_onPageNumberClick(e) {
|
|
145
|
+
this.selectPage(e), this._markForFocus = f.mostRecentModality === "keyboard";
|
|
146
|
+
}
|
|
147
|
+
_renderItemPerPageTemplate() {
|
|
148
|
+
return this.pageSizeOptions && this.pageSizeOptions.length > 0 ? n`
|
|
149
|
+
<div class="sbb-paginator__page-size-options">
|
|
150
|
+
<label for="select"
|
|
151
|
+
>${this.accessibilityItemsPerPageLabel ? this.accessibilityItemsPerPageLabel : l[this.language.current]}</label
|
|
152
|
+
>
|
|
153
|
+
<sbb-form-field
|
|
154
|
+
borderless
|
|
155
|
+
width="collapse"
|
|
156
|
+
?negative=${this.negative}
|
|
157
|
+
size=${this.size || r}
|
|
158
|
+
>
|
|
159
|
+
<sbb-select
|
|
160
|
+
id="select"
|
|
161
|
+
?disabled=${this.disabled}
|
|
162
|
+
value=${this.pageSizeOptions?.find((e) => e === this.pageSize) ?? this.pageSizeOptions[0]}
|
|
163
|
+
@change=${(e) => this.pageSize = +e.target.value}
|
|
164
|
+
>
|
|
165
|
+
${h(this.pageSizeOptions, (e) => n`<sbb-option value=${e}>${e}</sbb-option>`)}
|
|
166
|
+
</sbb-select>
|
|
167
|
+
</sbb-form-field>
|
|
168
|
+
</div>
|
|
169
|
+
` : r;
|
|
170
|
+
}
|
|
171
|
+
_renderPageNumbers() {
|
|
172
|
+
return n`
|
|
173
|
+
<ul class="sbb-paginator__pages">
|
|
174
|
+
${h(this._getVisiblePagesIndex(), (e) => e === "ellipsis" ? n`
|
|
175
|
+
<li class="sbb-paginator__page--ellipsis">
|
|
176
|
+
<span class="sbb-paginator__page--ellipsis-item">…</span>
|
|
177
|
+
</li>
|
|
178
|
+
` : n`
|
|
179
|
+
<li class="sbb-paginator__page--number">
|
|
180
|
+
<button
|
|
181
|
+
?data-selected=${this.pageIndex === e}
|
|
182
|
+
?disabled=${this.disabled}
|
|
183
|
+
class="sbb-paginator__page--number-item"
|
|
184
|
+
data-index=${e}
|
|
185
|
+
aria-label="${this.accessibilityPageLabel ? this.accessibilityPageLabel : u[this.language.current]} ${e + 1}"
|
|
186
|
+
aria-current=${this.pageIndex === e ? "true" : r}
|
|
187
|
+
@click=${() => this._onPageNumberClick(e)}
|
|
188
|
+
>
|
|
189
|
+
<span class="sbb-paginator__page--number-item-label">${e + 1}</span>
|
|
190
|
+
</button>
|
|
191
|
+
</li>
|
|
192
|
+
`)}
|
|
193
|
+
</ul>
|
|
194
|
+
`;
|
|
195
|
+
}
|
|
196
|
+
renderPaginator() {
|
|
197
|
+
return n`
|
|
198
|
+
<div class="sbb-paginator">
|
|
199
|
+
${this.pagerPosition === "start" ? n`<span class="sbb-paginator__wrapping-group">
|
|
200
|
+
${this.renderPrevNextButtons()} ${this._renderPageNumbers()}
|
|
201
|
+
</span>
|
|
202
|
+
${this._renderItemPerPageTemplate()}` : n`${this._renderItemPerPageTemplate()}
|
|
203
|
+
<span class="sbb-paginator__wrapping-group">
|
|
204
|
+
${this._renderPageNumbers()} ${this.renderPrevNextButtons()}
|
|
205
|
+
</span>`}</span>
|
|
206
|
+
</div>
|
|
207
|
+
`;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
})();
|
|
211
|
+
//#endregion
|
|
212
|
+
export { b as t };
|
package/paginator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./paginator-common-
|
|
2
|
-
import { t as n } from "./compact-paginator.component-
|
|
3
|
-
import { t as r } from "./paginator.component-
|
|
1
|
+
import { n as e, t } from "./paginator-common-C0Kn9ibe.js";
|
|
2
|
+
import { t as n } from "./compact-paginator.component-B-8gf_qD.js";
|
|
3
|
+
import { t as r } from "./paginator.component-Dk1xDHgW.js";
|
|
4
4
|
import "./paginator.pure.js";
|
|
5
5
|
n.define(), r.define();
|
|
6
6
|
//#endregion
|
package/paginator.pure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./paginator-common-
|
|
2
|
-
import { t as n } from "./compact-paginator.component-
|
|
3
|
-
import { t as r } from "./paginator.component-
|
|
1
|
+
import { n as e, t } from "./paginator-common-C0Kn9ibe.js";
|
|
2
|
+
import { t as n } from "./compact-paginator.component-B-8gf_qD.js";
|
|
3
|
+
import { t as r } from "./paginator.component-Dk1xDHgW.js";
|
|
4
4
|
export { n as SbbCompactPaginatorElement, t as SbbPaginatorCommonElementMixin, r as SbbPaginatorElement, e as SbbPaginatorPageEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../popover.component-
|
|
1
|
+
import { n as e, r as t, t as n } from "../popover.component-Bm-bx-Hs.js";
|
|
2
2
|
export { n as SbbPopoverBaseElement, e as SbbPopoverCloseEvent, t as SbbPopoverElement };
|