@swisspost/design-system-components 8.2.2 → 8.4.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.
- package/dist/cjs/{index-c15bd800.js → index-72b9122e.js} +4 -4
- package/dist/cjs/index.cjs.js +17 -17
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-ff8339cc.js → package-36c660f5.js} +1 -1
- package/dist/cjs/{post-accordion-a1d4cb44.js → post-accordion-10365fac.js} +12 -10
- package/dist/cjs/{post-accordion-item-8f61e20c.js → post-accordion-item-6d615baa.js} +6 -5
- package/dist/cjs/post-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-alert-5c071dfa.js → post-alert-6d966a6e.js} +6 -6
- package/dist/cjs/post-alert.cjs.entry.js +3 -3
- package/dist/cjs/{post-card-control-c07c878f.js → post-card-control-41b8a941.js} +2 -2
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-ecef448d.js → post-collapsible-trigger-e6d92473.js} +4 -4
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -3
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-icon-1de5e59b.js → post-icon-75782370.js} +4 -4
- package/dist/cjs/post-icon.cjs.entry.js +3 -3
- package/dist/cjs/{post-logo-548521e1.js → post-logo-9dc313b9.js} +4 -4
- package/dist/cjs/post-logo.cjs.entry.js +3 -3
- package/dist/cjs/{post-popover-ebee9dba.js → post-popover-98c48ab7.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-9e51a85d.js → post-popovercontainer-aa0e0967.js} +2 -2
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-e9556b45.js → post-rating-dd8c976e.js} +2 -2
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-697b97a4.js → post-tab-header-59d9c5bd.js} +2 -2
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-d810729b.js → post-tab-panel-2fc318f1.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-48437fcd.js → post-tabs-f5547fd4.js} +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-8fcee965.js → post-tag-f26e84de.js} +2 -2
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-a75cd920.js → post-tooltip-b67c7f02.js} +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/components/post-accordion/post-accordion.js +10 -8
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -3
- package/dist/collection/components/post-alert/post-alert.js +4 -4
- package/dist/collection/components/post-collapsible/post-collapsible.js +2 -2
- package/dist/collection/components/post-icon/post-icon.js +2 -2
- package/dist/collection/components/post-logo/post-logo.js +2 -2
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +4 -3
- package/dist/components/post-accordion2.js +10 -8
- package/dist/components/post-alert2.js +4 -4
- package/dist/components/post-collapsible2.js +2 -2
- package/dist/components/post-icon2.js +2 -2
- package/dist/components/post-logo2.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/{index-0b56fc28.js → index-61528ac5.js} +4 -4
- package/dist/esm/index.js +17 -17
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{package-a2dc9655.js → package-7c7ae5de.js} +1 -1
- package/dist/esm/{post-accordion-9a9061fa.js → post-accordion-948b24a1.js} +12 -10
- package/dist/esm/{post-accordion-item-77be8153.js → post-accordion-item-ac6fc255.js} +6 -5
- package/dist/esm/post-accordion-item.entry.js +3 -3
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-alert-f9537c29.js → post-alert-4a9975cb.js} +6 -6
- package/dist/esm/post-alert.entry.js +3 -3
- package/dist/esm/{post-card-control-41168b7a.js → post-card-control-9b290a77.js} +2 -2
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-2c8d6a26.js → post-collapsible-trigger-196c2a06.js} +4 -4
- package/dist/esm/post-collapsible_2.entry.js +3 -3
- package/dist/esm/post-components.js +2 -2
- package/dist/esm/{post-icon-5f5f948b.js → post-icon-f8cf7cf6.js} +4 -4
- package/dist/esm/post-icon.entry.js +3 -3
- package/dist/esm/{post-logo-906e86be.js → post-logo-b5085deb.js} +4 -4
- package/dist/esm/post-logo.entry.js +3 -3
- package/dist/esm/{post-popover-2b5a8c96.js → post-popover-e1fd9118.js} +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-5339911a.js → post-popovercontainer-285ddeed.js} +2 -2
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-0439e874.js → post-rating-2289e5b6.js} +2 -2
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-d0241d85.js → post-tab-header-fcfb3616.js} +2 -2
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-b0d8392d.js → post-tab-panel-fa7ebe5d.js} +2 -2
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-c7734882.js → post-tabs-49f6b180.js} +2 -2
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-c77035c6.js → post-tag-d043828b.js} +2 -2
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-f9a83279.js → post-tooltip-725a6ad7.js} +2 -2
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-05ae259e.js +1 -0
- package/dist/post-components/p-18c47143.js +1 -0
- package/dist/post-components/p-1a3a8aa0.entry.js +1 -0
- package/dist/post-components/p-1ef36d17.entry.js +1 -0
- package/dist/post-components/p-21293299.entry.js +1 -0
- package/dist/post-components/p-2537c040.js +1 -0
- package/dist/post-components/p-253ee56f.js +1 -0
- package/dist/post-components/p-27c0ce2f.entry.js +1 -0
- package/dist/post-components/p-299de57e.entry.js +1 -0
- package/dist/post-components/p-343f6de1.js +2 -0
- package/dist/post-components/{p-65959422.entry.js → p-37898a1f.entry.js} +1 -1
- package/dist/post-components/{p-20aee96e.js → p-41e29738.js} +1 -1
- package/dist/post-components/{p-7529f5b5.js → p-44e74e4a.js} +1 -1
- package/dist/post-components/p-4597d1c3.js +1 -0
- package/dist/post-components/{p-7e8a18d7.js → p-53a30368.js} +1 -1
- package/dist/post-components/p-561c08b4.js +1 -0
- package/dist/post-components/p-6140c940.entry.js +1 -0
- package/dist/post-components/{p-160091b9.js → p-6187c5e1.js} +1 -1
- package/dist/post-components/p-68299c5b.entry.js +1 -0
- package/dist/post-components/p-73a4b019.entry.js +1 -0
- package/dist/post-components/p-836fd268.entry.js +1 -0
- package/dist/post-components/{p-686e6976.js → p-95506674.js} +1 -1
- package/dist/post-components/{p-4168411a.js → p-9e800883.js} +1 -1
- package/dist/post-components/p-a1bcd2aa.entry.js +1 -0
- package/dist/post-components/{p-e2fcf9fc.js → p-ad151865.js} +1 -1
- package/dist/post-components/{p-dbc95e1b.js → p-ad821773.js} +1 -1
- package/dist/post-components/{p-ad1c7c22.js → p-c7631dcb.js} +1 -1
- package/dist/post-components/p-e2c86b7c.entry.js +1 -0
- package/dist/post-components/p-e506830c.entry.js +1 -0
- package/dist/post-components/p-ecbc1ddd.entry.js +1 -0
- package/dist/post-components/p-f5d1a100.js +1 -0
- package/dist/post-components/p-fd0d76a3.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -1
- package/dist/types/components/post-alert/post-alert.d.ts +1 -1
- package/dist/types/components/post-icon/post-icon.d.ts +1 -1
- package/dist/types/components/post-logo/post-logo.d.ts +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +4 -3
- package/loaders/post-accordion.js +10 -8
- package/loaders/post-alert.js +4 -4
- package/loaders/post-collapsible2.js +2 -2
- package/loaders/post-icon2.js +2 -2
- package/loaders/post-logo.js +2 -2
- package/package.json +2 -2
- package/dist/post-components/p-0ad92d40.js +0 -1
- package/dist/post-components/p-0d727b6a.entry.js +0 -1
- package/dist/post-components/p-10d2ed7c.entry.js +0 -1
- package/dist/post-components/p-2947a519.entry.js +0 -1
- package/dist/post-components/p-4684af69.entry.js +0 -1
- package/dist/post-components/p-5e0818bb.entry.js +0 -1
- package/dist/post-components/p-61c37218.entry.js +0 -1
- package/dist/post-components/p-61c94490.js +0 -1
- package/dist/post-components/p-6a17f5f9.entry.js +0 -1
- package/dist/post-components/p-77499830.entry.js +0 -1
- package/dist/post-components/p-7f661e68.entry.js +0 -1
- package/dist/post-components/p-9df17de7.js +0 -1
- package/dist/post-components/p-9e12c76d.js +0 -1
- package/dist/post-components/p-a64e7df9.entry.js +0 -1
- package/dist/post-components/p-ae6605fb.js +0 -1
- package/dist/post-components/p-c0d1d3b1.js +0 -1
- package/dist/post-components/p-c483ca2f.entry.js +0 -1
- package/dist/post-components/p-d2f9de94.js +0 -2
- package/dist/post-components/p-e256fb38.js +0 -1
- package/dist/post-components/p-e5bda8b0.entry.js +0 -1
- package/dist/post-components/p-f0c8f827.entry.js +0 -1
- package/dist/post-components/p-f3b0dca5.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Custom positioning reference element.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postPopovercontainer = require('./post-popovercontainer-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postPopovercontainer = require('./post-popovercontainer-aa0e0967.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.js');
|
|
5
5
|
|
|
6
6
|
const postRatingCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
|
|
7
7
|
const PostRatingStyle0 = postRatingCss;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postRating = require('./post-rating-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postRating = require('./post-rating-dd8c976e.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.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}";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTabHeader = require('./post-tab-header-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTabHeader = require('./post-tab-header-59d9c5bd.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.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-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.js');
|
|
5
5
|
|
|
6
6
|
const postTabPanelCss = ":host{display:none}";
|
|
7
7
|
const PostTabPanelStyle0 = postTabPanelCss;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTabPanel = require('./post-tab-panel-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTabPanel = require('./post-tab-panel-2fc318f1.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.js');
|
|
5
5
|
const fade = require('./fade-35a3633a.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTabs = require('./post-tabs-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTabs = require('./post-tabs-f5547fd4.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.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-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.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:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
|
|
7
7
|
const PostTagStyle0 = postTagCss;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTag = require('./post-tag-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTag = require('./post-tag-f26e84de.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-72b9122e.js');
|
|
4
|
+
const _package = require('./package-36c660f5.js');
|
|
5
5
|
const attributeObserver = require('./attribute-observer-10f08c04.js');
|
|
6
6
|
const index$1 = require('./index-01f30442.js');
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTooltip = require('./post-tooltip-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTooltip = require('./post-tooltip-b67c7f02.js');
|
|
6
|
+
require('./index-72b9122e.js');
|
|
7
|
+
require('./package-36c660f5.js');
|
|
8
8
|
require('./attribute-observer-10f08c04.js');
|
|
9
9
|
require('./index-01f30442.js');
|
|
10
10
|
require('./constants-238701d3.js');
|
|
@@ -24,21 +24,23 @@ export class PostAccordion {
|
|
|
24
24
|
this.validateHeadingLevel();
|
|
25
25
|
}
|
|
26
26
|
collapseToggleHandler(event) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
event.stopPropagation();
|
|
28
|
+
const toggledItem = event.target;
|
|
29
|
+
const closestParentAccordion = toggledItem.closest('post-accordion');
|
|
30
|
+
if (closestParentAccordion === this.host && toggledItem.localName === 'post-accordion-item') {
|
|
31
|
+
const toggledAccordionItem = event.target;
|
|
32
|
+
const isClosing = this.expandedItems.has(toggledAccordionItem);
|
|
31
33
|
if (isClosing) {
|
|
32
|
-
this.expandedItems.delete(
|
|
34
|
+
this.expandedItems.delete(toggledAccordionItem);
|
|
33
35
|
}
|
|
34
36
|
else {
|
|
35
|
-
this.expandedItems.add(
|
|
37
|
+
this.expandedItems.add(toggledAccordionItem);
|
|
36
38
|
}
|
|
37
39
|
if (this.multiple || isClosing)
|
|
38
40
|
return;
|
|
39
41
|
// close other open accordion items to have only one opened at a time
|
|
40
42
|
Array.from(this.expandedItems.values())
|
|
41
|
-
.filter(item => item !==
|
|
43
|
+
.filter(item => item !== toggledAccordionItem)
|
|
42
44
|
.forEach(item => {
|
|
43
45
|
item.toggle(false);
|
|
44
46
|
});
|
|
@@ -88,7 +90,7 @@ export class PostAccordion {
|
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: 'cfc6280e052937f50bc481fe73cf25ede6e40314', "data-version": version }, h("div", { key: '090539a2ebe9d216609a7e56597c5f379d439fb8', class: "accordion" }, h("slot", { key: '4ae4095b14b6b9233f1d66c8543d625a77a77e09', onSlotchange: () => this.registerAccordionItems() }))));
|
|
92
94
|
}
|
|
93
95
|
static get is() { return "post-accordion"; }
|
|
94
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class PostAccordionItem {
|
|
|
15
15
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
16
16
|
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
componentDidLoad() {
|
|
19
19
|
this.validateHeadingLevel();
|
|
20
20
|
}
|
|
21
21
|
componentWillLoad() {
|
|
@@ -23,7 +23,8 @@ export class PostAccordionItem {
|
|
|
23
23
|
}
|
|
24
24
|
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
25
25
|
onCollapseToggle(event) {
|
|
26
|
-
if (event.target
|
|
26
|
+
if (event.target === this.host &&
|
|
27
|
+
event.target.localName === 'post-accordion-item') {
|
|
27
28
|
this.collapsed = !event.detail;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -36,7 +37,7 @@ export class PostAccordionItem {
|
|
|
36
37
|
render() {
|
|
37
38
|
var _a;
|
|
38
39
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
39
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '610dbc5f3a5da823806ce205d26eeab37fc6ea37', id: this.id, "data-version": version }, h("div", { key: '9678dacae2bd8a50644506db46852c006e35f10c', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '3c2b300f3c2a4b992678e15a7bf39e46ec033637', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'a9ce98a575f64d9be7f6017d213217801556803d', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '7149fa70d9a0d004ba16eb4ad17542eff6952575', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}` }, h("slot", { key: '0a3f01852653f09fcb5a9c8d9a9cde276091ab6d', name: "header" })))), h("post-collapsible", { key: '99f28c099b124010e063b099153dd6ca96020a50', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '65e6dd8a1975231686836e42d90778a822bc501a', class: "accordion-body" }, h("slot", { key: 'e9ebb2918d7bbe92e2ce82da477b1df4c3146ee2' }))))));
|
|
40
41
|
}
|
|
41
42
|
static get is() { return "post-accordion-item"; }
|
|
42
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class PostAlert {
|
|
|
39
39
|
validateType(type = this.type) {
|
|
40
40
|
checkEmptyOrOneOf(type, ALERT_TYPES, `The post-alert requires a type form: ${ALERT_TYPES.join(', ')}`);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
componentDidLoad() {
|
|
43
43
|
this.validateDismissible();
|
|
44
44
|
this.validateFixed();
|
|
45
45
|
this.validateIcon();
|
|
@@ -70,14 +70,14 @@ export class PostAlert {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
const defaultAlertContent = [
|
|
73
|
-
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: '
|
|
73
|
+
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'a3404eee0322cc2b50125bf4ca08969e33d15763', name: "heading" }))),
|
|
74
74
|
h("slot", { key: `${this.alertId}-message` }),
|
|
75
75
|
];
|
|
76
76
|
const actionAlertContent = [
|
|
77
77
|
h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
|
|
78
|
-
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '
|
|
78
|
+
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '50941abd468008cd58a1e05577243d1046a0e20e', name: "actions" })),
|
|
79
79
|
];
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '99c1e3b4cc943d8be2d5abe7b2b27dce03548d15', "data-version": version }, h("div", { key: 'a290771bcc1234684502f524fe6e7e44501fc004', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '57c9cdbec53430b0fc6e121b5928bb14b86c37e0', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: '82d59b6deb736b4053b2b0876c87456c160928ee', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "post-alert"; }
|
|
83
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,11 +43,11 @@ export class PostCollapsible {
|
|
|
43
43
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
44
44
|
*/
|
|
45
45
|
updateTriggers() {
|
|
46
|
-
const triggers = document.querySelectorAll(`post-collapsible-trigger[for
|
|
46
|
+
const triggers = document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`);
|
|
47
47
|
triggers.forEach(trigger => trigger.update());
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '27c09f5612f7a2ef48c3ed97bfae29a8c9ea78ca', "data-version": version }, h("slot", { key: 'df30089afa0ff33d945dcb4c381ac08acb7cb08c' })));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "post-collapsible"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class PostIcon {
|
|
|
49
49
|
validateScale(newValue = this.scale) {
|
|
50
50
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
componentDidLoad() {
|
|
53
53
|
this.validateBase();
|
|
54
54
|
this.validateName();
|
|
55
55
|
this.validateFlipH();
|
|
@@ -81,7 +81,7 @@ export class PostIcon {
|
|
|
81
81
|
})
|
|
82
82
|
.filter(([_key, value]) => value !== null)
|
|
83
83
|
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
84
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '5def9850dfccafe1ed1499fa042d7c1358256f38', "data-version": version }, h("span", { key: '663ec6e0079669d23be3bad4890cdd580145c05b', style: svgStyles })));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "post-icon"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class PostLogo {
|
|
|
11
11
|
validateUrl() {
|
|
12
12
|
checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
componentDidLoad() {
|
|
15
15
|
this.validateUrl();
|
|
16
16
|
this.checkDescription();
|
|
17
17
|
}
|
|
@@ -23,7 +23,7 @@ export class PostLogo {
|
|
|
23
23
|
render() {
|
|
24
24
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
25
25
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '5e12f01c5df290fbfc98ad955c1660e0a588fab0', "data-version": version }, h(LogoTag, Object.assign({ key: 'f52322a18279954eff4162927329e4ee17c0175a', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: '61a31b1df5cc8cbb67efb4de9ed3e2547575e067', class: "description" }, h("slot", { key: '27b06f1fd8bf9422e8acbe4f258102816ee05b70', onSlotchange: () => this.checkDescription() })), h("svg", { key: '5688e2665af9bfa3232966d9a88244279d37e2f4', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '138b2d8929c5fa434ecba7f1d7d6cc0cb597aac2', id: "Logo" }, h("rect", { key: '603d6f10b5650e69c19c43659d5a34853153c3ee', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '81bdbf1bf6656ce1280a295639e453f457decb18', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '8c23a4bc20006cb1d8965d20d8565062550eb5b3', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "post-logo"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,7 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
20
20
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
21
21
|
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
componentDidLoad() {
|
|
24
24
|
this.validateHeadingLevel();
|
|
25
25
|
}
|
|
26
26
|
componentWillLoad() {
|
|
@@ -28,7 +28,8 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
28
28
|
}
|
|
29
29
|
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
30
30
|
onCollapseToggle(event) {
|
|
31
|
-
if (event.target
|
|
31
|
+
if (event.target === this.host &&
|
|
32
|
+
event.target.localName === 'post-accordion-item') {
|
|
32
33
|
this.collapsed = !event.detail;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -41,7 +42,7 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
41
42
|
render() {
|
|
42
43
|
var _a;
|
|
43
44
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
44
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '610dbc5f3a5da823806ce205d26eeab37fc6ea37', id: this.id, "data-version": version }, h("div", { key: '9678dacae2bd8a50644506db46852c006e35f10c', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '3c2b300f3c2a4b992678e15a7bf39e46ec033637', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'a9ce98a575f64d9be7f6017d213217801556803d', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '7149fa70d9a0d004ba16eb4ad17542eff6952575', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}` }, h("slot", { key: '0a3f01852653f09fcb5a9c8d9a9cde276091ab6d', name: "header" })))), h("post-collapsible", { key: '99f28c099b124010e063b099153dd6ca96020a50', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '65e6dd8a1975231686836e42d90778a822bc501a', class: "accordion-body" }, h("slot", { key: 'e9ebb2918d7bbe92e2ce82da477b1df4c3146ee2' }))))));
|
|
45
46
|
}
|
|
46
47
|
get host() { return this; }
|
|
47
48
|
static get watchers() { return {
|
|
@@ -28,21 +28,23 @@ const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion exten
|
|
|
28
28
|
this.validateHeadingLevel();
|
|
29
29
|
}
|
|
30
30
|
collapseToggleHandler(event) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
const toggledItem = event.target;
|
|
33
|
+
const closestParentAccordion = toggledItem.closest('post-accordion');
|
|
34
|
+
if (closestParentAccordion === this.host && toggledItem.localName === 'post-accordion-item') {
|
|
35
|
+
const toggledAccordionItem = event.target;
|
|
36
|
+
const isClosing = this.expandedItems.has(toggledAccordionItem);
|
|
35
37
|
if (isClosing) {
|
|
36
|
-
this.expandedItems.delete(
|
|
38
|
+
this.expandedItems.delete(toggledAccordionItem);
|
|
37
39
|
}
|
|
38
40
|
else {
|
|
39
|
-
this.expandedItems.add(
|
|
41
|
+
this.expandedItems.add(toggledAccordionItem);
|
|
40
42
|
}
|
|
41
43
|
if (this.multiple || isClosing)
|
|
42
44
|
return;
|
|
43
45
|
// close other open accordion items to have only one opened at a time
|
|
44
46
|
Array.from(this.expandedItems.values())
|
|
45
|
-
.filter(item => item !==
|
|
47
|
+
.filter(item => item !== toggledAccordionItem)
|
|
46
48
|
.forEach(item => {
|
|
47
49
|
item.toggle(false);
|
|
48
50
|
});
|
|
@@ -92,7 +94,7 @@ const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion exten
|
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
render() {
|
|
95
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: 'cfc6280e052937f50bc481fe73cf25ede6e40314', "data-version": version }, h("div", { key: '090539a2ebe9d216609a7e56597c5f379d439fb8', class: "accordion" }, h("slot", { key: '4ae4095b14b6b9233f1d66c8543d625a77a77e09', onSlotchange: () => this.registerAccordionItems() }))));
|
|
96
98
|
}
|
|
97
99
|
get host() { return this; }
|
|
98
100
|
static get watchers() { return {
|
|
@@ -46,7 +46,7 @@ const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLE
|
|
|
46
46
|
validateType(type = this.type) {
|
|
47
47
|
checkEmptyOrOneOf(type, ALERT_TYPES, `The post-alert requires a type form: ${ALERT_TYPES.join(', ')}`);
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
componentDidLoad() {
|
|
50
50
|
this.validateDismissible();
|
|
51
51
|
this.validateFixed();
|
|
52
52
|
this.validateIcon();
|
|
@@ -77,14 +77,14 @@ const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLE
|
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
79
|
const defaultAlertContent = [
|
|
80
|
-
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: '
|
|
80
|
+
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'a3404eee0322cc2b50125bf4ca08969e33d15763', name: "heading" }))),
|
|
81
81
|
h("slot", { key: `${this.alertId}-message` }),
|
|
82
82
|
];
|
|
83
83
|
const actionAlertContent = [
|
|
84
84
|
h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
|
|
85
|
-
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '
|
|
85
|
+
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '50941abd468008cd58a1e05577243d1046a0e20e', name: "actions" })),
|
|
86
86
|
];
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '99c1e3b4cc943d8be2d5abe7b2b27dce03548d15', "data-version": version }, h("div", { key: 'a290771bcc1234684502f524fe6e7e44501fc004', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '57c9cdbec53430b0fc6e121b5928bb14b86c37e0', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: '82d59b6deb736b4053b2b0876c87456c160928ee', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
|
|
88
88
|
}
|
|
89
89
|
get host() { return this; }
|
|
90
90
|
static get watchers() { return {
|
|
@@ -69,11 +69,11 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
|
|
|
69
69
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
70
70
|
*/
|
|
71
71
|
updateTriggers() {
|
|
72
|
-
const triggers = document.querySelectorAll(`post-collapsible-trigger[for
|
|
72
|
+
const triggers = document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`);
|
|
73
73
|
triggers.forEach(trigger => trigger.update());
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '27c09f5612f7a2ef48c3ed97bfae29a8c9ea78ca', "data-version": version }, h("slot", { key: 'df30089afa0ff33d945dcb4c381ac08acb7cb08c' })));
|
|
77
77
|
}
|
|
78
78
|
get host() { return this; }
|
|
79
79
|
static get watchers() { return {
|
|
@@ -55,7 +55,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
55
55
|
validateScale(newValue = this.scale) {
|
|
56
56
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
componentDidLoad() {
|
|
59
59
|
this.validateBase();
|
|
60
60
|
this.validateName();
|
|
61
61
|
this.validateFlipH();
|
|
@@ -87,7 +87,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
87
87
|
})
|
|
88
88
|
.filter(([_key, value]) => value !== null)
|
|
89
89
|
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '5def9850dfccafe1ed1499fa042d7c1358256f38', "data-version": version }, h("span", { key: '663ec6e0079669d23be3bad4890cdd580145c05b', style: svgStyles })));
|
|
91
91
|
}
|
|
92
92
|
get host() { return this; }
|
|
93
93
|
static get watchers() { return {
|
|
@@ -15,7 +15,7 @@ const PostLogo = /*@__PURE__*/ proxyCustomElement(class PostLogo extends HTMLEle
|
|
|
15
15
|
validateUrl() {
|
|
16
16
|
checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
componentDidLoad() {
|
|
19
19
|
this.validateUrl();
|
|
20
20
|
this.checkDescription();
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ const PostLogo = /*@__PURE__*/ proxyCustomElement(class PostLogo extends HTMLEle
|
|
|
27
27
|
render() {
|
|
28
28
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
29
29
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '5e12f01c5df290fbfc98ad955c1660e0a588fab0', "data-version": version }, h(LogoTag, Object.assign({ key: 'f52322a18279954eff4162927329e4ee17c0175a', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: '61a31b1df5cc8cbb67efb4de9ed3e2547575e067', class: "description" }, h("slot", { key: '27b06f1fd8bf9422e8acbe4f258102816ee05b70', onSlotchange: () => this.checkDescription() })), h("svg", { key: '5688e2665af9bfa3232966d9a88244279d37e2f4', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '138b2d8929c5fa434ecba7f1d7d6cc0cb597aac2', id: "Logo" }, h("rect", { key: '603d6f10b5650e69c19c43659d5a34853153c3ee', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '81bdbf1bf6656ce1280a295639e453f457decb18', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '8c23a4bc20006cb1d8965d20d8565062550eb5b3', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
|
|
31
31
|
}
|
|
32
32
|
get host() { return this; }
|
|
33
33
|
static get watchers() { return {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'post-components';
|
|
2
|
-
const BUILD = /* post-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute:
|
|
2
|
+
const BUILD = /* post-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "data-hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -130,7 +130,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
130
130
|
|
|
131
131
|
// src/client/client-style.ts
|
|
132
132
|
var styles = /* @__PURE__ */ new Map();
|
|
133
|
-
var HYDRATED_CSS = "{visibility:hidden}
|
|
133
|
+
var HYDRATED_CSS = "{visibility:hidden}[data-hydrated]{visibility:inherit}";
|
|
134
134
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
135
135
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
136
136
|
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
@@ -1275,8 +1275,8 @@ var safeCall = (instance, method, arg) => {
|
|
|
1275
1275
|
return void 0;
|
|
1276
1276
|
};
|
|
1277
1277
|
var addHydratedFlag = (elm) => {
|
|
1278
|
-
var
|
|
1279
|
-
return elm.
|
|
1278
|
+
var _b;
|
|
1279
|
+
return elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") ;
|
|
1280
1280
|
};
|
|
1281
1281
|
|
|
1282
1282
|
// src/runtime/set-value.ts
|