@sbb-esta/lyne-elements 0.52.1 → 0.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/accordion.js +54 -54
  2. package/action-group.js +3 -3
  3. package/alert/alert-group.js +22 -22
  4. package/alert/alert.js +22 -22
  5. package/autocomplete.js +126 -126
  6. package/breadcrumb/breadcrumb-group.js +60 -60
  7. package/breadcrumb/breadcrumb.js +17 -17
  8. package/calendar.js +423 -423
  9. package/card/card-badge.js +17 -17
  10. package/card/card.js +2 -2
  11. package/card/common.js +30 -30
  12. package/checkbox/checkbox-group.js +17 -17
  13. package/checkbox/checkbox.js +34 -34
  14. package/clock.js +83 -83
  15. package/container/sticky-bar.js +16 -16
  16. package/core/a11y.js +91 -91
  17. package/core/base-elements.js +86 -86
  18. package/core/controllers.js +40 -40
  19. package/core/datetime.js +32 -32
  20. package/core/dom.js +26 -26
  21. package/core/eventing.js +33 -33
  22. package/core/mixins.js +122 -122
  23. package/core/testing.js +29 -29
  24. package/datepicker/common.js +55 -55
  25. package/datepicker/datepicker-toggle.js +94 -94
  26. package/datepicker/datepicker.js +144 -144
  27. package/dialog/dialog-title.js +20 -20
  28. package/dialog/dialog.js +66 -66
  29. package/expansion-panel/expansion-panel-header.js +20 -20
  30. package/expansion-panel/expansion-panel.js +60 -60
  31. package/file-selector.js +91 -91
  32. package/form-field/form-field-clear.js +12 -12
  33. package/form-field/form-field.js +111 -111
  34. package/header/header.js +53 -53
  35. package/icon.js +107 -107
  36. package/image.js +87 -87
  37. package/journey-header.js +29 -29
  38. package/map-container.js +23 -23
  39. package/menu/menu.js +91 -91
  40. package/navigation/common.js +16 -16
  41. package/navigation/navigation-marker.js +34 -34
  42. package/navigation/navigation-section.js +83 -83
  43. package/navigation/navigation.js +87 -87
  44. package/notification.js +52 -52
  45. package/option/optgroup.js +45 -45
  46. package/option/option.js +108 -108
  47. package/overlay.js +5 -5
  48. package/package.json +1 -1
  49. package/popover/popover.js +110 -110
  50. package/radio-button/radio-button-group.js +93 -93
  51. package/radio-button/radio-button.js +84 -84
  52. package/select.js +178 -178
  53. package/selection-panel.js +44 -44
  54. package/slider.js +58 -58
  55. package/status.js +6 -6
  56. package/stepper/step-label.js +19 -19
  57. package/stepper/step.js +31 -31
  58. package/stepper/stepper.js +46 -46
  59. package/tabs/tab-group.js +67 -67
  60. package/tag/tag-group.js +8 -8
  61. package/tag/tag.js +27 -27
  62. package/teaser-paid.js +12 -12
  63. package/time-input.js +73 -73
  64. package/timetable-occupancy-icon.js +26 -26
  65. package/timetable-occupancy.js +9 -9
  66. package/toast.js +38 -38
  67. package/toggle/toggle-option.js +33 -33
  68. package/toggle/toggle.js +46 -46
  69. package/train/train-formation.js +36 -36
  70. package/train/train-wagon.js +30 -30
  71. package/train/train.js +13 -13
package/core/a11y.js CHANGED
@@ -1,82 +1,82 @@
1
- import { getDocumentWritingMode as w } from "./dom.js";
2
- import { isServer as A } from "lit";
3
- import { getEventTarget as u } from "./eventing.js";
4
- function l() {
5
- return w() === "rtl" ? { prevKey: "ArrowRight", nextKey: "ArrowLeft" } : { prevKey: "ArrowLeft", nextKey: "ArrowRight" };
1
+ import { getDocumentWritingMode as _ } from "./dom.js";
2
+ import { isServer as w } from "lit";
3
+ import { getEventTarget as a } from "./eventing.js";
4
+ function d() {
5
+ return _() === "rtl" ? { prevKey: "ArrowRight", nextKey: "ArrowLeft" } : { prevKey: "ArrowLeft", nextKey: "ArrowRight" };
6
6
  }
7
- function E(t) {
7
+ function R(t) {
8
8
  return ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"].includes(t.key);
9
9
  }
10
+ function V(t) {
11
+ return t.key === "ArrowUp" || t.key === d().prevKey;
12
+ }
10
13
  function W(t) {
11
- return t.key === "ArrowUp" || t.key === l().prevKey;
14
+ return t.key === "ArrowDown" || t.key === d().nextKey;
12
15
  }
13
16
  function Y(t) {
14
- return t.key === "ArrowDown" || t.key === l().nextKey;
15
- }
16
- function _(t) {
17
- return E(t) || ["PageUp", "PageDown", "Home", "End"].includes(t.key);
17
+ return R(t) || ["PageUp", "PageDown", "Home", "End"].includes(t.key);
18
18
  }
19
- function f(t, e, n) {
20
- return (t + n + e) % e;
19
+ function f(t, e, o) {
20
+ return (t + o + e) % e;
21
21
  }
22
- function k(t) {
22
+ function A(t) {
23
23
  return t - 1;
24
24
  }
25
25
  const y = 0;
26
- function B(t, e, n) {
27
- const { prevKey: i, nextKey: r } = l();
28
- return t.key === i || t.key === "ArrowUp" ? e < y ? k(n) : f(e, n, -1) : t.key === r || t.key === "ArrowDown" ? e >= n ? y : f(e, n, 1) : e;
26
+ function B(t, e, o) {
27
+ const { prevKey: s, nextKey: r } = d();
28
+ return t.key === s || t.key === "ArrowUp" ? e < y ? A(o) : f(e, o, -1) : t.key === r || t.key === "ArrowDown" ? e >= o ? y : f(e, o, 1) : e;
29
29
  }
30
- function v(t) {
30
+ function E(t) {
31
31
  return t.buttons === 0 || t.detail === 0;
32
32
  }
33
- function R(t) {
33
+ function M(t) {
34
34
  const e = t.touches && t.touches[0] || t.changedTouches && t.changedTouches[0];
35
35
  return !!e && e.identifier === -1 && (e.radiusX == null || e.radiusX === 1) && (e.radiusY == null || e.radiusY === 1);
36
36
  }
37
- const L = 16, C = 17, K = 18, x = 91, F = 224, M = {
38
- ignoreKeys: [K, C, F, x, L]
39
- }, S = 650, d = {
37
+ const k = 16, v = 17, T = 18, K = 91, L = 224, C = {
38
+ ignoreKeys: [T, v, L, K, k]
39
+ }, x = 650, l = {
40
40
  passive: !0,
41
41
  capture: !0
42
42
  };
43
- class D {
43
+ class F {
44
44
  constructor() {
45
- this.a = "mouse", this.b = null, this.d = {
46
- ...M
47
- }, this.c = 0, this.e = (e) => {
48
- var n, i;
49
- (i = (n = this.d) == null ? void 0 : n.ignoreKeys) != null && i.some((r) => r === e.keyCode) || (this.a = "keyboard", this.b = u(e));
50
- }, this.f = (e) => {
51
- Date.now() - this.c < S || (this.a = v(e) ? "keyboard" : "mouse", this.b = u(e));
52
- }, this.g = (e) => {
53
- if (R(e)) {
54
- this.a = "keyboard", this.b = u(e);
45
+ this._mostRecentModality = "mouse", this._mostRecentTarget = null, this._options = {
46
+ ...C
47
+ }, this._lastTouchMs = 0, this._onKeydown = (e) => {
48
+ var o, s;
49
+ (s = (o = this._options) == null ? void 0 : o.ignoreKeys) != null && s.some((r) => r === e.keyCode) || (this._mostRecentModality = "keyboard", this._mostRecentTarget = a(e));
50
+ }, this._onMousedown = (e) => {
51
+ Date.now() - this._lastTouchMs < x || (this._mostRecentModality = E(e) ? "keyboard" : "mouse", this._mostRecentTarget = a(e));
52
+ }, this._onTouchstart = (e) => {
53
+ if (M(e)) {
54
+ this._mostRecentModality = "keyboard", this._mostRecentTarget = a(e);
55
55
  return;
56
56
  }
57
- this.c = Date.now(), this.a = "touch", this.b = u(e);
58
- }, A || (document.addEventListener("keydown", this.e, d), document.addEventListener("mousedown", this.f, d), document.addEventListener("touchstart", this.g, d));
57
+ this._lastTouchMs = Date.now(), this._mostRecentModality = "touch", this._mostRecentTarget = a(e);
58
+ }, w || (document.addEventListener("keydown", this._onKeydown, l), document.addEventListener("mousedown", this._onMousedown, l), document.addEventListener("touchstart", this._onTouchstart, l));
59
59
  }
60
60
  /** The most recently detected input modality. */
61
61
  get mostRecentModality() {
62
- return this.a;
62
+ return this._mostRecentModality;
63
63
  }
64
64
  reset() {
65
- this.a = "mouse", this.b = null, this.c = 0;
65
+ this._mostRecentModality = "mouse", this._mostRecentTarget = null, this._lastTouchMs = 0;
66
66
  }
67
67
  /**
68
68
  * The most recently detected input modality event target. Is null if no input modality has been
69
69
  * detected or if the associated event target is null for some unknown reason.
70
70
  */
71
71
  get mostRecentTarget() {
72
- return this.b;
72
+ return this._mostRecentTarget;
73
73
  }
74
74
  }
75
- const b = new D();
75
+ const m = new F();
76
76
  function X(t) {
77
77
  if (!t)
78
78
  return;
79
- const e = b.mostRecentModality;
79
+ const e = m.mostRecentModality;
80
80
  t && e !== null && t.addEventListener(
81
81
  "focus",
82
82
  () => {
@@ -93,26 +93,26 @@ function X(t) {
93
93
  }
94
94
  class j {
95
95
  constructor(e) {
96
- this.a = e, this.b = () => {
97
- this.a.toggleAttribute(
96
+ this._host = e, this._focusinHandler = () => {
97
+ this._host.toggleAttribute(
98
98
  "data-has-visible-focus-within",
99
- b.mostRecentModality === "keyboard"
99
+ m.mostRecentModality === "keyboard"
100
100
  );
101
- }, this.c = () => {
102
- this.a.removeAttribute("data-has-visible-focus-within");
103
- }, this.a.addController(this);
101
+ }, this._focusoutHandler = () => {
102
+ this._host.removeAttribute("data-has-visible-focus-within");
103
+ }, this._host.addController(this);
104
104
  }
105
105
  hostConnected() {
106
- this.a.addEventListener("focusin", this.b), this.a.addEventListener("focusout", this.c);
106
+ this._host.addEventListener("focusin", this._focusinHandler), this._host.addEventListener("focusout", this._focusoutHandler);
107
107
  }
108
108
  hostDisconnected() {
109
- this.a.removeEventListener("focusin", this.b), this.a.removeEventListener("focusout", this.c);
109
+ this._host.removeEventListener("focusin", this._focusinHandler), this._host.removeEventListener("focusout", this._focusoutHandler);
110
110
  }
111
111
  }
112
- function I(t) {
112
+ function S(t) {
113
113
  return !!(t.offsetWidth || t.offsetHeight || typeof t.getClientRects == "function" && t.getClientRects().length);
114
114
  }
115
- class N {
115
+ class D {
116
116
  /**
117
117
  * Gets whether an element is visible for the purposes of interactivity.
118
118
  *
@@ -122,15 +122,15 @@ class N {
122
122
  * @returns Whether the element is visible.
123
123
  */
124
124
  isVisible(e) {
125
- return I(e) && getComputedStyle(e).visibility === "visible";
125
+ return S(e) && getComputedStyle(e).visibility === "visible";
126
126
  }
127
127
  }
128
- class P {
128
+ class I {
129
129
  isVisible() {
130
130
  return !0;
131
131
  }
132
132
  }
133
- const O = typeof getComputedStyle > "u" || getComputedStyle(document.documentElement).visibility === "" ? new P() : new N(), T = [
133
+ const H = typeof getComputedStyle > "u" || getComputedStyle(document.documentElement).visibility === "" ? new I() : new D(), N = [
134
134
  "button",
135
135
  "[href]",
136
136
  "input",
@@ -141,38 +141,38 @@ const O = typeof getComputedStyle > "u" || getComputedStyle(document.documentEle
141
141
  "[tabindex]"
142
142
  ].map((t) => `${t}:not([disabled],[tabindex="-1"])`).join(",");
143
143
  function g(t, e) {
144
- const n = /* @__PURE__ */ new Set();
145
- function i(r, c) {
146
- var o;
147
- for (const s of r)
148
- if (!(c && !c(s))) {
149
- if (s.nodeName === "SLOT") {
150
- i(
151
- Array.from(s.assignedElements()),
144
+ const o = /* @__PURE__ */ new Set();
145
+ function s(r, c) {
146
+ var i;
147
+ for (const n of r)
148
+ if (!(c && !c(n))) {
149
+ if (n.nodeName === "SLOT") {
150
+ s(
151
+ Array.from(n.assignedElements()),
152
152
  c
153
153
  );
154
154
  continue;
155
155
  }
156
- if (s.matches(T) && ((e == null ? void 0 : e.includeInvisibleElements) ?? O.isVisible(s)) && n.add(s), e != null && e.findFirstFocusable && n.size > 0)
156
+ if (n.matches(N) && ((e == null ? void 0 : e.includeInvisibleElements) ?? H.isVisible(n)) && o.add(n), e != null && e.findFirstFocusable && o.size > 0)
157
157
  break;
158
- if (s.children.length || (o = s.shadowRoot) != null && o.children.length) {
159
- const a = Array.from(s.children).length ? Array.from(s.children) : Array.from(s.shadowRoot.children);
160
- i(a, c);
158
+ if (n.children.length || (i = n.shadowRoot) != null && i.children.length) {
159
+ const u = Array.from(n.children).length ? Array.from(n.children) : Array.from(n.shadowRoot.children);
160
+ s(u, c);
161
161
  }
162
162
  }
163
163
  }
164
- return i(t, e == null ? void 0 : e.filter), [...n];
164
+ return s(t, e == null ? void 0 : e.filter), [...o];
165
165
  }
166
166
  function G(t, e) {
167
- const n = g(t, {
167
+ const o = g(t, {
168
168
  filter: e,
169
169
  findFirstFocusable: !0
170
170
  });
171
- return n.length ? n[0] : null;
171
+ return o.length ? o[0] : null;
172
172
  }
173
173
  class Q {
174
174
  constructor() {
175
- this.a = new AbortController();
175
+ this._controller = new AbortController();
176
176
  }
177
177
  /**
178
178
  * @param element in which the focus should be trapped.
@@ -180,47 +180,47 @@ class Q {
180
180
  * @param options.filter filter function which is applied during searching for focusable element. If an element is filtered, also child elements are filtered.
181
181
  * @param options.postFilter filter function which is applied after collecting focusable elements.
182
182
  */
183
- trap(e, n) {
183
+ trap(e, o) {
184
184
  e.addEventListener(
185
185
  "keydown",
186
- (i) => {
187
- if (i.key !== "Tab")
186
+ (s) => {
187
+ if (s.key !== "Tab")
188
188
  return;
189
189
  const r = Array.from(
190
190
  e.shadowRoot.children || []
191
- ), o = g(r, {
192
- filter: n == null ? void 0 : n.filter
191
+ ), i = g(r, {
192
+ filter: o == null ? void 0 : o.filter
193
193
  }).filter(
194
- (n == null ? void 0 : n.postFilter) ?? (() => !0)
194
+ (o == null ? void 0 : o.postFilter) ?? (() => !0)
195
195
  );
196
- if (!o.length)
196
+ if (!i.length)
197
197
  return;
198
- const s = o[0], a = o[o.length - 1], [h, m] = i.shiftKey ? [s, a] : [a, s];
199
- (s.getRootNode().activeElement === h || a.getRootNode().activeElement === h) && (m.focus(), i.preventDefault());
198
+ const n = i[0], u = i[i.length - 1], [h, b] = s.shiftKey ? [n, u] : [u, n];
199
+ (n.getRootNode().activeElement === h || u.getRootNode().activeElement === h) && (b.focus(), s.preventDefault());
200
200
  },
201
- { signal: this.a.signal }
201
+ { signal: this._controller.signal }
202
202
  );
203
203
  }
204
204
  disconnect() {
205
- this.a.abort(), this.a = new AbortController();
205
+ this._controller.abort(), this._controller = new AbortController();
206
206
  }
207
207
  }
208
208
  export {
209
- T as IS_FOCUSABLE_QUERY,
210
- N as InteractivityChecker,
209
+ N as IS_FOCUSABLE_QUERY,
210
+ D as InteractivityChecker,
211
211
  Q as SbbFocusHandler,
212
212
  j as SbbFocusVisibleWithinController,
213
213
  G as getFirstFocusableElement,
214
214
  g as getFocusableElements,
215
215
  B as getNextElementIndex,
216
- I as hasGeometry,
217
- O as interactivityChecker,
218
- _ as isArrowKeyOrPageKeysPressed,
219
- E as isArrowKeyPressed,
220
- v as isFakeMousedownFromScreenReader,
221
- R as isFakeTouchstartFromScreenReader,
222
- Y as isNextArrowKeyPressed,
223
- W as isPreviousArrowKeyPressed,
224
- b as sbbInputModalityDetector,
216
+ S as hasGeometry,
217
+ H as interactivityChecker,
218
+ Y as isArrowKeyOrPageKeysPressed,
219
+ R as isArrowKeyPressed,
220
+ E as isFakeMousedownFromScreenReader,
221
+ M as isFakeTouchstartFromScreenReader,
222
+ W as isNextArrowKeyPressed,
223
+ V as isPreviousArrowKeyPressed,
224
+ m as sbbInputModalityDetector,
225
225
  X as setModalityOnNextFocus
226
226
  };
@@ -1,15 +1,15 @@
1
- import { LitElement as w, html as f, isServer as g, nothing as l } from "lit";
2
- import { hostAttributes as y } from "./decorators.js";
3
- import { getDocumentWritingMode as O, getLocalName as $ } from "./dom.js";
4
- import { property as o } from "lit/decorators.js";
5
- import { isEventPrevented as E, EventEmitter as b } from "./eventing.js";
6
- import { SbbLanguageController as C } from "./controllers.js";
7
- import { i18nTargetOpensInNewWindow as D } from "./i18n.js";
1
+ import { LitElement as w, html as v, isServer as g, nothing as o } from "lit";
2
+ import { hostAttributes as f } from "./decorators.js";
3
+ import { getDocumentWritingMode as O, getLocalName as _ } from "./dom.js";
4
+ import { property as l } from "lit/decorators.js";
5
+ import { isEventPrevented as C, EventEmitter as b } from "./eventing.js";
6
+ import { SbbLanguageController as E } from "./controllers.js";
7
+ import { i18nTargetOpensInNewWindow as $ } from "./i18n.js";
8
8
  import "../screen-reader-only.js";
9
- var P = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, L = (e, t, r, i) => {
10
- for (var s = i > 1 ? void 0 : i ? _(t, r) : t, a = e.length - 1, n; a >= 0; a--)
9
+ var D = Object.defineProperty, k = Object.getOwnPropertyDescriptor, A = (e, t, r, i) => {
10
+ for (var s = i > 1 ? void 0 : i ? k(t, r) : t, a = e.length - 1, n; a >= 0; a--)
11
11
  (n = e[a]) && (s = (i ? n(t, r, s) : n(s)) || s);
12
- return i && s && P(t, r, s), s;
12
+ return i && s && D(t, r, s), s;
13
13
  };
14
14
  let m = class extends w {
15
15
  get maybeDisabled() {
@@ -33,40 +33,40 @@ let m = class extends w {
33
33
  }
34
34
  /** Default render method for button-like components. */
35
35
  render() {
36
- return f`
37
- <span class="sbb-action-base ${this.localName ?? $(this)}">
36
+ return v`
37
+ <span class="sbb-action-base ${this.localName ?? _(this)}">
38
38
  ${this.renderTemplate()}
39
39
  </span>
40
40
  `;
41
41
  }
42
42
  };
43
- m = L([
44
- y({
43
+ m = A([
44
+ f({
45
45
  dir: O(),
46
46
  "data-action": ""
47
47
  })
48
48
  ], m);
49
- var A = Object.defineProperty, x = Object.getOwnPropertyDescriptor, c = (e, t, r, i) => {
50
- for (var s = i > 1 ? void 0 : i ? x(t, r) : t, a = e.length - 1, n; a >= 0; a--)
49
+ var P = Object.defineProperty, S = Object.getOwnPropertyDescriptor, u = (e, t, r, i) => {
50
+ for (var s = i > 1 ? void 0 : i ? S(t, r) : t, a = e.length - 1, n; a >= 0; a--)
51
51
  (n = e[a]) && (s = (i ? n(t, r, s) : n(s)) || s);
52
- return i && s && A(t, r, s), s;
52
+ return i && s && P(t, r, s), s;
53
53
  };
54
- let d = class extends m {
54
+ let h = class extends m {
55
55
  constructor() {
56
- if (super(), this.type = "button", this.c = async (e) => {
57
- if (this.type === "button" || await E(e))
56
+ if (super(), this.type = "button", this._handleButtonClick = async (e) => {
57
+ if (this.type === "button" || await C(e))
58
58
  return;
59
59
  const t = this.form ? this.ownerDocument.querySelector(`form#${this.form}`) : this.closest("form");
60
60
  if (t)
61
61
  this.type === "submit" ? t.requestSubmit() : this.type === "reset" && t.reset();
62
62
  else return;
63
- }, this.d = (e) => {
63
+ }, this._preventScrollOnSpaceKeydown = (e) => {
64
64
  e.key === " " && (e.preventDefault(), e.target.toggleAttribute("data-active", !0));
65
- }, this.a = (e) => {
65
+ }, this._removeActiveMarker = (e) => {
66
66
  e.target.removeAttribute("data-active");
67
- }, this.e = (e) => {
68
- e.key === " " && (this.a(e), this.b(e));
69
- }, this.b = (e) => {
67
+ }, this._dispatchClickEventOnSpaceKeyup = (e) => {
68
+ e.key === " " && (this._removeActiveMarker(e), this._dispatchClickEvent(e));
69
+ }, this._dispatchClickEvent = (e) => {
70
70
  const { altKey: t, ctrlKey: r, metaKey: i, shiftKey: s } = e;
71
71
  e.target.dispatchEvent(
72
72
  new PointerEvent("click", {
@@ -84,11 +84,11 @@ let d = class extends m {
84
84
  }, !g) {
85
85
  this.setupBaseEventHandlers();
86
86
  const e = { passive: !0 };
87
- this.addEventListener("click", this.c), this.addEventListener("keydown", this.d), this.addEventListener("keyup", this.e, e), this.addEventListener("blur", this.a, e), this.addEventListener(
87
+ this.addEventListener("click", this._handleButtonClick), this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener(
88
88
  "keypress",
89
89
  (t) => {
90
90
  (t.key === "Enter" || t.key === `
91
- `) && this.b(t);
91
+ `) && this._dispatchClickEvent(t);
92
92
  },
93
93
  e
94
94
  );
@@ -110,33 +110,33 @@ let d = class extends m {
110
110
  (!["name", "value"].includes(e) || t !== r) && super.attributeChangedCallback(e, t, r);
111
111
  }
112
112
  };
113
- c([
114
- o()
115
- ], d.prototype, "type", 2);
116
- c([
117
- o()
118
- ], d.prototype, "name", 1);
119
- c([
120
- o()
121
- ], d.prototype, "value", 1);
122
- c([
123
- o()
124
- ], d.prototype, "form", 2);
125
- d = c([
126
- y({
113
+ u([
114
+ l()
115
+ ], h.prototype, "type", 2);
116
+ u([
117
+ l()
118
+ ], h.prototype, "name", 1);
119
+ u([
120
+ l()
121
+ ], h.prototype, "value", 1);
122
+ u([
123
+ l()
124
+ ], h.prototype, "form", 2);
125
+ h = u([
126
+ f({
127
127
  role: "button",
128
128
  tabindex: "0",
129
129
  "data-button": ""
130
130
  })
131
- ], d);
132
- var S = Object.defineProperty, j = Object.getOwnPropertyDescriptor, u = (e, t, r, i) => {
133
- for (var s = i > 1 ? void 0 : i ? j(t, r) : t, a = e.length - 1, n; a >= 0; a--)
131
+ ], h);
132
+ var L = Object.defineProperty, x = Object.getOwnPropertyDescriptor, d = (e, t, r, i) => {
133
+ for (var s = i > 1 ? void 0 : i ? x(t, r) : t, a = e.length - 1, n; a >= 0; a--)
134
134
  (n = e[a]) && (s = (i ? n(t, r, s) : n(s)) || s);
135
- return i && s && S(t, r, s), s;
135
+ return i && s && L(t, r, s), s;
136
136
  };
137
- let p = class extends m {
137
+ let c = class extends m {
138
138
  constructor() {
139
- super(), this.language = new C(this), this.a = () => this.rel ? this.rel : this.target === "_blank" ? "external noopener nofollow" : l, g || this.setupBaseEventHandlers();
139
+ super(), this.language = new E(this), this._evaluateRelAttribute = () => this.rel ? this.rel : this.target === "_blank" ? "external noopener nofollow" : o, g || this.setupBaseEventHandlers();
140
140
  }
141
141
  /** @internal */
142
142
  focus(e) {
@@ -155,56 +155,56 @@ let p = class extends m {
155
155
  }
156
156
  /** Default render method for link-like components. Can be overridden if the LinkRenderVariables are not needed. */
157
157
  render() {
158
- return f`
158
+ return v`
159
159
  <a
160
- class="sbb-action-base ${this.localName ?? $(this)}"
161
- href=${this.href || l}
160
+ class="sbb-action-base ${this.localName ?? _(this)}"
161
+ href=${this.href || o}
162
162
  ?download=${this.download}
163
- target=${this.target || l}
164
- rel=${this.a()}
165
- aria-label=${this.accessibilityLabel || l}
166
- tabindex=${this.maybeDisabled ? "-1" : l}
167
- aria-disabled=${this.maybeDisabled ? "true" : l}
163
+ target=${this.target || o}
164
+ rel=${this._evaluateRelAttribute()}
165
+ aria-label=${this.accessibilityLabel || o}
166
+ tabindex=${this.maybeDisabled ? "-1" : o}
167
+ aria-disabled=${this.maybeDisabled ? "true" : o}
168
168
  >
169
169
  ${this.renderTemplate()}
170
- ${this.href && this.target === "_blank" ? f`<sbb-screen-reader-only
171
- >. ${D[this.language.current]}</sbb-screen-reader-only
172
- >` : l}
170
+ ${this.href && this.target === "_blank" ? v`<sbb-screen-reader-only
171
+ >. ${$[this.language.current]}</sbb-screen-reader-only
172
+ >` : o}
173
173
  </a>
174
174
  `;
175
175
  }
176
176
  };
177
- u([
178
- o()
179
- ], p.prototype, "href", 2);
180
- u([
181
- o()
182
- ], p.prototype, "target", 2);
183
- u([
184
- o()
185
- ], p.prototype, "rel", 2);
186
- u([
187
- o({ type: Boolean })
188
- ], p.prototype, "download", 2);
189
- u([
190
- o({ attribute: "accessibility-label" })
191
- ], p.prototype, "accessibilityLabel", 2);
192
- p = u([
193
- y({
177
+ d([
178
+ l()
179
+ ], c.prototype, "href", 2);
180
+ d([
181
+ l()
182
+ ], c.prototype, "target", 2);
183
+ d([
184
+ l()
185
+ ], c.prototype, "rel", 2);
186
+ d([
187
+ l({ type: Boolean })
188
+ ], c.prototype, "download", 2);
189
+ d([
190
+ l({ attribute: "accessibility-label" })
191
+ ], c.prototype, "accessibilityLabel", 2);
192
+ c = d([
193
+ f({
194
194
  "data-link": ""
195
195
  })
196
- ], p);
197
- const h = class h extends w {
196
+ ], c);
197
+ const p = class p extends w {
198
198
  constructor() {
199
199
  super(...arguments), this.willOpen = new b(
200
200
  this,
201
- h.events.willOpen
202
- ), this.didOpen = new b(this, h.events.didOpen), this.willClose = new b(
201
+ p.events.willOpen
202
+ ), this.didOpen = new b(this, p.events.didOpen), this.willClose = new b(
203
203
  this,
204
- h.events.willClose
204
+ p.events.willClose
205
205
  ), this.didClose = new b(
206
206
  this,
207
- h.events.didClose
207
+ p.events.didClose
208
208
  );
209
209
  }
210
210
  /** The state of the component. */
@@ -218,16 +218,16 @@ const h = class h extends w {
218
218
  super.connectedCallback(), this.state || (this.state = "closed");
219
219
  }
220
220
  };
221
- h.events = {
221
+ p.events = {
222
222
  willOpen: "willOpen",
223
223
  didOpen: "didOpen",
224
224
  willClose: "willClose",
225
225
  didClose: "didClose"
226
226
  };
227
- let v = h;
227
+ let y = p;
228
228
  export {
229
229
  m as SbbActionBaseElement,
230
- d as SbbButtonBaseElement,
231
- p as SbbLinkBaseElement,
232
- v as SbbOpenCloseBaseElement
230
+ h as SbbButtonBaseElement,
231
+ c as SbbLinkBaseElement,
232
+ y as SbbOpenCloseBaseElement
233
233
  };