Skip to content

Commit cc13ffd

Browse files
authored
editor widget display percent (#193)
1 parent e379ff2 commit cc13ffd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/webapp/js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/js/grapheditor/Actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ Actions.prototype.init = function()
738738
'chartFillLines', 'chartNbPoints', 'chartPeriod', 'chartShowGrid',
739739
'chartStack', 'displayLegend', 'hiddenLine', 'metric1Max', 'metric1Min',
740740
'metricName1', 'metric2Max', 'metric2Min', 'metricName2',
741-
'metricsColorStart', 'metricsColorEnd', 'parentName', 'parentType', 'parentId',
741+
'metricsColorStart', 'metricsColorEnd', 'parentName', 'parentType', 'parentId', 'displayPercent',
742742
'resourceName', 'orientation', 'useResourceName', 'displayLabel', 'displayParentName', 'label'
743743
];
744744
const containerProps = ['type', 'modelId', 'viewId', 'imageName', 'centreonImageId', 'label', 'displayLabel', 'displayImage', 'displayWeatherStatusBackgroundColor', 'useBackgroundStatusColor'];

src/main/webapp/js/integrate.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3480,7 +3480,7 @@ function(k){d.orderCells(!1,null,!0)});this.addAction("sendBackward",function(k)
34803480
d.model.beginUpdate();try{var q=d.ungroupCells();if(null!=k)for(var x=0;x<k.length;x++)d.model.contains(k[x])&&(0==d.model.getChildCount(k[x])&&d.model.isVertex(k[x])&&d.setCellStyles("container","0",[k[x]]),q.push(k[x]))}finally{d.model.endUpdate()}0<q.length&&d.setSelectionCells(q)}},null,null,Editor.ctrlKey+"+Shift+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var q=[],x=0;x<k.length;x++)d.isTableRow(k[x])||d.isTableCell(k[x])||q.push(k[x]);
34813481
d.removeCellsFromParent(q)}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){function k(O){return O.map(function(T){if(void 0!==q.getAttribute(T)){var U=q.getAttribute(T),R={};return R[T]="label"===T?U.replace(/<br>/g," ").replace(/&nbsp;/g," "):U,R}}).filter(function(T){return void 0!==T})}var q=d.getSelectionCell()||d.getModel().getRoot();if(q&&q.value){var x=q.getAttribute("type");if(!("WIDGET"===x&&"LINK_LEGEND"===
34823482
q.getAttribute("widgetType")||"LINK"===x&&"SIMPLE"===q.getAttribute("linkType"))&&["LINK","MEDIA","RESOURCE","WIDGET","CONTAINER"].includes(x)){x="type resourceType resourceId displayLabel displayImage displayParentName useResourceName label resourceName modelId viewId parentName parentType parentId displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" ");var B="type linkType parentName parentType parentId resourceType resourceId resourceName modelId metric1Min metric1Max metric2Min metric2Max metricName1 metricName2 displayPercent".split(" "),
3483-
D="type mediaType newTab elementUrl imageName centreonImageId label".split(" "),F="type widgetType resourceType useFontStatusColor useBackgroundStatusColor applyStatusColor resourceId pieChartInnerRadius useFontStatusColor pieChartDisplayLabel pieChartExplosion outputWidgetFormat chartDisplayThreshold chartFillLines chartNbPoints chartPeriod chartShowGrid chartStack displayLegend hiddenLine metric1Max metric1Min metricName1 metric2Max metric2Min metricName2 metricsColorStart metricsColorEnd parentName parentType parentId resourceName orientation useResourceName displayLabel displayParentName label".split(" "),
3483+
D="type mediaType newTab elementUrl imageName centreonImageId label".split(" "),F="type widgetType resourceType useFontStatusColor useBackgroundStatusColor applyStatusColor resourceId pieChartInnerRadius useFontStatusColor pieChartDisplayLabel pieChartExplosion outputWidgetFormat chartDisplayThreshold chartFillLines chartNbPoints chartPeriod chartShowGrid chartStack displayLegend hiddenLine metric1Max metric1Min metricName1 metric2Max metric2Min metricName2 metricsColorStart metricsColorEnd parentName parentType parentId displayPercent resourceName orientation useResourceName displayLabel displayParentName label".split(" "),
34843484
I="type modelId viewId imageName centreonImageId label displayLabel displayImage displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" "),E=[];void 0!==q.getAttribute("resourceType")&&(E=k(x));void 0!==q.getAttribute("linkType")&&(E=k(B));void 0!==q.getAttribute("mediaType")&&(E=k(D));void 0!==q.getAttribute("widgetType")&&(E=k(F));"CONTAINER"===q.getAttribute("type")&&(E=k(I));parent.postMessage(JSON.stringify({mxObject:E,mxStyle:q.getStyle(),event:"setShowWizardShapeProperties"}),
34853485
"*")}}},null,null,Editor.ctrlKey+"+E");this.addAction("editCentreonStyle",function(){var k=d.getSelectionCells()||d.getModel().getRoot();if(k){var q=["RESOURCE","CONTAINER"];k=k.filter(function(x){x=x.getAttribute("type");return q.includes(x)});1>k.length||(1===k.length?(k=d.getCellStyle(k[0]).style,parent.postMessage(JSON.stringify({mxObject:[{type:"RESOURCE_AND_CONTAINER"}],mxStyle:k||"ICON",event:"setCentreonStyle"}),"*")):parent.postMessage(JSON.stringify({mxObject:[{type:"RESOURCE_AND_CONTAINER"}],
34863486
mxStyle:"ICON",event:"setCentreonStyle"}),"*"))}},null,null,Editor.ctrlKey+"+E");this.addAction("createMapFromContainer",function(){function k(B){return B.map(function(D){if(void 0!==q.getAttribute(D)){var F=q.getAttribute(D),I={};return I[D]="label"===D?F.replace(/<br>/g," ").replace(/&nbsp;/g," "):F,I}}).filter(function(D){return void 0!==D})}var q=d.getSelectionCell()||d.getModel().getRoot(),x="type modelId viewId imageName centreonImageId label".split(" ");"CONTAINER"===q.getAttribute("type")&&

src/main/webapp/js/viewer-static.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/js/viewer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)