@openui5/types 1.117.1 → 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.
@@ -1,3 +1,3 @@
1
- // For Library Version: 1.117.1
1
+ // For Library Version: 1.118.0
2
2
 
3
3
  declare namespace sap {}
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.117.1
1
+ // For Library Version: 1.118.0
2
2
 
3
3
  declare module "sap/ui/fl/library" {}
4
4
 
@@ -7,7 +7,6 @@ declare module "sap/ui/fl/apply/api/ControlVariantApplyAPI" {
7
7
 
8
8
  /**
9
9
  * @since 1.67
10
- * @experimental (since 1.67)
11
10
  *
12
11
  * Provides an API for applications to work with control variants. See also {@link sap.ui.fl.variants.VariantManagement}.
13
12
  */
@@ -797,6 +796,22 @@ declare module "sap/ui/fl/variants/VariantManagement" {
797
796
  * @returns Value of property `resetOnContextChange`
798
797
  */
799
798
  getResetOnContextChange(): boolean;
799
+ /**
800
+ * @since 1.118
801
+ *
802
+ * Gets current value of property {@link #getShowAsText showAsText}.
803
+ *
804
+ * Renders the name of the variant as a text. The name of the variant is usually rendered as {@link sap.m.Title }
805
+ * but there are use cases - related to accessibility requirements - where the rendering should be done
806
+ * using {@link sap.m.Text} instead. **Note:**:
807
+ * If the name of the variant is rendered as `sap.m.Text`, all the `sap.m.Title`- specific information
808
+ * (`headerLevel` and `titleStyle`) is ignored.
809
+ *
810
+ * Default value is `false`.
811
+ *
812
+ * @returns Value of property `showAsText`
813
+ */
814
+ getShowAsText(): boolean;
800
815
  /**
801
816
  * Gets current value of property {@link #getShowSetAsDefault showSetAsDefault}.
802
817
  *
@@ -1008,6 +1023,29 @@ declare module "sap/ui/fl/variants/VariantManagement" {
1008
1023
  */
1009
1024
  bResetOnContextChange?: boolean
1010
1025
  ): this;
1026
+ /**
1027
+ * @since 1.118
1028
+ *
1029
+ * Sets a new value for property {@link #getShowAsText showAsText}.
1030
+ *
1031
+ * Renders the name of the variant as a text. The name of the variant is usually rendered as {@link sap.m.Title }
1032
+ * but there are use cases - related to accessibility requirements - where the rendering should be done
1033
+ * using {@link sap.m.Text} instead. **Note:**:
1034
+ * If the name of the variant is rendered as `sap.m.Text`, all the `sap.m.Title`- specific information
1035
+ * (`headerLevel` and `titleStyle`) is ignored.
1036
+ *
1037
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1038
+ *
1039
+ * Default value is `false`.
1040
+ *
1041
+ * @returns Reference to `this` in order to allow method chaining
1042
+ */
1043
+ setShowAsText(
1044
+ /**
1045
+ * New value for property `showAsText`
1046
+ */
1047
+ bShowAsText?: boolean
1048
+ ): this;
1011
1049
  /**
1012
1050
  * Sets a new value for property {@link #getShowSetAsDefault showSetAsDefault}.
1013
1051
  *
@@ -1145,6 +1183,17 @@ declare module "sap/ui/fl/variants/VariantManagement" {
1145
1183
  */
1146
1184
  maxWidth?: CSSSize | PropertyBindingInfo | `{${string}}`;
1147
1185
 
1186
+ /**
1187
+ * @since 1.118
1188
+ *
1189
+ * Renders the name of the variant as a text. The name of the variant is usually rendered as {@link sap.m.Title }
1190
+ * but there are use cases - related to accessibility requirements - where the rendering should be done
1191
+ * using {@link sap.m.Text} instead. **Note:**:
1192
+ * If the name of the variant is rendered as `sap.m.Text`, all the `sap.m.Title`- specific information
1193
+ * (`headerLevel` and `titleStyle`) is ignored.
1194
+ */
1195
+ showAsText?: boolean | PropertyBindingInfo | `{${string}}`;
1196
+
1148
1197
  /**
1149
1198
  * Contains the ids of the controls for which the variant management is responsible.
1150
1199
  */
@@ -1528,8 +1577,6 @@ declare namespace sap {
1528
1577
 
1529
1578
  "sap/ui/fl/apply/api/UI2PersonalizationApplyAPI": undefined;
1530
1579
 
1531
- "sap/ui/fl/Cache": undefined;
1532
-
1533
1580
  "sap/ui/fl/changeHandler/Base": undefined;
1534
1581
 
1535
1582
  "sap/ui/fl/ChangePersistenceFactory": undefined;
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.117.1
1
+ // For Library Version: 1.118.0
2
2
 
3
3
  declare module "sap/ui/integration/library" {
4
4
  import { URI } from "sap/ui/core/library";
@@ -140,6 +140,26 @@ declare module "sap/ui/integration/library" {
140
140
  */
141
141
  Transparent = "Transparent",
142
142
  }
143
+ /**
144
+ * @since 1.118
145
+ * @experimental (since 1.118) - For usage only by Work Zone.
146
+ *
147
+ * Possible variants for `{@link sap.ui.integration.widgets.Card}` rendering and behavior.
148
+ */
149
+ export enum CardDisplayVariant {
150
+ /**
151
+ * The standard card variant.
152
+ */
153
+ Standard = "Standard",
154
+ /**
155
+ * Card renders and behaves like a tile of size 2x2.
156
+ */
157
+ TileStandard = "TileStandard",
158
+ /**
159
+ * Card renders and behaves like a tile of size 4x2.
160
+ */
161
+ TileStandardWide = "TileStandardWide",
162
+ }
143
163
  /**
144
164
  * @experimental (since 1.79)
145
165
  *
@@ -611,6 +631,7 @@ declare module "sap/ui/integration/widgets/Card" {
611
631
  CardBlockingMessageType,
612
632
  CardDataMode,
613
633
  CardDesign,
634
+ CardDisplayVariant,
614
635
  CardPreviewMode,
615
636
  CardArea,
616
637
  CardActionType,
@@ -1310,6 +1331,19 @@ declare module "sap/ui/integration/widgets/Card" {
1310
1331
  * @returns Value of property `design`
1311
1332
  */
1312
1333
  getDesign(): CardDesign | keyof typeof CardDesign;
1334
+ /**
1335
+ * @since 1.118
1336
+ * @experimental (since 1.118) - For usage only by Work Zone.
1337
+ *
1338
+ * Gets current value of property {@link #getDisplayVariant displayVariant}.
1339
+ *
1340
+ * Defines the display variant for card rendering and behavior.
1341
+ *
1342
+ * Default value is `Standard`.
1343
+ *
1344
+ * @returns Value of property `displayVariant`
1345
+ */
1346
+ getDisplayVariant(): CardDisplayVariant | keyof typeof CardDisplayVariant;
1313
1347
  /**
1314
1348
  * @ui5-protected Do not call from applications (only from related classes in the framework)
1315
1349
  *
@@ -1680,6 +1714,26 @@ declare module "sap/ui/integration/widgets/Card" {
1680
1714
  */
1681
1715
  sDesign?: CardDesign | keyof typeof CardDesign
1682
1716
  ): this;
1717
+ /**
1718
+ * @since 1.118
1719
+ * @experimental (since 1.118) - For usage only by Work Zone.
1720
+ *
1721
+ * Sets a new value for property {@link #getDisplayVariant displayVariant}.
1722
+ *
1723
+ * Defines the display variant for card rendering and behavior.
1724
+ *
1725
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1726
+ *
1727
+ * Default value is `Standard`.
1728
+ *
1729
+ * @returns Reference to `this` in order to allow method chaining
1730
+ */
1731
+ setDisplayVariant(
1732
+ /**
1733
+ * New value for property `displayVariant`
1734
+ */
1735
+ sDisplayVariant?: CardDisplayVariant | keyof typeof CardDisplayVariant
1736
+ ): this;
1683
1737
  /**
1684
1738
  * Sets the associated {@link #getHost host}.
1685
1739
  *
@@ -1844,7 +1898,7 @@ declare module "sap/ui/integration/widgets/Card" {
1844
1898
  /**
1845
1899
  * Type of the message.
1846
1900
  */
1847
- sType: MessageType | keyof typeof MessageType
1901
+ sType: MessageType
1848
1902
  ): void;
1849
1903
  /**
1850
1904
  * @experimental (since 1.84)
@@ -2181,7 +2235,7 @@ declare module "sap/ui/integration/widgets/Card" {
2181
2235
  /**
2182
2236
  * Type of the message.
2183
2237
  */
2184
- sType: MessageType | keyof typeof MessageType
2238
+ sType: MessageType
2185
2239
  ): void;
2186
2240
  /**
2187
2241
  * @experimental (since 1.84)
@@ -2324,6 +2378,17 @@ declare module "sap/ui/integration/widgets/Card" {
2324
2378
  | PropertyBindingInfo
2325
2379
  | `{${string}}`;
2326
2380
 
2381
+ /**
2382
+ * @since 1.118
2383
+ * @experimental (since 1.118) - For usage only by Work Zone.
2384
+ *
2385
+ * Defines the display variant for card rendering and behavior.
2386
+ */
2387
+ displayVariant?:
2388
+ | (CardDisplayVariant | keyof typeof CardDisplayVariant)
2389
+ | PropertyBindingInfo
2390
+ | `{${string}}`;
2391
+
2327
2392
  /**
2328
2393
  * @since 1.112
2329
2394
  * @experimental (since 1.112)
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.117.1
1
+ // For Library Version: 1.118.0
2
2
 
3
3
  declare module "sap/ui/layout/library" {
4
4
  import Control from "sap/ui/core/Control";