@openremote/or-attribute-history 1.6.2 → 1.6.3
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.bundle.js
CHANGED
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
.mdc-list-item__graphic > or-icon {
|
|
261
261
|
pointer-events: none;
|
|
262
262
|
}
|
|
263
|
-
`;let kr=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[mt`${ct(ar)}`,mt`${ct(nr)}`,mt`${ct(ir)}`,mt`${ct(rr)}`,mt`${ct(or)}`,mt`${ct(sr)}`,mt`${ct(lr)}`,mt`${ct(dr)}`,mt`${ct(cr)}`,mt`${ct(mr)}`,mt`${ct(ur)}`,mt`${ct(hr)}`,mt`${ct(pr)}`,mt`${ct(_r)}`,mt`${ct(fr)}`,mt`${ct(gr)}`,xr]}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===yr.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===yr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===yr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=yr.DATETIME:"boolean"==typeof this.value?this.type=yr.CHECKBOX:"number"==typeof this.value?this.type=yr.NUMBER:"string"==typeof this.value?this.type=yr.TEXT:this.type=yr.JSON),!0}focus(){this.type===yr.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 n=!this.fullWidth&&this.outlined,i=!!this.helperText;const a=!(this.isUiValid||!this.errorMessage&&!this.validationMessage),r={"mdc-text-field-helper-text--persistent":!a&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":a},o=null!==this.value&&void 0!==this.value||!1===this.value;let s=e?N`<span class="mdc-floating-label ${o?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case yr.RADIO:const e=this.resolveOptions(this.options);return this._selectedIndex=-1,N`
|
|
263
|
+
`;let kr=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[mt`${ct(ar)}`,mt`${ct(nr)}`,mt`${ct(ir)}`,mt`${ct(rr)}`,mt`${ct(or)}`,mt`${ct(sr)}`,mt`${ct(lr)}`,mt`${ct(dr)}`,mt`${ct(cr)}`,mt`${ct(mr)}`,mt`${ct(ur)}`,mt`${ct(hr)}`,mt`${ct(pr)}`,mt`${ct(_r)}`,mt`${ct(fr)}`,mt`${ct(gr)}`,xr]}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===yr.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===yr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===yr.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=yr.DATETIME:"boolean"==typeof this.value?this.type=yr.CHECKBOX:"number"==typeof this.value?this.type=yr.NUMBER:"string"==typeof this.value?this.type=yr.TEXT:this.type=yr.JSON),!0}focus(){this.type===yr.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 n=!this.fullWidth&&this.outlined,i=!!this.helperText;const a=!(this.isUiValid||!this.errorMessage&&!this.validationMessage),r={"mdc-text-field-helper-text--persistent":!a&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":a},o=null!==this.value&&void 0!==this.value||!1===this.value;let s=e?N`<span class="mdc-floating-label ${o?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case yr.RADIO:const e=this.resolveOptions(this.options);return this._selectedIndex=-1,N`
|
|
264
264
|
<div class="mdc-radio-container">
|
|
265
265
|
${e?e.map((([t,e],n)=>(this.value===t&&(this._selectedIndex=n),N`
|
|
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 yr.NUMBER:case yr.RANGE:case yr.DATE:case yr.DATETIME:case yr.TIME:case yr.MONTH:case yr.WEEK:case yr.EMAIL:case yr.PASSWORD:case yr.TELEPHONE:case yr.URL:case yr.TEXT:case yr.TEXTAREA:case yr.JSON:case yr.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===yr.JSON||this.type===yr.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 yr.TIME:e.asDate=!0,e.hour12=!1,e.timeStyle=this.step&&this.step<60?"medium":"short";break;case yr.DATE:e.asDate=!0,e.momentJsFormat="YYYY-MM-DD";break;case yr.WEEK:e.asDate=!0,e.momentJsFormat="YYYY-[W]WW";break;case yr.MONTH:e.asDate=!0,e.momentJsFormat="YYYY-MM";break;case yr.DATETIME:e.asDate=!0,e.momentJsFormat="YYYY-MM-DDTHH:mm";break;case yr.NUMBER:null!==(t=e.maximumFractionDigits)&&void 0!==t||(e.maximumFractionDigits=20)}e.useGrouping=!1,l=l.map((t=>void 0!==t?Ve.Util.getValueAsString(t,(()=>e),"en-GB"):void 0))}let d=this.label,c=this.type,m="component";if(this.type===yr.RANGE&&(d=void 0,n=!1,i=!1,c=yr.NUMBER,m="number"),this.type!==yr.RANGE||!this.disableSliderNumberInput){const t={"mdc-text-field":!0,"mdc-text-field--invalid":!this.valid,"mdc-text-field--filled":!n,"mdc-text-field--outlined":n,"mdc-text-field--textarea":c===yr.TEXTAREA||c===yr.JSON||c===yr.JSON_OBJECT,"mdc-text-field--disabled":this.disabled,"mdc-text-field--fullwidth":this.fullWidth&&!n,"dense-comfortable":this.comfortable&&!(c===yr.TEXTAREA||c===yr.JSON||c===yr.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===yr.TEXTAREA||c===yr.JSON||c===yr.JSON_OBJECT?N`
|
|
432
|
+
`;case yr.NUMBER:case yr.RANGE:case yr.DATE:case yr.DATETIME:case yr.TIME:case yr.MONTH:case yr.WEEK:case yr.EMAIL:case yr.PASSWORD:case yr.TELEPHONE:case yr.URL:case yr.TEXT:case yr.TEXTAREA:case yr.JSON:case yr.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===yr.JSON||this.type===yr.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 yr.TIME:e.asDate=!0,e.hour12=!1,e.timeStyle=this.step&&this.step<60?"medium":"short";break;case yr.DATE:e.asDate=!0,e.momentJsFormat="YYYY-MM-DD";break;case yr.WEEK:e.asDate=!0,e.momentJsFormat="YYYY-[W]WW";break;case yr.MONTH:e.asDate=!0,e.momentJsFormat="YYYY-MM";break;case yr.DATETIME:e.asDate=!0,e.momentJsFormat="YYYY-MM-DDTHH:mm";break;case yr.NUMBER:null!==(t=e.maximumFractionDigits)&&void 0!==t||(e.maximumFractionDigits=20)}e.useGrouping=!1,l=l.map((t=>void 0!==t?Ve.Util.getValueAsString(t,(()=>e),"en-GB"):void 0))}let d=this.label,c=this.type,m="component";if(this.type===yr.RANGE&&(d=void 0,n=!1,i=!1,c=yr.NUMBER,m="number"),this.type!==yr.RANGE||!this.disableSliderNumberInput){this.censored&&(c=yr.PASSWORD),this.type===yr.PASSWORD&&this.advertised&&(c=yr.TEXT);const t={"mdc-text-field":!0,"mdc-text-field--invalid":!this.valid,"mdc-text-field--filled":!n,"mdc-text-field--outlined":n,"mdc-text-field--textarea":c===yr.TEXTAREA||c===yr.JSON||c===yr.JSON_OBJECT,"mdc-text-field--disabled":this.disabled,"mdc-text-field--fullwidth":this.fullWidth&&!n,"dense-comfortable":this.comfortable&&!(c===yr.TEXTAREA||c===yr.JSON||c===yr.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===yr.TEXTAREA||c===yr.JSON||c===yr.JSON_OBJECT?N`
|
|
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="${rn(this.minLength)}"
|
|
435
435
|
maxlength="${rn(this.maxLength)}" rows="${this.rows?this.rows:5}"
|
|
@@ -451,6 +451,7 @@
|
|
|
451
451
|
${e}
|
|
452
452
|
${n?this.renderOutlined(s):s}
|
|
453
453
|
${n?"":N`<span class="mdc-line-ripple"></span>`}
|
|
454
|
+
${this.type!==yr.PASSWORD||this.censored?"":N`<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?N`<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
|
${i||a?N`
|
|
@@ -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!==yr.JSON&&this.type!==yr.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,n){var i,a;let r,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 yr.CHECKBOX:case yr.SWITCH:e="on"===e;break;case yr.JSON:case yr.JSON_OBJECT:case yr.NUMBER:case yr.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type!==yr.JSON_OBJECT||"object"==typeof e&&!Array.isArray(e)||(e=this.value,r=We.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,r=this.type===yr.JSON||this.type==yr.JSON_OBJECT?We.i18next.t("validation.invalidJSON"):We.i18next.t("validation.invalidNumber")}break;case yr.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,r=We.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(r),this.reportValidity(),this.type!==yr.CHECKBOX_LIST&&e!==o&&(this.type===yr.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new br(this.value,o,n))),null!=this.searchProvider&&this.type===yr.SELECT){const t=null===(a=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("select-searchable"))||void 0===a?void 0:a.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==yr.CHECKBOX_LIST||Ve.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new br(e,o,n))}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,We.i18next.t(e,{defaultValue:Ve.Util.camelCaseToSentenceCase(e)})]}}))),e}getSelectedTextValue(t){const e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";const i=t||this.resolveOptions(this.options);return i&&n?n.map((t=>i.find((([e,n],i)=>t===e)))).map((t=>t?t[1]:"")).join(", "):""}};tr([Et({type:Boolean})],kr.prototype,"focused",void 0),tr([Et()],kr.prototype,"value",void 0),tr([Et({type:String})],kr.prototype,"type",void 0),tr([Et({type:String})],kr.prototype,"name",void 0),tr([Et({type:Boolean})],kr.prototype,"readonly",void 0),tr([Et({type:Boolean})],kr.prototype,"required",void 0),tr([Et()],kr.prototype,"max",void 0),tr([Et()],kr.prototype,"min",void 0),tr([Et({type:Number})],kr.prototype,"step",void 0),tr([Et({type:Boolean})],kr.prototype,"checked",void 0),tr([Et({type:Boolean})],kr.prototype,"indeterminate",void 0),tr([Et({type:Number})],kr.prototype,"maxLength",void 0),tr([Et({type:Number})],kr.prototype,"minLength",void 0),tr([Et({type:Number})],kr.prototype,"rows",void 0),tr([Et({type:Number})],kr.prototype,"cols",void 0),tr([Et({type:Boolean})],kr.prototype,"multiple",void 0),tr([Et({type:String,attribute:!0,reflect:!1})],kr.prototype,"pattern",void 0),tr([Et({type:String})],kr.prototype,"placeHolder",void 0),tr([Et({type:Array})],kr.prototype,"options",void 0),tr([Et({type:Boolean})],kr.prototype,"autoSelect",void 0),tr([Et({type:Object})],kr.prototype,"searchProvider",void 0),tr([Et({type:String})],kr.prototype,"searchLabel",void 0),tr([Et({type:String})],kr.prototype,"icon",void 0),tr([Et({type:String})],kr.prototype,"iconColor",void 0),tr([Et({type:String})],kr.prototype,"iconOn",void 0),tr([Et({type:String})],kr.prototype,"iconTrailing",void 0),tr([Et({type:Boolean})],kr.prototype,"compact",void 0),tr([Et({type:Boolean})],kr.prototype,"comfortable",void 0),tr([Et({type:Boolean})],kr.prototype,"raised",void 0),tr([Et({type:Boolean})],kr.prototype,"action",void 0),tr([Et({type:Boolean})],kr.prototype,"unElevated",void 0),tr([Et({type:Boolean})],kr.prototype,"outlined",void 0),tr([Et({type:Boolean})],kr.prototype,"rounded",void 0),tr([Et({type:Object})],kr.prototype,"format",void 0),tr([Et({type:Boolean})],kr.prototype,"disableSliderNumberInput",void 0),tr([Et({type:Boolean})],kr.prototype,"fullWidth",void 0),tr([Et({type:String})],kr.prototype,"helperText",void 0),tr([Et({type:Boolean})],kr.prototype,"helperPersistent",void 0),tr([Et({type:String,attribute:!0})],kr.prototype,"validationMessage",void 0),tr([Et({type:Boolean})],kr.prototype,"autoValidate",void 0),tr([Et({type:Boolean})],kr.prototype,"charCounter",void 0),tr([Et({type:String})],kr.prototype,"label",void 0),tr([Et({type:Boolean})],kr.prototype,"disabled",void 0),tr([Et({type:Boolean})],kr.prototype,"continuous",void 0),tr([Et({type:Boolean})],kr.prototype,"resizeVertical",void 0),tr([At()],kr.prototype,"isUiValid",void 0),tr([At()],kr.prototype,"searchableValue",void 0),tr([At()],kr.prototype,"errorMessage",void 0),kr=tr([Yt("or-mwc-input")],kr);var wr=function(t,e,n,i){var a,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(r<3?a(o):r>3?a(e,n,o):a(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};const Mr=l(420),Lr=l(6568),Tr=mt`
|
|
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!==yr.JSON&&this.type!==yr.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,n){var i,a;let r,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 yr.CHECKBOX:case yr.SWITCH:e="on"===e;break;case yr.JSON:case yr.JSON_OBJECT:case yr.NUMBER:case yr.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type!==yr.JSON_OBJECT||"object"==typeof e&&!Array.isArray(e)||(e=this.value,r=We.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,r=this.type===yr.JSON||this.type==yr.JSON_OBJECT?We.i18next.t("validation.invalidJSON"):We.i18next.t("validation.invalidNumber")}break;case yr.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,r=We.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(r),this.reportValidity(),this.type!==yr.CHECKBOX_LIST&&e!==o&&(this.type===yr.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new br(this.value,o,n))),null!=this.searchProvider&&this.type===yr.SELECT){const t=null===(a=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("select-searchable"))||void 0===a?void 0:a.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==yr.CHECKBOX_LIST||Ve.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new br(e,o,n))}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,We.i18next.t(e,{defaultValue:Ve.Util.camelCaseToSentenceCase(e)})]}}))),e}getSelectedTextValue(t){const e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";const i=t||this.resolveOptions(this.options);return i&&n?n.map((t=>i.find((([e,n],i)=>t===e)))).map((t=>t?t[1]:"")).join(", "):""}};tr([Et({type:Boolean})],kr.prototype,"focused",void 0),tr([Et()],kr.prototype,"value",void 0),tr([Et({type:String})],kr.prototype,"type",void 0),tr([Et({type:String})],kr.prototype,"name",void 0),tr([Et({type:Boolean})],kr.prototype,"readonly",void 0),tr([Et({type:Boolean})],kr.prototype,"required",void 0),tr([Et()],kr.prototype,"max",void 0),tr([Et()],kr.prototype,"min",void 0),tr([Et({type:Number})],kr.prototype,"step",void 0),tr([Et({type:Boolean})],kr.prototype,"checked",void 0),tr([Et({type:Boolean})],kr.prototype,"indeterminate",void 0),tr([Et({type:Number})],kr.prototype,"maxLength",void 0),tr([Et({type:Number})],kr.prototype,"minLength",void 0),tr([Et({type:Number})],kr.prototype,"rows",void 0),tr([Et({type:Number})],kr.prototype,"cols",void 0),tr([Et({type:Boolean})],kr.prototype,"multiple",void 0),tr([Et({type:String,attribute:!0,reflect:!1})],kr.prototype,"pattern",void 0),tr([Et({type:String})],kr.prototype,"placeHolder",void 0),tr([Et({type:Array})],kr.prototype,"options",void 0),tr([Et({type:Boolean})],kr.prototype,"autoSelect",void 0),tr([Et({type:Object})],kr.prototype,"searchProvider",void 0),tr([Et({type:String})],kr.prototype,"searchLabel",void 0),tr([Et({type:String})],kr.prototype,"icon",void 0),tr([Et({type:String})],kr.prototype,"iconColor",void 0),tr([Et({type:String})],kr.prototype,"iconOn",void 0),tr([Et({type:String})],kr.prototype,"iconTrailing",void 0),tr([Et({type:Boolean})],kr.prototype,"compact",void 0),tr([Et({type:Boolean})],kr.prototype,"comfortable",void 0),tr([Et({type:Boolean})],kr.prototype,"raised",void 0),tr([Et({type:Boolean})],kr.prototype,"action",void 0),tr([Et({type:Boolean})],kr.prototype,"unElevated",void 0),tr([Et({type:Boolean})],kr.prototype,"outlined",void 0),tr([Et({type:Boolean})],kr.prototype,"rounded",void 0),tr([Et({type:Object})],kr.prototype,"format",void 0),tr([Et({type:Boolean})],kr.prototype,"disableSliderNumberInput",void 0),tr([Et({type:Boolean})],kr.prototype,"fullWidth",void 0),tr([Et({type:String})],kr.prototype,"helperText",void 0),tr([Et({type:Boolean})],kr.prototype,"helperPersistent",void 0),tr([Et({type:String,attribute:!0})],kr.prototype,"validationMessage",void 0),tr([Et({type:Boolean})],kr.prototype,"autoValidate",void 0),tr([Et({type:Boolean})],kr.prototype,"charCounter",void 0),tr([Et({type:String})],kr.prototype,"label",void 0),tr([Et({type:Boolean})],kr.prototype,"disabled",void 0),tr([Et({type:Boolean})],kr.prototype,"continuous",void 0),tr([Et({type:Boolean})],kr.prototype,"resizeVertical",void 0),tr([Et({type:Boolean})],kr.prototype,"censored",void 0),tr([Et({type:Boolean,reflect:!0})],kr.prototype,"advertised",void 0),tr([At()],kr.prototype,"isUiValid",void 0),tr([At()],kr.prototype,"searchableValue",void 0),tr([At()],kr.prototype,"errorMessage",void 0),kr=tr([Yt("or-mwc-input")],kr);var wr=function(t,e,n,i){var a,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(r<3?a(o):r>3?a(e,n,o):a(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};const Mr=l(420),Lr=l(6568),Tr=mt`
|
|
497
498
|
|
|
498
499
|
:host {
|
|
499
500
|
--internal-or-panel-background-color: var(--or-panel-background-color, var(--or-app-color2, ${ct(Ve.DefaultColor2)}));
|