diff --git a/notNeededPackages.json b/notNeededPackages.json index 9959033381708b..a3a199e29bda85 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -6475,6 +6475,10 @@ "libraryName": "react-query", "asOfVersion": "1.2.8" }, + "react-resizable": { + "libraryName": "react-resizable", + "asOfVersion": "4.0.0" + }, "react-resize-detector": { "libraryName": "react-resize-detector", "asOfVersion": "6.1.0" diff --git a/types/bun/package.json b/types/bun/package.json index 877e2c51c03526..d781704fc4efdb 100644 --- a/types/bun/package.json +++ b/types/bun/package.json @@ -6,7 +6,7 @@ "https://bun.com" ], "dependencies": { - "bun-types": "1.3.13" + "bun-types": "1.3.14" }, "devDependencies": { "@types/bun": "workspace:." diff --git a/types/openui5/openui5-tests.ts b/types/openui5/openui5-tests.ts index c2838f57eef723..dea5e8d1b64897 100644 --- a/types/openui5/openui5-tests.ts +++ b/types/openui5/openui5-tests.ts @@ -296,3 +296,5 @@ const p13nEngine = new Engine(); // version 1.147.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested // sap.ui.webc.* libraries removed - tests are not required as the type definitions are generated and the generator is sufficiently tested + +// version 1.148.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested diff --git a/types/openui5/package.json b/types/openui5/package.json index 11e1fa09417eb5..a628a71c5cf028 100644 --- a/types/openui5/package.json +++ b/types/openui5/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/openui5", - "version": "1.147.9999", + "version": "1.148.9999", "nonNpm": true, "nonNpmDescription": "openui5", "projects": [ diff --git a/types/openui5/sap.f.d.ts b/types/openui5/sap.f.d.ts index 2d540228191947..6dff2c7f274b23 100644 --- a/types/openui5/sap.f.d.ts +++ b/types/openui5/sap.f.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/tnt/library" { export interface IToolHeader { diff --git a/types/openui5/sap.m.d.ts b/types/openui5/sap.m.d.ts index c24650c712e01c..e644d958f58987 100644 --- a/types/openui5/sap.m.d.ts +++ b/types/openui5/sap.m.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/f/library" { export interface IShellBar { @@ -2584,71 +2584,159 @@ declare module "sap/m/library" { Overflow = "Overflow", } /** - * undefined + * Operations for conditions used in the personalization condition panel. * * This enum is part of the 'sap/m/library' module export and must be accessed by the property 'P13nConditionOperation'. */ export enum P13nConditionOperation { + /** + * "ascending" operation: sorts values in ascending order. + */ Ascending = "Ascending", - + /** + * "average" operation: calculates the average of values. + */ Average = "Average", - + /** + * "between" operation: filters for values between two given operands. + */ BT = "BT", - + /** + * "contains" operation: filters for values that contain the given substring. + */ Contains = "Contains", - + /** + * "default values" operation: applies default values for the condition. + * + * @since 1.148 + */ + DefaultValues = "DefaultValues", + /** + * "descending" operation: sorts values in descending order. + */ Descending = "Descending", - + /** + * "empty" operation: filters for entries whose value is empty. + */ Empty = "Empty", - + /** + * "ends with" operation: filters for values that end with the given string. + */ EndsWith = "EndsWith", - + /** + * "equal to" operation: filters for values equal to the given operand. + */ EQ = "EQ", - + /** + * "greater than or equal to" operation: filters for values greater than or equal to the given operand. + */ GE = "GE", - + /** + * "group ascending" operation: groups values in ascending order. + */ GroupAscending = "GroupAscending", - + /** + * "group descending" operation: groups values in descending order. + */ GroupDescending = "GroupDescending", - + /** + * "greater than" operation: filters for values greater than the given operand. + */ GT = "GT", - + /** + * "initial" operation: filters for entries whose value has not been changed from its initial state. + */ Initial = "Initial", - + /** + * "less than or equal to" operation: filters for values less than or equal to the given operand. + */ LE = "LE", - + /** + * "less than" operation: filters for values less than the given operand. + */ LT = "LT", - + /** + * "maximum" operation: determines the maximum value. + */ Maximum = "Maximum", - + /** + * "minimum" operation: determines the minimum value. + */ Minimum = "Minimum", - + /** + * "not between" operation: excludes values between two given operands. + */ NotBT = "NotBT", - + /** + * "does not contain" operation: excludes values that contain the given substring. + */ NotContains = "NotContains", - + /** + * "not empty" operation: excludes entries whose value is empty. + */ NotEmpty = "NotEmpty", - + /** + * "does not end with" operation: excludes values that end with the given string. + */ NotEndsWith = "NotEndsWith", - + /** + * "not equal to" operation: excludes values equal to the given operand. + */ NotEQ = "NotEQ", - + /** + * "not greater than or equal to" operation: excludes values greater than or equal to the given operand. + */ NotGE = "NotGE", - + /** + * "not greater than" operation: excludes values greater than the given operand. + */ NotGT = "NotGT", - + /** + * "not initial" operation: excludes entries whose value has not been changed from its initial state. + */ NotInitial = "NotInitial", - + /** + * "not less than or equal to" operation: excludes values less than or equal to the given operand. + */ NotLE = "NotLE", - + /** + * "not less than" operation: excludes values less than the given operand. + */ NotLT = "NotLT", - + /** + * "does not start with" operation: excludes values that start with the given string. + */ NotStartsWith = "NotStartsWith", - + /** + * "starts with" operation: filters for values that start with the given string. + */ StartsWith = "StartsWith", - + /** + * "total" operation: calculates the total of values. + */ Total = "Total", } + /** + * Type of a condition operation in the personalization condition panel. + * + * This enum is part of the 'sap/m/library' module export and must be accessed by the property 'P13nConditionOperationType'. + */ + export enum P13nConditionOperationType { + /** + * Default values for the condition. + * + * @since 1.148 + */ + DefaultValues = "DefaultValues", + /** + * Values that should be excluded from the result. + */ + Exclude = "Exclude", + /** + * Values that should be included in the result. + */ + Include = "Include", + } /** * Type of panels used in the personalization dialog. * @@ -56538,14 +56626,20 @@ declare module "sap/m/Menu" { declare module "sap/m/MenuButton" { import { default as Control, $ControlSettings } from "sap/ui/core/Control"; + import { + IFormContent, + ID, + URI, + TextDirection, + CSSSize, + } from "sap/ui/core/library"; + import { IToolbarInteractiveControl, MenuButtonMode, ButtonType, } from "sap/m/library"; - import { ID, URI, TextDirection, CSSSize } from "sap/ui/core/library"; - import Event from "sap/ui/base/Event"; import Menu from "sap/m/Menu"; @@ -56563,8 +56657,9 @@ declare module "sap/m/MenuButton" { */ export default class MenuButton extends Control - implements IToolbarInteractiveControl + implements IFormContent, IToolbarInteractiveControl { + __implements__sap_ui_core_IFormContent: boolean; __implements__sap_m_IToolbarInteractiveControl: boolean; /** * Constructor for a new MenuButton. @@ -56874,6 +56969,16 @@ declare module "sap/m/MenuButton" { * @returns Value of property `enabled` */ getEnabled(): boolean; + /** + * Implements {@link sap.ui.core.IFormContent} interface. + * + * `MenuButton` must not be stretched by the Form layout because it should keep its natural width. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns `true` + */ + getFormDoNotAdjustWidth(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -62429,6 +62534,11 @@ declare module "sap/m/MessageStrip" { * - `em` * - `strong` * - `u` + * - `span` (with `style` and `class` attributes) + * + * **Inline Icons:** You can embed icons within the message text using the `span` element with the SAP-icons + * font family. Use direct Unicode characters or the helper function {@link sap.m.MessageStripUtilities.getInlineIcon}. + * See the {@link sap.m.MessageStrip Samples} for usage examples. * * Default value is `false`. * @@ -62627,6 +62737,11 @@ declare module "sap/m/MessageStrip" { * - `em` * - `strong` * - `u` + * - `span` (with `style` and `class` attributes) + * + * **Inline Icons:** You can embed icons within the message text using the `span` element with the SAP-icons + * font family. Use direct Unicode characters or the helper function {@link sap.m.MessageStripUtilities.getInlineIcon}. + * See the {@link sap.m.MessageStrip Samples} for usage examples. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -62798,6 +62913,11 @@ declare module "sap/m/MessageStrip" { * - `em` * - `strong` * - `u` + * - `span` (with `style` and `class` attributes) + * + * **Inline Icons:** You can embed icons within the message text using the `span` element with the SAP-icons + * font family. Use direct Unicode characters or the helper function {@link sap.m.MessageStripUtilities.getInlineIcon}. + * See the {@link sap.m.MessageStrip Samples} for usage examples. * * @since 1.50 */ @@ -100755,6 +100875,17 @@ declare module "sap/m/Popover" { * instead. */ getLeftButton(): ID | null; + /** + * Gets current value of property {@link #getMaxHeight maxHeight}. + * + * Sets the maximum height of the Popover. When the content exceeds this height, scrolling is enabled. This + * property applies to the entire Popover, including the header, content, and footer. + * + * @since 1.148 + * + * @returns Value of property `maxHeight` + */ + getMaxHeight(): CSSSize; /** * Gets current value of property {@link #getModal modal}. * @@ -101236,6 +101367,24 @@ declare module "sap/m/Popover" { */ oLeftButton: ID | Button ): this; + /** + * Sets a new value for property {@link #getMaxHeight maxHeight}. + * + * Sets the maximum height of the Popover. When the content exceeds this height, scrolling is enabled. This + * property applies to the entire Popover, including the header, content, and footer. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * @since 1.148 + * + * @returns Reference to `this` in order to allow method chaining + */ + setMaxHeight( + /** + * New value for property `maxHeight` + */ + sMaxHeight?: CSSSize + ): this; /** * Setter for property `modal`. This overwrites the default setter of the property `modal` to avoid rerendering * the whole popover control. @@ -101536,6 +101685,14 @@ declare module "sap/m/Popover" { */ contentHeight?: CSSSize | PropertyBindingInfo | `{${string}}`; + /** + * Sets the maximum height of the Popover. When the content exceeds this height, scrolling is enabled. This + * property applies to the entire Popover, including the header, content, and footer. + * + * @since 1.148 + */ + maxHeight?: CSSSize | PropertyBindingInfo | `{${string}}`; + /** * This property is deprecated. Please use properties verticalScrolling and horizontalScrolling instead. * If you still use this property it will be mapped on the new properties verticalScrolling and horizontalScrolling. @@ -145243,8 +145400,8 @@ declare module "sap/m/table/Title" { * A composite title control intended to display a table title along with optional total and selected row * counts. * - * Overview: The `sap.m.table.Title` control renders the provided `sap.m.Title` control and optionally displays - * the table's total row count, the selected row count, or both independently. + * The `sap.m.table.Title` control renders the provided `sap.m.Title` control and optionally displays the + * table's total row count, the selected row count, or both independently. * * @since 1.147 */ diff --git a/types/openui5/sap.tnt.d.ts b/types/openui5/sap.tnt.d.ts index 22497bc396f2ed..f11aaf75dbd242 100644 --- a/types/openui5/sap.tnt.d.ts +++ b/types/openui5/sap.tnt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/tnt/library" { /** diff --git a/types/openui5/sap.ui.codeeditor.d.ts b/types/openui5/sap.ui.codeeditor.d.ts index db0dbd1609691f..ad66404db0ecc8 100644 --- a/types/openui5/sap.ui.codeeditor.d.ts +++ b/types/openui5/sap.ui.codeeditor.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/codeeditor/library" {} diff --git a/types/openui5/sap.ui.commons.d.ts b/types/openui5/sap.ui.commons.d.ts index 3c1e7c96130d33..c4fde23bd95c32 100644 --- a/types/openui5/sap.ui.commons.d.ts +++ b/types/openui5/sap.ui.commons.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/commons/library" { import { ColorPickerMode as ColorPickerMode1 } from "sap/ui/unified/library"; diff --git a/types/openui5/sap.ui.core.d.ts b/types/openui5/sap.ui.core.d.ts index 54219b7af1bf03..6a98c1a7039ea9 100644 --- a/types/openui5/sap.ui.core.d.ts +++ b/types/openui5/sap.ui.core.d.ts @@ -279,7 +279,7 @@ declare namespace sap { "sap/ui/thirdparty/qunit-2": undefined; } } -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/base/assert" { /** @@ -2841,6 +2841,30 @@ declare module "sap/base/util/array/uniqueSort" { ): any[]; } +declare module "sap/base/util/clamp" { + /** + * Returns a value clamped between an upper bound 'max' and lower bound 'min'. + * + * @since 1.130 + * + * @returns clamped value + */ + export default function clamp( + /** + * value + */ + val: number, + /** + * lower bound + */ + min: number, + /** + * upper bound + */ + max: number + ): number; +} + declare module "sap/base/util/deepClone" { /** * Creates a deep clone of the source value. @@ -19154,7 +19178,8 @@ declare module "sap/ui/core/Component" { * * @since 1.56.0 * - * @returns A Promise that resolves with the newly created component instance + * @returns A Promise that resolves with the newly created component instance, or rejects with an error + * if the component could not be created */ static create( /** @@ -28976,7 +29001,12 @@ declare module "sap/ui/core/Element" { * * @returns reference to the instance itself */ - unbindElement(sModelName: string): ManagedObject; + unbindElement( + /** + * Name of the model to remove the context for. + */ + sModelName?: string + ): ManagedObject; } /** * The structure of the "metadata" object which is passed when inheriting from sap.ui.core.Element using @@ -42803,8 +42833,8 @@ declare module "sap/ui/core/routing/Route" { * browser is product/settings and no arguments will be passed to the events of the route. * * - mandatory parameters: "pattern" : "product/{id}" - {id} is a mandatory parameter, e. g. the following - * hashes would match: product/5, product/3. The pattenMatched event will get 5 or 3 passed as id in its - * arguments.The hash product/ will not match. + * hashes would match: product/5, product/3. The patternMatched event will get 5 or 3 passed as id in its + * arguments. The hash product/ will not match. * * - optional parameters: "pattern" : "product/{id}/detail/:detailId:" - :detailId: is an optional parameter, * e. g. the following hashes would match: product/5/detail, product/3/detail/2 @@ -44160,7 +44190,7 @@ declare module "sap/ui/core/routing/Router" { * The parent route - if a parent route is given, the `routeMatched` event of this route will also trigger * the `routeMatched` of the parent and it will also create the view of the parent (if provided). */ - oParent: Route + oParent?: Route ): void; /** * Attaches event handler `fnFunction` to the {@link #event:beforeRouteMatched beforeRouteMatched} event @@ -53217,7 +53247,7 @@ declare module "sap/ui/core/ws/SapPcpWebSocket" { /** * array of protocols as strings, a single protocol as a string. Protocol(s) should be selected from {@link sap.ui.core.ws.SapPcpWebSocket.SUPPORTED_PROTOCOLS}. */ - aProtocols?: any[] + vProtocols?: string | string[] ); /** * Protocol versions. @@ -53290,7 +53320,7 @@ declare module "sap/ui/core/ws/SapPcpWebSocket" { /** * additional pcp-fields as key-value map */ - oPcpFields?: object + oPcpFields?: Record ): this; } /** @@ -53316,7 +53346,7 @@ declare module "sap/ui/core/ws/SapPcpWebSocket" { /** * Received pcpFields as a key-value map. */ - pcpFields?: string; + pcpFields?: Record; } /** @@ -53354,7 +53384,7 @@ declare module "sap/ui/core/ws/WebSocket" { /** * array of protocols as strings, a single protocol as a string */ - aProtocols?: any[] + vProtocols?: string | string[] ); /** @@ -61147,9 +61177,16 @@ declare module "sap/ui/model/json/JSONModel" { } declare module "sap/ui/model/json/TypedJSONModel" { + import Message from "sap/ui/core/message/Message"; + import ClientContextBinding from "sap/ui/model/ClientContextBinding"; + import Context from "sap/ui/model/Context"; + import Filter from "sap/ui/model/Filter"; + import Sorter from "sap/ui/model/Sorter"; import JSONModel from "sap/ui/model/json/JSONModel"; + import JSONListBinding from "sap/ui/model/json/JSONListBinding"; + import JSONPropertyBinding from "sap/ui/model/json/JSONPropertyBinding"; + import JSONTreeBinding from "sap/ui/model/json/JSONTreeBinding"; import TypedJSONContext from "sap/ui/model/json/TypedJSONContext"; - import Context from "sap/ui/model/Context"; /** * TypedJSONModel is a subclass of JSONModel that provides type-safe access to the model data. It is only available when using UI5 with TypeScript. @@ -61166,7 +61203,76 @@ declare module "sap/ui/model/json/TypedJSONModel" { fnCallBack?: Function, bReload?: boolean ): TypedJSONContext; + + bindContext>( + sPath: Path, + oContext?: undefined, + mParameters?: object + ): ClientContextBinding; + bindContext< + Path extends RelativeObjectBindingPath, + Root extends AbsoluteObjectBindingPath, + >( + sPath: Path, + oContext: TypedJSONContext, + mParameters?: object + ): ClientContextBinding; + + bindList>( + sPath: Path, + oContext?: undefined, + aSorters?: Sorter | Sorter[], + aFilters?: Filter | Filter[], + mParameters?: object + ): JSONListBinding; + bindList< + Path extends RelativeListBindingPath, + Root extends AbsoluteBindingPath, + >( + sPath: Path, + oContext: TypedJSONContext, + aSorters?: Sorter | Sorter[], + aFilters?: Filter | Filter[], + mParameters?: object + ): JSONListBinding; + + bindProperty>( + sPath: Path, + oContext?: undefined, + mParameters?: object + ): JSONPropertyBinding; + bindProperty< + Path extends RelativeBindingPath, + Root extends AbsoluteBindingPath, + >( + sPath: Path, + oContext: TypedJSONContext, + mParameters?: object + ): JSONPropertyBinding; + + bindTree>( + sPath: Path, + oContext?: undefined, + aFilters?: Filter | Filter[], + mParameters?: object, + aSorters?: Sorter | Sorter[] + ): JSONTreeBinding; + bindTree< + Path extends RelativeTreeBindingPath, + Root extends AbsoluteBindingPath, + >( + sPath: Path, + oContext: TypedJSONContext, + aFilters?: Filter | Filter[], + mParameters?: object, + aSorters?: Sorter | Sorter[] + ): JSONTreeBinding; + getData(): Data; + getMessagesByPath>( + sPath: Path, + bPrefixMatch?: boolean + ): Message[]; getProperty>( sPath: Path ): PropertyByAbsoluteBindingPath; @@ -61230,6 +61336,65 @@ declare module "sap/ui/model/json/TypedJSONModel" { : // if T is not of type object: never; + /** + * Valid absolute binding path for underlying `Array` types. + * + * @example + * type SalesOrder = { id: string, items: string[] }; + * type PathInObject = PathInJSONModel; // "/id" | "/items" + * let path: PathInObject = "/items"; // ok + * path = "/id"; // error + * path = "/items/0"; // error, since an element in the array is a string + */ + export type AbsoluteListBindingPath = { + [Path in AbsoluteBindingPath]: PropertyByAbsoluteBindingPath< + Type, + Path + > extends Array + ? Path + : never; + }[AbsoluteBindingPath]; + + /** + * Valid absolute binding path for underlying `Array` or `object` types. + * + * @example + * type SalesOrder = { id: string, items: string[], parameters: { weight: number } }; + * type PathInObject = PathInJSONModel; // "/id" | "/items" | "/parameters" + * let path: PathInObject = "/items"; // ok + * path = "/parameters"; // ok + * path = "/id"; // error + * path = "/items/0"; // error, since an element in the array is a string + */ + export type AbsoluteTreeBindingPath = { + [Path in AbsoluteBindingPath]: PropertyByAbsoluteBindingPath< + Type, + Path + > extends Array + ? Path + : PropertyByAbsoluteBindingPath extends object + ? Path + : never; + }[AbsoluteBindingPath]; + + /** + * Valid absolute binding path for underlying object types (excludes arrays and primitives). + * + * @example + * type Order = { customer: { address: { city: string } }, items: string[], total: number }; + * type ObjectPaths = AbsoluteObjectBindingPath; // "/customer" | "/customer/address" + */ + export type AbsoluteObjectBindingPath = { + [Path in AbsoluteBindingPath]: PropertyByAbsoluteBindingPath< + Type, + Path + > extends Array + ? never + : PropertyByAbsoluteBindingPath extends object + ? Path + : never; + }[AbsoluteBindingPath]; + /** * Valid relative binding path in a JSONModel. * The root of the path is defined by the given root string. @@ -61246,6 +61411,76 @@ declare module "sap/ui/model/json/TypedJSONModel" { ? Rest : never; + /** + * Valid relative binding path for underlying `Array` types. + * The root of the path is defined by the given root string. + * + * @example + * type SalesOrder = { buyer: { id: string, items: string[] } }; + * type PathRelativeToSalesOrder = RelativeListBindingPath; // "id" | "items" + */ + export type RelativeListBindingPath< + Type, + Root extends AbsoluteBindingPath, + > = { + [Path in RelativeBindingPath]: PropertyByRelativeBindingPath< + Type, + Root, + Path + > extends Array + ? Path + : never; + }[RelativeBindingPath]; + + /** + * Valid relative binding path for underlying `Array` or `object` types. + * The root of the path is defined by the given root string. + * + * @example + * type SalesOrder = { buyer: { id: string, items: string[], parameters: { weight: number } } }; + * type PathRelativeToSalesOrder = RelativeTreeBindingPath; // "items" | "parameters" + */ + export type RelativeTreeBindingPath< + Type, + Root extends AbsoluteBindingPath, + > = { + [Path in RelativeBindingPath]: PropertyByRelativeBindingPath< + Type, + Root, + Path + > extends Array + ? Path + : PropertyByRelativeBindingPath extends object + ? Path + : never; + }[RelativeBindingPath]; + + /** + * Valid relative binding path for underlying object types (excludes arrays and primitives). + * The root of the path is defined by the given root string. + * + * @example + * type SalesOrder = { buyer: { id: string, name: string }, items: string[] }; + * type PathRelativeToSalesOrder = RelativeObjectBindingPath; // never (no nested objects) + * + * type Order = { customer: { address: { city: string } }, total: number }; + * type PathInOrder = RelativeObjectBindingPath; // "customer" | "customer/address" + */ + export type RelativeObjectBindingPath< + Type, + Root extends AbsoluteBindingPath, + > = { + [Path in RelativeBindingPath]: PropertyByRelativeBindingPath< + Type, + Root, + Path + > extends Array + ? never + : PropertyByRelativeBindingPath extends object + ? Path + : never; + }[RelativeBindingPath]; + /** * The type of a property in a JSONModel identified by the given path. * Counterpart to {@link AbsoluteBindingPath}. @@ -61449,6 +61684,16 @@ declare module "sap/ui/model/json/JSONPropertyBinding" { * @returns Metadata object describing this class */ static getMetadata(): Metadata; + /** + * Sets the value for this `JSONPropertyBinding` if the binding is not suspended. If a new value is set, + * an {@link sap.ui.model.Model#propertyChange} event is fired with change reason {@link sap.ui.model.ChangeReason.Binding Binding}. + */ + setValue( + /** + * The value to set for this binding + */ + vValue: any + ): void; } } @@ -61610,10 +61855,9 @@ declare module "sap/ui/model/ListBinding" { */ vFilter?: Filter[] | Filter, /** - * The type of the application filters to replace + * The type of the application filters to replace, see {@link sap.ui.model.FilterType} */ - sFilterType?: /* was: sap.ui.model.FilterType.Application */ - any | /* was: sap.ui.model.FilterType.ApplicationBound */ any + sFilterType?: "Application" | "ApplicationBound" ): Filter[] | Filter | undefined; /** * Detaches event handler `fnFunction` from the {@link #event:filter filter} event of this `sap.ui.model.ListBinding`. @@ -74080,9 +74324,10 @@ declare module "sap/ui/model/odata/v4/Context" { * * @returns A promise which is resolved without a defined result in case of success, or rejected with an * instance of `Error` in case of failure, for example if the annotation belongs to the read-only namespace - * "@$ui5.*". With `bRetry` it is only rejected with an `Error` instance where `oError.canceled === true` - * when the entity has been deleted while the request was pending or the property has been reset via the - * methods + * "@$ui5.*", or if `sGroupId` is `null` and the outdated flag at the header context would be set or the + * grand total would be affected. With `bRetry` it is only rejected with an `Error` instance where `oError.canceled + * === true` when the entity has been deleted while the request was pending or the property has been reset + * via the methods * {@link sap.ui.model.odata.v4.ODataModel#resetChanges} {@link sap.ui.model.odata.v4.ODataContextBinding#resetChanges } * or {@link sap.ui.model.odata.v4.ODataListBinding#resetChanges}. */ @@ -80320,10 +80565,9 @@ declare module "sap/ui/model/TreeBinding" { */ vFilter?: Filter[] | Filter, /** - * The type of the application filters to replace + * The type of the application filters to replace, see {@link sap.ui.model.FilterType} */ - sFilterType?: /* was: sap.ui.model.FilterType.Application */ - any | /* was: sap.ui.model.FilterType.ApplicationBound */ any + sFilterType?: "Application" | "ApplicationBound" ): Filter[] | Filter | undefined; /** * Detaches event handler `fnFunction` from the {@link #event:_filter _filter} event of this `sap.ui.model.TreeBinding`. diff --git a/types/openui5/sap.ui.dt.d.ts b/types/openui5/sap.ui.dt.d.ts index b2d45aaddf4078..99841c16b5c297 100644 --- a/types/openui5/sap.ui.dt.d.ts +++ b/types/openui5/sap.ui.dt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/dt/library" { export namespace designtime { diff --git a/types/openui5/sap.ui.fl.d.ts b/types/openui5/sap.ui.fl.d.ts index 08dcb828d1a766..d377182c329a2f 100644 --- a/types/openui5/sap.ui.fl.d.ts +++ b/types/openui5/sap.ui.fl.d.ts @@ -1,10 +1,12 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/fl/library" {} declare module "sap/ui/fl/apply/api/ControlVariantApplyAPI" { import ManagedObject from "sap/ui/base/ManagedObject"; + import Control from "sap/ui/core/Control"; + /** * Provides an API for applications to work with control variants. See also {@link sap.ui.fl.variants.VariantManagement}. * @@ -106,6 +108,28 @@ declare module "sap/ui/fl/apply/api/ControlVariantApplyAPI" { vmControlId: string; } ): void; + /** + * Returns the current variant reference for a given variant management reference and control. + * + * @since 1.148 + * + * @returns Current variant reference + */ + getCurrentVariantReference( + /** + * Object with parameters as properties + */ + mPropertyBag: { + /** + * Variant management reference + */ + vmReference: string; + /** + * Control for the reference determination + */ + control: Control; + } + ): string; } const ControlVariantApplyAPI: ControlVariantApplyAPI; export default ControlVariantApplyAPI; diff --git a/types/openui5/sap.ui.integration.d.ts b/types/openui5/sap.ui.integration.d.ts index aa837b6ab34024..b6d6baad8971c9 100644 --- a/types/openui5/sap.ui.integration.d.ts +++ b/types/openui5/sap.ui.integration.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/integration/library" { import { URI } from "sap/ui/core/library"; @@ -1458,6 +1458,7 @@ declare module "sap/ui/integration/widgets/Card" { * - If neither the manifest URL nor the base URL is defined, relative resources will not load correctly. * * + * @since 1.70 * * @returns Value of property `baseUrl` */ @@ -1893,6 +1894,7 @@ declare module "sap/ui/integration/widgets/Card" { * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * + * @since 1.70 * * @returns Reference to `this` in order to allow method chaining */ @@ -2635,6 +2637,9 @@ declare module "sap/ui/integration/widgets/Card" { * URL. * - If both the manifest URL and the base URL are defined, the base URL is used. * - If neither the manifest URL nor the base URL is defined, relative resources will not load correctly. + * + * + * @since 1.70 */ baseUrl?: URI | PropertyBindingInfo | `{${string}}`; @@ -4846,8 +4851,6 @@ declare namespace sap { "sap/ui/integration/library": undefined; - "sap/ui/integration/services/Service": undefined; - "sap/ui/integration/util/CsrfTokenHandler": undefined; "sap/ui/integration/util/DataProvider": undefined; diff --git a/types/openui5/sap.ui.layout.d.ts b/types/openui5/sap.ui.layout.d.ts index bd61e6827da2b8..49ff03d41e17b7 100644 --- a/types/openui5/sap.ui.layout.d.ts +++ b/types/openui5/sap.ui.layout.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/layout/library" { import Control from "sap/ui/core/Control"; diff --git a/types/openui5/sap.ui.mdc.d.ts b/types/openui5/sap.ui.mdc.d.ts index 6c4d7318fe71a6..0695f2214df7bc 100644 --- a/types/openui5/sap.ui.mdc.d.ts +++ b/types/openui5/sap.ui.mdc.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/mdc/AggregationBaseDelegate" { import BaseDelegate from "sap/ui/mdc/BaseDelegate"; @@ -1435,6 +1435,8 @@ declare module "sap/ui/mdc/field/MultiValueFieldDelegate" { import MultiValueField from "sap/ui/mdc/MultiValueField"; + import MultiValueFieldItem from "sap/ui/mdc/field/MultiValueFieldItem"; + /** * Delegate for {@link sap.ui.mdc.MultiValueField MultiValueField}. * @@ -1470,7 +1472,13 @@ declare module "sap/ui/mdc/field/MultiValueFieldDelegate" { * Items can be removed, updated, or added. Use the binding information of the {@link sap.ui.mdc.MultiValueField MultiValueField } * control to update the data in the related model. * + * If updating of the items fails, return a rejected `Promise` to sync the conditions with the items. Set + * a `valueState` if needed. + * * @since 1.142 + * + * @returns null or a `Promise` returning an array containing the current items after update. If update + * of items fails, the `Promise` needs to be rejected */ updateItemsFromConditions( /** @@ -1482,7 +1490,7 @@ declare module "sap/ui/mdc/field/MultiValueFieldDelegate" { * Current conditions of the {@link sap.ui.mdc.MultiValueField MultiValueField} control */ aConditions: ConditionObject[] - ): void; + ): null | Promise; } const MultiValueFieldDelegate: MultiValueFieldDelegate; export default MultiValueFieldDelegate; @@ -9366,6 +9374,18 @@ declare module "sap/ui/mdc/enums/TableRowActionType" { * @since 1.115 */ enum TableRowActionType { + /** + * Custom-defined row action + * + * @since 1.148 + */ + Custom = "Custom", + /** + * Row action for deletion + * + * @since 1.148 + */ + Delete = "Delete", /** * Navigation arrow (chevron) is shown */ @@ -17447,6 +17467,8 @@ declare module "sap/ui/mdc/Table" { import DataStateIndicator from "sap/m/plugins/DataStateIndicator"; + import UI5Element from "sap/ui/core/Element"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import TableP13nMode from "sap/ui/mdc/enums/TableP13nMode"; @@ -17854,6 +17876,14 @@ declare module "sap/ui/mdc/Table" { * @returns Reference to `this` in order to allow method chaining */ destroyDataStateIndicator(): this; + /** + * Destroys the defaultExportSettings in the aggregation {@link #getDefaultExportSettings defaultExportSettings}. + * + * @since 1.148 + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyDefaultExportSettings(): this; /** * Destroys the noData in the aggregation {@link #getNoData noData}. * @@ -18171,6 +18201,21 @@ declare module "sap/ui/mdc/Table" { * @since 1.89 */ getDataStateIndicator(): DataStateIndicator; + /** + * Gets content of aggregation {@link #getDefaultExportSettings defaultExportSettings}. + * + * Default values shown in the export dialog. + * + * **Note:** These values are defaults shown to the user in the export dialog. The user can still modify + * them before export. If the user modifies a value in the dialog, the user choice takes precedence and + * is not overridden by event handlers. + * + * The expected type is `sap.ui.export.TableExportSettings`. The `sap.ui.export` library must be loaded + * before setting this aggregation. + * + * @since 1.148 + */ + getDefaultExportSettings(): UI5Element; /** * Gets current value of property {@link #getDelegate delegate}. * @@ -18733,6 +18778,19 @@ declare module "sap/ui/mdc/Table" { */ oDataStateIndicator: DataStateIndicator ): this; + /** + * Sets the aggregated {@link #getDefaultExportSettings defaultExportSettings}. + * + * @since 1.148 + * + * @returns Reference to `this` in order to allow method chaining + */ + setDefaultExportSettings( + /** + * The defaultExportSettings to set + */ + oDefaultExportSettings: UI5Element + ): this; /** * Sets a new value for property {@link #getDelegate delegate}. * @@ -19731,6 +19789,20 @@ declare module "sap/ui/mdc/Table" { */ rowSettings?: RowSettings; + /** + * Default values shown in the export dialog. + * + * **Note:** These values are defaults shown to the user in the export dialog. The user can still modify + * them before export. If the user modifies a value in the dialog, the user choice takes precedence and + * is not overridden by event handlers. + * + * The expected type is `sap.ui.export.TableExportSettings`. The `sap.ui.export` library must be loaded + * before setting this aggregation. + * + * @since 1.148 + */ + defaultExportSettings?: UI5Element; + /** * `DataStateIndicator` plugin that can be used to show binding-related messages. * @@ -21557,6 +21629,16 @@ declare module "sap/ui/mdc/table/GridTableType" { /** * The table type info class for the metadata-driven table. * + * + * **Important Notes for `{@link sap.ui.mdc.table.RowSettings#setRowActionCount rowActionCount}`:** + * + * + * The `rowActionCount` property is used to determine the number of row actions that are displayed for each + * row in the table. The actual number of displayed actions can be limited by the underlying table type: + * + * - `GridTable`: Maximum number of three actions including the overflow button. 0 means no actions are + * visible. + * * @since 1.65 */ export default class GridTableType extends TableTypeBase { @@ -22122,6 +22204,18 @@ declare module "sap/ui/mdc/table/ResponsiveTableType" { /** * The table type info class for the metadata-driven table. * + * + * **Important Notes for `{@link sap.ui.mdc.table.RowSettings#setRowActionCount rowActionCount}`:** + * + * + * The `rowActionCount` property is used to determine the number of row actions that are displayed for each + * row in the table. The actual number of displayed actions can be limited by the underlying table type: + * + * + * - `ResponsiveTable`: Maximum of 2-3 actions depending on configuration (1 navigation action + 2 additional + * actions) + * - `rowActionCount` = 0: navigation action is always visible if it exists + * * @since 1.65 */ export default class ResponsiveTableType extends TableTypeBase { @@ -22626,6 +22720,8 @@ declare module "sap/ui/mdc/table/RowActionItem" { * Setting the type ensures default values for the properties `icon` and `text`. If an icon or text is set * explicitly, this setting is used. * + * Default value is `Custom`. + * * * @returns Value of property `type` */ @@ -22687,6 +22783,8 @@ declare module "sap/ui/mdc/table/RowActionItem" { * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * + * Default value is `Custom`. + * * * @returns Reference to `this` in order to allow method chaining */ @@ -22694,7 +22792,7 @@ declare module "sap/ui/mdc/table/RowActionItem" { /** * New value for property `type` */ - sType: TableRowActionType | keyof typeof TableRowActionType + sType?: TableRowActionType | keyof typeof TableRowActionType ): this; /** * Sets a new value for property {@link #getVisible visible}. @@ -22929,6 +23027,49 @@ declare module "sap/ui/mdc/table/RowSettings" { * @returns Value of property `navigated` */ getNavigated(): boolean; + /** + * Gets current value of property {@link #getRowActionCount rowActionCount}. + * + * Defines the number of row actions to display. + * + * This property is useful for bound row actions where the count cannot be determined automatically. If + * not set, the count is derived from: + * - Bound actions: Defaults to 1 (must be set explicitly if multiple actions exist) + * - Static actions: The length of the `rowActions` aggregation + * + * **Note:** + * If the `rowActionCount` property is not explicitly set, the table will automatically determine the number + * of row actions that is displayed based on the configuration of the `RowSettings` and the underlying table + * type. In this case, the table will check how many actions are configured in the `RowSettings` and will + * display as many actions as possible up to the maximum number of actions supported by the underlying table + * type. + * + * + * If the `rowActionCount` property is explicitly set, its value will be used to determine how many row + * actions are displayed, regardless of the number of actions configured in the `RowSettings`. However, + * the actual number of displayed actions will still be limited by the maximum number of actions supported + * by the underlying table type. + * + * **Example:** + * If the underlying table type supports a maximum number of 3 row actions, and there are 5 actions configured + * in the `RowSettings`: + * + * + * - `rowActionCount` is not set, the table will display 3 actions (the maximum supported). + * - `rowActionCount` is set to 2, the table will display 2 actions (as specified), even though more actions + * are configured in the `RowSettings`. + * + * For bound row actions, the `rowActionCount` must be set explicitly, as the count cannot be determined + * automatically. For static actions, the count defaults to the length of the `rowActions` aggregation in + * the `RowSettings`. + * + * Default value is `-1`. + * + * @since 1.148 + * + * @returns Value of property `rowActionCount` + */ + getRowActionCount(): int; /** * Gets content of aggregation {@link #getRowActions rowActions}. * @@ -23056,6 +23197,56 @@ declare module "sap/ui/mdc/table/RowSettings" { */ bNavigated?: boolean ): this; + /** + * Sets a new value for property {@link #getRowActionCount rowActionCount}. + * + * Defines the number of row actions to display. + * + * This property is useful for bound row actions where the count cannot be determined automatically. If + * not set, the count is derived from: + * - Bound actions: Defaults to 1 (must be set explicitly if multiple actions exist) + * - Static actions: The length of the `rowActions` aggregation + * + * **Note:** + * If the `rowActionCount` property is not explicitly set, the table will automatically determine the number + * of row actions that is displayed based on the configuration of the `RowSettings` and the underlying table + * type. In this case, the table will check how many actions are configured in the `RowSettings` and will + * display as many actions as possible up to the maximum number of actions supported by the underlying table + * type. + * + * + * If the `rowActionCount` property is explicitly set, its value will be used to determine how many row + * actions are displayed, regardless of the number of actions configured in the `RowSettings`. However, + * the actual number of displayed actions will still be limited by the maximum number of actions supported + * by the underlying table type. + * + * **Example:** + * If the underlying table type supports a maximum number of 3 row actions, and there are 5 actions configured + * in the `RowSettings`: + * + * + * - `rowActionCount` is not set, the table will display 3 actions (the maximum supported). + * - `rowActionCount` is set to 2, the table will display 2 actions (as specified), even though more actions + * are configured in the `RowSettings`. + * + * For bound row actions, the `rowActionCount` must be set explicitly, as the count cannot be determined + * automatically. For static actions, the count defaults to the length of the `rowActions` aggregation in + * the `RowSettings`. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `-1`. + * + * @since 1.148 + * + * @returns Reference to `this` in order to allow method chaining + */ + setRowActionCount( + /** + * New value for property `rowActionCount` + */ + iRowActionCount?: int + ): this; } /** * Describes the settings that can be provided to the RowSettings constructor. @@ -23088,6 +23279,44 @@ declare module "sap/ui/mdc/table/RowSettings" { */ navigated?: boolean | PropertyBindingInfo | `{${string}}`; + /** + * Defines the number of row actions to display. + * + * This property is useful for bound row actions where the count cannot be determined automatically. If + * not set, the count is derived from: + * - Bound actions: Defaults to 1 (must be set explicitly if multiple actions exist) + * - Static actions: The length of the `rowActions` aggregation + * + * **Note:** + * If the `rowActionCount` property is not explicitly set, the table will automatically determine the number + * of row actions that is displayed based on the configuration of the `RowSettings` and the underlying table + * type. In this case, the table will check how many actions are configured in the `RowSettings` and will + * display as many actions as possible up to the maximum number of actions supported by the underlying table + * type. + * + * + * If the `rowActionCount` property is explicitly set, its value will be used to determine how many row + * actions are displayed, regardless of the number of actions configured in the `RowSettings`. However, + * the actual number of displayed actions will still be limited by the maximum number of actions supported + * by the underlying table type. + * + * **Example:** + * If the underlying table type supports a maximum number of 3 row actions, and there are 5 actions configured + * in the `RowSettings`: + * + * + * - `rowActionCount` is not set, the table will display 3 actions (the maximum supported). + * - `rowActionCount` is set to 2, the table will display 2 actions (as specified), even though more actions + * are configured in the `RowSettings`. + * + * For bound row actions, the `rowActionCount` must be set explicitly, as the count cannot be determined + * automatically. For static actions, the count defaults to the length of the `rowActions` aggregation in + * the `RowSettings`. + * + * @since 1.148 + */ + rowActionCount?: int | PropertyBindingInfo | `{${string}}`; + /** * The actions that appear at the end of a row. * @@ -23110,6 +23339,7 @@ declare module "sap/ui/mdc/table/TableTypeBase" { /** * The table type info base class for the metadata-driven table. Base class with no implementation. * + * * @since 1.65 */ export default abstract class TableTypeBase extends UI5Element { @@ -28221,10 +28451,14 @@ declare namespace sap { "sap/ui/mdc/LinkDelegate": undefined; + "sap/ui/mdc/mixin/ActionToolbarMixin": undefined; + "sap/ui/mdc/mixin/AdaptationMixin": undefined; "sap/ui/mdc/mixin/DelegateMixin": undefined; + "sap/ui/mdc/mixin/DynamicPropertiesMixin": undefined; + "sap/ui/mdc/mixin/FilterIntegrationMixin": undefined; "sap/ui/mdc/mixin/PromiseMixin": undefined; diff --git a/types/openui5/sap.ui.rta.d.ts b/types/openui5/sap.ui.rta.d.ts index d741281c70992f..20a7545c3b12fc 100644 --- a/types/openui5/sap.ui.rta.d.ts +++ b/types/openui5/sap.ui.rta.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/rta/api/startAdaptation" { import Control from "sap/ui/core/Control"; diff --git a/types/openui5/sap.ui.suite.d.ts b/types/openui5/sap.ui.suite.d.ts index 646ef0ee7b1fab..a2e5cca5ac1b94 100644 --- a/types/openui5/sap.ui.suite.d.ts +++ b/types/openui5/sap.ui.suite.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/suite/library" { /** diff --git a/types/openui5/sap.ui.support.d.ts b/types/openui5/sap.ui.support.d.ts index 46a2f4e1d6cdc4..4f5e7916bed6aa 100644 --- a/types/openui5/sap.ui.support.d.ts +++ b/types/openui5/sap.ui.support.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/support/library" { /** diff --git a/types/openui5/sap.ui.table.d.ts b/types/openui5/sap.ui.table.d.ts index 13315fa9e8d472..5629f40e66bd8d 100644 --- a/types/openui5/sap.ui.table.d.ts +++ b/types/openui5/sap.ui.table.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/table/library" { import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode"; @@ -88,15 +88,15 @@ declare module "sap/ui/table/library" { */ export enum RowActionType { /** - * Custom defined Row Action. + * Custom-defined row action */ Custom = "Custom", /** - * Delete Row Action. + * Row action for deletion */ Delete = "Delete", /** - * Navigation Row Action. + * Navigation arrow (chevron) is shown */ Navigation = "Navigation", } diff --git a/types/openui5/sap.ui.testrecorder.d.ts b/types/openui5/sap.ui.testrecorder.d.ts index 3f9b0f957272bd..a04d209b108080 100644 --- a/types/openui5/sap.ui.testrecorder.d.ts +++ b/types/openui5/sap.ui.testrecorder.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/testrecorder/library" {} diff --git a/types/openui5/sap.ui.unified.d.ts b/types/openui5/sap.ui.unified.d.ts index 601ae78b32ca4b..279344b7ccaa41 100644 --- a/types/openui5/sap.ui.unified.d.ts +++ b/types/openui5/sap.ui.unified.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/unified/library" { /** diff --git a/types/openui5/sap.ui.ux3.d.ts b/types/openui5/sap.ui.ux3.d.ts index 46598b69dcba37..633a0e0d8393be 100644 --- a/types/openui5/sap.ui.ux3.d.ts +++ b/types/openui5/sap.ui.ux3.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/ui/ux3/library" { /** diff --git a/types/openui5/sap.uxap.d.ts b/types/openui5/sap.uxap.d.ts index 83e187b5d271a6..75fa25a9ba64c6 100644 --- a/types/openui5/sap.uxap.d.ts +++ b/types/openui5/sap.uxap.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.147.0 +// For Library Version: 1.148.0 declare module "sap/uxap/library" { /** diff --git a/types/react-resizable/.npmignore b/types/react-resizable/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/react-resizable/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/react-resizable/index.d.ts b/types/react-resizable/index.d.ts deleted file mode 100644 index 5bc9556feef8a1..00000000000000 --- a/types/react-resizable/index.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import * as React from "react"; - -export type Axis = "both" | "x" | "y" | "none"; -export type ResizeHandle = "s" | "w" | "e" | "n" | "sw" | "nw" | "se" | "ne"; - -export interface ResizableState { - resizing: boolean; - width: number; - height: number; - slackW: number; - slackH: number; -} - -export interface DragCallbackData { - node: HTMLElement; - x: number; - y: number; - deltaX: number; - deltaY: number; - lastX: number; - lastY: number; -} - -export interface ResizeCallbackData { - node: HTMLElement; - size: { width: number; height: number }; - handle: ResizeHandle; -} - -export type ResizableProps = - & { - children?: React.ReactNode; - className?: string | undefined; - handle?: - | React.ReactNode - | ((resizeHandle: ResizeHandle, ref: React.RefObject) => React.ReactNode) - | undefined; - handleSize?: [number, number] | undefined; - lockAspectRatio?: boolean | undefined; - minConstraints?: [width: number, height: number] | undefined; - maxConstraints?: [width: number, height: number] | undefined; - onResizeStop?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; - onResizeStart?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; - onResize?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; - draggableOpts?: any; - resizeHandles?: ResizeHandle[] | undefined; - transformScale?: number; - } - & ( - | { - width: number; - height?: number | undefined; - axis: "x"; - } - | { - width?: number | undefined; - height: number; - axis: "y"; - } - | { - width?: number | undefined; - height?: number | undefined; - axis: "none"; - } - | { - width: number; - height: number; - axis?: "both"; - } - ); - -export class Resizable extends React.Component {} - -export interface ResizableBoxState { - height: number; - width: number; -} - -export type ResizableBoxProps = ResizableProps & { style?: React.CSSProperties }; - -export class ResizableBox extends React.Component {} diff --git a/types/react-resizable/package.json b/types/react-resizable/package.json deleted file mode 100644 index aba419d5ff0ede..00000000000000 --- a/types/react-resizable/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "private": true, - "name": "@types/react-resizable", - "version": "3.0.9999", - "projects": [ - "https://github.com/react-grid-layout/react-resizable" - ], - "dependencies": { - "@types/react": "*" - }, - "devDependencies": { - "@types/react-resizable": "workspace:." - }, - "owners": [ - { - "name": "Harry Brrundage", - "githubUsername": "airhorns" - } - ] -} diff --git a/types/react-resizable/react-resizable-tests.tsx b/types/react-resizable/react-resizable-tests.tsx deleted file mode 100644 index 5a037e33a5a500..00000000000000 --- a/types/react-resizable/react-resizable-tests.tsx +++ /dev/null @@ -1,153 +0,0 @@ -import * as React from "react"; -import { Resizable, ResizableBox, ResizeCallbackData } from "react-resizable"; - -const resizeCallback = (event: React.SyntheticEvent, data: ResizeCallbackData) => { - console.log(data.size.height); - console.log(data.node); -}; - -class TestResizableComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} - -class TestResizableBoxComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( -
{resizeHandle}
} - > -
{this.props.children}
-
- ); - } -} - -class TestStyledResizableBoxComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} - -class TestXResizableComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} - -class TestYResizableComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} - -class TestXYResizableComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} - -class TestNoneResizableComponent extends React.Component<{ children?: React.ReactNode }> { - render() { - return ( - -
{this.props.children}
-
- ); - } -} diff --git a/types/react-resizable/tsconfig.json b/types/react-resizable/tsconfig.json deleted file mode 100644 index 50ab18ae44b5d3..00000000000000 --- a/types/react-resizable/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "jsx": "react", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "react-resizable-tests.tsx" - ] -} diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 730d9fa95cd163..16eddee53d9e2e 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -5574,6 +5574,26 @@ declare namespace Xrm { dashboardId?: string | undefined; } + interface GenerativePage { + pageType: "generative"; + /** + * The ID of the generative page to open. + */ + pageId: string; + /** + * The GUID of a record to pass to the page. + */ + recordId?: string | undefined; + /** + * The logical name of the Dataverse table corresponding to the recordId. + */ + entityName?: string | undefined; + /** + * A JSON object containing additional custom parameters to pass to the page. + */ + data?: { [index: string]: any } | undefined; + } + /** * Options for navigating to a page: whether to open inline or in a dialog. If you don't specify this parameter, page is opened inline by default. */ @@ -5630,7 +5650,8 @@ declare namespace Xrm { | Navigation.PageInputEntityList | Navigation.CustomPage | Navigation.PageInputHtmlWebResource - | Navigation.Dashboard, + | Navigation.Dashboard + | Navigation.GenerativePage, navigationOptions?: Navigation.NavigationOptions, ): Async.PromiseLike; diff --git a/types/xrm/xrm-tests.ts b/types/xrm/xrm-tests.ts index af956df4a60720..c396ec2644b043 100644 --- a/types/xrm/xrm-tests.ts +++ b/types/xrm/xrm-tests.ts @@ -616,6 +616,24 @@ function onChangeFormField(executionContext: Xrm.Events.EventContext): void { footerSection.setVisible(true); } +// Demonstrate Navigating to a generative page +Xrm.Navigation.navigateTo({ + pageType: "generative", + pageId: "84fd907e-8bfe-11ec-a8a3-0242ac120002", + recordId: "84fd907e-8bfe-11ec-a8a3-0242ac120002", + entityName: "contact", + data: { + "custom": "value", + }, +}).then( + (success) => { + console.log("Generative page opened"); + }, + (error) => { + console.log(error.message); + }, +); + // Demonstrate formContext.ui.headerSection methods function onChangeHeaderField(executionContext: Xrm.Events.EventContext): void { const formContext = executionContext.getFormContext();