@sapui5/ts-types 1.104.0 → 1.104.1

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.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.103.0
1
+ // For Library Version: 1.104.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace fe {
@@ -6,61 +6,353 @@ declare namespace sap {
6
6
  * Library containing the building blocks for SAP Fiori elements.
7
7
  */
8
8
  namespace macros {
9
- /**
10
- * Building block used to create a chart based on the metadata provided by OData V4.
11
- * Usually, a contextPath and metaPath is expected.
12
- *
13
- * Usage example:
14
- * ```javascript
15
- *
16
- * <macro:Chart id="Mychart" contextPath="/RootEntity" metaPath="@com.sap.vocabularies.UI.v1.Chart" />
17
- * ```
18
- */
19
- export const Chart: undefined;
9
+ namespace table {
10
+ /**
11
+ * Definition of a custom action to be used inside the table toolbar
12
+ */
13
+ type Action = {
14
+ /**
15
+ * Reference to the key of another action already displayed in the toolbar to properly place this one
16
+ */
17
+ anchor: string;
18
+ /**
19
+ * Enables or disables the action
20
+ */
21
+ enabled: boolean;
22
+ /**
23
+ * Unique identifier of the action
24
+ */
25
+ key: string;
26
+ /**
27
+ * Defines where this action should be placed relative to the defined anchor
28
+ * Allowed values are `Before` and `After`
29
+ */
30
+ placement: string;
31
+ /**
32
+ * Event handler to be called when the user chooses the action
33
+ */
34
+ press: string;
35
+ /**
36
+ * Defines if the action requires a selection.
37
+ */
38
+ requiresSelection: boolean;
39
+ /**
40
+ * The text that will be displayed for this action
41
+ */
42
+ text: string;
43
+ };
20
44
 
21
- /**
22
- * Building block for creating a field based on the metadata provided by OData V4.
23
- * Usually, a DataField or DataPoint annotation is expected, but the field can also be used to display
24
- * a property from the entity type.
25
- *
26
- * Usage example:
27
- * ```javascript
28
- *
29
- * <macro:Field id="MyField" metaPath="MyProperty" />
30
- * ```
31
- */
32
- export const Field: undefined;
45
+ /**
46
+ * Definition of a custom column to be used inside the table.
47
+ * The template for the column has to be provided as the default aggregation
48
+ */
49
+ type Column = {
50
+ /**
51
+ * Reference to the key of another column already displayed in the table to properly place this one
52
+ */
53
+ anchor: string;
54
+ /**
55
+ * The text that will be displayed for this column header
56
+ */
57
+ header: string;
58
+ /**
59
+ * Defines the column importance
60
+ * You can define which columns should be automatically moved to the pop-in area based on their importance
61
+ */
62
+ importance: string;
63
+ /**
64
+ * Unique identifier of the column
65
+ */
66
+ key: string;
67
+ /**
68
+ * Defines where this column should be placed relative to the defined anchor
69
+ * Allowed values are `Before` and `After`
70
+ */
71
+ placement: string;
72
+ };
73
+ }
33
74
 
34
- /**
35
- * Building block for creating a Form based on the metadata provided by OData V4.
36
- * It is designed to work based on a FieldGroup annotation but can also work if you provide a ReferenceFacet
37
- * or a CollectionFacet
38
- *
39
- * Usage example:
40
- * ```javascript
41
- *
42
- * <macro:Form id="MyForm" metaPath="@com.sap.vocabularies.UI.v1.FieldGroup#GeneralInformation" />
43
- * ```
44
- */
45
- export const Form: undefined;
75
+ interface $ChartSettings extends sap.fe.macros.$MacroAPISettings {
76
+ /**
77
+ * Metadata path to the entitySet or navigationProperty
78
+ */
79
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
46
80
 
47
- /**
48
- * Base API control for macros.
49
- */
50
- export const MacroAPI: undefined;
81
+ /**
82
+ * Id of the FilterBar building block associated with the chart.
83
+ */
84
+ filterBar?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
51
85
 
52
- /**
53
- * Building block used to create a table based on the metadata provided by OData V4.
54
- * Usually, a LineItem or PresentationVariant annotation is expected, but the Table building block can
55
- * also be used to display an EntitySet.
56
- *
57
- * Usage example:
58
- * ```javascript
59
- *
60
- * <macro:Table id="MyTable" metaPath="@com.sap.vocabularies.UI.v1.LineItem" />
61
- * ```
62
- */
63
- export const Table: undefined;
86
+ /**
87
+ * ID of the chart
88
+ */
89
+ id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
90
+
91
+ /**
92
+ * Metadata path to the presentation (UI.Chart w or w/o qualifier)
93
+ */
94
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
95
+
96
+ /**
97
+ * Parameter which sets the personalization of the MDC chart
98
+ */
99
+ personalization?:
100
+ | boolean
101
+ | string
102
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
103
+ | `{${string}}`;
104
+
105
+ /**
106
+ * Specifies the selection mode
107
+ */
108
+ selectionMode?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
109
+ }
110
+
111
+ interface $FieldSettings extends sap.fe.macros.$MacroAPISettings {
112
+ /**
113
+ * Defines the path of the context used in the current page or block.
114
+ * This setting is defined by the framework.
115
+ */
116
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
117
+
118
+ /**
119
+ * A set of options that can be configured.
120
+ */
121
+ formatOptions?:
122
+ | sap.fe.macros.FieldFormatOptions
123
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
124
+ | `{${string}}`;
125
+
126
+ /**
127
+ * The identifier of the Field control.
128
+ */
129
+ id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
130
+
131
+ /**
132
+ * Defines the relative path of the property in the metamodel, based on the current contextPath.
133
+ */
134
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
135
+
136
+ /**
137
+ * An expression that allows you to control the read-only state of the field.
138
+ * If you do not set any expression, SAP Fiori elements hooks into the standard lifecycle to determine the
139
+ * current state.
140
+ */
141
+ readOnly?:
142
+ | boolean
143
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
144
+ | `{${string}}`;
145
+
146
+ /**
147
+ * Option to add semantic objects to a field.
148
+ * Valid options are either a single semantic object, a stringified array of semantic objects
149
+ * or a single binding expression returning either a single semantic object or an array of semantic objects
150
+ */
151
+ semanticObject?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
152
+ }
153
+
154
+ interface $FilterBarSettings extends sap.fe.macros.$MacroAPISettings {
155
+ /**
156
+ * Defines the path of the context used in the current page or block.
157
+ * This setting is defined by the framework.
158
+ */
159
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
160
+
161
+ /**
162
+ * The identifier of the filterbar control.
163
+ */
164
+ id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
165
+
166
+ /**
167
+ * Defines the relative path of the property in the metamodel, based on the current contextPath.
168
+ */
169
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
170
+ }
171
+
172
+ interface $FormSettings extends sap.fe.macros.$MacroAPISettings {
173
+ /**
174
+ * Defines the path of the context used in the current page or block.
175
+ * This setting is defined by the framework.
176
+ */
177
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
178
+
179
+ /**
180
+ * The identifier of the form control.
181
+ */
182
+ id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
183
+
184
+ /**
185
+ * Defines the relative path of the property in the metamodel, based on the current contextPath.
186
+ */
187
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
188
+
189
+ /**
190
+ * The title of the form control.
191
+ */
192
+ title?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
193
+ }
194
+
195
+ interface $MacroAPISettings extends sap.ui.core.$ControlSettings {
196
+ /**
197
+ * Defines the path of the context used in the current page or block.
198
+ * This setting is defined by the framework.
199
+ */
200
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
201
+
202
+ /**
203
+ * Defines the relative path of the property in the metamodel, based on the current contextPath.
204
+ */
205
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
206
+ }
207
+
208
+ interface $TableSettings extends sap.fe.macros.$MacroAPISettings {
209
+ /**
210
+ * An expression that allows you to control the 'busy' state of the table.
211
+ */
212
+ busy?:
213
+ | boolean
214
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
215
+ | `{${string}}`;
216
+
217
+ /**
218
+ * Defines the path of the context used in the current page or block.
219
+ * This setting is defined by the framework.
220
+ */
221
+ contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
222
+
223
+ /**
224
+ * Specifies the header text that is shown in the table.
225
+ */
226
+ enableAutoColumnWidth?:
227
+ | boolean
228
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
229
+ | `{${string}}`;
230
+
231
+ /**
232
+ * Controls if the export functionality of the table is enabled or not.
233
+ */
234
+ enableExport?:
235
+ | boolean
236
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
237
+ | `{${string}}`;
238
+
239
+ /**
240
+ * Controls whether the table can be opened in fullscreen mode or not.
241
+ */
242
+ enableFullScreen?:
243
+ | boolean
244
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
245
+ | `{${string}}`;
246
+
247
+ /**
248
+ * Controls if the paste functionality of the table is enabled or not.
249
+ */
250
+ enablePaste?:
251
+ | boolean
252
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
253
+ | `{${string}}`;
254
+
255
+ /**
256
+ * ID of the FilterBar building block associated with the table.
257
+ */
258
+ filterBar?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
259
+
260
+ /**
261
+ * Specifies the header text that is shown in the table.
262
+ */
263
+ header?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
264
+
265
+ /**
266
+ * Controls if the header text should be shown or not.
267
+ */
268
+ headerVisible?:
269
+ | boolean
270
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
271
+ | `{${string}}`;
272
+
273
+ /**
274
+ * The identifier of the table control.
275
+ */
276
+ id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
277
+
278
+ /**
279
+ * Defines whether to display the search action.
280
+ */
281
+ isSearchable?:
282
+ | boolean
283
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
284
+ | `{${string}}`;
285
+
286
+ /**
287
+ * Groups menu actions by key.
288
+ */
289
+ menu?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
290
+
291
+ /**
292
+ * Defines the relative path of the property in the metamodel, based on the current contextPath.
293
+ */
294
+ metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
295
+
296
+ /**
297
+ * Controls which options should be enabled for the table personalization dialog.
298
+ * If it is set to `true`, all possible options for this kind of table are enabled.
299
+ *
300
+ * If it is set to `false`, personalization is disabled.
301
+ *
302
+ *
303
+ *
304
+ * You can also provide a more granular control for the personalization by providing a comma-separated list
305
+ * with the options you want to be available.
306
+ *
307
+ * Available options are:
308
+ *
309
+ * - Sort
310
+ *
311
+ * - Column
312
+ *
313
+ * - Filter
314
+ */
315
+ personalization?:
316
+ | boolean
317
+ | string
318
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
319
+ | `{${string}}`;
320
+
321
+ /**
322
+ * An expression that allows you to control the 'read-only' state of the table.
323
+ * If you do not set any expression, SAP Fiori elements hooks into the standard lifecycle to determine the
324
+ * current state.
325
+ */
326
+ readOnly?:
327
+ | boolean
328
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
329
+ | `{${string}}`;
330
+
331
+ /**
332
+ * Defines the selection mode to be used by the table.
333
+ * Allowed values are `None`, `Single`, `Multi` or `Auto`
334
+ */
335
+ selectionMode?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
336
+
337
+ /**
338
+ * Defines the type of table that will be used by the building block to render the data.
339
+ * Allowed values are `GridTable` and `ResponsiveTable`
340
+ */
341
+ type?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
342
+
343
+ /**
344
+ * Controls the kind of variant management that should be enabled for the table.
345
+ * Allowed values are `Page`, `Control` and `None`.
346
+ *
347
+ * If the table is used within a SAP Fiori elements template, the default value will be taken from the current
348
+ * page variant management.
349
+ *
350
+ * Otherwise it's `None`.
351
+ */
352
+ variantManagement?:
353
+ | string
354
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
355
+ }
64
356
 
65
357
  /**
66
358
  * @SINCE 1.93.0
@@ -134,20 +426,303 @@ declare namespace sap {
134
426
  class Share /* was: sap.fe.macros.MacroMetadata */ extends Object {
135
427
  constructor();
136
428
  }
429
+ /**
430
+ * Building block used to create a chart based on the metadata provided by OData V4.
431
+ *
432
+ *
433
+ * Usually, a contextPath and metaPath is expected.
434
+ * Usage example:
435
+ *
436
+ * ```javascript
437
+ *
438
+ * <macro:Chart id="Mychart" contextPath="/RootEntity" metaPath="@com.sap.vocabularies.UI.v1.Chart" />
439
+ * ```
440
+ */
441
+ class Chart extends sap.fe.macros.MacroAPI {
442
+ constructor();
443
+ }
444
+ /**
445
+ * Building block for creating a field based on the metadata provided by OData V4.
446
+ *
447
+ *
448
+ * Usually, a DataField or DataPoint annotation is expected, but the field can also be used to display a
449
+ * property from the entity type.
450
+ * Usage example:
451
+ *
452
+ * ```javascript
453
+ *
454
+ * <macro:Field id="MyField" metaPath="MyProperty" />
455
+ * ```
456
+ */
457
+ class Field extends sap.fe.macros.MacroAPI {
458
+ constructor();
459
+
460
+ /**
461
+ * Adds a message to the field.
462
+ *
463
+ * @returns The id of the message
464
+ */
465
+ addMessage(
466
+ /**
467
+ * undefined
468
+ */
469
+ parameters: {
470
+ /**
471
+ * Message description
472
+ */
473
+ description?: string;
474
+ /**
475
+ * Message text
476
+ */
477
+ message?: string;
478
+ /**
479
+ * True if the message is persistent
480
+ */
481
+ persistent?: boolean;
482
+ /**
483
+ * Type of the message
484
+ */
485
+ type?: sap.ui.core.MessageType;
486
+ }
487
+ ): string;
488
+ /**
489
+ * Retrieves the current value of the Field.
490
+ *
491
+ * @returns The current value of the field
492
+ */
493
+ getValue(): string | boolean;
494
+ /**
495
+ * Removes a message from the field.
496
+ */
497
+ removeMessage(
498
+ /**
499
+ * The id of the message
500
+ */
501
+ id: string
502
+ ): void;
503
+ }
504
+ /**
505
+ * Building block for creating a FilterBar based on the metadata provided by OData V4.
506
+ *
507
+ *
508
+ * Usually, a SelectionFields annotation is expected.
509
+ * Usage example:
510
+ *
511
+ * ```javascript
512
+ *
513
+ * <macro:FilterBar id="MyFilterBar" metaPath="@com.sap.vocabularies.UI.v1.SelectionFields" />
514
+ * ```
515
+ */
516
+ class FilterBar extends sap.fe.macros.MacroAPI {
517
+ constructor();
518
+
519
+ /**
520
+ * Set the filter values for the given property in the filter bar.
521
+ * The filter values can be either a single value or an array of values.
522
+ * Each filter value must be represented as a primitive value.
523
+ *
524
+ * @returns A promise for asynchronous handling
525
+ */
526
+ setFilterValues(
527
+ /**
528
+ * The path to the property as a condition path
529
+ */
530
+ sConditionPath: string,
531
+ /**
532
+ * undefined
533
+ */
534
+ sOperator: undefined | string,
535
+ /**
536
+ * The values to be applied
537
+ */
538
+ vValues:
539
+ | undefined
540
+ | string
541
+ | number
542
+ | boolean
543
+ | string[]
544
+ | number[]
545
+ | boolean[]
546
+ ): void;
547
+ }
548
+ /**
549
+ * Building block for creating a Form based on the metadata provided by OData V4.
550
+ *
551
+ *
552
+ * It is designed to work based on a FieldGroup annotation but can also work if you provide a ReferenceFacet
553
+ * or a CollectionFacet
554
+ * Usage example:
555
+ *
556
+ * ```javascript
557
+ *
558
+ * <macro:Form id="MyForm" metaPath="@com.sap.vocabularies.UI.v1.FieldGroup#GeneralInformation" />
559
+ * ```
560
+ */
561
+ class Form extends sap.fe.macros.MacroAPI {
562
+ constructor();
563
+ }
564
+ /**
565
+ * Base API control for macros.
566
+ */
567
+ class MacroAPI extends sap.ui.core.Control {
568
+ constructor();
569
+ }
570
+ /**
571
+ * Building block used to create a table based on the metadata provided by OData V4.
572
+ *
573
+ *
574
+ * Usually, a LineItem or PresentationVariant annotation is expected, but the Table building block can also
575
+ * be used to display an EntitySet.
576
+ * Usage example:
577
+ *
578
+ * ```javascript
579
+ *
580
+ * <macro:Table id="MyTable" metaPath="@com.sap.vocabularies.UI.v1.LineItem" />
581
+ * ```
582
+ */
583
+ class Table extends sap.fe.macros.MacroAPI {
584
+ constructor();
585
+
586
+ /**
587
+ * Adds a message to the table.
588
+ * The message applies to the whole table and not to an individual table row.
589
+ *
590
+ *
591
+ * @returns The ID of the message
592
+ */
593
+ addMessage(
594
+ /**
595
+ * undefined
596
+ */
597
+ parameters: {
598
+ /**
599
+ * Message description
600
+ */
601
+ description?: string;
602
+ /**
603
+ * Message text
604
+ */
605
+ message?: string;
606
+ /**
607
+ * True if the message is persistent
608
+ */
609
+ persistent?: boolean;
610
+ /**
611
+ * Message type
612
+ */
613
+ type?: sap.ui.core.MessageType;
614
+ }
615
+ ): string;
616
+ /**
617
+ * Gets contexts from the table that have been selected by the user.
618
+ *
619
+ * @returns Contexts of the rows selected by the user
620
+ */
621
+ getSelectedContexts(): sap.ui.model.odata.v4.Context[];
622
+ /**
623
+ * Removes a message from the table.
624
+ */
625
+ removeMessage(
626
+ /**
627
+ * The id of the message
628
+ */
629
+ id: string
630
+ ): void;
631
+ }
632
+
633
+ /**
634
+ * Additional format options for the field.
635
+ */
636
+ type FieldFormatOptions = {
637
+ /**
638
+ * Defines how the field value and associated text will be displayed together.
639
+ *
640
+ * Allowed values are "Value", "Description", "ValueDescription" and "DescriptionValue"
641
+ */
642
+ displayMode: string;
643
+ /**
644
+ * Defines if and how the field measure will be displayed.
645
+ *
646
+ * Allowed values are "Hidden" and "ReadOnly"
647
+ */
648
+ measureDisplayMode: string;
649
+ /**
650
+ * Defines how the full text will be displayed.
651
+ *
652
+ * Allowed values are "InPlace" and "Popover"
653
+ */
654
+ textExpandBehaviorDisplay: string;
655
+ /**
656
+ * Maximum number of lines for multiline texts in edit mode.
657
+ */
658
+ textLinesEdit: number;
659
+ /**
660
+ * Maximum number of characters from the beginning of the text field that are shown initially.
661
+ */
662
+ textMaxCharactersDisplay: number;
663
+ /**
664
+ * Maximum number of lines that multiline texts in edit mode can grow to.
665
+ */
666
+ textMaxLines: number;
667
+ };
668
+
669
+ /**
670
+ * Definition of a custom filter to be used inside the FilterBar.
671
+ * The template for the FilterField has to be provided as the default aggregation
672
+ */
673
+ type FilterField = {
674
+ /**
675
+ * Reference to the key of another filter already displayed in the table to properly place this one
676
+ */
677
+ anchor: string;
678
+ /**
679
+ * The property name of the FilterField
680
+ */
681
+ key: string;
682
+ /**
683
+ * The text that will be displayed for this FilterField
684
+ */
685
+ label: string;
686
+ /**
687
+ * If set the search will be automatically triggered, when a filter value was changed.
688
+ */
689
+ liveMode: boolean;
690
+ /**
691
+ * Defines where this filter should be placed relative to the defined anchor
692
+ * Allowed values are `Before` and `After`
693
+ */
694
+ placement: string;
695
+ /**
696
+ * Parameter which sets the visibility of the FilterBar building block
697
+ */
698
+ visible: boolean;
699
+ };
137
700
  }
138
701
  }
139
702
 
140
703
  interface IUI5DefineDependencyNames {
704
+ "sap/fe/macros/ChartAPI": undefined;
705
+
706
+ "sap/fe/macros/FieldAPI": undefined;
707
+
708
+ "sap/fe/macros/FilterBarAPI": undefined;
709
+
141
710
  "sap/fe/macros/FlexibleColumnLayoutActions.metadata": undefined;
142
711
 
712
+ "sap/fe/macros/FormAPI": undefined;
713
+
143
714
  "sap/fe/macros/FormElement.metadata": undefined;
144
715
 
145
716
  "sap/fe/macros/library": undefined;
146
717
 
718
+ "sap/fe/macros/MacroAPI": undefined;
719
+
147
720
  "sap/fe/macros/MicroChart.metadata": undefined;
148
721
 
149
722
  "sap/fe/macros/Paginator.metadata": undefined;
150
723
 
151
724
  "sap/fe/macros/Share.metadata": undefined;
725
+
726
+ "sap/fe/macros/TableAPI": undefined;
152
727
  }
153
728
  }