|
@@ -172,7 +172,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
/*! exports provided: version, default */
|
|
/*! exports provided: version, default */
|
|
/***/ (function(module) {
|
|
/***/ (function(module) {
|
|
|
|
|
|
-module.exports = JSON.parse("{\"version\":\"2020_12_03 16_39\"}");
|
|
|
|
|
|
+module.exports = JSON.parse("{\"version\":\"2020_12_07 16_46\"}");
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
@@ -256,7 +256,7 @@ module.exports =
|
|
/* 0 */
|
|
/* 0 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
-// Generated from /tmp/tmp-2715Xlfam4sP62FI/ivprog.g4 by ANTLR 4.7
|
|
|
|
|
|
+// Generated from /tmp/tmp-184237bid74CzAZob/ivprog.g4 by ANTLR 4.7
|
|
// jshint ignore: start
|
|
// jshint ignore: start
|
|
var antlr4 = __webpack_require__(2);
|
|
var antlr4 = __webpack_require__(2);
|
|
|
|
|
|
@@ -932,7 +932,7 @@ module.exports =
|
|
/* 0 */
|
|
/* 0 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
-// Generated from /tmp/tmp-2715XQhuJHzzsmxx/ivprog.g4 by ANTLR 4.7
|
|
|
|
|
|
+// Generated from /tmp/tmp-18423BweKd1GpxdNi/ivprog.g4 by ANTLR 4.7
|
|
// jshint ignore: start
|
|
// jshint ignore: start
|
|
var antlr4 = __webpack_require__(2);
|
|
var antlr4 = __webpack_require__(2);
|
|
|
|
|
|
@@ -17358,7 +17358,6 @@ function renderAlgorithm() {
|
|
}
|
|
}
|
|
|
|
|
|
window.block_render = true;
|
|
window.block_render = true;
|
|
- console.log('rendering algorithm');
|
|
|
|
$('.all_functions').children().off();
|
|
$('.all_functions').children().off();
|
|
$('.all_functions').empty();
|
|
$('.all_functions').empty();
|
|
$('.list_globals').children().off();
|
|
$('.list_globals').children().off();
|
|
@@ -17375,7 +17374,6 @@ function renderAlgorithm() {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
window.block_render = false;
|
|
window.block_render = false;
|
|
}, 100);
|
|
}, 100);
|
|
- console.log('fim do render');
|
|
|
|
|
|
|
|
if (settingsFilter && settingsFilter[0]) {
|
|
if (settingsFilter && settingsFilter[0]) {
|
|
blockAllEditingOptions();
|
|
blockAllEditingOptions();
|
|
@@ -20490,10 +20488,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
function createFloatingCommand() {
|
|
function createFloatingCommand() {
|
|
- return $('<div class="ui comment created_element"> <i class="ui icon small quote left"></i> <span> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_break') + ' </span></div>');
|
|
|
|
|
|
+ return $('<div class="ui comment created_element"> <i class="ui icon small pause"></i> <span> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_break') + ' </span></div>');
|
|
}
|
|
}
|
|
function renderCommand(command, function_obj) {
|
|
function renderCommand(command, function_obj) {
|
|
- var el = $('<div class="ui comment command_container"> <i class="ui icon small quote left"></i> <i class="ui icon times red button_remove_command"></i> <span>' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_break') + '</span> </div>');
|
|
|
|
|
|
+ var el = $('<div class="ui comment command_container"> <i class="ui icon small pause"></i> <i class="ui icon times red button_remove_command"></i> <span>' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_break') + '</span> </div>');
|
|
el.data('command', command);
|
|
el.data('command', command);
|
|
addHandlers(command, function_obj, el);
|
|
addHandlers(command, function_obj, el);
|
|
return el;
|
|
return el;
|
|
@@ -20788,22 +20786,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
function renderMenu(command, dom_where_render, function_obj, dom_command) {
|
|
function renderMenu(command, dom_where_render, function_obj, dom_command) {
|
|
- var menu_div = '<div class="ui dropdown menu_commands" ><i class="icon code"></i> <div class="menu"> ';
|
|
|
|
|
|
+ var menu_div = '<button class="ui icon button minimize_block_button tiny"><i class="icon window minimize"></i></button> <div class="ui dropdown menu_commands pause" ><i class="icon pause"></i> <div class="menu"> ';
|
|
|
|
|
|
if (command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].repeatNtimes || command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].whiletrue || command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].dowhiletrue) {
|
|
if (command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].repeatNtimes || command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].whiletrue || command.type == _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].dowhiletrue) {
|
|
- menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"]["break"] + '"><i class="download icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_break') + ' </a>';
|
|
|
|
|
|
+ menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"]["break"] + '"><i class="pause icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_break') + ' </a>';
|
|
} else {
|
|
} else {
|
|
- menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"]["break"] + '"><i class="download icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_break') + ' </a>';
|
|
|
|
- menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].switchcase + '"><i class="download icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_case') + ' </a>';
|
|
|
|
|
|
+ menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"]["break"] + '"><i class="pause icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_break') + ' </a>';
|
|
|
|
+ menu_div += '<a class="item" data-command="' + _ivprog_elements__WEBPACK_IMPORTED_MODULE_0__["COMMAND_TYPES"].switchcase + '"><i class="pause icon"></i> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_1__["LocalizedStrings"].getUI('btn_case') + ' </a>';
|
|
}
|
|
}
|
|
|
|
|
|
menu_div += '</div></div>';
|
|
menu_div += '</div></div>';
|
|
menu_div = $(menu_div);
|
|
menu_div = $(menu_div);
|
|
dom_where_render.append(menu_div);
|
|
dom_where_render.append(menu_div);
|
|
addHandlers(command, dom_where_render, function_obj, dom_command);
|
|
addHandlers(command, dom_where_render, function_obj, dom_command);
|
|
|
|
+
|
|
|
|
+ if (command.collapsed) {
|
|
|
|
+ dom_command.children('.ui.block_commands').toggle();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
function addHandlers(command, dom_where_render, function_obj, dom_command) {
|
|
function addHandlers(command, dom_where_render, function_obj, dom_command) {
|
|
|
|
+ dom_where_render.find('.minimize_block_button').on('click', function (evt) {
|
|
|
|
+ dom_command.children('.ui.block_commands').toggle();
|
|
|
|
+ command.collapsed = !command.collapsed;
|
|
|
|
+ });
|
|
dom_where_render.find('.menu_commands').dropdown({
|
|
dom_where_render.find('.menu_commands').dropdown({
|
|
on: 'hover'
|
|
on: 'hover'
|
|
});
|
|
});
|
|
@@ -21813,7 +21819,7 @@ function createFloatingCommand() {
|
|
}
|
|
}
|
|
function renderCommand(command, function_obj) {
|
|
function renderCommand(command, function_obj) {
|
|
var ret = '';
|
|
var ret = '';
|
|
- ret += '<div class="ui iftrue command_container"><div class="ui data_block_if" data-if="true"> <i class="ui icon small random command_drag"></i> <i class="ui icon times red button_remove_command"></i>';
|
|
|
|
|
|
+ ret += '<div class="ui iftrue command_container"><div class="ui data_block_if" data-if="true"> <i class="ui icon small random command_drag"></i> <i class="ui icon times red button_remove_command"></i> <button class="ui icon button minimize_block_button tiny"><i class="icon window minimize"></i></button>';
|
|
ret += '<span class="span_command_spec"> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_if') + '</span>';
|
|
ret += '<span class="span_command_spec"> ' + _services_localizedStringsService__WEBPACK_IMPORTED_MODULE_0__["LocalizedStrings"].getUI('text_if') + '</span>';
|
|
ret += ' <span class="span_command_spec"> ( </span> <div class="conditional_expression"></div> <span class="span_command_spec"> ) </span>';
|
|
ret += ' <span class="span_command_spec"> ( </span> <div class="conditional_expression"></div> <span class="span_command_spec"> ) </span>';
|
|
ret += '<span> </span> ';
|
|
ret += '<span> </span> ';
|
|
@@ -21846,6 +21852,11 @@ function renderCommand(command, function_obj) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (command.collapsed) {
|
|
|
|
+ el.children('.data_block_else').toggle();
|
|
|
|
+ $(el.find('.block_commands')[0]).toggle();
|
|
|
|
+ }
|
|
|
|
+
|
|
return el;
|
|
return el;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -21857,6 +21868,11 @@ function addHandlers(command, function_obj, iftrue_dom) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ iftrue_dom.find('.minimize_block_button').on('click', function () {
|
|
|
|
+ iftrue_dom.children('.data_block_else').toggle();
|
|
|
|
+ $(iftrue_dom.find('.block_commands')[0]).toggle();
|
|
|
|
+ command.collapsed = !command.collapsed;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
@@ -27632,4 +27648,4 @@ function enableMatrixValueUpdate(var_obj, row, index, parent_node, function_name
|
|
|
|
|
|
/******/ });
|
|
/******/ });
|
|
});
|
|
});
|
|
-//# sourceMappingURL=main.d645005987e041044c6f.js.map
|
|
|
|
|
|
+//# sourceMappingURL=main.d37a85f034d619e41454.js.map
|