@openui5/ts-types 1.94.0 → 1.97.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.94.0",
3
+ "version": "1.97.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.94.0
1
+ // For Library Version: 1.97.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -154,6 +154,13 @@ declare namespace sap {
154
154
  */
155
155
  details?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
156
156
 
157
+ /**
158
+ * The alignment of the side indicators.
159
+ */
160
+ sideIndicatorsAlignment?:
161
+ | sap.f.cards.NumericHeaderSideIndicatorsAlignment
162
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
163
+
157
164
  /**
158
165
  * Additional side number indicators. For example "Deviation" and "Target". Not more than two side indicators
159
166
  * should be used.
@@ -185,6 +192,15 @@ declare namespace sap {
185
192
  * Defines the unit of measurement (scaling prefix) for the numeric value
186
193
  */
187
194
  unit?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
195
+
196
+ /**
197
+ * @EXPERIMENTAL (since 1.95)
198
+ *
199
+ * The semantic color which represents the state of the side indicator.
200
+ */
201
+ state?:
202
+ | sap.m.ValueColor
203
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
188
204
  }
189
205
 
190
206
  /**
@@ -628,8 +644,8 @@ declare namespace sap {
628
644
  * Displays general information in the header of the {@link sap.f.Card} and allows the configuration of
629
645
  * a numeric value visualization.
630
646
  *
631
- * You can configure the title, subtitle, status text and icon, using the provided properties. To add more
632
- * side number indicators, use the `sideIndicators` aggregation.
647
+ * You can configure the title, subtitle, and status text, using the provided properties. To add more side
648
+ * number indicators, use the `sideIndicators` aggregation.
633
649
  *
634
650
  * **Notes:**
635
651
  * - You should always set a title.
@@ -802,6 +818,14 @@ declare namespace sap {
802
818
  * should be used.
803
819
  */
804
820
  getSideIndicators(): sap.f.cards.NumericSideIndicator[];
821
+ /**
822
+ * Gets current value of property {@link #getSideIndicatorsAlignment sideIndicatorsAlignment}.
823
+ *
824
+ * The alignment of the side indicators.
825
+ *
826
+ * Default value is `"Begin"`.
827
+ */
828
+ getSideIndicatorsAlignment(): sap.f.cards.NumericHeaderSideIndicatorsAlignment;
805
829
  /**
806
830
  * @EXPERIMENTAL (since 1.64)
807
831
  *
@@ -913,6 +937,21 @@ declare namespace sap {
913
937
  */
914
938
  sValue: string
915
939
  ): this;
940
+ /**
941
+ * Sets a new value for property {@link #getSideIndicatorsAlignment sideIndicatorsAlignment}.
942
+ *
943
+ * The alignment of the side indicators.
944
+ *
945
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
946
+ *
947
+ * Default value is `"Begin"`.
948
+ */
949
+ setSideIndicatorsAlignment(
950
+ /**
951
+ * New value for property `sideIndicatorsAlignment`
952
+ */
953
+ sSideIndicatorsAlignment?: sap.f.cards.NumericHeaderSideIndicatorsAlignment
954
+ ): this;
916
955
  /**
917
956
  * Sets the semantic color which represents the state of the main number indicator.
918
957
  */
@@ -1042,6 +1081,16 @@ declare namespace sap {
1042
1081
  * The numeric value
1043
1082
  */
1044
1083
  getNumber(): string;
1084
+ /**
1085
+ * @EXPERIMENTAL (since 1.95)
1086
+ *
1087
+ * Gets current value of property {@link #getState state}.
1088
+ *
1089
+ * The semantic color which represents the state of the side indicator.
1090
+ *
1091
+ * Default value is `"None"`.
1092
+ */
1093
+ getState(): sap.m.ValueColor;
1045
1094
  /**
1046
1095
  * Gets current value of property {@link #getTitle title}.
1047
1096
  *
@@ -1063,6 +1112,23 @@ declare namespace sap {
1063
1112
  */
1064
1113
  sValue: string
1065
1114
  ): this;
1115
+ /**
1116
+ * @EXPERIMENTAL (since 1.95)
1117
+ *
1118
+ * Sets a new value for property {@link #getState state}.
1119
+ *
1120
+ * The semantic color which represents the state of the side indicator.
1121
+ *
1122
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
1123
+ *
1124
+ * Default value is `"None"`.
1125
+ */
1126
+ setState(
1127
+ /**
1128
+ * New value for property `state`
1129
+ */
1130
+ sState?: sap.m.ValueColor
1131
+ ): this;
1066
1132
  /**
1067
1133
  * Sets the title.
1068
1134
  */
@@ -1097,6 +1163,21 @@ declare namespace sap {
1097
1163
  */
1098
1164
  Top = "Top",
1099
1165
  }
1166
+ /**
1167
+ * @SINCE 1.96
1168
+ *
1169
+ * Different options for the alignment of the side indicators in the numeric header.
1170
+ */
1171
+ enum NumericHeaderSideIndicatorsAlignment {
1172
+ /**
1173
+ * Sets the alignment to the beginning (left or right depending on LTR/RTL).
1174
+ */
1175
+ Begin = "Begin",
1176
+ /**
1177
+ * Explicitly sets the alignment to the end (left or right depending on LTR/RTL).
1178
+ */
1179
+ End = "End",
1180
+ }
1100
1181
  }
1101
1182
 
1102
1183
  namespace dnd {
@@ -1328,8 +1409,11 @@ declare namespace sap {
1328
1409
  * Used for closing dialogs and showing transitions in `NavContainers` when targets are displayed.
1329
1410
  *
1330
1411
  * **Note:** You should not create an own instance of this class. It is created when using `{@link sap.f.routing.Router}`
1331
- * or `{@link sap.f.routing.Targets}`. You may use the `{@link #setCloseDialogs}` function to specify if
1332
- * dialogs should be closed on displaying other views.
1412
+ * or `{@link sap.f.routing.Targets}`.
1413
+ *
1414
+ * **Note:** You may use the `{@link #setCloseDialogs}` function to specify if dialogs should be closed
1415
+ * on displaying other views. The dialogs are closed when a different target is displayed than the previously
1416
+ * displayed one, otherwise the dialogs are kept open.
1333
1417
  */
1334
1418
  class TargetHandler extends sap.ui.base.Object {
1335
1419
  /**
@@ -1337,10 +1421,10 @@ declare namespace sap {
1337
1421
  */
1338
1422
  constructor(
1339
1423
  /**
1340
- * Closes all open dialogs before navigating, if set to `true` (default). If set to `false`, it just navigates
1341
- * without closing dialogs.
1424
+ * Closes all open dialogs before navigating to a different target, if set to `true` (default). If set to
1425
+ * `false`, it will just navigate without closing dialogs.
1342
1426
  */
1343
- bCloseDialogs: boolean
1427
+ closeDialogs: boolean
1344
1428
  );
1345
1429
 
1346
1430
  /**
@@ -1374,6 +1458,9 @@ declare namespace sap {
1374
1458
  getCloseDialogs(): boolean;
1375
1459
  /**
1376
1460
  * Sets if a navigation should close dialogs.
1461
+ *
1462
+ * **Note:** The dialogs are closed when a different target is displayed than the previous one, otherwise
1463
+ * the dialogs are kept open even when `bCloseDialogs` is `true`.
1377
1464
  */
1378
1465
  setCloseDialogs(
1379
1466
  /**
@@ -2341,6 +2428,8 @@ declare namespace sap {
2341
2428
  * The `customShareActions` are placed in the `ShareMenu` area of the `SemanticPage` title, right after
2342
2429
  * the semantic actions.
2343
2430
  *
2431
+ * The text and icon of the button inside the `customShareActions` aggregation, can be customized.
2432
+ *
2344
2433
  * **Note:** If the `titleSnappedOnMobile` aggregation is set, its content overrides this aggregation when
2345
2434
  * the control is viewed on a phone mobile device and the `SemanticPage` header is in its collapsed (snapped)
2346
2435
  * state.
@@ -4135,6 +4224,8 @@ declare namespace sap {
4135
4224
  * The `customShareActions` are placed in the `ShareMenu` area of the `SemanticPage` title, right after
4136
4225
  * the semantic actions.
4137
4226
  *
4227
+ * The text and icon of the button inside the `customShareActions` aggregation, can be customized.
4228
+ *
4138
4229
  * **Note:** If the `titleSnappedOnMobile` aggregation is set, its content overrides this aggregation when
4139
4230
  * the control is viewed on a phone mobile device and the `SemanticPage` header is in its collapsed (snapped)
4140
4231
  * state.
@@ -6422,6 +6513,15 @@ declare namespace sap {
6422
6513
  | sap.ui.core.Control
6423
6514
  | sap.ui.base.ManagedObject.AggregationBindingInfo;
6424
6515
 
6516
+ /**
6517
+ * @SINCE 1.95
6518
+ *
6519
+ * Accessible landmark settings to be applied on the containers of the `sap.f.FlexibleColumnLayout` control.
6520
+ *
6521
+ * If not set, no landmarks will be written.
6522
+ */
6523
+ landmarkInfo?: sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo;
6524
+
6425
6525
  /**
6426
6526
  * Sets the initial `Begin` column page, which is displayed on application launch.
6427
6527
  */
@@ -6501,6 +6601,35 @@ declare namespace sap {
6501
6601
  columnResize?: (oEvent: sap.ui.base.Event) => void;
6502
6602
  }
6503
6603
 
6604
+ interface $FlexibleColumnLayoutAccessibleLandmarkInfoSettings
6605
+ extends sap.ui.core.$ElementSettings {
6606
+ /**
6607
+ * Text that describes the landmark of the first column of the corresponding `sap.f.FlexibleColumnLayout`
6608
+ * control.
6609
+ *
6610
+ * If not set, a predefined text is used.
6611
+ */
6612
+ firstColumnLabel?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
6613
+
6614
+ /**
6615
+ * Text that describes the landmark of the middle column of the corresponding `sap.f.FlexibleColumnLayout`
6616
+ * control.
6617
+ *
6618
+ * If not set, a predefined text is used.
6619
+ */
6620
+ middleColumnLabel?:
6621
+ | string
6622
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
6623
+
6624
+ /**
6625
+ * Text that describes the landmark of the last column of the corresponding `sap.f.FlexibleColumnLayout`
6626
+ * control.
6627
+ *
6628
+ * If not set, a predefined text is used.
6629
+ */
6630
+ lastColumnLabel?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
6631
+ }
6632
+
6504
6633
  interface $GridContainerSettings extends sap.ui.core.$ControlSettings {
6505
6634
  /**
6506
6635
  * Defines the width of the control.
@@ -10482,6 +10611,12 @@ declare namespace sap {
10482
10611
  * Destroys all the endColumnPages in the aggregation {@link #getEndColumnPages endColumnPages}.
10483
10612
  */
10484
10613
  destroyEndColumnPages(): this;
10614
+ /**
10615
+ * @SINCE 1.95
10616
+ *
10617
+ * Destroys the landmarkInfo in the aggregation {@link #getLandmarkInfo landmarkInfo}.
10618
+ */
10619
+ destroyLandmarkInfo(): this;
10485
10620
  /**
10486
10621
  * Destroys all the midColumnPages in the aggregation {@link #getMidColumnPages midColumnPages}.
10487
10622
  */
@@ -11086,6 +11221,16 @@ declare namespace sap {
11086
11221
  * or `null`.
11087
11222
  */
11088
11223
  getInitialMidColumnPage(): sap.ui.core.ID;
11224
+ /**
11225
+ * @SINCE 1.95
11226
+ *
11227
+ * Gets content of aggregation {@link #getLandmarkInfo landmarkInfo}.
11228
+ *
11229
+ * Accessible landmark settings to be applied on the containers of the `sap.f.FlexibleColumnLayout` control.
11230
+ *
11231
+ * If not set, no landmarks will be written.
11232
+ */
11233
+ getLandmarkInfo(): sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo;
11089
11234
  /**
11090
11235
  * Gets current value of property {@link #getLayout layout}.
11091
11236
  *
@@ -11121,22 +11266,6 @@ declare namespace sap {
11121
11266
  * Default value is `false`.
11122
11267
  */
11123
11268
  getRestoreFocusOnBackNavigation(): boolean;
11124
- /**
11125
- * @SINCE 1.91
11126
- *
11127
- * Hides the placeholder on the corresponding column for the provided aggregation name.
11128
- */
11129
- hidePlaceholder(
11130
- /**
11131
- * Object containing the aggregation name
11132
- */
11133
- mSettings: {
11134
- /**
11135
- * The aggregation name to decide on which column/container the placeholder should be hidden
11136
- */
11137
- aggregation: string;
11138
- }
11139
- ): void;
11140
11269
  /**
11141
11270
  * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getBeginColumnPages beginColumnPages}.
11142
11271
  * and returns its index if found or -1 otherwise.
@@ -11376,6 +11505,17 @@ declare namespace sap {
11376
11505
  */
11377
11506
  oInitialMidColumnPage: sap.ui.core.ID | sap.ui.core.Control
11378
11507
  ): this;
11508
+ /**
11509
+ * @SINCE 1.95
11510
+ *
11511
+ * Sets the aggregated {@link #getLandmarkInfo landmarkInfo}.
11512
+ */
11513
+ setLandmarkInfo(
11514
+ /**
11515
+ * The landmarkInfo to set
11516
+ */
11517
+ oLandmarkInfo: sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo
11518
+ ): this;
11379
11519
  /**
11380
11520
  * Sets a new value for property {@link #getLayout layout}.
11381
11521
  *
@@ -11411,22 +11551,6 @@ declare namespace sap {
11411
11551
  */
11412
11552
  bRestoreFocusOnBackNavigation?: boolean
11413
11553
  ): this;
11414
- /**
11415
- * @SINCE 1.91
11416
- *
11417
- * Shows the placeholder on the corresponding column for the provided aggregation name.
11418
- */
11419
- showPlaceholder(
11420
- /**
11421
- * Object containing the aggregation name
11422
- */
11423
- mSettings: {
11424
- /**
11425
- * The aggregation name to decide on which column/container the placeholder should be shown
11426
- */
11427
- aggregation: string;
11428
- }
11429
- ): void;
11430
11554
  /**
11431
11555
  * Navigates to the given page inside the FlexibleColumnLayout. Columns are scanned for the page in the
11432
11556
  * following order: `Begin`, `Mid`, `End`.
@@ -11722,6 +11846,150 @@ declare namespace sap {
11722
11846
  oTransitionParameters: object
11723
11847
  ): this;
11724
11848
  }
11849
+ /**
11850
+ * @SINCE 1.95
11851
+ *
11852
+ * Settings for accessible landmarks which can be applied to the container elements of a `sap.f.FlexibleColumnLayout`
11853
+ * control. For example, these landmarks are used by assistive technologies (such as screen readers) to
11854
+ * provide a meaningful columns overview.
11855
+ */
11856
+ class FlexibleColumnLayoutAccessibleLandmarkInfo extends sap.ui.core
11857
+ .Element {
11858
+ /**
11859
+ * Constructor for a new `sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo` element.
11860
+ *
11861
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
11862
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
11863
+ * of the syntax of the settings object.
11864
+ */
11865
+ constructor(
11866
+ /**
11867
+ * Initial settings for the new element
11868
+ */
11869
+ mSettings?: sap.f.$FlexibleColumnLayoutAccessibleLandmarkInfoSettings
11870
+ );
11871
+ /**
11872
+ * Constructor for a new `sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo` element.
11873
+ *
11874
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
11875
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
11876
+ * of the syntax of the settings object.
11877
+ */
11878
+ constructor(
11879
+ /**
11880
+ * ID for the new element, generated automatically if no ID is given
11881
+ */
11882
+ sId?: string,
11883
+ /**
11884
+ * Initial settings for the new element
11885
+ */
11886
+ mSettings?: sap.f.$FlexibleColumnLayoutAccessibleLandmarkInfoSettings
11887
+ );
11888
+
11889
+ /**
11890
+ * Creates a new subclass of class sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo with name `sClassName`
11891
+ * and enriches it with the information contained in `oClassInfo`.
11892
+ *
11893
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Element.extend}.
11894
+ */
11895
+ static extend<T extends Record<string, unknown>>(
11896
+ /**
11897
+ * Name of the class being created
11898
+ */
11899
+ sClassName: string,
11900
+ /**
11901
+ * Object literal with information about the class
11902
+ */
11903
+ oClassInfo?: sap.ClassInfo<
11904
+ T,
11905
+ sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo
11906
+ >,
11907
+ /**
11908
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
11909
+ * used by this class
11910
+ */
11911
+ FNMetaImpl?: Function
11912
+ ): Function;
11913
+ /**
11914
+ * Returns a metadata object for class sap.f.FlexibleColumnLayoutAccessibleLandmarkInfo.
11915
+ */
11916
+ static getMetadata(): sap.ui.core.ElementMetadata;
11917
+ /**
11918
+ * Gets current value of property {@link #getFirstColumnLabel firstColumnLabel}.
11919
+ *
11920
+ * Text that describes the landmark of the first column of the corresponding `sap.f.FlexibleColumnLayout`
11921
+ * control.
11922
+ *
11923
+ * If not set, a predefined text is used.
11924
+ */
11925
+ getFirstColumnLabel(): string;
11926
+ /**
11927
+ * Gets current value of property {@link #getLastColumnLabel lastColumnLabel}.
11928
+ *
11929
+ * Text that describes the landmark of the last column of the corresponding `sap.f.FlexibleColumnLayout`
11930
+ * control.
11931
+ *
11932
+ * If not set, a predefined text is used.
11933
+ */
11934
+ getLastColumnLabel(): string;
11935
+ /**
11936
+ * Gets current value of property {@link #getMiddleColumnLabel middleColumnLabel}.
11937
+ *
11938
+ * Text that describes the landmark of the middle column of the corresponding `sap.f.FlexibleColumnLayout`
11939
+ * control.
11940
+ *
11941
+ * If not set, a predefined text is used.
11942
+ */
11943
+ getMiddleColumnLabel(): string;
11944
+ /**
11945
+ * Sets a new value for property {@link #getFirstColumnLabel firstColumnLabel}.
11946
+ *
11947
+ * Text that describes the landmark of the first column of the corresponding `sap.f.FlexibleColumnLayout`
11948
+ * control.
11949
+ *
11950
+ * If not set, a predefined text is used.
11951
+ *
11952
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
11953
+ */
11954
+ setFirstColumnLabel(
11955
+ /**
11956
+ * New value for property `firstColumnLabel`
11957
+ */
11958
+ sFirstColumnLabel?: string
11959
+ ): this;
11960
+ /**
11961
+ * Sets a new value for property {@link #getLastColumnLabel lastColumnLabel}.
11962
+ *
11963
+ * Text that describes the landmark of the last column of the corresponding `sap.f.FlexibleColumnLayout`
11964
+ * control.
11965
+ *
11966
+ * If not set, a predefined text is used.
11967
+ *
11968
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
11969
+ */
11970
+ setLastColumnLabel(
11971
+ /**
11972
+ * New value for property `lastColumnLabel`
11973
+ */
11974
+ sLastColumnLabel?: string
11975
+ ): this;
11976
+ /**
11977
+ * Sets a new value for property {@link #getMiddleColumnLabel middleColumnLabel}.
11978
+ *
11979
+ * Text that describes the landmark of the middle column of the corresponding `sap.f.FlexibleColumnLayout`
11980
+ * control.
11981
+ *
11982
+ * If not set, a predefined text is used.
11983
+ *
11984
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
11985
+ */
11986
+ setMiddleColumnLabel(
11987
+ /**
11988
+ * New value for property `middleColumnLabel`
11989
+ */
11990
+ sMiddleColumnLabel?: string
11991
+ ): this;
11992
+ }
11725
11993
  /**
11726
11994
  * @SINCE 1.46.0
11727
11995
  *
@@ -16242,6 +16510,8 @@ declare namespace sap {
16242
16510
 
16243
16511
  "sap/f/FlexibleColumnLayout": undefined;
16244
16512
 
16513
+ "sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo": undefined;
16514
+
16245
16515
  "sap/f/FlexibleColumnLayoutSemanticHelper": undefined;
16246
16516
 
16247
16517
  "sap/f/GridContainer": undefined;