@sbb-esta/lyne-elements 2.4.1 → 2.5.1

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 (260) hide show
  1. package/autocomplete/autocomplete-base-element.d.ts +0 -1
  2. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  3. package/autocomplete.js +13 -13
  4. package/button/common/button-common.d.ts +1 -2
  5. package/button/common/button-common.d.ts.map +1 -1
  6. package/button/common.js +4 -4
  7. package/clock/clock.d.ts +8 -0
  8. package/clock/clock.d.ts.map +1 -1
  9. package/clock.js +40 -31
  10. package/core/a11y/focus.d.ts.map +1 -1
  11. package/core/base-elements/button-base-element.d.ts +5 -0
  12. package/core/base-elements/button-base-element.d.ts.map +1 -1
  13. package/core/base-elements.js +113 -98
  14. package/core/controllers/inert-controller.d.ts +3 -3
  15. package/core/controllers/inert-controller.d.ts.map +1 -1
  16. package/core/controllers.js +13 -12
  17. package/core/decorators/force-type.d.ts +1 -1
  18. package/core/decorators/force-type.d.ts.map +1 -1
  19. package/core/decorators.js +39 -40
  20. package/core/dom/platform.d.ts +5 -0
  21. package/core/dom/platform.d.ts.map +1 -1
  22. package/core/dom.js +10 -9
  23. package/core/i18n/i18n.d.ts +1 -0
  24. package/core/i18n/i18n.d.ts.map +1 -1
  25. package/core/i18n.js +95 -89
  26. package/core/mixins/animation-complete-mixin.d.ts +13 -0
  27. package/core/mixins/animation-complete-mixin.d.ts.map +1 -0
  28. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  29. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  30. package/core/mixins.d.ts +1 -0
  31. package/core/mixins.d.ts.map +1 -1
  32. package/core/mixins.js +195 -152
  33. package/core/styles/core.scss +81 -0
  34. package/core/styles/mixins/link.scss +14 -0
  35. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +3 -0
  36. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +4 -1
  37. package/core.css +51 -1
  38. package/custom-elements.json +4330 -291
  39. package/date-input/date-input.d.ts +11 -3
  40. package/date-input/date-input.d.ts.map +1 -1
  41. package/date-input.js +44 -38
  42. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  43. package/datepicker/datepicker.js +12 -12
  44. package/development/autocomplete/autocomplete-base-element.d.ts +0 -1
  45. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  46. package/development/autocomplete.js +2 -4
  47. package/development/button/common/button-common.d.ts +1 -2
  48. package/development/button/common/button-common.d.ts.map +1 -1
  49. package/development/button/common.js +26 -24
  50. package/development/clock/clock.d.ts +8 -0
  51. package/development/clock/clock.d.ts.map +1 -1
  52. package/development/clock.js +20 -2
  53. package/development/core/a11y/focus.d.ts.map +1 -1
  54. package/development/core/a11y.js +1 -1
  55. package/development/core/base-elements/button-base-element.d.ts +5 -0
  56. package/development/core/base-elements/button-base-element.d.ts.map +1 -1
  57. package/development/core/base-elements.js +43 -15
  58. package/development/core/controllers/inert-controller.d.ts +3 -3
  59. package/development/core/controllers/inert-controller.d.ts.map +1 -1
  60. package/development/core/controllers.js +6 -7
  61. package/development/core/decorators/force-type.d.ts +1 -1
  62. package/development/core/decorators/force-type.d.ts.map +1 -1
  63. package/development/core/decorators.js +5 -5
  64. package/development/core/dom/platform.d.ts +5 -0
  65. package/development/core/dom/platform.d.ts.map +1 -1
  66. package/development/core/dom.js +3 -1
  67. package/development/core/i18n/i18n.d.ts +1 -0
  68. package/development/core/i18n/i18n.d.ts.map +1 -1
  69. package/development/core/i18n.js +8 -1
  70. package/development/core/mixins/animation-complete-mixin.d.ts +13 -0
  71. package/development/core/mixins/animation-complete-mixin.d.ts.map +1 -0
  72. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  73. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  74. package/development/core/mixins.d.ts +1 -0
  75. package/development/core/mixins.d.ts.map +1 -1
  76. package/development/core/mixins.js +57 -4
  77. package/development/date-input/date-input.d.ts +11 -3
  78. package/development/date-input/date-input.d.ts.map +1 -1
  79. package/development/date-input.js +26 -18
  80. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  81. package/development/datepicker/datepicker.js +2 -1
  82. package/development/dialog/dialog-title/dialog-title.d.ts +3 -1
  83. package/development/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  84. package/development/dialog/dialog-title.js +7 -2
  85. package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  86. package/development/flip-card/flip-card-details.js +5 -3
  87. package/development/form-field/form-field.js +2 -2
  88. package/development/header/common.js +2 -2
  89. package/development/link/common.js +13 -1
  90. package/development/menu/menu/menu.d.ts.map +1 -1
  91. package/development/menu/menu.js +4 -1
  92. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  93. package/development/navigation/navigation.js +4 -1
  94. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  95. package/development/overlay.js +4 -1
  96. package/development/radio-button/radio-button-group/radio-button-group.d.ts +0 -1
  97. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  98. package/development/radio-button/radio-button-group.js +3 -5
  99. package/development/sbb-tokens-CSAKTXUi.js +1 -1
  100. package/development/select/select.d.ts +5 -2
  101. package/development/select/select.d.ts.map +1 -1
  102. package/development/select.js +6 -4
  103. package/development/sidebar/common.d.ts +1 -0
  104. package/development/sidebar/common.d.ts.map +1 -0
  105. package/development/sidebar/common.js +114 -0
  106. package/development/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
  107. package/development/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
  108. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
  109. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
  110. package/development/sidebar/icon-sidebar-button.d.ts +2 -0
  111. package/development/sidebar/icon-sidebar-button.d.ts.map +1 -0
  112. package/development/sidebar/icon-sidebar-button.js +28 -0
  113. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
  114. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
  115. package/development/sidebar/icon-sidebar-container.d.ts +2 -0
  116. package/development/sidebar/icon-sidebar-container.d.ts.map +1 -0
  117. package/development/sidebar/icon-sidebar-container.js +45 -0
  118. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
  119. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
  120. package/development/sidebar/icon-sidebar-content.d.ts +2 -0
  121. package/development/sidebar/icon-sidebar-content.d.ts.map +1 -0
  122. package/development/sidebar/icon-sidebar-content.js +34 -0
  123. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
  124. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
  125. package/development/sidebar/icon-sidebar-link.d.ts +2 -0
  126. package/development/sidebar/icon-sidebar-link.d.ts.map +1 -0
  127. package/development/sidebar/icon-sidebar-link.js +28 -0
  128. package/development/sidebar/icon-sidebar.d.ts +2 -0
  129. package/development/sidebar/icon-sidebar.d.ts.map +1 -0
  130. package/development/sidebar/icon-sidebar.js +85 -0
  131. package/development/sidebar/sidebar/sidebar.d.ts +76 -0
  132. package/development/sidebar/sidebar/sidebar.d.ts.map +1 -0
  133. package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
  134. package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
  135. package/development/sidebar/sidebar-close-button.d.ts +2 -0
  136. package/development/sidebar/sidebar-close-button.d.ts.map +1 -0
  137. package/development/sidebar/sidebar-close-button.js +55 -0
  138. package/development/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
  139. package/development/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
  140. package/development/sidebar/sidebar-container.d.ts +2 -0
  141. package/development/sidebar/sidebar-container.d.ts.map +1 -0
  142. package/development/sidebar/sidebar-container.js +153 -0
  143. package/development/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
  144. package/development/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
  145. package/development/sidebar/sidebar-content.d.ts +2 -0
  146. package/development/sidebar/sidebar-content.d.ts.map +1 -0
  147. package/development/sidebar/sidebar-content.js +37 -0
  148. package/development/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
  149. package/development/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
  150. package/development/sidebar/sidebar-title.d.ts +2 -0
  151. package/development/sidebar/sidebar-title.d.ts.map +1 -0
  152. package/development/sidebar/sidebar-title.js +63 -0
  153. package/development/sidebar/sidebar.d.ts +2 -0
  154. package/development/sidebar/sidebar.d.ts.map +1 -0
  155. package/development/sidebar/sidebar.js +523 -0
  156. package/development/sidebar.d.ts +12 -0
  157. package/development/sidebar.d.ts.map +1 -0
  158. package/development/sidebar.js +12 -0
  159. package/development/stepper/step/step.d.ts +1 -3
  160. package/development/stepper/step/step.d.ts.map +1 -1
  161. package/development/stepper/step.js +20 -14
  162. package/development/time-input/time-input.d.ts +3 -2
  163. package/development/time-input/time-input.d.ts.map +1 -1
  164. package/development/time-input.js +19 -10
  165. package/development/title/title-base.d.ts +2 -4
  166. package/development/title/title-base.d.ts.map +1 -1
  167. package/development/title/title.d.ts +3 -1
  168. package/development/title/title.d.ts.map +1 -1
  169. package/development/title.js +8 -8
  170. package/dialog/dialog-title/dialog-title.d.ts +3 -1
  171. package/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  172. package/dialog/dialog-title.js +16 -15
  173. package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  174. package/flip-card/flip-card-details.js +14 -13
  175. package/form-field/form-field.js +1 -1
  176. package/header/common.js +6 -6
  177. package/index.d.ts +20 -0
  178. package/index.js +20 -0
  179. package/link/common.js +12 -12
  180. package/menu/menu/menu.d.ts.map +1 -1
  181. package/menu/menu.js +1 -1
  182. package/navigation/navigation/navigation.d.ts.map +1 -1
  183. package/navigation/navigation.js +7 -7
  184. package/overlay/overlay-base-element.d.ts.map +1 -1
  185. package/overlay.js +1 -1
  186. package/package.json +61 -1
  187. package/radio-button/radio-button-group/radio-button-group.d.ts +0 -1
  188. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  189. package/radio-button/radio-button-group.js +8 -8
  190. package/select/select.d.ts +5 -2
  191. package/select/select.d.ts.map +1 -1
  192. package/select.js +8 -9
  193. package/sidebar/common.d.ts +1 -0
  194. package/sidebar/common.d.ts.map +1 -0
  195. package/sidebar/common.js +7 -0
  196. package/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
  197. package/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
  198. package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
  199. package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
  200. package/sidebar/icon-sidebar-button.d.ts +2 -0
  201. package/sidebar/icon-sidebar-button.d.ts.map +1 -0
  202. package/sidebar/icon-sidebar-button.js +20 -0
  203. package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
  204. package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
  205. package/sidebar/icon-sidebar-container.d.ts +2 -0
  206. package/sidebar/icon-sidebar-container.d.ts.map +1 -0
  207. package/sidebar/icon-sidebar-container.js +35 -0
  208. package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
  209. package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
  210. package/sidebar/icon-sidebar-content.d.ts +2 -0
  211. package/sidebar/icon-sidebar-content.d.ts.map +1 -0
  212. package/sidebar/icon-sidebar-content.js +23 -0
  213. package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
  214. package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
  215. package/sidebar/icon-sidebar-link.d.ts +2 -0
  216. package/sidebar/icon-sidebar-link.d.ts.map +1 -0
  217. package/sidebar/icon-sidebar-link.js +20 -0
  218. package/sidebar/icon-sidebar.d.ts +2 -0
  219. package/sidebar/icon-sidebar.d.ts.map +1 -0
  220. package/sidebar/icon-sidebar.js +47 -0
  221. package/sidebar/sidebar/sidebar.d.ts +76 -0
  222. package/sidebar/sidebar/sidebar.d.ts.map +1 -0
  223. package/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
  224. package/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
  225. package/sidebar/sidebar-close-button.d.ts +2 -0
  226. package/sidebar/sidebar-close-button.d.ts.map +1 -0
  227. package/sidebar/sidebar-close-button.js +29 -0
  228. package/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
  229. package/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
  230. package/sidebar/sidebar-container.d.ts +2 -0
  231. package/sidebar/sidebar-container.d.ts.map +1 -0
  232. package/sidebar/sidebar-container.js +78 -0
  233. package/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
  234. package/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
  235. package/sidebar/sidebar-content.d.ts +2 -0
  236. package/sidebar/sidebar-content.d.ts.map +1 -0
  237. package/sidebar/sidebar-content.js +23 -0
  238. package/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
  239. package/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
  240. package/sidebar/sidebar-title.d.ts +2 -0
  241. package/sidebar/sidebar-title.d.ts.map +1 -0
  242. package/sidebar/sidebar-title.js +37 -0
  243. package/sidebar/sidebar.d.ts +2 -0
  244. package/sidebar/sidebar.d.ts.map +1 -0
  245. package/sidebar/sidebar.js +214 -0
  246. package/sidebar.d.ts +12 -0
  247. package/sidebar.d.ts.map +1 -0
  248. package/sidebar.js +11 -0
  249. package/standard-theme.css +51 -1
  250. package/stepper/step/step.d.ts +1 -3
  251. package/stepper/step/step.d.ts.map +1 -1
  252. package/stepper/step.js +12 -15
  253. package/time-input/time-input.d.ts +3 -2
  254. package/time-input/time-input.d.ts.map +1 -1
  255. package/time-input.js +44 -36
  256. package/title/title-base.d.ts +2 -4
  257. package/title/title-base.d.ts.map +1 -1
  258. package/title/title.d.ts +3 -1
  259. package/title/title.d.ts.map +1 -1
  260. package/title.js +11 -11
@@ -1,6 +1,9 @@
1
1
  import { CSSResultGroup, PropertyDeclaration, PropertyValues, TemplateResult } from 'lit';
2
2
  import { SbbOpenCloseBaseElement } from '../core/base-elements.js';
3
3
  import { FormRestoreReason, FormRestoreState } from '../core/mixins.js';
4
+ /**
5
+ * @deprecated will be removed with next major version
6
+ */
4
7
  export interface SelectChange {
5
8
  type: 'value';
6
9
  value: string | string[];
@@ -26,7 +29,7 @@ export declare class SbbSelectElement extends SbbSelectElement_base {
26
29
  static readonly events: {
27
30
  readonly change: "change";
28
31
  readonly input: "input";
29
- readonly stateChange: "stateChange";
32
+ readonly displayValueChange: "displayValueChange";
30
33
  readonly willOpen: "willOpen";
31
34
  readonly didOpen: "didOpen";
32
35
  readonly willClose: "willClose";
@@ -51,7 +54,7 @@ export declare class SbbSelectElement extends SbbSelectElement_base {
51
54
  /** Notifies that an option value has been selected. */
52
55
  private _input;
53
56
  /** @internal */
54
- private _stateChange;
57
+ private _displayValueChanged;
55
58
  private _overlay;
56
59
  private _optionContainer;
57
60
  private _originElement;
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/elements/select/select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAWnE,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAOtB,MAAM,mBAAmB,CAAC;AAc3B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAA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;IAYlB,OAAO,CAAC,+BAA+B;IAgBvC,OAAO,CAAC,+BAA+B;IAwCvC,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB,CAE1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAEF,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,2BAA2B;YAMrB,qBAAqB;cAOhB,MAAM,IAAI,cAAc;CAoD5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
package/select.js CHANGED
@@ -14,7 +14,7 @@ import { SbbOpenCloseBaseElement as oe } from "./core/base-elements.js";
14
14
  import { SbbEscapableOverlayController as le, SbbLanguageController as re } from "./core/controllers.js";
15
15
  import { hostAttributes as ne, forceType as E, handleDistinctChange as S, getOverride as be } from "./core/decorators.js";
16
16
  import { setOrRemoveAttribute as D, isZeroAnimationDuration as de, isNextjs as J, isSafari as he } from "./core/dom.js";
17
- import { EventEmitter as I } from "./core/eventing.js";
17
+ import { EventEmitter as V } from "./core/eventing.js";
18
18
  import { i18nSelectionRequired as pe } from "./core/i18n.js";
19
19
  import { SbbUpdateSchedulerMixin as ce, SbbDisabledMixin as ue, SbbNegativeMixin as ve, SbbHydrationMixin as _e, SbbRequiredMixin as ge, SbbFormAssociatedMixin as fe } from "./core/mixins.js";
20
20
  import { isEventOnElement as Q, setOverlayPosition as me, overlayGapFixCorners as ye } from "./core/overlay.js";
@@ -23,8 +23,8 @@ let xe = 0, Re = (() => {
23
23
  var p, c, u, v, _, n;
24
24
  let a = [se("sbb-select"), ne({
25
25
  role: O ? "listbox" : null
26
- })], l, r = [], h, V = ce(ue(ve(_e(ge(fe(oe)))))), L, P = [], $ = [], T, z = [], U = [], q, M = [], R = [], N, B = [], K = [], F, j = [], H = [];
27
- var y = (n = class extends V {
26
+ })], l, r = [], h, I = ce(ue(ve(_e(ge(fe(oe)))))), L, P = [], $ = [], T, z = [], U = [], q, M = [], R = [], N, B = [], K = [], F, j = [], H = [];
27
+ var y = (n = class extends I {
28
28
  constructor() {
29
29
  var e, t, s;
30
30
  super();
@@ -33,7 +33,7 @@ let xe = 0, Re = (() => {
33
33
  f(this, u);
34
34
  f(this, v);
35
35
  f(this, _);
36
- b(this, p, d(this, P, "")), b(this, c, (d(this, $), d(this, z, !1))), b(this, u, (d(this, U), d(this, M, !1))), b(this, v, (d(this, R), d(this, B, !1))), b(this, _, (d(this, K), d(this, j, null))), this._change = (d(this, H), new I(this, y.events.change)), this._input = new I(this, y.events.input), this._stateChange = new I(this, y.events.stateChange, {
36
+ b(this, p, d(this, P, "")), b(this, c, (d(this, $), d(this, z, !1))), b(this, u, (d(this, U), d(this, M, !1))), b(this, v, (d(this, R), d(this, B, !1))), b(this, _, (d(this, K), d(this, j, null))), this._change = (d(this, H), new V(this, y.events.change)), this._input = new V(this, y.events.input), this._displayValueChanged = new V(this, y.events.displayValueChange, {
37
37
  composed: !1
38
38
  }), this._sbbEscapableOverlayController = new le(this), this._overlayId = `sbb-select-${++xe}`, this._activeItemIndex = -1, this._searchString = "", this._didLoad = !1, this._isPointerDownEventOnMenu = !1, this._languageController = new re(this), this._pointerDownListener = (i) => {
39
39
  this._isPointerDownEventOnMenu = Q(this._overlay, i);
@@ -134,7 +134,7 @@ let xe = 0, Re = (() => {
134
134
  !Array.isArray(s) && t !== s || Array.isArray(s) && !s.includes(t) || this._updateDisplayValue(s);
135
135
  }
136
136
  _updateDisplayValue(e) {
137
- Array.isArray(e) ? this._displayValue = e.map((t) => t.textContent).join(", ") || null : e ? this._displayValue = (e == null ? void 0 : e.textContent) || null : this._displayValue = null;
137
+ Array.isArray(e) ? this._displayValue = e.map((t) => t.textContent).join(", ") || null : e ? this._displayValue = (e == null ? void 0 : e.textContent) || null : this._displayValue = null, this._displayValueChanged.emit();
138
138
  }
139
139
  /**
140
140
  * The `value` property should be adapted when the `multiple` property changes:
@@ -161,7 +161,6 @@ let xe = 0, Re = (() => {
161
161
  const s = t.find((i) => (i.value ?? i.getAttribute("value")) === e) ?? null;
162
162
  s && (s.selected = !0), t.filter((i) => (i.value ?? i.getAttribute("value")) !== e).forEach((i) => i.selected = !1), this._updateDisplayValue(s);
163
163
  }
164
- this._stateChange.emit({ type: "value", value: e });
165
164
  }
166
165
  firstUpdated(e) {
167
166
  super.firstUpdated(e), this.focus = () => this._triggerElement.focus(), this.blur = () => this._triggerElement.blur(), J() || (this.startUpdate(), this._setupSelect());
@@ -380,7 +379,7 @@ let xe = 0, Re = (() => {
380
379
  t.push(s.value);
381
380
  this.value = t;
382
381
  }
383
- } else e && (this._activeItemIndex = this._filteredOptions.findIndex((t) => t === e), this.value = e.value);
382
+ } else e ? (this._activeItemIndex = this._filteredOptions.findIndex((t) => t === e), this.value = e.value) : this.value && this._onValueChanged(this.value);
384
383
  }
385
384
  _getSelected() {
386
385
  return this.multiple ? this._filteredOptions.filter((e) => e.selected) : this._filteredOptions.find((e) => e.selected) ?? null;
@@ -454,7 +453,7 @@ let xe = 0, Re = (() => {
454
453
  `;
455
454
  }
456
455
  }, p = new WeakMap(), c = new WeakMap(), u = new WeakMap(), v = new WeakMap(), _ = new WeakMap(), h = n, (() => {
457
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(V[Symbol.metadata] ?? null) : void 0;
456
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(I[Symbol.metadata] ?? null) : void 0;
458
457
  L = [E(), k()], T = [E(), S((t, s) => t._onMultipleChanged(s)), k({ reflect: !0, type: Boolean })], q = [E(), S((t, s) => t._closeOnDisabledReadonlyChanged(s)), k({ reflect: !0, type: Boolean }), be((t, s) => s || t.isDisabledExternally())], N = [E(), S((t, s) => t._closeOnDisabledReadonlyChanged(s)), k({ type: Boolean })], F = [ie()], m(n, null, L, { kind: "accessor", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, get: (t) => t.placeholder, set: (t, s) => {
459
458
  t.placeholder = s;
460
459
  } }, metadata: e }, P, $), m(n, null, T, { kind: "accessor", name: "multiple", static: !1, private: !1, access: { has: (t) => "multiple" in t, get: (t) => t.multiple, set: (t, s) => {
@@ -469,7 +468,7 @@ let xe = 0, Re = (() => {
469
468
  })(), n.styles = we, n.events = {
470
469
  change: "change",
471
470
  input: "input",
472
- stateChange: "stateChange",
471
+ displayValueChange: "displayValueChange",
473
472
  willOpen: "willOpen",
474
473
  didOpen: "didOpen",
475
474
  willClose: "willClose",
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,qDAAqD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { css as o } from "lit";
2
+ const i = o`*,:before,:after{box-sizing:border-box}:host{position:absolute;top:0;right:0;bottom:0;left:0}`, b = o`*,:before,:after{box-sizing:border-box}:host{position:relative;display:block;height:100%;overflow:auto;outline-color:var(--sbb-focus-outline-color)}`, n = o`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;--sbb-icon-sidebar-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-icon-sidebar-button-transition-easing-function: var(--sbb-animation-easing);--sbb-icon-sidebar-button-dimension: var(--sbb-size-element-m);--sbb-icon-sidebar-button-border-radius: var(--sbb-border-radius-4x);--sbb-icon-sidebar-button-color: var(--sbb-color-granite);--sbb-icon-sidebar-button-current-color: var(--sbb-color-charcoal);--sbb-icon-sidebar-button-current-border-width: var(--sbb-border-width-3x);--sbb-icon-sidebar-button-current-border-inset-block: var(--sbb-spacing-fixed-2x);--sbb-icon-sidebar-button__current-border-inset-inline-start: 0;--sbb-icon-sidebar-button__color: var(--sbb-icon-sidebar-button-color);--sbb-icon-sidebar-button__outline-width: 0}@media (forced-colors: active){:host{--sbb-icon-sidebar-button-current-color: Highlight !important}}@media (forced-colors: active){:host([data-button]){--sbb-icon-sidebar-button-color: ButtonText !important}}@media (forced-colors: active){:host([data-link]){--sbb-icon-sidebar-button-color: LinkText !important}}@media (any-hover: hover){:host(:not(:active,[data-active]):hover){--sbb-icon-sidebar-button__hover-shift: .0625rem;--sbb-icon-sidebar-button__cursor: pointer}}:host([data-focus-visible]),:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])),:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base:focus-visible{--sbb-icon-sidebar-button__outline-width: var(--sbb-focus-outline-width)}.sbb-action-base{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:var(--sbb-icon-sidebar-button-dimension);padding-block:0 calc(2 * var(--sbb-icon-sidebar-button__hover-shift, 0rem));color:var(--sbb-icon-sidebar-button__color);border-radius:var(--sbb-icon-sidebar-button-border-radius);outline:var(--sbb-focus-outline-color) solid var(--sbb-icon-sidebar-button__outline-width);outline-offset:calc(-1 * var(--sbb-icon-sidebar-button__outline-width) - .3125rem);cursor:var(--sbb-icon-sidebar-button__cursor);-webkit-user-select:none;user-select:none;transition-duration:var(--sbb-icon-sidebar-button-transition-duration);transition-timing-function:var(--sbb-icon-sidebar-button-transition-easing-function);transition-property:color,padding}:host(.sbb-active) .sbb-action-base{color:var(--sbb-icon-sidebar-button-current-color)}:host(.sbb-active) .sbb-action-base:before{content:"";display:block;position:absolute;inset-block:var(--sbb-icon-sidebar-button-current-border-inset-block);inset-inline:var(--sbb-icon-sidebar-button__current-border-inset-inline-start) 0;border-inline-start:var(--sbb-icon-sidebar-button-current-border-width) solid currentcolor}`;
3
+ export {
4
+ n as iconSidebarButtonCommonStyle,
5
+ i as sidebarContainerCommonStyle,
6
+ b as sidebarContentCommonStyle
7
+ };
@@ -0,0 +1,23 @@
1
+ import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
+ import { SbbIconSidebarContainerElement } from '../icon-sidebar-container.js';
3
+ /**
4
+ * Icon sidebar, can be placed inside a `sbb-icon-sidebar-container` element.
5
+ *
6
+ * @slot - Use the unnamed slot to slot any content into the icon-sidebar.
7
+ */
8
+ export declare class SbbIconSidebarElement extends LitElement {
9
+ static styles: CSSResultGroup;
10
+ /** Background color of the icon sidebar. Either `white` or `milk`. **/
11
+ accessor color: 'white' | 'milk';
12
+ /** Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained. */
13
+ get container(): SbbIconSidebarContainerElement | null;
14
+ constructor();
15
+ connectedCallback(): void;
16
+ protected render(): TemplateResult;
17
+ }
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'sbb-icon-sidebar': SbbIconSidebarElement;
21
+ }
22
+ }
23
+ //# sourceMappingURL=icon-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/icon-sidebar/icon-sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGjF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAInF;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,UAAU;IAC5C,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,uEAAuE;IACvE,SACgB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAW;IAElD,uFAAuF;IACvF,IAAW,SAAS,IAAI,8BAA8B,GAAG,IAAI,CAE5D;;IASe,iBAAiB,IAAI,IAAI;cAStB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
@@ -0,0 +1,19 @@
1
+ import { CSSResultGroup, TemplateResult } from 'lit';
2
+ import { SbbButtonBaseElement } from '../../core/base-elements.js';
3
+ declare const SbbIconSidebarButtonElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbButtonBaseElement;
4
+ /**
5
+ * Button to be placed inside `sbb-icon-sidebar`.
6
+ *
7
+ * @slot icon - Slot used to display the icon.
8
+ */
9
+ export declare class SbbIconSidebarButtonElement extends SbbIconSidebarButtonElement_base {
10
+ static styles: CSSResultGroup;
11
+ protected renderTemplate(): TemplateResult;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'sbb-icon-sidebar-button': SbbIconSidebarButtonElement;
16
+ }
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=icon-sidebar-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-button.d.ts","sourceRoot":"","sources":["../../../../src/elements/sidebar/icon-sidebar-button/icon-sidebar-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;GAIG;AACH,qBAEM,2BAA4B,SAAQ,gCAAsC;IAC9E,OAAuB,MAAM,EAAE,cAAc,CAAgC;cAE1D,cAAc,IAAI,cAAc;CAGpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,2BAA2B,CAAC;KACxD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './icon-sidebar-button/icon-sidebar-button.js';
2
+ //# sourceMappingURL=icon-sidebar-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sidebar-button.d.ts","sourceRoot":"","sources":["../../../src/elements/sidebar/icon-sidebar-button.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { __esDecorate as n, __runInitializers as i } from "tslib";
2
+ import { customElement as m } from "lit/decorators.js";
3
+ import { SbbButtonBaseElement as c } from "../core/base-elements.js";
4
+ import { SbbIconNameMixin as u } from "../icon.js";
5
+ import { iconSidebarButtonCommonStyle as b } from "./common.js";
6
+ let y = (() => {
7
+ var e;
8
+ let s = [m("sbb-icon-sidebar-button")], r, l = [], t, o = u(c);
9
+ return e = class extends o {
10
+ renderTemplate() {
11
+ return super.renderIconSlot();
12
+ }
13
+ }, t = e, (() => {
14
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
15
+ n(null, r = { value: t }, s, { 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 });
16
+ })(), e.styles = b, i(t, l), t;
17
+ })();
18
+ export {
19
+ y as SbbIconSidebarButtonElement
20
+ };
@@ -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,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Ac;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
+ };