@openremote/or-asset-tree 1.12.0-snapshot.20251212145816 → 1.12.0-snapshot.20251212161717

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.
@@ -731,6 +731,9 @@
731
731
  display: flex;
732
732
  flex-direction: column;
733
733
  }
734
+ .mdc-form-field:has(> .mdc-radio) {
735
+ height: 56px !important;
736
+ }
734
737
  .mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
735
738
  color: var(--mdc-theme-error, #b00020)
736
739
  }
@@ -850,30 +853,28 @@
850
853
  .mdc-list-item__graphic > or-icon {
851
854
  pointer-events: none;
852
855
  }
853
- `,eF=class extends a.oi{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[(0,a.iv)`${(0,a.$m)(ex)}`,(0,a.iv)`${(0,a.$m)(e_)}`,(0,a.iv)`${(0,a.$m)(ey)}`,(0,a.iv)`${(0,a.$m)(ew)}`,(0,a.iv)`${(0,a.$m)(ek)}`,(0,a.iv)`${(0,a.$m)(eE)}`,(0,a.iv)`${(0,a.$m)(eA)}`,(0,a.iv)`${(0,a.$m)(eT)}`,(0,a.iv)`${(0,a.$m)(eC)}`,(0,a.iv)`${(0,a.$m)(eI)}`,(0,a.iv)`${(0,a.$m)(eS)}`,(0,a.iv)`${(0,a.$m)(eO)}`,(0,a.iv)`${(0,a.$m)(eL)}`,(0,a.iv)`${(0,a.$m)(eN)}`,(0,a.iv)`${(0,a.$m)(eR)}`,(0,a.iv)`${(0,a.$m)(eD)}`,eP]}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===o.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===o.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===o.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=o.DATETIME:"boolean"==typeof this.value?this.type=o.CHECKBOX:"number"==typeof this.value?this.type=o.NUMBER:"string"==typeof this.value?this.type=o.TEXT:this.type=o.JSON),!0}focus(){this.type===o.RANGE&&this._mdcComponent2?this._mdcComponent2.focus():this._mdcComponent&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}render(){if(this.type){let t=!this.fullWidth&&this.label,e=!this.fullWidth&&this.outlined,n=!!this.helperText,i=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),r={"mdc-text-field-helper-text--persistent":!i&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},l=null!==this.value&&void 0!==this.value||!1===this.value,p=t?(0,a.dy)`<span class="mdc-floating-label ${l?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case o.RADIO:let m=this.resolveOptions(this.options);return this._selectedIndex=-1,(0,a.dy)`
856
+ `,eF=class extends a.oi{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[(0,a.iv)`${(0,a.$m)(ex)}`,(0,a.iv)`${(0,a.$m)(e_)}`,(0,a.iv)`${(0,a.$m)(ey)}`,(0,a.iv)`${(0,a.$m)(ew)}`,(0,a.iv)`${(0,a.$m)(ek)}`,(0,a.iv)`${(0,a.$m)(eE)}`,(0,a.iv)`${(0,a.$m)(eA)}`,(0,a.iv)`${(0,a.$m)(eT)}`,(0,a.iv)`${(0,a.$m)(eC)}`,(0,a.iv)`${(0,a.$m)(eI)}`,(0,a.iv)`${(0,a.$m)(eS)}`,(0,a.iv)`${(0,a.$m)(eO)}`,(0,a.iv)`${(0,a.$m)(eL)}`,(0,a.iv)`${(0,a.$m)(eN)}`,(0,a.iv)`${(0,a.$m)(eR)}`,(0,a.iv)`${(0,a.$m)(eD)}`,eP]}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===o.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===o.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===o.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=o.DATETIME:"boolean"==typeof this.value?this.type=o.CHECKBOX:"number"==typeof this.value?this.type=o.NUMBER:"string"==typeof this.value?this.type=o.TEXT:this.type=o.JSON),!0}focus(){this.type===o.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 t=!this.fullWidth&&this.label,e=!this.fullWidth&&this.outlined,n=!!this.helperText,i=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),r={"mdc-text-field-helper-text--persistent":!i&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},l=null!==this.value&&void 0!==this.value||!1===this.value,p=t?(0,a.dy)`<span class="mdc-floating-label ${l?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case o.RADIO:let m=this.resolveOptions(this.options);return(0,a.dy)`
854
857
  <div class="mdc-radio-container">
855
- ${m?m.map(([t,e],n)=>(this.value===t&&(this._selectedIndex=n),(0,a.dy)`
858
+ ${m?m.map(([t,e])=>(0,a.dy)`
856
859
  <div id="field" class="mdc-form-field">
857
860
  <div class="mdc-radio">
858
- <input type="radio"
861
+ <input type="radio"
859
862
  id="elem-${t}"
860
863
  name="${(0,s.o)(this.name)}"
861
864
  value="${t}"
862
- ?checked="${this.value&&this.value.includes(t)}"
865
+ .checked="${this.value===t}"
863
866
  ?required="${this.required}"
864
- ?disabled="${this.disabled||this.readonly}"
867
+ ?disabled="${this.disabled||this.readonly}"
865
868
  @change="${e=>this.onValueChange(e.target,t)}"
866
869
  class="mdc-radio__native-control"/>
867
- <div class="mdc-radio__background">
868
- <div class="mdc-radio__outer-circle"></div>
869
- <div class="mdc-radio__inner-circle"></div>
870
- </div>
870
+ <div class="mdc-radio__background">
871
+ <div class="mdc-radio__outer-circle"></div>
872
+ <div class="mdc-radio__inner-circle"></div>
873
+ </div>
871
874
  <div class="mdc-radio__ripple"></div>
872
875
  </div>
873
876
  <label for="elem-${t}"><or-translate value="${e}"></or-translate></label>
874
- </div>
875
-
876
- `)):""}
877
+ </div>`):""}
877
878
  </div>
878
879
  `;case o.SWITCH:let u={"mdc-switch--disabled":this.disabled||this.readonly,"mdc-switch--full-width":this.fullWidth,"mdc-switch--checked":this.value};return(0,a.dy)`
879
880
  <span id="wrapper">
@@ -938,7 +939,7 @@
938
939
  <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">
939
940
  <or-translate .value="${this.searchLabel}"></or-translate>
940
941
  </span>
941
- <input class="mdc-text-field__input" type="text"
942
+ <input id="searchable-input" class="mdc-text-field__input" type="text"
942
943
  @keyup="${t=>this.searchableValue=t.target.value}"
943
944
  />
944
945
  </label>