@openui5/ts-types-esm 1.146.0 → 1.147.1

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,164 +0,0 @@
1
- // For Library Version: 1.146.0
2
-
3
- declare module "sap/ui/webc/common/library" {}
4
-
5
- declare module "sap/ui/webc/common/WebComponent" {
6
- import {
7
- default as WebComponent1,
8
- MetadataOptions as MetadataOptions1,
9
- $WebComponentSettings as $WebComponentSettings1,
10
- } from "sap/ui/core/webc/WebComponent";
11
-
12
- import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata";
13
-
14
- /**
15
- * Base Class for Web Components. Web Components are agnostic UI elements which can be integrated into the
16
- * UI5 programming model by using this wrapper control. This wrapper control takes care to propagate the
17
- * properties, the aggregations and the events. It also ensures to render the control and put the aggregated
18
- * controls in the dedicated slots of the Web Component.
19
- *
20
- * @since 1.92.0
21
- * @deprecated As of version 1.118.0. Use sap.ui.core.webc.WebComponent instead!
22
- * @experimental As of version 1.92.0. The API might change. It is not intended for productive usage yet!
23
- */
24
- export default class WebComponent extends WebComponent1 {
25
- /**
26
- * Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
27
- */
28
- constructor(
29
- /**
30
- * Object with initial settings for the new control
31
- */
32
- mSettings?: $WebComponentSettings
33
- );
34
- /**
35
- * Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
36
- */
37
- constructor(
38
- /**
39
- * Optional ID for the new control; generated automatically if no non-empty ID is given Note: this can be
40
- * omitted, no matter whether `mSettings` will be given or not!
41
- */
42
- sId?: string,
43
- /**
44
- * Object with initial settings for the new control
45
- */
46
- mSettings?: $WebComponentSettings
47
- );
48
-
49
- /**
50
- * Defines a new subclass of WebComponent with the name `sClassName` and enriches it with the information
51
- * contained in `oClassInfo`.
52
- *
53
- * `oClassInfo` can contain the same information that {@link sap.ui.base.ManagedObject.extend} already accepts,
54
- * plus the `dnd` property in the metadata object literal to configure drag-and-drop behavior (see {@link sap.ui.core.webc.WebComponent.MetadataOptions MetadataOptions }
55
- * for details). Objects describing aggregations can also have a `dnd` property when used for a class extending
56
- * `WebComponent` (see {@link sap.ui.base.ManagedObject.MetadataOptions.AggregationDnD AggregationDnD}).
57
- *
58
- * Example:
59
- * ```javascript
60
- *
61
- * WebComponent.extend('sap.mylib.MyElement', {
62
- * metadata : {
63
- * library : 'sap.mylib',
64
- * tag : 'my-webcomponent',
65
- * properties : {
66
- * value : 'string',
67
- * width : {
68
- * type: 'sap.ui.core.CSSSize',
69
- * mapping: 'style'
70
- * }
71
- * },
72
- * defaultAggregation: "content",
73
- * aggregations : {
74
- * content : {
75
- * type: 'sap.ui.core.Control',
76
- * multiple : true
77
- * },
78
- * header : {
79
- * type : 'sap.ui.core.Control',
80
- * multiple : false,
81
- * slot: 'header'
82
- * }
83
- * }
84
- * }
85
- * });
86
- * ```
87
- *
88
- *
89
- *
90
- * @returns Created class / constructor function
91
- */
92
- static extend<T extends Record<string, unknown>>(
93
- /**
94
- * Name of the class to be created
95
- */
96
- sClassName: string,
97
- /**
98
- * Object literal with information about the class
99
- */
100
- oClassInfo?: sap.ClassInfo<T, WebComponent>,
101
- /**
102
- * Constructor function for the metadata object. If not given, it defaults to `sap.ui.core.ElementMetadata`.
103
- */
104
- FNMetaImpl?: Function
105
- ): Function;
106
- /**
107
- * Returns a metadata object for class sap.ui.webc.common.WebComponent.
108
- *
109
- *
110
- * @returns Metadata object describing this class
111
- */
112
- static getMetadata(): WebComponentMetadata;
113
- }
114
- /**
115
- * The structure of the "metadata" object which is passed when inheriting from sap.ui.core.Element using
116
- * its static "extend" method. See {@link sap.ui.core.Element.extend} for details on its usage.
117
- *
118
- * @deprecated As of version 1.118.0. because it is part of the deprecated package sap.ui.webc.common.WebComponent
119
- */
120
- export type MetadataOptions = MetadataOptions1;
121
-
122
- /**
123
- * Describes the settings that can be provided to the WebComponent constructor.
124
- *
125
- * @deprecated As of version 1.118.0. Use sap.ui.core.webc.WebComponent instead!
126
- * @experimental As of version 1.92.0. The API might change. It is not intended for productive usage yet!
127
- */
128
- export interface $WebComponentSettings extends $WebComponentSettings1 {}
129
- }
130
-
131
- declare module "sap/ui/webc/common/WebComponentMetadata" {
132
- import WebComponentMetadata1 from "sap/ui/core/webc/WebComponentMetadata";
133
-
134
- /**
135
- * @since 1.92.0
136
- * @deprecated As of version 1.118.0. Use sap.ui.core.webc.WebComponentMetadata instead!
137
- * @experimental As of version 1.92.0. The API might change. It is not intended for productive usage yet!
138
- */
139
- export default class WebComponentMetadata extends WebComponentMetadata1 {
140
- /**
141
- * Creates a new metadata object for a WebComponent Wrapper subclass.
142
- */
143
- constructor(
144
- /**
145
- * fully qualified name of the class that is described by this metadata object
146
- */
147
- sClassName: string,
148
- /**
149
- * static info to construct the metadata from
150
- */
151
- oClassInfo: object
152
- );
153
- }
154
- }
155
-
156
- declare namespace sap {
157
- interface IUI5DefineDependencyNames {
158
- "sap/ui/webc/common/library": undefined;
159
-
160
- "sap/ui/webc/common/WebComponent": undefined;
161
-
162
- "sap/ui/webc/common/WebComponentMetadata": undefined;
163
- }
164
- }