@cas-smartdesign/lit-input 7.3.1 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +73 -76
- package/dist/docs/misc-examples.js +1 -1
- package/dist/docs/validation.js +1 -1
- package/dist/input-with-externals.js +28 -46
- package/dist/input-with-externals.js.map +4 -4
- package/dist/input.mjs +117 -121
- package/dist/input.mjs.map +1 -1
- package/npm-third-party-licenses.json +52 -47
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as r}from"./doc.mjs";function t(e,a){a?e.validationMessage=e.validationIconSrc=e.validationLevel=null:(e.validationMessage="Should not be empty",e.validationLevel=r.Error)}document.querySelectorAll("#advanced-examples .example-container[mandatory]").forEach(e=>{const a=e.querySelector("sd-lit-input");t(a,a.value),a.addEventListener("value-change",o=>t(a,o.detail.value))});const n=document.querySelector("#advanced-examples [token-selector-example]"),l=n.querySelector("sd-lit-input");l.addEventListener("value-change",e=>{const a=document.createElement("div");a.innerText=e.detail.value,n.querySelector(".token-wrapper").appendChild(a),l.value=""});
|
package/dist/docs/validation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as n}from"./doc.mjs";const r="./monkey.svg";function l(a,o,e,t,i){o?a.validationMessage=a.validationIconSrc=a.validationLevel=null:(a.validationMessage=t,a.validationIconSrc=i,a.validationLevel=e)}function s(a,o){document.querySelectorAll(`#validation-examples .example-container[${a}]`).forEach(e=>{const t=e.querySelector("sd-lit-input"),i=e.getAttribute("validation-message")??"Should not be empty",d=e.hasAttribute("custom-icon")?r:void 0;l(t,t.value,o,i,d),t.addEventListener(`${e.hasAttribute("immediate")?"immediate-":""}value-change`,c=>l(t,c.detail.value,o,i,d))})}s("mandatory",n.Error);s("recommended",n.Warn);s("suggestion",n.Suggest);
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var
|
|
2
|
-
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,At=/"/g,Ct=/^(?:script|style|textarea|title)$/i,Mt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),b=Mt(1),de=Mt(2),C=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),wt=new WeakMap,E=S.createTreeWalker(S,129,null,!1);function Ut(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return yt!==void 0?yt.createHTML(t):t}var Ft=(i,t)=>{let e=i.length-1,s=[],o,r=t===2?"<svg>":"",n=H;for(let d=0;d<e;d++){let a=i[d],l,v,f=-1,m=0;for(;m<a.length&&(n.lastIndex=m,v=n.exec(a),v!==null);)m=n.lastIndex,n===H?v[1]==="!--"?n=$t:v[1]!==void 0?n=bt:v[2]!==void 0?(Ct.test(v[2])&&(o=RegExp("</"+v[2],"g")),n=x):v[3]!==void 0&&(n=x):n===x?v[0]===">"?(n=o??H,f=-1):v[1]===void 0?f=-2:(f=n.lastIndex-v[2].length,l=v[1],n=v[3]===void 0?x:v[3]==='"'?At:_t):n===At||n===_t?n=x:n===$t||n===bt?n=H:(n=x,o=void 0);let $=n===x&&i[d+1].startsWith("/>")?" ":"";r+=n===H?a+zt:f>=0?(s.push(l),a.slice(0,f)+ot+a.slice(f)+w+$):a+w+(f===-2?(s.push(void 0),d):$)}return[Ut(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),s]},I=class i{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let r=0,n=0,d=t.length-1,a=this.parts,[l,v]=Ft(t,e);if(this.el=i.createElement(l,s),E.currentNode=this.el.content,e===2){let f=this.el.content,m=f.firstChild;m.remove(),f.append(...m.childNodes)}for(;(o=E.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes()){let f=[];for(let m of o.getAttributeNames())if(m.endsWith(ot)||m.startsWith(w)){let $=v[n++];if(f.push(m),$!==void 0){let Pt=o.getAttribute($.toLowerCase()+ot).split(w),B=/([.?@])?(.*)/.exec($);a.push({type:1,index:r,name:B[2],strings:Pt,ctor:B[1]==="."?rt:B[1]==="?"?at:B[1]==="@"?lt:T})}else a.push({type:6,index:r})}for(let m of f)o.removeAttribute(m)}if(Ct.test(o.tagName)){let f=o.textContent.split(w),m=f.length-1;if(m>0){o.textContent=U?U.emptyScript:"";for(let $=0;$<m;$++)o.append(f[$],D()),E.nextNode(),a.push({type:2,index:++r});o.append(f[m],D())}}}else if(o.nodeType===8)if(o.data===Et)a.push({type:2,index:r});else{let f=-1;for(;(f=o.data.indexOf(w,f+1))!==-1;)a.push({type:7,index:r}),f+=w.length-1}r++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function L(i,t,e=i,s){var o,r,n,d;if(t===C)return t;let a=s!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[s]:e._$Cl,l=R(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((r=a?._$AO)===null||r===void 0||r.call(a,!1),l===void 0?a=void 0:(a=new l(i),a._$AT(i,e,s)),s!==void 0?((n=(d=e)._$Co)!==null&&n!==void 0?n:d._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=L(i,a._$AS(i,t.values),a,s)),t}var nt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:s},parts:o}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(s,!0);E.currentNode=r;let n=E.nextNode(),d=0,a=0,l=o[0];for(;l!==void 0;){if(d===l.index){let v;l.type===2?v=new N(n,n.nextSibling,this,t):l.type===1?v=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(v=new ht(n,this,t)),this._$AV.push(v),l=o[++a]}d!==l?.index&&(n=E.nextNode(),d++)}return E.currentNode=S,r}v(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},N=class i{constructor(t,e,s,o){var r;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cp=(r=o?.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),R(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Bt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&R(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;let{values:s,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=I.createElement(Ut(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{let n=new nt(r,this),d=n.u(this.options);n.v(s),this.$(d),this._$AH=n}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new I(t)),e}T(t){St(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let r of t)o===e.length?e.push(s=new i(this.k(D()),this.k(D()),this,this.options)):s=e[o],s._$AI(r),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},T=class{constructor(t,e,s,o,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,o){let r=this.strings,n=!1;if(r===void 0)t=L(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==C,n&&(this._$AH=t);else{let d=t,a,l;for(t=r[0],a=0;a<r.length-1;a++)l=L(this,d[s+a],e,a),l===C&&(l=this._$AH[a]),n||(n=!R(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}n&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},jt=U?U.emptyScript:"",at=class extends T{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,jt):this.element.removeAttribute(this.name)}},lt=class extends T{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=L(this,t,e,0))!==null&&s!==void 0?s:p)===C)return;let o=this._$AH,r=t===p&&o!==p||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==p&&(o===p||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}};var xt=K.litHtmlPolyfillSupport;xt?.(I,N),((it=K.litHtmlVersions)!==null&&it!==void 0?it:K.litHtmlVersions=[]).push("2.8.0");var Lt=(i,t,e)=>{var s,o;let r=(s=e?.renderBefore)!==null&&s!==void 0?s:t,n=r._$litPart$;if(n===void 0){let d=(o=e?.renderBefore)!==null&&o!==void 0?o:null;r._$litPart$=n=new N(t.insertBefore(D(),d),d,void 0,e??{})}return n._$AI(i),n};var dt,ct;var y=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return C}};y.finalized=!0,y._$litElement$=!0,(dt=globalThis.litElementHydrateSupport)===null||dt===void 0||dt.call(globalThis,{LitElement:y});var Tt=globalThis.litElementPolyfillSupport;Tt?.({LitElement:y});((ct=globalThis.litElementVersions)!==null&&ct!==void 0?ct:globalThis.litElementVersions=[]).push("3.3.3");var qt=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,i)}},Wt=(i,t,e)=>{t.constructor.createProperty(e,i)};function h(i){return(t,e)=>e!==void 0?Wt(i,t,e):qt(i,t)}var g=i=>i??p;var Kt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Gt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Xt="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Jt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",Yt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,ut=(i,t,e,s)=>{for(var o=s>1?void 0:s?Zt(t,e):t,r=i.length-1,n;r>=0;r--)(n=i[r])&&(o=(s?n(t,e,o):n(o))||o);return s&&o&&Yt(t,e,o),o},k,V=(k=class extends y{static parseLevel(i){if(i){let t=Object.keys(z).find(e=>e.toLowerCase()===i.toLowerCase());return t&&z[t]}}static get styles(){return[O`
|
|
4
|
-
${M(
|
|
5
|
-
`]}render(){return
|
|
1
|
+
var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var Z=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var Mt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var Ut=(i,t)=>{for(var e in t)Z(i,e,{get:t[e],enumerable:!0})},Tt=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mt(t))!Pt.call(i,o)&&o!==e&&Z(i,o,{get:()=>t[o],enumerable:!(s=Ct(t,o))||s.enumerable});return i};var Lt=i=>Tt(Z({},"__esModule",{value:!0}),i);var se={};Ut(se,{default:()=>X});var j=globalThis,q=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),ct=new WeakMap,L=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==J)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(q&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=ct.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ct.set(e,t))}return t}toString(){return this.cssText}},M=i=>new L(typeof i=="string"?i:i+"",void 0,J),O=(i,...t)=>{let e=i.length===1?i[0]:t.reduce(((s,o,n)=>s+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1]),i[0]);return new L(e,i,J)},pt=(i,t)=>{if(q)i.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=j.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)}},Y=q?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return M(e)})(i):i;var{is:Ot,defineProperty:Dt,getOwnPropertyDescriptor:Rt,getOwnPropertyNames:Ht,getOwnPropertySymbols:kt,getPrototypeOf:It}=Object,W=globalThis,ut=W.trustedTypes,Nt=ut?ut.emptyScript:"",zt=W.reactiveElementPolyfillSupport,D=(i,t)=>i,R={toAttribute(i,t){switch(t){case Boolean:i=i?Nt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},K=(i,t)=>!Ot(i,t),ft={attribute:!0,type:String,converter:R,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol("metadata"),W.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Dt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=Rt(this.prototype,t)??{get(){return this[e]},set(a){this[e]=a}};return{get:o,set(a){let l=o?.call(this);n?.call(this,a),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ft}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;let t=It(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){let e=this.properties,s=[...Ht(e),...kt(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(Y(o))}else t!==void 0&&e.push(Y(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:R).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=s.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:R;this._$Em=o;let l=a.fromAttribute(e,n.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,n=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??K)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},a){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),n!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,n]of s){let{wrapped:a}=n,l=this[o];a!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[D("elementProperties")]=new Map,_[D("finalized")]=new Map,zt?.({ReactiveElement:_}),(W.reactiveElementVersions??=[]).push("2.1.1");var nt=globalThis,G=nt.trustedTypes,mt=G?G.createPolicy("lit-html",{createHTML:i=>i}):void 0,_t="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+w,Vt=`<${At}>`,S=document,k=()=>S.createComment(""),I=i=>i===null||typeof i!="object"&&typeof i!="function",at=Array.isArray,Bt=i=>at(i)||typeof i?.[Symbol.iterator]=="function",Q=`[
|
|
2
|
+
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,gt=/>/g,x=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,$t=/"/g,wt=/^(?:script|style|textarea|title)$/i,rt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=rt(1),he=rt(2),de=rt(3),C=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),bt=new WeakMap,E=S.createTreeWalker(S,129);function xt(i,t){if(!at(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(t):t}var Ft=(i,t)=>{let e=i.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",a=H;for(let l=0;l<e;l++){let r=i[l],f,m,d=-1,b=0;for(;b<r.length&&(a.lastIndex=b,m=a.exec(r),m!==null);)b=a.lastIndex,a===H?m[1]==="!--"?a=vt:m[1]!==void 0?a=gt:m[2]!==void 0?(wt.test(m[2])&&(o=RegExp("</"+m[2],"g")),a=x):m[3]!==void 0&&(a=x):a===x?m[0]===">"?(a=o??H,d=-1):m[1]===void 0?d=-2:(d=a.lastIndex-m[2].length,f=m[1],a=m[3]===void 0?x:m[3]==='"'?$t:yt):a===$t||a===yt?a=x:a===vt||a===gt?a=H:(a=x,o=void 0);let A=a===x&&i[l+1].startsWith("/>")?" ":"";n+=a===H?r+Vt:d>=0?(s.push(f),r.slice(0,d)+_t+r.slice(d)+w+A):r+w+(d===-2?l:A)}return[xt(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},N=class i{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,a=0,l=t.length-1,r=this.parts,[f,m]=Ft(t,e);if(this.el=i.createElement(f,s),E.currentNode=this.el.content,e===2||e===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=E.nextNode())!==null&&r.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let d of o.getAttributeNames())if(d.endsWith(_t)){let b=m[a++],A=o.getAttribute(d).split(w),F=/([.?@])?(.*)/.exec(b);r.push({type:1,index:n,name:F[2],strings:A,ctor:F[1]==="."?et:F[1]==="?"?it:F[1]==="@"?st:U}),o.removeAttribute(d)}else d.startsWith(w)&&(r.push({type:6,index:n}),o.removeAttribute(d));if(wt.test(o.tagName)){let d=o.textContent.split(w),b=d.length-1;if(b>0){o.textContent=G?G.emptyScript:"";for(let A=0;A<b;A++)o.append(d[A],k()),E.nextNode(),r.push({type:2,index:++n});o.append(d[b],k())}}}else if(o.nodeType===8)if(o.data===At)r.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(w,d+1))!==-1;)r.push({type:7,index:n}),d+=w.length-1}n++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function P(i,t,e=i,s){if(t===C)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=I(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=P(i,o._$AS(i,t.values),o,s)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??S).importNode(e,!0);E.currentNode=o;let n=E.nextNode(),a=0,l=0,r=s[0];for(;r!==void 0;){if(a===r.index){let f;r.type===2?f=new z(n,n.nextSibling,this,t):r.type===1?f=new r.ctor(n,r.name,r.strings,this,t):r.type===6&&(f=new ot(n,this,t)),this._$AV.push(f),r=s[++l]}a!==r?.index&&(n=E.nextNode(),a++)}return E.currentNode=S,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},z=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),I(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Bt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N.createElement(xt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new tt(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=bt.get(t.strings);return e===void 0&&bt.set(t.strings,e=new N(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new i(this.O(k()),this.O(k()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,o){let n=this.strings,a=!1;if(n===void 0)t=P(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==C,a&&(this._$AH=t);else{let l=t,r,f;for(t=n[0],r=0;r<n.length-1;r++)f=P(this,l[s+r],e,r),f===C&&(f=this._$AH[r]),a||=!I(f)||f!==this._$AH[r],f===p?t=p:t!==p&&(t+=(f??"")+n[r+1]),this._$AH[r]=f}a&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},it=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},st=class extends U{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??p)===C)return;let s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var jt=nt.litHtmlPolyfillSupport;jt?.(N,z),(nt.litHtmlVersions??=[]).push("3.3.1");var Et=(i,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new z(t.insertBefore(k(),n),n,void 0,e??{})}return o._$AI(i),o};var lt=globalThis,g=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Et(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};g._$litElement$=!0,g.finalized=!0,lt.litElementHydrateSupport?.({LitElement:g});var qt=lt.litElementPolyfillSupport;qt?.({LitElement:g});(lt.litElementVersions??=[]).push("4.2.1");var Wt={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:K},Kt=(i=Wt,t,e)=>{let{kind:s,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),s==="setter"&&((i=Object.create(i)).wrapped=!0),n.set(e.name,i),s==="accessor"){let{name:a}=e;return{set(l){let r=t.get.call(this);t.set.call(this,l),this.requestUpdate(a,r,i)},init(l){return l!==void 0&&this.C(a,void 0,i,l),l}}}if(s==="setter"){let{name:a}=e;return function(l){let r=this[a];t.call(this,l),this.requestUpdate(a,r,i)}}throw Error("Unsupported decorator location: "+s)};function h(i){return(t,e)=>typeof e=="object"?Kt(i,t,e):((s,o,n)=>{let a=o.hasOwnProperty(n);return o.constructor.createProperty(n,s),a?Object.getOwnPropertyDescriptor(o,n):void 0})(i,t,e)}var v=i=>i??p;var Gt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Zt="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Jt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",Yt=Object.defineProperty,dt=(i,t,e,s)=>{for(var o=void 0,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=a(t,e,o)||o);return o&&Yt(t,e,o),o},T,V=(T=class extends g{static parseLevel(i){if(i){let t=Object.keys(B).find(e=>e.toLowerCase()===i.toLowerCase());return t&&B[t]}}static get styles(){return[O`
|
|
4
|
+
${M(Gt)}
|
|
5
|
+
`]}render(){return y`${this.iconToUse&&y`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(T.parseLevel(this.level)){case"warn":return Jt;case"suggest":return Zt;case"error":return Xt;default:return null}}},T.ID="sd-field-validation-message",T.levelConverter={fromAttribute(i){return T.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},T);dt([h({type:String,attribute:!0})],V.prototype,"message");dt([h({type:String,attribute:!0})],V.prototype,"icon");dt([h({converter:V.levelConverter,reflect:!0})],V.prototype,"level");var ht=V,B=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(B||{});customElements.get(ht.ID)||customElements.define(ht.ID,ht);var Qt=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",te=Object.defineProperty,u=(i,t,e,s)=>{for(var o=void 0,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=a(t,e,o)||o);return o&&te(t,e,o),o},ee="sd-lit-input",St="delegatesFocus"in window.ShadowRoot.prototype,ie=0,$,c=($=class extends g{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let i=ie++;this._validationMessageId=$.ID+"_message_"+i,this._inputId=$.ID+"_input_"+i,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(i){super.firstUpdated(i),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),St||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",t=>{t.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(i){let t=e=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(e.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(e.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(i,"animationstart",t)):i.addEventListener("animationstart",t)}get activeShadyDOM(){let i=window.ShadyDOM;return i&&i.inUse?i:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(i){i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=i)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(i){this.currentText=i||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(i,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(i,t)})}static get styles(){return[O`
|
|
6
6
|
${M(Qt)}
|
|
7
|
-
`]}render(){
|
|
7
|
+
`]}render(){let i,t=this.validationMessage||this.inputElement?.validationMessage,e=t||this.validationLevel!=null;return this.rows===1?i=y`
|
|
8
8
|
<input
|
|
9
9
|
id=${this._inputId}
|
|
10
10
|
class="input"
|
|
11
11
|
.type=${this.type}
|
|
12
|
-
placeholder=${
|
|
13
|
-
name=${
|
|
12
|
+
placeholder=${v(this.placeholder||void 0)}
|
|
13
|
+
name=${v(this.name||void 0)}
|
|
14
14
|
aria-disabled=${this.effectiveDisabled}
|
|
15
15
|
autocomplete=${this.autocomplete}
|
|
16
16
|
?disabled=${this.inactive}
|
|
17
17
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
18
18
|
?required=${this.required}
|
|
19
|
-
maxlength=${this.maxlength>0?this.maxlength
|
|
19
|
+
maxlength=${this.maxlength>0?this.maxlength:$.DEFAULT_MAX_LENGTH}
|
|
20
20
|
aria-describedby=${this._validationMessageId}
|
|
21
|
-
aria-invalid=${
|
|
22
|
-
aria-label=${
|
|
23
|
-
min=${
|
|
24
|
-
max=${
|
|
25
|
-
pattern=${
|
|
21
|
+
aria-invalid=${v(e)}
|
|
22
|
+
aria-label=${v(this.sdAriaLabel||void 0)}
|
|
23
|
+
min=${v(this.min||void 0)}
|
|
24
|
+
max=${v(this.max||void 0)}
|
|
25
|
+
pattern=${v(this.pattern||void 0)}
|
|
26
26
|
/>
|
|
27
|
-
`:
|
|
27
|
+
`:i=y`
|
|
28
28
|
<textarea
|
|
29
29
|
id=${this._inputId}
|
|
30
30
|
class="input"
|
|
31
|
-
placeholder=${
|
|
32
|
-
name=${
|
|
31
|
+
placeholder=${v(this.placeholder||void 0)}
|
|
32
|
+
name=${v(this.name||void 0)}
|
|
33
33
|
aria-disabled=${this.effectiveDisabled}
|
|
34
34
|
autocomplete=${this.autocomplete}
|
|
35
35
|
?disabled=${this.inactive}
|
|
36
36
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
37
37
|
?required=${this.required}
|
|
38
|
-
maxlength=${this.maxlength>0?this.maxlength
|
|
38
|
+
maxlength=${this.maxlength>0?this.maxlength:$.DEFAULT_MAX_LENGTH}
|
|
39
39
|
rows=${this.rows}
|
|
40
40
|
aria-describedby=${this._validationMessageId}
|
|
41
|
-
aria-invalid=${
|
|
42
|
-
aria-label=${
|
|
41
|
+
aria-invalid=${v(e)}
|
|
42
|
+
aria-label=${v(this.sdAriaLabel||void 0)}
|
|
43
43
|
></textarea>
|
|
44
|
-
`,
|
|
45
|
-
${this.label?
|
|
44
|
+
`,y`
|
|
45
|
+
${this.label?y` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:p}
|
|
46
46
|
<div class="input-wrapper">
|
|
47
47
|
<span class="prefix"><slot name="prefix"></slot></span>
|
|
48
48
|
<div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
|
|
49
|
-
${this.label&&
|
|
49
|
+
${this.label&&y`
|
|
50
50
|
<label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
|
|
51
51
|
>${this.label}</label
|
|
52
52
|
>
|
|
53
53
|
`}
|
|
54
|
-
${
|
|
54
|
+
${i}
|
|
55
55
|
</div>
|
|
56
56
|
<span class="suffix"><slot name="suffix"></slot></span>
|
|
57
57
|
</div>
|
|
@@ -60,18 +60,18 @@ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var X=Object.define
|
|
|
60
60
|
<div class="focused-line"></div>
|
|
61
61
|
</div>
|
|
62
62
|
<div class="validation-message-wrapper" aria-hidden="true">
|
|
63
|
-
${(
|
|
63
|
+
${(t||this.validationIconSrc)&&y`
|
|
64
64
|
<sd-field-validation-message
|
|
65
65
|
id=${this._validationMessageId}
|
|
66
66
|
class="validation-message"
|
|
67
|
-
.message=${
|
|
67
|
+
.message=${t}
|
|
68
68
|
.icon=${this.validationIconSrc}
|
|
69
69
|
.level=${this.validationLevel}
|
|
70
70
|
>
|
|
71
71
|
</sd-field-validation-message>
|
|
72
72
|
`}
|
|
73
73
|
</div>
|
|
74
|
-
`}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((i.has("min")||i.has("max")||i.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(i){
|
|
74
|
+
`}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((i.has("min")||i.has("max")||i.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(i){if(super.update(i),i.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&i.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(i){this.dispatchEvent(new CustomEvent(`${i?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);let i=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",i==null?null:i.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(i){this._internals?.setFormValue(i)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(i){this.effectiveDisabled=i||this.hasAttribute("disabled")}formAssociatedCallback(i){this._needsAutocompletedCheck=!0}formStateRestoreCallback(i,t){typeof i=="string"&&(this.value=i)}},$.ID=ee,$.DEFAULT_MAX_LENGTH=524288,$.formAssociated=!0,$.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:St},$);u([h({type:String,reflect:!0})],c.prototype,"label");u([h({type:String,attribute:!0})],c.prototype,"validationMessage");u([h({type:String,attribute:!0})],c.prototype,"validationIconSrc");u([h({type:B,attribute:!0,reflect:!0})],c.prototype,"validationLevel");u([h({type:String,hasChanged(i,t){return t!=null&&t!=i}})],c.prototype,"currentText");u([h({type:Boolean,attribute:!0})],c.prototype,"alwaysFloatLabel");u([h({type:Boolean,attribute:!0})],c.prototype,"autocompleted");u([h({type:Number,attribute:!0})],c.prototype,"rows");u([h({type:Boolean,reflect:!0,attribute:"effective-disabled"})],c.prototype,"effectiveDisabled");u([h({type:Boolean,reflect:!0,attribute:"extended-prefix"})],c.prototype,"extendedPrefix");u([h({type:String,reflect:!0})],c.prototype,"type");u([h({type:String,reflect:!0})],c.prototype,"placeholder");u([h({type:String,reflect:!0})],c.prototype,"sdAriaLabel");u([h({type:Number,reflect:!0})],c.prototype,"maxlength");u([h({type:Boolean,reflect:!0})],c.prototype,"readonly");u([h({type:Boolean,reflect:!0})],c.prototype,"required");u([h({type:String,reflect:!0})],c.prototype,"name");u([h({type:Boolean,reflect:!0})],c.prototype,"inactive");u([h({type:String,attribute:!0})],c.prototype,"autocomplete");u([h({type:String,attribute:!0})],c.prototype,"min");u([h({type:String,attribute:!0})],c.prototype,"max");u([h({type:String,attribute:!0})],c.prototype,"pattern");var X=c;customElements.get(X.ID)||customElements.define(X.ID,X);return Lt(se);})();
|
|
75
75
|
/*! Bundled license information:
|
|
76
76
|
|
|
77
77
|
@lit/reactive-element/css-tag.js:
|
|
@@ -82,20 +82,9 @@ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var X=Object.define
|
|
|
82
82
|
*)
|
|
83
83
|
|
|
84
84
|
@lit/reactive-element/reactive-element.js:
|
|
85
|
-
(**
|
|
86
|
-
* @license
|
|
87
|
-
* Copyright 2017 Google LLC
|
|
88
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*)
|
|
90
|
-
|
|
91
85
|
lit-html/lit-html.js:
|
|
92
|
-
(**
|
|
93
|
-
* @license
|
|
94
|
-
* Copyright 2017 Google LLC
|
|
95
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
-
*)
|
|
97
|
-
|
|
98
86
|
lit-element/lit-element.js:
|
|
87
|
+
@lit/reactive-element/decorators/property.js:
|
|
99
88
|
(**
|
|
100
89
|
* @license
|
|
101
90
|
* Copyright 2017 Google LLC
|
|
@@ -109,13 +98,6 @@ lit-html/is-server.js:
|
|
|
109
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
99
|
*)
|
|
111
100
|
|
|
112
|
-
@lit/reactive-element/decorators/property.js:
|
|
113
|
-
(**
|
|
114
|
-
* @license
|
|
115
|
-
* Copyright 2017 Google LLC
|
|
116
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*)
|
|
118
|
-
|
|
119
101
|
lit-html/directives/if-defined.js:
|
|
120
102
|
(**
|
|
121
103
|
* @license
|