@sbb-esta/lyne-elements 2.4.1 → 2.5.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 (222) hide show
  1. package/button/common/button-common.d.ts +1 -2
  2. package/button/common/button-common.d.ts.map +1 -1
  3. package/button/common.js +4 -4
  4. package/clock/clock.d.ts +8 -0
  5. package/clock/clock.d.ts.map +1 -1
  6. package/clock.js +40 -31
  7. package/core/a11y/focus.d.ts.map +1 -1
  8. package/core/base-elements.js +36 -36
  9. package/core/controllers/inert-controller.d.ts +3 -3
  10. package/core/controllers/inert-controller.d.ts.map +1 -1
  11. package/core/controllers.js +13 -12
  12. package/core/decorators/force-type.d.ts +1 -1
  13. package/core/decorators/force-type.d.ts.map +1 -1
  14. package/core/decorators.js +39 -40
  15. package/core/i18n/i18n.d.ts +1 -0
  16. package/core/i18n/i18n.d.ts.map +1 -1
  17. package/core/i18n.js +95 -89
  18. package/core/mixins/animation-complete-mixin.d.ts +13 -0
  19. package/core/mixins/animation-complete-mixin.d.ts.map +1 -0
  20. package/core/mixins.d.ts +1 -0
  21. package/core/mixins.d.ts.map +1 -1
  22. package/core/mixins.js +192 -152
  23. package/core/styles/core.scss +81 -0
  24. package/core/styles/mixins/link.scss +14 -0
  25. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +3 -0
  26. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +4 -1
  27. package/core.css +51 -1
  28. package/custom-elements.json +3542 -393
  29. package/date-input/date-input.d.ts +11 -3
  30. package/date-input/date-input.d.ts.map +1 -1
  31. package/date-input.js +44 -38
  32. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  33. package/datepicker/datepicker.js +12 -12
  34. package/development/button/common/button-common.d.ts +1 -2
  35. package/development/button/common/button-common.d.ts.map +1 -1
  36. package/development/button/common.js +26 -24
  37. package/development/clock/clock.d.ts +8 -0
  38. package/development/clock/clock.d.ts.map +1 -1
  39. package/development/clock.js +20 -2
  40. package/development/core/a11y/focus.d.ts.map +1 -1
  41. package/development/core/a11y.js +1 -1
  42. package/development/core/base-elements.js +6 -6
  43. package/development/core/controllers/inert-controller.d.ts +3 -3
  44. package/development/core/controllers/inert-controller.d.ts.map +1 -1
  45. package/development/core/controllers.js +6 -7
  46. package/development/core/decorators/force-type.d.ts +1 -1
  47. package/development/core/decorators/force-type.d.ts.map +1 -1
  48. package/development/core/decorators.js +5 -5
  49. package/development/core/i18n/i18n.d.ts +1 -0
  50. package/development/core/i18n/i18n.d.ts.map +1 -1
  51. package/development/core/i18n.js +8 -1
  52. package/development/core/mixins/animation-complete-mixin.d.ts +13 -0
  53. package/development/core/mixins/animation-complete-mixin.d.ts.map +1 -0
  54. package/development/core/mixins.d.ts +1 -0
  55. package/development/core/mixins.d.ts.map +1 -1
  56. package/development/core/mixins.js +50 -1
  57. package/development/date-input/date-input.d.ts +11 -3
  58. package/development/date-input/date-input.d.ts.map +1 -1
  59. package/development/date-input.js +26 -18
  60. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  61. package/development/datepicker/datepicker.js +2 -1
  62. package/development/dialog/dialog-title/dialog-title.d.ts +3 -1
  63. package/development/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  64. package/development/dialog/dialog-title.js +7 -2
  65. package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  66. package/development/flip-card/flip-card-details.js +5 -3
  67. package/development/header/common.js +2 -2
  68. package/development/link/common.js +13 -1
  69. package/development/menu/menu/menu.d.ts.map +1 -1
  70. package/development/menu/menu.js +4 -1
  71. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  72. package/development/navigation/navigation.js +4 -1
  73. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  74. package/development/overlay.js +4 -1
  75. package/development/sbb-tokens-CSAKTXUi.js +1 -1
  76. package/development/sidebar/common.d.ts +1 -0
  77. package/development/sidebar/common.d.ts.map +1 -0
  78. package/development/sidebar/common.js +114 -0
  79. package/development/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
  80. package/development/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
  81. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
  82. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
  83. package/development/sidebar/icon-sidebar-button.d.ts +2 -0
  84. package/development/sidebar/icon-sidebar-button.d.ts.map +1 -0
  85. package/development/sidebar/icon-sidebar-button.js +28 -0
  86. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
  87. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
  88. package/development/sidebar/icon-sidebar-container.d.ts +2 -0
  89. package/development/sidebar/icon-sidebar-container.d.ts.map +1 -0
  90. package/development/sidebar/icon-sidebar-container.js +45 -0
  91. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
  92. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
  93. package/development/sidebar/icon-sidebar-content.d.ts +2 -0
  94. package/development/sidebar/icon-sidebar-content.d.ts.map +1 -0
  95. package/development/sidebar/icon-sidebar-content.js +34 -0
  96. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
  97. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
  98. package/development/sidebar/icon-sidebar-link.d.ts +2 -0
  99. package/development/sidebar/icon-sidebar-link.d.ts.map +1 -0
  100. package/development/sidebar/icon-sidebar-link.js +28 -0
  101. package/development/sidebar/icon-sidebar.d.ts +2 -0
  102. package/development/sidebar/icon-sidebar.d.ts.map +1 -0
  103. package/development/sidebar/icon-sidebar.js +85 -0
  104. package/development/sidebar/sidebar/sidebar.d.ts +76 -0
  105. package/development/sidebar/sidebar/sidebar.d.ts.map +1 -0
  106. package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
  107. package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
  108. package/development/sidebar/sidebar-close-button.d.ts +2 -0
  109. package/development/sidebar/sidebar-close-button.d.ts.map +1 -0
  110. package/development/sidebar/sidebar-close-button.js +55 -0
  111. package/development/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
  112. package/development/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
  113. package/development/sidebar/sidebar-container.d.ts +2 -0
  114. package/development/sidebar/sidebar-container.d.ts.map +1 -0
  115. package/development/sidebar/sidebar-container.js +153 -0
  116. package/development/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
  117. package/development/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
  118. package/development/sidebar/sidebar-content.d.ts +2 -0
  119. package/development/sidebar/sidebar-content.d.ts.map +1 -0
  120. package/development/sidebar/sidebar-content.js +37 -0
  121. package/development/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
  122. package/development/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
  123. package/development/sidebar/sidebar-title.d.ts +2 -0
  124. package/development/sidebar/sidebar-title.d.ts.map +1 -0
  125. package/development/sidebar/sidebar-title.js +63 -0
  126. package/development/sidebar/sidebar.d.ts +2 -0
  127. package/development/sidebar/sidebar.d.ts.map +1 -0
  128. package/development/sidebar/sidebar.js +523 -0
  129. package/development/sidebar.d.ts +12 -0
  130. package/development/sidebar.d.ts.map +1 -0
  131. package/development/sidebar.js +12 -0
  132. package/development/stepper/step.js +19 -8
  133. package/development/time-input/time-input.d.ts +3 -2
  134. package/development/time-input/time-input.d.ts.map +1 -1
  135. package/development/time-input.js +19 -10
  136. package/development/title/title-base.d.ts +2 -4
  137. package/development/title/title-base.d.ts.map +1 -1
  138. package/development/title/title.d.ts +3 -1
  139. package/development/title/title.d.ts.map +1 -1
  140. package/development/title.js +8 -8
  141. package/dialog/dialog-title/dialog-title.d.ts +3 -1
  142. package/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  143. package/dialog/dialog-title.js +16 -15
  144. package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  145. package/flip-card/flip-card-details.js +14 -13
  146. package/header/common.js +6 -6
  147. package/index.d.ts +20 -0
  148. package/index.js +20 -0
  149. package/link/common.js +12 -12
  150. package/menu/menu/menu.d.ts.map +1 -1
  151. package/menu/menu.js +1 -1
  152. package/navigation/navigation/navigation.d.ts.map +1 -1
  153. package/navigation/navigation.js +7 -7
  154. package/overlay/overlay-base-element.d.ts.map +1 -1
  155. package/overlay.js +1 -1
  156. package/package.json +61 -1
  157. package/sidebar/common.d.ts +1 -0
  158. package/sidebar/common.d.ts.map +1 -0
  159. package/sidebar/common.js +7 -0
  160. package/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
  161. package/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
  162. package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
  163. package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
  164. package/sidebar/icon-sidebar-button.d.ts +2 -0
  165. package/sidebar/icon-sidebar-button.d.ts.map +1 -0
  166. package/sidebar/icon-sidebar-button.js +20 -0
  167. package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
  168. package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
  169. package/sidebar/icon-sidebar-container.d.ts +2 -0
  170. package/sidebar/icon-sidebar-container.d.ts.map +1 -0
  171. package/sidebar/icon-sidebar-container.js +35 -0
  172. package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
  173. package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
  174. package/sidebar/icon-sidebar-content.d.ts +2 -0
  175. package/sidebar/icon-sidebar-content.d.ts.map +1 -0
  176. package/sidebar/icon-sidebar-content.js +23 -0
  177. package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
  178. package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
  179. package/sidebar/icon-sidebar-link.d.ts +2 -0
  180. package/sidebar/icon-sidebar-link.d.ts.map +1 -0
  181. package/sidebar/icon-sidebar-link.js +20 -0
  182. package/sidebar/icon-sidebar.d.ts +2 -0
  183. package/sidebar/icon-sidebar.d.ts.map +1 -0
  184. package/sidebar/icon-sidebar.js +47 -0
  185. package/sidebar/sidebar/sidebar.d.ts +76 -0
  186. package/sidebar/sidebar/sidebar.d.ts.map +1 -0
  187. package/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
  188. package/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
  189. package/sidebar/sidebar-close-button.d.ts +2 -0
  190. package/sidebar/sidebar-close-button.d.ts.map +1 -0
  191. package/sidebar/sidebar-close-button.js +29 -0
  192. package/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
  193. package/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
  194. package/sidebar/sidebar-container.d.ts +2 -0
  195. package/sidebar/sidebar-container.d.ts.map +1 -0
  196. package/sidebar/sidebar-container.js +78 -0
  197. package/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
  198. package/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
  199. package/sidebar/sidebar-content.d.ts +2 -0
  200. package/sidebar/sidebar-content.d.ts.map +1 -0
  201. package/sidebar/sidebar-content.js +23 -0
  202. package/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
  203. package/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
  204. package/sidebar/sidebar-title.d.ts +2 -0
  205. package/sidebar/sidebar-title.d.ts.map +1 -0
  206. package/sidebar/sidebar-title.js +37 -0
  207. package/sidebar/sidebar.d.ts +2 -0
  208. package/sidebar/sidebar.d.ts.map +1 -0
  209. package/sidebar/sidebar.js +214 -0
  210. package/sidebar.d.ts +12 -0
  211. package/sidebar.d.ts.map +1 -0
  212. package/sidebar.js +11 -0
  213. package/standard-theme.css +51 -1
  214. package/stepper/step.js +13 -13
  215. package/time-input/time-input.d.ts +3 -2
  216. package/time-input/time-input.d.ts.map +1 -1
  217. package/time-input.js +44 -36
  218. package/title/title-base.d.ts +2 -4
  219. package/title/title-base.d.ts.map +1 -1
  220. package/title/title.d.ts +3 -1
  221. package/title/title.d.ts.map +1 -1
  222. package/title.js +11 -11
@@ -0,0 +1,23 @@
1
+ import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
+ import { SbbIconSidebarElement } from '../icon-sidebar.js';
3
+ /**
4
+ * This is the parent component to one or two `<sbb-icon-sidebar>`s and one `<sbb-icon-sidebar-content>` element.
5
+ *
6
+ * @slot - Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.
7
+ */
8
+ export declare class SbbIconSidebarContainerElement extends LitElement {
9
+ static styles: CSSResultGroup;
10
+ /** The icon-sidebar children. */
11
+ get sidebars(): SbbIconSidebarElement[];
12
+ /** The icon-sidebar child at the start position. */
13
+ get start(): SbbIconSidebarElement | null;
14
+ /** The icon-sidebar child at the end position. */
15
+ get end(): SbbIconSidebarElement | null;
16
+ protected render(): TemplateResult;
17
+ }
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'sbb-icon-sidebar-container': SbbIconSidebarContainerElement;
21
+ }
22
+ }
23
+ //# sourceMappingURL=icon-sidebar-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-container.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/icon-sidebar-container/icon-sidebar-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAIhE;;;;GAIG;AACH,qBAEM,8BAA+B,SAAQ,UAAU;IACrD,OAAuB,MAAM,EAAE,cAAc,CAAwC;IAErF,iCAAiC;IACjC,IAAW,QAAQ,IAAI,qBAAqB,EAAE,CAI7C;IAED,oDAAoD;IACpD,IAAW,KAAK,IAAI,qBAAqB,GAAG,IAAI,CAI/C;IAED,kDAAkD;IAClD,IAAW,GAAG,IAAI,qBAAqB,GAAG,IAAI,CAI7C;cAEkB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,4BAA4B,EAAE,8BAA8B,CAAC;KAC9D;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './icon-sidebar-container/icon-sidebar-container.js';
2
+ //# sourceMappingURL=icon-sidebar-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-container.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/icon-sidebar-container.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { __esDecorate as n, __runInitializers as o } from "tslib";
2
+ import { css as m, LitElement as c, html as b } from "lit";
3
+ import { customElement as d } from "lit/decorators.js";
4
+ import { sidebarContainerCommonStyle as u } from "./common.js";
5
+ const h = m`:host{display:flex}`;
6
+ let S = (() => {
7
+ var l;
8
+ let i = [d("sbb-icon-sidebar-container")], s, a = [], e, r = c;
9
+ return l = class extends r {
10
+ /** The icon-sidebar children. */
11
+ get sidebars() {
12
+ var t;
13
+ return Array.from(((t = this.querySelectorAll) == null ? void 0 : t.call(this, ":scope > sbb-icon-sidebar")) ?? []);
14
+ }
15
+ /** The icon-sidebar child at the start position. */
16
+ get start() {
17
+ var t;
18
+ return ((t = this.firstElementChild) == null ? void 0 : t.localName) === "sbb-icon-sidebar" ? this.firstElementChild : null;
19
+ }
20
+ /** The icon-sidebar child at the end position. */
21
+ get end() {
22
+ var t;
23
+ return ((t = this.lastElementChild) == null ? void 0 : t.localName) === "sbb-icon-sidebar" ? this.lastElementChild : null;
24
+ }
25
+ render() {
26
+ return b`<slot></slot>`;
27
+ }
28
+ }, e = l, (() => {
29
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
30
+ n(null, s = { value: e }, i, { kind: "class", name: e.name, metadata: t }, null, a), e = s.value, t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
31
+ })(), l.styles = [u, h], o(e, a), e;
32
+ })();
33
+ export {
34
+ S as SbbIconSidebarContainerElement
35
+ };
@@ -0,0 +1,17 @@
1
+ import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
+ /**
3
+ * Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.
4
+ *
5
+ * @slot - Use the unnamed slot to add any content elements.
6
+ */
7
+ export declare class SbbIconSidebarContentElement extends LitElement {
8
+ static styles: CSSResultGroup;
9
+ connectedCallback(): void;
10
+ protected render(): TemplateResult;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'sbb-icon-sidebar-content': SbbIconSidebarContentElement;
15
+ }
16
+ }
17
+ //# sourceMappingURL=icon-sidebar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-content.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/icon-sidebar-content/icon-sidebar-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOjF;;;;GAIG;AACH,qBAEM,4BAA6B,SAAQ,UAAU;IACnD,OAAuB,MAAM,EAAE,cAAc,CAAsC;IAEnE,iBAAiB,IAAI,IAAI;cAStB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0BAA0B,EAAE,4BAA4B,CAAC;KAC1D;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './icon-sidebar-content/icon-sidebar-content.js';
2
+ //# sourceMappingURL=icon-sidebar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-content.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/icon-sidebar-content.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { __esDecorate as n, __runInitializers as c } from "tslib";
2
+ import { css as i, LitElement as m, html as b } from "lit";
3
+ import { customElement as u } from "lit/decorators.js";
4
+ import { sidebarContentCommonStyle as d } from "./common.js";
5
+ const f = i`:host{flex-grow:1}`;
6
+ let h = (() => {
7
+ var e;
8
+ let o = [u("sbb-icon-sidebar-content")], l, s = [], t, r = m;
9
+ return e = class extends r {
10
+ connectedCallback() {
11
+ super.connectedCallback(), this.classList.add("sbb-scrollbar");
12
+ }
13
+ render() {
14
+ return b`<slot></slot>`;
15
+ }
16
+ }, t = e, (() => {
17
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
18
+ n(null, l = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null, s), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
19
+ })(), e.styles = [d, f], c(t, s), t;
20
+ })();
21
+ export {
22
+ h as SbbIconSidebarContentElement
23
+ };
@@ -0,0 +1,19 @@
1
+ import { CSSResultGroup, TemplateResult } from 'lit';
2
+ import { SbbLinkBaseElement } from '../../core/base-elements.js';
3
+ declare const SbbIconSidebarLinkElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbLinkBaseElement;
4
+ /**
5
+ * Link to be placed inside `sbb-icon-sidebar`.
6
+ *
7
+ * @slot icon - Slot used to display the icon.
8
+ */
9
+ export declare class SbbIconSidebarLinkElement extends SbbIconSidebarLinkElement_base {
10
+ static styles: CSSResultGroup;
11
+ protected renderTemplate(): TemplateResult;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'sbb-icon-sidebar-link': SbbIconSidebarLinkElement;
16
+ }
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=icon-sidebar-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-link.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/icon-sidebar-link/icon-sidebar-link.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;GAIG;AACH,qBAEM,yBAA0B,SAAQ,8BAAoC;IAC1E,OAAuB,MAAM,EAAE,cAAc,CAAgC;cAE1D,cAAc,IAAI,cAAc;CAGpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,yBAAyB,CAAC;KACpD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './icon-sidebar-link/icon-sidebar-link.js';
2
+ //# sourceMappingURL=icon-sidebar-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-link.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/icon-sidebar-link.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { __esDecorate as s, __runInitializers as n } from "tslib";
2
+ import { customElement as m } from "lit/decorators.js";
3
+ import { SbbLinkBaseElement as c } from "../core/base-elements.js";
4
+ import { SbbIconNameMixin as b } from "../icon.js";
5
+ import { iconSidebarButtonCommonStyle as u } from "./common.js";
6
+ let y = (() => {
7
+ var t;
8
+ let o = [m("sbb-icon-sidebar-link")], r, l = [], e, i = b(c);
9
+ return t = class extends i {
10
+ renderTemplate() {
11
+ return super.renderIconSlot();
12
+ }
13
+ }, e = t, (() => {
14
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
15
+ s(null, r = { value: e }, o, { kind: "class", name: e.name, metadata: a }, null, l), e = r.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
16
+ })(), t.styles = u, n(e, l), e;
17
+ })();
18
+ export {
19
+ y as SbbIconSidebarLinkElement
20
+ };
@@ -0,0 +1,2 @@
1
+ export * from './icon-sidebar/icon-sidebar.js';
2
+ //# sourceMappingURL=icon-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/icon-sidebar.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,47 @@
1
+ var m = (t) => {
2
+ throw TypeError(t);
3
+ };
4
+ var h = (t, e, r) => e.has(t) || m("Cannot " + r);
5
+ var f = (t, e, r) => (h(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? m("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), p = (t, e, r, s) => (h(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
6
+ import { __esDecorate as v, __runInitializers as c } from "tslib";
7
+ import { css as g, LitElement as k, html as y } from "lit";
8
+ import { customElement as S, property as z } from "lit/decorators.js";
9
+ const w = g`*,:before,:after{box-sizing:border-box}:host{display:flex;flex-direction:column;flex-shrink:0;width:var(--sbb-size-element-m);overflow-y:auto;background-color:var(--sbb-color-white);margin-block-start:var(--sbb-spacing-fixed-3x);padding-block-start:var(--sbb-spacing-fixed-1x);border-start-end-radius:var(--sbb-icon-sidebar-border-radius);border-start-start-radius:0;--sbb-icon-sidebar-border-radius: var(--sbb-border-radius-8x)}:host([color=milk]){background-color:var(--sbb-color-milk)}`;
10
+ let L = (() => {
11
+ var l, a;
12
+ let t = [S("sbb-icon-sidebar")], e, r = [], s, n = k, b, d = [], u = [];
13
+ return a = class extends n {
14
+ constructor() {
15
+ super();
16
+ _(this, l, c(this, d, "white"));
17
+ c(this, u);
18
+ const o = this.attachInternals();
19
+ o.role = "navigation";
20
+ }
21
+ /** Background color of the icon sidebar. Either `white` or `milk`. **/
22
+ get color() {
23
+ return f(this, l);
24
+ }
25
+ set color(o) {
26
+ p(this, l, o);
27
+ }
28
+ /** Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained. */
29
+ get container() {
30
+ return this.closest("sbb-icon-sidebar-container");
31
+ }
32
+ connectedCallback() {
33
+ super.connectedCallback(), this.classList.add("sbb-scrollbar");
34
+ }
35
+ render() {
36
+ return y`<slot></slot>`;
37
+ }
38
+ }, l = new WeakMap(), s = a, (() => {
39
+ const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
40
+ b = [z({ reflect: !0 })], v(a, null, b, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (i) => "color" in i, get: (i) => i.color, set: (i, x) => {
41
+ i.color = x;
42
+ } }, metadata: o }, d, u), v(null, e = { value: s }, t, { kind: "class", name: s.name, metadata: o }, null, r), s = e.value, o && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
43
+ })(), a.styles = w, c(s, r), s;
44
+ })();
45
+ export {
46
+ L as SbbIconSidebarElement
47
+ };
@@ -0,0 +1,76 @@
1
+ import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
2
+ import { SbbOpenCloseBaseElement } from '../../core/base-elements.js';
3
+ import { SbbSidebarContainerElement } from '../sidebar-container.js';
4
+ declare const SbbSidebarElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbAnimationCompleteMixinType> & typeof SbbOpenCloseBaseElement;
5
+ /**
6
+ * This component corresponds to a sidebar that can be opened on the sidebar container.
7
+ *
8
+ * @slot - Use the unnamed slot to slot any content into the sidebar.
9
+ * @slot title - Use the title slot to add an <sbb-title>.
10
+ * @event {CustomEvent<void>} willOpen - Emits when the opening animation starts. Can be canceled.
11
+ * @event {CustomEvent<void>} didOpen - Emits when the opening animation ends.
12
+ * @event {CustomEvent<void>} willClose - Emits when the closing animation starts. Can be canceled.
13
+ * @event {CustomEvent<void>} didClose - Emits when the closing animation ends.
14
+ */
15
+ export declare class SbbSidebarElement extends SbbSidebarElement_base {
16
+ static styles: CSSResultGroup;
17
+ /** Background color of the sidebar. Either `white` or `milk`. */
18
+ accessor color: 'white' | 'milk';
19
+ /** Mode of the sidebar; one of 'side' or 'over'. */
20
+ accessor mode: 'side' | 'over';
21
+ /** The side that the sidebar is attached to. */
22
+ accessor position: 'start' | 'end';
23
+ /**
24
+ * Whether the sidebar is opened or closed.
25
+ * Can be used to initially set the opened state, where
26
+ * the animation will be skipped.
27
+ */
28
+ accessor opened: boolean;
29
+ /**
30
+ * Whether the sidebar should focus the first focusable element automatically when opened.
31
+ * Defaults to false in when mode is set to `side`, otherwise defaults to true.
32
+ * If explicitly enabled, focus will be moved into the sidebar in `side` mode as well.
33
+ */
34
+ accessor focusOnOpen: boolean;
35
+ /** Returns the SbbSidebarContainerElement where this sidebar is contained. */
36
+ get container(): SbbSidebarContainerElement | null;
37
+ private _container;
38
+ private _lastFocusedElement;
39
+ private _focusHandler;
40
+ private _inertController;
41
+ private _escapableOverlayController;
42
+ private _windowEventsController;
43
+ private _isPointerDownEventOnSidebar;
44
+ constructor();
45
+ connectedCallback(): void;
46
+ disconnectedCallback(): void;
47
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
48
+ protected firstUpdated(changedProperties: PropertyValues<this>): void;
49
+ /** Toggles the sidebar visibility. */
50
+ toggle(): void;
51
+ /** Opens the sidebar. */
52
+ open(): void;
53
+ private _isZeroAnimationDuration;
54
+ private _handleOpening;
55
+ /** Closes the sidebar. */
56
+ close(): void;
57
+ private _handleClosing;
58
+ private _takeFocus;
59
+ private _attachWindowEvents;
60
+ private _pointerDownListener;
61
+ private _closeOnBackdropClick;
62
+ protected cedeFocus(): void;
63
+ private _updateSidebarWidth;
64
+ private _buildCssWidthVar;
65
+ private _isModeOver;
66
+ private _onTransitionEnd;
67
+ private _detectScrolledState;
68
+ protected render(): TemplateResult;
69
+ }
70
+ declare global {
71
+ interface HTMLElementTagNameMap {
72
+ 'sbb-sidebar': SbbSidebarElement;
73
+ }
74
+ }
75
+ export {};
76
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/sidebar/sidebar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAkB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAMtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;;AAI1E;;;;;;;;;GASG;AACH,qBAEM,iBAAkB,SAAQ,sBAAkD;IAChF,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,iEAAiE;IACjE,SACgB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAW;IAElD,oDAAoD;IACpD,SAEgB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAU;IAE/C,gDAAgD;IAChD,SAGgB,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAW;IAEpD;;;;OAIG;IACH,SAEgB,MAAM,EAAE,OAAO,CAAS;IAExC;;;;OAIG;IACH,SAEgB,WAAW,EAAE,OAAO,CAAS;IAE7C,8EAA8E;IAC9E,IAAW,SAAS,IAAI,0BAA0B,GAAG,IAAI,CAExD;IACD,OAAO,CAAC,UAAU,CAA2C;IAE7D,OAAO,CAAC,mBAAmB,CAA4B;IACvD,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,2BAA2B,CAA2C;IAC9E,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,4BAA4B,CAAkB;;IAgBtC,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;cAQzB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAoBzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAM9E,sCAAsC;IAC/B,MAAM,IAAI,IAAI;IAQrB,yBAAyB;IAClB,IAAI,IAAI,IAAI;IAkCnB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAYtB,0BAA0B;IACnB,KAAK,IAAI,IAAI;IAwBpB,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,UAAU;IA0BlB,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,oBAAoB,CAK1B;IAGF,OAAO,CAAC,qBAAqB,CAO3B;IAGF,SAAS,CAAC,SAAS,IAAI,IAAI;IAS3B,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,oBAAoB;cAOT,MAAM,IAAI,cAAc;CAQ5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
2
+ import { SbbSecondaryButtonElement } from '../../button/secondary-button.js';
3
+ /**
4
+ * Sidebar close button, intended to be placed inside sbb-sidebar.
5
+ *
6
+ * @slot - Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.
7
+ * @slot icon - Slot used to display the icon, if one is set. Not intended to be used in this context.
8
+ */
9
+ export declare class SbbSidebarCloseButtonElement extends SbbSecondaryButtonElement {
10
+ static styles: CSSResultGroup;
11
+ private _language?;
12
+ private _languageController;
13
+ constructor();
14
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
15
+ protected renderTemplate(): TemplateResult;
16
+ }
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'sbb-sidebar-close-button': SbbSidebarCloseButtonElement;
20
+ }
21
+ }
22
+ //# sourceMappingURL=sidebar-close-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-close-button.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/sidebar-close-button/sidebar-close-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAO7E;;;;;GAKG;AACH,qBAGM,4BAA6B,SAAQ,yBAAyB;IAClE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,mBAAmB,CAAmC;;cAQ3C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAezD,cAAc,IAAI,cAAc;CAGpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0BAA0B,EAAE,4BAA4B,CAAC;KAC1D;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './sidebar-close-button/sidebar-close-button.js';
2
+ //# sourceMappingURL=sidebar-close-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-close-button.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/sidebar-close-button.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { __esDecorate as u, __runInitializers as c } from "tslib";
2
+ import { customElement as b } from "lit/decorators.js";
3
+ import { SbbSecondaryButtonElement as i } from "../button/secondary-button.js";
4
+ import { SbbLanguageController as m } from "../core/controllers.js";
5
+ import { hostAttributes as g } from "../core/decorators.js";
6
+ import { i18nCloseSidebar as o } from "../core/i18n.js";
7
+ import { css as h } from "lit";
8
+ const d = h`*,:before,:after{box-sizing:border-box}:host{display:block;height:fit-content}`;
9
+ let v = (() => {
10
+ var e;
11
+ let n = [b("sbb-sidebar-close-button"), g({ slot: "title-section" })], r, l = [], t, s = i;
12
+ return e = class extends s {
13
+ constructor() {
14
+ super(), this._languageController = new m(this), this.iconName = "cross-small", this.size = "s";
15
+ }
16
+ willUpdate(a) {
17
+ super.willUpdate(a), this._language !== this._languageController.current && ((!this.hasAttribute("aria-label") || this._language && this.getAttribute("aria-label") === o[this._language]) && this.setAttribute("aria-label", o[this._languageController.current]), this._language = this._languageController.current);
18
+ }
19
+ renderTemplate() {
20
+ return super.renderIconSlot();
21
+ }
22
+ }, t = e, (() => {
23
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
24
+ u(null, r = { value: t }, n, { kind: "class", name: t.name, metadata: a }, null, l), t = r.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
25
+ })(), e.styles = [i.styles, d], c(t, l), t;
26
+ })();
27
+ export {
28
+ v as SbbSidebarCloseButtonElement
29
+ };
@@ -0,0 +1,34 @@
1
+ import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
2
+ import { SbbSidebarElement } from '../sidebar.js';
3
+ /**
4
+ * This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally
5
+ * and coordinates the backdrop and content styling.
6
+ *
7
+ * @slot - Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.
8
+ */
9
+ export declare class SbbSidebarContainerElement extends LitElement {
10
+ static styles: CSSResultGroup;
11
+ /** The sidebar children. */
12
+ get sidebars(): SbbSidebarElement[];
13
+ /** The sidebar child with the `start` position. */
14
+ get start(): SbbSidebarElement | null;
15
+ /** The sidebar child with the `end` position. */
16
+ get end(): SbbSidebarElement | null;
17
+ private _forcedClosedSidebars;
18
+ connectedCallback(): void;
19
+ disconnectedCallback(): void;
20
+ protected firstUpdated(changedProperties: PropertyValues<this>): void;
21
+ private _handleWidthChange;
22
+ /**
23
+ * Closes and opens sidebars depending on available width
24
+ * of the container and its parent container.
25
+ */
26
+ private _calculateSpaceState;
27
+ protected render(): TemplateResult;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'sbb-sidebar-container': SbbSidebarContainerElement;
32
+ }
33
+ }
34
+ //# sourceMappingURL=sidebar-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-container.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/sidebar-container/sidebar-container.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAIb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AASvD;;;;;GAKG;AACH,qBAEM,0BAA2B,SAAQ,UAAU;IACjD,OAAuB,MAAM,EAAE,cAAc,CAAwC;IAErF,4BAA4B;IAC5B,IAAW,QAAQ,IAAI,iBAAiB,EAAE,CAEzC;IAED,mDAAmD;IACnD,IAAW,KAAK,IAAI,iBAAiB,GAAG,IAAI,CAE3C;IAED,iDAAiD;IACjD,IAAW,GAAG,IAAI,iBAAiB,GAAG,IAAI,CAEzC;IAED,OAAO,CAAC,qBAAqB,CAAoC;IAEjD,iBAAiB,IAAI,IAAI;IAezB,oBAAoB,IAAI,IAAI;cAUzB,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAM9E,OAAO,CAAC,kBAAkB;IAM1B;;;OAGG;YACW,oBAAoB;cAuEf,MAAM,IAAI,cAAc;CAI5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './sidebar-container/sidebar-container.js';
2
+ //# sourceMappingURL=sidebar-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-container.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/sidebar-container.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { __esDecorate as S, __runInitializers as g } from "tslib";
2
+ import { css as C, LitElement as k, isServer as b, html as A } from "lit";
3
+ import { customElement as E } from "lit/decorators.js";
4
+ import { sidebarContainerCommonStyle as O } from "./common.js";
5
+ const W = C`:host{display:block;overflow:hidden;--sbb-sidebar-container-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-sidebar-container-animation-easing: var(--sbb-animation-easing);--sbb-sidebar-container-backdrop-opacity: 0;--sbb-sidebar-container__backdrop-visibility: hidden;--sbb-sidebar-container-backdrop-animation-duration: var( --sbb-sidebar-container-animation-duration )}@media (forced-colors: active){:host{--sbb-sidebar-container-backdrop-opacity: .5}}.sbb-sidebar-container-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;visibility:var(--sbb-sidebar-container__backdrop-visibility);opacity:var(--sbb-sidebar-container-backdrop-opacity);background-color:var(--sbb-color-black);z-index:3;transition-duration:var(--sbb-sidebar-container-backdrop-animation-duration);transition-timing-function:var(--sbb-sidebar-container-animation-easing);transition-property:opacity,visibility}`, o = /* @__PURE__ */ new Set();
6
+ let s;
7
+ const w = 320;
8
+ let L = (() => {
9
+ var i;
10
+ let _ = [E("sbb-sidebar-container")], l, m = [], a, u = k;
11
+ return i = class extends u {
12
+ constructor() {
13
+ super(...arguments), this._forcedClosedSidebars = /* @__PURE__ */ new WeakSet();
14
+ }
15
+ /** The sidebar children. */
16
+ get sidebars() {
17
+ var t;
18
+ return Array.from(((t = this.querySelectorAll) == null ? void 0 : t.call(this, ":scope > sbb-sidebar")) ?? []);
19
+ }
20
+ /** The sidebar child with the `start` position. */
21
+ get start() {
22
+ var t;
23
+ return (t = this.querySelector) == null ? void 0 : t.call(this, ":scope > sbb-sidebar:not([position='end'])");
24
+ }
25
+ /** The sidebar child with the `end` position. */
26
+ get end() {
27
+ var t;
28
+ return (t = this.querySelector) == null ? void 0 : t.call(this, ":scope > sbb-sidebar[position='end']");
29
+ }
30
+ connectedCallback() {
31
+ super.connectedCallback(), s ?? (s = !b && new ResizeObserver(() => this._handleWidthChange())), !b && o.size === 0 && s.observe(document == null ? void 0 : document.documentElement), o.add(this), this._handleWidthChange();
32
+ }
33
+ disconnectedCallback() {
34
+ super.disconnectedCallback(), o.delete(this), o.size === 0 && (s == null || s.disconnect());
35
+ }
36
+ firstUpdated(t) {
37
+ super.firstUpdated(t), this._handleWidthChange();
38
+ }
39
+ _handleWidthChange() {
40
+ Array.from(o).sort((t, r) => t.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING).forEach((t) => t._calculateSpaceState());
41
+ }
42
+ /**
43
+ * Closes and opens sidebars depending on available width
44
+ * of the container and its parent container.
45
+ */
46
+ async _calculateSpaceState() {
47
+ var n, v;
48
+ if (b)
49
+ return;
50
+ const t = (v = (n = this.parentElement) == null ? void 0 : n.closest) == null ? void 0 : v.call(n, "sbb-sidebar-container"), r = (t == null ? void 0 : t.sidebars) ?? [];
51
+ for (const e of r)
52
+ await e.updateComplete.then(() => e.animationComplete);
53
+ const h = this.offsetWidth ?? 0;
54
+ if (h === 0)
55
+ return;
56
+ const p = this.sidebars, f = r.some((e) => e.hasAttribute("data-mode-over-forced")) ?? !1, y = p.filter((e) => e.mode === "side").reduce((e, c) => e + (c.offsetWidth ?? 0), 0), d = h - y < w;
57
+ for (const e of p) {
58
+ const c = e.hasAttribute("data-mode-over-forced");
59
+ e.toggleAttribute("data-mode-over-forced", d), e.mode === "side" && ((d || f) && e.opened && !c ? (e.isOpen && !e.hasAttribute("data-skip-animation") && e.toggleAttribute("data-mode-over-forced-closing", !0), e.opened = !1, this._forcedClosedSidebars.add(e), e.hasAttribute("data-mode-over-forced-closing") && e.updateComplete.then(() => e.animationComplete).then(() => e.removeAttribute("data-mode-over-forced-closing"))) : (
60
+ // We have to open the sidebar when the remaining width of the sidebar and the parent container
61
+ // is above the minimum.
62
+ // We only programmatically open the sidebar when the cause of closing was this logic.
63
+ !d && !f && this._forcedClosedSidebars.has(e) && (e.cedeFocus(), e.opened = !0, this._forcedClosedSidebars.delete(e))
64
+ ));
65
+ }
66
+ }
67
+ render() {
68
+ return A`<div class="sbb-sidebar-container-backdrop"></div>
69
+ <slot @slotchange=${() => this._handleWidthChange()}></slot>`;
70
+ }
71
+ }, a = i, (() => {
72
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
73
+ S(null, l = { value: a }, _, { kind: "class", name: a.name, metadata: t }, null, m), a = l.value, t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
74
+ })(), i.styles = [O, W], g(a, m), a;
75
+ })();
76
+ export {
77
+ L as SbbSidebarContainerElement
78
+ };
@@ -0,0 +1,18 @@
1
+ import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
+ /**
3
+ * Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.
4
+ *
5
+ * @slot - Use the unnamed slot to add any content elements.
6
+ * Further `sbb-sidebar-container`s are possible.
7
+ */
8
+ export declare class SbbSidebarContentElement extends LitElement {
9
+ static styles: CSSResultGroup;
10
+ connectedCallback(): void;
11
+ protected render(): TemplateResult;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'sbb-sidebar-content': SbbSidebarContentElement;
16
+ }
17
+ }
18
+ //# sourceMappingURL=sidebar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-content.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/sidebar-content/sidebar-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOjF;;;;;GAKG;AACH,qBAEM,wBAAyB,SAAQ,UAAU;IAC/C,OAAuB,MAAM,EAAE,cAAc,CAAsC;IAEnE,iBAAiB,IAAI,IAAI;cAStB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,qBAAqB,EAAE,wBAAwB,CAAC;KACjD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './sidebar-content/sidebar-content.js';
2
+ //# sourceMappingURL=sidebar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-content.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/sidebar-content.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { __esDecorate as l, __runInitializers as o } from "tslib";
2
+ import { css as b, LitElement as c, html as m } from "lit";
3
+ import { customElement as d } from "lit/decorators.js";
4
+ import { sidebarContentCommonStyle as _ } from "./common.js";
5
+ const u = b`:host{--sbb-sidebar-content__margin-inline-start: initial;--sbb-sidebar-content__margin-inline-end: initial;margin-inline:var(--sbb-sidebar-content__margin-inline-start, var(--sbb-sidebar-container__start-width, 0)) var(--sbb-sidebar-content__margin-inline-end, var(--sbb-sidebar-container__end-width, 0));transition:margin var(--sbb-sidebar-container-animation-duration) var(--sbb-sidebar-container-animation-easing)}`;
6
+ let g = (() => {
7
+ var e;
8
+ let s = [d("sbb-sidebar-content")], n, i = [], t, r = c;
9
+ return e = class extends r {
10
+ connectedCallback() {
11
+ super.connectedCallback(), this.classList.add("sbb-scrollbar");
12
+ }
13
+ render() {
14
+ return m`<slot></slot>`;
15
+ }
16
+ }, t = e, (() => {
17
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
18
+ l(null, n = { value: t }, s, { kind: "class", name: t.name, metadata: a }, null, i), t = n.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
19
+ })(), e.styles = [_, u], o(t, i), t;
20
+ })();
21
+ export {
22
+ g as SbbSidebarContentElement
23
+ };
@@ -0,0 +1,17 @@
1
+ import { CSSResultGroup } from 'lit';
2
+ import { SbbTitleBase, SbbTitleLevel } from '../../title.js';
3
+ /**
4
+ * It displays the title of the sidebar. It has to be placed inside an `sbb-sidebar` element.
5
+ */
6
+ export declare class SbbSidebarTitleElement extends SbbTitleBase {
7
+ static styles: CSSResultGroup;
8
+ /** Title level */
9
+ accessor level: SbbTitleLevel;
10
+ constructor();
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'sbb-sidebar-title': SbbSidebarTitleElement;
15
+ }
16
+ }
17
+ //# sourceMappingURL=sidebar-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-title.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/sidebar-title/sidebar-title.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIlE;;GAEG;AACH,qBAGM,sBAAuB,SAAQ,YAAY;IAC/C,OAAuB,MAAM,EAAE,cAAc,CAAgC;IAE7E,kBAAkB;IAClB,SAAsD,KAAK,EAAE,aAAa,CAAO;;CAMlF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './sidebar-title/sidebar-title.js';
2
+ //# sourceMappingURL=sidebar-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-title.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/sidebar-title.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}