@swisspost/design-system-components 8.8.1 → 8.9.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.cjs.js +16 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-7cd94cc1.js → package-47e2b57d.js} +1 -1
- package/dist/cjs/{post-accordion-209311b2.js → post-accordion-20974b9a.js} +1 -1
- package/dist/cjs/{post-accordion-item-30e8de69.js → post-accordion-item-eabef3b1.js} +1 -1
- 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-42f38d0e.js → post-alert-3949513d.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-2a0c2b0e.js → post-card-control-2d5007b3.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-a9b648df.js → post-collapsible-trigger-fdbbc054.js} +1 -1
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-icon-bf7f72ea.js → post-icon-f21b03b4.js} +60 -41
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-logo-83e587ec.js → post-logo-5e71df9f.js} +1 -1
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-10479850.js → post-popover-2ad73bd3.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-fc148d89.js → post-popovercontainer-33d2561e.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-4260a089.js → post-rating-45cfe0cf.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-ffda553c.js → post-tab-header-fb539597.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-06d573ec.js → post-tab-panel-b9df8047.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-c1d050d2.js → post-tabs-315fdf6c.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-ba9f59d1.js → post-tag-b7789a57.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-a98bdf98.js → post-tooltip-f5d7c6f1.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-icon/post-icon.js +59 -46
- package/dist/components/package.js +1 -1
- package/dist/components/post-icon2.js +60 -43
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +16 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-23a37332.js → package-08fde6c9.js} +1 -1
- package/dist/esm/{post-accordion-dbcdd859.js → post-accordion-fc082a6d.js} +1 -1
- package/dist/esm/{post-accordion-item-bfedb160.js → post-accordion-item-2266baf9.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-93078740.js → post-alert-5f56513e.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-41b0a1fe.js → post-card-control-8692a4b3.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-e6a0ade2.js → post-collapsible-trigger-df2fda7a.js} +1 -1
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-icon-4569eb21.js → post-icon-f23e7246.js} +60 -41
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-logo-6d90082f.js → post-logo-39493c51.js} +1 -1
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/{post-popover-8e0233b3.js → post-popover-e46db9d7.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-84b97b76.js → post-popovercontainer-f2bd3608.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-3d01cdbb.js → post-rating-2a35545e.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-7f03e707.js → post-tab-header-ba8f0dde.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-441f13aa.js → post-tab-panel-03f0c4e7.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-3b1ca219.js → post-tabs-75e64d21.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-cc6b1316.js → post-tag-64b158d7.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-6dffcef3.js → post-tooltip-78458f2e.js} +1 -1
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-df113888.js → p-0f230d9d.js} +1 -1
- package/dist/post-components/p-228f6fff.entry.js +1 -0
- package/dist/post-components/{p-d7b94e9a.entry.js → p-26a75af8.entry.js} +1 -1
- package/dist/post-components/{p-98a2eebf.js → p-27466c43.js} +1 -1
- package/dist/post-components/{p-3a9ea683.js → p-29f3b024.js} +1 -1
- package/dist/post-components/p-3a7e0eb0.entry.js +1 -0
- package/dist/post-components/{p-6442b545.js → p-41a6ed2e.js} +1 -1
- package/dist/post-components/p-43919169.entry.js +1 -0
- package/dist/post-components/{p-3e67d7b3.js → p-4f4e3ca3.js} +1 -1
- package/dist/post-components/{p-5ccdb402.js → p-606f6944.js} +1 -1
- package/dist/post-components/p-6364af05.entry.js +1 -0
- package/dist/post-components/{p-0469b617.js → p-740936e8.js} +1 -1
- package/dist/post-components/{p-fbe0c51a.js → p-76f71540.js} +1 -1
- package/dist/post-components/p-786ab630.entry.js +1 -0
- package/dist/post-components/p-80b34a10.entry.js +1 -0
- package/dist/post-components/{p-f7478b7d.js → p-82a37955.js} +1 -1
- package/dist/post-components/p-880141d1.entry.js +1 -0
- package/dist/post-components/p-9cf80f04.entry.js +1 -0
- package/dist/post-components/p-af7f9325.entry.js +1 -0
- package/dist/post-components/{p-0642e538.js → p-b562ef6b.js} +1 -1
- package/dist/post-components/p-b5a5a368.entry.js +1 -0
- package/dist/post-components/{p-e14579cb.js → p-b7435c96.js} +1 -1
- package/dist/post-components/{p-a2020cf0.js → p-c172368e.js} +1 -1
- package/dist/post-components/p-c2b10c80.entry.js +1 -0
- package/dist/post-components/p-d6c0790c.entry.js +1 -0
- package/dist/post-components/{p-85b9b6ec.js → p-dec7d50c.js} +1 -1
- package/dist/post-components/{p-bfbc2d0f.js → p-e15f7eb6.js} +1 -1
- package/dist/post-components/p-ec6b827c.entry.js +1 -0
- package/dist/post-components/p-ed057108.js +1 -0
- package/dist/post-components/p-f16cf914.entry.js +1 -0
- package/dist/post-components/p-f5251062.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-icon/post-icon.d.ts +2 -5
- package/loaders/package.js +1 -1
- package/loaders/post-icon2.js +60 -43
- package/package.json +2 -2
- package/dist/post-components/p-18a1b6aa.entry.js +0 -1
- package/dist/post-components/p-31b1c158.entry.js +0 -1
- package/dist/post-components/p-326ddd97.entry.js +0 -1
- package/dist/post-components/p-36e197f4.js +0 -1
- package/dist/post-components/p-453d2b59.entry.js +0 -1
- package/dist/post-components/p-51f07a27.entry.js +0 -1
- package/dist/post-components/p-53b727b2.entry.js +0 -1
- package/dist/post-components/p-56dfc056.entry.js +0 -1
- package/dist/post-components/p-7be9ddcb.entry.js +0 -1
- package/dist/post-components/p-8479b48c.entry.js +0 -1
- package/dist/post-components/p-949984b1.entry.js +0 -1
- package/dist/post-components/p-950c543c.entry.js +0 -1
- package/dist/post-components/p-ad17494f.entry.js +0 -1
- package/dist/post-components/p-b5b33d21.js +0 -1
- package/dist/post-components/p-dbf4049e.entry.js +0 -1
- package/dist/post-components/p-f4d3207d.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-72b9122e.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-47e2b57d.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-
|
|
5
|
+
const postTabHeader = require('./post-tab-header-fb539597.js');
|
|
6
6
|
require('./index-72b9122e.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-47e2b57d.js');
|
|
8
8
|
require('./check-non-empty-eeaa8f77.js');
|
|
9
9
|
require('./constants-238701d3.js');
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-72b9122e.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-47e2b57d.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-
|
|
5
|
+
const postTabPanel = require('./post-tab-panel-b9df8047.js');
|
|
6
6
|
require('./index-72b9122e.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-47e2b57d.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -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-315fdf6c.js');
|
|
6
6
|
require('./index-72b9122e.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-47e2b57d.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-72b9122e.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-47e2b57d.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-
|
|
5
|
+
const postTag = require('./post-tag-b7789a57.js');
|
|
6
6
|
require('./index-72b9122e.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-47e2b57d.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-72b9122e.js');
|
|
4
|
-
const _package = require('./package-
|
|
4
|
+
const _package = require('./package-47e2b57d.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-
|
|
5
|
+
const postTooltip = require('./post-tooltip-f5d7c6f1.js');
|
|
6
6
|
require('./index-72b9122e.js');
|
|
7
|
-
require('./package-
|
|
7
|
+
require('./package-47e2b57d.js');
|
|
8
8
|
require('./attribute-observer-10f08c04.js');
|
|
9
9
|
require('./index-01f30442.js');
|
|
10
10
|
require('./constants-238701d3.js');
|
|
@@ -16,8 +16,6 @@ const ANIMATION_KEYS = [...ANIMATION_NAMES];
|
|
|
16
16
|
*/
|
|
17
17
|
export class PostIcon {
|
|
18
18
|
constructor() {
|
|
19
|
-
this.svgStyles = undefined;
|
|
20
|
-
this.svgOutput = undefined;
|
|
21
19
|
this.animation = null;
|
|
22
20
|
this.base = null;
|
|
23
21
|
this.flipH = false;
|
|
@@ -49,6 +47,64 @@ export class PostIcon {
|
|
|
49
47
|
validateScale(newValue = this.scale) {
|
|
50
48
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
51
49
|
}
|
|
50
|
+
// Construct the icon url from different possible sources
|
|
51
|
+
getUrl() {
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
53
|
+
// the first definition object which defines a domain, will be used to set the domain of the file url
|
|
54
|
+
// the first definition object which defines a slug, will be used to set the slug of the file url
|
|
55
|
+
const urlDefinitions = [
|
|
56
|
+
getUrlDefinition(this.base, 'both'),
|
|
57
|
+
getUrlDefinition((_a = document.head
|
|
58
|
+
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base'), 'relative'),
|
|
59
|
+
getUrlDefinition((_b = document.querySelector('base[href]')) === null || _b === void 0 ? void 0 : _b.getAttribute('href'), 'both'),
|
|
60
|
+
];
|
|
61
|
+
// in case no other definition defines a domain, the current origin is used as a fallback
|
|
62
|
+
const origin = (_e = (_d = (_c = urlDefinitions.find(d => d.definesDomain)) === null || _c === void 0 ? void 0 : _c.url) === null || _d === void 0 ? void 0 : _d.origin) !== null && _e !== void 0 ? _e : window.location.origin;
|
|
63
|
+
// in case no other definition defines a slug, the cdn url is used as a fallback
|
|
64
|
+
const slug = (_g = (_f = urlDefinitions.find(d => d.definesSlug)) === null || _f === void 0 ? void 0 : _f.url) === null || _g === void 0 ? void 0 : _g.pathname;
|
|
65
|
+
const file = `${this.name}.svg`;
|
|
66
|
+
let url;
|
|
67
|
+
if (slug) {
|
|
68
|
+
url = new URL(`${origin}${slug}/${file}`).toString();
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
url = new URL(`${CDN_URL}/${file}`).toString();
|
|
72
|
+
}
|
|
73
|
+
return url;
|
|
74
|
+
function getUrlDefinition(url, allow) {
|
|
75
|
+
return {
|
|
76
|
+
url: getUrlObject(url),
|
|
77
|
+
definesDomain: allow !== 'relative' ? definesDomain(url) : false,
|
|
78
|
+
definesSlug: allow !== 'absolute' ? definesSlug(url) : false,
|
|
79
|
+
};
|
|
80
|
+
function getUrlObject(url) {
|
|
81
|
+
if (url) {
|
|
82
|
+
return definesDomain(url) ? new URL(url) : new URL(url, window.location.origin);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function definesDomain(url) {
|
|
89
|
+
return url ? /^https?:\/\//.test(url) : false;
|
|
90
|
+
}
|
|
91
|
+
function definesSlug(url) {
|
|
92
|
+
const urlObject = getUrlObject(url);
|
|
93
|
+
return Boolean(/^\/.+/.test(urlObject === null || urlObject === void 0 ? void 0 : urlObject.pathname));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
getStyles() {
|
|
98
|
+
const url = this.getUrl();
|
|
99
|
+
return Object.entries({
|
|
100
|
+
'-webkit-mask-image': `url(${url})`,
|
|
101
|
+
'mask-image': `url('${url}')`,
|
|
102
|
+
'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
103
|
+
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
104
|
+
})
|
|
105
|
+
.filter(([_key, value]) => value !== null)
|
|
106
|
+
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
107
|
+
}
|
|
52
108
|
componentDidLoad() {
|
|
53
109
|
this.validateBase();
|
|
54
110
|
this.validateName();
|
|
@@ -58,45 +114,8 @@ export class PostIcon {
|
|
|
58
114
|
this.validateRotate();
|
|
59
115
|
this.validateAnimation();
|
|
60
116
|
}
|
|
61
|
-
componentWillRender() {
|
|
62
|
-
this.setPath();
|
|
63
|
-
}
|
|
64
|
-
setPath() {
|
|
65
|
-
var _a, _b, _c, _d, _e;
|
|
66
|
-
// Construct icon path from different possible sources
|
|
67
|
-
const metaBase = (_b = (_a = document.head
|
|
68
|
-
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
|
|
69
|
-
const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
|
|
70
|
-
let calculatedBase;
|
|
71
|
-
// If this.base or metaBase are relative, prefix them with the baseHref if it exists
|
|
72
|
-
const absolutePathReg = /^(?:[a-z+]+:)?\/\//i;
|
|
73
|
-
if (baseHref) {
|
|
74
|
-
if (this.base && !absolutePathReg.test(this.base)) {
|
|
75
|
-
calculatedBase = baseHref + this.base;
|
|
76
|
-
}
|
|
77
|
-
else if (metaBase && !absolutePathReg.test(metaBase)) {
|
|
78
|
-
calculatedBase = baseHref + metaBase;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
calculatedBase = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase;
|
|
83
|
-
}
|
|
84
|
-
const fileBase = `${(_e = calculatedBase !== null && calculatedBase !== void 0 ? calculatedBase : baseHref) !== null && _e !== void 0 ? _e : CDN_URL}/`.replace(/\/\/$/, '/');
|
|
85
|
-
const fileName = `${this.name}.svg`;
|
|
86
|
-
const filePath = `${fileBase}${fileName}`;
|
|
87
|
-
this.path = new URL(filePath, window.location.origin).toString();
|
|
88
|
-
}
|
|
89
117
|
render() {
|
|
90
|
-
|
|
91
|
-
const svgStyles = Object.entries({
|
|
92
|
-
'-webkit-mask-image': `url('${this.path}')`,
|
|
93
|
-
'mask-image': `url('${this.path}')`,
|
|
94
|
-
'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
95
|
-
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
96
|
-
})
|
|
97
|
-
.filter(([_key, value]) => value !== null)
|
|
98
|
-
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
99
|
-
return (h(Host, { key: '5703c51eda06d34af250a182b100a6bb85ce1dfb', "data-version": version }, h("span", { key: '918921da2a4ef82154d27d4a988c524deecb627b', style: svgStyles })));
|
|
118
|
+
return (h(Host, { key: '77740745eb170076301edb3ff96b846e48c7f2f4', "data-version": version }, h("span", { key: '573f2acd8e92ec5f2f8853b5cb05386bcaee693d', style: this.getStyles() })));
|
|
100
119
|
}
|
|
101
120
|
static get is() { return "post-icon"; }
|
|
102
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,12 +263,6 @@ export class PostIcon {
|
|
|
244
263
|
}
|
|
245
264
|
};
|
|
246
265
|
}
|
|
247
|
-
static get states() {
|
|
248
|
-
return {
|
|
249
|
-
"svgStyles": {},
|
|
250
|
-
"svgOutput": {}
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
266
|
static get elementRef() { return "host"; }
|
|
254
267
|
static get watchers() {
|
|
255
268
|
return [{
|
|
@@ -22,8 +22,6 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
22
22
|
super();
|
|
23
23
|
this.__registerHost();
|
|
24
24
|
this.__attachShadow();
|
|
25
|
-
this.svgStyles = undefined;
|
|
26
|
-
this.svgOutput = undefined;
|
|
27
25
|
this.animation = null;
|
|
28
26
|
this.base = null;
|
|
29
27
|
this.flipH = false;
|
|
@@ -55,6 +53,64 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
55
53
|
validateScale(newValue = this.scale) {
|
|
56
54
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
57
55
|
}
|
|
56
|
+
// Construct the icon url from different possible sources
|
|
57
|
+
getUrl() {
|
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
59
|
+
// the first definition object which defines a domain, will be used to set the domain of the file url
|
|
60
|
+
// the first definition object which defines a slug, will be used to set the slug of the file url
|
|
61
|
+
const urlDefinitions = [
|
|
62
|
+
getUrlDefinition(this.base, 'both'),
|
|
63
|
+
getUrlDefinition((_a = document.head
|
|
64
|
+
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base'), 'relative'),
|
|
65
|
+
getUrlDefinition((_b = document.querySelector('base[href]')) === null || _b === void 0 ? void 0 : _b.getAttribute('href'), 'both'),
|
|
66
|
+
];
|
|
67
|
+
// in case no other definition defines a domain, the current origin is used as a fallback
|
|
68
|
+
const origin = (_e = (_d = (_c = urlDefinitions.find(d => d.definesDomain)) === null || _c === void 0 ? void 0 : _c.url) === null || _d === void 0 ? void 0 : _d.origin) !== null && _e !== void 0 ? _e : window.location.origin;
|
|
69
|
+
// in case no other definition defines a slug, the cdn url is used as a fallback
|
|
70
|
+
const slug = (_g = (_f = urlDefinitions.find(d => d.definesSlug)) === null || _f === void 0 ? void 0 : _f.url) === null || _g === void 0 ? void 0 : _g.pathname;
|
|
71
|
+
const file = `${this.name}.svg`;
|
|
72
|
+
let url;
|
|
73
|
+
if (slug) {
|
|
74
|
+
url = new URL(`${origin}${slug}/${file}`).toString();
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
url = new URL(`${CDN_URL}/${file}`).toString();
|
|
78
|
+
}
|
|
79
|
+
return url;
|
|
80
|
+
function getUrlDefinition(url, allow) {
|
|
81
|
+
return {
|
|
82
|
+
url: getUrlObject(url),
|
|
83
|
+
definesDomain: allow !== 'relative' ? definesDomain(url) : false,
|
|
84
|
+
definesSlug: allow !== 'absolute' ? definesSlug(url) : false,
|
|
85
|
+
};
|
|
86
|
+
function getUrlObject(url) {
|
|
87
|
+
if (url) {
|
|
88
|
+
return definesDomain(url) ? new URL(url) : new URL(url, window.location.origin);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function definesDomain(url) {
|
|
95
|
+
return url ? /^https?:\/\//.test(url) : false;
|
|
96
|
+
}
|
|
97
|
+
function definesSlug(url) {
|
|
98
|
+
const urlObject = getUrlObject(url);
|
|
99
|
+
return Boolean(/^\/.+/.test(urlObject === null || urlObject === void 0 ? void 0 : urlObject.pathname));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
getStyles() {
|
|
104
|
+
const url = this.getUrl();
|
|
105
|
+
return Object.entries({
|
|
106
|
+
'-webkit-mask-image': `url(${url})`,
|
|
107
|
+
'mask-image': `url('${url}')`,
|
|
108
|
+
'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
109
|
+
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
110
|
+
})
|
|
111
|
+
.filter(([_key, value]) => value !== null)
|
|
112
|
+
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
113
|
+
}
|
|
58
114
|
componentDidLoad() {
|
|
59
115
|
this.validateBase();
|
|
60
116
|
this.validateName();
|
|
@@ -64,45 +120,8 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
64
120
|
this.validateRotate();
|
|
65
121
|
this.validateAnimation();
|
|
66
122
|
}
|
|
67
|
-
componentWillRender() {
|
|
68
|
-
this.setPath();
|
|
69
|
-
}
|
|
70
|
-
setPath() {
|
|
71
|
-
var _a, _b, _c, _d, _e;
|
|
72
|
-
// Construct icon path from different possible sources
|
|
73
|
-
const metaBase = (_b = (_a = document.head
|
|
74
|
-
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
|
|
75
|
-
const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
|
|
76
|
-
let calculatedBase;
|
|
77
|
-
// If this.base or metaBase are relative, prefix them with the baseHref if it exists
|
|
78
|
-
const absolutePathReg = /^(?:[a-z+]+:)?\/\//i;
|
|
79
|
-
if (baseHref) {
|
|
80
|
-
if (this.base && !absolutePathReg.test(this.base)) {
|
|
81
|
-
calculatedBase = baseHref + this.base;
|
|
82
|
-
}
|
|
83
|
-
else if (metaBase && !absolutePathReg.test(metaBase)) {
|
|
84
|
-
calculatedBase = baseHref + metaBase;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
calculatedBase = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase;
|
|
89
|
-
}
|
|
90
|
-
const fileBase = `${(_e = calculatedBase !== null && calculatedBase !== void 0 ? calculatedBase : baseHref) !== null && _e !== void 0 ? _e : CDN_URL}/`.replace(/\/\/$/, '/');
|
|
91
|
-
const fileName = `${this.name}.svg`;
|
|
92
|
-
const filePath = `${fileBase}${fileName}`;
|
|
93
|
-
this.path = new URL(filePath, window.location.origin).toString();
|
|
94
|
-
}
|
|
95
123
|
render() {
|
|
96
|
-
|
|
97
|
-
const svgStyles = Object.entries({
|
|
98
|
-
'-webkit-mask-image': `url('${this.path}')`,
|
|
99
|
-
'mask-image': `url('${this.path}')`,
|
|
100
|
-
'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
101
|
-
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
102
|
-
})
|
|
103
|
-
.filter(([_key, value]) => value !== null)
|
|
104
|
-
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
105
|
-
return (h(Host, { key: '5703c51eda06d34af250a182b100a6bb85ce1dfb', "data-version": version }, h("span", { key: '918921da2a4ef82154d27d4a988c524deecb627b', style: svgStyles })));
|
|
124
|
+
return (h(Host, { key: '77740745eb170076301edb3ff96b846e48c7f2f4', "data-version": version }, h("span", { key: '573f2acd8e92ec5f2f8853b5cb05386bcaee693d', style: this.getStyles() })));
|
|
106
125
|
}
|
|
107
126
|
get host() { return this; }
|
|
108
127
|
static get watchers() { return {
|
|
@@ -122,9 +141,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
122
141
|
"flipV": [4, "flip-v"],
|
|
123
142
|
"name": [1],
|
|
124
143
|
"rotate": [2],
|
|
125
|
-
"scale": [2]
|
|
126
|
-
"svgStyles": [32],
|
|
127
|
-
"svgOutput": [32]
|
|
144
|
+
"scale": [2]
|
|
128
145
|
}, undefined, {
|
|
129
146
|
"animation": ["validateAnimation"],
|
|
130
147
|
"base": ["validateBase"],
|
package/dist/docs.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { P as PostAccordion } from './post-accordion-
|
|
2
|
-
export { P as PostAccordionItem } from './post-accordion-item-
|
|
3
|
-
export { P as PostAlert } from './post-alert-
|
|
4
|
-
export { P as PostCardControl } from './post-card-control-
|
|
5
|
-
export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-
|
|
6
|
-
export { P as PostIcon } from './post-icon-
|
|
7
|
-
export { P as PostLogo } from './post-logo-
|
|
8
|
-
export { P as PostPopover } from './post-popover-
|
|
9
|
-
export { P as PostPopovercontainer } from './post-popovercontainer-
|
|
10
|
-
export { P as PostRating } from './post-rating-
|
|
11
|
-
export { P as PostTabs } from './post-tabs-
|
|
12
|
-
export { P as PostTabHeader } from './post-tab-header-
|
|
13
|
-
export { P as PostTabPanel } from './post-tab-panel-
|
|
14
|
-
export { P as PostTooltip } from './post-tooltip-
|
|
15
|
-
export { P as PostTag } from './post-tag-
|
|
1
|
+
export { P as PostAccordion } from './post-accordion-fc082a6d.js';
|
|
2
|
+
export { P as PostAccordionItem } from './post-accordion-item-2266baf9.js';
|
|
3
|
+
export { P as PostAlert } from './post-alert-5f56513e.js';
|
|
4
|
+
export { P as PostCardControl } from './post-card-control-8692a4b3.js';
|
|
5
|
+
export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-df2fda7a.js';
|
|
6
|
+
export { P as PostIcon } from './post-icon-f23e7246.js';
|
|
7
|
+
export { P as PostLogo } from './post-logo-39493c51.js';
|
|
8
|
+
export { P as PostPopover } from './post-popover-e46db9d7.js';
|
|
9
|
+
export { P as PostPopovercontainer } from './post-popovercontainer-f2bd3608.js';
|
|
10
|
+
export { P as PostRating } from './post-rating-2a35545e.js';
|
|
11
|
+
export { P as PostTabs } from './post-tabs-75e64d21.js';
|
|
12
|
+
export { P as PostTabHeader } from './post-tab-header-ba8f0dde.js';
|
|
13
|
+
export { P as PostTabPanel } from './post-tab-panel-03f0c4e7.js';
|
|
14
|
+
export { P as PostTooltip } from './post-tooltip-78458f2e.js';
|
|
15
|
+
export { P as PostTag } from './post-tag-64b158d7.js';
|
|
16
16
|
import './index-61528ac5.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-08fde6c9.js';
|
|
18
18
|
import './heading-levels-5b7b4349.js';
|
|
19
19
|
import './check-one-of-6b3ef8eb.js';
|
|
20
20
|
import './index-f41b763f.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[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",[[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":["updateControlDisabled"]}]]],["post-popovercontainer",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-logo",[[1,"post-logo",{"url":[1]},null,{"url":["validateUrl"]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible_2",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[0,"post-collapsible-trigger",{"for":[1],"update":[64]},null,{"for":["setAriaAttributes"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2]
|
|
8
|
+
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[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",[[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":["updateControlDisabled"]}]]],["post-popovercontainer",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-logo",[[1,"post-logo",{"url":[1]},null,{"url":["validateUrl"]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible_2",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[0,"post-collapsible-trigger",{"for":[1],"update":[64]},null,{"for":["setAriaAttributes"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-61528ac5.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-08fde6c9.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
|
|
4
4
|
import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-61528ac5.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-08fde6c9.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
|
|
4
4
|
import { c as checkEmptyOrOneOf } from './index-f41b763f.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_accordion_item } from './post-accordion-item-
|
|
1
|
+
export { P as post_accordion_item } from './post-accordion-item-2266baf9.js';
|
|
2
2
|
import './index-61528ac5.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-08fde6c9.js';
|
|
4
4
|
import './heading-levels-5b7b4349.js';
|
|
5
5
|
import './index-f41b763f.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_accordion } from './post-accordion-
|
|
1
|
+
export { P as post_accordion } from './post-accordion-fc082a6d.js';
|
|
2
2
|
import './index-61528ac5.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-08fde6c9.js';
|
|
4
4
|
import './heading-levels-5b7b4349.js';
|
|
5
5
|
import './check-one-of-6b3ef8eb.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-61528ac5.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-08fde6c9.js';
|
|
3
3
|
import { f as fadeOut } from './fade-7fd71785.js';
|
|
4
4
|
import { a as checkType, b as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-f41b763f.js';
|
|
5
5
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_alert } from './post-alert-
|
|
1
|
+
export { P as post_alert } from './post-alert-5f56513e.js';
|
|
2
2
|
import './index-61528ac5.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-08fde6c9.js';
|
|
4
4
|
import './fade-7fd71785.js';
|
|
5
5
|
import './index-f41b763f.js';
|
|
6
6
|
import './constants-8d548297.js';
|