@swisspost/design-system-components 7.4.9 → 7.4.10
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/{package-4e243dd8.js → package-e3ef1673.js} +1 -1
- package/dist/cjs/{post-accordion-ce83add5.js → post-accordion-99a00c01.js} +1 -1
- package/dist/cjs/{post-accordion-item-c75ca1ac.js → post-accordion-item-7bd51084.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-98ebde8f.js → post-alert-e513f465.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-d60c6998.js → post-card-control-3fb7a7d3.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-9b30cc1c.js → post-collapsible-314729b5.js} +1 -1
- package/dist/cjs/{post-collapsible-trigger-b6af9fa6.js → post-collapsible-trigger-7dfe15e1.js} +1 -1
- package/dist/cjs/post-collapsible-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/{post-icon-133f5f99.js → post-icon-cb4bf1f6.js} +19 -4
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-f8e2a007.js → post-popover-df5487d2.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-1d6daa2a.js → post-popovercontainer-e7928cf8.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-8505f9df.js → post-rating-6056638e.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-457d8a5d.js → post-tab-header-664b4d8b.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-ab7b10d9.js → post-tab-panel-2348d23a.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-e2899740.js → post-tabs-04f20575.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-2ae173b8.js → post-tag-0efcd7a2.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-15d85ffa.js → post-tooltip-abc576e9.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-icon/post-icon.js +18 -3
- package/dist/components/package.js +1 -1
- package/dist/components/post-icon2.js +18 -3
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +16 -16
- package/dist/esm/{package-db4481b4.js → package-79261567.js} +1 -1
- package/dist/esm/{post-accordion-b512017b.js → post-accordion-f34d67cf.js} +1 -1
- package/dist/esm/{post-accordion-item-d73cbfe0.js → post-accordion-item-28850d05.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-cbdc31be.js → post-alert-29814559.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-f052ae55.js → post-card-control-b22b8114.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-66a26663.js → post-collapsible-56f08239.js} +1 -1
- package/dist/esm/{post-collapsible-trigger-8394bbca.js → post-collapsible-trigger-b7d0ece3.js} +1 -1
- package/dist/esm/post-collapsible-trigger.entry.js +2 -2
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/{post-icon-02a5642f.js → post-icon-5d7a3ba9.js} +19 -4
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-popover-f371fc52.js → post-popover-dcffb2b0.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-a93f59dc.js → post-popovercontainer-f2230bfc.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-00af74f1.js → post-rating-9323ef6a.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-1c89d427.js → post-tab-header-4527a6a0.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-c9487339.js → post-tab-panel-2c3785fc.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-aef1b257.js → post-tabs-a77d768a.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-803bfa89.js → post-tag-2314a9cd.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-92c953eb.js → post-tooltip-3df5878c.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-00de1557.js +1 -0
- package/dist/post-components/{p-5d899150.js → p-1ac427d7.js} +1 -1
- package/dist/post-components/p-316ffe46.js +1 -0
- package/dist/post-components/p-31b4bf40.entry.js +1 -0
- package/dist/post-components/{p-cd3a95bc.js → p-3ca6e3f8.js} +1 -1
- package/dist/post-components/p-42ffb478.entry.js +1 -0
- package/dist/post-components/{p-d6942830.js → p-43d269f5.js} +1 -1
- package/dist/post-components/p-43e2817b.entry.js +1 -0
- package/dist/post-components/{p-3837f8d9.js → p-537266ee.js} +1 -1
- package/dist/post-components/{p-ccc962e7.js → p-5c383dd5.js} +1 -1
- package/dist/post-components/{p-81384711.js → p-60e8abb1.js} +1 -1
- package/dist/post-components/p-63365290.entry.js +1 -0
- package/dist/post-components/p-70a93f32.entry.js +1 -0
- package/dist/post-components/{p-f6c08610.js → p-8518f0e6.js} +1 -1
- package/dist/post-components/{p-5bc8ca5c.js → p-96dd256e.js} +1 -1
- package/dist/post-components/p-9a74dc73.entry.js +1 -0
- package/dist/post-components/p-9ba0d70e.entry.js +1 -0
- package/dist/post-components/{p-5549c87d.js → p-9c7ac02c.js} +1 -1
- package/dist/post-components/p-a4956698.entry.js +1 -0
- package/dist/post-components/p-a8dec74c.entry.js +1 -0
- package/dist/post-components/{p-5efa4c05.js → p-a8f9e9ae.js} +1 -1
- package/dist/post-components/p-aa4bd00e.entry.js +1 -0
- package/dist/post-components/{p-e92bb590.js → p-ad171101.js} +1 -1
- package/dist/post-components/{p-bc6aeed0.js → p-b5e3b27e.js} +1 -1
- package/dist/post-components/p-c067adcf.entry.js +1 -0
- package/dist/post-components/p-c2f67907.entry.js +1 -0
- package/dist/post-components/p-c7259dda.entry.js +1 -0
- package/dist/post-components/p-ccd7b0aa.entry.js +1 -0
- package/dist/post-components/{p-c9b91b12.js → p-d6639fb5.js} +1 -1
- package/dist/post-components/p-f438d028.entry.js +1 -0
- package/dist/post-components/{p-3a18348a.js → p-f8201b09.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/package.json +2 -2
- package/dist/post-components/p-099a5fa0.entry.js +0 -1
- package/dist/post-components/p-1e03ab88.entry.js +0 -1
- package/dist/post-components/p-4549e147.entry.js +0 -1
- package/dist/post-components/p-51ef1780.entry.js +0 -1
- package/dist/post-components/p-555547e4.entry.js +0 -1
- package/dist/post-components/p-56bc4f94.js +0 -1
- package/dist/post-components/p-58bb8f1d.entry.js +0 -1
- package/dist/post-components/p-6199fc20.entry.js +0 -1
- package/dist/post-components/p-7e60aeb1.entry.js +0 -1
- package/dist/post-components/p-95184ae6.entry.js +0 -1
- package/dist/post-components/p-a49c3a0e.entry.js +0 -1
- package/dist/post-components/p-abf1e628.entry.js +0 -1
- package/dist/post-components/p-c92701fd.entry.js +0 -1
- package/dist/post-components/p-cf15fc8e.entry.js +0 -1
- package/dist/post-components/p-d183d54d.js +0 -1
- package/dist/post-components/p-e41eee57.entry.js +0 -1
- package/dist/post-components/p-f134c132.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,g as s}from"./p-8c7f0075.js";import{v as i}from"./p-
|
|
1
|
+
import{r as t,g as s}from"./p-8c7f0075.js";import{v as i}from"./p-00de1557.js";import{c as o}from"./p-4a3f67ab.js";import{c as e}from"./p-b095519d.js";const r=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=function(t,s=200){let i;return(...o)=>{i&&clearTimeout(i),i=setTimeout(t,s,...o)}}((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const i=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==i?!i:void 0}`)})),this.for=void 0}setAriaAttributes(){e(this.for,'The post-collapsible-trigger "for" prop is required.'),o(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.host.setAttribute("data-version",i),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}setAriaExpanded(t){this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=document.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return s(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{r as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tag}from"./p-a8f9e9ae.js";import"./p-8c7f0075.js";import"./p-00de1557.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as r,g as a}from"./p-8c7f0075.js";import{v as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as r,g as a}from"./p-8c7f0075.js";import{v as e}from"./p-00de1557.js";const o=class{constructor(i){t(this,i),this.postInput=s(this,"postInput",7),this.postChange=s(this,"postChange",7),this.hasChanged=!1,this.hoveredIndex=void 0,this.label="Rating",this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return i(r,{key:"b175b250377f4bf9be92ad05fb14f7e4a8f7c12f","data-version":e},i("div",{key:"b12eb5ff191d5a4ac5270845f120360f61e0fce0",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} out of ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>i("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},i("post-icon",{name:"2062",class:"stroke"}),i("post-icon",{name:"2574",class:"fill"}))))))}get host(){return a(this)}};o.style='/*!\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%)}';export{o as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-8c7f0075.js";export{s as setNonce}from"./p-8c7f0075.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-
|
|
1
|
+
import{p as e,b as a}from"./p-8c7f0075.js";export{s as setNonce}from"./p-8c7f0075.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-ccd7b0aa",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}]]],["p-43e2817b",[[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"]}]]],["p-70a93f32",[[65,"post-card-control",{label:[1],description:[1],type:[1],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1025],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],type:["validateControlType"],checked:["updateControlChecked"],disabled:["updateControlDisbled"]}]]],["p-a8dec74c",[[4,"post-popovercontainer",{placement:[1],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-31b4bf40",[[1,"post-popover",{placement:[1],closeButtonCaption:[1,"close-button-caption"],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-aa4bd00e",[[1,"post-rating",{label:[1],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-f438d028",[[1,"post-tag",{variant:[1],size:[1],icon:[1],classes:[32]},null,{variant:["variantChanged"],size:["sizeChanged"]}]]],["p-63365290",[[1,"post-tooltip",{placement:[1],arrow:[4],delayed:[4],show:[64],hide:[64],toggle:[64]},null,{delayed:["validateDelayed"]}]]],["p-9ba0d70e",[[1,"post-accordion",{headingLevel:[2,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-a4956698",[[0,"post-collapsible-trigger",{for:[1],update:[64]},[[4,"postToggle","setAriaExpanded"]],{for:["setAriaAttributes"]}]]],["p-42ffb478",[[1,"post-tab-header",{panel:[1],tabId:[32]},null,{panel:["validateFor"]}]]],["p-c2f67907",[[1,"post-tab-panel",{name:[1],panelId:[32]}]]],["p-9a74dc73",[[1,"post-tabs",{activePanel:[1,"active-panel"],show:[64]}]]],["p-c067adcf",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}]]],["p-c7259dda",[[1,"post-icon",{animation:[1],base:[1],flipH:[4,"flip-h"],flipV:[4,"flip-v"],name:[1],rotate:[2],scale:[2],svgStyles:[32],svgOutput:[32]},null,{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.10",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@floating-ui/dom": "1.6.7",
|
|
28
28
|
"@oddbird/popover-polyfill": "0.3.7",
|
|
29
|
-
"@swisspost/design-system-styles": "7.4.
|
|
29
|
+
"@swisspost/design-system-styles": "7.4.10",
|
|
30
30
|
"ally.js": "1.4.1",
|
|
31
31
|
"long-press-event": "2.5.0"
|
|
32
32
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tabs}from"./p-5bc8ca5c.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-2737eaf5.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tag}from"./p-5efa4c05.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion}from"./p-5d899150.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tab_panel}from"./p-d6942830.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_alert}from"./p-bc6aeed0.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-2737eaf5.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="7.4.9";export{o as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_icon}from"./p-d183d54d.js";import"./p-8c7f0075.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-56bc4f94.js";import"./p-b095519d.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_collapsible}from"./p-cd3a95bc.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_popovercontainer}from"./p-5549c87d.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_card_control}from"./p-3837f8d9.js";import"./p-8c7f0075.js";import"./p-611b3c41.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-56bc4f94.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion_item}from"./p-ccc962e7.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-247a1668.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tab_header}from"./p-81384711.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_collapsible_trigger}from"./p-c9b91b12.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_rating}from"./p-3a18348a.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as t,H as a,g as e}from"./p-8c7f0075.js";import{c as o,b as n}from"./p-ac500761.js";import{v as s}from"./p-56bc4f94.js";import{c as r}from"./p-b095519d.js";import{c as l}from"./p-4a3f67ab.js";const m=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],c=class{constructor(t){i(this,t),this.svgStyles=void 0,this.svgOutput=void 0,this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(i=this.animation){void 0!==i&&o(i,m,`The post-icon "animation" prop requires one of the following values: ${m.join(", ")}.`)}validateBase(i=this.base){n(i,"string",'The post-icon "base" prop should be a string.')}validateFlipH(i=this.flipH){n(i,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(i=this.flipV){n(i,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(i=this.name){r(i,'The post-icon "name" prop is required!.'),l(i,"string",'The post-icon "name" prop should be a string.')}validateRotate(i=this.rotate){n(i,"number",'The post-icon "rotate" prop should be a number.')}validateScale(i=this.scale){n(i,"number",'The post-icon "scale" prop should be a number.')}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}componentWillRender(){this.setPath()}setPath(){var i,t,a,e;const o=null!==(t=null===(i=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===i?void 0:i.getAttribute("data-post-icon-base"))&&void 0!==t?t:null,n=`${null!==(e=null!==(a=this.base)&&void 0!==a?a:o)&&void 0!==e?e:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");this.path=new URL(`${n}${this.name}.svg`,window.location.origin).toString()}render(){const i=Object.entries({"-webkit-mask-image":`url('${this.path}')`,"mask-image":`url('${this.path}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([i,t])=>null!==t)).reduce(((i,[t,a])=>Object.assign(i,{[t]:a})),{});return t(a,{key:"c4744bef990eef90a7de44312fd349583b295f4c","data-version":s},t("span",{key:"0655e0d6ada2b822bf4b3c399dcf63000e26bf46",style:i}))}get host(){return e(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};c.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";export{c as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tooltip}from"./p-e92bb590.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-6adeaa6c.js";import"./p-ac500761.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_popover}from"./p-f6c08610.js";import"./p-8c7f0075.js";import"./p-56bc4f94.js";import"./p-6adeaa6c.js";
|