@telia-ace/alliance-ui 1.1.0-next.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-AIATXCVP.js +1 -0
- package/dist/chunk-AZ6GENL6.js +1 -0
- package/dist/chunk-BDQXACZ6.js +1 -0
- package/dist/chunk-CNFJFZ6D.js +5 -0
- package/dist/chunk-DDZCFV2G.js +33 -0
- package/dist/chunk-H7ZWVNSK.js +1 -0
- package/dist/{chunk-7GNCIH46.js → chunk-HIRVP2II.js} +2 -2
- package/dist/chunk-IXSQVPWG.js +55 -0
- package/dist/chunk-IZII256B.js +116 -0
- package/dist/chunk-JZJUYJ7F.js +1 -0
- package/dist/chunk-QLXKAVKR.js +1 -0
- package/dist/{chunk-AV5TYPEK.js → chunk-T7HYVHI2.js} +30 -30
- package/dist/chunk-XLNQVDOQ.js +16 -0
- package/dist/components/alliance-link/index.js +1 -1
- package/dist/components/alliance-modal/index.js +1 -1
- package/dist/components/alliance-paginator/index.js +1 -1
- package/dist/components/alliance-pop-over/index.js +1 -1
- package/dist/components/alliance-table/index.js +1 -1
- package/dist/components/alliance-view/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/voca/component-library-styling.js +1 -2
- package/dist/voca/components/telia-accordion-item.js +1 -4
- package/dist/voca/components/telia-accordion.js +1 -1
- package/dist/voca/components/telia-badge.js +1 -1
- package/dist/voca/components/telia-button.js +1 -1
- package/dist/voca/components/telia-card-frame-link.js +1 -1
- package/dist/voca/components/telia-card-frame.js +1 -1
- package/dist/voca/components/telia-checkbox.js +1 -1
- package/dist/voca/components/telia-chip-choice.js +1 -3
- package/dist/voca/components/telia-chip-filter.js +1 -3
- package/dist/voca/components/telia-col.js +1 -1
- package/dist/voca/components/telia-color-dot.js +1 -1
- package/dist/voca/components/telia-counter-badge.js +1 -1
- package/dist/voca/components/telia-cta-link.js +1 -1
- package/dist/voca/components/telia-date-picker.js +1 -1
- package/dist/voca/components/telia-divider.js +1 -1
- package/dist/voca/components/telia-field-assistive-text.js +1 -1
- package/dist/voca/components/telia-field-error.js +1 -1
- package/dist/voca/components/telia-field-valid.js +1 -1
- package/dist/voca/components/telia-fieldset.js +1 -4
- package/dist/voca/components/telia-focus-trap.js +1 -1
- package/dist/voca/components/telia-form.js +1 -1
- package/dist/voca/components/telia-grid.js +1 -1
- package/dist/voca/components/telia-heading.js +1 -1
- package/dist/voca/components/telia-icon.js +1 -1
- package/dist/voca/components/telia-image.js +1 -1
- package/dist/voca/components/telia-label.js +1 -1
- package/dist/voca/components/telia-link-image.js +1 -1
- package/dist/voca/components/telia-link.js +1 -1
- package/dist/voca/components/telia-list.js +1 -1
- package/dist/voca/components/telia-logo.js +1 -1
- package/dist/voca/components/telia-notification.js +1 -1
- package/dist/voca/components/telia-overlay.js +1 -1
- package/dist/voca/components/telia-p.js +1 -7
- package/dist/voca/components/telia-pictogram.js +1 -1
- package/dist/voca/components/telia-radio-button.js +1 -1
- package/dist/voca/components/telia-row.js +1 -1
- package/dist/voca/components/telia-search-input.js +1 -1
- package/dist/voca/components/telia-select.js +1 -1
- package/dist/voca/components/telia-skeleton.js +1 -1
- package/dist/voca/components/telia-status-badge.js +1 -1
- package/dist/voca/components/telia-style-link.js +1 -1
- package/dist/voca/components/telia-tab-content.js +1 -1
- package/dist/voca/components/telia-tab-header.js +1 -1
- package/dist/voca/components/telia-tab.js +1 -1
- package/dist/voca/components/telia-text-input.js +1 -1
- package/dist/voca/components/telia-text-spacing.js +1 -1
- package/dist/voca/components/telia-textarea.js +1 -1
- package/dist/voca/components/telia-toggle.js +1 -1
- package/dist/voca/components/telia-visually-hidden.js +1 -1
- package/dist/voca/foundations.js +1 -1
- package/dist/voca/icons.js +1 -1
- package/package.json +6 -9
- package/dist/chunk-25DKARS5.js +0 -1
- package/dist/chunk-2CBI5DBV.js +0 -1
- package/dist/chunk-2INTPVP7.js +0 -1
- package/dist/chunk-2KYKMBE5.js +0 -1
- package/dist/chunk-3SNMRPVF.js +0 -33
- package/dist/chunk-3XBIT2QC.js +0 -1
- package/dist/chunk-4BBGHITO.js +0 -1
- package/dist/chunk-4RRWBCIH.js +0 -1
- package/dist/chunk-4YVRMZHU.js +0 -1
- package/dist/chunk-5ADT643J.js +0 -116
- package/dist/chunk-652ZEYLG.js +0 -1
- package/dist/chunk-7ADVKHKA.js +0 -1
- package/dist/chunk-BJCDB2UT.js +0 -23
- package/dist/chunk-CPNFJGZA.js +0 -5
- package/dist/chunk-CQXRGCL7.js +0 -0
- package/dist/chunk-DWTR6BZK.js +0 -1
- package/dist/chunk-EODFLZFI.js +0 -1
- package/dist/chunk-FTUVFYUS.js +0 -1
- package/dist/chunk-GXNVKBPH.js +0 -24
- package/dist/chunk-HY3DWO5A.js +0 -1
- package/dist/chunk-ILHJDXOE.js +0 -1
- package/dist/chunk-IP3GWZV5.js +0 -1
- package/dist/chunk-IRYZEKCA.js +0 -1
- package/dist/chunk-KIDSEE4D.js +0 -16
- package/dist/chunk-KTIWAGIV.js +0 -1
- package/dist/chunk-LU2NZ7PI.js +0 -55
- package/dist/chunk-NFNKJID6.js +0 -0
- package/dist/chunk-NXHOKNJ5.js +0 -10
- package/dist/chunk-R4RSRPKJ.js +0 -1
- package/dist/chunk-SX4ITYO2.js +0 -1
- package/dist/chunk-TCEWEAN6.js +0 -1
- package/dist/chunk-TNVJYLUC.js +0 -34
- package/dist/chunk-UFBH25JR.js +0 -1
- package/dist/chunk-W3X3OW6G.js +0 -118
- package/dist/chunk-WF2W45FP.js +0 -0
- package/dist/chunk-WOSOA5JK.js +0 -0
- package/dist/chunk-ZK2OOPE4.js +0 -1
- package/dist/shadow-css-3DZKVWAG.js +0 -17
package/dist/chunk-2KYKMBE5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-4RRWBCIH.js";import{a}from"./chunk-25DKARS5.js";import{a as l}from"./chunk-ILHJDXOE.js";import{a as i,b as t,e as r}from"./chunk-BJCDB2UT.js";var o=':host{display:block}.telia-field-error{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;color:#e4175c;display:flex;flex-direction:row}.telia-field-error__icon{flex:none;line-height:1.5;margin:calc(0.4rem * var(--voca-rem-multiplier)) calc(0.4rem * var(--voca-rem-multiplier)) 0 0;vertical-align:middle}',n=r(class extends i{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.dataTestid=null,this.relevant="additions text",this.dataTrackingId="telia-field-error"}render(){return t("div",{class:"telia-field-error","aria-live":"assertive","aria-relevant":this.relevant},t("telia-icon",{class:"telia-field-error__icon",size:"sm",svg:s.svg}),t("slot",null),t("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return o}},[1,"telia-field-error",{dataTestid:[1,"data-testid"],relevant:[1]}]);function c(){if(typeof customElements>"u")return;["telia-field-error","telia-icon","telia-vst"].forEach(e=>{switch(e){case"telia-field-error":customElements.get(e)||customElements.define(e,n);break;case"telia-icon":customElements.get(e)||a();break;case"telia-vst":customElements.get(e)||l();break}})}c();export{c as a};
|
package/dist/chunk-3SNMRPVF.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-CPNFJGZA.js";import{a as S,b as ft,c as Z,f as ut,g as G}from"./chunk-W3X3OW6G.js";import{d as K}from"./chunk-R4RSRPKJ.js";var mt=["top","right","bottom","left"],dt=["start","end"],et=mt.reduce((t,e)=>t.concat(e,e+"-"+dt[0],e+"-"+dt[1]),[]),I=Math.min,D=Math.max,X=Math.round,Y=Math.floor,k=t=>({x:t,y:t}),Ht={left:"right",right:"left",bottom:"top",top:"bottom"},Vt={start:"end",end:"start"};function nt(t,e){return typeof t=="function"?t(e):t}function j(t){return t.split("-")[0]}function M(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function ot(t){return t==="y"?"height":"width"}function it(t){return["top","bottom"].includes(j(t))?"y":"x"}function st(t){return ht(it(t))}function gt(t,e,n){n===void 0&&(n=!1);let o=M(t),i=st(t),r=ot(i),s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=tt(s)),[s,tt(s)]}function pt(t){return t.replace(/start|end/g,e=>Vt[e])}function tt(t){return t.replace(/left|right|bottom|top/g,e=>Ht[e])}function $t(t){return{top:0,right:0,bottom:0,left:0,...t}}function xt(t){return typeof t!="number"?$t(t):{top:t,right:t,bottom:t,left:t}}function B(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function wt(t,e,n){let{reference:o,floating:i}=t,r=it(e),s=st(e),c=ot(s),l=j(e),a=r==="y",m=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2,f;switch(l){case"top":f={x:m,y:o.y-i.height};break;case"bottom":f={x:m,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-i.width,y:u};break;default:f={x:o.x,y:o.y}}switch(M(e)){case"start":f[s]-=p*(n&&a?-1:1);break;case"end":f[s]+=p*(n&&a?-1:1);break}return f}var yt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:m,y:u}=wt(a,o,l),p=o,f={},g=0;for(let h=0;h<c.length;h++){let{name:y,fn:d}=c[h],{x,y:v,data:C,reset:w}=await d({x:m,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});if(m=x??m,u=v??u,f={...f,[y]:{...f[y],...C}},w&&g<=50){g++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(a=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:m,y:u}=wt(a,p,l)),h=-1;continue}}return{x:m,y:u,placement:p,strategy:i,middlewareData:f}};async function vt(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:m="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=nt(e,t),g=xt(f),y=c[p?u==="floating"?"reference":"floating":u],d=B(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:m,strategy:l})),x=u==="floating"?{...s.floating,x:o,y:i}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),C=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},w=B(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:v,strategy:l}):x);return{top:(d.top-w.top+g.top)/C.y,bottom:(w.bottom-d.bottom+g.bottom)/C.y,left:(d.left-w.left+g.left)/C.x,right:(w.right-d.right+g.right)/C.x}}function zt(t,e,n){return(t?[...n.filter(i=>M(i)===t),...n.filter(i=>M(i)!==t)]:n.filter(i=>j(i)===i)).filter(i=>t?M(i)===t||(e?pt(i)!==i:!1):!0)}var rt=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:m=!1,alignment:u,allowedPlacements:p=et,autoAlignment:f=!0,...g}=nt(t,e),h=u!==void 0||p===et?zt(u||null,f,p):p,y=await vt(e,g),d=((n=s.autoPlacement)==null?void 0:n.index)||0,x=h[d];if(x==null)return{};let v=gt(x,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==x)return{reset:{placement:h[0]}};let C=[y[j(x)],y[v[0]],y[v[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:x,overflows:C}],W=h[d+1];if(W)return{data:{index:d+1,overflows:w},reset:{placement:W}};let lt=w.map(E=>{let z=M(E.placement);return[E.placement,z&&m?E.overflows.slice(0,2).reduce((Ft,Wt)=>Ft+Wt,0):E.overflows[0],E.overflows]}).sort((E,z)=>E[1]-z[1]),at=((i=lt.filter(E=>E[2].slice(0,M(E[0])?2:3).every(z=>z<=0))[0])==null?void 0:i[0])||lt[0][0];return at!==c?{data:{index:d+1,overflows:w},reset:{placement:at}}:{}}}};function P(t){return At(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function T(t){var e;return(e=(At(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function At(t){return t instanceof Node||t instanceof A(t).Node}function L(t){return t instanceof Element||t instanceof A(t).Element}function O(t){return t instanceof HTMLElement||t instanceof A(t).HTMLElement}function bt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof A(t).ShadowRoot}function V(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=R(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Rt(t){return["table","td","th"].includes(P(t))}function J(t){let e=Q(),n=R(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ct(t){let e=N(t);for(;O(e)&&!_(e);){if(J(e))return e;e=N(e)}return null}function Q(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(P(t))}function R(t){return A(t).getComputedStyle(t)}function U(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(t){if(P(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bt(t)&&t.host||T(t);return bt(e)?e.host:e}function Ot(t){let e=N(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:O(e)&&V(e)?e:Ot(e)}function H(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Ot(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=A(i);return r?e.concat(s,s.visualViewport||[],V(i)?i:[],s.frameElement&&n?H(s.frameElement):[]):e.concat(i,H(i,[],n))}function Tt(t){let e=R(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=O(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=X(n)!==r||X(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function ct(t){return L(t)?t:t.contextElement}function $(t){let e=ct(t);if(!O(e))return k(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Tt(e),s=(r?X(n.width):n.width)/o,c=(r?X(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var It=k(0);function Lt(t){let e=A(t);return!Q()||!e.visualViewport?It:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xt(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==A(t)?!1:e}function F(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),r=ct(t),s=k(1);e&&(o?L(o)&&(s=$(o)):s=$(t));let c=Xt(r,n,o)?Lt(r):k(0),l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,m=i.width/s.x,u=i.height/s.y;if(r){let p=A(r),f=o&&L(o)?A(o):o,g=p.frameElement;for(;g&&o&&f!==p;){let h=$(g),y=g.getBoundingClientRect(),d=R(g),x=y.left+(g.clientLeft+parseFloat(d.paddingLeft))*h.x,v=y.top+(g.clientTop+parseFloat(d.paddingTop))*h.y;l*=h.x,a*=h.y,m*=h.x,u*=h.y,l+=x,a+=v,g=A(g).frameElement}}return B({width:m,height:u,x:l,y:a})}function Yt(t){let{rect:e,offsetParent:n,strategy:o}=t,i=O(n),r=T(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0},c=k(1),l=k(0);if((i||!i&&o!=="fixed")&&((P(n)!=="body"||V(r))&&(s=U(n)),O(n))){let a=F(n);c=$(n),l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function jt(t){return Array.from(t.getClientRects())}function kt(t){return F(T(t)).left+U(t).scrollLeft}function _t(t){let e=T(t),n=U(t),o=t.ownerDocument.body,i=D(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=D(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+kt(t),c=-n.scrollTop;return R(o).direction==="rtl"&&(s+=D(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ut(t,e){let n=A(t),o=T(t),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;let a=Q();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function qt(t,e){let n=F(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=O(t)?$(t):k(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Et(t,e,n){let o;if(e==="viewport")o=Ut(t,n);else if(e==="document")o=_t(T(t));else if(L(e))o=qt(e,n);else{let i=Lt(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return B(o)}function Pt(t,e){let n=N(t);return n===e||!L(n)||_(n)?!1:R(n).position==="fixed"||Pt(n,e)}function Kt(t,e){let n=e.get(t);if(n)return n;let o=H(t,[],!1).filter(c=>L(c)&&P(c)!=="body"),i=null,r=R(t).position==="fixed",s=r?N(t):t;for(;L(s)&&!_(s);){let c=R(s),l=J(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||V(s)&&!l&&Pt(t,s))?o=o.filter(m=>m!==s):i=c,s=N(s)}return e.set(t,o),o}function Gt(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,s=[...n==="clippingAncestors"?Kt(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,m)=>{let u=Et(e,m,i);return a.top=D(u.top,a.top),a.right=I(u.right,a.right),a.bottom=I(u.bottom,a.bottom),a.left=D(u.left,a.left),a},Et(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Jt(t){return Tt(t)}function Qt(t,e,n){let o=O(e),i=T(e),r=n==="fixed",s=F(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=k(0);if(o||!o&&!r)if((P(e)!=="body"||V(i))&&(c=U(e)),o){let a=F(e,!0,r,e);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else i&&(l.x=kt(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function St(t,e){return!O(t)||R(t).position==="fixed"?null:e?e(t):t.offsetParent}function Dt(t,e){let n=A(t);if(!O(t))return n;let o=St(t,e);for(;o&&Rt(o)&&R(o).position==="static";)o=St(o,e);return o&&(P(o)==="html"||P(o)==="body"&&R(o).position==="static"&&!J(o))?n:o||Ct(t)||n}var Zt=async function(t){let{reference:e,floating:n,strategy:o}=t,i=this.getOffsetParent||Dt,r=this.getDimensions;return{reference:Qt(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function te(t){return R(t).direction==="rtl"}var ee={convertOffsetParentRelativeRectToViewportRelativeRect:Yt,getDocumentElement:T,getClippingRect:Gt,getOffsetParent:Dt,getElementRects:Zt,getClientRects:jt,getDimensions:Jt,getScale:$,isElement:L,isRTL:te};function ne(t,e){let n=null,o,i=T(t);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let{left:a,top:m,width:u,height:p}=t.getBoundingClientRect();if(c||e(),!u||!p)return;let f=Y(m),g=Y(i.clientWidth-(a+u)),h=Y(i.clientHeight-(m+p)),y=Y(a),x={rootMargin:-f+"px "+-g+"px "+-h+"px "+-y+"px",threshold:D(0,I(1,l))||1},v=!0;function C(w){let W=w[0].intersectionRatio;if(W!==l){if(!v)return s();W?s(!1,W):o=setTimeout(()=>{s(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(t)}return s(!0),r}function Mt(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=ct(t),m=i||r?[...a?H(a):[],...H(e)]:[];m.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),r&&d.addEventListener("resize",n)});let u=a&&c?ne(a,n):null,p=-1,f=null;s&&(f=new ResizeObserver(d=>{let[x]=d;x&&x.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,h=l?F(t):null;l&&y();function y(){let d=F(t);h&&(d.x!==h.x||d.y!==h.y||d.width!==h.width||d.height!==h.height)&&n(),h=d,g=requestAnimationFrame(y)}return n(),()=>{m.forEach(d=>{i&&d.removeEventListener("scroll",n),r&&d.removeEventListener("resize",n)}),u&&u(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var Bt=(t,e,n)=>{let o=new Map,i={platform:ee,...n},r={...i.platform,_c:o};return yt(t,e,{...i,platform:r})};var q=class extends ut{constructor(){super(...arguments);this.onWindowClick=n=>{let{target:o,clientX:i,clientY:r}=n;if(!this.cursor){this.cursor={x:i,y:r};return}!o||o===this||this.contains(o)||this.anchorElement&&(o===this.anchorElement||this.anchorElement.contains(o))||this.remove()};this.position=()=>{let n=[];this.placement||n.push(rt()),Bt(this.reference(),this,{middleware:n,placement:this.placement}).then(({x:o,y:i})=>{Object.assign(this.style,{left:`${o}px`,top:`${i}px`})})};this.reference=()=>!this.anchorElement&&!this.cursor?Nt({x:0,y:0}):this.anchorElement||Nt(this.cursor)}static{this.styles=ft`
|
|
2
|
-
:host {
|
|
3
|
-
display: block;
|
|
4
|
-
width: max-content;
|
|
5
|
-
position: absolute;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
|
|
9
|
-
z-index: ${S(Number(b.layers.modal)*2)};
|
|
10
|
-
border: ${S(b.borders.widthXs)};
|
|
11
|
-
border-radius: ${S(b.borders.radiusSm)};
|
|
12
|
-
background-color: ${S(b.colors.white)};
|
|
13
|
-
box-shadow: ${S(b.shadows.md)};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([loading]) {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
padding: ${S(b.spacing.spacing12)};
|
|
20
|
-
gap: ${S(b.spacing.spacing12)};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([loading]) telia-skeleton {
|
|
24
|
-
height: ${S(b.spacing.spacing12)};
|
|
25
|
-
width: ${S(b.spacing.spacing128)};
|
|
26
|
-
}
|
|
27
|
-
`}connectedCallback(){super.connectedCallback();let n=document.getElementById(this.anchor);n&&(this.anchorElement=n),window.addEventListener("click",this.onWindowClick);let o=Mt(this.reference(),this,this.position);this.cleanup=()=>{window.removeEventListener("click",this.onWindowClick),o()}}disconnectedCallback(){this.dispatchEvent(new CustomEvent("close")),this.cleanup(),super.disconnectedCallback()}render(){return this.loading?Z`
|
|
28
|
-
<telia-skeleton round> </telia-skeleton>
|
|
29
|
-
<telia-skeleton round> </telia-skeleton>
|
|
30
|
-
<telia-skeleton round> </telia-skeleton>
|
|
31
|
-
<telia-skeleton round> </telia-skeleton>
|
|
32
|
-
<telia-skeleton round> </telia-skeleton>
|
|
33
|
-
`:Z` <slot> </slot> `}};K([G({type:String})],q.prototype,"anchor",2),K([G({type:String,attribute:!0,reflect:!0})],q.prototype,"placement",2),K([G({type:Boolean,attribute:!0,reflect:!0})],q.prototype,"loading",2);function Nt({x:t,y:e}){return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:e,top:e,left:t,right:t,bottom:e})}}export{q as a};
|
package/dist/chunk-3XBIT2QC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r,b as o}from"./chunk-KTIWAGIV.js";import{a as n}from"./chunk-ILHJDXOE.js";import{a as s,b as t,c as a,e as l}from"./chunk-BJCDB2UT.js";var d=":host(.standalone){display:flex}.telia-link__link ::slotted([slot=left]){margin-right:calc(0.8rem * var(--voca-rem-multiplier));padding-top:calc(0.2rem * var(--voca-rem-multiplier))}.telia-link__link ::slotted([slot=right]){margin-left:calc(0.8rem * var(--voca-rem-multiplier));padding-top:calc(0.2rem * var(--voca-rem-multiplier))}",c=l(class extends s{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.silent=!1,this.variant=r.TEXT,this.disableVisited=!1,this.darkBackground=!1,this.dataTrackingId="telia-link"}render(){let i="telia-link",e={[i]:!0,standalone:this.variant==="standalone"};return t(a,{class:e},t("telia-style-link",{silent:this.silent,variant:this.variant,"data-testid":this.dataTestid,"disable-visited":this.disableVisited,"dark-background":this.darkBackground},t("a",{href:this.href,target:this.target,download:this.download,"referrer-policy":this.referrerPolicy,title:this.linkTitle,class:`${i}__link`},t("slot",{name:"left"}),t("slot",null),t("slot",{name:"right"}))),t("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return d}},[1,"telia-link",{href:[1],silent:[4],variant:[1],dataTestid:[1,"data-testid"],target:[1],download:[8],referrerPolicy:[1,"referrer-policy"],linkTitle:[1,"link-title"],disableVisited:[4,"disable-visited"],darkBackground:[4,"dark-background"]}]);function m(){if(typeof customElements>"u")return;["telia-link","telia-style-link","telia-vst"].forEach(e=>{switch(e){case"telia-link":customElements.get(e)||customElements.define(e,c);break;case"telia-style-link":customElements.get(e)||o();break;case"telia-vst":customElements.get(e)||n();break}})}m();export{m as a};
|
package/dist/chunk-4BBGHITO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"close",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>'};export{e as a};
|
package/dist/chunk-4RRWBCIH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var C={name:"error-filled",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>'};export{C as a};
|
package/dist/chunk-4YVRMZHU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-25DKARS5.js";import{a as d}from"./chunk-ILHJDXOE.js";import{a as o,b as a,d as n,e as l}from"./chunk-BJCDB2UT.js";var i={Home:"Home",End:"End",ArrowRight:"ArrowRight",ArrowLeft:"ArrowLeft"},c=Object.keys(i),h='.telia-tab-header{border:0 solid transparent;background-color:transparent;color:#222222;cursor:pointer;margin:0;outline:0;padding:0;position:relative;width:100%}.telia-tab-header:hover .telia-tab-header__content{background-color:#fbf0ff;color:#5e0092}.telia-tab-header:hover .telia-tab-header__visible-title{font-weight:500}.telia-tab-header:focus .telia-tab-header__content{outline:calc(0.2rem * var(--voca-rem-multiplier)) solid #0099ff;outline-offset:calc(-1 * (0.2rem * var(--voca-rem-multiplier)));z-index:2}.telia-tab-header:focus:not(:focus-visible) .telia-tab-header__content{outline:none}.telia-tab-header--selected{cursor:auto}.telia-tab-header--selected .telia-tab-header__content{background-color:#ffffff;border-top:calc(0.2rem * var(--voca-rem-multiplier)) solid #29003e;color:#29003e;font-weight:500}.telia-tab-header--selected:hover>.telia-tab-header__content{background-color:#ffffff}.telia-tab-header__content{border-top:calc(0.2rem * var(--voca-rem-multiplier)) solid transparent;border-radius:calc(0.2rem * var(--voca-rem-multiplier));font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;background-color:rgba(0, 0, 0, 0.05);box-sizing:border-box;display:flex;height:100%;justify-content:center;padding:calc(0.8rem * var(--voca-rem-multiplier)) calc(1.6rem * var(--voca-rem-multiplier));position:relative;transition:all 3ms;white-space:nowrap;width:100%}@media screen and (min-width: 37.5em){.telia-tab-header__content{padding:calc(0.8rem * var(--voca-rem-multiplier)) calc(2.4rem * var(--voca-rem-multiplier))}}@media screen and (min-width: 64em){.telia-tab-header__content{padding:calc(0.8rem * var(--voca-rem-multiplier)) calc(2.4rem * var(--voca-rem-multiplier))}}.telia-tab-header__icon{margin-right:calc(0.4rem * var(--voca-rem-multiplier))}.telia-tab-header__visible-title{position:absolute}.telia-tab-header__hidden-title{font-weight:500;visibility:hidden}.telia-tab-header--light,.telia-tab-header--light-wide{background-color:transparent}.telia-tab-header--light::after,.telia-tab-header--light-wide::after{background-color:rgba(0, 0, 0, 0.15);z-index:1;bottom:0;content:"";display:block;height:calc(0.2rem * var(--voca-rem-multiplier));left:0;position:absolute;right:0;width:100%}.telia-tab-header--light .telia-tab-header__content,.telia-tab-header--light-wide .telia-tab-header__content{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid transparent;color:#29003e}.telia-tab-header--light:hover>.telia-tab-header__content,.telia-tab-header--light-wide:hover>.telia-tab-header__content{color:#5e0092;background-color:#fbf0ff}.telia-tab-header--light:hover::after,.telia-tab-header--light-wide:hover::after{background-color:rgba(0, 0, 0, 0.15)}.telia-tab-header--light.telia-tab-header--selected::after,.telia-tab-header--light-wide.telia-tab-header--selected::after{background-color:#29003e}.telia-tab-header--light.telia-tab-header--selected .telia-tab-header__content,.telia-tab-header--light-wide.telia-tab-header--selected .telia-tab-header__content{background-color:transparent}.telia-tab-header--contained-on-negative .telia-tab-header__content{background-color:rgba(255, 255, 255, 0.15);color:#fbf0ff}.telia-tab-header--contained-on-negative.telia-tab-header--selected .telia-tab-header__content{border-top:calc(0.2rem * var(--voca-rem-multiplier)) solid #ffffff;color:#29003e}',b=l(class extends o{constructor(){super(),this.__registerHost(),this.tabChange=n(this,"tabChange",7),this.vocaInternalTabNavigation=n(this,"vocaInternalTabNavigation",7),this.dataTestid=null,this.active=!1,this.dataIndex=null,this.isKeyPress=!0,this.variant="default"}componentDidUpdate(){this.active&&this.isKeyPress&&this.element.querySelector("button").focus()}onClickHandler(e){e.preventDefault(),e.stopPropagation(),this.tabChange.emit("click,"+this.dataIndex.toString()),this.vocaInternalTabNavigation.emit({originalEvent:e,value:{location:this.dataIndex}})}onKeyDownHandler(e){let t=e.key;if(t===i.ArrowRight||t===i.ArrowLeft){e.preventDefault(),e.stopPropagation();let r=e.key===i.ArrowRight?this.dataIndex+1:this.dataIndex-1;this.tabChange.emit(t+","+r.toString())}else(t===i.Home||t===i.End)&&(e.preventDefault(),e.stopPropagation(),this.tabChange.emit(t+","));this.handleKeyNavigation(e)}handleKeyNavigation(e){let t=e.key;if(c.indexOf(t)>-1){e.preventDefault(),e.stopPropagation();let r=i[t];this.vocaInternalTabNavigation.emit({originalEvent:e,value:{key:r}})}}render(){let e={"telia-tab-header":!0,"telia-tab-header--selected":this.active,[`telia-tab-header--${this.variant}`]:!!this.variant};return a("button",{class:e,role:"tab",id:this.tabId+"-header","aria-selected":this.active,"aria-controls":this.tabId+"-content",onClick:t=>this.onClickHandler(t),onKeyDown:t=>this.onKeyDownHandler(t),"data-testid":this.dataTestid,tabIndex:this.active?null:-1,"data-index":this.dataIndex},a("span",{class:"telia-tab-header__content"},this.icon&&a("telia-icon",{class:"telia-tab-header__icon",name:this.icon,svg:this.svg,size:"md"}),a("span",null,a("span",{class:"telia-tab-header__visible-title"},a("slot",null)),a("span",{class:"telia-tab-header__hidden-title","aria-hidden":!0},this.name))))}get element(){return this}static get style(){return h}},[4,"telia-tab-header",{dataTestid:[1,"data-testid"],tabId:[1,"tab-id"],active:[516],icon:[1],svg:[1],name:[1],dataIndex:[2,"data-index"],isKeyPress:[4,"is-key-press"],variant:[1]}]);function m(){if(typeof customElements>"u")return;["telia-tab-header","telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-tab-header":customElements.get(t)||customElements.define(t,b);break;case"telia-icon":customElements.get(t)||s();break;case"telia-vst":customElements.get(t)||d();break}})}m();export{i as a,m as b};
|
package/dist/chunk-5ADT643J.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-GXNVKBPH.js";import{X as T,Y as I}from"./chunk-2INTPVP7.js";import{a as x,b as t}from"./chunk-CPNFJGZA.js";import{a as n,b,c as l,f as p,g as s,h as C}from"./chunk-W3X3OW6G.js";import{d as i}from"./chunk-R4RSRPKJ.js";var f="...",m=(r,o)=>{let e=o-r+1;return Array.from({length:e},(c,a)=>a+r)};function S(r){return r[r.length-1]}function R(r){return Array.from({length:r},(o,e)=>k(e+1,r))}function k(r,o){return`${r} / ${o}`}function N(r){let o=r.split("/")[0];if(typeof o!="string")throw new Error("Could not parse page value from select.");return parseInt(o)}function P({itemCount:r,pageSize:o,siblingCount:e,currentPage:c}){let a=Math.ceil(r/o);if(e+5>=a)return m(1,a);let E=Math.max(c-e,1),z=Math.min(c+e,a),v=E>2,y=z<a-2,w=1,M=a;if(!v&&y){let h=3+2*e;return[...m(1,h),f,a]}if(v&&!y){let h=3+2*e,L=m(a-h+1,a);return[w,f,...L]}if(v&&y){let h=m(E,z);return[w,f,...h,f,M]}return m(1,a)}var $=class extends p{constructor(){super();this.onChange=e=>{let c=N(e.currentTarget.value),a=new CustomEvent("select-page",{bubbles:!0,composed:!0,detail:{nextPage:c,previousPage:this.currentPage},cancelable:!0});this.dispatchEvent(a)};this.currentPage=0,this.lastPage=0}static{this.styles=b`
|
|
2
|
-
:host select {
|
|
3
|
-
padding: ${n(t.spacing.spacing16)} ${n(t.spacing.spacing24)};
|
|
4
|
-
border-radius: ${n(t.borders.radiusFull)};
|
|
5
|
-
border: ${n(t.borders.widthXs)} solid ${n(t.colors.purple850)};
|
|
6
|
-
background-color: transparent;
|
|
7
|
-
color: ${n(t.colors.purple850)};
|
|
8
|
-
text-align: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
font-family: 'TeliaSans', Helvetica, Arial, 'Lucida Grande', sans-serif;
|
|
14
|
-
font-size: ${n(t.spacing.spacing16)};
|
|
15
|
-
line-height: ${n(t.spacing.spacing16)};
|
|
16
|
-
transition:
|
|
17
|
-
color ${n(t.motion.duration150)} ease,
|
|
18
|
-
background-color ${n(t.motion.duration150)} ease;
|
|
19
|
-
|
|
20
|
-
-webkit-appearance: none;
|
|
21
|
-
-moz-appearance: none;
|
|
22
|
-
appearance: none;
|
|
23
|
-
outline: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host select:hover {
|
|
27
|
-
background-color: ${n(t.colors.purple850)};
|
|
28
|
-
color: ${n(t.colors.white)};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host select:active {
|
|
32
|
-
background-color: ${n(t.colors.purple700)};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host select option {
|
|
36
|
-
background-color: ${n(t.colors.white)};
|
|
37
|
-
color: ${n(t.colors.black)};
|
|
38
|
-
text-align: center;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host select::-ms-expand {
|
|
42
|
-
display: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host select:focus-visible {
|
|
46
|
-
outline: solid ${n(x.focusBorderWidth)} ${n(x.focusColor)};
|
|
47
|
-
outline-offset: ${n(t.spacing.spacing4)};
|
|
48
|
-
}
|
|
49
|
-
`}render(){return l`
|
|
50
|
-
<select
|
|
51
|
-
id="select"
|
|
52
|
-
@change=${this.onChange}
|
|
53
|
-
.value=${k(this.currentPage,this.lastPage)}
|
|
54
|
-
>
|
|
55
|
-
${d(R(this.lastPage),e=>l`<option value="${e}">${e}</option>`)}
|
|
56
|
-
</select>
|
|
57
|
-
`}};i([s({type:Number,attribute:"current-page"})],$.prototype,"currentPage",2),i([s({type:Number,attribute:"last-page"})],$.prototype,"lastPage",2);var u=class extends p{constructor(){super();this.changePage=e=>{if(e===this.currentPage||e<1||e>this.pages[this.pages.length-1])return;let c=new CustomEvent("change-page",{bubbles:!0,composed:!0,detail:{nextPage:e,previousPage:this.currentPage},cancelable:!0});this.dispatchEvent(c)&&(this.currentPage=e,this.pages=P({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage}))};this.next=()=>{this.changePage(this.currentPage+1)};this.previous=()=>{this.changePage(this.currentPage-1)};this.onPageSelect=e=>this.changePage(e.detail.nextPage);this.itemCount=0,this.pageSize=50,this.initialPage=1,this.siblingCount=2,this.currentPage=this.initialPage,this.pages=[]}static{this.styles=b`
|
|
58
|
-
:host {
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: row;
|
|
61
|
-
place-items: center;
|
|
62
|
-
gap: ${n(t.spacing.spacing8)};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host telia-label {
|
|
66
|
-
display: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host .telia-label {
|
|
70
|
-
color: ${n(t.colors.purple700)};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:host alliance-paginator-button[page] {
|
|
74
|
-
display: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
span {
|
|
78
|
-
display: block;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@container (min-width: ${n(t.breakpoints.breakpointLg)}) {
|
|
82
|
-
:host telia-label,
|
|
83
|
-
:host alliance-paginator-button[page] {
|
|
84
|
-
display: block;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host alliance-page-selector {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`}connectedCallback(){super.connectedCallback(),this.currentPage=this.initialPage,this.pages=P({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage})}attributeChangedCallback(e,c,a){super.attributeChangedCallback(e,c,a),e==="initial-page"&&(this.currentPage=this.initialPage),this.pages=P({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage,[e]:a})}render(){return l`
|
|
92
|
-
<alliance-paginator-button
|
|
93
|
-
@click=${this.previous}
|
|
94
|
-
?disabled=${this.currentPage===1}
|
|
95
|
-
icon="left"
|
|
96
|
-
></alliance-paginator-button>
|
|
97
|
-
|
|
98
|
-
${d(this.pages,e=>e==="..."?l`<telia-label>...</telia-label>`:l`<alliance-paginator-button
|
|
99
|
-
page=${e}
|
|
100
|
-
@click=${()=>this.changePage(e)}
|
|
101
|
-
?selected=${this.currentPage===e}
|
|
102
|
-
></alliance-paginator-button>`)}
|
|
103
|
-
|
|
104
|
-
<alliance-page-selector
|
|
105
|
-
current-page=${this.currentPage}
|
|
106
|
-
last-page=${S(this.pages)}
|
|
107
|
-
@select-page=${this.onPageSelect}
|
|
108
|
-
>
|
|
109
|
-
</alliance-page-selector>
|
|
110
|
-
|
|
111
|
-
<alliance-paginator-button
|
|
112
|
-
@click=${this.next}
|
|
113
|
-
?disabled=${this.currentPage===S(this.pages)}
|
|
114
|
-
icon="right"
|
|
115
|
-
></alliance-paginator-button>
|
|
116
|
-
`}};i([s({type:Number,attribute:"item-count"})],u.prototype,"itemCount",2),i([s({type:Number,attribute:"page-size"})],u.prototype,"pageSize",2),i([s({type:Number,attribute:"initial-page"})],u.prototype,"initialPage",2),i([s({type:Number,attribute:"sibling-count"})],u.prototype,"siblingCount",2),i([C()],u.prototype,"currentPage",2),i([C()],u.prototype,"pages",2);var A=(e=>(e.Left="left",e.Right="right",e))(A||{}),g=class extends p{constructor(){super();this.selected=!1,this.disabled=!1,this.clickable=!0}renderContent(){return this.icon==="left"?l`<telia-icon size="sm" svg="${T.svg}" />`:this.icon==="right"?l`<telia-icon size="sm" svg="${I.svg}" />`:l`<span>${this.page}</span>`}render(){return l`<telia-button ?disabled=${this.disabled} variant=${this.selected?"primary":"tertiary-purple"}>${this.renderContent()}</telia-button> `}};i([s({type:A})],g.prototype,"icon",2),i([s({type:String})],g.prototype,"page",2),i([s({type:Boolean})],g.prototype,"selected",2),i([s({type:Boolean})],g.prototype,"disabled",2),i([s({type:Boolean})],g.prototype,"clickable",2);export{$ as a,u as b,g as c};
|
package/dist/chunk-652ZEYLG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var C={name:"alert",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>'},e={name:"check-circle",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>'},l={name:"error",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M38.8585 11.5469L58.2618 43.8838C59.7446 46.3552 59.7834 49.4331 58.3635 51.9411C56.9436 54.4492 54.2845 55.9997 51.4024 56H12.5958C9.71372 55.9997 7.05459 54.4492 5.6347 51.9411C4.21482 49.4331 4.25367 46.3552 5.73642 43.8838L25.1397 11.5459C26.585 9.13572 29.1891 7.66093 31.9994 7.66113C34.8097 7.66134 37.4136 9.13651 38.8585 11.5469ZM51.4024 52C52.846 52.0094 54.18 51.2316 54.8829 49.9707C55.6026 48.7193 55.5831 47.1752 54.8321 45.9424L35.4288 13.6045C34.7066 12.3992 33.4046 11.6614 31.9994 11.6612C30.5942 11.6609 29.292 12.3984 28.5694 13.6035L9.16612 45.9424C8.42483 47.178 8.40546 48.7169 9.1154 49.9708C9.82534 51.2247 11.1548 51.9999 12.5958 52H51.4024ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>'};export{C as a,e as b,l as c};
|
package/dist/chunk-7ADVKHKA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as _}from"./chunk-SX4ITYO2.js";import{a as g}from"./chunk-HY3DWO5A.js";import{a as f}from"./chunk-2KYKMBE5.js";import{a as v}from"./chunk-NXHOKNJ5.js";import{a as s}from"./chunk-ZK2OOPE4.js";import{a as h}from"./chunk-2CBI5DBV.js";import{a as p}from"./chunk-25DKARS5.js";import{a as m}from"./chunk-ILHJDXOE.js";import{a as u,b as i,d as c,e as d}from"./chunk-BJCDB2UT.js";var b={text:"text",number:"number",email:"email",tel:"tel",search:"search",password:"password"},E='.telia-text-input{display:flex;flex-direction:column}.telia-text-input__input{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3);border-radius:calc(0.2rem * var(--voca-rem-multiplier));background-color:#ffffff;font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;-webkit-appearance:none;appearance:none;box-sizing:border-box;color:rgba(0, 0, 0, 0.85);display:block;margin:0;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier));width:100%;height:calc(4.6rem * var(--voca-rem-multiplier));margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:2}.telia-text-input__input:required{box-shadow:none}.telia-text-input__input[type=search]{-webkit-appearance:textfield;outline-offset:calc(-0.2rem * var(--voca-rem-multiplier))}.telia-text-input__input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.telia-text-input__input[type=number]~.telia-text-input__valid-icon-container,.telia-text-input__input[type=search]~.telia-text-input__valid-icon-container{margin:calc(-1 * (4.6rem * var(--voca-rem-multiplier))) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - (3.2rem * var(--voca-rem-multiplier)));width:0}.telia-text-input__input:hover{border:calc(0.2rem * var(--voca-rem-multiplier)) solid #29003e;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__input:hover:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier));padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:focus:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:read-only{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;background-color:rgba(0, 0, 0, 0.05)}.telia-text-input__input:read-only:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.15);background-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.4);cursor:not-allowed;-webkit-text-fill-color:#606064}.telia-text-input__input:disabled:hover{padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled~telia-label .telia-label{color:rgba(0, 0, 0, 0.4);cursor:not-allowed}.telia-text-input__input:disabled~.telia-text-input__additional{color:rgba(0, 0, 0, 0.4)}.telia-text-input__input:invalid{box-shadow:none}.telia-text-input__input--icon-shown{padding:calc(1rem * var(--voca-rem-multiplier)) calc(4.5rem * var(--voca-rem-multiplier)) calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input--touched:invalid{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #e4175c}.telia-text-input__input--touched:invalid:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input--touched:invalid:hover:not(:focus){border:calc(0.2rem * var(--voca-rem-multiplier)) solid #e4175c;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__valid-icon-container{align-items:center;display:flex;flex-direction:row;height:calc(4.6rem * var(--voca-rem-multiplier));justify-content:flex-end;margin:calc(calc(4.6rem * var(--voca-rem-multiplier)) * -1) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - calc(1.2rem * var(--voca-rem-multiplier)));order:3}.telia-text-input__additional{order:4}.telia-text-input__error{margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:5}',M=d(class extends u{constructor(){super(),this.__registerHost(),this.valueChange=c(this,"valueChange",7),this.type=b.text,this.value="",this.additionalId=s("additional"),this.inputId=s("input"),this.errorId=s("error"),this.disabled=!1,this.readonly=!1,this.required=!1,this.showValidIcon=!1,this.dataTrackingId="telia-text-input",this.touched=!1,this.dirty=!1,this.inputValue="",this.errorMessageState="",this.updateInputValue=()=>{this.inputValue=this.inputElement?this.inputElement.value:this.value},this.isValuePatternValid=()=>this.pattern?new RegExp("^(?:"+this.pattern+")$").test(this.inputValue):!0,this.isValueLessThanMinlength=()=>this.inputValue.length>0&&this.inputValue.length<this.minlength,this.isValueTypeInvalid=()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.validity.typeMismatch},this.updateErrorMessage=e=>{var t;(t=this.inputElement)===null||t===void 0||t.setCustomValidity(e),this.errorMessageState=e},this.isValueMissing=()=>this.inputValue.length===0,this.updateErrorState=()=>{var e,t;let a=!!(!((e=this.errorMessageState)===null||e===void 0)&&e.length),l=this.required,r=!!this.pattern,n=this.minlength,x=!!(!((t=this.errorMessage)===null||t===void 0)&&t.length),o=!!this.emailErrorMessage&&this.type==="email";if(x){this.updateErrorMessage(this.errorMessage),this.touched=!0;return}if(r&&!this.isValueMissing()&&this.touched&&this.patternErrorMessage&&!this.isValuePatternValid()&&this.updateErrorMessage(this.patternErrorMessage),n&&this.touched&&this.minlengthErrorMessage&&this.isValueLessThanMinlength()&&this.updateErrorMessage(this.minlengthErrorMessage),l&&(o&&this.isValueTypeInvalid()&&this.touched&&this.updateErrorMessage(this.emailErrorMessage),this.touched&&this.requiredErrorMessage&&this.isValueMissing()&&this.updateErrorMessage(this.requiredErrorMessage)),a){if(r&&!this.isValuePatternValid()||n&&this.isValueLessThanMinlength()||l&&this.isValueMissing()||o&&this.isValueTypeInvalid())return;this.updateErrorMessage("")}}}async focusInput(){var e;(e=this.inputElement)===null||e===void 0||e.focus()}componentWillLoad(){this.updateInputValue(),this.updateErrorState()}componentWillUpdate(){this.updateErrorState()}componentDidRender(){var e,t,a;this.inputElement&&(!((e=this.inputElement)===null||e===void 0)&&e.setCustomValidity)&&((t=this.inputElement)===null||t===void 0||t.setCustomValidity(this.errorMessageState)),this.htmlForm&&((a=this.inputElement)===null||a===void 0||a.setAttribute("form",this.htmlForm))}componentValueChanged(e){this.inputValue=e,this.updateErrorState()}isValid(){return!this.errorMessage&&!this.isValueMissing()&&!this.isValueLessThanMinlength()&&!this.isValueTypeInvalid()&&this.isValuePatternValid()}render(){let e=this.touched&&!!this.errorMessageState.length,t=!!this.additional,a=v({[this.additionalId]:t,[this.errorId]:this.errorMessageState.length}),l=this.showValidIcon&&this.dirty&&this.isValid();return i("div",{class:"telia-text-input"},i("input",{class:{"telia-text-input__input":!0,"telia-text-input__input--touched":this.touched,"telia-text-input__input--icon-shown":l},placeholder:this.placeholder,type:this.type,id:this.inputId,"aria-describedby":a,minlength:this.minlength,maxlength:this.maxlength,disabled:this.disabled,readonly:this.readonly,value:this.value,name:this.name,onChange:r=>{this.valueChange.emit(r)},onInput:()=>{this.dirty=!0,this.updateInputValue(),this.updateErrorState()},inputmode:this.inputmode,list:this.list,autocomplete:this.autocomplete,required:this.required,onBlur:()=>{this.touched=!0,this.updateErrorState()},ref:r=>this.inputElement=r,pattern:this.pattern,onInvalid:r=>{r.preventDefault(),this.touched=!0,this.updateErrorState()},form:this.htmlForm}),l&&i("div",{class:"telia-text-input__valid-icon-container"},i("telia-field-valid",{class:"telia-text-input__valid-icon"})),i("telia-label",{class:"telia-text-input__label",htmlFor:this.inputId},this.required&&i("span",{"aria-hidden":"true"},"* "),this.label),t&&i("telia-field-assistive-text",{class:"telia-text-input__additional",id:this.additionalId},this.additional),e&&i("telia-field-error",{id:this.errorId,class:"telia-text-input__error"},this.errorMessageState),i("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get watchers(){return{value:["componentValueChanged"]}}static get style(){return E}},[0,"telia-text-input",{dataTestid:[1,"data-testid"],htmlForm:[1,"html-form"],type:[1],label:[1],value:[1],placeholder:[1],name:[1],additional:[1],additionalId:[1,"additional-id"],inputId:[1,"input-id"],errorId:[1,"error-id"],disabled:[4],minlength:[2],maxlength:[2],readonly:[4],inputmode:[1],list:[1],autocomplete:[1],required:[4],requiredErrorMessage:[1,"required-error-message"],emailErrorMessage:[1,"email-error-message"],minlengthErrorMessage:[1,"minlength-error-message"],showValidIcon:[4,"show-valid-icon"],pattern:[1],patternErrorMessage:[1,"pattern-error-message"],errorMessage:[1,"error-message"],touched:[32],dirty:[32],inputValue:[32],errorMessageState:[32],focusInput:[64]}]);function V(){if(typeof customElements>"u")return;["telia-text-input","telia-field-assistive-text","telia-field-error","telia-field-valid","telia-icon","telia-label","telia-vst"].forEach(t=>{switch(t){case"telia-text-input":customElements.get(t)||customElements.define(t,M);break;case"telia-field-assistive-text":customElements.get(t)||g();break;case"telia-field-error":customElements.get(t)||f();break;case"telia-field-valid":customElements.get(t)||_();break;case"telia-icon":customElements.get(t)||p();break;case"telia-label":customElements.get(t)||h();break;case"telia-vst":customElements.get(t)||m();break}})}V();export{V as a};
|
package/dist/chunk-BJCDB2UT.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-R4RSRPKJ.js";var n={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};var _="app";var Ot=oe({});var C,xe,w,Me,Fe=0,Ce=!1,z=!1,V=!1,g=!1,ie=null,W=0,H=!1,E=typeof window<"u"?window:{},Pt=n.cssVarShim?E.CSS:null,m=E.document||{head:{}},zt=E.HTMLElement||class{},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)};var N=n.shadowDomShim&&n.shadowDom?(m.head.attachShadow+"").indexOf("[native")>-1:!0,We=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),qe=e=>Promise.resolve(e),Qe=n.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})():!1;var K=(e,t,s,o)=>{n.hostListener&&s&&(n.hostListenerTargetParent&&(o?s=s.filter(([i])=>i&32):s=s.filter(([i])=>!(i&32))),s.map(([i,l,a])=>{let r=n.hostListenerTarget?Xe(e,i):e,c=Ke(t,a),$=Ye(i);h.ael(r,l,c,$),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>h.rel(r,l,c,$))}))},Ke=(e,t)=>s=>{try{n.lazyLoad?e.$flags$&256?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s]):e.$hostElement$[t](s)}catch(o){b(o)}},Xe=(e,t)=>n.hostListenerTargetDocument&&t&4?m:n.hostListenerTargetWindow&&t&8?E:n.hostListenerTargetBody&&t&16?m.body:n.hostListenerTargetParent&&t&32?e.parentElement:e,Ye=e=>We?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Je="r",Ge="o",Ze="s",Ve="t",X="s-id",le="sty-id",re="c-id";var ae="http://www.w3.org/1999/xlink",v=(e,t="")=>{if(n.profile&&performance.mark){let s=`st:${e}:${t}:${Fe++}`;return performance.mark(s),()=>performance.measure(`[Stencil] ${e}() <${t}>`,s)}else return()=>{}},et=(e,t)=>n.profile&&performance.mark?(performance.getEntriesByName(e).length===0&&performance.mark(e),()=>{performance.getEntriesByName(t).length===0&&performance.measure(t,e)}):()=>{};var ce=new WeakMap,tt=(e,t,s)=>{let o=B.get(e);Qe&&s?(o=o||new CSSStyleSheet,o.replace(t)):o=t,B.set(e,o)},Y=(e,t,s,o)=>{let i=De(t,s),l=B.get(i);if(!n.attachStyles)return i;if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let a=ce.get(e),r;if(a||ce.set(e,a=new Set),!a.has(i)){if(n.hydrateClientSide&&e.host&&(r=e.querySelector(`[${le}="${i}"]`)))r.innerHTML=l;else{if(n.cssVarShim&&h.$cssShim$){r=h.$cssShim$.createHostStyle(o,i,l,!!(t.$flags$&10));let c=r["s-sc"];c&&(i=c,a=null)}else r=m.createElement("style"),r.innerHTML=l;(n.hydrateServerSide||n.hotModuleReplacement)&&r.setAttribute(le,i),e.insertBefore(r,e.querySelector("link"))}a&&a.add(i)}}else n.constructableCSS&&!e.adoptedStyleSheets.includes(l)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return i},st=e=>{let t=e.$cmpMeta$,s=e.$hostElement$,o=t.$flags$,i=v("attachStyles",t.$tagName$),l=Y(n.shadowDom&&N&&s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$,s);(n.shadowDom||n.scoped)&&n.cssAnnotations&&o&10&&(s["s-sc"]=l,s.classList.add(l+"-h"),n.scoped&&o&2&&s.classList.add(l+"-s")),i()},De=(e,t)=>"sc-"+(n.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$);var nt=e=>wt.map(t=>t(e)).find(t=>!!t);var $e={},ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",lt=e=>e!=null,ee=e=>(e=typeof e,e==="object"||e==="function"),ke=(e,t,...s)=>{let o=null,i=null,l=null,a=!1,r=!1,c=[],$=f=>{for(let u=0;u<f.length;u++)o=f[u],Array.isArray(o)?$(o):o!=null&&typeof o!="boolean"&&((a=typeof e!="function"&&!ee(o))?o=String(o):n.isDev&&typeof e!="function"&&o.$flags$===void 0&&j(`vNode passed as children has unexpected type.
|
|
2
|
-
Make sure it's using the correct h() function.
|
|
3
|
-
Empty objects can also be the cause, look for JSX comments that became objects.`),a&&r?c[c.length-1].$text$+=o:c.push(a?I(null,o):o),r=a)};if($(s),t&&(n.isDev&&e==="input"&&$t(t),n.vdomKey&&t.key&&(i=t.key),n.slotRelocation&&t.name&&(l=t.name),n.vdomClass)){let f=t.className||t.class;f&&(t.class=typeof f!="object"?f:Object.keys(f).filter(u=>f[u]).join(" "))}if(n.isDev&&c.some(J)&&j(`The <Host> must be the single root component. Make sure:
|
|
4
|
-
- You are NOT using hostData() and <Host> in the same component.
|
|
5
|
-
- <Host> is used once, and it's the single root component of the render() function.`),n.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,c,at);let d=I(e,null);return d.$attrs$=t,c.length>0&&(d.$children$=c),n.vdomKey&&(d.$key$=i),n.slotRelocation&&(d.$name$=l),d},I=(e,t)=>{let s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.vdomAttribute&&(s.$attrs$=null),n.vdomKey&&(s.$key$=null),n.slotRelocation&&(s.$name$=null),s},rt={},J=e=>e&&e.$tag$===rt,at={forEach:(e,t)=>e.map(de).forEach(t),map:(e,t)=>e.map(de).map(t).map(ct)},de=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ct=e=>{if(typeof e.vtag=="function"){let s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),ke(e.vtag,s,...e.vchildren||[])}let t=I(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},$t=e=>{let t=Object.keys(e),s=t.indexOf("value");if(s===-1)return;let o=t.indexOf("type"),i=t.indexOf("min"),l=t.indexOf("max"),a=t.indexOf("step");(s<o||s<i||s<l||s<a)&&R('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},fe=(e,t,s,o,i,l)=>{if(s!==o){let a=ve(e,t),r=t.toLowerCase();if(n.vdomClass&&t==="class"){let c=e.classList,$=ue(s),d=ue(o);c.remove(...$.filter(f=>f&&!d.includes(f))),c.add(...d.filter(f=>f&&!$.includes(f)))}else if(n.vdomStyle&&t==="style"){if(n.updatable)for(let c in s)(!o||o[c]==null)&&(!n.hydrateServerSide&&c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(let c in o)(!s||o[c]!==s[c])&&(!n.hydrateServerSide&&c.includes("-")?e.style.setProperty(c,o[c]):e.style[c]=o[c])}else if(!(n.vdomKey&&t==="key")){if(n.vdomRef&&t==="ref")o&&o(e);else if(n.vdomListener&&(n.lazyLoad?!a:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):ve(E,r)?t=r.slice(2):t=r[2]+t.slice(3),s&&h.rel(e,t,s,!1),o&&h.ael(e,t,o,!1);else if(n.vdomPropOrAttr){let c=ee(o);if((a||c&&o!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=o;else{let d=o??"";t==="list"?a=!1:(s==null||e[t]!=d)&&(e[t]=d)}}catch{}let $=!1;n.vdomXlink&&r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,$=!0),o==null||o===!1?(o!==!1||e.getAttribute(t)==="")&&(n.vdomXlink&&$?e.removeAttributeNS(ae,t):e.removeAttribute(t)):(!a||l&4||i)&&!c&&(o=o===!0?"":o,n.vdomXlink&&$?e.setAttributeNS(ae,t,o):e.setAttribute(t,o))}}}},dt=/\s/,ue=e=>e?e.split(dt):[],we=(e,t,s,o)=>{let i=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||$e,a=t.$attrs$||$e;if(n.updatable)for(o in l)o in a||fe(i,o,l[o],void 0,s,t.$flags$);for(o in a)fe(i,o,l[o],a[o],s,t.$flags$)},U=(e,t,s,o)=>{let i=t.$children$[s],l=0,a,r,c;if(n.slotRelocation&&!Ce&&(V=!0,i.$tag$==="slot"&&(C&&o.classList.add(C+"-s"),i.$flags$|=i.$children$?2:1)),n.isDev&&i.$elm$&&j(`The JSX ${i.$text$!==null?`"${i.$text$}" text`:`"${i.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),n.vdomText&&i.$text$!==null)a=i.$elm$=m.createTextNode(i.$text$);else if(n.slotRelocation&&i.$flags$&1)a=i.$elm$=n.isDebug||n.hydrateServerSide?ut(i):m.createTextNode("");else{if(n.svg&&!g&&(g=i.$tag$==="svg"),a=i.$elm$=n.svg?m.createElementNS(g?ot:it,n.slotRelocation&&i.$flags$&2?"slot-fb":i.$tag$):m.createElement(n.slotRelocation&&i.$flags$&2?"slot-fb":i.$tag$),n.svg&&g&&i.$tag$==="foreignObject"&&(g=!1),n.vdomAttribute&&we(null,i,g),(n.shadowDom||n.scoped)&<(C)&&a["s-si"]!==C&&a.classList.add(a["s-si"]=C),i.$children$)for(l=0;l<i.$children$.length;++l)r=U(e,i,l,a),r&&a.appendChild(r);n.svg&&(i.$tag$==="svg"?g=!1:a.tagName==="foreignObject"&&(g=!0))}return n.slotRelocation&&(a["s-hn"]=w,i.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=xe,a["s-sn"]=i.$name$||"",c=e&&e.$children$&&e.$children$[s],c&&c.$tag$===i.$tag$&&e.$elm$&&A(e.$elm$,!1))),a},A=(e,t)=>{h.$flags$|=1;let s=e.childNodes;for(let o=s.length-1;o>=0;o--){let i=s[o];i["s-hn"]!==w&&i["s-ol"]&&(Ee(i).insertBefore(i,te(i)),i["s-ol"].remove(),i["s-ol"]=void 0,V=!0),t&&A(i,t)}h.$flags$&=-2},Ne=(e,t,s,o,i,l)=>{let a=n.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,r;for(n.shadowDom&&a.shadowRoot&&a.tagName===w&&(a=a.shadowRoot);i<=l;++i)o[i]&&(r=U(null,s,i,e),r&&(o[i].$elm$=r,a.insertBefore(r,n.slotRelocation?te(t):t)))},Ie=(e,t,s,o,i)=>{for(;t<=s;++t)(o=e[t])&&(i=o.$elm$,Oe(o),n.slotRelocation&&(z=!0,i["s-ol"]?i["s-ol"].remove():A(i,!0)),i.remove())},ft=(e,t,s,o)=>{let i=0,l=0,a=0,r=0,c=t.length-1,$=t[0],d=t[c],f=o.length-1,u=o[0],p=o[f],x,O;for(;i<=c&&l<=f;)if($==null)$=t[++i];else if(d==null)d=t[--c];else if(u==null)u=o[++l];else if(p==null)p=o[--f];else if(P($,u))D($,u),$=t[++i],u=o[++l];else if(P(d,p))D(d,p),d=t[--c],p=o[--f];else if(P($,p))n.slotRelocation&&($.$tag$==="slot"||p.$tag$==="slot")&&A($.$elm$.parentNode,!1),D($,p),e.insertBefore($.$elm$,d.$elm$.nextSibling),$=t[++i],p=o[--f];else if(P(d,u))n.slotRelocation&&($.$tag$==="slot"||p.$tag$==="slot")&&A(d.$elm$.parentNode,!1),D(d,u),e.insertBefore(d.$elm$,$.$elm$),d=t[--c],u=o[++l];else{if(a=-1,n.vdomKey){for(r=i;r<=c;++r)if(t[r]&&t[r].$key$!==null&&t[r].$key$===u.$key$){a=r;break}}n.vdomKey&&a>=0?(O=t[a],O.$tag$!==u.$tag$?x=U(t&&t[l],s,a,e):(D(O,u),t[a]=void 0,x=O.$elm$),u=o[++l]):(x=U(t&&t[l],s,l,e),u=o[++l]),x&&(n.slotRelocation?Ee($.$elm$).insertBefore(x,te($.$elm$)):$.$elm$.parentNode.insertBefore(x,$.$elm$))}i>c?Ne(e,o[f+1]==null?null:o[f+1].$elm$,s,o,l,f):n.updatable&&l>f&&Ie(t,i,c)},P=(e,t)=>e.$tag$===t.$tag$?n.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:n.vdomKey?e.$key$===t.$key$:!0:!1,te=e=>e&&e["s-ol"]||e,Ee=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{let s=t.$elm$=e.$elm$,o=e.$children$,i=t.$children$,l=t.$tag$,a=t.$text$,r;!n.vdomText||a===null?(n.svg&&(g=l==="svg"?!0:l==="foreignObject"?!1:g),(n.vdomAttribute||n.reflect)&&(n.slot&&l==="slot"||we(e,t,g)),n.updatable&&o!==null&&i!==null?ft(s,o,t,i):i!==null?(n.updatable&&n.vdomText&&e.$text$!==null&&(s.textContent=""),Ne(s,null,t,i,0,i.length-1)):n.updatable&&o!==null&&Ie(o,0,o.length-1),n.svg&&g&&l==="svg"&&(g=!1)):n.vdomText&&n.slotRelocation&&(r=s["s-cr"])?r.parentNode.textContent=a:n.vdomText&&e.$text$!==a&&(s.data=a)},Ae=e=>{let t=e.childNodes,s,o,i,l,a,r;for(o=0,i=t.length;o<i;o++)if(s=t[o],s.nodeType===1){if(s["s-sr"]){for(a=s["s-sn"],s.hidden=!1,l=0;l<i;l++)if(r=t[l].nodeType,t[l]["s-hn"]!==s["s-hn"]||a!==""){if(r===1&&a===t[l].getAttribute("slot")){s.hidden=!0;break}}else if(r===1||r===3&&t[l].textContent.trim()!==""){s.hidden=!0;break}}Ae(s)}},y=[],Re=e=>{let t,s,o,i,l,a,r=0,c=e.childNodes,$=c.length;for(;r<$;r++){if(t=c[r],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(o=s.parentNode.childNodes,i=t["s-sn"],a=o.length-1;a>=0;a--)s=o[a],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(he(s,i)?(l=y.find(d=>d.$nodeToRelocate$===s),z=!0,s["s-sn"]=s["s-sn"]||i,l?l.$slotRefNode$=t:y.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&y.map(d=>{he(d.$nodeToRelocate$,s["s-sn"])&&(l=y.find(f=>f.$nodeToRelocate$===s),l&&!d.$slotRefNode$&&(d.$slotRefNode$=l.$slotRefNode$))})):y.some(d=>d.$nodeToRelocate$===s)||y.push({$nodeToRelocate$:s}));t.nodeType===1&&Re(t)}},he=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Oe=e=>{n.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Oe))},pe=(e,t)=>{let s=e.$hostElement$,o=e.$cmpMeta$,i=e.$vnode$||I(null,null),l=J(t)?t:ke(null,null,t);if(w=s.tagName,n.isDev&&Array.isArray(t)&&t.some(J))throw new Error(`The <Host> must be the single root component.
|
|
6
|
-
Looks like the render() function of "${w.toLowerCase()}" is returning an array that contains the <Host>.
|
|
7
|
-
|
|
8
|
-
The render() function should look like this instead:
|
|
9
|
-
|
|
10
|
-
render() {
|
|
11
|
-
// Do not return an array
|
|
12
|
-
return (
|
|
13
|
-
<Host>{content}</Host>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
`);if(n.reflect&&o.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},o.$attrsToReflect$.map(([a,r])=>l.$attrs$[r]=s[a])),l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=n.shadowDom&&s.shadowRoot||s,(n.scoped||n.shadowDom)&&(C=s["s-sc"]),n.slotRelocation&&(xe=s["s-cr"],Ce=N&&(o.$flags$&1)!==0,z=!1),D(i,l),n.slotRelocation){if(h.$flags$|=1,V){Re(l.$elm$);let a,r,c,$,d,f,u=0;for(;u<y.length;u++)a=y[u],r=a.$nodeToRelocate$,r["s-ol"]||(c=n.isDebug||n.hydrateServerSide?ht(r):m.createTextNode(""),c["s-nr"]=r,r.parentNode.insertBefore(r["s-ol"]=c,r));for(u=0;u<y.length;u++)if(a=y[u],r=a.$nodeToRelocate$,a.$slotRefNode$){for($=a.$slotRefNode$.parentNode,d=a.$slotRefNode$.nextSibling,c=r["s-ol"];c=c.previousSibling;)if(f=c["s-nr"],f&&f["s-sn"]===r["s-sn"]&&$===f.parentNode&&(f=f.nextSibling,!f||!f["s-nr"])){d=f;break}(!d&&$!==r.parentNode||r.nextSibling!==d)&&r!==d&&(!r["s-hn"]&&r["s-ol"]&&(r["s-hn"]=r["s-ol"].parentNode.nodeName),$.insertBefore(r,d))}else r.nodeType===1&&(r.hidden=!0)}z&&Ae(l.$elm$),h.$flags$&=-2,y.length=0}},ut=e=>m.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${w.toLowerCase()})`),ht=e=>m.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),pt=e=>n.lazyLoad?T(e).$hostElement$:e,Ht=(e,t,s)=>{let o=pt(e);return{emit:i=>(n.isDev&&!o.isConnected&&R(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),se(o,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:i}))}},se=(e,t,s)=>{let o=h.ce(t,s);return e.dispatchEvent(o),o},_e=(e,t)=>{n.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},ne=(e,t)=>{if(n.taskQueue&&n.updatable&&(e.$flags$|=16),n.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}_e(e,e.$ancestorComponent$);let s=()=>mt(e,t);return n.taskQueue?It(s):s()},mt=(e,t)=>{let s=e.$hostElement$,o=v("scheduleUpdate",e.$cmpMeta$.$tagName$),i=n.lazyLoad?e.$lazyInstance$:s,l;return t?(n.lazyLoad&&n.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([a,r])=>S(i,a,r)),e.$queuedListeners$=null)),k(s,"componentWillLoad"),n.cmpWillLoad&&(l=S(i,"componentWillLoad"))):(k(s,"componentWillUpdate"),n.cmpWillUpdate&&(l=S(i,"componentWillUpdate"))),k(s,"componentWillRender"),n.cmpWillRender&&(l=ye(l,()=>S(i,"componentWillRender"))),o(),ye(l,()=>gt(e,i,t))},gt=async(e,t,s)=>{let o=e.$hostElement$,i=v("update",e.$cmpMeta$.$tagName$),l=o["s-rc"];n.style&&s&&st(e);let a=v("render",e.$cmpMeta$.$tagName$);if(n.isDev&&(e.$flags$|=1024),n.hydrateServerSide?await me(e,t,o):me(e,t,o),n.cssVarShim&&h.$cssShim$&&h.$cssShim$.updateHost(o),n.isDev&&(e.$renderCount$++,e.$flags$&=-1025),n.hydrateServerSide)try{ze(o),s&&(e.$cmpMeta$.$flags$&1?o["s-en"]="":e.$cmpMeta$.$flags$&2&&(o["s-en"]="c"))}catch(r){b(r,o)}if(n.asyncLoading&&l&&(l.map(r=>r()),o["s-rc"]=void 0),a(),i(),n.asyncLoading){let r=o["s-p"],c=()=>ge(e);r.length===0?c():(Promise.all(r).then(c),e.$flags$|=4,r.length=0)}else ge(e)},me=(e,t,s)=>{let o=!!n.allRenderFn,i=!!n.lazyLoad,l=!!n.taskQueue,a=!!n.updatable;try{if(ie=t,t=(o||t.render)&&t.render(),a&&l&&(e.$flags$&=-17),(a||i)&&(e.$flags$|=2),n.hasRenderFn||n.reflect)if(n.vdomRender||n.reflect){if(n.hydrateServerSide)return Promise.resolve(t).then(r=>pe(e,r));pe(e,t)}else s.textContent=t}catch(r){b(r,e.$hostElement$)}return ie=null,null};var ge=e=>{let t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,o=v("postUpdate",t),i=n.lazyLoad?e.$lazyInstance$:s,l=e.$ancestorComponent$;n.cmpDidRender&&(n.isDev&&(e.$flags$|=1024),S(i,"componentDidRender"),n.isDev&&(e.$flags$&=-1025)),k(s,"componentDidRender"),e.$flags$&64?(n.cmpDidUpdate&&(n.isDev&&(e.$flags$|=1024),S(i,"componentDidUpdate"),n.isDev&&(e.$flags$&=-1025)),k(s,"componentDidUpdate"),o()):(e.$flags$|=64,n.asyncLoading&&n.cssAnnotations&&Pe(s),n.cmpDidLoad&&(n.isDev&&(e.$flags$|=2048),S(i,"componentDidLoad"),n.isDev&&(e.$flags$&=-2049)),k(s,"componentDidLoad"),o(),n.asyncLoading&&(e.$onReadyResolve$(s),l||yt(t))),n.hotModuleReplacement&&s["s-hmr-load"]&&s["s-hmr-load"](),n.method&&n.lazyLoad&&e.$onInstanceResolve$(s),n.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F(()=>ne(e,!1)),e.$flags$&=-517)};var yt=e=>{n.cssAnnotations&&Pe(m.documentElement),n.asyncQueue&&(h.$flags$|=2),F(()=>se(E,"appload",{detail:{namespace:_}})),n.profile&&performance.measure&&performance.measure(`[Stencil] ${_} initial load (by ${e})`,"st:app:start")},S=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(o){b(o)}},ye=(e,t)=>e&&e.then?e.then(t):t(),k=(e,t)=>{n.lifecycleDOMEvents&&se(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:_}})},Pe=e=>n.hydratedClass?e.classList.add("hydrated"):n.hydratedAttribute?e.setAttribute("hydrated",""):void 0,ze=e=>{let t=e.children;if(t!=null)for(let s=0,o=t.length;s<o;s++){let i=t[s];typeof i.connectedCallback=="function"&&i.connectedCallback(),ze(i)}},St=(e,t,s,o)=>{let i=v("hydrateClient",t),l=e.shadowRoot,a=[],r=[],c=n.shadowDom&&l?[]:null,$=o.$vnode$=I(t,null);h.$orgLocNodes$||Z(m.body,h.$orgLocNodes$=new Map),e[X]=s,e.removeAttribute(X),G($,a,r,c,e,e,s),a.map(d=>{let f=d.$hostId$+"."+d.$nodeId$,u=h.$orgLocNodes$.get(f),p=d.$elm$;u&&N&&u["s-en"]===""&&u.parentNode.insertBefore(p,u.nextSibling),l||(p["s-hn"]=t,u&&(p["s-ol"]=u,p["s-ol"]["s-nr"]=p)),h.$orgLocNodes$.delete(f)}),n.shadowDom&&l&&c.map(d=>{d&&l.appendChild(d)}),i()},G=(e,t,s,o,i,l,a)=>{let r,c,$,d;if(l.nodeType===1){for(r=l.getAttribute(re),r&&(c=r.split("."),(c[0]===a||c[0]==="0")&&($={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:l.tagName.toLowerCase(),$elm$:l,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push($),l.removeAttribute(re),e.$children$||(e.$children$=[]),e.$children$[$.$index$]=$,e=$,o&&$.$depth$==="0"&&(o[$.$index$]=$.$elm$))),d=l.childNodes.length-1;d>=0;d--)G(e,t,s,o,i,l.childNodes[d],a);if(l.shadowRoot)for(d=l.shadowRoot.childNodes.length-1;d>=0;d--)G(e,t,s,o,i,l.shadowRoot.childNodes[d],a)}else if(l.nodeType===8)c=l.nodeValue.split("."),(c[1]===a||c[1]==="0")&&(r=c[0],$={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:l,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},r===Ve?($.$elm$=l.nextSibling,$.$elm$&&$.$elm$.nodeType===3&&($.$text$=$.$elm$.textContent,t.push($),l.remove(),e.$children$||(e.$children$=[]),e.$children$[$.$index$]=$,o&&$.$depth$==="0"&&(o[$.$index$]=$.$elm$))):$.$hostId$===a&&(r===Ze?($.$tag$="slot",c[5]?l["s-sn"]=$.$name$=c[5]:l["s-sn"]="",l["s-sr"]=!0,n.shadowDom&&o&&($.$elm$=m.createElement($.$tag$),$.$name$&&$.$elm$.setAttribute("name",$.$name$),l.parentNode.insertBefore($.$elm$,l),l.remove(),$.$depth$==="0"&&(o[$.$index$]=$.$elm$)),s.push($),e.$children$||(e.$children$=[]),e.$children$[$.$index$]=$):r===Je&&(n.shadowDom&&o?l.remove():n.slotRelocation&&(i["s-cr"]=l,l["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let f=I(null,l.textContent);f.$elm$=l,f.$index$="0",e.$children$=[f]}},Z=(e,t)=>{if(e.nodeType===1){let s=0;for(;s<e.childNodes.length;s++)Z(e.childNodes[s],t);if(e.shadowRoot)for(s=0;s<e.shadowRoot.childNodes.length;s++)Z(e.shadowRoot.childNodes[s],t)}else if(e.nodeType===8){let s=e.nodeValue.split(".");s[0]===Ge&&(t.set(s[1]+"."+s[2],e),e.nodeValue="",e["s-en"]=s[3])}},vt=(e,t)=>e!=null&&!ee(e)?n.propBoolean&&t&4?e==="false"?!1:e===""||!!e:n.propNumber&&t&2?parseFloat(e):n.propString&&t&1?String(e):e:e,bt=(e,t)=>T(e).$instanceValues$.get(t),Lt=(e,t,s,o)=>{let i=T(e),l=n.lazyLoad?i.$hostElement$:e,a=i.$instanceValues$.get(t),r=i.$flags$,c=n.lazyLoad?i.$lazyInstance$:l;s=vt(s,o.$members$[t][0]);let $=Number.isNaN(a)&&Number.isNaN(s),d=s!==a&&!$;if((!n.lazyLoad||!(r&8)||a===void 0)&&d&&(i.$instanceValues$.set(t,s),n.isDev&&(i.$flags$&1024?R(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
|
|
17
|
-
Element`,l,`
|
|
18
|
-
New value`,s,`
|
|
19
|
-
Old value`,a):i.$flags$&2048&&R(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
|
|
20
|
-
Element`,l,`
|
|
21
|
-
New value`,s,`
|
|
22
|
-
Old value`,a)),!n.lazyLoad||c)){if(n.watchCallback&&o.$watchers$&&r&128){let f=o.$watchers$[t];f&&f.map(u=>{try{c[u](s,a,t)}catch(p){b(p,l)}})}if(n.updatable&&(r&18)===2){if(n.cmpShouldUpdate&&c.componentShouldUpdate&&c.componentShouldUpdate(s,a,t)===!1)return;ne(i,!1)}}},He=(e,t,s)=>{if(n.member&&t.$members$){n.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);let o=Object.entries(t.$members$),i=e.prototype;if(o.map(([l,[a]])=>{(n.prop||n.state)&&(a&31||(!n.lazyLoad||s&2)&&a&32)?Object.defineProperty(i,l,{get(){return bt(this,l)},set(r){if(n.isDev){let c=T(this);!(s&1)&&!(c.$flags$&8)&&a&31&&!(a&1024)&&R(`@Prop() "${l}" on <${t.$tagName$}> is immutable but was modified from within the component.
|
|
23
|
-
More information: https://stenciljs.com/docs/properties#prop-mutability`)}Lt(this,l,r,t)},configurable:!0,enumerable:!0}):n.lazyLoad&&n.method&&s&1&&a&64&&Object.defineProperty(i,l,{value(...r){let c=T(this);return c.$onInstancePromise$.then(()=>c.$lazyInstance$[l](...r))}})}),n.observeAttribute&&(!n.lazyLoad||s&1)){let l=new Map;i.attributeChangedCallback=function(a,r,c){h.jmp(()=>{let $=l.get(a);if(this.hasOwnProperty($))c=this[$],delete this[$];else if(i.hasOwnProperty($)&&typeof this[$]=="number"&&this[$]==c)return;this[$]=c===null&&typeof this[$]=="boolean"?!1:c})},e.observedAttributes=o.filter(([a,r])=>r[0]&15).map(([a,r])=>{let c=r[1]||a;return l.set(c,a),n.reflect&&r[0]&512&&t.$attrsToReflect$.push([a,c]),c})}}return e},Se=async(e,t,s,o,i)=>{if((n.lazyLoad||n.hydrateServerSide||n.style)&&!(t.$flags$&32)){if(n.lazyLoad||n.hydrateClientSide){if(t.$flags$|=32,i=kt(s,t,o),i.then){let c=et(`st:load:${s.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${s.$tagName$}>`);i=await i,c()}if((n.isDev||n.isDebug)&&!i)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.member&&!i.isProxied&&(n.watchCallback&&(s.$watchers$=i.watchers),He(i,s,2),i.isProxied=!0);let r=v("createInstance",s.$tagName$);n.member&&(t.$flags$|=8);try{new i(t)}catch(c){b(c)}n.member&&(t.$flags$&=-9),n.watchCallback&&(t.$flags$|=128),r(),Ue(t.$lazyInstance$)}else i=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128);if(n.style&&i.style){let r=i.style;n.mode&&typeof r!="string"&&(r=r[t.$modeName$=nt(e)],n.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let c=De(s,t.$modeName$);if(!B.has(c)){let $=v("registerStyles",s.$tagName$);!n.hydrateServerSide&&n.shadowDom&&n.shadowDomShim&&s.$flags$&8&&(r=await import("./shadow-css-3DZKVWAG.js").then(d=>d.scopeCss(r,c,!1))),tt(c,r,!!(s.$flags$&1)),$()}}}let l=t.$ancestorComponent$,a=()=>ne(t,!0);n.asyncLoading&&l&&l["s-rc"]?l["s-rc"].push(a):a()},Ue=e=>{n.lazyLoad&&n.connectedCallback&&S(e,"connectedCallback")},Tt=e=>{if(!(h.$flags$&1)){let t=T(e),s=t.$cmpMeta$,o=v("connectedCallback",s.$tagName$);if(n.hostListenerTargetParent&&K(e,t,s.$listeners$,!0),t.$flags$&1)K(e,t,s.$listeners$,!1),Ue(t.$lazyInstance$);else{t.$flags$|=1;let i;if(n.hydrateClientSide&&(i=e.getAttribute(X),i)){if(n.shadowDom&&N&&s.$flags$&1){let l=n.mode?Y(e.shadowRoot,s,e.getAttribute("s-mode")):Y(e.shadowRoot,s);e.classList.remove(l+"-h",l+"-s")}St(e,s.$tagName$,i,t)}if(n.slotRelocation&&!i&&(n.hydrateServerSide||(n.slot||n.shadowDom)&&s.$flags$&12)&&xt(e),n.asyncLoading){let l=e;for(;l=l.parentNode||l.host;)if(n.hydrateClientSide&&l.nodeType===1&&l.hasAttribute("s-id")&&l["s-p"]||l["s-p"]){_e(t,t.$ancestorComponent$=l);break}}n.prop&&!n.hydrateServerSide&&s.$members$&&Object.entries(s.$members$).map(([l,[a]])=>{if(a&31&&e.hasOwnProperty(l)){let r=e[l];delete e[l],e[l]=r}}),n.initializeNextTick?F(()=>Se(e,t,s)):Se(e,t,s)}o()}},xt=e=>{let t=e["s-cr"]=m.createComment(n.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Ct=e=>{if(!(h.$flags$&1)){let t=T(e),s=n.lazyLoad?t.$lazyInstance$:e;n.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(o=>o()),t.$rmListeners$=void 0),n.cssVarShim&&h.$cssShim$&&h.$cssShim$.removeHost(e),n.lazyLoad&&n.disconnectedCallback&&S(s,"disconnectedCallback"),n.cmpDidUnload&&S(s,"componentDidUnload")}};var Ut=(e,t)=>{let s={$flags$:t[0],$tagName$:t[1]};n.member&&(s.$members$=t[2]),n.hostListener&&(s.$listeners$=t[3]),n.watchCallback&&(s.$watchers$=e.$watchers$),n.reflect&&(s.$attrsToReflect$=[]),n.shadowDom&&!N&&s.$flags$&1&&(s.$flags$|=8);let o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Dt(this,s)},connectedCallback(){Tt(this),n.connectedCallback&&o&&o.call(this)},disconnectedCallback(){Ct(this),n.disconnectedCallback&&i&&i.call(this)},__attachShadow(){N?n.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=s.$tagName$,He(e,s,3)};var jt=(e,t)=>t,je=new WeakMap,T=e=>je.get(e);var Dt=(e,t)=>{let s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.isDev&&(s.$renderCount$=0),n.method&&n.lazyLoad&&(s.$onInstancePromise$=new Promise(o=>s.$onInstanceResolve$=o)),n.asyncLoading&&(s.$onReadyPromise$=new Promise(o=>s.$onReadyResolve$=o),e["s-p"]=[],e["s-rc"]=[]),K(e,s,t.$listeners$,!1),je.set(e,s)},ve=(e,t)=>t in e,b=(e,t)=>(Me||console.error)(e,t),Be=n.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],j=(...e)=>console.error(...Be,...e),R=(...e)=>console.warn(...Be,...e);var be=new Map,kt=(e,t,s)=>{let o=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(n.isDev&&typeof i!="string"){j(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}let l=n.hotModuleReplacement?!1:be.get(i);return l?l[o]:Ot(`./${i}.entry.js${n.hotModuleReplacement&&s?"?s-hmr="+s:""}`).then(a=>(n.hotModuleReplacement||be.set(i,a),a[o]),b)},B=new Map,wt=[],q=[],L=[],Q=[],Nt=(e,t)=>s=>{e.push(s),H||(H=!0,t&&h.$flags$&4?F(M):h.raf(M))},Le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){b(s)}e.length=0},Te=(e,t)=>{let s=0,o=0;for(;s<e.length&&(o=performance.now())<t;)try{e[s++](o)}catch(i){b(i)}s===e.length?e.length=0:s!==0&&e.splice(0,s)},M=()=>{if(n.asyncQueue&&W++,Le(q),n.asyncQueue){let e=(h.$flags$&6)===2?performance.now()+14*Math.ceil(W*.1):1/0;Te(L,e),Te(Q,e),L.length>0&&(Q.push(...L),L.length=0),(H=q.length+L.length+Q.length>0)?h.raf(M):W=0}else Le(L),(H=q.length>0)&&h.raf(M)},F=e=>qe().then(e);var It=Nt(L,!0),Bt={isDev:!!n.isDev,isBrowser:!0,isServer:!1,isTesting:!!n.isTesting};export{zt as a,ke as b,rt as c,Ht as d,Ut as e,jt as f};
|
package/dist/chunk-CPNFJGZA.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{b as a,c as S}from"./chunk-R4RSRPKJ.js";var y=a(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var q={breakpointSm:"0",breakpointMd:"37.5em",breakpointLg:"64em",breakpointXl:"90em",fluidBreakpointMedium:"60rem",fluidBreakpointXlarge:"144rem"};t.default=q});var h=a(n=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var B={widthNone:"0",widthXs:"calc(0.1rem * var(--voca-rem-multiplier))",widthSm:"calc(0.2rem * var(--voca-rem-multiplier))",widthMd:"calc(0.3rem * var(--voca-rem-multiplier))",radiusNone:"0",radiusSm:"calc(0.8rem * var(--voca-rem-multiplier))",radiusLg:"calc(1.6rem * var(--voca-rem-multiplier))",radiusDefault:"calc(0.2rem * var(--voca-rem-multiplier))",radiusFull:"calc(99.9rem * var(--voca-rem-multiplier))",all:"border",top:"border-top",right:"border-right",bottom:"border-bottom",left:"border-left"};n.default=B});var w=a(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var z={gutter:"calc(1.6rem * var(--voca-rem-multiplier))",gutterMedium:"calc(2.4rem * var(--voca-rem-multiplier))",gutterLarge:"calc(2.4rem * var(--voca-rem-multiplier))",pagePadding:"calc(1.6rem * var(--voca-rem-multiplier))",pagePaddingM:"calc(2.4rem * var(--voca-rem-multiplier))",pagePaddingL:"calc(4.8rem * var(--voca-rem-multiplier))",pagePaddingXl:"calc(4.8rem * var(--voca-rem-multiplier))"};l.default=z});var _=a(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var N={duration50:"0.05s",duration100:"0.1s",duration150:"0.15s",duration200:"0.2s",duration250:"0.25s",duration300:"0.3s",duration350:"0.35s",duration400:"0.4s",duration500:"0.5s",duration1500:"1.5s",duration2000:"2s",easeIn:"cubic-bezier(0.35, 0.07, 0.88, 0.43)",easeOut:"cubic-bezier(0.33, 0.9, 0.75, 0.95)",easeInOut:"cubic-bezier(0.45, 0, 0.52, 0.98)"};g.default=N});var k=a(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});var X={none:"none",sm:"0 calc(0.1rem * var(--voca-rem-multiplier)) calc(0.4rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1)",md:"0 calc(0.4rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1)",lg:"0 calc(1.2rem * var(--voca-rem-multiplier)) calc(2.4rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1)"};d.default=X});var M=a(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var I={purple100:"#fbf0ff",purple200:"#edc8ff",purple300:"#de99ff",purple400:"#c158f8",purple500:"#990ae3",purple600:"#7800b4",purple700:"#5e0092",purple800:"#30004b",purple850:"#29003e",purple900:"#1f002e",beige50:"#f8eee8",beige100:"#ecded4",beige200:"#d4c4ba",beige300:"#b4a49c",beige400:"#988a84",beige500:"#827672",beige600:"#5c524e",beige700:"#403a36",beige800:"#282420",beige900:"#1c1818",gray50:"#f4f4f9",gray100:"#e8e8ed",gray200:"#dcdce1",gray300:"#c8c8cd",gray400:"#b0b0b5",gray500:"#8c8c90",gray600:"#606064",gray700:"#48484b",gray800:"#303032",gray900:"#121214",green100:"#ccefdd",green200:"#a6e3c4",green300:"#73d3a2",green400:"#4cc789",green500:"#26bb6f",green600:"#00af56",green700:"#008641",green800:"#00572a",green900:"#00361a",red100:"#fad1de",red200:"#f6aec6",red300:"#f07fa5",red400:"#eb5185",red500:"#e4175c",red600:"#be0040",red700:"#890e37",red800:"#5b0925",red900:"#390617",orange100:"#ffebcc",orange200:"#ffdca6",orange300:"#ffc366",orange400:"#ffaf33",orange500:"#ff9b00",orange600:"#cc7c00",orange700:"#995d00",orange800:"#663e00",orange900:"#402700",blue100:"#ccebff",blue200:"#a6dbff",blue300:"#66c2ff",blue400:"#33adff",blue500:"#0099ff",blue600:"#007acc",blue700:"#00558f",blue800:"#003d66",blue900:"#00253d",white:"#ffffff",black:"#222222",functionalBlack:"#000000",transparent:"#000000"};c.default=I});var j=a(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var H={base:"auto",dropdown:"100",header:"200",modal:"300"};o.default=H});var P=a(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});var $={weightNormal:"normal",weightMedium:"500",weightBold:"bold"};u.default=$});var O=a(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var C={spacing0:"0",spacing2:"calc(0.2rem * var(--voca-rem-multiplier))",spacing4:"calc(0.4rem * var(--voca-rem-multiplier))",spacing8:"calc(0.8rem * var(--voca-rem-multiplier))",spacing12:"calc(1.2rem * var(--voca-rem-multiplier))",spacing16:"calc(1.6rem * var(--voca-rem-multiplier))",spacing20:"calc(2rem * var(--voca-rem-multiplier))",spacing24:"calc(2.4rem * var(--voca-rem-multiplier))",spacing32:"calc(3.2rem * var(--voca-rem-multiplier))",spacing48:"calc(4.8rem * var(--voca-rem-multiplier))",spacing64:"calc(6.4rem * var(--voca-rem-multiplier))",spacing80:"calc(8rem * var(--voca-rem-multiplier))",spacing96:"calc(9.6rem * var(--voca-rem-multiplier))",spacing128:"calc(12.8rem * var(--voca-rem-multiplier))"};s.default=C});var L=a(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.spacing=r.typography=r.layers=r.colors=r.shadows=r.motion=r.grid=r.borders=r.breakpoints=void 0;var T=y();r.breakpoints=T.default;var A=h();r.borders=A.default;var D=w();r.grid=D.default;var E=_();r.motion=E.default;var F=k();r.shadows=F.default;var W=M();r.colors=W.default;var G=j();r.layers=G.default;var R=P();r.typography=R.default;var V=O();r.spacing=V.default});var e=S(L(),1);var p={focusBorderWidth:"calc(0.3rem * var(--voca-rem-multiplier))",focusColor:"#0099ff"};var ge=()=>{let b="voca-foundations-style-tag",m=document.getElementById(b),i=document.createElement("style");i.id=b;let f={"--font-telia-heading":"TeliaSansHeading, TeliaSans, HelveticaNeue, Helvetica, Arial, sans-serif","--font-telia-sans":"TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif","--font-normal":e.typography.weightNormal,"--font-medium":e.typography.weightMedium,"--font-bold":e.typography.weightBold,"--spacing-0":e.spacing.spacing0,"--spacing-2":e.spacing.spacing2,"--spacing-4":e.spacing.spacing4,"--spacing-8":e.spacing.spacing8,"--spacing-12":e.spacing.spacing12,"--spacing-16":e.spacing.spacing16,"--spacing-20":e.spacing.spacing20,"--spacing-24":e.spacing.spacing24,"--spacing-32":e.spacing.spacing32,"--spacing-48":e.spacing.spacing48,"--spacing-64":e.spacing.spacing64,"--spacing-80":e.spacing.spacing80,"--spacing-96":e.spacing.spacing96,"--spacing-128":e.spacing.spacing128,"--box-shadow-none":e.shadows.none,"--box-shadow-sm":e.shadows.sm,"--box-shadow-md":e.shadows.md,"--box-shadow-lg":e.shadows.lg,"--duration-50":e.motion.duration50,"--duration-100":e.motion.duration100,"--duration-150":e.motion.duration150,"--duration-200":e.motion.duration200,"--duration-250":e.motion.duration250,"--duration-300":e.motion.duration300,"--duration-350":e.motion.duration350,"--duration-400":e.motion.duration400,"--duration-500":e.motion.duration500,"--duration-1500":e.motion.duration1500,"--duration-2000":e.motion.duration2000,"--timing-ease-in":e.motion.easeIn,"--timing-ease-out":e.motion.easeOut,"--timing-ease-in-out":e.motion.easeInOut,"--layer-base":e.layers.base,"--layer-dropdown":e.layers.dropdown,"--layer-header":e.layers.header,"--layer-modal":e.layers.modal,"--border-width-none":e.borders.widthNone,"--border-width-xs":e.borders.widthXs,"--border-width-sm":e.borders.widthSm,"--border-width-md":e.borders.widthMd,"--border-radius-none":e.borders.radiusNone,"--border-radius-default":e.borders.radiusDefault,"--border-radius-sm":e.borders.radiusSm,"--border-radius-lg":e.borders.radiusLg,"--border-radius-full":e.borders.radiusFull,"--screen-size-sm":e.breakpoints.breakpointSm,"--screen-size-md":e.breakpoints.breakpointMd,"--screen-size-lg":e.breakpoints.breakpointLg,"--screen-size-xl":e.breakpoints.breakpointXl,"--purple-100":e.colors.purple100,"--purple-200":e.colors.purple200,"--purple-300":e.colors.purple300,"--purple-400":e.colors.purple400,"--purple-500":e.colors.purple500,"--purple-600":e.colors.purple600,"--purple-700":e.colors.purple700,"--purple-800":e.colors.purple800,"--purple-850":e.colors.purple850,"--purple-900":e.colors.purple900,"--beige-50":e.colors.beige50,"--beige-100":e.colors.beige100,"--beige-200":e.colors.beige200,"--beige-300":e.colors.beige300,"--beige-400":e.colors.beige400,"--beige-500":e.colors.beige500,"--beige-600":e.colors.beige600,"--beige-700":e.colors.beige700,"--beige-800":e.colors.beige800,"--beige-900":e.colors.beige900,"--gray-50":e.colors.gray50,"--gray-100":e.colors.gray100,"--gray-200":e.colors.gray200,"--gray-300":e.colors.gray300,"--gray-400":e.colors.gray400,"--gray-500":e.colors.gray500,"--gray-600":e.colors.gray600,"--gray-700":e.colors.gray700,"--gray-800":e.colors.gray800,"--gray-900":e.colors.gray900,"--green-100":e.colors.green100,"--green-200":e.colors.green200,"--green-300":e.colors.green300,"--green-400":e.colors.green400,"--green-500":e.colors.green500,"--green-600":e.colors.green600,"--green-700":e.colors.green700,"--green-800":e.colors.green800,"--green-900":e.colors.green900,"--red-100":e.colors.red100,"--red-200":e.colors.red200,"--red-300":e.colors.red300,"--red-400":e.colors.red400,"--red-500":e.colors.red500,"--red-600":e.colors.red600,"--red-700":e.colors.red700,"--red-800":e.colors.red800,"--red-900":e.colors.red900,"--orange-100":e.colors.orange100,"--orange-200":e.colors.orange200,"--orange-300":e.colors.orange300,"--orange-400":e.colors.orange400,"--orange-500":e.colors.orange500,"--orange-600":e.colors.orange600,"--orange-700":e.colors.orange700,"--orange-800":e.colors.orange800,"--orange-900":e.colors.orange900,"--blue-100":e.colors.blue100,"--blue-200":e.colors.blue200,"--blue-300":e.colors.blue300,"--blue-400":e.colors.blue400,"--blue-500":e.colors.blue500,"--blue-600":e.colors.blue600,"--blue-700":e.colors.blue700,"--blue-800":e.colors.blue800,"--blue-900":e.colors.blue900,"--white":e.colors.white,"--black":e.colors.black,"--functional-black":e.colors.functionalBlack,"--grid-gutter":e.grid.gutter,"--grid-gutter-medium":e.grid.gutterMedium,"--grid-gutter-large":e.grid.gutterLarge,"--grid-page-padding":e.grid.pagePadding,"--grid-page-padding-m":e.grid.pagePaddingM,"--grid-page-padding-l":e.grid.pagePaddingL,"--grid-gutter-sm":e.grid.gutter,"--grid-gutter-md":e.grid.gutterMedium,"--grid-gutter-lg":e.grid.gutterLarge,"--grid-page-padding-sm":e.grid.pagePadding,"--grid-page-padding-md":e.grid.pagePaddingM,"--grid-page-padding-lg":e.grid.pagePaddingL,"--grid-page-padding-xl":e.grid.pagePaddingXl,"--functional-transparent":"transparent","--transparent-black-50":"rgba(0, 0, 0, 0.05)","--transparent-black-100":"rgba(0, 0, 0, 0.1)","--transparent-black-200":"rgba(0, 0, 0, 0.2)","--transparent-black-300":"rgba(0, 0, 0, 0.3)","--transparent-black-400":"rgba(0, 0, 0, 0.4)","--transparent-black-500":"rgba(0, 0, 0, 0.5)","--transparent-black-600":"rgba(0, 0, 0, 0.6)","--transparent-black-700":"rgba(0, 0, 0, 0.7)","--transparent-black-800":"rgba(0, 0, 0, 0.8)","--transparent-black-850":"rgba(0, 0, 0, 0.85)","--transparent-black-900":"rgba(0, 0, 0, 0.9)","--transparent-white-50":"rgba(0, 0, 0, 0.05)","--transparent-white-100":"rgba(0, 0, 0, 0.1)","--transparent-white-200":"rgba(0, 0, 0, 0.2)","--transparent-white-300":"rgba(0, 0, 0, 0.3)","--transparent-white-400":"rgba(0, 0, 0, 0.4)","--transparent-white-500":"rgba(0, 0, 0, 0.5)","--transparent-white-600":"rgba(0, 0, 0, 0.6)","--transparent-white-700":"rgba(0, 0, 0, 0.7)","--transparent-white-800":"rgba(0, 0, 0, 0.8)","--transparent-white-850":"rgba(0, 0, 0, 0.85)","--transparent-white-900":"rgba(0, 0, 0, 0.9)","--focus-border":`${p.focusBorderWidth} solid ${p.focusColor}`},x=Object.keys(f).map(v=>`${v}:${f[v]};`).join("");if(i.innerHTML=`
|
|
2
|
-
:root {
|
|
3
|
-
${x}
|
|
4
|
-
}
|
|
5
|
-
`,m){document.head.replaceChild(i,m);return}return document.head.append(i)};export{p as a,e as b,ge as c};
|
package/dist/chunk-CQXRGCL7.js
DELETED
|
File without changes
|
package/dist/chunk-DWTR6BZK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-ILHJDXOE.js";import{a as r,b as e,e as i}from"./chunk-BJCDB2UT.js";var d=".telia-card-frame{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.15);border-radius:calc(0.8rem * var(--voca-rem-multiplier));background-color:#ffffff;box-shadow:0 calc(0.1rem * var(--voca-rem-multiplier)) calc(0.4rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1);display:flex;flex-direction:column;height:100%;position:relative;box-sizing:border-box}.telia-card-frame--padded{padding:calc(1.6rem * var(--voca-rem-multiplier))}@media screen and (min-width: 37.5em){.telia-card-frame--padded{padding:calc(2.4rem * var(--voca-rem-multiplier))}}.telia-card-frame__content{height:100%;width:100%}",c=i(class extends r{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.disablePadding=!1,this.dataTrackingId="telia-card-frame",this.componentClass="telia-card-frame"}render(){let t={[this.componentClass]:!0,[`${this.componentClass}--padded`]:!this.disablePadding};return e("div",{class:t},e("telia-vst",{dataTrackingId:this.dataTrackingId}),e("div",{class:`${this.componentClass}__content`},e("slot",null)))}static get style(){return d}},[1,"telia-card-frame",{disablePadding:[4,"disable-padding"],dataTestid:[1,"data-testid"]}]);function l(){if(typeof customElements>"u")return;["telia-card-frame","telia-vst"].forEach(a=>{switch(a){case"telia-card-frame":customElements.get(a)||customElements.define(a,c);break;case"telia-vst":customElements.get(a)||s();break}})}l();export{l as a};
|
package/dist/chunk-EODFLZFI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-ILHJDXOE.js";import{a as n,b as t,e as i}from"./chunk-BJCDB2UT.js";var a=':host{display:flex}.telia-skeleton{border-radius:calc(0.2rem * var(--voca-rem-multiplier));background-color:rgba(0, 0, 0, 0.5);align-items:stretch;opacity:0.3;overflow:hidden;position:relative;width:100%}.telia-skeleton::after{background:linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.4) 70%, transparent);content:"";display:block;height:100%;position:absolute;transform:translateX(-100%);width:100vw}@media (prefers-reduced-motion: no-preference){.telia-skeleton::after{animation:loading 2s infinite;animation-timing-function:cubic-bezier(0.3, 0.6, 0.7, 0.4)}}.telia-skeleton--round{border-radius:calc(99.9rem * var(--voca-rem-multiplier))}@keyframes loading{100%{transform:translateX(100%)}}',s=i(class extends n{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.round=!1,this.dataTrackingId="telia-skeleton"}render(){return t("div",{class:{"telia-skeleton":!0,"telia-skeleton--round":this.round}},t("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return a}},[1,"telia-skeleton",{dataTestid:[1,"data-testid"],round:[4]}]);function r(){if(typeof customElements>"u")return;["telia-skeleton","telia-vst"].forEach(e=>{switch(e){case"telia-skeleton":customElements.get(e)||customElements.define(e,s);break;case"telia-vst":customElements.get(e)||o();break}})}r();
|
package/dist/chunk-FTUVFYUS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-25DKARS5.js";import{a as r}from"./chunk-ILHJDXOE.js";import{a,b as o,e as l}from"./chunk-BJCDB2UT.js";var n='.telia-button{border-radius:calc(99.9rem * var(--voca-rem-multiplier));font-size:calc(1.6rem * var(--voca-rem-multiplier));font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;line-height:calc(1.6rem * var(--voca-rem-multiplier));outline:0;padding:calc(1.6rem * var(--voca-rem-multiplier)) calc(2.4rem * var(--voca-rem-multiplier));position:relative;transition:all 150ms ease;width:auto;}@media screen and (min-width: 37.5em){.telia-button{width:auto}}.telia-button:focus{}.telia-button:focus::before{border-radius:calc(99.9rem * var(--voca-rem-multiplier));box-shadow:0 0 0 calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;bottom:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));content:"";display:block;left:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));position:absolute;right:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));top:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)))}.telia-button:focus:not(:focus-visible)::before{box-shadow:none}.telia-button:disabled{background-color:rgba(0, 0, 0, 0.1);border:0 solid rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.4);cursor:not-allowed}.telia-button--primary{background-color:#29003e;border:0 solid #29003e;color:#ffffff}.telia-button--primary:hover:not([disabled]){background-color:#5e0092;color:#ffffff}.telia-button--primary:active:not([disabled]){background-color:#7800b4;color:#ffffff}.telia-button--secondary{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;color:#29003e}.telia-button--secondary:hover:not([disabled]){background-color:#29003e;color:#ffffff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e}.telia-button--secondary:active:not([disabled]){background-color:#5e0092;color:#ffffff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092}.telia-button--secondary:disabled{border:calc(0.1rem * var(--voca-rem-multiplier)) solid transparent}.telia-button--expressive{background-color:#990ae3;border:0 solid #990ae3;color:#ffffff}.telia-button--expressive:hover:not([disabled]){background-color:#7800b4}.telia-button--expressive:active:not([disabled]){background-color:#5e0092}.telia-button--destructive{background-color:#e4175c;border:0 solid #e4175c;color:#ffffff}.telia-button--destructive:hover:not([disabled]){background-color:#be0040}.telia-button--destructive:active:not([disabled]){background-color:#890e37}.telia-button--destructive.telia-button{}.telia-button--destructive.telia-button.telia-button--icon-only{display:none}.telia-button--tertiary-purple{background-color:transparent;border:0 solid #ffffff;color:#5e0092}.telia-button--tertiary-purple:hover:not([disabled]){background-color:#edc8ff;color:#29003e}.telia-button--tertiary-purple:active:not([disabled]){background-color:#de99ff;color:#29003e}.telia-button--tertiary-purple:disabled{color:rgba(0, 0, 0, 0.4);background-color:transparent}.telia-button--text{background-color:transparent;color:#5e0092;font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;border-radius:0;border:0}.telia-button--text:hover{color:#7800b4}.telia-button--text:active{color:#990ae3}.telia-button--text:disabled{color:rgba(0, 0, 0, 0.4);background-color:transparent}.telia-button--text:focus{}.telia-button--text:focus::before{border-radius:0}.telia-button--text.telia-button{}.telia-button--text.telia-button--lg{padding-left:0;padding-right:0}.telia-button--text.telia-button.telia-button--icon-only{padding:calc(1.2rem * var(--voca-rem-multiplier))}.telia-button--text.telia-button--md.telia-button--icon-only{padding:calc(1.6rem * var(--voca-rem-multiplier))}.telia-button--text.telia-button--lg.telia-button--icon-only{padding:calc(2rem * var(--voca-rem-multiplier))}.telia-button--primary-white{background-color:#fbf0ff;border:0 solid #ffffff;color:#29003e}.telia-button--primary-white:hover{background-color:#edc8ff}.telia-button--primary-white:active{background-color:#de99ff}.telia-button--primary-white:disabled{background-color:rgba(255, 255, 255, 0.1);color:rgba(255, 255, 255, 0.4)}.telia-button--secondary-white{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #fbf0ff;color:#fbf0ff}.telia-button--secondary-white:hover{background-color:#fbf0ff;color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #fbf0ff}.telia-button--secondary-white:active{background-color:#edc8ff;color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #edc8ff}.telia-button--secondary-white:disabled{background-color:rgba(255, 255, 255, 0.1);color:rgba(255, 255, 255, 0.4);border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(255, 255, 255, 0.1)}.telia-button--expressive-white{background-color:#990ae3;color:#ffffff}.telia-button--expressive-white:hover{background-color:#de99ff;color:#29003e}.telia-button--expressive-white:active{background-color:#edc8ff;color:#29003e}.telia-button--expressive-white:disabled{background-color:rgba(255, 255, 255, 0.1);color:rgba(255, 255, 255, 0.4);border:0 solid #ffffff}.telia-button--secondary,.telia-button--secondary-white{padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2.4rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button--secondary.telia-button.telia-button--icon-only,.telia-button--secondary-white.telia-button.telia-button--icon-only{padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button--secondary.telia-button--sm,.telia-button--secondary-white.telia-button--sm{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button--secondary.telia-button--sm.telia-button--icon-only,.telia-button--secondary-white.telia-button--sm.telia-button--icon-only{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button--secondary.telia-button--lg,.telia-button--secondary-white.telia-button--lg{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(3.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button--secondary.telia-button--lg.telia-button--icon-only,.telia-button--secondary-white.telia-button--lg.telia-button--icon-only{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-button.telia-button--icon-only{padding:calc(1.6rem * var(--voca-rem-multiplier))}.telia-button--sm.telia-button--text,.telia-button--md.telia-button--text,.telia-button--lg.telia-button--text{padding-left:0;padding-right:0}.telia-button--sm{padding:calc(1.2rem * var(--voca-rem-multiplier)) calc(2rem * var(--voca-rem-multiplier))}.telia-button--sm.telia-button--icon-only{padding:calc(1.2rem * var(--voca-rem-multiplier))}.telia-button--lg{padding:calc(2rem * var(--voca-rem-multiplier)) calc(3.2rem * var(--voca-rem-multiplier))}.telia-button--lg.telia-button--icon-only{padding:calc(2rem * var(--voca-rem-multiplier))}.telia-button--full-width{width:100%}.telia-button telia-icon[slot=left]{margin-right:calc(0.8rem * var(--voca-rem-multiplier));pointer-events:none}.telia-button telia-icon[slot=right]{margin-left:calc(0.8rem * var(--voca-rem-multiplier));pointer-events:none}',u=l(class extends a{constructor(){super(),this.__registerHost(),this.allyLabel=null,this.disabled=!1,this.type="submit",this.fullWidth=!1,this.size="md",this.htmlAutofocus=!1,this.formnovalidate=!1,this.iconOnly=!1,this.dataTrackingId="telia-button",this.parseJSON=t=>typeof t=="string"&&t?JSON.parse(t):t,this.renderContent=()=>{if(this.text||this.leftIcon||this.rightIcon){let t=this.parseJSON(this.leftIcon),e=this.parseJSON(this.rightIcon);return[t?o("telia-icon",Object.assign({slot:"left"},t)):null,this.text,e?o("telia-icon",Object.assign({slot:"right"},e)):null].filter(c=>c)}return[o("slot",{name:"left"}),o("slot",null),o("slot",{name:"right"})]}}clickHandler(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}componentWillLoad(){this.iconOnly=!this.host.textContent&&this.host.innerHTML.includes("telia-icon")}render(){return o("button",Object.assign({class:{"telia-button":!0,[`telia-button--${this.variant}`]:!!this.variant,"telia-button--full-width":this.fullWidth,[`telia-button--${this.size}`]:!0,"telia-button--icon-only":this.iconOnly}},typeof this.allyExpanded=="boolean"&&{"aria-expanded":this.allyExpanded.toString()},{"aria-controls":this.allyControls,"aria-label":this.allyLabel,autoFocus:this.htmlAutofocus,disabled:this.disabled,form:this.form,formaction:this.formaction,formenctype:this.formenctype,formmethod:this.formmethod,formnovalidate:this.formnovalidate,formtarget:this.formtarget,type:this.type,value:this.value}),o("telia-vst",{dataTrackingId:this.dataTrackingId}),this.renderContent())}get host(){return this}static get style(){return n}},[4,"telia-button",{variant:[1],dataTestid:[1,"data-testid"],allyControls:[1,"ally-controls"],allyExpanded:[4,"ally-expanded"],allyLabel:[1,"ally-label"],disabled:[4],type:[1],form:[1],value:[1],fullWidth:[4,"full-width"],size:[1],htmlAutofocus:[4,"html-autofocus"],formaction:[1],formenctype:[1],formmethod:[1],formnovalidate:[4],formtarget:[1],name:[1],text:[1],leftIcon:[1,"left-icon"],rightIcon:[1,"right-icon"],iconOnly:[32]},[[2,"click","clickHandler"]]]);function s(){if(typeof customElements>"u")return;["telia-button","telia-icon","telia-vst"].forEach(e=>{switch(e){case"telia-button":customElements.get(e)||customElements.define(e,u);break;case"telia-icon":customElements.get(e)||i();break;case"telia-vst":customElements.get(e)||r();break}})}s();export{s as a};
|
package/dist/chunk-GXNVKBPH.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{d as P,e as g}from"./chunk-W3X3OW6G.js";var C={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},x=e=>(...i)=>({_$litDirective$:e,values:i}),m=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,s,c){this._$Ct=i,this._$AM=s,this._$Ci=c}_$AS(i,s){return this.update(i,s)}update(i,s){return this.render(...s)}};var{D:V}=g;var E=()=>document.createComment(""),A=(e,i,s)=>{let c=e._$AA.parentNode,t=i===void 0?e._$AB:i._$AA;if(s===void 0){let n=c.insertBefore(E(),t),r=c.insertBefore(E(),t);s=new V(n,r,e,e.options)}else{let n=s._$AB.nextSibling,r=s._$AM,$=r!==e;if($){let a;s._$AQ?.(e),s._$AM=e,s._$AP!==void 0&&(a=e._$AU)!==r._$AU&&s._$AP(a)}if(n!==t||$){let a=s._$AA;for(;a!==n;){let p=a.nextSibling;c.insertBefore(a,t),a=p}}}return s},d=(e,i,s=e)=>(e._$AI(i,s),e),M={},D=(e,i=M)=>e._$AH=i,B=e=>e._$AH,v=e=>{e._$AP?.(!1,!0);let i=e._$AA,s=e._$AB.nextSibling;for(;i!==s;){let c=i.nextSibling;i.remove(),i=c}};var R=(e,i,s)=>{let c=new Map;for(let t=i;t<=s;t++)c.set(e[t],t);return c},w=x(class extends m{constructor(e){if(super(e),e.type!==C.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,i,s){let c;s===void 0?s=i:i!==void 0&&(c=i);let t=[],n=[],r=0;for(let $ of e)t[r]=c?c($,r):r,n[r]=s($,r),r++;return{values:n,keys:t}}render(e,i,s){return this.ht(e,i,s).values}update(e,[i,s,c]){let t=B(e),{values:n,keys:r}=this.ht(i,s,c);if(!Array.isArray(t))return this.dt=r,n;let $=this.dt??=[],a=[],p,T,l=0,u=t.length-1,o=0,f=n.length-1;for(;l<=u&&o<=f;)if(t[l]===null)l++;else if(t[u]===null)u--;else if($[l]===r[o])a[o]=d(t[l],n[o]),l++,o++;else if($[u]===r[f])a[f]=d(t[u],n[f]),u--,f--;else if($[l]===r[f])a[f]=d(t[l],n[f]),A(e,a[f+1],t[l]),l++,f--;else if($[u]===r[o])a[o]=d(t[u],n[o]),A(e,t[l],t[u]),u--,o++;else if(p===void 0&&(p=R(r,o,f),T=R($,l,u)),p.has($[l]))if(p.has($[u])){let _=T.get(r[o]),h=_!==void 0?t[_]:null;if(h===null){let y=A(e,t[l]);d(y,n[o]),a[o]=y}else a[o]=d(h,n[o]),A(e,t[l],h),t[_]=null;o++}else v(t[u]),u--;else v(t[l]),l++;for(;o<=f;){let _=A(e,a[f+1]);d(_,n[o]),a[o++]=_}for(;l<=u;){let _=t[l++];_!==null&&v(_)}return this.dt=r,D(e,a),P}});export{w as a};
|
|
2
|
-
/*! Bundled license information:
|
|
3
|
-
|
|
4
|
-
lit-html/node/directive.js:
|
|
5
|
-
(**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*)
|
|
10
|
-
|
|
11
|
-
lit-html/node/directive-helpers.js:
|
|
12
|
-
(**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright 2020 Google LLC
|
|
15
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*)
|
|
17
|
-
|
|
18
|
-
lit-html/node/directives/repeat.js:
|
|
19
|
-
(**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*)
|
|
24
|
-
*/
|
package/dist/chunk-HY3DWO5A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk-ILHJDXOE.js";import{a as s,b as t,c as i,e as a}from"./chunk-BJCDB2UT.js";var n=':host{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;color:rgba(0, 0, 0, 0.6);display:block;padding:calc(0.4rem * var(--voca-rem-multiplier)) 0 0}',o=a(class extends s{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.dataTrackingId="telia-field-assistive-text"}render(){return t(i,null,t("telia-vst",{dataTrackingId:this.dataTrackingId}),t("slot",null))}static get style(){return n}},[1,"telia-field-assistive-text"]);function r(){if(typeof customElements>"u")return;["telia-field-assistive-text","telia-vst"].forEach(e=>{switch(e){case"telia-field-assistive-text":customElements.get(e)||customElements.define(e,o);break;case"telia-vst":customElements.get(e)||l();break}})}r();export{r as a};
|
package/dist/chunk-ILHJDXOE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s,b as o,c as a,d as c,e as r}from"./chunk-BJCDB2UT.js";function i(e){return`${e.getFullYear()}.${e.getMonth()+1}`}var n=class{constructor(t){this.voca_component=t,this.voca_added=i(new Date)}},l="telia-vst{display:none}",d=r(class extends s{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=c(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new n(this.dataTrackingId))}render(){return o(a,null)}static get style(){return l}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function u(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,d);break}})}u();export{u as a};
|
package/dist/chunk-IP3GWZV5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"check-circle-filled",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>'};export{e as a};
|
package/dist/chunk-IRYZEKCA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-ILHJDXOE.js";import{a as i,b as e,c as a,e as l}from"./chunk-BJCDB2UT.js";var r=".telia-visually-hidden:not(:focus):not(:focus-within):not(:active){border:0;clip:rect(calc(0.1rem * var(--voca-rem-multiplier)) calc(0.1rem * var(--voca-rem-multiplier)) calc(0.1rem * var(--voca-rem-multiplier)) calc(0.1rem * var(--voca-rem-multiplier)));height:calc(0.1rem * var(--voca-rem-multiplier));margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:calc(0.1rem * var(--voca-rem-multiplier))}",n=l(class extends i{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.dataTrackingId="telia-visually-hidden"}render(){return e(a,null,e("div",{class:"telia-visually-hidden"},e("slot",null),e("telia-vst",{dataTrackingId:this.dataTrackingId})))}static get style(){return r}},[1,"telia-visually-hidden",{dataTestid:[1,"data-testid"]}]);function c(){if(typeof customElements>"u")return;["telia-visually-hidden","telia-vst"].forEach(t=>{switch(t){case"telia-visually-hidden":customElements.get(t)||customElements.define(t,n);break;case"telia-vst":customElements.get(t)||s();break}})}c();export{c as a};
|
package/dist/chunk-KIDSEE4D.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{b as s,c as l,f as c,g as r}from"./chunk-W3X3OW6G.js";import{d as e}from"./chunk-R4RSRPKJ.js";import{createCapabilityPath as p,onEnter as u}from"@telia-ace/alliance-internal-client-utilities";function d(i=""){return location.href.replace(location.origin,"").startsWith(i)}var t=class extends c{constructor(){super();this.navigate=()=>{this.active||(history.pushState({},"",this._href),window.dispatchEvent(new Event("popstate")))};this.clickHandler=a=>{!this.app||this.download||(a.preventDefault(),this.navigate())};this.updateActive=()=>{this.active=d(this._href)};this.computeHref=()=>{if(this.app){this._href=this.href=p(this.app,this.capability,this.args),this.updateActive();return}if(this.href)return this.capability="",this._href=this.href;throw new Error("The <alliance-link> component requires either the 'app' property or 'href' property!")};this.args={},this.download=!1,this.target="_self",this.href=this._href="",this.capability="launch",this.active=!1}static{this.styles=s`
|
|
2
|
-
:host {
|
|
3
|
-
display: contents;
|
|
4
|
-
}
|
|
5
|
-
`}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this.updateActive),this.computeHref()}disconnectedCallback(){window.removeEventListener("popstate",this.updateActive),super.disconnectedCallback()}attributeChangedCallback(a,h,o){super.attributeChangedCallback(a,h,o),setTimeout(()=>this.computeHref())}render(){return l`<a
|
|
6
|
-
part="anchor"
|
|
7
|
-
rel=${this.rel}
|
|
8
|
-
.target=${this.target}
|
|
9
|
-
.href=${this._href}
|
|
10
|
-
?download=${this.download}
|
|
11
|
-
?active=${this.active}
|
|
12
|
-
@click=${this.clickHandler}
|
|
13
|
-
@keydown=${u(this.clickHandler)}
|
|
14
|
-
>
|
|
15
|
-
<slot></slot>
|
|
16
|
-
</a>`}};e([r({type:String,attribute:!0,reflect:!0})],t.prototype,"capability",2),e([r({type:String,attribute:!0,reflect:!0})],t.prototype,"app",2),e([r({type:Object,attribute:!0,reflect:!0})],t.prototype,"args",2),e([r({type:String,attribute:!0,reflect:!0})],t.prototype,"href",2),e([r({type:String})],t.prototype,"target",2),e([r({type:String,attribute:!0,reflect:!0})],t.prototype,"rel",2),e([r({type:Boolean,attribute:!0,reflect:!0})],t.prototype,"download",2),e([r({type:String,attribute:!1,reflect:!1})],t.prototype,"_href",2),e([r({type:Boolean,attribute:!0,reflect:!0})],t.prototype,"active",2);export{t as a};
|
package/dist/chunk-KTIWAGIV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-ILHJDXOE.js";import{a as l,b as t,c as a,e as s}from"./chunk-BJCDB2UT.js";var r={TEXT:"text",STANDALONE:"standalone"};Object.values(r);var o=Object.assign(Object.assign({},r),{NAVIGATION:"navigation"});Object.values(o);var c='.telia-style-link a{color:#5e0092;align-items:center;cursor:pointer;text-decoration:underline}.telia-style-link a:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:0}.telia-style-link a:focus:not(:focus-visible){outline:0}.telia-style-link--text a:visited,.telia-style-link--standalone a:visited{color:#30004b;background-color:transparent}.telia-style-link--text a:hover,.telia-style-link--text a:active,.telia-style-link--standalone a:hover,.telia-style-link--standalone a:active{background-color:#fbf0ff}.telia-style-link--text:is(.telia-style-link--disable-visited) a:visited,.telia-style-link--standalone:is(.telia-style-link--disable-visited) a:visited{color:#5e0092}.telia-style-link--silent:is(.telia-style-link--disable-visited) a:visited{color:inherit}.telia-style-link--text:not(.telia-style-link--disable-visited) a:active,.telia-style-link--standalone:not(.telia-style-link--disable-visited) a:active,.telia-style-link--text:is(.telia-style-link--disable-visited) a:active,.telia-style-link--standalone:is(.telia-style-link--disable-visited) a:active{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:0}.telia-style-link--standalone a{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;display:inline-block;padding:calc(1rem * var(--voca-rem-multiplier)) 0}.telia-style-link--navigation a{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;font-weight:500;align-items:center;display:flex;text-decoration:none}.telia-style-link--navigation a:hover{text-decoration:underline}.telia-style-link--navigation a:hover.telia-style-link--dark-bg{background-color:transparent}.telia-style-link--dark-bg a{color:#de99ff}.telia-style-link--dark-bg a:visited,.telia-style-link--dark-bg a:visited:hover,.telia-style-link--dark-bg a:visited:active{color:#edc8ff}.telia-style-link--dark-bg a:hover{color:#de99ff;background-color:rgba(255, 255, 255, 0.1)}.telia-style-link--dark-bg a:active{color:#edc8ff;background-color:rgba(255, 255, 255, 0.1)}.telia-style-link--dark-bg:is(.telia-style-link--navigation) a{color:#fbf0ff}.telia-style-link--dark-bg:is(.telia-style-link--navigation) a:hover,.telia-style-link--dark-bg:is(.telia-style-link--navigation) a:active{background-color:transparent}.telia-style-link--dark-bg:is(.telia-style-link--navigation) a:hover{color:#edc8ff}.telia-style-link--dark-bg:is(.telia-style-link--navigation) a:active{color:#de99ff}.telia-style-link--dark-bg:is(.telia-style-link--disable-visited) a:visited,.telia-style-link--dark-bg:is(.telia-style-link--disable-visited) a:visited:hover,.telia-style-link--dark-bg:is(.telia-style-link--disable-visited) a:visited:active{color:#de99ff}.telia-style-link--dark-bg:is(.telia-style-link--disable-visited):is(.telia-style-link--navigation) a:visited{color:#fbf0ff}.telia-style-link--dark-bg:is(.telia-style-link--disable-visited):is(.telia-style-link--navigation) a:visited:hover{color:#edc8ff}.telia-style-link--dark-bg:is(.telia-style-link--disable-visited):is(.telia-style-link--navigation) a:visited:active{color:#de99ff}.telia-style-link--silent a{background-color:inherit;color:inherit;height:100%;text-decoration:none}.telia-style-link--silent a:hover,.telia-style-link--silent a:focus,.telia-style-link--silent a:active{background-color:inherit;color:inherit}.telia-style-link--silent a:focus{outline:0}.telia-style-link--silent a:focus ::slotted(*){outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier))}.telia-style-link--ensure-click-area,.telia-style-link--ensure-click-area a{align-items:center;display:flex;justify-content:center;min-height:calc(4.8rem * var(--voca-rem-multiplier));min-width:calc(4.8rem * var(--voca-rem-multiplier))}',d=s(class extends l{constructor(){super(),this.__registerHost(),this.silent=!1,this.variant=o.TEXT,this.disableVisited=!1,this.darkBackground=!1,this.ensureClickArea=!1,this.dataTrackingId="telia-style-link"}render(){let i="telia-style-link",e={[i]:!0,[`${i}--${this.variant}`]:!0,[`${i}--silent`]:this.silent,[`${i}--dark-bg`]:this.darkBackground,[`${i}--navigation-dark-bg`]:this.darkBackground&&this.variant==="navigation",[`${i}--disable-visited`]:this.disableVisited||this.silent,[`${i}--ensure-click-area`]:this.ensureClickArea};return t(a,{class:e},t("slot",null),t("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return c}},[4,"telia-style-link",{silent:[4],variant:[1],dataTestid:[1,"data-testid"],disableVisited:[4,"disable-visited"],darkBackground:[4,"dark-background"],ensureClickArea:[4,"ensure-click-area"]}]);function k(){if(typeof customElements>"u")return;["telia-style-link","telia-vst"].forEach(e=>{switch(e){case"telia-style-link":customElements.get(e)||customElements.define(e,d);break;case"telia-vst":customElements.get(e)||n();break}})}k();export{r as a,k as b};
|
package/dist/chunk-LU2NZ7PI.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import{a as c,b as t}from"./chunk-CPNFJGZA.js";import{a as o,b as s,c as r,f as e,g as a}from"./chunk-W3X3OW6G.js";import{d as i}from"./chunk-R4RSRPKJ.js";var m=class extends e{static{this.styles=s`
|
|
2
|
-
:host {
|
|
3
|
-
display: table;
|
|
4
|
-
border-collapse: collapse;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
`}render(){return r` <alliance-tb>
|
|
8
|
-
<slot></slot>
|
|
9
|
-
</alliance-tb>`}};var d=class extends e{static{this.styles=s`
|
|
10
|
-
:host {
|
|
11
|
-
display: table-row-group;
|
|
12
|
-
vertical-align: middle;
|
|
13
|
-
border-color: inherit;
|
|
14
|
-
}
|
|
15
|
-
`}render(){return r`<slot></slot>`}};var h=class extends e{static{this.styles=s`
|
|
16
|
-
:host {
|
|
17
|
-
display: table-cell;
|
|
18
|
-
vertical-align: inherit;
|
|
19
|
-
padding: ${o(t.spacing.spacing24)};
|
|
20
|
-
}
|
|
21
|
-
`}render(){return r` <slot></slot> `}};var n=class extends e{constructor(){super();this.label=""}static{this.styles=s`
|
|
22
|
-
:host {
|
|
23
|
-
display: table-cell;
|
|
24
|
-
padding: ${o(t.spacing.spacing24)};
|
|
25
|
-
}
|
|
26
|
-
`}render(){return r`<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>`}};i([a({type:String})],n.prototype,"label",2);var p=class extends e{constructor(){super();this.clickable=!1}static{this.styles=s`
|
|
27
|
-
:host {
|
|
28
|
-
display: table-row;
|
|
29
|
-
border-bottom: ${o(t.borders.widthXs)} solid ${o(t.colors.gray200)};
|
|
30
|
-
}
|
|
31
|
-
`}render(){return r`
|
|
32
|
-
${this.clickable?u:""}
|
|
33
|
-
<slot></slot>
|
|
34
|
-
`}};i([a({type:Boolean})],p.prototype,"clickable",2);var u=r`<style>
|
|
35
|
-
:host {
|
|
36
|
-
background-color: transparent;
|
|
37
|
-
transition: background-color ${o(t.motion.duration150)} ${o(t.motion.easeIn)};
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host(:hover),
|
|
42
|
-
:host(:focus-visible),
|
|
43
|
-
:host(:focus) {
|
|
44
|
-
background-color: ${o(t.colors.gray200)};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host(:active) {
|
|
48
|
-
background-color: ${o(t.colors.gray300)};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host(:focus-visible) {
|
|
52
|
-
outline: solid ${o(c.focusBorderWidth)} ${o(c.focusColor)};
|
|
53
|
-
outline-offset: ${o(t.spacing.spacing4)};
|
|
54
|
-
}
|
|
55
|
-
</style>`;export{m as a,d as b,h as c,n as d,p as e};
|
package/dist/chunk-NFNKJID6.js
DELETED
|
File without changes
|