@sbb-esta/lyne-elements 3.0.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -4
- package/button/accent-button/accent-button.component.d.ts +2 -1
- package/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
- package/button/accent-button-static/accent-button-static.component.d.ts +2 -1
- package/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/button/button/button.component.d.ts +2 -1
- package/button/button/button.component.d.ts.map +1 -1
- package/button/button-link/button-link.component.d.ts +2 -1
- package/button/button-link/button-link.component.d.ts.map +1 -1
- package/button/button-static/button-static.component.d.ts +2 -1
- package/button/button-static/button-static.component.d.ts.map +1 -1
- package/button/common/button-common.d.ts +1 -0
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common/button-common.js +52 -28
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.d.ts +1 -0
- package/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/button/mini-button/mini-button.component.js +20 -14
- package/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/button.js +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.js +4 -4
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/core/a11y/live-announcer.d.ts.map +1 -1
- package/core/a11y/live-announcer.js +10 -8
- package/core/base-elements/link-base-element.d.ts +1 -0
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.js +18 -17
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/mixins/selection-panel-mixin.d.ts +23 -0
- package/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/core/mixins/selection-panel-mixin.js +87 -0
- package/core/mixins.d.ts +1 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +12 -10
- package/core/styles/_index.scss +1 -0
- package/core/styles/core.scss +44 -15
- package/core/styles/mixins/popover.scss +14 -0
- package/core.css +22 -1
- package/custom-elements.json +3603 -913
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
- package/development/button/accent-button/accent-button.component.d.ts +2 -1
- package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.d.ts +2 -1
- package/development/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.d.ts +2 -1
- package/development/button/button/button.component.d.ts.map +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.d.ts +2 -1
- package/development/button/button-link/button-link.component.d.ts.map +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.d.ts +2 -1
- package/development/button/button-static/button-static.component.d.ts.map +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.d.ts +1 -0
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common/button-common.js +42 -5
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.d.ts +1 -0
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/development/button/mini-button/mini-button.component.js +41 -2
- package/development/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/button.js +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.js +2 -2
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +1 -1
- package/development/core/a11y/live-announcer.d.ts.map +1 -1
- package/development/core/a11y/live-announcer.js +10 -6
- package/development/core/base-elements/link-base-element.d.ts +1 -0
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.js +3 -1
- 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/mixins/selection-panel-mixin.d.ts +23 -0
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/development/core/mixins/selection-panel-mixin.js +120 -0
- package/development/core/mixins.d.ts +1 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +7 -5
- package/development/dialog/dialog/dialog.component.d.ts +4 -2
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +61 -11
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +10 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +53 -0
- package/development/dialog/dialog-close-button.d.ts +5 -0
- package/development/dialog/dialog-close-button.d.ts.map +1 -0
- package/development/dialog/dialog-close-button.js +5 -0
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +6 -2
- package/development/dialog.d.ts +1 -0
- package/development/dialog.d.ts.map +1 -1
- package/development/dialog.js +3 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -2
- package/development/form-field/form-field/form-field.component.d.ts +23 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +39 -12
- package/development/form-field/form-field.js +2 -1
- package/development/form-field.js +2 -1
- package/development/header/header-environment/header-environment.component.d.ts +23 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/development/header/header-environment/header-environment.component.js +111 -0
- package/development/header/header-environment.d.ts +5 -0
- package/development/header/header-environment.d.ts.map +1 -0
- package/development/header/header-environment.js +5 -0
- package/development/menu/menu/menu.component.d.ts +1 -0
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +2 -2
- package/development/menu/menu-button/menu-button.component.d.ts +1 -0
- package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.component.js +2 -3
- package/development/menu/menu-link/menu-link.component.d.ts +1 -0
- package/development/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/development/menu/menu-link/menu-link.component.js +5 -1
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +8 -6
- package/development/option/option-hint/option-hint.component.d.ts +18 -0
- package/development/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/development/option/option-hint/option-hint.component.js +74 -0
- package/development/option/option-hint.d.ts +5 -0
- package/development/option/option-hint.d.ts.map +1 -0
- package/development/option/option-hint.js +5 -0
- package/development/option.d.ts +1 -0
- package/development/option.d.ts.map +1 -1
- package/development/option.js +4 -2
- package/development/overlay/overlay-base-element.d.ts +1 -0
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +3 -3
- package/development/popover/popover/popover.component.d.ts +18 -4
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +35 -30
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +7 -7
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +2 -2
- package/development/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/development/selection-action-panel/selection-action-panel.component.js +105 -0
- package/development/selection-action-panel.d.ts +5 -0
- package/development/selection-action-panel.d.ts.map +1 -0
- package/development/selection-action-panel.js +5 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +26 -106
- package/development/{transparent-button-Ddb_s0a0.js → transparent-button-Dun6bh2G.js} +89 -8
- package/dialog/dialog/dialog.component.d.ts +4 -2
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +63 -56
- package/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +13 -9
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/dialog/dialog-close-button/dialog-close-button.component.js +31 -0
- package/dialog/dialog-close-button.d.ts +5 -0
- package/dialog/dialog-close-button.d.ts.map +1 -0
- package/dialog/dialog-close-button.js +4 -0
- package/dialog/dialog-content/dialog-content.component.js +6 -6
- package/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.component.js +11 -8
- package/dialog.d.ts +1 -0
- package/dialog.d.ts.map +1 -1
- package/dialog.js +6 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +7 -7
- package/form-field/form-field/form-field.component.d.ts +23 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +52 -41
- package/form-field/form-field.js +3 -2
- package/form-field.js +5 -4
- package/header/header-environment/header-environment.component.d.ts +23 -0
- package/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/header/header-environment/header-environment.component.js +37 -0
- package/header/header-environment.d.ts +5 -0
- package/header/header-environment.d.ts.map +1 -0
- package/header/header-environment.js +4 -0
- package/index.d.ts +8 -0
- package/index.js +8 -0
- package/menu/menu/menu.component.d.ts +1 -0
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/menu/menu-button/menu-button.component.d.ts +1 -0
- package/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/menu/menu-button/menu-button.component.js +8 -8
- package/menu/menu-link/menu-link.component.d.ts +1 -0
- package/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/menu/menu-link/menu-link.component.js +9 -6
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +19 -17
- package/option/option-hint/option-hint.component.d.ts +18 -0
- package/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/option/option-hint/option-hint.component.js +27 -0
- package/option/option-hint.d.ts +5 -0
- package/option/option-hint.d.ts.map +1 -0
- package/option/option-hint.js +4 -0
- package/option.d.ts +1 -0
- package/option.d.ts.map +1 -1
- package/option.js +5 -3
- package/overlay/overlay-base-element.d.ts +1 -0
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay-base-element.js +21 -21
- package/package.json +23 -3
- package/popover/popover/popover.component.d.ts +18 -4
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +104 -95
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.component.js +9 -9
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +1 -1
- package/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/selection-action-panel/selection-action-panel.component.js +34 -0
- package/selection-action-panel.d.ts +5 -0
- package/selection-action-panel.d.ts.map +1 -0
- package/selection-action-panel.js +4 -0
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +45 -102
- package/standard-theme.css +22 -1
- package/transparent-button-rf30m88X.js +9 -0
- package/transparent-button-BlbvexCb.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAsB,gBAAgB,EAAwB,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAU5E;;;;;;;GAOG;AACH,qBAEM,sBAAsB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAC5E,gBAAgC,IAAI,gBAAqC;IACzE,SAAS,CAAC,SAAS,SAAkC;IACrD,SAAS,CAAC,SAAS,SAAa;IAChC,OAAO,CAAC,gBAAgB,CAAM;IAE9B,SAAS,KAAK,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAE7C;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;IAU9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBpE,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAStD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IAqB1D,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAUpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
|
|
@@ -17,7 +17,7 @@ let k = (() => {
|
|
|
17
17
|
super(), this.overlayId = `sbb-autocomplete-${++x}`, this.panelRole = "listbox", this._activeItemIndex = -1, this.addEventListener?.("optionselected", (t) => this.onOptionSelected(t));
|
|
18
18
|
}
|
|
19
19
|
syncNegative() {
|
|
20
|
-
this.querySelectorAll?.("sbb-divider").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-option, sbb-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
20
|
+
this.querySelectorAll?.("sbb-divider, sbb-option-hint").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-option, sbb-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
21
21
|
}
|
|
22
22
|
openedPanelKeyboardInteraction(t) {
|
|
23
23
|
if (this.state === "opened")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;GAOG;AACH,qBAEM,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAChF,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,OAAO,KAAK,IAAI,GAMf;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;GAOG;AACH,qBAEM,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAChF,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,OAAO,KAAK,IAAI,GAMf;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;IAY9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA0BpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IActD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IA8B1D,OAAO,CAAC,+BAA+B;IAsCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAkBpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as p, __runInitializers as v } from "tslib";
|
|
2
2
|
import { customElement as f } from "lit/decorators.js";
|
|
3
3
|
import { SbbAutocompleteBaseElement as g } from "../../autocomplete.js";
|
|
4
4
|
import { getNextElementIndex as u } from "../../core/a11y.js";
|
|
@@ -21,7 +21,7 @@ let O = (() => {
|
|
|
21
21
|
super(), this.overlayId = `sbb-autocomplete-grid-${++_}`, this.panelRole = "grid", this._activeItemIndex = -1, this._activeColumnIndex = 0, this.addEventListener?.("optionselected", (t) => this.onOptionSelected(t));
|
|
22
22
|
}
|
|
23
23
|
syncNegative() {
|
|
24
|
-
this.querySelectorAll?.("sbb-divider, sbb-autocomplete-grid-button").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-autocomplete-grid-row, sbb-autocomplete-grid-option, sbb-autocomplete-grid-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
24
|
+
this.querySelectorAll?.("sbb-divider, sbb-autocomplete-grid-button, sbb-option-hint").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-autocomplete-grid-row, sbb-autocomplete-grid-option, sbb-autocomplete-grid-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
25
25
|
}
|
|
26
26
|
openedPanelKeyboardInteraction(t) {
|
|
27
27
|
if (this.state === "opened")
|
|
@@ -90,8 +90,8 @@ let O = (() => {
|
|
|
90
90
|
}
|
|
91
91
|
}, o = r, (() => {
|
|
92
92
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
93
|
-
|
|
94
|
-
})(), r.role = m ? "grid" : null,
|
|
93
|
+
p(null, l = { value: o }, h, { kind: "class", name: o.name, metadata: t }, null, n), o = l.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
94
|
+
})(), r.role = m ? "grid" : null, v(o, n), o;
|
|
95
95
|
})();
|
|
96
96
|
export {
|
|
97
97
|
O as SbbAutocompleteGridElement
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonElement_base: import('../../core/mixins.js').Abstra
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'accent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonElement extends SbbAccentButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button/accent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"accent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button/accent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonLinkElement_base: import('../../core/mixins.js').Ab
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonLinkElement extends SbbAccentButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-link/accent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"accent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-link/accent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,0BAA2B,SAAQ,+BAExC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,wBAAwB,EAAE,0BAA0B,CAAC;KACtD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonStaticElement_base: import('../../core/mixins.js').
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'accent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonStaticElement extends SbbAccentButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-static/accent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"accent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-static/accent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,4BAA6B,SAAQ,iCAE1C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0BAA0B,EAAE,4BAA4B,CAAC;KAC1D;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonElement_base: import('../../core/mixins.js').AbstractCons
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonElement extends SbbButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,gBAAiB,SAAQ,qBAE9B;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonLinkElement_base: import('../../core/mixins.js').Abstract
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonLinkElement extends SbbButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-link/button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-link/button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonStaticElement_base: import('../../core/mixins.js').Abstra
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'primary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonStaticElement extends SbbButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-static/button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-static/button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -4,6 +4,7 @@ export type SbbButtonSize = 'l' | 'm' | 's';
|
|
|
4
4
|
declare const SbbButtonCommonElementMixinType_base: AbstractConstructor<import('../../core/mixins.js').SbbNegativeMixinType> & AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbActionBaseElement;
|
|
5
5
|
export declare class SbbButtonCommonElementMixinType extends SbbButtonCommonElementMixinType_base {
|
|
6
6
|
accessor size: SbbButtonSize;
|
|
7
|
+
accessor loading: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const SbbButtonCommonElementMixin: <T extends AbstractConstructor<SbbActionBaseElement>>(superClass: T) => AbstractConstructor<SbbButtonCommonElementMixinType> & T;
|
|
9
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/common/button-common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;;AAE5C,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,oCAE5D;IACC,SAAgB,IAAI,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"button-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/common/button-common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;;AAE5C,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,oCAE5D;IACC,SAAgB,IAAI,EAAE,aAAa,CAAC;IACpC,SAAgB,OAAO,EAAE,OAAO,CAAC;CAClC;AAGD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,oBAAoB,CAAC,EAC7F,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,CAyDzD,CAAC"}
|
|
@@ -1,51 +1,75 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
var I = (t, e, i) => e.has(t) || D("Cannot " + i);
|
|
5
|
+
var b = (t, e, i) => (I(t, e, "read from private field"), i ? i.call(t) : e.get(t)), u = (t, e, i) => e.has(t) ? D("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), h = (t, e, i, o) => (I(t, e, "write to private field"), o ? o.call(t, i) : e.set(t, i), i);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
+
import { nothing as C } from "lit";
|
|
8
|
+
import { property as B } from "lit/decorators.js";
|
|
9
|
+
import { html as w } from "lit/static-html.js";
|
|
10
|
+
import { hostAttributes as E, slotState as k, forceType as M } from "../../core/decorators.js";
|
|
11
|
+
import { isLean as T } from "../../core/dom.js";
|
|
12
|
+
import { SbbNegativeMixin as $ } from "../../core/mixins.js";
|
|
13
|
+
import { SbbIconNameMixin as j } from "../../icon.js";
|
|
14
|
+
const H = (t) => (() => {
|
|
15
|
+
var n, m, l;
|
|
16
|
+
let i = [E({
|
|
16
17
|
"data-sbb-button": ""
|
|
17
|
-
}),
|
|
18
|
-
return
|
|
18
|
+
}), k()], o, f = [], r, _ = $(j(t)), g, y = [], z = [], S, v = [], x = [];
|
|
19
|
+
return l = class extends _ {
|
|
19
20
|
constructor() {
|
|
20
21
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
m(this,
|
|
22
|
+
u(this, n, c(this, y, T() ? "s" : "l"));
|
|
23
|
+
u(this, m, (c(this, z), c(this, v, !1)));
|
|
24
|
+
c(this, x);
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Size variant, either l, m or s.
|
|
26
28
|
* @default 'l' / 's' (lean)
|
|
27
29
|
*/
|
|
28
30
|
get size() {
|
|
29
|
-
return
|
|
31
|
+
return b(this, n);
|
|
30
32
|
}
|
|
31
|
-
set size(
|
|
32
|
-
h(this,
|
|
33
|
+
set size(a) {
|
|
34
|
+
h(this, n, a);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Whether the button indicates a loading state.
|
|
38
|
+
* The animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.
|
|
39
|
+
*/
|
|
40
|
+
get loading() {
|
|
41
|
+
return b(this, m);
|
|
42
|
+
}
|
|
43
|
+
set loading(a) {
|
|
44
|
+
h(this, m, a);
|
|
45
|
+
}
|
|
46
|
+
willUpdate(a) {
|
|
47
|
+
if (super.willUpdate(a), a.has("loading"))
|
|
48
|
+
if (this.loading) {
|
|
49
|
+
this.internals.ariaBusy = "true", this.internals.ariaDisabled = "true";
|
|
50
|
+
const s = this.offsetWidth;
|
|
51
|
+
this.style?.setProperty("--sbb-button-width", `${s || 136}px`);
|
|
52
|
+
} else
|
|
53
|
+
this.internals.ariaBusy = null, this.style?.removeProperty("--sbb-button-width"), this.maybeDisabledInteractive || (this.internals.ariaDisabled = null);
|
|
33
54
|
}
|
|
34
55
|
renderTemplate() {
|
|
35
|
-
return
|
|
56
|
+
return w`
|
|
36
57
|
${super.renderIconSlot()}
|
|
37
58
|
<span class="sbb-button__label">
|
|
38
59
|
<slot></slot>
|
|
39
60
|
</span>
|
|
61
|
+
${this.loading && !this.maybeDisabled ? w`<div class="sbb-button-loading-border"></div>` : C}
|
|
40
62
|
`;
|
|
41
63
|
}
|
|
42
|
-
},
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} }, metadata:
|
|
47
|
-
|
|
64
|
+
}, n = new WeakMap(), m = new WeakMap(), r = l, (() => {
|
|
65
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
66
|
+
g = [B({ reflect: !0 })], S = [M(), B({ reflect: !0, type: Boolean })], p(l, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (s) => "size" in s, get: (s) => s.size, set: (s, d) => {
|
|
67
|
+
s.size = d;
|
|
68
|
+
} }, metadata: a }, y, z), p(l, null, S, { kind: "accessor", name: "loading", static: !1, private: !1, access: { has: (s) => "loading" in s, get: (s) => s.loading, set: (s, d) => {
|
|
69
|
+
s.loading = d;
|
|
70
|
+
} }, metadata: a }, v, x), p(null, o = { value: r }, i, { kind: "class", name: r.name, metadata: a }, null, f), r = o.value, a && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), c(r, f);
|
|
71
|
+
})(), r;
|
|
48
72
|
})();
|
|
49
73
|
export {
|
|
50
|
-
|
|
74
|
+
H as SbbButtonCommonElementMixin
|
|
51
75
|
};
|
package/button/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin as n } from "./common/button-common.js";
|
|
2
|
-
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-
|
|
2
|
+
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-rf30m88X.js";
|
|
3
3
|
export {
|
|
4
4
|
n as SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
|
@@ -5,6 +5,7 @@ declare const SbbMiniButtonElement_base: import('../../core/mixins.js').Abstract
|
|
|
5
5
|
* It displays an icon-only button enhanced with the SBB Design;
|
|
6
6
|
* it's meant to be used mainly within the sbb-form-field in prefix/suffix slot.
|
|
7
7
|
*
|
|
8
|
+
* @slot - Use the unnamed slot to add a label to the mini-button.
|
|
8
9
|
* @slot icon - Slot used to display the icon, if one is set
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbMiniButtonElement extends SbbMiniButtonElement_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAOnE;;;;;;GAMG;AACH,qBAGM,oBAAqB,SAAQ,yBAElC;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,cAAc,IAAI,cAAc;CAQpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as r, __runInitializers as s } from "tslib";
|
|
2
2
|
import { customElement as l } from "lit/decorators.js";
|
|
3
|
-
import {
|
|
3
|
+
import { html as d } from "lit/static-html.js";
|
|
4
|
+
import { SbbButtonBaseElement as u } from "../../core/base-elements.js";
|
|
4
5
|
import { slotState as c } from "../../core/decorators.js";
|
|
5
|
-
import { SbbDisabledTabIndexActionMixin as
|
|
6
|
-
import { SbbIconNameMixin as
|
|
7
|
-
import { css as
|
|
8
|
-
const
|
|
9
|
-
let
|
|
6
|
+
import { SbbDisabledTabIndexActionMixin as v, SbbNegativeMixin as m } from "../../core/mixins.js";
|
|
7
|
+
import { SbbIconNameMixin as h } from "../../icon.js";
|
|
8
|
+
import { css as p } from "lit";
|
|
9
|
+
const f = p`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;--sbb-mini-button-gap: .125rem;--sbb-mini-button-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-mini-button-label-display: block;--sbb-mini-button-label-height: var(--sbb-size-icon-ui-small)}:host(:where([data-slot-names~=icon],[icon-name]):not([data-slot-names~=unnamed])){--sbb-mini-button-padding-inline: 0;--sbb-mini-button-label-display: none;--sbb-mini-button-label-height: unset}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-mini-button{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-mini-button:before{position:absolute;content:"";inset:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}::slotted(sbb-icon),sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-mini-button{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-mini-button:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible)) .sbb-mini-button:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-focus-visible]){--sbb-focus-outline-style: initial}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-mini-button:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-mini-button:before{background-color:var(--sbb-button-color-active-background)}.sbb-mini-button{height:var(--sbb-mini-button-label-height);gap:var(--sbb-mini-button-gap);align-items:center;justify-content:center;padding-inline:var(--sbb-mini-button-padding-inline)}.sbb-mini-button__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:var(--sbb-mini-button-label-display);transition:translate var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);translate:0 var(--sbb-button-translate-y-content-hover, 0)}`;
|
|
10
|
+
let T = (() => {
|
|
10
11
|
var o;
|
|
11
|
-
let
|
|
12
|
-
return o = class extends
|
|
12
|
+
let e = [l("sbb-mini-button"), c()], a, i = [], t, n = v(m(h(u)));
|
|
13
|
+
return o = class extends n {
|
|
13
14
|
renderTemplate() {
|
|
14
|
-
return
|
|
15
|
+
return d`
|
|
16
|
+
${super.renderIconSlot()}
|
|
17
|
+
<span class="sbb-mini-button__label">
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</span>
|
|
20
|
+
`;
|
|
15
21
|
}
|
|
16
22
|
}, t = o, (() => {
|
|
17
|
-
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
18
|
-
|
|
19
|
-
})(), o.styles =
|
|
23
|
+
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
24
|
+
r(null, a = { value: t }, e, { kind: "class", name: t.name, metadata: b }, null, i), t = a.value, b && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
|
|
25
|
+
})(), o.styles = f, s(t, i), t;
|
|
20
26
|
})();
|
|
21
27
|
export {
|
|
22
|
-
|
|
28
|
+
T as SbbMiniButtonElement
|
|
23
29
|
};
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonElement_base: import('../../core/mixins.js').Abs
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'secondary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonElement extends SbbSecondaryButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button/secondary-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"secondary-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button/secondary-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,yBAA0B,SAAQ,8BAEvC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,sBAAsB,EAAE,yBAAyB,CAAC;KACnD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonLinkElement_base: import('../../core/mixins.js')
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonLinkElement extends SbbSecondaryButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-link/secondary-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"secondary-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-link/secondary-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,6BAA8B,SAAQ,kCAE3C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,2BAA2B,EAAE,6BAA6B,CAAC;KAC5D;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonStaticElement_base: import('../../core/mixins.js
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'secondary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonStaticElement extends SbbSecondaryButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-static/secondary-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"secondary-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-static/secondary-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,+BAAgC,SAAQ,oCAE7C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,6BAA6B,EAAE,+BAA+B,CAAC;KAChE;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonElement_base: import('../../core/mixins.js').A
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'transparent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonElement extends SbbTransparentButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button/transparent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE
|
|
1
|
+
{"version":3,"file":"transparent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button/transparent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE;;;;;;GAMG;AACH,qBAEM,2BAA4B,SAAQ,gCAEzC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,wBAAwB,EAAE,2BAA2B,CAAC;KACvD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonLinkElement_base: import('../../core/mixins.js
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'transparent' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonLinkElement extends SbbTransparentButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-link/transparent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAQjE
|
|
1
|
+
{"version":3,"file":"transparent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-link/transparent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAQjE;;;;;;GAMG;AACH,qBAEM,+BAAgC,SAAQ,oCAE7C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,6BAA6B,EAAE,+BAA+B,CAAC;KAChE;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonStaticElement_base: import('../../core/mixins.
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'transparent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonStaticElement extends SbbTransparentButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-static/transparent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE
|
|
1
|
+
{"version":3,"file":"transparent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-static/transparent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE;;;;;;GAMG;AACH,qBAEM,iCAAkC,SAAQ,sCAE/C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,+BAA+B,EAAE,iCAAiC,CAAC;KACpE;CACF"}
|
package/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SbbSecondaryButtonStaticElement as T } from "./button/secondary-button-
|
|
|
13
13
|
import { SbbAccentButtonStaticElement as C } from "./button/accent-button-static/accent-button-static.component.js";
|
|
14
14
|
import { SbbTransparentButtonStaticElement as P } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
15
15
|
import { SbbButtonCommonElementMixin as h } from "./button/common/button-common.js";
|
|
16
|
-
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-
|
|
16
|
+
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-rf30m88X.js";
|
|
17
17
|
export {
|
|
18
18
|
m as SbbAccentButtonElement,
|
|
19
19
|
s as SbbAccentButtonLinkElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAIpD;;;;;GAKG;AACH,qBAGM,uBAAwB,SAAQ,4BAA4B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,8CAA8C;IAC9C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA4B,IAAI,EAAE,eAAe,CAAyB;IAE1E,yDAAyD;IACzD,SACgB,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEhE,qFAAqF;IACrF,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D,2CAA2C;IAC3C,IAAW,UAAU,IAAI,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,EAAE,CAMxE;;IAOe,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc5E,OAAO,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAIpD;;;;;GAKG;AACH,qBAGM,uBAAwB,SAAQ,4BAA4B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,8CAA8C;IAC9C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA4B,IAAI,EAAE,eAAe,CAAyB;IAE1E,yDAAyD;IACzD,SACgB,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEhE,qFAAqF;IACrF,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D,2CAA2C;IAC3C,IAAW,UAAU,IAAI,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,EAAE,CAMxE;;IAOe,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc5E,OAAO,CAAC,cAAc;cA2BH,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
@@ -4,7 +4,7 @@ var C = (o) => {
|
|
|
4
4
|
var U = (o, i, r) => i.has(o) || C("Cannot " + r);
|
|
5
5
|
var m = (o, i, r) => (U(o, i, "read from private field"), r ? r.call(o) : i.get(o)), u = (o, i, r) => i.has(o) ? C("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(o) : i.set(o, r), x = (o, i, r, n) => (U(o, i, "write to private field"), n ? n.call(o, r) : i.set(o, r), r);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
-
import { css as L, LitElement as
|
|
7
|
+
import { css as L, LitElement as N, html as j } from "lit";
|
|
8
8
|
import { customElement as O, property as k } from "lit/decorators.js";
|
|
9
9
|
import { interactivityChecker as T, isArrowKeyPressed as B, getNextElementIndex as G } from "../../core/a11y.js";
|
|
10
10
|
import { slotState as M, forceType as V } from "../../core/decorators.js";
|
|
@@ -13,7 +13,7 @@ import { SbbDisabledMixin as J } from "../../core/mixins.js";
|
|
|
13
13
|
const Q = L`*,:before,:after{box-sizing:border-box}:host{--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto;--sbb-checkbox-group-width: max-content;--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);display:block}:host([orientation=vertical]){--sbb-checkbox-group-orientation: column;--sbb-checkbox-group-width: 100%;--sbb-checkbox-group-checkbox-width: 100%}:host([orientation=vertical]) ::slotted(sbb-checkbox-panel){width:100%}:host([data-has-panel]){--sbb-checkbox-group-width: 100%}:host([data-has-panel]) ::slotted(sbb-checkbox-panel){flex:auto}:host([data-has-panel][orientation=vertical]){--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x)}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=zero]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=zero]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=micro]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=micro]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=small]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=small]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=medium]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=medium]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=large]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=large]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=wide]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=wide]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=ultra]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=ultra]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}.sbb-checkbox-group{display:flex;flex-direction:var(--sbb-checkbox-group-orientation);gap:var(--sbb-checkbox-group-gap);align-items:flex-start;width:var(--sbb-checkbox-group-width)}.sbb-checkbox-group__error{display:inline-block;margin-block-start:var(--sbb-spacing-fixed-1x)}:host(:not([data-slot-names~=error])) .sbb-checkbox-group__error{display:none}::slotted(sbb-checkbox){width:var(--sbb-checkbox-group-checkbox-width)}`;
|
|
14
14
|
let ot = (() => {
|
|
15
15
|
var l, h, b, d, s;
|
|
16
|
-
let o = [O("sbb-checkbox-group"), M()], i, r = [], n, g = J(
|
|
16
|
+
let o = [O("sbb-checkbox-group"), M()], i, r = [], n, g = J(N), f, z = [], w = [], _, v = [], y = [], q, E = [], F = [], S, I = [], D = [];
|
|
17
17
|
return s = class extends g {
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
@@ -67,13 +67,13 @@ let ot = (() => {
|
|
|
67
67
|
_handleKeyDown(e) {
|
|
68
68
|
const t = this.checkboxes.filter((a) => !a.disabled && T.isVisible(a));
|
|
69
69
|
if (!(!t || // don't trap nested handling
|
|
70
|
-
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel") && B(e)) {
|
|
70
|
+
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel" && e.target.parentElement.localName !== "sbb-selection-action-panel") && B(e)) {
|
|
71
71
|
const a = t.findIndex((K) => K === e.target), A = G(e, a, t.length);
|
|
72
72
|
t[A]?.focus();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return
|
|
76
|
+
return j`
|
|
77
77
|
<div class="sbb-checkbox-group">
|
|
78
78
|
<slot></slot>
|
|
79
79
|
</div>
|
|
@@ -31,6 +31,9 @@ declare global {
|
|
|
31
31
|
interface HTMLElementTagNameMap {
|
|
32
32
|
'sbb-checkbox-panel': SbbCheckboxPanelElement;
|
|
33
33
|
}
|
|
34
|
+
interface GlobalEventHandlersEventMap {
|
|
35
|
+
statechange: CustomEvent<SbbStateChange>;
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
export {};
|
|
36
39
|
//# sourceMappingURL=checkbox-panel.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-panel/checkbox-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAElC,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,cAAc,EACd,sBAAsB,GAAG,qBAAqB,CAC/C,CAAC;;AAEF;;;;;;;;;;GAUG;AACH,qBAGM,uBAAuB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,4BAEjD;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;IAExF,iCAAiC;IACjC,SACgB,KAAK,EAAE,CAAC,GAAG,IAAI,CAAQ;IAEvC;;;OAGG;IACH,SAEgB,IAAI,EAAE,YAAY,CAAwB;IAE1D,OAAO,CAAC,oBAAoB;cAWT,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAkBzD,MAAM,IAAI,cAAc;CA8B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
1
|
+
{"version":3,"file":"checkbox-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-panel/checkbox-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAElC,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,cAAc,EACd,sBAAsB,GAAG,qBAAqB,CAC/C,CAAC;;AAEF;;;;;;;;;;GAUG;AACH,qBAGM,uBAAuB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,4BAEjD;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;IAExF,iCAAiC;IACjC,SACgB,KAAK,EAAE,CAAC,GAAG,IAAI,CAAQ;IAEvC;;;OAGG;IACH,SAEgB,IAAI,EAAE,YAAY,CAAwB;IAE1D,OAAO,CAAC,oBAAoB;cAWT,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAkBzD,MAAM,IAAI,cAAc;CA8B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;IAED,UAAU,2BAA2B;QACnC,WAAW,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;KAC1C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-announcer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/a11y/live-announcer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,gBAAgB,CAA4C;IACpE,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,eAAe,CAA2B;;
|
|
1
|
+
{"version":3,"file":"live-announcer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/a11y/live-announcer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,gBAAgB,CAA4C;IACpE,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,eAAe,CAA2B;;IAclD;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE/C;;;;;OAKG;IACI,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEhF;;;;;;;OAOG;IACI,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACI,QAAQ,CACb,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,kBAAkB,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;IAiDhB;;;;OAIG;IACI,KAAK,IAAI,IAAI;IAMb,OAAO,IAAI,IAAI;IAQtB,OAAO,CAAC,kBAAkB;CAqB3B;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAC"}
|