@swisspost/design-system-components 7.4.1 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/cjs/{index-f32e5185.js → index-a1440961.js} +15 -2
  2. package/dist/cjs/{index-1cc8e4e1.js → index-baad16da.js} +8 -17
  3. package/dist/cjs/index.cjs.js +18 -20
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{package-71dcbbc9.js → package-fd539ea9.js} +1 -1
  6. package/dist/cjs/{post-accordion-2e943f0a.js → post-accordion-bebb0498.js} +2 -2
  7. package/dist/cjs/{post-accordion-item-d1fcd3f9.js → post-accordion-item-b15bcbb9.js} +4 -4
  8. package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
  9. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/{post-alert-966b3652.js → post-alert-4a1ab7e3.js} +9 -10
  11. package/dist/cjs/post-alert.cjs.entry.js +4 -5
  12. package/dist/cjs/{post-card-control-e2cf1596.js → post-card-control-c363c793.js} +4 -4
  13. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  14. package/dist/cjs/post-collapsible-trigger-b82b368e.js +206 -0
  15. package/dist/cjs/{post-collapsible-trigger.cjs.entry.js → post-collapsible_2.cjs.entry.js} +7 -5
  16. package/dist/cjs/post-components.cjs.js +3 -3
  17. package/dist/cjs/{post-icon-6985373c.js → post-icon-36f7a65e.js} +5 -6
  18. package/dist/cjs/post-icon.cjs.entry.js +4 -5
  19. package/dist/cjs/{post-popover-1282c9b2.js → post-popover-eb936464.js} +3 -3
  20. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  21. package/dist/cjs/{post-popovercontainer-776f4985.js → post-popovercontainer-ba97a4b4.js} +8 -9
  22. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  23. package/dist/cjs/{post-rating-98917b60.js → post-rating-1df2edf5.js} +3 -3
  24. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  25. package/dist/cjs/{post-tab-header-63ea6bb6.js → post-tab-header-52ce1af4.js} +3 -3
  26. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  27. package/dist/cjs/{post-tab-panel-01d55249.js → post-tab-panel-e94c9c58.js} +3 -3
  28. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  29. package/dist/cjs/{post-tabs-7ec0c376.js → post-tabs-af38f271.js} +3 -3
  30. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/{post-tag-92eaefd1.js → post-tag-1dcddcae.js} +3 -3
  32. package/dist/cjs/post-tag.cjs.entry.js +3 -3
  33. package/dist/cjs/{post-tooltip-69ba6116.js → post-tooltip-1e8d5f4e.js} +4 -4
  34. package/dist/cjs/post-tooltip.cjs.entry.js +4 -5
  35. package/dist/collection/collection-manifest.json +1 -1
  36. package/dist/collection/components/post-accordion-item/post-accordion-item.js +1 -1
  37. package/dist/collection/components/post-alert/post-alert.css +1 -1
  38. package/dist/collection/components/post-alert/post-alert.js +3 -3
  39. package/dist/collection/components/post-card-control/post-card-control.js +2 -2
  40. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  41. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +14 -19
  42. package/dist/collection/components/post-icon/post-icon.js +1 -1
  43. package/dist/collection/components/post-popover/post-popover.js +2 -2
  44. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +3 -3
  45. package/dist/collection/components/post-rating/post-rating.js +1 -1
  46. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  47. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  48. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  49. package/dist/collection/components/post-tag/post-tag.js +1 -1
  50. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  51. package/dist/collection/utils/get-root.js +7 -0
  52. package/dist/collection/utils/index.js +1 -0
  53. package/dist/components/package.js +1 -1
  54. package/dist/components/post-accordion-item2.js +9 -3
  55. package/dist/components/post-alert2.js +4 -4
  56. package/dist/components/post-card-control2.js +2 -2
  57. package/dist/components/post-collapsible-trigger2.js +22 -10
  58. package/dist/components/post-collapsible2.js +1 -1
  59. package/dist/components/post-icon2.js +1 -1
  60. package/dist/components/post-popover2.js +1 -1
  61. package/dist/components/post-popovercontainer2.js +6 -7
  62. package/dist/components/post-rating2.js +1 -1
  63. package/dist/components/post-tab-header2.js +1 -1
  64. package/dist/components/post-tab-panel2.js +1 -1
  65. package/dist/components/post-tabs2.js +1 -1
  66. package/dist/components/post-tag2.js +1 -1
  67. package/dist/components/post-tooltip2.js +1 -1
  68. package/dist/docs.json +18 -17
  69. package/dist/esm/{index-9ace3232.js → index-189d3985.js} +8 -17
  70. package/dist/esm/{index-29d17d6d.js → index-d1eba94c.js} +14 -2
  71. package/dist/esm/index.js +17 -19
  72. package/dist/esm/loader.js +3 -3
  73. package/dist/esm/{package-130b6199.js → package-8c58ace7.js} +1 -1
  74. package/dist/esm/{post-accordion-01612666.js → post-accordion-6b2f2b73.js} +2 -2
  75. package/dist/esm/{post-accordion-item-e2e83306.js → post-accordion-item-c8614cda.js} +4 -4
  76. package/dist/esm/post-accordion-item.entry.js +4 -5
  77. package/dist/esm/post-accordion.entry.js +3 -3
  78. package/dist/esm/{post-alert-e7b70927.js → post-alert-de5e60d3.js} +7 -8
  79. package/dist/esm/post-alert.entry.js +4 -5
  80. package/dist/esm/{post-card-control-262467c4.js → post-card-control-38a302fe.js} +4 -4
  81. package/dist/esm/post-card-control.entry.js +3 -3
  82. package/dist/esm/post-collapsible-trigger-221d58c1.js +203 -0
  83. package/dist/esm/post-collapsible_2.entry.js +7 -0
  84. package/dist/esm/post-components.js +4 -4
  85. package/dist/esm/{post-icon-46602aa6.js → post-icon-0f2f4f9b.js} +4 -5
  86. package/dist/esm/post-icon.entry.js +4 -5
  87. package/dist/esm/{post-popover-927903a2.js → post-popover-2e6ada87.js} +3 -3
  88. package/dist/esm/post-popover.entry.js +3 -3
  89. package/dist/esm/{post-popovercontainer-348970cd.js → post-popovercontainer-0c396235.js} +8 -9
  90. package/dist/esm/post-popovercontainer.entry.js +3 -3
  91. package/dist/esm/{post-rating-a1832399.js → post-rating-fcf19507.js} +3 -3
  92. package/dist/esm/post-rating.entry.js +3 -3
  93. package/dist/esm/{post-tab-header-9d6e4d52.js → post-tab-header-75337bbc.js} +3 -3
  94. package/dist/esm/post-tab-header.entry.js +3 -3
  95. package/dist/esm/{post-tab-panel-0870e77c.js → post-tab-panel-1ca4f5c9.js} +3 -3
  96. package/dist/esm/post-tab-panel.entry.js +3 -3
  97. package/dist/esm/{post-tabs-3b8719a9.js → post-tabs-77ac9eee.js} +3 -3
  98. package/dist/esm/post-tabs.entry.js +3 -3
  99. package/dist/esm/{post-tag-695a9337.js → post-tag-9741c642.js} +3 -3
  100. package/dist/esm/post-tag.entry.js +3 -3
  101. package/dist/esm/{post-tooltip-8486e928.js → post-tooltip-c69b7162.js} +4 -4
  102. package/dist/esm/post-tooltip.entry.js +4 -5
  103. package/dist/post-components/index.esm.js +1 -1
  104. package/dist/post-components/p-02d1f275.js +1 -0
  105. package/dist/post-components/{p-c6e4522d.js → p-1e374a42.js} +1 -1
  106. package/dist/post-components/p-28e17fd1.entry.js +1 -0
  107. package/dist/post-components/{p-feb6ff21.js → p-2c424cd4.js} +1 -1
  108. package/dist/post-components/p-32713474.js +1 -0
  109. package/dist/post-components/{p-458d8198.js → p-38abadc5.js} +2 -2
  110. package/dist/post-components/p-6dd5d5ba.entry.js +1 -0
  111. package/dist/post-components/{p-a747b0b7.js → p-726fec57.js} +1 -1
  112. package/dist/post-components/p-7301b124.entry.js +1 -0
  113. package/dist/post-components/{p-33dd9887.js → p-7bdec425.js} +1 -1
  114. package/dist/post-components/p-7fc15b07.entry.js +1 -0
  115. package/dist/post-components/{p-acec5895.js → p-80f33a98.js} +1 -1
  116. package/dist/post-components/p-8126cca3.entry.js +1 -0
  117. package/dist/post-components/{p-48fcde73.js → p-88fc0fa3.js} +1 -1
  118. package/dist/post-components/{p-b91ff66f.js → p-8a781b6e.js} +1 -1
  119. package/dist/post-components/p-8b86cde6.entry.js +1 -0
  120. package/dist/post-components/p-95b7403d.entry.js +1 -0
  121. package/dist/post-components/p-a0187d40.entry.js +1 -0
  122. package/dist/post-components/p-a5c8a3de.js +1 -0
  123. package/dist/post-components/p-a931e3c6.entry.js +1 -0
  124. package/dist/post-components/p-b5f7d9e5.entry.js +1 -0
  125. package/dist/post-components/p-b9176139.entry.js +1 -0
  126. package/dist/post-components/{p-8c7f0075.js → p-c0f265c8.js} +2 -2
  127. package/dist/post-components/p-c88f169d.entry.js +1 -0
  128. package/dist/post-components/p-d2753c4a.js +1 -0
  129. package/dist/post-components/p-d36a5db5.js +1 -0
  130. package/dist/post-components/p-e4acf838.js +1 -0
  131. package/dist/post-components/p-e6bc1a0c.entry.js +1 -0
  132. package/dist/post-components/p-ea2954f3.entry.js +1 -0
  133. package/dist/post-components/p-ed2b2d33.js +1 -0
  134. package/dist/post-components/p-f91c0e1b.js +1 -0
  135. package/dist/post-components/post-components.esm.js +1 -1
  136. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +6 -5
  137. package/dist/types/utils/get-root.d.ts +1 -0
  138. package/dist/types/utils/index.d.ts +1 -0
  139. package/package.json +13 -13
  140. package/dist/cjs/check-type-64af82a9.js +0 -16
  141. package/dist/cjs/post-collapsible-cff3bb05.js +0 -85
  142. package/dist/cjs/post-collapsible-trigger-e5616d29.js +0 -115
  143. package/dist/cjs/post-collapsible.cjs.entry.js +0 -15
  144. package/dist/esm/check-type-8828dbe4.js +0 -14
  145. package/dist/esm/post-collapsible-301ba5ad.js +0 -83
  146. package/dist/esm/post-collapsible-trigger-964d5490.js +0 -113
  147. package/dist/esm/post-collapsible-trigger.entry.js +0 -6
  148. package/dist/esm/post-collapsible.entry.js +0 -7
  149. package/dist/post-components/p-0026e697.js +0 -1
  150. package/dist/post-components/p-3d1fd819.js +0 -1
  151. package/dist/post-components/p-4806190f.entry.js +0 -1
  152. package/dist/post-components/p-49100c44.js +0 -1
  153. package/dist/post-components/p-4a3f67ab.js +0 -1
  154. package/dist/post-components/p-50fdd908.js +0 -1
  155. package/dist/post-components/p-51bb8d8c.entry.js +0 -1
  156. package/dist/post-components/p-5bfe2065.entry.js +0 -1
  157. package/dist/post-components/p-5cdfdfed.entry.js +0 -1
  158. package/dist/post-components/p-627e0231.js +0 -1
  159. package/dist/post-components/p-6cac6cc0.entry.js +0 -1
  160. package/dist/post-components/p-6f325f35.entry.js +0 -1
  161. package/dist/post-components/p-7755c753.entry.js +0 -1
  162. package/dist/post-components/p-811910a2.js +0 -1
  163. package/dist/post-components/p-8386ab9c.js +0 -1
  164. package/dist/post-components/p-8dc5e169.entry.js +0 -1
  165. package/dist/post-components/p-9828b437.js +0 -1
  166. package/dist/post-components/p-ac500761.js +0 -1
  167. package/dist/post-components/p-b1b2f9ee.entry.js +0 -1
  168. package/dist/post-components/p-bb764dd3.entry.js +0 -1
  169. package/dist/post-components/p-bdc9668f.entry.js +0 -1
  170. package/dist/post-components/p-c860a676.entry.js +0 -1
  171. package/dist/post-components/p-e1456b01.entry.js +0 -1
  172. package/dist/post-components/p-f31d7fcb.entry.js +0 -1
  173. package/dist/post-components/p-f52a3908.entry.js +0 -1
@@ -0,0 +1,206 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.js');
5
+ const index$1 = require('./index-a1440961.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
+ function getRoot(element) {
18
+ const root = element.getRootNode();
19
+ if (root instanceof Document || root instanceof ShadowRoot) {
20
+ return root;
21
+ }
22
+ throw new Error('Attempting to access root node before the element is attached to the document or shadow tree.');
23
+ }
24
+
25
+ function isMotionReduced() {
26
+ return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
27
+ }
28
+
29
+ const collapseDuration = 350;
30
+ const collapseEasing = 'ease';
31
+ const collapsedKeyframe = { height: '0', overflow: 'hidden' };
32
+ const animationOptions = {
33
+ duration: collapseDuration,
34
+ easing: collapseEasing,
35
+ fill: 'forwards',
36
+ };
37
+ const collapse = (el) => {
38
+ const expandedKeyframe = { height: window.getComputedStyle(el).height };
39
+ return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
40
+ };
41
+ const expand = (el) => {
42
+ const expandedKeyframe = { height: `${el.scrollHeight}px`, offset: 1 };
43
+ const finalKeyframe = { height: 'auto' };
44
+ return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
45
+ };
46
+
47
+ const postCollapsibleCss = ":host{display:block;overflow:hidden}";
48
+ const PostCollapsibleStyle0 = postCollapsibleCss;
49
+
50
+ const PostCollapsible = class {
51
+ constructor(hostRef) {
52
+ index.registerInstance(this, hostRef);
53
+ this.postToggle = index.createEvent(this, "postToggle", 7);
54
+ this.isLoaded = false;
55
+ this.isOpen = true;
56
+ this.collapsed = false;
57
+ }
58
+ collapsedChange() {
59
+ index$1.checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
60
+ void this.toggle(!this.collapsed);
61
+ }
62
+ componentDidLoad() {
63
+ this.collapsedChange();
64
+ this.isLoaded = true;
65
+ this.updateTriggers();
66
+ }
67
+ /**
68
+ * Triggers the collapse programmatically.
69
+ *
70
+ * If there is a collapsing transition running already, it will be reversed.
71
+ */
72
+ async toggle(open = !this.isOpen) {
73
+ if (open === this.isOpen)
74
+ return open;
75
+ this.isOpen = open;
76
+ this.collapsed = !open;
77
+ if (this.isLoaded)
78
+ this.postToggle.emit(open);
79
+ const animation = open ? expand(this.host) : collapse(this.host);
80
+ if (!this.isLoaded || isMotionReduced())
81
+ animation.finish();
82
+ await animation.finished;
83
+ animation.commitStyles();
84
+ return open;
85
+ }
86
+ /**
87
+ * Update all post-collapsible-trigger elements referring to the collapsible
88
+ */
89
+ updateTriggers() {
90
+ const triggers = document.querySelectorAll(`post-collapsible-trigger[for=${this.host.id}]`);
91
+ triggers.forEach(trigger => trigger.update());
92
+ }
93
+ render() {
94
+ return (index.h(index.Host, { key: '47ab19bf719a505dce35955d6250462acea47eee', "data-version": _package.version }, index.h("slot", { key: 'd7fe5746afe1c343e9ec4c02878d8dead9360c26' })));
95
+ }
96
+ get host() { return index.getElement(this); }
97
+ static get watchers() { return {
98
+ "collapsed": ["collapsedChange"]
99
+ }; }
100
+ };
101
+ PostCollapsible.style = PostCollapsibleStyle0;
102
+
103
+ const PostCollapsibleTrigger = class {
104
+ constructor(hostRef) {
105
+ index.registerInstance(this, hostRef);
106
+ this.observer = new MutationObserver(() => this.setTrigger());
107
+ this.debouncedUpdate = debounce(() => {
108
+ var _a;
109
+ if (!this.trigger)
110
+ return;
111
+ // add the provided id to the aria-controls list
112
+ const ariaControls = this.trigger.getAttribute('aria-controls');
113
+ if (!(ariaControls === null || ariaControls === void 0 ? void 0 : ariaControls.includes(this.for))) {
114
+ const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
115
+ this.trigger.setAttribute('aria-controls', newAriaControls);
116
+ }
117
+ // set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
118
+ const isCollapsed = (_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.collapsed;
119
+ const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
120
+ this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
121
+ });
122
+ this.for = undefined;
123
+ }
124
+ /**
125
+ * Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
126
+ */
127
+ setAriaAttributes() {
128
+ checkNonEmpty.checkNonEmpty(this.for, 'The post-collapsible-trigger "for" prop is required.');
129
+ index$1.checkType(this.for, 'string', 'The post-collapsible-trigger "for" prop should be a id.');
130
+ void this.update();
131
+ }
132
+ /**
133
+ * Initiate a mutation observer that updates the trigger whenever necessary
134
+ */
135
+ connectedCallback() {
136
+ this.observer.observe(this.host, { childList: true, subtree: true });
137
+ }
138
+ /**
139
+ * Attach a "postToggle" event listener to the root node
140
+ * to update the trigger's "aria-expanded" attribute whenever the controlled post-collapsible is toggled
141
+ */
142
+ componentWillLoad() {
143
+ this.root = getRoot(this.host);
144
+ this.root.addEventListener('postToggle', (e) => {
145
+ if (!this.trigger || !e.target.isEqualNode(this.collapsible))
146
+ return;
147
+ this.trigger.setAttribute('aria-expanded', `${e.detail}`);
148
+ });
149
+ }
150
+ /**
151
+ * Add the "data-version" to the host element and set the trigger
152
+ */
153
+ componentDidLoad() {
154
+ this.host.setAttribute('data-version', _package.version);
155
+ this.setTrigger();
156
+ if (!this.trigger)
157
+ console.warn('The post-collapsible-trigger must contain a button.');
158
+ }
159
+ /**
160
+ * Disconnect the mutation observer
161
+ */
162
+ disconnectedCallback() {
163
+ this.observer.disconnect();
164
+ }
165
+ /**
166
+ * Update the "aria-controls" and "aria-expanded" attributes on the trigger button
167
+ */
168
+ async update() {
169
+ this.debouncedUpdate();
170
+ }
171
+ /**
172
+ * Toggle the post-collapsible controlled by the trigger
173
+ */
174
+ async toggleCollapsible() {
175
+ var _a;
176
+ await ((_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.toggle());
177
+ }
178
+ /**
179
+ * Retrieve the post-collapsible controlled by the trigger
180
+ */
181
+ get collapsible() {
182
+ const ref = this.root.getElementById(this.for);
183
+ if (ref && ref.localName === 'post-collapsible') {
184
+ return ref;
185
+ }
186
+ return null;
187
+ }
188
+ /**
189
+ * Find the button and add the proper event listener and ARIA attributes to it
190
+ */
191
+ setTrigger() {
192
+ const trigger = this.host.querySelector('button');
193
+ if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
194
+ return;
195
+ this.trigger = trigger;
196
+ this.trigger.addEventListener('click', () => this.toggleCollapsible());
197
+ this.setAriaAttributes();
198
+ }
199
+ get host() { return index.getElement(this); }
200
+ static get watchers() { return {
201
+ "for": ["setAriaAttributes"]
202
+ }; }
203
+ };
204
+
205
+ exports.PostCollapsible = PostCollapsible;
206
+ exports.PostCollapsibleTrigger = PostCollapsibleTrigger;
@@ -2,13 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postCollapsibleTrigger = require('./post-collapsible-trigger-e5616d29.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
8
- require('./check-type-64af82a9.js');
9
- require('./check-non-empty-eeaa8f77.js');
5
+ const postCollapsibleTrigger = require('./post-collapsible-trigger-b82b368e.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
+ require('./index-a1440961.js');
10
9
  require('./constants-238701d3.js');
10
+ require('./check-one-of-f4f5d0c0.js');
11
+ require('./check-non-empty-eeaa8f77.js');
11
12
 
12
13
 
13
14
 
15
+ exports.post_collapsible = postCollapsibleTrigger.PostCollapsible;
14
16
  exports.post_collapsible_trigger = postCollapsibleTrigger.PostCollapsibleTrigger;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cc8e4e1.js');
5
+ const index = require('./index-baad16da.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.19.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('post-components.cjs.js', document.baseURI).href));
@@ -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":[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);
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-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"]}]]],["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-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_2.cjs",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[0,"post-collapsible-trigger",{"for":[1],"update":[64]},null,{"for":["setAriaAttributes"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -1,10 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const index$1 = require('./index-f32e5185.js');
5
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const index$1 = require('./index-a1440961.js');
5
+ const _package = require('./package-fd539ea9.js');
6
6
  const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
7
- const checkType = require('./check-type-64af82a9.js');
8
7
 
9
8
  const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
10
9
  const PostIconStyle0 = postIconCss;
@@ -47,7 +46,7 @@ const PostIcon = class {
47
46
  }
48
47
  validateName(newValue = this.name) {
49
48
  checkNonEmpty.checkNonEmpty(newValue, 'The post-icon "name" prop is required!.');
50
- checkType.checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
49
+ index$1.checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
51
50
  }
52
51
  validateRotate(newValue = this.rotate) {
53
52
  index$1.checkEmptyOrType(newValue, 'number', 'The post-icon "rotate" prop should be a number.');
@@ -87,7 +86,7 @@ const PostIcon = class {
87
86
  })
88
87
  .filter(([_key, value]) => value !== null)
89
88
  .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
90
- return (index.h(index.Host, { key: 'c046b74af0d3cc42dcddfbd4aa029ca07be26bf8', "data-version": _package.version }, index.h("span", { key: 'c49c4d2de0222c665acf1db46f8a13db26f6a26e', style: svgStyles })));
89
+ return (index.h(index.Host, { key: '95fa0f7a09d3430bb5d621e01b57188742920eb4', "data-version": _package.version }, index.h("span", { key: 'c824e3705dc83665bb6f7649381654e6d1e07dfb', style: svgStyles })));
91
90
  }
92
91
  get host() { return index.getElement(this); }
93
92
  static get watchers() { return {
@@ -2,13 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postIcon = require('./post-icon-6985373c.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./index-f32e5185.js');
5
+ const postIcon = require('./post-icon-36f7a65e.js');
6
+ require('./index-baad16da.js');
7
+ require('./index-a1440961.js');
8
8
  require('./constants-238701d3.js');
9
9
  require('./check-one-of-f4f5d0c0.js');
10
- require('./check-type-64af82a9.js');
11
- require('./package-71dcbbc9.js');
10
+ require('./package-fd539ea9.js');
12
11
  require('./check-non-empty-eeaa8f77.js');
13
12
 
14
13
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.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}";
@@ -95,7 +95,7 @@ const PostPopover = class {
95
95
  this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
96
96
  }
97
97
  render() {
98
- return (index.h(index.Host, { key: '943dbb1a0a290d281ebe0f346ccd531f8acbbb5e', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'aa6bf3a2cc395ce612342b78bee23bcd1b68db5e', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '3ba6f039088615157ba47ebc448770fd9128efa0', class: "popover-container" }, index.h("div", { key: '0472f76d0cf51269029534c29f155e0f71d649fb', class: "popover-content" }, index.h("slot", { key: '1d722457c871c0aac9297b0517fe077c32e73794' })), index.h("button", { key: '430fa605ce81aad6b8709c22a31da62cdf6022e5', class: "btn-close", onClick: () => this.hide() }, index.h("span", { key: '37169089662c8ef1edd8de6389c55f9eee4e1a9e', class: "visually-hidden" }, this.closeButtonCaption))))));
98
+ return (index.h(index.Host, { key: '97db4a92db81f3a84ca272af8f79981cf181024d', "data-version": _package.version }, index.h("post-popovercontainer", { key: '291247845dc11572a5722aa949c1dfa74e521edd', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '92137bf8c92633c8578c89c7b0c8252b0b59e2fa', class: "popover-container" }, index.h("div", { key: '06f79f59e90ca439b552380af0e151084adadf03', class: "popover-content" }, index.h("slot", { key: 'c37c742ac7cf24f9440ac3b862761fcd937f7658' })), index.h("button", { key: '0e6f316574720e0f901af56e0dbb99f86e36c5b4', class: "btn-close", onClick: () => this.hide() }, index.h("span", { key: '77c41e8e8df74649ce9ca21740c77e78336905e6', class: "visually-hidden" }, this.closeButtonCaption))))));
99
99
  }
100
100
  get host() { return index.getElement(this); }
101
101
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopover = require('./post-popover-1282c9b2.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postPopover = require('./post-popover-eb936464.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
8
  require('./attribute-observer-10f08c04.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.js');
5
5
 
6
6
  /**
7
7
  * Custom positioning reference element.
@@ -1212,9 +1212,9 @@ function isTopLayer(element) {
1212
1212
  }
1213
1213
  });
1214
1214
  }
1215
- function isContainingBlock(element) {
1215
+ function isContainingBlock(elementOrCss) {
1216
1216
  const webkit = isWebKit();
1217
- const css = getComputedStyle(element);
1217
+ const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
1218
1218
 
1219
1219
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1220
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));
@@ -1222,11 +1222,10 @@ function isContainingBlock(element) {
1222
1222
  function getContainingBlock(element) {
1223
1223
  let currentNode = getParentNode(element);
1224
1224
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1225
- if (isTopLayer(currentNode)) {
1226
- return null;
1227
- }
1228
1225
  if (isContainingBlock(currentNode)) {
1229
1226
  return currentNode;
1227
+ } else if (isTopLayer(currentNode)) {
1228
+ return null;
1230
1229
  }
1231
1230
  currentNode = getParentNode(currentNode);
1232
1231
  }
@@ -2176,9 +2175,9 @@ const PostPopovercontainer = class {
2176
2175
  }
2177
2176
  }
2178
2177
  render() {
2179
- return (index.h(index.Host, { key: '944364458c19e3a11171571402f183449dafff24', "data-version": _package.version }, this.arrow && (index.h("span", { key: 'f77a61b4b6f4f4ceb861ef8eb7d16f71f45642ec', class: "arrow", ref: el => {
2178
+ return (index.h(index.Host, { key: 'd157ffbb6acb382add7b003f7865eb7c7d77a2b5', "data-version": _package.version }, this.arrow && (index.h("span", { key: 'cc47843bc00d401c0679474e41661b6b1dcbae01', class: "arrow", ref: el => {
2180
2179
  this.arrowRef = el;
2181
- } })), index.h("slot", { key: 'feeedfe09388dca41ee1048c8702c68bd0a91d33' })));
2180
+ } })), index.h("slot", { key: '75eb62cf77965fa96fbb3dabcf264c2daff3e2f4' })));
2182
2181
  }
2183
2182
  get host() { return index.getElement(this); }
2184
2183
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopovercontainer = require('./post-popovercontainer-776f4985.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postPopovercontainer = require('./post-popovercontainer-ba97a4b4.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.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;
@@ -73,7 +73,7 @@ const PostRating = class {
73
73
  }
74
74
  }
75
75
  render() {
76
- return (index.h(index.Host, { key: 'b175b250377f4bf9be92ad05fb14f7e4a8f7c12f', "data-version": _package.version }, index.h("div", { key: 'b12eb5ff191d5a4ac5270845f120360f61e0fce0', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
76
+ return (index.h(index.Host, { key: 'ae0484c022555a4a5ed0343cc060b7076a1c581e', "data-version": _package.version }, index.h("div", { key: '3765eaaccec1dd709b28d8a63b54fc0ed69b4c15', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
77
77
  'star': true,
78
78
  'before-hover': i < this.hoveredIndex,
79
79
  'active': i < Math.round(this.currentRating),
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postRating = require('./post-rating-98917b60.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postRating = require('./post-rating-1df2edf5.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.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: '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' })));
23
+ return (index.h(index.Host, { key: 'ba101bdcdf05591293e07ab35aadb812862d8cc0', id: this.tabId, role: "tab", "data-version": _package.version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, index.h("slot", { key: '276d95c72fc7014f8002f249f2bbab591ee8754d' })));
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-63ea6bb6.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postTabHeader = require('./post-tab-header-52ce1af4.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.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
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.js');
5
5
 
6
6
  const postTabPanelCss = ":host{display:none}";
7
7
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -17,7 +17,7 @@ const PostTabPanel = class {
17
17
  this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, { key: '2b7e8f1853df072796345126b60ed2b6315362a2', "data-version": _package.version, id: this.panelId, role: "tabpanel" }, index.h("slot", { key: '77c2b1c1f7d141fd3f9b71c504cdd9a5ce61260b' })));
20
+ return (index.h(index.Host, { key: 'bd31fce17f303414e7d077fbc001b543d05e362c', "data-version": _package.version, id: this.panelId, role: "tabpanel" }, index.h("slot", { key: '746b85fa6378312abb2f1e92cb4fffceafac1fc7' })));
21
21
  }
22
22
  get host() { return index.getElement(this); }
23
23
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabPanel = require('./post-tab-panel-01d55249.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postTabPanel = require('./post-tab-panel-e94c9c58.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.js');
5
5
  const fade = require('./fade-35a3633a.js');
6
6
 
7
7
  const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}";
@@ -143,7 +143,7 @@ const PostTabs = class {
143
143
  nextTab.focus();
144
144
  }
145
145
  render() {
146
- return (index.h(index.Host, { key: '365b2794cfb46631277341ea23afb2070c9d3ad1', "data-version": _package.version }, index.h("div", { key: '70df13385ecc9c067527b80e2dd7b3a9b245e745', class: "tabs-wrapper", part: "tabs" }, index.h("div", { key: 'cae4d18aff0c890e0e8d76c1b8e321322abbeccd', class: "tabs", role: "tablist" }, index.h("slot", { key: '2b6ca3e01e45e541950ddc2c1cdc680b28ea96b9', name: "tabs", onSlotchange: () => this.enableTabs() }))), index.h("div", { key: '7352582d9c738af9b8bf3b71e0a153132fd23dcd', class: "tab-content", part: "content" }, index.h("slot", { key: '4845c39bf9b9cbc42aa8689c7ae99cc2e75d7907', onSlotchange: () => this.moveMisplacedTabs() }))));
146
+ return (index.h(index.Host, { key: 'd0f37718e538b9dd4b5e0eed0dde161576725e25', "data-version": _package.version }, index.h("div", { key: '1d3380b6317cad0bde525136854e93ee20e3bfbf', class: "tabs-wrapper", part: "tabs" }, index.h("div", { key: 'bc5cf13c94629e2938eb4ea85deb5ebd6c2b2dac', class: "tabs", role: "tablist" }, index.h("slot", { key: '4fde604e204df192946080b652d60c27d7ff6cee', name: "tabs", onSlotchange: () => this.enableTabs() }))), index.h("div", { key: '755b7153a2a8c683abf15d33a0d9180e8aa29db0', class: "tab-content", part: "content" }, index.h("slot", { key: '23263344474597c54a7d8cc355d22919cb8685f1', onSlotchange: () => this.moveMisplacedTabs() }))));
147
147
  }
148
148
  get host() { return index.getElement(this); }
149
149
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabs = require('./post-tabs-7ec0c376.js');
6
- require('./index-1cc8e4e1.js');
7
- require('./package-71dcbbc9.js');
5
+ const postTabs = require('./post-tabs-af38f271.js');
6
+ require('./index-baad16da.js');
7
+ require('./package-fd539ea9.js');
8
8
  require('./fade-35a3633a.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cc8e4e1.js');
4
- const _package = require('./package-71dcbbc9.js');
3
+ const index = require('./index-baad16da.js');
4
+ const _package = require('./package-fd539ea9.js');
5
5
 
6
6
  const postTagCss = "/*!\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:18.5rem;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;
@@ -34,7 +34,7 @@ const PostTag = class {
34
34
  this.setClasses();
35
35
  }
36
36
  render() {
37
- return (index.h(index.Host, { key: '0292c0d7a103bd987511cb67d66bc3de60800bf1', "data-version": _package.version }, index.h("div", { key: 'b3b1934c9c3ec3490b1dad8829b15f63490677ba', class: this.classes }, this.icon ? index.h("post-icon", { name: this.icon }) : null, index.h("div", { key: '0cb543c65dfe1d61756aecf67de9b2cdae3f78e5', class: "tag-text" }, index.h("slot", { key: '020b0b7191f0b6051c958253ef6cb52bc660d5e2' })))));
37
+ return (index.h(index.Host, { key: '5b29f617d1f9dbba914664263ccace77e18fdd10', "data-version": _package.version }, index.h("div", { key: '25d9431e746f0d677704c97dc9bd27023a502efb', class: this.classes }, this.icon ? index.h("post-icon", { name: this.icon }) : null, index.h("div", { key: 'e13004f14169d4abccd3df8d0245bc2f361f0b81', class: "tag-text" }, index.h("slot", { key: '567d61fae24d649c64c9ea53685a627f7e45fde1' })))));
38
38
  }
39
39
  get host() { return index.getElement(this); }
40
40
  static get watchers() { return {