@openremote/or-json-forms 1.2.0-snapshot.20240616202404 → 1.2.0-snapshot.20240819101332
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
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
</div>
|
|
488
488
|
${e?H`<div style="min-width: 70px; width: 70px;">${e}</div>`:""}
|
|
489
489
|
</span>
|
|
490
|
-
`}return e}}}return H`<span>INPUT TYPE NOT IMPLEMENTED</span>`}_getFormat(){if(this.format)return this.format}update(e){if(e.has("autoValidate")&&this._mdcComponent){const e=this._mdcComponent;e.foundation&&e.foundation.setValidateOnValueChange&&e.foundation.setValidateOnValueChange(this.autoValidate)}super.update(e)}firstUpdated(e){super.firstUpdated(e),this.autoValidate&&this.reportValidity()}updated(e){if(super.updated(e),e.has("type")){const e=this.shadowRoot.getElementById("component");if(this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0),e&&this.type){switch(this.type){case Ua.LIST:const t=new Ro(e);this._mdcComponent=t,t.selectedIndex=this._selectedIndex;break;case Ua.SELECT:const n=new Jo(e);this._mdcComponent=n,this.value||(n.selectedIndex=-1),this.multiple&&(this._mdcComponent.foundation.adapter.getSelectedIndex=()=>{if(!Array.isArray(this.value)||0===this.value.length)return-1;const e=this.value[0];return this._mdcComponent.foundation.adapter.getMenuItemValues().indexOf(e)}),n.useDefaultValidation=!this.multiple,n.valid=!this.required||!this.multiple&&n.valid||this.multiple&&Array.isArray(this.value)&&this.value.length>0;const i=this.getSelectedTextValue();this._mdcComponent.foundation.adapter.setSelectedText(i),this._mdcComponent.foundation.adapter.floatLabel(!!i),this._menuObserver||(this._menuObserver=new IntersectionObserver(((e,t)=>{var n,i;e[0].target.style.minWidth!=(null===(n=e[0].target.parentElement)||void 0===n?void 0:n.clientWidth)+"px"&&(e[0].target.style.minWidth=(null===(i=e[0].target.parentElement)||void 0===i?void 0:i.clientWidth)+"px")})),this._menuObserver.observe(this.shadowRoot.getElementById("mdc-select-menu")));const r=void 0!==this.searchProvider,o=this.multiple;n.menu.menuSurface_.foundation.handleBodyClick=function(e){const t=e.composedPath()[0];if(this.adapter.isElementInContainer(t)){if(!r)return;if(t instanceof Element&&!t.className.includes("mdc-list-item"))return;if(o)return}n.menu.menuSurface_.close()};break;case Ua.RADIO:case Ua.CHECKBOX_LIST:case Ua.COLOUR:break;case Ua.BUTTON:case Ua.BUTTON_MOMENTARY:const a=!this.action&&!this.label,s=new ar(e);a&&(s.unbounded=!0),this._mdcComponent=s;break;case Ua.BUTTON_TOGGLE:this._mdcComponent=new aa(e);break;case Ua.CHECKBOX:this._mdcComponent=new Fr(e);const l=this.shadowRoot.getElementById("field");if(l){const e=new ta(l);e.input=this._mdcComponent,this._mdcComponent2=e}break;case Ua.SWITCH:this._mdcComponent=new Gr(e);break;case Ua.RANGE:this._mdcComponent=new co(e);const c=this.shadowRoot.getElementById("number");if(c){const e=new Sr(c);e.useNativeValidation=!1,this._mdcComponent2=e}break;default:const d=new Sr(e);d.useNativeValidation=!1,this._mdcComponent=d}this._mdcComponent&&this.focused&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}}else{if(this.type===Ua.SELECT&&this._mdcComponent){e.has("options")&&this._mdcComponent.layoutOptions(),this._mdcComponent.disabled=!(!this.disabled&&!this.readonly),this._mdcComponent.useDefaultValidation=!this.multiple,this._mdcComponent.valid=!this.required||!this.multiple&&this._mdcComponent.valid||this.multiple&&Array.isArray(this.value)&&this.value.length>0;const t=this.getSelectedTextValue();this._mdcComponent.foundation.adapter.setSelectedText(t),this._mdcComponent.foundation.adapter.floatLabel(!!t)}else if(this.type===Ua.RANGE&&this._mdcComponent){const e=this._mdcComponent;e.setDisabled(this.disabled||this.readonly),e.setValue(this.value)}else if(this.type===Ua.SWITCH&&this._mdcComponent)this._mdcComponent.checked=this.value;else if(this.type===Ua.CHECKBOX&&this._mdcComponent){const e=this._mdcComponent;e.checked=!!this.value,e.disabled=!(!this.disabled&&!this.readonly)}this._mdcComponent&&(this._mdcComponent.required=!!this.required)}this.autoValidate&&this.reportValidity()}renderOutlined(e){return H`
|
|
490
|
+
`}return e}}}return H`<span>INPUT TYPE NOT IMPLEMENTED</span>`}_getFormat(){if(this.format)return this.format}update(e){if(e.has("autoValidate")&&this._mdcComponent){const e=this._mdcComponent;e.foundation&&e.foundation.setValidateOnValueChange&&e.foundation.setValidateOnValueChange(this.autoValidate)}super.update(e)}firstUpdated(e){super.firstUpdated(e),this.autoValidate&&this.reportValidity()}updated(e){var t,n;if(super.updated(e),e.has("type")){const e=this.shadowRoot.getElementById("component");if(this._mdcComponent&&(this._mdcComponent.destroy(),this._mdcComponent=void 0),this._mdcComponent2&&(this._mdcComponent2.destroy(),this._mdcComponent2=void 0),e&&this.type){switch(this.type){case Ua.LIST:const t=new Ro(e);this._mdcComponent=t,t.selectedIndex=this._selectedIndex;break;case Ua.SELECT:const n=new Jo(e);this._mdcComponent=n,null!==this.value&&void 0!==this.value||(n.selectedIndex=-1),this.multiple&&(this._mdcComponent.foundation.adapter.getSelectedIndex=()=>{if(!Array.isArray(this.value)||0===this.value.length)return-1;const e=this.value[0];return this._mdcComponent.foundation.adapter.getMenuItemValues().indexOf(e)}),n.useDefaultValidation=!this.multiple,n.valid=!this.required||!this.multiple&&n.valid||this.multiple&&Array.isArray(this.value)&&this.value.length>0;const i=this.getSelectedTextValue();this._mdcComponent.foundation.adapter.setSelectedText(i),this._mdcComponent.foundation.adapter.floatLabel(!!i),this._menuObserver||(this._menuObserver=new IntersectionObserver(((e,t)=>{var n,i;e[0].target.style.minWidth!=(null===(n=e[0].target.parentElement)||void 0===n?void 0:n.clientWidth)+"px"&&(e[0].target.style.minWidth=(null===(i=e[0].target.parentElement)||void 0===i?void 0:i.clientWidth)+"px")})),this._menuObserver.observe(this.shadowRoot.getElementById("mdc-select-menu")));const r=void 0!==this.searchProvider,o=this.multiple;n.menu.menuSurface_.foundation.handleBodyClick=function(e){const t=e.composedPath()[0];if(this.adapter.isElementInContainer(t)){if(!r)return;if(t instanceof Element&&!t.className.includes("mdc-list-item"))return;if(o)return}n.menu.menuSurface_.close()};break;case Ua.RADIO:case Ua.CHECKBOX_LIST:case Ua.COLOUR:break;case Ua.BUTTON:case Ua.BUTTON_MOMENTARY:const a=!this.action&&!this.label,s=new ar(e);a&&(s.unbounded=!0),this._mdcComponent=s;break;case Ua.BUTTON_TOGGLE:this._mdcComponent=new aa(e);break;case Ua.CHECKBOX:this._mdcComponent=new Fr(e);const l=this.shadowRoot.getElementById("field");if(l){const e=new ta(l);e.input=this._mdcComponent,this._mdcComponent2=e}break;case Ua.SWITCH:this._mdcComponent=new Gr(e);break;case Ua.RANGE:this._mdcComponent=new co(e);const c=this.shadowRoot.getElementById("number");if(c){const e=new Sr(c);e.useNativeValidation=!1,this._mdcComponent2=e}break;default:const d=new Sr(e);d.useNativeValidation=!1,this._mdcComponent=d}this._mdcComponent&&this.focused&&"function"==typeof this._mdcComponent.focus&&this._mdcComponent.focus()}}else{if(this.type===Ua.SELECT&&this._mdcComponent){e.has("options")&&this._mdcComponent.layoutOptions(),this._mdcComponent.disabled=!(!this.disabled&&!this.readonly),this._mdcComponent.useDefaultValidation=!this.multiple,this._mdcComponent.valid=!this.required||!this.multiple&&this._mdcComponent.valid||this.multiple&&Array.isArray(this.value)&&this.value.length>0;const t=this.getSelectedTextValue();this._mdcComponent.foundation.adapter.setSelectedText(t),this._mdcComponent.foundation.adapter.floatLabel(!!t)}else if(this.type===Ua.RANGE&&this._mdcComponent){const e=this._mdcComponent;e.setDisabled(this.disabled||this.readonly),e.setValue(this.value)}else if(this.type===Ua.SWITCH&&this._mdcComponent)this._mdcComponent.checked=this.value;else if(this.type===Ua.CHECKBOX&&this._mdcComponent){const e=this._mdcComponent;e.checked=!!this.value,e.disabled=!(!this.disabled&&!this.readonly)}this._mdcComponent&&(this._mdcComponent.required=!!this.required)}e.has("label")&&(null===(n=null===(t=this._mdcComponent)||void 0===t?void 0:t.layout)||void 0===n||n.call(t)),this.autoValidate&&this.reportValidity()}renderOutlined(e){return H`
|
|
491
491
|
<span class="mdc-notched-outline">
|
|
492
492
|
<span class="mdc-notched-outline__leading"></span>
|
|
493
493
|
${e?H`
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
`:""}
|
|
498
498
|
<span class="mdc-notched-outline__trailing"></span>
|
|
499
499
|
</span>
|
|
500
|
-
`}setCustomValidity(e){this.errorMessage=e;const t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){const e=this.shadowRoot.getElementById("elem");let t=!0;return e&&e.validity&&(t=e.validity.valid),!t||this.type!==Ua.JSON&&this.type!==Ua.JSON_OBJECT||void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){const e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case Ua.CHECKBOX:case Ua.SWITCH:t="on"===t;break;case Ua.JSON:case Ua.JSON_OBJECT:case Ua.NUMBER:case Ua.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type!==Ua.JSON_OBJECT||"object"==typeof t&&!Array.isArray(t)||(t=this.value,o=ua.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===Ua.JSON||this.type==Ua.JSON_OBJECT?ua.i18next.t("validation.invalidJSON"):ua.i18next.t("validation.invalidNumber")}break;case Ua.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=ua.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==Ua.CHECKBOX_LIST&&t!==a&&(this.type===Ua.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new za(this.value,a,n))),null!=this.searchProvider&&this.type===Ua.SELECT){const e=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("select-searchable"))||void 0===r?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==Ua.CHECKBOX_LIST||sa.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new za(t,a,n))}get valid(){const e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){const e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map((e=>{if(Array.isArray(e))return e;{const t=""+e;return[e,ua.i18next.t(t,{defaultValue:sa.Util.camelCaseToSentenceCase(t)})]}}))),t}getSelectedTextValue(e){const t=this.value,n=Array.isArray(t)?t:t?[t]:void 0;if(!n)return"";const i=e||this.resolveOptions(this.options);return i&&n?n.map((e=>i.find((([t,n],i)=>e===t)))).map((e=>e?e[1]:"")).join(", "):""}};wa([me({type:Boolean})],Wa.prototype,"focused",void 0),wa([me()],Wa.prototype,"value",void 0),wa([me({type:String})],Wa.prototype,"type",void 0),wa([me({type:String})],Wa.prototype,"name",void 0),wa([me({type:Boolean})],Wa.prototype,"readonly",void 0),wa([me({type:Boolean})],Wa.prototype,"required",void 0),wa([me()],Wa.prototype,"max",void 0),wa([me()],Wa.prototype,"min",void 0),wa([me({type:Number})],Wa.prototype,"step",void 0),wa([me({type:Boolean})],Wa.prototype,"checked",void 0),wa([me({type:Boolean})],Wa.prototype,"indeterminate",void 0),wa([me({type:Number})],Wa.prototype,"maxLength",void 0),wa([me({type:Number})],Wa.prototype,"minLength",void 0),wa([me({type:Number})],Wa.prototype,"rows",void 0),wa([me({type:Number})],Wa.prototype,"cols",void 0),wa([me({type:Boolean})],Wa.prototype,"multiple",void 0),wa([me({type:String,attribute:!0,reflect:!1})],Wa.prototype,"pattern",void 0),wa([me({type:String})],Wa.prototype,"placeHolder",void 0),wa([me({type:Array})],Wa.prototype,"options",void 0),wa([me({type:Boolean})],Wa.prototype,"autoSelect",void 0),wa([me({type:Object})],Wa.prototype,"searchProvider",void 0),wa([me({type:String})],Wa.prototype,"icon",void 0),wa([me({type:String})],Wa.prototype,"iconColor",void 0),wa([me({type:String})],Wa.prototype,"iconOn",void 0),wa([me({type:String})],Wa.prototype,"iconTrailing",void 0),wa([me({type:Boolean})],Wa.prototype,"compact",void 0),wa([me({type:Boolean})],Wa.prototype,"comfortable",void 0),wa([me({type:Boolean})],Wa.prototype,"raised",void 0),wa([me({type:Boolean})],Wa.prototype,"action",void 0),wa([me({type:Boolean})],Wa.prototype,"unElevated",void 0),wa([me({type:Boolean})],Wa.prototype,"outlined",void 0),wa([me({type:Boolean})],Wa.prototype,"rounded",void 0),wa([me({type:Object})],Wa.prototype,"format",void 0),wa([me({type:Boolean})],Wa.prototype,"disableSliderNumberInput",void 0),wa([me({type:Boolean})],Wa.prototype,"fullWidth",void 0),wa([me({type:String})],Wa.prototype,"helperText",void 0),wa([me({type:Boolean})],Wa.prototype,"helperPersistent",void 0),wa([me({type:String,attribute:!0})],Wa.prototype,"validationMessage",void 0),wa([me({type:Boolean})],Wa.prototype,"autoValidate",void 0),wa([me({type:Boolean})],Wa.prototype,"charCounter",void 0),wa([me({type:String})],Wa.prototype,"label",void 0),wa([me({type:Boolean})],Wa.prototype,"disabled",void 0),wa([me({type:Boolean})],Wa.prototype,"continuous",void 0),wa([me({type:Boolean})],Wa.prototype,"resizeVertical",void 0),wa([fe()],Wa.prototype,"isUiValid",void 0),wa([fe()],Wa.prototype,"searchableValue",void 0),wa([fe()],Wa.prototype,"errorMessage",void 0),Wa=wa([ue("or-mwc-input")],Wa);var Va=o(88352),Ga=o.n(Va),Ka=(o(99176),o(52948),o(80832),o(7e4),function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a});class qa extends CustomEvent{constructor(e,t){super(qa.NAME,{bubbles:!0,composed:!0,detail:{value:e,valid:t}})}}qa.NAME="or-ace-editor-changed";class Xa extends CustomEvent{constructor(){super(Xa.NAME,{bubbles:!0,composed:!0})}}Xa.NAME="or-ace-editor-edit";let Ya=class extends ce{constructor(){super(...arguments),this.mode="ace/mode/json",this._lastValue="",this._editing=!1}static get styles(){return l`
|
|
500
|
+
`}setCustomValidity(e){this.errorMessage=e;const t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){const e=this.shadowRoot.getElementById("elem");let t=!0;return e&&e.validity&&(t=e.validity.valid),!t||this.type!==Ua.JSON&&this.type!==Ua.JSON_OBJECT||void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){const e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case Ua.CHECKBOX:case Ua.SWITCH:t="on"===t;break;case Ua.JSON:case Ua.JSON_OBJECT:case Ua.NUMBER:case Ua.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type!==Ua.JSON_OBJECT||"object"==typeof t&&!Array.isArray(t)||(t=this.value,o=ua.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===Ua.JSON||this.type==Ua.JSON_OBJECT?ua.i18next.t("validation.invalidJSON"):ua.i18next.t("validation.invalidNumber")}break;case Ua.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=ua.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==Ua.CHECKBOX_LIST&&t!==a&&(this.type===Ua.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new za(this.value,a,n))),null!=this.searchProvider&&this.type===Ua.SELECT){const e=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("select-searchable"))||void 0===r?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==Ua.CHECKBOX_LIST||sa.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new za(t,a,n))}get valid(){const e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){const e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map((e=>{if(Array.isArray(e))return e;{const t=""+e;return[e,ua.i18next.t(t,{defaultValue:sa.Util.camelCaseToSentenceCase(t)})]}}))),t}getSelectedTextValue(e){const t=this.value,n=Array.isArray(t)?t:null!=t?[t]:void 0;if(!n)return"";const i=e||this.resolveOptions(this.options);return i&&n?n.map((e=>i.find((([t,n],i)=>e===t)))).map((e=>e?e[1]:"")).join(", "):""}};wa([me({type:Boolean})],Wa.prototype,"focused",void 0),wa([me()],Wa.prototype,"value",void 0),wa([me({type:String})],Wa.prototype,"type",void 0),wa([me({type:String})],Wa.prototype,"name",void 0),wa([me({type:Boolean})],Wa.prototype,"readonly",void 0),wa([me({type:Boolean})],Wa.prototype,"required",void 0),wa([me()],Wa.prototype,"max",void 0),wa([me()],Wa.prototype,"min",void 0),wa([me({type:Number})],Wa.prototype,"step",void 0),wa([me({type:Boolean})],Wa.prototype,"checked",void 0),wa([me({type:Boolean})],Wa.prototype,"indeterminate",void 0),wa([me({type:Number})],Wa.prototype,"maxLength",void 0),wa([me({type:Number})],Wa.prototype,"minLength",void 0),wa([me({type:Number})],Wa.prototype,"rows",void 0),wa([me({type:Number})],Wa.prototype,"cols",void 0),wa([me({type:Boolean})],Wa.prototype,"multiple",void 0),wa([me({type:String,attribute:!0,reflect:!1})],Wa.prototype,"pattern",void 0),wa([me({type:String})],Wa.prototype,"placeHolder",void 0),wa([me({type:Array})],Wa.prototype,"options",void 0),wa([me({type:Boolean})],Wa.prototype,"autoSelect",void 0),wa([me({type:Object})],Wa.prototype,"searchProvider",void 0),wa([me({type:String})],Wa.prototype,"icon",void 0),wa([me({type:String})],Wa.prototype,"iconColor",void 0),wa([me({type:String})],Wa.prototype,"iconOn",void 0),wa([me({type:String})],Wa.prototype,"iconTrailing",void 0),wa([me({type:Boolean})],Wa.prototype,"compact",void 0),wa([me({type:Boolean})],Wa.prototype,"comfortable",void 0),wa([me({type:Boolean})],Wa.prototype,"raised",void 0),wa([me({type:Boolean})],Wa.prototype,"action",void 0),wa([me({type:Boolean})],Wa.prototype,"unElevated",void 0),wa([me({type:Boolean})],Wa.prototype,"outlined",void 0),wa([me({type:Boolean})],Wa.prototype,"rounded",void 0),wa([me({type:Object})],Wa.prototype,"format",void 0),wa([me({type:Boolean})],Wa.prototype,"disableSliderNumberInput",void 0),wa([me({type:Boolean})],Wa.prototype,"fullWidth",void 0),wa([me({type:String})],Wa.prototype,"helperText",void 0),wa([me({type:Boolean})],Wa.prototype,"helperPersistent",void 0),wa([me({type:String,attribute:!0})],Wa.prototype,"validationMessage",void 0),wa([me({type:Boolean})],Wa.prototype,"autoValidate",void 0),wa([me({type:Boolean})],Wa.prototype,"charCounter",void 0),wa([me({type:String})],Wa.prototype,"label",void 0),wa([me({type:Boolean})],Wa.prototype,"disabled",void 0),wa([me({type:Boolean})],Wa.prototype,"continuous",void 0),wa([me({type:Boolean})],Wa.prototype,"resizeVertical",void 0),wa([fe()],Wa.prototype,"isUiValid",void 0),wa([fe()],Wa.prototype,"searchableValue",void 0),wa([fe()],Wa.prototype,"errorMessage",void 0),Wa=wa([ue("or-mwc-input")],Wa);var Va=o(88352),Ga=o.n(Va),Ka=(o(99176),o(52948),o(80832),o(7e4),function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a});class qa extends CustomEvent{constructor(e,t){super(qa.NAME,{bubbles:!0,composed:!0,detail:{value:e,valid:t}})}}qa.NAME="or-ace-editor-changed";class Xa extends CustomEvent{constructor(){super(Xa.NAME,{bubbles:!0,composed:!0})}}Xa.NAME="or-ace-editor-edit";let Ya=class extends ce{constructor(){super(...arguments),this.mode="ace/mode/json",this._lastValue="",this._editing=!1}static get styles(){return l`
|
|
501
501
|
:host {
|
|
502
502
|
display: block;
|
|
503
503
|
width: 100%;
|