@openremote/or-dashboard-builder 1.6.2 → 1.6.4

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/umd/index.js CHANGED
@@ -260,7 +260,7 @@
260
260
  .mdc-list-item__graphic > or-icon {
261
261
  pointer-events: none;
262
262
  }
263
- `;let Er=class extends Lt{constructor(){super(...arguments),this.readonly=!1,this.required=!1,this.checked=!1,this.indeterminate=!1,this.multiple=!1,this.searchLabel="search",this.compact=!1,this.comfortable=!1,this.raised=!1,this.action=!1,this.unElevated=!1,this.outlined=!1,this.rounded=!1,this.disableSliderNumberInput=!1,this.fullWidth=!1,this.helperPersistent=!1,this.autoValidate=!1,this.charCounter=!1,this.disabled=!1,this.continuous=!1,this.resizeVertical=!1,this._selectedIndex=-1,this.isUiValid=!0}static get styles(){return[ht`${ut(dr)}`,ht`${ut(sr)}`,ht`${ut(lr)}`,ht`${ut(cr)}`,ht`${ut(ur)}`,ht`${ut(hr)}`,ht`${ut(mr)}`,ht`${ut(pr)}`,ht`${ut(fr)}`,ht`${ut(gr)}`,ht`${ut(_r)}`,ht`${ut(yr)}`,ht`${ut(br)}`,ht`${ut(xr)}`,ht`${ut(vr)}`,ht`${ut(wr)}`,Lr]}get nativeValue(){if(this._mdcComponent)return this._mdcComponent.value}disconnectedCallback(){var t,e;super.disconnectedCallback(),this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0,null===(t=this._menuObserver)||void 0===t||t.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null===(e=this._menuObserver)||void 0===e||e.disconnect())}shouldUpdate(t){return t.has("indeterminate")&&this._mdcComponent&&this.type===Tr.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===Tr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===Tr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=Tr.DATETIME:"boolean"==typeof this.value?this.type=Tr.CHECKBOX:"number"==typeof this.value?this.type=Tr.NUMBER:"string"==typeof this.value?this.type=Tr.TEXT:this.type=Tr.JSON),!0}focus(){this.type===Tr.RANGE&&this._mdcComponent2?this._mdcComponent2.focus():this._mdcComponent&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}render(){var t;if(this.type){const e=!this.fullWidth&&this.label;let i=!this.fullWidth&&this.outlined,n=!!this.helperText;const r=!(this.isUiValid||!this.errorMessage&&!this.validationMessage),a={"mdc-text-field-helper-text--persistent":!r&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":r},o=null!==this.value&&void 0!==this.value||!1===this.value;let s=e?F`<span class="mdc-floating-label ${o?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case Tr.RADIO:const e=this.resolveOptions(this.options);return this._selectedIndex=-1,F`
263
+ `;let Er=class extends Lt{constructor(){super(...arguments),this.readonly=!1,this.required=!1,this.checked=!1,this.indeterminate=!1,this.multiple=!1,this.searchLabel="search",this.compact=!1,this.comfortable=!1,this.raised=!1,this.action=!1,this.unElevated=!1,this.outlined=!1,this.rounded=!1,this.disableSliderNumberInput=!1,this.fullWidth=!1,this.helperPersistent=!1,this.autoValidate=!1,this.charCounter=!1,this.disabled=!1,this.continuous=!1,this.resizeVertical=!1,this.censored=!1,this.advertised=!1,this._selectedIndex=-1,this.isUiValid=!0}static get styles(){return[ht`${ut(dr)}`,ht`${ut(sr)}`,ht`${ut(lr)}`,ht`${ut(cr)}`,ht`${ut(ur)}`,ht`${ut(hr)}`,ht`${ut(mr)}`,ht`${ut(pr)}`,ht`${ut(fr)}`,ht`${ut(gr)}`,ht`${ut(_r)}`,ht`${ut(yr)}`,ht`${ut(br)}`,ht`${ut(xr)}`,ht`${ut(vr)}`,ht`${ut(wr)}`,Lr]}get nativeValue(){if(this._mdcComponent)return this._mdcComponent.value}disconnectedCallback(){var t,e;super.disconnectedCallback(),this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0,null===(t=this._menuObserver)||void 0===t||t.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null===(e=this._menuObserver)||void 0===e||e.disconnect())}shouldUpdate(t){return t.has("indeterminate")&&this._mdcComponent&&this.type===Tr.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===Tr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===Tr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=Tr.DATETIME:"boolean"==typeof this.value?this.type=Tr.CHECKBOX:"number"==typeof this.value?this.type=Tr.NUMBER:"string"==typeof this.value?this.type=Tr.TEXT:this.type=Tr.JSON),!0}focus(){this.type===Tr.RANGE&&this._mdcComponent2?this._mdcComponent2.focus():this._mdcComponent&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}render(){var t;if(this.type){const e=!this.fullWidth&&this.label;let i=!this.fullWidth&&this.outlined,n=!!this.helperText;const r=!(this.isUiValid||!this.errorMessage&&!this.validationMessage),a={"mdc-text-field-helper-text--persistent":!r&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":r},o=null!==this.value&&void 0!==this.value||!1===this.value;let s=e?F`<span class="mdc-floating-label ${o?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case Tr.RADIO:const e=this.resolveOptions(this.options);return this._selectedIndex=-1,F`
264
264
  <div class="mdc-radio-container">
265
265
  ${e?e.map((([t,e],i)=>(this.value===t&&(this._selectedIndex=i),F`
266
266
  <div id="field" class="mdc-form-field">
@@ -429,7 +429,7 @@
429
429
  />
430
430
  <label style="margin-left: 10px; cursor: pointer" for="elem">${this.label}</label>
431
431
  </div>
432
- `;case Tr.NUMBER:case Tr.RANGE:case Tr.DATE:case Tr.DATETIME:case Tr.TIME:case Tr.MONTH:case Tr.WEEK:case Tr.EMAIL:case Tr.PASSWORD:case Tr.TELEPHONE:case Tr.URL:case Tr.TEXT:case Tr.TEXTAREA:case Tr.JSON:case Tr.JSON_OBJECT:{let e,l=[void 0===this.value||null===this.value?void 0:this.value,this.min,this.max];if(l.some((t=>"string"!=typeof t)))if(this.type===Tr.JSON||this.type===Tr.JSON_OBJECT)if(void 0!==l[0]){if("string"!=typeof l[0]||null===l[0])try{l[0]=JSON.stringify(l[0],null,2)}catch(t){console.warn("Failed to parse JSON expression for input control"),l[0]=""}}else l[0]="";else{const e=this.format?Object.assign({},this.format):{};switch(this.type){case Tr.TIME:e.asDate=!0,e.hour12=!1,e.timeStyle=this.step&&this.step<60?"medium":"short";break;case Tr.DATE:e.asDate=!0,e.momentJsFormat="YYYY-MM-DD";break;case Tr.WEEK:e.asDate=!0,e.momentJsFormat="YYYY-[W]WW";break;case Tr.MONTH:e.asDate=!0,e.momentJsFormat="YYYY-MM";break;case Tr.DATETIME:e.asDate=!0,e.momentJsFormat="YYYY-MM-DDTHH:mm";break;case Tr.NUMBER:null!==(t=e.maximumFractionDigits)&&void 0!==t||(e.maximumFractionDigits=20)}e.useGrouping=!1,l=l.map((t=>void 0!==t?Vn.Util.getValueAsString(t,(()=>e),"en-GB"):void 0))}let d=this.label,c=this.type,u="component";if(this.type===Tr.RANGE&&(d=void 0,i=!1,n=!1,c=Tr.NUMBER,u="number"),this.type!==Tr.RANGE||!this.disableSliderNumberInput){const t={"mdc-text-field":!0,"mdc-text-field--invalid":!this.valid,"mdc-text-field--filled":!i,"mdc-text-field--outlined":i,"mdc-text-field--textarea":c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT,"mdc-text-field--disabled":this.disabled,"mdc-text-field--fullwidth":this.fullWidth&&!i,"dense-comfortable":this.comfortable&&!(c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT),"dense-compact":!this.comfortable&&this.compact,"mdc-text-field--label-floating":o,"mdc-text-field--no-label":!this.label,"mdc-text-field--with-leading-icon":!!this.icon,"mdc-text-field--with-trailing-icon":!!this.iconTrailing,"or-mwc-input--rounded":this.rounded};e=c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT?F`
432
+ `;case Tr.NUMBER:case Tr.RANGE:case Tr.DATE:case Tr.DATETIME:case Tr.TIME:case Tr.MONTH:case Tr.WEEK:case Tr.EMAIL:case Tr.PASSWORD:case Tr.TELEPHONE:case Tr.URL:case Tr.TEXT:case Tr.TEXTAREA:case Tr.JSON:case Tr.JSON_OBJECT:{let e,l=[void 0===this.value||null===this.value?void 0:this.value,this.min,this.max];if(l.some((t=>"string"!=typeof t)))if(this.type===Tr.JSON||this.type===Tr.JSON_OBJECT)if(void 0!==l[0]){if("string"!=typeof l[0]||null===l[0])try{l[0]=JSON.stringify(l[0],null,2)}catch(t){console.warn("Failed to parse JSON expression for input control"),l[0]=""}}else l[0]="";else{const e=this.format?Object.assign({},this.format):{};switch(this.type){case Tr.TIME:e.asDate=!0,e.hour12=!1,e.timeStyle=this.step&&this.step<60?"medium":"short";break;case Tr.DATE:e.asDate=!0,e.momentJsFormat="YYYY-MM-DD";break;case Tr.WEEK:e.asDate=!0,e.momentJsFormat="YYYY-[W]WW";break;case Tr.MONTH:e.asDate=!0,e.momentJsFormat="YYYY-MM";break;case Tr.DATETIME:e.asDate=!0,e.momentJsFormat="YYYY-MM-DDTHH:mm";break;case Tr.NUMBER:null!==(t=e.maximumFractionDigits)&&void 0!==t||(e.maximumFractionDigits=20)}e.useGrouping=!1,l=l.map((t=>void 0!==t?Vn.Util.getValueAsString(t,(()=>e),"en-GB"):void 0))}let d=this.label,c=this.type,u="component";if(this.type===Tr.RANGE&&(d=void 0,i=!1,n=!1,c=Tr.NUMBER,u="number"),this.type!==Tr.RANGE||!this.disableSliderNumberInput){this.censored&&(c=Tr.PASSWORD),this.type===Tr.PASSWORD&&this.advertised&&(c=Tr.TEXT);const t={"mdc-text-field":!0,"mdc-text-field--invalid":!this.valid,"mdc-text-field--filled":!i,"mdc-text-field--outlined":i,"mdc-text-field--textarea":c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT,"mdc-text-field--disabled":this.disabled,"mdc-text-field--fullwidth":this.fullWidth&&!i,"dense-comfortable":this.comfortable&&!(c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT),"dense-compact":!this.comfortable&&this.compact,"mdc-text-field--label-floating":o,"mdc-text-field--no-label":!this.label,"mdc-text-field--with-leading-icon":!!this.icon,"mdc-text-field--with-trailing-icon":!!this.iconTrailing,"or-mwc-input--rounded":this.rounded};e=c===Tr.TEXTAREA||c===Tr.JSON||c===Tr.JSON_OBJECT?F`
433
433
  <textarea id="elem" class="mdc-text-field__input ${this.resizeVertical?"resize-vertical":""}" ?required="${this.required}"
434
434
  ?readonly="${this.readonly}" ?disabled="${this.disabled}" minlength="${le(this.minLength)}"
435
435
  maxlength="${le(this.maxLength)}" rows="${this.rows?this.rows:5}"
@@ -451,6 +451,7 @@
451
451
  ${e}
452
452
  ${i?this.renderOutlined(s):s}
453
453
  ${i?"":F`<span class="mdc-line-ripple"></span>`}
454
+ ${this.type!==Tr.PASSWORD||this.censored?"":F`<or-icon class="mdc-text-field__icon mdc-text-field__icon--trailing" aria-hidden="true" icon=${this.advertised?"eye":"eye-off"} style="pointer-events: auto;" @click=${()=>this.advertised=!this.advertised}></or-icon>`}
454
455
  ${this.iconTrailing?F`<or-icon class="mdc-text-field__icon mdc-text-field__icon--trailing" aria-hidden="true" icon="${this.iconTrailing}"></or-icon>`:""}
455
456
  </label>
456
457
  ${n||r?F`
@@ -493,7 +494,7 @@
493
494
  `:""}
494
495
  <span class="mdc-notched-outline__trailing"></span>
495
496
  </span>
496
- `}setCustomValidity(t){this.errorMessage=t;const e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){const t=this.shadowRoot.getElementById("elem");let e=!0;return t&&t.validity&&(e=t.validity.valid),!e||this.type!==Tr.JSON&&this.type!==Tr.JSON_OBJECT||void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){const t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,i){var n,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case Tr.CHECKBOX:case Tr.SWITCH:e="on"===e;break;case Tr.JSON:case Tr.JSON_OBJECT:case Tr.NUMBER:case Tr.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type!==Tr.JSON_OBJECT||"object"==typeof e&&!Array.isArray(e)||(e=this.value,a=qn.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===Tr.JSON||this.type==Tr.JSON_OBJECT?qn.i18next.t("validation.invalidJSON"):qn.i18next.t("validation.invalidNumber")}break;case Tr.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=qn.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==Tr.CHECKBOX_LIST&&e!==o&&(this.type===Tr.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new kr(this.value,o,i))),null!=this.searchProvider&&this.type===Tr.SELECT){const t=null===(r=null===(n=this.shadowRoot)||void 0===n?void 0:n.getElementById("select-searchable"))||void 0===r?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==Tr.CHECKBOX_LIST||Vn.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new kr(e,o,i))}get valid(){const t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){const t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map((t=>{if(Array.isArray(t))return t;{const e=""+t;return[t,qn.i18next.t(e,{defaultValue:Vn.Util.camelCaseToSentenceCase(e)})]}}))),e}getSelectedTextValue(t){const e=this.value,i=Array.isArray(e)?e:null!=e?[e]:void 0;if(!i)return"";const n=t||this.resolveOptions(this.options);return n&&i?i.map((t=>n.find((([e,i],n)=>t===e)))).map((t=>t?t[1]:"")).join(", "):""}};ar([Dt({type:Boolean})],Er.prototype,"focused",void 0),ar([Dt()],Er.prototype,"value",void 0),ar([Dt({type:String})],Er.prototype,"type",void 0),ar([Dt({type:String})],Er.prototype,"name",void 0),ar([Dt({type:Boolean})],Er.prototype,"readonly",void 0),ar([Dt({type:Boolean})],Er.prototype,"required",void 0),ar([Dt()],Er.prototype,"max",void 0),ar([Dt()],Er.prototype,"min",void 0),ar([Dt({type:Number})],Er.prototype,"step",void 0),ar([Dt({type:Boolean})],Er.prototype,"checked",void 0),ar([Dt({type:Boolean})],Er.prototype,"indeterminate",void 0),ar([Dt({type:Number})],Er.prototype,"maxLength",void 0),ar([Dt({type:Number})],Er.prototype,"minLength",void 0),ar([Dt({type:Number})],Er.prototype,"rows",void 0),ar([Dt({type:Number})],Er.prototype,"cols",void 0),ar([Dt({type:Boolean})],Er.prototype,"multiple",void 0),ar([Dt({type:String,attribute:!0,reflect:!1})],Er.prototype,"pattern",void 0),ar([Dt({type:String})],Er.prototype,"placeHolder",void 0),ar([Dt({type:Array})],Er.prototype,"options",void 0),ar([Dt({type:Boolean})],Er.prototype,"autoSelect",void 0),ar([Dt({type:Object})],Er.prototype,"searchProvider",void 0),ar([Dt({type:String})],Er.prototype,"searchLabel",void 0),ar([Dt({type:String})],Er.prototype,"icon",void 0),ar([Dt({type:String})],Er.prototype,"iconColor",void 0),ar([Dt({type:String})],Er.prototype,"iconOn",void 0),ar([Dt({type:String})],Er.prototype,"iconTrailing",void 0),ar([Dt({type:Boolean})],Er.prototype,"compact",void 0),ar([Dt({type:Boolean})],Er.prototype,"comfortable",void 0),ar([Dt({type:Boolean})],Er.prototype,"raised",void 0),ar([Dt({type:Boolean})],Er.prototype,"action",void 0),ar([Dt({type:Boolean})],Er.prototype,"unElevated",void 0),ar([Dt({type:Boolean})],Er.prototype,"outlined",void 0),ar([Dt({type:Boolean})],Er.prototype,"rounded",void 0),ar([Dt({type:Object})],Er.prototype,"format",void 0),ar([Dt({type:Boolean})],Er.prototype,"disableSliderNumberInput",void 0),ar([Dt({type:Boolean})],Er.prototype,"fullWidth",void 0),ar([Dt({type:String})],Er.prototype,"helperText",void 0),ar([Dt({type:Boolean})],Er.prototype,"helperPersistent",void 0),ar([Dt({type:String,attribute:!0})],Er.prototype,"validationMessage",void 0),ar([Dt({type:Boolean})],Er.prototype,"autoValidate",void 0),ar([Dt({type:Boolean})],Er.prototype,"charCounter",void 0),ar([Dt({type:String})],Er.prototype,"label",void 0),ar([Dt({type:Boolean})],Er.prototype,"disabled",void 0),ar([Dt({type:Boolean})],Er.prototype,"continuous",void 0),ar([Dt({type:Boolean})],Er.prototype,"resizeVertical",void 0),ar([It()],Er.prototype,"isUiValid",void 0),ar([It()],Er.prototype,"searchableValue",void 0),ar([It()],Er.prototype,"errorMessage",void 0),Er=ar([St("or-mwc-input")],Er);const Sr=ht`
497
+ `}setCustomValidity(t){this.errorMessage=t;const e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){const t=this.shadowRoot.getElementById("elem");let e=!0;return t&&t.validity&&(e=t.validity.valid),!e||this.type!==Tr.JSON&&this.type!==Tr.JSON_OBJECT||void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){const t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,i){var n,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case Tr.CHECKBOX:case Tr.SWITCH:e="on"===e;break;case Tr.JSON:case Tr.JSON_OBJECT:case Tr.NUMBER:case Tr.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type!==Tr.JSON_OBJECT||"object"==typeof e&&!Array.isArray(e)||(e=this.value,a=qn.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===Tr.JSON||this.type==Tr.JSON_OBJECT?qn.i18next.t("validation.invalidJSON"):qn.i18next.t("validation.invalidNumber")}break;case Tr.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=qn.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==Tr.CHECKBOX_LIST&&e!==o&&(this.type===Tr.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new kr(this.value,o,i))),null!=this.searchProvider&&this.type===Tr.SELECT){const t=null===(r=null===(n=this.shadowRoot)||void 0===n?void 0:n.getElementById("select-searchable"))||void 0===r?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==Tr.CHECKBOX_LIST||Vn.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new kr(e,o,i))}get valid(){const t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){const t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map((t=>{if(Array.isArray(t))return t;{const e=""+t;return[t,qn.i18next.t(e,{defaultValue:Vn.Util.camelCaseToSentenceCase(e)})]}}))),e}getSelectedTextValue(t){const e=this.value,i=Array.isArray(e)?e:null!=e?[e]:void 0;if(!i)return"";const n=t||this.resolveOptions(this.options);return n&&i?i.map((t=>n.find((([e,i],n)=>t===e)))).map((t=>t?t[1]:"")).join(", "):""}};ar([Dt({type:Boolean})],Er.prototype,"focused",void 0),ar([Dt()],Er.prototype,"value",void 0),ar([Dt({type:String})],Er.prototype,"type",void 0),ar([Dt({type:String})],Er.prototype,"name",void 0),ar([Dt({type:Boolean})],Er.prototype,"readonly",void 0),ar([Dt({type:Boolean})],Er.prototype,"required",void 0),ar([Dt()],Er.prototype,"max",void 0),ar([Dt()],Er.prototype,"min",void 0),ar([Dt({type:Number})],Er.prototype,"step",void 0),ar([Dt({type:Boolean})],Er.prototype,"checked",void 0),ar([Dt({type:Boolean})],Er.prototype,"indeterminate",void 0),ar([Dt({type:Number})],Er.prototype,"maxLength",void 0),ar([Dt({type:Number})],Er.prototype,"minLength",void 0),ar([Dt({type:Number})],Er.prototype,"rows",void 0),ar([Dt({type:Number})],Er.prototype,"cols",void 0),ar([Dt({type:Boolean})],Er.prototype,"multiple",void 0),ar([Dt({type:String,attribute:!0,reflect:!1})],Er.prototype,"pattern",void 0),ar([Dt({type:String})],Er.prototype,"placeHolder",void 0),ar([Dt({type:Array})],Er.prototype,"options",void 0),ar([Dt({type:Boolean})],Er.prototype,"autoSelect",void 0),ar([Dt({type:Object})],Er.prototype,"searchProvider",void 0),ar([Dt({type:String})],Er.prototype,"searchLabel",void 0),ar([Dt({type:String})],Er.prototype,"icon",void 0),ar([Dt({type:String})],Er.prototype,"iconColor",void 0),ar([Dt({type:String})],Er.prototype,"iconOn",void 0),ar([Dt({type:String})],Er.prototype,"iconTrailing",void 0),ar([Dt({type:Boolean})],Er.prototype,"compact",void 0),ar([Dt({type:Boolean})],Er.prototype,"comfortable",void 0),ar([Dt({type:Boolean})],Er.prototype,"raised",void 0),ar([Dt({type:Boolean})],Er.prototype,"action",void 0),ar([Dt({type:Boolean})],Er.prototype,"unElevated",void 0),ar([Dt({type:Boolean})],Er.prototype,"outlined",void 0),ar([Dt({type:Boolean})],Er.prototype,"rounded",void 0),ar([Dt({type:Object})],Er.prototype,"format",void 0),ar([Dt({type:Boolean})],Er.prototype,"disableSliderNumberInput",void 0),ar([Dt({type:Boolean})],Er.prototype,"fullWidth",void 0),ar([Dt({type:String})],Er.prototype,"helperText",void 0),ar([Dt({type:Boolean})],Er.prototype,"helperPersistent",void 0),ar([Dt({type:String,attribute:!0})],Er.prototype,"validationMessage",void 0),ar([Dt({type:Boolean})],Er.prototype,"autoValidate",void 0),ar([Dt({type:Boolean})],Er.prototype,"charCounter",void 0),ar([Dt({type:String})],Er.prototype,"label",void 0),ar([Dt({type:Boolean})],Er.prototype,"disabled",void 0),ar([Dt({type:Boolean})],Er.prototype,"continuous",void 0),ar([Dt({type:Boolean})],Er.prototype,"resizeVertical",void 0),ar([Dt({type:Boolean})],Er.prototype,"censored",void 0),ar([Dt({type:Boolean,reflect:!0})],Er.prototype,"advertised",void 0),ar([It()],Er.prototype,"isUiValid",void 0),ar([It()],Er.prototype,"searchableValue",void 0),ar([It()],Er.prototype,"errorMessage",void 0),Er=ar([St("or-mwc-input")],Er);const Sr=ht`
497
498
 
498
499
  :host {
499
500
  --internal-or-asset-tree-header-color: var(--or-asset-tree-header-color, var(--or-app-color4, ${ut(Vn.DefaultColor4)}));