@sapui5/ts-types-esm 1.139.0 → 1.140.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 +1 -2297
- package/types/sap.f.d.ts +59 -11
- 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 +15 -8
- package/types/sap.fe.ina.d.ts +1 -1
- package/types/sap.fe.macros.d.ts +3 -10
- package/types/sap.fe.navigation.d.ts +1 -1
- 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 +41 -11
- package/types/sap.insights.d.ts +130 -2
- package/types/sap.m.d.ts +645 -274
- 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 +99 -1
- package/types/sap.suite.ui.commons.d.ts +1 -1
- package/types/sap.suite.ui.generic.template.d.ts +1 -1
- 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 +402 -97
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.export.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +1 -7
- 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 +1 -1
- package/types/sap.ui.mdc.d.ts +80 -28
- package/types/sap.ui.richtexteditor.d.ts +1 -1
- 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 +568 -1
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +1 -1
- 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 +307 -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 +10 -6
- package/types/sap.ushell_abap.d.ts +3 -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.table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.140.0
|
|
2
2
|
|
|
3
3
|
declare module "sap/ui/table/library" {
|
|
4
4
|
import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode";
|
|
@@ -3073,6 +3073,10 @@ declare module "sap/ui/table/plugins/MultiSelectionPlugin" {
|
|
|
3073
3073
|
* Select All, only work properly if the count is known. Make sure the model/binding is configured to request
|
|
3074
3074
|
* the count from the service. For ease of use, client-side models and single selection are also supported.
|
|
3075
3075
|
*
|
|
3076
|
+
* With ODataV4, use the {@link sap.ui.table.plugins.ODataV4MultiSelection ODataV4MultiSelection} plugin
|
|
3077
|
+
* or the {@link sap.ui.table.plugins.ODataV4SingleSelection ODataV4SingleSelection} plugin instead of this
|
|
3078
|
+
* one.
|
|
3079
|
+
*
|
|
3076
3080
|
* @since 1.64
|
|
3077
3081
|
*/
|
|
3078
3082
|
export default class MultiSelectionPlugin extends SelectionPlugin {
|
|
@@ -3564,6 +3568,561 @@ declare module "sap/ui/table/plugins/MultiSelectionPlugin" {
|
|
|
3564
3568
|
>;
|
|
3565
3569
|
}
|
|
3566
3570
|
|
|
3571
|
+
declare module "sap/ui/table/plugins/ODataV4Aggregation" {
|
|
3572
|
+
import { default as UI5Element, $ElementSettings } from "sap/ui/core/Element";
|
|
3573
|
+
|
|
3574
|
+
import Table from "sap/ui/table/Table";
|
|
3575
|
+
|
|
3576
|
+
import ElementMetadata from "sap/ui/core/ElementMetadata";
|
|
3577
|
+
|
|
3578
|
+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
3579
|
+
|
|
3580
|
+
/**
|
|
3581
|
+
* Integrates the information about the data structure of the {@link sap.ui.model.odata.v4.ODataListBinding }
|
|
3582
|
+
* and the table. The table is enabled to visualize grouped data with summary rows. Works only in combination
|
|
3583
|
+
* with a {@link sap.ui.model.odata.v4.ODataModel}.
|
|
3584
|
+
*
|
|
3585
|
+
* For details about data aggregation, see {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}.
|
|
3586
|
+
*
|
|
3587
|
+
* @since 1.140
|
|
3588
|
+
*/
|
|
3589
|
+
export default class ODataV4Aggregation extends UI5Element {
|
|
3590
|
+
/**
|
|
3591
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
3592
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
3593
|
+
* of the syntax of the settings object.
|
|
3594
|
+
* See:
|
|
3595
|
+
* {@link https://ui5.sap.com/#/topic/7d914317c0b64c23824bf932cc8a4ae1 OData V4: Data Aggregation and Recursive Hierarchy}
|
|
3596
|
+
*/
|
|
3597
|
+
constructor();
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4Aggregation with name `sClassName` and enriches
|
|
3601
|
+
* it with the information contained in `oClassInfo`.
|
|
3602
|
+
*
|
|
3603
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Element.extend}.
|
|
3604
|
+
*
|
|
3605
|
+
*
|
|
3606
|
+
* @returns Created class / constructor function
|
|
3607
|
+
*/
|
|
3608
|
+
static extend<T extends Record<string, unknown>>(
|
|
3609
|
+
/**
|
|
3610
|
+
* Name of the class being created
|
|
3611
|
+
*/
|
|
3612
|
+
sClassName: string,
|
|
3613
|
+
/**
|
|
3614
|
+
* Object literal with information about the class
|
|
3615
|
+
*/
|
|
3616
|
+
oClassInfo?: sap.ClassInfo<T, ODataV4Aggregation>,
|
|
3617
|
+
/**
|
|
3618
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
3619
|
+
* used by this class
|
|
3620
|
+
*/
|
|
3621
|
+
FNMetaImpl?: Function
|
|
3622
|
+
): Function;
|
|
3623
|
+
/**
|
|
3624
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
3625
|
+
* plugin that is found is returned.
|
|
3626
|
+
*
|
|
3627
|
+
*
|
|
3628
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
3629
|
+
*/
|
|
3630
|
+
static findOn(
|
|
3631
|
+
/**
|
|
3632
|
+
* The `Table` instance to check for
|
|
3633
|
+
*/
|
|
3634
|
+
oTable: Table
|
|
3635
|
+
): UI5Element | undefined;
|
|
3636
|
+
/**
|
|
3637
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4Aggregation.
|
|
3638
|
+
*
|
|
3639
|
+
*
|
|
3640
|
+
* @returns Metadata object describing this class
|
|
3641
|
+
*/
|
|
3642
|
+
static getMetadata(): ElementMetadata;
|
|
3643
|
+
/**
|
|
3644
|
+
* Gets current value of property {@link #getEnabled enabled}.
|
|
3645
|
+
*
|
|
3646
|
+
* Indicates whether this plugin is enabled.
|
|
3647
|
+
*
|
|
3648
|
+
* Default value is `true`.
|
|
3649
|
+
*
|
|
3650
|
+
*
|
|
3651
|
+
* @returns Value of property `enabled`
|
|
3652
|
+
*/
|
|
3653
|
+
getEnabled(): boolean;
|
|
3654
|
+
/**
|
|
3655
|
+
* Gets current value of property {@link #getGroupHeaderFormatter groupHeaderFormatter}.
|
|
3656
|
+
*
|
|
3657
|
+
* Provides a custom group header title.
|
|
3658
|
+
*
|
|
3659
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
3660
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
3661
|
+
* The function must return a string that is used as the title of the group header row.
|
|
3662
|
+
*
|
|
3663
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
3664
|
+
* string`
|
|
3665
|
+
*
|
|
3666
|
+
*
|
|
3667
|
+
* @returns Value of property `groupHeaderFormatter`
|
|
3668
|
+
*/
|
|
3669
|
+
getGroupHeaderFormatter(): Function;
|
|
3670
|
+
/**
|
|
3671
|
+
* Sets a new value for property {@link #getEnabled enabled}.
|
|
3672
|
+
*
|
|
3673
|
+
* Indicates whether this plugin is enabled.
|
|
3674
|
+
*
|
|
3675
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3676
|
+
*
|
|
3677
|
+
* Default value is `true`.
|
|
3678
|
+
*
|
|
3679
|
+
*
|
|
3680
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3681
|
+
*/
|
|
3682
|
+
setEnabled(
|
|
3683
|
+
/**
|
|
3684
|
+
* New value for property `enabled`
|
|
3685
|
+
*/
|
|
3686
|
+
bEnabled?: boolean
|
|
3687
|
+
): this;
|
|
3688
|
+
/**
|
|
3689
|
+
* Sets a new value for property {@link #getGroupHeaderFormatter groupHeaderFormatter}.
|
|
3690
|
+
*
|
|
3691
|
+
* Provides a custom group header title.
|
|
3692
|
+
*
|
|
3693
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
3694
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
3695
|
+
* The function must return a string that is used as the title of the group header row.
|
|
3696
|
+
*
|
|
3697
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
3698
|
+
* string`
|
|
3699
|
+
*
|
|
3700
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3701
|
+
*
|
|
3702
|
+
*
|
|
3703
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3704
|
+
*/
|
|
3705
|
+
setGroupHeaderFormatter(
|
|
3706
|
+
/**
|
|
3707
|
+
* New value for property `groupHeaderFormatter`
|
|
3708
|
+
*/
|
|
3709
|
+
fnGroupHeaderFormatter: Function
|
|
3710
|
+
): this;
|
|
3711
|
+
}
|
|
3712
|
+
/**
|
|
3713
|
+
* Describes the settings that can be provided to the ODataV4Aggregation constructor.
|
|
3714
|
+
*/
|
|
3715
|
+
export interface $ODataV4AggregationSettings extends $ElementSettings {
|
|
3716
|
+
/**
|
|
3717
|
+
* Indicates whether this plugin is enabled.
|
|
3718
|
+
*/
|
|
3719
|
+
enabled?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Provides a custom group header title.
|
|
3723
|
+
*
|
|
3724
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
3725
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
3726
|
+
* The function must return a string that is used as the title of the group header row.
|
|
3727
|
+
*
|
|
3728
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
3729
|
+
* string`
|
|
3730
|
+
*/
|
|
3731
|
+
groupHeaderFormatter?: Function | PropertyBindingInfo | `{${string}}`;
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
declare module "sap/ui/table/plugins/ODataV4Hierarchy" {
|
|
3736
|
+
import { default as UI5Element, $ElementSettings } from "sap/ui/core/Element";
|
|
3737
|
+
|
|
3738
|
+
import Table from "sap/ui/table/Table";
|
|
3739
|
+
|
|
3740
|
+
import ElementMetadata from "sap/ui/core/ElementMetadata";
|
|
3741
|
+
|
|
3742
|
+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
3743
|
+
|
|
3744
|
+
/**
|
|
3745
|
+
* Integrates the information about the data structure of the {@link sap.ui.model.odata.v4.ODataListBinding }
|
|
3746
|
+
* and the table. The table is enabled to visualize hierarchical data. Works only in combination with a
|
|
3747
|
+
* {@link sap.ui.model.odata.v4.ODataModel}.
|
|
3748
|
+
*
|
|
3749
|
+
* For details about hierarchies, see {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}.
|
|
3750
|
+
*
|
|
3751
|
+
* @since 1.140
|
|
3752
|
+
*/
|
|
3753
|
+
export default class ODataV4Hierarchy extends UI5Element {
|
|
3754
|
+
/**
|
|
3755
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
3756
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
3757
|
+
* of the syntax of the settings object.
|
|
3758
|
+
* See:
|
|
3759
|
+
* {@link https://ui5.sap.com/#/topic/7d914317c0b64c23824bf932cc8a4ae1 OData V4: Data Aggregation and Recursive Hierarchy}
|
|
3760
|
+
*/
|
|
3761
|
+
constructor();
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4Hierarchy with name `sClassName` and enriches
|
|
3765
|
+
* it with the information contained in `oClassInfo`.
|
|
3766
|
+
*
|
|
3767
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Element.extend}.
|
|
3768
|
+
*
|
|
3769
|
+
*
|
|
3770
|
+
* @returns Created class / constructor function
|
|
3771
|
+
*/
|
|
3772
|
+
static extend<T extends Record<string, unknown>>(
|
|
3773
|
+
/**
|
|
3774
|
+
* Name of the class being created
|
|
3775
|
+
*/
|
|
3776
|
+
sClassName: string,
|
|
3777
|
+
/**
|
|
3778
|
+
* Object literal with information about the class
|
|
3779
|
+
*/
|
|
3780
|
+
oClassInfo?: sap.ClassInfo<T, ODataV4Hierarchy>,
|
|
3781
|
+
/**
|
|
3782
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
3783
|
+
* used by this class
|
|
3784
|
+
*/
|
|
3785
|
+
FNMetaImpl?: Function
|
|
3786
|
+
): Function;
|
|
3787
|
+
/**
|
|
3788
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
3789
|
+
* plugin that is found is returned.
|
|
3790
|
+
*
|
|
3791
|
+
*
|
|
3792
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
3793
|
+
*/
|
|
3794
|
+
static findOn(
|
|
3795
|
+
/**
|
|
3796
|
+
* The `Table` instance to check for
|
|
3797
|
+
*/
|
|
3798
|
+
oTable: Table
|
|
3799
|
+
): UI5Element | undefined;
|
|
3800
|
+
/**
|
|
3801
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4Hierarchy.
|
|
3802
|
+
*
|
|
3803
|
+
*
|
|
3804
|
+
* @returns Metadata object describing this class
|
|
3805
|
+
*/
|
|
3806
|
+
static getMetadata(): ElementMetadata;
|
|
3807
|
+
/**
|
|
3808
|
+
* Gets current value of property {@link #getEnabled enabled}.
|
|
3809
|
+
*
|
|
3810
|
+
* Indicates whether this plugin is enabled.
|
|
3811
|
+
*
|
|
3812
|
+
* Default value is `true`.
|
|
3813
|
+
*
|
|
3814
|
+
*
|
|
3815
|
+
* @returns Value of property `enabled`
|
|
3816
|
+
*/
|
|
3817
|
+
getEnabled(): boolean;
|
|
3818
|
+
/**
|
|
3819
|
+
* Sets a new value for property {@link #getEnabled enabled}.
|
|
3820
|
+
*
|
|
3821
|
+
* Indicates whether this plugin is enabled.
|
|
3822
|
+
*
|
|
3823
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3824
|
+
*
|
|
3825
|
+
* Default value is `true`.
|
|
3826
|
+
*
|
|
3827
|
+
*
|
|
3828
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3829
|
+
*/
|
|
3830
|
+
setEnabled(
|
|
3831
|
+
/**
|
|
3832
|
+
* New value for property `enabled`
|
|
3833
|
+
*/
|
|
3834
|
+
bEnabled?: boolean
|
|
3835
|
+
): this;
|
|
3836
|
+
}
|
|
3837
|
+
/**
|
|
3838
|
+
* Describes the settings that can be provided to the ODataV4Hierarchy constructor.
|
|
3839
|
+
*/
|
|
3840
|
+
export interface $ODataV4HierarchySettings extends $ElementSettings {
|
|
3841
|
+
/**
|
|
3842
|
+
* Indicates whether this plugin is enabled.
|
|
3843
|
+
*/
|
|
3844
|
+
enabled?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
declare module "sap/ui/table/plugins/ODataV4MultiSelection" {
|
|
3849
|
+
import {
|
|
3850
|
+
default as SelectionPlugin,
|
|
3851
|
+
$SelectionPluginSettings,
|
|
3852
|
+
} from "sap/ui/table/plugins/SelectionPlugin";
|
|
3853
|
+
|
|
3854
|
+
import Table from "sap/ui/table/Table";
|
|
3855
|
+
|
|
3856
|
+
import UI5Element from "sap/ui/core/Element";
|
|
3857
|
+
|
|
3858
|
+
import ElementMetadata from "sap/ui/core/ElementMetadata";
|
|
3859
|
+
|
|
3860
|
+
import Context from "sap/ui/model/odata/v4/Context";
|
|
3861
|
+
|
|
3862
|
+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
3863
|
+
|
|
3864
|
+
/**
|
|
3865
|
+
* Integrates the selection of the {@link sap.ui.model.odata.v4.ODataListBinding} and the table. Works only
|
|
3866
|
+
* in combination with a {@link sap.ui.model.odata.v4.ODataModel}.
|
|
3867
|
+
*
|
|
3868
|
+
* The selection of a context that is not selectable is not allowed. The following contexts are not selectable:
|
|
3869
|
+
*
|
|
3870
|
+
* - Header context
|
|
3871
|
+
* - Contexts that represent group headers
|
|
3872
|
+
* - Contexts that contain totals
|
|
3873
|
+
*
|
|
3874
|
+
* All binding-related limitations also apply in the context of this plugin. For details, see {@link sap.ui.model.odata.v4.Context#setSelected }
|
|
3875
|
+
* and {@link sap.ui.model.odata.v4.ODataModel#bindList}.
|
|
3876
|
+
*
|
|
3877
|
+
* @since 1.140
|
|
3878
|
+
*/
|
|
3879
|
+
export default class ODataV4MultiSelection extends SelectionPlugin {
|
|
3880
|
+
/**
|
|
3881
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
3882
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
3883
|
+
* of the syntax of the settings object.
|
|
3884
|
+
* See:
|
|
3885
|
+
* {@link https://ui5.sap.com/#/topic/ec55312f796f45e8883810af3b68b46c OData V4: Selection}
|
|
3886
|
+
*/
|
|
3887
|
+
constructor();
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4MultiSelection with name `sClassName` and
|
|
3891
|
+
* enriches it with the information contained in `oClassInfo`.
|
|
3892
|
+
*
|
|
3893
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.table.plugins.SelectionPlugin.extend}.
|
|
3894
|
+
*
|
|
3895
|
+
*
|
|
3896
|
+
* @returns Created class / constructor function
|
|
3897
|
+
*/
|
|
3898
|
+
static extend<T extends Record<string, unknown>>(
|
|
3899
|
+
/**
|
|
3900
|
+
* Name of the class being created
|
|
3901
|
+
*/
|
|
3902
|
+
sClassName: string,
|
|
3903
|
+
/**
|
|
3904
|
+
* Object literal with information about the class
|
|
3905
|
+
*/
|
|
3906
|
+
oClassInfo?: sap.ClassInfo<T, ODataV4MultiSelection>,
|
|
3907
|
+
/**
|
|
3908
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
3909
|
+
* used by this class
|
|
3910
|
+
*/
|
|
3911
|
+
FNMetaImpl?: Function
|
|
3912
|
+
): Function;
|
|
3913
|
+
/**
|
|
3914
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
3915
|
+
* plugin that is found is returned.
|
|
3916
|
+
*
|
|
3917
|
+
*
|
|
3918
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
3919
|
+
*/
|
|
3920
|
+
static findOn(
|
|
3921
|
+
/**
|
|
3922
|
+
* The `Table` instance to check for
|
|
3923
|
+
*/
|
|
3924
|
+
oTable: Table
|
|
3925
|
+
): UI5Element | undefined;
|
|
3926
|
+
/**
|
|
3927
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4MultiSelection.
|
|
3928
|
+
*
|
|
3929
|
+
*
|
|
3930
|
+
* @returns Metadata object describing this class
|
|
3931
|
+
*/
|
|
3932
|
+
static getMetadata(): ElementMetadata;
|
|
3933
|
+
/**
|
|
3934
|
+
* Clears the selection.
|
|
3935
|
+
*/
|
|
3936
|
+
clearSelection(): void;
|
|
3937
|
+
/**
|
|
3938
|
+
* Gets current value of property {@link #getEnableNotification enableNotification}.
|
|
3939
|
+
*
|
|
3940
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
3941
|
+
*
|
|
3942
|
+
* Default value is `false`.
|
|
3943
|
+
*
|
|
3944
|
+
*
|
|
3945
|
+
* @returns Value of property `enableNotification`
|
|
3946
|
+
*/
|
|
3947
|
+
getEnableNotification(): boolean;
|
|
3948
|
+
/**
|
|
3949
|
+
* Gets current value of property {@link #getHideHeaderSelector hideHeaderSelector}.
|
|
3950
|
+
*
|
|
3951
|
+
* Hide the header selector.
|
|
3952
|
+
*
|
|
3953
|
+
* Default value is `false`.
|
|
3954
|
+
*
|
|
3955
|
+
*
|
|
3956
|
+
* @returns Value of property `hideHeaderSelector`
|
|
3957
|
+
*/
|
|
3958
|
+
getHideHeaderSelector(): boolean;
|
|
3959
|
+
/**
|
|
3960
|
+
* Returns the selected contexts.
|
|
3961
|
+
*
|
|
3962
|
+
*
|
|
3963
|
+
* @returns The selected contexts
|
|
3964
|
+
*/
|
|
3965
|
+
getSelectedContexts(): Context[];
|
|
3966
|
+
/**
|
|
3967
|
+
* Sets a new value for property {@link #getEnableNotification enableNotification}.
|
|
3968
|
+
*
|
|
3969
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
3970
|
+
*
|
|
3971
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3972
|
+
*
|
|
3973
|
+
* Default value is `false`.
|
|
3974
|
+
*
|
|
3975
|
+
*
|
|
3976
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3977
|
+
*/
|
|
3978
|
+
setEnableNotification(
|
|
3979
|
+
/**
|
|
3980
|
+
* New value for property `enableNotification`
|
|
3981
|
+
*/
|
|
3982
|
+
bEnableNotification?: boolean
|
|
3983
|
+
): this;
|
|
3984
|
+
/**
|
|
3985
|
+
* Sets a new value for property {@link #getHideHeaderSelector hideHeaderSelector}.
|
|
3986
|
+
*
|
|
3987
|
+
* Hide the header selector.
|
|
3988
|
+
*
|
|
3989
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3990
|
+
*
|
|
3991
|
+
* Default value is `false`.
|
|
3992
|
+
*
|
|
3993
|
+
*
|
|
3994
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3995
|
+
*/
|
|
3996
|
+
setHideHeaderSelector(
|
|
3997
|
+
/**
|
|
3998
|
+
* New value for property `hideHeaderSelector`
|
|
3999
|
+
*/
|
|
4000
|
+
bHideHeaderSelector?: boolean
|
|
4001
|
+
): this;
|
|
4002
|
+
}
|
|
4003
|
+
/**
|
|
4004
|
+
* Describes the settings that can be provided to the ODataV4MultiSelection constructor.
|
|
4005
|
+
*/
|
|
4006
|
+
export interface $ODataV4MultiSelectionSettings
|
|
4007
|
+
extends $SelectionPluginSettings {
|
|
4008
|
+
/**
|
|
4009
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
4010
|
+
*/
|
|
4011
|
+
enableNotification?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* Hide the header selector.
|
|
4015
|
+
*/
|
|
4016
|
+
hideHeaderSelector?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
declare module "sap/ui/table/plugins/ODataV4SingleSelection" {
|
|
4021
|
+
import {
|
|
4022
|
+
default as SelectionPlugin,
|
|
4023
|
+
$SelectionPluginSettings,
|
|
4024
|
+
} from "sap/ui/table/plugins/SelectionPlugin";
|
|
4025
|
+
|
|
4026
|
+
import Table from "sap/ui/table/Table";
|
|
4027
|
+
|
|
4028
|
+
import UI5Element from "sap/ui/core/Element";
|
|
4029
|
+
|
|
4030
|
+
import ElementMetadata from "sap/ui/core/ElementMetadata";
|
|
4031
|
+
|
|
4032
|
+
import Context from "sap/ui/model/odata/v4/Context";
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* Integrates the selection of the {@link sap.ui.model.odata.v4.ODataListBinding} and the table. Works only
|
|
4036
|
+
* in combination with a {@link sap.ui.model.odata.v4.ODataModel}. The selection of multiple contexts is
|
|
4037
|
+
* not allowed. Only one context can be selected at a time.
|
|
4038
|
+
*
|
|
4039
|
+
* The selection of a context that is not selectable is not allowed. The following contexts are not selectable:
|
|
4040
|
+
*
|
|
4041
|
+
* - Header context
|
|
4042
|
+
* - Contexts that represent group headers
|
|
4043
|
+
* - Contexts that contain totals
|
|
4044
|
+
*
|
|
4045
|
+
* All binding-related limitations also apply in the context of this plugin. For details, see {@link sap.ui.model.odata.v4.Context#setSelected }
|
|
4046
|
+
* and {@link sap.ui.model.odata.v4.ODataModel#bindList}.
|
|
4047
|
+
*
|
|
4048
|
+
* @since 1.140
|
|
4049
|
+
*/
|
|
4050
|
+
export default class ODataV4SingleSelection extends SelectionPlugin {
|
|
4051
|
+
/**
|
|
4052
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
4053
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
4054
|
+
* of the syntax of the settings object.
|
|
4055
|
+
*
|
|
4056
|
+
* This class does not have its own settings, but all settings applicable to the base type {@link sap.ui.table.plugins.SelectionPlugin#constructor sap.ui.table.plugins.SelectionPlugin }
|
|
4057
|
+
* can be used.
|
|
4058
|
+
* See:
|
|
4059
|
+
* {@link https://ui5.sap.com/#/topic/ec55312f796f45e8883810af3b68b46c OData V4: Selection}
|
|
4060
|
+
*/
|
|
4061
|
+
constructor();
|
|
4062
|
+
|
|
4063
|
+
/**
|
|
4064
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4SingleSelection with name `sClassName` and
|
|
4065
|
+
* enriches it with the information contained in `oClassInfo`.
|
|
4066
|
+
*
|
|
4067
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.table.plugins.SelectionPlugin.extend}.
|
|
4068
|
+
*
|
|
4069
|
+
*
|
|
4070
|
+
* @returns Created class / constructor function
|
|
4071
|
+
*/
|
|
4072
|
+
static extend<T extends Record<string, unknown>>(
|
|
4073
|
+
/**
|
|
4074
|
+
* Name of the class being created
|
|
4075
|
+
*/
|
|
4076
|
+
sClassName: string,
|
|
4077
|
+
/**
|
|
4078
|
+
* Object literal with information about the class
|
|
4079
|
+
*/
|
|
4080
|
+
oClassInfo?: sap.ClassInfo<T, ODataV4SingleSelection>,
|
|
4081
|
+
/**
|
|
4082
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
4083
|
+
* used by this class
|
|
4084
|
+
*/
|
|
4085
|
+
FNMetaImpl?: Function
|
|
4086
|
+
): Function;
|
|
4087
|
+
/**
|
|
4088
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
4089
|
+
* plugin that is found is returned.
|
|
4090
|
+
*
|
|
4091
|
+
*
|
|
4092
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
4093
|
+
*/
|
|
4094
|
+
static findOn(
|
|
4095
|
+
/**
|
|
4096
|
+
* The `Table` instance to check for
|
|
4097
|
+
*/
|
|
4098
|
+
oTable: Table
|
|
4099
|
+
): UI5Element | undefined;
|
|
4100
|
+
/**
|
|
4101
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4SingleSelection.
|
|
4102
|
+
*
|
|
4103
|
+
*
|
|
4104
|
+
* @returns Metadata object describing this class
|
|
4105
|
+
*/
|
|
4106
|
+
static getMetadata(): ElementMetadata;
|
|
4107
|
+
/**
|
|
4108
|
+
* Clears the selection.
|
|
4109
|
+
*/
|
|
4110
|
+
clearSelection(): void;
|
|
4111
|
+
/**
|
|
4112
|
+
* Returns the selected context.
|
|
4113
|
+
*
|
|
4114
|
+
*
|
|
4115
|
+
* @returns The selected context
|
|
4116
|
+
*/
|
|
4117
|
+
getSelectedContext(): Context;
|
|
4118
|
+
}
|
|
4119
|
+
/**
|
|
4120
|
+
* Describes the settings that can be provided to the ODataV4SingleSelection constructor.
|
|
4121
|
+
*/
|
|
4122
|
+
export interface $ODataV4SingleSelectionSettings
|
|
4123
|
+
extends $SelectionPluginSettings {}
|
|
4124
|
+
}
|
|
4125
|
+
|
|
3567
4126
|
declare module "sap/ui/table/plugins/SelectionPlugin" {
|
|
3568
4127
|
import { default as UI5Element, $ElementSettings } from "sap/ui/core/Element";
|
|
3569
4128
|
|
|
@@ -11435,6 +11994,14 @@ declare namespace sap {
|
|
|
11435
11994
|
|
|
11436
11995
|
"sap/ui/table/plugins/MultiSelectionPlugin": undefined;
|
|
11437
11996
|
|
|
11997
|
+
"sap/ui/table/plugins/ODataV4Aggregation": undefined;
|
|
11998
|
+
|
|
11999
|
+
"sap/ui/table/plugins/ODataV4Hierarchy": undefined;
|
|
12000
|
+
|
|
12001
|
+
"sap/ui/table/plugins/ODataV4MultiSelection": undefined;
|
|
12002
|
+
|
|
12003
|
+
"sap/ui/table/plugins/ODataV4SingleSelection": undefined;
|
|
12004
|
+
|
|
11438
12005
|
"sap/ui/table/plugins/SelectionPlugin": undefined;
|
|
11439
12006
|
|
|
11440
12007
|
"sap/ui/table/Row": undefined;
|
package/types/sap.ui.ux3.d.ts
CHANGED
package/types/sap.ui.vbm.d.ts
CHANGED