scb-wc-test 0.1.76 → 0.1.77
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/mvc/components/scb-stepper/scb-step.js +129 -59
- package/mvc/components/scb-stepper/scb-stepper.js +25 -20
- package/package.json +2 -2
- package/scb-stepper/scb-step.d.ts +3 -0
- package/scb-stepper/scb-step.js +174 -88
- package/scb-stepper/scb-stepper.d.ts +14 -0
- package/scb-stepper/scb-stepper.js +110 -51
- package/scb-wc-test.bundle.js +232 -157
package/scb-wc-test.bundle.js
CHANGED
|
@@ -10,7 +10,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const{is:Ts,defineProperty:Os,getOwnPropertyDescriptor:Ps,getOwnPropertyNames:Ls,getOwnPropertySymbols:Ds,getPrototypeOf:Rs}=Object,Me=globalThis,Uo=Me.trustedTypes,Bs=Uo?Uo.emptyScript:"",_r=Me.reactiveElementPolyfillSupport,Dt=(o,e)=>o,vi={toAttribute(o,e){switch(e){case Boolean:o=o?Bs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},xr=(o,e)=>!Ts(o,e),jo={attribute:!0,type:String,converter:vi,reflect:!1,useDefault:!1,hasChanged:xr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Me.litPropertyMetadata??(Me.litPropertyMetadata=new WeakMap);let
|
|
13
|
+
*/const{is:Ts,defineProperty:Os,getOwnPropertyDescriptor:Ps,getOwnPropertyNames:Ls,getOwnPropertySymbols:Ds,getPrototypeOf:Rs}=Object,Me=globalThis,Uo=Me.trustedTypes,Bs=Uo?Uo.emptyScript:"",_r=Me.reactiveElementPolyfillSupport,Dt=(o,e)=>o,vi={toAttribute(o,e){switch(e){case Boolean:o=o?Bs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},xr=(o,e)=>!Ts(o,e),jo={attribute:!0,type:String,converter:vi,reflect:!1,useDefault:!1,hasChanged:xr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Me.litPropertyMetadata??(Me.litPropertyMetadata=new WeakMap);let bt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=jo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Os(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Ps(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get:r,set(n){const h=r==null?void 0:r.call(this);s==null||s.call(this,n),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??jo}static _$Ei(){if(this.hasOwnProperty(Dt("elementProperties")))return;const e=Rs(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Dt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dt("properties"))){const t=this.properties,i=[...Ls(t),...Ds(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Vo(r))}else e!==void 0&&t.push(Vo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zs(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const n=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:vi).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){var s,n;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:vi;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((n=this._$Ej)==null?void 0:n.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,n=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??xr)(n,t)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,n??t??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r){const{wrapped:h}=n,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,n,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};bt.elementStyles=[],bt.shadowRootOptions={mode:"open"},bt[Dt("elementProperties")]=new Map,bt[Dt("finalized")]=new Map,_r==null||_r({ReactiveElement:bt}),(Me.reactiveElementVersions??(Me.reactiveElementVersions=[])).push("2.1.1");/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -38,7 +38,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2021 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/function
|
|
41
|
+
*/function K(o){return(e,t)=>{const{slot:i,selector:r}=o??{},s="slot"+(i?`[name=${i}]`:":not([name])");return Rt(e,t,{get(){var p;const n=(p=this.renderRoot)==null?void 0:p.querySelector(s),h=(n==null?void 0:n.assignedElements(o))??[];return r===void 0?h:h.filter(v=>v.matches(r))}})}}/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2017 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -46,13 +46,13 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/const Bt=globalThis,mi=Bt.trustedTypes,
|
|
49
|
+
*/const Bt=globalThis,mi=Bt.trustedTypes,Ko=mi?mi.createPolicy("lit-html",{createHTML:o=>o}):void 0,Go="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,Yo="?"+Fe,qs=`<${Yo}>`,Qe=document,Mt=()=>Qe.createComment(""),Ft=o=>o===null||typeof o!="object"&&typeof o!="function",Sr=Array.isArray,Vs=o=>Sr(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",kr=`[
|
|
50
50
|
\f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xo=/-->/g,Zo=/>/g,et=RegExp(`>|${kr}(?:([^\\s"'>=/]+)(${kr}*=${kr}*(?:[^
|
|
51
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Jo=/'/g,Qo=/"/g,ea=/^(?:script|style|textarea|title)$/i,Us=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),c=Us(1),ne=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ta=new WeakMap,tt=Qe.createTreeWalker(Qe,129);function ia(o,e){if(!Sr(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return
|
|
51
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Jo=/'/g,Qo=/"/g,ea=/^(?:script|style|textarea|title)$/i,Us=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),c=Us(1),ne=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ta=new WeakMap,tt=Qe.createTreeWalker(Qe,129);function ia(o,e){if(!Sr(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ko!==void 0?Ko.createHTML(e):e}const js=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",n=Ht;for(let h=0;h<t;h++){const p=o[h];let v,g,m=-1,_=0;for(;_<p.length&&(n.lastIndex=_,g=n.exec(p),g!==null);)_=n.lastIndex,n===Ht?g[1]==="!--"?n=Xo:g[1]!==void 0?n=Zo:g[2]!==void 0?(ea.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=et):g[3]!==void 0&&(n=et):n===et?g[0]===">"?(n=r??Ht,m=-1):g[1]===void 0?m=-2:(m=n.lastIndex-g[2].length,v=g[1],n=g[3]===void 0?et:g[3]==='"'?Qo:Jo):n===Qo||n===Jo?n=et:n===Xo||n===Zo?n=Ht:(n=et,r=void 0);const x=n===et&&o[h+1].startsWith("/>")?" ":"";s+=n===Ht?p+qs:m>=0?(i.push(v),p.slice(0,m)+Go+p.slice(m)+Fe+x):p+Fe+(m===-2?h:x)}return[ia(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Nt{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,n=0;const h=e.length-1,p=this.parts,[v,g]=js(e,t);if(this.el=Nt.createElement(v,i),tt.currentNode=this.el.content,t===2||t===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(r=tt.nextNode())!==null&&p.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(const m of r.getAttributeNames())if(m.endsWith(Go)){const _=g[n++],x=r.getAttribute(m).split(Fe),S=/([.?@])?(.*)/.exec(_);p.push({type:1,index:s,name:S[2],strings:x,ctor:S[1]==="."?Ks:S[1]==="?"?Gs:S[1]==="@"?Ys:bi}),r.removeAttribute(m)}else m.startsWith(Fe)&&(p.push({type:6,index:s}),r.removeAttribute(m));if(ea.test(r.tagName)){const m=r.textContent.split(Fe),_=m.length-1;if(_>0){r.textContent=mi?mi.emptyScript:"";for(let x=0;x<_;x++)r.append(m[x],Mt()),tt.nextNode(),p.push({type:2,index:++s});r.append(m[_],Mt())}}}else if(r.nodeType===8)if(r.data===Yo)p.push({type:2,index:s});else{let m=-1;for(;(m=r.data.indexOf(Fe,m+1))!==-1;)p.push({type:7,index:s}),m+=Fe.length-1}s++}}static createElement(e,t){const i=Qe.createElement("template");return i.innerHTML=e,i}}function ft(o,e,t=o,i){var n,h;if(e===ne)return e;let r=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const s=Ft(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((h=r==null?void 0:r._$AO)==null||h.call(r,!1),s===void 0?r=void 0:(r=new s(o),r._$AT(o,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=ft(o,r._$AS(o,e.values),r,i)),e}class Ws{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,r=((e==null?void 0:e.creationScope)??Qe).importNode(t,!0);tt.currentNode=r;let s=tt.nextNode(),n=0,h=0,p=i[0];for(;p!==void 0;){if(n===p.index){let v;p.type===2?v=new qt(s,s.nextSibling,this,e):p.type===1?v=new p.ctor(s,p.name,p.strings,this,e):p.type===6&&(v=new Xs(s,this,e)),this._$AV.push(v),p=i[++h]}n!==(p==null?void 0:p.index)&&(s=tt.nextNode(),n++)}return tt.currentNode=Qe,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class qt{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),Ft(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==ne&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Vs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==u&&Ft(this._$AH)?this._$AA.nextSibling.data=e:this.T(Qe.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Nt.createElement(ia(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const n=new Ws(r,this),h=n.u(this.options);n.p(t),this.T(h),this._$AH=n}}_$AC(e){let t=ta.get(e.strings);return t===void 0&&ta.set(e.strings,t=new Nt(e)),t}k(e){Sr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new qt(this.O(Mt()),this.O(Mt()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class bi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(e,t=this,i,r){const s=this.strings;let n=!1;if(s===void 0)e=ft(this,e,t,0),n=!Ft(e)||e!==this._$AH&&e!==ne,n&&(this._$AH=e);else{const h=e;let p,v;for(e=s[0],p=0;p<s.length-1;p++)v=ft(this,h[i+p],t,p),v===ne&&(v=this._$AH[p]),n||(n=!Ft(v)||v!==this._$AH[p]),v===u?e=u:e!==u&&(e+=(v??"")+s[p+1]),this._$AH[p]=v}n&&!r&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ks extends bi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}}class Gs extends bi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}}class Ys extends bi{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){if((e=ft(this,e,t,0)??u)===ne)return;const i=this._$AH,r=e===u&&i!==u||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Xs{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}}const $r=Bt.litHtmlPolyfillSupport;$r==null||$r(Nt,qt),(Bt.litHtmlVersions??(Bt.litHtmlVersions=[])).push("3.3.1");const Cr=(o,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const s=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new qt(e.insertBefore(Mt(),s),s,void 0,t??{})}return r._$AI(o),r};/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/const it=globalThis;let y=class extends
|
|
55
|
+
*/const it=globalThis;let y=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Cr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ne}};y._$litElement$=!0,y.finalized=!0,(Es=it.litElementHydrateSupport)==null||Es.call(it,{LitElement:y});const Er=it.litElementPolyfillSupport;Er==null||Er({LitElement:y}),(it.litElementVersions??(it.litElementVersions=[])).push("4.2.1");/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2022 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -98,7 +98,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2022 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: Apache-2.0
|
|
101
|
-
*/const on=450,sa=225,an=.2,sn=10,nn=75,ln=.35,cn="::after",dn="forwards";var
|
|
101
|
+
*/const on=450,sa=225,an=.2,sn=10,nn=75,ln=.35,cn="::after",dn="forwards";var G;(function(o){o[o.INACTIVE=0]="INACTIVE",o[o.TOUCH_DELAY=1]="TOUCH_DELAY",o[o.HOLDING=2]="HOLDING",o[o.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(G||(G={}));const hn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],pn=150,Or=window.matchMedia("(forced-colors: active)");class Vt extends y{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=G.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new oa(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${L(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==G.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===G.HOLDING){this.state=G.WAITING_FOR_CLICK;return}if(this.state===G.TOUCH_DELAY){this.state=G.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=G.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=G.TOUCH_DELAY,await new Promise(t=>{setTimeout(t,pn)}),this.state===G.TOUCH_DELAY&&(this.state=G.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===G.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===G.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),r=Math.max(ln*i,nn),s=Math.floor(i*an),h=Math.sqrt(t**2+e**2)+sn;this.initialSize=s,this.rippleScale=`${(h+r)/s}`,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:r,top:s}=this.getBoundingClientRect(),n=t+r,h=i+s,{pageX:p,pageY:v}=e;return{x:p-n,y:v-h}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),r={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let s;return e instanceof PointerEvent?s=this.getNormalizedPointerEventCoords(e):s={x:i/2,y:t/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:r}}startPressAnimation(e){var n;if(!this.mdRoot)return;this.pressed=!0,(n=this.growAnimation)==null||n.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,s=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:cn,duration:on,easing:pe.STANDARD,fill:dn})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=G.INACTIVE;const e=this.growAnimation;let t=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?t=e.currentTime:e!=null&&e.currentTime&&(t=e.currentTime.to("ms").value),t>=sa){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,sa-t)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const t=e.buttons===1;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:r,bottom:s,right:n}=this.getBoundingClientRect();return e>=r&&e<=n&&t>=i&&t<=s}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Or!=null&&Or.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,t){for(const i of hn)e==null||e.removeEventListener(i,this),t==null||t.addEventListener(i,this)}}d([l({type:Boolean,reflect:!0})],Vt.prototype,"disabled",void 0),d([w()],Vt.prototype,"hovered",void 0),d([w()],Vt.prototype,"pressed",void 0),d([k(".surface")],Vt.prototype,"mdRoot",void 0);/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2024 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -164,7 +164,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
164
164
|
${this.trailingIcon?u:e}
|
|
165
165
|
<span class="label"><slot></slot></span>
|
|
166
166
|
${this.trailingIcon?e:u}
|
|
167
|
-
`}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}Z(N),ca(N),N.formAssociated=!0,N.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],N.prototype,"disabled",void 0),d([l()],N.prototype,"href",void 0),d([l()],N.prototype,"target",void 0),d([l({type:Boolean,attribute:"trailing-icon",reflect:!0})],N.prototype,"trailingIcon",void 0),d([l({type:Boolean,attribute:"has-icon",reflect:!0})],N.prototype,"hasIcon",void 0),d([l()],N.prototype,"type",void 0),d([l({reflect:!0})],N.prototype,"value",void 0),d([k(".button")],N.prototype,"buttonElement",void 0),d([
|
|
167
|
+
`}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}Z(N),ca(N),N.formAssociated=!0,N.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],N.prototype,"disabled",void 0),d([l()],N.prototype,"href",void 0),d([l()],N.prototype,"target",void 0),d([l({type:Boolean,attribute:"trailing-icon",reflect:!0})],N.prototype,"trailingIcon",void 0),d([l({type:Boolean,attribute:"has-icon",reflect:!0})],N.prototype,"hasIcon",void 0),d([l()],N.prototype,"type",void 0),d([l({reflect:!0})],N.prototype,"value",void 0),d([k(".button")],N.prototype,"buttonElement",void 0),d([K({slot:"icon",flatten:!0})],N.prototype,"assignedIcons",void 0);/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2021 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -251,7 +251,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
251
251
|
* @license
|
|
252
252
|
* Copyright 2023 Google LLC
|
|
253
253
|
* SPDX-License-Identifier: Apache-2.0
|
|
254
|
-
*/const Ce=Symbol("getFormValue"),
|
|
254
|
+
*/const Ce=Symbol("getFormValue"),Kt=Symbol("getFormState");function gt(o){class e extends o{get form(){return this[U].form}get labels(){return this[U].labels}get name(){return this.getAttribute("name")??""}set name(i){this.setAttribute("name",i)}get disabled(){return this.hasAttribute("disabled")}set disabled(i){this.toggleAttribute("disabled",i)}attributeChangedCallback(i,r,s){if(i==="name"||i==="disabled"){const n=i==="disabled"?r!==null:r;this.requestUpdate(i,n);return}super.attributeChangedCallback(i,r,s)}requestUpdate(i,r,s){super.requestUpdate(i,r,s),this[U].setFormValue(this[Ce](),this[Kt]())}[Ce](){throw new Error("Implement [getFormValue]")}[Kt](){return this[Ce]()}formDisabledCallback(i){this.disabled=i}}return e.formAssociated=!0,d([l({noAccessor:!0})],e.prototype,"name",null),d([l({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}/**
|
|
255
255
|
* @license
|
|
256
256
|
* Copyright 2023 Google LLC
|
|
257
257
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -263,7 +263,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
263
263
|
* @license
|
|
264
264
|
* Copyright 2019 Google LLC
|
|
265
265
|
* SPDX-License-Identifier: Apache-2.0
|
|
266
|
-
*/const Tn=Wt(
|
|
266
|
+
*/const Tn=Wt(gt(Ne(y)));class ue extends Tn{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!Ut(e)||!this.input||(this.focus(),xi(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,n=L({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
|
|
267
267
|
<div class="container ${n}">
|
|
268
268
|
<input
|
|
269
269
|
type="checkbox"
|
|
@@ -287,7 +287,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
287
287
|
<rect class="mark long" />
|
|
288
288
|
</svg>
|
|
289
289
|
</div>
|
|
290
|
-
`}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){qe(this,e)}[Ce](){return!this.checked||this.indeterminate?null:this.value}[
|
|
290
|
+
`}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){qe(this,e)}[Ce](){return!this.checked||this.indeterminate?null:this.value}[Kt](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[rt](){return new da(()=>this)}[ot](){return this.input}}Z(ue),ue.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],ue.prototype,"checked",void 0),d([l({type:Boolean})],ue.prototype,"indeterminate",void 0),d([l({type:Boolean})],ue.prototype,"required",void 0),d([l()],ue.prototype,"value",void 0),d([w()],ue.prototype,"prevChecked",void 0),d([w()],ue.prototype,"prevDisabled",void 0),d([w()],ue.prototype,"prevIndeterminate",void 0),d([k("input")],ue.prototype,"input",void 0);/**
|
|
291
291
|
* @license
|
|
292
292
|
* Copyright 2024 Google LLC
|
|
293
293
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -321,7 +321,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
321
321
|
* @license
|
|
322
322
|
* Copyright 2023 Google LLC
|
|
323
323
|
* SPDX-License-Identifier: Apache-2.0
|
|
324
|
-
*/class
|
|
324
|
+
*/class Gt extends Ee{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?c`
|
|
325
325
|
<a
|
|
326
326
|
class="primary action"
|
|
327
327
|
id="link"
|
|
@@ -339,7 +339,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
339
339
|
type="button"
|
|
340
340
|
>${e}</button
|
|
341
341
|
>
|
|
342
|
-
`}renderOutline(){return this.elevated?c`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}}d([l({type:Boolean})],
|
|
342
|
+
`}renderOutline(){return this.elevated?c`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}}d([l({type:Boolean})],Gt.prototype,"elevated",void 0),d([l()],Gt.prototype,"href",void 0),d([l()],Gt.prototype,"target",void 0);/**
|
|
343
343
|
* @license
|
|
344
344
|
* Copyright 2024 Google LLC
|
|
345
345
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -358,11 +358,11 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
358
358
|
* @license
|
|
359
359
|
* Copyright 2023 Google LLC
|
|
360
360
|
* SPDX-License-Identifier: Apache-2.0
|
|
361
|
-
*/let Ii=class extends
|
|
361
|
+
*/let Ii=class extends Gt{};Ii.styles=[Ai,Fr,Pn],Ii=d([f("md-assist-chip")],Ii);const Ln=Object.freeze(Object.defineProperty({__proto__:null,get MdAssistChip(){return Ii}},Symbol.toStringTag,{value:"Module"}));/**
|
|
362
362
|
* @license
|
|
363
363
|
* Copyright 2023 Google LLC
|
|
364
364
|
* SPDX-License-Identifier: Apache-2.0
|
|
365
|
-
*/class ha extends y{get chips(){return this.childElements.filter(e=>e instanceof Ee)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:n}=this;if(n.length<2)return;if(e.preventDefault(),r||s){const _=r?0:n.length-1;n[_].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=n.find(_=>_.matches(":focus-within"));if(!v){(p?n[0]:n[n.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const g=n.indexOf(v);let m=p?g+1:g-1;for(;m!==g;){m>=n.length?m=0:m<0&&(m=n.length-1);const _=n[m];if(_.disabled&&!_.alwaysFocusable){p?m++:m--;continue}_.focus({trailing:!p}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const r=i.alwaysFocusable||!i.disabled;if(i.matches(":focus-within")&&r){t=i;continue}r&&!t&&(t=i),i.tabIndex=-1}t&&(t.tabIndex=0)}}d([
|
|
365
|
+
*/class ha extends y{get chips(){return this.childElements.filter(e=>e instanceof Ee)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:n}=this;if(n.length<2)return;if(e.preventDefault(),r||s){const _=r?0:n.length-1;n[_].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=n.find(_=>_.matches(":focus-within"));if(!v){(p?n[0]:n[n.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const g=n.indexOf(v);let m=p?g+1:g-1;for(;m!==g;){m>=n.length?m=0:m<0&&(m=n.length-1);const _=n[m];if(_.disabled&&!_.alwaysFocusable){p?m++:m--;continue}_.focus({trailing:!p}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const r=i.alwaysFocusable||!i.disabled;if(i.matches(":focus-within")&&r){t=i;continue}r&&!t&&(t=i),i.tabIndex=-1}t&&(t.tabIndex=0)}}d([K()],ha.prototype,"childElements",void 0);/**
|
|
366
366
|
* @license
|
|
367
367
|
* Copyright 2024 Google LLC
|
|
368
368
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -480,7 +480,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
480
480
|
* @license
|
|
481
481
|
* Copyright 2023 Google LLC
|
|
482
482
|
* SPDX-License-Identifier: Apache-2.0
|
|
483
|
-
*/class Nn extends
|
|
483
|
+
*/class Nn extends Gt{}/**
|
|
484
484
|
* @license
|
|
485
485
|
* Copyright 2024 Google LLC
|
|
486
486
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -559,16 +559,16 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
559
559
|
* @license
|
|
560
560
|
* Copyright 2024 Google LLC
|
|
561
561
|
* SPDX-License-Identifier: Apache-2.0
|
|
562
|
-
*/const
|
|
562
|
+
*/const Kn=b`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
|
|
563
563
|
`;/**
|
|
564
564
|
* @license
|
|
565
565
|
* Copyright 2023 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: Apache-2.0
|
|
567
|
-
*/let Vr=class extends R{};Vr.styles=[
|
|
567
|
+
*/let Vr=class extends R{};Vr.styles=[Kn],Vr=d([f("md-dialog")],Vr);/**
|
|
568
568
|
* @license
|
|
569
569
|
* Copyright 2023 Google LLC
|
|
570
570
|
* SPDX-License-Identifier: Apache-2.0
|
|
571
|
-
*/class
|
|
571
|
+
*/class yt extends y{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:e}=this;return c`
|
|
572
572
|
<button
|
|
573
573
|
class="fab ${L(this.getRenderClasses())}"
|
|
574
574
|
aria-label=${e||u}>
|
|
@@ -583,15 +583,15 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
583
583
|
aria-hidden=${e||this.label?"true":u}>
|
|
584
584
|
<span></span>
|
|
585
585
|
</slot>
|
|
586
|
-
</span>`}}Z(
|
|
586
|
+
</span>`}}Z(yt),yt.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({reflect:!0})],yt.prototype,"size",void 0),d([l()],yt.prototype,"label",void 0),d([l({type:Boolean})],yt.prototype,"lowered",void 0);/**
|
|
587
587
|
* @license
|
|
588
588
|
* Copyright 2023 Google LLC
|
|
589
589
|
* SPDX-License-Identifier: Apache-2.0
|
|
590
|
-
*/class Ur extends
|
|
590
|
+
*/class Ur extends yt{constructor(){super(...arguments),this.variant="surface"}getRenderClasses(){return{...super.getRenderClasses(),primary:this.variant==="primary",secondary:this.variant==="secondary",tertiary:this.variant==="tertiary"}}}d([l()],Ur.prototype,"variant",void 0);/**
|
|
591
591
|
* @license
|
|
592
592
|
* Copyright 2024 Google LLC
|
|
593
593
|
* SPDX-License-Identifier: Apache-2.0
|
|
594
|
-
*/const
|
|
594
|
+
*/const Gn=b`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))}
|
|
595
595
|
`;/**
|
|
596
596
|
* @license
|
|
597
597
|
* Copyright 2024 Google LLC
|
|
@@ -606,7 +606,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
606
606
|
* @license
|
|
607
607
|
* Copyright 2023 Google LLC
|
|
608
608
|
* SPDX-License-Identifier: Apache-2.0
|
|
609
|
-
*/let jr=class extends Ur{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};jr.styles=[fa,
|
|
609
|
+
*/let jr=class extends Ur{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};jr.styles=[fa,Gn,ba],jr=d([f("md-branded-fab")],jr);/**
|
|
610
610
|
* @license
|
|
611
611
|
* Copyright 2024 Google LLC
|
|
612
612
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -651,7 +651,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
651
651
|
<span class="label ${L(i)}" aria-hidden=${!t}
|
|
652
652
|
>${r}</span
|
|
653
653
|
>
|
|
654
|
-
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:pe.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:n,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,g=t.scrollWidth,m=g/v,_=n-i,x=h-r+Math.round((p-s*m)/2),S=`translateX(${_}px) translateY(${x}px) scale(${m})`,C="translateX(0) translateY(0) scale(1)",z=t.clientWidth,O=g>z?`${z/m}px`:"";return this.focused||this.populated?[{transform:S,width:O},{transform:C,width:O}]:[{transform:C,width:O},{transform:S,width:O}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([l({type:Boolean})],D.prototype,"disabled",void 0),d([l({type:Boolean})],D.prototype,"error",void 0),d([l({type:Boolean})],D.prototype,"focused",void 0),d([l()],D.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],D.prototype,"noAsterisk",void 0),d([l({type:Boolean})],D.prototype,"populated",void 0),d([l({type:Boolean})],D.prototype,"required",void 0),d([l({type:Boolean})],D.prototype,"resizable",void 0),d([l({attribute:"supporting-text"})],D.prototype,"supportingText",void 0),d([l({attribute:"error-text"})],D.prototype,"errorText",void 0),d([l({type:Number})],D.prototype,"count",void 0),d([l({type:Number})],D.prototype,"max",void 0),d([l({type:Boolean,attribute:"has-start"})],D.prototype,"hasStart",void 0),d([l({type:Boolean,attribute:"has-end"})],D.prototype,"hasEnd",void 0),d([
|
|
654
|
+
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:pe.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:n,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,g=t.scrollWidth,m=g/v,_=n-i,x=h-r+Math.round((p-s*m)/2),S=`translateX(${_}px) translateY(${x}px) scale(${m})`,C="translateX(0) translateY(0) scale(1)",z=t.clientWidth,O=g>z?`${z/m}px`:"";return this.focused||this.populated?[{transform:S,width:O},{transform:C,width:O}]:[{transform:C,width:O},{transform:S,width:O}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([l({type:Boolean})],D.prototype,"disabled",void 0),d([l({type:Boolean})],D.prototype,"error",void 0),d([l({type:Boolean})],D.prototype,"focused",void 0),d([l()],D.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],D.prototype,"noAsterisk",void 0),d([l({type:Boolean})],D.prototype,"populated",void 0),d([l({type:Boolean})],D.prototype,"required",void 0),d([l({type:Boolean})],D.prototype,"resizable",void 0),d([l({attribute:"supporting-text"})],D.prototype,"supportingText",void 0),d([l({attribute:"error-text"})],D.prototype,"errorText",void 0),d([l({type:Number})],D.prototype,"count",void 0),d([l({type:Number})],D.prototype,"max",void 0),d([l({type:Boolean,attribute:"has-start"})],D.prototype,"hasStart",void 0),d([l({type:Boolean,attribute:"has-end"})],D.prototype,"hasEnd",void 0),d([K({slot:"aria-describedby"})],D.prototype,"slottedAriaDescribedBy",void 0),d([w()],D.prototype,"isAnimating",void 0),d([w()],D.prototype,"refreshErrorAlert",void 0),d([w()],D.prototype,"disableTransitions",void 0),d([k(".label.floating")],D.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],D.prototype,"restingLabelEl",void 0),d([k(".container")],D.prototype,"containerEl",void 0);/**
|
|
655
655
|
* @license
|
|
656
656
|
* Copyright 2021 Google LLC
|
|
657
657
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -672,7 +672,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
672
672
|
* @license
|
|
673
673
|
* Copyright 2021 Google LLC
|
|
674
674
|
* SPDX-License-Identifier: Apache-2.0
|
|
675
|
-
*/let
|
|
675
|
+
*/let Kr=class extends Xn{};Kr.styles=[ga,Zn],Kr=d([f("md-filled-field")],Kr);/**
|
|
676
676
|
* @license
|
|
677
677
|
* Copyright 2021 Google LLC
|
|
678
678
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -695,7 +695,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
695
695
|
* @license
|
|
696
696
|
* Copyright 2021 Google LLC
|
|
697
697
|
* SPDX-License-Identifier: Apache-2.0
|
|
698
|
-
*/let
|
|
698
|
+
*/let Gr=class extends Jn{};Gr.styles=[ga,Qn],Gr=d([f("md-outlined-field")],Gr);/**
|
|
699
699
|
* @license
|
|
700
700
|
* Copyright 2022 Google LLC
|
|
701
701
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -794,11 +794,11 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
794
794
|
* @license
|
|
795
795
|
* Copyright 2023 Google LLC
|
|
796
796
|
* SPDX-License-Identifier: Apache-2.0
|
|
797
|
-
*/function wa(o,e=
|
|
797
|
+
*/function wa(o,e=ge){const t=Hi(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Sa(o,e=ge){const t=ka(o,e);return t&&(t.tabIndex=0,t.focus()),t}function ul(o,e=ge){const t=_t(o,e);return t&&(t.item.tabIndex=-1),t}function _t(o,e=ge){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function Hi(o,e=ge){for(const t of o)if(e(t))return t;return null}function ka(o,e=ge){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function vl(o,e,t=ge,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function ml(o,e,t=ge,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function $a(o,e,t=ge,i=!0){if(e){const r=vl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return wa(o,t)}function Ca(o,e,t=ge,i=!0){if(e){const r=ml(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Sa(o,t)}function Ni(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Ea(){return new Event("request-activation",{bubbles:!0,composed:!0})}function ge(o){return!o.disabled}/**
|
|
798
798
|
* @license
|
|
799
799
|
* Copyright 2023 Google LLC
|
|
800
800
|
* SPDX-License-Identifier: Apache-2.0
|
|
801
|
-
*/const j={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Aa{constructor(e){this.handleKeydown=g=>{const m=g.key;if(g.defaultPrevented||!this.isNavigableKey(m))return;const _=this.items;if(!_.length)return;const x=
|
|
801
|
+
*/const j={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Aa{constructor(e){this.handleKeydown=g=>{const m=g.key;if(g.defaultPrevented||!this.isNavigableKey(m))return;const _=this.items;if(!_.length)return;const x=_t(_,this.isActivatable);g.preventDefault();const S=this.isRtl(),C=S?j.ArrowRight:j.ArrowLeft,z=S?j.ArrowLeft:j.ArrowRight;let T=null;switch(m){case j.ArrowDown:case z:T=$a(_,x,this.isActivatable,this.wrapNavigation());break;case j.ArrowUp:case C:T=Ca(_,x,this.isActivatable,this.wrapNavigation());break;case j.Home:T=wa(_,this.isActivatable);break;case j.End:T=Sa(_,this.isActivatable);break}T&&x&&x.item!==T&&(x.item.tabIndex=-1)},this.onDeactivateItems=()=>{const g=this.items;for(const m of g)this.deactivateItem(m)},this.onRequestActivation=g=>{this.onDeactivateItems();const m=g.target;this.activateItem(m),m.focus()},this.onSlotchange=()=>{const g=this.items;let m=!1;for(const x of g){if(!x.disabled&&x.tabIndex>-1&&!m){m=!0,x.tabIndex=0;continue}x.tabIndex=-1}if(m)return;const _=Hi(g,this.isActivatable);_&&(_.tabIndex=0)};const{isItem:t,getPossibleItems:i,isRtl:r,deactivateItem:s,activateItem:n,isNavigableKey:h,isActivatable:p,wrapNavigation:v}=e;this.isItem=t,this.getPossibleItems=i,this.isRtl=r,this.deactivateItem=s,this.activateItem=n,this.isNavigableKey=h,this.isActivatable=p,this.wrapNavigation=v??(()=>!0)}get items(){const e=this.getPossibleItems(),t=[];for(const i of e){if(this.isItem(i)){t.push(i);continue}const s=i.item;s&&this.isItem(s)&&t.push(s)}return t}activateNextItem(){const e=this.items,t=_t(e,this.isActivatable);return t&&(t.item.tabIndex=-1),$a(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,t=_t(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Ca(e,t,this.isActivatable,this.wrapNavigation())}}/**
|
|
802
802
|
* @license
|
|
803
803
|
* Copyright 2021 Google LLC
|
|
804
804
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -808,7 +808,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
808
808
|
@request-activation=${this.listController.onRequestActivation}
|
|
809
809
|
@slotchange=${this.listController.onSlotchange}>
|
|
810
810
|
</slot>
|
|
811
|
-
`}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}d([
|
|
811
|
+
`}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}d([K({flatten:!0})],Ia.prototype,"slotItems",void 0);/**
|
|
812
812
|
* @license
|
|
813
813
|
* Copyright 2024 Google LLC
|
|
814
814
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -905,7 +905,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
905
905
|
* @license
|
|
906
906
|
* Copyright 2023 Google LLC
|
|
907
907
|
* SPDX-License-Identifier: Apache-2.0
|
|
908
|
-
*/function Sl(o,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:o,reason:e,itemPath:[o]}})}const Ta=Sl;function kl(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Jr(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Ve={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},
|
|
908
|
+
*/function Sl(o,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:o,reason:e,itemPath:[o]}})}const Ta=Sl;function kl(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Jr(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Ve={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},xt={SPACE:"Space",ENTER:"Enter"},Qr={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},eo={ESCAPE:"Escape",SPACE:xt.SPACE,ENTER:xt.ENTER};function Oa(o){return Object.values(eo).some(e=>e===o)}function $l(o){return Object.values(xt).some(e=>e===o)}function to(o,e){const t=new Event("md-contains",{bubbles:!0,composed:!0});let i=[];const r=n=>{i=n.composedPath()};return e.addEventListener("md-contains",r),o.dispatchEvent(t),e.removeEventListener("md-contains",r),i.length>0}const ve={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/**
|
|
909
909
|
* @license
|
|
910
910
|
* Copyright 2023 Google LLC
|
|
911
911
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -917,7 +917,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
917
917
|
* @license
|
|
918
918
|
* Copyright 2023 Google LLC
|
|
919
919
|
* SPDX-License-Identifier: Apache-2.0
|
|
920
|
-
*/const Pa=200,La=new Set([j.ArrowDown,j.ArrowUp,j.Home,j.End]),Al=new Set([j.ArrowLeft,j.ArrowRight,...La]);function Il(o=document){var t;let e=o.activeElement;for(;e&&((t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement);)e=e.shadowRoot.activeElement;return e}class M extends y{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=Pa,this.anchorCorner=Vi.END_START,this.menuCorner=Vi.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=ve.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=rn(),this.listController=new Aa({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return Al.has(e);const i=getComputedStyle(this).direction==="rtl"?j.ArrowLeft:j.ArrowRight;return e===i?!0:La.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new El(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new Cl(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if(to(e.relatedTarget,this)||this.pointerPath.length!==0&&to(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;const i=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=i},this.onOpened=async()=>{this.lastFocusedElement=Il();const e=this.items,t=
|
|
920
|
+
*/const Pa=200,La=new Set([j.ArrowDown,j.ArrowUp,j.Home,j.End]),Al=new Set([j.ArrowLeft,j.ArrowRight,...La]);function Il(o=document){var t;let e=o.activeElement;for(;e&&((t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement);)e=e.shadowRoot.activeElement;return e}class M extends y{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=Pa,this.anchorCorner=Vi.END_START,this.menuCorner=Vi.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=ve.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=rn(),this.listController=new Aa({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return Al.has(e);const i=getComputedStyle(this).direction==="rtl"?j.ArrowLeft:j.ArrowRight;return e===i?!0:La.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new El(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new Cl(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if(to(e.relatedTarget,this)||this.pointerPath.length!==0&&to(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;const i=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=i},this.onOpened=async()=>{this.lastFocusedElement=Il();const e=this.items,t=_t(e);t&&this.defaultFocus!==ve.NONE&&(t.item.tabIndex=-1);let i=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):i=!!await this.animateOpen(),this.defaultFocus){case ve.FIRST_ITEM:const r=Hi(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case ve.LAST_ITEM:const s=ka(e);s&&(s.tabIndex=0,s.focus(),await s.updateComplete);break;case ve.LIST_ROOT:this.focus();break;default:case ve.NONE:break}i||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,t;this.open=!1,this.skipRestoreFocus||(t=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||t.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const t=e.composedPath();!this.stayOpenOnOutsideClick&&!t.includes(this)&&!t.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return c`
|
|
921
921
|
<div
|
|
922
922
|
class="menu ${L(this.getSurfaceClasses())}"
|
|
923
923
|
style=${nt(this.menuPositionController.surfaceStyles)}
|
|
@@ -935,7 +935,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
935
935
|
@activate-typeahead=${this.handleActivateTypeahead}
|
|
936
936
|
@stay-open-on-focusout=${this.handleStayOpenOnFocusout}
|
|
937
937
|
@close-on-focusout=${this.handleCloseOnFocusout}
|
|
938
|
-
@slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Oa(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,g=250,m=(p-g)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:pe.EMPHASIZED}),x=t.animate([{transform:n?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:pe.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let O=0;O<h.length;O++){const se=n?h.length-1-O:O,W=h[se],F=W.animate([{opacity:0},{opacity:1}],{duration:g,delay:m*O});W.classList.toggle("md-menu-hidden",!0),F.addEventListener("finish",()=>{W.classList.toggle("md-menu-hidden",!1)}),C.push([W,F])}let z=O=>{};const T=new Promise(O=>{z=O});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([O,se])=>{O.classList.toggle("md-menu-hidden",!1),se.cancel()}),z(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),z(!1)}),await T}animateClose(){let e;const t=new Promise(F=>{e=F}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const n=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,g=150,m=50,_=g-m,x=50,S=50,C=.35,z=(g-S-x)/v.length,T=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:g,easing:pe.EMPHASIZED_ACCELERATE}),O=r.animate([{transform:""},{transform:n?`translateY(-${p*(1-C)}px)`:""}],{duration:g,easing:pe.EMPHASIZED_ACCELERATE}),se=i.animate([{opacity:1},{opacity:0}],{duration:m,delay:_}),W=[];for(let F=0;F<v.length;F++){const Ye=n?F:v.length-1-F,Xe=v[Ye],Re=Xe.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+z*F});Re.addEventListener("finish",()=>{Xe.classList.toggle("md-menu-hidden",!0)}),W.push([Xe,Re])}return h.addEventListener("abort",()=>{T.cancel(),O.cancel(),se.cancel(),W.forEach(([F,Ye])=>{Ye.cancel(),F.classList.toggle("md-menu-hidden",!1)}),e(!1)}),T.addEventListener("finish",()=>{i.classList.toggle("animating",!1),W.forEach(([F])=>{F.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],M.prototype,"surfaceEl",void 0),d([k("slot")],M.prototype,"slotEl",void 0),d([l()],M.prototype,"anchor",void 0),d([l()],M.prototype,"positioning",void 0),d([l({type:Boolean})],M.prototype,"quick",void 0),d([l({type:Boolean,attribute:"has-overflow"})],M.prototype,"hasOverflow",void 0),d([l({type:Boolean,reflect:!0})],M.prototype,"open",void 0),d([l({type:Number,attribute:"x-offset"})],M.prototype,"xOffset",void 0),d([l({type:Number,attribute:"y-offset"})],M.prototype,"yOffset",void 0),d([l({type:Number,attribute:"typeahead-delay"})],M.prototype,"typeaheadDelay",void 0),d([l({attribute:"anchor-corner"})],M.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],M.prototype,"menuCorner",void 0),d([l({type:Boolean,attribute:"stay-open-on-outside-click"})],M.prototype,"stayOpenOnOutsideClick",void 0),d([l({type:Boolean,attribute:"stay-open-on-focusout"})],M.prototype,"stayOpenOnFocusout",void 0),d([l({type:Boolean,attribute:"skip-restore-focus"})],M.prototype,"skipRestoreFocus",void 0),d([l({attribute:"default-focus"})],M.prototype,"defaultFocus",void 0),d([l({type:Boolean,attribute:"no-navigation-wrap"})],M.prototype,"noNavigationWrap",void 0),d([
|
|
938
|
+
@slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Oa(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,g=250,m=(p-g)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:pe.EMPHASIZED}),x=t.animate([{transform:n?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:pe.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let O=0;O<h.length;O++){const se=n?h.length-1-O:O,W=h[se],F=W.animate([{opacity:0},{opacity:1}],{duration:g,delay:m*O});W.classList.toggle("md-menu-hidden",!0),F.addEventListener("finish",()=>{W.classList.toggle("md-menu-hidden",!1)}),C.push([W,F])}let z=O=>{};const T=new Promise(O=>{z=O});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([O,se])=>{O.classList.toggle("md-menu-hidden",!1),se.cancel()}),z(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),z(!1)}),await T}animateClose(){let e;const t=new Promise(F=>{e=F}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const n=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,g=150,m=50,_=g-m,x=50,S=50,C=.35,z=(g-S-x)/v.length,T=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:g,easing:pe.EMPHASIZED_ACCELERATE}),O=r.animate([{transform:""},{transform:n?`translateY(-${p*(1-C)}px)`:""}],{duration:g,easing:pe.EMPHASIZED_ACCELERATE}),se=i.animate([{opacity:1},{opacity:0}],{duration:m,delay:_}),W=[];for(let F=0;F<v.length;F++){const Ye=n?F:v.length-1-F,Xe=v[Ye],Re=Xe.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+z*F});Re.addEventListener("finish",()=>{Xe.classList.toggle("md-menu-hidden",!0)}),W.push([Xe,Re])}return h.addEventListener("abort",()=>{T.cancel(),O.cancel(),se.cancel(),W.forEach(([F,Ye])=>{Ye.cancel(),F.classList.toggle("md-menu-hidden",!1)}),e(!1)}),T.addEventListener("finish",()=>{i.classList.toggle("animating",!1),W.forEach(([F])=>{F.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],M.prototype,"surfaceEl",void 0),d([k("slot")],M.prototype,"slotEl",void 0),d([l()],M.prototype,"anchor",void 0),d([l()],M.prototype,"positioning",void 0),d([l({type:Boolean})],M.prototype,"quick",void 0),d([l({type:Boolean,attribute:"has-overflow"})],M.prototype,"hasOverflow",void 0),d([l({type:Boolean,reflect:!0})],M.prototype,"open",void 0),d([l({type:Number,attribute:"x-offset"})],M.prototype,"xOffset",void 0),d([l({type:Number,attribute:"y-offset"})],M.prototype,"yOffset",void 0),d([l({type:Number,attribute:"typeahead-delay"})],M.prototype,"typeaheadDelay",void 0),d([l({attribute:"anchor-corner"})],M.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],M.prototype,"menuCorner",void 0),d([l({type:Boolean,attribute:"stay-open-on-outside-click"})],M.prototype,"stayOpenOnOutsideClick",void 0),d([l({type:Boolean,attribute:"stay-open-on-focusout"})],M.prototype,"stayOpenOnFocusout",void 0),d([l({type:Boolean,attribute:"skip-restore-focus"})],M.prototype,"skipRestoreFocus",void 0),d([l({attribute:"default-focus"})],M.prototype,"defaultFocus",void 0),d([l({type:Boolean,attribute:"no-navigation-wrap"})],M.prototype,"noNavigationWrap",void 0),d([K({flatten:!0})],M.prototype,"slotItems",void 0),d([w()],M.prototype,"typeaheadActive",void 0);/**
|
|
939
939
|
* @license
|
|
940
940
|
* Copyright 2024 Google LLC
|
|
941
941
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -991,7 +991,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
991
991
|
<slot
|
|
992
992
|
name="trailing-supporting-text"
|
|
993
993
|
slot="trailing-supporting-text"></slot>
|
|
994
|
-
`}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Z(Q),Q.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",void 0),d([l()],Q.prototype,"type",void 0),d([l()],Q.prototype,"href",void 0),d([l()],Q.prototype,"target",void 0),d([l({type:Boolean,attribute:"keep-open"})],Q.prototype,"keepOpen",void 0),d([l({type:Boolean})],Q.prototype,"selected",void 0),d([k(".list-item")],Q.prototype,"listItemRoot",void 0),d([
|
|
994
|
+
`}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Z(Q),Q.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",void 0),d([l()],Q.prototype,"type",void 0),d([l()],Q.prototype,"href",void 0),d([l()],Q.prototype,"target",void 0),d([l({type:Boolean,attribute:"keep-open"})],Q.prototype,"keepOpen",void 0),d([l({type:Boolean})],Q.prototype,"selected",void 0),d([k(".list-item")],Q.prototype,"listItemRoot",void 0),d([K({slot:"headline"})],Q.prototype,"headlineElements",void 0),d([K({slot:"supporting-text"})],Q.prototype,"supportingTextElements",void 0),d([wr({slot:""})],Q.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],Q.prototype,"typeaheadText",null);/**
|
|
995
995
|
* @license
|
|
996
996
|
* Copyright 2024 Google LLC
|
|
997
997
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1017,7 +1017,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1017
1017
|
@close-menu=${this.onCloseSubmenu}
|
|
1018
1018
|
@slotchange=${this.onSlotchange}>
|
|
1019
1019
|
</slot>
|
|
1020
|
-
`}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(Jr()),this.dispatchEvent(Ni()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(Ni()),this.dispatchEvent(kl()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(Jr()),e.quick=!0,e.close(),this.dispatchEvent(Ni());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(Ve.LEFT===e.code||Ve.RIGHT===e.code);if((e.code===
|
|
1020
|
+
`}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(Jr()),this.dispatchEvent(Ni()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(Ni()),this.dispatchEvent(kl()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(Jr()),e.quick=!0,e.close(),this.dispatchEvent(Ni());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(Ve.LEFT===e.code||Ve.RIGHT===e.code);if((e.code===xt.SPACE||i)&&(e.preventDefault(),i&&e.stopPropagation()),!t)return;const r=this.menu;if(!r)return;const s=r.items,n=Hi(s);if(n){await this.show(),n.tabIndex=0,n.focus();return}}onCloseSubmenu(e){const{itemPath:t,reason:i}=e.detail;if(t.push(this.item),this.dispatchEvent(Jr()),i.kind===Qr.KEYDOWN&&i.key===eo.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(Ea());return}this.dispatchEvent(Ni())}async onSubMenuKeydown(e){var r;if(e.defaultPrevented)return;const{close:t,keyCode:i}=this.isSubmenuCloseKey(e.code);t&&(e.preventDefault(),(i===Ve.LEFT||i===Ve.RIGHT)&&e.stopPropagation(),await this.close(),ul(this.menu.items),(r=this.item)==null||r.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const i=getComputedStyle(this).direction==="rtl"?Ve.LEFT:Ve.RIGHT;switch(e){case i:case xt.SPACE:case xt.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const i=getComputedStyle(this).direction==="rtl"?Ve.RIGHT:Ve.LEFT;switch(e){case i:case eo.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}d([l({attribute:"anchor-corner"})],Ue.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],Ue.prototype,"menuCorner",void 0),d([l({type:Number,attribute:"hover-open-delay"})],Ue.prototype,"hoverOpenDelay",void 0),d([l({type:Number,attribute:"hover-close-delay"})],Ue.prototype,"hoverCloseDelay",void 0),d([l({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],Ue.prototype,"isSubMenu",void 0),d([K({slot:"item",flatten:!0})],Ue.prototype,"items",void 0),d([K({slot:"menu",flatten:!0})],Ue.prototype,"menus",void 0);/**
|
|
1021
1021
|
* @license
|
|
1022
1022
|
* Copyright 2024 Google LLC
|
|
1023
1023
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1094,7 +1094,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1094
1094
|
* @license
|
|
1095
1095
|
* Copyright 2023 Google LLC
|
|
1096
1096
|
* SPDX-License-Identifier: Apache-2.0
|
|
1097
|
-
*/const Ui=Symbol("isFocusable"),no=Symbol("privateIsFocusable"),ji=Symbol("externalTabIndex"),Wi=Symbol("isUpdatingTabIndex"),
|
|
1097
|
+
*/const Ui=Symbol("isFocusable"),no=Symbol("privateIsFocusable"),ji=Symbol("externalTabIndex"),Wi=Symbol("isUpdatingTabIndex"),Ki=Symbol("updateTabIndex");function Ma(o){var e,t,i;class r extends o{constructor(){super(...arguments),this[e]=!0,this[t]=null,this[i]=!1}get[Ui](){return this[no]}set[Ui](n){this[Ui]!==n&&(this[no]=n,this[Ki]())}connectedCallback(){super.connectedCallback(),this[Ki]()}attributeChangedCallback(n,h,p){if(n!=="tabindex"){super.attributeChangedCallback(n,h,p);return}if(this.requestUpdate("tabIndex",Number(h??-1)),!this[Wi]){if(!this.hasAttribute("tabindex")){this[ji]=null,this[Ki]();return}this[ji]=this.tabIndex}}[(e=no,t=ji,i=Wi,Ki)](){const n=this[Ui]?0:-1,h=this[ji]??n;this[Wi]=!0,this.tabIndex=h,this[Wi]=!1}}return d([l({noAccessor:!0})],r.prototype,"tabIndex",void 0),r}/**
|
|
1098
1098
|
* @license
|
|
1099
1099
|
* Copyright 2023 Google LLC
|
|
1100
1100
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1106,7 +1106,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1106
1106
|
* @license
|
|
1107
1107
|
* Copyright 2018 Google LLC
|
|
1108
1108
|
* SPDX-License-Identifier: Apache-2.0
|
|
1109
|
-
*/var Fa;const lo=Symbol("checked");let Bl=0;const Ml=Wt(
|
|
1109
|
+
*/var Fa;const lo=Symbol("checked");let Bl=0;const Ml=Wt(gt(Ne(Ma(y))));class Xt extends Ml{get checked(){return this[lo]}set checked(e){const t=this.checked;t!==e&&(this[lo]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++Bl}`,this[Fa]=!1,this.required=!1,this.value="on",this.selectionController=new Rl(this),this.addController(this.selectionController),this[U].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e={checked:this.checked};return c`
|
|
1110
1110
|
<div class="container ${L(e)}" aria-hidden="true">
|
|
1111
1111
|
<md-ripple
|
|
1112
1112
|
part="ripple"
|
|
@@ -1135,7 +1135,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1135
1135
|
.value=${this.value}
|
|
1136
1136
|
?disabled=${this.disabled} />
|
|
1137
1137
|
</div>
|
|
1138
|
-
`}updated(){this[U].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(Ut(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(Fa=lo,Ce)](){return this.checked?this.value:null}[
|
|
1138
|
+
`}updated(){this[U].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(Ut(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(Fa=lo,Ce)](){return this.checked?this.value:null}[Kt](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[rt](){return new Dl(()=>this.selectionController?this.selectionController.controls:[this])}[ot](){return this.container}}d([l({type:Boolean})],Xt.prototype,"checked",null),d([l({type:Boolean})],Xt.prototype,"required",void 0),d([l()],Xt.prototype,"value",void 0),d([k(".container")],Xt.prototype,"container",void 0);/**
|
|
1139
1139
|
* @license
|
|
1140
1140
|
* Copyright 2024 Google LLC
|
|
1141
1141
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1148,7 +1148,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1148
1148
|
* @license
|
|
1149
1149
|
* Copyright 2023 Google LLC
|
|
1150
1150
|
* SPDX-License-Identifier: Apache-2.0
|
|
1151
|
-
*/const
|
|
1151
|
+
*/const Gi=Symbol("onReportValidity"),Yi=Symbol("privateCleanupFormListeners"),Xi=Symbol("privateDoNotReportInvalid"),Zi=Symbol("privateIsSelfReportingValidity"),Ji=Symbol("privateCallOnReportValidity");function Ha(o){var e,t,i;class r extends o{constructor(...n){super(...n),this[e]=new AbortController,this[t]=!1,this[i]=!1,this.addEventListener("invalid",h=>{this[Xi]||!h.isTrusted||this.addEventListener("invalid",()=>{this[Ji](h)},{once:!0})},{capture:!0})}checkValidity(){this[Xi]=!0;const n=super.checkValidity();return this[Xi]=!1,n}reportValidity(){this[Zi]=!0;const n=super.reportValidity();return n&&this[Ji](null),this[Zi]=!1,n}[(e=Yi,t=Xi,i=Zi,Ji)](n){const h=n==null?void 0:n.defaultPrevented;h||(this[Gi](n),!(!h&&(n==null?void 0:n.defaultPrevented)))||(this[Zi]||ql(this[U].form,this))&&this.focus()}[Gi](n){throw new Error("Implement [onReportValidity]")}formAssociatedCallback(n){super.formAssociatedCallback&&super.formAssociatedCallback(n),this[Yi].abort(),n&&(this[Yi]=new AbortController,Hl(this,n,()=>{this[Ji](null)},this[Yi].signal))}}return r}function Hl(o,e,t,i){const r=Nl(e);let s=!1,n,h=!1;r.addEventListener("before",()=>{h=!0,n=new AbortController,s=!1,o.addEventListener("invalid",()=>{s=!0},{signal:n.signal})},{signal:i}),r.addEventListener("after",()=>{h=!1,n==null||n.abort(),!s&&t()},{signal:i}),e.addEventListener("submit",()=>{h||t()},{signal:i})}const ho=new WeakMap;function Nl(o){if(!ho.has(o)){const e=new EventTarget;ho.set(o,e);for(const t of["reportValidity","requestSubmit"]){const i=o[t];o[t]=function(){e.dispatchEvent(new Event("before"));const r=Reflect.apply(i,this,arguments);return e.dispatchEvent(new Event("after")),r}}}return ho.get(o)}function ql(o,e){if(!o)return!0;let t;for(const i of o.elements)if(i.matches(":invalid")){t=i;break}return t===e}/**
|
|
1152
1152
|
* @license
|
|
1153
1153
|
* Copyright 2023 Google LLC
|
|
1154
1154
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1160,7 +1160,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1160
1160
|
* @license
|
|
1161
1161
|
* Copyright 2023 Google LLC
|
|
1162
1162
|
* SPDX-License-Identifier: Apache-2.0
|
|
1163
|
-
*/var Na;const Qi=Symbol("value"),jl=Ha(Wt(
|
|
1163
|
+
*/var Na;const Qi=Symbol("value"),jl=Ha(Wt(gt(Ne(y))));class P extends jl{get value(){return this[Qi]}set value(e){this.lastUserSetValue=e,this.select(e)}get options(){var e;return((e=this.menu)==null?void 0:e.items)??[]}get selectedIndex(){const[e,t]=(this.getSelectedOptions()??[])[0]??[];return t??-1}set selectedIndex(e){this.lastUserSetSelectedIndex=e,this.selectIndex(e)}get selectedOptions(){return(this.getSelectedOptions()??[]).map(([e])=>e)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=Pa,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[Na]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=ve.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(e){const t=this.options.find(i=>i.value===e);t&&this.selectItem(t)}selectIndex(e){const t=this.options[e];t&&this.selectItem(t)}reset(){for(const e of this.options)e.selected=e.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(Na=Qi,Gi)](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){const t=this.getBoundingClientRect();this.selectWidth=t.width}this.prevOpen=this.open,super.update(e)}render(){return c`
|
|
1164
1164
|
<span
|
|
1165
1165
|
class="select ${L(this.getRenderClasses())}"
|
|
1166
1166
|
@focusout=${this.handleFocusout}>
|
|
@@ -1242,7 +1242,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1242
1242
|
@request-deselection=${this.handleRequestDeselection}>
|
|
1243
1243
|
${this.renderMenuContent()}
|
|
1244
1244
|
</md-menu>
|
|
1245
|
-
</div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var s,n;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ve.NONE;break;case"End":this.defaultFocus=ve.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ve.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(n=(s=this.labelEl)==null?void 0:s.setAttribute)==null||n.call(s,"aria-live","polite"),this.selectItem(h[le.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&to(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Ul(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[Qi]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Qi]="",this.displayText="";return t}async handleOpening(e){var s,n,h;if((n=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||n.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ve.NONE)return;const t=this.menu.items,i=(h=
|
|
1245
|
+
</div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var s,n;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ve.NONE;break;case"End":this.defaultFocus=ve.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ve.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(n=(s=this.labelEl)==null?void 0:s.setAttribute)==null||n.call(s,"aria-live","polite"),this.selectItem(h[le.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&to(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Ul(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[Qi]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Qi]="",this.displayText="";return t}async handleOpening(e){var s,n,h;if((n=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||n.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ve.NONE)return;const t=this.menu.items,i=(h=_t(t))==null?void 0:h.item;let[r]=this.lastSelectedOptionRecords[0]??[null];i&&i!==r&&(i.tabIndex=-1),r=r??t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){qe(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,i=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind==="click-selection"?r=this.selectItem(i):t.kind==="keydown"&&$l(t.key)?r=this.selectItem(i):(i.tabIndex=-1,i.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([i])=>{e!==i&&(i.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[Ce](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[rt](){return new Vl(()=>this)}[ot](){return this.field}}Z(P),P.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],P.prototype,"quick",void 0),d([l({type:Boolean})],P.prototype,"required",void 0),d([l({type:String,attribute:"error-text"})],P.prototype,"errorText",void 0),d([l()],P.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],P.prototype,"noAsterisk",void 0),d([l({type:String,attribute:"supporting-text"})],P.prototype,"supportingText",void 0),d([l({type:Boolean,reflect:!0})],P.prototype,"error",void 0),d([l({attribute:"menu-positioning"})],P.prototype,"menuPositioning",void 0),d([l({type:Boolean,attribute:"clamp-menu-width"})],P.prototype,"clampMenuWidth",void 0),d([l({type:Number,attribute:"typeahead-delay"})],P.prototype,"typeaheadDelay",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],P.prototype,"hasLeadingIcon",void 0),d([l({attribute:"display-text"})],P.prototype,"displayText",void 0),d([l({attribute:"menu-align"})],P.prototype,"menuAlign",void 0),d([l()],P.prototype,"value",null),d([l({type:Number,attribute:"selected-index"})],P.prototype,"selectedIndex",null),d([w()],P.prototype,"nativeError",void 0),d([w()],P.prototype,"nativeErrorText",void 0),d([w()],P.prototype,"focused",void 0),d([w()],P.prototype,"open",void 0),d([w()],P.prototype,"defaultFocus",void 0),d([k(".field")],P.prototype,"field",void 0),d([k("md-menu")],P.prototype,"menu",void 0),d([k("#label")],P.prototype,"labelEl",void 0),d([K({slot:"leading-icon",flatten:!0})],P.prototype,"leadingIcons",void 0);/**
|
|
1246
1246
|
* @license
|
|
1247
1247
|
* Copyright 2023 Google LLC
|
|
1248
1248
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1250,7 +1250,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1250
1250
|
* @license
|
|
1251
1251
|
* Copyright 2024 Google LLC
|
|
1252
1252
|
* SPDX-License-Identifier: Apache-2.0
|
|
1253
|
-
*/const Gl=b`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1253
|
+
*/const Kl=b`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1254
1254
|
`;/**
|
|
1255
1255
|
* @license
|
|
1256
1256
|
* Copyright 2024 Google LLC
|
|
@@ -1260,11 +1260,11 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1260
1260
|
* @license
|
|
1261
1261
|
* Copyright 2023 Google LLC
|
|
1262
1262
|
* SPDX-License-Identifier: Apache-2.0
|
|
1263
|
-
*/let po=class extends Wl{};po.styles=[qa,
|
|
1263
|
+
*/let po=class extends Wl{};po.styles=[qa,Kl],po=d([f("md-filled-select")],po);/**
|
|
1264
1264
|
* @license
|
|
1265
1265
|
* Copyright 2023 Google LLC
|
|
1266
1266
|
* SPDX-License-Identifier: Apache-2.0
|
|
1267
|
-
*/class
|
|
1267
|
+
*/class Gl extends P{constructor(){super(...arguments),this.fieldTag=J`md-outlined-field`}}/**
|
|
1268
1268
|
* @license
|
|
1269
1269
|
* Copyright 2024 Google LLC
|
|
1270
1270
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1273,7 +1273,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1273
1273
|
* @license
|
|
1274
1274
|
* Copyright 2023 Google LLC
|
|
1275
1275
|
* SPDX-License-Identifier: Apache-2.0
|
|
1276
|
-
*/let uo=class extends
|
|
1276
|
+
*/let uo=class extends Gl{};uo.styles=[qa,Yl],uo=d([f("md-outlined-select")],uo);/**
|
|
1277
1277
|
* @license
|
|
1278
1278
|
* Copyright 2023 Google LLC
|
|
1279
1279
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1319,7 +1319,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1319
1319
|
<slot
|
|
1320
1320
|
name="trailing-supporting-text"
|
|
1321
1321
|
slot="trailing-supporting-text"></slot>
|
|
1322
|
-
`}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Z(ee),ee.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],ee.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"md-menu-item",reflect:!0})],ee.prototype,"isMenuItem",void 0),d([l({type:Boolean})],ee.prototype,"selected",void 0),d([l()],ee.prototype,"value",void 0),d([k(".list-item")],ee.prototype,"listItemRoot",void 0),d([
|
|
1322
|
+
`}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Z(ee),ee.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],ee.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"md-menu-item",reflect:!0})],ee.prototype,"isMenuItem",void 0),d([l({type:Boolean})],ee.prototype,"selected",void 0),d([l()],ee.prototype,"value",void 0),d([k(".list-item")],ee.prototype,"listItemRoot",void 0),d([K({slot:"headline"})],ee.prototype,"headlineElements",void 0),d([K({slot:"supporting-text"})],ee.prototype,"supportingTextElements",void 0),d([wr({slot:""})],ee.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],ee.prototype,"typeaheadText",null),d([l({attribute:"display-text"})],ee.prototype,"displayText",null);/**
|
|
1323
1323
|
* @license
|
|
1324
1324
|
* Copyright 2023 Google LLC
|
|
1325
1325
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1336,7 +1336,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1336
1336
|
* @license
|
|
1337
1337
|
* Copyright 2023 Google LLC
|
|
1338
1338
|
* SPDX-License-Identifier: Apache-2.0
|
|
1339
|
-
*/const ec=
|
|
1339
|
+
*/const ec=gt(Ne(y));class A extends ec{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!Ut(e)||!this.inputEnd||(this.focus(),xi(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=tc(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},n={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},g={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},m={start:!0,hover:this.handleStartHover,label:h},_={start:!1,hover:this.handleEndHover,label:p},x={hover:this.handleStartHover||this.handleEndHover};return c` <div
|
|
1340
1340
|
class="container ${L(n)}"
|
|
1341
1341
|
style=${nt(s)}>
|
|
1342
1342
|
${mo(this.range,()=>this.renderInput(v))}
|
|
@@ -1405,7 +1405,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1405
1405
|
* @license
|
|
1406
1406
|
* Copyright 2021 Google LLC
|
|
1407
1407
|
* SPDX-License-Identifier: Apache-2.0
|
|
1408
|
-
*/const ac=Wt(
|
|
1408
|
+
*/const ac=Wt(gt(Ne(y)));class Ie extends ac{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!Ut(e)||!this.input||(this.focus(),xi(this.input))}),oc(this,"keydown"),this.addEventListener("keydown",e=>{rc(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
|
|
1409
1409
|
<div class="switch ${L(this.getRenderClasses())}">
|
|
1410
1410
|
<input
|
|
1411
1411
|
id="switch"
|
|
@@ -1449,7 +1449,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1449
1449
|
d="M6.4 19.2 4.8 17.6 10.4 12 4.8 6.4 6.4 4.8 12 10.4 17.6 4.8 19.2 6.4 13.6 12 19.2 17.6 17.6 19.2 12 13.6Z" />
|
|
1450
1450
|
</svg>
|
|
1451
1451
|
</slot>
|
|
1452
|
-
`}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){qe(this,e)}[Ce](){return this.selected?this.value:null}[
|
|
1452
|
+
`}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){qe(this,e)}[Ce](){return this.selected?this.value:null}[Kt](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[rt](){return new da(()=>({checked:this.selected,required:this.required}))}[ot](){return this.input}}Z(Ie),Ie.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean})],Ie.prototype,"selected",void 0),d([l({type:Boolean})],Ie.prototype,"icons",void 0),d([l({type:Boolean,attribute:"show-only-selected-icon"})],Ie.prototype,"showOnlySelectedIcon",void 0),d([l({type:Boolean})],Ie.prototype,"required",void 0),d([l()],Ie.prototype,"value",void 0),d([k("input")],Ie.prototype,"input",void 0);/**
|
|
1453
1453
|
* @license
|
|
1454
1454
|
* Copyright 2024 Google LLC
|
|
1455
1455
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1462,7 +1462,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1462
1462
|
* @license
|
|
1463
1463
|
* Copyright 2023 Google LLC
|
|
1464
1464
|
* SPDX-License-Identifier: Apache-2.0
|
|
1465
|
-
*/var Wa;const
|
|
1465
|
+
*/var Wa;const wt=Symbol("indicator"),Ka=Symbol("animateIndicator"),lc=Ma(y);class me extends lc{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e=c`<div class="indicator"></div>`;return c`<div
|
|
1466
1466
|
class="button"
|
|
1467
1467
|
role="presentation"
|
|
1468
1468
|
@click=${this.handleContentClick}>
|
|
@@ -1477,11 +1477,11 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1477
1477
|
${this.fullWidthIndicator?u:e}
|
|
1478
1478
|
</div>
|
|
1479
1479
|
${this.fullWidthIndicator?e:u}
|
|
1480
|
-
</div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(Wa=
|
|
1480
|
+
</div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(Wa=wt,Ka)](e){if(!this[wt])return;this[wt].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[wt].animate(t,{duration:250,easing:pe.EMPHASIZED})}getKeyframes(e){var m;const t=cc();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((m=e[wt])==null?void 0:m.getBoundingClientRect())??{},s=r.left,n=r.width,h=this[wt].getBoundingClientRect(),p=h.left,v=h.width,g=n/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(g)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${g.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([l({type:Boolean,reflect:!0,attribute:"md-tab"})],me.prototype,"isTab",void 0),d([l({type:Boolean,reflect:!0})],me.prototype,"active",void 0),d([l({type:Boolean})],me.prototype,"selected",null),d([l({type:Boolean,attribute:"has-icon"})],me.prototype,"hasIcon",void 0),d([l({type:Boolean,attribute:"icon-only"})],me.prototype,"iconOnly",void 0),d([k(".indicator")],me.prototype,Wa,void 0),d([w()],me.prototype,"fullWidthIndicator",void 0),d([wr({flatten:!0})],me.prototype,"assignedDefaultNodes",void 0),d([K({slot:"icon",flatten:!0})],me.prototype,"assignedIcons",void 0);function cc(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
|
|
1481
1481
|
* @license
|
|
1482
1482
|
* Copyright 2023 Google LLC
|
|
1483
1483
|
* SPDX-License-Identifier: Apache-2.0
|
|
1484
|
-
*/class
|
|
1484
|
+
*/class Ga extends me{constructor(){super(...arguments),this.inlineIcon=!1}getContentClasses(){return{...super.getContentClasses(),stacked:!this.inlineIcon}}}d([l({type:Boolean,attribute:"inline-icon"})],Ga.prototype,"inlineIcon",void 0);/**
|
|
1485
1485
|
* @license
|
|
1486
1486
|
* Copyright 2024 Google LLC
|
|
1487
1487
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1495,7 +1495,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1495
1495
|
* @license
|
|
1496
1496
|
* Copyright 2023 Google LLC
|
|
1497
1497
|
* SPDX-License-Identifier: Apache-2.0
|
|
1498
|
-
*/let Zt=class extends
|
|
1498
|
+
*/let Zt=class extends Ga{};Zt.styles=[Ya,dc],Zt=d([f("md-primary-tab")],Zt);/**
|
|
1499
1499
|
* @license
|
|
1500
1500
|
* Copyright 2023 Google LLC
|
|
1501
1501
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1512,14 +1512,14 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1512
1512
|
* @license
|
|
1513
1513
|
* Copyright 2023 Google LLC
|
|
1514
1514
|
* SPDX-License-Identifier: Apache-2.0
|
|
1515
|
-
*/class
|
|
1515
|
+
*/class St extends y{get activeTab(){return this.tabs.find(e=>e.active)??null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex(e=>e.active)}set activeTabIndex(e){const t=()=>{const i=this.tabs[e];i&&this.activateTab(i)};if(!this.slotElement){this.updateComplete.then(t);return}t()}get focusedTab(){return this.tabs.find(e=>e.matches(":focus-within"))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}async scrollToTab(e){await this.updateComplete;const{tabs:t}=this;if(e??(e=this.activeTab),!e||!t.includes(e)||!this.tabsScrollerElement)return;for(const _ of this.tabs)await _.updateComplete;const i=e.offsetLeft,r=e.offsetWidth,s=this.scrollLeft,n=this.offsetWidth,h=48,p=i-h,v=i+r-n+h,g=Math.min(p,Math.max(v,s)),m=this.focusedTab?"auto":"instant";this.tabsScrollerElement.scrollTo({behavior:m,top:0,left:g})}render(){return c`
|
|
1516
1516
|
<div class="tabs">
|
|
1517
1517
|
<slot
|
|
1518
1518
|
@slotchange=${this.handleSlotChange}
|
|
1519
1519
|
@click=${this.handleTabClick}></slot>
|
|
1520
1520
|
</div>
|
|
1521
1521
|
<md-divider part="divider"></md-divider>
|
|
1522
|
-
`}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!uc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[
|
|
1522
|
+
`}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!uc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[Ka](i)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(const t of this.tabs)t.tabIndex=t===e?0:-1}async handleKeydown(e){await 0;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(e.defaultPrevented||!t&&!i&&!r&&!s)return;const{tabs:n}=this;if(n.length<2)return;e.preventDefault();let h;if(r||s)h=r?0:n.length-1;else{const g=getComputedStyle(this).direction==="rtl"?t:i,{focusedTab:m}=this;if(!m)h=g?0:n.length-1;else{const _=this.tabs.indexOf(m);h=g?_+1:_-1,h>=n.length?h=0:h<0&&(h=n.length-1)}}const p=n[h];p.focus(),this.autoActivate?this.activateTab(p):this.updateFocusableTab(p)}handleKeyup(){this.scrollToTab(this.focusedTab??this.activeTab)}handleFocusout(){if(this.matches(":focus-within"))return;const{activeTab:e}=this;e&&this.updateFocusableTab(e)}handleSlotChange(){const e=this.tabs[0];!this.activeTab&&e&&this.activateTab(e),this.scrollToTab(this.activeTab)}}d([K({flatten:!0,selector:"[md-tab]"})],St.prototype,"tabs",void 0),d([l({type:Number,attribute:"active-tab-index"})],St.prototype,"activeTabIndex",null),d([l({type:Boolean,attribute:"auto-activate"})],St.prototype,"autoActivate",void 0),d([k(".tabs")],St.prototype,"tabsScrollerElement",void 0),d([k("slot")],St.prototype,"slotElement",void 0);function uc(o){return o instanceof HTMLElement&&o.hasAttribute("md-tab")}/**
|
|
1523
1523
|
* @license
|
|
1524
1524
|
* Copyright 2024 Google LLC
|
|
1525
1525
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1528,7 +1528,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1528
1528
|
* @license
|
|
1529
1529
|
* Copyright 2023 Google LLC
|
|
1530
1530
|
* SPDX-License-Identifier: Apache-2.0
|
|
1531
|
-
*/let Qt=class extends
|
|
1531
|
+
*/let Qt=class extends St{};Qt.styles=[vc],Qt=d([f("md-tabs")],Qt);/**
|
|
1532
1532
|
* @license
|
|
1533
1533
|
* Copyright 2024 Google LLC
|
|
1534
1534
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1553,7 +1553,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1553
1553
|
* @license
|
|
1554
1554
|
* Copyright 2021 Google LLC
|
|
1555
1555
|
* SPDX-License-Identifier: Apache-2.0
|
|
1556
|
-
*/const xc=Ha(Wt(
|
|
1556
|
+
*/const xc=Ha(Wt(gt(Ne(y))));class $ extends xc{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,i){this.getInputOrTextarea().setSelectionRange(e,t,i)}stepDown(e){const t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){const t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,i){e==="value"&&this.dirty||super.attributeChangedCallback(e,t,i)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
|
|
1557
1557
|
<span class="text-field ${L(e)}">
|
|
1558
1558
|
${this.renderField()}
|
|
1559
1559
|
</span>
|
|
@@ -1641,7 +1641,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1641
1641
|
@select=${this.redispatchEvent} />
|
|
1642
1642
|
${h}
|
|
1643
1643
|
</div>
|
|
1644
|
-
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${L({suffix:t,prefix:!t})}">${e}</span>`:u}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.matches(":focus"))??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){qe(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Ce](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[rt](){return new _c(()=>({state:this,renderedControl:this.inputOrTextarea}))}[ot](){return this.inputOrTextarea}[
|
|
1644
|
+
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${L({suffix:t,prefix:!t})}">${e}</span>`:u}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.matches(":focus"))??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){qe(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Ce](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[rt](){return new _c(()=>({state:this,renderedControl:this.inputOrTextarea}))}[ot](){return this.inputOrTextarea}[Gi](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}}Z($),$.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],$.prototype,"error",void 0),d([l({attribute:"error-text"})],$.prototype,"errorText",void 0),d([l()],$.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],$.prototype,"noAsterisk",void 0),d([l({type:Boolean,reflect:!0})],$.prototype,"required",void 0),d([l()],$.prototype,"value",void 0),d([l({attribute:"prefix-text"})],$.prototype,"prefixText",void 0),d([l({attribute:"suffix-text"})],$.prototype,"suffixText",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],$.prototype,"hasLeadingIcon",void 0),d([l({type:Boolean,attribute:"has-trailing-icon"})],$.prototype,"hasTrailingIcon",void 0),d([l({attribute:"supporting-text"})],$.prototype,"supportingText",void 0),d([l({attribute:"text-direction"})],$.prototype,"textDirection",void 0),d([l({type:Number})],$.prototype,"rows",void 0),d([l({type:Number})],$.prototype,"cols",void 0),d([l({reflect:!0})],$.prototype,"inputMode",void 0),d([l()],$.prototype,"max",void 0),d([l({type:Number})],$.prototype,"maxLength",void 0),d([l()],$.prototype,"min",void 0),d([l({type:Number})],$.prototype,"minLength",void 0),d([l({type:Boolean,attribute:"no-spinner"})],$.prototype,"noSpinner",void 0),d([l()],$.prototype,"pattern",void 0),d([l({reflect:!0,converter:yc})],$.prototype,"placeholder",void 0),d([l({type:Boolean,reflect:!0})],$.prototype,"readOnly",void 0),d([l({type:Boolean,reflect:!0})],$.prototype,"multiple",void 0),d([l()],$.prototype,"step",void 0),d([l({reflect:!0})],$.prototype,"type",void 0),d([l({reflect:!0})],$.prototype,"autocomplete",void 0),d([w()],$.prototype,"dirty",void 0),d([w()],$.prototype,"focused",void 0),d([w()],$.prototype,"nativeError",void 0),d([w()],$.prototype,"nativeErrorText",void 0),d([k(".input")],$.prototype,"inputOrTextarea",void 0),d([k(".field")],$.prototype,"field",void 0),d([K({slot:"leading-icon"})],$.prototype,"leadingIcons",void 0),d([K({slot:"trailing-icon"})],$.prototype,"trailingIcons",void 0);/**
|
|
1645
1645
|
* @license
|
|
1646
1646
|
* Copyright 2021 Google LLC
|
|
1647
1647
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1839,7 +1839,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1839
1839
|
<div class="scb-accordion" ?detached=${this.detached}>
|
|
1840
1840
|
<slot></slot>
|
|
1841
1841
|
</div>
|
|
1842
|
-
`}},Ja([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=Ja([f("scb-accordion")],a.ScbAccordion);var Ic=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,
|
|
1842
|
+
`}},Ja([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=Ja([f("scb-accordion")],a.ScbAccordion);var Ic=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,ye=(o,e,t,i)=>{for(var r=i>1?void 0:i?zc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ic(e,t,r),r};a.ScbButton=class extends y{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>xn);break;case"outlined":await Promise.resolve().then(()=>En);break;case"filled-tonal":await Promise.resolve().then(()=>kn);break;case"text":await Promise.resolve().then(()=>zn);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Y),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",n=i||r||s;n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(g=>{const m=this.__getMdHost(),_=this.__getInnerNativeButton(m);if(!(!m||!_)){for(const x of g){if(x.type!=="attributes"||!x.attributeName)continue;const S=x.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const z=(m.getAttribute("aria-label")||"").trim(),T=(C||z||(this.label.trim()===""?(this.icon||"").trim():"")).trim();T?_.setAttribute("aria-label",T):_.removeAttribute("aria-label"),m.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?_.removeAttribute(S):_.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}m.removeAttribute("aria-label"),m.removeAttribute("aria-controls"),m.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(e){(e.has("variant")||e.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return b`
|
|
1843
1843
|
/* Gör hosten stretchbar i t.ex. flex/grid */
|
|
1844
1844
|
:host {
|
|
1845
1845
|
display: inline-flex;
|
|
@@ -1958,7 +1958,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
1958
1958
|
${this.label}
|
|
1959
1959
|
${e&&this.trailingIcon?t:u}
|
|
1960
1960
|
</md-text-button>
|
|
1961
|
-
`;default:return c``}}},
|
|
1961
|
+
`;default:return c``}}},ye([l({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),ye([l({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),ye([l({type:String})],a.ScbButton.prototype,"label",2),ye([l({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),ye([l({type:String})],a.ScbButton.prototype,"icon",2),ye([l({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),ye([l({type:String})],a.ScbButton.prototype,"href",2),ye([l({type:String})],a.ScbButton.prototype,"target",2),ye([l({type:String})],a.ScbButton.prototype,"rel",2),a.ScbButton=ye([f("scb-button")],a.ScbButton);const Tc=Object.freeze(Object.defineProperty({__proto__:null,get ScbButton(){return a.ScbButton}},Symbol.toStringTag,{value:"Module"}));var Oc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,_e=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Oc(e,t,r),r};a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=1,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this.handleEventElement=e=>{var s;const r=(s=e.currentTarget.parentElement.shadowRoot)==null?void 0:s.querySelector(".scb-tooltip");r&&(e.type==="mouseenter"?(this._hoverActive=!0,this.openTooltip(r)):e.type==="mouseleave"?(this._hoverActive=!1,this._clickActive||(this.closeTooltip(r),this.addHidden(r))):e.type==="click"&&(this._clickActive=!this._clickActive,this._clickActive?this.openTooltip(r):this._hoverActive||(this.closeTooltip(r),this.addHidden(r))))}}render(){const e=this.arrow?c`<svg class="scb-tooltip-arrow" xmlns="http://www.w3.org/2000/svg" width="13" height="6" viewBox="0 0 13 6" fill="none">
|
|
1962
1962
|
<path d="M6.5 6L0.5 0H12.5L6.5 6Z" fill="var(--md-sys-color-inverse-surface, #0F0865)" />
|
|
1963
1963
|
</svg>`:u;return this.variant==="rich"?c`
|
|
1964
1964
|
<div class="scb-tooltip hidden" role="tooltip" aria-label=${this.label||this.supportingtext}>
|
|
@@ -2172,7 +2172,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
2172
2172
|
opacity:1;
|
|
2173
2173
|
visibility: visible;
|
|
2174
2174
|
}
|
|
2175
|
-
`],
|
|
2175
|
+
`],_e([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"variant",2),_e([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"arrow",2),_e([l({type:String,attribute:"supporting-text"})],a.ScbTooltip.prototype,"supportingtext",2),_e([l({type:String})],a.ScbTooltip.prototype,"label",2),_e([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"trigger",2),_e([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"position",2),_e([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"open",2),_e([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"delay",2),_e([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"offset",2),a.ScbTooltip=_e([f("scb-tooltip")],a.ScbTooltip);var Lc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lc(e,t,r),r};a.ScbIconButton=class extends y{constructor(){super(...arguments),this.ariaLabel="",this.tooltip="",this.variant="standard",this.icon="home",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncAria()}updated(e){super.updated(e),e.has("variant")||e.has("toggle")||e.has("icon")||e.has("ariaLabel")||e.has("selected")||e.has("disabled")||e.has("tooltip")?this.__ensureDepsLoaded().then(()=>queueMicrotask(()=>{this.__attachChangeListener(),this.__syncAria()})):queueMicrotask(()=>this.__attachChangeListener())}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),(t=(e=this.__lastBtn)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastBtn=null,(i=this.__ariaObserver)==null||i.disconnect()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>sl);break;case"outlined":await Promise.resolve().then(()=>pl);break;case"filled-tonal":await Promise.resolve().then(()=>ll);break;default:await Promise.resolve().then(()=>dl);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Y),this.__iconLoaded=!0)}__getMdHost(){const e=this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");if(e)return e;const t=this.renderRoot.querySelector("scb-tooltip");if(t){const i=t.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");if(i)return i}return null}__getInnerButton(e){const t=e==null?void 0:e.shadowRoot;return t?t.querySelector("button")||t.querySelector('[role="button"]'):null}__stripNativeTitles(e){if(!e)return;e.removeAttribute("title");const t=this.__getInnerButton(e);t==null||t.removeAttribute("title");const i=e.shadowRoot;i&&i.querySelectorAll("[title]").forEach(r=>r.removeAttribute("title"))}__syncAria(){var n;const e=this.__getMdHost();if(!e)return;const t=this.__getInnerButton(e),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim()||this.icon.trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");t&&(i?t.setAttribute("aria-label",i):t.removeAttribute("aria-label"),r!==null?t.setAttribute("aria-controls",r):t.removeAttribute("aria-controls"),s!==null?t.setAttribute("aria-expanded",s):t.removeAttribute("aria-expanded"),t.removeAttribute("title")),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),e.removeAttribute("title"),this.hasAttribute("aria-label")&&this.removeAttribute("aria-label"),this.hasAttribute("aria-controls")&&this.removeAttribute("aria-controls"),this.hasAttribute("aria-expanded")&&this.removeAttribute("aria-expanded"),this.__stripNativeTitles(e),(n=this.__ariaObserver)==null||n.disconnect(),this.__ariaObserver=new MutationObserver(()=>{const h=this.__getMdHost(),p=this.__getInnerButton(h);if(!h||!p)return;const v=(this.ariaLabel||this.getAttribute("aria-label")||"").trim()||this.icon.trim(),g=this.getAttribute("aria-controls"),m=this.getAttribute("aria-expanded");v?p.setAttribute("aria-label",v):p.removeAttribute("aria-label"),g!==null?p.setAttribute("aria-controls",g):p.removeAttribute("aria-controls"),m!==null?p.setAttribute("aria-expanded",m):p.removeAttribute("aria-expanded"),this.__stripNativeTitles(h),h.removeAttribute("aria-label"),h.removeAttribute("aria-controls"),h.removeAttribute("aria-expanded"),h.removeAttribute("title"),this.hasAttribute("aria-label")&&this.removeAttribute("aria-label"),this.hasAttribute("aria-controls")&&this.removeAttribute("aria-controls"),this.hasAttribute("aria-expanded")&&this.removeAttribute("aria-expanded")}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastBtn&&((i=(t=this.__lastBtn)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastBtn=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected),this.__stripNativeTitles(e||null)}__renderMd(e=!1){const t=!!e,i=c`
|
|
2176
2176
|
<md-icon aria-hidden="true">${this.toggleofficon}</md-icon>
|
|
2177
2177
|
<md-icon slot="selected" aria-hidden="true">${this.toggleonicon}</md-icon>
|
|
2178
2178
|
`,r=c`<md-icon aria-hidden="true">${this.icon}</md-icon>`;if(this.toggle)switch(this.variant){case"filled":return c`
|
|
@@ -2230,7 +2230,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
2230
2230
|
>
|
|
2231
2231
|
${this.__renderMd(!0)}
|
|
2232
2232
|
</scb-tooltip>
|
|
2233
|
-
`:this.__renderMd(!1)}},a.ScbIconButton.styles=b``,
|
|
2233
|
+
`:this.__renderMd(!1)}},a.ScbIconButton.styles=b``,xe([l({type:String,attribute:"aria-label"})],a.ScbIconButton.prototype,"ariaLabel",2),xe([l({type:String})],a.ScbIconButton.prototype,"tooltip",2),xe([l({type:String})],a.ScbIconButton.prototype,"variant",2),xe([l({type:String})],a.ScbIconButton.prototype,"icon",2),xe([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"toggle",2),xe([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"selected",2),xe([l({type:String})],a.ScbIconButton.prototype,"toggleofficon",2),xe([l({type:String})],a.ScbIconButton.prototype,"toggleonicon",2),xe([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"disabled",2),a.ScbIconButton=xe([f("scb-icon-button")],a.ScbIconButton);const Qa=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return a.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var Rc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,es=o=>{throw TypeError(o)},B=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Rc(e,t,r),r},yo=(o,e,t)=>e.has(o)||es("Cannot "+t),tr=(o,e,t)=>(yo(o,e,"read from private field"),t?t.call(o):e.get(o)),ti=(o,e,t)=>e.has(o)?es("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),_o=(o,e,t,i)=>(yo(o,e,"write to private field"),e.set(o,t),t),ts=(o,e,t)=>(yo(o,e,"access private method"),t),ir,rr,or,ar,xo,wo;a.ScbListItem=class extends y{constructor(){super(...arguments),ti(this,ar),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,ti(this,ir,!1),ti(this,rr,!1),ti(this,or,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},ti(this,wo,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return b`
|
|
2234
2234
|
:host {
|
|
2235
2235
|
border-bottom: var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant);
|
|
2236
2236
|
margin-bottom: calc(var(--stroke-border, 1px) * -1);
|
|
@@ -2396,7 +2396,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
2396
2396
|
:host([no-divider]) ::slotted(scb-list-item) {
|
|
2397
2397
|
--stroke-border: 0px;
|
|
2398
2398
|
}
|
|
2399
|
-
`],So([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),So([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=So([f("scb-list")],a.ScbList);var Vc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,
|
|
2399
|
+
`],So([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),So([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=So([f("scb-list")],a.ScbList);var Vc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,kt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Uc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vc(e,t,r),r};let jc=0;a.ScbSearch=class extends y{constructor(){super(...arguments),this.supportingText="Hinted search text",this.value="",this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++jc}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)}}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0))}updated(){this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener()}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
|
|
2400
2400
|
<div class="ripple-wrapper">
|
|
2401
2401
|
<md-icon class="leading">${e?"arrow_back":"search"}</md-icon>
|
|
2402
2402
|
|
|
@@ -2617,7 +2617,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
2617
2617
|
@media (prefers-color-scheme: dark) {
|
|
2618
2618
|
:host { color: var(--md-sys-color-on-surface); }
|
|
2619
2619
|
}
|
|
2620
|
-
`,
|
|
2620
|
+
`,kt([l({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),kt([l({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),kt([l({type:String})],a.ScbSearch.prototype,"value",2),kt([l({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),kt([l({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=kt([f("scb-search")],a.ScbSearch);const Wc=Object.freeze(Object.defineProperty({__proto__:null,get ScbSearch(){return a.ScbSearch}},Symbol.toStringTag,{value:"Module"}));var Kc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,we=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kc(e,t,r),r};a.ScbAvatar=class extends y{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>Y)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
|
|
2621
2621
|
<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
|
|
2622
2622
|
${this._hasIconSlot?u:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
|
|
2623
2623
|
`,r=t?c`<img class="photo" part="image" src=${this.src} alt=${this.alt}
|
|
@@ -2714,7 +2714,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
2714
2714
|
outline-offset: 2px;
|
|
2715
2715
|
border-radius: var(--_radius);
|
|
2716
2716
|
}
|
|
2717
|
-
`,
|
|
2717
|
+
`,we([l({type:String})],a.ScbAvatar.prototype,"src",2),we([l({type:String})],a.ScbAvatar.prototype,"alt",2),we([l({type:String})],a.ScbAvatar.prototype,"label",2),we([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"size",2),we([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"shape",2),we([l({type:String,attribute:"icon-name",reflect:!0})],a.ScbAvatar.prototype,"iconName",2),we([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"variant",2),we([w()],a.ScbAvatar.prototype,"_imgError",2),we([w()],a.ScbAvatar.prototype,"_hasIconSlot",2),a.ScbAvatar=we([f("scb-avatar")],a.ScbAvatar);var Yc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yc(e,t,r),r};a.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
|
|
2718
2718
|
<header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
|
|
2719
2719
|
<div class="leading">
|
|
2720
2720
|
<slot name="leading"></slot>
|
|
@@ -3766,7 +3766,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
3766
3766
|
.lbl { color: var(--md-sys-color-on-surface); }
|
|
3767
3767
|
.supporting-text { color: var(--md-sys-color-on-surface-variant); }
|
|
3768
3768
|
}
|
|
3769
|
-
`,dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),dt([l({type:String})],a.ScbCheckbox.prototype,"label",2),dt([l({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),dt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),a.ScbCheckbox=dt([f("scb-checkbox")],a.ScbCheckbox);const ns=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var gd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,
|
|
3769
|
+
`,dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),dt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),dt([l({type:String})],a.ScbCheckbox.prototype,"label",2),dt([l({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),dt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),a.ScbCheckbox=dt([f("scb-checkbox")],a.ScbCheckbox);const ns=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var gd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,Se=(o,e,t,i)=>{for(var r=i>1?void 0:i?yd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gd(e,t,r),r};a.ScbChip=class extends y{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>Ln);break;case"filter":await Promise.resolve().then(()=>Fn);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Rn),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Y),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
|
|
3770
3770
|
<md-assist-chip
|
|
3771
3771
|
label=${this.label}
|
|
3772
3772
|
?disabled=${this.disabled}
|
|
@@ -3812,7 +3812,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
3812
3812
|
color: var(--md-sys-color-on-surface);
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
|
-
`,
|
|
3815
|
+
`,Se([l({type:String,reflect:!0})],a.ScbChip.prototype,"variant",2),Se([l({type:String})],a.ScbChip.prototype,"label",2),Se([l({type:String})],a.ScbChip.prototype,"icon",2),Se([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"disabled",2),Se([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"elevated",2),Se([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"removable",2),Se([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"selected",2),Se([l({type:String})],a.ScbChip.prototype,"href",2),Se([l({type:String})],a.ScbChip.prototype,"target",2),a.ScbChip=Se([f("scb-chip")],a.ScbChip);const _d=Object.freeze(Object.defineProperty({__proto__:null,get ScbChip(){return a.ScbChip}},Symbol.toStringTag,{value:"Module"}));var xd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,V=(o,e,t,i)=>{for(var r=i>1?void 0:i?wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xd(e,t,r),r};a.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__slotDeps={"SCB-TEXTFIELD":()=>Promise.resolve().then(()=>dp),"SCB-CHECKBOX":()=>Promise.resolve().then(()=>ns),"SCB-RADIO-BUTTON":()=>Promise.resolve().then(()=>Ph),"SCB-SWITCH":()=>Promise.resolve().then(()=>$s),"SCB-CHIP":()=>Promise.resolve().then(()=>_d)},this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}async firstUpdated(){await Promise.resolve().then(()=>Tc),await Promise.resolve().then(()=>Qa),this.icon&&await Promise.resolve().then(()=>Y),await this.__ensureSlottedDeps()}async __ensureSlottedDeps(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=async r=>{const s=new Set(r.map(n=>n.tagName));for(const n of s){const h=this.__slotDeps[n];h&&await h()}};await t(e.assignedElements({flatten:!0})),e.addEventListener("slotchange",async()=>t(e.assignedElements({flatten:!0})))}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,n,h;(h=(n=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}e.has("icon")&&this.icon&&Promise.resolve().then(()=>Y)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
|
|
3816
3816
|
<div class="header">
|
|
3817
3817
|
<div class="title">
|
|
3818
3818
|
${this.icon?c`<md-icon class="dialog-icon">${this.icon}</md-icon>`:u}
|
|
@@ -3972,7 +3972,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
3972
3972
|
display:block;
|
|
3973
3973
|
margin-block: var(--scb-choice-gap, 6px);
|
|
3974
3974
|
}
|
|
3975
|
-
`,V([l({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),V([l({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),V([l({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),V([l({type:String})],a.ScbDialog.prototype,"variant",2),V([l({type:String})],a.ScbDialog.prototype,"label",2),V([l({type:String})],a.ScbDialog.prototype,"icon",2),V([l({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),V([l({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),V([l({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),V([l({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),V([l({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),V([l({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),V([l({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),V([l({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),V([l({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),V([l({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),V([l({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=V([f("scb-dialog")],a.ScbDialog);var Sd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor
|
|
3975
|
+
`,V([l({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),V([l({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),V([l({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),V([l({type:String})],a.ScbDialog.prototype,"variant",2),V([l({type:String})],a.ScbDialog.prototype,"label",2),V([l({type:String})],a.ScbDialog.prototype,"icon",2),V([l({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),V([l({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),V([l({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),V([l({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),V([l({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),V([l({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),V([l({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),V([l({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),V([l({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),V([l({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),V([l({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=V([f("scb-dialog")],a.ScbDialog);var Sd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,$t=(o,e,t,i)=>{for(var r=i>1?void 0:i?kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sd(e,t,r),r};a.ScbDivider=class extends y{constructor(){super(...arguments),this.variant="thin",this.direction="horizontal",this.inset="none",this.overlay=!1,this.anchor="end"}render(){return c``}},a.ScbDivider.styles=b`
|
|
3976
3976
|
:host {
|
|
3977
3977
|
--scb-divider-color: var(--md-sys-color-outline-variant);
|
|
3978
3978
|
--scb-divider-thickness: 1px;
|
|
@@ -4014,7 +4014,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
4014
4014
|
}
|
|
4015
4015
|
:host([overlay][direction="vertical"][anchor="end"]) { right: calc(var(--scb-divider-gap) / -2); }
|
|
4016
4016
|
:host([overlay][direction="vertical"][anchor="start"]){ left: calc(var(--scb-divider-gap) / -2); }
|
|
4017
|
-
|
|
4017
|
+
`,$t([l({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),$t([l({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),$t([l({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),$t([l({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),$t([l({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),a.ScbDivider=$t([f("scb-divider")],a.ScbDivider);var $d=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,ht=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$d(e,t,r),r};a.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,n,h,p,v,g,m,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(g=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||g.focus();break}case"End":{e.preventDefault(),(_=(m=t[t.length-1].shadowRoot)==null?void 0:m.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>_i),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>tn),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Y),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>Qa),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
|
|
4018
4018
|
<div class="scb-drawer-item">
|
|
4019
4019
|
<div class="scb-drawer-item-label" ?selected=${this.selected}>
|
|
4020
4020
|
${t?c`
|
|
@@ -4504,7 +4504,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
4504
4504
|
}
|
|
4505
4505
|
`,te([l({type:String})],a.ScbFactCard.prototype,"variant",2),te([l({type:String,attribute:"title"})],a.ScbFactCard.prototype,"title",2),te([l({type:String,attribute:"subtitle"})],a.ScbFactCard.prototype,"subtitle",2),te([l({type:String,attribute:"supporting-text"})],a.ScbFactCard.prototype,"supportingText",2),te([l({type:String})],a.ScbFactCard.prototype,"icon",2),te([l({type:Boolean,attribute:"show-close-button"})],a.ScbFactCard.prototype,"showCloseButton",2),te([l({type:Boolean,reflect:!0})],a.ScbFactCard.prototype,"open",2),te([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"sizing",2),te([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"width",2),te([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbFactCard.prototype,"maxWidth",2),te([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"height",2),te([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbFactCard.prototype,"maxHeight",2),a.ScbFactCard=te([f("scb-fact-card")],a.ScbFactCard);var Nd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,ds=(o,e,t,i)=>{for(var r=i>1?void 0:i?qd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nd(e,t,r),r};a.ScbFooterSection=class extends y{constructor(){super(...arguments),this.title=""}render(){return c`<slot></slot>`}},a.ScbFooterSection.styles=b`
|
|
4506
4506
|
:host { display: none; }
|
|
4507
|
-
`,ds([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=ds([f("scb-footer-section")],a.ScbFooterSection);var Vd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,hs=o=>{throw TypeError(o)},ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ud(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vd(e,t,r),r},jd=(o,e,t)=>e.has(o)||hs("Cannot "+t),Wd=(o,e,t)=>e.has(o)?hs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t)
|
|
4507
|
+
`,ds([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=ds([f("scb-footer-section")],a.ScbFooterSection);var Vd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,hs=o=>{throw TypeError(o)},ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ud(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vd(e,t,r),r},jd=(o,e,t)=>e.has(o)||hs("Cannot "+t),Wd=(o,e,t)=>e.has(o)?hs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ct=(o,e,t)=>(jd(o,e,"access private method"),t),je,Co,ai;a.ScbGrid=class extends y{constructor(){super(...arguments),Wd(this,je),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Ct(this,je,Co).call(this)}updated(){Ct(this,je,Co).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},je=new WeakSet,Co=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const o="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Ct(this,je,ai).call(this,"--scb-grid-max-width",this.maxWidth),Ct(this,je,ai).call(this,"--scb-grid-padding-inline",r??""),Ct(this,je,ai).call(this,"--scb-grid-padding-block",s??""),Ct(this,je,ai).call(this,"--scb-grid-auto-rows",this.autoRows)},ai=function(o,e){e?this.style.setProperty(o,e):this.style.removeProperty(o)},a.ScbGrid.styles=b`
|
|
4508
4508
|
:host {
|
|
4509
4509
|
box-sizing: border-box;
|
|
4510
4510
|
display: block;
|
|
@@ -4601,7 +4601,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
4601
4601
|
}
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
4604
|
-
`,ie([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),ie([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),ie([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),ie([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),ie([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),ie([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),ie([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),ie([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),ie([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),ie([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),ie([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),ie([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=ie([f("scb-grid")],a.ScbGrid);var
|
|
4604
|
+
`,ie([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),ie([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),ie([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),ie([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),ie([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),ie([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),ie([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),ie([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),ie([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),ie([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),ie([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),ie([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=ie([f("scb-grid")],a.ScbGrid);var Kd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,ps=o=>{throw TypeError(o)},ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kd(e,t,r),r},Yd=(o,e,t)=>e.has(o)||ps("Cannot "+t),Xd=(o,e,t)=>e.has(o)?ps("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ke=(o,e,t)=>(Yd(o,e,"access private method"),t),de,Eo,Te;a.ScbGridItem=class extends y{constructor(){super(...arguments),Xd(this,de),this.fit=!1}firstUpdated(){ke(this,de,Eo).call(this)}updated(){ke(this,de,Eo).call(this)}render(){return c`<slot></slot>`}},de=new WeakSet,Eo=function(){ke(this,de,Te).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),ke(this,de,Te).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),ke(this,de,Te).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),ke(this,de,Te).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),ke(this,de,Te).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),ke(this,de,Te).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),ke(this,de,Te).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),ke(this,de,Te).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},Te=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=b`
|
|
4605
4605
|
:host {
|
|
4606
4606
|
box-sizing: border-box;
|
|
4607
4607
|
display: block;
|
|
@@ -4611,7 +4611,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
4611
4611
|
}
|
|
4612
4612
|
:host([fit]) { block-size: 100%; }
|
|
4613
4613
|
:host([fit]) ::slotted(*) { block-size: 100%; }
|
|
4614
|
-
`,ce([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),ce([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),ce([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),ce([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),ce([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),ce([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),ce([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),ce([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),ce([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),ce([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),ce([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=ce([f("scb-grid-item")],a.ScbGridItem);var Zd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,us=o=>{throw TypeError(o)},si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zd(e,t,r),r},Ao=(o,e,t)=>e.has(o)||us("Cannot "+t),Oe=(o,e,t)=>(Ao(o,e,"read from private field"),t?t.call(o):e.get(o)),
|
|
4614
|
+
`,ce([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),ce([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),ce([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),ce([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),ce([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),ce([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),ce([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),ce([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),ce([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),ce([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),ce([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=ce([f("scb-grid-item")],a.ScbGridItem);var Zd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,us=o=>{throw TypeError(o)},si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zd(e,t,r),r},Ao=(o,e,t)=>e.has(o)||us("Cannot "+t),Oe=(o,e,t)=>(Ao(o,e,"read from private field"),t?t.call(o):e.get(o)),Et=(o,e,t)=>e.has(o)?us("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),pt=(o,e,t,i)=>(Ao(o,e,"write to private field"),e.set(o,t),t),Pe=(o,e,t)=>(Ao(o,e,"access private method"),t),At,ni,It,li,he,vs,Io,ms,zo,To,bs,fs,Oo;a.ScbFooter=class extends y{constructor(){super(...arguments),Et(this,he),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Et(this,At,null),Et(this,ni,""),Et(this,It),Et(this,li,!1),Et(this,To,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),Pe(this,he,zo).call(this,!0),Pe(this,he,vs).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=Oe(this,It))==null||e.disconnect()}render(){const e=Oe(this,he,ms);return c`
|
|
4615
4615
|
<footer class="outer" role="contentinfo">
|
|
4616
4616
|
<nav aria-label="Sidfot med länkar">
|
|
4617
4617
|
<scb-grid
|
|
@@ -4640,7 +4640,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
4640
4640
|
</div>
|
|
4641
4641
|
</div>
|
|
4642
4642
|
</footer>
|
|
4643
|
-
`}},
|
|
4643
|
+
`}},At=new WeakMap,ni=new WeakMap,It=new WeakMap,li=new WeakMap,he=new WeakSet,vs=function(){var o;(o=Oe(this,It))==null||o.disconnect(),pt(this,It,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){Pe(this,he,Io).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){Pe(this,he,Io).call(this);return}}})),Oe(this,It).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},Io=function(){Oe(this,li)||(pt(this,li,!0),queueMicrotask(()=>{pt(this,li,!1),Pe(this,he,zo).call(this,!1)}))},ms=function(){return Oe(this,At)??this.sections??[]},zo=function(o=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){Oe(this,At)!==null&&(pt(this,At,null),pt(this,ni,""),o||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),n=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),m={label:(h.textContent||"").trim(),href:p};return v&&(m.target=v),m});return{title:s,links:n}}),i=JSON.stringify(t);i!==Oe(this,ni)&&(pt(this,ni,i),pt(this,At,t),o||this.requestUpdate())},To=new WeakMap,bs=function(o){const e=[],i=o.length;if(i>0&&i<4)return e.push(c`
|
|
4644
4644
|
<scb-grid-item
|
|
4645
4645
|
col-span-compact="4"
|
|
4646
4646
|
col-span-medium="8"
|
|
@@ -5120,7 +5120,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
5120
5120
|
:host([data-hide-logo-text]) .logo-text {
|
|
5121
5121
|
display: none;
|
|
5122
5122
|
}
|
|
5123
|
-
`,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),I([l({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),I([l({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),I([l({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),I([l({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),I([l({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),I([l({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),I([l({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),I([l({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),I([l({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),I([l({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),I([l({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),I([l({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),I([l({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),I([l({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),I([l({attribute:"show-drawer",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"showDrawer",2),I([l({attribute:"show-search",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"showSearch",2),I([l({attribute:"include-utility-in-drawer",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),I([l({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),I([l({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),I([l({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),I([l({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),I([w()],a.ScbHeader.prototype,"_drawerId",2),I([w()],a.ScbHeader.prototype,"_drawerMounted",2),I([w()],a.ScbHeader.prototype,"_drawerExpanded",2),I([w()],a.ScbHeader.prototype,"_searchId",2),I([w()],a.ScbHeader.prototype,"_slotTabs",2),I([w()],a.ScbHeader.prototype,"_slotUtils",2),I([w()],a.ScbHeader.prototype,"_slotMenu",2),I([w()],a.ScbHeader.prototype,"_collapsed",2),I([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=I([f("scb-header")],a.ScbHeader);var uh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,
|
|
5123
|
+
`,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),I([l({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),I([l({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),I([l({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),I([l({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),I([l({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),I([l({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),I([l({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),I([l({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),I([l({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),I([l({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),I([l({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),I([l({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),I([l({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),I([l({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),I([l({attribute:"show-drawer",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"showDrawer",2),I([l({attribute:"show-search",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"showSearch",2),I([l({attribute:"include-utility-in-drawer",reflect:!0,converter:Ro})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),I([l({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),I([l({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),I([l({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),I([l({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),I([w()],a.ScbHeader.prototype,"_drawerId",2),I([w()],a.ScbHeader.prototype,"_drawerMounted",2),I([w()],a.ScbHeader.prototype,"_drawerExpanded",2),I([w()],a.ScbHeader.prototype,"_searchId",2),I([w()],a.ScbHeader.prototype,"_slotTabs",2),I([w()],a.ScbHeader.prototype,"_slotUtils",2),I([w()],a.ScbHeader.prototype,"_slotMenu",2),I([w()],a.ScbHeader.prototype,"_collapsed",2),I([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=I([f("scb-header")],a.ScbHeader);var uh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uh(e,t,r),r};a.ScbHorizontalScroller=class extends y{constructor(){super(...arguments),this.variant="standard",this.width="100%",this.showScrollbar=!1,this.rightScrollButtonLabel="Scrolla höger",this.leftScrollButtonLabel="Scrolla vänster",this.updateScrollButtons=()=>{var i;this.requestUpdate();const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return;e.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const t=e;t.scrollLeft+t.clientWidth<t.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")},this.lastScrollLeft=0,this.isScrolling=!1,this.scrollEndTimeout=null,this.handleScroll=()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");e&&(this.updateScrollButtons(),this.dispatchCustomEvent("scb-scroll",{scrollLeft:e.scrollLeft}),this.isScrolling||(this.isScrolling=!0,this.dispatchCustomEvent("scb-scroll-start",{scrollLeft:e.scrollLeft})),clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=setTimeout(()=>{this.isScrolling=!1,this.dispatchCustomEvent("scb-scroll-end",{scrollLeft:e.scrollLeft})},120),e.scrollLeft>this.lastScrollLeft?this.dispatchCustomEvent("scb-scroll-right",{scrollLeft:e.scrollLeft}):e.scrollLeft<this.lastScrollLeft&&this.dispatchCustomEvent("scb-scroll-left",{scrollLeft:e.scrollLeft}),this.lastScrollLeft=e.scrollLeft)}}doScrollBy(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");t&&t.scrollBy({left:e,behavior:"smooth"})}get canScrollLeft(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");return e?e.scrollLeft>0:!1}get canScrollRight(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return!1;const t=e;return t.scrollLeft+t.clientWidth<t.scrollWidth-1}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",this.updateScrollButtons,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",this.updateScrollButtons,!0)}dispatchCustomEvent(e,t={}){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}firstUpdated(){var n,h,p,v;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".scb-horizontal-scroller"),t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot");e&&(e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",function(g){g.deltaY!==0&&(g.preventDefault(),e.scrollLeft+=g.deltaY)},{passive:!1}));const s=()=>{if(r&&t&&i){const g=r.getBoundingClientRect();t.style.height=`${g.height}px`,i.style.height=`${g.height}px`}};s(),r&&new ResizeObserver(s).observe(r),this.updateScrollButtons()}updated(e){var h,p,v,g;const t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot"),s=(g=this.shadowRoot)==null?void 0:g.querySelector(".scb-horizontal-scroller");s&&(s.addEventListener("scroll",this.handleScroll),s.addEventListener("wheel",function(m){m.deltaY!==0&&(m.preventDefault(),s.scrollLeft+=m.deltaY)},{passive:!1})),e.has("width")&&this.style.setProperty("--scb-horizontal-scroller-width",this.width);const n=()=>{if(r&&t&&i){const m=r.getBoundingClientRect();t.style.height=`${m.height}px`,i.style.height=`${m.height}px`}};n(),r&&new ResizeObserver(n).observe(r)}render(){switch(this.variant){case"inline":return c`
|
|
5124
5124
|
<div class="scb-horizontal-scroller" tabindex="0">
|
|
5125
5125
|
<div class="scroll-shadow-left"></div>
|
|
5126
5126
|
<slot></slot>
|
|
@@ -5253,7 +5253,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
5253
5253
|
gap: var(--spacing-5);
|
|
5254
5254
|
}
|
|
5255
5255
|
|
|
5256
|
-
`,
|
|
5256
|
+
`,zt([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"variant",2),zt([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"width",2),zt([l({type:Boolean,reflect:!0,attribute:"show-scrollbar"})],a.ScbHorizontalScroller.prototype,"showScrollbar",2),zt([l({type:String,reflect:!0,attribute:"right-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"rightScrollButtonLabel",2),zt([l({type:String,reflect:!0,attribute:"left-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"leftScrollButtonLabel",2),a.ScbHorizontalScroller=zt([f("scb-horizontal-scroller")],a.ScbHorizontalScroller);var mh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,re=(o,e,t,i)=>{for(var r=i>1?void 0:i?bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mh(e,t,r),r};a.ScbKeyFigureCard=class extends y{constructor(){super(...arguments),this.keyfigure=0,this.subtitle="",this.supportingText="",this.cardHref="",this.icon="",this.size="standard",this.unit="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.sizing="stretch",this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.location.href=this.cardHref)},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||(window.location.href=this.cardHref))}}formatNumber(e){if(typeof e=="number")return e.toLocaleString("sv-SE").replace(/\u00A0/g," ");const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString("sv-SE").replace(/\u00A0/g," ")}render(){const e=!!this.cardHref,t=this.formatNumber(this.keyfigure),i=(this.unit||"").trim(),r=i?`${t} ${i}`:t;return c`
|
|
5257
5257
|
<div
|
|
5258
5258
|
class="scb-keyfigure-card ${e?"clickable":""} ${this.size}"
|
|
5259
5259
|
role=${e?"link":"group"}
|
|
@@ -5527,7 +5527,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
5527
5527
|
opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
|
|
5528
5528
|
transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5529
5529
|
}
|
|
5530
|
-
`,Bo([l({type:Boolean,reflect:!0})],a.ScbMenu.prototype,"open",2),Bo([l({type:Boolean,attribute:!1})],a.ScbMenu.prototype,"inSb",2),a.ScbMenu=Bo([f("scb-menu")],a.ScbMenu);var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,
|
|
5530
|
+
`,Bo([l({type:Boolean,reflect:!0})],a.ScbMenu.prototype,"open",2),Bo([l({type:Boolean,attribute:!1})],a.ScbMenu.prototype,"inSb",2),a.ScbMenu=Bo([f("scb-menu")],a.ScbMenu);var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ke=(o,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sh(e,t,r),r};a.ScbNotification=class extends y{constructor(){super(...arguments),this.open=!1,this.label="",this.type="success",this.linkText="",this.linkhref="#",this.showIcon=!1,this.showCloseButton=!1,this._closeNotification=()=>{this.open=!1;const e=new CustomEvent("close",{detail:{open:this.open}});this.dispatchEvent(e)}}_iconForType(){switch(this.type){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";case"info":return"info";default:return"info"}}render(){return c`
|
|
5531
5531
|
<div class="notification" type=${this.type} role="alert" aria-live="assertive" aria-atomic="true" style="display: ${this.open?"flex":"none"};">
|
|
5532
5532
|
${this.showIcon||this.showCloseButton?c`<div class="notification-header">
|
|
5533
5533
|
${this.showIcon?c`<md-icon>${this._iconForType()}</md-icon>`:""}
|
|
@@ -5646,7 +5646,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
5646
5646
|
opacity: 0;
|
|
5647
5647
|
pointer-events: none;
|
|
5648
5648
|
}
|
|
5649
|
-
`],
|
|
5649
|
+
`],Ke([l({type:Boolean,reflect:!0})],a.ScbNotification.prototype,"open",2),Ke([l({type:String})],a.ScbNotification.prototype,"label",2),Ke([l({type:String})],a.ScbNotification.prototype,"type",2),Ke([l({type:String,attribute:"link-text"})],a.ScbNotification.prototype,"linkText",2),Ke([l({type:String,attribute:"link-href"})],a.ScbNotification.prototype,"linkhref",2),Ke([l({type:Boolean,attribute:"show-icon"})],a.ScbNotification.prototype,"showIcon",2),Ke([l({type:Boolean,attribute:"show-close-button"})],a.ScbNotification.prototype,"showCloseButton",2),a.ScbNotification=Ke([f("scb-notification")],a.ScbNotification);var $h=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$h(e,t,r),r};a.ScbNotificationCard=class extends y{constructor(){super(...arguments),this.variant="success",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkhref="#",this.showIcon=!1,this.showCloseButton=!1,this.fullHeight=!1,this.fullWidth=!1,this._closeNotification=()=>{this.open=!1;const e=new CustomEvent("close",{detail:{open:this.open}});this.dispatchEvent(e)}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";case"info":return"info";default:return"info"}}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.linkhref?"clickable":"";return c`
|
|
5650
5650
|
<div class="notification ${t} ${i} ${e}" type=${this.variant} role="alert" aria-live="assertive" aria-atomic="true" style="display: ${this.open?"flex":"none"};">
|
|
5651
5651
|
<div class="notification-content">
|
|
5652
5652
|
${this.showIcon||this.showCloseButton?c`<div class="notification-header">
|
|
@@ -6159,7 +6159,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6159
6159
|
.lbl { color: var(--md-sys-color-on-surface); }
|
|
6160
6160
|
.supporting-text { color: var(--md-sys-color-on-surface-variant); }
|
|
6161
6161
|
}
|
|
6162
|
-
`,ut([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"disabled",2),ut([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"checked",2),ut([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"name",2),ut([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"value",2),ut([l({type:String})],a.ScbRadioButton.prototype,"label",2),ut([l({type:String,attribute:"supporting-text"})],a.ScbRadioButton.prototype,"supportingText",2),a.ScbRadioButton=ut([f("scb-radio-button")],a.ScbRadioButton);const Ph=Object.freeze(Object.defineProperty({__proto__:null,get ScbRadioButton(){return a.ScbRadioButton}},Symbol.toStringTag,{value:"Module"}));var Lh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,xs=o=>{throw TypeError(o)},
|
|
6162
|
+
`,ut([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"disabled",2),ut([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"checked",2),ut([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"name",2),ut([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"value",2),ut([l({type:String})],a.ScbRadioButton.prototype,"label",2),ut([l({type:String,attribute:"supporting-text"})],a.ScbRadioButton.prototype,"supportingText",2),a.ScbRadioButton=ut([f("scb-radio-button")],a.ScbRadioButton);const Ph=Object.freeze(Object.defineProperty({__proto__:null,get ScbRadioButton(){return a.ScbRadioButton}},Symbol.toStringTag,{value:"Module"}));var Lh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,xs=o=>{throw TypeError(o)},Tt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lh(e,t,r),r},Rh=(o,e,t)=>e.has(o)||xs("Cannot "+t),di=(o,e,t)=>(Rh(o,e,"read from private field"),t?t.call(o):e.get(o)),ws=(o,e,t)=>e.has(o)?xs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),hi,ur;a.ScbRadioGroup=class extends y{constructor(){super(...arguments),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="item",ws(this,hi,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-radio-button");for(const r of t)this.name&&r.setAttribute("name",this.name),this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-radio-gap","0"):r.style.removeProperty("--scb-radio-gap")}),ws(this,ur,e=>{var r,s;const t=e.composedPath().find(n=>{var h;return((h=n==null?void 0:n.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
|
|
6163
6163
|
<div
|
|
6164
6164
|
class="g"
|
|
6165
6165
|
role="radiogroup"
|
|
@@ -6186,7 +6186,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6186
6186
|
:host([spacing="group"]) ::slotted(scb-radio-button) {
|
|
6187
6187
|
--scb-radio-gap: 0;
|
|
6188
6188
|
}
|
|
6189
|
-
`,
|
|
6189
|
+
`,Tt([l({type:String})],a.ScbRadioGroup.prototype,"name",2),Tt([l({type:String,reflect:!0})],a.ScbRadioGroup.prototype,"orientation",2),Tt([l({type:Boolean,reflect:!0})],a.ScbRadioGroup.prototype,"disabled",2),Tt([l({type:String,attribute:"aria-label"})],a.ScbRadioGroup.prototype,"ariaLabel",2),Tt([l({type:String,reflect:!0})],a.ScbRadioGroup.prototype,"spacing",2),a.ScbRadioGroup=Tt([f("scb-radio-group")],a.ScbRadioGroup);var Bh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bh(e,t,r),r};a.ScbSegmentedItem=class extends y{constructor(){super(...arguments),this.label="",this.value="",this.selected=!1,this.icon="",this.disabled=!1}render(){var n;const e=this.parentElement,t=(n=e==null?void 0:e.hasAttribute)==null?void 0:n.call(e,"disabled"),i=this.disabled||t,r=!!this.icon,s=!!this.label;return c`
|
|
6190
6190
|
<div class="segmented-item${r||this.selected?" has-icon":""}${s?"":" no-label"}" aria-disabled="${i?"true":"false"}">
|
|
6191
6191
|
<md-ripple ?disabled="${i}"></md-ripple>
|
|
6192
6192
|
${this.selected?r&&s?c`<md-icon>check</md-icon>`:r?c`<md-icon>check</md-icon><md-icon>${this.icon}</md-icon>`:c`<md-icon>check</md-icon>`:r?c`<md-icon>${this.icon}</md-icon>`:""}
|
|
@@ -6260,7 +6260,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6260
6260
|
border-top-right-radius: var(--md-sys-shape-corner-full);
|
|
6261
6261
|
border-bottom-right-radius: var(--md-sys-shape-corner-full);
|
|
6262
6262
|
}
|
|
6263
|
-
`,
|
|
6263
|
+
`,Ot([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"label",2),Ot([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"value",2),Ot([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"selected",2),Ot([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"icon",2),Ot([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"disabled",2),a.ScbSegmentedItem=Ot([f("scb-segmented-item")],a.ScbSegmentedItem);var Fh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fh(e,t,r),r};a.ScbSegmentedButton=class extends y{constructor(){super(...arguments),this.variant="single-select",this.value="",this.values=[],this.disabled=!1}onSlotClick(e){let t=e.target;if(!t||!t.closest)return;const i=t.closest("scb-segmented-item");if(!i||this.disabled||i.hasAttribute("disabled"))return;const r=i.getAttribute("value")||"";r&&(this.variant==="multi-select"?(this.values.indexOf(r)===-1?this.values=[...this.values,r]:this.values=this.values.filter(n=>n!==r),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0})),this.updateSegments()):r!==this.value&&(this.value=r,this.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0,composed:!0})),this.updateSegments()))}updateSegments(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements().forEach(r=>{if(r.tagName==="SCB-SEGMENTED-ITEM"){const s=r.getAttribute("value")||"";if(s){let n=!1;this.variant==="multi-select"?n=!!this.values&&this.values.includes(s):n=s===this.value,r.setAttribute("aria-pressed",n?"true":"false"),n?r.setAttribute("selected","true"):r.removeAttribute("selected")}this.disabled&&r.setAttribute("disabled","true")}})}firstUpdated(){var t;this.updateSegments();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(e.addEventListener("click",i=>this.onSlotClick(i)),e.addEventListener("focus",()=>{this.dispatchEvent(new CustomEvent("focus",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("blur",()=>{this.dispatchEvent(new CustomEvent("blur",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("keydown",i=>{if(i.code==="Space"||i.code==="Enter"||i.code==="NumpadEnter"){const r=i.target;if(r&&r.closest){const s=r.closest("scb-segmented-item");s&&!s.hasAttribute("disabled")&&!this.disabled&&(this.onSlotClick(i),i.preventDefault())}}}))}updated(){this.updateSegments()}render(){return c`<slot></slot>`}},a.ScbSegmentedButton.styles=b`
|
|
6264
6264
|
:host {
|
|
6265
6265
|
--scb-segmented-button-width: 100%;
|
|
6266
6266
|
--scb-segmented-button-height: 48px;
|
|
@@ -6287,7 +6287,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6287
6287
|
::slotted([role="button"]:first-child .segmented-item) {
|
|
6288
6288
|
border-left: 1px solid var(--md-sys-color-outline);
|
|
6289
6289
|
}
|
|
6290
|
-
`,pi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"variant",2),pi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"value",2),pi([l({type:Array})],a.ScbSegmentedButton.prototype,"values",2),pi([l({type:Boolean,reflect:!0})],a.ScbSegmentedButton.prototype,"disabled",2),a.ScbSegmentedButton=pi([f("scb-segmented-button")],a.ScbSegmentedButton);var Nh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,
|
|
6290
|
+
`,pi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"variant",2),pi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"value",2),pi([l({type:Array})],a.ScbSegmentedButton.prototype,"values",2),pi([l({type:Boolean,reflect:!0})],a.ScbSegmentedButton.prototype,"disabled",2),a.ScbSegmentedButton=pi([f("scb-segmented-button")],a.ScbSegmentedButton);var Nh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Ge=(o,e,t,i)=>{for(var r=i>1?void 0:i?qh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nh(e,t,r),r};a.ScbSnackbar=class extends y{constructor(){super(...arguments),this.message="",this.open=!1,this.actionText="",this.showClose=!1,this.fixed=!1,this.fadeout=!1,this.withLongerAction=!1}handleAction(){this.dispatchEvent(new CustomEvent("snackbar-action")),this.open=!1}handleClose(){this.dispatchEvent(new CustomEvent("snackbar-close")),this.open=!1}updated(e){super.updated(e),e.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("snackbar-open")):this.dispatchEvent(new CustomEvent("snackbar-close"))),(e.has("open")||e.has("fadeout"))&&(this.open&&this.fadeout?(window.clearTimeout(this._fadeoutTimer),this._fadeoutTimer=window.setTimeout(()=>{this.open=!1},5e3)):window.clearTimeout(this._fadeoutTimer))}render(){const e=!!this.actionText,t=!!this.showClose;let i="snackbar";return!e&&!t&&(i+=" no-actions"),this.withLongerAction&&(i+=" longer-action"),c`
|
|
6291
6291
|
<div class="${i}" ?hidden=${!this.open}>
|
|
6292
6292
|
${this.withLongerAction?c`
|
|
6293
6293
|
<div class="message">${this.message}</div>
|
|
@@ -6371,7 +6371,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6371
6371
|
--md-focus-ring-color: var(--md-sys-color-inverse-on-surface);
|
|
6372
6372
|
}
|
|
6373
6373
|
|
|
6374
|
-
`,
|
|
6374
|
+
`,Ge([l({type:String})],a.ScbSnackbar.prototype,"message",2),Ge([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"open",2),Ge([l({type:String,attribute:"action-text"})],a.ScbSnackbar.prototype,"actionText",2),Ge([l({type:Boolean,attribute:"show-close"})],a.ScbSnackbar.prototype,"showClose",2),Ge([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"fixed",2),Ge([l({type:Boolean})],a.ScbSnackbar.prototype,"fadeout",2),Ge([l({type:Boolean,attribute:"with-longer-action"})],a.ScbSnackbar.prototype,"withLongerAction",2),a.ScbSnackbar=Ge([f("scb-snackbar")],a.ScbSnackbar);var Vh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,vr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Uh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vh(e,t,r),r};a.ScbStatusPill=class extends y{constructor(){super(...arguments),this.status="",this.label="",this.showIcon=!1}render(){return c`
|
|
6375
6375
|
${this.showIcon?this.status==="success"?c`<md-icon>check_circle</md-icon>`:this.status==="warning"?c`<md-icon>warning</md-icon>`:this.status==="error"?c`<md-icon>error</md-icon>`:"":""}
|
|
6376
6376
|
<span class="label">${this.label}</span>
|
|
6377
6377
|
`}},a.ScbStatusPill.styles=b`
|
|
@@ -6405,77 +6405,128 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6405
6405
|
background: var(--md-sys-color-error-container);
|
|
6406
6406
|
color: var(--md-sys-color-on-error-container);
|
|
6407
6407
|
}
|
|
6408
|
-
`,vr([l({type:String})],a.ScbStatusPill.prototype,"status",2),vr([l({type:String})],a.ScbStatusPill.prototype,"label",2),vr([l({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),a.ScbStatusPill=vr([f("scb-status-pill")],a.ScbStatusPill);var jh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6408
|
+
`,vr([l({type:String})],a.ScbStatusPill.prototype,"status",2),vr([l({type:String})],a.ScbStatusPill.prototype,"label",2),vr([l({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),a.ScbStatusPill=vr([f("scb-status-pill")],a.ScbStatusPill);var jh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,fe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jh(e,t,r),r};a.ScbStep=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.symbolVariant="number",this.number=0,this.active=!1,this.completed=!1,this.changeOnCompleted=!1,this.islast=!1,this.variant="horizontal",this.icon=""}updated(){!this.subLabel||this.subLabel.trim()===""?this.setAttribute("no-content",""):this.removeAttribute("no-content")}handleKeyDown(e){e.key==="Enter"||e.key===" "?(e.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(this.dispatchEvent(new CustomEvent("scb-stepper-keynav",{detail:{key:e.key},bubbles:!0,composed:!0})),e.preventDefault())}render(){const e=this.active?"step":void 0,t=this.label?`${this.label}${this.subLabel?": "+this.subLabel:""}`:void 0;switch(this.symbolVariant){case"icon":return c`
|
|
6409
|
+
<div
|
|
6410
|
+
class="scb-step-content"
|
|
6411
|
+
tabindex="0"
|
|
6412
|
+
role="listitem"
|
|
6413
|
+
aria-current=${e}
|
|
6414
|
+
aria-label=${t}
|
|
6415
|
+
@keydown=${this.handleKeyDown}
|
|
6416
|
+
>
|
|
6417
|
+
<md-ripple></md-ripple>
|
|
6418
|
+
<div class="symbol">
|
|
6419
|
+
${this.completed&&this.changeOnCompleted?c`<md-icon>check</md-icon>`:c`<md-icon>${this.icon}</md-icon>`}
|
|
6420
|
+
</div>
|
|
6421
|
+
<div class="content">
|
|
6422
|
+
<div class="label">${this.label}</div>
|
|
6423
|
+
<div class="sub-label">${this.subLabel}</div>
|
|
6424
|
+
</div>
|
|
6425
|
+
<md-focus-ring></md-focus-ring>
|
|
6426
|
+
</div>
|
|
6427
|
+
`;case"marker":return c`
|
|
6428
|
+
<div
|
|
6429
|
+
class="scb-step-content"
|
|
6430
|
+
tabindex="0"
|
|
6431
|
+
role="listitem"
|
|
6432
|
+
aria-current=${e}
|
|
6433
|
+
aria-label=${t}
|
|
6434
|
+
@keydown=${this.handleKeyDown}
|
|
6435
|
+
>
|
|
6436
|
+
<md-ripple></md-ripple>
|
|
6437
|
+
<div class="symbol">
|
|
6438
|
+
${this.completed&&this.changeOnCompleted?c`<md-icon>check</md-icon>`:c``}
|
|
6439
|
+
</div>
|
|
6440
|
+
<div class="content">
|
|
6441
|
+
<div class="label">${this.label}</div>
|
|
6442
|
+
<div class="sub-label">${this.subLabel}</div>
|
|
6443
|
+
</div>
|
|
6444
|
+
<md-focus-ring></md-focus-ring>
|
|
6445
|
+
</div>
|
|
6446
|
+
`;default:return c`
|
|
6447
|
+
<div
|
|
6448
|
+
class="scb-step-content"
|
|
6449
|
+
tabindex="0"
|
|
6450
|
+
role="listitem"
|
|
6451
|
+
aria-current=${e}
|
|
6452
|
+
aria-label=${t}
|
|
6453
|
+
@keydown=${this.handleKeyDown}
|
|
6454
|
+
>
|
|
6455
|
+
<md-ripple></md-ripple>
|
|
6456
|
+
<div class="symbol">
|
|
6457
|
+
${this.completed&&this.changeOnCompleted?c`<md-icon>check</md-icon>`:c`<span>${this.number}</span>`}
|
|
6458
|
+
</div>
|
|
6459
|
+
<div class="content">
|
|
6460
|
+
<div class="label">${this.label}</div>
|
|
6461
|
+
<div class="sub-label">${this.subLabel}</div>
|
|
6462
|
+
</div>
|
|
6463
|
+
<md-focus-ring></md-focus-ring>
|
|
6464
|
+
</div>
|
|
6465
|
+
`}}},a.ScbStep.styles=b`
|
|
6433
6466
|
:host {
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6467
|
+
font-family: var(--brand-font);
|
|
6468
|
+
}
|
|
6469
|
+
.scb-step-content {
|
|
6470
|
+
width: 100%;
|
|
6471
|
+
height: 100%;
|
|
6472
|
+
display: flex;
|
|
6473
|
+
flex-direction: column;
|
|
6474
|
+
align-items: center;
|
|
6475
|
+
position: relative;
|
|
6476
|
+
flex: 1 1 0;
|
|
6477
|
+
cursor: pointer;
|
|
6478
|
+
background: none;
|
|
6479
|
+
box-sizing: border-box;
|
|
6480
|
+
user-select: none;
|
|
6481
|
+
padding: var(--spacing-4);
|
|
6482
|
+
}
|
|
6483
|
+
.scb-step-content:focus,
|
|
6484
|
+
.scb-step-content:focus-visible {
|
|
6485
|
+
outline: none ;
|
|
6486
|
+
box-shadow: none ;
|
|
6444
6487
|
}
|
|
6445
|
-
|
|
6446
6488
|
.symbol {
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6489
|
+
background-color: var(--md-sys-color-outline-variant);
|
|
6490
|
+
color: var(--md-sys-color-on-primary);
|
|
6491
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
6492
|
+
min-width: var(--icon-size-medium);
|
|
6493
|
+
height: var(--icon-size-medium);
|
|
6494
|
+
display: flex;
|
|
6495
|
+
align-items: center;
|
|
6496
|
+
justify-content: center;
|
|
6497
|
+
font-weight: var(--md-sys-typescale-label-small-weight);
|
|
6498
|
+
font-size: var(--md-sys-typescale-label-small-size);
|
|
6499
|
+
line-height: var(--md-sys-typescale-label-small-line-height);
|
|
6500
|
+
letter-spacing: var(--md-sys-typescale-label-small-tracking);
|
|
6501
|
+
position: relative;
|
|
6502
|
+
z-index: 1;
|
|
6503
|
+
}
|
|
6504
|
+
md-focus-ring {
|
|
6505
|
+
border-radius: var(--md-sys-shape-corner-small);
|
|
6459
6506
|
}
|
|
6460
6507
|
md-icon {
|
|
6461
6508
|
font-size: 20px;
|
|
6462
6509
|
}
|
|
6463
6510
|
:host([active]) .symbol {
|
|
6464
6511
|
background-color: var(--md-sys-color-primary);
|
|
6512
|
+
color: var(--md-sys-color-on-primary);
|
|
6465
6513
|
}
|
|
6466
6514
|
:host([completed]) .symbol {
|
|
6467
6515
|
background-color: var(--md-sys-color-primary);
|
|
6516
|
+
color: var(--md-sys-color-on-primary);
|
|
6468
6517
|
}
|
|
6469
6518
|
.label {
|
|
6470
|
-
margin-top:
|
|
6519
|
+
margin-top: var(--spacing-3);
|
|
6471
6520
|
text-align: center;
|
|
6472
|
-
font-size:
|
|
6473
|
-
|
|
6521
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
|
6522
|
+
line-height: var(--md-sys-typescale-label-medium-line-height);
|
|
6523
|
+
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
6524
|
+
color: var(--md-sys-color-on-surface);
|
|
6474
6525
|
max-width: 90px;
|
|
6475
6526
|
word-break: break-word;
|
|
6476
|
-
margin-bottom:
|
|
6527
|
+
margin-bottom: var(--spacing-3);
|
|
6477
6528
|
}
|
|
6478
|
-
:host([active]) .label, :host([active])
|
|
6529
|
+
:host([active]) .label, :host([active]) .sub-label {
|
|
6479
6530
|
font-weight: 600;
|
|
6480
6531
|
}
|
|
6481
6532
|
.content{
|
|
@@ -6484,31 +6535,56 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6484
6535
|
align-items: center;
|
|
6485
6536
|
}
|
|
6486
6537
|
:host([variant="vertical"]) {
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6538
|
+
.scb-step-content {
|
|
6539
|
+
flex-direction: row;
|
|
6540
|
+
align-items: flex-start;
|
|
6541
|
+
gap: var(--spacing-5);
|
|
6542
|
+
padding: var(--spacing-4);
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
:host([no-content]) {
|
|
6546
|
+
.scb-step-content {
|
|
6547
|
+
align-items: center;
|
|
6548
|
+
.label {
|
|
6549
|
+
margin-bottom: 0px;
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6491
6552
|
}
|
|
6492
6553
|
:host([variant="vertical"]) .label{
|
|
6493
6554
|
margin-top: 0;
|
|
6494
6555
|
}
|
|
6495
6556
|
:host([variant="vertical"]) .content{
|
|
6496
6557
|
align-items: flex-start;
|
|
6558
|
+
|
|
6497
6559
|
}
|
|
6498
6560
|
:host([symbol-variant="marker"]) .symbol {
|
|
6499
6561
|
min-width: 16px;
|
|
6500
6562
|
height: 16px;
|
|
6501
6563
|
}
|
|
6502
|
-
|
|
6503
|
-
|
|
6564
|
+
:host([symbol-variant="marker"][completed][change-on-completed]) .symbol {
|
|
6565
|
+
background-color: transparent;
|
|
6566
|
+
color: var(--md-sys-color-primary);
|
|
6567
|
+
md-icon{
|
|
6568
|
+
font-size: var(--icon-size-small);
|
|
6569
|
+
}
|
|
6570
|
+
}
|
|
6571
|
+
|
|
6572
|
+
`,fe([l({type:String,reflect:!0})],a.ScbStep.prototype,"label",2),fe([l({type:String,reflect:!0,attribute:"sub-label"})],a.ScbStep.prototype,"subLabel",2),fe([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStep.prototype,"symbolVariant",2),fe([l({type:Number,reflect:!0})],a.ScbStep.prototype,"number",2),fe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"active",2),fe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"completed",2),fe([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStep.prototype,"changeOnCompleted",2),fe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"islast",2),fe([l({type:String,reflect:!0})],a.ScbStep.prototype,"variant",2),fe([l({type:String})],a.ScbStep.prototype,"icon",2),a.ScbStep=fe([f("scb-step")],a.ScbStep);var Kh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,vt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kh(e,t,r),r};a.ScbStepper=class extends y{constructor(){super(...arguments),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var n;const s=(n=t[r].shadowRoot)==null?void 0:n.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(){this._updateSteps()}updated(){this._updateSteps()}render(){return c`
|
|
6573
|
+
<div
|
|
6574
|
+
class="steps"
|
|
6575
|
+
role="list"
|
|
6576
|
+
aria-label="Steg i processen"
|
|
6577
|
+
@click=${this._onStepContainerClick}
|
|
6578
|
+
@scb-stepper-keynav=${this._onKeyNav}
|
|
6579
|
+
>
|
|
6504
6580
|
<slot></slot>
|
|
6505
|
-
|
|
6581
|
+
</div>
|
|
6506
6582
|
`}},a.ScbStepper.styles=b`
|
|
6507
6583
|
:host {
|
|
6508
6584
|
--scb-stepper-width: 100%;
|
|
6509
6585
|
--scb-stepper-height: 100%;
|
|
6510
6586
|
display: block;
|
|
6511
|
-
padding:
|
|
6587
|
+
padding: var(--spacing-5) 0;
|
|
6512
6588
|
width: 100%;
|
|
6513
6589
|
color: var(--md-sys-color-on-surface);
|
|
6514
6590
|
font-family: var(--brand-font);
|
|
@@ -6518,34 +6594,32 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6518
6594
|
.steps {
|
|
6519
6595
|
display: flex;
|
|
6520
6596
|
flex-direction: row;
|
|
6521
|
-
align-items:
|
|
6597
|
+
align-items: stretch;
|
|
6522
6598
|
justify-content: center;
|
|
6523
6599
|
position: relative;
|
|
6524
6600
|
width: 100%;
|
|
6525
|
-
gap:
|
|
6526
|
-
|
|
6601
|
+
gap: var(--spacing-7);
|
|
6602
|
+
height: 100%;
|
|
6527
6603
|
}
|
|
6528
6604
|
:host([variant='vertical']) .steps {
|
|
6529
6605
|
flex-direction: column;
|
|
6530
|
-
|
|
6531
|
-
gap: 32px;
|
|
6606
|
+
gap: var(--spacing-8);
|
|
6532
6607
|
}
|
|
6533
6608
|
::slotted(scb-step) {
|
|
6534
6609
|
position: relative;
|
|
6535
6610
|
flex: 1 1 0;
|
|
6536
|
-
min-width: 80px;
|
|
6537
6611
|
z-index: 1;
|
|
6612
|
+
width: 100%;
|
|
6538
6613
|
}
|
|
6539
6614
|
/* Horisontell connector */
|
|
6540
6615
|
::slotted(scb-step:not(:first-child))::before {
|
|
6541
6616
|
content: '';
|
|
6542
6617
|
position: absolute;
|
|
6543
6618
|
left: -50%;
|
|
6544
|
-
top:
|
|
6619
|
+
top: 28px;
|
|
6545
6620
|
width: calc(100% - 24px);
|
|
6546
6621
|
height: 1px;
|
|
6547
6622
|
background: var(--n-70);
|
|
6548
|
-
border-radius: 1px;
|
|
6549
6623
|
z-index: 0;
|
|
6550
6624
|
}
|
|
6551
6625
|
/* Vertikal connector */
|
|
@@ -6555,28 +6629,29 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6555
6629
|
::slotted(scb-step[variant="vertical"]:not(:last-child))::after {
|
|
6556
6630
|
content: '';
|
|
6557
6631
|
position: absolute;
|
|
6558
|
-
left:
|
|
6559
|
-
top:
|
|
6632
|
+
left: 28px;
|
|
6633
|
+
top: 52px;
|
|
6560
6634
|
width: 1px;
|
|
6561
6635
|
height: calc(100% - 16px);
|
|
6562
6636
|
background: var(--n-70);
|
|
6563
|
-
border-radius: 1px;
|
|
6564
6637
|
z-index: 0;
|
|
6565
6638
|
transform: translateX(-50%);
|
|
6566
6639
|
}
|
|
6567
6640
|
::slotted(scb-step[variant="vertical"][symbol-variant="marker"]:not(:last-child))::after {
|
|
6568
6641
|
content: "";
|
|
6569
6642
|
position: absolute;
|
|
6570
|
-
left:
|
|
6571
|
-
top:
|
|
6643
|
+
left: 20px;
|
|
6644
|
+
top: 38px;
|
|
6572
6645
|
width: 1px;
|
|
6573
6646
|
height: calc(100% - 2px);
|
|
6574
6647
|
background: var(--n-70);
|
|
6575
|
-
border-radius: 1px;
|
|
6576
6648
|
z-index: 0;
|
|
6577
6649
|
transform: translateX(-50%);
|
|
6578
6650
|
}
|
|
6579
|
-
|
|
6651
|
+
::slotted(scb-step[symbol-variant="marker"]:not(:first-child))::before {
|
|
6652
|
+
top: 20px;
|
|
6653
|
+
}
|
|
6654
|
+
`,vt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),vt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),vt([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),vt([l({type:String})],a.ScbStepper.prototype,"variant",2),vt([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),vt([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=vt([f("scb-stepper")],a.ScbStepper);var Yh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Ss=o=>{throw TypeError(o)},mt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yh(e,t,r),r},ks=(o,e,t)=>e.has(o)||Ss("Cannot "+t),Zh=(o,e,t)=>(ks(o,e,"read from private field"),e.get(o)),Jh=(o,e,t)=>e.has(o)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Qh=(o,e,t,i)=>(ks(o,e,"write to private field"),e.set(o,t),t),mr;a.ScbSwitch=class extends y{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1,Jh(this,mr,!1)}updated(){this.toggleAttribute("aria-disabled",this.disabled)}async firstUpdated(){var t;Zh(this,mr)||(await Promise.resolve().then(()=>nc),Qh(this,mr,!0));const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))})}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
|
|
6580
6655
|
<md-switch
|
|
6581
6656
|
?icons=${this.icons}
|
|
6582
6657
|
?selected=${this.selected}
|
|
@@ -6628,7 +6703,7 @@ var ScbWcTest=function(a){"use strict";var Es;function d(o,e,t,i){var r=argument
|
|
|
6628
6703
|
/* Ärver färg från container */
|
|
6629
6704
|
color: var(--scb-switch-label-color, inherit);
|
|
6630
6705
|
}
|
|
6631
|
-
`,
|
|
6706
|
+
`,mt([l({type:String})],a.ScbSwitch.prototype,"label",2),mt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbSwitch.prototype,"ariaLabel",2),mt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"icons",2),mt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"selected",2),mt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"disabled",2),mt([l({type:Boolean,reflect:!0,attribute:"full-width"})],a.ScbSwitch.prototype,"fullWidth",2),a.ScbSwitch=mt([f("scb-switch")],a.ScbSwitch);const $s=Object.freeze(Object.defineProperty({__proto__:null,get ScbSwitch(){return a.ScbSwitch}},Symbol.toStringTag,{value:"Module"}));var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,br=(o,e,t,i)=>{for(var r=i>1?void 0:i?tp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ep(e,t,r),r};a.ScbPrimaryTab=class extends Zt{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}async ensureMdIconLoaded(){const e=globalThis;e.__mdIconLoaded||(await Promise.resolve().then(()=>Y),e.__mdIconLoaded=!0)}async updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(await this.ensureMdIconLoaded(),e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},a.ScbPrimaryTab.styles=[...Zt.styles,b`
|
|
6632
6707
|
/* Icon-only: dölj textslot */
|
|
6633
6708
|
:host([icon-only]) slot:not([name='icon']) {
|
|
6634
6709
|
display: none;
|