@sbb-esta/lyne-elements 2.0.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/accordion/accordion.d.ts.map +1 -1
  2. package/accordion.js +6 -6
  3. package/action-group.js +3 -3
  4. package/alert/alert.js +8 -8
  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-option/autocomplete-grid-option.d.ts +1 -1
  11. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
  12. package/autocomplete-grid/autocomplete-grid-option.js +10 -10
  13. package/autocomplete-grid/autocomplete-grid-row.js +5 -5
  14. package/autocomplete.js +99 -90
  15. package/breadcrumb/breadcrumb-group.js +5 -5
  16. package/button/accent-button-link.js +9 -9
  17. package/button/accent-button-static.js +6 -6
  18. package/button/accent-button.js +6 -6
  19. package/button/button-link.js +7 -7
  20. package/button/button-static.js +7 -7
  21. package/button/button.js +8 -8
  22. package/button/common.js +15 -15
  23. package/button/mini-button-group.js +8 -8
  24. package/button/secondary-button-link.js +7 -7
  25. package/button/secondary-button-static.js +7 -7
  26. package/button/secondary-button.js +3 -3
  27. package/button/transparent-button-link.js +6 -6
  28. package/button/transparent-button-static.js +5 -5
  29. package/button/transparent-button.js +6 -6
  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/container.d.ts +1 -1
  40. package/container/container/container.d.ts.map +1 -1
  41. package/container/container.js +23 -23
  42. package/container/sticky-bar/sticky-bar.d.ts +1 -1
  43. package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  44. package/container/sticky-bar.js +4 -4
  45. package/core/a11y/focus.d.ts.map +1 -1
  46. package/core/a11y.js +8 -8
  47. package/core/base-elements/link-base-element.d.ts +2 -0
  48. package/core/base-elements/link-base-element.d.ts.map +1 -1
  49. package/core/base-elements.js +125 -114
  50. package/core/controllers.js +4 -4
  51. package/core/datetime/date-adapter.d.ts +1 -1
  52. package/core/datetime/date-adapter.d.ts.map +1 -1
  53. package/core/datetime/native-date-adapter.d.ts +1 -1
  54. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  55. package/core/datetime.js +6 -6
  56. package/core/dom/scroll.d.ts +1 -0
  57. package/core/dom/scroll.d.ts.map +1 -1
  58. package/core/dom.js +35 -35
  59. package/core/eventing.js +4 -4
  60. package/core/images.d.ts.map +1 -1
  61. package/core/mixins.js +18 -18
  62. package/core/styles/core.scss +23 -2
  63. package/core/testing.js +14 -14
  64. package/core.css +20 -2
  65. package/custom-elements.json +828 -431
  66. package/datepicker/common/datepicker-association-controllers.d.ts +21 -0
  67. package/datepicker/common/datepicker-association-controllers.d.ts.map +1 -0
  68. package/datepicker/common/datepicker-button.d.ts +17 -9
  69. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  70. package/datepicker/common.d.ts +1 -0
  71. package/datepicker/common.d.ts.map +1 -1
  72. package/datepicker/common.js +130 -92
  73. package/datepicker/datepicker/datepicker.d.ts +19 -4
  74. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  75. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +14 -8
  76. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  77. package/datepicker/datepicker-toggle.js +106 -113
  78. package/datepicker/datepicker.js +95 -80
  79. package/development/accordion/accordion.d.ts.map +1 -1
  80. package/development/accordion.js +1 -1
  81. package/development/action-group.js +1 -1
  82. package/development/autocomplete/autocomplete-base-element.d.ts +4 -0
  83. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  84. package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -1
  85. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts +1 -1
  86. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
  87. package/development/autocomplete-grid/autocomplete-grid-option.js +3 -3
  88. package/development/autocomplete-grid/autocomplete-grid-row.js +1 -1
  89. package/development/autocomplete.js +37 -8
  90. package/development/breadcrumb/breadcrumb-group.js +3 -3
  91. package/development/button/common.js +69 -70
  92. package/development/calendar.js +1 -1
  93. package/development/card/card-badge.js +1 -1
  94. package/development/card/card.js +1 -1
  95. package/development/chip-label.js +1 -1
  96. package/development/clock.js +1 -1
  97. package/development/container/container/container.d.ts +1 -1
  98. package/development/container/container/container.d.ts.map +1 -1
  99. package/development/container/container.js +18 -2
  100. package/development/container/sticky-bar/sticky-bar.d.ts +1 -1
  101. package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  102. package/development/container/sticky-bar.js +9 -1
  103. package/development/core/a11y/focus.d.ts.map +1 -1
  104. package/development/core/a11y.js +3 -3
  105. package/development/core/base-elements/link-base-element.d.ts +2 -0
  106. package/development/core/base-elements/link-base-element.d.ts.map +1 -1
  107. package/development/core/base-elements.js +22 -5
  108. package/development/core/controllers.js +1 -1
  109. package/development/core/datetime/date-adapter.d.ts +1 -1
  110. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  111. package/development/core/datetime/native-date-adapter.d.ts +1 -1
  112. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  113. package/development/core/datetime.js +1 -1
  114. package/development/core/dom/scroll.d.ts +1 -0
  115. package/development/core/dom/scroll.d.ts.map +1 -1
  116. package/development/core/dom.js +4 -1
  117. package/development/core/images.d.ts.map +1 -1
  118. package/development/core/mixins.js +1 -1
  119. package/development/datepicker/common/datepicker-association-controllers.d.ts +21 -0
  120. package/development/datepicker/common/datepicker-association-controllers.d.ts.map +1 -0
  121. package/development/datepicker/common/datepicker-button.d.ts +17 -9
  122. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  123. package/development/datepicker/common.d.ts +1 -0
  124. package/development/datepicker/common.d.ts.map +1 -1
  125. package/development/datepicker/common.js +139 -90
  126. package/development/datepicker/datepicker/datepicker.d.ts +19 -4
  127. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  128. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +14 -8
  129. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  130. package/development/datepicker/datepicker-toggle.js +76 -73
  131. package/development/datepicker/datepicker.js +55 -37
  132. package/development/dialog/dialog/dialog.d.ts +2 -0
  133. package/development/dialog/dialog/dialog.d.ts.map +1 -1
  134. package/development/dialog/dialog-content.js +1 -1
  135. package/development/dialog/dialog.js +38 -12
  136. package/development/expansion-panel/expansion-panel-content.js +1 -1
  137. package/development/flip-card/flip-card-details.js +1 -1
  138. package/development/flip-card/flip-card-summary.js +1 -1
  139. package/development/icon.js +1 -1
  140. package/development/image.js +2 -2
  141. package/development/lead-container.js +1 -1
  142. package/development/link-list/link-list-anchor.js +1 -1
  143. package/development/link-list/link-list.js +1 -1
  144. package/development/loading-indicator-circle.js +1 -1
  145. package/development/loading-indicator.js +1 -1
  146. package/development/map-container.js +1 -1
  147. package/development/menu/menu/menu.d.ts.map +1 -1
  148. package/development/menu/menu.js +35 -12
  149. package/development/message.js +1 -1
  150. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  151. package/development/navigation/navigation.js +15 -8
  152. package/development/notification.js +1 -1
  153. package/development/option/optgroup.js +1 -1
  154. package/development/option/option/option-base-element.d.ts +3 -2
  155. package/development/option/option/option-base-element.d.ts.map +1 -1
  156. package/development/option/option.js +16 -9
  157. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  158. package/development/overlay/overlay.d.ts.map +1 -1
  159. package/development/overlay.js +29 -13
  160. package/development/paginator/paginator.js +1 -1
  161. package/development/popover/popover/popover.d.ts.map +1 -1
  162. package/development/popover/popover.js +16 -13
  163. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  164. package/development/radio-button/radio-button-group.js +2 -2
  165. package/development/{sbb-tokens-BdGhUJjM.js → sbb-tokens-CSAKTXUi.js} +15 -15
  166. package/development/screen-reader-only.js +1 -1
  167. package/development/select/select.d.ts +11 -0
  168. package/development/select/select.d.ts.map +1 -1
  169. package/development/select.js +60 -9
  170. package/development/signet.js +1 -1
  171. package/development/stepper/step.js +1 -1
  172. package/development/tabs/tab.js +1 -1
  173. package/development/time-input.js +1 -1
  174. package/development/title/title-base.d.ts.map +1 -1
  175. package/development/title.js +4 -5
  176. package/development/toast/toast.d.ts.map +1 -1
  177. package/development/toast.js +14 -8
  178. package/development/toggle/toggle.js +2 -2
  179. package/development/train/train-blocked-passage.js +1 -1
  180. package/development/train/train-wagon.js +1 -1
  181. package/dialog/dialog/dialog.d.ts +2 -0
  182. package/dialog/dialog/dialog.d.ts.map +1 -1
  183. package/dialog/dialog-content.js +4 -4
  184. package/dialog/dialog-title.js +8 -8
  185. package/dialog/dialog.js +59 -49
  186. package/divider.js +12 -12
  187. package/expansion-panel/expansion-panel-content.js +3 -3
  188. package/file-selector/file-selector-dropzone.js +5 -5
  189. package/file-selector/file-selector.js +6 -6
  190. package/flip-card/flip-card-details.js +7 -7
  191. package/flip-card/flip-card-summary.js +12 -12
  192. package/header/header-button.js +5 -5
  193. package/header/header-link.js +5 -5
  194. package/icon.js +37 -37
  195. package/image.js +16 -16
  196. package/lead-container.js +3 -3
  197. package/link/block-link-button.js +4 -4
  198. package/link/block-link-static.js +9 -9
  199. package/link/block-link.js +4 -4
  200. package/link/common.js +16 -16
  201. package/link/link-button.js +7 -7
  202. package/link/link-static.js +7 -7
  203. package/link/link.js +4 -4
  204. package/link-list/common.js +12 -12
  205. package/link-list/link-list-anchor.js +3 -3
  206. package/link-list/link-list.js +3 -3
  207. package/loading-indicator-circle.js +14 -14
  208. package/loading-indicator.js +3 -3
  209. package/map-container.js +6 -6
  210. package/menu/common.js +7 -7
  211. package/menu/menu/menu.d.ts.map +1 -1
  212. package/menu/menu-button.js +8 -8
  213. package/menu/menu-link.js +6 -6
  214. package/menu/menu.js +64 -42
  215. package/message.js +3 -3
  216. package/navigation/navigation/navigation.d.ts.map +1 -1
  217. package/navigation/navigation-button.js +4 -4
  218. package/navigation/navigation-link.js +7 -7
  219. package/navigation/navigation-list.js +4 -4
  220. package/navigation/navigation-marker.js +3 -3
  221. package/navigation/navigation.js +21 -20
  222. package/notification.js +19 -19
  223. package/option/optgroup.js +14 -14
  224. package/option/option/option-base-element.d.ts +3 -2
  225. package/option/option/option-base-element.d.ts.map +1 -1
  226. package/option/option.js +115 -103
  227. package/overlay/overlay-base-element.d.ts.map +1 -1
  228. package/overlay/overlay.d.ts.map +1 -1
  229. package/overlay.js +87 -84
  230. package/package.json +1 -1
  231. package/paginator/common.js +6 -6
  232. package/paginator/paginator.js +1 -1
  233. package/popover/popover/popover.d.ts.map +1 -1
  234. package/popover/popover.js +73 -73
  235. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  236. package/radio-button/radio-button-group.js +1 -1
  237. package/radio-button/radio-button-panel.js +5 -5
  238. package/{sbb-tokens-Dx20OtVg.js → sbb-tokens-BgDF8jIh.js} +14 -14
  239. package/screen-reader-only.js +8 -8
  240. package/select/select.d.ts +11 -0
  241. package/select/select.d.ts.map +1 -1
  242. package/select.js +111 -83
  243. package/signet.js +1 -1
  244. package/slider.js +8 -8
  245. package/standard-theme.css +20 -2
  246. package/status.js +3 -3
  247. package/stepper/step-label.js +4 -4
  248. package/stepper/step.js +3 -3
  249. package/table/table-wrapper.js +4 -4
  250. package/tabs/tab-group.js +24 -24
  251. package/tabs/tab.js +4 -4
  252. package/tag/tag-group.js +7 -7
  253. package/teaser-product/common.js +5 -5
  254. package/teaser-product/teaser-product-static.js +2 -2
  255. package/time-input.js +3 -3
  256. package/timetable-occupancy-icon.js +3 -3
  257. package/timetable-occupancy.js +6 -6
  258. package/title/title-base.d.ts.map +1 -1
  259. package/title.js +41 -42
  260. package/toast/toast.d.ts.map +1 -1
  261. package/toast.js +58 -54
  262. package/toggle/toggle-option.js +11 -11
  263. package/toggle/toggle.js +3 -3
  264. package/toggle-check.js +5 -5
  265. package/train/train-blocked-passage.js +3 -3
  266. package/train/train.js +28 -28
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 u;
36
- const a = Q().icon ?? {}, c = ((u = a.namespaces) == null ? void 0 : u.get(t)) ?? X.get(t);
35
+ var m;
36
+ const a = Q().icon ?? {}, c = ((m = a.namespaces) == null ? void 0 : m.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 m = j.get(l);
41
- if (!m)
40
+ let u = j.get(l);
41
+ if (!u)
42
42
  if (typeof fetch < "u" && !P)
43
- m = (a.interceptor ?? ((h) => h.request()))({
43
+ u = (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, m);
54
+ }), j.set(l, u);
55
55
  else
56
56
  return Promise.resolve("");
57
- return m;
57
+ return u;
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, m = [], u = [], w, h = [], g = [], b, p = [], f = [];
64
+ })], e, i = [], a, c = F, l, u = [], m = [], w, h = [], g = [], b, f = [], p = [];
65
65
  return s = class extends c {
66
66
  constructor() {
67
67
  super(...arguments);
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);
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);
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 }, 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) => {
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) => {
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 }, 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 });
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 });
150
150
  })(), s.styles = Z, d(a, i), a;
151
151
  })(), ct = (() => {
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 {
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 {
155
155
  constructor() {
156
156
  super(...arguments);
157
157
  N(this, b);
158
- N(this, p);
159
- _(this, b, d(this, m, "")), this._defaultAriaLabel = (d(this, u), ""), _(this, p, d(this, h, !1)), d(this, g);
158
+ N(this, f);
159
+ _(this, b, d(this, u, "")), this._defaultAriaLabel = (d(this, m), ""), _(this, f, 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, p);
186
+ return I(this, f);
187
187
  }
188
188
  set _sbbAngularCompatibility(r) {
189
- _(this, p, r);
189
+ _(this, f, 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(), p = new WeakMap(), a = f, (() => {
206
+ }, b = new WeakMap(), f = new WeakMap(), a = p, (() => {
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(f, 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(p, 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 }, 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) => {
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) => {
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 mt = (t) => (() => {
216
- var m, u;
215
+ const ut = (t) => (() => {
216
+ var u, m;
217
217
  let i = t, a, c = [], l = [];
218
- return u = class extends i {
218
+ return m = class extends i {
219
219
  constructor() {
220
220
  super(...arguments);
221
- N(this, m, d(this, c, ""));
221
+ N(this, u, d(this, c, ""));
222
222
  d(this, l);
223
223
  }
224
224
  /**
@@ -227,10 +227,10 @@ const mt = (t) => (() => {
227
227
  * https://icons.app.sbb.ch.
228
228
  */
229
229
  get iconName() {
230
- return I(this, m);
230
+ return I(this, u);
231
231
  }
232
232
  set iconName(g) {
233
- _(this, m, g);
233
+ _(this, u, g);
234
234
  }
235
235
  renderIconSlot(g) {
236
236
  return C`
@@ -239,17 +239,17 @@ const mt = (t) => (() => {
239
239
  </slot>
240
240
  `;
241
241
  }
242
- }, m = new WeakMap(), (() => {
242
+ }, u = 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(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;
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;
248
248
  })();
249
249
  export {
250
250
  tt as SbbIconBase,
251
251
  ct as SbbIconElement,
252
- mt as SbbIconNameMixin,
252
+ ut 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, html as Q, nothing as F } 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/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 n = [s("sbb-block-link-button")], l, o = [], t, i = u(c(b));
9
- return e = class extends i {
8
+ let i = [s("sbb-block-link-button")], l, n = [], t, o = u(c(b));
9
+ return e = class extends o {
10
10
  }, t = e, (() => {
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);
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);
13
13
  })(), t;
14
14
  })();
15
15
  export {
@@ -1,16 +1,16 @@
1
- import { __esDecorate as s, __runInitializers as m } from "tslib";
2
- import { customElement as n } from "lit/decorators.js";
1
+ import { __esDecorate as n, __runInitializers as s } from "tslib";
2
+ import { customElement as m } 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 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;
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;
14
14
  })();
15
15
  export {
16
16
  k as SbbBlockLinkStaticElement
@@ -1,15 +1,15 @@
1
- import { __esDecorate as m, __runInitializers as s } from "tslib";
2
- import { customElement as n } from "lit/decorators.js";
1
+ import { __esDecorate as o, __runInitializers as m } from "tslib";
2
+ import { customElement as s } 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 o = [n("sbb-block-link")], l, i = [], e, r = u(b(c));
8
+ let n = [s("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
- 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);
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);
13
13
  })(), e;
14
14
  })();
15
15
  export {
package/link/common.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var _ = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var z = (t, o, e) => o.has(t) || _("Cannot " + e);
5
- var u = (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, r) => (z(t, o, "write to private field"), r ? r.call(t, e) : o.set(t, e), e);
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
6
  import { __esDecorate as p, __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";
@@ -12,13 +12,13 @@ import { isLean as B } from "../core/dom.js";
12
12
  import { SbbNegativeMixin as E } from "../core/mixins.js";
13
13
  import { css as g } from "lit";
14
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, i;
16
- let e = [M({ "data-sbb-link": "" }), j()], r, c = [], n, l = E(t), s, x = [], h = [];
17
- return i = class extends l {
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 {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  f(this, a, m(this, x, B() ? "xs" : "s"));
21
- m(this, h);
21
+ m(this, u);
22
22
  }
23
23
  /**
24
24
  * Text size, the link should get in the non-button variation.
@@ -26,7 +26,7 @@ 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 u(this, a);
29
+ return h(this, a);
30
30
  }
31
31
  set size(b) {
32
32
  v(this, a, b);
@@ -34,12 +34,12 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
34
34
  renderTemplate() {
35
35
  return w`<slot></slot>`;
36
36
  }
37
- }, a = new WeakMap(), n = i, (() => {
37
+ }, a = new WeakMap(), n = o, (() => {
38
38
  const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
39
- s = [S({ reflect: !0 })], p(i, 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 })], 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) => {
40
40
  d.size = T;
41
- } }, metadata: b }, x, h), 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
- })(), i.styles = y, m(n, c), n;
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
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) => (() => {
44
44
  var l, s;
45
45
  let e = P(I(t)), r, c = [], n = [];
@@ -51,7 +51,7 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
51
51
  }
52
52
  /** Moves the icon to the end of the component if set to true. */
53
53
  get iconPlacement() {
54
- return u(this, l);
54
+ return h(this, l);
55
55
  }
56
56
  set iconPlacement(a) {
57
57
  v(this, l, a);
@@ -64,16 +64,16 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
64
64
  }
65
65
  }, l = new WeakMap(), (() => {
66
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: (i) => "iconPlacement" in i, get: (i) => i.iconPlacement, set: (i, k) => {
68
- i.iconPlacement = k;
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
69
  } }, metadata: a }, c, n), a && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
70
70
  })(), s.styles = [y, L], s;
71
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) => {
72
72
  const e = class e extends P(t) {
73
73
  };
74
74
  e.styles = [y, O];
75
- let o = e;
76
- return o;
75
+ let i = e;
76
+ return i;
77
77
  };
78
78
  export {
79
79
  H as SbbBlockLinkCommonElementMixin,
@@ -1,16 +1,16 @@
1
- import { __esDecorate as r, __runInitializers as m } from "tslib";
1
+ import { __esDecorate as o, __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 e;
8
- let o = [s("sbb-link-button")], l, n = [], t, i = u(c(b));
9
- return e = class extends i {
10
- }, t = e, (() => {
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, (() => {
11
11
  const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
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;
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;
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 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;
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;
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 n = [o("sbb-link")], l, i = [], e, r = u(c(b));
9
- return t = class extends r {
8
+ let r = [o("sbb-link")], l, i = [], e, n = u(c(b));
9
+ return t = class extends n {
10
10
  }, e = t, (() => {
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);
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);
13
13
  })(), e;
14
14
  })();
15
15
  export {
@@ -2,8 +2,8 @@ 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)), _ = (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";
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
7
  import { LitElement as E, html as $, nothing 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";
@@ -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, p = T(U(E)), f, k = [], z = [], L, g = [], x = [], C, y = [], S = [];
16
- return n = class extends p {
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 {
17
17
  constructor() {
18
18
  super(...arguments);
19
- _(this, c);
20
- _(this, b);
21
- _(this, m);
19
+ u(this, c);
20
+ u(this, b);
21
+ u(this, m);
22
22
  this.listChildLocalNames = [
23
23
  "sbb-block-link",
24
24
  "sbb-block-link-button",
@@ -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(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) => {
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) => {
77
77
  t.titleContent = 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) => {
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) => {
79
79
  t.titleLevel = 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) => {
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) => {
81
81
  t.size = h;
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);
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);
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}`;
@@ -1,16 +1,16 @@
1
1
  import { __esDecorate as i, __runInitializers as b } from "tslib";
2
2
  import { customElement as n } from "lit/decorators.js";
3
- import { linkListBaseStyle as c, SbbLinkListBaseElement as d } from "./common.js";
3
+ import { SbbLinkListBaseElement as c, linkListBaseStyle as d } from "./common.js";
4
4
  import { css as v } from "lit";
5
5
  const k = v`:host{--sbb-link-list-anchor-border-color: var(--sbb-color-cloud)}:host([negative]){--sbb-link-list-anchor-border-color: var(--sbb-color-granite)}::slotted([data-link]){--sbb-link-text-decoration: none;--sbb-link-hover-text-decoration: none;--sbb-link-padding: var(--sbb-spacing-fixed-1x) 0 var(--sbb-spacing-fixed-1x) var(--sbb-spacing-fixed-4x);--sbb-link-color-hover: var(--sbb-color-charcoal);--sbb-link-color-active: var(--sbb-color-granite);border-inline-start:var(--sbb-border-width-1x) solid var(--sbb-link-list-anchor-border-color)}:host([negative]) ::slotted([data-link]){--sbb-link-color-normal: var(--sbb-color-smoke);--sbb-link-color-hover: var(--sbb-color-milk);--sbb-link-color-active: var(--sbb-color-smoke)}::slotted([data-link]:is(:active,[data-active]):not([disabled],:disabled)){--sbb-link-list-anchor-border-color: var(--sbb-color-iron)}:host([negative]) ::slotted([data-link]:is(:active,[data-active]):not([disabled],:disabled)){--sbb-link-list-anchor-border-color: var(--sbb-color-silver)}::slotted([data-link]:hover:not([disabled],:disabled)){--sbb-link-list-anchor-border-color: var(--sbb-color-charcoal)}:host([negative]) ::slotted([data-link]:hover:not([disabled],:disabled)){--sbb-link-list-anchor-border-color: var(--sbb-color-milk)}.sbb-link-list-anchor{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-flow:column}.sbb-link-list-anchor>li{margin-inline-start:var(--sbb-spacing-fixed-4x)}`;
6
6
  let p = (() => {
7
7
  var l;
8
- let r = [n("sbb-link-list-anchor")], a, e = [], o, s = d;
8
+ let r = [n("sbb-link-list-anchor")], a, e = [], o, s = c;
9
9
  return l = class extends s {
10
10
  }, o = l, (() => {
11
11
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
12
12
  i(null, a = { value: o }, r, { kind: "class", name: o.name, metadata: t }, null, e), o = a.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
13
- })(), l.styles = [c, k], b(o, e), o;
13
+ })(), l.styles = [d, k], b(o, e), o;
14
14
  })();
15
15
  export {
16
16
  p as SbbLinkListAnchorElement
@@ -5,12 +5,12 @@ var _ = (t, i, o) => i.has(t) || k("Cannot " + o);
5
5
  var p = (t, i, o) => (_(t, i, "read from private field"), o ? o.call(t) : i.get(t)), c = (t, i, o) => i.has(t) ? k("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, o), d = (t, i, o, r) => (_(t, i, "write to private field"), r ? r.call(t, o) : i.set(t, o), o);
6
6
  import { __esDecorate as b, __runInitializers as h } from "tslib";
7
7
  import { customElement as F, property as y } from "lit/decorators.js";
8
- import { linkListBaseStyle as S, SbbLinkListBaseElement as L } from "./common.js";
8
+ import { SbbLinkListBaseElement as S, linkListBaseStyle as L } from "./common.js";
9
9
  import { css as E } from "lit";
10
10
  const I = E`:host{--sbb-link-list-flex-flow: column nowrap}:host([orientation=horizontal]){--sbb-link-list-flex-flow: row wrap}:host([orientation=horizontal]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-link-list{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;gap:var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-8x);flex-flow:var(--sbb-link-list-flex-flow)}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=zero]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=micro]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=small]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=medium]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=large]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=wide]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra]){--sbb-link-list-flex-flow: row wrap}:host([orientation=vertical][horizontal-from=ultra]) .sbb-link-list-title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}}`;
11
11
  let q = (() => {
12
12
  var n, s, a;
13
- let t = [F("sbb-link-list")], i, o = [], r, w = L, f, x = [], u = [], g, z = [], v = [];
13
+ let t = [F("sbb-link-list")], i, o = [], r, w = S, f, x = [], u = [], g, z = [], v = [];
14
14
  return a = class extends w {
15
15
  constructor() {
16
16
  super(...arguments);
@@ -39,7 +39,7 @@ let q = (() => {
39
39
  } }, metadata: l }, x, u), b(a, null, g, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (e) => "orientation" in e, get: (e) => e.orientation, set: (e, m) => {
40
40
  e.orientation = m;
41
41
  } }, metadata: l }, z, v), b(null, i = { value: r }, t, { kind: "class", name: r.name, metadata: l }, null, o), r = i.value, l && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
42
- })(), a.styles = [S, I], h(r, o), r;
42
+ })(), a.styles = [L, I], h(r, o), r;
43
43
  })();
44
44
  export {
45
45
  q as SbbLinkListElement