@things-factory/meta-ui 6.2.162 → 6.2.163
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.
|
@@ -20,7 +20,7 @@ import{css,html,LitElement}from"lit";import{CommonGristStyles,ButtonContainerSty
|
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
22
|
`];async connectedCallback(){"object"==typeof this.value?this.codeVlaue=JSON.stringify(this.value,0,2):this.codeVlaue=this.value,await super.connectedCallback()}async firstUpdated(){await super.firstUpdated()}render(){return html`
|
|
23
|
-
<ox-input-code mode="javascript" value=${this.codeVlaue}
|
|
23
|
+
<ox-input-code mode="javascript" value=${this.codeVlaue}></ox-input-code>
|
|
24
24
|
<div id="button-container" class="button-container">
|
|
25
25
|
<mwc-button raised label="${TermsUtil.tButton("empty")}" style="margin-left:7px;margin-top:7px;"
|
|
26
26
|
@click=${this.clickEmpty.bind(this)}>
|
|
@@ -20,7 +20,7 @@ import{css,html,LitElement}from"lit";import{CommonGristStyles,ButtonContainerSty
|
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
22
|
`];async connectedCallback(){this.value=this.record[this.config.value_field]?this.record[this.config.value_field]:"","object"==typeof this.value?this.codeValue=JSON.stringify(this.value,0,2):this.codeValue=this.value,await super.connectedCallback()}async firstUpdated(){await super.firstUpdated()}render(){return!!this.config.save_action?html`
|
|
23
|
-
<ox-input-code mode="javascript" value=${this.codeValue}
|
|
23
|
+
<ox-input-code mode="javascript" value=${this.codeValue}></ox-input-code>
|
|
24
24
|
<div id="button-container" class="button-container">
|
|
25
25
|
<mwc-button raised label="${TermsUtil.tButton("cancel")}" style="margin-left:7px;margin-top:7px;"
|
|
26
26
|
@click=${this.clickCancel.bind(this)}>
|
|
@@ -30,7 +30,7 @@ import{css,html,LitElement}from"lit";import{CommonGristStyles,ButtonContainerSty
|
|
|
30
30
|
</mwc-button>
|
|
31
31
|
</div>
|
|
32
32
|
`:html`
|
|
33
|
-
<ox-input-code mode="javascript" value=${this.codeValue}
|
|
33
|
+
<ox-input-code mode="javascript" value=${this.codeValue}></ox-input-code>
|
|
34
34
|
<div id="button-container" class="button-container">
|
|
35
35
|
<mwc-button raised label="${TermsUtil.tButton("cancel")}" style="margin-left:7px;margin-top:7px;"
|
|
36
36
|
@click=${this.clickCancel.bind(this)}>
|
|
@@ -28,7 +28,7 @@ import gql from"graphql-tag";import{store}from"@operato/shell";import{client}fro
|
|
|
28
28
|
padding-right: 12px;
|
|
29
29
|
}`]}async firstUpdated(){super.firstUpdated&&await super.firstUpdated();let t=await MetaApi.findOne("menu",this.recordId,"template"),e=t&&t.template||"";this.codeEditor.value=e,this.codeEditor.orgValue=this.codeEditor.value}render(){return html`
|
|
30
30
|
<legend>${this.title}</legend>
|
|
31
|
-
<ox-input-code mode="javascript" value=${this.codeValueNew}
|
|
31
|
+
<ox-input-code mode="javascript" value=${this.codeValueNew}></ox-input-code>
|
|
32
32
|
<div id="button-container" class="button-container">
|
|
33
33
|
<!-- <mwc-button raised label="${TermsUtil.tButton("save")}" @click=${this.save.bind(this)}></mwc-button> -->
|
|
34
34
|
</div>`}get codeEditor(){return this.shadowRoot.querySelector("ox-input-code")}async save(){if(this.codeEditor.orgValue==this.codeEditor.value)return void MetaApi.showAlertPopup("text.nothing_changed","text.there_is_nothing_to_save","info","confirm");if(0==store.getState().metaUI.studioPermission)return void document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:i18next.t("error.invalid license key")}}));if((await client.query({query:gql`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/meta-ui",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.163",
|
|
4
4
|
"main": "server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/lite-menu": "^6.2.
|
|
27
|
+
"@things-factory/lite-menu": "^6.2.163",
|
|
28
28
|
"@things-factory/menu-base": "^6.2.162",
|
|
29
29
|
"@things-factory/operato-license-checker": "^4.0.4",
|
|
30
30
|
"@things-factory/shell": "^6.2.162"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "9709a69dcd717d56fb6d84d0f2c6a92c22d09f0c"
|
|
33
33
|
}
|