@swisspost/design-system-components 7.3.1 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/cjs/index.cjs.js +16 -17
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{package-53cbf42f.js → package-71dcbbc9.js} +1 -1
  4. package/dist/cjs/{post-accordion-605d195b.js → post-accordion-2e943f0a.js} +1 -1
  5. package/dist/cjs/{post-accordion-item-7ef44a1d.js → post-accordion-item-d1fcd3f9.js} +4 -5
  6. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  7. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/{post-alert-bd5a1e4e.js → post-alert-966b3652.js} +1 -1
  9. package/dist/cjs/post-alert.cjs.entry.js +2 -2
  10. package/dist/cjs/{post-card-control-53c3d28b.js → post-card-control-e2cf1596.js} +1 -1
  11. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  12. package/dist/cjs/{post-collapsible-cd75e40d.js → post-collapsible-cff3bb05.js} +11 -13
  13. package/dist/cjs/post-collapsible-trigger-e5616d29.js +115 -0
  14. package/dist/cjs/post-collapsible-trigger.cjs.entry.js +2 -2
  15. package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
  16. package/dist/cjs/post-components.cjs.js +1 -1
  17. package/dist/cjs/{post-icon-d48388ba.js → post-icon-6985373c.js} +1 -1
  18. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  19. package/dist/cjs/{post-popover-a069b3b4.js → post-popover-1282c9b2.js} +1 -1
  20. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  21. package/dist/cjs/{post-popovercontainer-6ba9ea5a.js → post-popovercontainer-776f4985.js} +1 -1
  22. package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
  23. package/dist/cjs/{post-rating-8ef7415c.js → post-rating-98917b60.js} +1 -1
  24. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  25. package/dist/cjs/{post-tab-header-bbffefab.js → post-tab-header-63ea6bb6.js} +2 -2
  26. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  27. package/dist/cjs/{post-tab-panel-47161846.js → post-tab-panel-01d55249.js} +1 -1
  28. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  29. package/dist/cjs/{post-tabs-818dea1a.js → post-tabs-7ec0c376.js} +1 -1
  30. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  31. package/dist/cjs/{post-tag-df4341a7.js → post-tag-92eaefd1.js} +1 -1
  32. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  33. package/dist/cjs/{post-tooltip-79da02f1.js → post-tooltip-69ba6116.js} +11 -6
  34. package/dist/cjs/post-tooltip.cjs.entry.js +2 -3
  35. package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -9
  36. package/dist/collection/components/post-collapsible/post-collapsible.js +12 -14
  37. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  38. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  39. package/dist/components/package.js +1 -1
  40. package/dist/components/post-accordion-item2.js +5 -7
  41. package/dist/components/post-collapsible-trigger2.js +2 -188167
  42. package/dist/components/post-collapsible2.js +12 -14
  43. package/dist/components/post-tab-header2.js +1 -1
  44. package/dist/components/post-tooltip2.js +6 -1
  45. package/dist/docs.json +6 -6
  46. package/dist/esm/index.js +16 -17
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/{package-69bb682d.js → package-130b6199.js} +1 -1
  49. package/dist/esm/{post-accordion-72c9f9ab.js → post-accordion-01612666.js} +1 -1
  50. package/dist/esm/{post-accordion-item-41ec1425.js → post-accordion-item-e2e83306.js} +4 -5
  51. package/dist/esm/post-accordion-item.entry.js +2 -2
  52. package/dist/esm/post-accordion.entry.js +2 -2
  53. package/dist/esm/{post-alert-8b7ad6b5.js → post-alert-e7b70927.js} +1 -1
  54. package/dist/esm/post-alert.entry.js +2 -2
  55. package/dist/esm/{post-card-control-cc8a0a71.js → post-card-control-262467c4.js} +1 -1
  56. package/dist/esm/post-card-control.entry.js +2 -2
  57. package/dist/esm/{post-collapsible-0843e3b2.js → post-collapsible-301ba5ad.js} +11 -13
  58. package/dist/esm/post-collapsible-trigger-964d5490.js +113 -0
  59. package/dist/esm/post-collapsible-trigger.entry.js +2 -2
  60. package/dist/esm/post-collapsible.entry.js +2 -2
  61. package/dist/esm/post-components.js +1 -1
  62. package/dist/esm/{post-icon-2ece5353.js → post-icon-46602aa6.js} +1 -1
  63. package/dist/esm/post-icon.entry.js +2 -2
  64. package/dist/esm/{post-popover-54f23917.js → post-popover-927903a2.js} +1 -1
  65. package/dist/esm/post-popover.entry.js +2 -2
  66. package/dist/esm/{post-popovercontainer-0da2336b.js → post-popovercontainer-348970cd.js} +1 -1
  67. package/dist/esm/post-popovercontainer.entry.js +2 -2
  68. package/dist/esm/{post-rating-89feb730.js → post-rating-a1832399.js} +1 -1
  69. package/dist/esm/post-rating.entry.js +2 -2
  70. package/dist/esm/{post-tab-header-8f531b2d.js → post-tab-header-9d6e4d52.js} +2 -2
  71. package/dist/esm/post-tab-header.entry.js +2 -2
  72. package/dist/esm/{post-tab-panel-5d3cf744.js → post-tab-panel-0870e77c.js} +1 -1
  73. package/dist/esm/post-tab-panel.entry.js +2 -2
  74. package/dist/esm/{post-tabs-d8ffb9fc.js → post-tabs-3b8719a9.js} +1 -1
  75. package/dist/esm/post-tabs.entry.js +2 -2
  76. package/dist/esm/{post-tag-50b397fb.js → post-tag-695a9337.js} +1 -1
  77. package/dist/esm/post-tag.entry.js +2 -2
  78. package/dist/esm/{post-tooltip-68e640ea.js → post-tooltip-8486e928.js} +7 -2
  79. package/dist/esm/post-tooltip.entry.js +2 -3
  80. package/dist/post-components/index.esm.js +1 -1
  81. package/dist/post-components/p-0026e697.js +1 -0
  82. package/dist/post-components/{p-07d804f9.js → p-33dd9887.js} +1 -1
  83. package/dist/post-components/{p-f182a1ec.js → p-3d1fd819.js} +1 -1
  84. package/dist/post-components/{p-bfced2a9.js → p-458d8198.js} +3 -3
  85. package/dist/post-components/p-4806190f.entry.js +1 -0
  86. package/dist/post-components/{p-5b029cef.js → p-48fcde73.js} +1 -1
  87. package/dist/post-components/p-49100c44.js +1 -0
  88. package/dist/post-components/{p-7ae5e122.js → p-50fdd908.js} +1 -1
  89. package/dist/post-components/p-51bb8d8c.entry.js +1 -0
  90. package/dist/post-components/p-5bfe2065.entry.js +1 -0
  91. package/dist/post-components/p-5cdfdfed.entry.js +1 -0
  92. package/dist/post-components/p-627e0231.js +1 -0
  93. package/dist/post-components/p-6cac6cc0.entry.js +1 -0
  94. package/dist/post-components/p-6f325f35.entry.js +1 -0
  95. package/dist/post-components/p-7755c753.entry.js +1 -0
  96. package/dist/post-components/{p-1fdb9650.js → p-811910a2.js} +1 -1
  97. package/dist/post-components/p-8386ab9c.js +1 -0
  98. package/dist/post-components/p-8dc5e169.entry.js +1 -0
  99. package/dist/post-components/{p-089ae111.js → p-9828b437.js} +1 -1
  100. package/dist/post-components/{p-10312d6a.js → p-a747b0b7.js} +1 -1
  101. package/dist/post-components/{p-52689eda.js → p-acec5895.js} +1 -1
  102. package/dist/post-components/p-b1b2f9ee.entry.js +1 -0
  103. package/dist/post-components/{p-7b552d03.js → p-b91ff66f.js} +1 -1
  104. package/dist/post-components/p-bb764dd3.entry.js +1 -0
  105. package/dist/post-components/p-bdc9668f.entry.js +1 -0
  106. package/dist/post-components/p-c6e4522d.js +1 -0
  107. package/dist/post-components/p-c860a676.entry.js +1 -0
  108. package/dist/post-components/p-e1456b01.entry.js +1 -0
  109. package/dist/post-components/p-f31d7fcb.entry.js +1 -0
  110. package/dist/post-components/p-f52a3908.entry.js +1 -0
  111. package/dist/post-components/{p-c864d978.js → p-feb6ff21.js} +1 -1
  112. package/dist/post-components/post-components.esm.js +1 -1
  113. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -3
  114. package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -4
  115. package/dist/types/components.d.ts +4 -4
  116. package/package.json +2 -2
  117. package/dist/cjs/_commonjsHelpers-8f2c79cd.js +0 -31
  118. package/dist/cjs/post-collapsible-trigger-ed6c0795.js +0 -188280
  119. package/dist/components/_commonjsHelpers.js +0 -26
  120. package/dist/esm/_commonjsHelpers-24671825.js +0 -26
  121. package/dist/esm/post-collapsible-trigger-84e583ca.js +0 -188278
  122. package/dist/post-components/p-0c187871.entry.js +0 -1
  123. package/dist/post-components/p-1a5c4d94.entry.js +0 -1
  124. package/dist/post-components/p-3321c9c3.entry.js +0 -1
  125. package/dist/post-components/p-49e1201f.entry.js +0 -1
  126. package/dist/post-components/p-5307d14c.js +0 -1
  127. package/dist/post-components/p-55c84c0e.entry.js +0 -1
  128. package/dist/post-components/p-5a9ac1ae.entry.js +0 -1
  129. package/dist/post-components/p-5ab360e7.entry.js +0 -1
  130. package/dist/post-components/p-6b9f6348.js +0 -1
  131. package/dist/post-components/p-6fc42a7d.js +0 -1
  132. package/dist/post-components/p-711b21e6.js +0 -1
  133. package/dist/post-components/p-756f9aa2.entry.js +0 -1
  134. package/dist/post-components/p-7c38df68.entry.js +0 -1
  135. package/dist/post-components/p-94c3e483.js +0 -20
  136. package/dist/post-components/p-992dbdb4.entry.js +0 -1
  137. package/dist/post-components/p-b91cf0cd.entry.js +0 -1
  138. package/dist/post-components/p-b921895c.entry.js +0 -1
  139. package/dist/post-components/p-bb0366cd.entry.js +0 -1
  140. package/dist/post-components/p-e4ac3e01.entry.js +0 -1
  141. package/dist/post-components/p-f0fbe328.entry.js +0 -1
  142. package/dist/post-components/p-ff86b519.js +0 -1
@@ -2,23 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postAccordion = require('./post-accordion-605d195b.js');
6
- const postAccordionItem = require('./post-accordion-item-7ef44a1d.js');
7
- const postAlert = require('./post-alert-bd5a1e4e.js');
8
- const postCardControl = require('./post-card-control-53c3d28b.js');
9
- const postCollapsible = require('./post-collapsible-cd75e40d.js');
10
- const postCollapsibleTrigger = require('./post-collapsible-trigger-ed6c0795.js');
11
- const postIcon = require('./post-icon-d48388ba.js');
12
- const postPopover = require('./post-popover-a069b3b4.js');
13
- const postPopovercontainer = require('./post-popovercontainer-6ba9ea5a.js');
14
- const postRating = require('./post-rating-8ef7415c.js');
15
- const postTabs = require('./post-tabs-818dea1a.js');
16
- const postTabHeader = require('./post-tab-header-bbffefab.js');
17
- const postTabPanel = require('./post-tab-panel-47161846.js');
18
- const postTooltip = require('./post-tooltip-79da02f1.js');
19
- const postTag = require('./post-tag-df4341a7.js');
5
+ const postAccordion = require('./post-accordion-2e943f0a.js');
6
+ const postAccordionItem = require('./post-accordion-item-d1fcd3f9.js');
7
+ const postAlert = require('./post-alert-966b3652.js');
8
+ const postCardControl = require('./post-card-control-e2cf1596.js');
9
+ const postCollapsible = require('./post-collapsible-cff3bb05.js');
10
+ const postCollapsibleTrigger = require('./post-collapsible-trigger-e5616d29.js');
11
+ const postIcon = require('./post-icon-6985373c.js');
12
+ const postPopover = require('./post-popover-1282c9b2.js');
13
+ const postPopovercontainer = require('./post-popovercontainer-776f4985.js');
14
+ const postRating = require('./post-rating-98917b60.js');
15
+ const postTabs = require('./post-tabs-7ec0c376.js');
16
+ const postTabHeader = require('./post-tab-header-63ea6bb6.js');
17
+ const postTabPanel = require('./post-tab-panel-01d55249.js');
18
+ const postTooltip = require('./post-tooltip-69ba6116.js');
19
+ const postTag = require('./post-tag-92eaefd1.js');
20
20
  require('./index-1cc8e4e1.js');
21
- require('./package-53cbf42f.js');
21
+ require('./package-71dcbbc9.js');
22
22
  require('./heading-levels-608d432e.js');
23
23
  require('./check-one-of-f4f5d0c0.js');
24
24
  require('./index-f32e5185.js');
@@ -26,7 +26,6 @@ require('./constants-238701d3.js');
26
26
  require('./check-type-64af82a9.js');
27
27
  require('./fade-35a3633a.js');
28
28
  require('./check-non-empty-eeaa8f77.js');
29
- require('./_commonjsHelpers-8f2c79cd.js');
30
29
  require('./attribute-observer-10f08c04.js');
31
30
 
32
31
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion.cjs",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-collapsible-trigger.cjs",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[4],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon.cjs",[[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);
11
+ return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion.cjs",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-collapsible-trigger.cjs",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}]]],["post-icon.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "7.3.1";
3
+ const version = "7.4.1";
4
4
 
5
5
  exports.version = version;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const headingLevels = require('./heading-levels-608d432e.js');
6
6
  const checkOneOf = require('./check-one-of-f4f5d0c0.js');
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const headingLevels = require('./heading-levels-608d432e.js');
6
6
  const index$1 = require('./index-f32e5185.js');
7
7
 
@@ -12,7 +12,6 @@ const PostAccordionItem = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.id = undefined;
15
- this.isOpen = undefined;
16
15
  this.collapsed = false;
17
16
  this.headingLevel = 2;
18
17
  }
@@ -23,12 +22,12 @@ const PostAccordionItem = class {
23
22
  this.validateHeadingLevel();
24
23
  }
25
24
  componentWillLoad() {
26
- this.isOpen = !this.collapsed;
27
25
  this.id = this.host.id || `a${crypto.randomUUID()}`;
28
26
  }
27
+ // capture to make sure the "collapsed" property is updated before the event is consumed
29
28
  onCollapseToggle(event) {
30
29
  if (event.target.localName === 'post-accordion-item') {
31
- this.isOpen = event.detail;
30
+ this.collapsed = !event.detail;
32
31
  }
33
32
  }
34
33
  /**
@@ -40,7 +39,7 @@ const PostAccordionItem = class {
40
39
  render() {
41
40
  var _a;
42
41
  const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
43
- return (index.h(index.Host, { key: 'e45b2ab47cfc1e6195080edde87938f6567f5a98', id: this.id, "data-version": _package.version }, index.h("div", { key: 'd9758adaa568f973bdee728411e935aae3e4bafc', part: "accordion-item", class: "accordion-item" }, index.h(HeadingTag, { key: '2890b79baf5a28de9c6ed07a8daf10c8a85d0487', class: "accordion-header", id: `${this.id}--header` }, index.h("button", { key: '6838f109b913a55c58399883eab07197b6f975f7', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, index.h("slot", { key: '5fb0fb5dfb3dee14f81c3893ff4fc174d6c87d32', name: "header" }))), index.h("post-collapsible", { key: '6668cd6e3311033f4bdbcf3d070b79f8cedcc52e', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, index.h("div", { key: '764eb9e10a22d49e75271b76f2cde439b336eb44', class: "accordion-body" }, index.h("slot", { key: 'aef9bdb1ac0282b762c2d43f4b46d033398bbcae' }))))));
42
+ return (index.h(index.Host, { key: 'd021bf895019606800fa6cf3a85a2ea0a2fea7e4', id: this.id, "data-version": _package.version }, index.h("div", { key: '8a78f2511889eb90d2cbdccf00f76802e043a1e7', part: "accordion-item", class: "accordion-item" }, index.h(HeadingTag, { key: '15c6f07e53179d669f71d6232dad30b77903ae15', class: "accordion-header", id: `${this.id}--header` }, index.h("button", { key: '59b0ac3109ab8b0da0de914898551dc453eb807e', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${!this.collapsed}`, class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, onClick: () => this.toggle(), type: "button" }, index.h("slot", { key: '9cdac36ffca69fd85437b4eaddf1ea707b3655e3', name: "header" }))), index.h("post-collapsible", { key: '4c4ec07c214e972975672f6c41b3a33b418969df', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, index.h("div", { key: '619f81dc481230eecbc83f9078edeb6a60e6b52f', class: "accordion-body" }, index.h("slot", { key: '76117f156050fd17fc4acec2d429f57640d6c951' }))))));
44
43
  }
45
44
  get host() { return index.getElement(this); }
46
45
  static get watchers() { return {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postAccordionItem = require('./post-accordion-item-7ef44a1d.js');
5
+ const postAccordionItem = require('./post-accordion-item-d1fcd3f9.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./heading-levels-608d432e.js');
9
9
  require('./index-f32e5185.js');
10
10
  require('./constants-238701d3.js');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postAccordion = require('./post-accordion-605d195b.js');
5
+ const postAccordion = require('./post-accordion-2e943f0a.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./heading-levels-608d432e.js');
9
9
  require('./check-one-of-f4f5d0c0.js');
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const fade = require('./fade-35a3633a.js');
6
6
  const index$1 = require('./index-f32e5185.js');
7
7
  const checkType = require('./check-type-64af82a9.js');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postAlert = require('./post-alert-bd5a1e4e.js');
5
+ const postAlert = require('./post-alert-966b3652.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./fade-35a3633a.js');
9
9
  require('./index-f32e5185.js');
10
10
  require('./constants-238701d3.js');
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-1cc8e4e1.js');
4
4
  const checkOneOf = require('./check-one-of-f4f5d0c0.js');
5
5
  const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
6
- const _package = require('./package-53cbf42f.js');
6
+ const _package = require('./package-71dcbbc9.js');
7
7
 
8
8
  function parse(scss) {
9
9
  return Object.entries(scss).reduce((object, [path, value]) => {
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postCardControl = require('./post-card-control-53c3d28b.js');
5
+ const postCardControl = require('./post-card-control-e2cf1596.js');
6
6
  require('./index-1cc8e4e1.js');
7
7
  require('./check-one-of-f4f5d0c0.js');
8
8
  require('./check-non-empty-eeaa8f77.js');
9
9
  require('./constants-238701d3.js');
10
- require('./package-53cbf42f.js');
10
+ require('./package-71dcbbc9.js');
11
11
 
12
12
 
13
13
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const index$1 = require('./index-f32e5185.js');
6
6
 
7
7
  function isMotionReduced() {
@@ -37,15 +37,12 @@ const PostCollapsible = class {
37
37
  this.isOpen = true;
38
38
  this.collapsed = false;
39
39
  }
40
- validateCollapsed(newValue = this.collapsed) {
41
- index$1.checkEmptyOrType(newValue, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
42
- }
43
- connectedCallback() {
44
- this.validateCollapsed();
40
+ collapsedChange() {
41
+ index$1.checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
42
+ void this.toggle(!this.collapsed);
45
43
  }
46
44
  componentDidLoad() {
47
- if (this.collapsed)
48
- void this.toggle(false);
45
+ this.collapsedChange();
49
46
  this.isLoaded = true;
50
47
  this.updateTriggers();
51
48
  }
@@ -57,15 +54,16 @@ const PostCollapsible = class {
57
54
  async toggle(open = !this.isOpen) {
58
55
  if (open === this.isOpen)
59
56
  return open;
60
- this.isOpen = !this.isOpen;
57
+ this.isOpen = open;
58
+ this.collapsed = !open;
61
59
  if (this.isLoaded)
62
- this.postToggle.emit(this.isOpen);
60
+ this.postToggle.emit(open);
63
61
  const animation = open ? expand(this.host) : collapse(this.host);
64
62
  if (!this.isLoaded || isMotionReduced())
65
63
  animation.finish();
66
64
  await animation.finished;
67
65
  animation.commitStyles();
68
- return this.isOpen;
66
+ return open;
69
67
  }
70
68
  /**
71
69
  * Update all post-collapsible-trigger elements referring to the collapsible
@@ -75,11 +73,11 @@ const PostCollapsible = class {
75
73
  triggers.forEach(trigger => trigger.update());
76
74
  }
77
75
  render() {
78
- return (index.h(index.Host, { key: 'c24a0524427d6ec5a3a57e12300a5af4cc047a71', "data-version": _package.version }, index.h("slot", { key: '4d41b67a18ca43acfa0e9ef208c07fa7882baba2' })));
76
+ return (index.h(index.Host, { key: 'b86f11ba3139c76bb077ef9f634afaaf7ab62ef5', "data-version": _package.version }, index.h("slot", { key: '0f3a8275a8c6a41bfa97b59ee567c3c0da8e84d0' })));
79
77
  }
80
78
  get host() { return index.getElement(this); }
81
79
  static get watchers() { return {
82
- "collapsed": ["validateCollapsed"]
80
+ "collapsed": ["collapsedChange"]
83
81
  }; }
84
82
  };
85
83
  PostCollapsible.style = PostCollapsibleStyle0;
@@ -0,0 +1,115 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-1cc8e4e1.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
+ const checkType = require('./check-type-64af82a9.js');
6
+ const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
7
+
8
+ function debounce(callback, timeout = 200) {
9
+ let id;
10
+ return (...args) => {
11
+ if (id)
12
+ clearTimeout(id);
13
+ id = setTimeout(callback, timeout, ...args);
14
+ };
15
+ }
16
+
17
+ const PostCollapsibleTrigger = class {
18
+ constructor(hostRef) {
19
+ index.registerInstance(this, hostRef);
20
+ this.observer = new MutationObserver(() => this.setTrigger());
21
+ this.debouncedUpdate = debounce(() => {
22
+ var _a;
23
+ if (!this.trigger)
24
+ return;
25
+ // add the provided id to the aria-controls list
26
+ const ariaControls = this.trigger.getAttribute('aria-controls');
27
+ if (!(ariaControls === null || ariaControls === void 0 ? void 0 : ariaControls.includes(this.for))) {
28
+ const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
29
+ this.trigger.setAttribute('aria-controls', newAriaControls);
30
+ }
31
+ // set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
32
+ const isCollapsed = (_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.collapsed;
33
+ const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
34
+ this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
35
+ });
36
+ this.for = undefined;
37
+ }
38
+ /**
39
+ * Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
40
+ */
41
+ setAriaAttributes() {
42
+ checkNonEmpty.checkNonEmpty(this.for, 'The post-collapsible-trigger "for" prop is required.');
43
+ checkType.checkType(this.for, 'string', 'The post-collapsible-trigger "for" prop should be a id.');
44
+ void this.update();
45
+ }
46
+ /**
47
+ * Initiate a mutation observer that updates the trigger whenever necessary
48
+ */
49
+ connectedCallback() {
50
+ this.observer.observe(this.host, { childList: true, subtree: true });
51
+ }
52
+ /**
53
+ * Add the "data-version" to the host element and set the trigger
54
+ */
55
+ componentDidLoad() {
56
+ this.host.setAttribute('data-version', _package.version);
57
+ this.setTrigger();
58
+ if (!this.trigger)
59
+ console.warn('The post-collapsible-trigger must contain a button.');
60
+ }
61
+ /**
62
+ * Disconnect the mutation observer
63
+ */
64
+ disconnectedCallback() {
65
+ this.observer.disconnect();
66
+ }
67
+ /**
68
+ * Update the "aria-expanded" attribute on the trigger anytime the controlled post-collapsible is toggled
69
+ */
70
+ setAriaExpanded(e) {
71
+ if (!this.trigger || !e.target.isEqualNode(this.collapsible))
72
+ return;
73
+ this.trigger.setAttribute('aria-expanded', `${e.detail}`);
74
+ }
75
+ /**
76
+ * Update the "aria-controls" and "aria-expanded" attributes on the trigger button
77
+ */
78
+ async update() {
79
+ this.debouncedUpdate();
80
+ }
81
+ /**
82
+ * Toggle the post-collapsible controlled by the trigger
83
+ */
84
+ async toggleCollapsible() {
85
+ var _a;
86
+ await ((_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.toggle());
87
+ }
88
+ /**
89
+ * Retrieve the post-collapsible controlled by the trigger
90
+ */
91
+ get collapsible() {
92
+ const ref = document.getElementById(this.for);
93
+ if (ref && ref.localName === 'post-collapsible') {
94
+ return ref;
95
+ }
96
+ return null;
97
+ }
98
+ /**
99
+ * Find the button and add the proper event listener and ARIA attributes to it
100
+ */
101
+ setTrigger() {
102
+ const trigger = this.host.querySelector('button');
103
+ if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
104
+ return;
105
+ this.trigger = trigger;
106
+ this.trigger.addEventListener('click', () => this.toggleCollapsible());
107
+ this.setAriaAttributes();
108
+ }
109
+ get host() { return index.getElement(this); }
110
+ static get watchers() { return {
111
+ "for": ["setAriaAttributes"]
112
+ }; }
113
+ };
114
+
115
+ exports.PostCollapsibleTrigger = PostCollapsibleTrigger;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postCollapsibleTrigger = require('./post-collapsible-trigger-ed6c0795.js');
5
+ const postCollapsibleTrigger = require('./post-collapsible-trigger-e5616d29.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./_commonjsHelpers-8f2c79cd.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./check-type-64af82a9.js');
9
9
  require('./check-non-empty-eeaa8f77.js');
10
10
  require('./constants-238701d3.js');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postCollapsible = require('./post-collapsible-cd75e40d.js');
5
+ const postCollapsible = require('./post-collapsible-cff3bb05.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./index-f32e5185.js');
9
9
  require('./constants-238701d3.js');
10
10
  require('./check-one-of-f4f5d0c0.js');
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion.cjs",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-collapsible-trigger.cjs",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[4],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon.cjs",[[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);
22
+ return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion.cjs",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-collapsible-trigger.cjs",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}]]],["post-icon.cjs",[[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);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
4
  const index$1 = require('./index-f32e5185.js');
5
- const _package = require('./package-53cbf42f.js');
5
+ const _package = require('./package-71dcbbc9.js');
6
6
  const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
7
7
  const checkType = require('./check-type-64af82a9.js');
8
8
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postIcon = require('./post-icon-d48388ba.js');
5
+ const postIcon = require('./post-icon-6985373c.js');
6
6
  require('./index-1cc8e4e1.js');
7
7
  require('./index-f32e5185.js');
8
8
  require('./constants-238701d3.js');
9
9
  require('./check-one-of-f4f5d0c0.js');
10
10
  require('./check-type-64af82a9.js');
11
- require('./package-53cbf42f.js');
11
+ require('./package-71dcbbc9.js');
12
12
  require('./check-non-empty-eeaa8f77.js');
13
13
 
14
14
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const attributeObserver = require('./attribute-observer-10f08c04.js');
6
6
 
7
7
  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}";
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopover = require('./post-popover-a069b3b4.js');
5
+ const postPopover = require('./post-popover-1282c9b2.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./attribute-observer-10f08c04.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
 
6
6
  /**
7
7
  * Custom positioning reference element.
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopovercontainer = require('./post-popovercontainer-6ba9ea5a.js');
5
+ const postPopovercontainer = require('./post-popovercontainer-776f4985.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
 
6
6
  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%)}";
7
7
  const PostRatingStyle0 = postRatingCss;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postRating = require('./post-rating-8ef7415c.js');
5
+ const postRating = require('./post-rating-98917b60.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
  const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
6
6
 
7
7
  const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}: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]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}: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]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\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:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}";
@@ -20,7 +20,7 @@ const PostTabHeader = class {
20
20
  this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
21
21
  }
22
22
  render() {
23
- return (index.h(index.Host, { key: '543284f0251b7edff35b0fc4f260c7ba1447d57a', id: this.tabId, role: "tab", "data-version": _package.version, "aria-selected": "false", tabindex: "-1", class: "tab-title" }, index.h("slot", { key: 'c8ed807ea7fbd6fd5ab0e06724fd49852c5e15bf' })));
23
+ return (index.h(index.Host, { key: '1919a7a1f11ac0898b16e8fa4791d93ffd1fb1c4', id: this.tabId, role: "tab", "data-version": _package.version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, index.h("slot", { key: '8d57e8e1883f4dd96db6edfb0e0a4519cc348a3c' })));
24
24
  }
25
25
  get host() { return index.getElement(this); }
26
26
  static get watchers() { return {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabHeader = require('./post-tab-header-bbffefab.js');
5
+ const postTabHeader = require('./post-tab-header-63ea6bb6.js');
6
6
  require('./index-1cc8e4e1.js');
7
- require('./package-53cbf42f.js');
7
+ require('./package-71dcbbc9.js');
8
8
  require('./check-non-empty-eeaa8f77.js');
9
9
  require('./constants-238701d3.js');
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-53cbf42f.js');
4
+ const _package = require('./package-71dcbbc9.js');
5
5
 
6
6
  const postTabPanelCss = ":host{display:none}";
7
7
  const PostTabPanelStyle0 = postTabPanelCss;