@openui5/types 1.117.1 → 1.119.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,4 +1,4 @@
1
- // For Library Version: 1.117.1
1
+ // For Library Version: 1.119.0
2
2
 
3
3
  declare module "sap/uxap/library" {
4
4
  /**
@@ -4411,6 +4411,59 @@ declare module "sap/uxap/ObjectPageLayout" {
4411
4411
  */
4412
4412
  oSection: ObjectPageSection
4413
4413
  ): this;
4414
+ /**
4415
+ * @since 1.118
4416
+ *
4417
+ * Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
4418
+ * `sap.uxap.ObjectPageLayout`.
4419
+ *
4420
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
4421
+ * otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
4422
+ *
4423
+ * The event is fired before the selected section is changed using the navigation. This event can be aborted
4424
+ * by the application with preventDefault(), which means that there will be no navigation.
4425
+ *
4426
+ * @returns Reference to `this` in order to allow method chaining
4427
+ */
4428
+ attachBeforeNavigate(
4429
+ /**
4430
+ * An application-specific payload object that will be passed to the event handler along with the event
4431
+ * object when firing the event
4432
+ */
4433
+ oData: object,
4434
+ /**
4435
+ * The function to be called when the event occurs
4436
+ */
4437
+ fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
4438
+ /**
4439
+ * Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
4440
+ */
4441
+ oListener?: object
4442
+ ): this;
4443
+ /**
4444
+ * @since 1.118
4445
+ *
4446
+ * Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
4447
+ * `sap.uxap.ObjectPageLayout`.
4448
+ *
4449
+ * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
4450
+ * otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
4451
+ *
4452
+ * The event is fired before the selected section is changed using the navigation. This event can be aborted
4453
+ * by the application with preventDefault(), which means that there will be no navigation.
4454
+ *
4455
+ * @returns Reference to `this` in order to allow method chaining
4456
+ */
4457
+ attachBeforeNavigate(
4458
+ /**
4459
+ * The function to be called when the event occurs
4460
+ */
4461
+ fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
4462
+ /**
4463
+ * Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
4464
+ */
4465
+ oListener?: object
4466
+ ): this;
4414
4467
  /**
4415
4468
  * Attaches event handler `fnFunction` to the {@link #event:editHeaderButtonPress editHeaderButtonPress }
4416
4469
  * event of this `sap.uxap.ObjectPageLayout`.
@@ -4747,6 +4800,26 @@ declare module "sap/uxap/ObjectPageLayout" {
4747
4800
  * @returns Reference to `this` in order to allow method chaining
4748
4801
  */
4749
4802
  destroySections(): this;
4803
+ /**
4804
+ * @since 1.118
4805
+ *
4806
+ * Detaches event handler `fnFunction` from the {@link #event:beforeNavigate beforeNavigate} event of this
4807
+ * `sap.uxap.ObjectPageLayout`.
4808
+ *
4809
+ * The passed function and listener object must match the ones used for event registration.
4810
+ *
4811
+ * @returns Reference to `this` in order to allow method chaining
4812
+ */
4813
+ detachBeforeNavigate(
4814
+ /**
4815
+ * The function to be called, when the event occurs
4816
+ */
4817
+ fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
4818
+ /**
4819
+ * Context object on which the given function had to be called
4820
+ */
4821
+ oListener?: object
4822
+ ): this;
4750
4823
  /**
4751
4824
  * Detaches event handler `fnFunction` from the {@link #event:editHeaderButtonPress editHeaderButtonPress }
4752
4825
  * event of this `sap.uxap.ObjectPageLayout`.
@@ -4866,6 +4939,23 @@ declare module "sap/uxap/ObjectPageLayout" {
4866
4939
  */
4867
4940
  oListener?: object
4868
4941
  ): this;
4942
+ /**
4943
+ * @since 1.118
4944
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
4945
+ *
4946
+ * Fires event {@link #event:beforeNavigate beforeNavigate} to attached listeners.
4947
+ *
4948
+ * Listeners may prevent the default action of this event by calling the `preventDefault` method on the
4949
+ * event object. The return value of this method indicates whether the default action should be executed.
4950
+ *
4951
+ * @returns Whether or not to prevent the default action
4952
+ */
4953
+ fireBeforeNavigate(
4954
+ /**
4955
+ * Parameters to pass along with the event
4956
+ */
4957
+ mParameters?: ObjectPageLayout$BeforeNavigateEventParameters
4958
+ ): boolean;
4869
4959
  /**
4870
4960
  * @ui5-protected Do not call from applications (only from related classes in the framework)
4871
4961
  *
@@ -6258,6 +6348,14 @@ declare module "sap/uxap/ObjectPageLayout" {
6258
6348
  */
6259
6349
  editHeaderButtonPress?: (oEvent: Event) => void;
6260
6350
 
6351
+ /**
6352
+ * @since 1.118
6353
+ *
6354
+ * The event is fired before the selected section is changed using the navigation. This event can be aborted
6355
+ * by the application with preventDefault(), which means that there will be no navigation.
6356
+ */
6357
+ beforeNavigate?: (oEvent: ObjectPageLayout$BeforeNavigateEvent) => void;
6358
+
6261
6359
  /**
6262
6360
  * @since 1.40
6263
6361
  *
@@ -6275,6 +6373,23 @@ declare module "sap/uxap/ObjectPageLayout" {
6275
6373
  ) => void;
6276
6374
  }
6277
6375
 
6376
+ export interface ObjectPageLayout$BeforeNavigateEventParameters {
6377
+ /**
6378
+ * The selected section object.
6379
+ */
6380
+ section?: ObjectPageSection;
6381
+
6382
+ /**
6383
+ * The selected subsection object.
6384
+ */
6385
+ subSection?: ObjectPageSubSection;
6386
+ }
6387
+
6388
+ export type ObjectPageLayout$BeforeNavigateEvent = Event<
6389
+ ObjectPageLayout$BeforeNavigateEventParameters,
6390
+ ObjectPageLayout
6391
+ >;
6392
+
6278
6393
  export interface ObjectPageLayout$EditHeaderButtonPressEventParameters {}
6279
6394
 
6280
6395
  export type ObjectPageLayout$EditHeaderButtonPressEvent = Event<