@operato/app 1.7.2 → 1.7.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/app",
3
3
  "description": "WebApplication production supporting components following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "1.7.2",
5
+ "version": "1.7.3",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -136,17 +136,17 @@
136
136
  "@material/mwc-button": "^0.27.0",
137
137
  "@material/mwc-icon": "^0.27.0",
138
138
  "@material/mwc-icon-button": "^0.27.0",
139
- "@operato/attachment": "^1.7.2",
140
- "@operato/data-grist": "^1.7.2",
141
- "@operato/font": "^1.7.2",
139
+ "@operato/attachment": "^1.7.3",
140
+ "@operato/data-grist": "^1.7.3",
141
+ "@operato/font": "^1.7.3",
142
142
  "@operato/form": "^1.5.44",
143
143
  "@operato/graphql": "^1.4.76",
144
144
  "@operato/i18n": "^1.5.14",
145
- "@operato/input": "^1.7.2",
146
- "@operato/layout": "^1.5.48",
147
- "@operato/property-editor": "^1.7.2",
148
- "@operato/shell": "^1.5.48",
149
- "@operato/styles": "^1.5.48",
145
+ "@operato/input": "^1.7.3",
146
+ "@operato/layout": "^1.7.3",
147
+ "@operato/property-editor": "^1.7.3",
148
+ "@operato/shell": "^1.7.3",
149
+ "@operato/styles": "^1.7.3",
150
150
  "@operato/utils": "^1.5.44",
151
151
  "cm6-graphql": "^0.0.12",
152
152
  "codemirror": "^6.0.1",
@@ -189,5 +189,5 @@
189
189
  "prettier --write"
190
190
  ]
191
191
  },
192
- "gitHead": "f52b0ee200e802bbac539bf831945db996489e5f"
192
+ "gitHead": "298a7547367dd798025b1692465a490a05fb201d"
193
193
  }
@@ -27,7 +27,7 @@ export class OxGristEditorCode extends OxGristEditor {
27
27
  }
28
28
 
29
29
  showEditorPopup() {
30
- var { mode } = this.column.record?.options || {}
30
+ var { mode, language = 'javascript' } = this.column.record?.options || {}
31
31
 
32
32
  var change = (value: string) => {
33
33
  this.dispatchEvent(
@@ -51,6 +51,7 @@ export class OxGristEditorCode extends OxGristEditor {
51
51
  .value=${this.value}
52
52
  mode=${mode}
53
53
  .confirmCallback=${change.bind(this)}
54
+ language=${language}
54
55
  ></ox-popup-code-input>
55
56
  `,
56
57
  {
@@ -51,6 +51,7 @@ export class OxGristEditorJson extends OxGristEditor {
51
51
  change(e.detail.value)
52
52
  popup.close()
53
53
  }}
54
+ lanugage="json"
54
55
  ></ox-popup-code-input>
55
56
  `,
56
57
  {
@@ -37,10 +37,17 @@ export class OxPopupCodeInput extends LitElement {
37
37
  @property({ type: Object }) value: any
38
38
  @property({ type: String }) mode: string = 'javascript'
39
39
  @property({ type: Object }) confirmCallback!: (newval: any) => void
40
+ @property({ type: String }) language?: 'javascript' | 'json' | 'sql' = 'javascript'
40
41
 
41
42
  render() {
42
43
  return html`
43
- <ox-input-code .value=${this.value} .mode=${this.mode} @change=${this.onChange.bind(this)}> </ox-input-code>
44
+ <ox-input-code
45
+ .value=${this.value}
46
+ .mode=${this.mode}
47
+ @change=${this.onChange.bind(this)}
48
+ language=${this.language}
49
+ >
50
+ </ox-input-code>
44
51
 
45
52
  <div class="button-container">
46
53
  <mwc-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>