@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
@@ -1,26 +1,26 @@
1
- var M = (l) => {
1
+ var V = (l) => {
2
2
  throw TypeError(l);
3
3
  };
4
- var H = (l, r, n) => r.has(l) || M("Cannot " + n);
5
- var I = (l, r, n) => (H(l, r, "read from private field"), n ? n.call(l) : r.get(l)), L = (l, r, n) => r.has(l) ? M("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(l) : r.set(l, n), m = (l, r, n, i) => (H(l, r, "write to private field"), i ? i.call(l, n) : r.set(l, n), n);
6
- import { __esDecorate as p, __runInitializers as d } from "tslib";
7
- import { html as A, LitElement as F, isServer as V, nothing as y } from "lit";
8
- import { hostAttributes as B, forceType as O } from "./decorators.js";
9
- import { property as v } from "lit/decorators.js";
10
- import { isEventPrevented as G, EventEmitter as $ } from "./eventing.js";
11
- import { SbbFormAssociatedMixin as J } from "./mixins.js";
12
- import { SbbLanguageController as Q } from "./controllers.js";
13
- import { i18nTargetOpensInNewWindow as U } from "./i18n.js";
4
+ var W = (l, r, n) => r.has(l) || V("Cannot " + n);
5
+ var v = (l, r, n) => (W(l, r, "read from private field"), n ? n.call(l) : r.get(l)), k = (l, r, n) => r.has(l) ? V("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(l) : r.set(l, n), h = (l, r, n, i) => (W(l, r, "write to private field"), i ? i.call(l, n) : r.set(l, n), n);
6
+ import { __esDecorate as _, __runInitializers as o } from "tslib";
7
+ import { LitElement as J, html as B, isServer as Q, nothing as y } from "lit";
8
+ import { hostAttributes as T, forceType as D } from "./decorators.js";
9
+ import { property as g } from "lit/decorators.js";
10
+ import { isEventPrevented as X, EventEmitter as A } from "./eventing.js";
11
+ import { SbbFormAssociatedMixin as Y } from "./mixins.js";
12
+ import { SbbLanguageController as Z } from "./controllers.js";
13
+ import { i18nTargetOpensInNewWindow as ee } from "./i18n.js";
14
14
  import "../screen-reader-only.js";
15
- let W = (() => {
16
- var h;
17
- let l = [B({
15
+ let U = (() => {
16
+ var u;
17
+ let l = [T({
18
18
  "data-action": ""
19
- })], r, n = [], i, _ = F;
20
- return h = class extends _ {
19
+ })], r, n = [], i, f = J;
20
+ return u = class extends f {
21
21
  get maybeDisabled() {
22
- const o = this;
23
- return o.disabled || o.formDisabled;
22
+ const d = this;
23
+ return d.disabled || d.formDisabled;
24
24
  }
25
25
  get maybeDisabledInteractive() {
26
26
  return this.disabledInteractive;
@@ -31,8 +31,8 @@ let W = (() => {
31
31
  setupBaseEventHandlers() {
32
32
  this.addEventListener(
33
33
  "click",
34
- (o) => {
35
- this.maybeDisabled && !this.maybeDisabledInteractive && (o.preventDefault(), o.stopImmediatePropagation());
34
+ (d) => {
35
+ this.maybeDisabled && !this.maybeDisabledInteractive && (d.preventDefault(), d.stopImmediatePropagation());
36
36
  },
37
37
  // capture is necessary here, as this event handler needs to be executed before any other
38
38
  // in order to stop immediate propagation in the disabled case.
@@ -45,19 +45,19 @@ let W = (() => {
45
45
  }
46
46
  /** Default render method for button-like components. */
47
47
  render() {
48
- return A`<span class="sbb-action-base ${this.localName}">${this.renderTemplate()}</span>`;
48
+ return B`<span class="sbb-action-base ${this.localName}">${this.renderTemplate()}</span>`;
49
49
  }
50
- }, i = h, (() => {
51
- const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
52
- p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: o }, null, n), i = r.value, o && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o }), d(i, n);
50
+ }, i = u, (() => {
51
+ const d = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
52
+ _(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: d }, null, n), i = r.value, d && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: d }), o(i, n);
53
53
  })(), i;
54
- })(), ce = (() => {
55
- var u;
56
- let l = [B({
54
+ })(), he = (() => {
55
+ var m;
56
+ let l = [T({
57
57
  tabindex: "0",
58
58
  "data-button": ""
59
- })], r, n = [], i, _ = J(W), h = [], D, o;
60
- return u = class extends _ {
59
+ })], r, n = [], i, f = Y(U), u = [], O, d;
60
+ return m = class extends f {
61
61
  /**
62
62
  * The type attribute to use for the button.
63
63
  * @default 'button'
@@ -73,19 +73,19 @@ let W = (() => {
73
73
  this._formId = e;
74
74
  }
75
75
  get form() {
76
- var e, a;
77
- return this._formId ? ((a = (e = this.ownerDocument) == null ? void 0 : e.querySelector) == null ? void 0 : a.call(e, `form#${this._formId}`)) ?? null : this.internals.form;
76
+ var e, s;
77
+ return this._formId ? ((s = (e = this.ownerDocument) == null ? void 0 : e.querySelector) == null ? void 0 : s.call(e, `form#${this._formId}`)) ?? null : this.internals.form;
78
78
  }
79
79
  constructor() {
80
- if (super(), this._formId = (d(this, h), ""), this._handleButtonClick = async (e) => {
81
- if (this.type === "button" || await G(e))
80
+ if (super(), this._formId = (o(this, u), ""), this._handleButtonClick = async (e) => {
81
+ if (this.type === "button" || await X(e))
82
82
  return;
83
- const a = this.form;
84
- if (a)
83
+ const s = this.form;
84
+ if (s)
85
85
  if (this.type === "submit") {
86
86
  const c = document.createElement("button");
87
- c.inert = !0, c.hidden = !0, c.name = this.name, c.value = this.value ?? "", a.append(c), a.requestSubmit(c), c.remove();
88
- } else this.type === "reset" && a.reset();
87
+ c.inert = !0, c.hidden = !0, c.name = this.name, c.value = this.value ?? "", s.append(c), s.requestSubmit(c), c.remove();
88
+ } else this.type === "reset" && s.reset();
89
89
  else return;
90
90
  }, this._preventScrollOnSpaceKeydown = (e) => {
91
91
  e.key === " " && (e.preventDefault(), e.target.toggleAttribute("data-active", !0));
@@ -94,29 +94,29 @@ let W = (() => {
94
94
  }, this._dispatchClickEventOnSpaceKeyup = (e) => {
95
95
  e.key === " " && (this._removeActiveMarker(e), this._dispatchClickEvent(e));
96
96
  }, this._dispatchClickEvent = (e) => {
97
- const { altKey: a, ctrlKey: c, metaKey: x, shiftKey: z } = e;
97
+ const { altKey: s, ctrlKey: c, metaKey: z, shiftKey: $ } = e;
98
98
  e.target.dispatchEvent(new PointerEvent("click", {
99
99
  bubbles: !0,
100
100
  cancelable: !0,
101
101
  composed: !0,
102
102
  pointerId: -1,
103
103
  pointerType: "",
104
- altKey: a,
104
+ altKey: s,
105
105
  ctrlKey: c,
106
- metaKey: x,
107
- shiftKey: z
106
+ metaKey: z,
107
+ shiftKey: $
108
108
  }));
109
- }, this.internals.role = "button", !V) {
109
+ }, this.internals.role = "button", !Q) {
110
110
  this.setupBaseEventHandlers();
111
111
  const e = { passive: !0 };
112
- this.addEventListener("click", this._handleButtonClick), this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (a) => {
113
- (a.key === "Enter" || a.key === `
114
- `) && this._dispatchClickEvent(a);
112
+ this.addEventListener("click", this._handleButtonClick), this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (s) => {
113
+ (s.key === "Enter" || s.key === `
114
+ `) && this._dispatchClickEvent(s);
115
115
  }, e);
116
116
  }
117
117
  }
118
- attributeChangedCallback(e, a, c) {
119
- (!["name", "value"].includes(e) || a !== c) && super.attributeChangedCallback(e, a, c);
118
+ attributeChangedCallback(e, s, c) {
119
+ (!["name", "value"].includes(e) || s !== c) && super.attributeChangedCallback(e, s, c);
120
120
  }
121
121
  /**
122
122
  * Intentionally empty, as buttons are not targeted by form reset
@@ -128,7 +128,7 @@ let W = (() => {
128
128
  * Intentionally empty, as buttons are not targeted by form restore
129
129
  * @internal
130
130
  */
131
- formStateRestoreCallback(e, a) {
131
+ formStateRestoreCallback(e, s) {
132
132
  }
133
133
  /**
134
134
  * Intentionally empty, as button does not write its data in form.
@@ -137,85 +137,93 @@ let W = (() => {
137
137
  */
138
138
  updateFormValue() {
139
139
  }
140
- }, i = u, (() => {
141
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
142
- D = [v()], o = [v()], p(u, null, D, { kind: "setter", name: "type", static: !1, private: !1, access: { has: (a) => "type" in a, set: (a, c) => {
143
- a.type = c;
144
- } }, metadata: e }, null, h), p(u, null, o, { kind: "setter", name: "form", static: !1, private: !1, access: { has: (a) => "form" in a, set: (a, c) => {
145
- a.form = c;
146
- } }, metadata: e }, null, h), p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: e }, null, n), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e }), d(i, n);
140
+ }, i = m, (() => {
141
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
142
+ O = [g()], d = [g()], _(m, null, O, { kind: "setter", name: "type", static: !1, private: !1, access: { has: (s) => "type" in s, set: (s, c) => {
143
+ s.type = c;
144
+ } }, metadata: e }, null, u), _(m, null, d, { kind: "setter", name: "form", static: !1, private: !1, access: { has: (s) => "form" in s, set: (s, c) => {
145
+ s.form = c;
146
+ } }, metadata: e }, null, u), _(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: e }, null, n), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e }), o(i, n);
147
147
  })(), i;
148
- })(), oe = (() => {
149
- var k, w, S, E, C, b;
150
- let l = [B({
148
+ })(), be = (() => {
149
+ var C, S, E, I, L, x, b;
150
+ let l = [T({
151
151
  "data-link": ""
152
- })], r, n = [], i, _ = W, h, D = [], o = [], u, T = [], e = [], a, c = [], x = [], z, K = [], R = [], j, P = [], q = [];
153
- return b = class extends _ {
152
+ })], r, n = [], i, f = U, u, O = [], d = [], m, K = [], e = [], s, c = [], z = [], $, R = [], j = [], P, q = [], M = [], H, N = [], F = [];
153
+ return b = class extends f {
154
154
  constructor() {
155
155
  super();
156
- L(this, k);
157
- L(this, w);
158
- L(this, S);
159
- L(this, E);
160
- L(this, C);
161
- m(this, k, d(this, D, "")), m(this, w, (d(this, o), d(this, T, ""))), m(this, S, (d(this, e), d(this, c, ""))), m(this, E, (d(this, x), d(this, K, !1))), m(this, C, (d(this, R), d(this, P, ""))), this.language = (d(this, q), new Q(this)), this._evaluateRelAttribute = () => this.rel ? this.rel : this.target === "_blank" ? "external noopener nofollow" : y, V || this.setupBaseEventHandlers();
156
+ k(this, C);
157
+ k(this, S);
158
+ k(this, E);
159
+ k(this, I);
160
+ k(this, L);
161
+ k(this, x);
162
+ h(this, C, o(this, O, "")), h(this, S, (o(this, d), o(this, K, ""))), h(this, E, (o(this, e), o(this, c, ""))), h(this, I, (o(this, z), o(this, R, !1))), h(this, L, (o(this, j), o(this, q, ""))), h(this, x, (o(this, M), o(this, N, ""))), this.language = (o(this, F), new Z(this)), this._evaluateRelAttribute = () => this.rel ? this.rel : this.target === "_blank" ? "external noopener nofollow" : y, Q || this.setupBaseEventHandlers();
162
163
  }
163
164
  /** The href value you want to link to. */
164
165
  get href() {
165
- return I(this, k);
166
+ return v(this, C);
166
167
  }
167
- set href(s) {
168
- m(this, k, s);
168
+ set href(a) {
169
+ h(this, C, a);
169
170
  }
170
171
  /** Where to display the linked URL. */
171
172
  get target() {
172
- return I(this, w);
173
+ return v(this, S);
173
174
  }
174
- set target(s) {
175
- m(this, w, s);
175
+ set target(a) {
176
+ h(this, S, a);
176
177
  }
177
178
  /** The relationship of the linked URL as space-separated link types. */
178
179
  get rel() {
179
- return I(this, S);
180
+ return v(this, E);
180
181
  }
181
- set rel(s) {
182
- m(this, S, s);
182
+ set rel(a) {
183
+ h(this, E, a);
183
184
  }
184
185
  /** Whether the browser will show the download dialog on click. */
185
186
  get download() {
186
- return I(this, E);
187
+ return v(this, I);
187
188
  }
188
- set download(s) {
189
- m(this, E, s);
189
+ set download(a) {
190
+ h(this, I, a);
190
191
  }
191
192
  /** This will be forwarded as aria-label to the inner anchor element. */
192
193
  get accessibilityLabel() {
193
- return I(this, C);
194
+ return v(this, L);
195
+ }
196
+ set accessibilityLabel(a) {
197
+ h(this, L, a);
198
+ }
199
+ /** This will be forwarded as aria-current to the inner anchor element. */
200
+ get accessibilityCurrent() {
201
+ return v(this, x);
194
202
  }
195
- set accessibilityLabel(s) {
196
- m(this, C, s);
203
+ set accessibilityCurrent(a) {
204
+ h(this, x, a);
197
205
  }
198
206
  /** @internal */
199
- focus(s) {
207
+ focus(a) {
200
208
  var t;
201
- (t = this.shadowRoot.querySelector("a")) == null || t.focus(s);
209
+ (t = this.shadowRoot.querySelector("a")) == null || t.focus(a);
202
210
  }
203
211
  /** @internal */
204
212
  blur() {
205
- var s;
206
- (s = this.shadowRoot.querySelector("a")) == null || s.blur();
213
+ var a;
214
+ (a = this.shadowRoot.querySelector("a")) == null || a.blur();
207
215
  }
208
216
  /** @internal */
209
217
  click() {
210
- var s;
211
- (s = this.shadowRoot.querySelector("a")) == null || s.click();
218
+ var a;
219
+ (a = this.shadowRoot.querySelector("a")) == null || a.click();
212
220
  }
213
221
  /** Default render method for link-like components. Can be overridden if the LinkRenderVariables are not needed. */
214
222
  render() {
215
223
  return this.renderLink(this.renderTemplate());
216
224
  }
217
- renderLink(s) {
218
- return A`
225
+ renderLink(a) {
226
+ return B`
219
227
  <a
220
228
  class="sbb-action-base ${this.localName}"
221
229
  href=${this.href || y}
@@ -223,36 +231,39 @@ let W = (() => {
223
231
  target=${this.target || y}
224
232
  rel=${this._evaluateRelAttribute()}
225
233
  aria-label=${this.accessibilityLabel || y}
234
+ aria-current=${this.accessibilityCurrent || y}
226
235
  tabindex=${this.maybeDisabled && !this.maybeDisabledInteractive ? "-1" : y}
227
236
  aria-disabled=${this.maybeDisabled ? "true" : y}
228
237
  >
229
- ${s}
230
- ${this.href && this.target === "_blank" ? A`<sbb-screen-reader-only
231
- >. ${U[this.language.current]}</sbb-screen-reader-only
238
+ ${a}
239
+ ${this.href && this.target === "_blank" ? B`<sbb-screen-reader-only
240
+ >. ${ee[this.language.current]}</sbb-screen-reader-only
232
241
  >` : y}
233
242
  </a>
234
243
  `;
235
244
  }
236
- }, k = new WeakMap(), w = new WeakMap(), S = new WeakMap(), E = new WeakMap(), C = new WeakMap(), i = b, (() => {
237
- const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
238
- h = [O(), v()], u = [O(), v()], a = [O(), v()], z = [O(), v({ type: Boolean })], j = [O(), v({ attribute: "accessibility-label" })], p(b, null, h, { kind: "accessor", name: "href", static: !1, private: !1, access: { has: (t) => "href" in t, get: (t) => t.href, set: (t, f) => {
239
- t.href = f;
240
- } }, metadata: s }, D, o), p(b, null, u, { kind: "accessor", name: "target", static: !1, private: !1, access: { has: (t) => "target" in t, get: (t) => t.target, set: (t, f) => {
241
- t.target = f;
242
- } }, metadata: s }, T, e), p(b, null, a, { kind: "accessor", name: "rel", static: !1, private: !1, access: { has: (t) => "rel" in t, get: (t) => t.rel, set: (t, f) => {
243
- t.rel = f;
244
- } }, metadata: s }, c, x), p(b, null, z, { kind: "accessor", name: "download", static: !1, private: !1, access: { has: (t) => "download" in t, get: (t) => t.download, set: (t, f) => {
245
- t.download = f;
246
- } }, metadata: s }, K, R), p(b, null, j, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, f) => {
247
- t.accessibilityLabel = f;
248
- } }, metadata: s }, P, q), p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: s }, null, n), i = r.value, s && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), d(i, n);
245
+ }, C = new WeakMap(), S = new WeakMap(), E = new WeakMap(), I = new WeakMap(), L = new WeakMap(), x = new WeakMap(), i = b, (() => {
246
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
247
+ u = [D(), g()], m = [D(), g()], s = [D(), g()], $ = [D(), g({ type: Boolean })], P = [D(), g({ attribute: "accessibility-label" })], H = [D(), g({ attribute: "accessibility-current" })], _(b, null, u, { kind: "accessor", name: "href", static: !1, private: !1, access: { has: (t) => "href" in t, get: (t) => t.href, set: (t, p) => {
248
+ t.href = p;
249
+ } }, metadata: a }, O, d), _(b, null, m, { kind: "accessor", name: "target", static: !1, private: !1, access: { has: (t) => "target" in t, get: (t) => t.target, set: (t, p) => {
250
+ t.target = p;
251
+ } }, metadata: a }, K, e), _(b, null, s, { kind: "accessor", name: "rel", static: !1, private: !1, access: { has: (t) => "rel" in t, get: (t) => t.rel, set: (t, p) => {
252
+ t.rel = p;
253
+ } }, metadata: a }, c, z), _(b, null, $, { kind: "accessor", name: "download", static: !1, private: !1, access: { has: (t) => "download" in t, get: (t) => t.download, set: (t, p) => {
254
+ t.download = p;
255
+ } }, metadata: a }, R, j), _(b, null, P, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, p) => {
256
+ t.accessibilityLabel = p;
257
+ } }, metadata: a }, q, M), _(b, null, H, { kind: "accessor", name: "accessibilityCurrent", static: !1, private: !1, access: { has: (t) => "accessibilityCurrent" in t, get: (t) => t.accessibilityCurrent, set: (t, p) => {
258
+ t.accessibilityCurrent = p;
259
+ } }, metadata: a }, N, F), _(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: a }, null, n), i = r.value, a && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), o(i, n);
249
260
  })(), i;
250
261
  })();
251
- const g = class g extends F {
262
+ const w = class w extends J {
252
263
  constructor() {
253
- super(...arguments), this.willOpen = new $(this, g.events.willOpen, { cancelable: !0 }), this.didOpen = new $(this, g.events.didOpen, {
264
+ super(...arguments), this.willOpen = new A(this, w.events.willOpen, { cancelable: !0 }), this.didOpen = new A(this, w.events.didOpen, {
254
265
  cancelable: !0
255
- }), this.willClose = new $(this, g.events.willClose, { cancelable: !0 }), this.didClose = new $(this, g.events.didClose, { cancelable: !0 });
266
+ }), this.willClose = new A(this, w.events.willClose, { cancelable: !0 }), this.didClose = new A(this, w.events.didClose, { cancelable: !0 });
256
267
  }
257
268
  /** The state of the component. */
258
269
  set state(r) {
@@ -269,16 +280,16 @@ const g = class g extends F {
269
280
  super.connectedCallback(), this.state || (this.state = "closed");
270
281
  }
271
282
  };
272
- g.events = {
283
+ w.events = {
273
284
  willOpen: "willOpen",
274
285
  didOpen: "didOpen",
275
286
  willClose: "willClose",
276
287
  didClose: "didClose"
277
288
  };
278
- let N = g;
289
+ let G = w;
279
290
  export {
280
- W as SbbActionBaseElement,
281
- ce as SbbButtonBaseElement,
282
- oe as SbbLinkBaseElement,
283
- N as SbbOpenCloseBaseElement
291
+ U as SbbActionBaseElement,
292
+ he as SbbButtonBaseElement,
293
+ be as SbbLinkBaseElement,
294
+ G as SbbOpenCloseBaseElement
284
295
  };
@@ -1,6 +1,6 @@
1
1
  import { isServer as n } from "lit";
2
2
  import { readConfig as b } from "./config.js";
3
- import { S as f, g as m, f as v } from "../sbb-tokens-Dx20OtVg.js";
3
+ import { S as f, i as m, h as g } from "../sbb-tokens-BgDF8jIh.js";
4
4
  class S {
5
5
  get signal() {
6
6
  var t;
@@ -17,7 +17,7 @@ class S {
17
17
  (t = this._abortController) == null || t.abort(), this._abortController = void 0;
18
18
  }
19
19
  }
20
- const g = ["script", "head", "template", "style"], y = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
20
+ const v = ["script", "head", "template", "style"], y = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
21
21
  class O {
22
22
  constructor(t, e = y, i = A) {
23
23
  var s, o;
@@ -53,7 +53,7 @@ class O {
53
53
  var e, i;
54
54
  let t = this._currentOverlay();
55
55
  for (; t !== document.documentElement && t !== null; )
56
- Array.from(((e = (t == null ? void 0 : t.parentElement) ?? (t == null ? void 0 : t.getRootNode())) == null ? void 0 : e.childNodes) ?? []).filter((s) => s !== t && s instanceof window.HTMLElement && !g.includes(s.localName)).forEach((s) => {
56
+ Array.from(((e = (t == null ? void 0 : t.parentElement) ?? (t == null ? void 0 : t.getRootNode())) == null ? void 0 : e.childNodes) ?? []).filter((s) => s !== t && s instanceof window.HTMLElement && !v.includes(s.localName)).forEach((s) => {
57
57
  this._inertElements.add(s), s.inert || (s.inert = !0, s.toggleAttribute("data-sbb-inert", !0)), s.hasAttribute("aria-hidden") || (s.setAttribute("aria-hidden", "true"), s.toggleAttribute("data-sbb-aria-hidden", !0));
58
58
  }), t = (t == null ? void 0 : t.parentElement) ?? ((i = t == null ? void 0 : t.getRootNode()) == null ? void 0 : i.host) ?? null;
59
59
  }
@@ -92,7 +92,7 @@ r._defaultLanguage = "en", r._supportedLocales = ["en", "de", "fr", "it"], r._li
92
92
  attributeOldValue: !0
93
93
  };
94
94
  let u = r;
95
- const _ = (a) => a / f, w = "(forced-colors: active)", M = "(any-hover: hover)", N = "(pointer: coarse)", Q = `(min-width: ${_(m)}rem)`, H = `(max-width: ${_(v)}rem)`, l = /* @__PURE__ */ new Map();
95
+ const _ = (a) => a / f, w = "(forced-colors: active)", M = "(any-hover: hover)", N = "(pointer: coarse)", Q = `(min-width: ${_(g)}rem)`, H = `(max-width: ${_(m)}rem)`, l = /* @__PURE__ */ new Map();
96
96
  class L {
97
97
  constructor(t, e) {
98
98
  this._queries = e, t.addController(this);
@@ -56,7 +56,7 @@ export declare abstract class DateAdapter<T = any> {
56
56
  * Checks whether a given `date` is valid.
57
57
  * @param date
58
58
  */
59
- abstract isValid(date: T | null | undefined): boolean;
59
+ abstract isValid(date: T | null | undefined): date is T;
60
60
  /**
61
61
  * Creates a new date by cloning the given one.
62
62
  * @param date
@@ -1 +1 @@
1
- {"version":3,"file":"date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/date-adapter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAU,CAAC;AACtC,eAAO,MAAM,cAAc,EAAE,MAAU,CAAC;AACxC,eAAO,MAAM,aAAa,EAAE,MAAU,CAAC;AACvC,eAAO,MAAM,cAAc,EAAE,MAAW,CAAC;AACzC,eAAO,MAAM,WAAW,QACgE,CAAC;AAEzF;;;;GAIG;AACH,8BAAsB,WAAW,CAAC,CAAC,GAAG,GAAG;IACvC;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAExC;;;;OAIG;aACa,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAEzC;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAExC;;;OAGG;aACa,YAAY,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAE7C,kEAAkE;aAClD,iBAAiB,IAAI,MAAM;IAE3C;;;;OAIG;aACa,iBAAiB,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAElD;;;OAGG;aACa,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAE3E,6FAA6F;aAC7E,YAAY,IAAI,MAAM,EAAE;IAExC;;;OAGG;aACa,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAE/E,4BAA4B;aACZ,KAAK,IAAI,CAAC;IAE1B;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO;IAE5D;;;OA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E,GAAG,GAAG,OAAO;IAEjD;;;OAGG;aACa,OAAO,IAAI,CAAC;IAE5B;;;OAGG;IACI,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAKjC;;;;;OAKG;IACI,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,GAAG,IAAI;IAInD;;OAEG;IACI,kBAAkB,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAO1C;;;;;;OAMG;IACI,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM;IAQ/C;;;;;;OAMG;IACI,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,OAAO;IAY3D;;;;;;;OAOG;IACI,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC;CAS7D"}
@@ -37,7 +37,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
37
37
  /** Checks whether the given `obj` is a Date. */
38
38
  isDateInstance(obj: any): boolean;
39
39
  /** Checks whether the given `date` is a valid Date. */
40
- isValid(date: Date | null | undefined): boolean;
40
+ isValid(date: Date | null | undefined): date is Date;
41
41
  /** Creates a new date by cloning the given one. */
42
42
  clone(date: Date): Date;
43
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"native-date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/native-date-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAU7D,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAExB,gBAAgB,GAAE,MAAW;IAK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BAA0B,CAAC"}
package/core/datetime.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SbbLanguageController as i } from "./controllers.js";
2
- const o = 7, f = 4, m = 4, d = 24, l = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/;
3
- class u {
2
+ const o = 7, f = 4, m = 4, d = 24, u = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/;
3
+ class l {
4
4
  /**
5
5
  * Attempts to deserialize a value to a valid date object. This is different from parsing in that
6
6
  * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
@@ -89,7 +89,7 @@ class u {
89
89
  }
90
90
  }
91
91
  const D = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
92
- class g extends u {
92
+ class g extends l {
93
93
  constructor(t = 15) {
94
94
  super(), this._cutoffYearOffset = t;
95
95
  }
@@ -215,7 +215,7 @@ class g extends u {
215
215
  parse(t, e) {
216
216
  if (!t)
217
217
  return null;
218
- const r = t.replace(/\D/g, " ").trim(), n = r == null ? void 0 : r.match(l);
218
+ const r = t.replace(/\D/g, " ").trim(), n = r == null ? void 0 : r.match(u);
219
219
  if (!n || n.index !== 0 || n.length <= 2 || n.some((s) => s === void 0) || !this.isValid(this.createDate(+n[3], +n[2], +n[1])))
220
220
  return null;
221
221
  let a = +n[3];
@@ -245,8 +245,8 @@ class g extends u {
245
245
  const w = new g();
246
246
  export {
247
247
  o as DAYS_PER_ROW,
248
- u as DateAdapter,
249
- l as FORMAT_DATE,
248
+ l as DateAdapter,
249
+ u as FORMAT_DATE,
250
250
  f as MONTHS_PER_ROW,
251
251
  g as NativeDateAdapter,
252
252
  d as YEARS_PER_PAGE,
@@ -4,6 +4,7 @@ export declare function pageScrollDisabled(): boolean;
4
4
  * content shift caused by the disappearance/appearance of the scrollbar.
5
5
  */
6
6
  export declare class SbbScrollHandler {
7
+ private _height;
7
8
  private _position;
8
9
  private _overflow;
9
10
  private _marginInlineEnd;
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/scroll.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,gBAAgB,CAAU;IAE3B,aAAa,IAAI,IAAI;IAoBrB,YAAY,IAAI,IAAI;CAa5B"}
1
+ {"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/scroll.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,gBAAgB,CAAU;IAE3B,aAAa,IAAI,IAAI;IAsBrB,YAAY,IAAI,IAAI;CAc5B"}