|
@@ -1,4 +1,4 @@
|
|
|
-define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeSqlParser, sqlFormatter) { 'use strict';
|
|
|
+define(['exports'], function (exports) { 'use strict';
|
|
|
|
|
|
var labelWidth = 80;
|
|
|
var windows = {
|
|
@@ -64172,6 +64172,7 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
|
|
|
function getGridEditRows(grid) {
|
|
|
return grid.getGridEditRows();
|
|
|
}
|
|
|
+ //# sourceMappingURL=systemLib.js.map
|
|
|
|
|
|
var SystemLib = /*#__PURE__*/Object.freeze({
|
|
|
__proto__: null,
|
|
@@ -134491,7 +134492,6 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
|
|
|
}
|
|
|
* */
|
|
|
}
|
|
|
- //# sourceMappingURL=SqlComplex.js.map
|
|
|
|
|
|
function initSqlEditor () {
|
|
|
Ext.define('com.yvan.studio.SqlEditor', {
|
|
@@ -134623,15 +134623,15 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
|
|
|
var editor = monaco.editor.create(element, __assign(__assign({}, opts), { language: 'sql', minimap: {
|
|
|
enabled: false
|
|
|
} }));
|
|
|
- editor.addCommand(monaco.KeyMod.Shift | monaco.KeyMod.Alt | monaco.KeyCode.KeyF, function () {
|
|
|
- var sql = editor.getValue();
|
|
|
- if (lodash.trim(sql).length > 0) {
|
|
|
- editor.setValue(sqlFormatter.format(sql, {
|
|
|
- indent: ' ',
|
|
|
- uppercase: true,
|
|
|
- }));
|
|
|
- }
|
|
|
- });
|
|
|
+ // editor.addCommand(monaco.KeyMod.Shift | monaco.KeyMod.Alt | monaco.KeyCode.KeyF, function () {
|
|
|
+ // const sql = editor.getValue()
|
|
|
+ // if (_.trim(sql).length > 0) {
|
|
|
+ // editor.setValue(format(sql, {
|
|
|
+ // indent: ' ',
|
|
|
+ // uppercase: true,
|
|
|
+ // }))
|
|
|
+ // }
|
|
|
+ // })
|
|
|
editor.onKeyUp(function (e) {
|
|
|
// console.log(e)
|
|
|
if ( /*e.code === 'Enter'||*/e.code === 'Quote') {
|