@sapui5/ts-types 1.100.0 → 1.101.0

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 (61) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +1 -0
  3. package/types/sap.apf.d.ts +1 -1
  4. package/types/sap.ca.ui.d.ts +1 -1
  5. package/types/sap.chart.d.ts +2 -2
  6. package/types/sap.collaboration.d.ts +1 -1
  7. package/types/sap.esh.search.ui.d.ts +674 -2
  8. package/types/sap.f.d.ts +236 -25
  9. package/types/sap.fe.common.d.ts +1 -1
  10. package/types/sap.fe.core.d.ts +8 -63
  11. package/types/sap.fe.macros.d.ts +17 -9
  12. package/types/sap.fe.navigation.d.ts +5 -71
  13. package/types/sap.fe.templates.d.ts +97 -190
  14. package/types/sap.fe.test.d.ts +43 -24
  15. package/types/sap.feedback.ui.d.ts +1 -1
  16. package/types/sap.gantt.d.ts +40 -15
  17. package/types/sap.landvisz.d.ts +1 -1
  18. package/types/sap.m.d.ts +209 -38
  19. package/types/sap.makit.d.ts +1 -1
  20. package/types/sap.me.d.ts +1 -1
  21. package/types/sap.ndc.d.ts +1 -1
  22. package/types/sap.ovp.d.ts +1 -1
  23. package/types/sap.rules.ui.d.ts +40 -5
  24. package/types/sap.sac.df.d.ts +981 -0
  25. package/types/sap.sac.grid.d.ts +25 -1
  26. package/types/sap.suite.ui.commons.d.ts +18 -1
  27. package/types/sap.suite.ui.generic.template.d.ts +115 -8
  28. package/types/sap.suite.ui.microchart.d.ts +1 -1
  29. package/types/sap.tnt.d.ts +1 -1
  30. package/types/sap.ui.codeeditor.d.ts +1 -1
  31. package/types/sap.ui.commons.d.ts +1 -1
  32. package/types/sap.ui.comp.d.ts +154 -15
  33. package/types/sap.ui.core.d.ts +73 -27
  34. package/types/sap.ui.dt.d.ts +1 -1
  35. package/types/sap.ui.export.d.ts +3 -3
  36. package/types/sap.ui.fl.d.ts +1 -1
  37. package/types/sap.ui.generic.app.d.ts +10 -10
  38. package/types/sap.ui.generic.template.d.ts +1 -1
  39. package/types/sap.ui.integration.d.ts +1 -1
  40. package/types/sap.ui.layout.d.ts +1 -1
  41. package/types/sap.ui.mdc.d.ts +9 -1
  42. package/types/sap.ui.richtexteditor.d.ts +1 -1
  43. package/types/sap.ui.rta.d.ts +1 -1
  44. package/types/sap.ui.suite.d.ts +1 -1
  45. package/types/sap.ui.support.d.ts +10 -6
  46. package/types/sap.ui.table.d.ts +11 -34
  47. package/types/sap.ui.testrecorder.d.ts +1 -1
  48. package/types/sap.ui.unified.d.ts +1 -1
  49. package/types/sap.ui.ux3.d.ts +1 -1
  50. package/types/sap.ui.vbm.d.ts +1 -1
  51. package/types/sap.ui.vk.d.ts +683 -26
  52. package/types/sap.ui.vtm.d.ts +1 -1
  53. package/types/sap.uiext.inbox.d.ts +1 -1
  54. package/types/sap.ushell.d.ts +549 -113
  55. package/types/sap.ushell_abap.d.ts +1 -1
  56. package/types/sap.uxap.d.ts +2 -2
  57. package/types/sap.viz.d.ts +1 -1
  58. package/types/sap.webanalytics.core.d.ts +1 -1
  59. package/types/sap.zen.commons.d.ts +1 -1585
  60. package/types/sap.zen.crosstab.d.ts +1 -1
  61. package/types/sap.zen.dsh.d.ts +1303 -4047
@@ -0,0 +1,981 @@
1
+ // For Library Version: 1.101.0
2
+
3
+ declare namespace sap {
4
+ namespace sac {
5
+ /**
6
+ * Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.
7
+ */
8
+ namespace df {
9
+ namespace olap {
10
+ /**
11
+ * A `DataProvider` is a Analytical query exposed via an OLAP engine and accessed via InA protocol HANA
12
+ * - MDS BW Query. In BW it could be done via a CDS view that is annotated as an AnalyticQuery.
13
+ *
14
+ * Instances of this class should only be created by the {sap.sac.df.olap.OlapModel}. The `OlapModel` populates
15
+ * it's exposed data via Binding to Controls. The structure of data exposed by a DataProvider
16
+ * is as follows:
17
+ *
18
+ * **Structure of Exposed Data**
19
+ *
20
+ *
21
+ * - `Grid/Cells`: The list of all `Cell` representing the data retrieved via `DataProvider`
22
+ * - `FreeDimensions`: The list of all Dimensions lying in the Free Axis
23
+ * `Name`: the external name of the dimension `Description`: the language dependant description of
24
+ * the dimension `IsStructure`: boolean flag indicating whether the dimension is a structure
25
+ *
26
+ * - RowsDimensions: The list of all Dimensions lying on the Rows Axis
27
+ * Name: the external name of the dimension Description: the language dependant description of the
28
+ * dimension IsStructure: boolean flag indicating whether the dimension is a structure *
29
+ * - ColumnsDimensions: The list of all Dimensions lying on the Columns Axis
30
+ * Name: the external name of the dimension Description: the language dependant description of the
31
+ * dimension IsStructure: boolean flag indicating whether the dimension is a structure
32
+ * - Conditions: list of conditions (result set filters)
33
+ * - Exceptions: list of exceptions (conditional formats)
34
+ * - StructureMembers: list of structure members (collection of Members of all Structure Dimension)
35
+ */
36
+ class DataProvider {
37
+ /**
38
+ * Constructor for a new DataProvider.
39
+ *
40
+ * A DataProvider represents a navigable queryManager and allows to access and change data from servers
41
+ * providing the InA Protocol.
42
+ */
43
+ constructor(
44
+ /**
45
+ * the model to which the DataProvider belongs
46
+ */
47
+ oOlapModel: sap.sac.df.olap.OlapModel,
48
+ /**
49
+ * name of the DataProvider
50
+ */
51
+ sDataProviderName: string,
52
+ /**
53
+ * update function for update state
54
+ */
55
+ fUndoUpdater: Function,
56
+ /**
57
+ * the firefly application associated to the `OlapModel`
58
+ */
59
+ oApplication: object,
60
+ /**
61
+ * the firefly queryManager that is wrapped by the `DataProvider`
62
+ */
63
+ oQueryManager: object
64
+ );
65
+
66
+ /**
67
+ * add a new condition (aka resultset filter).
68
+ */
69
+ addCondition(
70
+ /**
71
+ * Condition Definiton
72
+ */
73
+ oData: object,
74
+ /**
75
+ * Target state of the condition
76
+ */
77
+ bActive: boolean
78
+ ): Promise<this>;
79
+ /**
80
+ * Do a drill operation on a dimension member on an Axis
81
+ */
82
+ drill(
83
+ /**
84
+ * the external name of the Dimension
85
+ */
86
+ sDim: string,
87
+ /**
88
+ * the Tuple Index of the member in the resultset.
89
+ */
90
+ nIndex: int
91
+ ): this;
92
+ /**
93
+ * Gets the scaling factor of a measure or data cell
94
+ */
95
+ getDecimalPlaces(
96
+ /**
97
+ * the Member of the Measure Structure
98
+ */
99
+ sMeasureMember: string,
100
+ /**
101
+ * the Member of the Non Measure Structure, if this is not given the value for the sMeasureMember is returned
102
+ */
103
+ sNonMeasureMember: string
104
+ ): int;
105
+ /**
106
+ * get the list of filters of a dimension
107
+ */
108
+ getFilterOfDim(
109
+ /**
110
+ * the name of the dimension from which the filter is retrieved
111
+ */
112
+ sDim: string
113
+ ): object[];
114
+ /**
115
+ * get the current resultset from the InA Server
116
+ */
117
+ getResultSet(): Promise<this>;
118
+ /**
119
+ * get the list of the jump targets associated to a datacell defined via the report report interface.
120
+ */
121
+ getRRITargets(
122
+ /**
123
+ * Row of the data cell
124
+ */
125
+ nRow: int,
126
+ /**
127
+ * Column of the data cell
128
+ */
129
+ nColumn: int
130
+ ): Promise<this>;
131
+ /**
132
+ * Gets the scaling factor of a measure
133
+ */
134
+ getScalingFactor(
135
+ /**
136
+ * the Member of the Measure Structure
137
+ */
138
+ sMeasureMember: string,
139
+ /**
140
+ * the Member of the Non Measure Structure
141
+ */
142
+ sNonMeasureMember: string
143
+ ): int;
144
+ /**
145
+ * hasVariable Checks whether a Variable is influencing the DataProvider
146
+ */
147
+ hasVariable(
148
+ /**
149
+ * Name of the Variable
150
+ */
151
+ the: string
152
+ ): boolean;
153
+ /**
154
+ * move a dimension one position down on it's axis
155
+ */
156
+ moveDown(
157
+ /**
158
+ * name of the dimension
159
+ */
160
+ sName: string,
161
+ /**
162
+ * Target state of the condition
163
+ */
164
+ bActive: boolean
165
+ ): this;
166
+ /**
167
+ * move a dimension one position up on it's axis
168
+ */
169
+ moveUp(
170
+ /**
171
+ * name of the dimension
172
+ */
173
+ sName: string,
174
+ /**
175
+ * Target state of the condition
176
+ */
177
+ bActive: boolean
178
+ ): this;
179
+ /**
180
+ * Open a dialog that allows to display and change the property of an `Axis` of the `DataProvider`.
181
+ */
182
+ openAxisDialog(
183
+ /**
184
+ * the external name of the Dimension
185
+ */
186
+ sDim: string
187
+ ): Promise<boolean>;
188
+ /**
189
+ * Open a dialog that allows to display and change the property of a `Query Cell` of the `DataProvider`.
190
+ */
191
+ openCellDialog(
192
+ /**
193
+ * the external name of the first structure
194
+ */
195
+ sDim1?: string,
196
+ /**
197
+ * the external name of the member of the first structure
198
+ */
199
+ sMem1?: string,
200
+ /**
201
+ * the external name of the second structure
202
+ */
203
+ sDim2?: string,
204
+ /**
205
+ * the external name of the member of the second structure
206
+ */
207
+ sMem2?: string
208
+ ): Promise<this>;
209
+ /**
210
+ * Open a dialog that allows to display and change the currency translation settings of the `DataProvider`.
211
+ */
212
+ openCurrencyTranslationDialog(): Promise<boolean>;
213
+ /**
214
+ * Open a dialog to display and change the settings of a dimension of the `DataProvider`
215
+ */
216
+ openDimDialog(
217
+ /**
218
+ * the external name of the Dimension
219
+ */
220
+ sDim: string
221
+ ): Promise<boolean>;
222
+ /**
223
+ * Open a dialog to display and change the filter on a dimension of the `DataProvider`
224
+ */
225
+ openSelector(
226
+ /**
227
+ * the external name of the Dimension
228
+ */
229
+ sDimensionName: string
230
+ ): Promise<any>;
231
+ /**
232
+ * Remove the filter of a dimension
233
+ */
234
+ removeFilter(
235
+ /**
236
+ * the external name
237
+ */
238
+ sDim: string
239
+ ): this;
240
+ /**
241
+ * Distribute the dimension among the rows and columns
242
+ */
243
+ setAxesLayout(
244
+ /**
245
+ * an Object containing a `rows` member referencing a string array containing the names of the dimensions
246
+ * and a `columns` member referencing a string array containing the dimension on the columns. The order
247
+ * in the array control the positon on the axis.
248
+ */
249
+ mLayout: object
250
+ ): this;
251
+ /**
252
+ * Sets the number of decimal of a measure/query cell
253
+ */
254
+ setDecimalPlaces(
255
+ /**
256
+ * number of the decimal palaces to be shown after the separator
257
+ */
258
+ nNumberOfDecimalPlaces: int,
259
+ /**
260
+ * the Member of the Measure Structure
261
+ */
262
+ sMeasureMember: string,
263
+ /**
264
+ * Member of the Non Measure Structure, if this is not given the setting is applied for the whole sMeasureMember
265
+ */
266
+ the: string
267
+ ): this;
268
+ /**
269
+ * Set Display Hierachy
270
+ */
271
+ setDisplayHierarchy(
272
+ /**
273
+ * the external name of the structure on which the new restriction is created
274
+ */
275
+ sDim: string,
276
+ /**
277
+ * whether the hierarchy should be activated
278
+ */
279
+ bActive: boolean,
280
+ /**
281
+ * the name of the hierarchy (optional)
282
+ */
283
+ sHierachy: string,
284
+ /**
285
+ * the version of the hierarchy (optional)
286
+ */
287
+ sVersion: string
288
+ ): this;
289
+ /**
290
+ * Set the filter for a dimension
291
+ */
292
+ setFilter(
293
+ /**
294
+ * the external name
295
+ */
296
+ sDim: string,
297
+ /**
298
+ * the filter
299
+ */
300
+ oFilter: object
301
+ ): undefined;
302
+ /**
303
+ * sets the format property of the dataprovider, this can influence the resultset that is aggregated in
304
+ * the `Grid.Cells` collection. Its main purpose is to influence the visualisation of a `sap.sac.df.PivotTable`
305
+ */
306
+ setFormat(
307
+ /**
308
+ * the format to be used
309
+ */
310
+ sFormat: sap.sac.grid.Format
311
+ ): void;
312
+ /**
313
+ * Sets the scaling factor of a measure/query cell
314
+ */
315
+ setScalingFactor(
316
+ /**
317
+ * the exponential of the scaling factor
318
+ */
319
+ nFactor: int,
320
+ /**
321
+ * the Member of the Measure Structure
322
+ */
323
+ sMeasureMember: string,
324
+ /**
325
+ * the Member of the Non Measure Structure
326
+ */
327
+ sNonMeasureMember: string
328
+ ): this;
329
+ /**
330
+ * Sort the members of a dimension
331
+ */
332
+ sort(
333
+ /**
334
+ * the external name of the Dimension
335
+ */
336
+ sDim: string,
337
+ /**
338
+ * of sorting
339
+ */
340
+ type: /* was: sap.sac.df.types.SortType */ any,
341
+ /**
342
+ * of sorting
343
+ */
344
+ direction: /* was: sap.sac.df.types.SortDirection */ any,
345
+ /**
346
+ * in case of a structure the measure according to which is sorted
347
+ */
348
+ sMember?: string
349
+ ): Promise<this>;
350
+ /**
351
+ * submit the value of the input enabled queries to the InA Server
352
+ */
353
+ submitVariables(): Promise<this>;
354
+ /**
355
+ * suppress a unit/currency from being populated to the result cells
356
+ */
357
+ suppressUnit(
358
+ /**
359
+ * the key of the suppressed unit
360
+ */
361
+ sUnit: string
362
+ ): this;
363
+ /**
364
+ * retrieve the data of the current naviation state `DataProvider` from the InA Server.
365
+ */
366
+ synchronize(): Promise<this>;
367
+ /**
368
+ * Move a dimension to the columns axis
369
+ */
370
+ toColumns(
371
+ /**
372
+ * the external name of the Dimension
373
+ */
374
+ sDim: string
375
+ ): this;
376
+ /**
377
+ * Move a dimension to the rows axis
378
+ */
379
+ toRows(
380
+ /**
381
+ * the external name of the Dimension
382
+ */
383
+ sDim: string
384
+ ): this;
385
+ }
386
+ /**
387
+ * List binding implementation for `OlapModel`.
388
+ */
389
+ class OlapListBinding extends sap.ui.model.ListBinding {
390
+ /**
391
+ * Creates a new OlapListBinding.
392
+ *
393
+ * This constructor should only be called by subclasses or model implementations, not by application or
394
+ * control code. Such code should use {@link sap.sac.df.olap.OlapModel#bindList OlapModel#bindList} on the
395
+ * corresponding model instance instead.
396
+ */
397
+ constructor();
398
+
399
+ /**
400
+ * Creates a new subclass of class sap.sac.df.olap.OlapListBinding with name `sClassName` and enriches it
401
+ * with the information contained in `oClassInfo`.
402
+ *
403
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.model.ListBinding.extend}.
404
+ */
405
+ static extend<T extends Record<string, unknown>>(
406
+ /**
407
+ * Name of the class being created
408
+ */
409
+ sClassName: string,
410
+ /**
411
+ * Object literal with information about the class
412
+ */
413
+ oClassInfo?: sap.ClassInfo<T, sap.sac.df.olap.OlapListBinding>,
414
+ /**
415
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
416
+ * used by this class
417
+ */
418
+ FNMetaImpl?: Function
419
+ ): Function;
420
+ /**
421
+ * Returns a metadata object for class sap.sac.df.olap.OlapListBinding.
422
+ */
423
+ static getMetadata(): sap.ui.base.Metadata;
424
+ }
425
+ /**
426
+ * List binding implementation for `OlapModel`.
427
+ */
428
+ class OlapListGridBinding extends sap.ui.model.ListBinding {
429
+ /**
430
+ * Creates a new OlapListGridBinding.
431
+ *
432
+ * This constructor should only be called by subclasses or model implementations, not by application or
433
+ * control code. Such code should use {@link sap.sac.df.OlapModel#bindList OlapModel#bindList} on the corresponding
434
+ * model instance instead.
435
+ */
436
+ constructor();
437
+
438
+ /**
439
+ * Creates a new subclass of class sap.sac.df.olap.OlapListGridBinding with name `sClassName` and enriches
440
+ * it with the information contained in `oClassInfo`.
441
+ *
442
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.model.ListBinding.extend}.
443
+ */
444
+ static extend<T extends Record<string, unknown>>(
445
+ /**
446
+ * Name of the class being created
447
+ */
448
+ sClassName: string,
449
+ /**
450
+ * Object literal with information about the class
451
+ */
452
+ oClassInfo?: sap.ClassInfo<T, sap.sac.df.olap.OlapListGridBinding>,
453
+ /**
454
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
455
+ * used by this class
456
+ */
457
+ FNMetaImpl?: Function
458
+ ): Function;
459
+ /**
460
+ * Returns a metadata object for class sap.sac.df.olap.OlapListGridBinding.
461
+ */
462
+ static getMetadata(): sap.ui.base.Metadata;
463
+ }
464
+ /**
465
+ * Model implementation for InA provider
466
+ *
467
+ * The OlapModel can populate it's exposed data via Binding to Controls. The structure of the exposed data
468
+ * is as follows: **Structure of Exposed Data**
469
+ *
470
+ *
471
+ * - FlatVariables: The list of all input ready variables collected from all aggregated `DataProvider`
472
+ *
473
+ * - DataProvider: The associative array of all `DataProvider` aggregated by the semanticStyles:
474
+ * The associative array of all `SemanticStyle` for the `OlapModel` Messages: The list of all messages
475
+ * posted by the Analytical Engine
476
+ */
477
+ class OlapModel extends sap.ui.model.Model {
478
+ /**
479
+ * Constructor for a new OlapMode.
480
+ *
481
+ * The Olap Model allows to access and change data from servers providing the InA Protocol.
482
+ *
483
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
484
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
485
+ * of the syntax of the settings object.
486
+ */
487
+ constructor(
488
+ /**
489
+ * the settings for the new Olap Model.
490
+ * systemLandscape: The list of addressable Analytic Engines dataProvider: The associative array of
491
+ * all `DataProvider` aggregated by the
492
+ */
493
+ mSettings?: object
494
+ );
495
+
496
+ /**
497
+ * Creates a new subclass of class sap.sac.df.olap.OlapModel with name `sClassName` and enriches it with
498
+ * the information contained in `oClassInfo`.
499
+ *
500
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.model.Model.extend}.
501
+ */
502
+ static extend<T extends Record<string, unknown>>(
503
+ /**
504
+ * Name of the class being created
505
+ */
506
+ sClassName: string,
507
+ /**
508
+ * Object literal with information about the class
509
+ */
510
+ oClassInfo?: sap.ClassInfo<T, sap.sac.df.olap.OlapModel>,
511
+ /**
512
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
513
+ * used by this class
514
+ */
515
+ FNMetaImpl?: Function
516
+ ): Function;
517
+ /**
518
+ * Returns a metadata object for class sap.sac.df.olap.OlapModel.
519
+ */
520
+ static getMetadata(): sap.ui.base.Metadata;
521
+ /**
522
+ * adds a new query as a new `DataProvider` . The query is supposed to be defined as an analytical annotated
523
+ * CDS View the name of the query is the name of the DDIC view, prefixed by "2C"
524
+ */
525
+ addQuery(
526
+ /**
527
+ * the name of the new `DataProvider`.
528
+ */
529
+ sDataProviderName: string,
530
+ /**
531
+ * the name of the query which the `DataProvider` is supposed to expose.
532
+ */
533
+ sQueryName: string,
534
+ /**
535
+ * the name of the system in the landscape
536
+ */
537
+ sSystem?: string,
538
+ /**
539
+ * the name of the package
540
+ */
541
+ sPackage?: string,
542
+ /**
543
+ * the name of the schema
544
+ */
545
+ sSchema?: string,
546
+ /**
547
+ * the name of the type of the datasource
548
+ */
549
+ sType?: string
550
+ ): Promise<sap.sac.df.olap.DataProvider>;
551
+ /**
552
+ * Attaches event handler `fnFunction` to the {@link #event:metadataFailed metadataFailed} event of this
553
+ * `sap.sac.df.olap.OlapModel`.
554
+ *
555
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
556
+ * otherwise it will be bound to this `sap.sac.df.olap.OlapModel` itself.
557
+ */
558
+ attachMetadataFailed(
559
+ /**
560
+ * An application-specific payload object that will be passed to the event handler along with the event
561
+ * object when firing the event
562
+ */
563
+ oData: object,
564
+ /**
565
+ * The function to be called when the event occurs
566
+ */
567
+ fnFunction: (p1: sap.ui.base.Event) => void,
568
+ /**
569
+ * Context object to call the event handler with. Defaults to this `sap.sac.df.olap.OlapModel` itself
570
+ */
571
+ oListener?: object
572
+ ): this;
573
+ /**
574
+ * Attaches event handler `fnFunction` to the {@link #event:metadataFailed metadataFailed} event of this
575
+ * `sap.sac.df.olap.OlapModel`.
576
+ *
577
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
578
+ * otherwise it will be bound to this `sap.sac.df.olap.OlapModel` itself.
579
+ */
580
+ attachMetadataFailed(
581
+ /**
582
+ * The function to be called when the event occurs
583
+ */
584
+ fnFunction: (p1: sap.ui.base.Event) => void,
585
+ /**
586
+ * Context object to call the event handler with. Defaults to this `sap.sac.df.olap.OlapModel` itself
587
+ */
588
+ oListener?: object
589
+ ): this;
590
+ /**
591
+ * deserialize the Model with all aggregated `DataProvider` The `OlapModel` be be deserialized from an equivalent
592
+ * such Object.
593
+ */
594
+ deserialize(): object;
595
+ /**
596
+ * Detaches event handler `fnFunction` from the {@link #event:metadataFailed metadataFailed} event of this
597
+ * `sap.sac.df.olap.OlapModel`.
598
+ *
599
+ * The passed function and listener object must match the ones used for event registration.
600
+ */
601
+ detachMetadataFailed(
602
+ /**
603
+ * The function to be called, when the event occurs
604
+ */
605
+ fnFunction: (p1: sap.ui.base.Event) => void,
606
+ /**
607
+ * Context object on which the given function had to be called
608
+ */
609
+ oListener?: object
610
+ ): this;
611
+ /**
612
+ * Fires event {@link #event:metadataFailed metadataFailed} to attached listeners.
613
+ */
614
+ fireMetadataFailed(
615
+ /**
616
+ * Parameters to pass along with the event
617
+ */
618
+ mParameters?: object
619
+ ): this;
620
+ /**
621
+ * retrieves a `DataProvider` aggregated by the `OlapModel`. sQueryName, sSystem
622
+ */
623
+ getDataProvider(
624
+ /**
625
+ * the name of the `DataProvider`.
626
+ */
627
+ sDataProviderName: string
628
+ ): sap.sac.df.olap.DataProvider;
629
+ /**
630
+ * Let the user choose a value for a variable in a dialog
631
+ */
632
+ openVariableSelector(
633
+ /**
634
+ * the name of the variable
635
+ */
636
+ sVar: string
637
+ ): Promise<string>;
638
+ /**
639
+ * Reset the Olap Model to the default query
640
+ */
641
+ resetModel(): void;
642
+ /**
643
+ * serialize the Model with all aggregated `DataProvider` The `OlapModel` to be deserialized from an equivalent
644
+ * such Object.
645
+ */
646
+ serialize(): object;
647
+ /**
648
+ * Replace all input enabled variables with their entered values for all data providers
649
+ */
650
+ submitVariables(): Promise<this>;
651
+ /**
652
+ * snychronize all aggregated dataproviders if the user does not choose an Analytic Query, then the promise
653
+ * is rejected
654
+ */
655
+ synchronize(
656
+ /**
657
+ * List of data provider that are to be synchronized (all if not supplied)
658
+ */
659
+ aDataProviderNames: string[]
660
+ ): Promise<sap.sac.df.olap.OlapModel>;
661
+ /**
662
+ * undoes the last navigation step.
663
+ */
664
+ undo(): Promise<this>;
665
+ }
666
+ /**
667
+ * Property binding implementation for `OlapModel`.
668
+ */
669
+ class OlapPropertyBinding extends sap.ui.model.ListBinding {
670
+ /**
671
+ * Creates a new OlapPropertyBinding.
672
+ *
673
+ * This constructor should only be called by subclasses or model implementations, not by application or
674
+ * control code. Such code should use {@link sap.sac.df.olap.OlapModel#bindProperty OlapModel#bindProperty}
675
+ * on the corresponding model instance instead.
676
+ */
677
+ constructor();
678
+
679
+ /**
680
+ * Creates a new subclass of class sap.sac.df.olap.OlapPropertyBinding with name `sClassName` and enriches
681
+ * it with the information contained in `oClassInfo`.
682
+ *
683
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.model.ListBinding.extend}.
684
+ */
685
+ static extend<T extends Record<string, unknown>>(
686
+ /**
687
+ * Name of the class being created
688
+ */
689
+ sClassName: string,
690
+ /**
691
+ * Object literal with information about the class
692
+ */
693
+ oClassInfo?: sap.ClassInfo<T, sap.sac.df.olap.OlapPropertyBinding>,
694
+ /**
695
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
696
+ * used by this class
697
+ */
698
+ FNMetaImpl?: Function
699
+ ): Function;
700
+ /**
701
+ * Returns a metadata object for class sap.sac.df.olap.OlapPropertyBinding.
702
+ */
703
+ static getMetadata(): sap.ui.base.Metadata;
704
+ }
705
+ }
706
+
707
+ namespace types {
708
+ /**
709
+ * Types of navigation commands.
710
+ */
711
+ enum NavigationCommandType {
712
+ /**
713
+ * Click on a cell
714
+ */
715
+ CellClick = "CellClick",
716
+ /**
717
+ * request for additional columns
718
+ */
719
+ ColumnRequest = "ColumnRequest",
720
+ /**
721
+ * Context menu entry
722
+ */
723
+ ContextMenuCmd = "ContextMenuCmd",
724
+ /**
725
+ * Hierachy drill operation
726
+ */
727
+ HierarchyNavigation = "HierarchyNavigation",
728
+ /**
729
+ * request for additional rows
730
+ */
731
+ RowRequest = "RowRequest",
732
+ }
733
+ }
734
+
735
+ interface $PivotTableSettings extends sap.ui.core.$ControlSettings {
736
+ /**
737
+ * Name of the Data Provider within {sap.sac.df.olap.OlapModel} with name `om`, which is displayed and available
738
+ * for interactions
739
+ */
740
+ dataProviderName?:
741
+ | string
742
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
743
+
744
+ /**
745
+ * Property for different table formats
746
+ */
747
+ format?:
748
+ | sap.sac.grid.Format
749
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
750
+
751
+ /**
752
+ * Fired when a user launches a navigation command
753
+ */
754
+ navigationCmd?: (oEvent: sap.ui.base.Event) => void;
755
+ }
756
+
757
+ /**
758
+ * Enables users to view, navigate and change multidimensional data exposed via InA in a PivotTable.
759
+ *
760
+ * Overview:
761
+ *
762
+ * The user can view the data in the Pivot Table, navigate in the data via a context menu or enter data
763
+ * in input enables cells cells.
764
+ *
765
+ * Usage:
766
+ *
767
+ * The `PivotTable` is mimicked after the OData Smart Controls. Instead of OData they bind against an {sap.sac.df.olap.OlapModel}
768
+ * with the name "om". Each Analytical Query in the `Olap Model` is exposed as a DataProvider. The data
769
+ * provider that the PivotTable consumes needs to be provided as a property value.
770
+ */
771
+ class PivotTable extends sap.ui.core.Control {
772
+ /**
773
+ * Constructor for a new `PivotTable`.
774
+ *
775
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
776
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
777
+ * of the syntax of the settings object.
778
+ */
779
+ constructor(
780
+ /**
781
+ * Initial settings for the new control
782
+ */
783
+ mSettings?: sap.sac.df.$PivotTableSettings
784
+ );
785
+ /**
786
+ * Constructor for a new `PivotTable`.
787
+ *
788
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
789
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
790
+ * of the syntax of the settings object.
791
+ */
792
+ constructor(
793
+ /**
794
+ * ID for the new control, generated automatically if no ID is given
795
+ */
796
+ sId?: string,
797
+ /**
798
+ * Initial settings for the new control
799
+ */
800
+ mSettings?: sap.sac.df.$PivotTableSettings
801
+ );
802
+
803
+ /**
804
+ * Creates a new subclass of class sap.sac.df.PivotTable with name `sClassName` and enriches it with the
805
+ * information contained in `oClassInfo`.
806
+ *
807
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
808
+ */
809
+ static extend<T extends Record<string, unknown>>(
810
+ /**
811
+ * Name of the class being created
812
+ */
813
+ sClassName: string,
814
+ /**
815
+ * Object literal with information about the class
816
+ */
817
+ oClassInfo?: sap.ClassInfo<T, sap.sac.df.PivotTable>,
818
+ /**
819
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
820
+ * used by this class
821
+ */
822
+ FNMetaImpl?: Function
823
+ ): Function;
824
+ /**
825
+ * Returns a metadata object for class sap.sac.df.PivotTable.
826
+ */
827
+ static getMetadata(): sap.ui.core.ElementMetadata;
828
+ /**
829
+ * Attaches event handler `fnFunction` to the {@link #event:navigationCmd navigationCmd} event of this `sap.sac.df.PivotTable`.
830
+ *
831
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
832
+ * otherwise it will be bound to this `sap.sac.df.PivotTable` itself.
833
+ *
834
+ * Fired when a user launches a navigation command
835
+ */
836
+ attachNavigationCmd(
837
+ /**
838
+ * An application-specific payload object that will be passed to the event handler along with the event
839
+ * object when firing the event
840
+ */
841
+ oData: object,
842
+ /**
843
+ * The function to be called when the event occurs
844
+ */
845
+ fnFunction: (p1: sap.ui.base.Event) => void,
846
+ /**
847
+ * Context object to call the event handler with. Defaults to this `sap.sac.df.PivotTable` itself
848
+ */
849
+ oListener?: object
850
+ ): this;
851
+ /**
852
+ * Attaches event handler `fnFunction` to the {@link #event:navigationCmd navigationCmd} event of this `sap.sac.df.PivotTable`.
853
+ *
854
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
855
+ * otherwise it will be bound to this `sap.sac.df.PivotTable` itself.
856
+ *
857
+ * Fired when a user launches a navigation command
858
+ */
859
+ attachNavigationCmd(
860
+ /**
861
+ * The function to be called when the event occurs
862
+ */
863
+ fnFunction: (p1: sap.ui.base.Event) => void,
864
+ /**
865
+ * Context object to call the event handler with. Defaults to this `sap.sac.df.PivotTable` itself
866
+ */
867
+ oListener?: object
868
+ ): this;
869
+ /**
870
+ * Detaches event handler `fnFunction` from the {@link #event:navigationCmd navigationCmd} event of this
871
+ * `sap.sac.df.PivotTable`.
872
+ *
873
+ * The passed function and listener object must match the ones used for event registration.
874
+ */
875
+ detachNavigationCmd(
876
+ /**
877
+ * The function to be called, when the event occurs
878
+ */
879
+ fnFunction: (p1: sap.ui.base.Event) => void,
880
+ /**
881
+ * Context object on which the given function had to be called
882
+ */
883
+ oListener?: object
884
+ ): this;
885
+ /**
886
+ * Fires event {@link #event:navigationCmd navigationCmd} to attached listeners.
887
+ */
888
+ fireNavigationCmd(
889
+ /**
890
+ * Parameters to pass along with the event
891
+ */
892
+ mParameters?: {
893
+ /**
894
+ * The control in the cell on which the command was initiated
895
+ */
896
+ anchor?: sap.ui.core.Control;
897
+ /**
898
+ * Type of the navigation command: Context Menu, Drill, Row/Col request, Data Entry
899
+ */
900
+ navigationCmdType?: sap.sac.df.types.NavigationCommandType;
901
+ /**
902
+ * The Row and Column Selection of the cell on which the command was initiated
903
+ */
904
+ selection?: object;
905
+ /**
906
+ * the function that executed the command. The function will return a Promise that resolves/rejects when
907
+ * the command execution finished.
908
+ */
909
+ cmd?: Function;
910
+ }
911
+ ): this;
912
+ /**
913
+ * Gets current value of property {@link #getDataProviderName dataProviderName}.
914
+ *
915
+ * Name of the Data Provider within {sap.sac.df.olap.OlapModel} with name `om`, which is displayed and available
916
+ * for interactions
917
+ *
918
+ * Default value is `"0"`.
919
+ */
920
+ getDataProviderName(): string;
921
+ /**
922
+ * Gets current value of property {@link #getFormat format}.
923
+ *
924
+ * Property for different table formats
925
+ *
926
+ * Default value is `ExcelStyle`.
927
+ */
928
+ getFormat(): sap.sac.grid.Format;
929
+ /**
930
+ * Sets a new value for property {@link #getDataProviderName dataProviderName}.
931
+ *
932
+ * Name of the Data Provider within {sap.sac.df.olap.OlapModel} with name `om`, which is displayed and available
933
+ * for interactions
934
+ *
935
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
936
+ *
937
+ * Default value is `"0"`.
938
+ */
939
+ setDataProviderName(
940
+ /**
941
+ * New value for property `dataProviderName`
942
+ */
943
+ sDataProviderName?: string
944
+ ): this;
945
+ /**
946
+ * Sets a new value for property {@link #getFormat format}.
947
+ *
948
+ * Property for different table formats
949
+ *
950
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
951
+ *
952
+ * Default value is `ExcelStyle`.
953
+ */
954
+ setFormat(
955
+ /**
956
+ * New value for property `format`
957
+ */
958
+ sFormat?: sap.sac.grid.Format
959
+ ): this;
960
+ }
961
+ }
962
+ }
963
+
964
+ interface IUI5DefineDependencyNames {
965
+ "sap/sac/df/library": undefined;
966
+
967
+ "sap/sac/df/olap/DataProvider": undefined;
968
+
969
+ "sap/sac/df/olap/OlapListBinding": undefined;
970
+
971
+ "sap/sac/df/olap/OlapListGridBinding": undefined;
972
+
973
+ "sap/sac/df/olap/OlapModel": undefined;
974
+
975
+ "sap/sac/df/olap/OlapPropertyBinding": undefined;
976
+
977
+ "sap/sac/df/PivotTable": undefined;
978
+
979
+ "sap/sac/df/types/NavigationCommandType": undefined;
980
+ }
981
+ }