@openui5/ts-types 1.130.1 → 1.131.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.130.1",
3
+ "version": "1.131.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.130.1
1
+ // For Library Version: 1.131.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -129,6 +129,60 @@ declare namespace sap {
129
129
  | `{${string}}`;
130
130
  }
131
131
 
132
+ /**
133
+ * Describes the settings that can be provided to the CardBadgeCustomData constructor.
134
+ */
135
+ interface $CardBadgeCustomDataSettings
136
+ extends sap.ui.core.$CustomDataSettings {
137
+ /**
138
+ * Icon URI. This may be either an icon font or image path.
139
+ *
140
+ * @since 1.128
141
+ */
142
+ icon?:
143
+ | sap.ui.core.URI
144
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
145
+ | `{${string}}`;
146
+
147
+ /**
148
+ * Describes the corresponding visibility mode, see also {@link sap.f.CardBadgeVisibilityMode}.
149
+ *
150
+ * @since 1.128
151
+ */
152
+ visibilityMode?:
153
+ | sap.f.CardBadgeVisibilityMode
154
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
155
+ | `{${string}}`;
156
+
157
+ /**
158
+ * Defines the color of the badge. The allowed values are from the enum type `sap.ui.core.IndicationColor`.
159
+ * Additionally values from `sap.ui.core.ValueState` can be used, but this is not recommended by design
160
+ * guidelines.
161
+ *
162
+ * @since 1.128
163
+ */
164
+ state?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
165
+
166
+ /**
167
+ * Defines the cards badge visibility.
168
+ *
169
+ * @since 1.128
170
+ */
171
+ visible?:
172
+ | boolean
173
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
174
+ | `{${string}}`;
175
+
176
+ /**
177
+ * Defines text which will is overriding default announcement.
178
+ *
179
+ * @since 1.128
180
+ */
181
+ announcementText?:
182
+ | string
183
+ | sap.ui.base.ManagedObject.PropertyBindingInfo;
184
+ }
185
+
132
186
  /**
133
187
  * Describes the settings that can be provided to the Header constructor.
134
188
  */
@@ -871,9 +925,20 @@ declare namespace sap {
871
925
  *
872
926
  * @since 1.128
873
927
  */
874
- class CardBadgeCustomData
875
- extends /* was: sap..ui.core.CustomData */ Object
876
- {
928
+ class CardBadgeCustomData extends sap.ui.core.CustomData {
929
+ /**
930
+ * Constructor for a new `CardBadgeCustomData` element.
931
+ *
932
+ * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
933
+ * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
934
+ * of the syntax of the settings object.
935
+ */
936
+ constructor(
937
+ /**
938
+ * Initial settings for the new element
939
+ */
940
+ mSettings?: sap.f.cards.$CardBadgeCustomDataSettings
941
+ );
877
942
  /**
878
943
  * Constructor for a new `CardBadgeCustomData` element.
879
944
  *
@@ -889,14 +954,14 @@ declare namespace sap {
889
954
  /**
890
955
  * Initial settings for the new element
891
956
  */
892
- mSettings?: object
957
+ mSettings?: sap.f.cards.$CardBadgeCustomDataSettings
893
958
  );
894
959
 
895
960
  /**
896
961
  * Creates a new subclass of class sap.f.cards.CardBadgeCustomData with name `sClassName` and enriches it
897
962
  * with the information contained in `oClassInfo`.
898
963
  *
899
- * `oClassInfo` might contain the same kind of information as described in {@link sap..ui.core.CustomData.extend}.
964
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.CustomData.extend}.
900
965
  *
901
966
  *
902
967
  * @returns Created class / constructor function
@@ -922,7 +987,7 @@ declare namespace sap {
922
987
  *
923
988
  * @returns Metadata object describing this class
924
989
  */
925
- static getMetadata(): sap.ui.base.Metadata;
990
+ static getMetadata(): sap.ui.core.ElementMetadata;
926
991
  /**
927
992
  * Gets current value of property {@link #getAnnouncementText announcementText}.
928
993
  *
@@ -2867,6 +2932,24 @@ declare namespace sap {
2867
2932
  */
2868
2933
  End = "End",
2869
2934
  }
2935
+ /**
2936
+ * Different options for the semantic role in controls that implement the {@link sap.f.ICard} interface.
2937
+ *
2938
+ * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'cards.SemanticRole'.
2939
+ *
2940
+ * @since 1.131
2941
+ * @experimental
2942
+ */
2943
+ enum SemanticRole {
2944
+ /**
2945
+ * The card has interactive elements.
2946
+ */
2947
+ ListItem = "ListItem",
2948
+ /**
2949
+ * The card has no interactive elements.
2950
+ */
2951
+ Region = "Region",
2952
+ }
2870
2953
  /**
2871
2954
  * Event object of the Header#press event.
2872
2955
  */
@@ -8319,8 +8402,6 @@ declare namespace sap {
8319
8402
  * Interface for controls suitable for the `additionalContent` aggregation of `{@link sap.f.ShellBar}`.
8320
8403
  *
8321
8404
  * @since 1.63
8322
- * @experimental (since 1.63) - that provides only limited functionality. Also, it can be removed in future
8323
- * versions.
8324
8405
  */
8325
8406
  interface IShellBar {
8326
8407
  __implements__sap_f_IShellBar: boolean;
@@ -8465,6 +8546,23 @@ declare namespace sap {
8465
8546
  | sap.ui.core.CSSSize
8466
8547
  | sap.ui.base.ManagedObject.PropertyBindingInfo
8467
8548
  | `{${string}}`;
8549
+
8550
+ /**
8551
+ * Defines the role of the Card Header.
8552
+ *
8553
+ * @experimental (since 1.131)
8554
+ */
8555
+ semanticRole?:
8556
+ | sap.f.cards.SemanticRole
8557
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
8558
+ | `{${string}}`;
8559
+
8560
+ /**
8561
+ * Fired when action is added on card level. Note: Can be used only if `semanticRole` is `sap.f.cards.SemanticRole.ListItem`.
8562
+ *
8563
+ * @experimental (since 1.131)
8564
+ */
8565
+ press?: (oEvent: sap.ui.base.Event) => void;
8468
8566
  }
8469
8567
 
8470
8568
  /**
@@ -10160,6 +10258,13 @@ declare namespace sap {
10160
10258
  avatarsDisplayed?: int;
10161
10259
  }
10162
10260
 
10261
+ /**
10262
+ * Parameters of the CardBase#press event.
10263
+ *
10264
+ * @experimental (since 1.131)
10265
+ */
10266
+ interface CardBase$PressEventParameters {}
10267
+
10163
10268
  /**
10164
10269
  * Parameters of the DynamicPage#pinnedStateChange event.
10165
10270
  */
@@ -11712,6 +11817,88 @@ declare namespace sap {
11712
11817
  * @returns Metadata object describing this class
11713
11818
  */
11714
11819
  static getMetadata(): sap.ui.core.ElementMetadata;
11820
+ /**
11821
+ * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.CardBase`.
11822
+ *
11823
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
11824
+ * otherwise it will be bound to this `sap.f.CardBase` itself.
11825
+ *
11826
+ * Fired when action is added on card level. Note: Can be used only if `semanticRole` is `sap.f.cards.SemanticRole.ListItem`.
11827
+ *
11828
+ * @experimental (since 1.131)
11829
+ *
11830
+ * @returns Reference to `this` in order to allow method chaining
11831
+ */
11832
+ attachPress(
11833
+ /**
11834
+ * An application-specific payload object that will be passed to the event handler along with the event
11835
+ * object when firing the event
11836
+ */
11837
+ oData: object,
11838
+ /**
11839
+ * The function to be called when the event occurs
11840
+ */
11841
+ fnFunction: (p1: sap.ui.base.Event) => void,
11842
+ /**
11843
+ * Context object to call the event handler with. Defaults to this `sap.f.CardBase` itself
11844
+ */
11845
+ oListener?: object
11846
+ ): this;
11847
+ /**
11848
+ * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.CardBase`.
11849
+ *
11850
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
11851
+ * otherwise it will be bound to this `sap.f.CardBase` itself.
11852
+ *
11853
+ * Fired when action is added on card level. Note: Can be used only if `semanticRole` is `sap.f.cards.SemanticRole.ListItem`.
11854
+ *
11855
+ * @experimental (since 1.131)
11856
+ *
11857
+ * @returns Reference to `this` in order to allow method chaining
11858
+ */
11859
+ attachPress(
11860
+ /**
11861
+ * The function to be called when the event occurs
11862
+ */
11863
+ fnFunction: (p1: sap.ui.base.Event) => void,
11864
+ /**
11865
+ * Context object to call the event handler with. Defaults to this `sap.f.CardBase` itself
11866
+ */
11867
+ oListener?: object
11868
+ ): this;
11869
+ /**
11870
+ * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.f.CardBase`.
11871
+ *
11872
+ * The passed function and listener object must match the ones used for event registration.
11873
+ *
11874
+ * @experimental (since 1.131)
11875
+ *
11876
+ * @returns Reference to `this` in order to allow method chaining
11877
+ */
11878
+ detachPress(
11879
+ /**
11880
+ * The function to be called, when the event occurs
11881
+ */
11882
+ fnFunction: (p1: sap.ui.base.Event) => void,
11883
+ /**
11884
+ * Context object on which the given function had to be called
11885
+ */
11886
+ oListener?: object
11887
+ ): this;
11888
+ /**
11889
+ * Fires event {@link #event:press press} to attached listeners.
11890
+ *
11891
+ * @experimental (since 1.131)
11892
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
11893
+ *
11894
+ * @returns Reference to `this` in order to allow method chaining
11895
+ */
11896
+ firePress(
11897
+ /**
11898
+ * Parameters to pass along with the event
11899
+ */
11900
+ mParameters?: object
11901
+ ): this;
11715
11902
  /**
11716
11903
  * Returns the DOM Element that should get the focus.
11717
11904
  *
@@ -11731,6 +11918,18 @@ declare namespace sap {
11731
11918
  * @returns Value of property `height`
11732
11919
  */
11733
11920
  getHeight(): sap.ui.core.CSSSize;
11921
+ /**
11922
+ * Gets current value of property {@link #getSemanticRole semanticRole}.
11923
+ *
11924
+ * Defines the role of the Card Header.
11925
+ *
11926
+ * Default value is `Region`.
11927
+ *
11928
+ * @experimental (since 1.131)
11929
+ *
11930
+ * @returns Value of property `semanticRole`
11931
+ */
11932
+ getSemanticRole(): sap.f.cards.SemanticRole;
11734
11933
  /**
11735
11934
  * Gets current value of property {@link #getWidth width}.
11736
11935
  *
@@ -11760,6 +11959,25 @@ declare namespace sap {
11760
11959
  */
11761
11960
  sHeight?: sap.ui.core.CSSSize
11762
11961
  ): this;
11962
+ /**
11963
+ * Sets a new value for property {@link #getSemanticRole semanticRole}.
11964
+ *
11965
+ * Defines the role of the Card Header.
11966
+ *
11967
+ * When called with a value of `null` or `undefined`, the default value of the property will be restored.
11968
+ *
11969
+ * Default value is `Region`.
11970
+ *
11971
+ * @experimental (since 1.131)
11972
+ *
11973
+ * @returns Reference to `this` in order to allow method chaining
11974
+ */
11975
+ setSemanticRole(
11976
+ /**
11977
+ * New value for property `semanticRole`
11978
+ */
11979
+ sSemanticRole?: sap.f.cards.SemanticRole
11980
+ ): this;
11763
11981
  /**
11764
11982
  * Sets a new value for property {@link #getWidth width}.
11765
11983
  *
@@ -22240,7 +22458,6 @@ declare namespace sap {
22240
22458
  * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'AvatarGroupType'.
22241
22459
  *
22242
22460
  * @since 1.73
22243
- * @experimental (since 1.73)
22244
22461
  */
22245
22462
  enum AvatarGroupType {
22246
22463
  /**
@@ -22549,6 +22766,16 @@ declare namespace sap {
22549
22766
  AvatarGroup
22550
22767
  >;
22551
22768
 
22769
+ /**
22770
+ * Event object of the CardBase#press event.
22771
+ *
22772
+ * @experimental (since 1.131)
22773
+ */
22774
+ type CardBase$PressEvent = sap.ui.base.Event<
22775
+ CardBase$PressEventParameters,
22776
+ CardBase
22777
+ >;
22778
+
22552
22779
  /**
22553
22780
  * Event object of the DynamicPage#pinnedStateChange event.
22554
22781
  */