@sapui5/ts-types 1.144.0 → 1.145.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.esh.search.ui.d.ts +112 -82
- package/types/sap.f.d.ts +1 -1
- package/types/sap.fe.ariba.d.ts +1 -1
- package/types/sap.fe.base.d.ts +300 -28
- package/types/sap.fe.controls.d.ts +1 -1
- package/types/sap.fe.core.d.ts +165 -4
- package/types/sap.fe.ina.d.ts +1 -1
- package/types/sap.fe.macros.d.ts +913 -289
- 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 +12 -1
- package/types/sap.fe.test.d.ts +150 -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 +134 -1
- package/types/sap.insights.d.ts +1 -1
- package/types/sap.m.d.ts +29 -12
- 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 +32 -2
- package/types/sap.rules.ui.d.ts +1 -1
- package/types/sap.sac.df.d.ts +1 -1
- package/types/sap.suite.ui.commons.d.ts +234 -15
- package/types/sap.suite.ui.generic.template.d.ts +46 -1
- package/types/sap.suite.ui.microchart.d.ts +2 -1
- package/types/sap.tnt.d.ts +19 -11
- 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 +76 -2
- package/types/sap.ui.core.d.ts +140 -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 +5 -1
- package/types/sap.ui.generic.app.d.ts +1 -1
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.geomap.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +1 -1
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +356 -49
- package/types/sap.ui.richtexteditor.d.ts +29 -7
- 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 +5 -1
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +42 -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 +175 -1
- 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 +5 -1
- package/types/sap.ushell_abap.d.ts +1 -1
- package/types/sap.uxap.d.ts +18 -8
- 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/package.json
CHANGED
package/types/sap.apf.d.ts
CHANGED
package/types/sap.ca.ui.d.ts
CHANGED
package/types/sap.chart.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.145.2
|
|
2
2
|
|
|
3
3
|
declare namespace sap {
|
|
4
4
|
namespace esh {
|
|
@@ -26,24 +26,16 @@ declare namespace sap {
|
|
|
26
26
|
extends sap.m.$OverflowToolbarButtonSettings {}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
interface $SearchBasketBaseSettings
|
|
34
|
-
extends sap.ui.layout.$VerticalLayoutSettings {}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* This is the SAPUI5 sample basket class, extending search basket base class 'SearchBasketBase'. Adds a
|
|
38
|
-
* custom header, footer and sap.m.Table is used for the basket items. Use in combination with control SearchCompositeControl
|
|
39
|
-
* by the Enterprise Search Team.
|
|
29
|
+
* This is the SAPUI5 sample basket class, making use of the sap.ui.table.Table extension SearchBasketSapUiTable.
|
|
30
|
+
* In addition, adds a custom header, footer (sap.ui.table.Table is used for the basket items). Use in combination
|
|
31
|
+
* with control SearchCompositeControl by the Enterprise Search Team.
|
|
40
32
|
*
|
|
41
33
|
* @since 1.144.0
|
|
42
34
|
* @experimental As of version 1.144.0.
|
|
43
35
|
*/
|
|
44
36
|
class CustomBasket extends sap.ui.layout.VerticalLayout {
|
|
45
37
|
/**
|
|
46
|
-
* Constructs a new `
|
|
38
|
+
* Constructs a new `CustomBasket` to be used as a search basket (extend this class).
|
|
47
39
|
* See:
|
|
48
40
|
* https://help.sap.com/viewer/691cb949c1034198800afde3e5be6570/2.0.05/en-US/ce86ef2fd97610149eaaaa0244ca4d36.html
|
|
49
41
|
* https://help.sap.com/viewer/6522d0462aeb4909a79c3462b090ec51/1709%20002/en-US
|
|
@@ -76,28 +68,6 @@ declare namespace sap {
|
|
|
76
68
|
sId?: string
|
|
77
69
|
);
|
|
78
70
|
}
|
|
79
|
-
/**
|
|
80
|
-
* This is the SAPUI5 search basket base class to be used to extend it as a custom search basket. Add custom
|
|
81
|
-
* header, footer, buttons, etc. in your extended class. Use in combination with control SearchCompositeControl
|
|
82
|
-
* by the Enterprise Search Team.
|
|
83
|
-
*
|
|
84
|
-
* @since 1.144.0
|
|
85
|
-
* @experimental As of version 1.144.0.
|
|
86
|
-
*/
|
|
87
|
-
class SearchBasketBase extends sap.ui.layout.VerticalLayout {
|
|
88
|
-
/**
|
|
89
|
-
* Constructs a new `SearchBasketBase` to be used as a search basket (extend this class).
|
|
90
|
-
* See:
|
|
91
|
-
* https://help.sap.com/viewer/691cb949c1034198800afde3e5be6570/2.0.05/en-US/ce86ef2fd97610149eaaaa0244ca4d36.html
|
|
92
|
-
* https://help.sap.com/viewer/6522d0462aeb4909a79c3462b090ec51/1709%20002/en-US
|
|
93
|
-
*/
|
|
94
|
-
constructor(
|
|
95
|
-
/**
|
|
96
|
-
* ID for the new control, generated automatically if no ID is given
|
|
97
|
-
*/
|
|
98
|
-
sId?: string
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
71
|
}
|
|
102
72
|
|
|
103
73
|
namespace resultview {
|
|
@@ -839,7 +809,24 @@ declare namespace sap {
|
|
|
839
809
|
| `{${string}}`;
|
|
840
810
|
|
|
841
811
|
/**
|
|
842
|
-
*
|
|
812
|
+
* Location of the basket. When creating your own basket (see function 'createAndRegisterBasket'), set this
|
|
813
|
+
* property to "CustomBasketLocation". By default the basket is a panel at the right of the result view.
|
|
814
|
+
*
|
|
815
|
+
* Values: - "SidePanelRight" (default): basket is a panel at the right of the result view - "CustomBasketLocation":
|
|
816
|
+
* basket is created by function 'createAndRegisterBasket' and can be placed anywhere in the UI
|
|
817
|
+
*
|
|
818
|
+
* @since 1.145.0
|
|
819
|
+
*/
|
|
820
|
+
basketLocation?:
|
|
821
|
+
| string
|
|
822
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Define your own view for the basket. The basket is displayed on a panel at the right/end of result views
|
|
826
|
+
* (by default, details see 'basketLocation'). There is buttons to show/hide it and add items to the basket
|
|
827
|
+
* (see config properties 'basketShowHideButton' and 'basketAddButton'). For the basket items collection,
|
|
828
|
+
* we recommend to use function 'createAndRegisterBasket' to create a table/list, so the selection (incl.
|
|
829
|
+
* 'add to basket') of result views with table/list is managed by SearchCompositeControl.
|
|
843
830
|
*
|
|
844
831
|
* @since 1.144.0
|
|
845
832
|
*/
|
|
@@ -936,17 +923,6 @@ declare namespace sap {
|
|
|
936
923
|
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
937
924
|
| `{${string}}`;
|
|
938
925
|
|
|
939
|
-
/**
|
|
940
|
-
* A callback which is called whenever the selection of result view items changes.
|
|
941
|
-
*
|
|
942
|
-
* @since 1.113.0
|
|
943
|
-
* @deprecated As of version 1.137.0. this setting is ignored, subscribe to event 'selectionChanged'.
|
|
944
|
-
*/
|
|
945
|
-
selectionChange?:
|
|
946
|
-
| Function
|
|
947
|
-
| sap.ui.base.ManagedObject.PropertyBindingInfo
|
|
948
|
-
| `{${string}}`;
|
|
949
|
-
|
|
950
926
|
/**
|
|
951
927
|
* An asynchronues callback which is called after the initialization of the search composite control.
|
|
952
928
|
*
|
|
@@ -1636,6 +1612,26 @@ declare namespace sap {
|
|
|
1636
1612
|
* @returns void
|
|
1637
1613
|
*/
|
|
1638
1614
|
clearObjectSelection(): undefined;
|
|
1615
|
+
/**
|
|
1616
|
+
* Create an instance of a basket and register it for interaction with the result view (items/selection
|
|
1617
|
+
* indicator). See property 'basketLocation' in search model configuration to define where the basket panel
|
|
1618
|
+
* is located.
|
|
1619
|
+
*
|
|
1620
|
+
* @since 1.145.0
|
|
1621
|
+
*
|
|
1622
|
+
* @returns A basket control of type sap.m.Table or sap.m.List containing items of the search basket ('selected
|
|
1623
|
+
* items')
|
|
1624
|
+
*/
|
|
1625
|
+
createAndRegisterBasket(
|
|
1626
|
+
/**
|
|
1627
|
+
* The ID postfix for the basket instance
|
|
1628
|
+
*/
|
|
1629
|
+
idPostfix: string,
|
|
1630
|
+
/**
|
|
1631
|
+
* The UI type table/list ("sapMList" | "sapMTable" | "sapUiTable")
|
|
1632
|
+
*/
|
|
1633
|
+
type: "sapMList" | "sapMTable" | "sapUiTable"
|
|
1634
|
+
): object;
|
|
1639
1635
|
/**
|
|
1640
1636
|
* Create a NavigationTarget instance for filtering/search.
|
|
1641
1637
|
*
|
|
@@ -1949,6 +1945,15 @@ declare namespace sap {
|
|
|
1949
1945
|
* @returns Value of property `autoAdjustResultViewTypeInFolderMode`
|
|
1950
1946
|
*/
|
|
1951
1947
|
getAutoAdjustResultViewTypeInFolderMode(): boolean;
|
|
1948
|
+
/**
|
|
1949
|
+
* Get the active/current search basket (see interfaceSearchBasketApi)
|
|
1950
|
+
*
|
|
1951
|
+
* @since 1.145.0
|
|
1952
|
+
*
|
|
1953
|
+
* @returns A control containing other controls. At least one of the controls is the basket-list/table,
|
|
1954
|
+
* containg the 'selected items'.
|
|
1955
|
+
*/
|
|
1956
|
+
getBasket(): object;
|
|
1952
1957
|
/**
|
|
1953
1958
|
* Gets current value of property {@link #getBasketAddButton basketAddButton}.
|
|
1954
1959
|
*
|
|
@@ -2037,12 +2042,12 @@ declare namespace sap {
|
|
|
2037
2042
|
*/
|
|
2038
2043
|
getBasketInit(): Function;
|
|
2039
2044
|
/**
|
|
2040
|
-
* Get items of the
|
|
2045
|
+
* Get items of the latest search basket ('selected items', JSON model) The model is read-only.
|
|
2041
2046
|
*
|
|
2042
2047
|
* @since 1.143.0
|
|
2043
2048
|
* @experimental As of version 1.143.0.
|
|
2044
2049
|
*
|
|
2045
|
-
* @returns A JSON model containing items of the
|
|
2050
|
+
* @returns A JSON model containing items of the search basket ('selected items')
|
|
2046
2051
|
*/
|
|
2047
2052
|
getBasketItems(): object;
|
|
2048
2053
|
/**
|
|
@@ -2060,6 +2065,22 @@ declare namespace sap {
|
|
|
2060
2065
|
* @returns Value of property `basketLinkByResultViewItemSelection`
|
|
2061
2066
|
*/
|
|
2062
2067
|
getBasketLinkByResultViewItemSelection(): boolean;
|
|
2068
|
+
/**
|
|
2069
|
+
* Gets current value of property {@link #getBasketLocation basketLocation}.
|
|
2070
|
+
*
|
|
2071
|
+
* Location of the basket. When creating your own basket (see function 'createAndRegisterBasket'), set this
|
|
2072
|
+
* property to "CustomBasketLocation". By default the basket is a panel at the right of the result view.
|
|
2073
|
+
*
|
|
2074
|
+
* Values: - "SidePanelRight" (default): basket is a panel at the right of the result view - "CustomBasketLocation":
|
|
2075
|
+
* basket is created by function 'createAndRegisterBasket' and can be placed anywhere in the UI
|
|
2076
|
+
*
|
|
2077
|
+
* Default value is `"SidePanelRight"`.
|
|
2078
|
+
*
|
|
2079
|
+
* @since 1.145.0
|
|
2080
|
+
*
|
|
2081
|
+
* @returns Value of property `basketLocation`
|
|
2082
|
+
*/
|
|
2083
|
+
getBasketLocation(): string;
|
|
2063
2084
|
/**
|
|
2064
2085
|
* Gets current value of property {@link #getBasketPanelResizable basketPanelResizable}.
|
|
2065
2086
|
*
|
|
@@ -2132,7 +2153,11 @@ declare namespace sap {
|
|
|
2132
2153
|
/**
|
|
2133
2154
|
* Gets current value of property {@link #getCustomBasket customBasket}.
|
|
2134
2155
|
*
|
|
2135
|
-
* Define your own
|
|
2156
|
+
* Define your own view for the basket. The basket is displayed on a panel at the right/end of result views
|
|
2157
|
+
* (by default, details see 'basketLocation'). There is buttons to show/hide it and add items to the basket
|
|
2158
|
+
* (see config properties 'basketShowHideButton' and 'basketAddButton'). For the basket items collection,
|
|
2159
|
+
* we recommend to use function 'createAndRegisterBasket' to create a table/list, so the selection (incl.
|
|
2160
|
+
* 'add to basket') of result views with table/list is managed by SearchCompositeControl.
|
|
2136
2161
|
*
|
|
2137
2162
|
* @since 1.144.0
|
|
2138
2163
|
*
|
|
@@ -2641,6 +2666,15 @@ declare namespace sap {
|
|
|
2641
2666
|
* @returns Value of property `searchBarTitle`
|
|
2642
2667
|
*/
|
|
2643
2668
|
getSearchBarTitle(): string;
|
|
2669
|
+
/**
|
|
2670
|
+
* Get the basket model ('selected items', 'count' : JSON model) The model is managed by SearchCompositeControl,
|
|
2671
|
+
* do not change it manually.
|
|
2672
|
+
*
|
|
2673
|
+
* @since 1.145.0
|
|
2674
|
+
*
|
|
2675
|
+
* @returns A JSON model containing items of the search basket ('selected items', 'count')
|
|
2676
|
+
*/
|
|
2677
|
+
getSearchBasketModel(): object;
|
|
2644
2678
|
/**
|
|
2645
2679
|
* Gets current value of property {@link #getSearchInputLocation searchInputLocation}.
|
|
2646
2680
|
*
|
|
@@ -2704,17 +2738,6 @@ declare namespace sap {
|
|
|
2704
2738
|
* @returns Value of property `searchTermLengthLimit`
|
|
2705
2739
|
*/
|
|
2706
2740
|
getSearchTermLengthLimit(): int;
|
|
2707
|
-
/**
|
|
2708
|
-
* Gets current value of property {@link #getSelectionChange selectionChange}.
|
|
2709
|
-
*
|
|
2710
|
-
* A callback which is called whenever the selection of result view items changes.
|
|
2711
|
-
*
|
|
2712
|
-
* @since 1.113.0
|
|
2713
|
-
* @deprecated As of version 1.137.0. this setting is ignored, subscribe to event 'selectionChanged'.
|
|
2714
|
-
*
|
|
2715
|
-
* @returns Value of property `selectionChange`
|
|
2716
|
-
*/
|
|
2717
|
-
getSelectionChange(): Function;
|
|
2718
2741
|
/**
|
|
2719
2742
|
* Gets current value of property {@link #getShowSelectionToggleButton showSelectionToggleButton}.
|
|
2720
2743
|
*
|
|
@@ -3031,6 +3054,29 @@ declare namespace sap {
|
|
|
3031
3054
|
*/
|
|
3032
3055
|
bBasketLinkByResultViewItemSelection?: boolean
|
|
3033
3056
|
): this;
|
|
3057
|
+
/**
|
|
3058
|
+
* Sets a new value for property {@link #getBasketLocation basketLocation}.
|
|
3059
|
+
*
|
|
3060
|
+
* Location of the basket. When creating your own basket (see function 'createAndRegisterBasket'), set this
|
|
3061
|
+
* property to "CustomBasketLocation". By default the basket is a panel at the right of the result view.
|
|
3062
|
+
*
|
|
3063
|
+
* Values: - "SidePanelRight" (default): basket is a panel at the right of the result view - "CustomBasketLocation":
|
|
3064
|
+
* basket is created by function 'createAndRegisterBasket' and can be placed anywhere in the UI
|
|
3065
|
+
*
|
|
3066
|
+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3067
|
+
*
|
|
3068
|
+
* Default value is `"SidePanelRight"`.
|
|
3069
|
+
*
|
|
3070
|
+
* @since 1.145.0
|
|
3071
|
+
*
|
|
3072
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
3073
|
+
*/
|
|
3074
|
+
setBasketLocation(
|
|
3075
|
+
/**
|
|
3076
|
+
* New value for property `basketLocation`
|
|
3077
|
+
*/
|
|
3078
|
+
sBasketLocation?: string
|
|
3079
|
+
): this;
|
|
3034
3080
|
/**
|
|
3035
3081
|
* Sets a new value for property {@link #getBasketPanelResizable basketPanelResizable}.
|
|
3036
3082
|
*
|
|
@@ -3130,7 +3176,11 @@ declare namespace sap {
|
|
|
3130
3176
|
/**
|
|
3131
3177
|
* Sets a new value for property {@link #getCustomBasket customBasket}.
|
|
3132
3178
|
*
|
|
3133
|
-
* Define your own
|
|
3179
|
+
* Define your own view for the basket. The basket is displayed on a panel at the right/end of result views
|
|
3180
|
+
* (by default, details see 'basketLocation'). There is buttons to show/hide it and add items to the basket
|
|
3181
|
+
* (see config properties 'basketShowHideButton' and 'basketAddButton'). For the basket items collection,
|
|
3182
|
+
* we recommend to use function 'createAndRegisterBasket' to create a table/list, so the selection (incl.
|
|
3183
|
+
* 'add to basket') of result views with table/list is managed by SearchCompositeControl.
|
|
3134
3184
|
*
|
|
3135
3185
|
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3136
3186
|
*
|
|
@@ -3988,24 +4038,6 @@ declare namespace sap {
|
|
|
3988
4038
|
*/
|
|
3989
4039
|
iSearchTermLengthLimit?: int
|
|
3990
4040
|
): this;
|
|
3991
|
-
/**
|
|
3992
|
-
* Sets a new value for property {@link #getSelectionChange selectionChange}.
|
|
3993
|
-
*
|
|
3994
|
-
* A callback which is called whenever the selection of result view items changes.
|
|
3995
|
-
*
|
|
3996
|
-
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
|
|
3997
|
-
*
|
|
3998
|
-
* @since 1.113.0
|
|
3999
|
-
* @deprecated As of version 1.137.0. this setting is ignored, subscribe to event 'selectionChanged'.
|
|
4000
|
-
*
|
|
4001
|
-
* @returns Reference to `this` in order to allow method chaining
|
|
4002
|
-
*/
|
|
4003
|
-
setSelectionChange(
|
|
4004
|
-
/**
|
|
4005
|
-
* New value for property `selectionChange`
|
|
4006
|
-
*/
|
|
4007
|
-
fnSelectionChange: Function
|
|
4008
|
-
): this;
|
|
4009
4041
|
/**
|
|
4010
4042
|
* Sets a new value for property {@link #getShowSelectionToggleButton showSelectionToggleButton}.
|
|
4011
4043
|
*
|
|
@@ -4159,8 +4191,6 @@ declare namespace sap {
|
|
|
4159
4191
|
|
|
4160
4192
|
"sap/esh/search/ui/controls/basket/SearchBasketAddButton": undefined;
|
|
4161
4193
|
|
|
4162
|
-
"sap/esh/search/ui/controls/basket/SearchBasketBase": undefined;
|
|
4163
|
-
|
|
4164
4194
|
"sap/esh/search/ui/controls/resultview/SearchShowDetailButton": undefined;
|
|
4165
4195
|
|
|
4166
4196
|
"sap/esh/search/ui/controls/resultview/SearchText": undefined;
|
package/types/sap.f.d.ts
CHANGED
package/types/sap.fe.ariba.d.ts
CHANGED
package/types/sap.fe.base.d.ts
CHANGED
|
@@ -1,31 +1,303 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.145.0
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
declare namespace sap {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
namespace fe {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Library providing the base functionality of the runtime for SAP Fiori elements for OData V4.
|
|
13
|
+
*/
|
|
14
|
+
namespace base {
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
namespace BindingToolkit {
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A binding expression that evaluates to type T.
|
|
27
|
+
*
|
|
28
|
+
* @experimental As of version 1.145.0.
|
|
29
|
+
*/
|
|
30
|
+
type BindingToolkitExpression = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
namespace ClassSupport {
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Represents the state object of a building block.
|
|
44
|
+
*
|
|
45
|
+
* @experimental As of version 1.145.0.
|
|
46
|
+
*/
|
|
47
|
+
type BindingInfoHolder = {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Represents the state object of a building block.
|
|
52
|
+
*
|
|
53
|
+
* @experimental As of version 1.145.0.
|
|
54
|
+
*/
|
|
55
|
+
type ExtendWithObject = {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Returns the properties of a control.
|
|
60
|
+
*
|
|
61
|
+
* @experimental As of version 1.145.0.
|
|
62
|
+
*/
|
|
63
|
+
type PropertiesOf = {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Represents the state object of a building block.
|
|
68
|
+
*
|
|
69
|
+
* @experimental As of version 1.145.0.
|
|
70
|
+
*/
|
|
71
|
+
type StateOf = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Definition of a UI5 aggregation metadata.
|
|
76
|
+
*
|
|
77
|
+
* @experimental As of version 1.145.0.
|
|
78
|
+
*/
|
|
79
|
+
type UI5AggregationMetadata = {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Definition of a UI5 association metadata.
|
|
84
|
+
*
|
|
85
|
+
* @experimental As of version 1.145.0.
|
|
86
|
+
*/
|
|
87
|
+
type UI5AssociationMetadata = {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Definition of a UI5 property metadata.
|
|
92
|
+
*
|
|
93
|
+
* @experimental As of version 1.145.0.
|
|
94
|
+
*/
|
|
95
|
+
type UI5PropertyMetadata = {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Describes the settings that can be provided to the BuildingBlockBase constructor.
|
|
101
|
+
*/
|
|
102
|
+
interface $BuildingBlockBaseSettings extends sap.ui.core.$ControlSettings {
|
|
103
|
+
/**
|
|
104
|
+
* The current state value of the component.
|
|
105
|
+
* This property holds the state data managed by the component, with the type
|
|
106
|
+
* determined by the generic parameter K.
|
|
107
|
+
*/
|
|
108
|
+
state? : /* was: sap.fe.base.ClassSupport.StateOf */ any | sap.ui.base.ManagedObject.PropertyBindingInfo | `{${string}}`
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Optional content of generic type T.
|
|
112
|
+
* This property holds the main data or payload for the containing object.
|
|
113
|
+
* When undefined, it indicates that no content has been set or is available.
|
|
114
|
+
* The specific type and structure of the content depends on the generic type parameter T.
|
|
115
|
+
*/
|
|
116
|
+
content? : sap.ui.core.Element
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Association to controls / IDs that label this control (see WAI-ARIA attribute aria-labelledby).
|
|
120
|
+
*/
|
|
121
|
+
ariaLabelledBy? : sap.ui.core.Control | string
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Collection of functions to support the manipulation of UI5 bindings
|
|
128
|
+
*
|
|
129
|
+
* @experimental As of version 1.145.0.
|
|
130
|
+
*/
|
|
131
|
+
interface BindingToolkit {
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Collection of decorators to support the creation of UI5 classes.
|
|
138
|
+
*/
|
|
139
|
+
interface ClassSupport {
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Defines and configures the following aggregation in the control metadata.
|
|
143
|
+
*
|
|
144
|
+
* @experimental As of version 1.145.0.
|
|
145
|
+
*
|
|
146
|
+
* @returns The decorated property.
|
|
147
|
+
*/
|
|
148
|
+
aggregation(
|
|
149
|
+
/**
|
|
150
|
+
* The aggregation definition
|
|
151
|
+
*/
|
|
152
|
+
aggregationDefinition: sap.fe.base.ClassSupport.UI5AggregationMetadata
|
|
153
|
+
): PropertyDecorator
|
|
154
|
+
/**
|
|
155
|
+
* Defines and configures the following association in the control metadata.
|
|
156
|
+
*
|
|
157
|
+
* @experimental As of version 1.145.0.
|
|
158
|
+
*
|
|
159
|
+
* @returns The decorated property
|
|
160
|
+
*/
|
|
161
|
+
association(
|
|
162
|
+
/**
|
|
163
|
+
* The definition of the association.
|
|
164
|
+
*/
|
|
165
|
+
ui5AssociationMetadata: sap.fe.base.ClassSupport.UI5AssociationMetadata
|
|
166
|
+
): PropertyDecorator
|
|
167
|
+
/**
|
|
168
|
+
* Allows to define a property that holds the control state.
|
|
169
|
+
* Properties defined with this decorator are automatically bound to the control state when used in JSX.
|
|
170
|
+
* Arrays need to be bound using the `bindState` function.
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* @experimental As of version 1.145.0.
|
|
174
|
+
*
|
|
175
|
+
* @returns A property decorator
|
|
176
|
+
*/
|
|
177
|
+
defineState(
|
|
178
|
+
|
|
179
|
+
): PropertyDecorator
|
|
180
|
+
/**
|
|
181
|
+
* Indicates that the following class should define a UI5 control of the specified name.
|
|
182
|
+
*
|
|
183
|
+
* @experimental As of version 1.145.0.
|
|
184
|
+
*
|
|
185
|
+
* @returns A class decorator that creates a UI5 class out of the TS class
|
|
186
|
+
*/
|
|
187
|
+
defineUI5Class(
|
|
188
|
+
/**
|
|
189
|
+
* The fully qualified name of the UI5 class
|
|
190
|
+
*/
|
|
191
|
+
target: string,
|
|
192
|
+
/**
|
|
193
|
+
* Additional inline metadata definition
|
|
194
|
+
*/
|
|
195
|
+
metadataDefinition?: Partial</* was: sap.fe.base.ClassSupport.UI5ControlMetadataDefinition */ any>
|
|
196
|
+
): ClassDecorator
|
|
197
|
+
/**
|
|
198
|
+
* Indicates that the property is declared as an event on the control metadata.
|
|
199
|
+
*
|
|
200
|
+
* @experimental As of version 1.145.0.
|
|
201
|
+
*
|
|
202
|
+
* @returns The decorated property
|
|
203
|
+
*/
|
|
204
|
+
event(
|
|
205
|
+
|
|
206
|
+
): PropertyDecorator
|
|
207
|
+
/**
|
|
208
|
+
* Defines in the metadata that this control implements a specific interface.
|
|
209
|
+
*
|
|
210
|
+
* @experimental As of version 1.144.0.
|
|
211
|
+
*
|
|
212
|
+
* @returns The decorated method
|
|
213
|
+
*/
|
|
214
|
+
implementInterface(
|
|
215
|
+
/**
|
|
216
|
+
* The name of the implemented interface
|
|
217
|
+
*/
|
|
218
|
+
interfaceName: string
|
|
219
|
+
): PropertyDecorator
|
|
220
|
+
/**
|
|
221
|
+
* Defines the following property as a managed object in the control metadata.
|
|
222
|
+
*
|
|
223
|
+
* @experimental As of version 1.145.0.
|
|
224
|
+
*
|
|
225
|
+
* @returns The decorated property.
|
|
226
|
+
*/
|
|
227
|
+
property(
|
|
228
|
+
/**
|
|
229
|
+
* The property definition
|
|
230
|
+
*/
|
|
231
|
+
attributeDefinition: sap.fe.base.ClassSupport.UI5PropertyMetadata
|
|
232
|
+
): PropertyDecorator
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Base class for building blocks.
|
|
237
|
+
* This contains the low-level functionality of having a content aggregation and handling the rendering
|
|
238
|
+
* of the content without an actual DOM element.
|
|
239
|
+
*
|
|
240
|
+
* The building block also defines a state object that can be used to store the state of the building block.
|
|
241
|
+
*
|
|
242
|
+
* Accessibility and classes information are forwarded to the content control.
|
|
243
|
+
*
|
|
244
|
+
* This class is not meant to be used directly, it's there for internal use only (and documentation)
|
|
245
|
+
*/
|
|
246
|
+
class BuildingBlockBase extends sap.ui.core.Control {
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Shorthand for the BindingToolkit.bindState function with the current state object.
|
|
251
|
+
*
|
|
252
|
+
* @experimental As of version 1.145.0.
|
|
253
|
+
*
|
|
254
|
+
* @returns The binding toolkit expression for the state
|
|
255
|
+
*/
|
|
256
|
+
bindState(
|
|
257
|
+
/**
|
|
258
|
+
* A property in the state object
|
|
259
|
+
*/
|
|
260
|
+
path:
|
|
261
|
+
): /* was: sap.fe.base.BindingToolkit.BindingToolkitExpression */ any
|
|
262
|
+
/**
|
|
263
|
+
* Framework hook for state change handling.
|
|
264
|
+
* Subclasses can override this method to react to state changes.
|
|
265
|
+
*
|
|
266
|
+
* @experimental As of version 1.145.0.
|
|
267
|
+
*/
|
|
268
|
+
onStateChange(
|
|
269
|
+
/**
|
|
270
|
+
* List of changed property names
|
|
271
|
+
*/
|
|
272
|
+
_changedProps: string[]
|
|
273
|
+
): void
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
interface IUI5DefineDependencyNames {
|
|
285
|
+
|
|
286
|
+
"sap/fe/base/BindingToolkit" : undefined
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
"sap/fe/base/BuildingBlockBase" : undefined
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
"sap/fe/base/ClassSupport" : undefined
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
"sap/fe/base/library" : undefined
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
31
303
|
}
|