@sapui5/sap.makit 1.84.21 → 1.84.24

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.makit",
3
- "version": "1.84.21",
3
+ "version": "1.84.24",
4
4
  "description": "SAPUI5 Library sap.makit",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAPUI5
7
7
 
8
8
  (c) Copyright 2009-2020 SAP SE. All rights reserved</copyright>
9
- <version>1.84.21</version>
9
+ <version>1.84.24</version>
10
10
 
11
11
  <documentation>Mobile Chart controls based on the Sybase MAKIT charting lib.</documentation>
12
12
 
@@ -965,7 +965,7 @@ $MA.Graph.Share.toolChanged(document.getElementById("g_maPencilButton"));$MA.sen
965
965
  $MA.Graph.Share.refresh=function(){if(g_maGraphShareMask){g_maGraphShareMask.style.width=window.innerWidth+"px";g_maGraphShareMask.style.height=window.innerHeight+"px";g_maGraphShareWindow.style.width=window.innerWidth-2*g_maGraphSharePaddnig+"px";g_maGraphShareWindow.style.height=window.innerHeight-2*g_maGraphSharePaddnig+"px";var a=document.getElementById("g_maPainter"),b=document.getElementById("g_maToolbar"),c=document.getElementById("g_maToolbar2");a.width=g_maGraphShareWindow.clientWidth;a.height=
966
966
  g_maGraphShareWindow.clientHeight-b.offsetHeight-c.offsetHeight;g_maGraphShare.updateSize();g_maGraphShare.refresh()}};$MA.Graph.Share.sendMail=function(){$MA.sendGraphShareMail&&$MA.sendGraphShareMail("g_maPainter")};$MA.Graph.Share.selectTool=function(a,b){var c=g_maGraphShareToolDefault;switch(b){case 1:c="Pencil";break;case 2:c="Line";break;case 3:c="Rect";break;case 4:c="Ellipse";break;case 5:c="Text"}g_maGraphShare.setTool(c);$MA.Graph.Share.toolChanged(a)};
967
967
  $MA.Graph.Share.toolbarCallback=function(){document.getElementById("g_maDeleteButton").src=-1==g_maGraphShare.selected?g_maGraphShareImagesFolder+"erase_d_BarButtonItem.png":g_maGraphShareImagesFolder+"erase_BarButtonItem.png";var a=document.getElementById("g_maUndoButton");g_maGraphShare.isUndo()?a.src=g_maGraphShareImagesFolder+"undo_BarButtonItem.png":a.src=g_maGraphShareImagesFolder+"undo_d_BarButtonItem.png";a=document.getElementById("g_maRedoButton");g_maGraphShare.isRedo()?a.src=g_maGraphShareImagesFolder+
968
- "redo_BarButtonItem.png":a.src=g_maGraphShareImagesFolder+"redo_d_BarButtonItem.png";document.getElementById("g_maColorButton").style.backgroundColor=g_maGraphShare.color};$MA.Graph.Share.saveIt=function(){var a=document.getElementById("g_maPainter");window.open().location=a.toDataURL()};$MA.Graph.Share.goHistory=function(a){g_maGraphShare.goHistory(a)};$MA.Graph.Share.moveIt=function(a){g_maGraphShare.setMoveTool();$MA.Graph.Share.toolChanged(a)};
968
+ "redo_BarButtonItem.png":a.src=g_maGraphShareImagesFolder+"redo_d_BarButtonItem.png";document.getElementById("g_maColorButton").style.backgroundColor=g_maGraphShare.color};$MA.Graph.Share.saveIt=function(){var a=document.getElementById("g_maPainter");};$MA.Graph.Share.goHistory=function(a){g_maGraphShare.goHistory(a)};$MA.Graph.Share.moveIt=function(a){g_maGraphShare.setMoveTool();$MA.Graph.Share.toolChanged(a)};
969
969
  $MA.Graph.Share.toolChanged=function(a){document.getElementById("g_maMoveButton").style.borderColor="transparent";document.getElementById("g_maPencilButton").style.borderColor="transparent";document.getElementById("g_maLineButton").style.borderColor="transparent";document.getElementById("g_maRectButton").style.borderColor="transparent";document.getElementById("g_maEllipseButton").style.borderColor="transparent";document.getElementById("g_maTextButton").style.borderColor="transparent";a.style.borderColor=
970
970
  "red"};$MA.Graph.Share.deleteIt=function(){g_maGraphShare.deleteSelect()};$MA.Graph.Share.selectColor=function(){g_maGraphShare.selectColor(document.getElementById("g_maColorButton"))};$MA.Graph.Share.hide=function(){g_maGraphShareMask&&(g_maGraphShare.hideColor(),document.body.removeChild(g_maGraphShareMask),document.body.removeChild(g_maGraphShareWindow),g_maGraphShareWindow=g_maGraphShareMask=null)};$MA.Graph.Share.prototype.setColor=function(a){this.color=a;this.tool.colorChanged()};
971
971
  $MA.Graph.Share.prototype.setTool=function(a){null!=this.tool&&this.tool.clear();this.selected=-1;this.context.clearRect(0,0,this.canvas.width,this.canvas.height);this.refresh();switch(a){case "Pencil":this.tool=new $MA.Graph.Share.Tools.Pencil;break;case "Line":this.tool=new $MA.Graph.Share.Tools.Line;break;case "Rect":this.tool=new $MA.Graph.Share.Tools.Rect;break;case "Ellipse":this.tool=new $MA.Graph.Share.Tools.Ellipse;break;case "Text":this.tool=new $MA.Graph.Share.Tools.Text;break;case "Move":this.tool=
@@ -1048,7 +1048,7 @@ $MA.BI.SimpleChartView.prototype.maximize=function(a){a=$MA.BI.SimpleChartView.g
1048
1048
  $MA.BI.SimpleChartView.prototype.createGraphView=function(a){var b=document.createElement("div");b.id=this.id+"_graph";b.style.position="relative";b.style.width=this.getGraphViewWidth(a);b.style.height=this.getGraphViewHeight(a);b.className="chart";a.appendChild(b);this.graphViewElem=b;new $MA.DataView(b.id)};$MA.BI.SimpleChartView.prototype.getChart=function(){return this.elem.macontrol};$MA.BI.SimpleChartView.getChart=function(a){return a.macontrol};$MA.BI.SimpleChartView.getChartView=function(a){return $MA.BI.SimpleChartView.getChart(a).chartView};
1049
1049
  $MA.BI.SimpleChartView.prototype.getGraphView=function(){return this.graphViewElem.macontrol};$MA.BI.SimpleChartView.prototype.refreshGraphView=function(){this.getGraphView().refresh()};$MA.BI.SimpleChartView.prototype.refreshGraphData=function(){this.getGraphView().refreshData()};$MA.BI.SimpleChartView.prototype.redrawGraphView=function(){var a=this.getGraphElem();this.getGraph().redraw(a)};$MA.BI.SimpleChartView.prototype.getGraphGob=function(){return this.getGraphView().dvObj.getGraphGob()};
1050
1050
  $MA.BI.SimpleChartView.prototype.getGraphElem=function(){return this.graphViewElem.children[0]};$MA.BI.SimpleChartView.prototype.getGraph=function(){return this.getGraphElem().macontrol};$MA.BI.SimpleChartView.prototype.getGraphViewHeight=function(a){return void 0==this.titleBarElem?a.offsetHeight+"px":a.offsetHeight-$MA.BI.SimpleChartView.TITLEBAR_HEIGHT+"px"};$MA.BI.SimpleChartView.prototype.getGraphViewWidth=function(a){return"100%"};$MA.BI.SimpleChartView.prototype.getTableView=function(){return this.tableViewElem.macontrol};
1051
- $MA.BI.SimpleChartView.prototype.getRangeSelectorView=function(){return this.rangeSelectorViewElem.macontrol};$MA.BI.SimpleChartView.prototype.getRangeSelectorTextView=function(){var a=null,b=this.rangeSelectorViewElem;b&&b.textElem&&(a=b.textElem.macontrol);return a};$MA.BI.SimpleChartView.prototype.setTitle=function(a){this.titleBarElem&&(this.titleBarElem.children[0].innerHTML=a)};$MA.BI.SimpleChartView.prototype.setLegend=function(a){this.getGraph().setLegendProperty("legend",a)};
1051
+ $MA.BI.SimpleChartView.prototype.getRangeSelectorView=function(){return this.rangeSelectorViewElem.macontrol};$MA.BI.SimpleChartView.prototype.getRangeSelectorTextView=function(){var a=null,b=this.rangeSelectorViewElem;b&&b.textElem&&(a=b.textElem.macontrol);return a};$MA.BI.SimpleChartView.prototype.setTitle=function(a){this.titleBarElem&&(this.titleBarElem.children[0].textContent=a)};$MA.BI.SimpleChartView.prototype.setLegend=function(a){this.getGraph().setLegendProperty("legend",a)};
1052
1052
  $MA.BI.SimpleChartView.prototype.setLegendOffset=function(a,b){this instanceof $MA.BI.PieChartView&&this.getGraph().setLegendProperty("LegendOffset",[a,b])};$MA.BI.SimpleChartView.prototype.setDataPointsColor=function(a,b){this.getGraph().setProperty("DataPointsColor",a,b)};$MA.BI.SimpleChartView.prototype.getProperty=function(a){return this.chartObj.getProperty(a)};$MA.BI.SimpleChartView.prototype.getSelectedCategory=function(){return this.selectedCategoryValue};
1053
1053
  $MA.BI.SimpleChartView.prototype.getSelectedCategoryGroup=function(){return this.selectedCategoryGroup};$MA.BI.SimpleChartView.prototype.getSelectedSeries=function(a){var b=this.selectedSeriesName.length;if(void 0!=a){var c;for(c=0;c<b;c++)if(this.selectedSeriesName[c].chartName==a)return this.selectedSeriesName[c].seriesName}else if(0<b)return this.selectedSeriesName[0].seriesName};$MA.BI.SimpleChartView.prototype.getFirstItem=function(){return this.getGraphGob().getFirstItem()};
1054
1054
  $MA.BI.SimpleChartView.prototype.setFirstItem=function(a){this.getGraphGob().setFirstItem(a)};$MA.BI.SimpleChartView.prototype.getMaxItems=function(){return this.getGraphGob().getMaxItems()};$MA.BI.SimpleChartView.prototype.setMaxItems=function(a){this.getGraphGob().setMaxItems(a)};$MA.BI.SimpleChartView.prototype.getSelectedCategoryIndexRel=function(){return this.selectedCategoryIndex-this.getGraphGob().getFirstItem()};$MA.BI.SimpleChartView.prototype.getSelectedCategoryIndex=function(){return this.selectedCategoryIndex};
@@ -1056,7 +1056,7 @@ $MA.BI.SimpleChartView.prototype.setSelectedCategoryIndex=function(a,b){var c,d;
1056
1056
  $MA.BI.SimpleChartView.prototype.retrieve=function(a){var b=this.chartObj,c=b.dvObj;if(a){var d=c.getGraphGob();d.setFirstItem(0);d.setMaxItems();c.setTableBuffer("display",[]);this.categoryList=void 0;this.isDataChanged=!0;this.refreshAction="initialize";b.retrieve(a);0!=c.getRowCount()&&this.refreshAsync()}};
1057
1057
  $MA.BI.SimpleChartView.prototype.setPalette=function(a,b){void 0!=b&&"secondaryaxis"==b.toLowerCase()?this.secondaryAxisPalette=a:void 0==b||"primaryaxis"==b.toLowerCase()?this.primaryAxisPalette=a:this.getGraph().setProperty("Palette",[a,b]);this.refreshAction="initialize"};
1058
1058
  $MA.BI.SimpleChartView.prototype.setProperty=function(a,b){if(this.chartObj.setProperty(a,b)){var c=a.indexOf(".");if(0<c){var d=a.substring(0,c).toLowerCase(),c=a.substring(c+1,a.length);if(0===d.indexOf("category")||0===d.indexOf("series"))"sortorder"==c&&(this.chartObj.resetDataTable(),this.refreshAction="initialize"),this.refreshAsync();else if(0==d.indexOf("zoominglevels")){var d=a.lastIndexOf("["),e=a.lastIndexOf("]"),d=a.substring(d+1,e),d=parseInt(d,10);"query"==c&&d==this.chartObj.level?
1059
- this.retrieve(b):"categorycolumn"==c&&d==this.chartObj.level?(c=this.getGraphGob(),d=this.getGraphView(),c.setCategoryExpr(c.parseExpr(d.dvObj,b)),this.refreshAsync()):"title"==c&&(document.getElementById(this.id+"_toolbar_sz_"+d).innerHTML=b)}else this.refreshAsync()}else"query"==a?this.retrieve(b):"title"==a?this.setTitle(b):"legend"==a&&this.refreshAsync();return!0}return!1};
1059
+ this.retrieve(b):"categorycolumn"==c&&d==this.chartObj.level?(c=this.getGraphGob(),d=this.getGraphView(),c.setCategoryExpr(c.parseExpr(d.dvObj,b)),this.refreshAsync()):"title"==c&&(document.getElementById(this.id+"_toolbar_sz_"+d).textContent=b)}else this.refreshAsync()}else"query"==a?this.retrieve(b):"title"==a?this.setTitle(b):"legend"==a&&this.refreshAsync();return!0}return!1};
1060
1060
  $MA.BI.SimpleChartView.prototype.triggerTapEvent=function(a){if(a.target==this.valueBubbleViewElem){var b;if(a.changedTouches){var c=a.changedTouches.item(0);b=$MA.getMouseXY(c,a.srcElement)}else b=$MA.getMouseXY(a);c=b.x+this.valueBubbleViewElem.offsetLeft;b=b.y+this.valueBubbleViewElem.offsetTop;var d=this.getGraph(),e=this.getValueBubbleObject(),c=d.getObjectAtPointer(c,b,e.value);this.fillSelectedValues(c);void 0!=this.longPressPos&&(this.abortLongPress(),c=this.chartObj._parent,c.trigger("tap",
1061
1061
  {id:c.id,eventObject:a}))}};$MA.BI.SimpleChartView.prototype.stopEvent=function(a){};$MA.BI.SimpleChartView.prototype.getEventPos=function(a,b){var c=void 0!==a.offsetX?a.offsetX:a.layerX,d=void 0!==a.offsetY?a.offsetY:a.layerY;b&&void 0==a.target.vbObj&&(c-=this.valueBubbleViewElem.offsetLeft,d-=this.valueBubbleViewElem.offsetTop);return{x:c,y:d}};
1062
1062
  $MA.BI.SimpleChartView.prototype.onMouseDown=function(a){var b=this.getGraph(),c=this.getEventPos(a);this.tappedInLegend=this.startY=this.startX=void 0;if(void 0==a.target.vbObj)b.pointInLegend(c.x,c.y)&&(this.startX=c.x,this.startY=c.y,this.tappedInLegend=!0);else if(!b.getGraphObj().suppliedTotals||b.getGraphObj().drawObjects.length)this.valueBubbleViewElem.style.display="",this.clickValueBubble(this,c.x,c.y,a.clientX,a.clientY,!0,this.elem);this.stopEvent(a)};
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  "sap.makit.ValueAxis",
42
42
  "sap.makit.ValueBubble"
43
43
  ],
44
- version: "1.84.21"
44
+ version: "1.84.24"
45
45
  });
46
46
 
47
47
  /**