@sbb-esta/lyne-elements 2.1.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 (268) hide show
  1. package/accordion.js +6 -6
  2. package/action-group.js +3 -3
  3. package/alert/alert-group.js +4 -4
  4. package/alert/alert.js +9 -9
  5. package/autocomplete/autocomplete-base-element.d.ts +4 -0
  6. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  7. package/autocomplete-grid/autocomplete-grid-button.js +4 -4
  8. package/autocomplete-grid/autocomplete-grid-cell.js +3 -3
  9. package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
  10. package/autocomplete-grid/autocomplete-grid-row.js +5 -5
  11. package/autocomplete.js +26 -20
  12. package/badge.css +31 -0
  13. package/breadcrumb/breadcrumb-group.js +5 -5
  14. package/breadcrumb/breadcrumb.js +19 -19
  15. package/button/accent-button-link.js +9 -9
  16. package/button/accent-button-static.js +6 -6
  17. package/button/accent-button.js +6 -6
  18. package/button/button-link.js +7 -7
  19. package/button/button-static.js +7 -7
  20. package/button/button.js +8 -8
  21. package/button/common.js +15 -15
  22. package/button/mini-button-group.js +8 -8
  23. package/button/secondary-button-link.js +7 -7
  24. package/button/secondary-button-static.js +7 -7
  25. package/button/secondary-button.js +3 -3
  26. package/button/transparent-button-link.js +6 -6
  27. package/button/transparent-button-static.js +5 -5
  28. package/button/transparent-button.js +6 -6
  29. package/calendar.js +1 -1
  30. package/card/card-badge.js +11 -11
  31. package/card/card-button.js +5 -5
  32. package/card/card-link.js +7 -7
  33. package/card/card.js +3 -3
  34. package/checkbox/checkbox-panel.js +16 -16
  35. package/checkbox/checkbox.js +15 -15
  36. package/checkbox/common.js +3 -3
  37. package/chip-label.js +3 -3
  38. package/clock.js +10 -10
  39. package/container/container.js +6 -6
  40. package/core/a11y/focus.d.ts.map +1 -1
  41. package/core/a11y.js +8 -8
  42. package/core/base-elements/link-base-element.d.ts +2 -0
  43. package/core/base-elements/link-base-element.d.ts.map +1 -1
  44. package/core/base-elements.js +125 -114
  45. package/core/controllers.js +4 -4
  46. package/core/datetime.js +6 -6
  47. package/core/dom/scroll.d.ts +1 -0
  48. package/core/dom/scroll.d.ts.map +1 -1
  49. package/core/dom.js +31 -31
  50. package/core/eventing.js +4 -4
  51. package/core/i18n/i18n.d.ts +2 -0
  52. package/core/i18n/i18n.d.ts.map +1 -1
  53. package/core/i18n.js +43 -31
  54. package/core/images.d.ts.map +1 -1
  55. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  56. package/core/mixins/form-associated-mixin.d.ts +3 -0
  57. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  58. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  59. package/core/mixins.js +342 -248
  60. package/core/styles/badge.scss +3 -0
  61. package/core/styles/core.scss +2 -0
  62. package/core/styles/mixins/badge.scss +26 -1
  63. package/core/styles/mixins/font-face.scss +12 -12
  64. package/core/styles/mixins/link.scss +32 -8
  65. package/core/styles/standard-theme.scss +1 -0
  66. package/core/testing.js +14 -14
  67. package/core.css +5 -3
  68. package/custom-elements.json +7788 -173
  69. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  70. package/datepicker/datepicker-toggle.js +23 -26
  71. package/datepicker/datepicker.js +4 -4
  72. package/development/action-group.js +1 -1
  73. package/development/alert/alert-group.js +1 -1
  74. package/development/alert/alert.js +1 -1
  75. package/development/autocomplete/autocomplete-base-element.d.ts +4 -0
  76. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  77. package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -1
  78. package/development/autocomplete-grid/autocomplete-grid-row.js +1 -1
  79. package/development/autocomplete.js +15 -2
  80. package/development/breadcrumb/breadcrumb-group.js +3 -3
  81. package/development/breadcrumb/breadcrumb.js +5 -2
  82. package/development/button/common.js +75 -74
  83. package/development/calendar.js +1 -1
  84. package/development/card/card-badge.js +1 -1
  85. package/development/card/card.js +1 -1
  86. package/development/checkbox/checkbox-panel.js +1 -1
  87. package/development/chip-label.js +1 -1
  88. package/development/clock.js +1 -1
  89. package/development/container/container.js +1 -1
  90. package/development/core/a11y/focus.d.ts.map +1 -1
  91. package/development/core/a11y.js +3 -3
  92. package/development/core/base-elements/link-base-element.d.ts +2 -0
  93. package/development/core/base-elements/link-base-element.d.ts.map +1 -1
  94. package/development/core/base-elements.js +22 -5
  95. package/development/core/controllers.js +1 -1
  96. package/development/core/dom/scroll.d.ts +1 -0
  97. package/development/core/dom/scroll.d.ts.map +1 -1
  98. package/development/core/dom.js +5 -2
  99. package/development/core/i18n/i18n.d.ts +2 -0
  100. package/development/core/i18n/i18n.d.ts.map +1 -1
  101. package/development/core/i18n.js +15 -1
  102. package/development/core/images.d.ts.map +1 -1
  103. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  104. package/development/core/mixins/form-associated-mixin.d.ts +3 -0
  105. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  106. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  107. package/development/core/mixins.js +159 -22
  108. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  109. package/development/datepicker/datepicker-toggle.js +13 -6
  110. package/development/datepicker/datepicker.js +1 -1
  111. package/development/dialog/dialog-content.js +1 -1
  112. package/development/dialog/dialog-title.js +1 -1
  113. package/development/dialog/dialog.js +1 -1
  114. package/development/expansion-panel/expansion-panel-content.js +1 -1
  115. package/development/expansion-panel/expansion-panel-header.js +1 -1
  116. package/development/expansion-panel/expansion-panel.js +1 -1
  117. package/development/file-selector/common.js +1 -1
  118. package/development/flip-card/flip-card-details.js +1 -1
  119. package/development/flip-card/flip-card-summary.js +1 -1
  120. package/development/footer.js +1 -1
  121. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  122. package/development/form-field/form-field.js +5 -2
  123. package/development/icon.js +1 -1
  124. package/development/image.js +2 -2
  125. package/development/journey-header.js +1 -1
  126. package/development/lead-container.js +1 -1
  127. package/development/link/common.js +19 -7
  128. package/development/link-list/common.js +1 -1
  129. package/development/link-list/link-list-anchor.js +1 -1
  130. package/development/link-list/link-list.js +1 -1
  131. package/development/loading-indicator-circle.js +1 -1
  132. package/development/loading-indicator.js +1 -1
  133. package/development/map-container.js +1 -1
  134. package/development/menu/common/menu-action-common.d.ts +3 -0
  135. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  136. package/development/menu/common.js +35 -12
  137. package/development/message.js +1 -1
  138. package/development/navigation/navigation-section.js +1 -1
  139. package/development/notification.js +1 -1
  140. package/development/option/optgroup.js +1 -1
  141. package/development/option/option.js +1 -1
  142. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  143. package/development/overlay.js +3 -3
  144. package/development/paginator/paginator.js +1 -1
  145. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  146. package/development/radio-button/radio-button-group.js +2 -2
  147. package/development/radio-button/radio-button-panel.js +1 -1
  148. package/development/{sbb-tokens-BdGhUJjM.js → sbb-tokens-CSAKTXUi.js} +15 -15
  149. package/development/screen-reader-only.js +1 -1
  150. package/development/select/select.d.ts +4 -1
  151. package/development/select/select.d.ts.map +1 -1
  152. package/development/select.js +22 -4
  153. package/development/signet.js +1 -1
  154. package/development/skiplink-list.js +1 -1
  155. package/development/slider.js +1 -1
  156. package/development/stepper/step.js +1 -1
  157. package/development/tabs/tab-label.js +1 -1
  158. package/development/tabs/tab.js +1 -1
  159. package/development/time-input.js +1 -1
  160. package/development/timetable-occupancy.js +1 -1
  161. package/development/title/title-base.d.ts.map +1 -1
  162. package/development/title.js +4 -5
  163. package/development/toast.js +1 -1
  164. package/development/toggle/toggle/toggle.d.ts +25 -6
  165. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  166. package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
  167. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  168. package/development/toggle/toggle-option.js +21 -39
  169. package/development/toggle/toggle.js +58 -40
  170. package/development/train/train-blocked-passage.js +1 -1
  171. package/development/train/train-formation.js +1 -1
  172. package/development/train/train.js +1 -1
  173. package/development/visual-checkbox.js +1 -1
  174. package/dialog/dialog-content.js +4 -4
  175. package/dialog/dialog-title.js +8 -8
  176. package/dialog/dialog.js +1 -1
  177. package/divider.js +12 -12
  178. package/expansion-panel/expansion-panel-content.js +3 -3
  179. package/expansion-panel/expansion-panel-header.js +1 -1
  180. package/expansion-panel/expansion-panel.js +1 -1
  181. package/file-selector/common.js +9 -9
  182. package/file-selector/file-selector-dropzone.js +5 -5
  183. package/file-selector/file-selector.js +6 -6
  184. package/flip-card/flip-card-details.js +7 -7
  185. package/flip-card/flip-card-summary.js +12 -12
  186. package/font-characters-extension.css +3 -3
  187. package/footer.js +4 -4
  188. package/form-field/form-field/form-field.d.ts.map +1 -1
  189. package/form-field/form-field.js +7 -5
  190. package/header/header-button.js +5 -5
  191. package/header/header-link.js +5 -5
  192. package/icon.js +37 -37
  193. package/image.js +16 -16
  194. package/journey-header.js +5 -5
  195. package/lead-container.js +3 -3
  196. package/link/block-link-button.js +4 -4
  197. package/link/block-link-static.js +9 -9
  198. package/link/block-link.js +4 -4
  199. package/link/common.js +28 -28
  200. package/link/link-button.js +7 -7
  201. package/link/link-static.js +7 -7
  202. package/link/link.js +4 -4
  203. package/link-list/common.js +15 -15
  204. package/link-list/link-list-anchor.js +3 -3
  205. package/link-list/link-list.js +3 -3
  206. package/loading-indicator-circle.js +14 -14
  207. package/loading-indicator.js +3 -3
  208. package/map-container.js +6 -6
  209. package/menu/common/menu-action-common.d.ts +3 -0
  210. package/menu/common/menu-action-common.d.ts.map +1 -1
  211. package/menu/common.js +34 -30
  212. package/menu/menu-button.js +8 -8
  213. package/menu/menu-link.js +6 -6
  214. package/menu/menu.js +7 -7
  215. package/message.js +3 -3
  216. package/navigation/navigation-button.js +4 -4
  217. package/navigation/navigation-link.js +7 -7
  218. package/navigation/navigation-list.js +4 -4
  219. package/navigation/navigation-marker.js +3 -3
  220. package/navigation/navigation-section.js +1 -1
  221. package/notification.js +19 -19
  222. package/option/optgroup.js +14 -14
  223. package/option/option.js +3 -3
  224. package/overlay/overlay-base-element.d.ts.map +1 -1
  225. package/overlay.js +14 -14
  226. package/package.json +6 -2
  227. package/paginator/common.js +6 -6
  228. package/paginator/paginator.js +1 -1
  229. package/popover/popover.js +13 -13
  230. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  231. package/radio-button/radio-button-group.js +1 -1
  232. package/radio-button/radio-button-panel.js +6 -6
  233. package/{sbb-tokens-Dx20OtVg.js → sbb-tokens-BgDF8jIh.js} +14 -14
  234. package/screen-reader-only.js +8 -8
  235. package/select/select.d.ts +4 -1
  236. package/select/select.d.ts.map +1 -1
  237. package/select.js +35 -28
  238. package/signet.js +1 -1
  239. package/skiplink-list.js +3 -3
  240. package/slider.js +13 -13
  241. package/standard-theme.css +37 -3
  242. package/status.js +3 -3
  243. package/stepper/step-label.js +4 -4
  244. package/stepper/step.js +3 -3
  245. package/table/table-wrapper.js +4 -4
  246. package/tabs/tab-group.js +24 -24
  247. package/tabs/tab-label.js +1 -1
  248. package/tabs/tab.js +4 -4
  249. package/tag/tag-group.js +7 -7
  250. package/teaser-product/common.js +5 -5
  251. package/teaser-product/teaser-product-static.js +2 -2
  252. package/time-input.js +3 -3
  253. package/timetable-occupancy-icon.js +3 -3
  254. package/timetable-occupancy.js +6 -6
  255. package/title/title-base.d.ts.map +1 -1
  256. package/title.js +41 -42
  257. package/toast.js +5 -5
  258. package/toggle/toggle/toggle.d.ts +25 -6
  259. package/toggle/toggle/toggle.d.ts.map +1 -1
  260. package/toggle/toggle-option/toggle-option.d.ts +2 -6
  261. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  262. package/toggle/toggle-option.js +44 -52
  263. package/toggle/toggle.js +103 -83
  264. package/toggle-check.js +5 -5
  265. package/train/train-blocked-passage.js +3 -3
  266. package/train/train-formation.js +1 -1
  267. package/train/train.js +29 -29
  268. package/visual-checkbox.js +1 -1
package/icon.js CHANGED
@@ -4,7 +4,7 @@ var T = (t) => {
4
4
  var M = (t, e, i) => e.has(t) || T("Cannot " + i);
5
5
  var I = (t, e, i) => (M(t, e, "read from private field"), i ? i.call(t) : e.get(t)), N = (t, e, i) => e.has(t) ? T("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), _ = (t, e, i, a) => (M(t, e, "write to private field"), a ? a.call(t, i) : e.set(t, i), i);
6
6
  import { __esDecorate as v, __runInitializers as d } from "tslib";
7
- import { isServer as P, css as B, html as C, LitElement as F, nothing as O } from "lit";
7
+ import { isServer as P, css as B, LitElement as F, html as C, nothing as O } from "lit";
8
8
  import { state as x, property as L, customElement as V } from "lit/decorators.js";
9
9
  import { hostAttributes as G, forceType as E, omitEmptyConverter as D } from "./core/decorators.js";
10
10
  import { unsafeHTML as J } from "lit/directives/unsafe-html.js";
@@ -32,15 +32,15 @@ const R = (t) => typeof t == "string", q = (t) => {
32
32
  const c = a.firstElementChild;
33
33
  return c && c.nodeName.toLowerCase() === "svg" && (i && !c.classList.contains("color-immutable") && c.classList.add("color-immutable"), e === !1 || q(c)) ? a.innerHTML : "";
34
34
  }, U = "https://icons.app.sbb.ch/", X = (/* @__PURE__ */ new Map()).set("default", `${U}icons/`).set("picto", `${U}picto/`), j = /* @__PURE__ */ new Map(), Y = (t, e, i) => {
35
- var m;
36
- const a = Q().icon ?? {}, c = ((m = a.namespaces) == null ? void 0 : m.get(t)) ?? X.get(t);
35
+ var u;
36
+ const a = Q().icon ?? {}, c = ((u = a.namespaces) == null ? void 0 : u.get(t)) ?? X.get(t);
37
37
  if (c == null)
38
38
  throw Error(`Unable to find the namespace "${t}". Please register your custom namespace.`);
39
39
  const l = `${c}${e}.svg`;
40
- let u = j.get(l);
41
- if (!u)
40
+ let m = j.get(l);
41
+ if (!m)
42
42
  if (typeof fetch < "u" && !P)
43
- u = (a.interceptor ?? ((h) => h.request()))({
43
+ m = (a.interceptor ?? ((h) => h.request()))({
44
44
  namespace: t,
45
45
  name: e,
46
46
  url: l,
@@ -51,24 +51,24 @@ const R = (t) => typeof t == "string", q = (t) => {
51
51
  }).catch((h) => {
52
52
  throw Error(h);
53
53
  })
54
- }), j.set(l, u);
54
+ }), j.set(l, m);
55
55
  else
56
56
  return Promise.resolve("");
57
- return u;
57
+ return m;
58
58
  }, Z = B`*,:before,:after{box-sizing:border-box}:host{display:inline-block;line-height:0;-webkit-tap-highlight-color:transparent}:host([data-empty]){--sbb-icon-default-dimension: 0}:host([data-empty][data-namespace=default][name$=-small]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-small)}:host([data-empty][data-namespace=default][name$=-medium]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-medium)}:host([data-empty][data-namespace=default][name$=-large]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-large)}svg{width:var(--sbb-icon-svg-width, var(--sbb-icon-default-dimension));height:var(--sbb-icon-svg-height, var(--sbb-icon-default-dimension));stroke:var(--sbb-icon-svg-stroke-color);stroke-width:var(--sbb-icon-svg-stroke-width)}svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}svg:not(.color-immutable) [stroke]:not([stroke=none]){stroke:currentcolor}svg:not(.color-immutable)>:where(path,polygon,polyline):where(:not([stroke]):not([fill])),svg:not(.color-immutable) :where(:not([stroke]):not([fill])) :where(path,polygon,polyline):where(:not([stroke]):not([fill])){fill:currentcolor}`, k = "default";
59
59
  let tt = (() => {
60
60
  var z, A, r, s;
61
61
  let t = [G({
62
62
  "data-namespace": k,
63
63
  "data-empty": ""
64
- })], e, i = [], a, c = F, l, u = [], m = [], w, h = [], g = [], b, f = [], p = [];
64
+ })], e, i = [], a, c = F, l, m = [], u = [], w, h = [], g = [], b, p = [], f = [];
65
65
  return s = class extends c {
66
66
  constructor() {
67
67
  super(...arguments);
68
- N(this, z, d(this, u, k));
69
- N(this, A, (d(this, m), d(this, h, null)));
70
- N(this, r, (d(this, g), d(this, f, !1)));
71
- d(this, p);
68
+ N(this, z, d(this, m, k));
69
+ N(this, A, (d(this, u), d(this, h, null)));
70
+ N(this, r, (d(this, g), d(this, p, !1)));
71
+ d(this, f);
72
72
  }
73
73
  get _svgNamespace() {
74
74
  return I(this, z);
@@ -142,21 +142,21 @@ let tt = (() => {
142
142
  const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
143
143
  l = [x()], w = [x()], b = [E(), L({ attribute: "no-sanitize", type: Boolean })], v(s, null, l, { kind: "accessor", name: "_svgNamespace", static: !1, private: !1, access: { has: (n) => "_svgNamespace" in n, get: (n) => n._svgNamespace, set: (n, S) => {
144
144
  n._svgNamespace = S;
145
- } }, metadata: o }, u, m), v(s, null, w, { kind: "accessor", name: "_svgIcon", static: !1, private: !1, access: { has: (n) => "_svgIcon" in n, get: (n) => n._svgIcon, set: (n, S) => {
145
+ } }, metadata: o }, m, u), v(s, null, w, { kind: "accessor", name: "_svgIcon", static: !1, private: !1, access: { has: (n) => "_svgIcon" in n, get: (n) => n._svgIcon, set: (n, S) => {
146
146
  n._svgIcon = S;
147
147
  } }, metadata: o }, h, g), v(s, null, b, { kind: "accessor", name: "noSanitize", static: !1, private: !1, access: { has: (n) => "noSanitize" in n, get: (n) => n.noSanitize, set: (n, S) => {
148
148
  n.noSanitize = S;
149
- } }, metadata: o }, f, p), v(null, e = { value: a }, t, { kind: "class", name: a.name, metadata: o }, null, i), a = e.value, o && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
149
+ } }, metadata: o }, p, f), v(null, e = { value: a }, t, { kind: "class", name: a.name, metadata: o }, null, i), a = e.value, o && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
150
150
  })(), s.styles = Z, d(a, i), a;
151
151
  })(), ct = (() => {
152
- var b, f, p;
153
- let t = [V("sbb-icon")], e, i = [], a, c = tt, l, u = [], m = [], w, h = [], g = [];
154
- return p = class extends c {
152
+ var b, p, f;
153
+ let t = [V("sbb-icon")], e, i = [], a, c = tt, l, m = [], u = [], w, h = [], g = [];
154
+ return f = class extends c {
155
155
  constructor() {
156
156
  super(...arguments);
157
157
  N(this, b);
158
- N(this, f);
159
- _(this, b, d(this, u, "")), this._defaultAriaLabel = (d(this, m), ""), _(this, f, d(this, h, !1)), d(this, g);
158
+ N(this, p);
159
+ _(this, b, d(this, m, "")), this._defaultAriaLabel = (d(this, u), ""), _(this, p, d(this, h, !1)), d(this, g);
160
160
  }
161
161
  /**
162
162
  * We need to additionally observe the svgicon attribute
@@ -183,10 +183,10 @@ let tt = (() => {
183
183
  * components) we need to check whether the attribute svgicon is used.
184
184
  */
185
185
  get _sbbAngularCompatibility() {
186
- return I(this, f);
186
+ return I(this, p);
187
187
  }
188
188
  set _sbbAngularCompatibility(r) {
189
- _(this, f, r);
189
+ _(this, p, r);
190
190
  }
191
191
  async fetchSvgIcon(r, s) {
192
192
  return this.getAttribute("aria-label") === this._defaultAriaLabel && this.removeAttribute("aria-label"), this._defaultAriaLabel = `Icon ${s.replace(/-/g, " ")}`, this.getAttribute("aria-hidden") === "false" && !this.hasAttribute("aria-label") && s && this.setAttribute("aria-label", this._defaultAriaLabel), super.fetchSvgIcon(r, s);
@@ -203,22 +203,22 @@ let tt = (() => {
203
203
  render() {
204
204
  return this._sbbAngularCompatibility ? C`<slot></slot>` : super.render();
205
205
  }
206
- }, b = new WeakMap(), f = new WeakMap(), a = p, (() => {
206
+ }, b = new WeakMap(), p = new WeakMap(), a = f, (() => {
207
207
  const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
208
- l = [E(), L({ reflect: !0, converter: D })], w = [x()], v(p, null, l, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (s) => "name" in s, get: (s) => s.name, set: (s, y) => {
208
+ l = [E(), L({ reflect: !0, converter: D })], w = [x()], v(f, null, l, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (s) => "name" in s, get: (s) => s.name, set: (s, y) => {
209
209
  s.name = y;
210
- } }, metadata: r }, u, m), v(p, null, w, { kind: "accessor", name: "_sbbAngularCompatibility", static: !1, private: !1, access: { has: (s) => "_sbbAngularCompatibility" in s, get: (s) => s._sbbAngularCompatibility, set: (s, y) => {
210
+ } }, metadata: r }, m, u), v(f, null, w, { kind: "accessor", name: "_sbbAngularCompatibility", static: !1, private: !1, access: { has: (s) => "_sbbAngularCompatibility" in s, get: (s) => s._sbbAngularCompatibility, set: (s, y) => {
211
211
  s._sbbAngularCompatibility = y;
212
212
  } }, metadata: r }, h, g), v(null, e = { value: a }, t, { kind: "class", name: a.name, metadata: r }, null, i), a = e.value, r && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r }), d(a, i);
213
213
  })(), a;
214
214
  })();
215
- const ut = (t) => (() => {
216
- var u, m;
215
+ const mt = (t) => (() => {
216
+ var m, u;
217
217
  let i = t, a, c = [], l = [];
218
- return m = class extends i {
218
+ return u = class extends i {
219
219
  constructor() {
220
220
  super(...arguments);
221
- N(this, u, d(this, c, ""));
221
+ N(this, m, d(this, c, ""));
222
222
  d(this, l);
223
223
  }
224
224
  /**
@@ -227,10 +227,10 @@ const ut = (t) => (() => {
227
227
  * https://icons.app.sbb.ch.
228
228
  */
229
229
  get iconName() {
230
- return I(this, u);
230
+ return I(this, m);
231
231
  }
232
232
  set iconName(g) {
233
- _(this, u, g);
233
+ _(this, m, g);
234
234
  }
235
235
  renderIconSlot(g) {
236
236
  return C`
@@ -239,17 +239,17 @@ const ut = (t) => (() => {
239
239
  </slot>
240
240
  `;
241
241
  }
242
- }, u = new WeakMap(), (() => {
242
+ }, m = new WeakMap(), (() => {
243
243
  const g = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
244
- a = [E(), L({ attribute: "icon-name", reflect: !0, converter: D })], v(m, null, a, { kind: "accessor", name: "iconName", static: !1, private: !1, access: { has: (b) => "iconName" in b, get: (b) => b.iconName, set: (b, f) => {
245
- b.iconName = f;
246
- } }, metadata: g }, c, l), g && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: g });
247
- })(), m;
244
+ a = [E(), L({ attribute: "icon-name", reflect: !0, converter: D })], v(u, null, a, { kind: "accessor", name: "iconName", static: !1, private: !1, access: { has: (b) => "iconName" in b, get: (b) => b.iconName, set: (b, p) => {
245
+ b.iconName = p;
246
+ } }, metadata: g }, c, l), g && Object.defineProperty(u, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: g });
247
+ })(), u;
248
248
  })();
249
249
  export {
250
250
  tt as SbbIconBase,
251
251
  ct as SbbIconElement,
252
- ut as SbbIconNameMixin,
252
+ mt as SbbIconNameMixin,
253
253
  Y as getSvgContent,
254
254
  q as isValid,
255
255
  W as validateContent
package/image.js CHANGED
@@ -4,8 +4,8 @@ var _e = (r) => {
4
4
  var ke = (r, o, l) => o.has(r) || _e("Cannot " + l);
5
5
  var h = (r, o, l) => (ke(r, o, "read from private field"), l ? l.call(r) : o.get(r)), u = (r, o, l) => o.has(r) ? _e("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(r) : o.set(r, l), s = (r, o, l, d) => (ke(r, o, "write to private field"), d ? d.call(r, l) : o.set(r, l), l);
6
6
  import { __esDecorate as p, __runInitializers as a } from "tslib";
7
- import { S as Se, a as ye, b as ze, c as ve, d as xe, e as Me, f as $e, g as we, h as Le, i as Ie, j as Ce, k as Fe, l as De, m as Be, n as Ee } from "./sbb-tokens-Dx20OtVg.js";
8
- import { css as Qe, html as Q, nothing as F, LitElement as qe } from "lit";
7
+ import { S as Se, a as ye, b as ze, c as ve, d as xe, e as Me, f as $e, g as we, h as Le, i as Ie, j as Ce, k as Fe, l as De, m as Be, n as Ee } from "./sbb-tokens-BgDF8jIh.js";
8
+ import { css as Qe, LitElement as qe, nothing as F, html as Q } from "lit";
9
9
  import { customElement as Oe, property as g, eventOptions as Te } from "lit/decorators.js";
10
10
  import { forceType as b } from "./core/decorators.js";
11
11
  const Xe = Qe`*,:before,:after{box-sizing:border-box}:host{--sbb-image-aspect-ratio: 16 / 9;--sbb-image-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-image-object-fit: cover;display:block;border-radius:var(--sbb-border-radius-4x);overflow:hidden}.sbb-image__img{opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host(:not([skip-lqip])) .sbb-image__img{position:absolute;top:0;right:0;bottom:0;left:0}:host([data-loaded]) .sbb-image__blurred{opacity:0}picture{display:contents}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:var(--sbb-image-object-fit);object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio)}`, Ye = (r) => {
@@ -35,20 +35,20 @@ const Xe = Qe`*,:before,:after{box-sizing:border-box}:host{--sbb-image-aspect-ra
35
35
  once: !0,
36
36
  passive: !0
37
37
  }, m = (r) => r / Se, Ue = {
38
- "sbb-breakpoint-zero-min": m(ye),
39
- "sbb-breakpoint-zero-max": m(ze),
40
- "sbb-breakpoint-micro-min": m(ve),
41
- "sbb-breakpoint-micro-max": m(xe),
42
- "sbb-breakpoint-small-min": m(Me),
43
- "sbb-breakpoint-small-max": m($e),
44
- "sbb-breakpoint-medium-min": m(we),
45
- "sbb-breakpoint-medium-max": m(Le),
46
- "sbb-breakpoint-large-min": m(Ie),
47
- "sbb-breakpoint-large-max": m(Ce),
48
- "sbb-breakpoint-wide-min": m(Fe),
49
- "sbb-breakpoint-wide-max": m(De),
50
- "sbb-breakpoint-ultra-min": m(Be),
51
- "sbb-breakpoint-ultra-max": m(Ee)
38
+ "sbb-breakpoint-zero-min": m(Ee),
39
+ "sbb-breakpoint-zero-max": m(Be),
40
+ "sbb-breakpoint-micro-min": m(De),
41
+ "sbb-breakpoint-micro-max": m(Fe),
42
+ "sbb-breakpoint-small-min": m(Ce),
43
+ "sbb-breakpoint-small-max": m(Ie),
44
+ "sbb-breakpoint-medium-min": m(Le),
45
+ "sbb-breakpoint-medium-max": m(we),
46
+ "sbb-breakpoint-large-min": m($e),
47
+ "sbb-breakpoint-large-max": m(Me),
48
+ "sbb-breakpoint-wide-min": m(xe),
49
+ "sbb-breakpoint-wide-max": m(ve),
50
+ "sbb-breakpoint-ultra-min": m(ze),
51
+ "sbb-breakpoint-ultra-max": m(ye)
52
52
  };
53
53
  let Ze = (() => {
54
54
  var k, P, S, y, z, v, x, M, $, w, L, I, n;
package/journey-header.js CHANGED
@@ -4,7 +4,7 @@ var O = (i) => {
4
4
  var B = (i, s, r) => s.has(i) || O("Cannot " + r);
5
5
  var g = (i, s, r) => (B(i, s, "read from private field"), r ? r.call(i) : s.get(i)), p = (i, s, r) => s.has(i) ? O("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), n = (i, s, r, l) => (B(i, s, "write to private field"), l ? l.call(i, r) : s.set(i, r), r);
6
6
  import { __runInitializers as o, __esDecorate as _ } from "tslib";
7
- import { css as J, LitElement as P, html as F, nothing as H } from "lit";
7
+ import { css as J, LitElement as P, nothing as F, html as H } from "lit";
8
8
  import { customElement as R, property as f } from "lit/decorators.js";
9
9
  import { SbbLanguageController as q } from "./core/controllers.js";
10
10
  import { forceType as v } from "./core/decorators.js";
@@ -72,9 +72,9 @@ let de = (() => {
72
72
  }
73
73
  render() {
74
74
  const t = this.roundTrip ? "arrows-long-right-left-small" : "arrow-long-right-small";
75
- return F`
75
+ return H`
76
76
  <sbb-title
77
- level=${this.level || H}
77
+ level=${this.level || F}
78
78
  ?negative=${this.negative}
79
79
  visual-level=${W.get(this.size)}
80
80
  >
@@ -91,9 +91,9 @@ let de = (() => {
91
91
  &nbsp;${K[this._language.current]}&nbsp;
92
92
  </sbb-screen-reader-only>
93
93
  ${this.destination}
94
- ${this.roundTrip ? F` <sbb-screen-reader-only>
94
+ ${this.roundTrip ? H` <sbb-screen-reader-only>
95
95
  ${Q(this.origin)[this._language.current]}
96
- </sbb-screen-reader-only>` : H}
96
+ </sbb-screen-reader-only>` : F}
97
97
  </span>
98
98
  </span>
99
99
  </sbb-title>
package/lead-container.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { __esDecorate as b, __runInitializers as o } from "tslib";
2
- import { css as d, html as l, LitElement as c } from "lit";
2
+ import { css as d, LitElement as l, html as c } from "lit";
3
3
  import { customElement as m } from "lit/decorators.js";
4
4
  const g = d`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-lead-container-background-color: var(--sbb-color-white);--sbb-lead-container-image-ratio: 2 / 1;--sbb-lead-container-image-overlap: var(--sbb-spacing-fixed-24x);--sbb-lead-container-padding-block: var(--sbb-spacing-responsive-l);--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);--sbb-lead-container-image-border-radius: 0}@media (min-width: 80rem){:host{--sbb-lead-container-image-ratio: 21 / 9}}@media (min-width: 90rem){:host{--sbb-lead-container-image-border-radius: var(--sbb-lead-container-border-radius)}}.sbb-lead-container{padding-block-end:var(--sbb-spacing-responsive-l)}::slotted([slot=image]){display:block;width:100%}::slotted(:is(sbb-breadcrumb-group,sbb-block-link).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-fixed-4x)}::slotted(:is(sbb-alert,sbb-alert-group).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-responsive-m)}::slotted(sbb-title.sbb-lead-container-spacing){margin-block-start:0}::slotted(sbb-notification.sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-responsive-xxxs)}::slotted(.sbb-lead-container-lead-text){margin-block:0 var(--sbb-spacing-responsive-s)}@media (min-width: 90rem){.sbb-lead-container-image{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive));margin-inline:auto}}.sbb-lead-container-content-wrapper{background-color:var(--sbb-lead-container-background-color);display:grid;gap:var(--sbb-grid-base-gutter-responsive);grid-template-columns:repeat(var(--sbb-grid-base-columns),1fr);padding-inline:var(--sbb-layout-base-offset-responsive);margin-inline:auto;width:100%}@media (min-width: 90rem){.sbb-lead-container-content-wrapper{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive))}}@media (min-width: 64rem){.sbb-lead-container-content-wrapper{background-color:transparent}}.sbb-lead-container-content{z-index:1;border-radius:var(--sbb-lead-container-border-radius);padding-block:var(--sbb-lead-container-padding-block);background-color:var(--sbb-lead-container-background-color);grid-column:1/-1}@media (min-width: 52.5rem){.sbb-lead-container-content{grid-column:2/-2}}@media (min-width: 64rem){.sbb-lead-container-content{margin-block-start:calc(-1 * var(--sbb-lead-container-image-overlap));padding-inline:var(--sbb-lead-container-padding-inline);margin-inline:calc(-1 * var(--sbb-lead-container-padding-inline))}}@media (min-width: 80rem){.sbb-lead-container-content{grid-column:3/-3}}@media (min-width: 90rem){.sbb-lead-container-content{grid-column:4/-4}}`;
5
5
  let h = (() => {
6
6
  var a;
7
- let s = [m("sbb-lead-container")], i, r = [], e, t = c;
7
+ let s = [m("sbb-lead-container")], i, r = [], e, t = l;
8
8
  return a = class extends t {
9
9
  render() {
10
- return l`
10
+ return c`
11
11
  <div class="sbb-lead-container">
12
12
  <div class="sbb-lead-container-image">
13
13
  <slot name="image"></slot>
@@ -5,11 +5,11 @@ import { SbbDisabledTabIndexActionMixin as c } from "../core/mixins.js";
5
5
  import { SbbBlockLinkCommonElementMixin as u } from "./common.js";
6
6
  let k = (() => {
7
7
  var e;
8
- let i = [s("sbb-block-link-button")], l, n = [], t, o = u(c(b));
9
- return e = class extends o {
8
+ let n = [s("sbb-block-link-button")], l, o = [], t, i = u(c(b));
9
+ return e = class extends i {
10
10
  }, t = e, (() => {
11
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
12
- r(null, l = { value: t }, i, { kind: "class", name: t.name, metadata: a }, null, n), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(t, n);
11
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
12
+ r(null, l = { value: t }, n, { kind: "class", name: t.name, metadata: a }, null, o), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(t, o);
13
13
  })(), t;
14
14
  })();
15
15
  export {
@@ -1,16 +1,16 @@
1
- import { __esDecorate as n, __runInitializers as s } from "tslib";
2
- import { customElement as m } from "lit/decorators.js";
1
+ import { __esDecorate as s, __runInitializers as m } from "tslib";
2
+ import { customElement as n } from "lit/decorators.js";
3
3
  import { SbbActionBaseElement as c } from "../core/base-elements.js";
4
4
  import { SbbDisabledMixin as b } from "../core/mixins.js";
5
5
  import { SbbBlockLinkCommonElementMixin as u } from "./common.js";
6
6
  let k = (() => {
7
- var t;
8
- let o = [m("sbb-block-link-static")], l, i = [], e, r = u(b(c));
9
- return t = class extends r {
10
- }, e = t, (() => {
11
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
12
- n(null, l = { value: e }, o, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
13
- })(), e;
7
+ var e;
8
+ let r = [n("sbb-block-link-static")], l, i = [], t, o = u(b(c));
9
+ return e = class extends o {
10
+ }, t = e, (() => {
11
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
12
+ s(null, l = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, i), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(t, i);
13
+ })(), t;
14
14
  })();
15
15
  export {
16
16
  k as SbbBlockLinkStaticElement
@@ -1,15 +1,15 @@
1
- import { __esDecorate as o, __runInitializers as m } from "tslib";
2
- import { customElement as s } from "lit/decorators.js";
1
+ import { __esDecorate as m, __runInitializers as s } from "tslib";
2
+ import { customElement as n } from "lit/decorators.js";
3
3
  import { SbbLinkBaseElement as c } from "../core/base-elements.js";
4
4
  import { SbbDisabledMixin as b } from "../core/mixins.js";
5
5
  import { SbbBlockLinkCommonElementMixin as u } from "./common.js";
6
6
  let k = (() => {
7
7
  var t;
8
- let n = [s("sbb-block-link")], l, i = [], e, r = u(b(c));
8
+ let o = [n("sbb-block-link")], l, i = [], e, r = u(b(c));
9
9
  return t = class extends r {
10
10
  }, e = t, (() => {
11
11
  const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
12
- o(null, l = { value: e }, n, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, i);
12
+ m(null, l = { value: e }, o, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
13
13
  })(), e;
14
14
  })();
15
15
  export {
package/link/common.js CHANGED
@@ -1,23 +1,23 @@
1
1
  var _ = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var z = (t, i, e) => i.has(t) || _("Cannot " + e);
5
- var h = (t, i, e) => (z(t, i, "read from private field"), e ? e.call(t) : i.get(t)), f = (t, i, e) => i.has(t) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), v = (t, i, e, r) => (z(t, i, "write to private field"), r ? r.call(t, e) : i.set(t, e), e);
6
- import { __esDecorate as p, __runInitializers as m } from "tslib";
4
+ var z = (t, o, e) => o.has(t) || _("Cannot " + e);
5
+ var h = (t, o, e) => (z(t, o, "read from private field"), e ? e.call(t) : o.get(t)), f = (t, o, e) => o.has(t) ? _("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(t) : o.set(t, e), v = (t, o, e, a) => (z(t, o, "write to private field"), a ? a.call(t, e) : o.set(t, e), e);
6
+ import { __esDecorate as x, __runInitializers as m } from "tslib";
7
7
  import { property as S } from "lit/decorators.js";
8
8
  import { html as w } from "lit/static-html.js";
9
9
  import { SbbIconNameMixin as I } from "../icon.js";
10
10
  import { hostAttributes as M, slotState as j } from "../core/decorators.js";
11
11
  import { isLean as B } from "../core/dom.js";
12
12
  import { SbbNegativeMixin as E } from "../core/mixins.js";
13
- import { css as g } from "lit";
14
- const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}@media (forced-colors: active){:host([data-button]){--sbb-link-color-normal: ButtonText;--sbb-link-color-hover: ButtonText;--sbb-link-color-active: ButtonText}}.sbb-action-base{color:var(--sbb-link-color-normal);text-decoration:var(--sbb-link-text-decoration, underline);-webkit-user-select:none;user-select:none}@media (forced-colors: active){.sbb-action-base{text-decoration:underline}}.sbb-action-base{display:flex;align-items:center;width:100%;cursor:pointer;padding:var(--sbb-link-padding, 0);outline:none}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{pointer-events:none;cursor:default}@media (forced-colors: active){:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:GrayText}}:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base,:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}@media (any-hover: hover){:host(:hover:not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-hover);text-decoration:var(--sbb-link-hover-text-decoration, underline)}}:host(:is(:active,[data-active]):not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-active)}`, P = (t) => (() => {
15
- var a, o;
16
- let e = [M({ "data-sbb-link": "" }), j()], r, c = [], n, l = E(t), s, x = [], u = [];
17
- return o = class extends l {
13
+ import { css as p } from "lit";
14
+ const g = p`*,:before,:after{box-sizing:border-box}:host{outline:none!important}@media (forced-colors: active){:host([data-button]){--sbb-link-color-normal: ButtonText;--sbb-link-color-hover: ButtonText;--sbb-link-color-active: ButtonText}}.sbb-action-base{color:var(--sbb-link-color-normal);text-decoration-line:var(--sbb-link-text-decoration, underline);text-decoration-color:var(--sbb-link-text-decoration-color);text-decoration-thickness:.0625rem;text-underline-offset:.3125em;-webkit-user-select:none;user-select:none}@media (forced-colors: active){.sbb-action-base{text-decoration:underline}}.sbb-action-base{display:flex;align-items:center;width:100%;cursor:pointer;padding:var(--sbb-link-padding, 0);outline:none}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{pointer-events:none;cursor:default}@media (forced-colors: active){:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:GrayText}}:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base,:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}@media (any-hover: hover){:host(:hover:not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-hover);text-decoration-line:var(--sbb-link-hover-text-decoration, underline);text-decoration-color:var(--sbb-link-text-decoration-color-hover)}}:host(:is(:active,[data-active]):not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-active)}`, P = (t) => (() => {
15
+ var r, i;
16
+ let e = [M({ "data-sbb-link": "" }), j()], a, c = [], n, l = E(t), s, k = [], u = [];
17
+ return i = class extends l {
18
18
  constructor() {
19
19
  super(...arguments);
20
- f(this, a, m(this, x, B() ? "xs" : "s"));
20
+ f(this, r, m(this, k, B() ? "xs" : "s"));
21
21
  m(this, u);
22
22
  }
23
23
  /**
@@ -26,23 +26,23 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
26
26
  * @default 's' / 'xs' (lean)
27
27
  */
28
28
  get size() {
29
- return h(this, a);
29
+ return h(this, r);
30
30
  }
31
31
  set size(b) {
32
- v(this, a, b);
32
+ v(this, r, b);
33
33
  }
34
34
  renderTemplate() {
35
35
  return w`<slot></slot>`;
36
36
  }
37
- }, a = new WeakMap(), n = o, (() => {
37
+ }, r = new WeakMap(), n = i, (() => {
38
38
  const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
39
- s = [S({ reflect: !0 })], p(o, null, s, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (d) => "size" in d, get: (d) => d.size, set: (d, T) => {
39
+ s = [S({ reflect: !0 })], x(i, null, s, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (d) => "size" in d, get: (d) => d.size, set: (d, T) => {
40
40
  d.size = T;
41
- } }, metadata: b }, x, u), p(null, r = { value: n }, e, { kind: "class", name: n.name, metadata: b }, null, c), n = r.value, b && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
42
- })(), o.styles = y, m(n, c), n;
43
- })(), L = g`:host{--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-link-color-normal: var(--sbb-color-white);--sbb-link-color-hover: var(--sbb-color-cloud);--sbb-link-color-active: var(--sbb-color-silver);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-xs);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([size=s]) .sbb-action-base{--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)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-m);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)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-body-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-link__icon{display:none}:host([icon-placement=end]) .sbb-link__icon{order:2}.sbb-link__icon ::slotted([slot=icon]),.sbb-link__icon sbb-icon{position:absolute;top:50%;transform:translateY(-50%)}`, H = (t) => (() => {
41
+ } }, metadata: b }, k, u), x(null, a = { value: n }, e, { kind: "class", name: n.name, metadata: b }, null, c), n = a.value, b && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
42
+ })(), i.styles = g, m(n, c), n;
43
+ })(), L = p`:host{--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);--sbb-link-text-decoration-color: color-mix(in srgb, currentcolor 80%, white);--sbb-link-text-decoration-color-hover: currentcolor;--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-text-decoration-color: color-mix(in srgb, currentcolor 80%, black);--sbb-link-text-decoration-color-hover: currentcolor;--sbb-link-color-normal: var(--sbb-color-white);--sbb-link-color-hover: var(--sbb-color-cloud);--sbb-link-color-active: var(--sbb-color-silver)}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-xs);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([size=s]) .sbb-action-base{--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)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-m);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)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-body-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-link__icon{display:none}:host([icon-placement=end]) .sbb-link__icon{order:2}.sbb-link__icon ::slotted([slot=icon]),.sbb-link__icon sbb-icon{position:absolute;top:50%;transform:translateY(-50%)}`, H = (t) => (() => {
44
44
  var l, s;
45
- let e = P(I(t)), r, c = [], n = [];
45
+ let e = P(I(t)), a, c = [], n = [];
46
46
  return s = class extends e {
47
47
  constructor() {
48
48
  super(...arguments);
@@ -53,8 +53,8 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
53
53
  get iconPlacement() {
54
54
  return h(this, l);
55
55
  }
56
- set iconPlacement(a) {
57
- v(this, l, a);
56
+ set iconPlacement(r) {
57
+ v(this, l, r);
58
58
  }
59
59
  renderTemplate() {
60
60
  return w`
@@ -63,17 +63,17 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
63
63
  `;
64
64
  }
65
65
  }, l = new WeakMap(), (() => {
66
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
67
- r = [S({ attribute: "icon-placement", reflect: !0 })], p(s, null, r, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (o) => "iconPlacement" in o, get: (o) => o.iconPlacement, set: (o, k) => {
68
- o.iconPlacement = k;
69
- } }, metadata: a }, c, n), a && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
70
- })(), s.styles = [y, L], s;
71
- })(), O = g`:host{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit;--sbb-link-color-normal: inherit;--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);color:inherit;display:inline-block}:host([negative]){--sbb-link-color-hover: var(--sbb-color-graphite);--sbb-link-color-active: var(--sbb-color-metal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-action-base{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit}`, J = (t) => {
66
+ const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
67
+ a = [S({ attribute: "icon-placement", reflect: !0 })], x(s, null, a, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (i) => "iconPlacement" in i, get: (i) => i.iconPlacement, set: (i, y) => {
68
+ i.iconPlacement = y;
69
+ } }, metadata: r }, c, n), r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
70
+ })(), s.styles = [g, L], s;
71
+ })(), O = p`:host{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit;--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);--sbb-link-text-decoration-color: color-mix(in srgb, currentcolor 80%, white);--sbb-link-text-decoration-color-hover: currentcolor;--sbb-link-color-normal: inherit;color:inherit;display:inline-block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-text-decoration-color: color-mix(in srgb, currentcolor 80%, black);--sbb-link-text-decoration-color-hover: currentcolor;--sbb-link-color-hover: var(--sbb-color-graphite);--sbb-link-color-active: var(--sbb-color-metal)}.sbb-action-base{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit}`, J = (t) => {
72
72
  const e = class e extends P(t) {
73
73
  };
74
- e.styles = [y, O];
75
- let i = e;
76
- return i;
74
+ e.styles = [g, O];
75
+ let o = e;
76
+ return o;
77
77
  };
78
78
  export {
79
79
  H as SbbBlockLinkCommonElementMixin,
@@ -1,16 +1,16 @@
1
- import { __esDecorate as o, __runInitializers as m } from "tslib";
1
+ import { __esDecorate as r, __runInitializers as m } from "tslib";
2
2
  import { customElement as s } from "lit/decorators.js";
3
3
  import { SbbButtonBaseElement as b } from "../core/base-elements.js";
4
4
  import { SbbDisabledTabIndexActionMixin as c } from "../core/mixins.js";
5
5
  import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
6
6
  let x = (() => {
7
- var t;
8
- let r = [s("sbb-link-button")], l, n = [], e, i = u(c(b));
9
- return t = class extends i {
10
- }, e = t, (() => {
7
+ var e;
8
+ let o = [s("sbb-link-button")], l, n = [], t, i = u(c(b));
9
+ return e = class extends i {
10
+ }, t = e, (() => {
11
11
  const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
12
- o(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, n), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, n);
13
- })(), e;
12
+ r(null, l = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null, n), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(t, n);
13
+ })(), t;
14
14
  })();
15
15
  export {
16
16
  x as SbbLinkButtonElement
@@ -4,13 +4,13 @@ import { SbbActionBaseElement as c } from "../core/base-elements.js";
4
4
  import { SbbDisabledMixin as b } from "../core/mixins.js";
5
5
  import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
6
6
  let y = (() => {
7
- var t;
8
- let r = [o("sbb-link-static")], l, i = [], e, n = u(b(c));
9
- return t = class extends n {
10
- }, e = t, (() => {
11
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
12
- s(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, i);
13
- })(), e;
7
+ var e;
8
+ let n = [o("sbb-link-static")], l, i = [], t, r = u(b(c));
9
+ return e = class extends r {
10
+ }, t = e, (() => {
11
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
12
+ s(null, l = { value: t }, n, { kind: "class", name: t.name, metadata: a }, null, i), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(t, i);
13
+ })(), t;
14
14
  })();
15
15
  export {
16
16
  y as SbbLinkStaticElement
package/link/link.js CHANGED
@@ -5,11 +5,11 @@ import { SbbDisabledMixin as c } from "../core/mixins.js";
5
5
  import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
6
6
  let y = (() => {
7
7
  var t;
8
- let r = [o("sbb-link")], l, i = [], e, n = u(c(b));
9
- return t = class extends n {
8
+ let n = [o("sbb-link")], l, i = [], e, r = u(c(b));
9
+ return t = class extends r {
10
10
  }, e = t, (() => {
11
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
12
- m(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
11
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
12
+ m(null, l = { value: e }, n, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
13
13
  })(), e;
14
14
  })();
15
15
  export {
@@ -2,9 +2,9 @@ var w = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var I = (e, s, l) => s.has(e) || w("Cannot " + l);
5
- var d = (e, s, l) => (I(e, s, "read from private field"), l ? l.call(e) : s.get(e)), u = (e, s, l) => s.has(e) ? w("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, l), r = (e, s, l, a) => (I(e, s, "write to private field"), a ? a.call(e, l) : s.set(e, l), l);
6
- import { __esDecorate as _, __runInitializers as o } from "tslib";
7
- import { LitElement as E, html as $, nothing as B, css as D } from "lit";
5
+ var d = (e, s, l) => (I(e, s, "read from private field"), l ? l.call(e) : s.get(e)), _ = (e, s, l) => s.has(e) ? w("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, l), r = (e, s, l, a) => (I(e, s, "write to private field"), a ? a.call(e, l) : s.set(e, l), l);
6
+ import { __esDecorate as u, __runInitializers as o } from "tslib";
7
+ import { LitElement as E, nothing as $, html as B, css as D } from "lit";
8
8
  import { property as v } from "lit/decorators.js";
9
9
  import { slotState as N, forceType as j, omitEmptyConverter as M } from "../core/decorators.js";
10
10
  import { isLean as O } from "../core/dom.js";
@@ -12,13 +12,13 @@ import { SbbNegativeMixin as T, SbbNamedSlotListMixin as U } from "../core/mixin
12
12
  import "../title.js";
13
13
  let V = (() => {
14
14
  var c, b, m, n;
15
- let e = [N()], s, l = [], a, f = T(U(E)), p, k = [], z = [], L, g = [], x = [], C, y = [], S = [];
16
- return n = class extends f {
15
+ let e = [N()], s, l = [], a, p = T(U(E)), f, k = [], z = [], L, g = [], x = [], C, y = [], S = [];
16
+ return n = class extends p {
17
17
  constructor() {
18
18
  super(...arguments);
19
- u(this, c);
20
- u(this, b);
21
- u(this, m);
19
+ _(this, c);
20
+ _(this, b);
21
+ _(this, m);
22
22
  this.listChildLocalNames = [
23
23
  "sbb-block-link",
24
24
  "sbb-block-link-button",
@@ -56,11 +56,11 @@ let V = (() => {
56
56
  t.negative = this.negative, t.size = this.size;
57
57
  }
58
58
  render() {
59
- return $`
59
+ return B`
60
60
  <div class="sbb-link-list-wrapper">
61
61
  <sbb-title
62
62
  class="sbb-link-list-title"
63
- level=${this.titleLevel || B}
63
+ level=${this.titleLevel || $}
64
64
  visual-level="5"
65
65
  ?negative=${this.negative}
66
66
  id="sbb-link-list-title-id"
@@ -72,14 +72,14 @@ let V = (() => {
72
72
  `;
73
73
  }
74
74
  }, c = new WeakMap(), b = new WeakMap(), m = new WeakMap(), a = n, (() => {
75
- const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
76
- p = [j(), v({ attribute: "title-content", reflect: !0, converter: M })], L = [v({ attribute: "title-level" })], C = [v({ reflect: !0 })], _(n, null, p, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (t) => "titleContent" in t, get: (t) => t.titleContent, set: (t, h) => {
75
+ const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
76
+ f = [j(), v({ attribute: "title-content", reflect: !0, converter: M })], L = [v({ attribute: "title-level" })], C = [v({ reflect: !0 })], u(n, null, f, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (t) => "titleContent" in t, get: (t) => t.titleContent, set: (t, h) => {
77
77
  t.titleContent = h;
78
- } }, metadata: i }, k, z), _(n, null, L, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (t) => "titleLevel" in t, get: (t) => t.titleLevel, set: (t, h) => {
78
+ } }, metadata: i }, k, z), u(n, null, L, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (t) => "titleLevel" in t, get: (t) => t.titleLevel, set: (t, h) => {
79
79
  t.titleLevel = h;
80
- } }, metadata: i }, g, x), _(n, null, C, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, h) => {
80
+ } }, metadata: i }, g, x), u(n, null, C, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, h) => {
81
81
  t.size = h;
82
- } }, metadata: i }, y, S), _(null, s = { value: a }, e, { kind: "class", name: a.name, metadata: i }, null, l), a = s.value, i && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i }), o(a, l);
82
+ } }, metadata: i }, y, S), u(null, s = { value: a }, e, { kind: "class", name: a.name, metadata: i }, null, l), a = s.value, i && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i }), o(a, l);
83
83
  })(), a;
84
84
  })();
85
85
  const W = D`*,:before,:after{box-sizing:border-box}:host{display:block}.sbb-link-list-wrapper{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-3x)}.sbb-link-list-title{margin:0}:host(:not([data-slot-names~=title],[title-content])) .sbb-link-list-title{display:none}`;