@swisspost/design-system-components 9.0.1 → 9.0.3

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 (140) hide show
  1. package/dist/cjs/index.cjs.js +17 -17
  2. package/dist/cjs/{package-93f142ae.js → package-5ee5fe83.js} +1 -1
  3. package/dist/cjs/{post-accordion-60af96cf.js → post-accordion-9b899815.js} +1 -1
  4. package/dist/cjs/{post-accordion-item-744c881d.js → post-accordion-item-b6c9964a.js} +1 -1
  5. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  6. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  7. package/dist/cjs/{post-alert-2a768f58.js → post-alert-268a495d.js} +1 -1
  8. package/dist/cjs/post-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/{post-card-control-197c8e44.js → post-card-control-68ae617e.js} +1 -1
  10. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  11. package/dist/cjs/{post-collapsible-trigger-3de8fe4e.js → post-collapsible-trigger-261c2f39.js} +10 -3
  12. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
  13. package/dist/cjs/{post-icon-df629079.js → post-icon-8d216122.js} +1 -1
  14. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  15. package/dist/cjs/{post-logo-7caeb918.js → post-logo-10605a3e.js} +1 -1
  16. package/dist/cjs/post-logo.cjs.entry.js +2 -2
  17. package/dist/cjs/{post-popover-090c3d01.js → post-popover-107fb291.js} +1 -1
  18. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  19. package/dist/cjs/{post-popovercontainer-872681bf.js → post-popovercontainer-c0ff61d0.js} +99 -48
  20. package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
  21. package/dist/cjs/{post-rating-21f9c46d.js → post-rating-88558157.js} +1 -1
  22. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  23. package/dist/cjs/{post-tab-header-422d0f03.js → post-tab-header-d37d1e70.js} +1 -1
  24. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  25. package/dist/cjs/{post-tab-panel-dd58f425.js → post-tab-panel-cf6187fa.js} +1 -1
  26. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  27. package/dist/cjs/{post-tabs-83191b9a.js → post-tabs-bca7d2d7.js} +1 -1
  28. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  29. package/dist/cjs/{post-tag-c72183f2.js → post-tag-407cfc5b.js} +1 -1
  30. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  31. package/dist/cjs/{post-tooltip-782f020b.js → post-tooltip-d8f4cd0d.js} +2 -2
  32. package/dist/cjs/{post-tooltip-trigger-b2aeb636.js → post-tooltip-trigger-94e84223.js} +15 -16
  33. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
  34. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  35. package/dist/collection/animations/collapse.js +1 -1
  36. package/dist/collection/components/post-collapsible/post-collapsible.js +10 -3
  37. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  38. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +14 -15
  39. package/dist/components/package.js +1 -1
  40. package/dist/components/post-collapsible2.js +9 -2
  41. package/dist/components/post-popovercontainer2.js +98 -47
  42. package/dist/components/post-tooltip-trigger2.js +14 -15
  43. package/dist/components/post-tooltip2.js +1 -1
  44. package/dist/docs.json +1 -1
  45. package/dist/esm/index.js +17 -17
  46. package/dist/esm/{package-45827c3b.js → package-8f0ae314.js} +1 -1
  47. package/dist/esm/{post-accordion-bcfe7e61.js → post-accordion-18fa6132.js} +1 -1
  48. package/dist/esm/{post-accordion-item-8869c90b.js → post-accordion-item-419fcfe2.js} +1 -1
  49. package/dist/esm/post-accordion-item.entry.js +2 -2
  50. package/dist/esm/post-accordion.entry.js +2 -2
  51. package/dist/esm/{post-alert-21fd0068.js → post-alert-253b376b.js} +1 -1
  52. package/dist/esm/post-alert.entry.js +2 -2
  53. package/dist/esm/{post-card-control-60c132dc.js → post-card-control-0010aad4.js} +1 -1
  54. package/dist/esm/post-card-control.entry.js +2 -2
  55. package/dist/esm/{post-collapsible-trigger-3168178e.js → post-collapsible-trigger-66131243.js} +10 -3
  56. package/dist/esm/post-collapsible_2.entry.js +2 -2
  57. package/dist/esm/{post-icon-2e2e18ad.js → post-icon-b054352c.js} +1 -1
  58. package/dist/esm/post-icon.entry.js +2 -2
  59. package/dist/esm/{post-logo-f364eb72.js → post-logo-38005da6.js} +1 -1
  60. package/dist/esm/post-logo.entry.js +2 -2
  61. package/dist/esm/{post-popover-697201cd.js → post-popover-b6200ea0.js} +1 -1
  62. package/dist/esm/post-popover.entry.js +2 -2
  63. package/dist/esm/{post-popovercontainer-2b5f37fb.js → post-popovercontainer-dced2841.js} +99 -48
  64. package/dist/esm/post-popovercontainer.entry.js +2 -2
  65. package/dist/esm/{post-rating-0fd5de37.js → post-rating-a3b7e183.js} +1 -1
  66. package/dist/esm/post-rating.entry.js +2 -2
  67. package/dist/esm/{post-tab-header-c8898fa2.js → post-tab-header-49bdb6b7.js} +1 -1
  68. package/dist/esm/post-tab-header.entry.js +2 -2
  69. package/dist/esm/{post-tab-panel-6b1219e0.js → post-tab-panel-2be8c912.js} +1 -1
  70. package/dist/esm/post-tab-panel.entry.js +2 -2
  71. package/dist/esm/{post-tabs-b8ff3c5d.js → post-tabs-0695851c.js} +1 -1
  72. package/dist/esm/post-tabs.entry.js +2 -2
  73. package/dist/esm/{post-tag-83470f28.js → post-tag-92e433d8.js} +1 -1
  74. package/dist/esm/post-tag.entry.js +2 -2
  75. package/dist/esm/{post-tooltip-aa745743.js → post-tooltip-b7c47a15.js} +2 -2
  76. package/dist/esm/{post-tooltip-trigger-ce0b4106.js → post-tooltip-trigger-d6fae10a.js} +15 -16
  77. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  78. package/dist/esm/post-tooltip.entry.js +2 -2
  79. package/dist/post-components/index.esm.js +1 -1
  80. package/dist/post-components/{p-7bbcc8ee.js → p-067e9412.js} +1 -1
  81. package/dist/post-components/p-0a59a271.entry.js +1 -0
  82. package/dist/post-components/{p-9409f729.js → p-20e1604b.js} +1 -1
  83. package/dist/post-components/p-22506477.entry.js +1 -0
  84. package/dist/post-components/{p-58cbb854.entry.js → p-248aaa99.entry.js} +1 -1
  85. package/dist/post-components/p-26d034ef.entry.js +1 -0
  86. package/dist/post-components/{p-56ca6bb5.js → p-27080bfb.js} +1 -1
  87. package/dist/post-components/{p-d582cc10.js → p-2fb07f77.js} +1 -1
  88. package/dist/post-components/{p-bafc0491.js → p-3369da47.js} +1 -1
  89. package/dist/post-components/{p-5f08d625.js → p-420b004b.js} +2 -2
  90. package/dist/post-components/p-45c6f495.js +1 -0
  91. package/dist/post-components/p-50eeae43.entry.js +1 -0
  92. package/dist/post-components/p-51537cc0.entry.js +1 -0
  93. package/dist/post-components/p-54468eb1.js +1 -0
  94. package/dist/post-components/{p-b46e2451.js → p-59cbed23.js} +1 -1
  95. package/dist/post-components/p-61808438.entry.js +1 -0
  96. package/dist/post-components/p-65392ded.entry.js +1 -0
  97. package/dist/post-components/p-667d7521.entry.js +1 -0
  98. package/dist/post-components/p-72500d90.entry.js +1 -0
  99. package/dist/post-components/{p-ffd75503.js → p-815f19ca.js} +1 -1
  100. package/dist/post-components/p-8217faac.js +1 -0
  101. package/dist/post-components/p-a05b39f5.js +1 -0
  102. package/dist/post-components/p-bd58b67d.entry.js +1 -0
  103. package/dist/post-components/{p-1a48d1b0.js → p-d376359a.js} +1 -1
  104. package/dist/post-components/{p-799cf60e.js → p-e45ba9a7.js} +1 -1
  105. package/dist/post-components/{p-a07846ea.js → p-e568d74d.js} +1 -1
  106. package/dist/post-components/p-e5b6268f.entry.js +1 -0
  107. package/dist/post-components/p-ee55eec3.entry.js +1 -0
  108. package/dist/post-components/p-efd36fcb.js +1 -0
  109. package/dist/post-components/p-f589212f.entry.js +1 -0
  110. package/dist/post-components/p-f6a89108.entry.js +1 -0
  111. package/dist/post-components/p-f81fe53a.entry.js +1 -0
  112. package/dist/post-components/{p-755b2746.js → p-feeb3e96.js} +1 -1
  113. package/dist/post-components/post-components.esm.js +1 -1
  114. package/dist/types/animations/collapse.d.ts +1 -0
  115. package/loaders/package.js +1 -1
  116. package/loaders/post-collapsible2.js +9 -2
  117. package/loaders/post-popovercontainer2.js +98 -47
  118. package/loaders/post-tooltip-trigger.js +14 -15
  119. package/loaders/post-tooltip.js +1 -1
  120. package/package.json +2 -2
  121. package/dist/post-components/p-08dc45bb.entry.js +0 -1
  122. package/dist/post-components/p-2b61a526.entry.js +0 -1
  123. package/dist/post-components/p-3f5bf5d9.entry.js +0 -1
  124. package/dist/post-components/p-40e5bb56.entry.js +0 -1
  125. package/dist/post-components/p-5c557e64.js +0 -1
  126. package/dist/post-components/p-5ce2abc9.entry.js +0 -1
  127. package/dist/post-components/p-7069ac74.entry.js +0 -1
  128. package/dist/post-components/p-7cdf9571.entry.js +0 -1
  129. package/dist/post-components/p-7e4181ce.entry.js +0 -1
  130. package/dist/post-components/p-a4560368.js +0 -1
  131. package/dist/post-components/p-a503cb2c.entry.js +0 -1
  132. package/dist/post-components/p-b7207224.js +0 -1
  133. package/dist/post-components/p-c078fd94.entry.js +0 -1
  134. package/dist/post-components/p-c0aebe5e.entry.js +0 -1
  135. package/dist/post-components/p-c7e4acde.js +0 -1
  136. package/dist/post-components/p-ca71a3ff.entry.js +0 -1
  137. package/dist/post-components/p-e49f57c0.entry.js +0 -1
  138. package/dist/post-components/p-eb712f9b.entry.js +0 -1
  139. package/dist/post-components/p-eebd060d.js +0 -1
  140. package/dist/post-components/p-f7cead60.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
 
6
6
  /**
7
7
  * Custom positioning reference element.
@@ -47,8 +47,9 @@ function getOppositeAxis(axis) {
47
47
  function getAxisLength(axis) {
48
48
  return axis === 'y' ? 'height' : 'width';
49
49
  }
50
+ const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
50
51
  function getSideAxis(placement) {
51
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
52
+ return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
52
53
  }
53
54
  function getAlignmentAxis(placement) {
54
55
  return getOppositeAxis(getSideAxis(placement));
@@ -73,19 +74,19 @@ function getExpandedPlacements(placement) {
73
74
  function getOppositeAlignmentPlacement(placement) {
74
75
  return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
75
76
  }
77
+ const lrPlacement = ['left', 'right'];
78
+ const rlPlacement = ['right', 'left'];
79
+ const tbPlacement = ['top', 'bottom'];
80
+ const btPlacement = ['bottom', 'top'];
76
81
  function getSideList(side, isStart, rtl) {
77
- const lr = ['left', 'right'];
78
- const rl = ['right', 'left'];
79
- const tb = ['top', 'bottom'];
80
- const bt = ['bottom', 'top'];
81
82
  switch (side) {
82
83
  case 'top':
83
84
  case 'bottom':
84
- if (rtl) return isStart ? rl : lr;
85
- return isStart ? lr : rl;
85
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
86
+ return isStart ? lrPlacement : rlPlacement;
86
87
  case 'left':
87
88
  case 'right':
88
- return isStart ? tb : bt;
89
+ return isStart ? tbPlacement : btPlacement;
89
90
  default:
90
91
  return [];
91
92
  }
@@ -325,9 +326,10 @@ async function detectOverflow(state, options) {
325
326
  strategy
326
327
  }));
327
328
  const rect = elementContext === 'floating' ? {
328
- ...rects.floating,
329
329
  x,
330
- y
330
+ y,
331
+ width: rects.floating.width,
332
+ height: rects.floating.height
331
333
  } : rects.reference;
332
334
  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
333
335
  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
@@ -577,10 +579,12 @@ const flip$1 = function (options) {
577
579
  return {};
578
580
  }
579
581
  const side = getSide(placement);
582
+ const initialSideAxis = getSideAxis(initialPlacement);
580
583
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
581
584
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
582
585
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
583
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
586
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
587
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
584
588
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
585
589
  }
586
590
  const placements = [initialPlacement, ...fallbackPlacements];
@@ -605,16 +609,22 @@ const flip$1 = function (options) {
605
609
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
606
610
  const nextPlacement = placements[nextIndex];
607
611
  if (nextPlacement) {
608
- // Try next placement and re-run the lifecycle.
609
- return {
610
- data: {
611
- index: nextIndex,
612
- overflows: overflowsData
613
- },
614
- reset: {
615
- placement: nextPlacement
616
- }
617
- };
612
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
613
+ if (!ignoreCrossAxisOverflow ||
614
+ // We leave the current main axis only if every placement on that axis
615
+ // overflows the main axis.
616
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
617
+ // Try next placement and re-run the lifecycle.
618
+ return {
619
+ data: {
620
+ index: nextIndex,
621
+ overflows: overflowsData
622
+ },
623
+ reset: {
624
+ placement: nextPlacement
625
+ }
626
+ };
627
+ }
618
628
  }
619
629
 
620
630
  // First, find the candidates that fit on the mainAxis side of overflow,
@@ -626,8 +636,17 @@ const flip$1 = function (options) {
626
636
  switch (fallbackStrategy) {
627
637
  case 'bestFit':
628
638
  {
629
- var _overflowsData$map$so;
630
- const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
639
+ var _overflowsData$filter2;
640
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
641
+ if (hasFallbackAxisSideDirection) {
642
+ const currentSideAxis = getSideAxis(d.placement);
643
+ return currentSideAxis === initialSideAxis ||
644
+ // Create a bias to the `y` side axis due to horizontal
645
+ // reading directions favoring greater width.
646
+ currentSideAxis === 'y';
647
+ }
648
+ return true;
649
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
631
650
  if (placement) {
632
651
  resetPlacement = placement;
633
652
  }
@@ -851,6 +870,8 @@ const inline$1 = function (options) {
851
870
  };
852
871
  };
853
872
 
873
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
874
+
854
875
  // For type backwards-compatibility, the `OffsetOptions` type was also
855
876
  // Derivable.
856
877
 
@@ -864,9 +885,11 @@ async function convertValueToCoords(state, options) {
864
885
  const side = getSide(placement);
865
886
  const alignment = getAlignment(placement);
866
887
  const isVertical = getSideAxis(placement) === 'y';
867
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
888
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
868
889
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
869
890
  const rawValue = evaluate(options, state);
891
+
892
+ // eslint-disable-next-line prefer-const
870
893
  let {
871
894
  mainAxis,
872
895
  crossAxis,
@@ -876,10 +899,9 @@ async function convertValueToCoords(state, options) {
876
899
  crossAxis: 0,
877
900
  alignmentAxis: null
878
901
  } : {
879
- mainAxis: 0,
880
- crossAxis: 0,
881
- alignmentAxis: null,
882
- ...rawValue
902
+ mainAxis: rawValue.mainAxis || 0,
903
+ crossAxis: rawValue.crossAxis || 0,
904
+ alignmentAxis: rawValue.alignmentAxis
883
905
  };
884
906
  if (alignment && typeof alignmentAxis === 'number') {
885
907
  crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
@@ -1001,7 +1023,11 @@ const shift$1 = function (options) {
1001
1023
  ...limitedCoords,
1002
1024
  data: {
1003
1025
  x: limitedCoords.x - x,
1004
- y: limitedCoords.y - y
1026
+ y: limitedCoords.y - y,
1027
+ enabled: {
1028
+ [mainAxis]: checkMainAxis,
1029
+ [crossAxis]: checkCrossAxis
1030
+ }
1005
1031
  }
1006
1032
  };
1007
1033
  }
@@ -1059,7 +1085,7 @@ const limitShift$1 = function (options) {
1059
1085
  if (checkCrossAxis) {
1060
1086
  var _middlewareData$offse, _middlewareData$offse2;
1061
1087
  const len = mainAxis === 'y' ? 'width' : 'height';
1062
- const isOriginSide = ['top', 'left'].includes(getSide(placement));
1088
+ const isOriginSide = originSides.has(getSide(placement));
1063
1089
  const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
1064
1090
  const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
1065
1091
  if (crossAxisCoord < limitMin) {
@@ -1090,6 +1116,7 @@ const size$1 = function (options) {
1090
1116
  name: 'size',
1091
1117
  options,
1092
1118
  async fn(state) {
1119
+ var _state$middlewareData, _state$middlewareData2;
1093
1120
  const {
1094
1121
  placement,
1095
1122
  rects,
@@ -1117,17 +1144,18 @@ const size$1 = function (options) {
1117
1144
  widthSide = side;
1118
1145
  heightSide = alignment === 'end' ? 'top' : 'bottom';
1119
1146
  }
1120
- const overflowAvailableHeight = height - overflow[heightSide];
1121
- const overflowAvailableWidth = width - overflow[widthSide];
1147
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
1148
+ const maximumClippingWidth = width - overflow.left - overflow.right;
1149
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1150
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1122
1151
  const noShift = !state.middlewareData.shift;
1123
1152
  let availableHeight = overflowAvailableHeight;
1124
1153
  let availableWidth = overflowAvailableWidth;
1125
- if (isYAxis) {
1126
- const maximumClippingWidth = width - overflow.left - overflow.right;
1127
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
1128
- } else {
1129
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
1130
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
1154
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
1155
+ availableWidth = maximumClippingWidth;
1156
+ }
1157
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
1158
+ availableHeight = maximumClippingHeight;
1131
1159
  }
1132
1160
  if (noShift && !alignment) {
1133
1161
  const xMin = max(overflow.left, 0);
@@ -1158,6 +1186,9 @@ const size$1 = function (options) {
1158
1186
  };
1159
1187
  };
1160
1188
 
1189
+ function hasWindow() {
1190
+ return typeof window !== 'undefined';
1191
+ }
1161
1192
  function getNodeName(node) {
1162
1193
  if (isNode(node)) {
1163
1194
  return (node.nodeName || '').toLowerCase();
@@ -1176,21 +1207,30 @@ function getDocumentElement(node) {
1176
1207
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1177
1208
  }
1178
1209
  function isNode(value) {
1210
+ if (!hasWindow()) {
1211
+ return false;
1212
+ }
1179
1213
  return value instanceof Node || value instanceof getWindow(value).Node;
1180
1214
  }
1181
1215
  function isElement(value) {
1216
+ if (!hasWindow()) {
1217
+ return false;
1218
+ }
1182
1219
  return value instanceof Element || value instanceof getWindow(value).Element;
1183
1220
  }
1184
1221
  function isHTMLElement(value) {
1222
+ if (!hasWindow()) {
1223
+ return false;
1224
+ }
1185
1225
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1186
1226
  }
1187
1227
  function isShadowRoot(value) {
1188
- // Browsers without `ShadowRoot` support.
1189
- if (typeof ShadowRoot === 'undefined') {
1228
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
1190
1229
  return false;
1191
1230
  }
1192
1231
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1193
1232
  }
1233
+ const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
1194
1234
  function isOverflowElement(element) {
1195
1235
  const {
1196
1236
  overflow,
@@ -1198,26 +1238,32 @@ function isOverflowElement(element) {
1198
1238
  overflowY,
1199
1239
  display
1200
1240
  } = getComputedStyle(element);
1201
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
1241
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
1202
1242
  }
1243
+ const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
1203
1244
  function isTableElement(element) {
1204
- return ['table', 'td', 'th'].includes(getNodeName(element));
1245
+ return tableElements.has(getNodeName(element));
1205
1246
  }
1247
+ const topLayerSelectors = [':popover-open', ':modal'];
1206
1248
  function isTopLayer(element) {
1207
- return [':popover-open', ':modal'].some(selector => {
1249
+ return topLayerSelectors.some(selector => {
1208
1250
  try {
1209
1251
  return element.matches(selector);
1210
- } catch (e) {
1252
+ } catch (_e) {
1211
1253
  return false;
1212
1254
  }
1213
1255
  });
1214
1256
  }
1257
+ const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
1258
+ const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
1259
+ const containValues = ['paint', 'layout', 'strict', 'content'];
1215
1260
  function isContainingBlock(elementOrCss) {
1216
1261
  const webkit = isWebKit();
1217
1262
  const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
1218
1263
 
1219
1264
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1220
- 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));
1265
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
1266
+ return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
1221
1267
  }
1222
1268
  function getContainingBlock(element) {
1223
1269
  let currentNode = getParentNode(element);
@@ -1235,8 +1281,9 @@ function isWebKit() {
1235
1281
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
1236
1282
  return CSS.supports('-webkit-backdrop-filter', 'none');
1237
1283
  }
1284
+ const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
1238
1285
  function isLastTraversableNode(node) {
1239
- return ['html', 'body', '#document'].includes(getNodeName(node));
1286
+ return lastTraversableNodeNames.has(getNodeName(node));
1240
1287
  }
1241
1288
  function getComputedStyle(element) {
1242
1289
  return getWindow(element).getComputedStyle(element);
@@ -1290,10 +1337,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
1290
1337
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1291
1338
  const win = getWindow(scrollableAncestor);
1292
1339
  if (isBody) {
1293
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
1340
+ const frameElement = getFrameElement(win);
1341
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
1294
1342
  }
1295
1343
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1296
1344
  }
1345
+ function getFrameElement(win) {
1346
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1347
+ }
1297
1348
 
1298
1349
  function getCssDimensions(element) {
1299
1350
  const css = getComputedStyle(element);
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopovercontainer = require('./post-popovercontainer-872681bf.js');
5
+ const postPopovercontainer = require('./post-popovercontainer-c0ff61d0.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
 
6
6
  const postRatingCss = "@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\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-21f9c46d.js');
5
+ const postRating = require('./post-rating-88558157.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.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)}}@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\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}";
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabHeader = require('./post-tab-header-422d0f03.js');
5
+ const postTabHeader = require('./post-tab-header-d37d1e70.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.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-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
 
6
6
  const postTabPanelCss = ":host{display:none}";
7
7
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabPanel = require('./post-tab-panel-dd58f425.js');
5
+ const postTabPanel = require('./post-tab-panel-cf6187fa.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
  const fade = require('./fade-35a3633a.js');
6
6
 
7
7
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabs = require('./post-tabs-83191b9a.js');
5
+ const postTabs = require('./post-tabs-bca7d2d7.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
  require('./fade-35a3633a.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
 
6
6
  const postTagCss = "@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\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 */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
7
7
  const PostTagStyle0 = postTagCss;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTag = require('./post-tag-c72183f2.js');
5
+ const postTag = require('./post-tag-407cfc5b.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
 
9
9
 
10
10
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-93f142ae.js');
4
+ const _package = require('./package-5ee5fe83.js');
5
5
  const checkType = require('./check-type-64af82a9.js');
6
6
 
7
- const postTooltipCss = ":host{display:none;--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:\"\";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:200px;min-height:32px}";
7
+ const postTooltipCss = ":host{display:none;--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:\"\";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:280px;min-height:32px;word-wrap:break-word;white-space:normal}";
8
8
  const PostTooltipStyle0 = postTooltipCss;
9
9
 
10
10
  const PostTooltip = class {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
4
  const checkType = require('./check-type-64af82a9.js');
5
- const _package = require('./package-93f142ae.js');
5
+ const _package = require('./package-5ee5fe83.js');
6
6
 
7
7
  /*!
8
8
  * long-press-event - v@version@
@@ -4796,14 +4796,11 @@ const PostTooltipTrigger = class {
4796
4796
  validateControlFor() {
4797
4797
  checkType.checkType(this.for, // The actual property value
4798
4798
  'string', // The expected type
4799
- 'The "for" property must be a string' // A meaningful error message
4800
- );
4799
+ 'The "for" property must be a string');
4801
4800
  }
4802
4801
  get tooltip() {
4803
4802
  const ref = document.getElementById(this.for);
4804
- return (ref === null || ref === void 0 ? void 0 : ref.localName) === 'post-tooltip'
4805
- ? ref
4806
- : null;
4803
+ return (ref === null || ref === void 0 ? void 0 : ref.localName) === 'post-tooltip' ? ref : null;
4807
4804
  }
4808
4805
  componentDidLoad() {
4809
4806
  this.setupTrigger();
@@ -4911,22 +4908,24 @@ const PostTooltipTrigger = class {
4911
4908
  handleLeave(event) {
4912
4909
  const newTarget = event.relatedTarget;
4913
4910
  if ((this.tooltip && newTarget && this.tooltip.contains(newTarget)) ||
4914
- (newTarget === this.trigger)) {
4911
+ newTarget === this.trigger) {
4915
4912
  return;
4916
4913
  }
4917
4914
  this.interestLostHandler();
4918
4915
  }
4919
4916
  interestHandler() {
4920
4917
  var _a;
4921
- if (this.delay > 0) {
4922
- this.delayTimeout = window.setTimeout(() => {
4923
- var _a;
4918
+ if (this.trigger) {
4919
+ if (this.delay > 0) {
4920
+ this.delayTimeout = window.setTimeout(() => {
4921
+ var _a;
4922
+ (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.show(this.trigger);
4923
+ this.delayTimeout = null;
4924
+ }, this.delay);
4925
+ }
4926
+ else {
4924
4927
  (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.show(this.trigger);
4925
- this.delayTimeout = null;
4926
- }, this.delay);
4927
- }
4928
- else {
4929
- (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.show(this.trigger);
4928
+ }
4930
4929
  }
4931
4930
  }
4932
4931
  interestLostHandler() {
@@ -4938,7 +4937,7 @@ const PostTooltipTrigger = class {
4938
4937
  (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.hide();
4939
4938
  }
4940
4939
  render() {
4941
- return (index.h(index.Host, { key: 'a37c76972c4db24292fa95ddacf097055dea70f0', "data-version": _package.version }, index.h("slot", { key: '51de3cd7dedfc1c5fe5ef86fbf0ab953d07945cb', onSlotchange: () => this.handleSlotChange() })));
4940
+ return (index.h(index.Host, { key: '5e30c67f3ac854cb8c589978319ded51673c3380', "data-version": _package.version }, index.h("slot", { key: '3aea5ba44638a4b2b904125c10bd22b9c20474f3', onSlotchange: () => this.handleSlotChange() })));
4942
4941
  }
4943
4942
  get host() { return index.getElement(this); }
4944
4943
  static get watchers() { return {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTooltipTrigger = require('./post-tooltip-trigger-b2aeb636.js');
5
+ const postTooltipTrigger = require('./post-tooltip-trigger-94e84223.js');
6
6
  require('./index-e1f32cce.js');
7
7
  require('./check-type-64af82a9.js');
8
- require('./package-93f142ae.js');
8
+ require('./package-5ee5fe83.js');
9
9
 
10
10
 
11
11
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTooltip = require('./post-tooltip-782f020b.js');
5
+ const postTooltip = require('./post-tooltip-d8f4cd0d.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-93f142ae.js');
7
+ require('./package-5ee5fe83.js');
8
8
  require('./check-type-64af82a9.js');
9
9
 
10
10
 
@@ -1,6 +1,6 @@
1
1
  const collapseDuration = 350;
2
2
  const collapseEasing = 'ease';
3
- const collapsedKeyframe = { height: '0', overflow: 'hidden' };
3
+ export const collapsedKeyframe = { height: '0', overflow: 'hidden' };
4
4
  const animationOptions = {
5
5
  duration: collapseDuration,
6
6
  easing: collapseEasing,
@@ -1,6 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { version } from "../../../../package";
3
- import { collapse, expand } from "../../animations/collapse";
3
+ import { collapse, collapsedKeyframe, expand } from "../../animations/collapse";
4
4
  import { checkEmptyOrType, isMotionReduced } from "../../utils/index";
5
5
  /**
6
6
  * @slot default - Slot for placing content within the collapsible element.
@@ -13,7 +13,14 @@ export class PostCollapsible {
13
13
  }
14
14
  collapsedChange() {
15
15
  checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
16
- void this.toggle(!this.collapsed);
16
+ if (!this.isLoaded) {
17
+ const expandedKeyframe = { height: 'auto', overflow: 'visible' };
18
+ Object.assign(this.host.style, this.collapsed ? collapsedKeyframe : expandedKeyframe);
19
+ this.isOpen = !this.collapsed;
20
+ }
21
+ else {
22
+ void this.toggle(!this.collapsed);
23
+ }
17
24
  }
18
25
  componentDidLoad() {
19
26
  this.collapsedChange();
@@ -47,7 +54,7 @@ export class PostCollapsible {
47
54
  triggers.forEach(trigger => trigger.update());
48
55
  }
49
56
  render() {
50
- return (h(Host, { key: '27c09f5612f7a2ef48c3ed97bfae29a8c9ea78ca', "data-version": version }, h("slot", { key: 'df30089afa0ff33d945dcb4c381ac08acb7cb08c' })));
57
+ return (h(Host, { key: 'ca849a2c9845cca621404f364dfd3973e3883309', "data-version": version }, h("slot", { key: '276f555d524d9c22856146611df3de69303511e4' })));
51
58
  }
52
59
  static get is() { return "post-collapsible"; }
53
60
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- :host{display:none;--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:200px;min-height:32px}
1
+ :host{display:none;--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:280px;min-height:32px;word-wrap:break-word;white-space:normal}