Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"https://bun.com"
],
"dependencies": {
"bun-types": "1.3.12"
"bun-types": "1.3.13"
},
"devDependencies": {
"@types/bun": "workspace:."
Expand Down
11 changes: 11 additions & 0 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9291,6 +9291,17 @@ declare namespace Office {
*/
javascriptRuntimeUrl: string;
}
/**
* Provides options related to the `onReady` event.
*
* @beta
*/
interface OnReadyOptions {
/**
* Enables the behavior that allows the `onReady` promise to be rejected.
*/
setRejectionEnabled?: () => void;
}
/**
* Message used in the `onVisibilityModeChanged` invocation.
*/
Expand Down
2 changes: 2 additions & 0 deletions types/openui5/openui5-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,5 @@ const p13nEngine = new Engine();
// version 1.145.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested

// version 1.146.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested

// version 1.147.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested
2 changes: 1 addition & 1 deletion types/openui5/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/openui5",
"version": "1.146.9999",
"version": "1.147.9999",
"nonNpm": true,
"nonNpmDescription": "openui5",
"projects": [
Expand Down
150 changes: 148 additions & 2 deletions types/openui5/sap.f.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.146.0
// For Library Version: 1.147.0

declare module "sap/tnt/library" {
export interface IToolHeader {
Expand Down Expand Up @@ -113,6 +113,31 @@ declare module "sap/f/library" {
*/
Persist = "Persist",
}
/**
* Defines the media breakpoints for DynamicPage.
*
* This enum is part of the 'sap/f/library' module export and must be accessed by the property 'DynamicPageMediaRange'.
*
* @since 1.147
*/
export enum DynamicPageMediaRange {
/**
* Desktop breakpoint (1025px to 1439px).
*/
Desktop = "Desktop",
/**
* Desktop Extra Large breakpoint (1440px and above).
*/
DesktopExtraLarge = "DesktopExtraLarge",
/**
* Phone breakpoint (up to 600px).
*/
Phone = "Phone",
/**
* Tablet breakpoint (601px to 1024px).
*/
Tablet = "Tablet",
}
/**
* Defines the areas within the `sap.f.DynamicPageTitle` control.
*
Expand Down Expand Up @@ -4507,7 +4532,10 @@ declare module "sap/f/DynamicPage" {

import DynamicPageTitle from "sap/f/DynamicPageTitle";

import { IDynamicPageStickyContent } from "sap/f/library";
import {
IDynamicPageStickyContent,
DynamicPageMediaRange,
} from "sap/f/library";

import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";

Expand Down Expand Up @@ -4631,6 +4659,59 @@ declare module "sap/f/DynamicPage" {
* @returns Metadata object describing this class
*/
static getMetadata(): ElementMetadata;
/**
* Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of
* this `sap.f.DynamicPage`.
*
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
* otherwise it will be bound to this `sap.f.DynamicPage` itself.
*
* The event is fired when the media breakpoint changes. Applications can use this event to adjust content
* based on the current screen size.
*
* @since 1.147
*
* @returns Reference to `this` in order to allow method chaining
*/
attachBreakpointChange(
/**
* An application-specific payload object that will be passed to the event handler along with the event
* object when firing the event
*/
oData: object,
/**
* The function to be called when the event occurs
*/
fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
/**
* Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself
*/
oListener?: object
): this;
/**
* Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of
* this `sap.f.DynamicPage`.
*
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
* otherwise it will be bound to this `sap.f.DynamicPage` itself.
*
* The event is fired when the media breakpoint changes. Applications can use this event to adjust content
* based on the current screen size.
*
* @since 1.147
*
* @returns Reference to `this` in order to allow method chaining
*/
attachBreakpointChange(
/**
* The function to be called when the event occurs
*/
fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
/**
* Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself
*/
oListener?: object
): this;
/**
* Attaches event handler `fnFunction` to the {@link #event:pinnedStateChange pinnedStateChange} event of
* this `sap.f.DynamicPage`.
Expand Down Expand Up @@ -4718,6 +4799,26 @@ declare module "sap/f/DynamicPage" {
* @returns Reference to `this` in order to allow method chaining
*/
destroyTitle(): this;
/**
* Detaches event handler `fnFunction` from the {@link #event:breakpointChange breakpointChange} event of
* this `sap.f.DynamicPage`.
*
* The passed function and listener object must match the ones used for event registration.
*
* @since 1.147
*
* @returns Reference to `this` in order to allow method chaining
*/
detachBreakpointChange(
/**
* The function to be called, when the event occurs
*/
fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void,
/**
* Context object on which the given function had to be called
*/
oListener?: object
): this;
/**
* Detaches event handler `fnFunction` from the {@link #event:pinnedStateChange pinnedStateChange} event
* of this `sap.f.DynamicPage`.
Expand All @@ -4738,6 +4839,20 @@ declare module "sap/f/DynamicPage" {
*/
oListener?: object
): this;
/**
* Fires event {@link #event:breakpointChange breakpointChange} to attached listeners.
*
* @since 1.147
* @ui5-protected Do not call from applications (only from related classes in the framework)
*
* @returns Reference to `this` in order to allow method chaining
*/
fireBreakpointChange(
/**
* Parameters to pass along with the event
*/
mParameters?: DynamicPage$BreakpointChangeEventParameters
): this;
/**
* Fires event {@link #event:pinnedStateChange pinnedStateChange} to attached listeners.
*
Expand Down Expand Up @@ -5334,8 +5449,39 @@ declare module "sap/f/DynamicPage" {
* @since 1.93
*/
pinnedStateChange?: (oEvent: DynamicPage$PinnedStateChangeEvent) => void;

/**
* The event is fired when the media breakpoint changes. Applications can use this event to adjust content
* based on the current screen size.
*
* @since 1.147
*/
breakpointChange?: (oEvent: DynamicPage$BreakpointChangeEvent) => void;
}

/**
* Parameters of the DynamicPage#breakpointChange event.
*/
export interface DynamicPage$BreakpointChangeEventParameters {
/**
* The current media range as defined by {@link sap.f.DynamicPageMediaRange}.
*/
currentRange?: DynamicPageMediaRange | keyof typeof DynamicPageMediaRange;

/**
* The current width of the control in pixels.
*/
currentWidth?: int;
}

/**
* Event object of the DynamicPage#breakpointChange event.
*/
export type DynamicPage$BreakpointChangeEvent = Event<
DynamicPage$BreakpointChangeEventParameters,
DynamicPage
>;

/**
* Parameters of the DynamicPage#pinnedStateChange event.
*/
Expand Down
Loading