@openremote/or-log-viewer 1.12.0-snapshot.20251212152633 → 1.12.0-snapshot.20251215083628

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.
@@ -353,6 +353,9 @@
353
353
  display: flex;
354
354
  flex-direction: column;
355
355
  }
356
+ .mdc-form-field:has(> .mdc-radio) {
357
+ height: 56px !important;
358
+ }
356
359
  .mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
357
360
  color: var(--mdc-theme-error, #b00020)
358
361
  }
@@ -472,30 +475,28 @@
472
475
  .mdc-list-item__graphic > or-icon {
473
476
  pointer-events: none;
474
477
  }
475
- `,iu=class extends el{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[s`${r(n3)}`,s`${r(n5)}`,s`${r(n4)}`,s`${r(n6)}`,s`${r(n7)}`,s`${r(n8)}`,s`${r(n9)}`,s`${r(ie)}`,s`${r(it)}`,s`${r(ii)}`,s`${r(ia)}`,s`${r(ir)}`,s`${r(io)}`,s`${r(is)}`,s`${r(id)}`,s`${r(il)}`,im]}get nativeValue(){if(this._mdcComponent)return this._mdcComponent.value}disconnectedCallback(){var e,t;super.disconnectedCallback(),this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0,null==(e=this._menuObserver)||e.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null==(t=this._menuObserver)||t.disconnect())}shouldUpdate(e){return e.has("indeterminate")&&this._mdcComponent&&this.type===eL.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),e.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===eL.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),e.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===eL.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=eL.DATETIME:"boolean"==typeof this.value?this.type=eL.CHECKBOX:"number"==typeof this.value?this.type=eL.NUMBER:"string"==typeof this.value?this.type=eL.TEXT:this.type=eL.JSON),!0}focus(){this.type===eL.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 e=!this.fullWidth&&this.label,t=!this.fullWidth&&this.outlined,n=!!this.helperText,i=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),a={"mdc-text-field-helper-text--persistent":!i&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},r=null!==this.value&&void 0!==this.value||!1===this.value,o=e?U`<span class="mdc-floating-label ${r?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case eL.RADIO:let d=this.resolveOptions(this.options);return this._selectedIndex=-1,U`
478
+ `,iu=class extends el{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[s`${r(n3)}`,s`${r(n5)}`,s`${r(n4)}`,s`${r(n6)}`,s`${r(n7)}`,s`${r(n8)}`,s`${r(n9)}`,s`${r(ie)}`,s`${r(it)}`,s`${r(ii)}`,s`${r(ia)}`,s`${r(ir)}`,s`${r(io)}`,s`${r(is)}`,s`${r(id)}`,s`${r(il)}`,im]}get nativeValue(){if(this._mdcComponent)return this._mdcComponent.value}disconnectedCallback(){var e,t;super.disconnectedCallback(),this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0,null==(e=this._menuObserver)||e.disconnect()),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0,null==(t=this._menuObserver)||t.disconnect())}shouldUpdate(e){return e.has("indeterminate")&&this._mdcComponent&&this.type===eL.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),e.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===eL.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),e.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===eL.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=eL.DATETIME:"boolean"==typeof this.value?this.type=eL.CHECKBOX:"number"==typeof this.value?this.type=eL.NUMBER:"string"==typeof this.value?this.type=eL.TEXT:this.type=eL.JSON),!0}focus(){this.type===eL.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 e=!this.fullWidth&&this.label,t=!this.fullWidth&&this.outlined,n=!!this.helperText,i=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),a={"mdc-text-field-helper-text--persistent":!i&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},r=null!==this.value&&void 0!==this.value||!1===this.value,o=e?U`<span class="mdc-floating-label ${r?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case eL.RADIO:let d=this.resolveOptions(this.options);return U`
476
479
  <div class="mdc-radio-container">
477
- ${d?d.map(([e,t],n)=>(this.value===e&&(this._selectedIndex=n),U`
480
+ ${d?d.map(([e,t])=>U`
478
481
  <div id="field" class="mdc-form-field">
479
482
  <div class="mdc-radio">
480
- <input type="radio"
483
+ <input type="radio"
481
484
  id="elem-${e}"
482
485
  name="${this.name??X}"
483
486
  value="${e}"
484
- ?checked="${this.value&&this.value.includes(e)}"
487
+ .checked="${this.value===e}"
485
488
  ?required="${this.required}"
486
- ?disabled="${this.disabled||this.readonly}"
489
+ ?disabled="${this.disabled||this.readonly}"
487
490
  @change="${t=>this.onValueChange(t.target,e)}"
488
491
  class="mdc-radio__native-control"/>
489
- <div class="mdc-radio__background">
490
- <div class="mdc-radio__outer-circle"></div>
491
- <div class="mdc-radio__inner-circle"></div>
492
- </div>
492
+ <div class="mdc-radio__background">
493
+ <div class="mdc-radio__outer-circle"></div>
494
+ <div class="mdc-radio__inner-circle"></div>
495
+ </div>
493
496
  <div class="mdc-radio__ripple"></div>
494
497
  </div>
495
498
  <label for="elem-${e}"><or-translate value="${t}"></or-translate></label>
496
- </div>
497
-
498
- `)):""}
499
+ </div>`):""}
499
500
  </div>
500
501
  `;case eL.SWITCH:let s={"mdc-switch--disabled":this.disabled||this.readonly,"mdc-switch--full-width":this.fullWidth,"mdc-switch--checked":this.value};return U`
501
502
  <span id="wrapper">