@swisspost/design-system-components 7.3.1 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +16 -17
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-53cbf42f.js → package-71dcbbc9.js} +1 -1
- package/dist/cjs/{post-accordion-605d195b.js → post-accordion-2e943f0a.js} +1 -1
- package/dist/cjs/{post-accordion-item-7ef44a1d.js → post-accordion-item-d1fcd3f9.js} +4 -5
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-alert-bd5a1e4e.js → post-alert-966b3652.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-53c3d28b.js → post-card-control-e2cf1596.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-cd75e40d.js → post-collapsible-cff3bb05.js} +11 -13
- package/dist/cjs/post-collapsible-trigger-e5616d29.js +115 -0
- package/dist/cjs/post-collapsible-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-icon-d48388ba.js → post-icon-6985373c.js} +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-a069b3b4.js → post-popover-1282c9b2.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-6ba9ea5a.js → post-popovercontainer-776f4985.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-8ef7415c.js → post-rating-98917b60.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-bbffefab.js → post-tab-header-63ea6bb6.js} +2 -2
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-47161846.js → post-tab-panel-01d55249.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-818dea1a.js → post-tabs-7ec0c376.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-df4341a7.js → post-tag-92eaefd1.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-79da02f1.js → post-tooltip-69ba6116.js} +11 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -3
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -9
- package/dist/collection/components/post-collapsible/post-collapsible.js +12 -14
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +5 -7
- package/dist/components/post-collapsible-trigger2.js +2 -188167
- package/dist/components/post-collapsible2.js +12 -14
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tooltip2.js +6 -1
- package/dist/docs.json +6 -6
- package/dist/esm/index.js +16 -17
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-69bb682d.js → package-130b6199.js} +1 -1
- package/dist/esm/{post-accordion-72c9f9ab.js → post-accordion-01612666.js} +1 -1
- package/dist/esm/{post-accordion-item-41ec1425.js → post-accordion-item-e2e83306.js} +4 -5
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-8b7ad6b5.js → post-alert-e7b70927.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-cc8a0a71.js → post-card-control-262467c4.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-0843e3b2.js → post-collapsible-301ba5ad.js} +11 -13
- package/dist/esm/post-collapsible-trigger-964d5490.js +113 -0
- package/dist/esm/post-collapsible-trigger.entry.js +2 -2
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-icon-2ece5353.js → post-icon-46602aa6.js} +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-popover-54f23917.js → post-popover-927903a2.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-0da2336b.js → post-popovercontainer-348970cd.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-89feb730.js → post-rating-a1832399.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-8f531b2d.js → post-tab-header-9d6e4d52.js} +2 -2
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-5d3cf744.js → post-tab-panel-0870e77c.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-d8ffb9fc.js → post-tabs-3b8719a9.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-50b397fb.js → post-tag-695a9337.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-68e640ea.js → post-tooltip-8486e928.js} +7 -2
- package/dist/esm/post-tooltip.entry.js +2 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0026e697.js +1 -0
- package/dist/post-components/{p-07d804f9.js → p-33dd9887.js} +1 -1
- package/dist/post-components/{p-f182a1ec.js → p-3d1fd819.js} +1 -1
- package/dist/post-components/{p-bfced2a9.js → p-458d8198.js} +3 -3
- package/dist/post-components/p-4806190f.entry.js +1 -0
- package/dist/post-components/{p-5b029cef.js → p-48fcde73.js} +1 -1
- package/dist/post-components/p-49100c44.js +1 -0
- package/dist/post-components/{p-7ae5e122.js → p-50fdd908.js} +1 -1
- package/dist/post-components/p-51bb8d8c.entry.js +1 -0
- package/dist/post-components/p-5bfe2065.entry.js +1 -0
- package/dist/post-components/p-5cdfdfed.entry.js +1 -0
- package/dist/post-components/p-627e0231.js +1 -0
- package/dist/post-components/p-6cac6cc0.entry.js +1 -0
- package/dist/post-components/p-6f325f35.entry.js +1 -0
- package/dist/post-components/p-7755c753.entry.js +1 -0
- package/dist/post-components/{p-1fdb9650.js → p-811910a2.js} +1 -1
- package/dist/post-components/p-8386ab9c.js +1 -0
- package/dist/post-components/p-8dc5e169.entry.js +1 -0
- package/dist/post-components/{p-089ae111.js → p-9828b437.js} +1 -1
- package/dist/post-components/{p-10312d6a.js → p-a747b0b7.js} +1 -1
- package/dist/post-components/{p-52689eda.js → p-acec5895.js} +1 -1
- package/dist/post-components/p-b1b2f9ee.entry.js +1 -0
- package/dist/post-components/{p-7b552d03.js → p-b91ff66f.js} +1 -1
- package/dist/post-components/p-bb764dd3.entry.js +1 -0
- package/dist/post-components/p-bdc9668f.entry.js +1 -0
- package/dist/post-components/p-c6e4522d.js +1 -0
- package/dist/post-components/p-c860a676.entry.js +1 -0
- package/dist/post-components/p-e1456b01.entry.js +1 -0
- package/dist/post-components/p-f31d7fcb.entry.js +1 -0
- package/dist/post-components/p-f52a3908.entry.js +1 -0
- package/dist/post-components/{p-c864d978.js → p-feb6ff21.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -3
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -4
- package/dist/types/components.d.ts +4 -4
- package/package.json +2 -2
- package/dist/cjs/_commonjsHelpers-8f2c79cd.js +0 -31
- package/dist/cjs/post-collapsible-trigger-ed6c0795.js +0 -188280
- package/dist/components/_commonjsHelpers.js +0 -26
- package/dist/esm/_commonjsHelpers-24671825.js +0 -26
- package/dist/esm/post-collapsible-trigger-84e583ca.js +0 -188278
- package/dist/post-components/p-0c187871.entry.js +0 -1
- package/dist/post-components/p-1a5c4d94.entry.js +0 -1
- package/dist/post-components/p-3321c9c3.entry.js +0 -1
- package/dist/post-components/p-49e1201f.entry.js +0 -1
- package/dist/post-components/p-5307d14c.js +0 -1
- package/dist/post-components/p-55c84c0e.entry.js +0 -1
- package/dist/post-components/p-5a9ac1ae.entry.js +0 -1
- package/dist/post-components/p-5ab360e7.entry.js +0 -1
- package/dist/post-components/p-6b9f6348.js +0 -1
- package/dist/post-components/p-6fc42a7d.js +0 -1
- package/dist/post-components/p-711b21e6.js +0 -1
- package/dist/post-components/p-756f9aa2.entry.js +0 -1
- package/dist/post-components/p-7c38df68.entry.js +0 -1
- package/dist/post-components/p-94c3e483.js +0 -20
- package/dist/post-components/p-992dbdb4.entry.js +0 -1
- package/dist/post-components/p-b91cf0cd.entry.js +0 -1
- package/dist/post-components/p-b921895c.entry.js +0 -1
- package/dist/post-components/p-bb0366cd.entry.js +0 -1
- package/dist/post-components/p-e4ac3e01.entry.js +0 -1
- package/dist/post-components/p-f0fbe328.entry.js +0 -1
- package/dist/post-components/p-ff86b519.js +0 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTabPanel = require('./post-tab-panel-
|
|
5
|
+
const postTabPanel = require('./post-tab-panel-01d55249.js');
|
|
6
6
|
require('./index-1cc8e4e1.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-71dcbbc9.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-1cc8e4e1.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-71dcbbc9.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}";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTabs = require('./post-tabs-
|
|
5
|
+
const postTabs = require('./post-tabs-7ec0c376.js');
|
|
6
6
|
require('./index-1cc8e4e1.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-71dcbbc9.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-1cc8e4e1.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-71dcbbc9.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;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTag = require('./post-tag-
|
|
5
|
+
const postTag = require('./post-tag-92eaefd1.js');
|
|
6
6
|
require('./index-1cc8e4e1.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-71dcbbc9.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-1cc8e4e1.js');
|
|
4
|
-
const _package = require('./package-
|
|
5
|
-
const _commonjsHelpers = require('./_commonjsHelpers-8f2c79cd.js');
|
|
4
|
+
const _package = require('./package-71dcbbc9.js');
|
|
6
5
|
const attributeObserver = require('./attribute-observer-10f08c04.js');
|
|
7
6
|
const index$1 = require('./index-f32e5185.js');
|
|
8
7
|
|
|
@@ -10,6 +9,12 @@ function timeout(delay) {
|
|
|
10
9
|
return new Promise(resolve => setTimeout(resolve, delay));
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
13
|
+
|
|
14
|
+
function getDefaultExportFromCjs (x) {
|
|
15
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
var focusable = {exports: {}};
|
|
14
19
|
|
|
15
20
|
var focusRelevant = {exports: {}};
|
|
@@ -220,7 +225,7 @@ var platform = {exports: {}};
|
|
|
220
225
|
var freeModule = module && !module.nodeType && module;
|
|
221
226
|
|
|
222
227
|
/** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
|
|
223
|
-
var freeGlobal = freeExports && freeModule && typeof
|
|
228
|
+
var freeGlobal = freeExports && freeModule && typeof commonjsGlobal == 'object' && commonjsGlobal;
|
|
224
229
|
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
|
|
225
230
|
root = freeGlobal;
|
|
226
231
|
}
|
|
@@ -1333,7 +1338,7 @@ var platform = {exports: {}};
|
|
|
1333
1338
|
// Export to the global object.
|
|
1334
1339
|
root.platform = platform;
|
|
1335
1340
|
}
|
|
1336
|
-
}.call(
|
|
1341
|
+
}.call(commonjsGlobal));
|
|
1337
1342
|
}(platform, platform.exports));
|
|
1338
1343
|
|
|
1339
1344
|
(function (module, exports) {
|
|
@@ -3808,7 +3813,7 @@ var css_escape = {exports: {}};
|
|
|
3808
3813
|
// For Node.js.
|
|
3809
3814
|
module.exports = factory(root);
|
|
3810
3815
|
}
|
|
3811
|
-
}(typeof
|
|
3816
|
+
}(typeof commonjsGlobal != 'undefined' ? commonjsGlobal : commonjsGlobal, function(root) {
|
|
3812
3817
|
|
|
3813
3818
|
if (root.CSS && root.CSS.escape) {
|
|
3814
3819
|
return root.CSS.escape;
|
|
@@ -4506,7 +4511,7 @@ module.exports = exports['default'];
|
|
|
4506
4511
|
|
|
4507
4512
|
}(focusable, focusable.exports));
|
|
4508
4513
|
|
|
4509
|
-
const isFocusable = /*@__PURE__*/
|
|
4514
|
+
const isFocusable = /*@__PURE__*/getDefaultExportFromCjs(focusable.exports);
|
|
4510
4515
|
|
|
4511
4516
|
/*!
|
|
4512
4517
|
* long-press-event - v@version@
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTooltip = require('./post-tooltip-
|
|
5
|
+
const postTooltip = require('./post-tooltip-69ba6116.js');
|
|
6
6
|
require('./index-1cc8e4e1.js');
|
|
7
|
-
require('./package-
|
|
8
|
-
require('./_commonjsHelpers-8f2c79cd.js');
|
|
7
|
+
require('./package-71dcbbc9.js');
|
|
9
8
|
require('./attribute-observer-10f08c04.js');
|
|
10
9
|
require('./index-f32e5185.js');
|
|
11
10
|
require('./constants-238701d3.js');
|
|
@@ -9,7 +9,6 @@ import { checkEmptyOrOneOf } from "../../utils/index";
|
|
|
9
9
|
export class PostAccordionItem {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.id = undefined;
|
|
12
|
-
this.isOpen = undefined;
|
|
13
12
|
this.collapsed = false;
|
|
14
13
|
this.headingLevel = 2;
|
|
15
14
|
}
|
|
@@ -20,12 +19,12 @@ export class PostAccordionItem {
|
|
|
20
19
|
this.validateHeadingLevel();
|
|
21
20
|
}
|
|
22
21
|
componentWillLoad() {
|
|
23
|
-
this.isOpen = !this.collapsed;
|
|
24
22
|
this.id = this.host.id || `a${crypto.randomUUID()}`;
|
|
25
23
|
}
|
|
24
|
+
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
26
25
|
onCollapseToggle(event) {
|
|
27
26
|
if (event.target.localName === 'post-accordion-item') {
|
|
28
|
-
this.
|
|
27
|
+
this.collapsed = !event.detail;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
/**
|
|
@@ -37,7 +36,7 @@ export class PostAccordionItem {
|
|
|
37
36
|
render() {
|
|
38
37
|
var _a;
|
|
39
38
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
40
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'd021bf895019606800fa6cf3a85a2ea0a2fea7e4', id: this.id, "data-version": version }, h("div", { key: '8a78f2511889eb90d2cbdccf00f76802e043a1e7', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '15c6f07e53179d669f71d6232dad30b77903ae15', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '59b0ac3109ab8b0da0de914898551dc453eb807e', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${!this.collapsed}`, class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '9cdac36ffca69fd85437b4eaddf1ea707b3655e3', name: "header" }))), h("post-collapsible", { key: '4c4ec07c214e972975672f6c41b3a33b418969df', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '619f81dc481230eecbc83f9078edeb6a60e6b52f', class: "accordion-body" }, h("slot", { key: '76117f156050fd17fc4acec2d429f57640d6c951' }))))));
|
|
41
40
|
}
|
|
42
41
|
static get is() { return "post-accordion-item"; }
|
|
43
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +54,7 @@ export class PostAccordionItem {
|
|
|
55
54
|
return {
|
|
56
55
|
"collapsed": {
|
|
57
56
|
"type": "boolean",
|
|
58
|
-
"mutable":
|
|
57
|
+
"mutable": true,
|
|
59
58
|
"complexType": {
|
|
60
59
|
"original": "boolean",
|
|
61
60
|
"resolved": "boolean",
|
|
@@ -65,7 +64,7 @@ export class PostAccordionItem {
|
|
|
65
64
|
"optional": true,
|
|
66
65
|
"docs": {
|
|
67
66
|
"tags": [],
|
|
68
|
-
"text": "If `true`, the element is
|
|
67
|
+
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
69
68
|
},
|
|
70
69
|
"attribute": "collapsed",
|
|
71
70
|
"reflect": false,
|
|
@@ -102,8 +101,7 @@ export class PostAccordionItem {
|
|
|
102
101
|
}
|
|
103
102
|
static get states() {
|
|
104
103
|
return {
|
|
105
|
-
"id": {}
|
|
106
|
-
"isOpen": {}
|
|
104
|
+
"id": {}
|
|
107
105
|
};
|
|
108
106
|
}
|
|
109
107
|
static get methods() {
|
|
@@ -143,7 +141,7 @@ export class PostAccordionItem {
|
|
|
143
141
|
"name": "postToggle",
|
|
144
142
|
"method": "onCollapseToggle",
|
|
145
143
|
"target": undefined,
|
|
146
|
-
"capture":
|
|
144
|
+
"capture": true,
|
|
147
145
|
"passive": false
|
|
148
146
|
}];
|
|
149
147
|
}
|
|
@@ -11,15 +11,12 @@ export class PostCollapsible {
|
|
|
11
11
|
this.isOpen = true;
|
|
12
12
|
this.collapsed = false;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
checkEmptyOrType(
|
|
16
|
-
|
|
17
|
-
connectedCallback() {
|
|
18
|
-
this.validateCollapsed();
|
|
14
|
+
collapsedChange() {
|
|
15
|
+
checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
16
|
+
void this.toggle(!this.collapsed);
|
|
19
17
|
}
|
|
20
18
|
componentDidLoad() {
|
|
21
|
-
|
|
22
|
-
void this.toggle(false);
|
|
19
|
+
this.collapsedChange();
|
|
23
20
|
this.isLoaded = true;
|
|
24
21
|
this.updateTriggers();
|
|
25
22
|
}
|
|
@@ -31,15 +28,16 @@ export class PostCollapsible {
|
|
|
31
28
|
async toggle(open = !this.isOpen) {
|
|
32
29
|
if (open === this.isOpen)
|
|
33
30
|
return open;
|
|
34
|
-
this.isOpen =
|
|
31
|
+
this.isOpen = open;
|
|
32
|
+
this.collapsed = !open;
|
|
35
33
|
if (this.isLoaded)
|
|
36
|
-
this.postToggle.emit(
|
|
34
|
+
this.postToggle.emit(open);
|
|
37
35
|
const animation = open ? expand(this.host) : collapse(this.host);
|
|
38
36
|
if (!this.isLoaded || isMotionReduced())
|
|
39
37
|
animation.finish();
|
|
40
38
|
await animation.finished;
|
|
41
39
|
animation.commitStyles();
|
|
42
|
-
return
|
|
40
|
+
return open;
|
|
43
41
|
}
|
|
44
42
|
/**
|
|
45
43
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
@@ -49,7 +47,7 @@ export class PostCollapsible {
|
|
|
49
47
|
triggers.forEach(trigger => trigger.update());
|
|
50
48
|
}
|
|
51
49
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'b86f11ba3139c76bb077ef9f634afaaf7ab62ef5', "data-version": version }, h("slot", { key: '0f3a8275a8c6a41bfa97b59ee567c3c0da8e84d0' })));
|
|
53
51
|
}
|
|
54
52
|
static get is() { return "post-collapsible"; }
|
|
55
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -67,7 +65,7 @@ export class PostCollapsible {
|
|
|
67
65
|
return {
|
|
68
66
|
"collapsed": {
|
|
69
67
|
"type": "boolean",
|
|
70
|
-
"mutable":
|
|
68
|
+
"mutable": true,
|
|
71
69
|
"complexType": {
|
|
72
70
|
"original": "boolean",
|
|
73
71
|
"resolved": "boolean",
|
|
@@ -77,7 +75,7 @@ export class PostCollapsible {
|
|
|
77
75
|
"optional": true,
|
|
78
76
|
"docs": {
|
|
79
77
|
"tags": [],
|
|
80
|
-
"text": "If `true`, the element is
|
|
78
|
+
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
81
79
|
},
|
|
82
80
|
"attribute": "collapsed",
|
|
83
81
|
"reflect": false,
|
|
@@ -132,7 +130,7 @@ export class PostCollapsible {
|
|
|
132
130
|
static get watchers() {
|
|
133
131
|
return [{
|
|
134
132
|
"propName": "collapsed",
|
|
135
|
-
"methodName": "
|
|
133
|
+
"methodName": "collapsedChange"
|
|
136
134
|
}];
|
|
137
135
|
}
|
|
138
136
|
}
|
|
@@ -16,7 +16,7 @@ export class PostTabHeader {
|
|
|
16
16
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '1919a7a1f11ac0898b16e8fa4791d93ffd1fb1c4', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '8d57e8e1883f4dd96db6edfb0e0a4519cc348a3c' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "post-tab-header"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,6 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
13
13
|
this.__registerHost();
|
|
14
14
|
this.__attachShadow();
|
|
15
15
|
this.id = undefined;
|
|
16
|
-
this.isOpen = undefined;
|
|
17
16
|
this.collapsed = false;
|
|
18
17
|
this.headingLevel = 2;
|
|
19
18
|
}
|
|
@@ -24,12 +23,12 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
24
23
|
this.validateHeadingLevel();
|
|
25
24
|
}
|
|
26
25
|
componentWillLoad() {
|
|
27
|
-
this.isOpen = !this.collapsed;
|
|
28
26
|
this.id = this.host.id || `a${crypto.randomUUID()}`;
|
|
29
27
|
}
|
|
28
|
+
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
30
29
|
onCollapseToggle(event) {
|
|
31
30
|
if (event.target.localName === 'post-accordion-item') {
|
|
32
|
-
this.
|
|
31
|
+
this.collapsed = !event.detail;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
@@ -41,7 +40,7 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
41
40
|
render() {
|
|
42
41
|
var _a;
|
|
43
42
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
44
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'd021bf895019606800fa6cf3a85a2ea0a2fea7e4', id: this.id, "data-version": version }, h("div", { key: '8a78f2511889eb90d2cbdccf00f76802e043a1e7', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '15c6f07e53179d669f71d6232dad30b77903ae15', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '59b0ac3109ab8b0da0de914898551dc453eb807e', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${!this.collapsed}`, class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '9cdac36ffca69fd85437b4eaddf1ea707b3655e3', name: "header" }))), h("post-collapsible", { key: '4c4ec07c214e972975672f6c41b3a33b418969df', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '619f81dc481230eecbc83f9078edeb6a60e6b52f', class: "accordion-body" }, h("slot", { key: '76117f156050fd17fc4acec2d429f57640d6c951' }))))));
|
|
45
44
|
}
|
|
46
45
|
get host() { return this; }
|
|
47
46
|
static get watchers() { return {
|
|
@@ -49,12 +48,11 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
49
48
|
}; }
|
|
50
49
|
static get style() { return PostAccordionItemStyle0; }
|
|
51
50
|
}, [1, "post-accordion-item", {
|
|
52
|
-
"collapsed": [
|
|
51
|
+
"collapsed": [1028],
|
|
53
52
|
"headingLevel": [2, "heading-level"],
|
|
54
53
|
"id": [32],
|
|
55
|
-
"isOpen": [32],
|
|
56
54
|
"toggle": [64]
|
|
57
|
-
}, [[
|
|
55
|
+
}, [[2, "postToggle", "onCollapseToggle"]], {
|
|
58
56
|
"headingLevel": ["validateHeadingLevel"]
|
|
59
57
|
}]);
|
|
60
58
|
function defineCustomElement() {
|