@sbb-esta/lyne-elements 3.0.1 → 3.1.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 (272) hide show
  1. package/autocomplete/autocomplete.component.d.ts.map +1 -1
  2. package/autocomplete/autocomplete.component.js +1 -1
  3. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  4. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -4
  5. package/button/accent-button/accent-button.component.d.ts +2 -1
  6. package/button/accent-button/accent-button.component.d.ts.map +1 -1
  7. package/button/accent-button-link/accent-button-link.component.d.ts +2 -1
  8. package/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
  9. package/button/accent-button-static/accent-button-static.component.d.ts +2 -1
  10. package/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
  11. package/button/button/button.component.d.ts +2 -1
  12. package/button/button/button.component.d.ts.map +1 -1
  13. package/button/button-link/button-link.component.d.ts +2 -1
  14. package/button/button-link/button-link.component.d.ts.map +1 -1
  15. package/button/button-static/button-static.component.d.ts +2 -1
  16. package/button/button-static/button-static.component.d.ts.map +1 -1
  17. package/button/common/button-common.d.ts +1 -0
  18. package/button/common/button-common.d.ts.map +1 -1
  19. package/button/common/button-common.js +52 -28
  20. package/button/common.js +1 -1
  21. package/button/mini-button/mini-button.component.d.ts +1 -0
  22. package/button/mini-button/mini-button.component.d.ts.map +1 -1
  23. package/button/mini-button/mini-button.component.js +20 -14
  24. package/button/secondary-button/secondary-button.component.d.ts +2 -1
  25. package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  26. package/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
  27. package/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
  28. package/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
  29. package/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
  30. package/button/transparent-button/transparent-button.component.d.ts +2 -1
  31. package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  32. package/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
  33. package/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
  34. package/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
  35. package/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
  36. package/button.js +1 -1
  37. package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
  38. package/checkbox/checkbox-group/checkbox-group.component.js +4 -4
  39. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
  40. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  41. package/core/a11y/live-announcer.d.ts.map +1 -1
  42. package/core/a11y/live-announcer.js +10 -8
  43. package/core/base-elements/link-base-element.d.ts +1 -0
  44. package/core/base-elements/link-base-element.d.ts.map +1 -1
  45. package/core/base-elements/link-base-element.js +18 -17
  46. package/core/config/config.d.ts +5 -0
  47. package/core/config/config.d.ts.map +1 -1
  48. package/core/mixins/selection-panel-mixin.d.ts +23 -0
  49. package/core/mixins/selection-panel-mixin.d.ts.map +1 -0
  50. package/core/mixins/selection-panel-mixin.js +87 -0
  51. package/core/mixins.d.ts +1 -0
  52. package/core/mixins.d.ts.map +1 -1
  53. package/core/mixins.js +12 -10
  54. package/core/styles/core.scss +42 -7
  55. package/core.css +22 -1
  56. package/custom-elements.json +3603 -913
  57. package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
  58. package/development/autocomplete/autocomplete.component.js +2 -2
  59. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  60. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
  61. package/development/button/accent-button/accent-button.component.d.ts +2 -1
  62. package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
  63. package/development/button/accent-button/accent-button.component.js +1 -1
  64. package/development/button/accent-button-link/accent-button-link.component.d.ts +2 -1
  65. package/development/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
  66. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  67. package/development/button/accent-button-static/accent-button-static.component.d.ts +2 -1
  68. package/development/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
  69. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  70. package/development/button/button/button.component.d.ts +2 -1
  71. package/development/button/button/button.component.d.ts.map +1 -1
  72. package/development/button/button/button.component.js +1 -1
  73. package/development/button/button-link/button-link.component.d.ts +2 -1
  74. package/development/button/button-link/button-link.component.d.ts.map +1 -1
  75. package/development/button/button-link/button-link.component.js +1 -1
  76. package/development/button/button-static/button-static.component.d.ts +2 -1
  77. package/development/button/button-static/button-static.component.d.ts.map +1 -1
  78. package/development/button/button-static/button-static.component.js +1 -1
  79. package/development/button/common/button-common.d.ts +1 -0
  80. package/development/button/common/button-common.d.ts.map +1 -1
  81. package/development/button/common/button-common.js +42 -5
  82. package/development/button/common.js +1 -1
  83. package/development/button/mini-button/mini-button.component.d.ts +1 -0
  84. package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
  85. package/development/button/mini-button/mini-button.component.js +41 -2
  86. package/development/button/secondary-button/secondary-button.component.d.ts +2 -1
  87. package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  88. package/development/button/secondary-button/secondary-button.component.js +1 -1
  89. package/development/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
  90. package/development/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
  91. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  92. package/development/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
  93. package/development/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
  94. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  95. package/development/button/transparent-button/transparent-button.component.d.ts +2 -1
  96. package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  97. package/development/button/transparent-button/transparent-button.component.js +1 -1
  98. package/development/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
  99. package/development/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
  100. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  101. package/development/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
  102. package/development/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
  103. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  104. package/development/button.js +1 -1
  105. package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
  106. package/development/checkbox/checkbox-group/checkbox-group.component.js +2 -2
  107. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
  108. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  109. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +1 -1
  110. package/development/core/a11y/live-announcer.d.ts.map +1 -1
  111. package/development/core/a11y/live-announcer.js +10 -6
  112. package/development/core/base-elements/link-base-element.d.ts +1 -0
  113. package/development/core/base-elements/link-base-element.d.ts.map +1 -1
  114. package/development/core/base-elements/link-base-element.js +3 -1
  115. package/development/core/config/config.d.ts +5 -0
  116. package/development/core/config/config.d.ts.map +1 -1
  117. package/development/core/config/config.js +1 -1
  118. package/development/core/mixins/selection-panel-mixin.d.ts +23 -0
  119. package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -0
  120. package/development/core/mixins/selection-panel-mixin.js +120 -0
  121. package/development/core/mixins.d.ts +1 -0
  122. package/development/core/mixins.d.ts.map +1 -1
  123. package/development/core/mixins.js +7 -5
  124. package/development/dialog/dialog/dialog.component.d.ts +4 -2
  125. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  126. package/development/dialog/dialog/dialog.component.js +61 -11
  127. package/development/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
  128. package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  129. package/development/dialog/dialog-actions/dialog-actions.component.js +10 -1
  130. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
  131. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
  132. package/development/dialog/dialog-close-button/dialog-close-button.component.js +53 -0
  133. package/development/dialog/dialog-close-button.d.ts +5 -0
  134. package/development/dialog/dialog-close-button.d.ts.map +1 -0
  135. package/development/dialog/dialog-close-button.js +5 -0
  136. package/development/dialog/dialog-content/dialog-content.component.js +1 -1
  137. package/development/dialog/dialog-title/dialog-title.component.d.ts +1 -0
  138. package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  139. package/development/dialog/dialog-title/dialog-title.component.js +6 -2
  140. package/development/dialog.d.ts +1 -0
  141. package/development/dialog.d.ts.map +1 -1
  142. package/development/dialog.js +3 -1
  143. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -2
  144. package/development/form-field/form-field/form-field.component.d.ts +23 -1
  145. package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
  146. package/development/form-field/form-field/form-field.component.js +39 -12
  147. package/development/form-field/form-field.js +2 -1
  148. package/development/form-field.js +2 -1
  149. package/development/header/header-environment/header-environment.component.d.ts +23 -0
  150. package/development/header/header-environment/header-environment.component.d.ts.map +1 -0
  151. package/development/header/header-environment/header-environment.component.js +111 -0
  152. package/development/header/header-environment.d.ts +5 -0
  153. package/development/header/header-environment.d.ts.map +1 -0
  154. package/development/header/header-environment.js +5 -0
  155. package/development/menu/menu/menu.component.d.ts +1 -0
  156. package/development/menu/menu/menu.component.d.ts.map +1 -1
  157. package/development/menu/menu/menu.component.js +2 -2
  158. package/development/menu/menu-button/menu-button.component.d.ts +1 -0
  159. package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
  160. package/development/menu/menu-button/menu-button.component.js +2 -3
  161. package/development/menu/menu-link/menu-link.component.d.ts +1 -0
  162. package/development/menu/menu-link/menu-link.component.d.ts.map +1 -1
  163. package/development/menu/menu-link/menu-link.component.js +5 -1
  164. package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  165. package/development/option/optgroup/optgroup-base-element.js +8 -6
  166. package/development/option/option-hint/option-hint.component.d.ts +18 -0
  167. package/development/option/option-hint/option-hint.component.d.ts.map +1 -0
  168. package/development/option/option-hint/option-hint.component.js +74 -0
  169. package/development/option/option-hint.d.ts +5 -0
  170. package/development/option/option-hint.d.ts.map +1 -0
  171. package/development/option/option-hint.js +5 -0
  172. package/development/option.d.ts +1 -0
  173. package/development/option.d.ts.map +1 -1
  174. package/development/option.js +4 -2
  175. package/development/overlay/overlay-base-element.d.ts +1 -0
  176. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  177. package/development/overlay/overlay-base-element.js +3 -3
  178. package/development/popover/popover/popover.component.d.ts +18 -4
  179. package/development/popover/popover/popover.component.d.ts.map +1 -1
  180. package/development/popover/popover/popover.component.js +35 -30
  181. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
  182. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  183. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +7 -7
  184. package/development/select/select.component.d.ts.map +1 -1
  185. package/development/select/select.component.js +2 -2
  186. package/development/selection-action-panel/selection-action-panel.component.d.ts +22 -0
  187. package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
  188. package/development/selection-action-panel/selection-action-panel.component.js +105 -0
  189. package/development/selection-action-panel.d.ts +5 -0
  190. package/development/selection-action-panel.d.ts.map +1 -0
  191. package/development/selection-action-panel.js +5 -0
  192. package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
  193. package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
  194. package/development/selection-expansion-panel/selection-expansion-panel.component.js +26 -106
  195. package/development/{transparent-button-Ddb_s0a0.js → transparent-button-Dun6bh2G.js} +89 -8
  196. package/dialog/dialog/dialog.component.d.ts +4 -2
  197. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  198. package/dialog/dialog/dialog.component.js +63 -56
  199. package/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
  200. package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  201. package/dialog/dialog-actions/dialog-actions.component.js +13 -9
  202. package/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
  203. package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
  204. package/dialog/dialog-close-button/dialog-close-button.component.js +31 -0
  205. package/dialog/dialog-close-button.d.ts +5 -0
  206. package/dialog/dialog-close-button.d.ts.map +1 -0
  207. package/dialog/dialog-close-button.js +4 -0
  208. package/dialog/dialog-content/dialog-content.component.js +6 -6
  209. package/dialog/dialog-title/dialog-title.component.d.ts +1 -0
  210. package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  211. package/dialog/dialog-title/dialog-title.component.js +11 -8
  212. package/dialog.d.ts +1 -0
  213. package/dialog.d.ts.map +1 -1
  214. package/dialog.js +6 -4
  215. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +7 -7
  216. package/form-field/form-field/form-field.component.d.ts +23 -1
  217. package/form-field/form-field/form-field.component.d.ts.map +1 -1
  218. package/form-field/form-field/form-field.component.js +52 -41
  219. package/form-field/form-field.js +3 -2
  220. package/form-field.js +5 -4
  221. package/header/header-environment/header-environment.component.d.ts +23 -0
  222. package/header/header-environment/header-environment.component.d.ts.map +1 -0
  223. package/header/header-environment/header-environment.component.js +37 -0
  224. package/header/header-environment.d.ts +5 -0
  225. package/header/header-environment.d.ts.map +1 -0
  226. package/header/header-environment.js +4 -0
  227. package/index.d.ts +8 -0
  228. package/index.js +8 -0
  229. package/menu/menu/menu.component.d.ts +1 -0
  230. package/menu/menu/menu.component.d.ts.map +1 -1
  231. package/menu/menu/menu.component.js +1 -1
  232. package/menu/menu-button/menu-button.component.d.ts +1 -0
  233. package/menu/menu-button/menu-button.component.d.ts.map +1 -1
  234. package/menu/menu-button/menu-button.component.js +8 -8
  235. package/menu/menu-link/menu-link.component.d.ts +1 -0
  236. package/menu/menu-link/menu-link.component.d.ts.map +1 -1
  237. package/menu/menu-link/menu-link.component.js +9 -6
  238. package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  239. package/option/optgroup/optgroup-base-element.js +19 -17
  240. package/option/option-hint/option-hint.component.d.ts +18 -0
  241. package/option/option-hint/option-hint.component.d.ts.map +1 -0
  242. package/option/option-hint/option-hint.component.js +27 -0
  243. package/option/option-hint.d.ts +5 -0
  244. package/option/option-hint.d.ts.map +1 -0
  245. package/option/option-hint.js +4 -0
  246. package/option.d.ts +1 -0
  247. package/option.d.ts.map +1 -1
  248. package/option.js +5 -3
  249. package/overlay/overlay-base-element.d.ts +1 -0
  250. package/overlay/overlay-base-element.d.ts.map +1 -1
  251. package/overlay/overlay-base-element.js +21 -21
  252. package/package.json +23 -3
  253. package/popover/popover/popover.component.d.ts +18 -4
  254. package/popover/popover/popover.component.d.ts.map +1 -1
  255. package/popover/popover/popover.component.js +104 -95
  256. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
  257. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  258. package/radio-button/radio-button-panel/radio-button-panel.component.js +9 -9
  259. package/select/select.component.d.ts.map +1 -1
  260. package/select/select.component.js +1 -1
  261. package/selection-action-panel/selection-action-panel.component.d.ts +22 -0
  262. package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
  263. package/selection-action-panel/selection-action-panel.component.js +34 -0
  264. package/selection-action-panel.d.ts +5 -0
  265. package/selection-action-panel.d.ts.map +1 -0
  266. package/selection-action-panel.js +4 -0
  267. package/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
  268. package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
  269. package/selection-expansion-panel/selection-expansion-panel.component.js +45 -102
  270. package/standard-theme.css +22 -1
  271. package/transparent-button-rf30m88X.js +9 -0
  272. package/transparent-button-BlbvexCb.js +0 -9
@@ -4,24 +4,24 @@ var G = (i) => {
4
4
  var k = (i, a, s) => a.has(i) || G("Cannot " + s);
5
5
  var c = (i, a, s) => (k(i, a, "read from private field"), s ? s.call(i) : a.get(i)), h = (i, a, s) => a.has(i) ? G("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, s), g = (i, a, s, n) => (k(i, a, "write to private field"), n ? n.call(i, s) : a.set(i, s), s);
6
6
  import { __esDecorate as v, __runInitializers as l } from "tslib";
7
- import { MutationController as T } from "@lit-labs/observers/mutation-controller.js";
8
- import { css as w, LitElement as C, html as L } from "lit";
9
- import { property as O, state as z } from "lit/decorators.js";
10
- import { forceType as S } from "../../core/decorators.js";
11
- import { isSafari as D } from "../../core/dom.js";
12
- import { SbbDisabledMixin as I, SbbElementInternalsMixin as M, SbbHydrationMixin as U } from "../../core/mixins.js";
7
+ import { MutationController as w } from "@lit-labs/observers/mutation-controller.js";
8
+ import { css as C, LitElement as L, nothing as O, html as z } from "lit";
9
+ import { property as S, state as T } from "lit/decorators.js";
10
+ import { forceType as D } from "../../core/decorators.js";
11
+ import { isSafari as I } from "../../core/dom.js";
12
+ import { SbbDisabledMixin as M, SbbElementInternalsMixin as U, SbbHydrationMixin as $ } from "../../core/mixins.js";
13
13
  import "../../divider.js";
14
- const q = w`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-label-padding-end: var(--sbb-spacing-fixed-2x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none}:host([data-variant=select]){--sbb-optgroup-label-font-size: inherit}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block-end:var(--sbb-optgroup-label-padding-end)}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-options-panel-divider-margin-block)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}`, u = D;
15
- let Q = (() => {
14
+ const q = C`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-label-padding-end: var(--sbb-spacing-fixed-2x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none}:host([data-variant=select]){--sbb-optgroup-label-font-size: inherit}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block-end:var(--sbb-optgroup-label-padding-end)}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-options-panel-divider-margin-block)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}`, u = I;
15
+ let V = (() => {
16
16
  var b, p, d, r;
17
- let i = I(M(U(C))), a, s = [], n = [], _, f = [], m = [], x, y = [], A = [];
17
+ let i = M(U($(L))), a, s = [], n = [], _, f = [], m = [], x, y = [], A = [];
18
18
  return r = class extends i {
19
19
  constructor() {
20
20
  super();
21
21
  h(this, b, l(this, s, ""));
22
22
  h(this, p, (l(this, n), l(this, f, !1)));
23
23
  h(this, d, (l(this, m), l(this, y, !1)));
24
- l(this, A), this.addController(new T(this, {
24
+ l(this, A), this.addController(new w(this, {
25
25
  config: {
26
26
  attributes: !0,
27
27
  attributeFilter: ["data-negative"]
@@ -86,20 +86,22 @@ let Q = (() => {
86
86
  this.negative = this.hasAttribute("data-negative");
87
87
  }
88
88
  render() {
89
- return L`
89
+ return z`
90
90
  <div class="sbb-optgroup__divider">
91
91
  <sbb-divider ?negative=${this.negative}></sbb-divider>
92
92
  </div>
93
- <div class="sbb-optgroup__label" aria-hidden="true">
94
- <div class="sbb-optgroup__icon-space"></div>
95
- <span>${this.label}</span>
96
- </div>
93
+ ${this.label ? z`
94
+ <div class="sbb-optgroup__label" aria-hidden="true">
95
+ <div class="sbb-optgroup__icon-space"></div>
96
+ <span>${this.label}</span>
97
+ </div>
98
+ ` : O}
97
99
  <slot @slotchange=${this._handleSlotchange}></slot>
98
100
  `;
99
101
  }
100
102
  }, b = new WeakMap(), p = new WeakMap(), d = new WeakMap(), (() => {
101
103
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
102
- a = [S(), O()], _ = [z()], x = [z()], v(r, null, a, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, o) => {
104
+ a = [D(), S()], _ = [T()], x = [T()], v(r, null, a, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, o) => {
103
105
  e.label = o;
104
106
  } }, metadata: t }, s, n), v(r, null, _, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, o) => {
105
107
  e.negative = o;
@@ -109,5 +111,5 @@ let Q = (() => {
109
111
  })(), r.role = u ? null : "group", r.styles = q, r;
110
112
  })();
111
113
  export {
112
- Q as SbbOptgroupBaseElement
114
+ V as SbbOptgroupBaseElement
113
115
  };
@@ -0,0 +1,18 @@
1
+ import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
2
+ declare const SbbOptionHintElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNegativeMixinType> & typeof LitElement;
3
+ /**
4
+ * Display a textual hint inside a `sbb-autocomplete` or a `sbb-select`.
5
+ *
6
+ * @slot - Use the unnamed slot to display the hint message.
7
+ */
8
+ export declare class SbbOptionHintElement extends SbbOptionHintElement_base {
9
+ static styles: CSSResultGroup;
10
+ protected render(): TemplateResult;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'sbb-option-hint': SbbOptionHintElement;
15
+ }
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=option-hint.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-hint.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option-hint/option-hint.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAOvC;;;;GAIG;AACH,qBAEM,oBAAqB,SAAQ,yBAA4B;IAC7D,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
@@ -0,0 +1,27 @@
1
+ import { __esDecorate as b, __runInitializers as l } from "tslib";
2
+ import { css as r, LitElement as p, html as c } from "lit";
3
+ import { customElement as d } from "lit/decorators.js";
4
+ import { SbbNegativeMixin as m } from "../../core/mixins.js";
5
+ const v = r`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-option-hint-color: var(--sbb-color-metal);--sbb-option-hint-column-gap: var(--sbb-spacing-responsive-xxxs);--sbb-option-hint-padding-block-end: var(--sbb-spacing-fixed-2x);--sbb-option-hint-padding-inline: var(--sbb-spacing-responsive-xxxs)}:host([negative]){--sbb-option-hint-color: var(--sbb-color-smoke)}.sbb-option-hint__wrapper{display:flex;column-gap:var(--sbb-option-hint-column-gap);padding-inline:var(--sbb-option-hint-padding-inline);padding-block-end:var(--sbb-option-hint-padding-block-end)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}.sbb-option-hint{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);color:var(--sbb-option-hint-color);-webkit-text-fill-color:var(--sbb-option-hint-color)}`;
6
+ let x = (() => {
7
+ var i;
8
+ let a = [d("sbb-option-hint")], e, n = [], t, s = m(p);
9
+ return i = class extends s {
10
+ render() {
11
+ return c`
12
+ <div class="sbb-option-hint__wrapper">
13
+ <div class="sbb-optgroup__icon-space"></div>
14
+ <span class="sbb-option-hint">
15
+ <slot></slot>
16
+ </span>
17
+ </div>
18
+ `;
19
+ }
20
+ }, t = i, (() => {
21
+ const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
22
+ b(null, e = { value: t }, a, { kind: "class", name: t.name, metadata: o }, null, n), t = e.value, o && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
23
+ })(), i.styles = v, l(t, n), t;
24
+ })();
25
+ export {
26
+ x as SbbOptionHintElement
27
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './option-hint/option-hint.component.js';
5
+ //# sourceMappingURL=option-hint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-hint.d.ts","sourceRoot":"","sources":["../../../src/elements/option/option-hint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SbbOptionHintElement as n } from "./option-hint/option-hint.component.js";
2
+ export {
3
+ n as SbbOptionHintElement
4
+ };
package/option.d.ts CHANGED
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export * from './option/optgroup.js';
5
5
  export * from './option/option.js';
6
+ export * from './option/option-hint.js';
6
7
  //# sourceMappingURL=option.d.ts.map
package/option.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../src/elements/option.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../src/elements/option.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
package/option.js CHANGED
@@ -1,10 +1,12 @@
1
- import { SbbOptGroupElement as t } from "./option/optgroup/optgroup.component.js";
1
+ import { SbbOptGroupElement as o } from "./option/optgroup/optgroup.component.js";
2
2
  import { SbbOptgroupBaseElement as r } from "./option/optgroup/optgroup-base-element.js";
3
3
  import { SbbOptionElement as m } from "./option/option/option.component.js";
4
4
  import { SbbOptionBaseElement as f } from "./option/option/option-base-element.js";
5
+ import { SbbOptionHintElement as x } from "./option/option-hint/option-hint.component.js";
5
6
  export {
6
- t as SbbOptGroupElement,
7
+ o as SbbOptGroupElement,
7
8
  r as SbbOptgroupBaseElement,
8
9
  f as SbbOptionBaseElement,
9
- m as SbbOptionElement
10
+ m as SbbOptionElement,
11
+ x as SbbOptionHintElement
10
12
  };
@@ -35,6 +35,7 @@ export declare abstract class SbbOverlayBaseElement extends SbbOverlayBaseElemen
35
35
  private _triggerElement;
36
36
  private _triggerAbortController;
37
37
  protected abstract closeAttribute: string;
38
+ protected closeTag?: string;
38
39
  protected abstract handleOpening(): void;
39
40
  protected abstract handleClosing(): void;
40
41
  protected abstract isZeroAnimationDuration(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/overlay/overlay-base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA6B,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AASzE,eAAO,MAAM,WAAW,EAAE,qBAAqB,EAAO,CAAC;;AAEvD,8BAAsB,qBAAsB,SAAQ,0BAAyC;IAC3F;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,kHAAkH;IAClH,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD;;;;OAIG;IACH,SAEgB,oBAAoB,EAAE,OAAO,CAAS;IAGtD,SAAS,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IAC3C,SAAS,CAAC,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAC5C,SAAS,CAAC,qBAAqB,EAAG,eAAe,CAAC;IAClD,SAAS,CAAC,m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CAAC,EAAE,2BAA2B,GAAG,OAAO;CAIrF"}
@@ -1,8 +1,8 @@
1
1
  var A = (i) => {
2
2
  throw TypeError(i);
3
3
  };
4
- var k = (i, r, s) => r.has(i) || A("Cannot " + s);
5
- var b = (i, r, s) => (k(i, r, "read from private field"), s ? s.call(i) : r.get(i)), m = (i, r, s) => r.has(i) ? A("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, s), l = (i, r, s, u) => (k(i, r, "write to private field"), u ? u.call(i, s) : r.set(i, s), s);
4
+ var k = (i, s, r) => s.has(i) || A("Cannot " + r);
5
+ var p = (i, s, r) => (k(i, s, "read from private field"), r ? r.call(i) : s.get(i)), b = (i, s, r) => s.has(i) ? A("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), l = (i, s, r, u) => (k(i, s, "write to private field"), u ? u.call(i, r) : s.set(i, r), r);
6
6
  import { __runInitializers as g, __esDecorate as f } from "tslib";
7
7
  import { isServer as O } from "lit";
8
8
  import { property as v } from "lit/decorators.js";
@@ -13,18 +13,18 @@ import { idReference as I, forceType as w } from "../core/decorators.js";
13
13
  import { SbbScrollHandler as U } from "../core/dom.js";
14
14
  import { i18nDialog as D } from "../core/i18n.js";
15
15
  import { SbbNegativeMixin as H } from "../core/mixins.js";
16
- import { removeAriaOverlayTriggerAttributes as $, setAriaOverlayTriggerAttributes as q } from "../core/overlay.js";
17
- const d = [];
16
+ import { removeAriaOverlayTriggerAttributes as N, setAriaOverlayTriggerAttributes as $ } from "../core/overlay.js";
17
+ const m = [];
18
18
  let Y = (() => {
19
19
  var n, c, h, a;
20
- let i = H(S), r, s = [], u = [], _, C = [], y = [], E, L = [], R = [];
20
+ let i = H(S), s, r = [], u = [], _, C = [], y = [], E, L = [], R = [];
21
21
  return a = class extends i {
22
22
  constructor() {
23
23
  super(...arguments);
24
- m(this, n);
25
- m(this, c);
26
- m(this, h);
27
- l(this, n, g(this, s, null)), l(this, c, (g(this, u), g(this, C, ""))), l(this, h, (g(this, y), g(this, L, !1))), this.lastFocusedElement = g(this, R), this.focusTrapController = new F(this), this.scrollHandler = new U(), this.language = new T(this), this.inertController = new x(this), this.escapableOverlayController = new z(this), this._ariaLiveRefToggle = !1, this._triggerElement = null;
24
+ b(this, n);
25
+ b(this, c);
26
+ b(this, h);
27
+ l(this, n, g(this, r, null)), l(this, c, (g(this, u), g(this, C, ""))), l(this, h, (g(this, y), g(this, L, !1))), this.lastFocusedElement = g(this, R), this.focusTrapController = new F(this), this.scrollHandler = new U(), this.language = new T(this), this.inertController = new x(this), this.escapableOverlayController = new z(this), this._ariaLiveRefToggle = !1, this._triggerElement = null;
28
28
  }
29
29
  /**
30
30
  * The element that will trigger the menu overlay.
@@ -32,14 +32,14 @@ let Y = (() => {
32
32
  * For attribute usage, provide an id reference.
33
33
  */
34
34
  get trigger() {
35
- return b(this, n);
35
+ return p(this, n);
36
36
  }
37
37
  set trigger(e) {
38
38
  l(this, n, e);
39
39
  }
40
40
  /** This will be forwarded as aria-label to the relevant nested element to describe the purpose of the overlay. */
41
41
  get accessibilityLabel() {
42
- return b(this, c);
42
+ return p(this, c);
43
43
  }
44
44
  set accessibilityLabel(e) {
45
45
  l(this, c, e);
@@ -50,14 +50,14 @@ let Y = (() => {
50
50
  * you provide your own equivalent, if you decide to turn it off.
51
51
  */
52
52
  get skipFocusRestoration() {
53
- return b(this, h);
53
+ return p(this, h);
54
54
  }
55
55
  set skipFocusRestoration(e) {
56
56
  l(this, h, e);
57
57
  }
58
58
  /** Opens the component. */
59
59
  open() {
60
- this.state === "closed" && (this.lastFocusedElement = document.activeElement, this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._triggerElement?.setAttribute("aria-expanded", "true"), d.push(this), this.scrollHandler.disableScroll(), this.isZeroAnimationDuration() && this.handleOpening()));
60
+ this.state === "closed" && (this.lastFocusedElement = document.activeElement, this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._triggerElement?.setAttribute("aria-expanded", "true"), m.push(this), this.scrollHandler.disableScroll(), this.isZeroAnimationDuration() && this.handleOpening()));
61
61
  }
62
62
  /** Closes the component. */
63
63
  close(e, t) {
@@ -75,7 +75,7 @@ let Y = (() => {
75
75
  }
76
76
  // Check if the trigger is valid and attach click event listeners.
77
77
  _configureTrigger() {
78
- this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), $(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && (q(this._triggerElement, "dialog", this.id, this.state), this._triggerAbortController = new AbortController(), this._triggerElement.addEventListener("click", () => this.open(), {
78
+ this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), N(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && ($(this._triggerElement, "dialog", this.id, this.state), this._triggerAbortController = new AbortController(), this._triggerElement.addEventListener("click", () => this.open(), {
79
79
  signal: this._triggerAbortController.signal
80
80
  })));
81
81
  }
@@ -98,15 +98,15 @@ let Y = (() => {
98
98
  });
99
99
  }
100
100
  removeInstanceFromGlobalCollection() {
101
- d.splice(d.indexOf(this), 1);
101
+ m.splice(m.indexOf(this), 1);
102
102
  }
103
103
  // Close the component on click of any element that has the `closeAttribute` attribute.
104
104
  closeOnSbbOverlayCloseClick(e) {
105
- const t = e.composedPath().filter((p) => p instanceof window.HTMLElement).find((p) => p.hasAttribute(this.closeAttribute) && !p.hasAttribute("disabled"));
106
- if (!t)
105
+ const t = e.composedPath().filter((d) => d instanceof window.HTMLElement).find((d) => (d.hasAttribute(this.closeAttribute) || d.localName === this.closeTag) && !d.hasAttribute("disabled"));
106
+ if (!t || t.closest(this.localName) !== this && !this.shadowRoot?.contains(t))
107
107
  return;
108
108
  const o = t.getAttribute("type") === "submit" ? t.form ?? null : null;
109
- d[d.length - 1].close(o, t);
109
+ m[m.length - 1].close(o, t);
110
110
  }
111
111
  removeAriaLiveRefContent() {
112
112
  this._ariaLiveRef.textContent = "";
@@ -128,9 +128,9 @@ let Y = (() => {
128
128
  }
129
129
  }, n = new WeakMap(), c = new WeakMap(), h = new WeakMap(), (() => {
130
130
  const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
131
- r = [I(), v()], _ = [w(), v({ attribute: "accessibility-label" })], E = [w(), v({ type: Boolean })], f(a, null, r, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (t) => "trigger" in t, get: (t) => t.trigger, set: (t, o) => {
131
+ s = [I(), v()], _ = [w(), v({ attribute: "accessibility-label" })], E = [w(), v({ type: Boolean })], f(a, null, s, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (t) => "trigger" in t, get: (t) => t.trigger, set: (t, o) => {
132
132
  t.trigger = o;
133
- } }, metadata: e }, s, u), f(a, null, _, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, o) => {
133
+ } }, metadata: e }, r, u), f(a, null, _, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, o) => {
134
134
  t.accessibilityLabel = o;
135
135
  } }, metadata: e }, C, y), f(a, null, E, { kind: "accessor", name: "skipFocusRestoration", static: !1, private: !1, access: { has: (t) => "skipFocusRestoration" in t, get: (t) => t.skipFocusRestoration, set: (t, o) => {
136
136
  t.skipFocusRestoration = o;
@@ -139,5 +139,5 @@ let Y = (() => {
139
139
  })();
140
140
  export {
141
141
  Y as SbbOverlayBaseElement,
142
- d as overlayRefs
142
+ m as overlayRefs
143
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
@@ -11,8 +11,8 @@
11
11
  "type": "module",
12
12
  "customElements": "custom-elements.json",
13
13
  "dependencies": {
14
- "@lit-labs/observers": "^2.0.5",
15
- "lit": "^3.3.0",
14
+ "@lit-labs/observers": "^2.0.6",
15
+ "lit": "^3.3.1",
16
16
  "tslib": "^2.8.1"
17
17
  },
18
18
  "publishConfig": {
@@ -467,6 +467,11 @@
467
467
  "development": "./development/dialog/dialog-actions.js",
468
468
  "default": "./dialog/dialog-actions.js"
469
469
  },
470
+ "./dialog/dialog-close-button.js": {
471
+ "types": "./development/dialog/dialog-close-button.d.ts",
472
+ "development": "./development/dialog/dialog-close-button.js",
473
+ "default": "./dialog/dialog-close-button.js"
474
+ },
470
475
  "./dialog/dialog-content.js": {
471
476
  "types": "./development/dialog/dialog-content.d.ts",
472
477
  "development": "./development/dialog/dialog-content.js",
@@ -587,6 +592,11 @@
587
592
  "development": "./development/header/header-button.js",
588
593
  "default": "./header/header-button.js"
589
594
  },
595
+ "./header/header-environment.js": {
596
+ "types": "./development/header/header-environment.d.ts",
597
+ "development": "./development/header/header-environment.js",
598
+ "default": "./header/header-environment.js"
599
+ },
590
600
  "./header/header-link.js": {
591
601
  "types": "./development/header/header-link.d.ts",
592
602
  "development": "./development/header/header-link.js",
@@ -782,6 +792,11 @@
782
792
  "development": "./development/option/option.js",
783
793
  "default": "./option/option.js"
784
794
  },
795
+ "./option/option-hint.js": {
796
+ "types": "./development/option/option-hint.d.ts",
797
+ "development": "./development/option/option-hint.js",
798
+ "default": "./option/option-hint.js"
799
+ },
785
800
  "./overlay.js": {
786
801
  "types": "./development/overlay.d.ts",
787
802
  "development": "./development/overlay.js",
@@ -857,6 +872,11 @@
857
872
  "development": "./development/select.js",
858
873
  "default": "./select.js"
859
874
  },
875
+ "./selection-action-panel.js": {
876
+ "types": "./development/selection-action-panel.d.ts",
877
+ "development": "./development/selection-action-panel.js",
878
+ "default": "./selection-action-panel.js"
879
+ },
860
880
  "./selection-expansion-panel.js": {
861
881
  "types": "./development/selection-expansion-panel.d.ts",
862
882
  "development": "./development/selection-expansion-panel.js",
@@ -64,10 +64,24 @@ export declare class SbbPopoverElement extends SbbPopoverBaseElement {
64
64
  accessor hideCloseButton: boolean;
65
65
  /** Whether the popover should be triggered on hover. */
66
66
  accessor hoverTrigger: boolean;
67
- /** Open the popover after a certain delay. */
68
- accessor openDelay: number;
69
- /** Close the popover after a certain delay. */
70
- accessor closeDelay: number;
67
+ /**
68
+ * Open the popover after a given delay in milliseconds.
69
+ * Global configuration is used as default, if not set.
70
+ *
71
+ * @default 0
72
+ */
73
+ set openDelay(value: number);
74
+ get openDelay(): number;
75
+ private _openDelay?;
76
+ /**
77
+ * Close the popover after a given delay in milliseconds.
78
+ * Global configuration is used as default, if not set.
79
+ *
80
+ * @default 0
81
+ */
82
+ set closeDelay(value: number);
83
+ get closeDelay(): number;
84
+ private _closeDelay?;
71
85
  /** This will be forwarded as aria-label to the close button element. */
72
86
  accessor accessibilityCloseLabel: string;
73
87
  private _hoverTrigger;
@@ -1 +1 @@
1
- {"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/popover/popover/popover.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAW/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAqBtE,OAAO,kCAAkC,CAAC;;AAU1C,8BAAsB,qBAAsB,SAAQ,0BAA0C;IAC5F,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAGnD,OAAO,CAAC,mBAAmB,CAAC,CAAc;IAC1C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,oBAAoB,CAAC,CAAc;IAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAU;IAC/C,OAAO,CAAC,eAAe,CAAC,CAAqB;IAC7C,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,oBAAoB,CAAmB;IAC/C,OAAO,CAAC,2BAA2B,CAA2C;IA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,GAAG,OAAO;cAUzE,MAAM,IAAI,cAAc;CAmB5C;AAED;;;;;;;GAOG;AACH,qBAEM,iBAAkB,SAAQ,qBAAqB;IACnD,iDAAiD;IACjD,SAEgB,eAAe,EAAE,OAAO,CAAS;IAEjD,wDAAwD;IACxD,SAEgB,YAAY,EAAE,OAAO,CAAS;IAE9C,8CAA8C;IAC9C,SAEgB,SAAS,EAAE,MAAM,CAAK;IAEtC,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,MAAM,CAAK;IAEvC,wEAAwE;IACxE,SAEgB,uBAAuB,EAAE,MAAM,CAAM;IAErD,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAC,CAAgC;IACrD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,uBAAuB,CAAgC;cAE5C,gBAAgB,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI;IAkBzE,OAAO,CAAC,yBAAyB;cAcd,wBAAwB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;cA4BnD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAM9E,OAAO,CAAC,oBAAoB,CAW1B;IAEF,OAAO,CAAC,oBAAoB,CAM1B;IAEF,OAAO,CAAC,oBAAoB,CAI1B;IAEF,OAAO,CAAC,oBAAoB,CAI1B;cAEiB,aAAa,IAAI,cAAc;CAoBnD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
1
+ {"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/popover/popover/popover.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAW/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAsBtE,OAAO,kC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