From 22cc17ccd6781bfaf5b8e5de438cd251a084d8c1 Mon Sep 17 00:00:00 2001 From: OpenUI5 Bot Date: Fri, 4 Sep 2026 14:16:07 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75464=20[openu?= =?UTF-8?q?i5]=20Update=20the=20definition=20files=20for=20OpenUI5=201.152?= =?UTF-8?q?=20by=20@openui5bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sapui5 --- types/openui5/openui5-tests.ts | 2 + types/openui5/package.json | 2 +- types/openui5/sap.f.d.ts | 1388 ++++++++++++++++++++---- types/openui5/sap.m.d.ts | 119 +- types/openui5/sap.tnt.d.ts | 2 +- types/openui5/sap.ui.codeeditor.d.ts | 2 +- types/openui5/sap.ui.commons.d.ts | 2 +- types/openui5/sap.ui.core.d.ts | 187 +++- types/openui5/sap.ui.dt.d.ts | 2 +- types/openui5/sap.ui.fl.d.ts | 2 +- types/openui5/sap.ui.integration.d.ts | 426 ++------ types/openui5/sap.ui.layout.d.ts | 40 +- types/openui5/sap.ui.mdc.d.ts | 27 +- types/openui5/sap.ui.rta.d.ts | 6 +- types/openui5/sap.ui.suite.d.ts | 2 +- types/openui5/sap.ui.support.d.ts | 2 +- types/openui5/sap.ui.table.d.ts | 2 +- types/openui5/sap.ui.testrecorder.d.ts | 2 +- types/openui5/sap.ui.unified.d.ts | 63 +- types/openui5/sap.ui.ux3.d.ts | 2 +- types/openui5/sap.uxap.d.ts | 2 +- 21 files changed, 1683 insertions(+), 599 deletions(-) diff --git a/types/openui5/openui5-tests.ts b/types/openui5/openui5-tests.ts index ec6312b619150b..1233e7c494ab08 100644 --- a/types/openui5/openui5-tests.ts +++ b/types/openui5/openui5-tests.ts @@ -304,3 +304,5 @@ const p13nEngine = new Engine(); // version 1.150.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested // version 1.151.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested + +// version 1.152.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 a440859c35b662..4f2663252447e8 100644 --- a/types/openui5/package.json +++ b/types/openui5/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/openui5", - "version": "1.151.9999", + "version": "1.152.9999", "nonNpm": true, "nonNpmDescription": "openui5", "projects": [ diff --git a/types/openui5/sap.f.d.ts b/types/openui5/sap.f.d.ts index 48004be0a0e26e..1bfc8442cd05c1 100644 --- a/types/openui5/sap.f.d.ts +++ b/types/openui5/sap.f.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.151.0 +// For Library Version: 1.152.0 declare module "sap/tnt/library" { export interface IToolHeader { @@ -165,6 +165,60 @@ declare module "sap/f/library" { */ export type DynamicPageTitleShrinkRatio = string; + /** + * Defines the placement of the actions slot within the {@link sap.f.HeroBanner} header area. + * + * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'HeroBannerActionsPlacement'. + * + * @experimental As of version 1.152. + */ + export enum HeroBannerActionsPlacement { + /** + * Actions are displayed below the header text, left-aligned, regardless of `columnsRatio` or slot usage. + */ + BottomStart = "BottomStart", + /** + * Actions are displayed to the right of the header text, at the top of the header row. + */ + TopEnd = "TopEnd", + } + /** + * Defines the ratio between the two content columns inside the {@link sap.f.HeroBanner}. + * + * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'HeroBannerColumnsRatio'. + * + * @experimental As of version 1.152. + */ + export enum HeroBannerColumnsRatio { + /** + * Two equal columns. Both content blocks share the available width equally. On smaller screens, both slots + * stack vertically. + */ + Equal = "Equal", + /** + * Two unequal columns. The start content takes two-thirds of the width, the end content one-third. On smaller + * screens, both slots stack vertically. + */ + FirstWider = "FirstWider", + } + /** + * Defines the vertical placement of the header block within the {@link sap.f.HeroBanner} content area. + * + * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'HeroBannerHeaderBlockPlacement'. + * + * @experimental As of version 1.152. + */ + export enum HeroBannerHeaderBlockPlacement { + /** + * Header block is pushed to the bottom of column 1. Only takes effect when `columnsRatio` is `Equal` or + * `FirstWider` and only `endContent` is provided. + */ + Bottom = "Bottom", + /** + * Header block is placed at the top of the content area. + */ + Top = "Top", + } /** * Interface that should be implemented by all card controls. * @@ -1968,7 +2022,7 @@ declare module "sap/f/cards/BaseHeader" { /** * Adds some infoSection to the aggregation {@link #getInfoSection infoSection}. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns Reference to `this` in order to allow method chaining */ @@ -2028,7 +2082,7 @@ declare module "sap/f/cards/BaseHeader" { /** * Destroys all the infoSection in the aggregation {@link #getInfoSection infoSection}. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns Reference to `this` in order to allow method chaining */ @@ -2036,7 +2090,7 @@ declare module "sap/f/cards/BaseHeader" { /** * Destroys the toolbar in the aggregation {@link #getToolbar toolbar}. * - * @experimental As of version 1.86. + * @since 1.86 * * @returns Reference to `this` in order to allow method chaining */ @@ -2084,7 +2138,7 @@ declare module "sap/f/cards/BaseHeader" { * * Default value is `empty string`. * - * @experimental As of version 1.89. + * @since 1.89 * * @returns Value of property `dataTimestamp` */ @@ -2094,27 +2148,16 @@ declare module "sap/f/cards/BaseHeader" { * * Info sections to be displayed in the header. * - * @experimental As of version 1.136. + * @since 1.136 */ getInfoSection(): Control[]; - /** - * Gets current value of property {@link #getStatusVisible statusVisible}. - * - * Defines the status text visibility. - * - * Default value is `true`. - * - * @experimental As of version 1.116. - * - * @returns Value of property `statusVisible` - */ - getStatusVisible(): boolean; /** * Gets content of aggregation {@link #getToolbar toolbar}. * - * Defines the toolbar. + * Defines an additional content shown in the header's toolbar area, typically actions such as a close button + * or a menu. * - * @experimental As of version 1.86. + * @since 1.86 */ getToolbar(): Control; /** @@ -2125,7 +2168,7 @@ declare module "sap/f/cards/BaseHeader" { * * Default value is `Normal`. * - * @experimental As of version 1.122. + * @since 1.122 * * @returns Value of property `wrappingType` */ @@ -2134,7 +2177,7 @@ declare module "sap/f/cards/BaseHeader" { * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getInfoSection infoSection}. * and returns its index if found or -1 otherwise. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns The index of the provided control in the aggregation if found, or -1 otherwise */ @@ -2147,7 +2190,7 @@ declare module "sap/f/cards/BaseHeader" { /** * Inserts a infoSection into the aggregation {@link #getInfoSection infoSection}. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns Reference to `this` in order to allow method chaining */ @@ -2168,7 +2211,7 @@ declare module "sap/f/cards/BaseHeader" { * * Additionally, it unregisters them from the hosting UIArea. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns An array of the removed elements (might be empty) */ @@ -2176,7 +2219,7 @@ declare module "sap/f/cards/BaseHeader" { /** * Removes a infoSection from the aggregation {@link #getInfoSection infoSection}. * - * @experimental As of version 1.136. + * @since 1.136 * * @returns The removed infoSection or `null` */ @@ -2200,7 +2243,7 @@ declare module "sap/f/cards/BaseHeader" { * * Default value is `empty string`. * - * @experimental As of version 1.89. + * @since 1.89 * * @returns Reference to `this` in order to allow method chaining */ @@ -2210,29 +2253,10 @@ declare module "sap/f/cards/BaseHeader" { */ sDataTimestamp?: string ): this; - /** - * Sets a new value for property {@link #getStatusVisible statusVisible}. - * - * Defines the status text visibility. - * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `true`. - * - * @experimental As of version 1.116. - * - * @returns Reference to `this` in order to allow method chaining - */ - setStatusVisible( - /** - * New value for property `statusVisible` - */ - bStatusVisible?: boolean - ): this; /** * Sets the aggregated {@link #getToolbar toolbar}. * - * @experimental As of version 1.86. + * @since 1.86 * * @returns Reference to `this` in order to allow method chaining */ @@ -2252,7 +2276,7 @@ declare module "sap/f/cards/BaseHeader" { * * Default value is `Normal`. * - * @experimental As of version 1.122. + * @since 1.122 * * @returns Reference to `this` in order to allow method chaining */ @@ -2275,22 +2299,15 @@ declare module "sap/f/cards/BaseHeader" { * * Will be shown as a relative time like "5 minutes ago". * - * @experimental As of version 1.89. + * @since 1.89 */ dataTimestamp?: string | PropertyBindingInfo; - /** - * Defines the status text visibility. - * - * @experimental As of version 1.116. - */ - statusVisible?: boolean | PropertyBindingInfo | `{${string}}`; - /** * Defines the type of text wrapping to be used inside the header. This applies to title, subtitle and details * texts of the header. * - * @experimental As of version 1.122. + * @since 1.122 */ wrappingType?: | (WrappingType | keyof typeof WrappingType) @@ -2300,14 +2317,15 @@ declare module "sap/f/cards/BaseHeader" { /** * Info sections to be displayed in the header. * - * @experimental As of version 1.136. + * @since 1.136 */ infoSection?: Control[] | Control | AggregationBindingInfo | `{${string}}`; /** - * Defines the toolbar. + * Defines an additional content shown in the header's toolbar area, typically actions such as a close button + * or a menu. * - * @experimental As of version 1.86. + * @since 1.86 */ toolbar?: Control; @@ -2745,7 +2763,7 @@ declare module "sap/f/cards/Header" { * * Default value is `empty string`. * - * @experimental As of version 1.81. + * @since 1.81 * * @returns Value of property `iconAlt` */ @@ -2757,7 +2775,7 @@ declare module "sap/f/cards/Header" { * * Default value is `Transparent`. * - * @experimental As of version 1.83. + * @since 1.83 * * @returns Value of property `iconBackgroundColor` */ @@ -2803,7 +2821,7 @@ declare module "sap/f/cards/Header" { * * Default value is `S`. * - * @experimental As of version 1.119. + * @since 1.119 * * @returns Value of property `iconSize` */ @@ -2831,18 +2849,6 @@ declare module "sap/f/cards/Header" { * @returns Value of property `iconState` */ getIconState(): ValueState; - /** - * Gets current value of property {@link #getIconVisible iconVisible}. - * - * Defines whether the card icon is visible. - * - * Default value is `true`. - * - * @experimental As of version 1.83. - * - * @returns Value of property `iconVisible` - */ - getIconVisible(): boolean; /** * Gets current value of property {@link #getStatusText statusText}. * @@ -2872,7 +2878,7 @@ declare module "sap/f/cards/Header" { * * Default value is `2`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Value of property `subtitleMaxLines` */ @@ -2895,7 +2901,7 @@ declare module "sap/f/cards/Header" { * * Default value is `3`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Value of property `titleMaxLines` */ @@ -2909,7 +2915,7 @@ declare module "sap/f/cards/Header" { * * Default value is `empty string`. * - * @experimental As of version 1.81. + * @since 1.81 * * @returns Reference to `this` in order to allow method chaining */ @@ -2928,7 +2934,7 @@ declare module "sap/f/cards/Header" { * * Default value is `Transparent`. * - * @experimental As of version 1.83. + * @since 1.83 * * @returns Reference to `this` in order to allow method chaining */ @@ -3002,7 +3008,7 @@ declare module "sap/f/cards/Header" { * * Default value is `S`. * - * @experimental As of version 1.119. + * @since 1.119 * * @returns Reference to `this` in order to allow method chaining */ @@ -3049,25 +3055,6 @@ declare module "sap/f/cards/Header" { */ sIconState?: ValueState | keyof typeof ValueState ): this; - /** - * Sets a new value for property {@link #getIconVisible iconVisible}. - * - * Defines whether the card icon is visible. - * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `true`. - * - * @experimental As of version 1.83. - * - * @returns Reference to `this` in order to allow method chaining - */ - setIconVisible( - /** - * New value for property `iconVisible` - */ - bIconVisible?: boolean - ): this; /** * Sets a new value for property {@link #getStatusText statusText}. * @@ -3113,7 +3100,7 @@ declare module "sap/f/cards/Header" { * * Default value is `2`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Reference to `this` in order to allow method chaining */ @@ -3150,7 +3137,7 @@ declare module "sap/f/cards/Header" { * * Default value is `3`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Reference to `this` in order to allow method chaining */ @@ -3179,7 +3166,7 @@ declare module "sap/f/cards/Header" { /** * Limits the number of lines for the title. * - * @experimental As of version 1.101. + * @since 1.101 */ titleMaxLines?: int | PropertyBindingInfo | `{${string}}`; @@ -3191,7 +3178,7 @@ declare module "sap/f/cards/Header" { /** * Limits the number of lines for the subtitle. * - * @experimental As of version 1.101. + * @since 1.101 */ subtitleMaxLines?: int | PropertyBindingInfo | `{${string}}`; @@ -3221,31 +3208,24 @@ declare module "sap/f/cards/Header" { /** * Defines an alt text for the avatar or icon. * - * @experimental As of version 1.81. + * @since 1.81 */ iconAlt?: string | PropertyBindingInfo; /** * Defines a background color for the avatar or icon. * - * @experimental As of version 1.83. + * @since 1.83 */ iconBackgroundColor?: | (AvatarColor | keyof typeof AvatarColor) | PropertyBindingInfo | `{${string}}`; - /** - * Defines whether the card icon is visible. - * - * @experimental As of version 1.83. - */ - iconVisible?: boolean | PropertyBindingInfo | `{${string}}`; - /** * Defines the size of the icon. * - * @experimental As of version 1.119. + * @since 1.119 */ iconSize?: | (AvatarSize | keyof typeof AvatarSize) @@ -3330,10 +3310,16 @@ declare module "sap/f/cards/NumericHeader" { import Control from "sap/ui/core/Control"; + import AvatarColor from "sap/m/AvatarColor"; + + import AvatarShape from "sap/m/AvatarShape"; + import AvatarImageFitType from "sap/m/AvatarImageFitType"; import AvatarSize from "sap/m/AvatarSize"; + import { URI } from "sap/ui/core/library"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import { ValueColor, DeviationIndicator } from "sap/m/library"; @@ -3439,7 +3425,7 @@ declare module "sap/f/cards/NumericHeader" { /** * Destroys the microChart in the aggregation {@link #getMicroChart microChart}. * - * @experimental As of version 1.124. + * @since 1.124 * * @returns Reference to `this` in order to allow method chaining */ @@ -3487,11 +3473,47 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `1`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Value of property `detailsMaxLines` */ getDetailsMaxLines(): int; + /** + * Gets current value of property {@link #getIconAlt iconAlt}. + * + * Defines an alt text for the avatar or icon. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Value of property `iconAlt` + */ + getIconAlt(): string; + /** + * Gets current value of property {@link #getIconBackgroundColor iconBackgroundColor}. + * + * Defines a background color for the avatar or icon. + * + * Default value is `Transparent`. + * + * @since 1.118 + * + * @returns Value of property `iconBackgroundColor` + */ + getIconBackgroundColor(): AvatarColor; + /** + * Gets current value of property {@link #getIconDisplayShape iconDisplayShape}. + * + * Defines the shape of the icon. + * + * Default value is `Circle`. + * + * @since 1.118 + * + * @returns Value of property `iconDisplayShape` + */ + getIconDisplayShape(): AvatarShape; /** * Gets current value of property {@link #getIconFitType iconFitType}. * @@ -3504,6 +3526,18 @@ declare module "sap/f/cards/NumericHeader" { * @returns Value of property `iconFitType` */ getIconFitType(): AvatarImageFitType; + /** + * Gets current value of property {@link #getIconInitials iconInitials}. + * + * Defines the initials of the icon. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Value of property `iconInitials` + */ + getIconInitials(): string; /** * Gets current value of property {@link #getIconSize iconSize}. * @@ -3511,17 +3545,29 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `S`. * - * @experimental As of version 1.119. + * @since 1.119 * * @returns Value of property `iconSize` */ getIconSize(): AvatarSize; + /** + * Gets current value of property {@link #getIconSrc iconSrc}. + * + * Defines the icon source. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Value of property `iconSrc` + */ + getIconSrc(): URI; /** * Gets content of aggregation {@link #getMicroChart microChart}. * * Micro Chart * - * @experimental As of version 1.124. + * @since 1.124 */ getMicroChart(): Control; /** @@ -3593,7 +3639,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `"Neutral"`. * - * @experimental As of version 1.64. + * @since 1.64 * * @returns Value of property `state` */ @@ -3625,7 +3671,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `2`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Value of property `subtitleMaxLines` */ @@ -3646,7 +3692,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `3`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Value of property `titleMaxLines` */ @@ -3748,7 +3794,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `1`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Reference to `this` in order to allow method chaining */ @@ -3758,6 +3804,63 @@ declare module "sap/f/cards/NumericHeader" { */ iDetailsMaxLines?: int ): this; + /** + * Sets a new value for property {@link #getIconAlt iconAlt}. + * + * Defines an alt text for the avatar or icon. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Reference to `this` in order to allow method chaining + */ + setIconAlt( + /** + * New value for property `iconAlt` + */ + sIconAlt?: string + ): this; + /** + * Sets a new value for property {@link #getIconBackgroundColor iconBackgroundColor}. + * + * Defines a background color for the avatar or icon. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `Transparent`. + * + * @since 1.118 + * + * @returns Reference to `this` in order to allow method chaining + */ + setIconBackgroundColor( + /** + * New value for property `iconBackgroundColor` + */ + sIconBackgroundColor?: AvatarColor | keyof typeof AvatarColor + ): this; + /** + * Sets a new value for property {@link #getIconDisplayShape iconDisplayShape}. + * + * Defines the shape of the icon. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `Circle`. + * + * @since 1.118 + * + * @returns Reference to `this` in order to allow method chaining + */ + setIconDisplayShape( + /** + * New value for property `iconDisplayShape` + */ + sIconDisplayShape?: AvatarShape | keyof typeof AvatarShape + ): this; /** * Sets a new value for property {@link #getIconFitType iconFitType}. * @@ -3777,6 +3880,25 @@ declare module "sap/f/cards/NumericHeader" { */ sIconFitType?: AvatarImageFitType | keyof typeof AvatarImageFitType ): this; + /** + * Sets a new value for property {@link #getIconInitials iconInitials}. + * + * Defines the initials of the icon. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Reference to `this` in order to allow method chaining + */ + setIconInitials( + /** + * New value for property `iconInitials` + */ + sIconInitials?: string + ): this; /** * Sets a new value for property {@link #getIconSize iconSize}. * @@ -3786,7 +3908,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `S`. * - * @experimental As of version 1.119. + * @since 1.119 * * @returns Reference to `this` in order to allow method chaining */ @@ -3796,10 +3918,29 @@ declare module "sap/f/cards/NumericHeader" { */ sIconSize?: AvatarSize | keyof typeof AvatarSize ): this; + /** + * Sets a new value for property {@link #getIconSrc iconSrc}. + * + * Defines the icon source. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `empty string`. + * + * @since 1.118 + * + * @returns Reference to `this` in order to allow method chaining + */ + setIconSrc( + /** + * New value for property `iconSrc` + */ + sIconSrc?: URI + ): this; /** * Sets the aggregated {@link #getMicroChart microChart}. * - * @experimental As of version 1.124. + * @since 1.124 * * @returns Reference to `this` in order to allow method chaining */ @@ -3910,7 +4051,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `"Neutral"`. * - * @experimental As of version 1.64. + * @since 1.64 * * @returns Reference to `this` in order to allow method chaining */ @@ -3963,7 +4104,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `2`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Reference to `this` in order to allow method chaining */ @@ -3998,7 +4139,7 @@ declare module "sap/f/cards/NumericHeader" { * * Default value is `3`. * - * @experimental As of version 1.101. + * @since 1.101 * * @returns Reference to `this` in order to allow method chaining */ @@ -4061,7 +4202,7 @@ declare module "sap/f/cards/NumericHeader" { /** * Limits the number of lines for the title. * - * @experimental As of version 1.101. + * @since 1.101 */ titleMaxLines?: int | PropertyBindingInfo | `{${string}}`; @@ -4073,7 +4214,7 @@ declare module "sap/f/cards/NumericHeader" { /** * Limits the number of lines for the subtitle. * - * @experimental As of version 1.101. + * @since 1.101 */ subtitleMaxLines?: int | PropertyBindingInfo | `{${string}}`; @@ -4083,35 +4224,76 @@ declare module "sap/f/cards/NumericHeader" { statusText?: string | PropertyBindingInfo; /** - * Defines the size of the icon. + * Defines the shape of the icon. * - * @experimental As of version 1.119. + * @since 1.118 */ - iconSize?: - | (AvatarSize | keyof typeof AvatarSize) + iconDisplayShape?: + | (AvatarShape | keyof typeof AvatarShape) | PropertyBindingInfo | `{${string}}`; /** - * Defines how the image fits in the icon area. + * Defines the icon source. * - * @since 1.130 + * @since 1.118 */ - iconFitType?: - | (AvatarImageFitType | keyof typeof AvatarImageFitType) - | PropertyBindingInfo - | `{${string}}`; + iconSrc?: URI | PropertyBindingInfo | `{${string}}`; /** - * General unit of measurement for the header. Displayed as side information to the subtitle. + * Defines the initials of the icon. + * + * @since 1.118 */ - unitOfMeasurement?: string | PropertyBindingInfo; + iconInitials?: string | PropertyBindingInfo; /** - * The numeric value of the main number indicator. If the value contains more than five characters, only - * the first five are displayed. Without rounding the number. + * Defines an alt text for the avatar or icon. + * + * @since 1.118 */ - number?: string | PropertyBindingInfo; + iconAlt?: string | PropertyBindingInfo; + + /** + * Defines a background color for the avatar or icon. + * + * @since 1.118 + */ + iconBackgroundColor?: + | (AvatarColor | keyof typeof AvatarColor) + | PropertyBindingInfo + | `{${string}}`; + + /** + * Defines the size of the icon. + * + * @since 1.119 + */ + iconSize?: + | (AvatarSize | keyof typeof AvatarSize) + | PropertyBindingInfo + | `{${string}}`; + + /** + * Defines how the image fits in the icon area. + * + * @since 1.130 + */ + iconFitType?: + | (AvatarImageFitType | keyof typeof AvatarImageFitType) + | PropertyBindingInfo + | `{${string}}`; + + /** + * General unit of measurement for the header. Displayed as side information to the subtitle. + */ + unitOfMeasurement?: string | PropertyBindingInfo; + + /** + * The numeric value of the main number indicator. If the value contains more than five characters, only + * the first five are displayed. Without rounding the number. + */ + number?: string | PropertyBindingInfo; /** * The size of the main indicator. Possible values are "S" and "L". @@ -4143,7 +4325,7 @@ declare module "sap/f/cards/NumericHeader" { /** * The semantic color which represents the state of the main number indicator. * - * @experimental As of version 1.64. + * @since 1.64 */ state?: | (ValueColor | keyof typeof ValueColor) @@ -4158,7 +4340,7 @@ declare module "sap/f/cards/NumericHeader" { /** * Limits the number of lines for the details. * - * @experimental As of version 1.101. + * @since 1.101 */ detailsMaxLines?: int | PropertyBindingInfo | `{${string}}`; @@ -4186,7 +4368,7 @@ declare module "sap/f/cards/NumericHeader" { /** * Micro Chart * - * @experimental As of version 1.124. + * @since 1.124 */ microChart?: Control; } @@ -4285,7 +4467,7 @@ declare module "sap/f/cards/NumericSideIndicator" { * * Default value is `"None"`. * - * @experimental As of version 1.95. + * @since 1.95 * * @returns Value of property `state` */ @@ -4329,7 +4511,7 @@ declare module "sap/f/cards/NumericSideIndicator" { * * Default value is `"None"`. * - * @experimental As of version 1.95. + * @since 1.95 * * @returns Reference to `this` in order to allow method chaining */ @@ -4386,7 +4568,7 @@ declare module "sap/f/cards/NumericSideIndicator" { /** * The semantic color which represents the state of the side indicator. * - * @experimental As of version 1.95. + * @since 1.95 */ state?: | (ValueColor | keyof typeof ValueColor) @@ -13696,175 +13878,911 @@ declare module "sap/f/GridListItem" { */ export default class GridListItem extends ListItemBase { /** - * Constructor for a new GridListItem. + * Constructor for a new GridListItem. + * + * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated + * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description + * of the syntax of the settings object. + */ + constructor( + /** + * Initial settings for the new control + */ + mSettings?: $GridListItemSettings + ); + /** + * Constructor for a new GridListItem. + * + * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated + * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description + * of the syntax of the settings object. + */ + constructor( + /** + * ID for the new control, generated automatically if no ID is given + */ + sId?: string, + /** + * Initial settings for the new control + */ + mSettings?: $GridListItemSettings + ); + + /** + * Creates a new subclass of class sap.f.GridListItem with name `sClassName` and enriches it with the information + * contained in `oClassInfo`. + * + * `oClassInfo` might contain the same kind of information as described in {@link sap.m.ListItemBase.extend}. + * + * + * @returns Created class / constructor function + */ + static extend>( + /** + * Name of the class being created + */ + sClassName: string, + /** + * Object literal with information about the class + */ + oClassInfo?: sap.ClassInfo, + /** + * Constructor function for the metadata object; if not given, it defaults to the metadata implementation + * used by this class + */ + FNMetaImpl?: Function + ): Function; + /** + * Returns a metadata object for class sap.f.GridListItem. + * + * + * @returns Metadata object describing this class + */ + static getMetadata(): ElementMetadata; + /** + * Adds some content to the aggregation {@link #getContent content}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + addContent( + /** + * The content to add; if empty, nothing is inserted + */ + oContent: Control + ): this; + /** + * Binds aggregation {@link #getContent content} to model data. + * + * See {@link sap.ui.base.ManagedObject#bindAggregation ManagedObject.bindAggregation} for a detailed description + * of the possible properties of `oBindingInfo`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + bindContent( + /** + * The binding information + */ + oBindingInfo: AggregationBindingInfo + ): this; + /** + * Destroys all the content in the aggregation {@link #getContent content}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyContent(): this; + /** + * Gets content of aggregation {@link #getContent content}. + * + * The content of this list item + */ + getContent(): Control[]; + /** + * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getContent content}. and returns + * its index if found or -1 otherwise. + * + * + * @returns The index of the provided control in the aggregation if found, or -1 otherwise + */ + indexOfContent( + /** + * The content whose index is looked for + */ + oContent: Control + ): int; + /** + * Inserts a content into the aggregation {@link #getContent content}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + insertContent( + /** + * The content to insert; if empty, nothing is inserted + */ + oContent: Control, + /** + * The `0`-based index the content should be inserted at; for a negative value of `iIndex`, the content + * is inserted at position 0; for a value greater than the current size of the aggregation, the content + * is inserted at the last position + */ + iIndex: int + ): this; + /** + * Removes all the controls from the aggregation {@link #getContent content}. + * + * Additionally, it unregisters them from the hosting UIArea. + * + * + * @returns An array of the removed elements (might be empty) + */ + removeAllContent(): Control[]; + /** + * Removes a content from the aggregation {@link #getContent content}. + * + * + * @returns The removed content or `null` + */ + removeContent( + /** + * The content to remove or its index or id + */ + vContent: int | string | Control + ): Control | null; + /** + * Unbinds aggregation {@link #getContent content} from model data. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + unbindContent(): this; + } + /** + * Describes the settings that can be provided to the GridListItem constructor. + */ + export interface $GridListItemSettings extends $ListItemBaseSettings { + /** + * The content of this list item + */ + content?: Control[] | Control | AggregationBindingInfo | `{${string}}`; + } +} + +declare module "sap/f/HeroBanner" { + import { + default as WebComponent, + $WebComponentSettings, + } from "sap/ui/core/webc/WebComponent"; + + import Control from "sap/ui/core/Control"; + + import { + HeroBannerActionsPlacement, + HeroBannerColumnsRatio, + HeroBannerHeaderBlockPlacement, + } from "sap/f/library"; + + import { CSSSize } from "sap/ui/core/library"; + + import WebComponentMetadata from "sap/ui/core/webc/WebComponentMetadata"; + + import { + PropertyBindingInfo, + AggregationBindingInfo, + } from "sap/ui/base/ManagedObject"; + + /** + * A flexible, full-width banner designed for placement at the top of a page. + * + * Overview: The `HeroBanner` provides a personalized greeting and quick access to key information or actions. + * + * Structure: The `HeroBanner` consists of the following building blocks: + * - **Overline** (optional) - contextual text at the top, e.g. the current date or a status message. + * + * - **Header** (optional) - the main greeting header below the overline, e.g. "Hello, John". + * - **Actions** (optional) - buttons displayed in the header area. + * - **Start Content** (optional) - customizable first content column. + * - **End Content** (optional) - customizable second content column, shown alongside start content. + * + * Usage: Place the `HeroBanner` at the top of a page to welcome the user and surface relevant information + * or shortcuts at a glance. + * + * The hero banner itself is non-interactive. However, interactive elements such as buttons, cards, or search + * fields can be placed inside the content slots. + * + * Responsive Behavior: The `HeroBanner` adapts to different screen sizes: + * - On smaller screens, split layouts collapse to a single stacked column. + * - The heading text wraps to multiple lines as needed. + * - On screens ≤1024px, the header text is wrapped to a maximum of 3 lines. + * + * @experimental As of version 1.152. + */ + export default class HeroBanner extends WebComponent { + /** + * Constructor for a new `HeroBanner`. + * + * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated + * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description + * of the syntax of the settings object. + */ + constructor( + /** + * Initial settings for the new control + */ + mSettings?: $HeroBannerSettings + ); + /** + * Constructor for a new `HeroBanner`. + * + * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated + * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description + * of the syntax of the settings object. + */ + constructor( + /** + * ID for the new control, generated automatically if no ID is given + */ + sId?: string, + /** + * Initial settings for the new control + */ + mSettings?: $HeroBannerSettings + ); + + /** + * Creates a new subclass of class sap.f.HeroBanner with name `sClassName` and enriches it with the information + * contained in `oClassInfo`. + * + * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.webc.WebComponent.extend}. + * + * + * @returns Created class / constructor function + */ + static extend>( + /** + * Name of the class being created + */ + sClassName: string, + /** + * Object literal with information about the class + */ + oClassInfo?: sap.ClassInfo, + /** + * Constructor function for the metadata object; if not given, it defaults to the metadata implementation + * used by this class + */ + FNMetaImpl?: Function + ): Function; + /** + * Returns a metadata object for class sap.f.HeroBanner. + * + * + * @returns Metadata object describing this class + */ + static getMetadata(): WebComponentMetadata; + /** + * Adds some action to the aggregation {@link #getActions actions}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + addAction( + /** + * The action to add; if empty, nothing is inserted + */ + oAction: Control + ): this; + /** + * Adds some endContent to the aggregation {@link #getEndContent endContent}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + addEndContent( + /** + * The endContent to add; if empty, nothing is inserted + */ + oEndContent: Control + ): this; + /** + * Adds some startContent to the aggregation {@link #getStartContent startContent}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + addStartContent( + /** + * The startContent to add; if empty, nothing is inserted + */ + oStartContent: Control + ): this; + /** + * Destroys all the actions in the aggregation {@link #getActions actions}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyActions(): this; + /** + * Destroys all the endContent in the aggregation {@link #getEndContent endContent}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyEndContent(): this; + /** + * Destroys all the startContent in the aggregation {@link #getStartContent startContent}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyStartContent(): this; + /** + * Gets content of aggregation {@link #getActions actions}. + * + * Defines action buttons displayed in the header area of the hero banner. + * + * Can contain buttons, links, or other interactive elements that provide quick access to relevant actions + * directly from the hero banner header. + */ + getActions(): Control[]; + /** + * Gets current value of property {@link #getActionsPlacement actionsPlacement}. + * + * Defines the placement of the actions slot within the hero banner header. + * + * Allowed values: + * - `TopEnd` (default) - Actions are displayed to the right of the header text, at the top of the header + * row. + * - `BottomStart` - Actions are displayed below the header text, left-aligned, regardless of `columnsRatio` + * or slot usage. + * + * Default value is `"TopEnd"`. + * + * + * @returns Value of property `actionsPlacement` + */ + getActionsPlacement(): HeroBannerActionsPlacement; + /** + * Gets current value of property {@link #getBackgroundImage backgroundImage}. + * + * Defines the background image of the hero banner. + * + * Accepts any valid CSS `background-image` value, e.g. `url("path/to/image.jpg")`. + * + * + * @returns Value of property `backgroundImage` + */ + getBackgroundImage(): string; + /** + * Gets current value of property {@link #getColumnsRatio columnsRatio}. + * + * Defines the ratio between the two content columns inside the hero banner. + * + * Takes effect only when `endContent` is provided. When no `endContent` is present, the content spans the + * full width (single column). + * + * Allowed values: + * - `Equal` - Two equal columns. Both content blocks share the available width equally. On smaller screens, + * both slots stack vertically. + * - `FirstWider` - Two unequal columns. The start content takes two-thirds of the width, the end content + * one-third. On smaller screens, both slots stack vertically. + * + * Default value is `"FirstWider"`. + * + * + * @returns Value of property `columnsRatio` + */ + getColumnsRatio(): HeroBannerColumnsRatio; + /** + * Gets content of aggregation {@link #getEndContent endContent}. + * + * Defines the second content block of the hero banner. + * + * Used alongside `startContent` when `columnsRatio` is set to `Equal` or `FirstWider`. Can contain cards, + * buttons, and other interactive elements. + */ + getEndContent(): Control[]; + /** + * Gets current value of property {@link #getHeaderBlockPlacement headerBlockPlacement}. + * + * Defines the vertical placement of the header block within the content area. + * + * Allowed values: + * - `Top` (default) - Header block is placed at the top of the content area. + * - `Bottom` - Header block is pushed to the bottom of column 1. Only takes effect when `columnsRatio` + * is `Equal` or `FirstWider` and only `endContent` is provided. When `actionsPlacement` is also `BottomStart`, + * the `endContent` slot spans the full height. + * + * Default value is `"Top"`. + * + * + * @returns Value of property `headerBlockPlacement` + */ + getHeaderBlockPlacement(): HeroBannerHeaderBlockPlacement; + /** + * Gets current value of property {@link #getHeaderText headerText}. + * + * Defines the header text displayed in the hero banner. + * + * This is the main greeting header, typically a personalized message such as "Hello, John". + * + * + * @returns Value of property `headerText` + */ + getHeaderText(): string; + /** + * Gets current value of property {@link #getHeight height}. + * + * Defines the height of the `HeroBanner`. + * + * + * @returns Value of property `height` + */ + getHeight(): CSSSize; + /** + * Gets current value of property {@link #getOverlineText overlineText}. + * + * Defines text displayed above the heading as an overline. + * + * Can be used to show the current date, a status message, or any other relevant contextual information. + * + * + * @returns Value of property `overlineText` + */ + getOverlineText(): string; + /** + * Gets content of aggregation {@link #getStartContent startContent}. + * + * Defines the first (default) content block of the hero banner. + * + * Content placed directly inside `HeroBanner` without a slot attribute lands here. Can contain KPI cards, + * search input fields, text, buttons, and more. + */ + getStartContent(): Control[]; + /** + * Gets current value of property {@link #getWidth width}. + * + * Defines the width of the `HeroBanner`. + * + * + * @returns Value of property `width` + */ + getWidth(): CSSSize; + /** + * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getActions actions}. and returns + * its index if found or -1 otherwise. + * + * + * @returns The index of the provided control in the aggregation if found, or -1 otherwise + */ + indexOfAction( + /** + * The action whose index is looked for + */ + oAction: Control + ): int; + /** + * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getEndContent endContent}. and + * returns its index if found or -1 otherwise. + * + * + * @returns The index of the provided control in the aggregation if found, or -1 otherwise + */ + indexOfEndContent( + /** + * The endContent whose index is looked for + */ + oEndContent: Control + ): int; + /** + * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getStartContent startContent}. + * and returns its index if found or -1 otherwise. + * + * + * @returns The index of the provided control in the aggregation if found, or -1 otherwise + */ + indexOfStartContent( + /** + * The startContent whose index is looked for + */ + oStartContent: Control + ): int; + /** + * Inserts a action into the aggregation {@link #getActions actions}. * - * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated - * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description - * of the syntax of the settings object. + * + * @returns Reference to `this` in order to allow method chaining */ - constructor( + insertAction( /** - * Initial settings for the new control + * The action to insert; if empty, nothing is inserted */ - mSettings?: $GridListItemSettings - ); + oAction: Control, + /** + * The `0`-based index the action should be inserted at; for a negative value of `iIndex`, the action is + * inserted at position 0; for a value greater than the current size of the aggregation, the action is inserted + * at the last position + */ + iIndex: int + ): this; /** - * Constructor for a new GridListItem. + * Inserts a endContent into the aggregation {@link #getEndContent endContent}. * - * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated - * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description - * of the syntax of the settings object. + * + * @returns Reference to `this` in order to allow method chaining */ - constructor( + insertEndContent( /** - * ID for the new control, generated automatically if no ID is given + * The endContent to insert; if empty, nothing is inserted */ - sId?: string, + oEndContent: Control, /** - * Initial settings for the new control + * The `0`-based index the endContent should be inserted at; for a negative value of `iIndex`, the endContent + * is inserted at position 0; for a value greater than the current size of the aggregation, the endContent + * is inserted at the last position */ - mSettings?: $GridListItemSettings - ); - + iIndex: int + ): this; /** - * Creates a new subclass of class sap.f.GridListItem with name `sClassName` and enriches it with the information - * contained in `oClassInfo`. - * - * `oClassInfo` might contain the same kind of information as described in {@link sap.m.ListItemBase.extend}. + * Inserts a startContent into the aggregation {@link #getStartContent startContent}. * * - * @returns Created class / constructor function + * @returns Reference to `this` in order to allow method chaining */ - static extend>( + insertStartContent( /** - * Name of the class being created + * The startContent to insert; if empty, nothing is inserted */ - sClassName: string, + oStartContent: Control, /** - * Object literal with information about the class + * The `0`-based index the startContent should be inserted at; for a negative value of `iIndex`, the startContent + * is inserted at position 0; for a value greater than the current size of the aggregation, the startContent + * is inserted at the last position */ - oClassInfo?: sap.ClassInfo, + iIndex: int + ): this; + /** + * Removes a action from the aggregation {@link #getActions actions}. + * + * + * @returns The removed action or `null` + */ + removeAction( /** - * Constructor function for the metadata object; if not given, it defaults to the metadata implementation - * used by this class + * The action to remove or its index or id */ - FNMetaImpl?: Function - ): Function; + vAction: int | string | Control + ): Control | null; /** - * Returns a metadata object for class sap.f.GridListItem. + * Removes all the controls from the aggregation {@link #getActions actions}. * + * Additionally, it unregisters them from the hosting UIArea. * - * @returns Metadata object describing this class + * + * @returns An array of the removed elements (might be empty) */ - static getMetadata(): ElementMetadata; + removeAllActions(): Control[]; /** - * Adds some content to the aggregation {@link #getContent content}. + * Removes all the controls from the aggregation {@link #getEndContent endContent}. + * + * Additionally, it unregisters them from the hosting UIArea. * * - * @returns Reference to `this` in order to allow method chaining + * @returns An array of the removed elements (might be empty) */ - addContent( + removeAllEndContent(): Control[]; + /** + * Removes all the controls from the aggregation {@link #getStartContent startContent}. + * + * Additionally, it unregisters them from the hosting UIArea. + * + * + * @returns An array of the removed elements (might be empty) + */ + removeAllStartContent(): Control[]; + /** + * Removes a endContent from the aggregation {@link #getEndContent endContent}. + * + * + * @returns The removed endContent or `null` + */ + removeEndContent( /** - * The content to add; if empty, nothing is inserted + * The endContent to remove or its index or id */ - oContent: Control - ): this; + vEndContent: int | string | Control + ): Control | null; /** - * Binds aggregation {@link #getContent content} to model data. + * Removes a startContent from the aggregation {@link #getStartContent startContent}. * - * See {@link sap.ui.base.ManagedObject#bindAggregation ManagedObject.bindAggregation} for a detailed description - * of the possible properties of `oBindingInfo`. + * + * @returns The removed startContent or `null` + */ + removeStartContent( + /** + * The startContent to remove or its index or id + */ + vStartContent: int | string | Control + ): Control | null; + /** + * Sets a new value for property {@link #getActionsPlacement actionsPlacement}. + * + * Defines the placement of the actions slot within the hero banner header. + * + * Allowed values: + * - `TopEnd` (default) - Actions are displayed to the right of the header text, at the top of the header + * row. + * - `BottomStart` - Actions are displayed below the header text, left-aligned, regardless of `columnsRatio` + * or slot usage. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `"TopEnd"`. * * * @returns Reference to `this` in order to allow method chaining */ - bindContent( + setActionsPlacement( /** - * The binding information + * New value for property `actionsPlacement` */ - oBindingInfo: AggregationBindingInfo + sActionsPlacement?: + | HeroBannerActionsPlacement + | keyof typeof HeroBannerActionsPlacement ): this; /** - * Destroys all the content in the aggregation {@link #getContent content}. + * Sets a new value for property {@link #getBackgroundImage backgroundImage}. + * + * Defines the background image of the hero banner. + * + * Accepts any valid CSS `background-image` value, e.g. `url("path/to/image.jpg")`. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. * * * @returns Reference to `this` in order to allow method chaining */ - destroyContent(): this; + setBackgroundImage( + /** + * New value for property `backgroundImage` + */ + sBackgroundImage: string + ): this; /** - * Gets content of aggregation {@link #getContent content}. + * Sets a new value for property {@link #getColumnsRatio columnsRatio}. * - * The content of this list item - */ - getContent(): Control[]; - /** - * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getContent content}. and returns - * its index if found or -1 otherwise. + * Defines the ratio between the two content columns inside the hero banner. * + * Takes effect only when `endContent` is provided. When no `endContent` is present, the content spans the + * full width (single column). * - * @returns The index of the provided control in the aggregation if found, or -1 otherwise + * Allowed values: + * - `Equal` - Two equal columns. Both content blocks share the available width equally. On smaller screens, + * both slots stack vertically. + * - `FirstWider` - Two unequal columns. The start content takes two-thirds of the width, the end content + * one-third. On smaller screens, both slots stack vertically. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `"FirstWider"`. + * + * + * @returns Reference to `this` in order to allow method chaining */ - indexOfContent( + setColumnsRatio( /** - * The content whose index is looked for + * New value for property `columnsRatio` */ - oContent: Control - ): int; + sColumnsRatio?: + | HeroBannerColumnsRatio + | keyof typeof HeroBannerColumnsRatio + ): this; /** - * Inserts a content into the aggregation {@link #getContent content}. + * Sets a new value for property {@link #getHeaderBlockPlacement headerBlockPlacement}. + * + * Defines the vertical placement of the header block within the content area. + * + * Allowed values: + * - `Top` (default) - Header block is placed at the top of the content area. + * - `Bottom` - Header block is pushed to the bottom of column 1. Only takes effect when `columnsRatio` + * is `Equal` or `FirstWider` and only `endContent` is provided. When `actionsPlacement` is also `BottomStart`, + * the `endContent` slot spans the full height. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `"Top"`. * * * @returns Reference to `this` in order to allow method chaining */ - insertContent( + setHeaderBlockPlacement( /** - * The content to insert; if empty, nothing is inserted + * New value for property `headerBlockPlacement` */ - oContent: Control, + sHeaderBlockPlacement?: + | HeroBannerHeaderBlockPlacement + | keyof typeof HeroBannerHeaderBlockPlacement + ): this; + /** + * Sets a new value for property {@link #getHeaderText headerText}. + * + * Defines the header text displayed in the hero banner. + * + * This is the main greeting header, typically a personalized message such as "Hello, John". + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setHeaderText( /** - * The `0`-based index the content should be inserted at; for a negative value of `iIndex`, the content - * is inserted at position 0; for a value greater than the current size of the aggregation, the content - * is inserted at the last position + * New value for property `headerText` */ - iIndex: int + sHeaderText: string ): this; /** - * Removes all the controls from the aggregation {@link #getContent content}. + * Sets a new value for property {@link #getHeight height}. * - * Additionally, it unregisters them from the hosting UIArea. + * Defines the height of the `HeroBanner`. * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * @returns An array of the removed elements (might be empty) + * + * @returns Reference to `this` in order to allow method chaining */ - removeAllContent(): Control[]; + setHeight( + /** + * New value for property `height` + */ + sHeight: CSSSize + ): this; /** - * Removes a content from the aggregation {@link #getContent content}. + * Sets a new value for property {@link #getOverlineText overlineText}. * + * Defines text displayed above the heading as an overline. * - * @returns The removed content or `null` + * Can be used to show the current date, a status message, or any other relevant contextual information. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * + * @returns Reference to `this` in order to allow method chaining */ - removeContent( + setOverlineText( /** - * The content to remove or its index or id + * New value for property `overlineText` */ - vContent: int | string | Control - ): Control | null; + sOverlineText: string + ): this; /** - * Unbinds aggregation {@link #getContent content} from model data. + * Sets a new value for property {@link #getWidth width}. + * + * Defines the width of the `HeroBanner`. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. * * * @returns Reference to `this` in order to allow method chaining */ - unbindContent(): this; + setWidth( + /** + * New value for property `width` + */ + sWidth: CSSSize + ): this; } /** - * Describes the settings that can be provided to the GridListItem constructor. + * Describes the settings that can be provided to the HeroBanner constructor. + * + * @experimental As of version 1.152. */ - export interface $GridListItemSettings extends $ListItemBaseSettings { + export interface $HeroBannerSettings extends $WebComponentSettings { /** - * The content of this list item + * Defines the background image of the hero banner. + * + * Accepts any valid CSS `background-image` value, e.g. `url("path/to/image.jpg")`. */ - content?: Control[] | Control | AggregationBindingInfo | `{${string}}`; + backgroundImage?: string | PropertyBindingInfo; + + /** + * Defines the placement of the actions slot within the hero banner header. + * + * Allowed values: + * - `TopEnd` (default) - Actions are displayed to the right of the header text, at the top of the header + * row. + * - `BottomStart` - Actions are displayed below the header text, left-aligned, regardless of `columnsRatio` + * or slot usage. + */ + actionsPlacement?: + | (HeroBannerActionsPlacement | keyof typeof HeroBannerActionsPlacement) + | PropertyBindingInfo + | `{${string}}`; + + /** + * Defines the ratio between the two content columns inside the hero banner. + * + * Takes effect only when `endContent` is provided. When no `endContent` is present, the content spans the + * full width (single column). + * + * Allowed values: + * - `Equal` - Two equal columns. Both content blocks share the available width equally. On smaller screens, + * both slots stack vertically. + * - `FirstWider` - Two unequal columns. The start content takes two-thirds of the width, the end content + * one-third. On smaller screens, both slots stack vertically. + */ + columnsRatio?: + | (HeroBannerColumnsRatio | keyof typeof HeroBannerColumnsRatio) + | PropertyBindingInfo + | `{${string}}`; + + /** + * Defines the vertical placement of the header block within the content area. + * + * Allowed values: + * - `Top` (default) - Header block is placed at the top of the content area. + * - `Bottom` - Header block is pushed to the bottom of column 1. Only takes effect when `columnsRatio` + * is `Equal` or `FirstWider` and only `endContent` is provided. When `actionsPlacement` is also `BottomStart`, + * the `endContent` slot spans the full height. + */ + headerBlockPlacement?: + | ( + | HeroBannerHeaderBlockPlacement + | keyof typeof HeroBannerHeaderBlockPlacement + ) + | PropertyBindingInfo + | `{${string}}`; + + /** + * Defines the header text displayed in the hero banner. + * + * This is the main greeting header, typically a personalized message such as "Hello, John". + */ + headerText?: string | PropertyBindingInfo; + + /** + * Defines text displayed above the heading as an overline. + * + * Can be used to show the current date, a status message, or any other relevant contextual information. + */ + overlineText?: string | PropertyBindingInfo; + + /** + * Defines the width of the `HeroBanner`. + */ + width?: CSSSize | PropertyBindingInfo | `{${string}}`; + + /** + * Defines the height of the `HeroBanner`. + */ + height?: CSSSize | PropertyBindingInfo | `{${string}}`; + + /** + * Defines action buttons displayed in the header area of the hero banner. + * + * Can contain buttons, links, or other interactive elements that provide quick access to relevant actions + * directly from the hero banner header. + */ + actions?: Control[] | Control | AggregationBindingInfo | `{${string}}`; + + /** + * Defines the first (default) content block of the hero banner. + * + * Content placed directly inside `HeroBanner` without a slot attribute lands here. Can contain KPI cards, + * search input fields, text, buttons, and more. + */ + startContent?: Control[] | Control | AggregationBindingInfo | `{${string}}`; + + /** + * Defines the second content block of the hero banner. + * + * Used alongside `startContent` when `columnsRatio` is set to `Equal` or `FirstWider`. Can contain cards, + * buttons, and other interactive elements. + */ + endContent?: Control[] | Control | AggregationBindingInfo | `{${string}}`; } } @@ -23456,6 +24374,8 @@ declare namespace sap { "sap/f/GridListItem": undefined; + "sap/f/HeroBanner": undefined; + "sap/f/IllustratedMessage": undefined; "sap/f/Illustration": undefined; diff --git a/types/openui5/sap.m.d.ts b/types/openui5/sap.m.d.ts index 0323f388db9306..0447b0f81f2e5d 100644 --- a/types/openui5/sap.m.d.ts +++ b/types/openui5/sap.m.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.151.0 +// For Library Version: 1.152.0 declare module "sap/f/library" { export interface IShellBar { @@ -30700,7 +30700,7 @@ declare module "sap/m/FeedListItem" { * 1.23 the new feature expand / collapse was introduced, which uses the property maxCharacters. Beginning * with release 1.44, sap.m.FormattedText was introduced which allows html formatted text to be displayed. * The `actions` aggregation must contain instances of {@link sap.m.FeedListItemAction} in order to display - * them in the action sheet. + * them in a menu. * * @since 1.12 */ @@ -153171,6 +153171,8 @@ declare module "sap/m/TimePickerClocks" { declare module "sap/m/TimePickerInputs" { import { default as Control, $ControlSettings } from "sap/ui/core/Control"; + import Event from "sap/ui/base/Event"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import UI5Date from "sap/ui/core/date/UI5Date"; @@ -153243,6 +153245,90 @@ declare module "sap/m/TimePickerInputs" { * @returns Metadata object describing this class */ static getMetadata(): ElementMetadata; + /** + * Attaches event handler `fnFunction` to the {@link #event:change change} event of this `sap.m.TimePickerInputs`. + * + * 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.m.TimePickerInputs` itself. + * + * Fired when the user commits a time edit — via digit / arrow / backspace / delete keys or by selecting + * a different AM/PM. Consumers can use this to react to user interaction with the time inputs, since the + * inner Input controls do not fire their own change event (onkeydown is intercepted and values are written + * directly through setValue). + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachChange( + /** + * 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: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.TimePickerInputs` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:change change} event of this `sap.m.TimePickerInputs`. + * + * 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.m.TimePickerInputs` itself. + * + * Fired when the user commits a time edit — via digit / arrow / backspace / delete keys or by selecting + * a different AM/PM. Consumers can use this to react to user interaction with the time inputs, since the + * inner Input controls do not fire their own change event (onkeydown is intercepted and values are written + * directly through setValue). + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachChange( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.TimePickerInputs` itself + */ + oListener?: object + ): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:change change} event of this `sap.m.TimePickerInputs`. + * + * The passed function and listener object must match the ones used for event registration. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + detachChange( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; + /** + * Fires event {@link #event:change change} to attached listeners. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns Reference to `this` in order to allow method chaining + */ + fireChange( + /** + * Parameters to pass along with the event + */ + mParameters?: object + ): this; /** * Gets the time values from the clocks, as a date object. * @@ -153266,7 +153352,28 @@ declare module "sap/m/TimePickerInputs" { /** * Describes the settings that can be provided to the TimePickerInputs constructor. */ - export interface $TimePickerInputsSettings extends $ControlSettings {} + export interface $TimePickerInputsSettings extends $ControlSettings { + /** + * Fired when the user commits a time edit — via digit / arrow / backspace / delete keys or by selecting + * a different AM/PM. Consumers can use this to react to user interaction with the time inputs, since the + * inner Input controls do not fire their own change event (onkeydown is intercepted and values are written + * directly through setValue). + */ + change?: (oEvent: Event) => void; + } + + /** + * Parameters of the TimePickerInputs#change event. + */ + export interface TimePickerInputs$ChangeEventParameters {} + + /** + * Event object of the TimePickerInputs#change event. + */ + export type TimePickerInputs$ChangeEvent = Event< + TimePickerInputs$ChangeEventParameters, + TimePickerInputs + >; } declare module "sap/m/TimePickerSliders" { @@ -158749,6 +158856,9 @@ declare module "sap/m/upload/FilePreviewDialog" { * * Custom buttons, to be displayed in the preview dialog footer. * Control by default adds two buttons (download and close). + * **Note:** Buttons added using this aggregation cannot use `sap.m.ButtonType.Emphasized` since the Download + * button is already rendered as emphasized to comply with the SAP Fiori action placement guidelines. Adding + * another emphasized button violates the single-primary-action pattern. */ getAdditionalFooterButtons(): Button[]; /** @@ -159056,6 +159166,9 @@ declare module "sap/m/upload/FilePreviewDialog" { /** * Custom buttons, to be displayed in the preview dialog footer. * Control by default adds two buttons (download and close). + * **Note:** Buttons added using this aggregation cannot use `sap.m.ButtonType.Emphasized` since the Download + * button is already rendered as emphasized to comply with the SAP Fiori action placement guidelines. Adding + * another emphasized button violates the single-primary-action pattern. */ additionalFooterButtons?: | Button[] diff --git a/types/openui5/sap.tnt.d.ts b/types/openui5/sap.tnt.d.ts index 7fe1809a60412f..fe2c2320d6f1e8 100644 --- a/types/openui5/sap.tnt.d.ts +++ b/types/openui5/sap.tnt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.151.0 +// For Library Version: 1.152.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 335b9da15d5174..529bb4225494d3 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.151.0 +// For Library Version: 1.152.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 4ed6d470cc7369..90b71bea270818 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.151.0 +// For Library Version: 1.152.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 54f14d70ed5784..43d4e231ea99ac 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.151.0 +// For Library Version: 1.152.0 declare module "sap/base/assert" { /** @@ -33320,6 +33320,30 @@ declare module "sap/ui/core/IconPool" { */ sMimeType: string ): string; + /** + * Returns the HTML string for an icon URI. + * + * This method reuses the rendering logic from {@link sap.ui.core.RenderManager#icon} by calling it with + * a lightweight DOM-building interface that mirrors the RenderManager's semantic API. + * + * @since 1.152 + * + * @returns The HTML string for the icon, or empty string if the URI is not a valid icon URI + */ + getIconHTML( + /** + * The icon URI (e.g. "sap-icon://accept") + */ + sURI: URI, + /** + * Additional CSS classes to add to the icon element + */ + aClasses?: string[], + /** + * Additional HTML attributes as key-value pairs + */ + mAttributes?: object + ): string; /** * Returns an info object for the icon with the given `iconName` and `collectionName`. * @@ -42149,10 +42173,15 @@ declare module "sap/ui/core/RenderManager" { */ aClasses?: any[] | string, /** - * Additional attributes that will be added to the rendered tag. Currently the attributes `class` and `style` - * are not allowed + * Additional attributes that will be added to the rendered tag. The attributes `class` and `style` are + * not allowed. Use the `mStyles` parameter to set inline styles. */ - mAttributes?: object + mAttributes?: object, + /** + * A map of CSS property names and their values to be set as inline styles on the rendered tag. Example: + * `{width: "16px", height: "16px"}`. This parameter is available since version 1.152. + */ + mStyles?: object ): this; /** * Ends an open tag started with `openStart`. @@ -73681,6 +73710,8 @@ declare module "sap/ui/model/odata/v4/Context" { static getMetadata(): Metadata; /** * Collapses the group node that this context points to. + * + * **Note:** It is unsafe to keep a reference to a context instance which is not {@link #isKeepAlive kept alive}. * See: * #expand * #isExpanded @@ -73744,7 +73775,7 @@ declare module "sap/ui/model/odata/v4/Context" { * Such a deletion is not a pending change. * * When using data aggregation without `groupLevels`, single entities can be deleted (since 1.151.0, see - * {@link #isAggregated}). The same restrictions as for a recursive hierarchy apply. + * {@link #isAggregated}). The group ID must not have {@link sap.ui.model.odata.v4.SubmitMode.API}. * See: * #hasPendingChanges * #resetChanges @@ -73873,7 +73904,9 @@ declare module "sap/ui/model/odata/v4/Context" { * * @returns The context's index within the binding's collection. It is `undefined` if * it does not belong to a list binding, it is {@link #isKeepAlive kept alive}, but not in the collection - * currently. + * currently. When collapsing a node's ancestor in a recursive hierarchy, the index becomes `undefined`. + * After expanding, the index is only determined again when that node comes into view, so to say. Use {@link sap.ui.model.odata.v4.ODataListBinding#getAllCurrentContexts } + * to try to determine the index again. */ getIndex(): number | undefined; /** @@ -74916,7 +74949,9 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" { * Since 1.151.0, if the operation returns an "Edm.Stream" and the group ID '$stream' is used, the promise * resolves with a partial `Response` object containing only: * `body`: The response's `ReadableStream` `headers`: The response's `Headers` The promise - * rejects if '$stream' is used with a wrong return type. + * rejects with an `Error` instance if '$stream' is used with a wrong return type or the fetch request fails. + * In the latter case, the error contains the following properties: + * `status`: {number} HTTP status code `statusText`: {string} (optional) HTTP status text */ invoke( /** @@ -76969,7 +77004,8 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" { /** * Type-specific format options, since 1.81.0. The boolean format option "parseKeepsEmptyString" applies * to {@link sap.ui.model.odata.type.String} only and is ignored for all other types. All other format options - * are passed "as is". + * are passed "as is". Since 1.152.0, "parseKeepsEmptyString" is automatically set based on the model parameter + * of the same name unless you provide `parseKeepsEmptyString: false` in `mFormatOptions`. */ mFormatOptions?: object ): ODataType; @@ -77309,7 +77345,8 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" { /** * Type-specific format options, since 1.81.0. The boolean format option "parseKeepsEmptyString" applies * to {@link sap.ui.model.odata.type.String} only and is ignored for all other types. All other format options - * are passed "as is". + * are passed "as is". Since 1.152.0, "parseKeepsEmptyString" is automatically set based on the model parameter + * of the same name unless you provide `parseKeepsEmptyString: false` in `mFormatOptions`. */ mFormatOptions?: object ): Promise; @@ -77585,6 +77622,13 @@ declare module "sap/ui/model/odata/v4/ODataModel" { * is called. */ operationMode?: OperationMode | keyof typeof OperationMode; + /** + * Whether the format option `parseKeepsEmptyString` is set to `true` for all instances of {@link sap.ui.model.odata.type.String } + * that are created automatically during type detection; only the value `true` is allowed; see {@link #getParseKeepsEmptyString}. + * + * @since 1.152.0 + */ + parseKeepsEmptyString?: boolean; /** * Root URL of the service to request data from. The path part of the URL must end with a forward slash * according to OData V4 specification ABNF, rule "serviceRoot". You may append OData custom query options @@ -78384,6 +78428,19 @@ declare module "sap/ui/model/odata/v4/ODataModel" { * @deprecated As of version 1.37.0. calling this method is not supported */ getOriginalProperty(): void; + /** + * Returns whether the `parseKeepsEmptyString` format option is set to `true` for all instances of {@link sap.ui.model.odata.type.String } + * that are created automatically during {@link sap.ui.model.odata.v4.ODataMetaModel#requestUI5Type type detection } + * (as defined by the `parseKeepsEmptyString` model parameter, see {@link #constructor}). Use this model + * setting if your OData service cannot handle `null` values for string properties. + * See: + * #constructor + * + * @since 1.152.0 + * + * @returns Whether the `parseKeepsEmptyString` model parameter is set + */ + getParseKeepsEmptyString(): boolean; /** * Method not supported * See: @@ -78573,9 +78630,9 @@ declare module "sap/ui/model/odata/v4/ODataModel" { * The handler is called with an `Error` having a property `retryAfter` of type `Date`, which is the earliest * point in time when the request should be repeated. The handler has to return a promise. With this promise, * you can control the repetition of all pending requests including the failed HTTP request. If the promise - * is resolved, the requests are repeated; if it is rejected, the requests are not repeated. If it is rejected - * with the same `Error` reason as previously passed to the handler, then this reason is reported to the - * message model. + * is resolved, the requests are repeated; if it is rejected, the requests are not repeated but fail with + * same reason as the promise. If the promise is rejected with the same `Error` reason as previously passed + * to the handler, this reason is reported to the message model. * * @since 1.134.0 */ @@ -79254,6 +79311,110 @@ declare module "sap/ui/model/odata/v4/ODataUtils" { */ sDateTimeOffset: string ): Date; + /** + * Parses a filter string to a syntax tree. In this tree: + * Paths are leaves with `id="PATH"` and the path in `value`. Literals are leaves with `id="VALUE"` + * and the literal (as parsed) in `value`. Operations are nodes with the operator in `id`, the operator + * including the surrounding required space in `value`, and `left` and `right` containing syntax trees for + * the operands. `not` only uses `right`. Functions are nodes with `id="FUNCTION"`, the name in `value`, + * and an array of `parameters`. If the type is known (especially for logical operators and functions), + * it is given in `type`. If a function parameter may have different types (like Edm.Decimal or Edm.Double + * in `round`), it has the property `ambiguous: true`. `at` always contains the position where this token + * started (starting with 1). + * + * Example: `parseFilter("foo eq 'bar' and length(baz) ne 5")` results in + * ```javascript + * + * { + * id : "and", value : " and ", type : "Edm.Boolean", at : 14, + * left : { + * id : "eq", value : " eq ", type : "Edm.Boolean", at : 5, + * left : {id : "PATH", value : "foo", at : 1}, + * right : {id : "VALUE", value : "'bar'", at : 8} + * }, + * right : { + * id : "ne", value : " ne ", type : "Edm.Boolean", at : 30, + * left : { + * id : "FUNCTION", value : "length", type : "Edm.Int32", at : 18, + * parameters : [{id : "PATH", value : "baz", at : 25}] + * }, + * right : {id : "VALUE", value : "5", at : 33} + * } + * } + * ``` + * + * + * @since 1.152.0 + * + * @returns The syntax tree + */ + parseFilter( + /** + * The filter string + */ + sFilter: string + ): object; + /** + * Parses a system query option "$select" or "$expand" into an object representation. + * + * The value for "$select" is an array of strings. + * + * The value for "$expand" is an object with the path as key and the options object as value. Each option + * itself becomes a property with the option name as key and the option value as value. If there are no + * options, the value for the path is `null`. + * + * If `bParseFilter` is set, the value for "$filter" is a syntax tree as described in {@link #.parseFilter}; + * otherwise it is the string passed to it. + * + * The value for all other options is the string passed to them. + * + * **Example:** + * + * + * ```javascript + * + * sOption = "$expand=SO_2_BP,SO_2_SOITEM($expand=SOITEM_2_PRODUCT($expand=PRODUCT_2_BP" + * + ";$select=ID,Name);$select=*;$count=true;$orderby=Name desc)" + * ``` + * is converted to + * ```javascript + * + * { + * "$expand" : { + * "SO_2_BP" : null, + * "SO_2_SOITEM" : { + * "$count" : "true", + * "$expand" : { + * "SOITEM_2_PRODUCT" : { + * "$expand" : { + * "PRODUCT_2_BP" : null + * }, + * "$select" : ["ID", "Name"] + * } + * }, + * "$orderby" : "Name desc", + * "$select" : ["*"] + * } + * } + * } + * ``` + * + * + * @since 1.152.0 + * + * @returns The option as an object with the option name as key and the parsed value as value + */ + parseSystemQueryOption( + /** + * The option string + */ + sOption: string, + /** + * Whether to parse the value of "$filter" into a syntax tree as described in {@link #.parseFilter}; by + * default, the value remains a string + */ + bParseFilter?: boolean + ): object; /** * Parses an "Edm.TimeOfDay" value and returns the corresponding JavaScript `Date` value (UTC with a date * value of "1970-01-01"). @@ -91632,6 +91793,8 @@ declare namespace sap { "sap/ui/model/xml/XMLTreeBinding": undefined; + "sap/ui/performance/FetchInterceptor": undefined; + "sap/ui/performance/Measurement": undefined; "sap/ui/performance/trace/FESR": undefined; diff --git a/types/openui5/sap.ui.dt.d.ts b/types/openui5/sap.ui.dt.d.ts index 05fe4804d20c98..3bfd7cacbd4c24 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.151.0 +// For Library Version: 1.152.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 035f4e39acb4f7..b498dc1eefa0ab 100644 --- a/types/openui5/sap.ui.fl.d.ts +++ b/types/openui5/sap.ui.fl.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/fl/library" {} diff --git a/types/openui5/sap.ui.integration.d.ts b/types/openui5/sap.ui.integration.d.ts index cb8a017a0f4b8a..dca900a446cdef 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/integration/library" { import { URI } from "sap/ui/core/library"; @@ -29,19 +29,17 @@ declare module "sap/ui/integration/library" { * This enum is part of the 'sap/ui/integration/library' module export and must be accessed by the property * 'CardActionType'. * - * @experimental As of version 1.64. + * @since 1.64 */ export enum CardActionType { /** * Used for custom actions. * - * @experimental As of version 1.76. + * @since 1.76 */ Custom = "Custom", /** * Date selection. Available only for Calendar cards. - * - * @experimental As of version 1.87. */ DateChange = "DateChange", /** @@ -52,8 +50,6 @@ declare module "sap/ui/integration/library" { HideCard = "HideCard", /** * Month selection. Available only for Calendar cards. - * - * @experimental As of version 1.87. */ MonthChange = "MonthChange", /** @@ -1102,7 +1098,7 @@ declare module "sap/ui/integration/widgets/Card" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.64. + * @since 1.64 * * @returns Reference to `this` in order to allow method chaining */ @@ -1133,7 +1129,7 @@ declare module "sap/ui/integration/widgets/Card" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.64. + * @since 1.64 * * @returns Reference to `this` in order to allow method chaining */ @@ -1147,59 +1143,6 @@ declare module "sap/ui/integration/widgets/Card" { */ oListener?: object ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:configurationChange configurationChange} event - * of this `sap.ui.integration.widgets.Card`. - * - * 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.ui.integration.widgets.Card` itself. - * - * Fired when some configuration settings are changed as a result of user interaction. For example - filter - * value is changed. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - attachConfigurationChange( - /** - * 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: Card$ConfigurationChangeEvent) => void, - /** - * Context object to call the event handler with. Defaults to this `sap.ui.integration.widgets.Card` itself - */ - oListener?: object - ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:configurationChange configurationChange} event - * of this `sap.ui.integration.widgets.Card`. - * - * 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.ui.integration.widgets.Card` itself. - * - * Fired when some configuration settings are changed as a result of user interaction. For example - filter - * value is changed. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - attachConfigurationChange( - /** - * The function to be called when the event occurs - */ - fnFunction: (p1: Card$ConfigurationChangeEvent) => void, - /** - * Context object to call the event handler with. Defaults to this `sap.ui.integration.widgets.Card` itself - */ - oListener?: object - ): this; /** * Attaches event handler `fnFunction` to the {@link #event:manifestReady manifestReady} event of this `sap.ui.integration.widgets.Card`. * @@ -1208,7 +1151,7 @@ declare module "sap/ui/integration/widgets/Card" { * * Fired when the manifest is loaded. * - * @experimental As of version 1.72. + * @since 1.72 * * @returns Reference to `this` in order to allow method chaining */ @@ -1235,7 +1178,7 @@ declare module "sap/ui/integration/widgets/Card" { * * Fired when the manifest is loaded. * - * @experimental As of version 1.72. + * @since 1.72 * * @returns Reference to `this` in order to allow method chaining */ @@ -1258,7 +1201,7 @@ declare module "sap/ui/integration/widgets/Card" { * Fired when the state of the card is changed. For example - the card is ready, new page is selected, a * filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -1286,7 +1229,7 @@ declare module "sap/ui/integration/widgets/Card" { * Fired when the state of the card is changed. For example - the card is ready, new page is selected, a * filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -1313,7 +1256,7 @@ declare module "sap/ui/integration/widgets/Card" { * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.64. + * @since 1.64 * * @returns Reference to `this` in order to allow method chaining */ @@ -1327,33 +1270,13 @@ declare module "sap/ui/integration/widgets/Card" { */ oListener?: object ): this; - /** - * Detaches event handler `fnFunction` from the {@link #event:configurationChange configurationChange} event - * of this `sap.ui.integration.widgets.Card`. - * - * The passed function and listener object must match the ones used for event registration. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - detachConfigurationChange( - /** - * The function to be called, when the event occurs - */ - fnFunction: (p1: Card$ConfigurationChangeEvent) => void, - /** - * Context object on which the given function had to be called - */ - oListener?: object - ): this; /** * Detaches event handler `fnFunction` from the {@link #event:manifestReady manifestReady} event of this * `sap.ui.integration.widgets.Card`. * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.72. + * @since 1.72 * * @returns Reference to `this` in order to allow method chaining */ @@ -1372,7 +1295,7 @@ declare module "sap/ui/integration/widgets/Card" { * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -1392,7 +1315,7 @@ declare module "sap/ui/integration/widgets/Card" { * Listeners may prevent the default action of this event by calling the `preventDefault` method on the * event object. The return value of this method indicates whether the default action should be executed. * - * @experimental As of version 1.64. + * @since 1.64 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Whether or not to prevent the default action @@ -1403,24 +1326,10 @@ declare module "sap/ui/integration/widgets/Card" { */ mParameters?: Card$ActionEventParameters ): boolean; - /** - * Fires event {@link #event:configurationChange configurationChange} to attached listeners. - * - * @experimental As of version 1.96. - * @ui5-protected Do not call from applications (only from related classes in the framework) - * - * @returns Reference to `this` in order to allow method chaining - */ - fireConfigurationChange( - /** - * Parameters to pass along with the event - */ - mParameters?: Card$ConfigurationChangeEventParameters - ): this; /** * Fires event {@link #event:manifestReady manifestReady} to attached listeners. * - * @experimental As of version 1.72. + * @since 1.72 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Reference to `this` in order to allow method chaining @@ -1434,7 +1343,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Fires event {@link #event:stateChanged stateChanged} to attached listeners. * - * @experimental As of version 1.107. + * @since 1.107 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Reference to `this` in order to allow method chaining @@ -1488,6 +1397,7 @@ declare module "sap/ui/integration/widgets/Card" { * * - Use when developing a Component card. * + * @deprecated As of version 1.152. Use `getResolvedParameters()` instead. * @experimental As of version 1.77. * * @returns Object containing parameters in format `{parameterKey: parameterValue}`. @@ -1505,7 +1415,7 @@ declare module "sap/ui/integration/widgets/Card" { * inside an extension or component will not be returned. If context needs to be used from an extension, * assign it to a parameter first. * - * @experimental As of version 1.151. + * @since 1.151 * * @returns An array of context paths found in the manifest (for example, `["/sample/currentUser/id", "/sample/supplier/id/value"]`). * Returns an empty array if no context dependencies are found or if the manifest is not ready. @@ -1550,7 +1460,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Gets the instance of the `host` association. * - * @experimental As of version 1.77. + * @since 1.77 * * @returns The host object associated with this card. */ @@ -1602,11 +1512,9 @@ declare module "sap/ui/integration/widgets/Card" { * ``` * * - * Disclaimer: this API might be removed when a permanent solution for flexibility changes is implemented. - * * Default value is `[]`. * - * @experimental As of version 1.76. + * @since 1.76 * * @returns Value of property `manifestChanges` */ @@ -1616,7 +1524,7 @@ declare module "sap/ui/integration/widgets/Card" { * * **Note** Use this method when the manifest is ready. Check `manifestReady` event. * - * @experimental As of version 1.77. + * @since 1.77 * * @returns The value at the specified path. */ @@ -1647,7 +1555,7 @@ declare module "sap/ui/integration/widgets/Card" { * Overrides the default values of the parameters, which are defined in the manifest. The value is an object * containing parameters in format `{parameterKey: parameterValue}`. * - * @experimental As of version 1.65. + * @since 1.65 * * @returns Value of property `parameters` */ @@ -1681,6 +1589,20 @@ declare module "sap/ui/integration/widgets/Card" { * @returns Value of property `referenceId` */ getReferenceId(): string; + /** + * Gets values of manifest parameters combined with the parameters from `parameters` property. + * + * **Notes** + * + * - Use this method when the manifest is ready. Check `manifestReady` event. + * + * - Use when developing a Component card. + * + * @since 1.152 + * + * @returns Object containing parameters in format `{parameterKey: parameterValue}`. + */ + getResolvedParameters(): Record; /** * Gets translated text from the i18n properties files configured for this card. * @@ -1778,7 +1700,11 @@ declare module "sap/ui/integration/widgets/Card" { iIndex: int ): this; /** - * @experimental As of version 1.65. + * Checks if the card is ready. + * + * The card is ready when all of its content, header, filters and data are loaded and rendered. + * + * @since 1.65 * * @returns If the card is ready or not. */ @@ -1791,7 +1717,7 @@ declare module "sap/ui/integration/widgets/Card" { * the complete manifest json } The promise is rejected if the module cannot be loaded with an object: { * error: "Card.designtime not found" } * - * @experimental As of version 1.73. + * @since 1.73 * * @returns Promise resolves after the designtime configuration is loaded. */ @@ -1799,7 +1725,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Refreshes the card by re-applying the manifest settings and triggering all data requests. * - * @experimental As of version 1.65. + * @since 1.65 */ refresh(): void; /** @@ -2034,13 +1960,11 @@ declare module "sap/ui/integration/widgets/Card" { * ``` * * - * Disclaimer: this API might be removed when a permanent solution for flexibility changes is implemented. - * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * * Default value is `[]`. * - * @experimental As of version 1.76. + * @since 1.76 * * @returns Reference to `this` in order to allow method chaining */ @@ -2080,7 +2004,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. * - * @experimental As of version 1.65. + * @since 1.65 * * @returns Reference to `this` in order to allow method chaining */ @@ -2219,7 +2143,7 @@ declare module "sap/ui/integration/widgets/Card" { * ``` * * - * @experimental As of version 1.84. + * @since 1.84 */ triggerAction( /** @@ -2239,7 +2163,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Causes all the controls within the Card that support validation to validate their data. * - * @experimental As of version 1.106. + * @since 1.106 * * @returns if all the controls validated successfully; otherwise, false */ @@ -2302,6 +2226,7 @@ declare module "sap/ui/integration/widgets/Card" { * * - Use when developing a Component card. * + * @deprecated As of version 1.152. Use `getResolvedParameters()` instead. * @experimental As of version 1.77. * * @returns Object containing parameters in format `{parameterKey: parameterValue}`. @@ -2317,7 +2242,7 @@ declare module "sap/ui/integration/widgets/Card" { * * **Note** Use this method when the manifest is ready. Check `manifestReady` event. * - * @experimental As of version 1.77. + * @since 1.77 * * @returns The value at the specified path. */ @@ -2337,11 +2262,25 @@ declare module "sap/ui/integration/widgets/Card" { * Overrides the default values of the parameters, which are defined in the manifest. The returned value * is an object containing parameters in format `{parameterKey: parameterValue}`. * - * @deprecated As of version 1.143. Use `getCombinedParameters()` instead. + * @deprecated As of version 1.143. Use `getResolvedParameters()` instead. * * @returns Value of property parameters */ getParameters(): object; + /** + * Gets values of manifest parameters combined with the parameters from `parameters` property. + * + * **Notes** + * + * - Use this method when the manifest is ready. Check `manifestReady` event. + * + * - Use when developing a Component card. + * + * @since 1.152 + * + * @returns Object containing parameters in format `{parameterKey: parameterValue}`. + */ + getResolvedParameters(): Record; /** * Gets translated text from the i18n properties files configured for this card. * @@ -2428,7 +2367,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Refreshes the card by re-applying the manifest settings and triggering all data requests. * - * @experimental As of version 1.65. + * @since 1.65 */ refresh(): void; /** @@ -2597,7 +2536,7 @@ declare module "sap/ui/integration/widgets/Card" { * ``` * * - * @experimental As of version 1.84. + * @since 1.84 */ triggerAction( /** @@ -2617,7 +2556,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Causes all the controls within the Card that support validation to validate their data. * - * @experimental As of version 1.106. + * @since 1.106 * * @returns if all the controls validated successfully; otherwise, false */ @@ -2643,7 +2582,7 @@ declare module "sap/ui/integration/widgets/Card" { * Overrides the default values of the parameters, which are defined in the manifest. The value is an object * containing parameters in format `{parameterKey: parameterValue}`. * - * @experimental As of version 1.65. + * @since 1.65 */ parameters?: object | PropertyBindingInfo | `{${string}}`; @@ -2709,9 +2648,7 @@ declare module "sap/ui/integration/widgets/Card" { * ``` * * - * Disclaimer: this API might be removed when a permanent solution for flexibility changes is implemented. - * - * @experimental As of version 1.76. + * @since 1.76 */ manifestChanges?: object[] | PropertyBindingInfo | `{${string}}`; @@ -2785,22 +2722,14 @@ declare module "sap/ui/integration/widgets/Card" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.64. + * @since 1.64 */ action?: (oEvent: Card$ActionEvent) => void; - /** - * Fired when some configuration settings are changed as a result of user interaction. For example - filter - * value is changed. - * - * @experimental As of version 1.96. - */ - configurationChange?: (oEvent: Card$ConfigurationChangeEvent) => void; - /** * Fired when the manifest is loaded. * - * @experimental As of version 1.72. + * @since 1.72 */ manifestReady?: (oEvent: Event) => void; @@ -2808,15 +2737,13 @@ declare module "sap/ui/integration/widgets/Card" { * Fired when the state of the card is changed. For example - the card is ready, new page is selected, a * filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 */ stateChanged?: (oEvent: Event) => void; } /** * Parameters of the Card#action event. - * - * @experimental As of version 1.64. */ export interface Card$ActionEventParameters { /** @@ -2854,15 +2781,11 @@ declare module "sap/ui/integration/widgets/Card" { /** * Event object of the Card#action event. - * - * @experimental As of version 1.64. */ export type Card$ActionEvent = Event; /** * Parameters of the Card#configurationChange event. - * - * @experimental As of version 1.96. */ export interface Card$ConfigurationChangeEventParameters { /** @@ -2882,8 +2805,6 @@ declare module "sap/ui/integration/widgets/Card" { /** * Event object of the Card#configurationChange event. - * - * @experimental As of version 1.96. */ export type Card$ConfigurationChangeEvent = Event< Card$ConfigurationChangeEventParameters, @@ -2905,15 +2826,11 @@ declare module "sap/ui/integration/widgets/Card" { /** * Parameters of the Card#manifestReady event. - * - * @experimental As of version 1.72. */ export interface Card$ManifestReadyEventParameters {} /** * Event object of the Card#manifestReady event. - * - * @experimental As of version 1.72. */ export type Card$ManifestReadyEvent = Event< Card$ManifestReadyEventParameters, @@ -2922,15 +2839,11 @@ declare module "sap/ui/integration/widgets/Card" { /** * Parameters of the Card#stateChanged event. - * - * @experimental As of version 1.107. */ export interface Card$StateChangedEventParameters {} /** * Event object of the Card#stateChanged event. - * - * @experimental As of version 1.107. */ export type Card$StateChangedEvent = Event< Card$StateChangedEventParameters, @@ -3540,7 +3453,7 @@ declare module "sap/ui/integration/Extension" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -3571,7 +3484,7 @@ declare module "sap/ui/integration/Extension" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -3590,7 +3503,7 @@ declare module "sap/ui/integration/Extension" { * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -3604,37 +3517,13 @@ declare module "sap/ui/integration/Extension" { */ oListener?: object ): this; - /** - * Starts the process of fetching a resource from the network, returning a promise that is fulfilled once - * the response is available. Use this method to override the default behavior when fetching network resources. - * Mimics the browser native Fetch API. - * - * @experimental As of version 1.113. - * - * @returns A `Promise` that resolves to a `Response` object. - */ - fetch( - /** - * This defines the resource that you wish to fetch. - */ - sResource: string, - /** - * An object containing any custom settings that you want to apply to the request. - */ - mOptions: object, - /** - * The map of request settings defined in the card manifest. Use this only for reading, they can not be - * modified. - */ - mRequestSettings: object - ): Promise; /** * Fires event {@link #event:action action} to attached listeners. * * Listeners may prevent the default action of this event by calling the `preventDefault` method on the * event object. The return value of this method indicates whether the default action should be executed. * - * @experimental As of version 1.75. + * @since 1.75 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Whether or not to prevent the default action @@ -3674,10 +3563,14 @@ declare module "sap/ui/integration/Extension" { /** * Override this method to lazy load dependencies for the extension. * - * @experimental As of version 1.108. + * The card waits for the returned promise to resolve before it continues with its initialization. If the + * promise is rejected, the card initialization fails and an error message is shown. * - * @returns Returns a promise. The card will wait for this promise to be resolved before continuing with - * the initialization. + * The default implementation loads no dependencies and returns an already resolved promise. + * + * @since 1.108 + * + * @returns A promise which resolves when all dependencies of the extension are loaded. */ loadDependencies(): Promise; /** @@ -3731,7 +3624,7 @@ declare module "sap/ui/integration/Extension" { /** * The formatters that can be used in the manifest. * - * @experimental As of version 1.79. + * @since 1.79 */ formatters?: object | PropertyBindingInfo | `{${string}}`; @@ -3742,15 +3635,13 @@ declare module "sap/ui/integration/Extension" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 */ action?: (oEvent: Extension$ActionEvent) => void; } /** * Parameters of the Extension#action event. - * - * @experimental As of version 1.75. */ export interface Extension$ActionEventParameters { /** @@ -3793,8 +3684,6 @@ declare module "sap/ui/integration/Extension" { /** * Event object of the Extension#action event. - * - * @experimental As of version 1.75. */ export type Extension$ActionEvent = Event< Extension$ActionEventParameters, @@ -3899,7 +3788,7 @@ declare module "sap/ui/integration/Host" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -3930,7 +3819,7 @@ declare module "sap/ui/integration/Host" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -3944,59 +3833,6 @@ declare module "sap/ui/integration/Host" { */ oListener?: object ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:cardConfigurationChange cardConfigurationChange } - * event of this `sap.ui.integration.Host`. - * - * 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.ui.integration.Host` itself. - * - * Fired when some card configuration settings are changed as a result of user interaction. For example - * - filter value is changed. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - attachCardConfigurationChange( - /** - * 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: Host$CardConfigurationChangeEvent) => void, - /** - * Context object to call the event handler with. Defaults to this `sap.ui.integration.Host` itself - */ - oListener?: object - ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:cardConfigurationChange cardConfigurationChange } - * event of this `sap.ui.integration.Host`. - * - * 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.ui.integration.Host` itself. - * - * Fired when some card configuration settings are changed as a result of user interaction. For example - * - filter value is changed. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - attachCardConfigurationChange( - /** - * The function to be called when the event occurs - */ - fnFunction: (p1: Host$CardConfigurationChangeEvent) => void, - /** - * Context object to call the event handler with. Defaults to this `sap.ui.integration.Host` itself - */ - oListener?: object - ): this; /** * Attaches event handler `fnFunction` to the {@link #event:cardInitialized cardInitialized} event of this * `sap.ui.integration.Host`. @@ -4007,7 +3843,7 @@ declare module "sap/ui/integration/Host" { * Fired when the card is initially ready for the first time. Will not be fired for consecutive refreshes * or data changes. * - * @experimental As of version 1.116. + * @since 1.116 * * @returns Reference to `this` in order to allow method chaining */ @@ -4036,7 +3872,7 @@ declare module "sap/ui/integration/Host" { * Fired when the card is initially ready for the first time. Will not be fired for consecutive refreshes * or data changes. * - * @experimental As of version 1.116. + * @since 1.116 * * @returns Reference to `this` in order to allow method chaining */ @@ -4060,7 +3896,7 @@ declare module "sap/ui/integration/Host" { * Fired when the state of a card is changed. For example - the card is ready, new page is selected inside * the card, a filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -4089,7 +3925,7 @@ declare module "sap/ui/integration/Host" { * Fired when the state of a card is changed. For example - the card is ready, new page is selected inside * the card, a filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -4187,7 +4023,7 @@ declare module "sap/ui/integration/Host" { * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.75. + * @since 1.75 * * @returns Reference to `this` in order to allow method chaining */ @@ -4201,33 +4037,13 @@ declare module "sap/ui/integration/Host" { */ oListener?: object ): this; - /** - * Detaches event handler `fnFunction` from the {@link #event:cardConfigurationChange cardConfigurationChange } - * event of this `sap.ui.integration.Host`. - * - * The passed function and listener object must match the ones used for event registration. - * - * @experimental As of version 1.96. - * - * @returns Reference to `this` in order to allow method chaining - */ - detachCardConfigurationChange( - /** - * The function to be called, when the event occurs - */ - fnFunction: (p1: Host$CardConfigurationChangeEvent) => void, - /** - * Context object on which the given function had to be called - */ - oListener?: object - ): this; /** * Detaches event handler `fnFunction` from the {@link #event:cardInitialized cardInitialized} event of * this `sap.ui.integration.Host`. * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.116. + * @since 1.116 * * @returns Reference to `this` in order to allow method chaining */ @@ -4247,7 +4063,7 @@ declare module "sap/ui/integration/Host" { * * The passed function and listener object must match the ones used for event registration. * - * @experimental As of version 1.107. + * @since 1.107 * * @returns Reference to `this` in order to allow method chaining */ @@ -4286,7 +4102,7 @@ declare module "sap/ui/integration/Host" { * Listeners may prevent the default action of this event by calling the `preventDefault` method on the * event object. The return value of this method indicates whether the default action should be executed. * - * @experimental As of version 1.75. + * @since 1.75 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Whether or not to prevent the default action @@ -4297,24 +4113,10 @@ declare module "sap/ui/integration/Host" { */ mParameters?: Host$ActionEventParameters ): boolean; - /** - * Fires event {@link #event:cardConfigurationChange cardConfigurationChange} to attached listeners. - * - * @experimental As of version 1.96. - * @ui5-protected Do not call from applications (only from related classes in the framework) - * - * @returns Reference to `this` in order to allow method chaining - */ - fireCardConfigurationChange( - /** - * Parameters to pass along with the event - */ - mParameters?: Host$CardConfigurationChangeEventParameters - ): this; /** * Fires event {@link #event:cardInitialized cardInitialized} to attached listeners. * - * @experimental As of version 1.116. + * @since 1.116 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Reference to `this` in order to allow method chaining @@ -4328,7 +4130,7 @@ declare module "sap/ui/integration/Host" { /** * Fires event {@link #event:cardStateChanged cardStateChanged} to attached listeners. * - * @experimental As of version 1.107. + * @since 1.107 * @ui5-protected Do not call from applications (only from related classes in the framework) * * @returns Reference to `this` in order to allow method chaining @@ -4375,7 +4177,7 @@ declare module "sap/ui/integration/Host" { * The context information and texts should be translated as they appear in the design-time UI of the Card * Editor. * - * @experimental As of version 1.143. + * @since 1.143 * * @returns A promise which contains the context structure. */ @@ -4391,7 +4193,7 @@ declare module "sap/ui/integration/Host" { * Example path to the current user id of the context sPath = "sap.workzone/currentUser/id" parameter: { * userId: { value: "{context>sap.workzone/currentUser/id}" resolves to UserId } } * - * @experimental As of version 1.143. + * @since 1.143 * * @returns A promise which resolves with the value of this context. */ @@ -4514,25 +4316,15 @@ declare module "sap/ui/integration/Host" { * In consecutive order those places are: `Extension`, `Card`, `Host`. Each of them can prevent the next * one to handle the action by calling `oEvent.preventDefault()`. * - * @experimental As of version 1.75. + * @since 1.75 */ action?: (oEvent: Host$ActionEvent) => void; - /** - * Fired when some card configuration settings are changed as a result of user interaction. For example - * - filter value is changed. - * - * @experimental As of version 1.96. - */ - cardConfigurationChange?: ( - oEvent: Host$CardConfigurationChangeEvent - ) => void; - /** * Fired when the state of a card is changed. For example - the card is ready, new page is selected inside * the card, a filter is changed or data is refreshed. * - * @experimental As of version 1.107. + * @since 1.107 */ cardStateChanged?: (oEvent: Host$CardStateChangedEvent) => void; @@ -4540,7 +4332,7 @@ declare module "sap/ui/integration/Host" { * Fired when the card is initially ready for the first time. Will not be fired for consecutive refreshes * or data changes. * - * @experimental As of version 1.116. + * @since 1.116 */ cardInitialized?: (oEvent: Host$CardInitializedEvent) => void; @@ -4554,8 +4346,6 @@ declare module "sap/ui/integration/Host" { /** * Parameters of the Host#action event. - * - * @experimental As of version 1.75. */ export interface Host$ActionEventParameters { /** @@ -4598,15 +4388,11 @@ declare module "sap/ui/integration/Host" { /** * Event object of the Host#action event. - * - * @experimental As of version 1.75. */ export type Host$ActionEvent = Event; /** * Parameters of the Host#cardConfigurationChange event. - * - * @experimental As of version 1.96. */ export interface Host$CardConfigurationChangeEventParameters { /** @@ -4631,8 +4417,6 @@ declare module "sap/ui/integration/Host" { /** * Event object of the Host#cardConfigurationChange event. - * - * @experimental As of version 1.96. */ export type Host$CardConfigurationChangeEvent = Event< Host$CardConfigurationChangeEventParameters, @@ -4641,8 +4425,6 @@ declare module "sap/ui/integration/Host" { /** * Parameters of the Host#cardInitialized event. - * - * @experimental As of version 1.116. */ export interface Host$CardInitializedEventParameters { /** @@ -4653,8 +4435,6 @@ declare module "sap/ui/integration/Host" { /** * Event object of the Host#cardInitialized event. - * - * @experimental As of version 1.116. */ export type Host$CardInitializedEvent = Event< Host$CardInitializedEventParameters, @@ -4663,8 +4443,6 @@ declare module "sap/ui/integration/Host" { /** * Parameters of the Host#cardStateChanged event. - * - * @experimental As of version 1.107. */ export interface Host$CardStateChangedEventParameters { /** @@ -4675,8 +4453,6 @@ declare module "sap/ui/integration/Host" { /** * Event object of the Host#cardStateChanged event. - * - * @experimental As of version 1.107. */ export type Host$CardStateChangedEvent = Event< Host$CardStateChangedEventParameters, diff --git a/types/openui5/sap.ui.layout.d.ts b/types/openui5/sap.ui.layout.d.ts index 82187b35afa99d..16f5245aa9aa13 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/layout/library" { import Control from "sap/ui/core/Control"; @@ -6718,15 +6718,21 @@ declare module "sap/ui/layout/form/Form" { /** * Gets content of aggregation {@link #getTitle title}. * - * Title of the `Form`. Can either be a `Title` element or a string. If a `Title` element it used, the style - * of the title can be set. + * Title of the `Form`. Can either be a {@link sap.ui.core.Title Title} element or a string. If a `Title` + * element it used, the style of the title can be set. * * **Note:** If a {@link #getToolbar Toolbar} is used, the `Title` is ignored. * * **Note:** If the title is provided as a string, the title is rendered with a theme-dependent default * level. As the `Form` control cannot know the structure of the page, this might not fit the page structure. - * In this case, provide the title using a `Title` element and set its {@link sap.ui.core.Title#setLevel level } + * In this case, provide the title using a {@link sap.ui.core.Title Title} element and set its {@link sap.ui.core.Title#setLevel level } * to the needed value. + * + * **Note:** Do not use {@link sap.ui.core.Title#setIcon icon} for {@link sap.ui.core.Title Title}. If an + * icon is needed, use a {@link #setToolbar Toolbar} to show both title and icon. + * + * **Note:** Do not use {@link sap.ui.core.Title#setEmphasized emphasized} for {@link sap.ui.core.Title Title}. + * This is not supported in current themes and might lead to accessibillity issues. */ getTitle(): Title | string; /** @@ -6946,15 +6952,21 @@ declare module "sap/ui/layout/form/Form" { | `{${string}}`; /** - * Title of the `Form`. Can either be a `Title` element or a string. If a `Title` element it used, the style - * of the title can be set. + * Title of the `Form`. Can either be a {@link sap.ui.core.Title Title} element or a string. If a `Title` + * element it used, the style of the title can be set. * * **Note:** If a {@link #getToolbar Toolbar} is used, the `Title` is ignored. * * **Note:** If the title is provided as a string, the title is rendered with a theme-dependent default * level. As the `Form` control cannot know the structure of the page, this might not fit the page structure. - * In this case, provide the title using a `Title` element and set its {@link sap.ui.core.Title#setLevel level } + * In this case, provide the title using a {@link sap.ui.core.Title Title} element and set its {@link sap.ui.core.Title#setLevel level } * to the needed value. + * + * **Note:** Do not use {@link sap.ui.core.Title#setIcon icon} for {@link sap.ui.core.Title Title}. If an + * icon is needed, use a {@link #setToolbar Toolbar} to show both title and icon. + * + * **Note:** Do not use {@link sap.ui.core.Title#setEmphasized emphasized} for {@link sap.ui.core.Title Title}. + * This is not supported in current themes and might lead to accessibillity issues. */ title?: string | Title | PropertyBindingInfo; @@ -7189,6 +7201,12 @@ declare module "sap/ui/layout/form/FormContainer" { * level. As the `Form` control cannot know the structure of the page, this might not fit the page structure. * In this case provide the title using a `Title` element and set its {@link sap.ui.core.Title#setLevel level } * to the needed value. + * + * **Note:** Do not use {@link sap.ui.core.Title#setIcon icon} for {@link sap.ui.core.Title Title}. If an + * icon is needed, use a {@link #setToolbar Toolbar} to show both title and icon. + * + * **Note:** Do not use {@link sap.ui.core.Title#setEmphasized emphasized} for {@link sap.ui.core.Title Title}. + * This is not supported in current themes and might lead to accessibillity issues. */ getTitle(): Title | string; /** @@ -7423,6 +7441,12 @@ declare module "sap/ui/layout/form/FormContainer" { * level. As the `Form` control cannot know the structure of the page, this might not fit the page structure. * In this case provide the title using a `Title` element and set its {@link sap.ui.core.Title#setLevel level } * to the needed value. + * + * **Note:** Do not use {@link sap.ui.core.Title#setIcon icon} for {@link sap.ui.core.Title Title}. If an + * icon is needed, use a {@link #setToolbar Toolbar} to show both title and icon. + * + * **Note:** Do not use {@link sap.ui.core.Title#setEmphasized emphasized} for {@link sap.ui.core.Title Title}. + * This is not supported in current themes and might lead to accessibillity issues. */ title?: string | Title | PropertyBindingInfo; @@ -15304,6 +15328,8 @@ declare namespace sap { "sap/ui/layout/form/FormLayout": undefined; + "sap/ui/layout/form/FormTitleUtil": undefined; + "sap/ui/layout/form/GridContainerData": undefined; "sap/ui/layout/form/GridElementData": undefined; diff --git a/types/openui5/sap.ui.mdc.d.ts b/types/openui5/sap.ui.mdc.d.ts index 0eb8c8fb140df8..fae61041423cba 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/mdc/AggregationBaseDelegate" { import BaseDelegate from "sap/ui/mdc/BaseDelegate"; @@ -2758,6 +2758,31 @@ declare module "sap/ui/mdc/TableDelegate" { */ oBindingInfo: AggregationBindingInfo ): void; + /** + * Validation hook that is invoked when the user confirms the personalization dialog. + * + * Applications can use this hook to validate the current personalization state, display their own messages, + * and prevent the dialog from closing by resolving to `false`. + * + * Providing accessible feedback (e.g. screen reader announcements) while the validation is ongoing or once + * it has completed is the responsibility of the implementation. + * + * @since 1.152 + * + * @returns A promise that resolves to `false` (or the literal value `false`) to prevent the dialog from + * closing. Any other value allows the dialog to close. + */ + validateP13nState( + /** + * Instance of the table + */ + oTable: Table, + /** + * The theoretical (not yet applied) external state of the table's personalization. The format matches the + * one processed by {@link sap.ui.mdc.p13n.StateUtil StateUtil}. + */ + oState: object + ): Promise | boolean; } const TableDelegate: TableDelegate; export default TableDelegate; diff --git a/types/openui5/sap.ui.rta.d.ts b/types/openui5/sap.ui.rta.d.ts index 969e9f77e78d86..51b5e865d278b7 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/rta/api/startAdaptation" { import Control from "sap/ui/core/Control"; @@ -215,12 +215,12 @@ declare namespace sap { "sap/ui/rta/service/Outline": undefined; + "sap/ui/rta/service/OverlayInfo": undefined; + "sap/ui/rta/service/Property": undefined; "sap/ui/rta/service/Selection": undefined; - "sap/ui/rta/service/SupportTools": undefined; - "sap/ui/rta/util/ReloadManager": undefined; } } diff --git a/types/openui5/sap.ui.suite.d.ts b/types/openui5/sap.ui.suite.d.ts index 70c9653320044a..ac10fbd086aa8a 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.151.0 +// For Library Version: 1.152.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 b3f5651c6ffb78..0faad9da901122 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.151.0 +// For Library Version: 1.152.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 c92417ceba3b2b..d9c587b3801c01 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/table/library" { import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode"; diff --git a/types/openui5/sap.ui.testrecorder.d.ts b/types/openui5/sap.ui.testrecorder.d.ts index 2706422995b1fa..b1d8cbc2d9e151 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.151.0 +// For Library Version: 1.152.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 3e2a8287ede235..51d48c7f2c53e6 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/unified/library" { /** @@ -14756,7 +14756,7 @@ declare module "sap/ui/unified/DateTypeRange" { $DateRangeSettings, } from "sap/ui/unified/DateRange"; - import { CSSColor } from "sap/ui/core/library"; + import { aria, CSSColor } from "sap/ui/core/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -14832,6 +14832,24 @@ declare module "sap/ui/unified/DateTypeRange" { * @returns Metadata object describing this class */ static getMetadata(): ElementMetadata; + /** + * Gets current value of property {@link #getAriaHasPopup ariaHasPopup}. + * + * Defines the value of the `aria-haspopup` attribute of the day cell. + * + * **Note:** Use this property only when the cell is related to a popover/popup. The value should be equal + * to the main/root role of the popup. + * + * **Note:** Setting `type` to `sap.ui.unified.CalendarDayType.None` together with this property allows + * adding the attribute without any visual marking. + * + * Default value is `None`. + * + * @since 1.152.0 + * + * @returns Value of property `ariaHasPopup` + */ + getAriaHasPopup(): aria.HasPopup; /** * Gets current value of property {@link #getColor color}. * @@ -14867,6 +14885,31 @@ declare module "sap/ui/unified/DateTypeRange" { * @returns Value of property `type` */ getType(): CalendarDayType; + /** + * Sets a new value for property {@link #getAriaHasPopup ariaHasPopup}. + * + * Defines the value of the `aria-haspopup` attribute of the day cell. + * + * **Note:** Use this property only when the cell is related to a popover/popup. The value should be equal + * to the main/root role of the popup. + * + * **Note:** Setting `type` to `sap.ui.unified.CalendarDayType.None` together with this property allows + * adding the attribute without any visual marking. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `None`. + * + * @since 1.152.0 + * + * @returns Reference to `this` in order to allow method chaining + */ + setAriaHasPopup( + /** + * New value for property `ariaHasPopup` + */ + sAriaHasPopup?: aria.HasPopup | keyof typeof aria.HasPopup + ): this; /** * Sets a new value for property {@link #getColor color}. * @@ -14954,6 +14997,22 @@ declare module "sap/ui/unified/DateTypeRange" { * @since 1.76.0 */ color?: CSSColor | PropertyBindingInfo | `{${string}}`; + + /** + * Defines the value of the `aria-haspopup` attribute of the day cell. + * + * **Note:** Use this property only when the cell is related to a popover/popup. The value should be equal + * to the main/root role of the popup. + * + * **Note:** Setting `type` to `sap.ui.unified.CalendarDayType.None` together with this property allows + * adding the attribute without any visual marking. + * + * @since 1.152.0 + */ + ariaHasPopup?: + | (aria.HasPopup | keyof typeof aria.HasPopup) + | PropertyBindingInfo + | `{${string}}`; } } diff --git a/types/openui5/sap.ui.ux3.d.ts b/types/openui5/sap.ui.ux3.d.ts index 47ca14ffeceac1..3d30284b3228f3 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.151.0 +// For Library Version: 1.152.0 declare module "sap/ui/ux3/library" { /** diff --git a/types/openui5/sap.uxap.d.ts b/types/openui5/sap.uxap.d.ts index 94554fdefde4dd..fa954aac9f95e8 100644 --- a/types/openui5/sap.uxap.d.ts +++ b/types/openui5/sap.uxap.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.151.0 +// For Library Version: 1.152.0 declare module "sap/uxap/library" { /** From d3e242a6d985f1ade607c1e23a38965e3e9dbc8f Mon Sep 17 00:00:00 2001 From: Michael H Date: Sat, 5 Sep 2026 01:41:10 +1000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75503=20[bun]?= =?UTF-8?q?=20update=20to=201.4.1=20by=20@RiskyMH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/bun/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bun/package.json b/types/bun/package.json index b13ed4c70868ba..5cccf34be30e3b 100644 --- a/types/bun/package.json +++ b/types/bun/package.json @@ -6,7 +6,7 @@ "https://bun.com" ], "dependencies": { - "bun-types": "1.4.0" + "bun-types": "1.4.1" }, "devDependencies": { "@types/bun": "workspace:." From f5ffd0d7855a04710a03f3732090474f25245eeb Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Fri, 4 Sep 2026 23:41:28 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75506=20feat(i?= =?UTF-8?q?mport-local):=20remove=20types=20by=20@hkleungai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notNeededPackages.json | 4 ++++ types/import-local/.npmignore | 5 ----- types/import-local/import-local-tests.ts | 7 ------- types/import-local/index.d.ts | 2 -- types/import-local/package.json | 17 ----------------- types/import-local/tsconfig.json | 19 ------------------- 6 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 types/import-local/.npmignore delete mode 100644 types/import-local/import-local-tests.ts delete mode 100644 types/import-local/index.d.ts delete mode 100644 types/import-local/package.json delete mode 100644 types/import-local/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 4d9fa6e326752f..fafb7a16c301cd 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3153,6 +3153,10 @@ "libraryName": "immutable", "asOfVersion": "3.8.7" }, + "import-local": { + "libraryName": "import-local", + "asOfVersion": "3.2.0" + }, "impress": { "libraryName": "impress", "asOfVersion": "2.0.13" diff --git a/types/import-local/.npmignore b/types/import-local/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/import-local/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/import-local/import-local-tests.ts b/types/import-local/import-local-tests.ts deleted file mode 100644 index 11cff07a523f11..00000000000000 --- a/types/import-local/import-local-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import importLocal = require("import-local"); - -// $ExpectType boolean -importLocal("..."); - -// @ts-expect-error -importLocal(new Symbol(5)); diff --git a/types/import-local/index.d.ts b/types/import-local/index.d.ts deleted file mode 100644 index 6d06114427d3a6..00000000000000 --- a/types/import-local/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function importLocal(__filename: string): boolean; -export = importLocal; diff --git a/types/import-local/package.json b/types/import-local/package.json deleted file mode 100644 index a9cc3bfb33ec01..00000000000000 --- a/types/import-local/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "private": true, - "name": "@types/import-local", - "version": "3.1.9999", - "projects": [ - "https://github.com/sindresorhus/import-local#readme" - ], - "devDependencies": { - "@types/import-local": "workspace:." - }, - "owners": [ - { - "name": "Tristan F.", - "githubUsername": "LeoDog896" - } - ] -} diff --git a/types/import-local/tsconfig.json b/types/import-local/tsconfig.json deleted file mode 100644 index 93480d749c2376..00000000000000 --- a/types/import-local/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "import-local-tests.ts" - ] -} From 998ff7c3016e172ec01f9cbeffd100d64c4f7331 Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Fri, 4 Sep 2026 23:41:43 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75507=20feat(d?= =?UTF-8?q?ecode-uri-component):=20remove=20types=20by=20@hkleungai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notNeededPackages.json | 4 ++++ types/decode-uri-component/.npmignore | 5 ----- .../decode-uri-component-tests.ts | 12 ------------ types/decode-uri-component/index.d.ts | 3 --- types/decode-uri-component/package.json | 17 ----------------- types/decode-uri-component/tsconfig.json | 19 ------------------- 6 files changed, 4 insertions(+), 56 deletions(-) delete mode 100644 types/decode-uri-component/.npmignore delete mode 100644 types/decode-uri-component/decode-uri-component-tests.ts delete mode 100644 types/decode-uri-component/index.d.ts delete mode 100644 types/decode-uri-component/package.json delete mode 100644 types/decode-uri-component/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index fafb7a16c301cd..a84568670c4056 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1597,6 +1597,10 @@ "libraryName": "decimal.js", "asOfVersion": "7.4.0" }, + "decode-uri-component": { + "libraryName": "decode-uri-component", + "asOfVersion": "0.4.1" + }, "decompress-response": { "libraryName": "decompress-response", "asOfVersion": "4.1.0" diff --git a/types/decode-uri-component/.npmignore b/types/decode-uri-component/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/decode-uri-component/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/decode-uri-component/decode-uri-component-tests.ts b/types/decode-uri-component/decode-uri-component-tests.ts deleted file mode 100644 index 3c52a4dc3b565b..00000000000000 --- a/types/decode-uri-component/decode-uri-component-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import decodeUriComponent = require("decode-uri-component"); - -// $ExpectType string -decodeUriComponent("%25"); -decodeUriComponent("%"); -decodeUriComponent("st%C3%A5le"); -decodeUriComponent("%st%C3%A5le%"); -decodeUriComponent("%%7Bst%C3%A5le%7D%"); -decodeUriComponent("%7B%ab%%7C%de%%7D"); -decodeUriComponent("%FE%FF"); -decodeUriComponent("%C2"); -decodeUriComponent("%C2%B5"); diff --git a/types/decode-uri-component/index.d.ts b/types/decode-uri-component/index.d.ts deleted file mode 100644 index 8285530cf74e67..00000000000000 --- a/types/decode-uri-component/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = decodeUriComponent; - -declare function decodeUriComponent(encodedURI: string): string; diff --git a/types/decode-uri-component/package.json b/types/decode-uri-component/package.json deleted file mode 100644 index 83828a462a9633..00000000000000 --- a/types/decode-uri-component/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "private": true, - "name": "@types/decode-uri-component", - "version": "0.2.9999", - "projects": [ - "https://github.com/samverschueren/decode-uri-component#readme" - ], - "devDependencies": { - "@types/decode-uri-component": "workspace:." - }, - "owners": [ - { - "name": "BendingBender", - "githubUsername": "BendingBender" - } - ] -} diff --git a/types/decode-uri-component/tsconfig.json b/types/decode-uri-component/tsconfig.json deleted file mode 100644 index 18fbdfb604cce0..00000000000000 --- a/types/decode-uri-component/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "decode-uri-component-tests.ts" - ] -}