@swisspost/design-system-components 10.8.0 → 10.9.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 (233) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{package-DAEQGHsE.js → package-kgRYEtTJ.js} +1 -1
  4. package/dist/cjs/post-accordion_2.cjs.entry.js +1 -1
  5. package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
  6. package/dist/cjs/post-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/post-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +1 -1
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/post-closebutton_14.cjs.entry.js +83 -23
  12. package/dist/cjs/post-collapsible_2.cjs.entry.js +1 -1
  13. package/dist/cjs/post-components.cjs.js +1 -1
  14. package/dist/cjs/post-date-picker.cjs.entry.js +6 -5
  15. package/dist/cjs/post-footer.cjs.entry.js +2 -2
  16. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  17. package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
  18. package/dist/cjs/post-listbox.cjs.entry.js +3 -3
  19. package/dist/cjs/post-number-input.cjs.entry.js +3 -3
  20. package/dist/cjs/post-pagination.cjs.entry.js +1 -1
  21. package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
  22. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  23. package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
  24. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  25. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
  26. package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
  27. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  28. package/dist/cjs/post-stepper.cjs.entry.js +2 -2
  29. package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
  30. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  31. package/dist/cjs/post-tabs.cjs.entry.js +32 -4
  32. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
  33. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  34. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  35. package/dist/collection/components/post-date-picker/post-date-picker.js +4 -3
  36. package/dist/collection/components/post-footer/post-footer.css +1 -1
  37. package/dist/collection/components/post-header/post-header.css +1 -1
  38. package/dist/collection/components/post-header/post-header.js +71 -8
  39. package/dist/collection/components/post-icon/post-icon.css +1 -1
  40. package/dist/collection/components/post-icon/post-icon.js +1 -2
  41. package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
  42. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  43. package/dist/collection/components/post-listbox/post-listbox.css +1 -1
  44. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  45. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  46. package/dist/collection/components/post-logo/post-logo.js +1 -1
  47. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  48. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  49. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  50. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  51. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  52. package/dist/collection/components/post-menu/post-menu.js +2 -2
  53. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  54. package/dist/collection/components/post-number-input/post-number-input.js +2 -2
  55. package/dist/collection/components/post-popover/post-popover.js +2 -2
  56. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  57. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
  58. package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
  59. package/dist/collection/components/post-rating/post-rating.js +1 -1
  60. package/dist/collection/components/post-side-navigation/post-side-navigation.js +1 -1
  61. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
  62. package/dist/collection/components/post-stepper/post-stepper.js +1 -1
  63. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  64. package/dist/collection/components/post-tab-item/post-tab-item.js +2 -2
  65. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  66. package/dist/collection/components/post-tabs/post-tabs.js +31 -3
  67. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  68. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  69. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  70. package/dist/collection/test-setup.js +28 -0
  71. package/dist/components/package.js +1 -1
  72. package/dist/components/post-date-picker.js +1 -1
  73. package/dist/components/post-footer.js +1 -1
  74. package/dist/components/post-header.js +1 -1
  75. package/dist/components/post-icon2.js +1 -1
  76. package/dist/components/post-linkarea.js +1 -1
  77. package/dist/components/post-listbox-option.js +1 -1
  78. package/dist/components/post-listbox.js +1 -1
  79. package/dist/components/post-logo.js +1 -1
  80. package/dist/components/post-mainnavigation.js +1 -1
  81. package/dist/components/post-megadropdown-trigger.js +1 -1
  82. package/dist/components/post-megadropdown.js +1 -1
  83. package/dist/components/post-menu-trigger2.js +1 -1
  84. package/dist/components/post-menu2.js +1 -1
  85. package/dist/components/post-number-input.js +1 -1
  86. package/dist/components/post-popover-trigger.js +1 -1
  87. package/dist/components/post-popover.js +1 -1
  88. package/dist/components/post-popovercontainer2.js +1 -1
  89. package/dist/components/post-progressbar.js +1 -1
  90. package/dist/components/post-rating.js +1 -1
  91. package/dist/components/post-side-navigation-trigger.js +1 -1
  92. package/dist/components/post-side-navigation.js +1 -1
  93. package/dist/components/post-stepper-item.js +1 -1
  94. package/dist/components/post-stepper.js +1 -1
  95. package/dist/components/post-tab-item.js +1 -1
  96. package/dist/components/post-tab-panel.js +1 -1
  97. package/dist/components/post-tabs.js +1 -1
  98. package/dist/components/post-togglebutton2.js +1 -1
  99. package/dist/components/post-tooltip-trigger.js +1 -1
  100. package/dist/components/post-tooltip.js +1 -1
  101. package/dist/components/react/p-CAL337jJ.js +1 -0
  102. package/dist/components/react/{p-Q5LQWL2X.js → p-CBVthgj-.js} +1 -1
  103. package/dist/components/react/{p-C8i672qm.js → p-CLkb55ud.js} +1 -1
  104. package/dist/components/react/{p-UXyZDQt4.js → p-CYBXVnUJ.js} +1 -1
  105. package/dist/components/react/{p-DRJ9K8sv.js → p-Ci-TsJYj.js} +1 -1
  106. package/dist/components/react/{p-DzYMQFK2.js → p-CtgMQs_Q.js} +1 -1
  107. package/dist/components/react/{p-BMCit4BU.js → p-D4LBzsbB.js} +1 -1
  108. package/dist/components/react/{p-5kW0ZF_f.js → p-D5lqOfVk.js} +1 -1
  109. package/dist/components/react/p-DGpWjdFJ.js +1 -0
  110. package/dist/components/react/{p-C_JY6ipN.js → p-DSk0Nq8U.js} +1 -1
  111. package/dist/components/react/{p-DygUkCKz.js → p-Db3d6dKF.js} +1 -1
  112. package/dist/components/react/{p-BeRGbt65.js → p-DkDIUTRi.js} +1 -1
  113. package/dist/components/react/post-accordion-item.js +1 -1
  114. package/dist/components/react/post-accordion.js +1 -1
  115. package/dist/components/react/post-autocomplete.js +1 -1
  116. package/dist/components/react/post-avatar.js +1 -1
  117. package/dist/components/react/post-back-to-top.js +1 -1
  118. package/dist/components/react/post-banner.js +1 -1
  119. package/dist/components/react/post-breadcrumb-item.js +1 -1
  120. package/dist/components/react/post-breadcrumbs.js +1 -1
  121. package/dist/components/react/post-closebutton.js +1 -1
  122. package/dist/components/react/post-collapsible-trigger.js +1 -1
  123. package/dist/components/react/post-collapsible.js +1 -1
  124. package/dist/components/react/post-date-picker.js +1 -1
  125. package/dist/components/react/post-footer.js +1 -1
  126. package/dist/components/react/post-header.js +1 -1
  127. package/dist/components/react/post-icon.js +1 -1
  128. package/dist/components/react/post-language-menu-item.js +1 -1
  129. package/dist/components/react/post-language-menu.js +1 -1
  130. package/dist/components/react/post-linkarea.js +1 -1
  131. package/dist/components/react/post-listbox-option.js +1 -1
  132. package/dist/components/react/post-listbox.js +1 -1
  133. package/dist/components/react/post-logo.js +1 -1
  134. package/dist/components/react/post-mainnavigation.js +1 -1
  135. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  136. package/dist/components/react/post-megadropdown.js +1 -1
  137. package/dist/components/react/post-menu-item.js +1 -1
  138. package/dist/components/react/post-menu-trigger.js +1 -1
  139. package/dist/components/react/post-menu.js +1 -1
  140. package/dist/components/react/post-number-input.js +1 -1
  141. package/dist/components/react/post-pagination.js +1 -1
  142. package/dist/components/react/post-popover-trigger.js +1 -1
  143. package/dist/components/react/post-popover.js +1 -1
  144. package/dist/components/react/post-popovercontainer.js +1 -1
  145. package/dist/components/react/post-progressbar.js +1 -1
  146. package/dist/components/react/post-rating.js +1 -1
  147. package/dist/components/react/post-side-navigation-trigger.js +1 -1
  148. package/dist/components/react/post-side-navigation.js +1 -1
  149. package/dist/components/react/post-stepper-item.js +1 -1
  150. package/dist/components/react/post-stepper.js +1 -1
  151. package/dist/components/react/post-tab-item.js +1 -1
  152. package/dist/components/react/post-tab-panel.js +1 -1
  153. package/dist/components/react/post-tabs.js +1 -1
  154. package/dist/components/react/post-togglebutton.js +1 -1
  155. package/dist/components/react/post-tooltip-trigger.js +1 -1
  156. package/dist/components/react/post-tooltip.js +1 -1
  157. package/dist/docs.json +1 -1
  158. package/dist/esm/loader.js +1 -1
  159. package/dist/esm/{package-BdiQsTQm.js → package-CAL337jJ.js} +1 -1
  160. package/dist/esm/post-accordion_2.entry.js +1 -1
  161. package/dist/esm/post-autocomplete.entry.js +1 -1
  162. package/dist/esm/post-avatar.entry.js +1 -1
  163. package/dist/esm/post-back-to-top.entry.js +1 -1
  164. package/dist/esm/post-banner.entry.js +1 -1
  165. package/dist/esm/post-breadcrumb-item.entry.js +1 -1
  166. package/dist/esm/post-breadcrumbs.entry.js +1 -1
  167. package/dist/esm/post-closebutton_14.entry.js +83 -23
  168. package/dist/esm/post-collapsible_2.entry.js +1 -1
  169. package/dist/esm/post-components.js +1 -1
  170. package/dist/esm/post-date-picker.entry.js +6 -5
  171. package/dist/esm/post-footer.entry.js +2 -2
  172. package/dist/esm/post-linkarea.entry.js +2 -2
  173. package/dist/esm/post-listbox-option.entry.js +3 -3
  174. package/dist/esm/post-listbox.entry.js +3 -3
  175. package/dist/esm/post-number-input.entry.js +3 -3
  176. package/dist/esm/post-pagination.entry.js +1 -1
  177. package/dist/esm/post-popover-trigger.entry.js +2 -2
  178. package/dist/esm/post-popover.entry.js +3 -3
  179. package/dist/esm/post-progressbar.entry.js +1 -1
  180. package/dist/esm/post-rating.entry.js +2 -2
  181. package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
  182. package/dist/esm/post-side-navigation.entry.js +2 -2
  183. package/dist/esm/post-stepper-item.entry.js +2 -2
  184. package/dist/esm/post-stepper.entry.js +2 -2
  185. package/dist/esm/post-tab-item.entry.js +2 -2
  186. package/dist/esm/post-tab-panel.entry.js +2 -2
  187. package/dist/esm/post-tabs.entry.js +32 -4
  188. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  189. package/dist/esm/post-tooltip.entry.js +2 -2
  190. package/dist/post-components/{p-ab0500b7.entry.js → p-077be898.entry.js} +1 -1
  191. package/dist/post-components/{p-3712133b.entry.js → p-184bd61c.entry.js} +1 -1
  192. package/dist/post-components/p-1933e4fa.entry.js +1 -0
  193. package/dist/post-components/{p-c123ecde.entry.js → p-21e6f82a.entry.js} +1 -1
  194. package/dist/post-components/{p-534ca27e.entry.js → p-2220db4c.entry.js} +1 -1
  195. package/dist/post-components/{p-dffeb751.entry.js → p-2aff3873.entry.js} +1 -1
  196. package/dist/post-components/{p-6ad44691.entry.js → p-2b475cd7.entry.js} +1 -1
  197. package/dist/post-components/p-33a898ec.entry.js +1 -0
  198. package/dist/post-components/{p-0688d296.entry.js → p-405c1fff.entry.js} +1 -1
  199. package/dist/post-components/{p-379780a3.entry.js → p-5efaca25.entry.js} +1 -1
  200. package/dist/post-components/{p-6833be12.entry.js → p-6a9661d9.entry.js} +1 -1
  201. package/dist/post-components/{p-2a5312a7.entry.js → p-7dd192b3.entry.js} +1 -1
  202. package/dist/post-components/{p-0b0b2f02.entry.js → p-8e5052d5.entry.js} +1 -1
  203. package/dist/post-components/{p-9fedcfba.entry.js → p-9440738d.entry.js} +1 -1
  204. package/dist/post-components/{p-0d25c033.entry.js → p-965a02fb.entry.js} +1 -1
  205. package/dist/post-components/{p-d2de31b7.entry.js → p-9740719e.entry.js} +1 -1
  206. package/dist/post-components/{p-5369b9c2.entry.js → p-9af8f5af.entry.js} +1 -1
  207. package/dist/post-components/p-CAL337jJ.js +1 -0
  208. package/dist/post-components/p-a6971c1c.entry.js +1 -0
  209. package/dist/post-components/p-a7d8f328.entry.js +1 -0
  210. package/dist/post-components/{p-e11ccdbe.entry.js → p-bb9a0e1e.entry.js} +1 -1
  211. package/dist/post-components/{p-82c62e90.entry.js → p-bf8c7dca.entry.js} +1 -1
  212. package/dist/post-components/p-c3351def.entry.js +1 -0
  213. package/dist/post-components/{p-e560767b.entry.js → p-c87f33f0.entry.js} +1 -1
  214. package/dist/post-components/{p-456b0786.entry.js → p-e30b534d.entry.js} +1 -1
  215. package/dist/post-components/{p-330fd6cd.entry.js → p-e73eabac.entry.js} +1 -1
  216. package/dist/post-components/{p-f2629077.entry.js → p-e84fe883.entry.js} +1 -1
  217. package/dist/post-components/{p-229d324e.entry.js → p-eaa28736.entry.js} +1 -1
  218. package/dist/post-components/{p-91a2ef3c.entry.js → p-f2cb8ed1.entry.js} +1 -1
  219. package/dist/post-components/{p-f2b24bbd.entry.js → p-ffbf2375.entry.js} +1 -1
  220. package/dist/post-components/post-components.esm.js +1 -1
  221. package/dist/types/components/post-header/post-header.d.ts +12 -0
  222. package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
  223. package/hydrate/index.js +140 -50
  224. package/hydrate/index.mjs +140 -50
  225. package/package.json +21 -21
  226. package/dist/components/react/p-BdiQsTQm.js +0 -1
  227. package/dist/components/react/p-E-8qAn1z.js +0 -1
  228. package/dist/post-components/p-3fdb8ebc.entry.js +0 -1
  229. package/dist/post-components/p-4d30c65d.entry.js +0 -1
  230. package/dist/post-components/p-95f5d5ea.entry.js +0 -1
  231. package/dist/post-components/p-9dd286bf.entry.js +0 -1
  232. package/dist/post-components/p-BdiQsTQm.js +0 -1
  233. package/dist/post-components/p-ee7fade4.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
- import { v as version } from './package-BdiQsTQm.js';
2
+ import { v as version } from './package-CAL337jJ.js';
3
3
  import { b as breakpoint } from './breakpoints-I1j7a0bW.js';
4
4
  import { a as getFocusableChildren } from './get-focusable-children-DxYnH2ye.js';
5
5
  import { i as isFocusVisible } from './is-focus-visible-BWwWKRO5.js';
@@ -142,7 +142,7 @@ const PostSideNavigation = class {
142
142
  } }, h("slot", null), h("post-closebutton", { onClick: () => this.hide() }, this.textClose)));
143
143
  }
144
144
  render() {
145
- return (h(Host, { key: '742833fbbbc716630d5fc5cc6289e44e3d05ee17', "data-version": version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
145
+ return (h(Host, { key: 'd323d8990ed9abfb5ca6c15daa70d49dabd496f9', "data-version": version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
146
146
  }
147
147
  get host() { return getElement(this); }
148
148
  };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-D0jX3Fts.js';
2
- import { v as version } from './package-BdiQsTQm.js';
2
+ import { v as version } from './package-CAL337jJ.js';
3
3
 
4
4
  const postStepperItemCss = () => `:host{grid-row:1;position:relative;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:fit-content;overflow-wrap:anywhere;hyphens:auto;line-break:strict;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{margin-inline-start:auto;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xN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YzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0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GU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}:host([aria-current=step]:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
5
5
 
@@ -8,7 +8,7 @@ const PostStepperItem = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'f41ae27d8de89912b3aa34d9c89f5ec69f3df301', "data-version": version, role: "listitem" }, h("span", { key: '00a0dd2eb3fb020e49c5782245e1f3e72c77e780', class: "stepper-item-content" }, h("span", { key: 'bc9932083d295b92db24ddd22cb18a755db5ad11', class: "step-hidden-label visually-hidden" }), h("span", { key: 'efe2d809c82c1d7de9e0cdf4e52b924943afa0bf', class: "label" }, h("slot", { key: '47aceca3fc331ef91da60674dbc2af5ea7e76ec8' })))));
11
+ return (h(Host, { key: '53b052a2b68a93df9fda7f80f23d602d8a8efc56', "data-version": version, role: "listitem" }, h("span", { key: 'e06841841e7fad42ff9de3e39dadf5fab96b9952', class: "stepper-item-content" }, h("span", { key: 'f934ef19fbdd65111b7cf561dcc9297122d62595', class: "step-hidden-label visually-hidden" }), h("span", { key: '213db918f5ab854225974678c50176bb565ac2b1', class: "label" }, h("slot", { key: 'd8e067ea304700e37edb996a4c715d41e209b8d8' })))));
12
12
  }
13
13
  };
14
14
  PostStepperItem.style = postStepperItemCss();
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
2
  import './breakpoints-I1j7a0bW.js';
3
- import { v as version } from './package-BdiQsTQm.js';
3
+ import { v as version } from './package-CAL337jJ.js';
4
4
  import { R as Required } from './required-CDaQB1gC.js';
5
5
  import { T as Type } from './type-CQ7XuPCZ.js';
6
6
  import { P as Pattern } from './pattern-BL3OBU8C.js';
@@ -112,7 +112,7 @@ const PostStepper = class {
112
112
  }
113
113
  }
114
114
  render() {
115
- return (h(Host, { key: 'e6d1f0498cb3de68badef6428cfe8fdff73b879b', "data-version": version }, h("ol", { key: '4c10c32d36eaeeb19712f7d99dcba7d5337d89a1' }, h("slot", { key: 'ced502f01025f44c09747299cf60c82ebcd905da', onSlotchange: () => this.updateSteps() })), h("div", { key: '93cfc9fbd328d4a384c56ccf1f884053643f88e6', class: "active-step", "aria-hidden": "true" }, h("span", { key: '076fad4efc393852d024157011a0e86d90ecfe99', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: '814817862389cd55859aec49205fae255cbbf1d7', innerHTML: this.mobileActiveStepName }))));
115
+ return (h(Host, { key: '52c9943bca4c1d7b1d964d812ce21d8b0eb2d236', "data-version": version }, h("ol", { key: 'ea1f27a214d9cdf14b5f2d07f14a8d54836a32b3' }, h("slot", { key: '6f07fe49d55152123dc39645ef17bf5557753005', onSlotchange: () => this.updateSteps() })), h("div", { key: 'ad3af45bc5d1493f9f1084cc28c77c39d27cbd35', class: "active-step", "aria-hidden": "true" }, h("span", { key: '6e3f5decadc8bcc67812dd67f6efe0afa0613b46', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: '4aeb9376181d78007a929c5e8e4ba11c181039bb', innerHTML: this.mobileActiveStepName }))));
116
116
  }
117
117
  get host() { return getElement(this); }
118
118
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
2
  import './breakpoints-I1j7a0bW.js';
3
3
  import { n as nanoid } from './nanoid-8LXe8Zt_.js';
4
- import { v as version } from './package-BdiQsTQm.js';
4
+ import { v as version } from './package-CAL337jJ.js';
5
5
  import { R as Required } from './required-CDaQB1gC.js';
6
6
  import { T as Type } from './type-CQ7XuPCZ.js';
7
7
  import './create-validator-decorator-Cp_NUmrr.js';
@@ -46,7 +46,7 @@ const PostTabItem = class {
46
46
  this.isPagesVariant = hasAnchor;
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '0c98772d01658e932be9982b6983eb3c1f0c4053', id: this.tabId, role: this.isPagesVariant ? undefined : 'tab', "data-version": version, "data-pages-variant": this.isPagesVariant.toString(), "aria-selected": this.isPagesVariant ? undefined : 'false', "aria-disabled": this.disabled ? 'true' : undefined, tabindex: this.isPagesVariant ? undefined : '-1', class: `${this.isPagesVariant ? 'nav-item' : 'tab-title'}${''}`, style: undefined }, h("slot", { key: 'fba27566a1226e560161f839df050666763bdce5' })));
49
+ return (h(Host, { key: '974d9682ef0448cf3adf9481ba472a5c196349b3', id: this.tabId, role: this.isPagesVariant ? undefined : 'tab', "data-version": version, "data-pages-variant": this.isPagesVariant.toString(), "aria-selected": this.isPagesVariant ? undefined : 'false', "aria-disabled": this.disabled ? 'true' : undefined, tabindex: this.isPagesVariant ? undefined : '-1', class: `${this.isPagesVariant ? 'nav-item' : 'tab-title'}${''}`, style: undefined }, h("slot", { key: '6a7ed6323892a40ea22e487bc9460af69fda02c6' })));
50
50
  }
51
51
  get host() { return getElement(this); }
52
52
  };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
2
  import './breakpoints-I1j7a0bW.js';
3
3
  import { n as nanoid } from './nanoid-8LXe8Zt_.js';
4
- import { v as version } from './package-BdiQsTQm.js';
4
+ import { v as version } from './package-CAL337jJ.js';
5
5
  import { R as Required } from './required-CDaQB1gC.js';
6
6
  import { T as Type } from './type-CQ7XuPCZ.js';
7
7
  import './create-validator-decorator-Cp_NUmrr.js';
@@ -27,7 +27,7 @@ const PostTabPanel = class {
27
27
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '2b02063bf2e67f4e826155759f28a1ae47b0c8e0', "data-version": version, id: this.panelId, role: "tabpanel", slot: "panels", style: undefined }, h("slot", { key: 'b4c39e035d0f49f5654b030f4aada27fbebb122c' })));
30
+ return (h(Host, { key: '07d93ddaa69253a956ed50cd9ecd6ed039fbc6e2', "data-version": version, id: this.panelId, role: "tabpanel", slot: "panels", style: undefined }, h("slot", { key: 'd6887db4e0e4dc22f8f8fdf098d6068ef4bd1a91' })));
31
31
  }
32
32
  get host() { return getElement(this); }
33
33
  };
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
2
2
  import { f as fade } from './fade-DsgPYmAa.js';
3
3
  import './breakpoints-I1j7a0bW.js';
4
4
  import { c as componentOnReady } from './component-on-ready-lpWRZjJp.js';
5
- import { v as version } from './package-BdiQsTQm.js';
5
+ import { v as version } from './package-CAL337jJ.js';
6
6
  import { O as OneOf } from './one-of-B9locHPx.js';
7
7
  import { T as Type } from './type-CQ7XuPCZ.js';
8
8
  import './utils-CoDiS_Ik.js';
@@ -43,6 +43,18 @@ const PostTabs = class {
43
43
  * Default is 'large'.
44
44
  */
45
45
  this.size = 'large';
46
+ // Showing or hiding a scroll button changes the container width, which can happen in the middle of a scroll:
47
+ // the scroll target has to be recomputed, otherwise the scroll stops short of the end
48
+ this.handleContainerResize = () => {
49
+ this.updateScrollButtons();
50
+ // When the whole component resizes instead (e.g. the window gets narrower), the tabs keep their position
51
+ const hostWidth = this.host.clientWidth;
52
+ if (hostWidth !== this.hostWidth) {
53
+ this.hostWidth = hostWidth;
54
+ this.pendingScroll = undefined;
55
+ }
56
+ this.pendingScroll?.();
57
+ };
46
58
  // Handles the visibility of scroll buttons based on the scroll position of the tabs container
47
59
  this.updateScrollButtons = () => {
48
60
  if (!this.tabsContainer)
@@ -126,7 +138,8 @@ const PostTabs = class {
126
138
  this.contentObserver?.observe(this.host, config);
127
139
  }
128
140
  setupResizeObserver() {
129
- this.resizeObserver = new ResizeObserver(this.updateScrollButtons);
141
+ this.hostWidth = this.host.clientWidth;
142
+ this.resizeObserver = new ResizeObserver(this.handleContainerResize);
130
143
  this.resizeObserver.observe(this.tabsContainer);
131
144
  }
132
145
  handleContentChange(mutations) {
@@ -395,11 +408,23 @@ const PostTabs = class {
395
408
  const paddingStart = Number.parseFloat(style.paddingInlineStart) || 0;
396
409
  const paddingEnd = Number.parseFloat(style.paddingInlineEnd) || 0;
397
410
  const contentWidth = this.tabsContainer.clientWidth - paddingStart - paddingEnd;
411
+ const maxScrollLeft = this.tabsContainer.scrollWidth - this.tabsContainer.clientWidth;
412
+ const reachesEnd = sign > 0 && this.tabsContainer.scrollLeft + contentWidth >= maxScrollLeft;
413
+ this.pendingScroll = reachesEnd ? () => this.scrollToEnd() : undefined;
398
414
  this.tabsContainer.scrollBy({
399
415
  left: sign * contentWidth,
400
416
  behavior: 'smooth',
401
417
  });
402
418
  }
419
+ scrollToEnd() {
420
+ const container = this.tabsContainer;
421
+ const maxScrollLeft = container.scrollWidth - container.clientWidth;
422
+ if (container.scrollLeft >= maxScrollLeft) {
423
+ this.pendingScroll = undefined;
424
+ return;
425
+ }
426
+ container.scrollTo({ left: maxScrollLeft, behavior: 'smooth' });
427
+ }
403
428
  scrollTabIntoView(tab, behavior = 'instant') {
404
429
  const container = this.tabsContainer;
405
430
  const style = getComputedStyle(container);
@@ -409,10 +434,13 @@ const PostTabs = class {
409
434
  const tabRight = tabLeft + tab.offsetWidth;
410
435
  const containerLeft = container.scrollLeft + paddingStart;
411
436
  const containerRight = containerLeft + container.clientWidth - paddingStart - paddingEnd;
437
+ // Only aligning the tab to the right edge depends on the container width
438
+ this.pendingScroll = undefined;
412
439
  if (tabLeft < containerLeft) {
413
440
  container.scrollTo({ left: tabLeft - paddingStart, behavior });
414
441
  }
415
442
  else if (tabRight > containerRight) {
443
+ this.pendingScroll = () => this.scrollTabIntoView(tab, behavior);
416
444
  container.scrollTo({ left: tabRight - container.clientWidth + paddingEnd, behavior });
417
445
  }
418
446
  }
@@ -423,10 +451,10 @@ const PostTabs = class {
423
451
  render() {
424
452
  const TabsContainer = this.isPagesVariant ? 'nav' : 'div';
425
453
  const style = undefined;
426
- return (h(Host, { key: 'fb65fd2589517dd6d86e86435ec6b3a3b64b093d', "data-version": version, style: style }, h("div", { key: 'dbcdd791af381ccc23953acb38a8e71527a804ee', class: "tabs-wrapper", part: "post-tabs" }, h("button", { key: 'e14933611fd38f647219a6885b879f93e7bdd4d7', ref: el => (this.leftScrollButton = el), class: "scroll-btn scroll-btn-left", type: "button", "aria-label": this.textPrevTabItems, tabindex: -1, hidden: !this.showLeftScrollButton, onClick: () => this.scrollTabs('prev') }, h("post-icon", { key: 'c1bf9a6f438f2b6519a90b20c26c292143239323', name: "chevronleft" })), h(TabsContainer, { key: 'b7f3357cdab40e7e0d9c290c922803eccb00ec81', ref: el => (this.tabsContainer = el), class: "tabs", role: this.isPagesVariant ? undefined : 'tablist', "aria-label": this.isPagesVariant ? this.label : undefined }, h("slot", { key: '4e4487253b64f4ec1f0454e711de7b1d3240dc32', onSlotchange: () => {
454
+ return (h(Host, { key: '10c247c7c021a4fbbd8f79ce7b82888e0b7c8be2', "data-version": version, style: style }, h("div", { key: '5ccae325884c7cff0eec399da23513c0b864dde0', class: "tabs-wrapper", part: "post-tabs" }, h("button", { key: 'dd38a22327801b790f849449055b765d2c1bc3b6', ref: el => (this.leftScrollButton = el), class: "scroll-btn scroll-btn-left", type: "button", "aria-label": this.textPrevTabItems, tabindex: -1, hidden: !this.showLeftScrollButton, onClick: () => this.scrollTabs('prev') }, h("post-icon", { key: '461a92ab071472c995d0adad5c73c75c82d982fe', name: "chevronleft" })), h(TabsContainer, { key: 'edecdbfdc681b96539e5a0755330faf1795ecb35', ref: el => (this.tabsContainer = el), class: "tabs", role: this.isPagesVariant ? undefined : 'tablist', "aria-label": this.isPagesVariant ? this.label : undefined }, h("slot", { key: '6240234a2168b2e889cab92a7688731ca93a63a6', onSlotchange: () => {
427
455
  this.moveMisplacedTabs();
428
456
  this.enableTabs();
429
- } })), h("button", { key: '415ca5611f57f8af18135ae3cdd18ca33964aba5', ref: el => (this.rightScrollButton = el), class: "scroll-btn scroll-btn-right", type: "button", "aria-label": this.textNextTabItems, tabindex: -1, hidden: !this.showRightScrollButton, onClick: () => this.scrollTabs('next') }, h("post-icon", { key: '42e4d6ff41b39a94b9480d3ec477a2f93e876d4f', name: "chevronright" }))), !this.isPagesVariant && (h("div", { key: '5c529d848c9bb7221d06324c03e98c55a3ef61b6', class: "tab-content", part: "post-tabs-content" }, h("slot", { key: '76c701c2ecb17d762bdf96c2970f5b69a6871301', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
457
+ } })), h("button", { key: 'a4030c48cbbefb578b03ee9dad35724a1fdd5547', ref: el => (this.rightScrollButton = el), class: "scroll-btn scroll-btn-right", type: "button", "aria-label": this.textNextTabItems, tabindex: -1, hidden: !this.showRightScrollButton, onClick: () => this.scrollTabs('next') }, h("post-icon", { key: 'd89c831bdd2faf1991793df47e7ca79bf49e5339', name: "chevronright" }))), !this.isPagesVariant && (h("div", { key: 'aba319437ba8bfb9e7a144a44efcc32d82ef6b02', class: "tab-content", part: "post-tabs-content" }, h("slot", { key: 'e689b5e3a030909c5c77899ac899ded2481f82a6', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
430
458
  }
431
459
  get host() { return getElement(this); }
432
460
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
2
  import './breakpoints-I1j7a0bW.js';
3
- import { v as version } from './package-BdiQsTQm.js';
3
+ import { v as version } from './package-CAL337jJ.js';
4
4
  import { R as Required } from './required-CDaQB1gC.js';
5
5
  import { T as Type } from './type-CQ7XuPCZ.js';
6
6
  import './create-validator-decorator-Cp_NUmrr.js';
@@ -182,7 +182,7 @@ const PostTooltipTrigger = class {
182
182
  this.tooltip?.hide();
183
183
  }
184
184
  render() {
185
- return (h(Host, { key: '37f835a46c96f1f97019b611da8b6be2d6e1a8d7', "data-version": version }, h("slot", { key: 'c2fc3d9080948fdcfbd8b2866730e76b770b87ba', onSlotchange: () => this.handleSlotChange() })));
185
+ return (h(Host, { key: '7811d666f249ead72768adaf5bdc92e47b447d8a', "data-version": version }, h("slot", { key: '68e56c43ebec2abffbf049647ac08757dadf22f9', onSlotchange: () => this.handleSlotChange() })));
186
186
  }
187
187
  get host() { return getElement(this); }
188
188
  };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, a as getElement } from './index-D0jX3Fts.js';
2
2
  import { P as PLACEMENT_TYPES } from './placement-DRiVosES.js';
3
3
  import './breakpoints-I1j7a0bW.js';
4
- import { v as version } from './package-BdiQsTQm.js';
4
+ import { v as version } from './package-CAL337jJ.js';
5
5
  import { O as OneOf } from './one-of-B9locHPx.js';
6
6
  import './create-validator-decorator-Cp_NUmrr.js';
7
7
 
@@ -75,7 +75,7 @@ const PostTooltip = class {
75
75
  }
76
76
  render() {
77
77
  const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
78
- return (h(Host, { key: 'c592afd24bbaf57999ca40b9558746a5a4490362', "data-version": version }, h("post-popovercontainer", { key: 'c66e0c89228fed51a0affa4788a3e6c32f3196ae', safeSpace: true, class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, autoHide: true, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, h("div", { key: 'fc57d4457c4910aab1bfae2558cf78ae9a253552', class: "tooltip-content" }, h("slot", { key: '316a52bf1a1763b2510270e9ab5bc26ca8e5e53f' })))));
78
+ return (h(Host, { key: '083507ae592ce9be50f6b4217a8d13785039478d', "data-version": version }, h("post-popovercontainer", { key: 'e0436489bd955cee95b287f35759c364b019be94', safeSpace: true, class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, autoHide: true, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, h("div", { key: '8e6417485a89f56c18e731351de0e9f5db2cdd9a', class: "tooltip-content" }, h("slot", { key: 'e4c9fed0c8a8454c20f504e38557abd8ea253a1b' })))));
79
79
  }
80
80
  get host() { return getElement(this); }
81
81
  };
@@ -1 +1 @@
1
- import{r as o,c as e,h as t,H as i,a}from"./p-D0jX3Fts.js";import{f as r}from"./p-D5knoiyy.js";import"./p-I1j7a0bW.js";import{v as s}from"./p-BdiQsTQm.js";import{O as c}from"./p-BCPv4bcY.js";import"./p-CoDiS_Ik.js";import"./p-DSaWK_q-.js";const n=class{constructor(t){o(this,t),this.postDismissed=e(this,"postDismissed"),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.hasActions=!1,this.type="info"}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0})}componentDidLoad(){this.checkContent()}disconnectedCallback(){this.mutationObserver.disconnect()}async dismiss(){const o=r(this.host,"out");await o.finished,this.postDismissed.emit(),this.host.remove()}checkContent(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0}render(){return t(i,{key:"890eea914f07f31f64c9e1b01fca94e824a019bc","data-version":s,role:"alert","data-color-scheme":"light"},t("slot",{key:"d4ac9c3714979cde7bba7554fbe1886d2cf75701",name:"close-button"}),t("div",{key:"a097570719b709a3b67aa7152701edbf1174ace0",class:"post-banner-content"},t("slot",{key:"df12b0e63ac4cf4152c196eaad071774be4d7b88",name:"heading"}),t("slot",{key:"a5e376800525119dc47815b9977936fa3966e087"}),this.hasActions&&t("div",{key:"6a0cc7f82873bcfde5109ed9e6bfe8255e30b19c",class:"actions"},t("slot",{key:"11b1d289705cb9d1d96b20b4fcea2b923bfd184a",name:"actions"}))))}get host(){return a(this)}};(function(o,e,t,i){var a,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);r>3&&s&&Object.defineProperty(e,t,s)})([c(["success","warning","error","info"])],n.prototype,"type",void 0),n.style=':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{--post-banner-focus-room:calc( var(--post-device-border-width-focus) + var(--post-device-spacing-padding-2) );display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto;padding:var(--post-banner-focus-room);margin:calc(-1*var(--post-banner-focus-room))}.actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{flex-direction:column;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}';export{n as post_banner}
1
+ import{r as o,c as e,h as t,H as i,a}from"./p-D0jX3Fts.js";import{f as r}from"./p-D5knoiyy.js";import"./p-I1j7a0bW.js";import{v as s}from"./p-CAL337jJ.js";import{O as c}from"./p-BCPv4bcY.js";import"./p-CoDiS_Ik.js";import"./p-DSaWK_q-.js";const n=class{constructor(t){o(this,t),this.postDismissed=e(this,"postDismissed"),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.hasActions=!1,this.type="info"}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0})}componentDidLoad(){this.checkContent()}disconnectedCallback(){this.mutationObserver.disconnect()}async dismiss(){const o=r(this.host,"out");await o.finished,this.postDismissed.emit(),this.host.remove()}checkContent(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0}render(){return t(i,{key:"890eea914f07f31f64c9e1b01fca94e824a019bc","data-version":s,role:"alert","data-color-scheme":"light"},t("slot",{key:"d4ac9c3714979cde7bba7554fbe1886d2cf75701",name:"close-button"}),t("div",{key:"a097570719b709a3b67aa7152701edbf1174ace0",class:"post-banner-content"},t("slot",{key:"df12b0e63ac4cf4152c196eaad071774be4d7b88",name:"heading"}),t("slot",{key:"a5e376800525119dc47815b9977936fa3966e087"}),this.hasActions&&t("div",{key:"6a0cc7f82873bcfde5109ed9e6bfe8255e30b19c",class:"actions"},t("slot",{key:"11b1d289705cb9d1d96b20b4fcea2b923bfd184a",name:"actions"}))))}get host(){return a(this)}};(function(o,e,t,i){var a,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);r>3&&s&&Object.defineProperty(e,t,s)})([c(["success","warning","error","info"])],n.prototype,"type",void 0),n.style=':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{--post-banner-focus-room:calc( var(--post-device-border-width-focus) + var(--post-device-spacing-padding-2) );display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto;padding:var(--post-banner-focus-room);margin:calc(-1*var(--post-banner-focus-room))}.actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{flex-direction:column;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}';export{n as post_banner}