@openremote/or-map 1.12.0-snapshot.20251212152633 → 1.12.0-snapshot.20251212165311

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
@@ -541,6 +541,9 @@
541
541
  display: flex;
542
542
  flex-direction: column;
543
543
  }
544
+ .mdc-form-field:has(> .mdc-radio) {
545
+ height: 56px !important;
546
+ }
544
547
  .mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
545
548
  color: var(--mdc-theme-error, #b00020)
546
549
  }
@@ -660,30 +663,28 @@
660
663
  .mdc-list-item__graphic > or-icon {
661
664
  pointer-events: none;
662
665
  }
663
- `,iK=class extends tC{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[w`${y(iz)}`,w`${y(iO)}`,w`${y(iR)}`,w`${y(iN)}`,w`${y(iM)}`,w`${y(iD)}`,w`${y(iP)}`,w`${y(iB)}`,w`${y(iF)}`,w`${y(iH)}`,w`${y(iV)}`,w`${y(iU)}`,w`${y(i$)}`,w`${y(iX)}`,w`${y(iq)}`,w`${y(iG)}`,iY]}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===m.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===m.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===m.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=m.DATETIME:"boolean"==typeof this.value?this.type=m.CHECKBOX:"number"==typeof this.value?this.type=m.NUMBER:"string"==typeof this.value?this.type=m.TEXT:this.type=m.JSON),!0}focus(){this.type===m.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 o=!this.fullWidth&&this.label,a=!this.fullWidth&&this.outlined,l=!!this.helperText,c=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),s={"mdc-text-field-helper-text--persistent":!c&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":c},d=null!==this.value&&void 0!==this.value||!1===this.value,u=o?ta`<span class="mdc-floating-label ${d?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case m.RADIO:let f=this.resolveOptions(this.options);return this._selectedIndex=-1,ta`
666
+ `,iK=class extends tC{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[w`${y(iz)}`,w`${y(iO)}`,w`${y(iR)}`,w`${y(iN)}`,w`${y(iM)}`,w`${y(iD)}`,w`${y(iP)}`,w`${y(iB)}`,w`${y(iF)}`,w`${y(iH)}`,w`${y(iV)}`,w`${y(iU)}`,w`${y(i$)}`,w`${y(iX)}`,w`${y(iq)}`,w`${y(iG)}`,iY]}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===m.CHECKBOX&&(this._mdcComponent.indeterminate=this.indeterminate),t.has("disabled")&&(this._mdcComponent&&(this._mdcComponent.disabled=this.disabled),this.type===m.RANGE&&this._mdcComponent2&&(this._mdcComponent2.disabled=this.disabled)),t.has("readonly")&&(this._mdcComponent&&(this._mdcComponent.readonly=this.readonly),this.type===m.RANGE&&this._mdcComponent2&&(this._mdcComponent2.readonly=this.readonly)),!this.type&&this.value&&(this.value instanceof Date?this.type=m.DATETIME:"boolean"==typeof this.value?this.type=m.CHECKBOX:"number"==typeof this.value?this.type=m.NUMBER:"string"==typeof this.value?this.type=m.TEXT:this.type=m.JSON),!0}focus(){this.type===m.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 o=!this.fullWidth&&this.label,a=!this.fullWidth&&this.outlined,l=!!this.helperText,c=!this.isUiValid&&(!!this.errorMessage||!!this.validationMessage),s={"mdc-text-field-helper-text--persistent":!c&&this.helperPersistent,"mdc-text-field-helper-text--validation-msg":c},d=null!==this.value&&void 0!==this.value||!1===this.value,u=o?ta`<span class="mdc-floating-label ${d?"mdc-floating-label--float-above":""}" id="label">${this.label}</span>`:void 0;switch(this.type){case m.RADIO:let f=this.resolveOptions(this.options);return ta`
664
667
  <div class="mdc-radio-container">
665
- ${f?f.map(([t,e],n)=>(this.value===t&&(this._selectedIndex=n),ta`
668
+ ${f?f.map(([t,e])=>ta`
666
669
  <div id="field" class="mdc-form-field">
667
670
  <div class="mdc-radio">
668
- <input type="radio"
671
+ <input type="radio"
669
672
  id="elem-${t}"
670
673
  name="${this.name??ts}"
671
674
  value="${t}"
672
- ?checked="${this.value&&this.value.includes(t)}"
675
+ .checked="${this.value===t}"
673
676
  ?required="${this.required}"
674
- ?disabled="${this.disabled||this.readonly}"
677
+ ?disabled="${this.disabled||this.readonly}"
675
678
  @change="${e=>this.onValueChange(e.target,t)}"
676
679
  class="mdc-radio__native-control"/>
677
- <div class="mdc-radio__background">
678
- <div class="mdc-radio__outer-circle"></div>
679
- <div class="mdc-radio__inner-circle"></div>
680
- </div>
680
+ <div class="mdc-radio__background">
681
+ <div class="mdc-radio__outer-circle"></div>
682
+ <div class="mdc-radio__inner-circle"></div>
683
+ </div>
681
684
  <div class="mdc-radio__ripple"></div>
682
685
  </div>
683
686
  <label for="elem-${t}"><or-translate value="${e}"></or-translate></label>
684
- </div>
685
-
686
- `)):""}
687
+ </div>`):""}
687
688
  </div>
688
689
  `;case m.SWITCH:let g={"mdc-switch--disabled":this.disabled||this.readonly,"mdc-switch--full-width":this.fullWidth,"mdc-switch--checked":this.value};return ta`
689
690
  <span id="wrapper">