@operato/app 1.11.3 → 1.11.6
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.11.
|
|
5
|
+
"version": "1.11.6",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -136,15 +136,15 @@
|
|
|
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.11.
|
|
140
|
-
"@operato/data-grist": "^1.11.
|
|
141
|
-
"@operato/font": "^1.11.
|
|
139
|
+
"@operato/attachment": "^1.11.6",
|
|
140
|
+
"@operato/data-grist": "^1.11.6",
|
|
141
|
+
"@operato/font": "^1.11.6",
|
|
142
142
|
"@operato/form": "^1.11.3",
|
|
143
143
|
"@operato/graphql": "^1.4.76",
|
|
144
144
|
"@operato/i18n": "^1.5.14",
|
|
145
|
-
"@operato/input": "^1.11.
|
|
145
|
+
"@operato/input": "^1.11.5",
|
|
146
146
|
"@operato/layout": "^1.11.3",
|
|
147
|
-
"@operato/property-editor": "^1.11.
|
|
147
|
+
"@operato/property-editor": "^1.11.6",
|
|
148
148
|
"@operato/shell": "^1.9.0",
|
|
149
149
|
"@operato/styles": "^1.7.3",
|
|
150
150
|
"@operato/utils": "^1.5.44",
|
|
@@ -189,5 +189,5 @@
|
|
|
189
189
|
"prettier --write"
|
|
190
190
|
]
|
|
191
191
|
},
|
|
192
|
-
"gitHead": "
|
|
192
|
+
"gitHead": "30d8c21bb20413a6e7906dbe07f4caef6a109e66"
|
|
193
193
|
}
|
|
@@ -53,6 +53,7 @@ export default class OxInputGraphql extends OxFormField {
|
|
|
53
53
|
|
|
54
54
|
private _self_changing: boolean = false
|
|
55
55
|
private _editor?: EditorView
|
|
56
|
+
private _changed: boolean = false
|
|
56
57
|
|
|
57
58
|
async updated(changes: PropertyValues<this>) {
|
|
58
59
|
const editor = await this.getEditor()
|
|
@@ -113,25 +114,15 @@ export default class OxInputGraphql extends OxFormField {
|
|
|
113
114
|
}),
|
|
114
115
|
highlightActiveLine(),
|
|
115
116
|
history(),
|
|
116
|
-
keymap.of([
|
|
117
|
-
|
|
118
|
-
indentWithTab,
|
|
119
|
-
{
|
|
120
|
-
key: 'Escape',
|
|
121
|
-
run: (view: EditorView) => {
|
|
122
|
-
togglefullscreen(this)
|
|
123
|
-
return true
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
]),
|
|
127
|
-
EditorView.updateListener.of(v => {
|
|
117
|
+
keymap.of([...historyKeymap, indentWithTab]),
|
|
118
|
+
EditorView.updateListener.of(async v => {
|
|
128
119
|
if (v.docChanged) {
|
|
129
120
|
this._self_changing = true
|
|
130
|
-
this.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
this._changed = true
|
|
122
|
+
|
|
123
|
+
await this.updateComplete
|
|
124
|
+
|
|
125
|
+
this._self_changing = false
|
|
135
126
|
}
|
|
136
127
|
})
|
|
137
128
|
],
|
|
@@ -139,6 +130,23 @@ export default class OxInputGraphql extends OxFormField {
|
|
|
139
130
|
})
|
|
140
131
|
}
|
|
141
132
|
|
|
133
|
+
this._editor.contentDOM.addEventListener('keydown', event => {
|
|
134
|
+
event.stopPropagation()
|
|
135
|
+
|
|
136
|
+
if (event.key === 'Escape') {
|
|
137
|
+
togglefullscreen(this._editor!.contentDOM)
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
this._editor.contentDOM.addEventListener('blur', e => {
|
|
142
|
+
if (!this._changed) {
|
|
143
|
+
return
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
this.value = this._editor!.state.doc.toString()
|
|
147
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true, detail: this.value }))
|
|
148
|
+
})
|
|
149
|
+
|
|
142
150
|
return this._editor
|
|
143
151
|
}
|
|
144
152
|
}
|