@covalent/core 10.4.0-beta.2 → 11.0.0-beta.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.
- package/breadcrumbs/index.d.ts +82 -3
- package/common/index.d.ts +388 -3
- package/dialogs/index.d.ts +263 -3
- package/dynamic-menu/index.d.ts +63 -3
- package/fesm2022/covalent-core-breadcrumbs.mjs +1 -1
- package/fesm2022/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/covalent-core-common.mjs +2 -2
- package/fesm2022/covalent-core-common.mjs.map +1 -1
- package/fesm2022/covalent-core-dialogs.mjs +3 -5
- package/fesm2022/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2022/covalent-core-dynamic-menu.mjs +4 -6
- package/fesm2022/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2022/covalent-core-file.mjs +2 -2
- package/fesm2022/covalent-core-file.mjs.map +1 -1
- package/fesm2022/covalent-core-json-formatter.mjs +2 -2
- package/fesm2022/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2022/covalent-core-layout.mjs +1 -1
- package/fesm2022/covalent-core-layout.mjs.map +1 -1
- package/fesm2022/covalent-core-loading.mjs.map +1 -1
- package/fesm2022/covalent-core-menu.mjs.map +1 -1
- package/fesm2022/covalent-core-message.mjs +2 -2
- package/fesm2022/covalent-core-message.mjs.map +1 -1
- package/fesm2022/covalent-core-search.mjs +3 -3
- package/fesm2022/covalent-core-search.mjs.map +1 -1
- package/fesm2022/covalent-core-side-sheet.mjs +7 -5
- package/fesm2022/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2022/covalent-core-user-profile.mjs +5 -4
- package/fesm2022/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2022/covalent-core.mjs.map +1 -1
- package/file/index.d.ts +282 -3
- package/index.d.ts +2 -5
- package/json-formatter/index.d.ts +89 -3
- package/layout/index.d.ts +555 -3
- package/loading/index.d.ts +341 -3
- package/menu/index.d.ts +16 -3
- package/message/index.d.ts +112 -3
- package/package.json +13 -13
- package/search/index.d.ts +181 -3
- package/side-sheet/index.d.ts +264 -3
- package/theming/_all-theme.scss +10 -1
- package/theming/_teradata-theme.scss +7 -7
- package/theming/prebuilt/all-theme-dark.css +1 -1
- package/theming/prebuilt/all-theme-dark.css.map +1 -1
- package/theming/prebuilt/all-theme-light.css +1 -1
- package/theming/prebuilt/all-theme-light.css.map +1 -1
- package/theming/prebuilt/blue-grey-deep-orange.css +1 -1
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +1 -1
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +1 -1
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +1 -1
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +1 -1
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/user-profile/index.d.ts +26 -3
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +0 -37
- package/breadcrumbs/breadcrumbs.component.d.ts +0 -36
- package/breadcrumbs/breadcrumbs.module.d.ts +0 -12
- package/breadcrumbs/public_api.d.ts +0 -3
- package/common/animations/bounce/bounce.animation.d.ts +0 -14
- package/common/animations/collapse/collapse.animation.d.ts +0 -20
- package/common/animations/common/interfaces.d.ts +0 -5
- package/common/animations/fade/fadeInOut.animation.d.ts +0 -20
- package/common/animations/flash/flash.animation.d.ts +0 -14
- package/common/animations/headshake/headshake.animation.d.ts +0 -14
- package/common/animations/jello/jello.animation.d.ts +0 -14
- package/common/animations/pulse/pulse.animation.d.ts +0 -14
- package/common/animations/rotate/rotate.animation.d.ts +0 -21
- package/common/behaviors/control-value-accesor.mixin.d.ts +0 -16
- package/common/behaviors/disable-ripple.mixin.d.ts +0 -9
- package/common/behaviors/disabled.mixin.d.ts +0 -9
- package/common/common.module.d.ts +0 -21
- package/common/directives/fullscreen/fullscreen.directive.d.ts +0 -25
- package/common/directives/web-components/form-control.directive.d.ts +0 -21
- package/common/forms/auto-trim/auto-trim.directive.d.ts +0 -12
- package/common/forms/validators/validators.d.ts +0 -8
- package/common/functions/clipboard.d.ts +0 -9
- package/common/functions/convert.d.ts +0 -31
- package/common/functions/download.d.ts +0 -48
- package/common/functions/file.d.ts +0 -7
- package/common/pipes/bytes/bytes.pipe.d.ts +0 -7
- package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +0 -7
- package/common/pipes/digits/digits.pipe.d.ts +0 -10
- package/common/pipes/time-ago/time-ago.pipe.d.ts +0 -7
- package/common/pipes/time-difference/time-difference.pipe.d.ts +0 -7
- package/common/pipes/time-until/time-until.pipe.d.ts +0 -7
- package/common/pipes/truncate/truncate.pipe.d.ts +0 -7
- package/common/public_api.d.ts +0 -39
- package/common/services/icon.service.d.ts +0 -8
- package/common/services/router-path.service.d.ts +0 -10
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +0 -12
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +0 -15
- package/dialogs/dialog.component.d.ts +0 -27
- package/dialogs/dialogs.module.d.ts +0 -16
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +0 -24
- package/dialogs/public_api.d.ts +0 -9
- package/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.d.ts +0 -21
- package/dialogs/services/dialog.service.d.ts +0 -127
- package/dialogs/status-dialog/status-dialog.component.d.ts +0 -23
- package/dialogs/window-dialog/window-dialog.component.d.ts +0 -16
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +0 -12
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +0 -10
- package/dynamic-menu/dynamic-menu.component.d.ts +0 -11
- package/dynamic-menu/dynamic-menu.menu.d.ts +0 -22
- package/dynamic-menu/dynamic-menu.module.d.ts +0 -13
- package/dynamic-menu/public_api.d.ts +0 -5
- package/file/directives/file-drop.directive.d.ts +0 -50
- package/file/directives/file-select.directive.d.ts +0 -33
- package/file/file-input/file-input.component.d.ts +0 -67
- package/file/file-upload/file-upload.component.d.ts +0 -91
- package/file/file.module.d.ts +0 -14
- package/file/public_api.d.ts +0 -6
- package/file/services/file.service.d.ts +0 -34
- package/json-formatter/collapse.animation.d.ts +0 -24
- package/json-formatter/json-formatter.component.d.ts +0 -78
- package/json-formatter/json-formatter.module.d.ts +0 -11
- package/json-formatter/public_api.d.ts +0 -2
- package/layout/layout-card-over/layout-card-over.component.d.ts +0 -31
- package/layout/layout-footer/layout-footer.component.d.ts +0 -17
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +0 -66
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +0 -25
- package/layout/layout-nav/layout-nav.component.d.ts +0 -45
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +0 -104
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +0 -25
- package/layout/layout-toggle.class.d.ts +0 -40
- package/layout/layout.component.d.ts +0 -66
- package/layout/layout.directives.d.ts +0 -25
- package/layout/layout.module.d.ts +0 -20
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +0 -120
- package/layout/public_api.d.ts +0 -12
- package/loading/directives/loading.directive.d.ts +0 -70
- package/loading/loading.component.d.ts +0 -90
- package/loading/loading.module.d.ts +0 -8
- package/loading/public_api.d.ts +0 -5
- package/loading/services/loading.factory.d.ts +0 -69
- package/loading/services/loading.service.d.ts +0 -118
- package/menu/menu.component.d.ts +0 -5
- package/menu/menu.module.d.ts +0 -11
- package/menu/public_api.d.ts +0 -2
- package/message/collapse.animation.d.ts +0 -24
- package/message/message.component.d.ts +0 -101
- package/message/message.module.d.ts +0 -11
- package/message/public_api.d.ts +0 -2
- package/public_api.d.ts +0 -1
- package/search/public_api.d.ts +0 -3
- package/search/search-box/search-box.component.d.ts +0 -88
- package/search/search-input/search-input.component.d.ts +0 -84
- package/search/search.module.d.ts +0 -12
- package/side-sheet/public_api.d.ts +0 -5
- package/side-sheet/side-sheet-container.d.ts +0 -110
- package/side-sheet/side-sheet-ref.d.ts +0 -12
- package/side-sheet/side-sheet.animation.d.ts +0 -4
- package/side-sheet/side-sheet.config.d.ts +0 -9
- package/side-sheet/side-sheet.content-directives.d.ts +0 -67
- package/side-sheet/side-sheet.d.ts +0 -66
- package/side-sheet/side-sheet.module.d.ts +0 -12
- package/user-profile/public_api.d.ts +0 -3
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +0 -8
- package/user-profile/user-profile.component.d.ts +0 -7
- package/user-profile/user-profile.module.d.ts +0 -11
package/loading/index.d.ts
CHANGED
@@ -1,5 +1,343 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { DoCheck, ElementRef, ChangeDetectorRef, ComponentFactoryResolver, Injector, ComponentRef, ViewContainerRef, TemplateRef, Provider, OnInit, OnDestroy } from '@angular/core';
|
3
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
4
|
+
import { Overlay } from '@angular/cdk/overlay';
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
6
|
+
|
7
|
+
declare enum LoadingType {
|
8
|
+
Circular = "circular",
|
9
|
+
Linear = "linear"
|
10
|
+
}
|
11
|
+
declare enum LoadingMode {
|
12
|
+
Determinate = "determinate",
|
13
|
+
Indeterminate = "indeterminate"
|
14
|
+
}
|
15
|
+
declare enum LoadingStrategy {
|
16
|
+
Overlay = "overlay",
|
17
|
+
Replace = "replace"
|
18
|
+
}
|
19
|
+
declare enum LoadingStyle {
|
20
|
+
FullScreen = "fullscreen",
|
21
|
+
Overlay = "overlay",
|
22
|
+
None = "none"
|
23
|
+
}
|
24
|
+
declare const TD_CIRCLE_DIAMETER = 40;
|
25
|
+
declare class TdLoadingComponent implements DoCheck {
|
26
|
+
private _elementRef;
|
27
|
+
private _changeDetectorRef;
|
28
|
+
private _mode;
|
29
|
+
private _defaultMode;
|
30
|
+
private _value;
|
31
|
+
private _circleDiameter;
|
32
|
+
/**
|
33
|
+
* Flag for animation
|
34
|
+
*/
|
35
|
+
animation: boolean;
|
36
|
+
/**
|
37
|
+
* Content injected into loading component.
|
38
|
+
*/
|
39
|
+
content: TemplatePortal<any>;
|
40
|
+
/**
|
41
|
+
* Sets mode of [TdLoadingComponent] to LoadingMode.Determinate or LoadingMode.Indeterminate
|
42
|
+
*/
|
43
|
+
set mode(mode: LoadingMode);
|
44
|
+
get mode(): LoadingMode;
|
45
|
+
/**
|
46
|
+
* Sets value of [TdLoadingComponent] if mode is 'LoadingMode.Determinate'
|
47
|
+
*/
|
48
|
+
set value(value: number);
|
49
|
+
get value(): number;
|
50
|
+
style: LoadingStyle;
|
51
|
+
/**
|
52
|
+
* height: number
|
53
|
+
* Sets height of [TdLoadingComponent].
|
54
|
+
*/
|
55
|
+
height: number;
|
56
|
+
/**
|
57
|
+
* type: LoadingType
|
58
|
+
* Sets type of [TdLoadingComponent] rendered.
|
59
|
+
*/
|
60
|
+
type: LoadingType;
|
61
|
+
/**
|
62
|
+
* color: primary' | 'accent' | 'warn'
|
63
|
+
* Sets theme color of [TdLoadingComponent] rendered.
|
64
|
+
*/
|
65
|
+
color: 'primary' | 'accent' | 'warn';
|
66
|
+
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
67
|
+
ngDoCheck(): void;
|
68
|
+
getHeight(): string | undefined;
|
69
|
+
getCircleDiameter(): number;
|
70
|
+
getCircleStrokeWidth(): number;
|
71
|
+
isCircular(): boolean;
|
72
|
+
isLinear(): boolean;
|
73
|
+
isFullScreen(): boolean;
|
74
|
+
isOverlay(): boolean;
|
75
|
+
/**
|
76
|
+
* Starts in animation and returns an observable for completition event.
|
77
|
+
*/
|
78
|
+
show(): void;
|
79
|
+
/**
|
80
|
+
* Starts out animation and returns an observable for completition event.
|
81
|
+
*/
|
82
|
+
hide(): void;
|
83
|
+
/**
|
84
|
+
* Calculate the proper diameter for the circle and set it
|
85
|
+
*/
|
86
|
+
private _setCircleDiameter;
|
87
|
+
/**
|
88
|
+
* Returns the host height of the loading component
|
89
|
+
*/
|
90
|
+
private _hostHeight;
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingComponent, never>;
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLoadingComponent, "td-loading", never, {}, {}, never, never, true, never>;
|
93
|
+
}
|
94
|
+
|
95
|
+
interface IInternalLoadingOptions extends ITdLoadingConfig {
|
96
|
+
height?: number;
|
97
|
+
style?: LoadingStyle;
|
98
|
+
}
|
99
|
+
interface ILoadingRef {
|
100
|
+
observable: Observable<any>;
|
101
|
+
componentRef?: ComponentRef<any>;
|
102
|
+
subject: Subject<any>;
|
103
|
+
times: number;
|
104
|
+
}
|
1
105
|
/**
|
2
|
-
*
|
106
|
+
* NOTE: @internal usage only.
|
3
107
|
*/
|
4
|
-
|
5
|
-
|
108
|
+
declare class TdLoadingFactory {
|
109
|
+
private _componentFactoryResolver;
|
110
|
+
private _overlay;
|
111
|
+
private _injector;
|
112
|
+
constructor(_componentFactoryResolver: ComponentFactoryResolver, _overlay: Overlay, _injector: Injector);
|
113
|
+
/**
|
114
|
+
* Uses material `Overlay` services to create a DOM element and attach the loading component
|
115
|
+
* into it. Leveraging the state and configuration from it.
|
116
|
+
*
|
117
|
+
* Saves a reference in context to be called when registering/resolving the loading element.
|
118
|
+
*/
|
119
|
+
createFullScreenComponent(options: ITdLoadingConfig): ILoadingRef;
|
120
|
+
/**
|
121
|
+
* Creates a loading component dynamically and attaches it into the given viewContainerRef.
|
122
|
+
* Leverages TemplatePortals from material to inject the template inside of it so it fits
|
123
|
+
* perfectly when overlaying it.
|
124
|
+
*
|
125
|
+
* Saves a reference in context to be called when registering/resolving the loading element.
|
126
|
+
*/
|
127
|
+
createOverlayComponent(options: ITdLoadingConfig, viewContainerRef: ViewContainerRef, templateRef: TemplateRef<object>): ILoadingRef;
|
128
|
+
/**
|
129
|
+
* Creates a loading component dynamically and attaches it into the given viewContainerRef.
|
130
|
+
* Replaces the template with the loading component depending if it was registered or resolved.
|
131
|
+
*
|
132
|
+
* Saves a reference in context to be called when registering/resolving the loading element.
|
133
|
+
*/
|
134
|
+
createReplaceComponent(options: ITdLoadingConfig, viewContainerRef: ViewContainerRef, templateRef: TemplateRef<object>, context: TdLoadingContext): ILoadingRef;
|
135
|
+
/**
|
136
|
+
* Creates a fullscreen overlay for the loading usage.
|
137
|
+
*/
|
138
|
+
private _createOverlay;
|
139
|
+
/**
|
140
|
+
* Creates a generic component dynamically waiting to be attached to a viewContainerRef.
|
141
|
+
*/
|
142
|
+
private _createComponent;
|
143
|
+
/**
|
144
|
+
* Initialize context for loading component.
|
145
|
+
*/
|
146
|
+
private _initializeContext;
|
147
|
+
/**
|
148
|
+
* Maps configuration to the loading component instance.
|
149
|
+
*/
|
150
|
+
private _mapOptions;
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingFactory, never>;
|
152
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TdLoadingFactory>;
|
153
|
+
}
|
154
|
+
declare function LOADING_FACTORY_PROVIDER_FACTORY(parent: TdLoadingFactory, componentFactoryResolver: ComponentFactoryResolver, overlay: Overlay, injector: Injector): TdLoadingFactory;
|
155
|
+
declare const LOADING_FACTORY_PROVIDER: Provider;
|
156
|
+
|
157
|
+
interface ITdLoadingConfig {
|
158
|
+
name: string;
|
159
|
+
type?: LoadingType;
|
160
|
+
mode?: LoadingMode;
|
161
|
+
color?: 'primary' | 'accent' | 'warn';
|
162
|
+
}
|
163
|
+
declare class TdLoadingConfig implements ITdLoadingConfig {
|
164
|
+
name: string;
|
165
|
+
type?: LoadingType;
|
166
|
+
mode?: LoadingMode;
|
167
|
+
color?: 'primary' | 'accent' | 'warn';
|
168
|
+
constructor(config: ITdLoadingConfig);
|
169
|
+
}
|
170
|
+
interface ITdLoadingDirectiveConfig extends ITdLoadingConfig {
|
171
|
+
strategy?: LoadingStrategy;
|
172
|
+
}
|
173
|
+
declare class TdLoadingDirectiveConfig extends TdLoadingConfig implements ITdLoadingDirectiveConfig {
|
174
|
+
strategy: LoadingStrategy;
|
175
|
+
constructor(config: ITdLoadingDirectiveConfig);
|
176
|
+
}
|
177
|
+
declare class TdLoadingService {
|
178
|
+
private _loadingFactory;
|
179
|
+
private _context;
|
180
|
+
private _timeouts;
|
181
|
+
constructor(_loadingFactory: TdLoadingFactory);
|
182
|
+
/**
|
183
|
+
* params:
|
184
|
+
* - config: ILoadingDirectiveConfig
|
185
|
+
* - viewContainerRef: ViewContainerRef
|
186
|
+
* - templateRef: TemplateRef<Object>
|
187
|
+
*
|
188
|
+
* Creates an replace loading mask and attaches it to the viewContainerRef.
|
189
|
+
* Replaces the templateRef with the mask when a request is registered on it.
|
190
|
+
*
|
191
|
+
* NOTE: @internal usage only.
|
192
|
+
*/
|
193
|
+
createComponent(config: ITdLoadingDirectiveConfig, viewContainerRef: ViewContainerRef, templateRef: TemplateRef<object>, context: TdLoadingContext): ILoadingRef;
|
194
|
+
/**
|
195
|
+
* params:
|
196
|
+
* - config: ITdLoadingConfig
|
197
|
+
*
|
198
|
+
* Creates a fullscreen loading mask and attaches it to the DOM with the given configuration.
|
199
|
+
* Only displayed when the mask has a request registered on it.
|
200
|
+
*/
|
201
|
+
create(config: ITdLoadingConfig): void;
|
202
|
+
/**
|
203
|
+
* params:
|
204
|
+
* - name: string
|
205
|
+
*
|
206
|
+
* Removes `loading` component from service context.
|
207
|
+
*/
|
208
|
+
removeComponent(name: string): void;
|
209
|
+
/**
|
210
|
+
* params:
|
211
|
+
* - name: string
|
212
|
+
* - registers?: number
|
213
|
+
* returns: true if successful
|
214
|
+
*
|
215
|
+
* Resolves a request for the loading mask referenced by the name parameter.
|
216
|
+
* Can optionally pass registers argument to set a number of register calls.
|
217
|
+
*
|
218
|
+
* If no paramemeters are used, then default main mask will be used.
|
219
|
+
*
|
220
|
+
* e.g. loadingService.register()
|
221
|
+
*/
|
222
|
+
register(name?: string, registers?: number): boolean;
|
223
|
+
/**
|
224
|
+
* params:
|
225
|
+
* - name: string
|
226
|
+
* - resolves?: number
|
227
|
+
* returns: true if successful
|
228
|
+
*
|
229
|
+
* Resolves a request for the loading mask referenced by the name parameter.
|
230
|
+
* Can optionally pass resolves argument to set a number of resolve calls.
|
231
|
+
*
|
232
|
+
* If no paramemeters are used, then default main mask will be used.
|
233
|
+
*
|
234
|
+
* e.g. loadingService.resolve()
|
235
|
+
*/
|
236
|
+
resolve(name?: string, resolves?: number): boolean;
|
237
|
+
/**
|
238
|
+
* params:
|
239
|
+
* - name: string
|
240
|
+
* returns: true if successful
|
241
|
+
*
|
242
|
+
* Resolves all request for the loading mask referenced by the name parameter.
|
243
|
+
*
|
244
|
+
* If no paramemeters are used, then default main mask will be used.
|
245
|
+
*
|
246
|
+
* e.g. loadingService.resolveAll()
|
247
|
+
*/
|
248
|
+
resolveAll(name?: string): boolean;
|
249
|
+
/**
|
250
|
+
* params:
|
251
|
+
* - name: string
|
252
|
+
* - value: number
|
253
|
+
* returns: true if successful
|
254
|
+
*
|
255
|
+
* Set value on a loading mask referenced by the name parameter.
|
256
|
+
* Usage only available if its mode is 'determinate' and if loading is showing.
|
257
|
+
*/
|
258
|
+
setValue(name: string, value: number): boolean;
|
259
|
+
/**
|
260
|
+
* Clears timeout linked to the name.
|
261
|
+
* @param name Name of the loading component to be cleared
|
262
|
+
*/
|
263
|
+
private _clearTimeout;
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingService, never>;
|
265
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TdLoadingService>;
|
266
|
+
}
|
267
|
+
declare function LOADING_PROVIDER_FACTORY(parent: TdLoadingService, loadingFactory: TdLoadingFactory): TdLoadingService;
|
268
|
+
declare const LOADING_PROVIDER: Provider;
|
269
|
+
|
270
|
+
/**
|
271
|
+
* Context class for variable reference
|
272
|
+
*/
|
273
|
+
declare class TdLoadingContext {
|
274
|
+
$implicit: any;
|
275
|
+
tdLoading: any;
|
276
|
+
}
|
277
|
+
declare class TdLoadingDirective implements OnInit, OnDestroy {
|
278
|
+
private _viewContainerRef;
|
279
|
+
private _templateRef;
|
280
|
+
private _loadingService;
|
281
|
+
private _context;
|
282
|
+
private _loadingRef?;
|
283
|
+
/**
|
284
|
+
* tdLoading: string
|
285
|
+
* Name reference of the loading mask, used to register/resolve requests to the mask.
|
286
|
+
*/
|
287
|
+
name: string;
|
288
|
+
/**
|
289
|
+
* tdLoadingUntil?: any
|
290
|
+
* If its null, undefined or false it will be used to register requests to the mask.
|
291
|
+
* Else if its any value that can be resolved as true, it will resolve the mask.
|
292
|
+
* [name] is optional when using [until], but can still be used to register/resolve it manually.
|
293
|
+
*/
|
294
|
+
set until(until: any);
|
295
|
+
/**
|
296
|
+
* tdLoadingType?: LoadingType or ['linear' | 'circular']
|
297
|
+
* Sets the type of loading mask depending on value.
|
298
|
+
* Defaults to [LoadingType.Circular | 'circular'].
|
299
|
+
*/
|
300
|
+
type: LoadingType;
|
301
|
+
/**
|
302
|
+
* tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']
|
303
|
+
* Sets the mode of loading mask depending on value.
|
304
|
+
* Defaults to [LoadingMode.Indeterminate | 'indeterminate'].
|
305
|
+
*/
|
306
|
+
mode: LoadingMode;
|
307
|
+
/**
|
308
|
+
* tdLoadingStrategy?: LoadingStrategy or ['replace' | 'overlay']
|
309
|
+
* Sets the strategy of loading mask depending on value.
|
310
|
+
* Defaults to [LoadingMode.Replace | 'replace'].
|
311
|
+
*/
|
312
|
+
strategy: LoadingStrategy.Overlay | LoadingStrategy.Replace;
|
313
|
+
/**
|
314
|
+
* tdLoadingColor?: "primary" | "accent" | "warn"
|
315
|
+
* Sets the theme color of the loading component. Defaults to "primary"
|
316
|
+
*/
|
317
|
+
color: 'primary' | 'accent' | 'warn';
|
318
|
+
constructor(_viewContainerRef: ViewContainerRef, _templateRef: TemplateRef<TdLoadingContext>, _loadingService: TdLoadingService);
|
319
|
+
/**
|
320
|
+
* Registers component in the DOM, so it will be available when calling resolve/register.
|
321
|
+
*/
|
322
|
+
ngOnInit(): void;
|
323
|
+
/**
|
324
|
+
* Remove component when directive is destroyed.
|
325
|
+
*/
|
326
|
+
ngOnDestroy(): void;
|
327
|
+
/**
|
328
|
+
* Creates [TdLoadingComponent] and attaches it to this directive's [ViewContainerRef].
|
329
|
+
* Passes this directive's [TemplateRef] to modify DOM depending on loading `strategy`.
|
330
|
+
*/
|
331
|
+
private _registerComponent;
|
332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingDirective, never>;
|
333
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLoadingDirective, "[tdLoading]", never, { "name": { "alias": "tdLoading"; "required": false; }; "until": { "alias": "tdLoadingUntil"; "required": false; }; "type": { "alias": "tdLoadingType"; "required": false; }; "mode": { "alias": "tdLoadingMode"; "required": false; }; "strategy": { "alias": "tdLoadingStrategy"; "required": false; }; "color": { "alias": "tdLoadingColor"; "required": false; }; }, {}, never, never, true, never>;
|
334
|
+
}
|
335
|
+
|
336
|
+
declare class CovalentLoadingModule {
|
337
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentLoadingModule, never>;
|
338
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentLoadingModule, never, [typeof TdLoadingComponent, typeof TdLoadingDirective], [typeof TdLoadingComponent, typeof TdLoadingDirective]>;
|
339
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentLoadingModule>;
|
340
|
+
}
|
341
|
+
|
342
|
+
export { CovalentLoadingModule, LOADING_FACTORY_PROVIDER, LOADING_FACTORY_PROVIDER_FACTORY, LOADING_PROVIDER, LOADING_PROVIDER_FACTORY, LoadingMode, LoadingStrategy, LoadingStyle, LoadingType, TD_CIRCLE_DIAMETER, TdLoadingComponent, TdLoadingConfig, TdLoadingContext, TdLoadingDirective, TdLoadingDirectiveConfig, TdLoadingFactory, TdLoadingService };
|
343
|
+
export type { IInternalLoadingOptions, ILoadingRef, ITdLoadingConfig, ITdLoadingDirectiveConfig };
|
package/menu/index.d.ts
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
|
3
|
+
declare class TdMenuComponent {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdMenuComponent, never>;
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdMenuComponent, "td-menu", never, {}, {}, never, ["[td-menu-header]", "*", "[td-menu-footer]"], true, never>;
|
6
|
+
}
|
7
|
+
|
1
8
|
/**
|
2
|
-
*
|
9
|
+
* @deprecated This module is deprecated and will be removed in future versions.
|
10
|
+
* Please migrate to using standalone components as soon as possible.
|
3
11
|
*/
|
4
|
-
|
5
|
-
|
12
|
+
declare class CovalentMenuModule {
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentMenuModule, never>;
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentMenuModule, never, [typeof TdMenuComponent], [typeof TdMenuComponent]>;
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentMenuModule>;
|
16
|
+
}
|
17
|
+
|
18
|
+
export { CovalentMenuModule, TdMenuComponent };
|
package/message/index.d.ts
CHANGED
@@ -1,5 +1,114 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { AfterViewInit, ViewContainerRef, TemplateRef, Renderer2, ChangeDetectorRef, ElementRef } from '@angular/core';
|
3
|
+
|
4
|
+
declare class TdMessageContainerDirective {
|
5
|
+
viewContainer: ViewContainerRef;
|
6
|
+
constructor(viewContainer: ViewContainerRef);
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdMessageContainerDirective, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdMessageContainerDirective, "[tdMessageContainer]", never, {}, {}, never, never, true, never>;
|
9
|
+
}
|
10
|
+
declare class TdMessageComponent implements AfterViewInit {
|
11
|
+
private _renderer;
|
12
|
+
private _changeDetectorRef;
|
13
|
+
private _elementRef;
|
14
|
+
private _color;
|
15
|
+
private _opened;
|
16
|
+
private _hidden;
|
17
|
+
private _animating;
|
18
|
+
private _initialized;
|
19
|
+
_childElement?: TdMessageContainerDirective;
|
20
|
+
_template: TemplateRef<any>;
|
21
|
+
/**
|
22
|
+
* Binding host to tdCollapse animation
|
23
|
+
*/
|
24
|
+
get collapsedAnimation(): any;
|
25
|
+
/**
|
26
|
+
* Binding host to display style when hidden
|
27
|
+
*/
|
28
|
+
get hidden(): string;
|
29
|
+
/**
|
30
|
+
* label: string
|
31
|
+
*
|
32
|
+
* Sets the label of the message.
|
33
|
+
*/
|
34
|
+
label?: string;
|
35
|
+
/**
|
36
|
+
* sublabel?: string
|
37
|
+
*
|
38
|
+
* Sets the sublabel of the message.
|
39
|
+
*/
|
40
|
+
sublabel?: string;
|
41
|
+
/**
|
42
|
+
* icon?: string
|
43
|
+
*
|
44
|
+
* The icon to be displayed before the title.
|
45
|
+
* Defaults to `info_outline` icon
|
46
|
+
*/
|
47
|
+
icon?: string;
|
48
|
+
/**
|
49
|
+
* color?: primary | accent | warn
|
50
|
+
*
|
51
|
+
* Sets the color of the message.
|
52
|
+
* Can also use any material color: purple | light-blue, etc.
|
53
|
+
*/
|
54
|
+
set color(color: string);
|
55
|
+
get color(): string;
|
56
|
+
/**
|
57
|
+
* opened?: boolean
|
58
|
+
*
|
59
|
+
* Shows or hiddes the message depending on its value.
|
60
|
+
* Defaults to 'true'.
|
61
|
+
*/
|
62
|
+
set opened(opened: boolean);
|
63
|
+
get opened(): boolean;
|
64
|
+
constructor(_renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef);
|
65
|
+
/**
|
66
|
+
* Detach element when close animation is finished to set animating state to false
|
67
|
+
* hidden state to true and detach element from DOM
|
68
|
+
*/
|
69
|
+
animationDoneListener(): void;
|
70
|
+
/**
|
71
|
+
* Initializes the component and attaches the content.
|
72
|
+
*/
|
73
|
+
ngAfterViewInit(): void;
|
74
|
+
/**
|
75
|
+
* Renders the message on screen
|
76
|
+
* Validates if there is an animation currently and if its already opened
|
77
|
+
*/
|
78
|
+
open(): void;
|
79
|
+
/**
|
80
|
+
* Removes the message content from screen.
|
81
|
+
* Validates if there is an animation currently and if its already closed
|
82
|
+
*/
|
83
|
+
close(): void;
|
84
|
+
/**
|
85
|
+
* Toggles between open and close depending on state.
|
86
|
+
*/
|
87
|
+
toggle(): void;
|
88
|
+
/**
|
89
|
+
* Method to set the state before starting an animation
|
90
|
+
*/
|
91
|
+
private _startAnimationState;
|
92
|
+
/**
|
93
|
+
* Method to attach template to DOM
|
94
|
+
*/
|
95
|
+
private _attach;
|
96
|
+
/**
|
97
|
+
* Method to detach template from DOM
|
98
|
+
*/
|
99
|
+
private _detach;
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdMessageComponent, never>;
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdMessageComponent, "td-message", never, { "label": { "alias": "label"; "required": false; }; "sublabel": { "alias": "sublabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, {}, never, ["[td-message-actions]"], true, never>;
|
102
|
+
}
|
103
|
+
|
1
104
|
/**
|
2
|
-
*
|
105
|
+
* @deprecated This module is deprecated and will be removed in future versions.
|
106
|
+
* Please migrate to using standalone components as soon as possible.
|
3
107
|
*/
|
4
|
-
|
5
|
-
|
108
|
+
declare class CovalentMessageModule {
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentMessageModule, never>;
|
110
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentMessageModule, never, [typeof TdMessageComponent, typeof TdMessageContainerDirective], [typeof TdMessageComponent, typeof TdMessageContainerDirective]>;
|
111
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentMessageModule>;
|
112
|
+
}
|
113
|
+
|
114
|
+
export { CovalentMessageModule, TdMessageComponent, TdMessageContainerDirective };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/core",
|
3
|
-
"version": "
|
3
|
+
"version": "11.0.0-beta.1",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"sass": "./theming/_all-theme.scss",
|
@@ -21,10 +21,6 @@
|
|
21
21
|
"types": "./common/index.d.ts",
|
22
22
|
"default": "./fesm2022/covalent-core-common.mjs"
|
23
23
|
},
|
24
|
-
"./dialogs": {
|
25
|
-
"types": "./dialogs/index.d.ts",
|
26
|
-
"default": "./fesm2022/covalent-core-dialogs.mjs"
|
27
|
-
},
|
28
24
|
"./dynamic-menu": {
|
29
25
|
"types": "./dynamic-menu/index.d.ts",
|
30
26
|
"default": "./fesm2022/covalent-core-dynamic-menu.mjs"
|
@@ -64,6 +60,10 @@
|
|
64
60
|
"./user-profile": {
|
65
61
|
"types": "./user-profile/index.d.ts",
|
66
62
|
"default": "./fesm2022/covalent-core-user-profile.mjs"
|
63
|
+
},
|
64
|
+
"./dialogs": {
|
65
|
+
"types": "./dialogs/index.d.ts",
|
66
|
+
"default": "./fesm2022/covalent-core-dialogs.mjs"
|
67
67
|
}
|
68
68
|
},
|
69
69
|
"repository": {
|
@@ -76,13 +76,13 @@
|
|
76
76
|
"license": "MIT",
|
77
77
|
"author": "Teradata UX",
|
78
78
|
"peerDependencies": {
|
79
|
-
"@angular/common": "
|
80
|
-
"@angular/core": "
|
81
|
-
"@angular/forms": "
|
82
|
-
"@angular/router": "
|
83
|
-
"@angular/cdk": "
|
84
|
-
"@angular/material": "
|
85
|
-
"@covalent/core": "
|
79
|
+
"@angular/common": "20.x.x",
|
80
|
+
"@angular/core": "20.x.x",
|
81
|
+
"@angular/forms": "20.x.x",
|
82
|
+
"@angular/router": "20.x.x",
|
83
|
+
"@angular/cdk": "20.x.x",
|
84
|
+
"@angular/material": "20.x.x",
|
85
|
+
"@covalent/core": "11.0.0-beta.1"
|
86
86
|
},
|
87
87
|
"dependencies": {
|
88
88
|
"tslib": "^2.8.1"
|
@@ -91,6 +91,6 @@
|
|
91
91
|
"typings": "index.d.ts",
|
92
92
|
"sideEffects": false,
|
93
93
|
"scripts": {
|
94
|
-
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled
|
94
|
+
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with partial compilation mode, before attempting to publish.\\n')\" && exit 1"
|
95
95
|
}
|
96
96
|
}
|