@sbb-esta/lyne-elements 2.2.0 → 2.3.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.
Files changed (184) hide show
  1. package/accordion.js +6 -6
  2. package/alert/alert-group.js +4 -4
  3. package/alert/alert.js +9 -9
  4. package/autocomplete-grid/autocomplete-grid-button.js +4 -4
  5. package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
  6. package/autocomplete-grid/autocomplete-grid-row.js +4 -4
  7. package/autocomplete.js +1 -1
  8. package/badge.css +31 -0
  9. package/breadcrumb/breadcrumb-group.js +4 -4
  10. package/breadcrumb/breadcrumb.js +19 -19
  11. package/button/accent-button-link.js +9 -9
  12. package/button/accent-button-static.js +6 -6
  13. package/button/accent-button.js +6 -6
  14. package/button/button-link.js +7 -7
  15. package/button/button-static.js +7 -7
  16. package/button/button.js +8 -8
  17. package/button/common.js +1 -1
  18. package/button/mini-button-group.js +8 -8
  19. package/button/secondary-button-link.js +7 -7
  20. package/button/secondary-button-static.js +7 -7
  21. package/button/secondary-button.js +3 -3
  22. package/button/transparent-button-link.js +6 -6
  23. package/button/transparent-button-static.js +5 -5
  24. package/button/transparent-button.js +6 -6
  25. package/calendar.js +1 -1
  26. package/card/card-badge.js +9 -9
  27. package/card/card-button.js +5 -5
  28. package/card/card-link.js +7 -7
  29. package/card/card.js +1 -1
  30. package/checkbox/checkbox-panel.js +16 -16
  31. package/checkbox/checkbox.js +15 -15
  32. package/checkbox/common.js +3 -3
  33. package/clock.js +8 -8
  34. package/container/container.js +4 -4
  35. package/core/base-elements.js +10 -10
  36. package/core/controllers.js +4 -4
  37. package/core/datetime.js +6 -6
  38. package/core/eventing.js +4 -4
  39. package/core/i18n/i18n.d.ts +2 -0
  40. package/core/i18n/i18n.d.ts.map +1 -1
  41. package/core/i18n.js +43 -31
  42. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  43. package/core/mixins/form-associated-mixin.d.ts +3 -0
  44. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  45. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  46. package/core/mixins.js +342 -248
  47. package/core/styles/badge.scss +3 -0
  48. package/core/styles/mixins/badge.scss +26 -1
  49. package/core/styles/mixins/font-face.scss +12 -12
  50. package/core/styles/mixins/link.scss +32 -8
  51. package/core/styles/standard-theme.scss +1 -0
  52. package/core/testing.js +14 -14
  53. package/core.css +3 -3
  54. package/custom-elements.json +7323 -169
  55. package/datepicker/datepicker-toggle.js +14 -14
  56. package/development/alert/alert-group.js +1 -1
  57. package/development/alert/alert.js +1 -1
  58. package/development/autocomplete.js +1 -1
  59. package/development/breadcrumb/breadcrumb.js +5 -2
  60. package/development/button/common.js +18 -14
  61. package/development/calendar.js +1 -1
  62. package/development/card/card.js +1 -1
  63. package/development/checkbox/checkbox-panel.js +1 -1
  64. package/development/core/i18n/i18n.d.ts +2 -0
  65. package/development/core/i18n/i18n.d.ts.map +1 -1
  66. package/development/core/i18n.js +15 -1
  67. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  68. package/development/core/mixins/form-associated-mixin.d.ts +3 -0
  69. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  70. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  71. package/development/core/mixins.js +159 -22
  72. package/development/datepicker/datepicker-toggle.js +1 -1
  73. package/development/dialog/dialog-title.js +1 -1
  74. package/development/expansion-panel/expansion-panel-header.js +1 -1
  75. package/development/expansion-panel/expansion-panel.js +1 -1
  76. package/development/file-selector/common.js +1 -1
  77. package/development/footer.js +1 -1
  78. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  79. package/development/form-field/form-field.js +5 -2
  80. package/development/image.js +1 -1
  81. package/development/journey-header.js +1 -1
  82. package/development/link/common.js +19 -7
  83. package/development/link-list/common.js +1 -1
  84. package/development/map-container.js +1 -1
  85. package/development/menu/common/menu-action-common.d.ts +3 -0
  86. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  87. package/development/menu/common.js +35 -12
  88. package/development/navigation/navigation-section.js +1 -1
  89. package/development/notification.js +1 -1
  90. package/development/overlay.js +1 -1
  91. package/development/radio-button/radio-button-panel.js +1 -1
  92. package/development/select/select.d.ts +4 -1
  93. package/development/select/select.d.ts.map +1 -1
  94. package/development/select.js +22 -4
  95. package/development/skiplink-list.js +1 -1
  96. package/development/slider.js +1 -1
  97. package/development/tabs/tab-label.js +1 -1
  98. package/development/timetable-occupancy.js +1 -1
  99. package/development/toast.js +1 -1
  100. package/development/toggle/toggle/toggle.d.ts +25 -6
  101. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  102. package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
  103. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  104. package/development/toggle/toggle-option.js +21 -39
  105. package/development/toggle/toggle.js +57 -39
  106. package/development/train/train-formation.js +1 -1
  107. package/development/train/train.js +1 -1
  108. package/development/visual-checkbox.js +1 -1
  109. package/dialog/dialog-content.js +3 -3
  110. package/dialog/dialog-title.js +8 -8
  111. package/divider.js +12 -12
  112. package/expansion-panel/expansion-panel-header.js +1 -1
  113. package/expansion-panel/expansion-panel.js +1 -1
  114. package/file-selector/common.js +9 -9
  115. package/file-selector/file-selector-dropzone.js +5 -5
  116. package/file-selector/file-selector.js +6 -6
  117. package/flip-card/flip-card-details.js +4 -4
  118. package/flip-card/flip-card-summary.js +9 -9
  119. package/font-characters-extension.css +3 -3
  120. package/footer.js +4 -4
  121. package/form-field/form-field/form-field.d.ts.map +1 -1
  122. package/form-field/form-field.js +7 -5
  123. package/header/header-button.js +5 -5
  124. package/header/header-link.js +5 -5
  125. package/icon.js +36 -36
  126. package/image.js +1 -1
  127. package/journey-header.js +5 -5
  128. package/link/block-link-button.js +4 -4
  129. package/link/block-link-static.js +9 -9
  130. package/link/block-link.js +4 -4
  131. package/link/common.js +28 -28
  132. package/link/link-button.js +7 -7
  133. package/link/link-static.js +7 -7
  134. package/link/link.js +4 -4
  135. package/link-list/common.js +15 -15
  136. package/loading-indicator-circle.js +11 -11
  137. package/map-container.js +5 -5
  138. package/menu/common/menu-action-common.d.ts +3 -0
  139. package/menu/common/menu-action-common.d.ts.map +1 -1
  140. package/menu/common.js +34 -30
  141. package/menu/menu-button.js +8 -8
  142. package/menu/menu-link.js +6 -6
  143. package/menu/menu.js +7 -7
  144. package/navigation/navigation-button.js +4 -4
  145. package/navigation/navigation-link.js +7 -7
  146. package/navigation/navigation-list.js +4 -4
  147. package/navigation/navigation-marker.js +3 -3
  148. package/navigation/navigation-section.js +1 -1
  149. package/notification.js +18 -18
  150. package/option/optgroup.js +11 -11
  151. package/overlay.js +14 -14
  152. package/package.json +6 -2
  153. package/paginator/common.js +6 -6
  154. package/popover/popover.js +13 -13
  155. package/radio-button/radio-button-panel.js +6 -6
  156. package/screen-reader-only.js +5 -5
  157. package/select/select.d.ts +4 -1
  158. package/select/select.d.ts.map +1 -1
  159. package/select.js +35 -28
  160. package/skiplink-list.js +3 -3
  161. package/slider.js +13 -13
  162. package/standard-theme.css +35 -3
  163. package/status.js +3 -3
  164. package/stepper/step-label.js +4 -4
  165. package/table/table-wrapper.js +4 -4
  166. package/tabs/tab-group.js +24 -24
  167. package/tabs/tab-label.js +1 -1
  168. package/tabs/tab.js +4 -4
  169. package/tag/tag-group.js +7 -7
  170. package/teaser-product/common.js +5 -5
  171. package/teaser-product/teaser-product-static.js +2 -2
  172. package/timetable-occupancy-icon.js +3 -3
  173. package/timetable-occupancy.js +6 -6
  174. package/toast.js +5 -5
  175. package/toggle/toggle/toggle.d.ts +25 -6
  176. package/toggle/toggle/toggle.d.ts.map +1 -1
  177. package/toggle/toggle-option/toggle-option.d.ts +2 -6
  178. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  179. package/toggle/toggle-option.js +44 -52
  180. package/toggle/toggle.js +103 -83
  181. package/toggle-check.js +5 -5
  182. package/train/train-formation.js +1 -1
  183. package/train/train.js +29 -29
  184. package/visual-checkbox.js +1 -1
package/tabs/tab-group.js CHANGED
@@ -1,8 +1,8 @@
1
- var I = (a) => {
2
- throw TypeError(a);
1
+ var I = (n) => {
2
+ throw TypeError(n);
3
3
  };
4
- var S = (a, r, l) => r.has(a) || I("Cannot " + l);
5
- var y = (a, r, l) => (S(a, r, "read from private field"), l ? l.call(a) : r.get(a)), z = (a, r, l) => r.has(a) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, l), _ = (a, r, l, c) => (S(a, r, "write to private field"), c ? c.call(a, l) : r.set(a, l), l);
4
+ var S = (n, r, l) => r.has(n) || I("Cannot " + l);
5
+ var y = (n, r, l) => (S(n, r, "read from private field"), l ? l.call(n) : r.get(n)), z = (n, r, l) => r.has(n) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, l), _ = (n, r, l, c) => (S(n, r, "write to private field"), c ? c.call(n, l) : r.set(n, l), l);
6
6
  import { __esDecorate as m, __runInitializers as h } from "tslib";
7
7
  import { MutationController as w } from "@lit-labs/observers/mutation-controller.js";
8
8
  import { ResizeController as E } from "@lit-labs/observers/resize-controller.js";
@@ -20,13 +20,13 @@ const F = k`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-group-animati
20
20
  };
21
21
  let B = 0, ot = (() => {
22
22
  var b, d;
23
- let a = [$("sbb-tab-group")], r, l = [], c, p = U(R), v = [], g, A, x = [], T = [];
24
- var f = (d = class extends p {
23
+ let n = [$("sbb-tab-group")], r, l = [], c, v = U(R), p = [], g, A, x = [], T = [];
24
+ var f = (d = class extends v {
25
25
  constructor() {
26
26
  var t;
27
27
  super();
28
28
  z(this, b);
29
- this._tabs = (h(this, v), []), this._tabAttributeObserver = new w(this, {
29
+ this._tabs = (h(this, p), []), this._tabAttributeObserver = new w(this, {
30
30
  target: null,
31
31
  config: W,
32
32
  callback: (e) => this._onTabAttributesChange(e)
@@ -39,15 +39,15 @@ let B = 0, ot = (() => {
39
39
  skipInitial: !0,
40
40
  callback: (e) => this._onTabContentElementResize(e)
41
41
  }), this._size = P() ? "s" : "l", _(this, b, h(this, x, 0)), this._selectedTabChanged = (h(this, T), new j(this, f.events.didChange)), this._onContentSlotChange = () => {
42
- var i, n;
42
+ var i, a;
43
43
  this._tabContentElement = this.shadowRoot.querySelector("div.tab-content");
44
44
  const e = this._getTabs().filter((s) => !this._tabs.includes(s));
45
- e.length && (e.forEach((s) => this._configure(s)), this._tabs = this._tabs.concat(e), (n = (i = e.find((s) => s.active)) == null ? void 0 : i.tabGroupActions) == null || n.select());
45
+ e.length && (e.forEach((s) => this._configure(s)), this._tabs = this._tabs.concat(e), (a = (i = e.find((s) => s.active)) == null ? void 0 : i.tabGroupActions) == null || a.select());
46
46
  }, this._onTabsSlotChange = () => {
47
47
  const e = this._getTabs();
48
- e.length < this._tabs.length && (this._tabs.filter((n) => !e.includes(n)).forEach((n) => {
48
+ e.length < this._tabs.length && (this._tabs.filter((a) => !e.includes(a)).forEach((a) => {
49
49
  var s;
50
- (s = n.tab) == null || s.remove();
50
+ (s = a.tab) == null || s.remove();
51
51
  }), this._tabs = e), this._tabs.forEach((i) => i.setAttribute("data-size", this.size));
52
52
  }, (t = this.addEventListener) == null || t.call(this, "keydown", (e) => this._handleKeyDown(e));
53
53
  }
@@ -116,19 +116,19 @@ let B = 0, ot = (() => {
116
116
  this.initialSelectedIndex >= 0 && this.initialSelectedIndex < this._tabs.length && !this._tabs[this.initialSelectedIndex].disabled ? (t = this._tabs[this.initialSelectedIndex].tabGroupActions) == null || t.select() : (i = (e = this._enabledTabs()[0]) == null ? void 0 : e.tabGroupActions) == null || i.select();
117
117
  }
118
118
  _onTabAttributesChange(t) {
119
- var e, i, n;
119
+ var e, i, a;
120
120
  for (const s of t) {
121
121
  if (s.type !== "attributes")
122
122
  return;
123
123
  const o = s.target;
124
- s.attributeName === "disabled" && (o.hasAttribute("disabled") && o !== this._selectedTab ? (e = o.tabGroupActions) == null || e.disable() : o.disabled && ((i = o.tabGroupActions) == null || i.enable())), s.attributeName === "active" && (o.hasAttribute("active") && !o.disabled ? (n = o.tabGroupActions) == null || n.select() : o === this._selectedTab && o.toggleAttribute("active", !0));
124
+ s.attributeName === "disabled" && (o.hasAttribute("disabled") && o !== this._selectedTab ? (e = o.tabGroupActions) == null || e.disable() : o.disabled && ((i = o.tabGroupActions) == null || i.enable())), s.attributeName === "active" && (o.hasAttribute("active") && !o.disabled ? (a = o.tabGroupActions) == null || a.select() : o === this._selectedTab && o.toggleAttribute("active", !0));
125
125
  }
126
126
  }
127
127
  _onTabGroupElementResize(t) {
128
128
  for (const e of t) {
129
129
  const i = e.target.firstElementChild.assignedElements();
130
- for (const n of i)
131
- n.toggleAttribute("data-has-divider", n === i[0] || n.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
130
+ for (const a of i)
131
+ a.toggleAttribute("data-has-divider", a === i[0] || a.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
132
132
  }
133
133
  }
134
134
  _onTabContentElementResize(t) {
@@ -150,17 +150,17 @@ let B = 0, ot = (() => {
150
150
  t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active");
151
151
  },
152
152
  disable: () => {
153
- var i, n, s;
154
- t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, (s = (n = this._enabledTabs()[0]) == null ? void 0 : n.tabGroupActions) == null || s.select()));
153
+ var i, a, s;
154
+ t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, (s = (a = this._enabledTabs()[0]) == null ? void 0 : a.tabGroupActions) == null || s.select()));
155
155
  },
156
156
  enable: () => {
157
157
  t.disabled && (t.removeAttribute("disabled"), t.disabled = !1);
158
158
  },
159
159
  select: () => {
160
- var i, n;
160
+ var i, a;
161
161
  if (t !== this._selectedTab && !t.disabled) {
162
162
  const s = this._selectedTab;
163
- s && ((i = s.tabGroupActions) == null || i.deactivate(), this._tabContentResizeObserver.unobserve(s.tab)), (n = t.tabGroupActions) == null || n.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
163
+ s && ((i = s.tabGroupActions) == null || i.deactivate(), this._tabContentResizeObserver.unobserve(s.tab)), (a = t.tabGroupActions) == null || a.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
164
164
  const o = this._tabs;
165
165
  this._selectedTabChanged.emit({
166
166
  activeIndex: o.findIndex((u) => u === t),
@@ -178,12 +178,12 @@ let B = 0, ot = (() => {
178
178
  }), t.tab && (t.setAttribute("aria-controls", t.tab.id), t.tab.setAttribute("role", "tabpanel"), t.tab.toggleAttribute("active", t.active)), this._tabAttributeObserver.observe(t), t.slot = "tab-bar";
179
179
  }
180
180
  _handleKeyDown(t) {
181
- var i, n, s;
181
+ var i, a, s;
182
182
  const e = this._enabledTabs();
183
183
  if (!(!e || // don't trap nested handling
184
184
  t.target !== this && t.target.parentElement !== this) && N(t)) {
185
185
  const o = e.findIndex((G) => G.active), u = K(t, o, e.length);
186
- (n = (i = e[u]) == null ? void 0 : i.tabGroupActions) == null || n.select(), (s = e[u]) == null || s.focus(), t.preventDefault();
186
+ (a = (i = e[u]) == null ? void 0 : i.tabGroupActions) == null || a.select(), (s = e[u]) == null || s.focus(), t.preventDefault();
187
187
  }
188
188
  }
189
189
  render() {
@@ -202,12 +202,12 @@ let B = 0, ot = (() => {
202
202
  `;
203
203
  }
204
204
  }, b = new WeakMap(), c = d, (() => {
205
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
205
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
206
206
  g = [C()], A = [M(), C({ attribute: "initial-selected-index", type: Number })], m(d, null, g, { kind: "setter", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, set: (e, i) => {
207
207
  e.size = i;
208
- } }, metadata: t }, null, v), m(d, null, A, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
208
+ } }, metadata: t }, null, p), m(d, null, A, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
209
209
  e.initialSelectedIndex = i;
210
- } }, metadata: t }, x, T), m(null, r = { value: c }, a, { kind: "class", name: c.name, metadata: t }, null, l), f = c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
210
+ } }, metadata: t }, x, T), m(null, r = { value: c }, n, { kind: "class", name: c.name, metadata: t }, null, l), f = c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
211
211
  })(), d.styles = F, d.events = {
212
212
  didChange: "didChange"
213
213
  }, h(c, l), d);
package/tabs/tab-label.js CHANGED
@@ -6,7 +6,7 @@ var m = (t, e, o) => (I(t, e, "read from private field"), o ? o.call(t) : e.get(
6
6
  import { __esDecorate as h, __runInitializers as i } from "tslib";
7
7
  import { css as D, LitElement as G } from "lit";
8
8
  import { customElement as M, property as u } from "lit/decorators.js";
9
- import { html as N, unsafeStatic as E } from "lit/static-html.js";
9
+ import { unsafeStatic as E, html as N } from "lit/static-html.js";
10
10
  import { slotState as j, forceType as $, omitEmptyConverter as A } from "../core/decorators.js";
11
11
  import { SbbDisabledMixin as L } from "../core/mixins.js";
12
12
  import { SbbIconNameMixin as O } from "../icon.js";
package/tabs/tab.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { __esDecorate as o, __runInitializers as b } from "tslib";
2
- import { css as n, LitElement as c, html as u } from "lit";
3
- import { customElement as m } from "lit/decorators.js";
2
+ import { css as n, LitElement as c, html as m } from "lit";
3
+ import { customElement as u } from "lit/decorators.js";
4
4
  const d = n`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{display:block}:host:after,:host:before{content:" ";display:block;visibility:hidden;height:0;overflow:hidden}`;
5
5
  let p = (() => {
6
6
  var l;
7
- let r = [m("sbb-tab")], a, s = [], t, i = c;
7
+ let r = [u("sbb-tab")], a, s = [], t, i = c;
8
8
  return l = class extends i {
9
9
  constructor() {
10
10
  super(...arguments), this._label = null;
@@ -24,7 +24,7 @@ let p = (() => {
24
24
  this._label = this._getTabLabel();
25
25
  }
26
26
  render() {
27
- return u`
27
+ return m`
28
28
  <div class="sbb-tab">
29
29
  <slot></slot>
30
30
  </div>
package/tag/tag-group.js CHANGED
@@ -2,8 +2,8 @@ var O = (i) => {
2
2
  throw TypeError(i);
3
3
  };
4
4
  var D = (i, l, a) => l.has(i) || O("Cannot " + a);
5
- var f = (i, l, a) => (D(i, l, "read from private field"), a ? a.call(i) : l.get(i)), _ = (i, l, a) => l.has(i) ? O("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(i) : l.set(i, a), o = (i, l, a, c) => (D(i, l, "write to private field"), c ? c.call(i, a) : l.set(i, a), a);
6
- import { __runInitializers as n, __esDecorate as p } from "tslib";
5
+ var f = (i, l, a) => (D(i, l, "read from private field"), a ? a.call(i) : l.get(i)), _ = (i, l, a) => l.has(i) ? O("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(i) : l.set(i, a), n = (i, l, a, c) => (D(i, l, "write to private field"), c ? c.call(i, a) : l.set(i, a), a);
6
+ import { __runInitializers as o, __esDecorate as p } from "tslib";
7
7
  import { css as U, LitElement as j, isServer as N, html as q } from "lit";
8
8
  import { customElement as C, property as d } from "lit/decorators.js";
9
9
  import { forceType as T } from "../core/decorators.js";
@@ -19,7 +19,7 @@ let X = (() => {
19
19
  _(this, u);
20
20
  _(this, b);
21
21
  _(this, h);
22
- this.listChildLocalNames = (n(this, g), ["sbb-tag", "div"]), o(this, u, n(this, z, "")), o(this, b, (n(this, v), n(this, x, !1))), o(this, h, (n(this, k), n(this, E, B() ? "s" : "m"))), this._value = (n(this, w), null);
22
+ this.listChildLocalNames = (o(this, g), ["sbb-tag", "div"]), n(this, u, o(this, z, "")), n(this, b, (o(this, v), o(this, x, !1))), n(this, h, (o(this, k), o(this, E, B() ? "s" : "m"))), this._value = (o(this, w), null);
23
23
  }
24
24
  /**
25
25
  * This will be forwarded as aria-label to the inner list.
@@ -28,7 +28,7 @@ let X = (() => {
28
28
  return f(this, u);
29
29
  }
30
30
  set listAccessibilityLabel(t) {
31
- o(this, u, t);
31
+ n(this, u, t);
32
32
  }
33
33
  /**
34
34
  * If set multiple to false, the selection is exclusive and the value is a string (or null).
@@ -40,7 +40,7 @@ let X = (() => {
40
40
  return f(this, b);
41
41
  }
42
42
  set multiple(t) {
43
- o(this, b, t);
43
+ n(this, b, t);
44
44
  }
45
45
  /**
46
46
  * Tag group size, either s or m.
@@ -50,7 +50,7 @@ let X = (() => {
50
50
  return f(this, h);
51
51
  }
52
52
  set size(t) {
53
- o(this, h, t);
53
+ n(this, h, t);
54
54
  }
55
55
  /**
56
56
  * Value of the sbb-tag-group.
@@ -110,7 +110,7 @@ let X = (() => {
110
110
  } }, metadata: t }, E, w), p(r, null, I, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, set: (e, s) => {
111
111
  e.value = s;
112
112
  } }, metadata: t }, null, g), p(null, l = { value: c }, i, { kind: "class", name: c.name, metadata: t }, null, a), c = l.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
113
- })(), r.styles = M, n(c, a), c;
113
+ })(), r.styles = M, o(c, a), c;
114
114
  })();
115
115
  export {
116
116
  X as SbbTagGroupElement
@@ -3,19 +3,19 @@ var m = (t) => {
3
3
  };
4
4
  var v = (t, e, r) => e.has(t) || m("Cannot " + r);
5
5
  var f = (t, e, r) => (v(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? m("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), h = (t, e, r, i) => (v(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
6
- import { __esDecorate as k, __runInitializers as d } from "tslib";
6
+ import { __esDecorate as k, __runInitializers as c } from "tslib";
7
7
  import { html as y, css as S } from "lit";
8
8
  import { property as w } from "lit/decorators.js";
9
9
  import { slotState as A } from "../core/decorators.js";
10
10
  import { SbbNegativeMixin as z } from "../core/mixins.js";
11
11
  const M = (t) => (() => {
12
12
  var b, a;
13
- let r = [A()], i, c = [], o, l = z(t), u, p = [], g = [];
13
+ let r = [A()], i, d = [], o, l = z(t), u, p = [], g = [];
14
14
  return a = class extends l {
15
15
  constructor() {
16
16
  super(...arguments);
17
- _(this, b, d(this, p, "after"));
18
- d(this, g);
17
+ _(this, b, c(this, p, "after"));
18
+ c(this, g);
19
19
  }
20
20
  /**
21
21
  * Whether the fully visible part of the image is aligned 'before' or 'after' the content.
@@ -46,7 +46,7 @@ const M = (t) => (() => {
46
46
  const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
47
47
  u = [w({ attribute: "image-alignment", reflect: !0 })], k(a, null, u, { kind: "accessor", name: "imageAlignment", static: !1, private: !1, access: { has: (n) => "imageAlignment" in n, get: (n) => n.imageAlignment, set: (n, x) => {
48
48
  n.imageAlignment = x;
49
- } }, metadata: s }, p, g), k(null, i = { value: o }, r, { kind: "class", name: o.name, metadata: s }, null, c), o = i.value, s && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), d(o, c);
49
+ } }, metadata: s }, p, g), k(null, i = { value: o }, r, { kind: "class", name: o.name, metadata: s }, null, d), o = i.value, s && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), c(o, d);
50
50
  })(), o;
51
51
  })(), O = S`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-teaser-product-background-color: var(--sbb-color-cloud);--sbb-teaser-product-background-gradient-direction: to right;--sbb-teaser-product-background: var(--sbb-teaser-product-background-color);--sbb-teaser-product-border-radius: var(--sbb-border-radius-4x);--sbb-teaser-product-content-color: var(--sbb-color-iron);--sbb-teaser-product-footer-color: var(--sbb-color-anthracite);--sbb-teaser-product-container-padding-block: var(--sbb-spacing-responsive-l);--sbb-teaser-product-min-height: 37.5rem;--sbb-teaser-product-background-gradient-start: 25%;--sbb-teaser-product-background-gradient-end: 75%}@media (min-width: 64rem){:host{--sbb-teaser-product-background: linear-gradient( var(--sbb-teaser-product-background-gradient-direction), var(--sbb-teaser-product-background-color) var(--sbb-teaser-product-background-gradient-start), transparent var(--sbb-teaser-product-background-gradient-end) )}}:host([negative]){--sbb-teaser-product-background-color: var(--sbb-color-midnight);--sbb-teaser-product-content-color: var(--sbb-color-cloud);--sbb-teaser-product-footer-color: var(--sbb-color-cloud);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-title-text-color-normal-override: var(--sbb-color-milk)}:host([image-alignment=before]){--sbb-teaser-product-background-gradient-direction: to left}.sbb-teaser-product__image-container{overflow:hidden;border-radius:var(--sbb-teaser-product-border-radius) var(--sbb-teaser-product-border-radius) 0 0}@media (min-width: 64rem){.sbb-teaser-product__image-container{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-teaser-product-border-radius)}}::slotted(p.sbb-teaser-product--spacing){margin:0}::slotted(sbb-title.sbb-teaser-product--spacing){--sbb-title-margin-block-start: 0}::slotted(:is(sbb-action-group,[data-action]).sbb-teaser-product--spacing){margin-block-start:var(--sbb-spacing-responsive-xxs)}::slotted([slot=image]){display:flex;width:100%;height:100%}@media (forced-colors: active){.sbb-teaser-product__root:after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-border-width-2x) solid CanvasText;border-radius:var(--sbb-teaser-product-border-radius)}}.sbb-action-base{display:block;position:relative;text-decoration:none}.sbb-teaser-product__container{background:var(--sbb-teaser-product-background);border-radius:0 0 var(--sbb-teaser-product-border-radius) var(--sbb-teaser-product-border-radius);padding:var(--sbb-spacing-responsive-s)}@media (min-width: 64rem){.sbb-teaser-product__container{display:grid;grid:"content ." 1fr "footnote ." auto/1fr 1fr;column-gap:var(--sbb-spacing-responsive-xxl);background:var(--sbb-teaser-product-background);border-radius:var(--sbb-teaser-product-border-radius);padding-block:var(--sbb-teaser-product-container-padding-block) 0;padding-inline:var(--sbb-spacing-responsive-xl);position:relative}:host([image-alignment=before]) .sbb-teaser-product__container{grid-template-areas:". content" ". footnote"}}.sbb-teaser-product__content{grid-area:content;align-self:center;margin:0;color:var(--sbb-teaser-product-content-color)}@media (min-width: 64rem){.sbb-teaser-product__content{align-content:center;min-height:calc(var(--sbb-teaser-product-min-height) - 2 * var(--sbb-teaser-product-container-padding-block))}}.sbb-teaser-product__footnote{grid-area:footnote;padding-block-start:var(--sbb-spacing-responsive-s);color:var(--sbb-teaser-product-footer-color);--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)}:host(:not([data-slot-names~=footnote])) .sbb-teaser-product__footnote{padding-block-start:0}@media (min-width: 64rem){.sbb-teaser-product__footnote{min-height:var(--sbb-teaser-product-container-padding-block);padding-block:var(--sbb-spacing-responsive-xs)}}`;
52
52
  export {
@@ -2,7 +2,7 @@ import { __esDecorate as i, __runInitializers as m } from "tslib";
2
2
  import { customElement as c } from "lit/decorators.js";
3
3
  import { SbbActionBaseElement as n } from "../core/base-elements.js";
4
4
  import { SbbTeaserProductCommonElementMixin as u, teaserProductCommonStyle as b } from "./common.js";
5
- let _ = (() => {
5
+ let f = (() => {
6
6
  var e;
7
7
  let o = [c("sbb-teaser-product-static")], r, s = [], t, l = u(n);
8
8
  return e = class extends l {
@@ -12,5 +12,5 @@ let _ = (() => {
12
12
  })(), e.styles = [b], m(t, s), t;
13
13
  })();
14
14
  export {
15
- _ as SbbTeaserProductStaticElement
15
+ f as SbbTeaserProductStaticElement
16
16
  };
@@ -1,8 +1,8 @@
1
1
  var b = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var d = (t, a, c) => a.has(t) || b("Cannot " + c);
5
- var _ = (t, a, c) => (d(t, a, "read from private field"), c ? c.call(t) : a.get(t)), y = (t, a, c) => a.has(t) ? b("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, c), l = (t, a, c, s) => (d(t, a, "write to private field"), s ? s.call(t, c) : a.set(t, c), c);
4
+ var _ = (t, a, c) => a.has(t) || b("Cannot " + c);
5
+ var d = (t, a, c) => (_(t, a, "read from private field"), c ? c.call(t) : a.get(t)), y = (t, a, c) => a.has(t) ? b("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, c), l = (t, a, c, s) => (_(t, a, "write to private field"), s ? s.call(t, c) : a.set(t, c), c);
6
6
  import { __runInitializers as n, __esDecorate as f } from "tslib";
7
7
  import { customElement as A, property as C } from "lit/decorators.js";
8
8
  import { SbbLanguageController as I, SbbMediaMatcherController as L, SbbMediaQueryForcedColors as g } from "./core/controllers.js";
@@ -27,7 +27,7 @@ let Q = (() => {
27
27
  }
28
28
  /** Wagon occupancy. */
29
29
  get occupancy() {
30
- return _(this, o);
30
+ return d(this, o);
31
31
  }
32
32
  set occupancy(e) {
33
33
  l(this, o, e);
@@ -4,7 +4,7 @@ var x = (s) => {
4
4
  var z = (s, t, a) => t.has(s) || x("Cannot " + a);
5
5
  var u = (s, t, a) => (z(s, t, "read from private field"), a ? a.call(s) : t.get(s)), m = (s, t, a) => t.has(s) ? x("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, a), o = (s, t, a, i) => (z(s, t, "write to private field"), i ? i.call(s, a) : t.set(s, a), a);
6
6
  import { __runInitializers as b, __esDecorate as y } from "tslib";
7
- import { css as S, LitElement as $, html as f, nothing as k } from "lit";
7
+ import { css as S, LitElement as $, nothing as k, html as h } from "lit";
8
8
  import { customElement as E, property as w } from "lit/decorators.js";
9
9
  import { SbbLanguageController as I } from "./core/controllers.js";
10
10
  import { i18nClass as D } from "./core/i18n.js";
@@ -14,8 +14,8 @@ import "./timetable-occupancy-icon.js";
14
14
  const L = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-timetable-occupancy-color: var(--sbb-color-charcoal);--sbb-icon-svg-width: .890625rem;--sbb-icon-svg-height: v0.75rem}@media (min-width: 52.5rem){:host{--sbb-icon-svg-width: 1.1875rem;--sbb-icon-svg-height: v1rem}}:host([negative]){--sbb-timetable-occupancy-color: var(--sbb-color-white)}.sbb-timetable-occupancy__list{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-2x)}.sbb-timetable-occupancy__list-item{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-1x)}.sbb-timetable-occupancy__list-item-class{--sbb-text-font-size: var(--sbb-font-size-text-s);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);line-height:1;color:var(--sbb-timetable-occupancy-color)}.sbb-timetable-occupancy__list-item-icon{display:flex}`;
15
15
  let J = (() => {
16
16
  var l, r, n;
17
- let s = [E("sbb-timetable-occupancy")], t, a = [], i, h = j($), d, _ = [], g = [], O, C = [], v = [];
18
- return n = class extends h {
17
+ let s = [E("sbb-timetable-occupancy")], t, a = [], i, f = j($), d, _ = [], g = [], O, C = [], v = [];
18
+ return n = class extends f {
19
19
  constructor() {
20
20
  super(...arguments);
21
21
  m(this, l);
@@ -37,12 +37,12 @@ let J = (() => {
37
37
  o(this, r, c);
38
38
  }
39
39
  render() {
40
- return f` ${(this.firstClassOccupancy || this.secondClassOccupancy) && f`
40
+ return h` ${(this.firstClassOccupancy || this.secondClassOccupancy) && h`
41
41
  <ul
42
42
  class="sbb-timetable-occupancy__list"
43
43
  role=${!this.firstClassOccupancy || !this.secondClassOccupancy ? "presentation" : k}
44
44
  >
45
- ${[this.firstClassOccupancy, this.secondClassOccupancy].map((c, e) => c && f`
45
+ ${[this.firstClassOccupancy, this.secondClassOccupancy].map((c, e) => c && h`
46
46
  <li class="sbb-timetable-occupancy__list-item">
47
47
  <span class="sbb-timetable-occupancy__list-item-class" aria-hidden="true">
48
48
  ${this.firstClassOccupancy && e === 0 ? "1" : "2"}.
@@ -62,7 +62,7 @@ let J = (() => {
62
62
  `}`;
63
63
  }
64
64
  }, l = new WeakMap(), r = new WeakMap(), i = n, (() => {
65
- const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
65
+ const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
66
66
  d = [w({ attribute: "first-class-occupancy" })], O = [w({ attribute: "second-class-occupancy" })], y(n, null, d, { kind: "accessor", name: "firstClassOccupancy", static: !1, private: !1, access: { has: (e) => "firstClassOccupancy" in e, get: (e) => e.firstClassOccupancy, set: (e, p) => {
67
67
  e.firstClassOccupancy = p;
68
68
  } }, metadata: c }, _, g), y(n, null, O, { kind: "accessor", name: "secondClassOccupancy", static: !1, private: !1, access: { has: (e) => "secondClassOccupancy" in e, get: (e) => e.secondClassOccupancy, set: (e, p) => {
package/toast.js CHANGED
@@ -4,7 +4,7 @@ var w = (i) => {
4
4
  var $ = (i, o, e) => o.has(i) || w("Cannot " + e);
5
5
  var u = (i, o, e) => ($(i, o, "read from private field"), e ? e.call(i) : o.get(i)), f = (i, o, e) => o.has(i) ? w("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, e), b = (i, o, e, r) => ($(i, o, "write to private field"), r ? r.call(i, e) : o.set(i, e), e);
6
6
  import { __esDecorate as g, __runInitializers as c } from "tslib";
7
- import { css as R, html as D, nothing as L } from "lit";
7
+ import { css as R, nothing as D, html as L } from "lit";
8
8
  import { customElement as K, property as _ } from "lit/decorators.js";
9
9
  import { SbbOpenCloseBaseElement as Y } from "./core/base-elements.js";
10
10
  import { SbbLanguageController as Z } from "./core/controllers.js";
@@ -146,13 +146,13 @@ let pt = (() => {
146
146
  });
147
147
  }
148
148
  render() {
149
- return D`
149
+ return L`
150
150
  <div class="sbb-toast__overlay-container">
151
151
  ${/* Firefox needs 'role' to enable screen readers */
152
152
  ""}
153
153
  <div
154
154
  class="sbb-toast"
155
- role=${this._role ?? L}
155
+ role=${this._role ?? D}
156
156
  @animationend=${this._onToastAnimationEnd}
157
157
  >
158
158
  <div class="sbb-toast__icon">${this.renderIconSlot()}</div>
@@ -163,14 +163,14 @@ let pt = (() => {
163
163
 
164
164
  <div class="sbb-toast__action">
165
165
  <slot name="action" @slotchange=${this._onActionSlotChange}>
166
- ${this.dismissible ? D` <sbb-transparent-button
166
+ ${this.dismissible ? L` <sbb-transparent-button
167
167
  class="sbb-toast__action-button"
168
168
  icon-name="cross-small"
169
169
  negative
170
170
  size="m"
171
171
  aria-label=${q[this._language.current]}
172
172
  sbb-toast-close
173
- ></sbb-transparent-button>` : L}
173
+ ></sbb-transparent-button>` : D}
174
174
  </slot>
175
175
  </div>
176
176
  </div>
@@ -1,18 +1,18 @@
1
1
  import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
2
+ import { FormRestoreReason, FormRestoreState } from '../../core/mixins.js';
2
3
  import { SbbToggleOptionElement } from '../toggle-option.js';
4
+ declare const SbbToggleElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbFormAssociatedMixinType<string>> & typeof LitElement;
3
5
  /**
4
6
  * It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.
5
7
  *
6
8
  * @slot - Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.
7
9
  * @event {CustomEvent<void>} change - Emits whenever the toggle value changes.
8
10
  */
9
- export declare class SbbToggleElement extends LitElement {
11
+ export declare class SbbToggleElement extends SbbToggleElement_base {
10
12
  static styles: CSSResultGroup;
11
13
  static readonly events: {
12
14
  readonly change: "change";
13
15
  };
14
- /** Whether the toggle is disabled. */
15
- accessor disabled: boolean;
16
16
  /**
17
17
  * If true, set the width of the component fixed; if false,
18
18
  * the width is dynamic based on the label of the sbb-toggle-option.
@@ -27,7 +27,7 @@ export declare class SbbToggleElement extends LitElement {
27
27
  * The value of the toggle. It needs to be mutable since it is updated whenever
28
28
  * a new option is selected (see the `onToggleOptionSelect()` method).
29
29
  */
30
- set value(value: string);
30
+ set value(value: string | null);
31
31
  get value(): string;
32
32
  private _value;
33
33
  /** The child instances of sbb-toggle-option as an array. */
@@ -37,13 +37,31 @@ export declare class SbbToggleElement extends LitElement {
37
37
  /** Emits whenever the toggle value changes. */
38
38
  private _change;
39
39
  constructor();
40
- /** @internal */
41
- updatePillPosition(resizing: boolean): void;
42
40
  connectedCallback(): void;
41
+ protected willUpdate(changedProperties: PropertyValues): void;
43
42
  protected firstUpdated(changedProperties: PropertyValues<this>): Promise<void>;
43
+ /**
44
+ * Called whenever the value changes, both programmatically or by user interaction.
45
+ * @internal
46
+ */
47
+ statusChanged(): void;
48
+ /**
49
+ * Reset to the init value if present. Select the first option, otherwise.
50
+ */
51
+ formResetCallback(): void;
52
+ formStateRestoreCallback(state: FormRestoreState | null, _reason: FormRestoreReason): void;
53
+ /**
54
+ * @deprecated Will be made 'private' in the next major version
55
+ * @internal
56
+ */
57
+ updatePillPosition(resizing?: boolean): void;
58
+ protected updateFormValue(): void;
44
59
  private _updateToggle;
45
60
  private _valueChanged;
46
61
  private _updateDisabled;
62
+ /**
63
+ * Called on user interaction (click or keyboard)
64
+ */
47
65
  private _handleInput;
48
66
  private _handleKeyDown;
49
67
  protected render(): TemplateResult;
@@ -53,4 +71,5 @@ declare global {
53
71
  'sbb-toggle': SbbToggleElement;
54
72
  }
55
73
  }
74
+ export {};
56
75
  //# sourceMappingURL=toggle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/elements/toggle/toggle/toggle.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAOb,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAIlE;;;;;GAKG;AACH,qBAKM,gBAAiB,SAAQ,UAAU;IACvC,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX,sCAAsC;IACtC,SAGgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF;;;OAGG;IACH,IACW,KAAK,CAAC,KAAK,EAAE,MAAM,EAM7B;IACD,IAAW,KAAK,IAAI,MAAM,CAIzB;IACD,OAAO,CAAC,MAAM,CAAuB;IAErC,4DAA4D;IAC5D,IAAW,OAAO,IAAI,sBAAsB,EAAE,CAE7C;IAED,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,qBAAqB,CAI1B;IAEH,+CAA+C;IAC/C,OAAO,CAAC,OAAO,CAGZ;;IAQH,gBAAgB;IACT,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IA6BlC,iBAAiB,IAAI,IAAI;cAMhB,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ7F,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;cA6BH,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/elements/toggle/toggle/toggle.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAOb,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;;AAIlE;;;;;GAKG;AACH,qBAKM,gBAAiB,SAAQ,qBAAoD;IACjF,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX;;;OAGG;IACH,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF;;;OAGG;IACH,IACoB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAM7C;IACD,IAAoB,KAAK,IAAI,MAAM,CAIlC;IACD,OAAO,CAAC,MAAM,CAAuB;IAErC,4DAA4D;IAC5D,IAAW,OAAO,IAAI,sBAAsB,EAAE,CAE7C;IAED,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,qBAAqB,CAI1B;IAEH,+CAA+C;IAC/C,OAAO,CAAC,OAAO,CAGZ;;IAQa,iBAAiB,IAAI,IAAI;cAMtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;cAO7C,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ7F;;;OAGG;IACI,aAAa,IAAI,IAAI;IAK5B;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAIzB,wBAAwB,CAC7B,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAC9B,OAAO,EAAE,iBAAiB,GACzB,IAAI;IAIP;;;OAGG;IACI,kBAAkB,CAAC,QAAQ,UAAQ,GAAG,IAAI;IA6BjD,SAAS,CAAC,eAAe,IAAI,IAAI;IAIjC,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;cA6BH,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { CSSResultGroup, PropertyValues, TemplateResult, LitElement } from 'lit';
2
- declare const SbbToggleOptionElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof LitElement;
2
+ declare const SbbToggleOptionElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof LitElement;
3
3
  /**
4
4
  * It displays a toggle option within a `sbb-toggle`.
5
5
  *
@@ -10,12 +10,8 @@ export declare class SbbToggleOptionElement extends SbbToggleOptionElement_base
10
10
  static styles: CSSResultGroup;
11
11
  /** Whether the toggle-option is checked. */
12
12
  accessor checked: boolean;
13
- /** Whether the toggle option is disabled. */
14
- accessor disabled: boolean;
15
13
  /** Value of toggle-option. */
16
- set value(value: string);
17
- get value(): string;
18
- private _value;
14
+ accessor value: string;
19
15
  private _toggle?;
20
16
  constructor();
21
17
  connectedCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-option.d.ts","sourceRoot":"","sources":["../../../../src/elements/toggle/toggle-option/toggle-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;;AAUhD;;;;;GAKG;AACH,qBAMM,sBAAuB,SAAQ,2BAA4B;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,4CAA4C;IAC5C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6CAA6C;IAC7C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,8BAA8B;IAC9B,IACW,KAAK,CAAC,KAAK,EAAE,MAAM,EAE7B;IACD,IAAW,KAAK,IAAI,MAAM,CAEzB;IACD,OAAO,CAAC,MAAM,CAAc;IAE5B,OAAO,CAAC,OAAO,CAAC,CAAmB;;IAUnB,iBAAiB,IAAI,IAAI;cAQtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAe5E,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,eAAe;cAIJ,MAAM,IAAI,cAAc;CAqB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
1
+ {"version":3,"file":"toggle-option.d.ts","sourceRoot":"","sources":["../../../../src/elements/toggle/toggle-option/toggle-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;;AAWhD;;;;;GAKG;AACH,qBAMM,sBAAuB,SAAQ,2BAA8C;IACjF,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,4CAA4C;IAC5C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,8BAA8B;IAC9B,SAEgB,KAAK,EAAE,MAAM,CAAM;IAEnC,OAAO,CAAC,OAAO,CAAC,CAAmB;;IAUnB,iBAAiB,IAAI,IAAI;cAQtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAe5E,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,eAAe;cAIJ,MAAM,IAAI,cAAc;CAqB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}