genus-ui 2.36.35 → 2.36.37

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/index.es.js CHANGED
@@ -374,7 +374,7 @@ class rr {
374
374
  return this.inputControl.withoutIcon ? n = b`
375
375
  <div class='form-field form-field--without-icon'>
376
376
  <label class='input-label'>${this.inputControl.labelText}</label>
377
- ${this.inputControl.isReadOnly ? b`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' value=${this.inputControl.inputValue} readonly />` : this.inputControl.formatInput ? b`<input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} data-pattern=${this.inputControl.dataPattern} />` : b`<input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />`}
377
+ ${this.inputControl.isReadOnly ? b`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' value=${this.inputControl.inputValue} readonly />` : this.inputControl.formatInput ? b`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} data-pattern=${this.inputControl.dataPattern} />` : b`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />`}
378
378
  </div>` : this.inputControl.withoutLabel ? n = b`
379
379
  <div class='form-field form-field--without-label'>
380
380
  <input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />
@@ -492,7 +492,7 @@ let tt = class extends U {
492
492
  t.marshaltext[n - 1], this._targetInput.value[e - 1];
493
493
  }
494
494
  this.dispatchEvent(new CustomEvent("typed", { detail: i.target.value }));
495
- }, this.renderInputControl = (i) => (this._textboxBuilder = new rr(), this._textboxBuilder.setInputType(i), i === "text" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, $a), i === "email" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, er), i === "password" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, tr), i === "number" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, ir), this.withoutIcon && this._textboxBuilder.removeIcon(), this.withoutLabel && this._textboxBuilder.removeLabel(), this.withoutLabelIcon && this._textboxBuilder.removeLabelIcon(this.placeholderText), this.inputIcon && this._textboxBuilder.setIcon(this.inputIcon), this.formatInput && this._textboxBuilder.setFormatInput(), this.dataPattern && this._textboxBuilder.setDataPattern(this.dataPattern), this.inputValue && this._textboxBuilder.setInputValue(this.inputValue), this.readOnly && this._textboxBuilder.setReadOnly(), this.placeholderText && this._textboxBuilder.setPlaceholderText(this.placeholderText), this._textboxBuilder.renderControl(this.getInputValue)), this._internals = this.attachInternals();
495
+ }, this.renderInputControl = (i) => (this._textboxBuilder = new rr(), this._textboxBuilder.setInputType(i), i === "text" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, $a), i === "email" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, er), i === "password" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, tr), i === "number" && this._textboxBuilder.setDefaultLabelIcon(this.labelText, ir), this.withoutIcon && this._textboxBuilder.removeIcon(), this.withoutLabel && this._textboxBuilder.removeLabel(), this.withoutLabelIcon && this._textboxBuilder.removeLabelIcon(this.placeholderText), this.inputIcon && this._textboxBuilder.setIcon(this.inputIcon), this.formatInput && this._textboxBuilder.setFormatInput(), this.dataPattern && this._textboxBuilder.setDataPattern(this.dataPattern), this.inputValue && this._textboxBuilder.setInputValue(this.inputValue), this.inputName && this._textboxBuilder.setInputName(this.inputName), this.readOnly && this._textboxBuilder.setReadOnly(), this.placeholderText && this._textboxBuilder.setPlaceholderText(this.placeholderText), this._textboxBuilder.renderControl(this.getInputValue)), this._internals = this.attachInternals();
496
496
  }
497
497
  updated() {
498
498
  this.inputValue === "" && this._targetInput != null && (this._targetInput.value = ""), this.inputValue && this._targetInput != null && (this._targetInput.value = this.inputValue);
package/dist/index.umd.js CHANGED
@@ -205,7 +205,7 @@
205
205
  `,ka="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Profile%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Profile%3c/title%3e%3cg%20id='Iconly/Bold/Profile'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Profile'%20transform='translate(4.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M8,13.1739317%20C12.338627,13.1739317%2016,13.8789388%2016,16.598966%20C16,19.3199932%2012.314618,20%208,20%20C3.66237339,20%205.68434189e-14,19.2949929%205.68434189e-14,16.5749657%20C5.68434189e-14,13.8539385%203.68538202,13.1739317%208,13.1739317%20Z%20M8,-6.03961325e-14%20C10.9391022,-6.03961325e-14%2013.2939852,2.35402354%2013.2939852,5.29105291%20C13.2939852,8.22808228%2010.9391022,10.5831058%208,10.5831058%20C5.06189821,10.5831058%202.70601476,8.22808228%202.70601476,5.29105291%20C2.70601476,2.35402354%205.06189821,-6.03961325e-14%208,-6.03961325e-14%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Qa="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Password%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Password%3c/title%3e%3cg%20id='Iconly/Bold/Password'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Password'%20transform='translate(1.999700,%201.999200)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.335,0%20C17.723,0%2020,2.378%2020,5.917%20L20,5.917%20L20,14.084%20C20,17.623%2017.723,20%2014.334,20%20L14.334,20%20L5.666,20%20C2.277,20%200,17.623%200,14.084%20L0,14.084%20L0,5.917%20C0,2.378%202.277,0%205.666,0%20L5.666,0%20Z%20M6.841,7.399%20C5.407,7.399%204.24,8.566%204.24,10%20C4.24,11.435%205.407,12.602%206.841,12.602%20C8.013,12.602%208.995,11.818%209.319,10.75%20L9.319,10.75%20L11.431,10.75%20L11.431,11.852%20C11.431,12.266%2011.767,12.602%2012.181,12.602%20C12.595,12.602%2012.931,12.266%2012.931,11.852%20L12.931,11.852%20L12.931,10.75%20L14.261,10.75%20L14.261,11.852%20C14.261,12.266%2014.597,12.602%2015.011,12.602%20C15.425,12.602%2015.761,12.266%2015.761,11.852%20L15.761,11.852%20L15.761,10%20C15.761,9.586%2015.425,9.25%2015.011,9.25%20L15.011,9.25%20L9.319,9.25%20C8.995,8.183%208.013,7.399%206.841,7.399%20Z%20M6.8411,8.8989%20C7.4481,8.8989%207.9431,9.3929%207.9431,10.0009%20C7.9431,10.6079%207.4481,11.1019%206.8411,11.1019%20C6.2341,11.1019%205.7391,10.6079%205.7391,10.0009%20C5.7391,9.3929%206.2341,8.8989%206.8411,8.8989%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Pa="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Message%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Message%3c/title%3e%3cg%20id='Iconly/Bold/Message'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Message'%20transform='translate(2.000400,%203.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.939,0%20C16.28,0%2017.57,0.53%2018.519,1.481%20C19.469,2.43%2020,3.71%2020,5.05%20L20,5.05%20L20,12.95%20C20,15.74%2017.73,18%2014.939,18%20L14.939,18%20L5.06,18%20C2.269,18%200,15.74%200,12.95%20L0,12.95%20L0,5.05%20C0,2.26%202.259,0%205.06,0%20L5.06,0%20Z%20M16.07,5.2%20C15.86,5.189%2015.66,5.26%2015.509,5.4%20L15.509,5.4%20L11,9%20C10.42,9.481%209.589,9.481%209,9%20L9,9%20L4.5,5.4%20C4.189,5.17%203.759,5.2%203.5,5.47%20C3.23,5.74%203.2,6.17%203.429,6.47%20L3.429,6.47%20L3.56,6.6%20L8.11,10.15%20C8.67,10.59%209.349,10.83%2010.06,10.83%20C10.769,10.83%2011.46,10.59%2012.019,10.15%20L12.019,10.15%20L16.53,6.54%20L16.61,6.46%20C16.849,6.17%2016.849,5.75%2016.599,5.46%20C16.46,5.311%2016.269,5.22%2016.07,5.2%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ta="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23203e70'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='feather%20feather-hash'%3e%3cline%20x1='4'%20y1='9'%20x2='20'%20y2='9'%3e%3c/line%3e%3cline%20x1='4'%20y1='15'%20x2='20'%20y2='15'%3e%3c/line%3e%3cline%20x1='10'%20y1='3'%20x2='8'%20y2='21'%3e%3c/line%3e%3cline%20x1='16'%20y1='3'%20x2='14'%20y2='21'%3e%3c/line%3e%3c/svg%3e";var Ni={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.isCharExist=Tt.letterCount=Tt.setCharAt=void 0;function La(i,t,e){return t>i.length-1?i:i.substring(0,t)+e+i.substring(t+1)}Tt.setCharAt=La;function za(i,t){return i?i.split("").reduce((e,n)=>n===t?e+1:e,0):0}Tt.letterCount=za;function Sa(i,t){if(!i)return 0;let e=0,n=!1;for(;e<t.length;){if(typeof t[e]=="number"||typeof t[e]=="string"){if(i.includes(t[e])){n=!0;break}}else t[e].test(i)&&(n=!0);e++}return!!n}Tt.isCharExist=Sa,Object.defineProperty(Ni,"__esModule",{value:!0});var zn=Ni.textMarshal=void 0;const Ae=Tt;function Oa({input:i="",template:t="",disallowCharacters:e=[],isRepeat:{value:n,removeStart:s,removeEnd:o}={value:!1,removeStart:!1,removeEnd:!1}}){try{t=t.toLowerCase(),n==!0&&i.length>(0,Ae.letterCount)(t,"x")&&(t=t.repeat(Math.ceil(i.length/(0,Ae.letterCount)(t,"x")))),o&&t[0]!=="x"&&(t=(0,Ae.setCharAt)(t,0,"")),s&&t[t.length-1]!=="x"&&(t=(0,Ae.setCharAt)(t,t.length-1,""));let a=t,r=0,l="",c=0;for(;r<t.length;){if(c>i.length-1){t=t.substring(0,r),a=a.substring(0,r);break}if(t[r]==i[r]){r++,c++;continue}if(e&&(0,Ae.isCharExist)(i[c],e)){c++;continue}t[r]=="x"&&(t=(0,Ae.setCharAt)(t,r,i[c]),l=l+i[c],c++),r++}return{template:a,plaintext:l,marshaltext:t}}catch{return{template:"",plaintext:"",marshaltext:""}}}zn=Ni.textMarshal=Oa;class Ra{constructor(){this.inputControl={}}setInputType(t){this.inputControl.inputType=t}setInputValue(t){this.inputControl.inputValue=t}setInputName(t){this.inputControl.inputName=t}setDefaultLabelIcon(t,e){this.inputControl.labelText=t,this.inputControl.inputIcon=e}setPlaceholderText(t){this.inputControl.placeholderText=t}setIcon(t){this.inputControl.inputIcon=t}setReadOnly(){this.inputControl.isReadOnly=!0}setFormatInput(){this.inputControl.formatInput=!0}setDataPattern(t){this.inputControl.dataPattern=t}removeLabel(){this.inputControl.withoutLabel=!0}removeIcon(){this.inputControl.withoutIcon=!0}removeLabelIcon(t){this.inputControl.placeholderText=t,this.inputControl.withoutLabelIcon=!0}renderControl(t){return{text:()=>{let n=g.html``;return this.inputControl.withoutIcon?n=g.html`
206
206
  <div class='form-field form-field--without-icon'>
207
207
  <label class='input-label'>${this.inputControl.labelText}</label>
208
- ${this.inputControl.isReadOnly?g.html`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' value=${this.inputControl.inputValue} readonly />`:this.inputControl.formatInput?g.html`<input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} data-pattern=${this.inputControl.dataPattern} />`:g.html`<input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />`}
208
+ ${this.inputControl.isReadOnly?g.html`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' value=${this.inputControl.inputValue} readonly />`:this.inputControl.formatInput?g.html`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} data-pattern=${this.inputControl.dataPattern} />`:g.html`<input class='input-control input-control--without-icon' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />`}
209
209
  </div>`:this.inputControl.withoutLabel?n=g.html`
210
210
  <div class='form-field form-field--without-label'>
211
211
  <input class='input-control' type='${this.inputControl.inputType}' @input=${t} name='${this.inputControl.inputName}' placeholder=${this.inputControl.placeholderText} value=${this.inputControl.inputValue} />
@@ -283,7 +283,7 @@
283
283
  <div class='icon-container'>
284
284
  <img class="component-icon" src='${this.inputControl.inputIcon}' />
285
285
  </div>
286
- </div>`,n}}[this.inputControl.inputType]()}}var Na=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,et=(i,t,e,n)=>{for(var s=n>1?void 0:n?Ha(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(s=(n?a(t,e,s):a(s))||s);return n&&s&&Na(t,e,s),s};w.GenusTextBox=class extends g.LitElement{constructor(){super(),this.labelText="",this.inputValue="",this.inputType="text",this.formatInput=!1,this.inputName="",this.inputIcon="",this.placeholderText="",this.dataPattern="",this.disallowedCharacters="",this.withoutIcon=!1,this.withoutLabel=!1,this.withoutLabelIcon=!1,this.readOnly=!1,this._targetInput=null,this.getInputValue=t=>{if(this._targetInput===null&&(this._targetInput=t.target),this.inputValue=this._targetInput.value,this._internals.setFormValue(this._targetInput.value),this.formatInput){let e=zn({input:this._targetInput.value,template:this._targetInput.getAttribute("data-pattern"),disallowCharacters:[new RegExp(this.disallowedCharacters)]});this._targetInput.value=e.marshaltext,this.inputValue=e.marshaltext;let n=Number(this._targetInput.selectionStart);if(e.marshaltext.length>=this._targetInput.value.length)for(let s=n;s<=e.marshaltext.length;s++)e.marshaltext[s-1],this._targetInput.value[n-1]}this.dispatchEvent(new CustomEvent("typed",{detail:t.target.value}))},this.renderInputControl=t=>(this._textboxBuilder=new Ra,this._textboxBuilder.setInputType(t),t==="text"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,ka),t==="email"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Pa),t==="password"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Qa),t==="number"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Ta),this.withoutIcon&&this._textboxBuilder.removeIcon(),this.withoutLabel&&this._textboxBuilder.removeLabel(),this.withoutLabelIcon&&this._textboxBuilder.removeLabelIcon(this.placeholderText),this.inputIcon&&this._textboxBuilder.setIcon(this.inputIcon),this.formatInput&&this._textboxBuilder.setFormatInput(),this.dataPattern&&this._textboxBuilder.setDataPattern(this.dataPattern),this.inputValue&&this._textboxBuilder.setInputValue(this.inputValue),this.readOnly&&this._textboxBuilder.setReadOnly(),this.placeholderText&&this._textboxBuilder.setPlaceholderText(this.placeholderText),this._textboxBuilder.renderControl(this.getInputValue)),this._internals=this.attachInternals()}updated(){this.inputValue===""&&this._targetInput!=null&&(this._targetInput.value=""),this.inputValue&&this._targetInput!=null&&(this._targetInput.value=this.inputValue)}render(){return this.renderInputControl(this.inputType)}},w.GenusTextBox.styles=[Ea,va,Ia,xa,Ya,ya,Ca],w.GenusTextBox.formAssociated=!0,et([m.property({attribute:"label-text"})],w.GenusTextBox.prototype,"labelText",2),et([m.property({attribute:"input-value"})],w.GenusTextBox.prototype,"inputValue",2),et([m.property({attribute:"input-type"})],w.GenusTextBox.prototype,"inputType",2),et([m.property({attribute:"format-input",type:Boolean})],w.GenusTextBox.prototype,"formatInput",2),et([m.property({attribute:"name",reflect:!0})],w.GenusTextBox.prototype,"inputName",2),et([m.property({attribute:"input-icon"})],w.GenusTextBox.prototype,"inputIcon",2),et([m.property({attribute:"placeholder-text"})],w.GenusTextBox.prototype,"placeholderText",2),et([m.property({attribute:"data-pattern"})],w.GenusTextBox.prototype,"dataPattern",2),et([m.property({attribute:"disallowed-characters"})],w.GenusTextBox.prototype,"disallowedCharacters",2),et([m.property({attribute:"without-icon",type:Boolean})],w.GenusTextBox.prototype,"withoutIcon",2),et([m.property({attribute:"without-label",type:Boolean})],w.GenusTextBox.prototype,"withoutLabel",2),et([m.property({attribute:"without-label-icon",type:Boolean})],w.GenusTextBox.prototype,"withoutLabelIcon",2),et([m.property({attribute:"read-only",type:Boolean})],w.GenusTextBox.prototype,"readOnly",2),et([m.state()],w.GenusTextBox.prototype,"_targetInput",2),w.GenusTextBox=et([m.customElement("genus-textbox")],w.GenusTextBox);const Va=g.css`
286
+ </div>`,n}}[this.inputControl.inputType]()}}var Na=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,et=(i,t,e,n)=>{for(var s=n>1?void 0:n?Ha(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(s=(n?a(t,e,s):a(s))||s);return n&&s&&Na(t,e,s),s};w.GenusTextBox=class extends g.LitElement{constructor(){super(),this.labelText="",this.inputValue="",this.inputType="text",this.formatInput=!1,this.inputName="",this.inputIcon="",this.placeholderText="",this.dataPattern="",this.disallowedCharacters="",this.withoutIcon=!1,this.withoutLabel=!1,this.withoutLabelIcon=!1,this.readOnly=!1,this._targetInput=null,this.getInputValue=t=>{if(this._targetInput===null&&(this._targetInput=t.target),this.inputValue=this._targetInput.value,this._internals.setFormValue(this._targetInput.value),this.formatInput){let e=zn({input:this._targetInput.value,template:this._targetInput.getAttribute("data-pattern"),disallowCharacters:[new RegExp(this.disallowedCharacters)]});this._targetInput.value=e.marshaltext,this.inputValue=e.marshaltext;let n=Number(this._targetInput.selectionStart);if(e.marshaltext.length>=this._targetInput.value.length)for(let s=n;s<=e.marshaltext.length;s++)e.marshaltext[s-1],this._targetInput.value[n-1]}this.dispatchEvent(new CustomEvent("typed",{detail:t.target.value}))},this.renderInputControl=t=>(this._textboxBuilder=new Ra,this._textboxBuilder.setInputType(t),t==="text"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,ka),t==="email"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Pa),t==="password"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Qa),t==="number"&&this._textboxBuilder.setDefaultLabelIcon(this.labelText,Ta),this.withoutIcon&&this._textboxBuilder.removeIcon(),this.withoutLabel&&this._textboxBuilder.removeLabel(),this.withoutLabelIcon&&this._textboxBuilder.removeLabelIcon(this.placeholderText),this.inputIcon&&this._textboxBuilder.setIcon(this.inputIcon),this.formatInput&&this._textboxBuilder.setFormatInput(),this.dataPattern&&this._textboxBuilder.setDataPattern(this.dataPattern),this.inputValue&&this._textboxBuilder.setInputValue(this.inputValue),this.inputName&&this._textboxBuilder.setInputName(this.inputName),this.readOnly&&this._textboxBuilder.setReadOnly(),this.placeholderText&&this._textboxBuilder.setPlaceholderText(this.placeholderText),this._textboxBuilder.renderControl(this.getInputValue)),this._internals=this.attachInternals()}updated(){this.inputValue===""&&this._targetInput!=null&&(this._targetInput.value=""),this.inputValue&&this._targetInput!=null&&(this._targetInput.value=this.inputValue)}render(){return this.renderInputControl(this.inputType)}},w.GenusTextBox.styles=[Ea,va,Ia,xa,Ya,ya,Ca],w.GenusTextBox.formAssociated=!0,et([m.property({attribute:"label-text"})],w.GenusTextBox.prototype,"labelText",2),et([m.property({attribute:"input-value"})],w.GenusTextBox.prototype,"inputValue",2),et([m.property({attribute:"input-type"})],w.GenusTextBox.prototype,"inputType",2),et([m.property({attribute:"format-input",type:Boolean})],w.GenusTextBox.prototype,"formatInput",2),et([m.property({attribute:"name",reflect:!0})],w.GenusTextBox.prototype,"inputName",2),et([m.property({attribute:"input-icon"})],w.GenusTextBox.prototype,"inputIcon",2),et([m.property({attribute:"placeholder-text"})],w.GenusTextBox.prototype,"placeholderText",2),et([m.property({attribute:"data-pattern"})],w.GenusTextBox.prototype,"dataPattern",2),et([m.property({attribute:"disallowed-characters"})],w.GenusTextBox.prototype,"disallowedCharacters",2),et([m.property({attribute:"without-icon",type:Boolean})],w.GenusTextBox.prototype,"withoutIcon",2),et([m.property({attribute:"without-label",type:Boolean})],w.GenusTextBox.prototype,"withoutLabel",2),et([m.property({attribute:"without-label-icon",type:Boolean})],w.GenusTextBox.prototype,"withoutLabelIcon",2),et([m.property({attribute:"read-only",type:Boolean})],w.GenusTextBox.prototype,"readOnly",2),et([m.state()],w.GenusTextBox.prototype,"_targetInput",2),w.GenusTextBox=et([m.customElement("genus-textbox")],w.GenusTextBox);const Va=g.css`
287
287
  input[type='text']
288
288
  {
289
289
  border: var(--input-border, none);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "2.36.35",
4
+ "version": "2.36.37",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",