@openui5/ts-types 1.117.0 → 1.118.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/ts-types",
3
- "version": "1.117.0",
3
+ "version": "1.118.0",
4
4
  "description": "OpenUI5 TypeScript Definitions",
5
5
  "homepage": "https://openui5.org",
6
6
  "author": "SAP SE (https://www.sap.com)",
package/types/sap.f.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.117.0
1
+ // For Library Version: 1.118.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -87,6 +87,18 @@ declare namespace sap {
87
87
  * Defines the toolbar.
88
88
  */
89
89
  toolbar?: sap.ui.core.Control;
90
+
91
+ /**
92
+ * @since 1.118
93
+ * @experimental (since 1.118) - For usage only by Work Zone.
94
+ *
95
+ * Show as a banner in the header area. Use for example for system info and application shortcut.
96
+ */
97
+ bannerLines?:
98
+ | sap.m.Text[]
99
+ | sap.m.Text
100
+ | sap.ui.base.ManagedObject.AggregationBindingInfo
101
+ | `{${string}}`;
90
102
  }
91
103
 
92
104
  interface $HeaderSettings extends sap.f.cards.$BaseHeaderSettings {
@@ -215,6 +227,66 @@ declare namespace sap {
215
227
  */
216
228
  statusText?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
217
229
 
230
+ /**
231
+ * @since 1.118
232
+ * @experimental (since 1.118) - For usage only by Work Zone.
233
+ *
234
+ * Defines the shape of the icon.
235
+ */
236
+ iconDisplayShape?:
237
+ | sap.m.AvatarShape
238
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
239
+ | `{${string}}`;
240
+
241
+ /**
242
+ * @since 1.118
243
+ * @experimental (since 1.118) - For usage only by Work Zone.
244
+ *
245
+ * Defines the icon source.
246
+ */
247
+ iconSrc?:
248
+ | sap.ui.core.URI
249
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
250
+ | `{${string}}`;
251
+
252
+ /**
253
+ * @since 1.118
254
+ * @experimental (since 1.118) - For usage only by Work Zone.
255
+ *
256
+ * Defines the initials of the icon.
257
+ */
258
+ iconInitials?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
259
+
260
+ /**
261
+ * @since 1.118
262
+ * @experimental (since 1.118) - For usage only by Work Zone.
263
+ *
264
+ * Defines an alt text for the avatar or icon.
265
+ */
266
+ iconAlt?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
267
+
268
+ /**
269
+ * @since 1.118
270
+ * @experimental (since 1.118) - For usage only by Work Zone.
271
+ *
272
+ * Defines a background color for the avatar or icon.
273
+ */
274
+ iconBackgroundColor?:
275
+ | sap.m.AvatarColor
276
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
277
+ | `{${string}}`;
278
+
279
+ /**
280
+ * @since 1.118
281
+ * @experimental (since 1.118) - For usage only by Work Zone.
282
+ *
283
+ * Defines whether the card icon is visible.
284
+ */
285
+ iconVisible?:
286
+ | boolean
287
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
288
+ | `{${string}}`;
289
+
218
290
  /**
219
291
  * General unit of measurement for the header. Displayed as side information to the subtitle.
220
292
  */
@@ -269,6 +341,17 @@ declare namespace sap {
269
341
  */
270
342
  details?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
271
343
 
344
+ /**
345
+ * @since 1.118
346
+ * @experimental (since 1.118) - For usage only by Work Zone.
347
+ *
348
+ * The semantic color which represents the state of the details text.
349
+ */
350
+ detailsState?:
351
+ | sap.ui.core.ValueState
352
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
353
+ | `{${string}}`;
354
+
272
355
  /**
273
356
  * @experimental (since 1.101)
274
357
  *
@@ -402,6 +485,29 @@ declare namespace sap {
402
485
  * @returns Metadata object describing this class
403
486
  */
404
487
  static getMetadata(): sap.ui.core.ElementMetadata;
488
+ /**
489
+ * @since 1.118
490
+ * @experimental (since 1.118) - For usage only by Work Zone.
491
+ *
492
+ * Adds some bannerLine to the aggregation {@link #getBannerLines bannerLines}.
493
+ *
494
+ * @returns Reference to `this` in order to allow method chaining
495
+ */
496
+ addBannerLine(
497
+ /**
498
+ * The bannerLine to add; if empty, nothing is inserted
499
+ */
500
+ oBannerLine: sap.m.Text
501
+ ): this;
502
+ /**
503
+ * @since 1.118
504
+ * @experimental (since 1.118) - For usage only by Work Zone.
505
+ *
506
+ * Destroys all the bannerLines in the aggregation {@link #getBannerLines bannerLines}.
507
+ *
508
+ * @returns Reference to `this` in order to allow method chaining
509
+ */
510
+ destroyBannerLines(): this;
405
511
  /**
406
512
  * @since 1.86
407
513
  * @experimental (since 1.86)
@@ -411,6 +517,15 @@ declare namespace sap {
411
517
  * @returns Reference to `this` in order to allow method chaining
412
518
  */
413
519
  destroyToolbar(): this;
520
+ /**
521
+ * @since 1.118
522
+ * @experimental (since 1.118) - For usage only by Work Zone.
523
+ *
524
+ * Gets content of aggregation {@link #getBannerLines bannerLines}.
525
+ *
526
+ * Show as a banner in the header area. Use for example for system info and application shortcut.
527
+ */
528
+ getBannerLines(): sap.m.Text[];
414
529
  /**
415
530
  * @experimental (since 1.89) - this feature is experimental and the API may change.
416
531
  *
@@ -449,6 +564,66 @@ declare namespace sap {
449
564
  * Defines the toolbar.
450
565
  */
451
566
  getToolbar(): sap.ui.core.Control;
567
+ /**
568
+ * @since 1.118
569
+ * @experimental (since 1.118) - For usage only by Work Zone.
570
+ *
571
+ * Checks for the provided `sap.m.Text` in the aggregation {@link #getBannerLines bannerLines}. and returns
572
+ * its index if found or -1 otherwise.
573
+ *
574
+ * @returns The index of the provided control in the aggregation if found, or -1 otherwise
575
+ */
576
+ indexOfBannerLine(
577
+ /**
578
+ * The bannerLine whose index is looked for
579
+ */
580
+ oBannerLine: sap.m.Text
581
+ ): int;
582
+ /**
583
+ * @since 1.118
584
+ * @experimental (since 1.118) - For usage only by Work Zone.
585
+ *
586
+ * Inserts a bannerLine into the aggregation {@link #getBannerLines bannerLines}.
587
+ *
588
+ * @returns Reference to `this` in order to allow method chaining
589
+ */
590
+ insertBannerLine(
591
+ /**
592
+ * The bannerLine to insert; if empty, nothing is inserted
593
+ */
594
+ oBannerLine: sap.m.Text,
595
+ /**
596
+ * The `0`-based index the bannerLine should be inserted at; for a negative value of `iIndex`, the bannerLine
597
+ * is inserted at position 0; for a value greater than the current size of the aggregation, the bannerLine
598
+ * is inserted at the last position
599
+ */
600
+ iIndex: int
601
+ ): this;
602
+ /**
603
+ * @since 1.118
604
+ * @experimental (since 1.118) - For usage only by Work Zone.
605
+ *
606
+ * Removes all the controls from the aggregation {@link #getBannerLines bannerLines}.
607
+ *
608
+ * Additionally, it unregisters them from the hosting UIArea.
609
+ *
610
+ * @returns An array of the removed elements (might be empty)
611
+ */
612
+ removeAllBannerLines(): sap.m.Text[];
613
+ /**
614
+ * @since 1.118
615
+ * @experimental (since 1.118) - For usage only by Work Zone.
616
+ *
617
+ * Removes a bannerLine from the aggregation {@link #getBannerLines bannerLines}.
618
+ *
619
+ * @returns The removed bannerLine or `null`
620
+ */
621
+ removeBannerLine(
622
+ /**
623
+ * The bannerLine to remove or its index or id
624
+ */
625
+ vBannerLine: int | string | sap.m.Text
626
+ ): sap.m.Text | null;
452
627
  /**
453
628
  * @experimental (since 1.116) - this feature is experimental and the API may change.
454
629
  *
@@ -1188,6 +1363,97 @@ declare namespace sap {
1188
1363
  * @returns Value of property `detailsMaxLines`
1189
1364
  */
1190
1365
  getDetailsMaxLines(): int;
1366
+ /**
1367
+ * @since 1.118
1368
+ * @experimental (since 1.118) - For usage only by Work Zone.
1369
+ *
1370
+ * Gets current value of property {@link #getDetailsState detailsState}.
1371
+ *
1372
+ * The semantic color which represents the state of the details text.
1373
+ *
1374
+ * Default value is `None`.
1375
+ *
1376
+ * @returns Value of property `detailsState`
1377
+ */
1378
+ getDetailsState(): sap.ui.core.ValueState;
1379
+ /**
1380
+ * @since 1.118
1381
+ * @experimental (since 1.118) - For usage only by Work Zone.
1382
+ *
1383
+ * Gets current value of property {@link #getIconAlt iconAlt}.
1384
+ *
1385
+ * Defines an alt text for the avatar or icon.
1386
+ *
1387
+ * Default value is `empty string`.
1388
+ *
1389
+ * @returns Value of property `iconAlt`
1390
+ */
1391
+ getIconAlt(): string;
1392
+ /**
1393
+ * @since 1.118
1394
+ * @experimental (since 1.118) - For usage only by Work Zone.
1395
+ *
1396
+ * Gets current value of property {@link #getIconBackgroundColor iconBackgroundColor}.
1397
+ *
1398
+ * Defines a background color for the avatar or icon.
1399
+ *
1400
+ * Default value is `Transparent`.
1401
+ *
1402
+ * @returns Value of property `iconBackgroundColor`
1403
+ */
1404
+ getIconBackgroundColor(): sap.m.AvatarColor;
1405
+ /**
1406
+ * @since 1.118
1407
+ * @experimental (since 1.118) - For usage only by Work Zone.
1408
+ *
1409
+ * Gets current value of property {@link #getIconDisplayShape iconDisplayShape}.
1410
+ *
1411
+ * Defines the shape of the icon.
1412
+ *
1413
+ * Default value is `Circle`.
1414
+ *
1415
+ * @returns Value of property `iconDisplayShape`
1416
+ */
1417
+ getIconDisplayShape(): sap.m.AvatarShape;
1418
+ /**
1419
+ * @since 1.118
1420
+ * @experimental (since 1.118) - For usage only by Work Zone.
1421
+ *
1422
+ * Gets current value of property {@link #getIconInitials iconInitials}.
1423
+ *
1424
+ * Defines the initials of the icon.
1425
+ *
1426
+ * Default value is `empty string`.
1427
+ *
1428
+ * @returns Value of property `iconInitials`
1429
+ */
1430
+ getIconInitials(): string;
1431
+ /**
1432
+ * @since 1.118
1433
+ * @experimental (since 1.118) - For usage only by Work Zone.
1434
+ *
1435
+ * Gets current value of property {@link #getIconSrc iconSrc}.
1436
+ *
1437
+ * Defines the icon source.
1438
+ *
1439
+ * Default value is `empty string`.
1440
+ *
1441
+ * @returns Value of property `iconSrc`
1442
+ */
1443
+ getIconSrc(): sap.ui.core.URI;
1444
+ /**
1445
+ * @since 1.118
1446
+ * @experimental (since 1.118) - For usage only by Work Zone.
1447
+ *
1448
+ * Gets current value of property {@link #getIconVisible iconVisible}.
1449
+ *
1450
+ * Defines whether the card icon is visible.
1451
+ *
1452
+ * Default value is `true`.
1453
+ *
1454
+ * @returns Value of property `iconVisible`
1455
+ */
1456
+ getIconVisible(): boolean;
1191
1457
  /**
1192
1458
  * Gets current value of property {@link #getNumber number}.
1193
1459
  *
@@ -1399,6 +1665,146 @@ declare namespace sap {
1399
1665
  */
1400
1666
  iDetailsMaxLines?: int
1401
1667
  ): this;
1668
+ /**
1669
+ * @since 1.118
1670
+ * @experimental (since 1.118) - For usage only by Work Zone.
1671
+ *
1672
+ * Sets a new value for property {@link #getDetailsState detailsState}.
1673
+ *
1674
+ * The semantic color which represents the state of the details text.
1675
+ *
1676
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1677
+ *
1678
+ * Default value is `None`.
1679
+ *
1680
+ * @returns Reference to `this` in order to allow method chaining
1681
+ */
1682
+ setDetailsState(
1683
+ /**
1684
+ * New value for property `detailsState`
1685
+ */
1686
+ sDetailsState?: sap.ui.core.ValueState
1687
+ ): this;
1688
+ /**
1689
+ * @since 1.118
1690
+ * @experimental (since 1.118) - For usage only by Work Zone.
1691
+ *
1692
+ * Sets a new value for property {@link #getIconAlt iconAlt}.
1693
+ *
1694
+ * Defines an alt text for the avatar or icon.
1695
+ *
1696
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1697
+ *
1698
+ * Default value is `empty string`.
1699
+ *
1700
+ * @returns Reference to `this` in order to allow method chaining
1701
+ */
1702
+ setIconAlt(
1703
+ /**
1704
+ * New value for property `iconAlt`
1705
+ */
1706
+ sIconAlt?: string
1707
+ ): this;
1708
+ /**
1709
+ * @since 1.118
1710
+ * @experimental (since 1.118) - For usage only by Work Zone.
1711
+ *
1712
+ * Sets a new value for property {@link #getIconBackgroundColor iconBackgroundColor}.
1713
+ *
1714
+ * Defines a background color for the avatar or icon.
1715
+ *
1716
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1717
+ *
1718
+ * Default value is `Transparent`.
1719
+ *
1720
+ * @returns Reference to `this` in order to allow method chaining
1721
+ */
1722
+ setIconBackgroundColor(
1723
+ /**
1724
+ * New value for property `iconBackgroundColor`
1725
+ */
1726
+ sIconBackgroundColor?: sap.m.AvatarColor
1727
+ ): this;
1728
+ /**
1729
+ * @since 1.118
1730
+ * @experimental (since 1.118) - For usage only by Work Zone.
1731
+ *
1732
+ * Sets a new value for property {@link #getIconDisplayShape iconDisplayShape}.
1733
+ *
1734
+ * Defines the shape of the icon.
1735
+ *
1736
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1737
+ *
1738
+ * Default value is `Circle`.
1739
+ *
1740
+ * @returns Reference to `this` in order to allow method chaining
1741
+ */
1742
+ setIconDisplayShape(
1743
+ /**
1744
+ * New value for property `iconDisplayShape`
1745
+ */
1746
+ sIconDisplayShape?: sap.m.AvatarShape
1747
+ ): this;
1748
+ /**
1749
+ * @since 1.118
1750
+ * @experimental (since 1.118) - For usage only by Work Zone.
1751
+ *
1752
+ * Sets a new value for property {@link #getIconInitials iconInitials}.
1753
+ *
1754
+ * Defines the initials of the icon.
1755
+ *
1756
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1757
+ *
1758
+ * Default value is `empty string`.
1759
+ *
1760
+ * @returns Reference to `this` in order to allow method chaining
1761
+ */
1762
+ setIconInitials(
1763
+ /**
1764
+ * New value for property `iconInitials`
1765
+ */
1766
+ sIconInitials?: string
1767
+ ): this;
1768
+ /**
1769
+ * @since 1.118
1770
+ * @experimental (since 1.118) - For usage only by Work Zone.
1771
+ *
1772
+ * Sets a new value for property {@link #getIconSrc iconSrc}.
1773
+ *
1774
+ * Defines the icon source.
1775
+ *
1776
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1777
+ *
1778
+ * Default value is `empty string`.
1779
+ *
1780
+ * @returns Reference to `this` in order to allow method chaining
1781
+ */
1782
+ setIconSrc(
1783
+ /**
1784
+ * New value for property `iconSrc`
1785
+ */
1786
+ sIconSrc?: sap.ui.core.URI
1787
+ ): this;
1788
+ /**
1789
+ * @since 1.118
1790
+ * @experimental (since 1.118) - For usage only by Work Zone.
1791
+ *
1792
+ * Sets a new value for property {@link #getIconVisible iconVisible}.
1793
+ *
1794
+ * Defines whether the card icon is visible.
1795
+ *
1796
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1797
+ *
1798
+ * Default value is `true`.
1799
+ *
1800
+ * @returns Reference to `this` in order to allow method chaining
1801
+ */
1802
+ setIconVisible(
1803
+ /**
1804
+ * New value for property `iconVisible`
1805
+ */
1806
+ bIconVisible?: boolean
1807
+ ): this;
1402
1808
  /**
1403
1809
  * Sets a new value for property {@link #getNumber number}.
1404
1810
  *
@@ -1605,6 +2011,13 @@ declare namespace sap {
1605
2011
  */
1606
2012
  sUnitOfMeasurement: string
1607
2013
  ): this;
2014
+ /**
2015
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
2016
+ *
2017
+ *
2018
+ * @returns If the icon should be shown.
2019
+ */
2020
+ shouldShowIcon(): boolean;
1608
2021
  }
1609
2022
  /**
1610
2023
  * @since 1.64