@warp-ds/elements 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +39 -0
- package/dist/api.js +29 -0
- package/dist/api.js.map +7 -0
- package/dist/dist/elements.min.d.ts +1 -0
- package/dist/elements.min.js +4 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +538 -0
- package/dist/index.js.map +7 -0
- package/dist/packages/affix/icons.d.ts +2 -0
- package/dist/packages/affix/index.d.ts +26 -0
- package/dist/packages/alert/index.d.ts +21 -0
- package/dist/packages/alert/svgs.d.ts +4 -0
- package/dist/packages/attention/index.d.ts +66 -0
- package/dist/packages/box/index.d.ts +20 -0
- package/dist/packages/breadcrumbs/index.d.ts +6 -0
- package/dist/packages/broadcast/component.d.ts +37 -0
- package/dist/packages/broadcast/index.d.ts +2 -0
- package/dist/packages/button/index.d.ts +63 -0
- package/dist/packages/card/index.d.ts +25 -0
- package/dist/packages/expandable/index.d.ts +58 -0
- package/dist/packages/select/index.d.ts +43 -0
- package/dist/packages/textfield/index.d.ts +80 -0
- package/dist/packages/toast/api.d.ts +54 -0
- package/dist/packages/toast/svgs.d.ts +3 -0
- package/dist/packages/toast/toast-container.d.ts +66 -0
- package/dist/packages/toast/toast.d.ts +44 -0
- package/dist/packages/utils/expand-transition.d.ts +21 -0
- package/dist/packages/utils/index.d.ts +11 -0
- package/dist/packages/utils/unstyled-heading.d.ts +11 -0
- package/package.json +97 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
var di=Object.defineProperty,hi=Object.defineProperties;var ui=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var Ke=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var $e=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))Ke.call(t,r)&&$e(e,r,t[r]);if(Gt)for(var r of Gt(t))We.call(t,r)&&$e(e,r,t[r]);return e},P=(e,t)=>hi(e,ui(t));var Ae=(e,t)=>{var r={};for(var i in e)Ke.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Gt)for(var i of Gt(e))t.indexOf(i)<0&&We.call(e,i)&&(r[i]=e[i]);return r};var g=(e,t,r)=>($e(e,typeof t!="symbol"?t+"":t,r),r),pi=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var z=(e,t,r)=>(pi(e,t,"read from private field"),r?r.call(e):t.get(e)),Kt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var Wt=window,Jt=Wt.ShadowRoot&&(Wt.ShadyCSS===void 0||Wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ee=Symbol(),Je=new WeakMap,vt=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==Ee)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Jt&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=Je.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Je.set(r,t))}return t}toString(){return this.cssText}},Xe=e=>new vt(typeof e=="string"?e:e+"",void 0,Ee),E=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[o+1],e[0]);return new vt(r,e,Ee)},Se=(e,t)=>{Jt?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),s=Wt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)})},Xt=Jt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return Xe(r)})(e):e;var Ce,Yt=window,Ye=Yt.trustedTypes,fi=Ye?Ye.emptyScript:"",Qe=Yt.reactiveElementPolyfillSupport,Le={toAttribute(e,t){switch(t){case Boolean:e=e?fi:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},tr=(e,t)=>t!==e&&(t==t||e==e),ke={attribute:!0,type:String,converter:Le,reflect:!1,hasChanged:tr},I=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,i)=>{let s=this._$Ep(i,r);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,r=ke){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){return{get(){return this[r]},set(s){let o=this[t];this[r]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ke}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let s of i)this.createProperty(s,r[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)r.unshift(Xt(s))}else t!==void 0&&r.push(Xt(t));return r}static _$Ep(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Se(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r,i=ke){var s;let o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){let n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Le).toAttribute(r,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,r){var i;let s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){let n=s.getPropertyOptions(o),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Le;this._$El=o,this[o]=l.fromAttribute(r,n.type),this._$El=null}}requestUpdate(t,r,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||tr)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw r=!1,this._$Ek(),s}r&&this._$AE(i)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};I.finalized=!0,I.elementProperties=new Map,I.elementStyles=[],I.shadowRootOptions={mode:"open"},Qe==null||Qe({ReactiveElement:I}),((Ce=Yt.reactiveElementVersions)!==null&&Ce!==void 0?Ce:Yt.reactiveElementVersions=[]).push("1.6.1");var Te,Qt=window,st=Qt.trustedTypes,er=st?st.createPolicy("lit-html",{createHTML:e=>e}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,Re="?"+U,mi=`<${Re}>`,ot=document,wt=(e="")=>ot.createComment(e),xt=e=>e===null||typeof e!="object"&&typeof e!="function",ar=Array.isArray,cr=e=>ar(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rr=/-->/g,ir=/>/g,J=RegExp(`>|[
|
|
2
|
+
\f\r](?:([^\\s"'>=/]+)([
|
|
3
|
+
\f\r]*=[
|
|
4
|
+
\f\r]*(?:[^
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),sr=/'/g,or=/"/g,dr=/^(?:script|style|textarea|title)$/i,hr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),h=hr(1),_t=hr(2),M=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),nr=new WeakMap,it=ot.createTreeWalker(ot,129,null,!1),ur=(e,t)=>{let r=e.length-1,i=[],s,o=t===2?"<svg>":"",n=yt;for(let a=0;a<r;a++){let c=e[a],f,d,u=-1,p=0;for(;p<c.length&&(n.lastIndex=p,d=n.exec(c),d!==null);)p=n.lastIndex,n===yt?d[1]==="!--"?n=rr:d[1]!==void 0?n=ir:d[2]!==void 0?(dr.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=J):d[3]!==void 0&&(n=J):n===J?d[0]===">"?(n=s!=null?s:yt,u=-1):d[1]===void 0?u=-2:(u=n.lastIndex-d[2].length,f=d[1],n=d[3]===void 0?J:d[3]==='"'?or:sr):n===or||n===sr?n=J:n===rr||n===ir?n=yt:(n=J,s=void 0);let m=n===J&&e[a+1].startsWith("/>")?" ":"";o+=n===yt?c+mi:u>=0?(i.push(f),c.slice(0,u)+"$lit$"+c.slice(u)+U+m):c+U+(u===-2?(i.push(void 0),a):m)}let l=o+(e[r]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[er!==void 0?er.createHTML(l):l,i]},X=class{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let o=0,n=0,l=t.length-1,a=this.parts,[c,f]=ur(t,r);if(this.el=X.createElement(c,i),it.currentNode=this.el.content,r===2){let d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(s=it.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){let d=[];for(let u of s.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(U)){let p=f[n++];if(d.push(u),p!==void 0){let m=s.getAttribute(p.toLowerCase()+"$lit$").split(U),b=/([.?@])?(.*)/.exec(p);a.push({type:1,index:o,name:b[2],strings:m,ctor:b[1]==="."?ee:b[1]==="?"?re:b[1]==="@"?ie:Q})}else a.push({type:6,index:o})}for(let u of d)s.removeAttribute(u)}if(dr.test(s.tagName)){let d=s.textContent.split(U),u=d.length-1;if(u>0){s.textContent=st?st.emptyScript:"";for(let p=0;p<u;p++)s.append(d[p],wt()),it.nextNode(),a.push({type:2,index:++o});s.append(d[u],wt())}}}else if(s.nodeType===8)if(s.data===Re)a.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(U,d+1))!==-1;)a.push({type:7,index:o}),d+=U.length-1}o++}}static createElement(t,r){let i=ot.createElement("template");return i.innerHTML=t,i}};function Y(e,t,r=e,i){var s,o,n,l;if(t===M)return t;let a=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,c=xt(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(e),a._$AT(e,r,i)),i!==void 0?((n=(l=r)._$Co)!==null&&n!==void 0?n:l._$Co=[])[i]=a:r._$Cl=a),a!==void 0&&(t=Y(e,a._$AS(e,t.values),a,i)),t}var te=class{constructor(t,r){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var r;let{el:{content:i},parts:s}=this._$AD,o=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:ot).importNode(i,!0);it.currentNode=o;let n=it.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let f;c.type===2?f=new F(n,n.nextSibling,this,t):c.type===1?f=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(f=new se(n,this,t)),this.u.push(f),c=s[++a]}l!==(c==null?void 0:c.index)&&(n=it.nextNode(),l++)}return o}p(t){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},F=class{constructor(t,r,i,s){var o;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cm=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Y(this,t,r),xt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==M&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cr(t)?this.k(t):this.g(t)}O(t,r=this._$AB){return this._$AA.parentNode.insertBefore(t,r)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==$&&xt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ot.createTextNode(t)),this._$AH=t}$(t){var r;let{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=X.createElement(s.h,this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===o)this._$AH.p(i);else{let n=new te(o,this),l=n.v(this.options);n.p(i),this.T(l),this._$AH=n}}_$AC(t){let r=nr.get(t.strings);return r===void 0&&nr.set(t.strings,r=new X(t)),r}k(t){ar(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let o of t)s===r.length?r.push(i=new F(this.O(wt()),this.O(wt()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cm=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}},Q=class{constructor(t,r,i,s,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,i,s){let o=this.strings,n=!1;if(o===void 0)t=Y(this,t,r,0),n=!xt(t)||t!==this._$AH&&t!==M,n&&(this._$AH=t);else{let l=t,a,c;for(t=o[0],a=0;a<o.length-1;a++)c=Y(this,l[i+a],r,a),c===M&&(c=this._$AH[a]),n||(n=!xt(c)||c!==this._$AH[a]),c===$?t=$:t!==$&&(t+=(c!=null?c:"")+o[a+1]),this._$AH[a]=c}n&&!s&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ee=class extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}},gi=st?st.emptyScript:"",re=class extends Q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,gi):this.element.removeAttribute(this.name)}},ie=class extends Q{constructor(t,r,i,s,o){super(t,r,i,s,o),this.type=5}_$AI(t,r=this){var i;if((t=(i=Y(this,t,r,0))!==null&&i!==void 0?i:$)===M)return;let s=this._$AH,o=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==$&&(s===$||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},se=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}},pr={P:"$lit$",A:U,M:Re,C:1,L:ur,R:te,D:cr,V:Y,I:F,H:Q,N:re,U:ie,B:ee,F:se},lr=Qt.litHtmlPolyfillSupport;lr==null||lr(X,F),((Te=Qt.litHtmlVersions)!==null&&Te!==void 0?Te:Qt.litHtmlVersions=[]).push("2.6.1");var fr=(e,t,r)=>{var i,s;let o=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:t,n=o._$litPart$;if(n===void 0){let l=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new F(t.insertBefore(wt(),l),l,void 0,r!=null?r:{})}return n._$AI(e),n};var Pe,Me;var v=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let i=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=i.firstChild),i}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fr(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return M}};v.finalized=!0,v._$litElement$=!0,(Pe=globalThis.litElementHydrateSupport)===null||Pe===void 0||Pe.call(globalThis,{LitElement:v});var mr=globalThis.litElementPolyfillSupport;mr==null||mr({LitElement:v});((Me=globalThis.litElementVersions)!==null&&Me!==void 0?Me:globalThis.litElementVersions=[]).push("3.2.2");var gr=()=>h`<svg
|
|
6
|
+
aria-label="Rødt utropstegn"
|
|
7
|
+
role="img"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width="16"
|
|
10
|
+
height="16"
|
|
11
|
+
fill="none"
|
|
12
|
+
>
|
|
13
|
+
${bi}
|
|
14
|
+
</svg>`,br=()=>h`<svg
|
|
15
|
+
aria-label="Grønt hake"
|
|
16
|
+
role="img"
|
|
17
|
+
width="16"
|
|
18
|
+
height="16"
|
|
19
|
+
fill="none"
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
>
|
|
22
|
+
${vi}
|
|
23
|
+
</svg> `,vr=()=>h`<svg
|
|
24
|
+
aria-label="Gult utropstegn"
|
|
25
|
+
role="img"
|
|
26
|
+
width="16"
|
|
27
|
+
height="16"
|
|
28
|
+
fill="none"
|
|
29
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
30
|
+
>
|
|
31
|
+
${yi}
|
|
32
|
+
</svg> `,yr=()=>h`<svg
|
|
33
|
+
aria-label="Info"
|
|
34
|
+
role="img"
|
|
35
|
+
width="16"
|
|
36
|
+
height="16"
|
|
37
|
+
fill="none"
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
>
|
|
40
|
+
${wi}
|
|
41
|
+
</svg>`,bi=_t`<path
|
|
42
|
+
d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
|
|
43
|
+
fill="currentColor"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
fill-rule="evenodd"
|
|
47
|
+
clip-rule="evenodd"
|
|
48
|
+
d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
|
|
49
|
+
fill="#fff"
|
|
50
|
+
/>
|
|
51
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,vi=_t`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
52
|
+
<path
|
|
53
|
+
fill-rule="evenodd"
|
|
54
|
+
clip-rule="evenodd"
|
|
55
|
+
d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
|
|
56
|
+
fill="#fff"
|
|
57
|
+
/>`,yi=_t`<path
|
|
58
|
+
d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
|
|
59
|
+
fill="currentColor"
|
|
60
|
+
/>
|
|
61
|
+
<path
|
|
62
|
+
fill-rule="evenodd"
|
|
63
|
+
clip-rule="evenodd"
|
|
64
|
+
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
65
|
+
fill="#fff"
|
|
66
|
+
/>
|
|
67
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,wi=_t`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
68
|
+
<path
|
|
69
|
+
fill-rule="evenodd"
|
|
70
|
+
clip-rule="evenodd"
|
|
71
|
+
d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
|
|
72
|
+
fill="#fff"
|
|
73
|
+
/>`;var x=E`
|
|
74
|
+
[object Object]
|
|
75
|
+
`;var wr={negative:{color:"red",icon:gr(),bgColor:"bg-red-50",borderColor:"border-red-300",textColor:"text-red-600"},positive:{color:"green",icon:br(),bgColor:"bg-green-50",borderColor:"border-green-300",textColor:"text-green-600"},warning:{color:"yellow",icon:vr(),bgColor:"bg-yellow-50",borderColor:"border-yellow-300",textColor:"text-yellow-600"},info:{color:"aqua",icon:yr(),bgColor:"bg-aqua-50",borderColor:"border-aqua-300",textColor:"text-aqua-600"}},$t=class extends v{constructor(){super(),this.show=!1,this.role="alert"}connectedCallback(){if(super.connectedCallback(),!this.variant||!Object.keys(wr).includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
76
|
+
negative, positive, warning, info.`)}get _style(){return this.variant?wr[this.variant]:{}}render(){let{color:t,icon:r,bgColor:i,borderColor:s,textColor:o}=this._style;return h`
|
|
77
|
+
<w-expand-transition ?show=${this.show}>
|
|
78
|
+
<div
|
|
79
|
+
role=${this.role}
|
|
80
|
+
class="${`flex p-16 border rounded-4 border-l-4 ${i} ${s}`}"
|
|
81
|
+
style="border-left-color:var(--w-${t}-600)"
|
|
82
|
+
>
|
|
83
|
+
<div class="mr-8 ${o}">${r}</div>
|
|
84
|
+
<div class="text-14">
|
|
85
|
+
<slot></slot>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</w-expand-transition>
|
|
89
|
+
`}};g($t,"properties",{variant:{type:String,reflect:!0},show:{type:Boolean,reflect:!0},role:{type:String,reflect:!0}}),g($t,"styles",[x,E`
|
|
90
|
+
:host {
|
|
91
|
+
display: block;
|
|
92
|
+
}
|
|
93
|
+
::slotted(:last-child) {
|
|
94
|
+
margin-bottom: 0px !important;
|
|
95
|
+
}
|
|
96
|
+
`]);customElements.get("w-alert")||customElements.define("w-alert",$t);var At=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,i){return r.concat(typeof i=="string"?i:Array.isArray(i)?At.apply(void 0,i):typeof i=="object"&&i?Object.keys(i).map(function(s){return i[s]?s:""}):"")},[]).join(" ")};var nt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},lt=e=>(...t)=>({_$litDirective$:e,values:t}),Z=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var at=lt(class extends Z{constructor(e){var t;if(super(e),e.type!==nt.ATTRIBUTE||e.name!=="class"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,i;if(this.nt===void 0){this.nt=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!(!((r=this.st)===null||r===void 0)&&r.has(o))&&this.nt.add(o);return this.render(t)}let s=e.element.classList;this.nt.forEach(o=>{o in t||(s.remove(o),this.nt.delete(o))});for(let o in t){let n=!!t[o];n===this.nt.has(o)||!((i=this.st)===null||i===void 0)&&i.has(o)||(n?(s.add(o),this.nt.add(o)):(s.remove(o),this.nt.delete(o)))}return M}});var xi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function G(e){return class extends e{static createProperty(t,r){let i=r;(typeof(r==null?void 0:r.attribute)=="undefined"||(r==null?void 0:r.attribute)===!0)&&(i=Object.assign({},r,{attribute:xi(t.toString())})),super.createProperty(t,i)}}}function De(e){let t=[];for(let[r,i]of Object.entries(e))i&&t.push(r);return t.join(" ")}var tt=typeof window!="undefined";function L(e){let t={};for(let[r,i]of Object.entries(e))for(let s of r.split(" "))t[s]=i;return at(t)}function xr(){return`m${Math.random().toString(36).slice(2)}`}var _r={primary:"button button--primary",secondary:"button",negative:"button button--destructive",utility:"button button--utility",link:"button button--link",pill:"button button--pill"},ct=class extends G(v){constructor(){super(),this.variant="secondary"}connectedCallback(){super.connectedCallback();let t=Object.keys(_r);if(!t.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
97
|
+
${t.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}get _classes(){return At(_r[this.variant],{"button--flat":this.variant==="secondary"&&this.quiet,"button--destructive-flat":this.variant==="negative"&&this.quiet,"button--utility-flat":this.variant==="utility"&&this.quiet,"button--small":this.small,"button--in-progress":this.loading},this.buttonClass)}render(){return h`
|
|
98
|
+
${this.href?h`<a
|
|
99
|
+
href=${this.href}
|
|
100
|
+
target=${this.target}
|
|
101
|
+
rel=${this.target==="_blank"?this.rel||"noopener":void 0}
|
|
102
|
+
class=${this._classes}
|
|
103
|
+
>
|
|
104
|
+
<slot></slot>
|
|
105
|
+
</a>`:h`<button type=${this.type||"button"} class=${this._classes}>
|
|
106
|
+
<slot></slot>
|
|
107
|
+
</button>`}
|
|
108
|
+
${this.loading?h`<span
|
|
109
|
+
class="sr-only"
|
|
110
|
+
role="progressbar"
|
|
111
|
+
aria-valuenow="{0}"
|
|
112
|
+
aria-valuetext="Laster..."
|
|
113
|
+
/>`:null}`}};g(ct,"shadowRootOptions",P(A({},v.shadowRootOptions),{delegatesFocus:!0})),g(ct,"properties",{type:{type:"button"|"submit"|"reset",reflect:!0},autofocus:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},quiet:{type:Boolean,reflect:!0},small:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0},href:{type:String,reflect:!0},target:{type:String,reflect:!0},rel:{type:String,reflect:!0},buttonClass:{type:String,reflect:!0}}),g(ct,"styles",[x]);customElements.get("w-button")||customElements.define("w-button",ct);var w=e=>e!=null?e:$;var V={base:"border-2 relative",tooltip:"bg-gray-700 border-gray-700 text-white rounded-4 py-6 px-8",callout:"bg-green-100 border-green-400 py-8 px-16 rounded-8",popover:"bg-white border-white rounded-8 p-16 filter drop-shadow-20",arrowBase:"absolute h-14 w-14 border-2 border-b-0 border-r-0 transform",arrowTooltip:"bg-gray-700 border-gray-700",arrowCallout:"bg-green-100 border-green-400",arrowPopover:"bg-white border-white"};var D={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8"};var O={card:"cursor-pointer overflow-hidden relative transition-all outline-none",cardShadow:"f-card rounded-8",cardFlat:"border-2 rounded-4",cardFlatUnselected:"border-bluegray-300 hover:bg-gray-50 hover:border-bluegray-400 active:border-bluegray-300",cardFlatSelected:"border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",cardSelected:"border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",cardOutline:"f-card-outline absolute rounded-8 inset-0 transition-all border-2",cardOutlineUnselected:"border-transparent",cardOutlineSelected:"border-blue-600 hover:border-blue-700"};var Oe={toasterContainer:"fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",toaster:"f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},T={toastWrapper:"relative overflow-hidden w-full",toast:"toast flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",toastPositive:"bg-green-50 border-green-300 text-green-800",toastWarning:"bg-yellow-50 border-yellow-300 text-yellow-800",toastNegative:"bg-red-50 border-red-300 text-red-800",toastNeutral:"bg-gray-50 border-gray-300 text-gray-800",toastIcon:"flex-shrink-0 rounded-full w-16 h-16 m-8",toastIconPositive:"bg-green-300",toastIconWarning:"bg-yellow-300",toastIconNegative:"bg-red-300",toastIconNeutral:"bg-gray-300",toastIconLoading:"animate-bounce",toastContent:"self-center mr-8 py-4 last-child:mb-0",toastClose:"ml-auto p-8"};var Be="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Ms={expandable:"f-expandable",expandableInfo:"bg-aqua-50",expandableBox:"py-0 px-0 "+D.box,expandableBleed:D.bleed,chevron:"inline-block align-middle transform transition-transform transition-gpu",chevronNonBox:"relative left-8",chevronBox:"f-expandable-chevron absolute right-16",chevronExpanded:"-rotate-180",button:Be+" hover:underline focus:underline",buttonBox:"w-full text-left relative "+D.box,buttonInfo:"hover:text-aqua-700 active:text-aqua-800"},$r="absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ",Ar={wrapper:$r+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"field-label pb-0 text-12"},Er={wrapper:$r+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"field-label pb-0 text-secondary text-12"};var Sr={ENTER:"Enter",SPACE:" "},Et=class extends v{constructor(){super(),this.selected=!1,this.flat=!1,this.clickable=!1}get _outerClasses(){return L({[O.card]:!0,[O.cardShadow]:!this.flat,[O.cardSelected]:this.selected,[O.cardFlat]:this.flat,[this.selected?O.cardFlatSelected:O.cardFlatUnselected]:this.flat})}get _innerClasses(){return L({[O.cardOutline]:!0,[this.selected?O.cardOutlineSelected:O.cardOutlineUnselected]:!0})}get uuButton(){return h`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
|
|
114
|
+
Velg
|
|
115
|
+
</button>`}get uuSpan(){return h`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`}keypressed(t){!this.clickable||t.altKey||t.ctrlKey||(t.key===Sr.ENTER||t.key===Sr.SPACE)&&(t.preventDefault(),this.click())}render(){return h`
|
|
116
|
+
<div
|
|
117
|
+
tabindex=${w(this.clickable?"0":void 0)}
|
|
118
|
+
class="${this._outerClasses}"
|
|
119
|
+
@keydown=${this.keypressed}
|
|
120
|
+
>
|
|
121
|
+
${this.clickable?this.uuButton:""}
|
|
122
|
+
${!this.clickable&&this.selected?this.uuSpan:""}
|
|
123
|
+
<div class="${this._innerClasses}"></div>
|
|
124
|
+
<slot></slot>
|
|
125
|
+
</div>
|
|
126
|
+
`}};g(Et,"styles",[x,E`
|
|
127
|
+
a::after {
|
|
128
|
+
content: '';
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: 0;
|
|
131
|
+
right: 0;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
left: 0;
|
|
134
|
+
}
|
|
135
|
+
:host {
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
`]),g(Et,"properties",{selected:{type:Boolean,reflect:!0},flat:{type:Boolean},clickable:{type:Boolean}});customElements.get("w-card")||customElements.define("w-card",Et);function dt(e,t,r){return e?t():r==null?void 0:r()}var St=class extends Z{constructor(t){if(super(t),this.it=$,t.type!==nt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===M)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};St.directiveName="unsafeHTML",St.resultType=1;var oe=lt(St);var ae,Cr,ht,ne,ut,le,Ct=class extends G(v){constructor(){super();Kt(this,ae);Kt(this,ht);Kt(this,ut);this._options=this.innerHTML}render(){return h`<div class="${z(this,ae,Cr)}">
|
|
139
|
+
${dt(this.label,()=>h`<label for="${z(this,ht,ne)}">
|
|
140
|
+
${this.label}
|
|
141
|
+
${dt(this.optional,()=>h`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`)}</label
|
|
142
|
+
>`)}
|
|
143
|
+
<div class="input--select__wrap">
|
|
144
|
+
<select
|
|
145
|
+
id="${z(this,ht,ne)}"
|
|
146
|
+
?autofocus=${this.autoFocus}
|
|
147
|
+
aria-describedby="${w(z(this,ut,le))}"
|
|
148
|
+
aria-invalid="${w(this.invalid)}"
|
|
149
|
+
aria-errormessage="${w(this.invalid&&z(this,ut,le))}"
|
|
150
|
+
>
|
|
151
|
+
${oe(this._options)}
|
|
152
|
+
</select>
|
|
153
|
+
</div>
|
|
154
|
+
${dt(this.always||this.invalid,()=>h`<div id="${z(this,ut,le)}" class="input__sub-text">${this.hint}</div>`)}
|
|
155
|
+
</div>`}};ae=new WeakSet,Cr=function(){return At("input mb-0",{"input--is-invalid":this.invalid})},ht=new WeakSet,ne=function(){return"select_id"},ut=new WeakSet,le=function(){return this.hint?`${z(this,ht,ne)}__hint`:void 0},g(Ct,"properties",{autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}}),g(Ct,"styles",[x]);customElements.get("w-select")||customElements.define("w-select",Ct);var kt=class extends v{get _class(){return L({[D.box]:!0,[D.bleed]:this.bleed,"bg-aqua-50":this.info,"bg-bluegray-100":this.neutral,"border-2 border-bluegray-300":this.bordered})}render(){return h`
|
|
156
|
+
<div class="${this._class}">
|
|
157
|
+
<slot></slot>
|
|
158
|
+
</div>
|
|
159
|
+
`}};g(kt,"properties",{bleed:{type:Boolean},bordered:{type:Boolean},info:{type:Boolean},neutral:{type:Boolean}}),g(kt,"styles",[x,E`
|
|
160
|
+
:host {
|
|
161
|
+
display: block;
|
|
162
|
+
}
|
|
163
|
+
::slotted(:last-child) {
|
|
164
|
+
margin-bottom: 0px !important;
|
|
165
|
+
}
|
|
166
|
+
`]);customElements.get("w-box")||customElements.define("w-box",kt);function kr(e,t){return e.flatMap(r=>[r,t]).slice(0,-1)}var _i=h`<span class="select-none" aria-hidden="true">/</span>`,ce=class extends v{connectedCallback(){super.connectedCallback(),this._children=kr(Array.from(this.children),_i)}render(){return h`
|
|
167
|
+
<nav aria-label="Her er du" class="flex space-x-8">
|
|
168
|
+
<h2 class="sr-only">Her er du</h2>
|
|
169
|
+
${this._children}
|
|
170
|
+
</nav>
|
|
171
|
+
`}};g(ce,"styles",[x]);customElements.get("w-breadcrumbs")||customElements.define("w-breadcrumbs",ce);var He=typeof window!="undefined",Lr=!0;if(He){let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=({matches:r})=>Lr=!r;e.addEventListener&&e.addEventListener("change",t),t(e)}var Tr=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},Rr=e=>{let t=Lr?"var(--f-expansion-duration, 0.3s)":"0.01s";e.style.transition=`height ${t}`,e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},$i=(e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()},Ai=e=>()=>{e&&e()},de=(e,t)=>{let r=(()=>{if(!t)return new Promise(o=>{t=o})})(),i=$i(e,t);Tr(e),e.style.height="auto";let s=e.scrollHeight;if(He&&requestAnimationFrame(()=>{e.addEventListener("transitionend",i,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="ease-out",Rr(e),requestAnimationFrame(()=>e.style.height=s+"px")}),r)return r},he=(e,t)=>{let r=(()=>{if(!t)return new Promise(o=>{t=o})})(),i=Ai(t);Tr(e);let s=e.scrollHeight;if(He&&requestAnimationFrame(()=>{e.addEventListener("transitionend",i,{once:!0}),e.style.height=s+"px",e.style.transitionTimingFunction="ease-in",Rr(e),requestAnimationFrame(()=>e.style.height="0px")}),r)return r};var Pr=e=>h`<svg
|
|
172
|
+
role="img"
|
|
173
|
+
aria-label="${e.typeLabel}"
|
|
174
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
175
|
+
width="16"
|
|
176
|
+
height="16"
|
|
177
|
+
fill="none"
|
|
178
|
+
viewBox="0 0 16 16"
|
|
179
|
+
>
|
|
180
|
+
<path
|
|
181
|
+
stroke="currentColor"
|
|
182
|
+
stroke-linecap="round"
|
|
183
|
+
stroke-linejoin="round"
|
|
184
|
+
stroke-width="1.5"
|
|
185
|
+
d="M5.5 9l2 1.5L11 6"
|
|
186
|
+
/>
|
|
187
|
+
</svg>`,Mr=e=>h`
|
|
188
|
+
<svg
|
|
189
|
+
role="img"
|
|
190
|
+
aria-label="${e.typeLabel}"
|
|
191
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
192
|
+
width="16"
|
|
193
|
+
height="16"
|
|
194
|
+
fill="none"
|
|
195
|
+
viewBox="0 0 16 16"
|
|
196
|
+
class="${at({"transition-transform duration-200":!0,"transform-rotate-180":e.isInfo})}"
|
|
197
|
+
>
|
|
198
|
+
<path
|
|
199
|
+
stroke="currentColor"
|
|
200
|
+
stroke-linecap="round"
|
|
201
|
+
stroke-miterlimit="10"
|
|
202
|
+
stroke-width="1.5"
|
|
203
|
+
d="M8 9V4"
|
|
204
|
+
/>
|
|
205
|
+
<circle cx="8" cy="11.8" r=".8" fill="currentColor" />
|
|
206
|
+
</svg>
|
|
207
|
+
`,Dr=()=>h`
|
|
208
|
+
<svg
|
|
209
|
+
role="img"
|
|
210
|
+
aria-label="Lukk"
|
|
211
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
212
|
+
width="16"
|
|
213
|
+
height="16"
|
|
214
|
+
fill="none"
|
|
215
|
+
viewBox="0 0 16 16"
|
|
216
|
+
>
|
|
217
|
+
<path
|
|
218
|
+
fill="currentColor"
|
|
219
|
+
fill-rule="evenodd"
|
|
220
|
+
d="M4.03 2.97a.75.75 0 00-1.06 1.06L6.94 8l-3.97 3.97a.75.75 0 101.06 1.06L8 9.06l3.97 3.97a.75.75 0 101.06-1.06L9.06 8l3.97-3.97a.75.75 0 00-1.06-1.06L8 6.94 4.03 2.97z"
|
|
221
|
+
clipRule="evenodd"
|
|
222
|
+
/>
|
|
223
|
+
</svg>
|
|
224
|
+
`;var Or=e=>{let t={};for(let[r,i]of Object.entries(e))for(let s of r.split(" "))t[s]=i;return at(t)},Lt=class extends v{constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&de(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return Or({[T.toast]:!0,[T.toastPositive]:this.type==="success",[T.toastWarning]:this.type==="warning",[T.toastNegative]:this.type==="error",[T.toastNeutral]:this.type==="info"})}get _iconClasses(){return Or({[T.toastIcon]:!0,[T.toastIconPositive]:this.type=="success",[T.toastIconWarning]:this.type==="warning",[T.toastIconNegative]:this.type==="error",[T.toastIconNeutral]:this.type==="info"})}get _wrapper(){var t,r;return(r=(t=this.renderRoot)==null?void 0:t.querySelector("section"))!=null?r:null}get _success(){return this.type==="success"}get _warning(){return this.type==="warning"}get _error(){return this.type==="error"}get _info(){return this.type==="info"}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._success?"Vellykket":this._error?"Feil":this._warning?"Varsel":"Info"}get _iconMarkup(){return this._success?Pr({typeLabel:this._typeLabel}):Mr({typeLabel:this._typeLabel,isInfo:this._info})}async collapse(){return new Promise(t=>{this._expanded&&this._wrapper?he(this._wrapper,t):t()})}close(){let t=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(t))}render(){return this.text?h` <section class="${T.toastWrapper}" aria-label="${this._typeLabel}">
|
|
225
|
+
<div class="${this._primaryClasses}">
|
|
226
|
+
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
227
|
+
<div role="${this._role}" class="${T.toastContent}">
|
|
228
|
+
<p>${this.text}</p>
|
|
229
|
+
</div>
|
|
230
|
+
${dt(this.canclose===!0,()=>h`<button class="${T.toastClose}" @click="${this.close}">${Dr()}</button>`)}
|
|
231
|
+
</div>
|
|
232
|
+
</section>`:h``}};g(Lt,"styles",[E`
|
|
233
|
+
:host {
|
|
234
|
+
display: block;
|
|
235
|
+
}
|
|
236
|
+
`]),g(Lt,"properties",{id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}});customElements.get("w-toast")||customElements.define("w-toast",Lt);var{I:Ei}=pr;var Br=()=>document.createComment(""),pt=(e,t,r)=>{var i;let s=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let n=s.insertBefore(Br(),o),l=s.insertBefore(Br(),o);r=new Ei(n,l,e,e.options)}else{let n=r._$AB.nextSibling,l=r._$AM,a=l!==e;if(a){let c;(i=r._$AQ)===null||i===void 0||i.call(r,e),r._$AM=e,r._$AP!==void 0&&(c=e._$AU)!==l._$AU&&r._$AP(c)}if(n!==o||a){let c=r._$AA;for(;c!==n;){let f=c.nextSibling;s.insertBefore(c,o),c=f}}}return r},K=(e,t,r=e)=>(e._$AI(t,r),e),Si={},Hr=(e,t=Si)=>e._$AH=t,Nr=e=>e._$AH,ue=e=>{var t;(t=e._$AP)===null||t===void 0||t.call(e,!1,!0);let r=e._$AA,i=e._$AB.nextSibling;for(;r!==i;){let s=r.nextSibling;r.remove(),r=s}};var Ir=(e,t,r)=>{let i=new Map;for(let s=t;s<=r;s++)i.set(e[s],s);return i},pe=lt(class extends Z{constructor(e){if(super(e),e.type!==nt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let s=[],o=[],n=0;for(let l of e)s[n]=i?i(l,n):n,o[n]=r(l,n),n++;return{values:o,keys:s}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){var s;let o=Nr(e),{values:n,keys:l}=this.ht(t,r,i);if(!Array.isArray(o))return this.ut=l,n;let a=(s=this.ut)!==null&&s!==void 0?s:this.ut=[],c=[],f,d,u=0,p=o.length-1,m=0,b=n.length-1;for(;u<=p&&m<=b;)if(o[u]===null)u++;else if(o[p]===null)p--;else if(a[u]===l[m])c[m]=K(o[u],n[m]),u++,m++;else if(a[p]===l[b])c[b]=K(o[p],n[b]),p--,b--;else if(a[u]===l[b])c[b]=K(o[u],n[b]),pt(e,c[b+1],o[u]),u++,b--;else if(a[p]===l[m])c[m]=K(o[p],n[m]),pt(e,o[u],o[p]),p--,m++;else if(f===void 0&&(f=Ir(l,m,b),d=Ir(a,u,p)),f.has(a[u]))if(f.has(a[p])){let y=d.get(l[m]),_=y!==void 0?o[y]:null;if(_===null){let S=pt(e,o[u]);K(S,n[m]),c[m]=S}else c[m]=K(_,n[m]),pt(e,o[u],_),o[y]=null;m++}else ue(o[p]),p--;else ue(o[u]),u++;for(;m<=b;){let y=pt(e,c[b+1]);K(y,n[m]),c[m++]=y}for(;u<=p;){let y=o[u++];y!==null&&ue(y)}return this.ut=l,Hr(e,c),M}});var Tt=class extends v{constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{let t=[],r=[];for(let s of this._toasts)Date.now()<=s[1].duration?t.push(s):r.push(s);let i=[];for(let[s]of r){let o=this.renderRoot.querySelector(`#${s}`);i.push(o.collapse())}Promise.all(i).then(()=>{t.length!=this._toasts.size&&(this._toasts=new Map(t))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let t=document.querySelector("w-toast-container");return t||(t=document.createElement("w-toast-container"),document.body.appendChild(t)),t}get _toastsArray(){return Array.from(this._toasts).map(([,t])=>t)}get(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(t)}set(t){if(!t.id)throw new Error('invalid or undefined "id" on toast object');let r=this._toasts.set(t.id,P(A({},t),{duration:Date.now()+(t.duration||5e3)}));return this._toasts=new Map(Array.from(this._toasts)),r}async del(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');let r=this.renderRoot.querySelector(`#${t}`);if(!this._toasts.has(t))return!1;await r.collapse();let i=this._toasts.delete(t);return this._toasts=new Map(Array.from(this._toasts)),i}render(){return h`
|
|
237
|
+
<aside class="${Oe.toasterContainer}">
|
|
238
|
+
<div class="${Oe.toaster}" id="w-toast-container-list">
|
|
239
|
+
${pe(this._toastsArray,t=>t.id,t=>h` <w-toast
|
|
240
|
+
class="w-full"
|
|
241
|
+
id="${t.id}"
|
|
242
|
+
type="${t.type}"
|
|
243
|
+
text="${t.text}"
|
|
244
|
+
?canclose=${t.canclose}
|
|
245
|
+
@close=${()=>this.del(t.id)}
|
|
246
|
+
>
|
|
247
|
+
</w-toast>`)}
|
|
248
|
+
</div>
|
|
249
|
+
</aside>
|
|
250
|
+
`}};g(Tt,"styles",[E`
|
|
251
|
+
:host {
|
|
252
|
+
display: block;
|
|
253
|
+
}
|
|
254
|
+
`]),g(Tt,"properties",{_toasts:{state:!0}});customElements.get("w-toast-container")||customElements.define("w-toast-container",Tt);function Fo(e,t){if(!tt)return;let r=customElements.get("w-toast-container").init(),i=A({id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success"},t);return r.set(i),i}function Zo(e){return tt?customElements.get("w-toast-container").init().del(e):void 0}function Go(e,t){if(!tt)return;let r=customElements.get("w-toast-container").init();return r.set(A(A({},r.get(e)),t)),r.get(e)}var ft=class extends v{constructor(){super(),this._messages=[],this.interval=3e4,this._hiddenMessageIds=[],this.url=tt?window.location.href:""}async connectedCallback(){if(super.connectedCallback(),!this.api){console.error('Broadcast "api" attribute invalid or undefined');return}tt&&(await this._fetchMessage(),setInterval(()=>this._fetchMessage(),this.interval))}async _fetchMessage(){let t=`${this.api}?path=${this.url}`;try{let r=await(await fetch(t)).json();this._messages=r.length?r:[]}catch(r){console.error(`failed to fetch broadcasts from given url (${t})`,r)}}async _del(t){await this.renderRoot.querySelector(`#broadcast-${t}`).collapse(),this._hiddenMessageIds=[...new Set([...this._hiddenMessageIds,t])]}render(){let t=this._messages.filter(r=>!this._hiddenMessageIds.includes(r.id));return h`
|
|
255
|
+
<aside class=${`${t.length===0?"hidden":"mb-16"}`}>
|
|
256
|
+
${pe(t,({id:r})=>`broadcast-${r}`,({id:r,message:i})=>h`<w-toast
|
|
257
|
+
class="w-full"
|
|
258
|
+
id="broadcast-${r}"
|
|
259
|
+
type="warning"
|
|
260
|
+
text="${i}"
|
|
261
|
+
canclose
|
|
262
|
+
@close=${()=>this._del(r)}
|
|
263
|
+
>
|
|
264
|
+
</w-toast>`)}
|
|
265
|
+
</aside>
|
|
266
|
+
`}};g(ft,"properties",{_messages:{state:!0,hasChanged(t,r){if(!r||r.length===0)return!0;let i=t.map(({id:o})=>o).sort(),s=r.map(({id:o})=>o).sort();return JSON.stringify(i)!==JSON.stringify(s)}},_hiddenMessageIds:{state:!0,type:Array},interval:{type:Number,attribute:!0,reflect:!0},url:{type:String,attribute:!0,reflect:!0},api:{type:String,attribute:!0,reflect:!0}}),g(ft,"styles",[x]);customElements.get("w-broadcast")||customElements.define("w-broadcast",ft);function Pt(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function Mt(e){return["top","bottom"].includes(Pt(e))?"x":"y"}function Ie(e){return e==="y"?"height":"width"}function Ur(e,t,r){let{reference:i,floating:s}=e,o=i.x+i.width/2-s.width/2,n=i.y+i.height/2-s.height/2,l=Mt(t),a=Ie(l),c=i[a]/2-s[a]/2,f=l==="x",d;switch(Pt(t)){case"top":d={x:o,y:i.y-s.height};break;case"bottom":d={x:o,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:n};break;case"left":d={x:i.x-s.width,y:n};break;default:d={x:i.x,y:i.y}}switch(me(t)){case"start":d[l]-=c*(r&&f?-1:1);break;case"end":d[l]+=c*(r&&f?-1:1)}return d}var jr=async(e,t,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,l=await(n.isRTL==null?void 0:n.isRTL(t)),a=await n.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=Ur(a,i,l),d=i,u={},p=0;for(let m=0;m<o.length;m++){let{name:b,fn:y}=o[m],{x:_,y:S,data:k,reset:C}=await y({x:c,y:f,initialPlacement:i,placement:d,strategy:s,middlewareData:u,rects:a,platform:n,elements:{reference:e,floating:t}});c=_!=null?_:c,f=S!=null?S:f,u=P(A({},u),{[b]:A(A({},u[b]),k)}),C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(a=C.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=Ur(a,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:u}};function qr(e){return typeof e!="number"?function(t){return A({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function Rt(e){return P(A({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function Ue(e,t){var r;t===void 0&&(t={});let{x:i,y:s,platform:o,rects:n,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:p=0}=t,m=qr(p),b=l[u?d==="floating"?"reference":"floating":d],y=Rt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:a})),_=Rt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?P(A({},n.floating),{x:i,y:s}):n.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),strategy:a}):n[d]);return{top:y.top-_.top+m.top,bottom:_.bottom-y.bottom+m.bottom,left:y.left-_.left+m.left,right:_.right-y.right+m.right}}var Ci=Math.min,ki=Math.max;function Ne(e,t,r){return ki(e,Ci(t,r))}var Ve=e=>({name:"arrow",options:e,async fn(t){let{element:r,padding:i=0}=e!=null?e:{},{x:s,y:o,placement:n,rects:l,platform:a}=t;if(r==null)return{};let c=qr(i),f={x:s,y:o},d=Mt(n),u=me(n),p=Ie(d),m=await a.getDimensions(r),b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",_=l.reference[p]+l.reference[d]-f[d]-l.floating[p],S=f[d]-l.reference[d],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(r)),C=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0;C===0&&(C=l.floating[p]);let zt=_/2-S/2,rt=c[b],gt=C-m[p]-c[y],H=C/2-m[p]/2+zt,R=Ne(rt,H,gt),N=(u==="start"?c[b]:c[y])>0&&H!==R&&l.reference[p]<=l.floating[p];return{[d]:f[d]-(N?H<rt?rt-H:gt-H:0),data:{[d]:R,centerOffset:H-R}}}}),Li={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,t=>Li[t])}function Ti(e,t,r){r===void 0&&(r=!1);let i=me(e),s=Mt(e),o=Ie(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(n=fe(n)),{main:n,cross:fe(n)}}var Ri={start:"end",end:"start"};function Vr(e){return e.replace(/start|end/g,t=>Ri[t])}var Pi=["top","right","bottom","left"],on=Pi.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);var je=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;let{placement:i,middlewareData:s,rects:o,initialPlacement:n,platform:l,elements:a}=t,H=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:u="bestFit",flipAlignment:p=!0}=H,m=Ae(H,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),b=Pt(i),y=d||(b===n||!p?[fe(n)]:function(R){let N=fe(R);return[Vr(R),N,Vr(N)]}(n)),_=[n,...y],S=await Ue(t,m),k=[],C=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&k.push(S[b]),f){let{main:R,cross:N}=Ti(i,o,await(l.isRTL==null?void 0:l.isRTL(a.floating)));k.push(S[R],S[N])}if(C=[...C,{placement:i,overflows:k}],!k.every(R=>R<=0)){var zt,rt;let R=((zt=(rt=s.flip)==null?void 0:rt.index)!=null?zt:0)+1,N=_[R];if(N)return{data:{index:R,overflows:C},reset:{placement:N}};let Ft="bottom";switch(u){case"bestFit":{var gt;let Ge=(gt=C.map(Zt=>[Zt,Zt.overflows.filter(bt=>bt>0).reduce((bt,ci)=>bt+ci,0)]).sort((Zt,bt)=>Zt[1]-bt[1])[0])==null?void 0:gt[0].placement;Ge&&(Ft=Ge);break}case"initialPlacement":Ft=n}if(i!==Ft)return{reset:{placement:Ft}}}return{}}}};var qe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:i}=t,s=await async function(o,n){let{placement:l,platform:a,elements:c}=o,f=await(a.isRTL==null?void 0:a.isRTL(c.floating)),d=Pt(l),u=me(l),p=Mt(l)==="x",m=["left","top"].includes(d)?-1:1,b=f&&p?-1:1,y=typeof n=="function"?n(o):n,{mainAxis:_,crossAxis:S,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:A({mainAxis:0,crossAxis:0,alignmentAxis:null},y);return u&&typeof k=="number"&&(S=u==="end"?-1*k:k),p?{x:S*b,y:_*m}:{x:_*m,y:S*b}}(t,e);return{x:r+s.x,y:i+s.y,data:s}}}};function Mi(e){return e==="x"?"y":"x"}var ze=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:s}=t,y=e,{mainAxis:o=!0,crossAxis:n=!1,limiter:l={fn:_=>{let{x:S,y:k}=_;return{x:S,y:k}}}}=y,a=Ae(y,["mainAxis","crossAxis","limiter"]),c={x:r,y:i},f=await Ue(t,a),d=Mt(Pt(s)),u=Mi(d),p=c[d],m=c[u];if(o){let _=d==="y"?"bottom":"right";p=Ne(p+f[d==="y"?"top":"left"],p,p-f[_])}if(n){let _=u==="y"?"bottom":"right";m=Ne(m+f[u==="y"?"top":"left"],m,m-f[_])}let b=l.fn(P(A({},t),{[d]:p,[u]:m}));return P(A({},b),{data:{x:b.x-r,y:b.y-i}})}}};function Wr(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(e==null)return window;if(!Wr(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ot(e){return q(e).getComputedStyle(e)}function j(e){return Wr(e)?"":e?(e.nodeName||"").toLowerCase():""}function Jr(){let e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function B(e){return e instanceof q(e).HTMLElement}function mt(e){return e instanceof q(e).Element}function Ze(e){return typeof ShadowRoot=="undefined"?!1:e instanceof q(e).ShadowRoot||e instanceof ShadowRoot}function be(e){let{overflow:t,overflowX:r,overflowY:i}=Ot(e);return/auto|scroll|overlay|hidden/.test(t+i+r)}function Di(e){return["table","td","th"].includes(j(e))}function zr(e){let t=/firefox/i.test(Jr()),r=Ot(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"}function Xr(){return!/^((?!chrome|android).)*safari/i.test(Jr())}var Fr=Math.min,Dt=Math.max,ge=Math.round;function et(e,t,r){var i,s,o,n;t===void 0&&(t=!1),r===void 0&&(r=!1);let l=e.getBoundingClientRect(),a=1,c=1;t&&B(e)&&(a=e.offsetWidth>0&&ge(l.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ge(l.height)/e.offsetHeight||1);let f=mt(e)?q(e):window,d=!Xr()&&r,u=(l.left+(d&&(i=(s=f.visualViewport)==null?void 0:s.offsetLeft)!=null?i:0))/a,p=(l.top+(d&&(o=(n=f.visualViewport)==null?void 0:n.offsetTop)!=null?o:0))/c,m=l.width/a,b=l.height/c;return{width:m,height:b,top:p,right:u+m,bottom:p+b,left:u,x:u,y:p}}function W(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ve(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yr(e){return et(W(e)).left+ve(e).scrollLeft}function Oi(e,t,r){let i=B(t),s=W(t),o=et(e,i&&function(a){let c=et(a);return ge(c.width)!==a.offsetWidth||ge(c.height)!==a.offsetHeight}(t),r==="fixed"),n={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(i||!i&&r!=="fixed")if((j(t)!=="body"||be(s))&&(n=ve(t)),B(t)){let a=et(t,!0);l.x=a.x+t.clientLeft,l.y=a.y+t.clientTop}else s&&(l.x=Yr(s));return{x:o.left+n.scrollLeft-l.x,y:o.top+n.scrollTop-l.y,width:o.width,height:o.height}}function Qr(e){return j(e)==="html"?e:e.assignedSlot||e.parentNode||(Ze(e)?e.host:null)||W(e)}function Zr(e){return B(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Fe(e){let t=q(e),r=Zr(e);for(;r&&Di(r)&&getComputedStyle(r).position==="static";)r=Zr(r);return r&&(j(r)==="html"||j(r)==="body"&&getComputedStyle(r).position==="static"&&!zr(r))?t:r||function(i){let s=Qr(i);for(Ze(s)&&(s=s.host);B(s)&&!["html","body"].includes(j(s));){if(zr(s))return s;s=s.parentNode}return null}(e)||t}function Gr(e){if(B(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=et(e);return{width:t.width,height:t.height}}function ti(e){let t=Qr(e);return["html","body","#document"].includes(j(t))?e.ownerDocument.body:B(t)&&be(t)?t:ti(t)}function ei(e,t){var r;t===void 0&&(t=[]);let i=ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=q(i),n=s?[o].concat(o.visualViewport||[],be(i)?i:[]):i,l=t.concat(n);return s?l:l.concat(ei(n))}function Kr(e,t,r){return t==="viewport"?Rt(function(i,s){let o=q(i),n=W(i),l=o.visualViewport,a=n.clientWidth,c=n.clientHeight,f=0,d=0;if(l){a=l.width,c=l.height;let u=Xr();(u||!u&&s==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:a,height:c,x:f,y:d}}(e,r)):mt(t)?function(i,s){let o=et(i,!1,s==="fixed"),n=o.top+i.clientTop,l=o.left+i.clientLeft;return{top:n,left:l,x:l,y:n,right:l+i.clientWidth,bottom:n+i.clientHeight,width:i.clientWidth,height:i.clientHeight}}(t,r):Rt(function(i){var s;let o=W(i),n=ve(i),l=(s=i.ownerDocument)==null?void 0:s.body,a=Dt(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=Dt(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-n.scrollLeft+Yr(i),d=-n.scrollTop;return Ot(l||o).direction==="rtl"&&(f+=Dt(o.clientWidth,l?l.clientWidth:0)-a),{width:a,height:c,x:f,y:d}}(W(e)))}function Bi(e){let t=ei(e),r=["absolute","fixed"].includes(Ot(e).position)&&B(e)?Fe(e):e;return mt(r)?t.filter(i=>mt(i)&&function(s,o){let n=o.getRootNode==null?void 0:o.getRootNode();if(s.contains(o))return!0;if(n&&Ze(n)){let l=o;do{if(l&&s===l)return!0;l=l.parentNode||l.host}while(l)}return!1}(i,r)&&j(i)!=="body"):[]}var Hi={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:s}=e,o=[...r==="clippingAncestors"?Bi(t):[].concat(r),i],n=o[0],l=o.reduce((a,c)=>{let f=Kr(t,c,s);return a.top=Dt(f.top,a.top),a.right=Fr(f.right,a.right),a.bottom=Fr(f.bottom,a.bottom),a.left=Dt(f.left,a.left),a},Kr(t,n,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:i}=e,s=B(r),o=W(r);if(r===o)return t;let n={scrollLeft:0,scrollTop:0},l={x:0,y:0};if((s||!s&&i!=="fixed")&&((j(r)!=="body"||be(o))&&(n=ve(r)),B(r))){let a=et(r,!0);l.x=a.x+r.clientLeft,l.y=a.y+r.clientTop}return P(A({},t),{x:t.x-n.scrollLeft+l.x,y:t.y-n.scrollTop+l.y})},isElement:mt,getDimensions:Gr,getOffsetParent:Fe,getDocumentElement:W,getElementRects:e=>{let{reference:t,floating:r,strategy:i}=e;return{reference:Oi(t,Fe(r),i),floating:P(A({},Gr(r)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ot(e).direction==="rtl"};var ri=(e,t,r)=>jr(e,t,A({platform:Hi},r));var Bt="top",Ht="bottom",ye="left",we="right",xe={[Bt]:Ht,[Ht]:Bt,[ye]:we,[we]:ye},si={[Bt]:"\u2191",[Ht]:"\u2193",[ye]:"\u2190",[we]:"\u2192"};var oi={[ye]:-45,[Bt]:45,[we]:135,[Ht]:-135},ii="calc(50% - 7px)",Ni=e=>[Bt,Ht].includes(e);function Ii({actualDirection:e,directionName:t,arrowEl:r}){if(!r)return;e=t;let i=Ni(t);r.style.left=i?ii:"",r.style.top=i?"":ii}async function ni(e){var s,o;if(!e.isShowing)return;if(await((s=e==null?void 0:e.waitForDOM)==null?void 0:s.call(e)),e.isCallout)return Ii(e);let t=await ri(e.targetEl,e.attentionEl,{placement:e.directionName,middleware:[je(),qe(8),ze({padding:16}),Ve({element:e.noArrow?void 0:e.arrowEl})]});e.actualDirection=t.placement,Object.assign(((o=e.attentionEl)==null?void 0:o.style)||{},{left:"0",top:"0",transform:`translate3d(${Math.round(t.x)}px, ${Math.round(t.y)}px, 0)`});let{x:r,y:i}=t.middlewareData.arrow;e.arrowEl&&(e.arrowEl.style.left=r?r+"px":"",e.arrowEl.style.top=i?i+"px":"")}var Nt=class extends G(v){constructor(){super(),this.show=!1,this.tooltip=!1,this.callout=!1,this.popover=!1,this.noArrow=!1}connectedCallback(){if(super.connectedCallback(),!this.placement||!Object.keys(xe).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
|
|
267
|
+
${JSON.stringify(Object.keys(xe))}`);setTimeout(()=>this.requestUpdate(),0)}get _actualDirection(){return this.placement}set _actualDirection(t){this.placement=t}get _arrowDirection(){return xe[this.placement]}updated(){this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"block":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this.renderRoot.querySelector("#arrow"),attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow},ni(this.attentionState)}setAriaLabels(){if(this._targetEl&&!this._targetEl.getAttribute("aria-describedby")){let t=this._messageEl.id||(this._messageEl.id=xr());this._messageEl.setAttribute("role","tooltip"),this._targetEl.setAttribute("aria-describedby",t)}}firstUpdated(){this.setAriaLabels(),this.callout&&(this._attentionEl.style.position="relative")}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){return this.renderRoot.querySelector("slot[name='target']").assignedNodes()[0]}get _messageEl(){return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0]}get _wrapperClasses(){return De({[V.base]:!0,[V.tooltip]:this.tooltip,[V.callout]:this.callout,[V.popover]:this.popover})}get _arrowClasses(){return De({[V.arrowBase]:!0,["-top-8"]:this._arrowDirection==="top",["-right-8"]:this._arrowDirection==="right",["-bottom-8"]:this._arrowDirection==="bottom",["-left-8"]:this._arrowDirection==="left",[V.arrowTooltip]:this.tooltip,[V.arrowCallout]:this.callout,[V.arrowPopover]:this.popover})}get _arrowHtml(){return this.noArrow?"":h`<div
|
|
268
|
+
id="arrow"
|
|
269
|
+
role="img"
|
|
270
|
+
aria-label=${si[this._arrowDirection]}
|
|
271
|
+
class="${this._arrowClasses}"
|
|
272
|
+
style="transform:rotate(${oi[this._arrowDirection]}deg);
|
|
273
|
+
margin-${this._arrowDirection.charAt(0).toLowerCase()+this._arrowDirection.slice(1)}:-0.5px;"
|
|
274
|
+
/>`}render(){return h`
|
|
275
|
+
<div class=${w(this.className?this.className:void 0)}>
|
|
276
|
+
${this.placement==="right"||this.placement==="bottom"?h`
|
|
277
|
+
<slot name="target"></slot>
|
|
278
|
+
<div id="attention" class="${this._wrapperClasses}">
|
|
279
|
+
<div>
|
|
280
|
+
${this._arrowHtml}
|
|
281
|
+
<slot name="message"></slot>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
`:h`
|
|
285
|
+
<div id="attention" class="${this._wrapperClasses}">
|
|
286
|
+
<div>
|
|
287
|
+
<slot name="message"></slot>
|
|
288
|
+
${this._arrowHtml}
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
<slot name="target"></slot>
|
|
292
|
+
`}
|
|
293
|
+
</div>
|
|
294
|
+
`}};g(Nt,"properties",{show:{type:Boolean,reflect:!0},placement:{type:String},tooltip:{type:Boolean,reflect:!0},callout:{type:Boolean,reflect:!0},popover:{type:Boolean,reflect:!0},noArrow:{type:Boolean,reflect:!0}}),g(Nt,"styles",[x,E`
|
|
295
|
+
#attention {
|
|
296
|
+
position: absolute;
|
|
297
|
+
z-index: 50;
|
|
298
|
+
visibility: var(--attention-visibility);
|
|
299
|
+
display: var(--attention-display);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
#arrow {
|
|
303
|
+
border-top-left-radius: 4px;
|
|
304
|
+
z-index: 1;
|
|
305
|
+
}
|
|
306
|
+
`]);customElements.get("w-attention")||customElements.define("w-attention",Nt);var It=class extends v{constructor(){super(),this.type="text"}get _outerWrapperStyles(){return L({"has-suffix":this._hasSuffix,"has-prefix":this._hasPrefix})}get _innerWrapperStyles(){return L({"input mb-0":!0,"input--is-invalid":this.invalid,"input--is-disabled":this.disabled,"input--is-read-only":this.readOnly})}get _label(){if(this.label)return h`<label for="${this._id}">${this.label}</label>`}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}handler(t){let{name:r,value:i}=t.target,s=new CustomEvent(t.type,{detail:{name:r,value:i,target:t.target}});this.dispatchEvent(s)}prefixSlotChange(t){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(t){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}render(){return h`
|
|
307
|
+
${this._fabricStylesheet}
|
|
308
|
+
<div class="${this._outerWrapperStyles}">
|
|
309
|
+
<div class="${this._innerWrapperStyles}">
|
|
310
|
+
${this._label}
|
|
311
|
+
<div class="relative">
|
|
312
|
+
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
313
|
+
<input
|
|
314
|
+
type="${this.type}"
|
|
315
|
+
min="${w(this.min)}"
|
|
316
|
+
max="${w(this.max)}"
|
|
317
|
+
size="${w(this.size)}"
|
|
318
|
+
minlength="${w(this.minLength)}"
|
|
319
|
+
maxlength="${w(this.maxLength)}"
|
|
320
|
+
name="${w(this.name)}"
|
|
321
|
+
pattern="${w(this.pattern)}"
|
|
322
|
+
placeholder="${w(this.placeholder)}"
|
|
323
|
+
value="${w(this.value)}"
|
|
324
|
+
aria-describedby="${w(this._helpId)}"
|
|
325
|
+
aria-errormessage="${w(this._error)}"
|
|
326
|
+
aria-invalid="${w(this.invalid)}"
|
|
327
|
+
id="${this._id}"
|
|
328
|
+
?disabled="${this.disabled}"
|
|
329
|
+
?readonly="${this.readOnly}"
|
|
330
|
+
?required="${this.required}"
|
|
331
|
+
@blur="${this.handler}"
|
|
332
|
+
@change="${this.handler}"
|
|
333
|
+
@focus="${this.handler}"
|
|
334
|
+
/>
|
|
335
|
+
<slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
|
|
336
|
+
</div>
|
|
337
|
+
${this.helpText&&h`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
`}};g(It,"properties",{disabled:{type:Boolean},invalid:{type:Boolean},id:{type:String},label:{type:String},helpText:{type:String,attribute:"help-text"},size:{type:String},max:{type:Number},min:{type:Number},minLength:{type:Number,attribute:"min-length"},maxLength:{type:Number,attribute:"max-length"},name:{type:String},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,attribute:"read-only"},required:{type:Boolean},type:{type:String},value:{type:String},_hasPrefix:{state:!0},_hasSuffix:{state:!0}}),g(It,"styles",[x,E`
|
|
341
|
+
:host {
|
|
342
|
+
display: block;
|
|
343
|
+
}
|
|
344
|
+
::slotted(:last-child) {
|
|
345
|
+
margin-bottom: 0px !important;
|
|
346
|
+
}
|
|
347
|
+
`]);customElements.get("w-textfield")||customElements.define("w-textfield",It);var _e=class extends v{render(){return h`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`}};customElements.get("f-icon-chevron-down16",_e)||customElements.define("f-icon-chevron-down16",_e);var Ut=class extends G(v){constructor(){super(),this.expanded=!1,this.animated=!1,this.info=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this._hasTitle=!0}firstUpdated(){this._hasTitle=!!this.title||this.renderRoot.querySelector("slot[name='title']").assignedNodes().length>0}get _expandableSlot(){return h`<div
|
|
348
|
+
class=${L({[this.contentClass||""]:!0,[D.box+(this._hasTitle?" pt-0":"")]:this.box})}
|
|
349
|
+
>
|
|
350
|
+
<slot></slot>
|
|
351
|
+
</div>`}render(){return h` <div
|
|
352
|
+
class=${L({"bg-aqua-50":this.info,["py-0 px-0 "+D.box]:this.box,[D.bleed]:this.bleed})}
|
|
353
|
+
>
|
|
354
|
+
${this._hasTitle?h`<w-unstyled-heading level=${this.headingLevel}>
|
|
355
|
+
<button
|
|
356
|
+
type="button"
|
|
357
|
+
aria-expanded="${this.expanded}"
|
|
358
|
+
class=${L({[this.buttonClass||""]:!0,[Be+" hover:underline focus:underline"]:!0,["w-full text-left relative "+D.box]:this.box,"hover:text-aqua-700 active:text-aqua-800":this.info})}
|
|
359
|
+
@click=${()=>this.expanded=!this.expanded}
|
|
360
|
+
>
|
|
361
|
+
<div class="flex justify-between align-center">
|
|
362
|
+
${this.title?h`<span class="h4">${this.title}</span>`:h`<slot name="title"></slot>`}
|
|
363
|
+
${this.noChevron?"":h`<div
|
|
364
|
+
class=${L({"self-center transform transition-transform":!0,"-rotate-180":this.expanded,"relative left-8":!this.box,"box-chevron":this.box})}
|
|
365
|
+
>
|
|
366
|
+
<w-icon-chevron-down16></w-icon-chevron-down16>
|
|
367
|
+
</div>`}
|
|
368
|
+
</div>
|
|
369
|
+
</button>
|
|
370
|
+
</w-unstyled-heading>`:""}
|
|
371
|
+
${this.animated?h`<w-expand-transition ?show=${this.expanded}>
|
|
372
|
+
${this._expandableSlot}
|
|
373
|
+
</w-expand-transition>`:h`<div
|
|
374
|
+
class=${L({"overflow-hidden":!0,"h-0 invisible":!this.expanded})}
|
|
375
|
+
aria-hidden=${w(this.expanded?void 0:!0)}
|
|
376
|
+
>
|
|
377
|
+
${this._expandableSlot}
|
|
378
|
+
</div>`}
|
|
379
|
+
</div>`}};g(Ut,"properties",{expanded:{type:Boolean,reflect:!0},title:{type:String},info:{type:Boolean},box:{type:Boolean},bleed:{type:Boolean},buttonClass:{type:String},contentClass:{type:String},noChevron:{type:Boolean},animated:{type:Boolean},headingLevel:{type:Number},_hasTitle:{type:Boolean,state:!0}}),g(Ut,"styles",[x,E`
|
|
380
|
+
:host {
|
|
381
|
+
display: block;
|
|
382
|
+
}
|
|
383
|
+
::slotted(:last-child) {
|
|
384
|
+
margin-bottom: 0px !important;
|
|
385
|
+
}
|
|
386
|
+
`]);customElements.get("w-expandable")||customElements.define("w-expandable",Ut);var li=h`
|
|
387
|
+
<svg
|
|
388
|
+
role="img"
|
|
389
|
+
aria-label="X"
|
|
390
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
391
|
+
width="16"
|
|
392
|
+
height="16"
|
|
393
|
+
fill="none"
|
|
394
|
+
viewBox="0 0 16 16"
|
|
395
|
+
>
|
|
396
|
+
<path
|
|
397
|
+
fill="currentColor"
|
|
398
|
+
fillRule="evenodd"
|
|
399
|
+
d="M4.03 2.97a.75.75 0 00-1.06 1.06L6.94 8l-3.97 3.97a.75.75 0 101.06 1.06L8 9.06l3.97 3.97a.75.75 0 101.06-1.06L9.06 8l3.97-3.97a.75.75 0 00-1.06-1.06L8 6.94 4.03 2.97z"
|
|
400
|
+
clipRule="evenodd"
|
|
401
|
+
/>
|
|
402
|
+
</svg>
|
|
403
|
+
`,ai=h`
|
|
404
|
+
<svg
|
|
405
|
+
role="img"
|
|
406
|
+
aria-label="Forstørrelsesglass"
|
|
407
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
408
|
+
width="16"
|
|
409
|
+
height="16"
|
|
410
|
+
fill="none"
|
|
411
|
+
viewBox="0 0 16 16"
|
|
412
|
+
>
|
|
413
|
+
<g
|
|
414
|
+
stroke="currentColor"
|
|
415
|
+
strokeLinecap="round"
|
|
416
|
+
strokeLinejoin="round"
|
|
417
|
+
strokeWidth="1.5"
|
|
418
|
+
clipPath="url(#nra-cclip0)"
|
|
419
|
+
>
|
|
420
|
+
<path d="M8.796 11.803A5.684 5.684 0 104.349 1.341a5.684 5.684 0 004.447 10.462zM11 11l4 4" />
|
|
421
|
+
</g>
|
|
422
|
+
<defs>
|
|
423
|
+
<clipPath id="nra-cclip0">
|
|
424
|
+
<path fill="currentColor" d="M0 0h16v16H0z" />
|
|
425
|
+
</clipPath>
|
|
426
|
+
</defs>
|
|
427
|
+
</svg>
|
|
428
|
+
`;var Vt=class extends v{get _classBase(){return this.slot==="suffix"?Ar:Er}get _classes(){return L({[this._classBase.wrapper]:!0,[this._classBase.wrapperWithLabel]:this.label,[this._classBase.wrapperWithIcon]:!this.label})}get _searchButton(){return h`
|
|
429
|
+
<button aria-label="${w(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
430
|
+
${ai}
|
|
431
|
+
</button>
|
|
432
|
+
`}get _clearButton(){return h`
|
|
433
|
+
<button aria-label="${w(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
434
|
+
${li}
|
|
435
|
+
</button>
|
|
436
|
+
`}get _text(){return h`
|
|
437
|
+
<div class="${this._classes}">
|
|
438
|
+
<span class="${this._classBase.label}">${this.label}</span>
|
|
439
|
+
</div>
|
|
440
|
+
`}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return h`${this._markup}`}};g(Vt,"styles",[x]),g(Vt,"properties",{ariaLabel:{type:String,attribute:"aria-label"},clear:{type:Boolean},search:{type:Boolean},label:{type:String}});customElements.get("w-affix")||customElements.define("w-affix",Vt);var jt=class extends v{constructor(){super(),this.show=!1,this._mounted=!1,this._removeElement=!1}willUpdate(){this._mounted||(this._removeElement=!this.show),this.show&&this._removeElement&&(this._removeElement=!1)}updated(){if(this._wrapper){if(!this._mounted){this._mounted=!0;return}this.show&&de(this._wrapper),!this.show&&!this._removeElement&&he(this._wrapper,()=>this._removeElement=!0)}}get _wrapper(){return this!=null?this:null}render(){return h`<div aria-hidden=${w(this.show?void 0:"true")}>
|
|
441
|
+
${this._removeElement?h``:h`<slot></slot>`}
|
|
442
|
+
</div>`}};g(jt,"properties",{show:{type:Boolean,reflect:!0},_removeElement:{type:Boolean,state:!0}}),g(jt,"styles",[x,E`
|
|
443
|
+
:host {
|
|
444
|
+
display: block;
|
|
445
|
+
}
|
|
446
|
+
`]);customElements.get("w-expand-transition")||customElements.define("w-expand-transition",jt);var qt=class extends v{get _markup(){return`<h${this.level}
|
|
447
|
+
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
448
|
+
>
|
|
449
|
+
<slot></slot>
|
|
450
|
+
</h${this.level}>
|
|
451
|
+
`}render(){return this.level?oe(this._markup):h`<slot></slot>`}};g(qt,"properties",{level:{type:Number}}),g(qt,"styles",[x]);customElements.get("w-unstyled-heading")||customElements.define("w-unstyled-heading",qt);export{jt as ExpandTransition,qt as UnstyledHeading,Vt as WarpAffix,$t as WarpAlert,Nt as WarpAttention,kt as WarpBox,ce as WarpBreadcrumbs,ft as WarpBroadcast,ct as WarpButton,Et as WarpCard,Ut as WarpExpandable,Ct as WarpSelect,It as WarpTextField,Lt as WarpToast,Tt as WarpToastContainer,Zo as removeToast,Fo as toast,Go as updateToast};
|
|
452
|
+
/*! Bundled license information:
|
|
453
|
+
|
|
454
|
+
@lit/reactive-element/css-tag.js:
|
|
455
|
+
(**
|
|
456
|
+
* @license
|
|
457
|
+
* Copyright 2019 Google LLC
|
|
458
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
459
|
+
*)
|
|
460
|
+
|
|
461
|
+
@lit/reactive-element/reactive-element.js:
|
|
462
|
+
(**
|
|
463
|
+
* @license
|
|
464
|
+
* Copyright 2017 Google LLC
|
|
465
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
466
|
+
*)
|
|
467
|
+
|
|
468
|
+
lit-html/lit-html.js:
|
|
469
|
+
(**
|
|
470
|
+
* @license
|
|
471
|
+
* Copyright 2017 Google LLC
|
|
472
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
473
|
+
*)
|
|
474
|
+
|
|
475
|
+
lit-element/lit-element.js:
|
|
476
|
+
(**
|
|
477
|
+
* @license
|
|
478
|
+
* Copyright 2017 Google LLC
|
|
479
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
480
|
+
*)
|
|
481
|
+
|
|
482
|
+
lit-html/is-server.js:
|
|
483
|
+
(**
|
|
484
|
+
* @license
|
|
485
|
+
* Copyright 2022 Google LLC
|
|
486
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
487
|
+
*)
|
|
488
|
+
|
|
489
|
+
lit-html/directive.js:
|
|
490
|
+
(**
|
|
491
|
+
* @license
|
|
492
|
+
* Copyright 2017 Google LLC
|
|
493
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
494
|
+
*)
|
|
495
|
+
|
|
496
|
+
lit-html/directives/class-map.js:
|
|
497
|
+
(**
|
|
498
|
+
* @license
|
|
499
|
+
* Copyright 2018 Google LLC
|
|
500
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
501
|
+
*)
|
|
502
|
+
|
|
503
|
+
lit-html/directives/if-defined.js:
|
|
504
|
+
(**
|
|
505
|
+
* @license
|
|
506
|
+
* Copyright 2018 Google LLC
|
|
507
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
508
|
+
*)
|
|
509
|
+
|
|
510
|
+
lit-html/directives/when.js:
|
|
511
|
+
(**
|
|
512
|
+
* @license
|
|
513
|
+
* Copyright 2021 Google LLC
|
|
514
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
515
|
+
*)
|
|
516
|
+
|
|
517
|
+
lit-html/directives/unsafe-html.js:
|
|
518
|
+
(**
|
|
519
|
+
* @license
|
|
520
|
+
* Copyright 2017 Google LLC
|
|
521
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
|
+
*)
|
|
523
|
+
|
|
524
|
+
lit-html/directive-helpers.js:
|
|
525
|
+
(**
|
|
526
|
+
* @license
|
|
527
|
+
* Copyright 2020 Google LLC
|
|
528
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
529
|
+
*)
|
|
530
|
+
|
|
531
|
+
lit-html/directives/repeat.js:
|
|
532
|
+
(**
|
|
533
|
+
* @license
|
|
534
|
+
* Copyright 2017 Google LLC
|
|
535
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
536
|
+
*)
|
|
537
|
+
*/
|
|
538
|
+
//# sourceMappingURL=index.js.map
|