@openui5/ts-types 1.131.0 → 1.132.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.131.0",
3
+ "version": "1.132.0",
4
4
  "description": "OpenUI5 TypeScript Definitions",
5
5
  "homepage": "https://openui5.org",
6
6
  "author": "SAP SE (https://www.sap.com)",
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
package/types/sap.f.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.131.0
1
+ // For Library Version: 1.132.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -127,6 +127,11 @@ declare namespace sap {
127
127
  | sap.m.Text
128
128
  | sap.ui.base.ManagedObject.AggregationBindingInfo
129
129
  | `{${string}}`;
130
+
131
+ /**
132
+ * Fires when the user presses the control.
133
+ */
134
+ press?: (oEvent: sap.ui.base.Event) => void;
130
135
  }
131
136
 
132
137
  /**
@@ -289,11 +294,6 @@ declare namespace sap {
289
294
  | sap.m.AvatarImageFitType
290
295
  | sap.ui.base.ManagedObject.PropertyBindingInfo
291
296
  | `{${string}}`;
292
-
293
- /**
294
- * Fires when the user presses the control.
295
- */
296
- press?: (oEvent: sap.ui.base.Event) => void;
297
297
  }
298
298
 
299
299
  /**
@@ -519,11 +519,6 @@ declare namespace sap {
519
519
  * @experimental (since 1.124)
520
520
  */
521
521
  microChart?: sap.ui.core.Control;
522
-
523
- /**
524
- * Fires when the user presses the control.
525
- */
526
- press?: (oEvent: sap.ui.base.Event) => void;
527
522
  }
528
523
 
529
524
  /**
@@ -559,19 +554,18 @@ declare namespace sap {
559
554
  }
560
555
 
561
556
  /**
562
- * Parameters of the Header#press event.
557
+ * Parameters of the BaseHeader#press event.
563
558
  */
564
- interface Header$PressEventParameters {}
565
-
566
- /**
567
- * Parameters of the NumericHeader#press event.
568
- */
569
- interface NumericHeader$PressEventParameters {}
559
+ interface BaseHeader$PressEventParameters {}
570
560
 
571
561
  /**
572
562
  * Provides basic functionality for header controls that can be used in sap.f.Card
573
563
  */
574
- abstract class BaseHeader extends sap.ui.core.Control {
564
+ abstract class BaseHeader
565
+ extends sap.ui.core.Control
566
+ implements sap.m.IBar
567
+ {
568
+ __implements__sap_m_IBar: boolean;
575
569
  /**
576
570
  * Constructor for a new `BaseHeader`.
577
571
  *
@@ -648,6 +642,53 @@ declare namespace sap {
648
642
  */
649
643
  oBannerLine: sap.m.Text
650
644
  ): this;
645
+ /**
646
+ * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.BaseHeader`.
647
+ *
648
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
649
+ * otherwise it will be bound to this `sap.f.cards.BaseHeader` itself.
650
+ *
651
+ * Fires when the user presses the control.
652
+ *
653
+ *
654
+ * @returns Reference to `this` in order to allow method chaining
655
+ */
656
+ attachPress(
657
+ /**
658
+ * An application-specific payload object that will be passed to the event handler along with the event
659
+ * object when firing the event
660
+ */
661
+ oData: object,
662
+ /**
663
+ * The function to be called when the event occurs
664
+ */
665
+ fnFunction: (p1: sap.ui.base.Event) => void,
666
+ /**
667
+ * Context object to call the event handler with. Defaults to this `sap.f.cards.BaseHeader` itself
668
+ */
669
+ oListener?: object
670
+ ): this;
671
+ /**
672
+ * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.BaseHeader`.
673
+ *
674
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
675
+ * otherwise it will be bound to this `sap.f.cards.BaseHeader` itself.
676
+ *
677
+ * Fires when the user presses the control.
678
+ *
679
+ *
680
+ * @returns Reference to `this` in order to allow method chaining
681
+ */
682
+ attachPress(
683
+ /**
684
+ * The function to be called when the event occurs
685
+ */
686
+ fnFunction: (p1: sap.ui.base.Event) => void,
687
+ /**
688
+ * Context object to call the event handler with. Defaults to this `sap.f.cards.BaseHeader` itself
689
+ */
690
+ oListener?: object
691
+ ): this;
651
692
  /**
652
693
  * Destroys all the bannerLines in the aggregation {@link #getBannerLines bannerLines}.
653
694
  *
@@ -666,6 +707,37 @@ declare namespace sap {
666
707
  * @returns Reference to `this` in order to allow method chaining
667
708
  */
668
709
  destroyToolbar(): this;
710
+ /**
711
+ * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.f.cards.BaseHeader`.
712
+ *
713
+ * The passed function and listener object must match the ones used for event registration.
714
+ *
715
+ *
716
+ * @returns Reference to `this` in order to allow method chaining
717
+ */
718
+ detachPress(
719
+ /**
720
+ * The function to be called, when the event occurs
721
+ */
722
+ fnFunction: (p1: sap.ui.base.Event) => void,
723
+ /**
724
+ * Context object on which the given function had to be called
725
+ */
726
+ oListener?: object
727
+ ): this;
728
+ /**
729
+ * Fires event {@link #event:press press} to attached listeners.
730
+ *
731
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
732
+ *
733
+ * @returns Reference to `this` in order to allow method chaining
734
+ */
735
+ firePress(
736
+ /**
737
+ * Parameters to pass along with the event
738
+ */
739
+ mParameters?: object
740
+ ): this;
669
741
  /**
670
742
  * Gets content of aggregation {@link #getBannerLines bannerLines}.
671
743
  *
@@ -1222,71 +1294,6 @@ declare namespace sap {
1222
1294
  * @returns Metadata object describing this class
1223
1295
  */
1224
1296
  static getMetadata(): sap.ui.core.ElementMetadata;
1225
- /**
1226
- * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.Header`.
1227
- *
1228
- * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
1229
- * otherwise it will be bound to this `sap.f.cards.Header` itself.
1230
- *
1231
- * Fires when the user presses the control.
1232
- *
1233
- *
1234
- * @returns Reference to `this` in order to allow method chaining
1235
- */
1236
- attachPress(
1237
- /**
1238
- * An application-specific payload object that will be passed to the event handler along with the event
1239
- * object when firing the event
1240
- */
1241
- oData: object,
1242
- /**
1243
- * The function to be called when the event occurs
1244
- */
1245
- fnFunction: (p1: sap.ui.base.Event) => void,
1246
- /**
1247
- * Context object to call the event handler with. Defaults to this `sap.f.cards.Header` itself
1248
- */
1249
- oListener?: object
1250
- ): this;
1251
- /**
1252
- * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.Header`.
1253
- *
1254
- * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
1255
- * otherwise it will be bound to this `sap.f.cards.Header` itself.
1256
- *
1257
- * Fires when the user presses the control.
1258
- *
1259
- *
1260
- * @returns Reference to `this` in order to allow method chaining
1261
- */
1262
- attachPress(
1263
- /**
1264
- * The function to be called when the event occurs
1265
- */
1266
- fnFunction: (p1: sap.ui.base.Event) => void,
1267
- /**
1268
- * Context object to call the event handler with. Defaults to this `sap.f.cards.Header` itself
1269
- */
1270
- oListener?: object
1271
- ): this;
1272
- /**
1273
- * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.f.cards.Header`.
1274
- *
1275
- * The passed function and listener object must match the ones used for event registration.
1276
- *
1277
- *
1278
- * @returns Reference to `this` in order to allow method chaining
1279
- */
1280
- detachPress(
1281
- /**
1282
- * The function to be called, when the event occurs
1283
- */
1284
- fnFunction: (p1: sap.ui.base.Event) => void,
1285
- /**
1286
- * Context object on which the given function had to be called
1287
- */
1288
- oListener?: object
1289
- ): this;
1290
1297
  /**
1291
1298
  * This method is a hook for the RenderManager that gets called during the rendering of child Controls.
1292
1299
  * It allows to add, remove and update existing accessibility attributes (ARIA) of those controls.
@@ -1307,19 +1314,6 @@ declare namespace sap {
1307
1314
  level: string;
1308
1315
  }
1309
1316
  ): void;
1310
- /**
1311
- * Fires event {@link #event:press press} to attached listeners.
1312
- *
1313
- * @ui5-protected Do not call from applications (only from related classes in the framework)
1314
- *
1315
- * @returns Reference to `this` in order to allow method chaining
1316
- */
1317
- firePress(
1318
- /**
1319
- * Parameters to pass along with the event
1320
- */
1321
- mParameters?: object
1322
- ): this;
1323
1317
  /**
1324
1318
  * Gets current value of property {@link #getIconAlt iconAlt}.
1325
1319
  *
@@ -1811,53 +1805,6 @@ declare namespace sap {
1811
1805
  */
1812
1806
  oSideIndicator: sap.f.cards.NumericSideIndicator
1813
1807
  ): this;
1814
- /**
1815
- * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.NumericHeader`.
1816
- *
1817
- * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
1818
- * otherwise it will be bound to this `sap.f.cards.NumericHeader` itself.
1819
- *
1820
- * Fires when the user presses the control.
1821
- *
1822
- *
1823
- * @returns Reference to `this` in order to allow method chaining
1824
- */
1825
- attachPress(
1826
- /**
1827
- * An application-specific payload object that will be passed to the event handler along with the event
1828
- * object when firing the event
1829
- */
1830
- oData: object,
1831
- /**
1832
- * The function to be called when the event occurs
1833
- */
1834
- fnFunction: (p1: sap.ui.base.Event) => void,
1835
- /**
1836
- * Context object to call the event handler with. Defaults to this `sap.f.cards.NumericHeader` itself
1837
- */
1838
- oListener?: object
1839
- ): this;
1840
- /**
1841
- * Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.NumericHeader`.
1842
- *
1843
- * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
1844
- * otherwise it will be bound to this `sap.f.cards.NumericHeader` itself.
1845
- *
1846
- * Fires when the user presses the control.
1847
- *
1848
- *
1849
- * @returns Reference to `this` in order to allow method chaining
1850
- */
1851
- attachPress(
1852
- /**
1853
- * The function to be called when the event occurs
1854
- */
1855
- fnFunction: (p1: sap.ui.base.Event) => void,
1856
- /**
1857
- * Context object to call the event handler with. Defaults to this `sap.f.cards.NumericHeader` itself
1858
- */
1859
- oListener?: object
1860
- ): this;
1861
1808
  /**
1862
1809
  * Destroys the microChart in the aggregation {@link #getMicroChart microChart}.
1863
1810
  *
@@ -1873,24 +1820,6 @@ declare namespace sap {
1873
1820
  * @returns Reference to `this` in order to allow method chaining
1874
1821
  */
1875
1822
  destroySideIndicators(): this;
1876
- /**
1877
- * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.f.cards.NumericHeader`.
1878
- *
1879
- * The passed function and listener object must match the ones used for event registration.
1880
- *
1881
- *
1882
- * @returns Reference to `this` in order to allow method chaining
1883
- */
1884
- detachPress(
1885
- /**
1886
- * The function to be called, when the event occurs
1887
- */
1888
- fnFunction: (p1: sap.ui.base.Event) => void,
1889
- /**
1890
- * Context object on which the given function had to be called
1891
- */
1892
- oListener?: object
1893
- ): this;
1894
1823
  /**
1895
1824
  * This method is a hook for the RenderManager that gets called during the rendering of child Controls.
1896
1825
  * It allows to add, remove and update existing accessibility attributes (ARIA) of those controls.
@@ -1911,19 +1840,6 @@ declare namespace sap {
1911
1840
  level: string;
1912
1841
  }
1913
1842
  ): void;
1914
- /**
1915
- * Fires event {@link #event:press press} to attached listeners.
1916
- *
1917
- * @ui5-protected Do not call from applications (only from related classes in the framework)
1918
- *
1919
- * @returns Reference to `this` in order to allow method chaining
1920
- */
1921
- firePress(
1922
- /**
1923
- * Parameters to pass along with the event
1924
- */
1925
- mParameters?: object
1926
- ): this;
1927
1843
  /**
1928
1844
  * Gets current value of property {@link #getDetails details}.
1929
1845
  *
@@ -2951,19 +2867,11 @@ declare namespace sap {
2951
2867
  Region = "Region",
2952
2868
  }
2953
2869
  /**
2954
- * Event object of the Header#press event.
2955
- */
2956
- type Header$PressEvent = sap.ui.base.Event<
2957
- Header$PressEventParameters,
2958
- Header
2959
- >;
2960
-
2961
- /**
2962
- * Event object of the NumericHeader#press event.
2870
+ * Event object of the BaseHeader#press event.
2963
2871
  */
2964
- type NumericHeader$PressEvent = sap.ui.base.Event<
2965
- NumericHeader$PressEventParameters,
2966
- NumericHeader
2872
+ type BaseHeader$PressEvent = sap.ui.base.Event<
2873
+ BaseHeader$PressEventParameters,
2874
+ BaseHeader
2967
2875
  >;
2968
2876
  }
2969
2877