@openui5/types 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.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.139.0
1
+ // For Library Version: 1.141.0
2
2
 
3
3
  declare module "sap/ui/mdc/AggregationBaseDelegate" {
4
4
  import BaseDelegate from "sap/ui/mdc/BaseDelegate";
@@ -160,7 +160,7 @@ declare module "sap/ui/mdc/ChartDelegate" {
160
160
 
161
161
  import { AggregationBindingInfo } from "sap/ui/base/ManagedObject";
162
162
 
163
- import FilterField from "sap/ui/mdc/FilterField";
163
+ import { FilterDelegateObject } from "sap/ui/mdc/library";
164
164
 
165
165
  import Filter from "sap/ui/model/Filter";
166
166
 
@@ -387,9 +387,7 @@ declare module "sap/ui/mdc/ChartDelegate" {
387
387
  *
388
388
  * @returns Object for the chart filter personalization
389
389
  */
390
- getFilterDelegate(): {
391
- addItem: (p1: Chart, p2: string) => Promise<FilterField>;
392
- };
390
+ getFilterDelegate(): FilterDelegateObject;
393
391
  /**
394
392
  * Gets the filters that are applied when updating the chart's binding based on the filter conditions of
395
393
  * the chart itself and its associated {@link sap.ui.mdc.IFilterSource IFilterSource}.
@@ -1903,6 +1901,9 @@ declare module "sap/ui/mdc/odata/v4/TableDelegate" {
1903
1901
  * The `p13nMode` `Group` is not supported if the table type is {@link sap.ui.mdc.table.TreeTableType TreeTable}.
1904
1902
  * This cannot be changed in your delegate implementation.
1905
1903
  *
1904
+ * All binding-related limitations regarding selection also apply in the context of this delegate. For details,
1905
+ * see {@link sap.ui.model.odata.v4.Context#setSelected} and {@link sap.ui.model.odata.v4.ODataModel#bindList}.
1906
+ *
1906
1907
  * @since 1.85
1907
1908
  */
1908
1909
  interface TableDelegate extends TableDelegate1 {
@@ -2102,7 +2103,7 @@ declare module "sap/ui/mdc/TableDelegate" {
2102
2103
 
2103
2104
  import Context from "sap/ui/model/Context";
2104
2105
 
2105
- import FilterField from "sap/ui/mdc/FilterField";
2106
+ import { FilterDelegateObject } from "sap/ui/mdc/library";
2106
2107
 
2107
2108
  import Filter from "sap/ui/model/Filter";
2108
2109
 
@@ -2248,17 +2249,11 @@ declare module "sap/ui/mdc/TableDelegate" {
2248
2249
  * Returns the filter delegate of the table that provides basic filter functionality, such as adding filter
2249
2250
  * fields.
2250
2251
  *
2251
- * **Note:** The functionality provided in this delegate acts as a subset of a `FilterBarDelegate` to enable
2252
- * the table for inbuilt filtering.
2253
- *
2254
- *
2255
2252
  * @ui5-protected Do not call from applications (only from related classes in the framework)
2256
2253
  *
2257
2254
  * @returns Object for the tables filter personalization
2258
2255
  */
2259
- getFilterDelegate(): {
2260
- addItem: (p1: Table, p2: string) => Promise<FilterField>;
2261
- };
2256
+ getFilterDelegate(): FilterDelegateObject;
2262
2257
  /**
2263
2258
  * Returns filters to be applied when updating the table's binding based on the filter conditions of the
2264
2259
  * table itself and its associated {@link sap.ui.mdc.IFilterSource IFilterSource}.
@@ -3400,13 +3395,19 @@ declare module "sap/ui/mdc/ValueHelpDelegate" {
3400
3395
  }
3401
3396
 
3402
3397
  declare module "sap/ui/mdc/library" {
3398
+ import Control from "sap/ui/mdc/Control";
3399
+
3400
+ import FilterField from "sap/ui/mdc/FilterField";
3401
+
3402
+ import FilterBarValidationStatus from "sap/ui/mdc/enums/FilterBarValidationStatus";
3403
+
3403
3404
  import { ConditionObject } from "sap/ui/mdc/condition/Condition";
3404
3405
 
3405
3406
  import Type from "sap/ui/model/Type";
3406
3407
 
3407
3408
  import BaseType from "sap/ui/mdc/enums/BaseType";
3408
3409
 
3409
- import Control from "sap/ui/core/Control";
3410
+ import Control1 from "sap/ui/core/Control";
3410
3411
 
3411
3412
  import {
3412
3413
  ItemForValueConfiguration,
@@ -3417,6 +3418,32 @@ declare module "sap/ui/mdc/library" {
3417
3418
 
3418
3419
  import ParseException from "sap/ui/model/ParseException";
3419
3420
 
3421
+ /**
3422
+ * Acts a subset of the `FilterBarDelegate` that can be used in {@link module:sap/ui/mdc/TableDelegate.getFilterDelegate TableDelegate.getFilterDelegate }
3423
+ * or {@link module:sap/ui/mdc/ChartDelegate.getFilterDelegate Chart.getFilterDelegate} to enable inbuilt
3424
+ * filtering.
3425
+ *
3426
+ * It provides basic filter functionality, including
3427
+ * - Adding filter fields
3428
+ * - Adding conditions
3429
+ * - Removing conditions
3430
+ * - Determining the validation state of filters
3431
+ */
3432
+ export type FilterDelegateObject = {
3433
+ addItem?: (p1: Control, p2: string) => Promise<FilterField>;
3434
+
3435
+ addCondition?: (p1: Control, p2: string) => Promise<any>;
3436
+
3437
+ removeCondition?: (p1: Control, p2: string) => Promise<any>;
3438
+
3439
+ determineValidationState?: (
3440
+ p1: Control,
3441
+ p2: string
3442
+ ) => Promise<
3443
+ FilterBarValidationStatus | keyof typeof FilterBarValidationStatus
3444
+ >;
3445
+ };
3446
+
3420
3447
  /**
3421
3448
  * Interface for controls or entities which can serve as filters in the `sap.ui.mdc.Table` & `sap.ui.mdc.Chart`.
3422
3449
  *
@@ -3703,7 +3730,7 @@ declare module "sap/ui/mdc/library" {
3703
3730
  *
3704
3731
  * @returns Promise resolving in displayed content
3705
3732
  */
3706
- getContent(): Promise<Control>;
3733
+ getContent(): Promise<Control1>;
3707
3734
  /**
3708
3735
  * Returns a title for the given Content
3709
3736
  *
@@ -3852,7 +3879,7 @@ declare module "sap/ui/mdc/library" {
3852
3879
  *
3853
3880
  * @returns Promise resolving in displayed content
3854
3881
  */
3855
- getContent(): Promise<Control>;
3882
+ getContent(): Promise<Control1>;
3856
3883
  /**
3857
3884
  * Determines the item (key and description) for a given value.
3858
3885
  *
@@ -3944,7 +3971,10 @@ declare module "sap/ui/mdc/library" {
3944
3971
  declare module "sap/ui/mdc/actiontoolbar/ActionToolbarAction" {
3945
3972
  import { default as Control, $ControlSettings } from "sap/ui/core/Control";
3946
3973
 
3947
- import { IOverflowToolbarContent } from "sap/m/library";
3974
+ import {
3975
+ IOverflowToolbarContent,
3976
+ IToolbarInteractiveControl,
3977
+ } from "sap/m/library";
3948
3978
 
3949
3979
  import ElementMetadata from "sap/ui/core/ElementMetadata";
3950
3980
 
@@ -3960,9 +3990,10 @@ declare module "sap/ui/mdc/actiontoolbar/ActionToolbarAction" {
3960
3990
  */
3961
3991
  export default class ActionToolbarAction
3962
3992
  extends Control
3963
- implements IOverflowToolbarContent
3993
+ implements IOverflowToolbarContent, IToolbarInteractiveControl
3964
3994
  {
3965
3995
  __implements__sap_m_IOverflowToolbarContent: boolean;
3996
+ __implements__sap_m_IToolbarInteractiveControl: boolean;
3966
3997
  /**
3967
3998
  * Constructor for a new ActionToolbarAction.
3968
3999
  *
@@ -6695,13 +6726,13 @@ declare module "sap/ui/mdc/condition/Operator" {
6695
6726
  * 5 days". (In this case `#tokenText#` is used in `tokenFormat`, `tokenTest`, or `tokenParse`.) For operators
6696
6727
  * just showing the value and a operator symbol, no token text is needed.
6697
6728
  * If the token text is not given, the `longText` is used. If `tokenTextForTypes` is provided for a special
6698
- * type, this one will be used for the corresponding type.
6729
+ * type, it will be used for that.
6699
6730
  */
6700
6731
  tokenText?: string;
6701
6732
  /**
6702
- * Object holding String representation of the operator as a token text for single basic types.
6703
- * This text is shown in a single-value field as text or a multi-value field as token.
6704
- * This is needed if the text depends on the used data type. For example the "equal" operator should be
6733
+ * Object holding string representation of the operator as a token text for single basic types.
6734
+ * This text is shown as text in a single-value field or as token in a multi-value field.
6735
+ * This is needed if the text depends on the data type used. For example, the "equal" operator should be
6705
6736
  * named "Not Specified (empty)" if a date or time type is used.
6706
6737
  */
6707
6738
  tokenTextForTypes?: object;
@@ -6789,7 +6820,7 @@ declare module "sap/ui/mdc/condition/Operator" {
6789
6820
  * to 3, 4....
6790
6821
  * group: {id : 10, text: "new group at the end"} - adds a new group with id 10 and text "new group as
6791
6822
  * the end" to the end of all groups
6792
- * **Note:** The ids 900-999 are reserved for internal mdc usage, please use ids outside this range
6823
+ * **Note:** The ids 900-999 are reserved for internal mdc usage, please use only IDs outside of this range.
6793
6824
  */
6794
6825
  id: string;
6795
6826
  /**
@@ -6798,8 +6829,8 @@ declare module "sap/ui/mdc/condition/Operator" {
6798
6829
  text?: string;
6799
6830
  };
6800
6831
  /**
6801
- * Additional group settings for the operator depending on the type. For every type a group object can be
6802
- * defined.
6832
+ * Additional group settings for the operator depending on the type. For every type, a group object can
6833
+ * be defined.
6803
6834
  */
6804
6835
  groupsForTypes?: object;
6805
6836
  /**
@@ -24348,6 +24379,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24348
24379
  *
24349
24380
  * By default, if not set, the list opens if the user clicks into the connected field.
24350
24381
  *
24382
+ * **Note: ** if `restrictedToFixedValues` is set, filtering should be disabled.
24383
+ *
24351
24384
  * Default value is `true`.
24352
24385
  *
24353
24386
  *
@@ -24383,6 +24416,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24383
24416
  * If set, the connected field must not allow other values than the items of the `FixedList`. Free text
24384
24417
  * must be avoided.
24385
24418
  *
24419
+ * By default, if set, the list opens if the user clicks into the connected field.
24420
+ *
24386
24421
  * Default value is `false`.
24387
24422
  *
24388
24423
  * @since 1.138
@@ -24474,6 +24509,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24474
24509
  *
24475
24510
  * By default, if not set, the list opens if the user clicks into the connected field.
24476
24511
  *
24512
+ * **Note: ** if `restrictedToFixedValues` is set, filtering should be disabled.
24513
+ *
24477
24514
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
24478
24515
  *
24479
24516
  * Default value is `true`.
@@ -24511,6 +24548,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24511
24548
  * If set, the connected field must not allow other values than the items of the `FixedList`. Free text
24512
24549
  * must be avoided.
24513
24550
  *
24551
+ * By default, if set, the list opens if the user clicks into the connected field.
24552
+ *
24514
24553
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
24515
24554
  *
24516
24555
  * Default value is `false`.
@@ -24543,6 +24582,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24543
24582
  * case this property must be set to `false`.
24544
24583
  *
24545
24584
  * By default, if not set, the list opens if the user clicks into the connected field.
24585
+ *
24586
+ * **Note: ** if `restrictedToFixedValues` is set, filtering should be disabled.
24546
24587
  */
24547
24588
  filterList?: boolean | PropertyBindingInfo | `{${string}}`;
24548
24589
 
@@ -24559,6 +24600,8 @@ declare module "sap/ui/mdc/valuehelp/content/FixedList" {
24559
24600
  * If set, the connected field must not allow other values than the items of the `FixedList`. Free text
24560
24601
  * must be avoided.
24561
24602
  *
24603
+ * By default, if set, the list opens if the user clicks into the connected field.
24604
+ *
24562
24605
  * @since 1.138
24563
24606
  */
24564
24607
  restrictedToFixedValues?: boolean | PropertyBindingInfo | `{${string}}`;
@@ -24850,6 +24893,15 @@ declare module "sap/ui/mdc/valuehelp/Dialog" {
24850
24893
  * @returns Value of property `groupConfig`
24851
24894
  */
24852
24895
  getGroupConfig(): object;
24896
+ /**
24897
+ * Gets whether quickselect (confirms values on selection) is active on the dialog.
24898
+ *
24899
+ * @since 1.140
24900
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
24901
+ *
24902
+ * @returns true if quickselect is active
24903
+ */
24904
+ isQuickSelectActive(): boolean;
24853
24905
  /**
24854
24906
  * Sets a new value for property {@link #getGroupConfig groupConfig}.
24855
24907
  *
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.139.0
1
+ // For Library Version: 1.141.0
2
2
 
3
3
  declare module "sap/ui/rta/api/startAdaptation" {
4
4
  import Control from "sap/ui/core/Control";
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.139.0
1
+ // For Library Version: 1.141.0
2
2
 
3
3
  declare module "sap/ui/suite/library" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.139.0
1
+ // For Library Version: 1.141.0
2
2
 
3
3
  declare module "sap/ui/support/library" {
4
4
  /**