@openui5/ts-types 1.138.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/README.md +1 -1
- package/package.json +1 -1
- package/types/sap.f.d.ts +64 -13
- package/types/sap.m.d.ts +867 -36
- 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.core.d.ts +264 -127
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +1 -7
- package/types/sap.ui.integration.d.ts +57 -20
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +76 -22
- 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 +558 -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.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.uxap.d.ts +1 -1
package/types/sap.ui.table.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.140.0
|
|
2
2
|
|
|
3
3
|
declare namespace sap {
|
|
4
4
|
namespace ui {
|
|
5
5
|
/**
|
|
6
6
|
* Table-like controls, mainly for desktop scenarios.
|
|
7
7
|
*
|
|
8
|
+
* Basic support for OData V4 is provided, especially by the following plugins:
|
|
9
|
+
* - {@link sap.ui.table.plugins.ODataV4MultiSelection ODataV4MultiSelection}
|
|
10
|
+
* - {@link sap.ui.table.plugins.ODataV4SingleSelection ODataV4SingleSelection}
|
|
11
|
+
* - {@link sap.ui.table.plugins.ODataV4Aggregation ODataV4Aggregation}
|
|
12
|
+
* - {@link sap.ui.table.plugins.ODataV4Hierarchy ODataV4Hierarchy} With OData V4, use one of the
|
|
13
|
+
* OData V4 selection plugins instead of the table's built-in selection or a different selection plugin.
|
|
14
|
+
*
|
|
15
|
+
* For more extensive functionality, the SAP Fiori Elements framework for OData V4 provides the {@link https://ui5.sap.com/#/topic/549749bd901440d4bb242282a16b0ec2 Flexible Programming Model}.
|
|
16
|
+
* It offers building blocks that can be used without additional integration effort. For more table-related
|
|
17
|
+
* information, see the {@link https://ui5.sap.com/#/topic/3801656db27b4b7a9099b6ed5fa1d769 Table Building Block}.
|
|
18
|
+
*
|
|
8
19
|
* @since 0.8
|
|
9
20
|
*/
|
|
10
21
|
namespace table {
|
|
@@ -68,6 +79,77 @@ declare namespace sap {
|
|
|
68
79
|
) => void;
|
|
69
80
|
}
|
|
70
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Describes the settings that can be provided to the ODataV4Aggregation constructor.
|
|
84
|
+
*/
|
|
85
|
+
interface $ODataV4AggregationSettings
|
|
86
|
+
extends sap.ui.core.$ElementSettings {
|
|
87
|
+
/**
|
|
88
|
+
* Indicates whether this plugin is enabled.
|
|
89
|
+
*/
|
|
90
|
+
enabled?:
|
|
91
|
+
| boolean
|
|
92
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
93
|
+
| `{${string}}`;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Provides a custom group header title.
|
|
97
|
+
*
|
|
98
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
99
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
100
|
+
* The function must return a string that is used as the title of the group header row.
|
|
101
|
+
*
|
|
102
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
103
|
+
* string`
|
|
104
|
+
*/
|
|
105
|
+
groupHeaderFormatter?:
|
|
106
|
+
| Function
|
|
107
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
108
|
+
| `{${string}}`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Describes the settings that can be provided to the ODataV4Hierarchy constructor.
|
|
113
|
+
*/
|
|
114
|
+
interface $ODataV4HierarchySettings
|
|
115
|
+
extends sap.ui.core.$ElementSettings {
|
|
116
|
+
/**
|
|
117
|
+
* Indicates whether this plugin is enabled.
|
|
118
|
+
*/
|
|
119
|
+
enabled?:
|
|
120
|
+
| boolean
|
|
121
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
122
|
+
| `{${string}}`;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Describes the settings that can be provided to the ODataV4MultiSelection constructor.
|
|
127
|
+
*/
|
|
128
|
+
interface $ODataV4MultiSelectionSettings
|
|
129
|
+
extends sap.ui.table.plugins.$SelectionPluginSettings {
|
|
130
|
+
/**
|
|
131
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
132
|
+
*/
|
|
133
|
+
enableNotification?:
|
|
134
|
+
| boolean
|
|
135
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
136
|
+
| `{${string}}`;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Hide the header selector.
|
|
140
|
+
*/
|
|
141
|
+
hideHeaderSelector?:
|
|
142
|
+
| boolean
|
|
143
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
144
|
+
| `{${string}}`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Describes the settings that can be provided to the ODataV4SingleSelection constructor.
|
|
149
|
+
*/
|
|
150
|
+
interface $ODataV4SingleSelectionSettings
|
|
151
|
+
extends sap.ui.table.plugins.$SelectionPluginSettings {}
|
|
152
|
+
|
|
71
153
|
/**
|
|
72
154
|
* Describes the settings that can be provided to the SelectionPlugin constructor.
|
|
73
155
|
*/
|
|
@@ -132,6 +214,10 @@ declare namespace sap {
|
|
|
132
214
|
* Select All, only work properly if the count is known. Make sure the model/binding is configured to request
|
|
133
215
|
* the count from the service. For ease of use, client-side models and single selection are also supported.
|
|
134
216
|
*
|
|
217
|
+
* With ODataV4, use the {@link sap.ui.table.plugins.ODataV4MultiSelection ODataV4MultiSelection} plugin
|
|
218
|
+
* or the {@link sap.ui.table.plugins.ODataV4SingleSelection ODataV4SingleSelection} plugin instead of this
|
|
219
|
+
* one.
|
|
220
|
+
*
|
|
135
221
|
* @since 1.64
|
|
136
222
|
*/
|
|
137
223
|
class MultiSelectionPlugin extends sap.ui.table.plugins
|
|
@@ -547,6 +633,469 @@ declare namespace sap {
|
|
|
547
633
|
bShowHeaderSelector?: boolean
|
|
548
634
|
): this;
|
|
549
635
|
}
|
|
636
|
+
/**
|
|
637
|
+
* Integrates the information about the data structure of the {@link sap.ui.model.odata.v4.ODataListBinding }
|
|
638
|
+
* and the table. The table is enabled to visualize grouped data with summary rows. Works only in combination
|
|
639
|
+
* with a {@link sap.ui.model.odata.v4.ODataModel}.
|
|
640
|
+
*
|
|
641
|
+
* For details about data aggregation, see {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}.
|
|
642
|
+
*
|
|
643
|
+
* @since 1.140
|
|
644
|
+
*/
|
|
645
|
+
class ODataV4Aggregation extends sap.ui.core.Element {
|
|
646
|
+
/**
|
|
647
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
648
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
649
|
+
* of the syntax of the settings object.
|
|
650
|
+
* See:
|
|
651
|
+
* {@link https://ui5.sap.com/#/topic/7d914317c0b64c23824bf932cc8a4ae1 OData V4: Data Aggregation and Recursive Hierarchy}
|
|
652
|
+
*/
|
|
653
|
+
constructor();
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4Aggregation with name `sClassName` and enriches
|
|
657
|
+
* it with the information contained in `oClassInfo`.
|
|
658
|
+
*
|
|
659
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Element.extend}.
|
|
660
|
+
*
|
|
661
|
+
*
|
|
662
|
+
* @returns Created class / constructor function
|
|
663
|
+
*/
|
|
664
|
+
static extend<T extends Record<string, unknown>>(
|
|
665
|
+
/**
|
|
666
|
+
* Name of the class being created
|
|
667
|
+
*/
|
|
668
|
+
sClassName: string,
|
|
669
|
+
/**
|
|
670
|
+
* Object literal with information about the class
|
|
671
|
+
*/
|
|
672
|
+
oClassInfo?: sap.ClassInfo<
|
|
673
|
+
T,
|
|
674
|
+
sap.ui.table.plugins.ODataV4Aggregation
|
|
675
|
+
>,
|
|
676
|
+
/**
|
|
677
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
678
|
+
* used by this class
|
|
679
|
+
*/
|
|
680
|
+
FNMetaImpl?: Function
|
|
681
|
+
): Function;
|
|
682
|
+
/**
|
|
683
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
684
|
+
* plugin that is found is returned.
|
|
685
|
+
*
|
|
686
|
+
*
|
|
687
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
688
|
+
*/
|
|
689
|
+
static findOn(
|
|
690
|
+
/**
|
|
691
|
+
* The `Table` instance to check for
|
|
692
|
+
*/
|
|
693
|
+
oTable: sap.ui.table.Table
|
|
694
|
+
): sap.ui.core.Element | undefined;
|
|
695
|
+
/**
|
|
696
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4Aggregation.
|
|
697
|
+
*
|
|
698
|
+
*
|
|
699
|
+
* @returns Metadata object describing this class
|
|
700
|
+
*/
|
|
701
|
+
static getMetadata(): sap.ui.core.ElementMetadata;
|
|
702
|
+
/**
|
|
703
|
+
* Gets current value of property {@link #getEnabled enabled}.
|
|
704
|
+
*
|
|
705
|
+
* Indicates whether this plugin is enabled.
|
|
706
|
+
*
|
|
707
|
+
* Default value is `true`.
|
|
708
|
+
*
|
|
709
|
+
*
|
|
710
|
+
* @returns Value of property `enabled`
|
|
711
|
+
*/
|
|
712
|
+
getEnabled(): boolean;
|
|
713
|
+
/**
|
|
714
|
+
* Gets current value of property {@link #getGroupHeaderFormatter groupHeaderFormatter}.
|
|
715
|
+
*
|
|
716
|
+
* Provides a custom group header title.
|
|
717
|
+
*
|
|
718
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
719
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
720
|
+
* The function must return a string that is used as the title of the group header row.
|
|
721
|
+
*
|
|
722
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
723
|
+
* string`
|
|
724
|
+
*
|
|
725
|
+
*
|
|
726
|
+
* @returns Value of property `groupHeaderFormatter`
|
|
727
|
+
*/
|
|
728
|
+
getGroupHeaderFormatter(): Function;
|
|
729
|
+
/**
|
|
730
|
+
* Sets a new value for property {@link #getEnabled enabled}.
|
|
731
|
+
*
|
|
732
|
+
* Indicates whether this plugin is enabled.
|
|
733
|
+
*
|
|
734
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
735
|
+
*
|
|
736
|
+
* Default value is `true`.
|
|
737
|
+
*
|
|
738
|
+
*
|
|
739
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
740
|
+
*/
|
|
741
|
+
setEnabled(
|
|
742
|
+
/**
|
|
743
|
+
* New value for property `enabled`
|
|
744
|
+
*/
|
|
745
|
+
bEnabled?: boolean
|
|
746
|
+
): this;
|
|
747
|
+
/**
|
|
748
|
+
* Sets a new value for property {@link #getGroupHeaderFormatter groupHeaderFormatter}.
|
|
749
|
+
*
|
|
750
|
+
* Provides a custom group header title.
|
|
751
|
+
*
|
|
752
|
+
* This function is called for each group header row in the table. It receives the binding context of the
|
|
753
|
+
* row and the group level property path according to `groupLevels` in {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}).
|
|
754
|
+
* The function must return a string that is used as the title of the group header row.
|
|
755
|
+
*
|
|
756
|
+
* Function signature: `groupHeaderFormatter(oContext: sap.ui.model.odata.v4.Context, sPropertyPath: string):
|
|
757
|
+
* string`
|
|
758
|
+
*
|
|
759
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
760
|
+
*
|
|
761
|
+
*
|
|
762
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
763
|
+
*/
|
|
764
|
+
setGroupHeaderFormatter(
|
|
765
|
+
/**
|
|
766
|
+
* New value for property `groupHeaderFormatter`
|
|
767
|
+
*/
|
|
768
|
+
fnGroupHeaderFormatter: Function
|
|
769
|
+
): this;
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Integrates the information about the data structure of the {@link sap.ui.model.odata.v4.ODataListBinding }
|
|
773
|
+
* and the table. The table is enabled to visualize hierarchical data. Works only in combination with a
|
|
774
|
+
* {@link sap.ui.model.odata.v4.ODataModel}.
|
|
775
|
+
*
|
|
776
|
+
* For details about hierarchies, see {@link sap.ui.model.odata.v4.ODataListBinding#setAggregation}.
|
|
777
|
+
*
|
|
778
|
+
* @since 1.140
|
|
779
|
+
*/
|
|
780
|
+
class ODataV4Hierarchy extends sap.ui.core.Element {
|
|
781
|
+
/**
|
|
782
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
783
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
784
|
+
* of the syntax of the settings object.
|
|
785
|
+
* See:
|
|
786
|
+
* {@link https://ui5.sap.com/#/topic/7d914317c0b64c23824bf932cc8a4ae1 OData V4: Data Aggregation and Recursive Hierarchy}
|
|
787
|
+
*/
|
|
788
|
+
constructor();
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4Hierarchy with name `sClassName` and enriches
|
|
792
|
+
* it with the information contained in `oClassInfo`.
|
|
793
|
+
*
|
|
794
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Element.extend}.
|
|
795
|
+
*
|
|
796
|
+
*
|
|
797
|
+
* @returns Created class / constructor function
|
|
798
|
+
*/
|
|
799
|
+
static extend<T extends Record<string, unknown>>(
|
|
800
|
+
/**
|
|
801
|
+
* Name of the class being created
|
|
802
|
+
*/
|
|
803
|
+
sClassName: string,
|
|
804
|
+
/**
|
|
805
|
+
* Object literal with information about the class
|
|
806
|
+
*/
|
|
807
|
+
oClassInfo?: sap.ClassInfo<
|
|
808
|
+
T,
|
|
809
|
+
sap.ui.table.plugins.ODataV4Hierarchy
|
|
810
|
+
>,
|
|
811
|
+
/**
|
|
812
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
813
|
+
* used by this class
|
|
814
|
+
*/
|
|
815
|
+
FNMetaImpl?: Function
|
|
816
|
+
): Function;
|
|
817
|
+
/**
|
|
818
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
819
|
+
* plugin that is found is returned.
|
|
820
|
+
*
|
|
821
|
+
*
|
|
822
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
823
|
+
*/
|
|
824
|
+
static findOn(
|
|
825
|
+
/**
|
|
826
|
+
* The `Table` instance to check for
|
|
827
|
+
*/
|
|
828
|
+
oTable: sap.ui.table.Table
|
|
829
|
+
): sap.ui.core.Element | undefined;
|
|
830
|
+
/**
|
|
831
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4Hierarchy.
|
|
832
|
+
*
|
|
833
|
+
*
|
|
834
|
+
* @returns Metadata object describing this class
|
|
835
|
+
*/
|
|
836
|
+
static getMetadata(): sap.ui.core.ElementMetadata;
|
|
837
|
+
/**
|
|
838
|
+
* Gets current value of property {@link #getEnabled enabled}.
|
|
839
|
+
*
|
|
840
|
+
* Indicates whether this plugin is enabled.
|
|
841
|
+
*
|
|
842
|
+
* Default value is `true`.
|
|
843
|
+
*
|
|
844
|
+
*
|
|
845
|
+
* @returns Value of property `enabled`
|
|
846
|
+
*/
|
|
847
|
+
getEnabled(): boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Sets a new value for property {@link #getEnabled enabled}.
|
|
850
|
+
*
|
|
851
|
+
* Indicates whether this plugin is enabled.
|
|
852
|
+
*
|
|
853
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
854
|
+
*
|
|
855
|
+
* Default value is `true`.
|
|
856
|
+
*
|
|
857
|
+
*
|
|
858
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
859
|
+
*/
|
|
860
|
+
setEnabled(
|
|
861
|
+
/**
|
|
862
|
+
* New value for property `enabled`
|
|
863
|
+
*/
|
|
864
|
+
bEnabled?: boolean
|
|
865
|
+
): this;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Integrates the selection of the {@link sap.ui.model.odata.v4.ODataListBinding} and the table. Works only
|
|
869
|
+
* in combination with a {@link sap.ui.model.odata.v4.ODataModel}.
|
|
870
|
+
*
|
|
871
|
+
* The selection of a context that is not selectable is not allowed. The following contexts are not selectable:
|
|
872
|
+
*
|
|
873
|
+
* - Header context
|
|
874
|
+
* - Contexts that represent group headers
|
|
875
|
+
* - Contexts that contain totals
|
|
876
|
+
*
|
|
877
|
+
* All binding-related limitations also apply in the context of this plugin. For details, see {@link sap.ui.model.odata.v4.Context#setSelected }
|
|
878
|
+
* and {@link sap.ui.model.odata.v4.ODataModel#bindList}.
|
|
879
|
+
*
|
|
880
|
+
* @since 1.140
|
|
881
|
+
*/
|
|
882
|
+
class ODataV4MultiSelection extends sap.ui.table.plugins
|
|
883
|
+
.SelectionPlugin {
|
|
884
|
+
/**
|
|
885
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
886
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
887
|
+
* of the syntax of the settings object.
|
|
888
|
+
* See:
|
|
889
|
+
* {@link https://ui5.sap.com/#/topic/ec55312f796f45e8883810af3b68b46c OData V4: Selection}
|
|
890
|
+
*/
|
|
891
|
+
constructor();
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4MultiSelection with name `sClassName` and
|
|
895
|
+
* enriches it with the information contained in `oClassInfo`.
|
|
896
|
+
*
|
|
897
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.table.plugins.SelectionPlugin.extend}.
|
|
898
|
+
*
|
|
899
|
+
*
|
|
900
|
+
* @returns Created class / constructor function
|
|
901
|
+
*/
|
|
902
|
+
static extend<T extends Record<string, unknown>>(
|
|
903
|
+
/**
|
|
904
|
+
* Name of the class being created
|
|
905
|
+
*/
|
|
906
|
+
sClassName: string,
|
|
907
|
+
/**
|
|
908
|
+
* Object literal with information about the class
|
|
909
|
+
*/
|
|
910
|
+
oClassInfo?: sap.ClassInfo<
|
|
911
|
+
T,
|
|
912
|
+
sap.ui.table.plugins.ODataV4MultiSelection
|
|
913
|
+
>,
|
|
914
|
+
/**
|
|
915
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
916
|
+
* used by this class
|
|
917
|
+
*/
|
|
918
|
+
FNMetaImpl?: Function
|
|
919
|
+
): Function;
|
|
920
|
+
/**
|
|
921
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
922
|
+
* plugin that is found is returned.
|
|
923
|
+
*
|
|
924
|
+
*
|
|
925
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
926
|
+
*/
|
|
927
|
+
static findOn(
|
|
928
|
+
/**
|
|
929
|
+
* The `Table` instance to check for
|
|
930
|
+
*/
|
|
931
|
+
oTable: sap.ui.table.Table
|
|
932
|
+
): sap.ui.core.Element | undefined;
|
|
933
|
+
/**
|
|
934
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4MultiSelection.
|
|
935
|
+
*
|
|
936
|
+
*
|
|
937
|
+
* @returns Metadata object describing this class
|
|
938
|
+
*/
|
|
939
|
+
static getMetadata(): sap.ui.core.ElementMetadata;
|
|
940
|
+
/**
|
|
941
|
+
* Clears the selection.
|
|
942
|
+
*/
|
|
943
|
+
clearSelection(): void;
|
|
944
|
+
/**
|
|
945
|
+
* Gets current value of property {@link #getEnableNotification enableNotification}.
|
|
946
|
+
*
|
|
947
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
948
|
+
*
|
|
949
|
+
* Default value is `false`.
|
|
950
|
+
*
|
|
951
|
+
*
|
|
952
|
+
* @returns Value of property `enableNotification`
|
|
953
|
+
*/
|
|
954
|
+
getEnableNotification(): boolean;
|
|
955
|
+
/**
|
|
956
|
+
* Gets current value of property {@link #getHideHeaderSelector hideHeaderSelector}.
|
|
957
|
+
*
|
|
958
|
+
* Hide the header selector.
|
|
959
|
+
*
|
|
960
|
+
* Default value is `false`.
|
|
961
|
+
*
|
|
962
|
+
*
|
|
963
|
+
* @returns Value of property `hideHeaderSelector`
|
|
964
|
+
*/
|
|
965
|
+
getHideHeaderSelector(): boolean;
|
|
966
|
+
/**
|
|
967
|
+
* Returns the selected contexts.
|
|
968
|
+
*
|
|
969
|
+
*
|
|
970
|
+
* @returns The selected contexts
|
|
971
|
+
*/
|
|
972
|
+
getSelectedContexts(): sap.ui.model.odata.v4.Context[];
|
|
973
|
+
/**
|
|
974
|
+
* Sets a new value for property {@link #getEnableNotification enableNotification}.
|
|
975
|
+
*
|
|
976
|
+
* Enables notifications that are displayed once a selection has been limited.
|
|
977
|
+
*
|
|
978
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
979
|
+
*
|
|
980
|
+
* Default value is `false`.
|
|
981
|
+
*
|
|
982
|
+
*
|
|
983
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
984
|
+
*/
|
|
985
|
+
setEnableNotification(
|
|
986
|
+
/**
|
|
987
|
+
* New value for property `enableNotification`
|
|
988
|
+
*/
|
|
989
|
+
bEnableNotification?: boolean
|
|
990
|
+
): this;
|
|
991
|
+
/**
|
|
992
|
+
* Sets a new value for property {@link #getHideHeaderSelector hideHeaderSelector}.
|
|
993
|
+
*
|
|
994
|
+
* Hide the header selector.
|
|
995
|
+
*
|
|
996
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
997
|
+
*
|
|
998
|
+
* Default value is `false`.
|
|
999
|
+
*
|
|
1000
|
+
*
|
|
1001
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
1002
|
+
*/
|
|
1003
|
+
setHideHeaderSelector(
|
|
1004
|
+
/**
|
|
1005
|
+
* New value for property `hideHeaderSelector`
|
|
1006
|
+
*/
|
|
1007
|
+
bHideHeaderSelector?: boolean
|
|
1008
|
+
): this;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Integrates the selection of the {@link sap.ui.model.odata.v4.ODataListBinding} and the table. Works only
|
|
1012
|
+
* in combination with a {@link sap.ui.model.odata.v4.ODataModel}. The selection of multiple contexts is
|
|
1013
|
+
* not allowed. Only one context can be selected at a time.
|
|
1014
|
+
*
|
|
1015
|
+
* The selection of a context that is not selectable is not allowed. The following contexts are not selectable:
|
|
1016
|
+
*
|
|
1017
|
+
* - Header context
|
|
1018
|
+
* - Contexts that represent group headers
|
|
1019
|
+
* - Contexts that contain totals
|
|
1020
|
+
*
|
|
1021
|
+
* All binding-related limitations also apply in the context of this plugin. For details, see {@link sap.ui.model.odata.v4.Context#setSelected }
|
|
1022
|
+
* and {@link sap.ui.model.odata.v4.ODataModel#bindList}.
|
|
1023
|
+
*
|
|
1024
|
+
* @since 1.140
|
|
1025
|
+
*/
|
|
1026
|
+
class ODataV4SingleSelection extends sap.ui.table.plugins
|
|
1027
|
+
.SelectionPlugin {
|
|
1028
|
+
/**
|
|
1029
|
+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
1030
|
+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
1031
|
+
* of the syntax of the settings object.
|
|
1032
|
+
*
|
|
1033
|
+
* 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 }
|
|
1034
|
+
* can be used.
|
|
1035
|
+
* See:
|
|
1036
|
+
* {@link https://ui5.sap.com/#/topic/ec55312f796f45e8883810af3b68b46c OData V4: Selection}
|
|
1037
|
+
*/
|
|
1038
|
+
constructor();
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Creates a new subclass of class sap.ui.table.plugins.ODataV4SingleSelection with name `sClassName` and
|
|
1042
|
+
* enriches it with the information contained in `oClassInfo`.
|
|
1043
|
+
*
|
|
1044
|
+
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.table.plugins.SelectionPlugin.extend}.
|
|
1045
|
+
*
|
|
1046
|
+
*
|
|
1047
|
+
* @returns Created class / constructor function
|
|
1048
|
+
*/
|
|
1049
|
+
static extend<T extends Record<string, unknown>>(
|
|
1050
|
+
/**
|
|
1051
|
+
* Name of the class being created
|
|
1052
|
+
*/
|
|
1053
|
+
sClassName: string,
|
|
1054
|
+
/**
|
|
1055
|
+
* Object literal with information about the class
|
|
1056
|
+
*/
|
|
1057
|
+
oClassInfo?: sap.ClassInfo<
|
|
1058
|
+
T,
|
|
1059
|
+
sap.ui.table.plugins.ODataV4SingleSelection
|
|
1060
|
+
>,
|
|
1061
|
+
/**
|
|
1062
|
+
* Constructor function for the metadata object; if not given, it defaults to the metadata implementation
|
|
1063
|
+
* used by this class
|
|
1064
|
+
*/
|
|
1065
|
+
FNMetaImpl?: Function
|
|
1066
|
+
): Function;
|
|
1067
|
+
/**
|
|
1068
|
+
* Searches a plugin of the corresponding type in the aggregations of the given `Table` instance. The first
|
|
1069
|
+
* plugin that is found is returned.
|
|
1070
|
+
*
|
|
1071
|
+
*
|
|
1072
|
+
* @returns The found plugin instance or `undefined` if not found
|
|
1073
|
+
*/
|
|
1074
|
+
static findOn(
|
|
1075
|
+
/**
|
|
1076
|
+
* The `Table` instance to check for
|
|
1077
|
+
*/
|
|
1078
|
+
oTable: sap.ui.table.Table
|
|
1079
|
+
): sap.ui.core.Element | undefined;
|
|
1080
|
+
/**
|
|
1081
|
+
* Returns a metadata object for class sap.ui.table.plugins.ODataV4SingleSelection.
|
|
1082
|
+
*
|
|
1083
|
+
*
|
|
1084
|
+
* @returns Metadata object describing this class
|
|
1085
|
+
*/
|
|
1086
|
+
static getMetadata(): sap.ui.core.ElementMetadata;
|
|
1087
|
+
/**
|
|
1088
|
+
* Clears the selection.
|
|
1089
|
+
*/
|
|
1090
|
+
clearSelection(): void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Returns the selected context.
|
|
1093
|
+
*
|
|
1094
|
+
*
|
|
1095
|
+
* @returns The selected context
|
|
1096
|
+
*/
|
|
1097
|
+
getSelectedContext(): sap.ui.model.odata.v4.Context;
|
|
1098
|
+
}
|
|
550
1099
|
/**
|
|
551
1100
|
* Base class for the selection plugins. A selection plugin is responsible for the selection behavior of
|
|
552
1101
|
* the table. It handles the selection state and provides information about the selection state to the table.
|
|
@@ -11475,6 +12024,14 @@ declare namespace sap {
|
|
|
11475
12024
|
|
|
11476
12025
|
"sap/ui/table/plugins/MultiSelectionPlugin": undefined;
|
|
11477
12026
|
|
|
12027
|
+
"sap/ui/table/plugins/ODataV4Aggregation": undefined;
|
|
12028
|
+
|
|
12029
|
+
"sap/ui/table/plugins/ODataV4Hierarchy": undefined;
|
|
12030
|
+
|
|
12031
|
+
"sap/ui/table/plugins/ODataV4MultiSelection": undefined;
|
|
12032
|
+
|
|
12033
|
+
"sap/ui/table/plugins/ODataV4SingleSelection": undefined;
|
|
12034
|
+
|
|
11478
12035
|
"sap/ui/table/plugins/SelectionPlugin": undefined;
|
|
11479
12036
|
|
|
11480
12037
|
"sap/ui/table/Row": undefined;
|
package/types/sap.ui.ux3.d.ts
CHANGED
package/types/sap.uxap.d.ts
CHANGED