@openui5/ts-types 1.146.0 → 1.147.1

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.146.0",
3
+ "version": "1.147.1",
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
@@ -45,6 +45,3 @@
45
45
  /// <reference path="./sap.ui.unified.d.ts"/>
46
46
  /// <reference path="./sap.ui.ux3.d.ts"/>
47
47
  /// <reference path="./sap.uxap.d.ts"/>
48
- /// <reference path="./sap.ui.webc.common.d.ts"/>
49
- /// <reference path="./sap.ui.webc.fiori.d.ts"/>
50
- /// <reference path="./sap.ui.webc.main.d.ts"/>
package/types/sap.f.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.146.0
1
+ // For Library Version: 1.147.1
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -8328,6 +8328,14 @@ declare namespace sap {
8328
8328
  * @since 1.93
8329
8329
  */
8330
8330
  pinnedStateChange?: (oEvent: DynamicPage$PinnedStateChangeEvent) => void;
8331
+
8332
+ /**
8333
+ * The event is fired when the media breakpoint changes. Applications can use this event to adjust content
8334
+ * based on the current screen size.
8335
+ *
8336
+ * @since 1.147
8337
+ */
8338
+ breakpointChange?: (oEvent: DynamicPage$BreakpointChangeEvent) => void;
8331
8339
  }
8332
8340
 
8333
8341
  /**
@@ -9878,6 +9886,21 @@ declare namespace sap {
9878
9886
  */
9879
9887
  interface CardBase$PressEventParameters {}
9880
9888
 
9889
+ /**
9890
+ * Parameters of the DynamicPage#breakpointChange event.
9891
+ */
9892
+ interface DynamicPage$BreakpointChangeEventParameters {
9893
+ /**
9894
+ * The current media range as defined by {@link sap.f.DynamicPageMediaRange}.
9895
+ */
9896
+ currentRange?: sap.f.DynamicPageMediaRange;
9897
+
9898
+ /**
9899
+ * The current width of the control in pixels.
9900
+ */
9901
+ currentWidth?: int;
9902
+ }
9903
+
9881
9904
  /**
9882
9905
  * Parameters of the DynamicPage#pinnedStateChange event.
9883
9906
  */
@@ -11740,6 +11763,59 @@ declare namespace sap {
11740
11763
  * @returns Metadata object describing this class
11741
11764
  */
11742
11765
  static getMetadata(): sap.ui.core.ElementMetadata;
11766
+ /**
11767
+ * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of
11768
+ * this `sap.f.DynamicPage`.
11769
+ *
11770
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
11771
+ * otherwise it will be bound to this `sap.f.DynamicPage` itself.
11772
+ *
11773
+ * The event is fired when the media breakpoint changes. Applications can use this event to adjust content
11774
+ * based on the current screen size.
11775
+ *
11776
+ * @since 1.147
11777
+ *
11778
+ * @returns Reference to `this` in order to allow method chaining
11779
+ */
11780
+ attachBreakpointChange(
11781
+ /**
11782
+ * An application-specific payload object that will be passed to the event handler along with the event
11783
+ * object when firing the event
11784
+ */
11785
+ oData: object,
11786
+ /**
11787
+ * The function to be called when the event occurs
11788
+ */
11789
+ fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
11790
+ /**
11791
+ * Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself
11792
+ */
11793
+ oListener?: object
11794
+ ): this;
11795
+ /**
11796
+ * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of
11797
+ * this `sap.f.DynamicPage`.
11798
+ *
11799
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
11800
+ * otherwise it will be bound to this `sap.f.DynamicPage` itself.
11801
+ *
11802
+ * The event is fired when the media breakpoint changes. Applications can use this event to adjust content
11803
+ * based on the current screen size.
11804
+ *
11805
+ * @since 1.147
11806
+ *
11807
+ * @returns Reference to `this` in order to allow method chaining
11808
+ */
11809
+ attachBreakpointChange(
11810
+ /**
11811
+ * The function to be called when the event occurs
11812
+ */
11813
+ fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
11814
+ /**
11815
+ * Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself
11816
+ */
11817
+ oListener?: object
11818
+ ): this;
11743
11819
  /**
11744
11820
  * Attaches event handler `fnFunction` to the {@link #event:pinnedStateChange pinnedStateChange} event of
11745
11821
  * this `sap.f.DynamicPage`.
@@ -11827,6 +11903,26 @@ declare namespace sap {
11827
11903
  * @returns Reference to `this` in order to allow method chaining
11828
11904
  */
11829
11905
  destroyTitle(): this;
11906
+ /**
11907
+ * Detaches event handler `fnFunction` from the {@link #event:breakpointChange breakpointChange} event of
11908
+ * this `sap.f.DynamicPage`.
11909
+ *
11910
+ * The passed function and listener object must match the ones used for event registration.
11911
+ *
11912
+ * @since 1.147
11913
+ *
11914
+ * @returns Reference to `this` in order to allow method chaining
11915
+ */
11916
+ detachBreakpointChange(
11917
+ /**
11918
+ * The function to be called, when the event occurs
11919
+ */
11920
+ fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
11921
+ /**
11922
+ * Context object on which the given function had to be called
11923
+ */
11924
+ oListener?: object
11925
+ ): this;
11830
11926
  /**
11831
11927
  * Detaches event handler `fnFunction` from the {@link #event:pinnedStateChange pinnedStateChange} event
11832
11928
  * of this `sap.f.DynamicPage`.
@@ -11847,6 +11943,20 @@ declare namespace sap {
11847
11943
  */
11848
11944
  oListener?: object
11849
11945
  ): this;
11946
+ /**
11947
+ * Fires event {@link #event:breakpointChange breakpointChange} to attached listeners.
11948
+ *
11949
+ * @since 1.147
11950
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
11951
+ *
11952
+ * @returns Reference to `this` in order to allow method chaining
11953
+ */
11954
+ fireBreakpointChange(
11955
+ /**
11956
+ * Parameters to pass along with the event
11957
+ */
11958
+ mParameters?: sap.f.DynamicPage$BreakpointChangeEventParameters
11959
+ ): this;
11850
11960
  /**
11851
11961
  * Fires event {@link #event:pinnedStateChange pinnedStateChange} to attached listeners.
11852
11962
  *
@@ -22181,6 +22291,31 @@ declare namespace sap {
22181
22291
  */
22182
22292
  Persist = "Persist",
22183
22293
  }
22294
+ /**
22295
+ * Defines the media breakpoints for DynamicPage.
22296
+ *
22297
+ * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'DynamicPageMediaRange'.
22298
+ *
22299
+ * @since 1.147
22300
+ */
22301
+ enum DynamicPageMediaRange {
22302
+ /**
22303
+ * Desktop breakpoint (1025px to 1439px).
22304
+ */
22305
+ Desktop = "Desktop",
22306
+ /**
22307
+ * Desktop Extra Large breakpoint (1440px and above).
22308
+ */
22309
+ DesktopExtraLarge = "DesktopExtraLarge",
22310
+ /**
22311
+ * Phone breakpoint (up to 600px).
22312
+ */
22313
+ Phone = "Phone",
22314
+ /**
22315
+ * Tablet breakpoint (601px to 1024px).
22316
+ */
22317
+ Tablet = "Tablet",
22318
+ }
22184
22319
  /**
22185
22320
  * Defines the areas within the `sap.f.DynamicPageTitle` control.
22186
22321
  *
@@ -22470,6 +22605,14 @@ declare namespace sap {
22470
22605
  CardBase
22471
22606
  >;
22472
22607
 
22608
+ /**
22609
+ * Event object of the DynamicPage#breakpointChange event.
22610
+ */
22611
+ type DynamicPage$BreakpointChangeEvent = sap.ui.base.Event<
22612
+ DynamicPage$BreakpointChangeEventParameters,
22613
+ DynamicPage
22614
+ >;
22615
+
22473
22616
  /**
22474
22617
  * Event object of the DynamicPage#pinnedStateChange event.
22475
22618
  */