@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":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog/dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO1E,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog/dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO1E,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAKtE,OAAO,6BAA6B,CAAC;AAIrC;;;;;;;GAOG;AACH,qBAEM,gBAAiB,SAAQ,qBAAqB;IAClD,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE,6BAA6B;IAC7B,SAA4D,cAAc,EAAE,OAAO,GAAG,MAAM,CAClF;IAEV,wBAAwB;IACxB,SAAoE,QAAQ,EACxE,QAAQ,GACR,aAAa,CAAY;IAM7B,OAAO,CAAC,4BAA4B,CAIjC;IAEH,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,2BAA2B,CAAkB;IACrD,SAAS,CAAC,cAAc,EAAE,MAAM,CAAsB;IACtD,UAAmB,QAAQ,EAAE,MAAM,CAA6B;;IAahD,iBAAiB,IAAI,IAAI;IAKzC,2EAA2E;IACpE,aAAa,IAAI,IAAI;IAM5B,SAAS,CAAC,uBAAuB,IAAI,OAAO;IAI5C,SAAS,CAAC,aAAa,IAAI,IAAI;IA6B/B,SAAS,CAAC,aAAa,IAAI,IAAI;cAiBZ,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAM3D,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,0BAA0B;IASlC,wEAAwE;IACxE,OAAO,CAAC,oBAAoB,CAO1B;IAEF,sCAAsC;IACtC,OAAO,CAAC,qBAAqB,CAS3B;IAEF,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,eAAe;cAIJ,MAAM,IAAI,cAAc;CAmB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var w = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { ResizeController as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { ref as
|
|
10
|
-
import { html as
|
|
11
|
-
import { isZeroAnimationDuration as
|
|
12
|
-
import { boxSizingStyles as
|
|
13
|
-
import { SbbOverlayBaseElement as
|
|
14
|
-
import { css as
|
|
4
|
+
var y = (e, a, o) => a.has(e) || w("Cannot " + o);
|
|
5
|
+
var h = (e, a, o) => (y(e, a, "read from private field"), o ? o.call(e) : a.get(e)), g = (e, a, o) => a.has(e) ? w("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), b = (e, a, o, s) => (y(e, a, "write to private field"), s ? s.call(e, o) : a.set(e, o), o);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as d } from "tslib";
|
|
7
|
+
import { ResizeController as C } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
+
import { customElement as O, property as E } from "lit/decorators.js";
|
|
9
|
+
import { ref as S } from "lit/directives/ref.js";
|
|
10
|
+
import { html as T } from "lit/static-html.js";
|
|
11
|
+
import { isZeroAnimationDuration as A } from "../../core/dom.js";
|
|
12
|
+
import { boxSizingStyles as D } from "../../core/styles.js";
|
|
13
|
+
import { SbbOverlayBaseElement as z, overlayRefs as I } from "../../overlay.js";
|
|
14
|
+
import { css as L } from "lit";
|
|
15
15
|
import "../../screen-reader-only.js";
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
var l, n
|
|
19
|
-
let
|
|
20
|
-
return
|
|
16
|
+
const R = L`:host{--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-dialog-color: var(--sbb-color-2);--sbb-dialog-background-color: var(--sbb-background-color-1);--sbb-dialog-width: 100%;--sbb-dialog-height: 100%;--sbb-dialog-max-width: 100%;--sbb-dialog-max-width-default: 55.75rem;--sbb-dialog-max-height: 100%;--sbb-dialog-inset: 0 auto auto 0;--sbb-dialog-border-radius: var(--sbb-border-radius-8x);--sbb-dialog-padding-block: var(--sbb-spacing-responsive-xs);--sbb-dialog-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-dialog-shadow-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-dialog-animation-easing: ease;--sbb-dialog-pointer-events: none;--sbb-dialog-backdrop-visibility: hidden;--sbb-dialog-backdrop-pointer-events: none;--sbb-dialog-backdrop-color: transparent;--sbb-dialog-block-shadow: var(--sbb-box-shadow-level-9-soft);--sbb-dialog-actions-border-color: var(--sbb-background-color-4);display:none;position:fixed;inset:var(--sbb-dialog-inset);z-index:var(--sbb-dialog-z-index, var(--sbb-overlay-default-z-index))}@media(min-width:37.5rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-12x)}}@media(min-width:64rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);--sbb-dialog-max-width: min( calc(100vw - var(--sbb-spacing-fixed-30x) * 2), var(--sbb-dialog-max-width-default) );--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x))}}:host(:is(:state(top-shadow),[state--top-shadow])){--sbb-dialog-block-start-box-shadow: var(--sbb-dialog-block-shadow)}:host(:is(:state(bottom-shadow),[state--bottom-shadow])){--sbb-dialog-block-end-box-shadow: var(--sbb-dialog-block-shadow);--sbb-dialog-actions-border-color: transparent}:host([data-state]:not([data-state=closed])){display:block}:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-pointer-events: all;--sbb-dialog-backdrop-color: var(--sbb-background-color-3)}@media(min-width:64rem){:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-visibility: visible;--sbb-dialog-backdrop-pointer-events: all}}:host([backdrop=translucent]:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-color: color-mix(in srgb, var(--sbb-color-black) 50%, transparent)}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-dialog-color: var(--sbb-color-2-negative);--sbb-dialog-background-color: var(--sbb-background-color-1-negative);--sbb-dialog-backdrop-color: var(--sbb-background-color-3-negative);--sbb-dialog-actions-border-color: var(--sbb-background-color-4-negative);--sbb-dialog-block-shadow: var(--sbb-box-shadow-level-9-soft-negative)}:host(:not([data-state=closed])){--sbb-dialog-inset: 0}.sbb-dialog__container{pointer-events:var(--sbb-dialog-pointer-events);display:flex;align-items:center;position:fixed;inset:var(--sbb-dialog-inset)}.sbb-dialog__container:before{content:"";visibility:var(--sbb-dialog-backdrop-visibility);pointer-events:var(--sbb-dialog-backdrop-pointer-events);position:fixed;inset:var(--sbb-dialog-inset);background-color:var(--sbb-dialog-backdrop-color);transition-duration:var(--sbb-dialog-animation-duration);transition-timing-function:var(--sbb-dialog-animation-easing);transition-property:background-color,visibility}.sbb-dialog{display:none;position:absolute;inset-inline:0;margin:auto;padding:0;border:none;width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height);color:var(--sbb-dialog-color);background-color:var(--sbb-dialog-background-color)}:host([data-state]:not([data-state=closed])) .sbb-dialog{display:block;animation-name:open;animation-duration:var(--sbb-dialog-animation-duration);animation-timing-function:ease}:host([data-state][data-state=closing]) .sbb-dialog{pointer-events:none;animation-name:close}@media(forced-colors:active){.sbb-dialog{outline:var(--sbb-border-width-1x) solid CanvasText}}@media(min-width:64rem){.sbb-dialog{border-radius:var(--sbb-dialog-border-radius);overflow:hidden;height:auto}}:host(:is(:state(has-intermediate-element),[state--has-intermediate-element])) ::slotted(:first-child),.sbb-dialog__wrapper{width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height)}:host(:is(:state(has-intermediate-element),[state--has-intermediate-element])) ::slotted(:first-child),:host(:not(:is(:state(has-intermediate-element),[state--has-intermediate-element]))) .sbb-dialog__wrapper{display:grid;grid-template:"title close-button" auto "content content" 1fr "actions actions" auto/1fr auto;gap:0}@keyframes open{0%{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}to{opacity:1;translate:0}}@keyframes close{0%{opacity:1;translate:0}to{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}}`;
|
|
17
|
+
let q = 0, K = (() => {
|
|
18
|
+
var r, l, n;
|
|
19
|
+
let e = [O("sbb-dialog")], a, o = [], s, m = z, v, u = [], k = [], f, _ = [], x = [];
|
|
20
|
+
return n = class extends m {
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
g(this, r);
|
|
24
|
+
g(this, l);
|
|
25
|
+
b(this, r, d(this, u, "close")), b(this, l, (d(this, k), d(this, _, "opaque"))), this._dialogContentResizeObserver = (d(this, x), new C(this, {
|
|
26
26
|
target: null,
|
|
27
27
|
skipInitial: !0,
|
|
28
28
|
callback: () => setTimeout(() => this._updateOverflowState())
|
|
@@ -30,40 +30,46 @@ let B = 0, W = (() => {
|
|
|
30
30
|
this.backdropAction === "close" && (this._isPointerDownEventOnDialog = !!this._dialogElement && t.composedPath().includes(this._dialogElement));
|
|
31
31
|
}, this._closeOnBackdropClick = (t) => {
|
|
32
32
|
this.backdropAction === "close" && !this._isPointerDownEventOnDialog && this._dialogElement && !t.composedPath().includes(this._dialogElement) && this.close();
|
|
33
|
-
}, this.addEventListener?.("pointerdown", this._pointerDownListener), this.addEventListener?.("pointerup", this._closeOnBackdropClick)
|
|
33
|
+
}, this.addEventListener?.("pointerdown", this._pointerDownListener), this.addEventListener?.("pointerup", this._closeOnBackdropClick), this.addEventListener("scroll", () => this._updateOverflowState(), {
|
|
34
|
+
passive: !0,
|
|
35
|
+
capture: !0
|
|
36
|
+
});
|
|
34
37
|
}
|
|
35
38
|
/** Backdrop click action. */
|
|
36
39
|
get backdropAction() {
|
|
37
|
-
return h(this,
|
|
40
|
+
return h(this, r);
|
|
38
41
|
}
|
|
39
42
|
set backdropAction(t) {
|
|
40
|
-
|
|
43
|
+
b(this, r, t);
|
|
41
44
|
}
|
|
42
45
|
/** Backdrop density. */
|
|
43
46
|
get backdrop() {
|
|
44
|
-
return h(this,
|
|
47
|
+
return h(this, l);
|
|
45
48
|
}
|
|
46
49
|
set backdrop(t) {
|
|
47
|
-
|
|
50
|
+
b(this, l, t);
|
|
48
51
|
}
|
|
49
52
|
connectedCallback() {
|
|
50
|
-
this.id ||= `sbb-dialog-${
|
|
53
|
+
this.id ||= `sbb-dialog-${q++}`, super.connectedCallback();
|
|
51
54
|
}
|
|
52
55
|
/** Announce the accessibility label or dialog title for screen readers. */
|
|
53
56
|
announceTitle() {
|
|
54
57
|
this.setAriaLiveRefContent(this.accessibilityLabel || this.querySelector("sbb-dialog-title")?.innerText.trim());
|
|
55
58
|
}
|
|
56
59
|
isZeroAnimationDuration() {
|
|
57
|
-
return
|
|
60
|
+
return A(this, "--sbb-dialog-animation-duration");
|
|
58
61
|
}
|
|
59
62
|
handleClosing() {
|
|
60
|
-
|
|
63
|
+
const t = this._contentElement();
|
|
64
|
+
t?.scrollTo(0, 0), this.state = "closed", this.hidePopover?.(), this.inertController.deactivate(), this.skipFocusRestoration || this.lastFocusedElement?.focus(), this.openOverlayController?.abort(), this.focusTrapController.enabled = !1, t && this._dialogContentResizeObserver.hostDisconnected(), this.removeInstanceFromGlobalCollection(), I.length || this.scrollHandler.enableScroll(), this.escapableOverlayController.disconnect(), this.dispatchCloseEvent({
|
|
61
65
|
returnValue: this.returnValue,
|
|
62
66
|
closeTarget: this.overlayCloseElement
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
handleOpening() {
|
|
66
|
-
this.state = "opened", this.inertController.activate(), this.escapableOverlayController.connect(), this.attachOpenOverlayEvents(), this.focusTrapController.focusInitialElement(), setTimeout(() => this.announceTitle()), this.focusTrapController.enabled = !0
|
|
70
|
+
this.state = "opened", this.inertController.activate(), this.escapableOverlayController.connect(), this.attachOpenOverlayEvents(), this.focusTrapController.focusInitialElement(), setTimeout(() => this.announceTitle()), this.focusTrapController.enabled = !0;
|
|
71
|
+
const t = this._contentElement();
|
|
72
|
+
t && this._dialogContentResizeObserver.observe(t), this.dispatchOpenEvent();
|
|
67
73
|
}
|
|
68
74
|
firstUpdated(t) {
|
|
69
75
|
super.firstUpdated(t), this._syncTitleNegative();
|
|
@@ -71,55 +77,52 @@ let B = 0, W = (() => {
|
|
|
71
77
|
willUpdate(t) {
|
|
72
78
|
super.willUpdate(t), t.has("negative") && this._syncTitleNegative();
|
|
73
79
|
}
|
|
80
|
+
_handleSlotChange() {
|
|
81
|
+
this._syncTitleNegative(), this._detectIntermediateElement();
|
|
82
|
+
}
|
|
74
83
|
_syncTitleNegative() {
|
|
75
|
-
const t = this.querySelector?.("sbb-dialog-title"),
|
|
76
|
-
t && (t.negative = this.negative),
|
|
84
|
+
const t = this.querySelector?.("sbb-dialog-title"), i = this.querySelector?.("sbb-dialog-close-button");
|
|
85
|
+
t && (t.negative = this.negative), i && (i.negative = this.negative);
|
|
86
|
+
}
|
|
87
|
+
_detectIntermediateElement() {
|
|
88
|
+
const t = this.querySelector(":scope > :is(sbb-dialog-title, sbb-dialog-close-button, sbb-dialog-content, sbb-dialog-actions)") === null;
|
|
89
|
+
this.toggleState("has-intermediate-element", t);
|
|
77
90
|
}
|
|
78
91
|
_updateOverflowState() {
|
|
79
|
-
|
|
92
|
+
const t = this._contentElement();
|
|
93
|
+
this.toggleState("top-shadow", (t?.scrollTop ?? 0) > 0), this.toggleState("bottom-shadow", (t?.scrollTop ?? 0) + (t?.offsetHeight ?? 0) < (t?.scrollHeight ?? 0));
|
|
80
94
|
}
|
|
81
|
-
|
|
82
|
-
this.
|
|
95
|
+
_contentElement() {
|
|
96
|
+
return this.querySelector("sbb-dialog-content");
|
|
83
97
|
}
|
|
84
98
|
render() {
|
|
85
|
-
return
|
|
99
|
+
return T`
|
|
86
100
|
<div class="sbb-dialog__container">
|
|
87
101
|
<div
|
|
88
102
|
@animationend=${this.onOverlayAnimationEnd}
|
|
89
103
|
class="sbb-dialog"
|
|
90
|
-
${
|
|
104
|
+
${S((t) => this._dialogElement = t)}
|
|
91
105
|
>
|
|
92
106
|
<div
|
|
93
107
|
@click=${(t) => this.closeOnSbbOverlayCloseClick(t)}
|
|
94
108
|
class="sbb-dialog__wrapper"
|
|
95
109
|
>
|
|
96
|
-
<
|
|
97
|
-
<slot name="title-section" @slotchange=${() => this._syncTitleNegative()}></slot>
|
|
98
|
-
</div>
|
|
99
|
-
<div
|
|
100
|
-
class="sbb-dialog-content-container"
|
|
101
|
-
part="scroll-container"
|
|
102
|
-
@scroll=${() => this._detectScrolledState()}
|
|
103
|
-
${O((t) => this._dialogContentElement = t)}
|
|
104
|
-
>
|
|
105
|
-
<slot></slot>
|
|
106
|
-
</div>
|
|
107
|
-
<slot name="actions"></slot>
|
|
110
|
+
<slot @slotchange=${() => this._handleSlotChange()}></slot>
|
|
108
111
|
</div>
|
|
109
112
|
</div>
|
|
110
113
|
</div>
|
|
111
114
|
<sbb-screen-reader-only aria-live="polite"></sbb-screen-reader-only>
|
|
112
115
|
`;
|
|
113
116
|
}
|
|
114
|
-
},
|
|
115
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} }, metadata: t },
|
|
119
|
-
|
|
120
|
-
} }, metadata: t }, _,
|
|
121
|
-
})(),
|
|
117
|
+
}, r = new WeakMap(), l = new WeakMap(), s = n, (() => {
|
|
118
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
|
|
119
|
+
v = [E({ attribute: "backdrop-action" })], f = [E({ attribute: "backdrop", reflect: !0 })], p(n, null, v, { kind: "accessor", name: "backdropAction", static: !1, private: !1, access: { has: (i) => "backdropAction" in i, get: (i) => i.backdropAction, set: (i, c) => {
|
|
120
|
+
i.backdropAction = c;
|
|
121
|
+
} }, metadata: t }, u, k), p(n, null, f, { kind: "accessor", name: "backdrop", static: !1, private: !1, access: { has: (i) => "backdrop" in i, get: (i) => i.backdrop, set: (i, c) => {
|
|
122
|
+
i.backdrop = c;
|
|
123
|
+
} }, metadata: t }, _, x), p(null, a = { value: s }, e, { kind: "class", name: s.name, metadata: t }, null, o), s = a.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
124
|
+
})(), n.styles = [D, R], d(s, o), s;
|
|
122
125
|
})();
|
|
123
126
|
export {
|
|
124
|
-
|
|
127
|
+
K as SbbDialogElement
|
|
125
128
|
};
|
|
@@ -8,7 +8,6 @@ import { SbbActionGroupElement } from '../../action-group.js';
|
|
|
8
8
|
export declare class SbbDialogActionsElement extends SbbActionGroupElement {
|
|
9
9
|
static styles: CSSResultGroup;
|
|
10
10
|
constructor();
|
|
11
|
-
connectedCallback(): void;
|
|
12
11
|
}
|
|
13
12
|
declare global {
|
|
14
13
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-actions.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-actions/dialog-actions.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,qBAAqB;IACzD,OAAuB,MAAM,EAAE,cAAc,CAAyC;;
|
|
1
|
+
{"version":3,"file":"dialog-actions.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-actions/dialog-actions.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,qBAAqB;IACzD,OAAuB,MAAM,EAAE,cAAc,CAAyC;;CAUvF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
@@ -3,22 +3,19 @@ import { customElement as d } from "lit/decorators.js";
|
|
|
3
3
|
import { SbbActionGroupElement as e } from "../../action-group.js";
|
|
4
4
|
import { isLean as l } from "../../core/dom/lean-context.js";
|
|
5
5
|
import { css as m } from "lit";
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const g = m`:host{grid-area:actions;padding-inline:var(--sbb-dialog-padding-inline);padding-block:var(--sbb-dialog-padding-block);margin-block-start:auto;background-color:var(--sbb-dialog-background-color);transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:var(--sbb-dialog-block-end-box-shadow, none)}:host:before{content:"";display:block;position:absolute;border-block-start:var(--sbb-border-width-1x) solid var(--sbb-dialog-actions-border-color);transition:border-color var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);width:100%;margin-block-start:calc(-1 * var(--sbb-dialog-padding-block));margin-inline-start:calc(-1 * var(--sbb-dialog-padding-inline))}@media(forced-colors:active){:host:before{border-color:CanvasText}}`;
|
|
7
|
+
let k = (() => {
|
|
8
8
|
var o;
|
|
9
9
|
let n = [d("sbb-dialog-actions")], i, s = [], a, r = e;
|
|
10
10
|
return o = class extends r {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(), this.buttonSize = l() ? "s" : "m", this.linkSize = l() ? "xs" : "s";
|
|
13
13
|
}
|
|
14
|
-
connectedCallback() {
|
|
15
|
-
super.connectedCallback(), this.slot ||= "actions";
|
|
16
|
-
}
|
|
17
14
|
}, a = o, (() => {
|
|
18
15
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
19
16
|
b(null, i = { value: a }, n, { kind: "class", name: a.name, metadata: t }, null, s), a = i.value, t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
20
|
-
})(), o.styles = [e.styles,
|
|
17
|
+
})(), o.styles = [e.styles, g], c(a, s), a;
|
|
21
18
|
})();
|
|
22
19
|
export {
|
|
23
|
-
|
|
20
|
+
k as SbbDialogActionsElement
|
|
24
21
|
};
|
|
@@ -10,7 +10,6 @@ export declare class SbbDialogCloseButtonElement extends SbbSecondaryButtonEleme
|
|
|
10
10
|
static styles: CSSResultGroup;
|
|
11
11
|
private _languageController;
|
|
12
12
|
constructor();
|
|
13
|
-
connectedCallback(): void;
|
|
14
13
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
15
14
|
protected renderTemplate(): TemplateResult;
|
|
16
15
|
protected renderIconName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-close-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-close-button/dialog-close-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;;;GAKG;AACH,qBAEM,2BAA4B,SAAQ,yBAAyB;IACjE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,mBAAmB,CAAmC;;
|
|
1
|
+
{"version":3,"file":"dialog-close-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-close-button/dialog-close-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;;;GAKG;AACH,qBAEM,2BAA4B,SAAQ,yBAAyB;IACjE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,mBAAmB,CAAmC;;cAO3C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAKzD,cAAc,IAAI,cAAc;cAIhC,cAAc,IAAI,MAAM;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,2BAA2B,CAAC;KACxD;CACF"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import { customElement as
|
|
3
|
-
import { SbbSecondaryButtonElement as
|
|
4
|
-
import { SbbLanguageController as
|
|
5
|
-
import { i18nCloseDialog as
|
|
1
|
+
import { __esDecorate as o, __runInitializers as c } from "tslib";
|
|
2
|
+
import { customElement as b } from "lit/decorators.js";
|
|
3
|
+
import { SbbSecondaryButtonElement as i } from "../../button/secondary-button.js";
|
|
4
|
+
import { SbbLanguageController as m } from "../../core/controllers.js";
|
|
5
|
+
import { i18nCloseDialog as u } from "../../core/i18n.js";
|
|
6
6
|
import { css as d } from "lit";
|
|
7
|
-
const p = d`:host{display:block;height:fit-content}`;
|
|
8
|
-
let
|
|
7
|
+
const p = d`:host{display:block;height:fit-content;grid-area:close-button;margin-inline:var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);inset-inline-end:var(--sbb-spacing-fixed-4x);margin-block-start:calc(var(--sbb-dialog-padding-block) + .5 * (var(--sbb-typo-line-height-heading) * var(--_sbb-dialog-title-size, var(--sbb-heading-font-size-4)) - var(--sbb-size-element-xs)))}`;
|
|
8
|
+
let x = (() => {
|
|
9
9
|
var t;
|
|
10
|
-
let n = [
|
|
11
|
-
return t = class extends
|
|
10
|
+
let n = [b("sbb-dialog-close-button")], r, s = [], e, l = i;
|
|
11
|
+
return t = class extends l {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(), this._languageController = new
|
|
13
|
+
super(), this._languageController = new m(this), this.size = "s";
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
super.
|
|
17
|
-
}
|
|
18
|
-
willUpdate(l) {
|
|
19
|
-
super.willUpdate(l), this.internals.ariaLabel = b[this._languageController.current];
|
|
15
|
+
willUpdate(a) {
|
|
16
|
+
super.willUpdate(a), this.internals.ariaLabel = u[this._languageController.current];
|
|
20
17
|
}
|
|
21
18
|
renderTemplate() {
|
|
22
19
|
return super.renderIconSlot();
|
|
@@ -25,10 +22,10 @@ let C = (() => {
|
|
|
25
22
|
return super.renderIconName() || "cross-small";
|
|
26
23
|
}
|
|
27
24
|
}, e = t, (() => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
})(), t.styles = [
|
|
25
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
26
|
+
o(null, r = { value: e }, n, { kind: "class", name: e.name, metadata: a }, null, s), e = r.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
27
|
+
})(), t.styles = [i.styles, p], c(e, s), e;
|
|
31
28
|
})();
|
|
32
29
|
export {
|
|
33
|
-
|
|
30
|
+
x as SbbDialogCloseButtonElement
|
|
34
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-content/dialog-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,UAAU;IAC9C,OAAuB,MAAM,EAAE,cAAc,CAAS;
|
|
1
|
+
{"version":3,"file":"dialog-content.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-content/dialog-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,UAAU;IAC9C,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtC,iBAAiB,IAAI,IAAI;cAStB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import { css as
|
|
1
|
+
import { __esDecorate as n, __runInitializers as c } from "tslib";
|
|
2
|
+
import { css as r, LitElement as b, html as u } from "lit";
|
|
3
3
|
import { customElement as d } from "lit/decorators.js";
|
|
4
|
-
const
|
|
5
|
-
let
|
|
4
|
+
const m = r`:host{display:block;padding-block:var(--sbb-dialog-padding-block);padding-inline:var(--sbb-dialog-padding-inline);grid-area:content;overflow:auto}:host(:focus-visible){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-offset: calc(var(--sbb-focus-outline-width) * -1)}`;
|
|
5
|
+
let g = (() => {
|
|
6
6
|
var e;
|
|
7
|
-
let
|
|
8
|
-
return e = class extends
|
|
7
|
+
let i = [d("sbb-dialog-content")], s, a = [], t, o = b;
|
|
8
|
+
return e = class extends o {
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
super.connectedCallback(), this.classList.add("sbb-scrollbar");
|
|
11
|
+
}
|
|
9
12
|
render() {
|
|
10
|
-
return
|
|
13
|
+
return u`<slot></slot>`;
|
|
11
14
|
}
|
|
12
15
|
}, t = e, (() => {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
})(), e.styles =
|
|
16
|
+
const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
17
|
+
n(null, s = { value: t }, i, { kind: "class", name: t.name, metadata: l }, null, a), t = s.value, l && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
|
|
18
|
+
})(), e.styles = m, c(t, a), t;
|
|
16
19
|
})();
|
|
17
20
|
export {
|
|
18
|
-
|
|
21
|
+
g as SbbDialogContentElement
|
|
19
22
|
};
|
|
@@ -9,7 +9,6 @@ declare const SbbDialogTitleElement_base: import('../../core/mixins.js').Abstrac
|
|
|
9
9
|
export declare class SbbDialogTitleElement extends SbbDialogTitleElement_base {
|
|
10
10
|
static styles: CSSResultGroup;
|
|
11
11
|
constructor();
|
|
12
|
-
connectedCallback(): void;
|
|
13
12
|
}
|
|
14
13
|
declare global {
|
|
15
14
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-title.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-title/dialog-title.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAI9C;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,0BAA8B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAgC;;
|
|
1
|
+
{"version":3,"file":"dialog-title.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-title/dialog-title.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAI9C;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,0BAA8B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAgC;;CAO9E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { __esDecorate as n, __runInitializers as
|
|
2
|
-
import { customElement as
|
|
3
|
-
import { SbbNegativeMixin as
|
|
4
|
-
import { SbbTitleBase as
|
|
5
|
-
import { css as
|
|
6
|
-
const
|
|
1
|
+
import { __esDecorate as n, __runInitializers as b } from "tslib";
|
|
2
|
+
import { customElement as c } from "lit/decorators.js";
|
|
3
|
+
import { SbbNegativeMixin as d } from "../../core/mixins.js";
|
|
4
|
+
import { SbbTitleBase as l } from "../../title.js";
|
|
5
|
+
import { css as m } from "lit";
|
|
6
|
+
const u = m`:host{display:block;padding-block:var(--sbb-dialog-padding-block);padding-inline:var(--sbb-dialog-padding-inline);-webkit-hyphens:auto;hyphens:auto;grid-area:title;position:relative}:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}:host:after{content:"";display:block;position:absolute;inset:0 -10rem 0 0;transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:var(--sbb-dialog-block-start-box-shadow, none)}`;
|
|
7
7
|
let f = (() => {
|
|
8
8
|
var e;
|
|
9
|
-
let r = [
|
|
10
|
-
return e = class extends
|
|
9
|
+
let r = [c("sbb-dialog-title")], i, s = [], t, o = d(l);
|
|
10
|
+
return e = class extends o {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(), this.level = "2", this.visualLevel = "4";
|
|
13
13
|
}
|
|
14
|
-
connectedCallback() {
|
|
15
|
-
super.connectedCallback(), this.slot ||= "title-section";
|
|
16
|
-
}
|
|
17
14
|
}, t = e, (() => {
|
|
18
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
19
|
-
n(null,
|
|
20
|
-
})(), e.styles = [
|
|
15
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
16
|
+
n(null, i = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, s), t = i.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
17
|
+
})(), e.styles = [l.styles, u], b(t, s), t;
|
|
21
18
|
})();
|
|
22
19
|
export {
|
|
23
20
|
f as SbbDialogTitleElement
|
|
@@ -6,7 +6,7 @@ import { SbbMediaMatcherController as m, SbbMediaQueryHover as b } from "../../c
|
|
|
6
6
|
import { SbbDisabledTabIndexActionMixin as g } from "../../core/mixins.js";
|
|
7
7
|
import { boxSizingStyles as u } from "../../core/styles.js";
|
|
8
8
|
import { SbbIconNameMixin as f } from "../../icon.js";
|
|
9
|
-
const _ = c`:host{display:block;--sbb-expansion-panel-header-cursor: var(--sbb-cursor-pointer);--sbb-expansion-panel-header-text-color: var(--sbb-color-2);--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-6x);--sbb-expansion-panel-header-justify-content: space-between;--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-responsive-xs);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-6x)}@media(forced-colors:active){:host{--sbb-expansion-panel-header-text-color: ButtonText}}:host([data-size=s]){--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-2x);--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-fixed-3x);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-5x)}:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-cursor: var(--sbb-cursor-default);--sbb-expansion-panel-header-text-color: var(--sbb-color-granite);--sbb-expansion-panel-header-text-color: light-dark( var(--sbb-color-granite), var(--sbb-color-storm) )}@media(forced-colors:active){:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-text-color: GrayText}}:host(:focus-visible){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x);border-radius:var(--sbb-expansion-panel-border-radius)}.sbb-expansion-panel-header{--sbb-text-font-size: var(--sbb-font-size-
|
|
9
|
+
const _ = c`:host{display:block;--sbb-expansion-panel-header-cursor: var(--sbb-cursor-pointer);--sbb-expansion-panel-header-text-color: var(--sbb-color-2);--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-6x);--sbb-expansion-panel-header-justify-content: space-between;--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-responsive-xs);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-6x)}@media(forced-colors:active){:host{--sbb-expansion-panel-header-text-color: ButtonText}}:host([data-size=s]){--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-2x);--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-fixed-3x);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-5x)}:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-cursor: var(--sbb-cursor-default);--sbb-expansion-panel-header-text-color: var(--sbb-color-granite);--sbb-expansion-panel-header-text-color: light-dark( var(--sbb-color-granite), var(--sbb-color-storm) )}@media(forced-colors:active){:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-text-color: GrayText}}:host(:focus-visible){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x);border-radius:var(--sbb-expansion-panel-border-radius)}.sbb-expansion-panel-header{--sbb-text-font-size: var(--sbb-text-font-size-l);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;justify-content:var(--sbb-expansion-panel-header-justify-content);align-items:center;gap:var(--sbb-expansion-panel-header-gap);width:100%;padding:var(--sbb-expansion-panel-header-padding-block) var(--sbb-expansion-panel-header-padding-inline);text-align:start;cursor:var(--sbb-expansion-panel-header-cursor);color:var(--sbb-expansion-panel-header-text-color);-webkit-tap-highlight-color:transparent}.sbb-expansion-panel-header__title,.sbb-expansion-panel-header__toggle,.sbb-expansion-panel-header__icon{display:flex}.sbb-expansion-panel-header__icon{width:var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-width: var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-height: var(--sbb-expansion-panel-icon-size)}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-expansion-panel-header__icon{display:none}.sbb-expansion-panel-header__title{align-items:center;gap:var(--sbb-expansion-panel-title-gap);overflow:hidden;min-height:var(--sbb-size-icon-ui-medium)}.sbb-expansion-panel-header__toggle-icon{transition:transform var(--sbb-disable-animation-duration, var(--sbb-animation-duration-4x))}:host([aria-expanded]:not([aria-expanded=false])) .sbb-expansion-panel-header__toggle-icon{transform:rotate(-180deg)}`;
|
|
10
10
|
let j = (() => {
|
|
11
11
|
var e;
|
|
12
12
|
let l = [x("sbb-expansion-panel-header")], n, t = [], s, i = g(f(v));
|
package/file-selector/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbFileSelectorCommonElementMixin as m } from "./common/file-selector-common.js";
|
|
2
|
-
import { f as r } from "../file-selector-common-
|
|
2
|
+
import { f as r } from "../file-selector-common-DbYkpr-x.js";
|
|
3
3
|
export {
|
|
4
4
|
m as SbbFileSelectorCommonElementMixin,
|
|
5
5
|
r as fileSelectorCommonStyle
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
|
|
2
|
-
declare const SbbFileSelectorElement_base: import('../../core/mixins.
|
|
2
|
+
declare const SbbFileSelectorElement_base: import('../../core/mixins.ts').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* It allows to select one or more file from storage devices and display them.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
|
|
2
|
-
declare const SbbFileSelectorDropzoneElement_base: import('../../core/mixins.
|
|
2
|
+
declare const SbbFileSelectorDropzoneElement_base: import('../../core/mixins.ts').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* It allows to select one or more file from storage devices via button click or drag and drop, and display them.
|
|
5
5
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var d = (e, t, i) => t.has(e) ||
|
|
5
|
-
var u = (e, t, i) => (d(e, t, "read from private field"), i ? i.call(e) : t.get(e)),
|
|
4
|
+
var d = (e, t, i) => t.has(e) || m("Cannot " + i);
|
|
5
|
+
var u = (e, t, i) => (d(e, t, "read from private field"), i ? i.call(e) : t.get(e)), h = (e, t, i) => t.has(e) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), g = (e, t, i, s) => (d(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
6
6
|
import { __esDecorate as _, __runInitializers as n } from "tslib";
|
|
7
|
-
import { css as
|
|
7
|
+
import { css as z, LitElement as y } from "lit";
|
|
8
8
|
import { customElement as x, property as S } from "lit/decorators.js";
|
|
9
9
|
import { ref as C } from "lit/directives/ref.js";
|
|
10
10
|
import { html as k } from "lit/static-html.js";
|
|
@@ -14,14 +14,14 @@ import { boxSizingStyles as w } from "../../core/styles.js";
|
|
|
14
14
|
import { SbbFileSelectorCommonElementMixin as F, fileSelectorCommonStyle as L } from "../common.js";
|
|
15
15
|
import "../../button/secondary-button-static.js";
|
|
16
16
|
import "../../icon.js";
|
|
17
|
-
const I =
|
|
17
|
+
const I = z`.sbb-file-selector__dropzone-area{display:flex;flex-direction:column;align-items:center;padding:var(--sbb-spacing-responsive-s);background-color:var(--sbb-file-selector-background-color);border:var(--sbb-border-width-1x) dashed var(--sbb-file-selector-border-color);border-radius:var(--sbb-border-radius-4x);transition-duration:var(--sbb-file-selector-transition-duration);transition-timing-function:var(--sbb-file-selector-transition-easing-function);transition-property:background-color,border-color}.sbb-file-selector__dropzone-area--icon{color:var(--sbb-file-selector-color);line-height:0}.sbb-file-selector__dropzone-area--title{--sbb-title-font-size: var(--sbb-title-font-size-level-6-lean, var(--sbb-heading-font-size-6));--sbb-title-line-height: var(--sbb-typo-line-height-text);margin-block:var(--sbb-title-margin-block, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-heading));letter-spacing:var(--sbb-typo-letter-spacing-heading);font-size:var(--sbb-title-font-size);text-align:center;color:var(--sbb-file-selector-color)}.sbb-file-selector__dropzone-area--subtitle{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);text-align:center;color:var(--sbb-file-selector-subtitle-color);margin-block-end:var(--sbb-spacing-fixed-4x)}`;
|
|
18
18
|
let Q = (() => {
|
|
19
19
|
var a, o;
|
|
20
|
-
let e = [x("sbb-file-selector-dropzone")], t, i = [], s, b = F(
|
|
20
|
+
let e = [x("sbb-file-selector-dropzone")], t, i = [], s, b = F(y), c, f = [], p = [];
|
|
21
21
|
return o = class extends b {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
|
-
|
|
24
|
+
h(this, a, n(this, f, ""));
|
|
25
25
|
n(this, p);
|
|
26
26
|
}
|
|
27
27
|
/** The title displayed in `dropzone` variant. */
|
|
@@ -29,7 +29,7 @@ let Q = (() => {
|
|
|
29
29
|
return u(this, a);
|
|
30
30
|
}
|
|
31
31
|
set titleContent(r) {
|
|
32
|
-
|
|
32
|
+
g(this, a, r);
|
|
33
33
|
}
|
|
34
34
|
renderTemplate(r) {
|
|
35
35
|
return k`
|
|
@@ -64,7 +64,7 @@ let Q = (() => {
|
|
|
64
64
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
65
65
|
c = [$(), S({ attribute: "title-content" })], _(o, null, c, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (l) => "titleContent" in l, get: (l) => l.titleContent, set: (l, v) => {
|
|
66
66
|
l.titleContent = v;
|
|
67
|
-
} }, metadata: r },
|
|
67
|
+
} }, metadata: r }, f, p), _(null, t = { value: s }, e, { kind: "class", name: s.name, metadata: r }, null, i), s = t.value, r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
68
68
|
})(), o.styles = [w, L, I], o.events = {
|
|
69
69
|
filechanged: "filechanged"
|
|
70
70
|
}, n(s, i), s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
|
-
const r = e`:host{--sbb-file-selector-color: var(--sbb-color-2);--sbb-file-selector-subtitle-color: var(--sbb-color-granite);--sbb-file-selector-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-file-selector-background-color: var(--sbb-background-color-1);--sbb-file-selector-border-color: var(--sbb-border-color-4-inverted);--sbb-file-selector-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-file-selector-transition-easing-function: var(--sbb-animation-easing);display:block;width:20rem}@media(forced-colors:active){:host(:disabled){--sbb-file-selector-color: GrayText;--sbb-file-selector-subtitle-color: GrayText;--sbb-file-selector-border-color: GrayText}}:host(:is(:state(active),[state--active])){--sbb-file-selector-background-color: var(--sbb-background-color-3);--sbb-file-selector-border-color: var(--sbb-color-storm);--sbb-file-selector-border-color: light-dark(var(--sbb-color-storm), var(--sbb-color-anthracite))}@media(forced-colors:active){:host(:is(:state(active),[state--active])){--sbb-file-selector-border-color: Highlight}}.sbb-file-selector__input-container{-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}.sbb-file-selector__visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-file-selector__file-list{display:flex;flex-direction:column;row-gap:var(--sbb-spacing-fixed-3x);margin-block:0;padding-inline:0;padding-block:var(--sbb-spacing-fixed-6x) var(--sbb-spacing-fixed-1x)}.sbb-file-selector__file{--sbb-text-font-size: var(--sbb-font-size-
|
|
2
|
+
const r = e`:host{--sbb-file-selector-color: var(--sbb-color-2);--sbb-file-selector-subtitle-color: var(--sbb-color-granite);--sbb-file-selector-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-file-selector-background-color: var(--sbb-background-color-1);--sbb-file-selector-border-color: var(--sbb-border-color-4-inverted);--sbb-file-selector-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-file-selector-transition-easing-function: var(--sbb-animation-easing);display:block;width:20rem}@media(forced-colors:active){:host(:disabled){--sbb-file-selector-color: GrayText;--sbb-file-selector-subtitle-color: GrayText;--sbb-file-selector-border-color: GrayText}}:host(:is(:state(active),[state--active])){--sbb-file-selector-background-color: var(--sbb-background-color-3);--sbb-file-selector-border-color: var(--sbb-color-storm);--sbb-file-selector-border-color: light-dark(var(--sbb-color-storm), var(--sbb-color-anthracite))}@media(forced-colors:active){:host(:is(:state(active),[state--active])){--sbb-file-selector-border-color: Highlight}}.sbb-file-selector__input-container{-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}.sbb-file-selector__visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-file-selector__file-list{display:flex;flex-direction:column;row-gap:var(--sbb-spacing-fixed-3x);margin-block:0;padding-inline:0;padding-block:var(--sbb-spacing-fixed-6x) var(--sbb-spacing-fixed-1x)}.sbb-file-selector__file{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;gap:var(--sbb-spacing-fixed-4x);align-items:center;justify-content:space-between}.sbb-file-selector__file-details{display:flex;flex:1;justify-content:space-between;gap:var(--sbb-spacing-fixed-4x);overflow:auto}.sbb-file-selector__file-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-file-selector__file-size{white-space:nowrap;color:var(--sbb-color-metal);color:light-dark(var(--sbb-color-metal),var(--sbb-color-smoke))}:host(:not(:is(:state(slotted-error),[state--slotted-error]))) .sbb-file-selector__error{display:none}`;
|
|
3
3
|
export {
|
|
4
4
|
r as f
|
|
5
5
|
};
|
package/file-selector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbFileSelectorCommonElementMixin as r } from "./file-selector/common/file-selector-common.js";
|
|
2
|
-
import { f as t } from "./file-selector-common-
|
|
2
|
+
import { f as t } from "./file-selector-common-DbYkpr-x.js";
|
|
3
3
|
import { SbbFileSelectorDropzoneElement as S } from "./file-selector/file-selector-dropzone/file-selector-dropzone.component.js";
|
|
4
4
|
import { SbbFileSelectorElement as b } from "./file-selector/file-selector/file-selector.component.js";
|
|
5
5
|
export {
|