@sapui5/ts-types-esm 1.139.0 → 1.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/sap.apf.d.ts +1 -1
- package/types/sap.ca.ui.d.ts +1 -1
- package/types/sap.chart.d.ts +1 -1
- package/types/sap.collaboration.d.ts +1 -1
- package/types/sap.cux.home.d.ts +0 -1623
- package/types/sap.esh.search.ui.d.ts +384 -1
- package/types/sap.f.d.ts +102 -13
- package/types/sap.fe.ariba.d.ts +1 -1
- package/types/sap.fe.base.d.ts +1 -5
- package/types/sap.fe.controls.d.ts +1 -1
- package/types/sap.fe.core.d.ts +98 -8
- package/types/sap.fe.ina.d.ts +1 -1
- package/types/sap.fe.macros.d.ts +369 -51
- package/types/sap.fe.navigation.d.ts +13 -15
- package/types/sap.fe.placeholder.d.ts +1 -1
- package/types/sap.fe.plugins.managecache.d.ts +1 -1
- package/types/sap.fe.templates.d.ts +1 -1
- package/types/sap.fe.test.d.ts +1 -1
- package/types/sap.fe.tools.d.ts +1 -1
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +47 -11
- package/types/sap.insights.d.ts +130 -2
- package/types/sap.m.d.ts +722 -282
- package/types/sap.makit.d.ts +1 -1
- package/types/sap.me.d.ts +1 -1
- package/types/sap.ndc.d.ts +1 -1
- package/types/sap.ovp.d.ts +1 -1
- package/types/sap.rules.ui.d.ts +1 -1
- package/types/sap.sac.df.d.ts +118 -5
- package/types/sap.suite.ui.commons.d.ts +1 -1
- package/types/sap.suite.ui.generic.template.d.ts +41 -5
- package/types/sap.suite.ui.microchart.d.ts +1 -1
- package/types/sap.tnt.d.ts +5 -1
- package/types/sap.ui.codeeditor.d.ts +1 -1
- package/types/sap.ui.commons.d.ts +1 -1
- package/types/sap.ui.comp.d.ts +16 -1
- package/types/sap.ui.core.d.ts +531 -163
- package/types/sap.ui.dt.d.ts +202 -1
- package/types/sap.ui.export.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +8 -13
- package/types/sap.ui.generic.app.d.ts +1 -1
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +13 -13
- package/types/sap.ui.layout.d.ts +63 -47
- package/types/sap.ui.mdc.d.ts +77 -25
- package/types/sap.ui.richtexteditor.d.ts +309 -9
- package/types/sap.ui.rta.d.ts +1 -1
- package/types/sap.ui.suite.d.ts +1 -1
- package/types/sap.ui.support.d.ts +1 -1
- package/types/sap.ui.table.d.ts +585 -4
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +55 -3
- package/types/sap.ui.ux3.d.ts +1 -1
- package/types/sap.ui.vbm.d.ts +1 -1
- package/types/sap.ui.vk.d.ts +438 -6
- package/types/sap.ui.vtm.d.ts +1 -1
- package/types/sap.ui.webc.common.d.ts +1 -1
- package/types/sap.ui.webc.fiori.d.ts +1 -1
- package/types/sap.ui.webc.main.d.ts +1 -1
- package/types/sap.uiext.inbox.d.ts +1 -1
- package/types/sap.ushell.d.ts +41 -8
- package/types/sap.ushell_abap.d.ts +7 -1
- package/types/sap.uxap.d.ts +1 -1
- package/types/sap.viz.d.ts +1 -1
- package/types/sap.webanalytics.core.d.ts +1 -1
- package/types/sap.zen.commons.d.ts +1 -1
- package/types/sap.zen.crosstab.d.ts +1 -1
- package/types/sap.zen.dsh.d.ts +1 -1
package/types/sap.ui.core.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ declare namespace sap {
|
|
|
279
279
|
"sap/ui/thirdparty/qunit-2": undefined;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
// For Library Version: 1.
|
|
282
|
+
// For Library Version: 1.141.0
|
|
283
283
|
|
|
284
284
|
declare module "sap/base/assert" {
|
|
285
285
|
/**
|
|
@@ -787,7 +787,7 @@ declare module "sap/base/i18n/Formatting" {
|
|
|
787
787
|
*/
|
|
788
788
|
setLanguageTag(
|
|
789
789
|
/**
|
|
790
|
-
* the new BCP47 compliant language tag; case doesn't matter and underscores can be used instead of
|
|
790
|
+
* the new BCP47 compliant language tag; case doesn't matter and underscores can be used instead of hyphens
|
|
791
791
|
* to separate components (compatibility with Java Locale IDs)
|
|
792
792
|
*/
|
|
793
793
|
vLanguageTag: string | LanguageTag | null
|
|
@@ -1090,15 +1090,15 @@ declare module "sap/base/i18n/LanguageTag" {
|
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Get the extension as a single string or `null`.
|
|
1092
1092
|
*
|
|
1093
|
-
* The extension always consists of a singleton character (not 'x'), a
|
|
1094
|
-
* token, each separated again with a
|
|
1093
|
+
* The extension always consists of a singleton character (not 'x'), a hyphen '-' and one or more extension
|
|
1094
|
+
* token, each separated again with a hyphen.
|
|
1095
1095
|
*/
|
|
1096
1096
|
extension: string | null;
|
|
1097
1097
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Get the extensions as an array of tokens.
|
|
1100
1100
|
*
|
|
1101
|
-
* The leading singleton and the separating
|
|
1101
|
+
* The leading singleton and the separating hyphens are not part of the result. If there is no extensions
|
|
1102
1102
|
* section in the language tag, an empty array is returned.
|
|
1103
1103
|
*/
|
|
1104
1104
|
extensionSubtags: string[];
|
|
@@ -1130,14 +1130,14 @@ declare module "sap/base/i18n/LanguageTag" {
|
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Get the variants as a single string or `null`.
|
|
1132
1132
|
*
|
|
1133
|
-
* Multiple variants are separated by a
|
|
1133
|
+
* Multiple variants are separated by a hyphen '-'.
|
|
1134
1134
|
*/
|
|
1135
1135
|
variant: string | null;
|
|
1136
1136
|
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Get the variants as an array of individual variants.
|
|
1139
1139
|
*
|
|
1140
|
-
* The separating
|
|
1140
|
+
* The separating hyphens are not part of the result. If there is no variant section in the language tag,
|
|
1141
1141
|
* an empty array is returned.
|
|
1142
1142
|
*/
|
|
1143
1143
|
variantSubtags: string[];
|
|
@@ -1189,8 +1189,8 @@ declare module "sap/base/i18n/Localization" {
|
|
|
1189
1189
|
* The value returned by config method in most cases corresponds to the exact value that has been configured
|
|
1190
1190
|
* by the user or application or that has been determined from the user agent settings. It has not been
|
|
1191
1191
|
* normalized, but has been validated against a relaxed version of {@link http://www.ietf.org/rfc/bcp/bcp47.txt BCP47},
|
|
1192
|
-
* allowing underscores ('_') instead of the suggested
|
|
1193
|
-
* account.
|
|
1192
|
+
* allowing underscores ('_') instead of the suggested hyphens ('-') and not taking the case of letters
|
|
1193
|
+
* into account.
|
|
1194
1194
|
*
|
|
1195
1195
|
* The exceptions mentioned above affect languages that have been specified via the URL parameter `sap-language`.
|
|
1196
1196
|
* That parameter by definition represents an SAP logon language code ('ABAP language'). Most but not all
|
|
@@ -1308,7 +1308,7 @@ declare module "sap/base/i18n/Localization" {
|
|
|
1308
1308
|
setLanguage(
|
|
1309
1309
|
/**
|
|
1310
1310
|
* the new language as a BCP47 compliant language tag; case doesn't matter and underscores can be used instead
|
|
1311
|
-
* of
|
|
1311
|
+
* of hyphens to separate components (compatibility with Java Locale IDs)
|
|
1312
1312
|
*/
|
|
1313
1313
|
sLanguage: string,
|
|
1314
1314
|
/**
|
|
@@ -2355,7 +2355,7 @@ declare module "sap/base/security/encodeURL" {
|
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Encode the string for inclusion into a URL parameter.
|
|
2357
2357
|
*
|
|
2358
|
-
* Unescaped characters: alphabetic, decimal digits, -_. (
|
|
2358
|
+
* Unescaped characters: alphabetic, decimal digits, -_. (hyphen, underscore, dot)
|
|
2359
2359
|
*
|
|
2360
2360
|
* @since 1.58
|
|
2361
2361
|
*
|
|
@@ -2432,8 +2432,10 @@ declare module "sap/base/security/URLListValidator" {
|
|
|
2432
2432
|
*/
|
|
2433
2433
|
port?: string,
|
|
2434
2434
|
/**
|
|
2435
|
-
* the path of the URL,
|
|
2436
|
-
* at the end, e.g. "/my-example*",
|
|
2435
|
+
* the path of the URL, e.g. "/my-news". Can be falsy to allow all paths. A wildcard asterisk can be set
|
|
2436
|
+
* at the end to ensure a path starts with the given string, e.g. "/my-example*". When using wildcards,
|
|
2437
|
+
* make sure to only provide normalized URLs to the validate function in order to mitigate the risk of path
|
|
2438
|
+
* traversal attacks.
|
|
2437
2439
|
*/
|
|
2438
2440
|
path?: string
|
|
2439
2441
|
): void;
|
|
@@ -2451,11 +2453,14 @@ declare module "sap/base/security/URLListValidator" {
|
|
|
2451
2453
|
/**
|
|
2452
2454
|
* Validates a URL. Check if it's not a script or other security issue.
|
|
2453
2455
|
*
|
|
2454
|
-
* **Note**: It is strongly recommended to validate only absolute URLs. There's almost no case
|
|
2455
|
-
* only the path of a URL would allow to ensure its validity. For compatibility reasons,
|
|
2456
|
-
* automatically resolve URLs relative to `document.baseURI`,
|
|
2457
|
-
* when the allow list is not empty, an entry for the origin
|
|
2458
|
-
* allow list.
|
|
2456
|
+
* **Note**: It is strongly recommended to validate only absolute, normalized URLs. There's almost no case
|
|
2457
|
+
* where checking only the path of a URL would allow to ensure its validity. For compatibility reasons,
|
|
2458
|
+
* this API does not normalize URLs and cannot automatically resolve URLs relative to `document.baseURI`,
|
|
2459
|
+
* but callers should do so. In that case, and when the allow list is not empty, an entry for the origin
|
|
2460
|
+
* of `document.baseURI` must be added to the allow list.
|
|
2461
|
+
*
|
|
2462
|
+
* Any measures to mitigate path traversal or similar attack vectors must be taken by the caller, e.g. by
|
|
2463
|
+
* using the {@link https://developer.mozilla.org/docs/Web/API/URL URL} API to normalize the URL beforehand.
|
|
2459
2464
|
*
|
|
2460
2465
|
* Details: Splits the given URL into components and checks for allowed characters according to RFC 3986:
|
|
2461
2466
|
*
|
|
@@ -3913,7 +3918,7 @@ declare module "sap/ui/core/ComponentSupport" {
|
|
|
3913
3918
|
* instance of the {@link sap.ui.core.ComponentContainer ComponentContainer} in the JavaScript code.
|
|
3914
3919
|
*
|
|
3915
3920
|
* As HTML is case-insensitive, in order to define a property with upper-case characters, you have to "escape"
|
|
3916
|
-
* them with a
|
|
3921
|
+
* them with a hyphen character, similar to CSS attributes. The following code gives an example:
|
|
3917
3922
|
*
|
|
3918
3923
|
*
|
|
3919
3924
|
* ```javascript
|
|
@@ -5415,6 +5420,10 @@ declare module "sap/ui/dom/includeStylesheet" {
|
|
|
5415
5420
|
*
|
|
5416
5421
|
* - otherwise: no action
|
|
5417
5422
|
*
|
|
5423
|
+
* **Note:** `includeStylesheet` must not be used for UI5 library CSS. UI5 library CSS is managed by the
|
|
5424
|
+
* UI5 theming lifecycle. Interfering with this lifecycle by manually including library CSS via `includeStylesheet`
|
|
5425
|
+
* can lead to unexpected behavior and theming issues.
|
|
5426
|
+
*
|
|
5418
5427
|
* @since 1.58
|
|
5419
5428
|
*
|
|
5420
5429
|
* @returns When using the configuration object a `Promise` will be returned. The documentation for the
|
|
@@ -6015,8 +6024,8 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6015
6024
|
*/
|
|
6016
6025
|
refreshAfterChange?: boolean;
|
|
6017
6026
|
/**
|
|
6018
|
-
* Whether to sequentialize all requests, needed in case the service cannot handle parallel requests. **Deprecated
|
|
6019
|
-
* as of version 1.128.0
|
|
6027
|
+
* Whether to sequentialize all requests, needed in case the service cannot handle parallel requests. **Deprecated
|
|
6028
|
+
* as of version 1.128.0**, the concept has been discarded.
|
|
6020
6029
|
*/
|
|
6021
6030
|
sequentializeRequests?: boolean;
|
|
6022
6031
|
/**
|
|
@@ -6051,19 +6060,20 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6051
6060
|
*/
|
|
6052
6061
|
withCredentials?: boolean;
|
|
6053
6062
|
/**
|
|
6054
|
-
* **Deprecated** for security reasons. Use strong server side authentication instead.
|
|
6055
|
-
* service.
|
|
6063
|
+
* **Deprecated as of version 1.75.0** for security reasons. Use strong server side authentication instead.
|
|
6064
|
+
* Password for the service.
|
|
6056
6065
|
*/
|
|
6057
6066
|
password?: string;
|
|
6058
6067
|
/**
|
|
6059
|
-
* **Deprecated** This parameter does not prevent creation of annotations from the
|
|
6060
|
-
* this model's metamodel. Whether to skip the automated loading of annotations from
|
|
6061
|
-
* Loading annotations from metadata does not have any effects (except the lost performance
|
|
6062
|
-
* the parser) if there are no annotations inside the metadata document
|
|
6068
|
+
* **Deprecated as of version 1.112.0** This parameter does not prevent creation of annotations from the
|
|
6069
|
+
* metadata document in this model's metamodel. Whether to skip the automated loading of annotations from
|
|
6070
|
+
* the metadata document. Loading annotations from metadata does not have any effects (except the lost performance
|
|
6071
|
+
* by invoking the parser) if there are no annotations inside the metadata document
|
|
6063
6072
|
*/
|
|
6064
6073
|
skipMetadataAnnotationParsing?: boolean;
|
|
6065
6074
|
/**
|
|
6066
|
-
* **Deprecated** for security reasons. Use strong server side authentication instead.
|
|
6075
|
+
* **Deprecated as of version 1.75.0** for security reasons. Use strong server side authentication instead.
|
|
6076
|
+
* UserID for the service.
|
|
6067
6077
|
*/
|
|
6068
6078
|
user?: string;
|
|
6069
6079
|
}
|
|
@@ -6402,8 +6412,8 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6402
6412
|
*/
|
|
6403
6413
|
usePreliminaryContext?: boolean;
|
|
6404
6414
|
/**
|
|
6405
|
-
* **Deprecated**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6406
|
-
* the binding.
|
|
6415
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6416
|
+
* originating from the binding.
|
|
6407
6417
|
*/
|
|
6408
6418
|
batchGroupId?: string;
|
|
6409
6419
|
}
|
|
@@ -6489,14 +6499,14 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6489
6499
|
*/
|
|
6490
6500
|
usePreliminaryContext?: boolean;
|
|
6491
6501
|
/**
|
|
6492
|
-
* **Deprecated**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6493
|
-
* the binding.
|
|
6502
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6503
|
+
* originating from the binding.
|
|
6494
6504
|
*/
|
|
6495
6505
|
batchGroupId?: string;
|
|
6496
6506
|
/**
|
|
6497
|
-
* Deprecated
|
|
6498
|
-
* that defines how many entries should be fetched at least by the binding if `operationMode`
|
|
6499
|
-
* `Auto`.
|
|
6507
|
+
* **Deprecated as of version 1.102.0**, as {@link sap.ui.model.odata.OperationMode.Auto} is deprecated;
|
|
6508
|
+
* the threshold that defines how many entries should be fetched at least by the binding if `operationMode`
|
|
6509
|
+
* is set to `Auto`.
|
|
6500
6510
|
*/
|
|
6501
6511
|
threshold?: int;
|
|
6502
6512
|
}
|
|
@@ -6555,27 +6565,22 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6555
6565
|
* of levels, with only a single initial OData request.
|
|
6556
6566
|
*
|
|
6557
6567
|
* For services without the `hierarchy-node-descendant-count-for` annotation, the `numberOfExpandedLevels`
|
|
6558
|
-
* property is not supported and deprecated.
|
|
6568
|
+
* property is not supported and deprecated since 1.44.5.
|
|
6559
6569
|
*
|
|
6560
|
-
*
|
|
6570
|
+
* The OData service must always return node collections which are sufficient to create a valid hierarchy
|
|
6571
|
+
* on the client. This means that for each node in the response all parent nodes up to the hierarchy root
|
|
6572
|
+
* must also be contained in the response. Note that this rule applies independent of any filters set for
|
|
6573
|
+
* the binding.
|
|
6561
6574
|
*
|
|
6562
|
-
*
|
|
6563
|
-
*
|
|
6564
|
-
* on a property (e.g. a "Customer") is fine, as long as the application ensures that the responses from
|
|
6565
|
-
* the back end are sufficient to create a valid hierarchy on the client. Subsequent paging requests for
|
|
6566
|
-
* sibling and child nodes must also return responses, since the filters are sent with every request. Using
|
|
6567
|
-
* control-defined filters (see {@link sap.ui.model.FilterType.Control}) via the {@link #filter} function
|
|
6568
|
-
* is not supported for the operation mode `Server`.
|
|
6575
|
+
* You must not define filters on tree annotation properties for this binding as this interferes with hierarchy
|
|
6576
|
+
* filters defined by the binding itself.
|
|
6569
6577
|
*
|
|
6570
|
-
*
|
|
6571
|
-
*
|
|
6572
|
-
* on the client, like for the {@link sap.ui.model.odata.v2.ODataListBinding}.
|
|
6578
|
+
* Notes On Operation Modes: For a full definition and explanation of all OData binding operation modes,
|
|
6579
|
+
* see {@link sap.ui.model.odata.OperationMode}.
|
|
6573
6580
|
*
|
|
6574
6581
|
* The operation modes `Client` and `Auto` are only supported for services which expose the hierarchy annotations
|
|
6575
|
-
* mentioned above, but do **not** expose the `hierarchy-node-descendant-count-for` annotation.
|
|
6576
|
-
*
|
|
6577
|
-
* support the operation modes `Client` and `Auto`. **Note:** {@link sap.ui.model.odata.OperationMode.Auto }
|
|
6578
|
-
* is deprecated since 1.102.0.
|
|
6582
|
+
* mentioned above, but do **not** expose the `hierarchy-node-descendant-count-for` annotation. **Note:**
|
|
6583
|
+
* {@link sap.ui.model.odata.OperationMode.Auto} is deprecated since 1.102.0.
|
|
6579
6584
|
*
|
|
6580
6585
|
* **Note:** OData tree bindings do neither support {@link sap.ui.model.Binding#suspend suspend} nor {@link sap.ui.model.Binding#resume resume}.
|
|
6581
6586
|
* See:
|
|
@@ -6638,10 +6643,15 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6638
6643
|
* property has to be an integer type
|
|
6639
6644
|
*/
|
|
6640
6645
|
hierarchyNodeDescendantCountFor?: string;
|
|
6646
|
+
/**
|
|
6647
|
+
* The property name in the same type holding the preorder rank for the node; the type of the referenced
|
|
6648
|
+
* property has to be an integer type
|
|
6649
|
+
*/
|
|
6650
|
+
hierarchyPreorderRankFor?: string;
|
|
6641
6651
|
};
|
|
6642
6652
|
/**
|
|
6643
6653
|
* The number of levels that are auto-expanded initially. Setting this property might lead to multiple back-end
|
|
6644
|
-
* requests. The auto-expand feature is **deprecated for services without the `hierarchy-node-descendant-count-for`
|
|
6654
|
+
* requests. The auto-expand feature is **deprecated as of Version 1.44.5 for services without the `hierarchy-node-descendant-count-for`
|
|
6645
6655
|
* annotation**
|
|
6646
6656
|
*/
|
|
6647
6657
|
numberOfExpandedLevels?: number;
|
|
@@ -6657,7 +6667,6 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6657
6667
|
* The operation mode for this binding; defaults to the model's default operation mode if not specified.
|
|
6658
6668
|
* {@link sap.ui.model.odata.OperationMode.Auto OperationMode.Auto} is only supported for services which
|
|
6659
6669
|
* expose the hierarchy annotations, yet do **NOT** expose the `hierarchy-node-descendant-count-for` annotation.
|
|
6660
|
-
* **Note:** {@link sap.ui.model.odata.OperationMode.Auto} is deprecated since 1.102.0.
|
|
6661
6670
|
*/
|
|
6662
6671
|
operationMode?: OperationMode | keyof typeof OperationMode;
|
|
6663
6672
|
/**
|
|
@@ -6667,13 +6676,9 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6667
6676
|
*/
|
|
6668
6677
|
threshold?: number;
|
|
6669
6678
|
/**
|
|
6670
|
-
*
|
|
6671
|
-
*
|
|
6672
|
-
*
|
|
6673
|
-
* only if your back end supports pre-filtering the tree and is capable of responding with a complete tree
|
|
6674
|
-
* hierarchy, including all inner nodes. To construct the hierarchy on the client, it is mandatory that
|
|
6675
|
-
* all filter matches include their complete parent chain up to the root level. If {@link sap.ui.model.odata.OperationMode.Client OperationMode.Client }
|
|
6676
|
-
* is used, the complete collection without filters is requested; filters are applied on the client side.
|
|
6679
|
+
* Whether `$filter` statements should be used for the `$count` / `$inlinecount` requests and for the data
|
|
6680
|
+
* request if the operation mode is {@link sap.ui.model.odata.OperationMode.Auto OperationMode.Auto} or
|
|
6681
|
+
* {@link sap.ui.model.odata.OperationMode.Client OperationMode.Client}
|
|
6677
6682
|
*/
|
|
6678
6683
|
useServersideApplicationFilters?: boolean;
|
|
6679
6684
|
/**
|
|
@@ -6687,6 +6692,18 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6687
6692
|
* or {@link sap.ui.model.odata.OperationMode.Auto OperationMode.Auto} is used.
|
|
6688
6693
|
*/
|
|
6689
6694
|
treeState?: any;
|
|
6695
|
+
/**
|
|
6696
|
+
* This parameter is experimental as of version 1.141.0.
|
|
6697
|
+
*
|
|
6698
|
+
* Whether the tree state is restored on hierarchy maintenance, such as adding, removing, or deleting a
|
|
6699
|
+
* node. This is only supported if the following conditions are met:
|
|
6700
|
+
* - The binding has to use {@link sap.ui.model.odata.OperationMode.Server OperationMode.Server}
|
|
6701
|
+
* - The `"hierarchy-node-descendant-count-for"` annotation must be present in the service metadata or
|
|
6702
|
+
* provided via `treeAnnotationProperties.hierarchyNodeDescendantCountFor`
|
|
6703
|
+
* - The `"hierarchy-preorder-rank-for"` annotation must be present in the service metadata or provided
|
|
6704
|
+
* via `treeAnnotationProperties.hierarchyPreorderRankFor`
|
|
6705
|
+
*/
|
|
6706
|
+
restoreTreeStateAfterChange?: boolean;
|
|
6690
6707
|
/**
|
|
6691
6708
|
* Defines the count mode of this binding; if not specified, the default count mode of the binding's model
|
|
6692
6709
|
* is applied. The resulting count mode must not be {@link sap.ui.model.odata.CountMode.None}.
|
|
@@ -6698,16 +6715,16 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6698
6715
|
*/
|
|
6699
6716
|
usePreliminaryContext?: boolean;
|
|
6700
6717
|
/**
|
|
6701
|
-
* **Deprecated**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6702
|
-
* this binding
|
|
6718
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
6719
|
+
* originating from this binding
|
|
6703
6720
|
*/
|
|
6704
6721
|
batchGroupId?: string;
|
|
6705
6722
|
/**
|
|
6706
6723
|
* A map describing the navigation properties between entity sets, which is used for constructing and paging
|
|
6707
6724
|
* the tree. Keys in this object are entity names, whereas the values name the navigation properties.
|
|
6708
6725
|
*
|
|
6709
|
-
* **Deprecated
|
|
6710
|
-
* It is recommended to use the hierarchy annotations mentioned above instead.
|
|
6726
|
+
* **Deprecated as of version 1.44** The use of navigation properties to build up the hierarchy structure
|
|
6727
|
+
* is deprecated. It is recommended to use the hierarchy annotations mentioned above instead.
|
|
6711
6728
|
*/
|
|
6712
6729
|
navigation?: object;
|
|
6713
6730
|
},
|
|
@@ -6827,7 +6844,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6827
6844
|
*/
|
|
6828
6845
|
urlParameters?: Record<string, any>;
|
|
6829
6846
|
/**
|
|
6830
|
-
* **Deprecated
|
|
6847
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
6831
6848
|
*/
|
|
6832
6849
|
batchGroupId?: string;
|
|
6833
6850
|
}
|
|
@@ -6890,7 +6907,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
6890
6907
|
*/
|
|
6891
6908
|
headers?: Record<string, string>;
|
|
6892
6909
|
/**
|
|
6893
|
-
* Deprecated
|
|
6910
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
6894
6911
|
*/
|
|
6895
6912
|
batchGroupId?: string;
|
|
6896
6913
|
/**
|
|
@@ -7030,7 +7047,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
7030
7047
|
*/
|
|
7031
7048
|
mParameters: {
|
|
7032
7049
|
/**
|
|
7033
|
-
* Deprecated
|
|
7050
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
7034
7051
|
*/
|
|
7035
7052
|
batchGroupId?: string;
|
|
7036
7053
|
/**
|
|
@@ -7657,9 +7674,9 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
7657
7674
|
*/
|
|
7658
7675
|
oContext?: object,
|
|
7659
7676
|
/**
|
|
7660
|
-
* Deprecated
|
|
7661
|
-
* for navigation properties of this property which have been read via `$expand`
|
|
7662
|
-
* value.
|
|
7677
|
+
* **Deprecated as of version 1.41.0**, use {@link #getObject} function with 'select' and 'expand' parameters
|
|
7678
|
+
* instead. Whether entities for navigation properties of this property which have been read via `$expand`
|
|
7679
|
+
* are part of the return value.
|
|
7663
7680
|
*/
|
|
7664
7681
|
bIncludeExpandEntries?: boolean
|
|
7665
7682
|
): any;
|
|
@@ -7895,7 +7912,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
7895
7912
|
*/
|
|
7896
7913
|
error?: Function;
|
|
7897
7914
|
/**
|
|
7898
|
-
* Deprecated
|
|
7915
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
7899
7916
|
*/
|
|
7900
7917
|
batchGroupId?: string;
|
|
7901
7918
|
/**
|
|
@@ -8008,7 +8025,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
8008
8025
|
*/
|
|
8009
8026
|
headers?: Record<string, string>;
|
|
8010
8027
|
/**
|
|
8011
|
-
* Deprecated
|
|
8028
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
8012
8029
|
*/
|
|
8013
8030
|
batchGroupId?: string;
|
|
8014
8031
|
/**
|
|
@@ -8297,13 +8314,14 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
8297
8314
|
*/
|
|
8298
8315
|
error?: Function;
|
|
8299
8316
|
/**
|
|
8300
|
-
* **Deprecated**, use `groupId` instead
|
|
8317
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
8301
8318
|
*/
|
|
8302
8319
|
batchGroupId?: string;
|
|
8303
8320
|
/**
|
|
8304
|
-
* **Deprecated
|
|
8305
|
-
* update method is determined from the `defaultUpdateMethod` constructor parameter. If `true`,
|
|
8306
|
-
* is used for update operations; if set to `false`, `sap.ui.model.odata.UpdateMethod.PUT`
|
|
8321
|
+
* **Deprecated as of version 1.38.0**, use the `defaultUpdateMethod` constructor parameter instead. If
|
|
8322
|
+
* unset, the update method is determined from the `defaultUpdateMethod` constructor parameter. If `true`,
|
|
8323
|
+
* `sap.ui.model.odata.UpdateMethod.MERGE` is used for update operations; if set to `false`, `sap.ui.model.odata.UpdateMethod.PUT`
|
|
8324
|
+
* is used.
|
|
8307
8325
|
*/
|
|
8308
8326
|
merge?: boolean;
|
|
8309
8327
|
}
|
|
@@ -8362,7 +8380,7 @@ declare module "sap/ui/model/odata/v2/ODataModel" {
|
|
|
8362
8380
|
*/
|
|
8363
8381
|
headers?: Record<string, string>;
|
|
8364
8382
|
/**
|
|
8365
|
-
* Deprecated
|
|
8383
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead
|
|
8366
8384
|
*/
|
|
8367
8385
|
batchGroupId?: string;
|
|
8368
8386
|
/**
|
|
@@ -10213,8 +10231,6 @@ declare module "sap/ui/util/Mobile" {
|
|
|
10213
10231
|
* work in case there is already a meta tag with name 'viewport'.
|
|
10214
10232
|
* - statusBar: the iOS status bar color, "default", "black" or "black-translucent" (default: "default")
|
|
10215
10233
|
*
|
|
10216
|
-
* - hideBrowser: whether the browser UI should be hidden as far as possible to make the app feel more
|
|
10217
|
-
* native (default: true)
|
|
10218
10234
|
* - preventScroll: whether native scrolling should be disabled in order to prevent the "rubber-band"
|
|
10219
10235
|
* effect where the whole window is moved (default: true)
|
|
10220
10236
|
* - preventPhoneNumberDetection: whether Safari Mobile should be prevented from transforming any numbers
|
|
@@ -10222,8 +10238,6 @@ declare module "sap/ui/util/Mobile" {
|
|
|
10222
10238
|
* break controls because Safari actually changes the DOM. This only affects all page content which is created
|
|
10223
10239
|
* after init() is called and only in case there is not already a meta tag with name 'format-detection'.
|
|
10224
10240
|
*
|
|
10225
|
-
* - rootId: the ID of the root element that should be made fullscreen; only used when hideBrowser is
|
|
10226
|
-
* set (default: the document.body)
|
|
10227
10241
|
* - useFullScreenHeight: a boolean that defines whether the height of the html root element should be
|
|
10228
10242
|
* set to 100%, which is required for other elements to cover the full height (default: true) homeIcon:
|
|
10229
10243
|
* deprecated since 1.12, use sap/ui/util/Mobile.setIcons instead.
|
|
@@ -10241,10 +10255,6 @@ declare module "sap/ui/util/Mobile" {
|
|
|
10241
10255
|
* the iOS status bar color, "default", "black" or "black-translucent"
|
|
10242
10256
|
*/
|
|
10243
10257
|
statusBar?: string;
|
|
10244
|
-
/**
|
|
10245
|
-
* whether the browser UI should be hidden as far as possible to make the app feel more native
|
|
10246
|
-
*/
|
|
10247
|
-
hideBrowser?: boolean;
|
|
10248
10258
|
/**
|
|
10249
10259
|
* whether native scrolling should be disabled in order to prevent the "rubber-band" effect where the whole
|
|
10250
10260
|
* window is moved
|
|
@@ -10255,11 +10265,6 @@ declare module "sap/ui/util/Mobile" {
|
|
|
10255
10265
|
* into clickable links
|
|
10256
10266
|
*/
|
|
10257
10267
|
preventPhoneNumberDetection?: boolean;
|
|
10258
|
-
/**
|
|
10259
|
-
* the ID of the root element that should be made fullscreen; only used when hideBrowser is set. If not
|
|
10260
|
-
* set, the body is used
|
|
10261
|
-
*/
|
|
10262
|
-
rootId?: string;
|
|
10263
10268
|
/**
|
|
10264
10269
|
* whether the height of the html root element should be set to 100%, which is required for other elements
|
|
10265
10270
|
* to cover the full height
|
|
@@ -16829,7 +16834,7 @@ declare module "sap/ui/core/library" {
|
|
|
16829
16834
|
/**
|
|
16830
16835
|
* A string type representing an ID or a name.
|
|
16831
16836
|
*
|
|
16832
|
-
* Allowed is a sequence of characters (capital/lowercase), digits, underscores,
|
|
16837
|
+
* Allowed is a sequence of characters (capital/lowercase), digits, underscores, hyphens, dots and/or colons.
|
|
16833
16838
|
* It may start with a character or underscore only.
|
|
16834
16839
|
*/
|
|
16835
16840
|
export type ID = string;
|
|
@@ -19461,7 +19466,7 @@ declare module "sap/ui/core/ComponentContainer" {
|
|
|
19461
19466
|
* Gets current value of property {@link #getAutoPrefixId autoPrefixId}.
|
|
19462
19467
|
*
|
|
19463
19468
|
* Flag, whether to auto-prefix the ID of the nested Component or not. If this property is set to true the
|
|
19464
|
-
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single
|
|
19469
|
+
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single hyphen.
|
|
19465
19470
|
* This property can only be applied initially.
|
|
19466
19471
|
*
|
|
19467
19472
|
* Default value is `false`.
|
|
@@ -19614,7 +19619,7 @@ declare module "sap/ui/core/ComponentContainer" {
|
|
|
19614
19619
|
* Sets a new value for property {@link #getAutoPrefixId autoPrefixId}.
|
|
19615
19620
|
*
|
|
19616
19621
|
* Flag, whether to auto-prefix the ID of the nested Component or not. If this property is set to true the
|
|
19617
|
-
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single
|
|
19622
|
+
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single hyphen.
|
|
19618
19623
|
* This property can only be applied initially.
|
|
19619
19624
|
*
|
|
19620
19625
|
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
@@ -19896,7 +19901,7 @@ declare module "sap/ui/core/ComponentContainer" {
|
|
|
19896
19901
|
|
|
19897
19902
|
/**
|
|
19898
19903
|
* Flag, whether to auto-prefix the ID of the nested Component or not. If this property is set to true the
|
|
19899
|
-
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single
|
|
19904
|
+
* ID of the Component will be prefixed with the ID of the ComponentContainer followed by a single hyphen.
|
|
19900
19905
|
* This property can only be applied initially.
|
|
19901
19906
|
*/
|
|
19902
19907
|
autoPrefixId?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
@@ -20555,8 +20560,8 @@ declare module "sap/ui/core/Configuration" {
|
|
|
20555
20560
|
* The value returned by config method in most cases corresponds to the exact value that has been configured
|
|
20556
20561
|
* by the user or application or that has been determined from the user agent settings. It has not been
|
|
20557
20562
|
* normalized, but has been validated against a relaxed version of {@link http://www.ietf.org/rfc/bcp/bcp47.txt BCP47},
|
|
20558
|
-
* allowing underscores ('_') instead of the suggested
|
|
20559
|
-
* account.
|
|
20563
|
+
* allowing underscores ('_') instead of the suggested hyphens ('-') and not taking the case of letters
|
|
20564
|
+
* into account.
|
|
20560
20565
|
*
|
|
20561
20566
|
* The exceptions mentioned above affect languages that have been specified via the URL parameter `sap-language`.
|
|
20562
20567
|
* That parameter by definition represents an SAP logon language code ('ABAP language'). Most but not all
|
|
@@ -20825,7 +20830,7 @@ declare module "sap/ui/core/Configuration" {
|
|
|
20825
20830
|
setFormatLocale(
|
|
20826
20831
|
/**
|
|
20827
20832
|
* the new format locale as a BCP47 compliant language tag; case doesn't matter and underscores can be used
|
|
20828
|
-
* instead of
|
|
20833
|
+
* instead of hyphens to separate components (compatibility with Java Locale IDs)
|
|
20829
20834
|
*/
|
|
20830
20835
|
sFormatLocale: string | null
|
|
20831
20836
|
): this;
|
|
@@ -20882,7 +20887,7 @@ declare module "sap/ui/core/Configuration" {
|
|
|
20882
20887
|
setLanguage(
|
|
20883
20888
|
/**
|
|
20884
20889
|
* the new language as a BCP47 compliant language tag; case doesn't matter and underscores can be used instead
|
|
20885
|
-
* of
|
|
20890
|
+
* of hyphens to separate components (compatibility with Java Locale IDs)
|
|
20886
20891
|
*/
|
|
20887
20892
|
sLanguage: string,
|
|
20888
20893
|
/**
|
|
@@ -27183,8 +27188,8 @@ declare module "sap/ui/core/Element" {
|
|
|
27183
27188
|
* returned by {@link sap.ui.core.Element#getDomRef} is wrapped and returned.
|
|
27184
27189
|
*
|
|
27185
27190
|
* If an ID suffix is given, the ID of this Element is concatenated with the suffix (separated by a single
|
|
27186
|
-
*
|
|
27187
|
-
* for named inner DOM nodes of a control.
|
|
27191
|
+
* hyphen) and the DOM node with that compound ID will be wrapped by jQuery. This matches the UI5 naming
|
|
27192
|
+
* convention for named inner DOM nodes of a control.
|
|
27188
27193
|
*
|
|
27189
27194
|
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
27190
27195
|
*
|
|
@@ -27618,7 +27623,7 @@ declare module "sap/ui/core/Element" {
|
|
|
27618
27623
|
* their current state (e.g. an initial, not yet rendered control).
|
|
27619
27624
|
*
|
|
27620
27625
|
* If an ID suffix is given, the ID of this Element is concatenated with the suffix (separated by a single
|
|
27621
|
-
*
|
|
27626
|
+
* hyphen) and the DOM node with that compound ID will be returned. This matches the UI5 naming convention
|
|
27622
27627
|
* for named inner DOM nodes of a control.
|
|
27623
27628
|
*
|
|
27624
27629
|
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
@@ -34224,8 +34229,8 @@ declare module "sap/ui/core/Locale" {
|
|
|
34224
34229
|
/**
|
|
34225
34230
|
* Get the locale extension as a single string or `null`.
|
|
34226
34231
|
*
|
|
34227
|
-
* The extension always consists of a singleton character (not 'x'), a
|
|
34228
|
-
* token, each separated again with a
|
|
34232
|
+
* The extension always consists of a singleton character (not 'x'), a hyphen '-' and one or more extension
|
|
34233
|
+
* token, each separated again with a hyphen.
|
|
34229
34234
|
*
|
|
34230
34235
|
* Use {@link #getExtensions} to get the individual extension tokens as an array.
|
|
34231
34236
|
*
|
|
@@ -34236,7 +34241,7 @@ declare module "sap/ui/core/Locale" {
|
|
|
34236
34241
|
/**
|
|
34237
34242
|
* Get the locale extensions as an array of tokens.
|
|
34238
34243
|
*
|
|
34239
|
-
* The leading singleton and the separating
|
|
34244
|
+
* The leading singleton and the separating hyphens are not part of the result. If there is no extensions
|
|
34240
34245
|
* section in the locale tag, an empty array is returned.
|
|
34241
34246
|
*
|
|
34242
34247
|
*
|
|
@@ -34263,7 +34268,7 @@ declare module "sap/ui/core/Locale" {
|
|
|
34263
34268
|
/**
|
|
34264
34269
|
* Get the locale private use section as an array of tokens.
|
|
34265
34270
|
*
|
|
34266
|
-
* The leading singleton and the separating
|
|
34271
|
+
* The leading singleton and the separating hyphens are not part of the result. If there is no private use
|
|
34267
34272
|
* section in the locale tag, an empty array is returned.
|
|
34268
34273
|
*
|
|
34269
34274
|
*
|
|
@@ -34315,7 +34320,7 @@ declare module "sap/ui/core/Locale" {
|
|
|
34315
34320
|
/**
|
|
34316
34321
|
* Get the locale variants as a single string or `null`.
|
|
34317
34322
|
*
|
|
34318
|
-
* Multiple variants are separated by a
|
|
34323
|
+
* Multiple variants are separated by a hyphen '-'.
|
|
34319
34324
|
*
|
|
34320
34325
|
*
|
|
34321
34326
|
* @returns the variant or `null`
|
|
@@ -34324,8 +34329,8 @@ declare module "sap/ui/core/Locale" {
|
|
|
34324
34329
|
/**
|
|
34325
34330
|
* Get the locale variants as an array of individual variants.
|
|
34326
34331
|
*
|
|
34327
|
-
* The separating
|
|
34328
|
-
* empty array is returned.
|
|
34332
|
+
* The separating hyphens are not part of the result. If there is no variant section in the locale tag,
|
|
34333
|
+
* an empty array is returned.
|
|
34329
34334
|
*
|
|
34330
34335
|
*
|
|
34331
34336
|
* @returns the individual variant sections
|
|
@@ -43171,10 +43176,15 @@ declare module "sap/ui/core/routing/History" {
|
|
|
43171
43176
|
*/
|
|
43172
43177
|
static getInstance(): History;
|
|
43173
43178
|
/**
|
|
43174
|
-
* Determines what the navigation direction for a newly given hash would be
|
|
43175
|
-
*
|
|
43176
|
-
*
|
|
43177
|
-
*
|
|
43179
|
+
* Determines what the navigation direction for a newly given hash would be.
|
|
43180
|
+
*
|
|
43181
|
+
* Returns the direction as {@link sap.ui.core.routing.HistoryDirection} (for example: Forwards, Backwards,
|
|
43182
|
+
* NewEntry). If no navigation has occurred yet, returns `undefined`. In cases where the direction cannot
|
|
43183
|
+
* be determined (if the same hash appears in multiple places), returns {@link sap.ui.core.routing.HistoryDirection.Unknown}.
|
|
43184
|
+
* For hash replacements, the history stack is updated at the current position.
|
|
43185
|
+
*
|
|
43186
|
+
* Example: It will say "Unknown" if there is a history "foo" - "bar" (current history) - "foo". If you
|
|
43187
|
+
* now ask for the direction of the hash "foo" you get "Unknown" because it might be backwards or forwards.
|
|
43178
43188
|
*
|
|
43179
43189
|
*
|
|
43180
43190
|
* @returns Direction for the given hash or `undefined`, if no navigation has taken place yet.
|
|
@@ -43258,7 +43268,23 @@ declare module "sap/ui/core/routing/Router" {
|
|
|
43258
43268
|
|
|
43259
43269
|
export default class Router extends EventProvider {
|
|
43260
43270
|
/**
|
|
43261
|
-
*
|
|
43271
|
+
* A Router is responsible for managing navigation within an application by interpreting and responding
|
|
43272
|
+
* to changes in the URL hash. It enables applications to define routes, map them to Views/Components, and
|
|
43273
|
+
* control their placement and transitions — all in a structured and declarative way.
|
|
43274
|
+
*
|
|
43275
|
+
* A router:
|
|
43276
|
+
* - Listens to hash changes and matches them to configured route patterns
|
|
43277
|
+
* - Instantiates Views/Components dynamically when a route is matched and caches them for better performance
|
|
43278
|
+
*
|
|
43279
|
+
* - Places Views/Components into UI containers based on the defined targets and aggregations
|
|
43280
|
+
* - Maintains the browser history and consistent back/forward navigation behavior
|
|
43281
|
+
* - Fires events such as `routeMatched` and `routePatternMatched`, allowing developers to run logic when
|
|
43282
|
+
* routes change
|
|
43283
|
+
* - Handles unmatched routes through a special bypassed configuration for displaying "Not Found" View(s)
|
|
43284
|
+
* or fallbacks
|
|
43285
|
+
*
|
|
43286
|
+
* It can be used directly or via a {@link sap.ui.core.UIComponent UIComponent}'s metadata (manifest.json)
|
|
43287
|
+
* to create scalable, maintainable, and testable navigation structures across complex applications.
|
|
43262
43288
|
*/
|
|
43263
43289
|
constructor(
|
|
43264
43290
|
/**
|
|
@@ -49326,11 +49352,21 @@ declare module "sap/ui/core/UIComponent" {
|
|
|
49326
49352
|
/**
|
|
49327
49353
|
* Initializes the component instance after creation.
|
|
49328
49354
|
*
|
|
49329
|
-
*
|
|
49330
|
-
*
|
|
49355
|
+
* The primary responsibility of this method is to create the root control of the component and manage its
|
|
49356
|
+
* aggregation in the "rootControl" aggregation. This is performed internally by invoking the {@link sap.ui.core.UIComponent#createContent }
|
|
49357
|
+
* method.
|
|
49358
|
+
*
|
|
49359
|
+
* Depending on the class metadata (e.g., if the "sap.ui.core.IAsyncContentCreation" interface is implemented),
|
|
49360
|
+
* the root control may be created synchronously or asynchronously.
|
|
49361
|
+
*
|
|
49362
|
+
* Additionally, this method is responsible for creating the router and targets instances.
|
|
49363
|
+
*
|
|
49364
|
+
* **Note:** Applications must not call this hook method directly; it is invoked by the framework during
|
|
49365
|
+
* the execution of the Component constructor.
|
|
49331
49366
|
*
|
|
49332
|
-
* Subclasses of `UIComponent` should override this hook to implement any
|
|
49333
|
-
* overriding this
|
|
49367
|
+
* Subclasses of `UIComponent` should override this hook to implement any required initialization logic.
|
|
49368
|
+
* **When overriding this method, ensure that you always invoke the `init` method of the `UIComponent` base
|
|
49369
|
+
* class.**
|
|
49334
49370
|
*
|
|
49335
49371
|
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
49336
49372
|
*/
|
|
@@ -51866,6 +51902,18 @@ declare module "sap/ui/core/webc/WebComponent" {
|
|
|
51866
51902
|
* @returns Metadata object describing this class
|
|
51867
51903
|
*/
|
|
51868
51904
|
static getMetadata(): WebComponentMetadata;
|
|
51905
|
+
/**
|
|
51906
|
+
* Sets the Web Components busy state
|
|
51907
|
+
*
|
|
51908
|
+
*
|
|
51909
|
+
* @returns `this` to allow method chaining
|
|
51910
|
+
*/
|
|
51911
|
+
setBusy(
|
|
51912
|
+
/**
|
|
51913
|
+
* The new busy state to be set
|
|
51914
|
+
*/
|
|
51915
|
+
bBusy: boolean
|
|
51916
|
+
): this;
|
|
51869
51917
|
}
|
|
51870
51918
|
/**
|
|
51871
51919
|
* The structure of the "metadata" object which is passed when inheriting from sap.ui.core.Element using
|
|
@@ -51891,6 +51939,11 @@ declare module "sap/ui/core/webc/WebComponent" {
|
|
|
51891
51939
|
* for more details.
|
|
51892
51940
|
*/
|
|
51893
51941
|
associations?: Record<string, string | MetadataOptions.Association>;
|
|
51942
|
+
/**
|
|
51943
|
+
* An object literal whose properties each define a new event of the ManagedObject subclass. See {@link sap.ui.base.ManagedObject.MetadataOptions.Event Event }
|
|
51944
|
+
* for more details.
|
|
51945
|
+
*/
|
|
51946
|
+
events?: Record<string, string | MetadataOptions.Event>;
|
|
51894
51947
|
/**
|
|
51895
51948
|
* Proxied public getters of the Web Component which are directly accessible on the wrapper Control.
|
|
51896
51949
|
*/
|
|
@@ -51901,15 +51954,11 @@ declare module "sap/ui/core/webc/WebComponent" {
|
|
|
51901
51954
|
methods?: string[];
|
|
51902
51955
|
};
|
|
51903
51956
|
|
|
51904
|
-
/**
|
|
51905
|
-
* HACK! This mapping omits the `no-unnecessary-qualifier` error or we need to extend the `tslint.json`!
|
|
51906
|
-
*/
|
|
51907
51957
|
export type MetadataOptionsAssociationMapping =
|
|
51908
51958
|
MetadataOptions.Association.Mapping;
|
|
51909
51959
|
|
|
51910
|
-
|
|
51911
|
-
|
|
51912
|
-
*/
|
|
51960
|
+
export type MetadataOptionsEventMapping = MetadataOptions.Event.Mapping;
|
|
51961
|
+
|
|
51913
51962
|
export type MetadataOptionsPropertyMapping = MetadataOptions.Property.Mapping;
|
|
51914
51963
|
|
|
51915
51964
|
/**
|
|
@@ -51940,6 +51989,18 @@ declare module "sap/ui/core/webc/WebComponent" {
|
|
|
51940
51989
|
};
|
|
51941
51990
|
}
|
|
51942
51991
|
|
|
51992
|
+
namespace Event {
|
|
51993
|
+
/**
|
|
51994
|
+
* An object literal describing the mapping of an event of a class derived from `sap.ui.core.webc.WebComponent`.
|
|
51995
|
+
*/
|
|
51996
|
+
type Mapping = {
|
|
51997
|
+
/**
|
|
51998
|
+
* Defines the target of the mapping of the event to which name it will be mapped to.
|
|
51999
|
+
*/
|
|
52000
|
+
to?: string;
|
|
52001
|
+
};
|
|
52002
|
+
}
|
|
52003
|
+
|
|
51943
52004
|
namespace Property {
|
|
51944
52005
|
/**
|
|
51945
52006
|
* An object literal describing the mapping of a property of a class derived from `sap.ui.core.webc.WebComponent`.
|
|
@@ -51988,6 +52049,17 @@ declare module "sap/ui/core/webc/WebComponent" {
|
|
|
51988
52049
|
mapping?: "property" | MetadataOptionsAssociationMapping;
|
|
51989
52050
|
};
|
|
51990
52051
|
|
|
52052
|
+
/**
|
|
52053
|
+
* An object literal describing an event of a class derived from `sap.ui.core.webc.WebComponent`. See {@link sap.ui.core.webc.WebComponent.MetadataOptions MetadataOptions }
|
|
52054
|
+
* for details on its usage.
|
|
52055
|
+
*/
|
|
52056
|
+
type Event = MetadataOptions2.Event & {
|
|
52057
|
+
/**
|
|
52058
|
+
* Defines the mapping of the event.
|
|
52059
|
+
*/
|
|
52060
|
+
mapping?: MetadataOptionsEventMapping;
|
|
52061
|
+
};
|
|
52062
|
+
|
|
51991
52063
|
/**
|
|
51992
52064
|
* An object literal describing a property of a class derived from `sap.ui.core.webc.WebComponent`. See
|
|
51993
52065
|
* {@link sap.ui.core.webc.WebComponent.MetadataOptions MetadataOptions} for details on its usage.
|
|
@@ -59718,6 +59790,260 @@ declare module "sap/ui/model/json/JSONModel" {
|
|
|
59718
59790
|
}
|
|
59719
59791
|
}
|
|
59720
59792
|
|
|
59793
|
+
declare module "sap/ui/model/json/TypedJSONModel" {
|
|
59794
|
+
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
59795
|
+
import TypedJSONContext from "sap/ui/model/json/TypedJSONContext";
|
|
59796
|
+
import Context from "sap/ui/model/Context";
|
|
59797
|
+
|
|
59798
|
+
/**
|
|
59799
|
+
* TypedJSONModel is a subclass of JSONModel that provides type-safe access to the model data. It is only available when using UI5 with TypeScript.
|
|
59800
|
+
*
|
|
59801
|
+
* @since 1.140.0
|
|
59802
|
+
*/
|
|
59803
|
+
export default class TypedJSONModel<Data extends object> extends JSONModel {
|
|
59804
|
+
constructor(oData?: Data, bObserve?: boolean);
|
|
59805
|
+
createBindingContext<Path extends AbsoluteBindingPath<Data>>(
|
|
59806
|
+
sPath: Path,
|
|
59807
|
+
oContext?: Context,
|
|
59808
|
+
mParameters?: object,
|
|
59809
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
59810
|
+
fnCallBack?: Function,
|
|
59811
|
+
bReload?: boolean
|
|
59812
|
+
): TypedJSONContext<Data, Path>;
|
|
59813
|
+
getData(): Data;
|
|
59814
|
+
getProperty<Path extends AbsoluteBindingPath<Data>>(
|
|
59815
|
+
sPath: Path
|
|
59816
|
+
): PropertyByAbsoluteBindingPath<Data, Path>;
|
|
59817
|
+
getProperty<
|
|
59818
|
+
Path extends RelativeBindingPath<Data, Root>,
|
|
59819
|
+
Root extends AbsoluteBindingPath<Data>,
|
|
59820
|
+
>(
|
|
59821
|
+
sPath: Path,
|
|
59822
|
+
oContext: TypedJSONContext<Data, Root>
|
|
59823
|
+
): PropertyByRelativeBindingPath<Data, Root, Path>;
|
|
59824
|
+
|
|
59825
|
+
setData(oData: Data, bMerge?: boolean): void;
|
|
59826
|
+
|
|
59827
|
+
// setProperty with AbsoluteBindingPath (context === undefined),
|
|
59828
|
+
// PLEASE NOTE: the parameter is still necessary so
|
|
59829
|
+
// the bAsyncUpdate parameter can also be used with absolute paths.
|
|
59830
|
+
setProperty<Path extends AbsoluteBindingPath<Data>>(
|
|
59831
|
+
sPath: Path,
|
|
59832
|
+
oValue: PropertyByAbsoluteBindingPath<Data, Path>,
|
|
59833
|
+
oContext?: undefined,
|
|
59834
|
+
bAsyncUpdate?: boolean
|
|
59835
|
+
): boolean;
|
|
59836
|
+
setProperty<
|
|
59837
|
+
Path extends RelativeBindingPath<Data, Root>,
|
|
59838
|
+
Root extends AbsoluteBindingPath<Data>,
|
|
59839
|
+
>(
|
|
59840
|
+
sPath: Path,
|
|
59841
|
+
oValue: PropertyByRelativeBindingPath<Data, Root, Path>,
|
|
59842
|
+
oContext: TypedJSONContext<Data, Root>,
|
|
59843
|
+
bAsyncUpdate?: boolean
|
|
59844
|
+
): boolean;
|
|
59845
|
+
}
|
|
59846
|
+
|
|
59847
|
+
/**
|
|
59848
|
+
* Valid absolute binding in a JSONModel with the underlying type `Type`.
|
|
59849
|
+
* Counterpart to {@link PropertyByAbsoluteBindingPath}
|
|
59850
|
+
* @example
|
|
59851
|
+
* type Person = { name: string, id: number };
|
|
59852
|
+
* type PathInPerson = PathInJSONModel<Person>; // "/name" | "/id"
|
|
59853
|
+
* let path: PathInPerson = "/name"; // ok
|
|
59854
|
+
* path = "/firstName"; // error
|
|
59855
|
+
*/
|
|
59856
|
+
export type AbsoluteBindingPath<Type> =
|
|
59857
|
+
Type extends Array<unknown>
|
|
59858
|
+
? // if Type is an array:
|
|
59859
|
+
| `/${number}` // /0 -> first element of array
|
|
59860
|
+
| `/${number}${AbsoluteBindingPath<Type[number]>}` // /0/{NestedPath}
|
|
59861
|
+
: // if Type is not an array:
|
|
59862
|
+
Type extends object
|
|
59863
|
+
?
|
|
59864
|
+
| {
|
|
59865
|
+
[Key in keyof Type]: Type[Key] extends Array<unknown>
|
|
59866
|
+
? // Type[Key] is an array:
|
|
59867
|
+
| `/${string & Key}/${number}` // items/0 -> elem of array
|
|
59868
|
+
// path can end there or:
|
|
59869
|
+
| `/${string & Key}/${number}${AbsoluteBindingPath<Type[Key][number]>}` // items/0/{NestedPath}
|
|
59870
|
+
: // Type[Key] is NOT an array:
|
|
59871
|
+
`/${string & Key}${AbsoluteBindingPath<Type[Key]>}`;
|
|
59872
|
+
}[keyof Type]
|
|
59873
|
+
| `/${string & PropertiesOf<Type>}` // /items/0/id -> last part of path
|
|
59874
|
+
: // if T is not of type object:
|
|
59875
|
+
never;
|
|
59876
|
+
|
|
59877
|
+
/**
|
|
59878
|
+
* Valid relative binding path in a JSONModel.
|
|
59879
|
+
* The root of the path is defined by the given root string.
|
|
59880
|
+
*
|
|
59881
|
+
* @example
|
|
59882
|
+
* type PersonWrapper = { person: { name: string, id: number } };
|
|
59883
|
+
* type PathRelativeToPerson = RelativeBindingPath<PersonWrapper, "/person">; // "name" | "id"
|
|
59884
|
+
*/
|
|
59885
|
+
export type RelativeBindingPath<
|
|
59886
|
+
Type,
|
|
59887
|
+
Root extends AbsoluteBindingPath<Type>,
|
|
59888
|
+
> =
|
|
59889
|
+
AbsoluteBindingPath<TypeAtPath<Type, Root>> extends `/${infer Rest}`
|
|
59890
|
+
? Rest
|
|
59891
|
+
: never;
|
|
59892
|
+
|
|
59893
|
+
/**
|
|
59894
|
+
* The type of a property in a JSONModel identified by the given path.
|
|
59895
|
+
* Counterpart to {@link AbsoluteBindingPath}.
|
|
59896
|
+
* @example
|
|
59897
|
+
* type Person = { name: string, id: number };
|
|
59898
|
+
* type PersonName = PropertyInJSONModel<Person, "/name">; // string
|
|
59899
|
+
* const name: PersonName = "John"; // ok
|
|
59900
|
+
*/
|
|
59901
|
+
export type PropertyByAbsoluteBindingPath<
|
|
59902
|
+
Type,
|
|
59903
|
+
Path extends string,
|
|
59904
|
+
> = Path extends `/${number}`
|
|
59905
|
+
? Type extends Array<infer U>
|
|
59906
|
+
? U
|
|
59907
|
+
: never
|
|
59908
|
+
: Path extends `/${number}${infer Rest}`
|
|
59909
|
+
? Type extends Array<infer U>
|
|
59910
|
+
? PropertyByAbsoluteBindingPath<U, Rest>
|
|
59911
|
+
: never
|
|
59912
|
+
: Path extends `/${infer Key}/${number}/${infer Rest}`
|
|
59913
|
+
? Key extends keyof Type
|
|
59914
|
+
? FromArrayWithSubPath<Type, Key, Rest>
|
|
59915
|
+
: never
|
|
59916
|
+
: Path extends `/${infer Key}/${number}`
|
|
59917
|
+
? Key extends keyof Type
|
|
59918
|
+
? FromArrayElement<Type, Key>
|
|
59919
|
+
: never
|
|
59920
|
+
: Path extends `/${infer Key}/${infer Rest}`
|
|
59921
|
+
? Key extends keyof Type
|
|
59922
|
+
? FromNestedProperty<Type, Key, Rest>
|
|
59923
|
+
: never
|
|
59924
|
+
: Path extends `/${infer Key}`
|
|
59925
|
+
? Key extends keyof Type
|
|
59926
|
+
? FromTopLevelProperty<Type, Key>
|
|
59927
|
+
: never
|
|
59928
|
+
: never;
|
|
59929
|
+
|
|
59930
|
+
/**
|
|
59931
|
+
* The type of a property in a JSONModel identified by the given relative path and root.
|
|
59932
|
+
* Counterpart to {@link RelativeBindingPath}.
|
|
59933
|
+
* @example
|
|
59934
|
+
* type PersonWrapper = { person: { name: string, id: number } };
|
|
59935
|
+
* type PersonName = PropertyByRelativeBindingPath<PersonWrapper, "/person", "name">;
|
|
59936
|
+
* const name: PersonName = "John"; // ok
|
|
59937
|
+
*/
|
|
59938
|
+
export type PropertyByRelativeBindingPath<
|
|
59939
|
+
Type,
|
|
59940
|
+
Root extends string,
|
|
59941
|
+
RelativePath extends string,
|
|
59942
|
+
> = PropertyByAbsoluteBindingPath<Type, `${Root}/${RelativePath}`>;
|
|
59943
|
+
|
|
59944
|
+
/***********************************************************************************************************************
|
|
59945
|
+
* Helper types to split the types above into separate parts
|
|
59946
|
+
* to make it easier to read and understand.
|
|
59947
|
+
/**********************************************************************************************************************/
|
|
59948
|
+
|
|
59949
|
+
/**
|
|
59950
|
+
* Helper type to handle paths that point to an array with a subpath.
|
|
59951
|
+
* @example const path = "/orders/0/items"
|
|
59952
|
+
*/
|
|
59953
|
+
type FromArrayWithSubPath<Type, Key extends keyof Type, Rest extends string> =
|
|
59954
|
+
Type[Key] extends Array<infer U>
|
|
59955
|
+
? PropertyByAbsoluteBindingPath<U, `/${Rest}`>
|
|
59956
|
+
: never;
|
|
59957
|
+
|
|
59958
|
+
/**
|
|
59959
|
+
* Helper type to handle paths that point to an array element.
|
|
59960
|
+
* @example const path = "/orders/0"
|
|
59961
|
+
*/
|
|
59962
|
+
type FromArrayElement<Type, Key extends keyof Type> =
|
|
59963
|
+
Type[Key] extends Array<infer U> ? U : never;
|
|
59964
|
+
|
|
59965
|
+
/**
|
|
59966
|
+
* Helper type to handle paths that point to a nested property.
|
|
59967
|
+
* @example const path = "/customer/address/street"
|
|
59968
|
+
*/
|
|
59969
|
+
type FromNestedProperty<
|
|
59970
|
+
Type,
|
|
59971
|
+
Key extends keyof Type,
|
|
59972
|
+
Rest extends string,
|
|
59973
|
+
> = PropertyByAbsoluteBindingPath<Type[Key], `/${Rest}`>;
|
|
59974
|
+
|
|
59975
|
+
/**
|
|
59976
|
+
* Helper type to handle paths that point to a top-level property.
|
|
59977
|
+
* @example const path = "/customer"
|
|
59978
|
+
*/
|
|
59979
|
+
type FromTopLevelProperty<Type, Key extends keyof Type> = Type[Key];
|
|
59980
|
+
|
|
59981
|
+
/**
|
|
59982
|
+
* Helper type to navigate along a nested path.
|
|
59983
|
+
* Navigates from the root type along the path to determine the sub-type.
|
|
59984
|
+
*/
|
|
59985
|
+
type TypeAtPath<
|
|
59986
|
+
Type,
|
|
59987
|
+
Path extends string,
|
|
59988
|
+
> = Path extends `/${infer Key}/${infer Rest}`
|
|
59989
|
+
? Key extends keyof Type
|
|
59990
|
+
? TypeAtPath<Type[Key], `/${Rest}`>
|
|
59991
|
+
: never
|
|
59992
|
+
: Path extends `/${infer Key}`
|
|
59993
|
+
? Key extends keyof Type
|
|
59994
|
+
? Type[Key]
|
|
59995
|
+
: never
|
|
59996
|
+
: never;
|
|
59997
|
+
|
|
59998
|
+
/**
|
|
59999
|
+
* Helper type to extract the names of the properties of a given type.
|
|
60000
|
+
* Excludes properties that are of the type `Function` or `symbol`.
|
|
60001
|
+
* @example
|
|
60002
|
+
* type Person = { name: string, id: number };
|
|
60003
|
+
* type PersonProperties = PropertiesOf<Person>; // "name" | "id"
|
|
60004
|
+
* let property: PersonProperties = "name"; // ok
|
|
60005
|
+
* property = "firstName"; // error
|
|
60006
|
+
*/
|
|
60007
|
+
type PropertiesOf<Type> = {
|
|
60008
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
60009
|
+
[Key in keyof Type]: Type[Key] extends Function
|
|
60010
|
+
? never
|
|
60011
|
+
: Type[Key] extends symbol
|
|
60012
|
+
? never
|
|
60013
|
+
: Key;
|
|
60014
|
+
}[keyof Type];
|
|
60015
|
+
|
|
60016
|
+
export {}; // this prevents the non-exported types like PropertiesOf from being visible for applications
|
|
60017
|
+
}
|
|
60018
|
+
|
|
60019
|
+
declare module "sap/ui/model/json/TypedJSONContext" {
|
|
60020
|
+
import Context from "sap/ui/model/Context";
|
|
60021
|
+
import TypedJSONModel from "sap/ui/model/json/TypedJSONModel";
|
|
60022
|
+
import {
|
|
60023
|
+
AbsoluteBindingPath,
|
|
60024
|
+
RelativeBindingPath,
|
|
60025
|
+
PropertyByRelativeBindingPath,
|
|
60026
|
+
} from "sap/ui/model/json/TypedJSONModel";
|
|
60027
|
+
|
|
60028
|
+
/**
|
|
60029
|
+
* TypedJSONContext is a subclass of Context that provides type-safe access to the model data. It is only available when using UI5 with TypeScript.
|
|
60030
|
+
*
|
|
60031
|
+
* @since 1.140.0
|
|
60032
|
+
*/
|
|
60033
|
+
export default class TypedJSONContext<
|
|
60034
|
+
Data extends object,
|
|
60035
|
+
Root extends AbsoluteBindingPath<Data>,
|
|
60036
|
+
> extends Context {
|
|
60037
|
+
constructor(oModel: TypedJSONModel<Data>, sPath: Root);
|
|
60038
|
+
|
|
60039
|
+
getModel(): TypedJSONModel<Data>;
|
|
60040
|
+
|
|
60041
|
+
getProperty<P extends RelativeBindingPath<Data, Root>>(
|
|
60042
|
+
sPath: P extends RelativeBindingPath<Data, Root> ? P : never
|
|
60043
|
+
): PropertyByRelativeBindingPath<Data, Root, P>;
|
|
60044
|
+
}
|
|
60045
|
+
}
|
|
60046
|
+
|
|
59721
60047
|
declare module "sap/ui/model/json/JSONPropertyBinding" {
|
|
59722
60048
|
import ClientPropertyBinding from "sap/ui/model/ClientPropertyBinding";
|
|
59723
60049
|
|
|
@@ -61371,7 +61697,7 @@ declare module "sap/ui/model/Model" {
|
|
|
61371
61697
|
async?: boolean;
|
|
61372
61698
|
|
|
61373
61699
|
/**
|
|
61374
|
-
*
|
|
61700
|
+
* **Deprecated as of version 1.38.0.**, additional information for the request (if available)
|
|
61375
61701
|
*/
|
|
61376
61702
|
info?: string;
|
|
61377
61703
|
|
|
@@ -61442,7 +61768,7 @@ declare module "sap/ui/model/Model" {
|
|
|
61442
61768
|
async?: boolean;
|
|
61443
61769
|
|
|
61444
61770
|
/**
|
|
61445
|
-
*
|
|
61771
|
+
* **Deprecated as of version 1.38.0.**, additional information for the request (if available)
|
|
61446
61772
|
*/
|
|
61447
61773
|
info?: string;
|
|
61448
61774
|
|
|
@@ -62734,12 +63060,13 @@ declare module "sap/ui/model/odata/ODataMetadata" {
|
|
|
62734
63060
|
*/
|
|
62735
63061
|
async?: boolean;
|
|
62736
63062
|
/**
|
|
62737
|
-
* **Deprecated** for security reasons. Use strong server side authentication instead.
|
|
63063
|
+
* **Deprecated as of version 1.75.0** for security reasons. Use strong server side authentication instead.
|
|
63064
|
+
* UserID for the service.
|
|
62738
63065
|
*/
|
|
62739
63066
|
user?: string;
|
|
62740
63067
|
/**
|
|
62741
|
-
* **Deprecated** for security reasons. Use strong server side authentication instead.
|
|
62742
|
-
* service.
|
|
63068
|
+
* **Deprecated as of version 1.75.0** for security reasons. Use strong server side authentication instead.
|
|
63069
|
+
* Password for the service.
|
|
62743
63070
|
*/
|
|
62744
63071
|
password?: string;
|
|
62745
63072
|
/**
|
|
@@ -70067,8 +70394,8 @@ declare module "sap/ui/model/odata/v2/ODataContextBinding" {
|
|
|
70067
70394
|
*/
|
|
70068
70395
|
usePreliminaryContext?: boolean;
|
|
70069
70396
|
/**
|
|
70070
|
-
* **Deprecated**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
70071
|
-
* the binding.
|
|
70397
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
70398
|
+
* originating from the binding.
|
|
70072
70399
|
*/
|
|
70073
70400
|
batchGroupId?: string;
|
|
70074
70401
|
}
|
|
@@ -70245,8 +70572,8 @@ declare module "sap/ui/model/odata/v2/ODataListBinding" {
|
|
|
70245
70572
|
*/
|
|
70246
70573
|
usePreliminaryContext?: boolean;
|
|
70247
70574
|
/**
|
|
70248
|
-
* **Deprecated**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
70249
|
-
* the binding.
|
|
70575
|
+
* **Deprecated as of version 1.31.0**, use `groupId` instead. Sets the batch group id to be used for requests
|
|
70576
|
+
* originating from the binding.
|
|
70250
70577
|
*/
|
|
70251
70578
|
batchGroupId?: string;
|
|
70252
70579
|
/**
|
|
@@ -70999,7 +71326,7 @@ declare module "sap/ui/model/odata/v4/AnnotationHelper" {
|
|
|
70999
71326
|
*
|
|
71000
71327
|
* Annotations on an Operation or a Parameter: Since 1.71.0, for annotations on an operation or a parameter,
|
|
71001
71328
|
* the binding parameter's name is stripped off any dynamic "14.5.12 Expression edm:Path" and "14.5.13 Expression
|
|
71002
|
-
* edm:PropertyPath" where it might be used as a first segment. Since 1.76.0 this does not apply to annotations
|
|
71329
|
+
* edm:PropertyPath" where it might be used as a first segment. Since 1.76.0, this does not apply to annotations
|
|
71003
71330
|
* on a parameter. In the former case, we assume that the resulting data binding is relative to the parent
|
|
71004
71331
|
* context of the operation binding, that is, to the context representing the binding parameter itself.
|
|
71005
71332
|
* In the latter case, we assume that the resulting data binding is relative to the parameter context of
|
|
@@ -71320,7 +71647,7 @@ declare module "sap/ui/model/odata/v4/AnnotationHelper" {
|
|
|
71320
71647
|
*
|
|
71321
71648
|
* Annotations on an Operation or a Parameter: Since 1.71.0, for annotations on an operation or a parameter,
|
|
71322
71649
|
* the binding parameter's name is stripped off any dynamic "14.5.12 Expression edm:Path" and "14.5.13 Expression
|
|
71323
|
-
* edm:PropertyPath" where it might be used as a first segment. Since 1.76.0 this does not apply to annotations
|
|
71650
|
+
* edm:PropertyPath" where it might be used as a first segment. Since 1.76.0, this does not apply to annotations
|
|
71324
71651
|
* on a parameter. In the former case, we assume that the resulting data binding is relative to the parent
|
|
71325
71652
|
* context of the operation binding, that is, to the context representing the binding parameter itself.
|
|
71326
71653
|
* In the latter case, we assume that the resulting data binding is relative to the parameter context of
|
|
@@ -71435,6 +71762,11 @@ declare module "sap/ui/model/odata/v4/AnnotationHelper" {
|
|
|
71435
71762
|
* apply to annotations on a parameter (since 1.76.0).
|
|
71436
71763
|
*/
|
|
71437
71764
|
overload?: object;
|
|
71765
|
+
/**
|
|
71766
|
+
* Optional prefix to be added to each dynamic "14.5.12 Expression edm:Path" and "14.5.13 Expression edm:PropertyPath";
|
|
71767
|
+
* is either an empty string or a path ending with a "/" (since 1.141.0)
|
|
71768
|
+
*/
|
|
71769
|
+
prefix?: string;
|
|
71438
71770
|
}
|
|
71439
71771
|
): string;
|
|
71440
71772
|
}
|
|
@@ -71558,7 +71890,7 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
71558
71890
|
* as a binding context. Exceptions hold for status APIs like {@link #isDeleted}, {@link #isKeepAlive},
|
|
71559
71891
|
* {@link #hasPendingChanges}, {@link #resetChanges}, or {@link #isSelected} (returns `false` since 1.114.0).
|
|
71560
71892
|
*
|
|
71561
|
-
* Since 1.105 such a pending deletion is a pending change. It causes `hasPendingChanges` to return `true`
|
|
71893
|
+
* Since 1.105, such a pending deletion is a pending change. It causes `hasPendingChanges` to return `true`
|
|
71562
71894
|
* for the context, the binding containing it, and the model. The `resetChanges` method called on the context,
|
|
71563
71895
|
* the binding, or the model cancels the deletion and restores the context.
|
|
71564
71896
|
*
|
|
@@ -71602,7 +71934,7 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
71602
71934
|
* binding is used, see {@link #getUpdateGroupId}. Since 1.81, if this context is transient (see {@link #isTransient}),
|
|
71603
71935
|
* no group ID needs to be specified. Since 1.98.0, you can use `null` to prevent the DELETE request in
|
|
71604
71936
|
* case of a kept-alive context that is not in the collection and of which you know that it does not exist
|
|
71605
|
-
* on the server anymore (for example, a draft after activation). Since 1.108.0 the usage of a group ID
|
|
71937
|
+
* on the server anymore (for example, a draft after activation). Since 1.108.0, the usage of a group ID
|
|
71606
71938
|
* with {@link sap.ui.model.odata.v4.SubmitMode.API} is possible. Since 1.121.0, you can use the '$single'
|
|
71607
71939
|
* group ID to send a DELETE request as fast as possible; it will be wrapped in a batch request as for a
|
|
71608
71940
|
* '$auto' group.
|
|
@@ -71922,8 +72254,8 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
71922
72254
|
*/
|
|
71923
72255
|
oParameters: {
|
|
71924
72256
|
/**
|
|
71925
|
-
* Whether the node should be copied instead of moved
|
|
71926
|
-
*
|
|
72257
|
+
* Whether the node should be copied instead of moved. The returned promise resolves with the index for
|
|
72258
|
+
* the copied node. Supported since 1.141.0.
|
|
71927
72259
|
*/
|
|
71928
72260
|
copy?: boolean;
|
|
71929
72261
|
/**
|
|
@@ -72037,7 +72369,7 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
72037
72369
|
requestParent(): Promise<Context | null>;
|
|
72038
72370
|
/**
|
|
72039
72371
|
* Returns a promise on the property value for the given path relative to this context. The path is expected
|
|
72040
|
-
* to point to a structural property with primitive type. Since 1.81.1 it is possible to request more than
|
|
72372
|
+
* to point to a structural property with primitive type. Since 1.81.1, it is possible to request more than
|
|
72041
72373
|
* one property. Property values that are not cached yet are requested from the back end.
|
|
72042
72374
|
* See:
|
|
72043
72375
|
* sap.ui.model.odata.v4.ODataMetaModel#requestUI5Type
|
|
@@ -72136,7 +72468,7 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
72136
72468
|
* (unless listed explicitly), for example `[{$PropertyPath : "*"}, {$NavigationPropertyPath : "EMPLOYEE_2_MANAGER"}]`
|
|
72137
72469
|
* or `[{$PropertyPath : "EMPLOYEE_2_MANAGER/*"}]`.
|
|
72138
72470
|
*
|
|
72139
|
-
* Since 1.82.0 absolute paths are supported. Absolute paths must start with the entity container (example
|
|
72471
|
+
* Since 1.82.0, absolute paths are supported. Absolute paths must start with the entity container (example
|
|
72140
72472
|
* "/com.sap.gateway.default.iwbep.tea_busi.v0001.Container/TEAMS") of the service. All (navigation) properties
|
|
72141
72473
|
* in the complete model matching such an absolute path are updated. Since 1.85.0, "14.4.11 Expression edm:String"
|
|
72142
72474
|
* is accepted as well.
|
|
@@ -72213,7 +72545,7 @@ declare module "sap/ui/model/odata/v4/Context" {
|
|
|
72213
72545
|
/**
|
|
72214
72546
|
* Sets a new value for the property identified by the given path. The path is relative to this context
|
|
72215
72547
|
* and is expected to point to a structural property with primitive type or, since 1.85.0, to an instance
|
|
72216
|
-
* annotation. Since 1.122.0 the client-side annotation "@$ui5.context.isSelected" can be given as a path.
|
|
72548
|
+
* annotation. Since 1.122.0, the client-side annotation "@$ui5.context.isSelected" can be given as a path.
|
|
72217
72549
|
* Note: Writing to a client-side annotation never initiates a PATCH request, even if `sGroupId` is given.
|
|
72218
72550
|
* Thus, reverting the value of this annotation cannot be done via {@link #resetChanges}.
|
|
72219
72551
|
* See:
|
|
@@ -72681,11 +73013,12 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" {
|
|
|
72681
73013
|
* messages will be related to the return value context only. Such a message can only be connected to a
|
|
72682
73014
|
* corresponding control if the control's property bindings use the return value context as binding context.
|
|
72683
73015
|
*
|
|
72684
|
-
*
|
|
72685
|
-
* property. In addition to the existing preconditions for a return value context, the
|
|
72686
|
-
* a partner attribute for the navigation property and the partner relationship
|
|
72687
|
-
* Also
|
|
72688
|
-
* parent context's path
|
|
73016
|
+
* Since 1.141.0, a return value context may also be provided if the parent context's path contains a maximum
|
|
73017
|
+
* of one navigation property. In addition to the existing preconditions for a return value context, the
|
|
73018
|
+
* metadata has to specify a partner attribute for the navigation property and the partner relationship
|
|
73019
|
+
* has to be bi-directional. Also a navigation property binding has to be available for the entity set of
|
|
73020
|
+
* the first segment in the parent context's path. **Note:** Ensure your service implementation returns
|
|
73021
|
+
* all selected key properties; otherwise, no return value context is provided.
|
|
72689
73022
|
*/
|
|
72690
73023
|
invoke(
|
|
72691
73024
|
/**
|
|
@@ -72847,7 +73180,7 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" {
|
|
|
72847
73180
|
* requests. Call {@link #resume} to resume the binding. Before 1.53.0, this method was not supported and
|
|
72848
73181
|
* threw an error. Since 1.97.0, pending changes are ignored if they relate to a {@link sap.ui.model.odata.v4.Context#isKeepAlive kept-alive }
|
|
72849
73182
|
* context of this binding. Since 1.98.0, {@link sap.ui.model.odata.v4.Context#isTransient transient} contexts
|
|
72850
|
-
* of a {@link #getRootBinding root binding} do not count as pending changes. Since 1.108.0 {@link sap.ui.model.odata.v4.Context#delete deleted }
|
|
73183
|
+
* of a {@link #getRootBinding root binding} do not count as pending changes. Since 1.108.0, {@link sap.ui.model.odata.v4.Context#delete deleted }
|
|
72851
73184
|
* contexts do not count as pending changes.
|
|
72852
73185
|
* See:
|
|
72853
73186
|
* {@link https://ui5.sap.com/#/topic/b0f5c531e5034a27952cc748954cbe39 Suspend and Resume}
|
|
@@ -73221,12 +73554,15 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" {
|
|
|
73221
73554
|
* set `bSkipRefresh` to `true`. To avoid errors you must skip this refresh when using {@link sap.ui.model.odata.v4.Context#requestSideEffects }
|
|
73222
73555
|
* in the same $batch to refresh the complete collection containing the newly created entity.
|
|
73223
73556
|
*
|
|
73224
|
-
* Since 1.115.0 it is possible to create nested entities in a collection-valued navigation property together
|
|
73557
|
+
* Since 1.115.0, it is possible to create nested entities in a collection-valued navigation property together
|
|
73225
73558
|
* with the entity (so-called "deep create"), for example a list of items for an order. For this purpose,
|
|
73226
73559
|
* bind the list relative to a transient context. Calling this method then adds a transient entity to the
|
|
73227
73560
|
* parent's navigation property, which is sent with the payload of the parent entity. Such a nested context
|
|
73228
73561
|
* cannot be inactive.
|
|
73229
73562
|
*
|
|
73563
|
+
* **Caution:** Only a single list must be bound to the same collection-valued navigation property relative
|
|
73564
|
+
* to a transient context. Created data cannot be shared between list bindings.
|
|
73565
|
+
*
|
|
73230
73566
|
* **Note:** After a successful creation of the main entity the context returned for a nested entity is
|
|
73231
73567
|
* no longer valid. Do not use the {@link sap.ui.model.odata.v4.Context#created created} promise of such
|
|
73232
73568
|
* a context! New contexts are created for the nested collection because it is not possible to reliably
|
|
@@ -73234,7 +73570,7 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" {
|
|
|
73234
73570
|
* the `created` promises of all nested contexts are always rejected with an instance of `Error`, even if
|
|
73235
73571
|
* the deep create succeeds. This error always has the property `canceled` with the value `true`.
|
|
73236
73572
|
*
|
|
73237
|
-
* Since 1.118.0 deep create also supports single-valued navigation properties; no API call is required
|
|
73573
|
+
* Since 1.118.0, deep create also supports single-valued navigation properties; no API call is required
|
|
73238
73574
|
* in this case. Simply bind properties of the related entity relative to a transient context. An update
|
|
73239
73575
|
* to the property adds it to the POST request of the parent entity, and by this the create becomes deep.
|
|
73240
73576
|
*
|
|
@@ -73286,7 +73622,7 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" {
|
|
|
73286
73622
|
*/
|
|
73287
73623
|
bSkipRefresh?: boolean,
|
|
73288
73624
|
/**
|
|
73289
|
-
* Whether the entity is inserted at the end of the list. Supported since 1.66.0. Since 1.99.0 the first
|
|
73625
|
+
* Whether the entity is inserted at the end of the list. Supported since 1.66.0. Since 1.99.0, the first
|
|
73290
73626
|
* insertion determines the overall position of created contexts within the binding's context list. Every
|
|
73291
73627
|
* succeeding insertion is relative to the created contexts within this list.
|
|
73292
73628
|
*/
|
|
@@ -73642,7 +73978,7 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" {
|
|
|
73642
73978
|
getHeaderContext(): Context | null;
|
|
73643
73979
|
/**
|
|
73644
73980
|
* Calls {@link sap.ui.model.odata.v4.Context#setKeepAlive} at the context for the given path and returns
|
|
73645
|
-
* it. Since 1.100.0 the function always returns such a context. If none exists yet, it is created without
|
|
73981
|
+
* it. Since 1.100.0, the function always returns such a context. If none exists yet, it is created without
|
|
73646
73982
|
* data and a request for its entity is sent.
|
|
73647
73983
|
* See:
|
|
73648
73984
|
* sap.ui.model.odata.v4.ODataModel#getKeepAliveContext
|
|
@@ -74083,7 +74419,7 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" {
|
|
|
74083
74419
|
* requests. Call {@link #resume} to resume the binding. Before 1.53.0, this method was not supported and
|
|
74084
74420
|
* threw an error. Since 1.97.0, pending changes are ignored if they relate to a {@link sap.ui.model.odata.v4.Context#isKeepAlive kept-alive }
|
|
74085
74421
|
* context of this binding. Since 1.98.0, {@link sap.ui.model.odata.v4.Context#isTransient transient} contexts
|
|
74086
|
-
* of a {@link #getRootBinding root binding} do not count as pending changes. Since 1.108.0 {@link sap.ui.model.odata.v4.Context#delete deleted }
|
|
74422
|
+
* of a {@link #getRootBinding root binding} do not count as pending changes. Since 1.108.0, {@link sap.ui.model.odata.v4.Context#delete deleted }
|
|
74087
74423
|
* contexts do not count as pending changes.
|
|
74088
74424
|
* See:
|
|
74089
74425
|
* {@link https://ui5.sap.com/#/topic/b0f5c531e5034a27952cc748954cbe39 Suspend and Resume}
|
|
@@ -74884,9 +75220,9 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" {
|
|
|
74884
75220
|
* results either in a simple name like "EMPLOYEES" or maybe in a path like "some.other.EntityContainer/SomeEntitySet".
|
|
74885
75221
|
* The path must not continue after "@sapui.name".
|
|
74886
75222
|
*
|
|
74887
|
-
* If the current object is a string value, that string value is treated as
|
|
74888
|
-
* step-by-step before the next segment is processed. Except for this, a path must not continue
|
|
74889
|
-
* across a non-object value. Such a string value can be a qualified name (example path "/$EntityContainer/..."),
|
|
75223
|
+
* If the current object is a string value, that string value is treated as an absolute or relative path
|
|
75224
|
+
* and followed step-by-step before the next segment is processed. Except for this, a path must not continue
|
|
75225
|
+
* if it comes across a non-object value. Such a string value can be a qualified name (example path "/$EntityContainer/..."),
|
|
74890
75226
|
* a simple identifier (example path "/TEAMS/$NavigationPropertyBinding/TEAM_2_EMPLOYEES/...") including
|
|
74891
75227
|
* the special name "$ReturnType" (since 1.71.0), or even a path according to "14.5.12 Expression edm:Path"
|
|
74892
75228
|
* etc. (example path "/TEAMS/@com.sap.vocabularies.UI.v1.LineItem/0/Value/$Path/...".
|
|
@@ -74948,6 +75284,10 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" {
|
|
|
74948
75284
|
* way, "/acme.DefaultContainer/EMPLOYEES" addresses the "EMPLOYEES" child of the schema child named "acme.DefaultContainer".
|
|
74949
75285
|
* This also works indirectly ("/$EntityContainer/EMPLOYEES") and implicitly ("/EMPLOYEES", see below).
|
|
74950
75286
|
*
|
|
75287
|
+
* Since 1.140.0, the special name "$count" can be used as the last segment instead of an OData simple identifier.
|
|
75288
|
+
* For an entity set or a collection-valued (structural or navigation) property, it is treated as a property
|
|
75289
|
+
* of type "Edm.Int64". Otherwise, it is invalid.
|
|
75290
|
+
*
|
|
74951
75291
|
* A segment which represents an OData simple identifier (or the special names "$ReturnType", since 1.71.0,
|
|
74952
75292
|
* or "$Parameter", since 1.73.0) needs special preparations. The same applies to the empty segment after
|
|
74953
75293
|
* a trailing slash. If the current object has a "$Action", "$Function" or "$Type" property, it
|
|
@@ -75034,7 +75374,7 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" {
|
|
|
75034
75374
|
/**
|
|
75035
75375
|
* Scope for lookup of aliases for computed annotations (since 1.43.0) as a map from alias to a module (like
|
|
75036
75376
|
* `{AH : AnnotationHelper}`) or function (like `{format : AnnotationHelper.format}`); the alias must not
|
|
75037
|
-
* contain a dot. Since 1.120.3 looking up a computed annotation via its global name is **deprecated**;
|
|
75377
|
+
* contain a dot. Since 1.120.3, looking up a computed annotation via its global name is **deprecated**;
|
|
75038
75378
|
* always use this scope instead.
|
|
75039
75379
|
*/
|
|
75040
75380
|
scope?: Record<string, object | Function>;
|
|
@@ -76025,8 +76365,8 @@ declare module "sap/ui/model/odata/v4/ODataModel" {
|
|
|
76025
76365
|
* Returns a context with the given path belonging to a matching list binding that has been marked with
|
|
76026
76366
|
* `$$getKeepAliveContext` (see {@link #bindList}). If such a matching binding can be found, a context is
|
|
76027
76367
|
* returned and kept alive (see {@link sap.ui.model.odata.v4.ODataListBinding#getKeepAliveContext}). Since
|
|
76028
|
-
* 1.100.0 a temporary binding is used if no such binding could be found. If such a binding is created
|
|
76029
|
-
* resolved later, the context and its data are transferred to it, and the temporary binding is destroyed
|
|
76368
|
+
* 1.100.0, a temporary binding is used if no such binding could be found. If such a binding is created
|
|
76369
|
+
* or resolved later, the context and its data are transferred to it, and the temporary binding is destroyed
|
|
76030
76370
|
* again.
|
|
76031
76371
|
*
|
|
76032
76372
|
* A `$$getKeepAliveContext` binding matches if its resolved binding path is the collection path of the
|
|
@@ -76270,6 +76610,28 @@ declare module "sap/ui/model/odata/v4/ODataModel" {
|
|
|
76270
76610
|
*/
|
|
76271
76611
|
sGroupId?: string
|
|
76272
76612
|
): void;
|
|
76613
|
+
/**
|
|
76614
|
+
* Sets the "odata.continue-on-error" preference for the **current** batch request associated with the given
|
|
76615
|
+
* group ID. This method can be called early on, when the batch queue is still empty, or even synchronously
|
|
76616
|
+
* after {@link #submitBatch} - just as long as the $batch request is not already being sent to the server.
|
|
76617
|
+
* It needs to be called again for future batch requests with the same group ID. It is safe to call it multiple
|
|
76618
|
+
* times for the same batch request.
|
|
76619
|
+
*
|
|
76620
|
+
* **Caution:** Make sure that no user input is lost due to a side-effects GET being applied even after
|
|
76621
|
+
* a failed PATCH. It's safe to use this method if, for example, only actions are invoked or when {@link sap.ui.model.odata.v4.Context#setProperty }
|
|
76622
|
+
* is used without `bRetry` for mass updates.
|
|
76623
|
+
*
|
|
76624
|
+
* @since 1.141.0
|
|
76625
|
+
*/
|
|
76626
|
+
setContinueOnError(
|
|
76627
|
+
/**
|
|
76628
|
+
* A valid group ID as specified in {@link sap.ui.model.odata.v4.ODataModel}. Avoid '$auto' to control which
|
|
76629
|
+
* requests are affected by this preference. Using a {@link module:sap/base/util/uid UID} may be one way
|
|
76630
|
+
* to achieve this, but take care to replace hyphens with underscores: `"$auto." + uid().replaceAll("-",
|
|
76631
|
+
* "_")`
|
|
76632
|
+
*/
|
|
76633
|
+
sGroupId: string
|
|
76634
|
+
): void;
|
|
76273
76635
|
/**
|
|
76274
76636
|
* Method not supported
|
|
76275
76637
|
*
|
|
@@ -76776,7 +77138,7 @@ declare module "sap/ui/model/odata/v4/ODataPropertyBinding" {
|
|
|
76776
77138
|
* Sets the new current value and updates the cache. If the value cannot be accepted or cannot be updated
|
|
76777
77139
|
* on the server, an error is logged to the console and added to the message manager as a technical message.
|
|
76778
77140
|
* Unless preconditions fail synchronously, a {@link sap.ui.model.odata.v4.ODataModel#event:propertyChange 'propertyChange' }
|
|
76779
|
-
* event is fired and provides a promise on the outcome of the asynchronous operation. Since 1.122.0 this
|
|
77141
|
+
* event is fired and provides a promise on the outcome of the asynchronous operation. Since 1.122.0, this
|
|
76780
77142
|
* method allows updates to the client-side annotation "@$ui5.context.isSelected". Note: Changing the value
|
|
76781
77143
|
* of a client-side annotation never initiates a PATCH request, no matter which `sGroupId` is given. Thus,
|
|
76782
77144
|
* it cannot be reverted via {@link #resetChanges}.
|
|
@@ -79746,8 +80108,14 @@ declare module "sap/ui/model/type/Unit" {
|
|
|
79746
80108
|
*/
|
|
79747
80109
|
oFormatOptions?: {
|
|
79748
80110
|
/**
|
|
79749
|
-
* The number of decimals to be used for formatting the
|
|
79750
|
-
* of the format options `maxFractionDigits`, `minFractionDigits` or `decimals`
|
|
80111
|
+
* The number of decimals to be used for formatting the numerical value of the unit composite type; if none
|
|
80112
|
+
* of the format options `maxFractionDigits`, `minFractionDigits` or `decimals` are given, the following
|
|
80113
|
+
* defaults apply:
|
|
80114
|
+
* - **0** if the numerical value is of an OData integer type, i.e. {@link sap.ui.model.odata.type.Int }
|
|
80115
|
+
* or {@link sap.ui.model.odata.type.Int64}
|
|
80116
|
+
* - the **scale constraint of the numerical value's type** if this type is {@link sap.ui.model.odata.type.Decimal }
|
|
80117
|
+
* and the scale is not "variable"
|
|
80118
|
+
* - **3** otherwise
|
|
79751
80119
|
*/
|
|
79752
80120
|
decimals?: object;
|
|
79753
80121
|
/**
|
|
@@ -81300,7 +81668,7 @@ declare module "sap/ui/test/gherkin/dataTableUtils" {
|
|
|
81300
81668
|
*
|
|
81301
81669
|
*
|
|
81302
81670
|
* - Trim spaces off the string on both sides. For example: `" hello "` becomes `"hello"`.
|
|
81303
|
-
* - Assume that
|
|
81671
|
+
* - Assume that hyphens and underscores are analogs for a space. For example: `"sold-to party"` and `"sold
|
|
81304
81672
|
* to party"` are equivalent, and would both convert to the camelCase `"soldToParty"`.
|
|
81305
81673
|
* - Trim multiple spaces between words. For example: `"hello____world"` becomes `"hello world"`.
|
|
81306
81674
|
* - Remove any characters that are not alphanumeric or whitespace. For example: `"(hello)"` becomes `"hello"`.
|
|
@@ -81399,7 +81767,7 @@ declare module "sap/ui/test/gherkin/dataTableUtils" {
|
|
|
81399
81767
|
*
|
|
81400
81768
|
*
|
|
81401
81769
|
* - Trim spaces off the string on both sides. For example: `" hello "` becomes `"hello"`.
|
|
81402
|
-
* - Assume that
|
|
81770
|
+
* - Assume that hyphens and underscores are analogs for a space. For example: `"sold-to party"` and `"sold
|
|
81403
81771
|
* to party"` are equivalent, and would both convert to the camelCase `"soldToParty"`.
|
|
81404
81772
|
* - Trim multiple spaces between words. For example: `"hello____world"` becomes `"hello world"`.
|
|
81405
81773
|
* - Remove any characters that are not alphanumeric or whitespace. For example: `"(hello)"` becomes `"hello"`.
|