@swisspost/design-system-components 7.4.0 → 8.0.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 (175) hide show
  1. package/dist/cjs/{index-f32e5185.js → index-a1440961.js} +15 -2
  2. package/dist/cjs/{index-1cc8e4e1.js → index-baad16da.js} +8 -17
  3. package/dist/cjs/index.cjs.js +18 -20
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{package-549b9aab.js → package-28cba29c.js} +1 -1
  6. package/dist/cjs/{post-accordion-e0a2c3c3.js → post-accordion-fc746a6f.js} +2 -2
  7. package/dist/cjs/{post-accordion-item-772332db.js → post-accordion-item-c0492b73.js} +6 -7
  8. package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
  9. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/{post-alert-42220c7a.js → post-alert-0612ad51.js} +8 -9
  11. package/dist/cjs/post-alert.cjs.entry.js +4 -5
  12. package/dist/cjs/{post-card-control-45047568.js → post-card-control-2fd18624.js} +4 -4
  13. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  14. package/dist/cjs/post-collapsible-trigger-8d39196e.js +206 -0
  15. package/dist/cjs/{post-collapsible-trigger.cjs.entry.js → post-collapsible_2.cjs.entry.js} +7 -5
  16. package/dist/cjs/post-components.cjs.js +3 -3
  17. package/dist/cjs/{post-icon-d136be35.js → post-icon-bd260560.js} +5 -6
  18. package/dist/cjs/post-icon.cjs.entry.js +4 -5
  19. package/dist/cjs/{post-popover-1024d72f.js → post-popover-303e76ef.js} +3 -3
  20. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  21. package/dist/cjs/{post-popovercontainer-f5dd6284.js → post-popovercontainer-c64bde39.js} +8 -9
  22. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  23. package/dist/cjs/{post-rating-df981989.js → post-rating-dc7bd246.js} +3 -3
  24. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  25. package/dist/cjs/{post-tab-header-17fe11d6.js → post-tab-header-06c40218.js} +3 -3
  26. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  27. package/dist/cjs/{post-tab-panel-a47c8cfe.js → post-tab-panel-54fbdb66.js} +3 -3
  28. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  29. package/dist/cjs/{post-tabs-766f8241.js → post-tabs-52b9d638.js} +3 -3
  30. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/{post-tag-65ec8149.js → post-tag-4aba2155.js} +3 -3
  32. package/dist/cjs/post-tag.cjs.entry.js +3 -3
  33. package/dist/cjs/{post-tooltip-2efd6509.js → post-tooltip-3c695f60.js} +4 -4
  34. package/dist/cjs/post-tooltip.cjs.entry.js +4 -5
  35. package/dist/collection/collection-manifest.json +1 -1
  36. package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -9
  37. package/dist/collection/components/post-alert/post-alert.js +3 -3
  38. package/dist/collection/components/post-card-control/post-card-control.js +2 -2
  39. package/dist/collection/components/post-collapsible/post-collapsible.js +12 -14
  40. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +14 -19
  41. package/dist/collection/components/post-icon/post-icon.js +1 -1
  42. package/dist/collection/components/post-popover/post-popover.js +2 -2
  43. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +3 -3
  44. package/dist/collection/components/post-rating/post-rating.js +1 -1
  45. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  46. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  47. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  48. package/dist/collection/components/post-tag/post-tag.js +1 -1
  49. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  50. package/dist/collection/utils/get-root.js +7 -0
  51. package/dist/collection/utils/index.js +1 -0
  52. package/dist/components/package.js +1 -1
  53. package/dist/components/post-accordion-item2.js +13 -9
  54. package/dist/components/post-alert2.js +3 -3
  55. package/dist/components/post-card-control2.js +2 -2
  56. package/dist/components/post-collapsible-trigger2.js +22 -10
  57. package/dist/components/post-collapsible2.js +12 -14
  58. package/dist/components/post-icon2.js +1 -1
  59. package/dist/components/post-popover2.js +1 -1
  60. package/dist/components/post-popovercontainer2.js +6 -7
  61. package/dist/components/post-rating2.js +1 -1
  62. package/dist/components/post-tab-header2.js +1 -1
  63. package/dist/components/post-tab-panel2.js +1 -1
  64. package/dist/components/post-tabs2.js +1 -1
  65. package/dist/components/post-tag2.js +1 -1
  66. package/dist/components/post-tooltip2.js +1 -1
  67. package/dist/docs.json +23 -22
  68. package/dist/esm/{index-9ace3232.js → index-189d3985.js} +8 -17
  69. package/dist/esm/{index-29d17d6d.js → index-d1eba94c.js} +14 -2
  70. package/dist/esm/index.js +17 -19
  71. package/dist/esm/loader.js +3 -3
  72. package/dist/esm/{package-91140d77.js → package-3e4546f5.js} +1 -1
  73. package/dist/esm/{post-accordion-09978cd3.js → post-accordion-1cbd089a.js} +2 -2
  74. package/dist/esm/{post-accordion-item-4210d17f.js → post-accordion-item-316ee985.js} +6 -7
  75. package/dist/esm/post-accordion-item.entry.js +4 -5
  76. package/dist/esm/post-accordion.entry.js +3 -3
  77. package/dist/esm/{post-alert-64d34792.js → post-alert-6fa442b9.js} +6 -7
  78. package/dist/esm/post-alert.entry.js +4 -5
  79. package/dist/esm/{post-card-control-244f45f6.js → post-card-control-41356aa4.js} +4 -4
  80. package/dist/esm/post-card-control.entry.js +3 -3
  81. package/dist/esm/post-collapsible-trigger-6f4ba350.js +203 -0
  82. package/dist/esm/post-collapsible_2.entry.js +7 -0
  83. package/dist/esm/post-components.js +4 -4
  84. package/dist/esm/{post-icon-f05c6d37.js → post-icon-fe467f6a.js} +4 -5
  85. package/dist/esm/post-icon.entry.js +4 -5
  86. package/dist/esm/{post-popover-a094d059.js → post-popover-c9998136.js} +3 -3
  87. package/dist/esm/post-popover.entry.js +3 -3
  88. package/dist/esm/{post-popovercontainer-1faa005e.js → post-popovercontainer-62ced3d7.js} +8 -9
  89. package/dist/esm/post-popovercontainer.entry.js +3 -3
  90. package/dist/esm/{post-rating-62590a88.js → post-rating-49ace0e9.js} +3 -3
  91. package/dist/esm/post-rating.entry.js +3 -3
  92. package/dist/esm/{post-tab-header-1b88d56e.js → post-tab-header-696a7aae.js} +3 -3
  93. package/dist/esm/post-tab-header.entry.js +3 -3
  94. package/dist/esm/{post-tab-panel-fac73181.js → post-tab-panel-c00910fb.js} +3 -3
  95. package/dist/esm/post-tab-panel.entry.js +3 -3
  96. package/dist/esm/{post-tabs-4528a1a5.js → post-tabs-a7990c9e.js} +3 -3
  97. package/dist/esm/post-tabs.entry.js +3 -3
  98. package/dist/esm/{post-tag-8b82ff5c.js → post-tag-d9650103.js} +3 -3
  99. package/dist/esm/post-tag.entry.js +3 -3
  100. package/dist/esm/{post-tooltip-1156bdc7.js → post-tooltip-cf07e816.js} +4 -4
  101. package/dist/esm/post-tooltip.entry.js +4 -5
  102. package/dist/post-components/index.esm.js +1 -1
  103. package/dist/post-components/p-0aee269b.entry.js +1 -0
  104. package/dist/post-components/p-2240981f.entry.js +1 -0
  105. package/dist/post-components/{p-4dc0b726.js → p-266adbdd.js} +1 -1
  106. package/dist/post-components/p-27cb2e60.entry.js +1 -0
  107. package/dist/post-components/p-2c9277b1.entry.js +1 -0
  108. package/dist/post-components/p-3764a23a.entry.js +1 -0
  109. package/dist/post-components/{p-0df6bfe1.js → p-382f85c4.js} +1 -1
  110. package/dist/post-components/p-48ed21f0.entry.js +1 -0
  111. package/dist/post-components/p-496cee95.entry.js +1 -0
  112. package/dist/post-components/p-4ce46830.entry.js +1 -0
  113. package/dist/post-components/p-5135c965.entry.js +1 -0
  114. package/dist/post-components/{p-eff7cef8.js → p-5c4773cb.js} +2 -2
  115. package/dist/post-components/p-660ecc23.js +1 -0
  116. package/dist/post-components/p-69145fd2.js +1 -0
  117. package/dist/post-components/p-6af42a67.entry.js +1 -0
  118. package/dist/post-components/{p-21bdf1f3.js → p-6c701d9f.js} +1 -1
  119. package/dist/post-components/p-7095990e.js +1 -0
  120. package/dist/post-components/p-7481e37a.entry.js +1 -0
  121. package/dist/post-components/{p-04dc2d21.js → p-783e67bc.js} +1 -1
  122. package/dist/post-components/p-8f0ee57c.entry.js +1 -0
  123. package/dist/post-components/p-90479234.js +1 -0
  124. package/dist/post-components/p-a4794190.js +1 -0
  125. package/dist/post-components/{p-a8dc1aa1.js → p-a4e13e9c.js} +1 -1
  126. package/dist/post-components/{p-bdb6c1b8.js → p-ab26873d.js} +1 -1
  127. package/dist/post-components/p-b08aca79.entry.js +1 -0
  128. package/dist/post-components/p-beb27e06.js +1 -0
  129. package/dist/post-components/{p-8c7f0075.js → p-c0f265c8.js} +2 -2
  130. package/dist/post-components/{p-8e975b46.js → p-e024aa18.js} +1 -1
  131. package/dist/post-components/p-ea063aae.entry.js +1 -0
  132. package/dist/post-components/p-f732d73c.js +1 -0
  133. package/dist/post-components/p-f91c0e1b.js +1 -0
  134. package/dist/post-components/post-components.esm.js +1 -1
  135. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -3
  136. package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -4
  137. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +6 -5
  138. package/dist/types/components.d.ts +4 -4
  139. package/dist/types/utils/get-root.d.ts +1 -0
  140. package/dist/types/utils/index.d.ts +1 -0
  141. package/package.json +10 -10
  142. package/dist/cjs/check-type-64af82a9.js +0 -16
  143. package/dist/cjs/post-collapsible-d71942e3.js +0 -87
  144. package/dist/cjs/post-collapsible-trigger-a7e32ead.js +0 -115
  145. package/dist/cjs/post-collapsible.cjs.entry.js +0 -15
  146. package/dist/esm/check-type-8828dbe4.js +0 -14
  147. package/dist/esm/post-collapsible-4ddc1db3.js +0 -85
  148. package/dist/esm/post-collapsible-trigger-b0100e8c.js +0 -113
  149. package/dist/esm/post-collapsible-trigger.entry.js +0 -6
  150. package/dist/esm/post-collapsible.entry.js +0 -7
  151. package/dist/post-components/p-10cd6860.entry.js +0 -1
  152. package/dist/post-components/p-158d0eee.entry.js +0 -1
  153. package/dist/post-components/p-1f9ddbd4.js +0 -1
  154. package/dist/post-components/p-2da9a13c.js +0 -1
  155. package/dist/post-components/p-39b6f635.entry.js +0 -1
  156. package/dist/post-components/p-3cb6b887.entry.js +0 -1
  157. package/dist/post-components/p-4a3f67ab.js +0 -1
  158. package/dist/post-components/p-5ef247ea.entry.js +0 -1
  159. package/dist/post-components/p-67d41a4b.entry.js +0 -1
  160. package/dist/post-components/p-78111d97.entry.js +0 -1
  161. package/dist/post-components/p-7f3045f5.entry.js +0 -1
  162. package/dist/post-components/p-80708279.entry.js +0 -1
  163. package/dist/post-components/p-8c9bd744.entry.js +0 -1
  164. package/dist/post-components/p-9170a653.js +0 -1
  165. package/dist/post-components/p-9656cf35.js +0 -1
  166. package/dist/post-components/p-9fa0742e.js +0 -1
  167. package/dist/post-components/p-ac500761.js +0 -1
  168. package/dist/post-components/p-b53753a0.js +0 -1
  169. package/dist/post-components/p-bd0695bf.js +0 -1
  170. package/dist/post-components/p-c297c7d1.entry.js +0 -1
  171. package/dist/post-components/p-c8fe8c37.js +0 -1
  172. package/dist/post-components/p-d1c71b7d.entry.js +0 -1
  173. package/dist/post-components/p-d9e5275c.entry.js +0 -1
  174. package/dist/post-components/p-f7101c7f.entry.js +0 -1
  175. package/dist/post-components/p-ffdd17d8.entry.js +0 -1
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
3
  import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
4
- import { c as checkEmptyOrOneOf } from './index-29d17d6d.js';
4
+ import { c as checkEmptyOrOneOf } from './index-d1eba94c.js';
5
5
 
6
6
  const postAccordionItemCss = "post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.accordion-item{--post-bg-rgb:244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";
7
7
  const PostAccordionItemStyle0 = postAccordionItemCss;
@@ -10,7 +10,6 @@ const PostAccordionItem = class {
10
10
  constructor(hostRef) {
11
11
  registerInstance(this, hostRef);
12
12
  this.id = undefined;
13
- this.isOpen = undefined;
14
13
  this.collapsed = false;
15
14
  this.headingLevel = 2;
16
15
  }
@@ -21,12 +20,12 @@ const PostAccordionItem = class {
21
20
  this.validateHeadingLevel();
22
21
  }
23
22
  componentWillLoad() {
24
- this.isOpen = !this.collapsed;
25
23
  this.id = this.host.id || `a${crypto.randomUUID()}`;
26
24
  }
25
+ // capture to make sure the "collapsed" property is updated before the event is consumed
27
26
  onCollapseToggle(event) {
28
27
  if (event.target.localName === 'post-accordion-item') {
29
- this.isOpen = event.detail;
28
+ this.collapsed = !event.detail;
30
29
  }
31
30
  }
32
31
  /**
@@ -38,7 +37,7 @@ const PostAccordionItem = class {
38
37
  render() {
39
38
  var _a;
40
39
  const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
41
- return (h(Host, { key: 'e45b2ab47cfc1e6195080edde87938f6567f5a98', id: this.id, "data-version": version }, h("div", { key: 'd9758adaa568f973bdee728411e935aae3e4bafc', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '2890b79baf5a28de9c6ed07a8daf10c8a85d0487', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '6838f109b913a55c58399883eab07197b6f975f7', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '5fb0fb5dfb3dee14f81c3893ff4fc174d6c87d32', name: "header" }))), h("post-collapsible", { key: '6668cd6e3311033f4bdbcf3d070b79f8cedcc52e', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '764eb9e10a22d49e75271b76f2cde439b336eb44', class: "accordion-body" }, h("slot", { key: 'aef9bdb1ac0282b762c2d43f4b46d033398bbcae' }))))));
40
+ return (h(Host, { key: 'd021bf895019606800fa6cf3a85a2ea0a2fea7e4', id: this.id, "data-version": version }, h("div", { key: '8a78f2511889eb90d2cbdccf00f76802e043a1e7', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: 'c4c09df6d5bb1b3883ad696a362b222cfcf1c9bb', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'fbc49fcc1e4096193e1fd945b728b8c0caf6001d', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '2a55471aa04c5e676647a2e5c8cb2d587b74aed4', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}` }, h("slot", { key: '83b5811e74fb31f2fafd66e5aedc2f260d75e3e0', name: "header" })))), h("post-collapsible", { key: '8d0695dd8944bb77df60c43116be01ec2608dbb4', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '17c75ea9cf1e9adb95d176c65ab23322c994d388', class: "accordion-body" }, h("slot", { key: '21dc6d44c6bb009058e0e1e5dbcd4bfc2a9463ee' }))))));
42
41
  }
43
42
  get host() { return getElement(this); }
44
43
  static get watchers() { return {
@@ -1,8 +1,7 @@
1
- export { P as post_accordion_item } from './post-accordion-item-4210d17f.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_accordion_item } from './post-accordion-item-316ee985.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
4
4
  import './heading-levels-5b7b4349.js';
5
- import './index-29d17d6d.js';
5
+ import './index-d1eba94c.js';
6
6
  import './constants-8d548297.js';
7
7
  import './check-one-of-6b3ef8eb.js';
8
- import './check-type-8828dbe4.js';
@@ -1,5 +1,5 @@
1
- export { P as post_accordion } from './post-accordion-09978cd3.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_accordion } from './post-accordion-1cbd089a.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
4
4
  import './heading-levels-5b7b4349.js';
5
5
  import './check-one-of-6b3ef8eb.js';
@@ -1,8 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
3
  import { f as fadeOut } from './fade-7fd71785.js';
4
- import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-29d17d6d.js';
5
- import { c as checkType } from './check-type-8828dbe4.js';
4
+ import { a as checkType, b as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-d1eba94c.js';
6
5
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
7
6
 
8
7
  const ALERT_TYPES = ['primary', 'success', 'warning', 'danger', 'info', 'gray'];
@@ -74,14 +73,14 @@ const PostAlert = class {
74
73
  }
75
74
  render() {
76
75
  const defaultAlertContent = [
77
- this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: '21d19b64b4bce19fd4b07696dc246750dbb165ce', name: "heading" }))),
76
+ this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: '928eeaedc9a897394ef064a218b43a780dc10f0d', name: "heading" }))),
78
77
  h("slot", { key: `${this.alertId}-message` }),
79
78
  ];
80
79
  const actionAlertContent = [
81
80
  h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
82
- h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: 'ab1785ac06297249f1af9b4eb1afaab0551ba5e1', name: "actions" })),
81
+ h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '67bcd576fb17374be6e0f9b3633a19aaff884b6a', name: "actions" })),
83
82
  ];
84
- return (h(Host, { key: '5f0d259c805770fc4a5693c0dc0ad6ef5b7a1336', "data-version": version }, h("div", { key: '9756d0e5bbae845643d552269f713742c701cae3', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '81d8d57791d68b370e5a3e6876b9adbec9e91ae4', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: '7ac06e6e769bbcc40788fd94cfc3a9b8de586ccf', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
83
+ return (h(Host, { key: 'df4452a660ba217ad57d5ad69ee224a686f5537e', "data-version": version }, h("div", { key: 'f1d346826fee4629356c9e722ac619d9c7a34c17', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '0deb48cddffd2288dd4e2999f291179ca6cdc6b5', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: 'd252736e70ee4213d7c36e622181b640a8b3c4cb', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
85
84
  }
86
85
  get host() { return getElement(this); }
87
86
  static get watchers() { return {
@@ -1,9 +1,8 @@
1
- export { P as post_alert } from './post-alert-64d34792.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_alert } from './post-alert-6fa442b9.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
4
4
  import './fade-7fd71785.js';
5
- import './index-29d17d6d.js';
5
+ import './index-d1eba94c.js';
6
6
  import './constants-8d548297.js';
7
7
  import './check-one-of-6b3ef8eb.js';
8
- import './check-type-8828dbe4.js';
9
8
  import './check-non-empty-58bd6b17.js';
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-189d3985.js';
2
2
  import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
3
3
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
4
- import { v as version } from './package-91140d77.js';
4
+ import { v as version } from './package-3e4546f5.js';
5
5
 
6
6
  function parse(scss) {
7
7
  return Object.entries(scss).reduce((object, [path, value]) => {
@@ -269,14 +269,14 @@ const PostCardControl = class {
269
269
  this.hasIcon = Boolean(this.host.querySelector('[slot="icon"]') || this.icon);
270
270
  }
271
271
  render() {
272
- return (h(Host, { key: '3d13d8664c71b1a7c068f3a3f9d7d1810d1956d2', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: '7793e07831a06f3fd5b40d41ee322016c37cf56d', class: {
272
+ return (h(Host, { key: 'a99c4d289e6546d08bc43b55347e3faab514a6ed', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: '3d5f19d37ad0dac2c0526dfab9bc915609eb73b6', class: {
273
273
  'card-control': true,
274
274
  'is-checked': this.checked,
275
275
  'is-disabled': this.disabled,
276
276
  'is-focused': this.focused,
277
277
  'is-valid': this.validity !== null && this.validity !== 'false',
278
278
  'is-invalid': this.validity === 'false',
279
- }, "data-host-context": this.hostContext.join(' ') }, h("input", { key: 'f7f38e0e2a3b346a01d5f9d9b63c7ef5b0c2eab7', ref: el => (this.control = el), id: this.controlId, class: "card-control--input form-check-input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_label ${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === 'false', onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: 'f87fcbc79fec1b491200caec67680d72406f7f37', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label form-check-label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: 'd59c1081ee18a3486bf5a4c712377db98e47049b', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: '1c31b3c2efa8efca4886090f75bee6fb32dd55bb' })))));
279
+ }, "data-host-context": this.hostContext.join(' ') }, h("input", { key: '305fce2f7405918dba56e604c6579aa96609034c', ref: el => (this.control = el), id: this.controlId, class: "card-control--input form-check-input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_label ${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === 'false', onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: 'e6de984f7e2cb6c6128f1875127e980c956fb5c8', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label form-check-label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: '770c2382527e7bfe90a520ac82b0219f26da75d0', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: '5f0e50844a19db803257feb27a16ebfb9a55dddc' })))));
280
280
  }
281
281
  componentDidRender() {
282
282
  this.groupCollectMembers();
@@ -1,6 +1,6 @@
1
- export { P as post_card_control } from './post-card-control-244f45f6.js';
2
- import './index-9ace3232.js';
1
+ export { P as post_card_control } from './post-card-control-41356aa4.js';
2
+ import './index-189d3985.js';
3
3
  import './check-one-of-6b3ef8eb.js';
4
4
  import './check-non-empty-58bd6b17.js';
5
5
  import './constants-8d548297.js';
6
- import './package-91140d77.js';
6
+ import './package-3e4546f5.js';
@@ -0,0 +1,203 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
+ import { d as checkEmptyOrType, a as checkType } from './index-d1eba94c.js';
4
+ import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
+
6
+ function debounce(callback, timeout = 200) {
7
+ let id;
8
+ return (...args) => {
9
+ if (id)
10
+ clearTimeout(id);
11
+ id = setTimeout(callback, timeout, ...args);
12
+ };
13
+ }
14
+
15
+ function getRoot(element) {
16
+ const root = element.getRootNode();
17
+ if (root instanceof Document || root instanceof ShadowRoot) {
18
+ return root;
19
+ }
20
+ throw new Error('Attempting to access root node before the element is attached to the document or shadow tree.');
21
+ }
22
+
23
+ function isMotionReduced() {
24
+ return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
25
+ }
26
+
27
+ const collapseDuration = 350;
28
+ const collapseEasing = 'ease';
29
+ const collapsedKeyframe = { height: '0', overflow: 'hidden' };
30
+ const animationOptions = {
31
+ duration: collapseDuration,
32
+ easing: collapseEasing,
33
+ fill: 'forwards',
34
+ };
35
+ const collapse = (el) => {
36
+ const expandedKeyframe = { height: window.getComputedStyle(el).height };
37
+ return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
38
+ };
39
+ const expand = (el) => {
40
+ const expandedKeyframe = { height: `${el.scrollHeight}px`, offset: 1 };
41
+ const finalKeyframe = { height: 'auto' };
42
+ return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
43
+ };
44
+
45
+ const postCollapsibleCss = ":host{display:block;overflow:hidden}";
46
+ const PostCollapsibleStyle0 = postCollapsibleCss;
47
+
48
+ const PostCollapsible = class {
49
+ constructor(hostRef) {
50
+ registerInstance(this, hostRef);
51
+ this.postToggle = createEvent(this, "postToggle", 7);
52
+ this.isLoaded = false;
53
+ this.isOpen = true;
54
+ this.collapsed = false;
55
+ }
56
+ collapsedChange() {
57
+ checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
58
+ void this.toggle(!this.collapsed);
59
+ }
60
+ componentDidLoad() {
61
+ this.collapsedChange();
62
+ this.isLoaded = true;
63
+ this.updateTriggers();
64
+ }
65
+ /**
66
+ * Triggers the collapse programmatically.
67
+ *
68
+ * If there is a collapsing transition running already, it will be reversed.
69
+ */
70
+ async toggle(open = !this.isOpen) {
71
+ if (open === this.isOpen)
72
+ return open;
73
+ this.isOpen = open;
74
+ this.collapsed = !open;
75
+ if (this.isLoaded)
76
+ this.postToggle.emit(open);
77
+ const animation = open ? expand(this.host) : collapse(this.host);
78
+ if (!this.isLoaded || isMotionReduced())
79
+ animation.finish();
80
+ await animation.finished;
81
+ animation.commitStyles();
82
+ return open;
83
+ }
84
+ /**
85
+ * Update all post-collapsible-trigger elements referring to the collapsible
86
+ */
87
+ updateTriggers() {
88
+ const triggers = document.querySelectorAll(`post-collapsible-trigger[for=${this.host.id}]`);
89
+ triggers.forEach(trigger => trigger.update());
90
+ }
91
+ render() {
92
+ return (h(Host, { key: '47ab19bf719a505dce35955d6250462acea47eee', "data-version": version }, h("slot", { key: 'd7fe5746afe1c343e9ec4c02878d8dead9360c26' })));
93
+ }
94
+ get host() { return getElement(this); }
95
+ static get watchers() { return {
96
+ "collapsed": ["collapsedChange"]
97
+ }; }
98
+ };
99
+ PostCollapsible.style = PostCollapsibleStyle0;
100
+
101
+ const PostCollapsibleTrigger = class {
102
+ constructor(hostRef) {
103
+ registerInstance(this, hostRef);
104
+ this.observer = new MutationObserver(() => this.setTrigger());
105
+ this.debouncedUpdate = debounce(() => {
106
+ var _a;
107
+ if (!this.trigger)
108
+ return;
109
+ // add the provided id to the aria-controls list
110
+ const ariaControls = this.trigger.getAttribute('aria-controls');
111
+ if (!(ariaControls === null || ariaControls === void 0 ? void 0 : ariaControls.includes(this.for))) {
112
+ const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
113
+ this.trigger.setAttribute('aria-controls', newAriaControls);
114
+ }
115
+ // set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
116
+ const isCollapsed = (_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.collapsed;
117
+ const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
118
+ this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
119
+ });
120
+ this.for = undefined;
121
+ }
122
+ /**
123
+ * Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
124
+ */
125
+ setAriaAttributes() {
126
+ checkNonEmpty(this.for, 'The post-collapsible-trigger "for" prop is required.');
127
+ checkType(this.for, 'string', 'The post-collapsible-trigger "for" prop should be a id.');
128
+ void this.update();
129
+ }
130
+ /**
131
+ * Initiate a mutation observer that updates the trigger whenever necessary
132
+ */
133
+ connectedCallback() {
134
+ this.observer.observe(this.host, { childList: true, subtree: true });
135
+ }
136
+ /**
137
+ * Attach a "postToggle" event listener to the root node
138
+ * to update the trigger's "aria-expanded" attribute whenever the controlled post-collapsible is toggled
139
+ */
140
+ componentWillLoad() {
141
+ this.root = getRoot(this.host);
142
+ this.root.addEventListener('postToggle', (e) => {
143
+ if (!this.trigger || !e.target.isEqualNode(this.collapsible))
144
+ return;
145
+ this.trigger.setAttribute('aria-expanded', `${e.detail}`);
146
+ });
147
+ }
148
+ /**
149
+ * Add the "data-version" to the host element and set the trigger
150
+ */
151
+ componentDidLoad() {
152
+ this.host.setAttribute('data-version', version);
153
+ this.setTrigger();
154
+ if (!this.trigger)
155
+ console.warn('The post-collapsible-trigger must contain a button.');
156
+ }
157
+ /**
158
+ * Disconnect the mutation observer
159
+ */
160
+ disconnectedCallback() {
161
+ this.observer.disconnect();
162
+ }
163
+ /**
164
+ * Update the "aria-controls" and "aria-expanded" attributes on the trigger button
165
+ */
166
+ async update() {
167
+ this.debouncedUpdate();
168
+ }
169
+ /**
170
+ * Toggle the post-collapsible controlled by the trigger
171
+ */
172
+ async toggleCollapsible() {
173
+ var _a;
174
+ await ((_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.toggle());
175
+ }
176
+ /**
177
+ * Retrieve the post-collapsible controlled by the trigger
178
+ */
179
+ get collapsible() {
180
+ const ref = this.root.getElementById(this.for);
181
+ if (ref && ref.localName === 'post-collapsible') {
182
+ return ref;
183
+ }
184
+ return null;
185
+ }
186
+ /**
187
+ * Find the button and add the proper event listener and ARIA attributes to it
188
+ */
189
+ setTrigger() {
190
+ const trigger = this.host.querySelector('button');
191
+ if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
192
+ return;
193
+ this.trigger = trigger;
194
+ this.trigger.addEventListener('click', () => this.toggleCollapsible());
195
+ this.setAriaAttributes();
196
+ }
197
+ get host() { return getElement(this); }
198
+ static get watchers() { return {
199
+ "for": ["setAriaAttributes"]
200
+ }; }
201
+ };
202
+
203
+ export { PostCollapsible as P, PostCollapsibleTrigger as a };
@@ -0,0 +1,7 @@
1
+ export { P as post_collapsible, a as post_collapsible_trigger } from './post-collapsible-trigger-6f4ba350.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
4
+ import './index-d1eba94c.js';
5
+ import './constants-8d548297.js';
6
+ import './check-one-of-6b3ef8eb.js';
7
+ import './check-non-empty-58bd6b17.js';
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-9ace3232.js';
2
- export { s as setNonce } from './index-9ace3232.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-189d3985.js';
2
+ export { s as setNonce } from './index-189d3985.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.19.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-card-control",[[65,"post-card-control",{"label":[1],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1025],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"type":["validateControlType"],"checked":["updateControlChecked"],"disabled":["updateControlDisbled"]}]]],["post-popovercontainer",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-collapsible-trigger",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]]], options);
19
+ return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-card-control",[[65,"post-card-control",{"label":[1],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1025],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"type":["validateControlType"],"checked":["updateControlChecked"],"disabled":["updateControlDisbled"]}]]],["post-popovercontainer",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible_2",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[0,"post-collapsible-trigger",{"for":[1],"update":[64]},null,{"for":["setAriaAttributes"]}]]]], options);
20
20
  });
@@ -1,8 +1,7 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { c as checkEmptyOrOneOf, b as checkEmptyOrType } from './index-29d17d6d.js';
3
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index-d1eba94c.js';
3
+ import { v as version } from './package-3e4546f5.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
- import { c as checkType } from './check-type-8828dbe4.js';
6
5
 
7
6
  const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
8
7
  const PostIconStyle0 = postIconCss;
@@ -85,7 +84,7 @@ const PostIcon = class {
85
84
  })
86
85
  .filter(([_key, value]) => value !== null)
87
86
  .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
88
- return (h(Host, { key: 'c046b74af0d3cc42dcddfbd4aa029ca07be26bf8', "data-version": version }, h("span", { key: 'c49c4d2de0222c665acf1db46f8a13db26f6a26e', style: svgStyles })));
87
+ return (h(Host, { key: '95fa0f7a09d3430bb5d621e01b57188742920eb4', "data-version": version }, h("span", { key: 'c824e3705dc83665bb6f7649381654e6d1e07dfb', style: svgStyles })));
89
88
  }
90
89
  get host() { return getElement(this); }
91
90
  static get watchers() { return {
@@ -1,8 +1,7 @@
1
- export { P as post_icon } from './post-icon-f05c6d37.js';
2
- import './index-9ace3232.js';
3
- import './index-29d17d6d.js';
1
+ export { P as post_icon } from './post-icon-fe467f6a.js';
2
+ import './index-189d3985.js';
3
+ import './index-d1eba94c.js';
4
4
  import './constants-8d548297.js';
5
5
  import './check-one-of-6b3ef8eb.js';
6
- import './check-type-8828dbe4.js';
7
- import './package-91140d77.js';
6
+ import './package-3e4546f5.js';
8
7
  import './check-non-empty-58bd6b17.js';
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
3
  import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
4
4
 
5
5
  const postPopoverCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
@@ -93,7 +93,7 @@ const PostPopover = class {
93
93
  this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
94
94
  }
95
95
  render() {
96
- return (h(Host, { key: '943dbb1a0a290d281ebe0f346ccd531f8acbbb5e', "data-version": version }, h("post-popovercontainer", { key: 'aa6bf3a2cc395ce612342b78bee23bcd1b68db5e', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '3ba6f039088615157ba47ebc448770fd9128efa0', class: "popover-container" }, h("div", { key: '0472f76d0cf51269029534c29f155e0f71d649fb', class: "popover-content" }, h("slot", { key: '1d722457c871c0aac9297b0517fe077c32e73794' })), h("button", { key: '430fa605ce81aad6b8709c22a31da62cdf6022e5', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '37169089662c8ef1edd8de6389c55f9eee4e1a9e', class: "visually-hidden" }, this.closeButtonCaption))))));
96
+ return (h(Host, { key: '97db4a92db81f3a84ca272af8f79981cf181024d', "data-version": version }, h("post-popovercontainer", { key: '291247845dc11572a5722aa949c1dfa74e521edd', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '92137bf8c92633c8578c89c7b0c8252b0b59e2fa', class: "popover-container" }, h("div", { key: '06f79f59e90ca439b552380af0e151084adadf03', class: "popover-content" }, h("slot", { key: 'c37c742ac7cf24f9440ac3b862761fcd937f7658' })), h("button", { key: '0e6f316574720e0f901af56e0dbb99f86e36c5b4', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '77c41e8e8df74649ce9ca21740c77e78336905e6', class: "visually-hidden" }, this.closeButtonCaption))))));
97
97
  }
98
98
  get host() { return getElement(this); }
99
99
  };
@@ -1,4 +1,4 @@
1
- export { P as post_popover } from './post-popover-a094d059.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_popover } from './post-popover-c9998136.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
4
4
  import './attribute-observer-37fa950a.js';
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
3
 
4
4
  /**
5
5
  * Custom positioning reference element.
@@ -1210,9 +1210,9 @@ function isTopLayer(element) {
1210
1210
  }
1211
1211
  });
1212
1212
  }
1213
- function isContainingBlock(element) {
1213
+ function isContainingBlock(elementOrCss) {
1214
1214
  const webkit = isWebKit();
1215
- const css = getComputedStyle(element);
1215
+ const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
1216
1216
 
1217
1217
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1218
1218
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
@@ -1220,11 +1220,10 @@ function isContainingBlock(element) {
1220
1220
  function getContainingBlock(element) {
1221
1221
  let currentNode = getParentNode(element);
1222
1222
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1223
- if (isTopLayer(currentNode)) {
1224
- return null;
1225
- }
1226
1223
  if (isContainingBlock(currentNode)) {
1227
1224
  return currentNode;
1225
+ } else if (isTopLayer(currentNode)) {
1226
+ return null;
1228
1227
  }
1229
1228
  currentNode = getParentNode(currentNode);
1230
1229
  }
@@ -2174,9 +2173,9 @@ const PostPopovercontainer = class {
2174
2173
  }
2175
2174
  }
2176
2175
  render() {
2177
- return (h(Host, { key: '944364458c19e3a11171571402f183449dafff24', "data-version": version }, this.arrow && (h("span", { key: 'f77a61b4b6f4f4ceb861ef8eb7d16f71f45642ec', class: "arrow", ref: el => {
2176
+ return (h(Host, { key: 'd157ffbb6acb382add7b003f7865eb7c7d77a2b5', "data-version": version }, this.arrow && (h("span", { key: 'cc47843bc00d401c0679474e41661b6b1dcbae01', class: "arrow", ref: el => {
2178
2177
  this.arrowRef = el;
2179
- } })), h("slot", { key: 'feeedfe09388dca41ee1048c8702c68bd0a91d33' })));
2178
+ } })), h("slot", { key: '75eb62cf77965fa96fbb3dabcf264c2daff3e2f4' })));
2180
2179
  }
2181
2180
  get host() { return getElement(this); }
2182
2181
  };
@@ -1,3 +1,3 @@
1
- export { P as post_popovercontainer } from './post-popovercontainer-1faa005e.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_popovercontainer } from './post-popovercontainer-62ced3d7.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
2
- import { v as version } from './package-91140d77.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-189d3985.js';
2
+ import { v as version } from './package-3e4546f5.js';
3
3
 
4
4
  const postRatingCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
5
5
  const PostRatingStyle0 = postRatingCss;
@@ -71,7 +71,7 @@ const PostRating = class {
71
71
  }
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: 'b175b250377f4bf9be92ad05fb14f7e4a8f7c12f', "data-version": version }, h("div", { key: 'b12eb5ff191d5a4ac5270845f120360f61e0fce0', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
74
+ return (h(Host, { key: 'ae0484c022555a4a5ed0343cc060b7076a1c581e', "data-version": version }, h("div", { key: '3765eaaccec1dd709b28d8a63b54fc0ed69b4c15', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
75
75
  'star': true,
76
76
  'before-hover': i < this.hoveredIndex,
77
77
  'active': i < Math.round(this.currentRating),
@@ -1,3 +1,3 @@
1
- export { P as post_rating } from './post-rating-62590a88.js';
2
- import './index-9ace3232.js';
3
- import './package-91140d77.js';
1
+ export { P as post_rating } from './post-rating-49ace0e9.js';
2
+ import './index-189d3985.js';
3
+ import './package-3e4546f5.js';