@sapui5/ts-types 1.99.0 → 1.100.2

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.
Files changed (59) hide show
  1. package/package.json +1 -1
  2. package/types/sap.apf.d.ts +1 -1
  3. package/types/sap.ca.ui.d.ts +1 -1
  4. package/types/sap.chart.d.ts +1 -1
  5. package/types/sap.collaboration.d.ts +1 -1
  6. package/types/sap.esh.search.ui.d.ts +1 -1
  7. package/types/sap.f.d.ts +1 -1
  8. package/types/sap.fe.common.d.ts +2 -6
  9. package/types/sap.fe.core.d.ts +282 -333
  10. package/types/sap.fe.macros.d.ts +566 -47
  11. package/types/sap.fe.navigation.d.ts +1 -1
  12. package/types/sap.fe.templates.d.ts +1 -1
  13. package/types/sap.fe.test.d.ts +1 -1
  14. package/types/sap.feedback.ui.d.ts +1 -1
  15. package/types/sap.gantt.d.ts +709 -12
  16. package/types/sap.landvisz.d.ts +1 -1
  17. package/types/sap.m.d.ts +462 -86
  18. package/types/sap.makit.d.ts +1 -1
  19. package/types/sap.me.d.ts +1 -1
  20. package/types/sap.ndc.d.ts +1 -1
  21. package/types/sap.ovp.d.ts +1 -1
  22. package/types/sap.rules.ui.d.ts +1 -1
  23. package/types/sap.sac.grid.d.ts +1 -1
  24. package/types/sap.suite.ui.commons.d.ts +1 -1
  25. package/types/sap.suite.ui.generic.template.d.ts +1 -1
  26. package/types/sap.suite.ui.microchart.d.ts +5 -5
  27. package/types/sap.tnt.d.ts +1 -1
  28. package/types/sap.ui.codeeditor.d.ts +1 -1
  29. package/types/sap.ui.commons.d.ts +1 -1
  30. package/types/sap.ui.comp.d.ts +47 -33
  31. package/types/sap.ui.core.d.ts +771 -470
  32. package/types/sap.ui.dt.d.ts +1 -1
  33. package/types/sap.ui.export.d.ts +3 -3
  34. package/types/sap.ui.fl.d.ts +5 -1
  35. package/types/sap.ui.generic.app.d.ts +4 -3
  36. package/types/sap.ui.generic.template.d.ts +1 -1
  37. package/types/sap.ui.integration.d.ts +21 -3
  38. package/types/sap.ui.layout.d.ts +1 -1
  39. package/types/sap.ui.mdc.d.ts +9 -1
  40. package/types/sap.ui.richtexteditor.d.ts +1 -1
  41. package/types/sap.ui.rta.d.ts +1 -1
  42. package/types/sap.ui.suite.d.ts +1 -1
  43. package/types/sap.ui.support.d.ts +6 -12
  44. package/types/sap.ui.table.d.ts +2 -9
  45. package/types/sap.ui.testrecorder.d.ts +1 -1
  46. package/types/sap.ui.unified.d.ts +1 -1
  47. package/types/sap.ui.ux3.d.ts +1 -1
  48. package/types/sap.ui.vbm.d.ts +1 -1
  49. package/types/sap.ui.vk.d.ts +61 -1
  50. package/types/sap.ui.vtm.d.ts +1 -1
  51. package/types/sap.uiext.inbox.d.ts +2 -2
  52. package/types/sap.ushell.d.ts +4419 -4850
  53. package/types/sap.ushell_abap.d.ts +1 -1
  54. package/types/sap.uxap.d.ts +1 -1
  55. package/types/sap.viz.d.ts +105 -231
  56. package/types/sap.webanalytics.core.d.ts +1 -1
  57. package/types/sap.zen.commons.d.ts +1 -1
  58. package/types/sap.zen.crosstab.d.ts +1 -1
  59. package/types/sap.zen.dsh.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -21,6 +21,7 @@ declare namespace sap {
21
21
  * Example:
22
22
  * ```javascript
23
23
  *
24
+ * // Format required from "sap/viz/ui5/api/env/Format"
24
25
  * var customerFormatter = {
25
26
  * format : function(value, pattern) {
26
27
  * // add your codes here to convert number value to formatted string
@@ -28,10 +29,10 @@ declare namespace sap {
28
29
  * return formattedString;
29
30
  * }
30
31
  * };
31
- * sap.viz.ui5.api.env.Format.numericFormatter(customerFormatter);
32
+ * Format.numericFormatter(customerFormatter);
32
33
  * ```
33
34
  */
34
- numericFormatter(formatter: Function): sap.viz.ui5.api.env.Format;
35
+ numericFormatter(formatter: Function): any;
35
36
  }
36
37
  const Format: Format;
37
38
  }
@@ -740,7 +741,7 @@ declare namespace sap {
740
741
  */
741
742
  constructor(
742
743
  /**
743
- * id for the new control, generated automatically if no id is given
744
+ * ID for the new control, generated automatically if no ID is given
744
745
  */
745
746
  sId?: string,
746
747
  /**
@@ -779,23 +780,16 @@ declare namespace sap {
779
780
  */
780
781
  close(): void;
781
782
  /**
782
- * Connect chart Popover with VizFrame. Chart Popover is only supported for VizFrame with 'fiori' type.
783
- * It must be called by application.
784
- *
785
- * Example:
786
- * ```javascript
783
+ * Connect chart Popover with VizFrame.
787
784
  *
788
- * var vizFrame = new sap.viz.ui5.controls.VizFrame({
789
- * 'vizType' : 'bar',
790
- * 'uiConfig' : {
791
- * 'applicationSet': 'fiori'
792
- * }
793
- * });
794
- * var vizPopover = new sap.viz.ui5.controls.Popover({});
795
- * vizPopover.connect(vizFrame.getVizUid());
796
- * ```
785
+ * Chart Popover is only supported for VizFrame with type 'fiori'. This method must be called by application.
797
786
  */
798
- connect(uid: string): void;
787
+ connect(
788
+ /**
789
+ * Unique ID of the VizFrame to connect this Popover with
790
+ */
791
+ uid: string
792
+ ): void;
799
793
  /**
800
794
  * Gets current value of property {@link #getActionItems actionItems}.
801
795
  *
@@ -1139,23 +1133,33 @@ declare namespace sap {
1139
1133
  oListener?: object
1140
1134
  ): this;
1141
1135
  /**
1142
- * Export the current viz as SVG String. The viz is ready to be exported to svg ONLY after the initialization
1143
- * is finished. Any attempt to export to svg before that will result in an empty svg string.
1136
+ * Exports the current viz as an SVG String.
1137
+ *
1138
+ * The viz is ready to be exported to SVG ONLY after the initialization is finished. Any attempt to export
1139
+ * to SVG before that will result in an empty SVG string.
1144
1140
  */
1145
1141
  exportToSVGString(
1146
1142
  /**
1147
- *
1148
- * ```javascript
1149
- *
1150
- * {
1151
- * width: Number - the exported svg will be scaled to the specific width.
1152
- * height: Number - the exported svg will be scaled to the specific height.
1153
- * hideTitleLegend: Boolean - flag to indicate if the exported svg includes the original title and legend.
1154
- * hideAxis: Boolean - flag to indicate if the exported svg includes the original axis.
1155
- * }
1156
- * ```
1143
+ * Options for the export
1157
1144
  */
1158
- option?: Object
1145
+ option?: {
1146
+ /**
1147
+ * the exported SVG will be scaled to the specific width
1148
+ */
1149
+ width?: int;
1150
+ /**
1151
+ * the exported SVG will be scaled to the specific height
1152
+ */
1153
+ height?: int;
1154
+ /**
1155
+ * flag to indicate if the exported SVG includes the original title and legend
1156
+ */
1157
+ hideTitleLegend?: boolean;
1158
+ /**
1159
+ * flag to indicate if the exported SVG includes the original axis
1160
+ */
1161
+ hideAxis?: boolean;
1162
+ }
1159
1163
  ): string;
1160
1164
  /**
1161
1165
  * Fires event {@link #event:deselectData deselectData} to attached listeners.
@@ -1250,7 +1254,7 @@ declare namespace sap {
1250
1254
  */
1251
1255
  getVizType(): string;
1252
1256
  /**
1253
- * Uid for viz frame. It supports other controls to connect to a viz instance.
1257
+ * Uid for this viz frame. It supports other controls to connect to a viz instance.
1254
1258
  */
1255
1259
  getVizUid(): string;
1256
1260
  /**
@@ -1321,92 +1325,31 @@ declare namespace sap {
1321
1325
  /**
1322
1326
  * Set legend visibility.
1323
1327
  */
1324
- bLegendVisible: boolean
1325
- ): object;
1328
+ visibility: boolean
1329
+ ): this;
1326
1330
  /**
1327
1331
  * Setter for property uiConfig. uiConfig could only set via settings parameter of constructor.
1328
1332
  *
1329
1333
  * uiConfig from base type could config the instance. Supported uiConfig keyword: applicationSet, showErrorMessage
1330
- *
1331
- * Example:
1332
- *
1333
- *
1334
- * ```javascript
1335
- *
1336
- * var vizFrame = new sap.viz.ui5.controls.VizFrame({
1337
- * 'vizType' : 'bar',
1338
- * 'uiConfig' : {
1339
- * 'applicationSet' : 'fiori',
1340
- * 'showErrorMessage' : true
1341
- * }
1342
- * });
1343
- * ```
1344
1334
  */
1345
1335
  setUiConfig(oUiConfig: object): this;
1346
- /**
1347
- * Sets a new value for property {@link #getVizCustomizations vizCustomizations}.
1348
- *
1349
- * Chart customizations property, aim to customize existing (build-in) charts to meet specific LoB requirements.
1350
- * Currently, supported chart type : column, dual_column, bar, dual_bar, stacked_column, stacked_bar, 100_stacked_bar,
1351
- * 100_stacked_column, 100_dual_stacked_bar, 100_dual_stacked_column, dual_stacked_bar, dual_stacked_column,
1352
- * line, horizontal_line, dual_line, dual_horizontal_line, combination, horizontal_combination, stacked_combination,
1353
- * horizontal_stacked_combination, dual_stacked_combination, dual_horizontal_stacked_combination, scatter,
1354
- * bubble.
1355
- *
1356
- * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1357
- */
1358
- setVizCustomizations(
1359
- /**
1360
- * New value for property `vizCustomizations`
1361
- */
1362
- oVizCustomizations?: object
1363
- ): this;
1364
1336
  /**
1365
1337
  * Properties for viz frame.
1366
- *
1367
- * Example:
1368
- *
1369
- *
1370
- * ```javascript
1371
- *
1372
- * var vizFrame = new sap.viz.ui5.controls.VizFrame(...);
1373
- * var properties = {
1374
- * 'legend' : { 'visible'; : true }
1375
- * };
1376
- * vizFrame.setVizProperties(properties);
1377
- * ```
1378
1338
  */
1379
1339
  setVizProperties(oVizProperties: object): this;
1380
1340
  /**
1381
1341
  * Scales for VizFrame.
1382
- *
1383
- * Example:
1384
- *
1385
- *
1386
- * ```javascript
1387
- *
1388
- * var vizFrame = new sap.viz.ui5.controls.VizFrame(...);
1389
- * var scales = [{
1390
- * 'feed': 'color',
1391
- * 'palette': ['#ff0000']
1392
- * }];
1393
- * var vizScalesOption = {replace: true};
1394
- * vizFrame.setVizScales(scales, vizScalesOption);
1395
- * ```
1396
1342
  */
1397
1343
  setVizScales(
1398
1344
  oVizScales: object,
1399
- /**
1400
- *
1401
- * ```javascript
1402
- *
1403
- * {
1404
- * replace: Boolean - replace scales or not. When oVizScalesOption.replace is true,
1405
- * replace existing scales with the input scales.
1406
- * }
1407
- * ```
1408
- */
1409
- oVizScalesOption?: object
1345
+
1346
+ oVizScalesOption?: {
1347
+ /**
1348
+ * replace scales or not. When oVizScalesOption.replace is true, replace existing scales with the input
1349
+ * scales.
1350
+ */
1351
+ replace?: boolean;
1352
+ }
1410
1353
  ): this;
1411
1354
  /**
1412
1355
  * Setter for property vizType. vizType could only set via settings parameter in Constructor. Do not set
@@ -1420,7 +1363,8 @@ declare namespace sap {
1420
1363
  * Example:
1421
1364
  * ```javascript
1422
1365
  *
1423
- * var vizFrame = new sap.viz.ui5.controls.VizFrame({
1366
+ * // VizFrame required from "sap/viz/ui5/controls/VizFrame"
1367
+ * var vizFrame = new VizFrame({
1424
1368
  * 'vizType' : 'bar'
1425
1369
  * });
1426
1370
  * ```
@@ -1431,67 +1375,15 @@ declare namespace sap {
1431
1375
  * Example:
1432
1376
  * ```javascript
1433
1377
  *
1434
- * var vizFrame = new sap.viz.ui5.controls.VizFrame({
1378
+ * // VizFrame required from "sap/viz/ui5/controls/VizFrame"
1379
+ * var vizFrame = new VizFrame({
1435
1380
  * 'vizType' : 'myextension'
1436
1381
  * });
1437
1382
  * ```
1438
1383
  */
1439
1384
  setVizType(sVizType: string): this;
1440
1385
  /**
1441
- * Selections for viz frame. Example:
1442
- *
1443
- *
1444
- * ```javascript
1445
- *
1446
- * var vizFrame = new sap.viz.ui5.controls.VizFrame(...);
1447
- * //vizSelection for set
1448
- * var points = [{
1449
- * data : {
1450
- * "Country" : "China",
1451
- * "Year" : "2001",
1452
- * "Product" : "Car",
1453
- * "Profit" : 25
1454
- * }}, {
1455
- * data : {
1456
- * "Country" : "China",
1457
- * "Year" : "2001",
1458
- * "Product" : "Trunk",
1459
- * "Profit" : 34
1460
- * }}];
1461
- * var action = {
1462
- * clearSelection : true
1463
- * };
1464
- * vizFrame.vizSelection(points, action);
1465
- * //vizSelection for get and return result
1466
- * var result = vizFrame.vizSelection();
1467
- * result = [{
1468
- * data : {
1469
- * "Country" : "China",
1470
- * "Year" : "2001",
1471
- * "Product" : "Car",
1472
- * "Profit" : 25
1473
- * },
1474
- * unit : {
1475
- * "Profit" : "$"
1476
- * },
1477
- * dataName : {
1478
- * "Profit" : "Actual"
1479
- * }
1480
- * }, {
1481
- * data : {
1482
- * "Country" : "China",
1483
- * "Year" : "2001",
1484
- * "Product" : "Trunk",
1485
- * "Profit" : 34
1486
- * },
1487
- * unit : {
1488
- * "Profit" : "$"
1489
- * },
1490
- * dataName : {
1491
- * "Profit" : "Actual"
1492
- * }
1493
- * }]
1494
- * ```
1386
+ * Selections for viz frame.
1495
1387
  */
1496
1388
  vizSelection(
1497
1389
  /**
@@ -1502,43 +1394,11 @@ declare namespace sap {
1502
1394
  * whether to clear previous selection, by default the selection will be incremental selection
1503
1395
  */
1504
1396
  oAction: object
1505
- ): sap.viz.ui5.controls.VizFrame;
1397
+ ): this;
1506
1398
  /**
1507
1399
  * Update viz frame according to a JSON object, it can update css, properties, feeds and data model.
1508
1400
  *
1509
1401
  * VizFrame instance has to be placed at its corresponding parent at first to make this API work.
1510
- *
1511
- * Example:
1512
- *
1513
- *
1514
- * ```javascript
1515
- *
1516
- * var vizFrame = new sap.viz.ui5.controls.VizFrame(...);
1517
- * var data = new sap.viz.ui5.data.FlattenedDataset(...);
1518
- * var properties = {
1519
- * 'legend' : {'visible' : true},
1520
- * };
1521
- * var scales = [{
1522
- * 'feed': 'color',
1523
- * 'palette': ['#ff0000']
1524
- * }];
1525
- * var customizations = {id:"sap.viz.custom",customOverlayProperties: {}};
1526
- * var FeedItem = sap.viz.ui5.controls.common.feeds.FeedItem;
1527
- * var feeds = [
1528
- * new FeedItem({'uid' : 'primaryValues',
1529
- * 'type' : 'Measure',
1530
- * 'values' : []}),
1531
- * new FeedItem({'uid' : 'regionColor',
1532
- * 'type' : 'Dimension',
1533
- * 'values' : []})];
1534
- * vizFrame.vizUpdate({
1535
- * 'data' : data,
1536
- * 'properties' : properties,
1537
- * 'scales' : scales,
1538
- * 'customizations' : customizations,
1539
- * 'feeds' : feeds
1540
- * });
1541
- * ```
1542
1402
  */
1543
1403
  vizUpdate(
1544
1404
  /**
@@ -1548,19 +1408,12 @@ declare namespace sap {
1548
1408
  ): void;
1549
1409
  /**
1550
1410
  * Zoom the chart plot.
1551
- *
1552
- * Example:
1553
- * ```javascript
1554
- *
1555
- * var vizFrame = new sap.viz.ui5.controls.VizFrame(...);
1556
- * vizFrame.zoom({direction: "in"});
1557
- * ```
1558
1411
  */
1559
1412
  zoom(
1560
1413
  /**
1561
- * a "direction" attribute with value "in" or "out" indicating zoom to enlarge or shrink respectively
1414
+ * contains a "direction" attribute with value "in" or "out" indicating zoom to enlarge or shrink respectively
1562
1415
  */
1563
- contains: object
1416
+ cfg: object
1564
1417
  ): void;
1565
1418
  }
1566
1419
  /**
@@ -1849,19 +1702,6 @@ declare namespace sap {
1849
1702
  ): this;
1850
1703
  /**
1851
1704
  * Set start end date of range slider. Supported chart type: timeseries_column, timeseries_line.
1852
- *
1853
- * Example:
1854
- *
1855
- *
1856
- * ```javascript
1857
- *
1858
- * var vizSlider = new sap.viz.ui5.controls.VizSlider(...);
1859
- * var range = {
1860
- * 'start' : timestamp,
1861
- * 'end' : timestamp
1862
- * };
1863
- * vizSlider.setRange(range);
1864
- * ```
1865
1705
  */
1866
1706
  setRange(
1867
1707
  /**
@@ -2025,19 +1865,6 @@ declare namespace sap {
2025
1865
  /**
2026
1866
  * Connect chart Tooltip with VizFrame. Chart Tooltip is only supported for VizFrame with 'fiori' type.
2027
1867
  * It must be called by application.
2028
- *
2029
- * Example:
2030
- * ```javascript
2031
- *
2032
- * var vizFrame = new sap.viz.ui5.controls.VizFrame({
2033
- * 'vizType' : 'bar',
2034
- * 'uiConfig' : {
2035
- * 'applicationSet': 'fiori'
2036
- * }
2037
- * });
2038
- * var Tooltip = new sap.viz.ui5.controls.VizTooltip({});
2039
- * Tooltip.connect(vizFrame.getVizUid());
2040
- * ```
2041
1868
  */
2042
1869
  connect(uid: string): void;
2043
1870
  /**
@@ -3245,6 +3072,40 @@ declare namespace sap {
3245
3072
  */
3246
3073
  oListener?: object
3247
3074
  ): this;
3075
+ /**
3076
+ * @EXPERIMENTAL (since 1.16.6)
3077
+ *
3078
+ * Find the model context for a given 'criteria' into chart data.
3079
+ *
3080
+ * The native sap.viz library provides data objects with the `selectData` event. Applications can call this
3081
+ * method for each data in a selectData event to find the corresponding UI5 model context.
3082
+ *
3083
+ * When the dataset has not been converted into a VIZ dataset yet (e.g. no rendering yet) or when the coordinates
3084
+ * of the path are not within the range of the current dataset, then undefined will be returned.
3085
+ *
3086
+ * Example when use sap.viz.ui5.*:
3087
+ * ```javascript
3088
+ *
3089
+ * selectData: function(oEvent) {
3090
+ * var aSelectData = oEvent.getParameter("data");
3091
+ * var oContext = this.getDataset().findContext(aSelectData[0].data[0].ctx.path);
3092
+ * }
3093
+ * ```
3094
+ * Example when use sap.viz.ui5.controls.VizFrame:
3095
+ * ```javascript
3096
+ *
3097
+ * selectData: function(oEvent) {
3098
+ * var aSelectData = oEvent.getParameter("data");
3099
+ * var oContext = this.getDataset().findContext(aSelectData[0].data);
3100
+ * }
3101
+ * ```
3102
+ */
3103
+ findContext(
3104
+ /**
3105
+ * a structure as provided by the sap.viz library
3106
+ */
3107
+ oCriteria: object
3108
+ ): sap.ui.model.Context;
3248
3109
  /**
3249
3110
  * Fires event {@link #event:dataChange dataChange} to attached listeners.
3250
3111
  */
@@ -3444,6 +3305,17 @@ declare namespace sap {
3444
3305
  */
3445
3306
  oContext: any
3446
3307
  ): this;
3308
+ /**
3309
+ * @deprecated (since 1.19) - Please use selection API {@link sap.viz.ui5.core.BaseChart.prototype.selection}.
3310
+ *
3311
+ * Set chart's default selection. This api will do nothing when use VizFrame.
3312
+ */
3313
+ setDefaultSelection(
3314
+ /**
3315
+ * Array of default selection info
3316
+ */
3317
+ selectionInfos: object[]
3318
+ ): void;
3447
3319
  /**
3448
3320
  * Unbinds aggregation {@link #getData data} from model data.
3449
3321
  */
@@ -3851,20 +3723,22 @@ declare namespace sap {
3851
3723
  YEARMONTHDAY = "YearMonthDay",
3852
3724
  }
3853
3725
  }
3726
+
3854
3727
  /**
3855
3728
  * Provides methods set chart formatter for VizFrame.
3856
3729
  */
3857
- interface ChartFormatter {
3730
+ class ChartFormatter {
3731
+ constructor();
3732
+
3858
3733
  /**
3859
3734
  * Get an instance of ChartFormatter
3860
3735
  */
3861
- getInstance(): void;
3736
+ static getInstance(): void;
3862
3737
  /**
3863
3738
  * Format the value according to the custom format function
3864
3739
  */
3865
3740
  format(): void;
3866
3741
  }
3867
- const ChartFormatter: ChartFormatter;
3868
3742
  }
3869
3743
 
3870
3744
  namespace types {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  interface IUI5DefineDependencyNames {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  namespace zen {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  namespace zen {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.99.0
1
+ // For Library Version: 1.100.0
2
2
 
3
3
  declare namespace sap {
4
4
  namespace zen {
@@ -583,7 +583,7 @@ declare namespace sap {
583
583
  * the filter
584
584
  */
585
585
  oFilter: object
586
- ): undefined;
586
+ ): this;
587
587
  /**
588
588
  * sets the format property of the dataprovider, this can influence the resultset that is aggregated in
589
589
  * the `Grid.Cells` collection. Its main purpose is to influence the visualisation of a `sap.zen.dsh.PivotTable`