@processmaker/modeler 1.43.4 → 1.43.5
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/dist/modeler.common.js +61 -7
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +61 -7
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +4 -4
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modeler/Modeler.vue +32 -1
- package/src/mixins/highlightConfig.js +23 -1
package/dist/modeler.umd.js
CHANGED
|
@@ -37486,6 +37486,29 @@ var idleHighlighter = {
|
|
|
37486
37486
|
this.shapeView.unhighlight(this.shapeBody, this.prepareCustomColorHighlighter(color));
|
|
37487
37487
|
}
|
|
37488
37488
|
},
|
|
37489
|
+
setAiStatusHighlight: function setAiStatusHighlight(status) {
|
|
37490
|
+
this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
|
|
37491
|
+
if (status === 'generated') {
|
|
37492
|
+
this.shape.attr('body/fill', COLOR_COMPLETED_FILL);
|
|
37493
|
+
this.shapeView.highlight(this.shapeBody, completedHighlighter);
|
|
37494
|
+
}
|
|
37495
|
+
this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
|
|
37496
|
+
if (status === 'generating') {
|
|
37497
|
+
this.shape.attr('body/fill', COLOR_IN_PROGRESS_FILL);
|
|
37498
|
+
this.shapeView.highlight(this.shapeBody, inProgressHighlighter);
|
|
37499
|
+
}
|
|
37500
|
+
this.shapeView.unhighlight(this.shapeBody, idleHighlighter);
|
|
37501
|
+
if (status === 'previously generated') {
|
|
37502
|
+
this.shape.attr('body/fill', COLOR_IDLE_FILL);
|
|
37503
|
+
this.shapeView.highlight(this.shapeBody, idleHighlighter);
|
|
37504
|
+
}
|
|
37505
|
+
},
|
|
37506
|
+
unsetHighlights: function unsetHighlights() {
|
|
37507
|
+
this.shape.attr('body/fill', '#FFFFFF');
|
|
37508
|
+
this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
|
|
37509
|
+
this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
|
|
37510
|
+
this.shapeView.unhighlight(this.shapeBody, idleHighlighter);
|
|
37511
|
+
},
|
|
37489
37512
|
setShapeHighlightForReadOnly: function setShapeHighlightForReadOnly() {
|
|
37490
37513
|
if (!this.shapeView) {
|
|
37491
37514
|
return;
|
|
@@ -48329,10 +48352,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
48329
48352
|
)
|
|
48330
48353
|
|
|
48331
48354
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
48332
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48355
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=6a9d9f5c&
|
|
48333
48356
|
|
|
48334
48357
|
|
|
48335
|
-
var
|
|
48358
|
+
var Modelervue_type_template_id_6a9d9f5c_render = function render() {
|
|
48336
48359
|
var _vm = this,
|
|
48337
48360
|
_c = _vm._self._c;
|
|
48338
48361
|
return _c('span', {
|
|
@@ -48612,9 +48635,9 @@ var Modelervue_type_template_id_22be23c5_render = function render() {
|
|
|
48612
48635
|
});
|
|
48613
48636
|
})], 2)], 1);
|
|
48614
48637
|
};
|
|
48615
|
-
var
|
|
48638
|
+
var Modelervue_type_template_id_6a9d9f5c_staticRenderFns = [];
|
|
48616
48639
|
|
|
48617
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48640
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=6a9d9f5c&
|
|
48618
48641
|
|
|
48619
48642
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=728530a2&
|
|
48620
48643
|
var boundaryEventvue_type_template_id_728530a2_render = function render() {
|
|
@@ -80470,6 +80493,34 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
80470
80493
|
_this46.assetFail = true;
|
|
80471
80494
|
});
|
|
80472
80495
|
},
|
|
80496
|
+
highlightTaskArrays: function highlightTaskArrays(data) {
|
|
80497
|
+
if (data) {
|
|
80498
|
+
this.addAiHighlights(data.tasks);
|
|
80499
|
+
this.addAiHighlights(data.serviceTasks);
|
|
80500
|
+
this.addAiHighlights(data.scriptTasks);
|
|
80501
|
+
}
|
|
80502
|
+
},
|
|
80503
|
+
unhighlightTaskArrays: function unhighlightTaskArrays(data) {
|
|
80504
|
+
if (data) {
|
|
80505
|
+
this.removeAiHighlights(data.tasks);
|
|
80506
|
+
this.removeAiHighlights(data.serviceTasks);
|
|
80507
|
+
this.removeAiHighlights(data.scriptTasks);
|
|
80508
|
+
}
|
|
80509
|
+
},
|
|
80510
|
+
addAiHighlights: function addAiHighlights(taskArray) {
|
|
80511
|
+
var self = this;
|
|
80512
|
+
taskArray.forEach(function (task) {
|
|
80513
|
+
var taskNode = self.getElementByNodeId(task.id);
|
|
80514
|
+
taskNode.component.setAiStatusHighlight(task.status);
|
|
80515
|
+
});
|
|
80516
|
+
},
|
|
80517
|
+
removeAiHighlights: function removeAiHighlights(taskArray) {
|
|
80518
|
+
var self = this;
|
|
80519
|
+
taskArray.forEach(function (task) {
|
|
80520
|
+
var taskNode = self.getElementByNodeId(task.id);
|
|
80521
|
+
taskNode.component.unsetHighlights();
|
|
80522
|
+
});
|
|
80523
|
+
},
|
|
80473
80524
|
subscribeToProgress: function subscribeToProgress() {
|
|
80474
80525
|
var _window$ProcessMaker18,
|
|
80475
80526
|
_window$ProcessMaker19,
|
|
@@ -80479,17 +80530,19 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
80479
80530
|
var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsProgressEvent';
|
|
80480
80531
|
window.Echo.private(channel).listen(streamProgressEvent, function (response) {
|
|
80481
80532
|
if (response.data.promptSessionId !== _this47.promptSessionId) {
|
|
80533
|
+
_this47.unhighlightTaskArrays(response.data);
|
|
80482
80534
|
return;
|
|
80483
80535
|
}
|
|
80484
80536
|
if (_this47.cancelledJobs.some(function (element) {
|
|
80485
80537
|
return element === response.data.nonce;
|
|
80486
80538
|
})) {
|
|
80539
|
+
_this47.unhighlightTaskArrays(response.data);
|
|
80487
80540
|
return;
|
|
80488
80541
|
}
|
|
80489
80542
|
if (response.data) {
|
|
80490
80543
|
if (response.data.progress.status === 'running') {
|
|
80491
80544
|
_this47.loadingAI = true;
|
|
80492
|
-
|
|
80545
|
+
_this47.highlightTaskArrays(response.data);
|
|
80493
80546
|
} else if (response.data.progress.status === 'error') {
|
|
80494
80547
|
_this47.loadingAI = false;
|
|
80495
80548
|
window.ProcessMaker.alert(response.data.message, 'danger');
|
|
@@ -80499,6 +80552,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
80499
80552
|
_this47.setPromptSessions(response.data.promptSessionId);
|
|
80500
80553
|
// Successful generation
|
|
80501
80554
|
_this47.assetsCreated = true;
|
|
80555
|
+
_this47.unhighlightTaskArrays(response.data);
|
|
80502
80556
|
_this47.fetchHistory();
|
|
80503
80557
|
setTimeout(function () {
|
|
80504
80558
|
_this47.loadingAI = false;
|
|
@@ -80745,8 +80799,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
80745
80799
|
|
|
80746
80800
|
var Modeler_component = normalizeComponent(
|
|
80747
80801
|
modeler_Modelervue_type_script_lang_js_,
|
|
80748
|
-
|
|
80749
|
-
|
|
80802
|
+
Modelervue_type_template_id_6a9d9f5c_render,
|
|
80803
|
+
Modelervue_type_template_id_6a9d9f5c_staticRenderFns,
|
|
80750
80804
|
false,
|
|
80751
80805
|
null,
|
|
80752
80806
|
null,
|