@openremote/or-attribute-input 1.12.0-snapshot.20251211154713 → 1.12.0-snapshot.20251212152633

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
@@ -266,7 +266,7 @@
266
266
  .mdc-list-item__graphic > or-icon {
267
267
  pointer-events: none;
268
268
  }
269
- `,iw=class extends tu{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[p`${m(ii)}`,p`${m(it)}`,p`${m(ie)}`,p`${m(ir)}`,p`${m(ia)}`,p`${m(io)}`,p`${m(il)}`,p`${m(is)}`,p`${m(ic)}`,p`${m(id)}`,p`${m(im)}`,p`${m(ip)}`,p`${m(iu)}`,p`${m(ig)}`,p`${m(ih)}`,p`${m(ib)}`,ix]}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)||t.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null==(e=this._menuObserver)||e.disconnect())}shouldUpdate(t){return t.has("indeterminate")&&this._mdcComponent&&this.type===tq.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===tq.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===tq.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=tq.DATETIME:"boolean"==typeof this.value?this.type=tq.CHECKBOX:"number"==typeof this.value?this.type=tq.NUMBER:"string"==typeof this.value?this.type=tq.TEXT:this.type=tq.JSON),!0}focus(){this.type===tq.RANGE&&this._mdcComponent2?this._mdcComponent2.focus():this._mdcComponent&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}render(){if(this.type){let a=!this.fullWidth&&this.label,o=!this.fullWidth&&this.outlined,l=!!this.helperText,s=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),c={"mdc-text-field-helper-text--persistent":!s&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":s},d=null!==this.value&&void 0!==this.value||!1===this.value,m=a?K`<span class="mdc-floating-label ${d?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case tq.RADIO:let p=this.resolveOptions(this.options);return this._selectedIndex=-1,K`
269
+ `,iw=class extends tu{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[p`${m(ii)}`,p`${m(it)}`,p`${m(ie)}`,p`${m(ir)}`,p`${m(ia)}`,p`${m(io)}`,p`${m(il)}`,p`${m(is)}`,p`${m(ic)}`,p`${m(id)}`,p`${m(im)}`,p`${m(ip)}`,p`${m(iu)}`,p`${m(ig)}`,p`${m(ih)}`,p`${m(ib)}`,ix]}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)||t.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null==(e=this._menuObserver)||e.disconnect())}shouldUpdate(t){return t.has("indeterminate")&&this._mdcComponent&&this.type===tq.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===tq.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===tq.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=tq.DATETIME:"boolean"==typeof this.value?this.type=tq.CHECKBOX:"number"==typeof this.value?this.type=tq.NUMBER:"string"==typeof this.value?this.type=tq.TEXT:this.type=tq.JSON),!0}focus(){this.type===tq.RANGE&&this._mdcComponent2&&"function"==typeof this._mdcComponent2.focus?this._mdcComponent2.focus():this._mdcComponent&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}render(){if(this.type){let a=!this.fullWidth&&this.label,o=!this.fullWidth&&this.outlined,l=!!this.helperText,s=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),c={"mdc-text-field-helper-text--persistent":!s&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":s},d=null!==this.value&&void 0!==this.value||!1===this.value,m=a?K`<span class="mdc-floating-label ${d?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case tq.RADIO:let p=this.resolveOptions(this.options);return this._selectedIndex=-1,K`
270
270
  <div class="mdc-radio-container">
271
271
  ${p?p.map(([t,e],n)=>(this.value===t&&(this._selectedIndex=n),K`
272
272
  <div id="field" class="mdc-form-field">
@@ -354,7 +354,7 @@
354
354
  <span class="mdc-floating-label" style="color: rgba(0, 0, 0, 0.6); text-transform: capitalize; visibility: ${this.searchableValue?"hidden":"visible"}" id="my-label-id">
355
355
  <or-translate .value="${this.searchLabel}"></or-translate>
356
356
  </span>
357
- <input class="mdc-text-field__input" type="text"
357
+ <input id="searchable-input" class="mdc-text-field__input" type="text"
358
358
  @keyup="${t=>this.searchableValue=t.target.value}"
359
359
  />
360
360
  </label>