@sbb-esta/lyne-elements 4.0.0-next → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/alert/alert.component.js +5 -5
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +6 -6
- package/badge.css +3 -3
- package/breadcrumb/breadcrumb/breadcrumb.component.js +4 -4
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -5
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.d.ts +1 -0
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +2 -2
- package/card/card-badge/card-badge.component.js +7 -7
- package/card/card-button/card-button.component.d.ts +1 -1
- package/card/card-link/card-link.component.d.ts +1 -1
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common/card-action-common.js +5 -10
- package/carousel/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/carousel/carousel/carousel.component.js +33 -28
- package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/carousel/carousel-list/carousel-list.component.js +17 -22
- package/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/common.js +1 -1
- package/checkbox-common-CrwfdL9V.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip/chip.component.js +3 -3
- package/chip-label/chip-label.component.js +8 -8
- package/core/a11y/interactivity-checker.js +0 -7
- package/core/a11y/live-announcer.js +0 -7
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +27 -27
- package/core/datetime/native-date-adapter.d.ts +1 -0
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.js +1 -1
- package/core/dom/breakpoint.d.ts +1 -0
- package/core/dom/breakpoint.d.ts.map +1 -1
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/core/styles/core.scss +67 -69
- package/core/styles/mixins/chip.scss +4 -4
- package/core/styles/mixins/lists.scss +3 -3
- package/core/styles/mixins/panel.scss +2 -2
- package/core/styles/mixins/typo.scss +42 -40
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +166 -38
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +4 -4
- package/core/styles/typography.scss +6 -6
- package/core.css +92 -100
- package/custom-elements.json +1565 -1739
- package/date-input/date-input.component.d.ts +1 -0
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +1 -0
- package/development/alert/alert/alert.component.js +7 -5
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +3 -3
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -5
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +2 -2
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.d.ts +1 -0
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +17 -17
- package/development/card/card-badge/card-badge.component.js +3 -3
- package/development/card/card-button/card-button.component.d.ts +1 -1
- package/development/card/card-link/card-link.component.d.ts +1 -1
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common/card-action-common.js +14 -7
- package/development/carousel/carousel/carousel.component.d.ts +2 -1
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/development/carousel/carousel/carousel.component.js +19 -8
- package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +7 -14
- package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-BZFJgZd7.js → checkbox-common-BKjxH3Rp.js} +12 -12
- package/development/checkbox.js +1 -1
- package/development/chip/chip/chip.component.js +3 -3
- package/development/chip-label/chip-label.component.js +6 -6
- package/development/core/a11y/interactivity-checker.js +1 -8
- package/development/core/a11y/live-announcer.js +1 -8
- package/development/core/config/config.d.ts +5 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +5 -6
- package/development/core/datetime/native-date-adapter.d.ts +1 -0
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/dom/breakpoint.d.ts +1 -0
- package/development/core/dom/breakpoint.d.ts.map +1 -1
- package/development/core/dom/breakpoint.js +1 -1
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/date-input/date-input.component.d.ts +1 -0
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +2 -1
- package/development/dialog/dialog/dialog.component.d.ts +3 -4
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +47 -112
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +3 -7
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +5 -5
- package/development/dialog/dialog-content/dialog-content.component.d.ts +1 -0
- package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +14 -2
- package/development/dialog/dialog-title/dialog-title.component.d.ts +0 -1
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +14 -7
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
- package/development/file-selector/common.js +1 -1
- package/development/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +8 -8
- package/development/{file-selector-common-CsFa5XJ-.js → file-selector-common-B-9Eiig3.js} +4 -4
- package/development/file-selector.js +1 -1
- package/development/footer/footer.component.js +3 -3
- package/development/form-error/form-error.component.js +5 -5
- package/development/form-field/form-field/form-field.component.js +14 -14
- package/development/header/common/header-action-common.js +3 -3
- package/development/header/header-button/header-button.component.d.ts +1 -1
- package/development/header/header-environment/header-environment.component.js +3 -3
- package/development/header/header-link/header-link.component.d.ts +1 -1
- package/development/image/image.component.d.ts +0 -1
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +11 -16
- package/development/link/common/block-link-common.js +10 -10
- package/development/menu/common/menu-action-common.js +3 -3
- package/development/message/message.component.js +6 -6
- package/development/{mini-button-common-Di32bSJj.js → mini-button-common-D1dU4MgN.js} +4 -4
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +3 -3
- package/development/navigation/common/navigation-action-common.js +11 -11
- package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/development/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +3 -3
- package/development/navigation/navigation-marker/navigation-marker.component.js +9 -9
- package/development/navigation/navigation-section/navigation-section.component.js +5 -5
- package/development/notification/notification.component.js +7 -7
- package/development/option/optgroup/optgroup-base-element.js +3 -3
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +14 -4
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +8 -5
- package/development/option/option-hint/option-hint.component.js +3 -3
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +7 -24
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +5 -6
- package/development/paginator/paginator/paginator.component.d.ts +1 -7
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +16 -31
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +63 -13
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/development/{radio-button-common-5uawgCpB.js → radio-button-common-BPrInmpg.js} +11 -11
- package/development/radio-button.js +1 -1
- package/development/sbb-tokens-DZrHvErO.js +19 -0
- package/development/select/select.component.d.ts +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +8 -5
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/status/status.component.js +4 -4
- package/development/stepper/step/step.component.js +3 -3
- package/development/stepper/step-label/step-label.component.js +15 -15
- package/development/tabs/tab-label/tab-label.component.js +18 -18
- package/development/tag/tag/tag.component.js +7 -7
- package/development/teaser/teaser.component.js +3 -3
- package/development/teaser-hero/teaser-hero.component.js +2 -2
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/development/{teaser-product-common-B1KK4iNu.js → teaser-product-common-v3BvyFdH.js} +5 -5
- package/development/teaser-product.js +1 -1
- package/development/timetable-occupancy/timetable-occupancy.component.js +3 -3
- package/development/title/title-base.js +10 -10
- package/development/title/title.component.d.ts +1 -2
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +25 -13
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.js +3 -3
- package/development/toggle/toggle-option/toggle-option.component.js +3 -3
- package/development/toggle-check/toggle-check.component.js +11 -11
- package/development/tooltip/tooltip.component.js +3 -3
- package/development/train/train/train.component.js +4 -4
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +3 -3
- package/development/train/train-wagon/train-wagon.component.js +9 -9
- package/dialog/dialog/dialog.component.d.ts +3 -4
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +61 -58
- package/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
- package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +4 -7
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
- package/dialog/dialog-close-button/dialog-close-button.component.js +16 -19
- package/dialog/dialog-content/dialog-content.component.d.ts +1 -0
- package/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
- package/dialog/dialog-content/dialog-content.component.js +14 -11
- package/dialog/dialog-title/dialog-title.component.d.ts +0 -1
- package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.component.js +11 -14
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
- package/file-selector/common.js +1 -1
- package/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +9 -9
- package/{file-selector-common-CUp299VH.js → file-selector-common-DbYkpr-x.js} +1 -1
- package/file-selector.js +1 -1
- package/footer/footer.component.js +1 -1
- package/form-error/form-error.component.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/header/header-button/header-button.component.d.ts +1 -1
- package/header/header-environment/header-environment.component.js +4 -4
- package/header/header-link/header-link.component.d.ts +1 -1
- package/image/image.component.d.ts +0 -1
- package/image/image.component.d.ts.map +1 -1
- package/image/image.component.js +93 -97
- package/link/common/block-link-common.js +14 -14
- package/lists.css +9 -9
- package/menu/common/menu-action-common.js +1 -1
- package/message/message.component.js +6 -6
- package/mini-button-common-DSGLaplg.js +10 -0
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/navigation/common/navigation-action-common.js +17 -17
- package/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/navigation/navigation-list/navigation-list.component.js +3 -3
- package/navigation/navigation-marker/navigation-marker.component.js +12 -12
- package/navigation/navigation-section/navigation-section.component.js +5 -5
- package/notification/notification.component.js +1 -1
- package/off-brand-theme.css +145 -153
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +30 -20
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +8 -8
- package/option/option-hint/option-hint.component.js +10 -10
- package/package.json +1 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common/paginator-common.js +30 -46
- package/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +2 -3
- package/paginator/paginator/paginator.component.d.ts +1 -7
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +42 -54
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +70 -72
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/radio-button-common-chJrmIBn.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +149 -157
- package/sbb-tokens-BNWpZrLn.js +11 -0
- package/select/select.component.d.ts +1 -1
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +22 -20
- package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +5 -5
- package/standard-theme.css +145 -153
- package/status/status.component.js +4 -4
- package/stepper/step/step.component.js +3 -3
- package/stepper/step-label/step-label.component.js +1 -1
- package/table.css +27 -27
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/teaser-product-common-a4NenpSA.js +5 -0
- package/teaser-product.js +1 -1
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/title/title-base.js +19 -19
- package/title/title.component.d.ts +1 -2
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +17 -17
- package/toast/toast.component.js +1 -1
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +7 -7
- package/toggle-check/toggle-check.component.js +15 -15
- package/tooltip/tooltip.component.js +5 -5
- 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/train-wagon.component.js +1 -1
- package/typography.css +11 -11
- package/checkbox-common-BGA_q9nc.js +0 -5
- package/development/sbb-tokens-DXgmy_b-.js +0 -21
- package/mini-button-common-DBnJfrBZ.js +0 -10
- package/radio-button-common-BT3VkZLM.js +0 -5
- package/sbb-tokens-CB1Hgctn.js +0 -12
- package/teaser-product-common-BwqWqRrK.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/elements/select/select.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAWnE,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAQtB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAsB,gBAAgB,EAAwB,MAAM,cAAc,CAAC;;AAY/F;;;;;;;;GAQG;AACH,qBAEM,gBAAgB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,qBAY1C;IACC,gBAAgC,IAAI,gBAAqC;IACzE,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAGzE,gBAAgC,MAAM;;;;;;;;MAQ3B;IAEX,0DAA0D;IAC1D,SAEgB,WAAW,EAAE,MAAM,CAAM;IAEzC,wDAAwD;IACxD,SAKgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,SAMyB,QAAQ,EAAE,OAAO,CAAS;IAEnD,iCAAiC;IACjC,IACW,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAI9B;IACD,IAAW,KAAK,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,CAEjC;IACD,OAAO,CAAC,MAAM,CAAwB;IAEtC;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF;;;OAGG;IACH,IAAoB,IAAI,IAAI,MAAM,CAEjC;IAED,4CAA4C;IACnC,OAAO,CAAC,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c;IAUtB,yGAAyG;IACzG,OAAO,CAAC,iBAAiB;IAazB,kGAAkG;IAClG,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,sBAAsB;IAyB9B,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,+BAA+B;IAgBvC,OAAO,CAAC,+BAA+B;IAwCvC,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,oBAAoB;IAuB5B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB,CAE1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAEF,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,uBAAuB;IAmB/B,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,2BAA2B;YAMrB,qBAAqB;cAOhB,MAAM,IAAI,cAAc;CAoD5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -6,9 +6,9 @@ var f = (i, a, r) => (Z(i, a, "read from private field"), r ? r.call(i) : a.get(
|
|
|
6
6
|
import { __esDecorate as h, __runInitializers as l } from "tslib";
|
|
7
7
|
import { MutationController as X } from "@lit-labs/observers/mutation-controller.js";
|
|
8
8
|
import { ResizeController as ee } from "@lit-labs/observers/resize-controller.js";
|
|
9
|
-
import { css as te, isServer as se, html as w, nothing as
|
|
9
|
+
import { css as te, isServer as se, html as w, nothing as O } from "lit";
|
|
10
10
|
import { customElement as ie, property as x, state as ae } from "lit/decorators.js";
|
|
11
|
-
import { ref as
|
|
11
|
+
import { ref as E } from "lit/directives/ref.js";
|
|
12
12
|
import { until as H } from "lit/directives/until.js";
|
|
13
13
|
import { getNextElementIndex as oe } from "../core/a11y.js";
|
|
14
14
|
import { SbbOpenCloseBaseElement as re } from "../core/base-elements.js";
|
|
@@ -19,10 +19,10 @@ import { i18nSelectionRequired as he } from "../core/i18n.js";
|
|
|
19
19
|
import { SbbUpdateSchedulerMixin as ue, SbbDisabledMixin as _e, SbbNegativeMixin as ge, SbbHydrationMixin as ve, SbbRequiredMixin as me, SbbReadonlyMixin as fe, SbbFormAssociatedMixin as ye } from "../core/mixins.js";
|
|
20
20
|
import { isEventOnElement as Q, setOverlayPosition as xe, overlayGapFixCorners as we } from "../core/overlay.js";
|
|
21
21
|
import { boxSizingStyles as ke } from "../core/styles.js";
|
|
22
|
-
const
|
|
23
|
-
let
|
|
22
|
+
const Oe = te`.sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-options-panel-border-radius);height:var(--sbb-options-panel-border-radius);background-color:transparent}.sbb-gap-fix-corner{position:absolute;border-radius:50%;border:calc(var(--sbb-options-panel-border-radius) / 2) solid var(--sbb-options-panel-background-color);width:calc(var(--sbb-options-panel-border-radius) * 3);height:calc(var(--sbb-options-panel-border-radius) * 3);bottom:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}.sbb-gap-fix-corner#left{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#left{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1);left:unset}.sbb-gap-fix-corner#right{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#right{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1);right:unset}:host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-options-panel-position-x: 0;--sbb-options-panel-position-y: 0;--sbb-options-panel-active-option-y: 0;--sbb-options-panel-max-height: calc(85vh - var(--sbb-spacing-fixed-8x));--sbb-options-panel-min-height: var(--sbb-options-panel-origin-height);--sbb-options-panel-visibility: visible;--sbb-options-panel-width: fit-content;--sbb-options-panel-border-radius: var(--sbb-border-radius-4x);--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-options-panel-animation-timing-function: ease;--sbb-options-panel-gap-fix-opacity: 0;--sbb-options-panel-gap-fix-transform: none;--sbb-options-panel-gap-fix-top: calc( var(--sbb-options-panel-position-y) - var(--sbb-options-panel-border-radius) );--sbb-options-panel-background-color: var(--sbb-background-color-1);--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-2x);--sbb-options-panel-divider-margin-block: var(--sbb-spacing-fixed-3x);--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) );--sbb-select-placeholder-fallback-color: var(--sbb-color-metal);--sbb-select-placeholder-fallback-color: light-dark( var(--sbb-color-metal), var(--sbb-color-smoke) );display:block}:host([size=s]){--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-1x)}:host([negative]){--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-options-panel-background-color: var(--sbb-background-color-1-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-select-placeholder-fallback-color: var(--sbb-color-5)}:host(:not([data-state])),:host([data-state=closed]){--sbb-options-panel-visibility: hidden}:host([data-state=opening]){--sbb-options-panel-animation-name: open}:host([data-state=closing]){--sbb-options-panel-animation-name: close}:host([data-state=opened]),:host([data-state=opening]){--sbb-options-panel-gap-fix-opacity: 1}:host([data-options-panel-position=below]){--sbb-options-panel-animation-transform: translateY( calc((var(--sbb-options-panel-origin-height) / 2) * -1) )}:host([data-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-gap-fix-top: var(--sbb-options-panel-max-height);--sbb-options-panel-gap-fix-transform: rotate(180deg);--sbb-options-panel-animation-transform: translateY( calc(var(--sbb-options-panel-origin-height) / 2) )}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}:host([preserve-icon-space]){--sbb-option-icon-container-display: block}.sbb-select__trigger{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:var(--sbb-cursor-default);height:calc(1em * var(--sbb-typo-line-height-text))}.sbb-select__trigger--placeholder{color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color));-webkit-text-fill-color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color))}.sbb-select__container{position:fixed;pointer-events:none;inset:0;z-index:var(--sbb-options-panel-internal-z-index)}.sbb-select__container[popover]{margin:0;padding:0;border:none;width:auto;height:auto;background-color:transparent}.sbb-select__gap-fix{display:flex;justify-content:space-between;position:fixed;visibility:var(--sbb-options-panel-visibility);opacity:var(--sbb-options-panel-gap-fix-opacity);background-color:transparent;width:var(--sbb-options-panel-width);height:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-gap-fix-top);left:var(--sbb-options-panel-position-x);transform:var(--sbb-options-panel-gap-fix-transform);transition:opacity var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel{display:block;position:absolute;visibility:var(--sbb-options-panel-visibility);overflow:hidden;background-color:transparent;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);transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel:before,.sbb-select__panel:after{content:"";display:none;position:relative;width:100%;height:var(--sbb-options-panel-origin-height);background-color:transparent;border-radius:var(--sbb-options-panel-border-radius);pointer-events:none;transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function);z-index:1}:host([data-options-panel-position=below]) .sbb-select__panel{inset-block-start:calc(var(--sbb-options-panel-position-y) - var(--sbb-options-panel-origin-height))}:host(:is([data-state=opened],[data-state=opening])) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[negative]) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}:host([data-options-panel-position=below]) .sbb-select__panel:before{display:block}:host([data-options-panel-position=above]) .sbb-select__panel:after{display:block}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}.sbb-select__wrapper{overflow:hidden}.sbb-select__options{background-color:var(--sbb-options-panel-background-color);padding-block:var(--sbb-options-panel-padding-block);padding-inline:0;border-radius:var(--sbb-options-panel-options-border-radius);max-height:var(--sbb-options-panel-max-height);min-height:var(--sbb-options-panel-min-height);pointer-events:all;overflow-y: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);--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-select__options::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-select__options::-webkit-scrollbar-button,.sbb-select__options::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-select__options{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}@media(forced-colors:active){.sbb-select__options{border:var(--sbb-border-width-1x) solid CanvasText;border-block-start:none}}@keyframes open{0%{transform:var(--sbb-options-panel-animation-transform);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes close{0%{transform:translateY(0);opacity:1}to{transform:var(--sbb-options-panel-animation-transform);opacity:0}}`, k = de;
|
|
23
|
+
let Ee = 0, Ke = (() => {
|
|
24
24
|
var u, _, g, v, m, o;
|
|
25
|
-
let i = [ie("sbb-select")], a, r = [], b, C = ue(_e(ge(ve(me(fe(ye(re))))))),
|
|
25
|
+
let i = [ie("sbb-select")], a, r = [], b, C = ue(_e(ge(ve(me(fe(ye(re))))))), V = [], I, D = [], z = [], L, P = [], $ = [], M, R = [], T = [], F, U, q = [], N = [], B, K = [], j = [];
|
|
26
26
|
return o = class extends C {
|
|
27
27
|
constructor() {
|
|
28
28
|
super();
|
|
@@ -31,17 +31,19 @@ let Oe = 0, Ke = (() => {
|
|
|
31
31
|
y(this, g);
|
|
32
32
|
y(this, v);
|
|
33
33
|
y(this, m);
|
|
34
|
-
n(this, u, (l(this,
|
|
34
|
+
n(this, u, (l(this, V), l(this, D, ""))), n(this, _, (l(this, z), l(this, P, !1))), n(this, g, (l(this, $), l(this, R, !1))), this._value = (l(this, T), null), n(this, v, l(this, q, ce() ? "s" : "m")), n(this, m, (l(this, N), l(this, K, null))), this._originResizeObserver = (l(this, j), new ee(this, {
|
|
35
35
|
target: null,
|
|
36
36
|
skipInitial: !0,
|
|
37
37
|
callback: () => {
|
|
38
38
|
this.isOpen && this._setOverlayPosition();
|
|
39
39
|
}
|
|
40
|
-
})), this._escapableOverlayController = new le(this), this._overlayId = `sbb-select-${++
|
|
40
|
+
})), this._escapableOverlayController = new le(this), this._overlayId = `sbb-select-${++Ee}`, this._activeItemIndex = -1, this._searchString = "", this._didLoad = !1, this._isPointerDownEventOnMenu = !1, this._languageController = new ne(this), this._isValueManuallyAssigned = !1, this._pointerDownListener = (e) => {
|
|
41
41
|
this._isPointerDownEventOnMenu = Q(this._overlay, e);
|
|
42
42
|
}, this._closeOnBackdropClick = (e) => {
|
|
43
43
|
!this._isPointerDownEventOnMenu && !Q(this._overlay, e) && this.close();
|
|
44
|
-
}, this.addEventListener?.("optionselectionchange", (e) => this._onOptionChanged(e)), this.addEventListener?.("optionLabelChanged", (e) => this._onOptionLabelChanged(e)), this.addEventListener?.("ɵoptgroupslotchange", () => this.
|
|
44
|
+
}, this.addEventListener?.("optionselectionchange", (e) => this._onOptionChanged(e)), this.addEventListener?.("optionLabelChanged", (e) => this._onOptionLabelChanged(e)), this.addEventListener?.("ɵoptgroupslotchange", () => this._updateValueOptionState(), {
|
|
45
|
+
capture: !0
|
|
46
|
+
}), this.addEventListener?.("click", (e) => {
|
|
45
47
|
const t = e.target;
|
|
46
48
|
t.localName === "sbb-option" ? !this.multiple && !t.disabled && (this.close(), this.focus()) : this._toggleOpening();
|
|
47
49
|
}), this.addController(new X(this, {
|
|
@@ -164,7 +166,7 @@ let Oe = 0, Ke = (() => {
|
|
|
164
166
|
this.isOpen && e && this.close();
|
|
165
167
|
}
|
|
166
168
|
firstUpdated(e) {
|
|
167
|
-
super.firstUpdated(e), G() || (this.startUpdate(), this._setupSelect());
|
|
169
|
+
super.firstUpdated(e), this._updateValueOptionState(), G() || (this.startUpdate(), this._setupSelect());
|
|
168
170
|
}
|
|
169
171
|
/** @internal */
|
|
170
172
|
focus() {
|
|
@@ -390,7 +392,7 @@ let Oe = 0, Ke = (() => {
|
|
|
390
392
|
} else e && (this._activeItemIndex = this._selectableOptions().findIndex((t) => t === e), this._value = e.value);
|
|
391
393
|
this._updateDisplayValue();
|
|
392
394
|
}
|
|
393
|
-
|
|
395
|
+
_updateValueOptionState() {
|
|
394
396
|
this._isValueManuallyAssigned ? this._updateOptionsFromValue() : this._updateValueFromOptions();
|
|
395
397
|
}
|
|
396
398
|
_getSelected() {
|
|
@@ -421,7 +423,7 @@ let Oe = 0, Ke = (() => {
|
|
|
421
423
|
readers to work properly -->
|
|
422
424
|
<div
|
|
423
425
|
class="sbb-screen-reader-only sbb-select-trigger"
|
|
424
|
-
tabindex=${this.disabled || this.formDisabled ?
|
|
426
|
+
tabindex=${this.disabled || this.formDisabled ? O : "0"}
|
|
425
427
|
role="combobox"
|
|
426
428
|
aria-haspopup="listbox"
|
|
427
429
|
aria-expanded="false"
|
|
@@ -430,7 +432,7 @@ let Oe = 0, Ke = (() => {
|
|
|
430
432
|
aria-owns=${this._overlayId}
|
|
431
433
|
@keydown=${this._onKeyDown}
|
|
432
434
|
@click=${this._toggleOpening}
|
|
433
|
-
${
|
|
435
|
+
${E((e) => this._triggerElement = e)}
|
|
434
436
|
>
|
|
435
437
|
${H(...this._spreadDeferredDisplayValue(w`<span>${this.placeholder}</span>`))}
|
|
436
438
|
</div>
|
|
@@ -446,17 +448,17 @@ let Oe = 0, Ke = (() => {
|
|
|
446
448
|
<div
|
|
447
449
|
@animationend=${this._onAnimationEnd}
|
|
448
450
|
class="sbb-select__panel"
|
|
449
|
-
${
|
|
451
|
+
${E((e) => this._overlay = e)}
|
|
450
452
|
>
|
|
451
453
|
<div class="sbb-select__wrapper">
|
|
452
454
|
<div
|
|
453
|
-
id=${k ?
|
|
455
|
+
id=${k ? O : this._overlayId}
|
|
454
456
|
class="sbb-select__options"
|
|
455
|
-
role=${k ?
|
|
457
|
+
role=${k ? O : "listbox"}
|
|
456
458
|
?aria-multiselectable=${this.multiple}
|
|
457
|
-
${
|
|
459
|
+
${E((e) => this._optionContainer = e)}
|
|
458
460
|
>
|
|
459
|
-
<slot @slotchange=${this.
|
|
461
|
+
<slot @slotchange=${this._updateValueOptionState}></slot>
|
|
460
462
|
</div>
|
|
461
463
|
</div>
|
|
462
464
|
</div>
|
|
@@ -465,7 +467,7 @@ let Oe = 0, Ke = (() => {
|
|
|
465
467
|
}
|
|
466
468
|
}, u = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), v = new WeakMap(), m = new WeakMap(), b = o, (() => {
|
|
467
469
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(C[Symbol.metadata] ?? null) : void 0;
|
|
468
|
-
|
|
470
|
+
I = [A(), x()], L = [A(), J((t, s) => t._onMultipleChanged(s)), x({ reflect: !0, type: Boolean })], M = [A(), J((t, s) => t._closeOnDisabledReadonlyChanged(s)), x({ reflect: !0, type: Boolean }), be((t, s) => s || t.isDisabledExternally())], F = [x()], U = [x({ reflect: !0 })], B = [ae()], h(o, null, I, { kind: "accessor", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, get: (t) => t.placeholder, set: (t, s) => {
|
|
469
471
|
t.placeholder = s;
|
|
470
472
|
} }, metadata: e }, D, z), h(o, null, L, { kind: "accessor", name: "multiple", static: !1, private: !1, access: { has: (t) => "multiple" in t, get: (t) => t.multiple, set: (t, s) => {
|
|
471
473
|
t.multiple = s;
|
|
@@ -473,12 +475,12 @@ let Oe = 0, Ke = (() => {
|
|
|
473
475
|
t.disabled = s;
|
|
474
476
|
} }, metadata: e }, R, T), h(o, null, F, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (t) => "value" in t, set: (t, s) => {
|
|
475
477
|
t.value = s;
|
|
476
|
-
} }, metadata: e }, null,
|
|
478
|
+
} }, metadata: e }, null, V), h(o, null, U, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, s) => {
|
|
477
479
|
t.size = s;
|
|
478
480
|
} }, metadata: e }, q, N), h(o, null, B, { kind: "accessor", name: "_displayValue", static: !1, private: !1, access: { has: (t) => "_displayValue" in t, get: (t) => t._displayValue, set: (t, s) => {
|
|
479
481
|
t._displayValue = s;
|
|
480
482
|
} }, metadata: e }, K, j), h(null, a = { value: b }, i, { kind: "class", name: b.name, metadata: e }, null, r), b = a.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
481
|
-
})(), o.role = k ? "listbox" : null, o.styles = [ke,
|
|
483
|
+
})(), o.role = k ? "listbox" : null, o.styles = [ke, Oe], o.events = {
|
|
482
484
|
change: "change",
|
|
483
485
|
input: "input",
|
|
484
486
|
displayvaluechange: "displayvaluechange",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { SbbButtonBaseElement } from '../../core/base-elements.js';
|
|
3
3
|
import { SbbTooltipDefaultPositions } from '../../tooltip.js';
|
|
4
|
-
declare const SbbIconSidebarButtonElement_base: import('../../core/mixins.
|
|
4
|
+
declare const SbbIconSidebarButtonElement_base: import('../../core/mixins.ts').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbButtonBaseElement;
|
|
5
5
|
/**
|
|
6
6
|
* Button to be placed inside `sbb-icon-sidebar`.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { SbbLinkBaseElement } from '../../core/base-elements.js';
|
|
3
3
|
import { SbbTooltipDefaultPositions } from '../../tooltip.js';
|
|
4
|
-
declare const SbbIconSidebarLinkElement_base: import('../../core/mixins.
|
|
4
|
+
declare const SbbIconSidebarLinkElement_base: import('../../core/mixins.ts').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbLinkBaseElement;
|
|
5
5
|
/**
|
|
6
6
|
* Link to be placed inside `sbb-icon-sidebar`.
|
|
7
7
|
*
|
|
@@ -4,13 +4,13 @@ var _ = (e) => {
|
|
|
4
4
|
var d = (e, t, l) => t.has(e) || _("Cannot " + l);
|
|
5
5
|
var h = (e, t, l) => (d(e, t, "read from private field"), l ? l.call(e) : t.get(e)), v = (e, t, l) => t.has(e) ? _("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, l), p = (e, t, l, s) => (d(e, t, "write to private field"), s ? s.call(e, l) : t.set(e, l), l);
|
|
6
6
|
import { __esDecorate as y, __runInitializers as o } from "tslib";
|
|
7
|
-
import { customElement as
|
|
7
|
+
import { customElement as S, property as k } from "lit/decorators.js";
|
|
8
8
|
import { SbbTitleBase as f } from "../../title.js";
|
|
9
9
|
import { css as z } from "lit";
|
|
10
|
-
const x = z`:host{-webkit-hyphens:auto;hyphens:auto;padding-block-start:calc(.5 * (var(--sbb-sidebar__close-button-size) - 1em * var(--sbb-typo-line-height-
|
|
10
|
+
const x = z`:host{-webkit-hyphens:auto;hyphens:auto;padding-block-start:calc(.5 * (var(--sbb-sidebar__close-button-size) - 1em * var(--sbb-typo-line-height-heading)));min-height:var(--sbb-sidebar__close-button-size)}`;
|
|
11
11
|
let C = (() => {
|
|
12
12
|
var r, a;
|
|
13
|
-
let e = [
|
|
13
|
+
let e = [S("sbb-sidebar-title")], t, l = [], s, n = f, b, m = [], u = [];
|
|
14
14
|
return a = class extends n {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -29,8 +29,8 @@ let C = (() => {
|
|
|
29
29
|
}
|
|
30
30
|
}, r = new WeakMap(), s = a, (() => {
|
|
31
31
|
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
32
|
-
b = [k({ reflect: !0 })], y(a, null, b, { kind: "accessor", name: "level", static: !1, private: !1, access: { has: (c) => "level" in c, get: (c) => c.level, set: (c,
|
|
33
|
-
c.level =
|
|
32
|
+
b = [k({ reflect: !0 })], y(a, null, b, { kind: "accessor", name: "level", static: !1, private: !1, access: { has: (c) => "level" in c, get: (c) => c.level, set: (c, g) => {
|
|
33
|
+
c.level = g;
|
|
34
34
|
} }, metadata: i }, m, u), y(null, t = { value: s }, e, { kind: "class", name: s.name, metadata: i }, null, l), s = t.value, i && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
35
35
|
})(), a.styles = [f.styles, x], o(s, l), s;
|
|
36
36
|
})();
|