@covalent/core 11.0.0-beta.2 → 11.0.0-beta.4

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/file/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, OnInit, OnDestroy, Renderer2, ElementRef, NgZone, ChangeDetectorRef, TemplateRef, ViewContainerRef } from '@angular/core';
3
- import { NgModel, ControlValueAccessor } from '@angular/forms';
2
+ import { EventEmitter, OnInit, OnDestroy, ChangeDetectorRef, ElementRef } from '@angular/core';
4
3
  import { TemplatePortalDirective } from '@angular/cdk/portal';
5
4
  import { IControlValueAccessor, ICanDisable } from '@covalent/core/common';
6
- import { HttpClient, HttpEvent } from '@angular/common/http';
5
+ import { ControlValueAccessor } from '@angular/forms';
6
+ import { HttpEvent } from '@angular/common/http';
7
7
  import { Observable } from 'rxjs';
8
8
 
9
9
  declare class TdFileSelectDirective {
@@ -26,14 +26,13 @@ declare class TdFileSelectDirective {
26
26
  * Binds native 'multiple' attribute if [multiple] property is 'true'.
27
27
  */
28
28
  get multipleBinding(): string | undefined;
29
- constructor(model: NgModel);
30
29
  /**
31
30
  * Listens to 'change' host event to get [HTMLInputElement] files.
32
31
  * Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
33
32
  * Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
34
33
  */
35
34
  onChange(event: Event): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileSelectDirective, [{ optional: true; host: true; }]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdFileSelectDirective, never>;
37
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileSelectDirective, "[tdFileSelect]", never, { "multiple": { "alias": "multiple"; "required": false; }; }, { "fileSelect": "fileSelect"; }, never, never, true, never>;
38
37
  }
39
38
 
@@ -68,7 +67,6 @@ declare class TdFileDropDirective implements OnInit, OnDestroy {
68
67
  * Binds native 'disabled' attribute if [disabled] property is 'true'.
69
68
  */
70
69
  get disabledBinding(): string | undefined;
71
- constructor(_renderer: Renderer2, _element: ElementRef<HTMLElement>, _ngZone: NgZone);
72
70
  ngOnInit(): void;
73
71
  ngOnDestroy(): void;
74
72
  /**
@@ -87,7 +85,7 @@ declare class TdFileDropDirective implements OnInit, OnDestroy {
87
85
  }
88
86
 
89
87
  declare class TdFileInputLabelDirective extends TemplatePortalDirective {
90
- constructor(templateRef: TemplateRef<unknown>, viewContainerRef: ViewContainerRef);
88
+ constructor();
91
89
  static ɵfac: i0.ɵɵFactoryDeclaration<TdFileInputLabelDirective, never>;
92
90
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileInputLabelDirective, "[tdFileInputLabel]ng-template", never, {}, {}, never, never, true, never>;
93
91
  }
@@ -129,7 +127,7 @@ declare class TdFileInputComponent extends _TdFileInputMixinBase implements OnIn
129
127
  */
130
128
  selectFile: EventEmitter<File | FileList>;
131
129
  private _destroy$;
132
- constructor(_ngZone: NgZone, _renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef);
130
+ constructor();
133
131
  ngOnInit(): void;
134
132
  ngOnDestroy(): void;
135
133
  /**
@@ -215,7 +213,6 @@ declare class TdFileUploadComponent implements ControlValueAccessor {
215
213
  * Event emitted when cancel button is clicked.
216
214
  */
217
215
  cancel: EventEmitter<void>;
218
- constructor(_changeDetectorRef: ChangeDetectorRef);
219
216
  writeValue(value: File | FileList): void;
220
217
  registerOnChange(): void;
221
218
  registerOnTouched(): void;
@@ -270,13 +267,13 @@ declare class TdFileService {
270
267
  * @param _http the http client instance
271
268
  * @breaking-change 3.0.0 remove 'Optional' decorator once the legay upload method is removed
272
269
  */
273
- constructor(_http: HttpClient);
270
+ constructor();
274
271
  /**
275
272
  * Uploads a file to a URL.
276
273
  */
277
274
  send(url: string, method: string, body: File | FormData, { headers, params }?: IUploadExtras): Observable<HttpEvent<any>>;
278
275
  private handleEvent;
279
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileService, [{ optional: true; }]>;
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdFileService, never>;
280
277
  static ɵprov: i0.ɵɵInjectableDeclaration<TdFileService>;
281
278
  }
282
279
 
@@ -1,6 +1,4 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef } from '@angular/core';
3
- import { Dir } from '@angular/cdk/bidi';
4
2
 
5
3
  declare class TdJsonFormatterComponent {
6
4
  private _changeDetectorRef;
@@ -43,7 +41,6 @@ declare class TdJsonFormatterComponent {
43
41
  get data(): Record<string, any>;
44
42
  get children(): string[];
45
43
  get isRTL(): boolean;
46
- constructor(_changeDetectorRef: ChangeDetectorRef, _dir: Dir);
47
44
  /**
48
45
  * Refreshes json-formatter and rerenders [data]
49
46
  */
@@ -74,7 +71,7 @@ declare class TdJsonFormatterComponent {
74
71
  */
75
72
  getPreview(): string;
76
73
  private parseChildren;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<TdJsonFormatterComponent, [null, { optional: true; }]>;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdJsonFormatterComponent, never>;
78
75
  static ɵcmp: i0.ɵɵComponentDeclaration<TdJsonFormatterComponent, "td-json-formatter", never, { "levelsOpen": { "alias": "levelsOpen"; "required": false; }; "key": { "alias": "key"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
79
76
  }
80
77
 
package/layout/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { AfterViewInit, OnDestroy, Renderer2, ElementRef, OnInit, QueryList } from '@angular/core';
2
+ import { AfterViewInit, OnDestroy, OnInit, QueryList } from '@angular/core';
3
3
  import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
4
4
  import { ICanDisable } from '@covalent/core/common';
5
- import { Router } from '@angular/router';
6
- import { SafeStyle, DomSanitizer } from '@angular/platform-browser';
5
+ import { SafeStyle } from '@angular/platform-browser';
7
6
 
8
7
  interface ILayoutTogglable {
9
8
  opened: boolean;
@@ -16,9 +15,9 @@ declare class LayoutToggleBase {
16
15
  }
17
16
  declare const _TdLayoutToggleMixinBase: (new (...args: any[]) => ICanDisable) & typeof LayoutToggleBase;
18
17
  declare abstract class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase implements AfterViewInit, OnDestroy, ICanDisable {
19
- protected _layout: ILayoutTogglable;
20
18
  private _renderer;
21
19
  private _elementRef;
20
+ _layout: ILayoutTogglable | null | undefined;
22
21
  private _toggleSubs?;
23
22
  private _initialized;
24
23
  private _hideWhenOpened;
@@ -28,7 +27,7 @@ declare abstract class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBas
28
27
  * the sidenav is opened.
29
28
  */
30
29
  set hideWhenOpened(hideWhenOpened: boolean);
31
- constructor(_layout: ILayoutTogglable, _renderer: Renderer2, _elementRef: ElementRef);
30
+ constructor();
32
31
  ngAfterViewInit(): void;
33
32
  ngOnDestroy(): void;
34
33
  /**
@@ -108,23 +107,20 @@ declare class TdLayoutComponent implements ILayoutTogglable {
108
107
 
109
108
  declare class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
110
109
  set tdLayoutToggle(tdLayoutToggle: boolean | string);
111
- constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
112
110
  onClick(): void;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutToggleDirective, [{ optional: true; }, null, null]>;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutToggleDirective, never>;
114
112
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutToggleDirective, "[tdLayoutToggle]", never, { "tdLayoutToggle": { "alias": "tdLayoutToggle"; "required": false; }; }, {}, never, never, true, never>;
115
113
  }
116
114
  declare class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
117
115
  set tdLayoutClose(tdLayoutClose: boolean | string | undefined);
118
- constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
119
116
  onClick(): void;
120
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCloseDirective, [{ optional: true; }, null, null]>;
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCloseDirective, never>;
121
118
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutCloseDirective, "[tdLayoutClose]", never, { "tdLayoutClose": { "alias": "tdLayoutClose"; "required": false; }; }, {}, never, never, true, never>;
122
119
  }
123
120
  declare class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
124
121
  set tdLayoutClose(tdLayoutOpen: boolean);
125
- constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
126
122
  onClick(): void;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutOpenDirective, [{ optional: true; }, null, null]>;
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutOpenDirective, never>;
128
124
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutOpenDirective, "[tdLayoutOpen]", never, { "tdLayoutClose": { "alias": "tdLayoutOpen"; "required": false; }; }, {}, never, never, true, never>;
129
125
  }
130
126
 
@@ -166,9 +162,8 @@ declare class TdLayoutNavComponent {
166
162
  * Checks if router was injected.
167
163
  */
168
164
  get routerEnabled(): boolean;
169
- constructor(_router: Router);
170
165
  handleNavigationClick(): void;
171
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavComponent, [{ optional: true; }]>;
166
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavComponent, never>;
172
167
  static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavComponent, "td-layout-nav", never, { "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; }, {}, never, ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"], true, never>;
173
168
  }
174
169
 
@@ -255,7 +250,6 @@ declare class TdLayoutNavListComponent implements ILayoutTogglable {
255
250
  * Checks if router was injected.
256
251
  */
257
252
  get routerEnabled(): boolean;
258
- constructor(_router: Router);
259
253
  handleNavigationClick(): void;
260
254
  /**
261
255
  * Proxy toggle method to access sidenav from outside (from td-layout template).
@@ -269,29 +263,26 @@ declare class TdLayoutNavListComponent implements ILayoutTogglable {
269
263
  * Proxy close method to access sidenav from outside (from td-layout template).
270
264
  */
271
265
  close(): Promise<MatDrawerToggleResult>;
272
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListComponent, [{ optional: true; }]>;
266
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListComponent, never>;
273
267
  static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavListComponent, "td-layout-nav-list", never, { "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; }, {}, never, ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"], true, never>;
274
268
  }
275
269
 
276
270
  declare class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
277
271
  set tdLayoutNavListToggle(tdLayoutNavListToggle: boolean | string);
278
- constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
279
272
  onClick(): void;
280
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListToggleDirective, [{ optional: true; }, null, null]>;
273
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListToggleDirective, never>;
281
274
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListToggleDirective, "[tdLayoutNavListToggle]", never, { "tdLayoutNavListToggle": { "alias": "tdLayoutNavListToggle"; "required": false; }; }, {}, never, never, true, never>;
282
275
  }
283
276
  declare class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
284
277
  set tdLayoutNavListClose(tdLayoutNavListClose: boolean);
285
- constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
286
278
  onClick(): void;
287
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListCloseDirective, [{ optional: true; }, null, null]>;
279
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListCloseDirective, never>;
288
280
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListCloseDirective, "[tdLayoutNavListClose]", never, { "tdLayoutNavListClose": { "alias": "tdLayoutNavListClose"; "required": false; }; }, {}, never, never, true, never>;
289
281
  }
290
282
  declare class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
291
283
  set tdLayoutNavListOpen(tdLayoutNavListOpen: boolean | string);
292
- constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
293
284
  onClick(): void;
294
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListOpenDirective, [{ optional: true; }, null, null]>;
285
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListOpenDirective, never>;
295
286
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListOpenDirective, "[tdLayoutNavListOpen]", never, { "tdLayoutNavListOpen": { "alias": "tdLayoutNavListOpen"; "required": false; }; }, {}, never, never, true, never>;
296
287
  }
297
288
 
@@ -392,23 +383,20 @@ declare class TdLayoutManageListComponent implements ILayoutTogglable {
392
383
 
393
384
  declare class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
394
385
  set tdLayoutManageListToggle(tdLayoutManageListToggle: boolean | string);
395
- constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
396
386
  onClick(): void;
397
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListToggleDirective, [{ optional: true; }, null, null]>;
387
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListToggleDirective, never>;
398
388
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListToggleDirective, "[tdLayoutManageListToggle]", never, { "tdLayoutManageListToggle": { "alias": "tdLayoutManageListToggle"; "required": false; }; }, {}, never, never, true, never>;
399
389
  }
400
390
  declare class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
401
391
  set tdLayoutManageListClose(tdLayoutManageListClose: boolean);
402
- constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
403
392
  onClick(): void;
404
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListCloseDirective, [{ optional: true; }, null, null]>;
393
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListCloseDirective, never>;
405
394
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListCloseDirective, "[tdLayoutManageListClose]", never, { "tdLayoutManageListClose": { "alias": "tdLayoutManageListClose"; "required": false; }; }, {}, never, never, true, never>;
406
395
  }
407
396
  declare class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
408
397
  set tdLayoutManageListOpen(tdLayoutManageListOpen: boolean | string);
409
- constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
410
398
  onClick(): void;
411
- static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListOpenDirective, [{ optional: true; }, null, null]>;
399
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListOpenDirective, never>;
412
400
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListOpenDirective, "[tdLayoutManageListOpen]", never, { "tdLayoutManageListOpen": { "alias": "tdLayoutManageListOpen"; "required": false; }; }, {}, never, never, true, never>;
413
401
  }
414
402
 
@@ -423,7 +411,7 @@ declare class TdLayoutFooterComponent {
423
411
  */
424
412
  set color(color: 'primary' | 'accent' | 'warn' | undefined);
425
413
  get color(): 'primary' | 'accent' | 'warn' | undefined;
426
- constructor(_renderer: Renderer2, _elementRef: ElementRef);
414
+ constructor();
427
415
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutFooterComponent, never>;
428
416
  static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutFooterComponent, "td-layout-footer,td-layout-footer-inner", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
429
417
  }
@@ -522,7 +510,6 @@ declare class TdNavigationDrawerComponent implements OnInit, OnDestroy {
522
510
  * Checks if router was injected.
523
511
  */
524
512
  get routerEnabled(): boolean;
525
- constructor(_layout: TdLayoutComponent, _router: Router, _sanitize: DomSanitizer);
526
513
  ngOnInit(): void;
527
514
  ngOnDestroy(): void;
528
515
  toggleMenu(): void;
@@ -539,7 +526,7 @@ declare class TdNavigationDrawerComponent implements OnInit, OnDestroy {
539
526
  * Proxy close method to access sidenav from outside (from td-layout template).
540
527
  */
541
528
  close(): Promise<MatDrawerToggleResult>;
542
- static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerComponent, [null, { optional: true; }, null]>;
529
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerComponent, never>;
543
530
  static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": { "alias": "sidenavTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; "backgroundUrl": { "alias": "backgroundUrl"; "required": false; }; "name": { "alias": "name"; "required": false; }; "email": { "alias": "email"; "required": false; }; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"], true, never>;
544
531
  }
545
532
 
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { DoCheck, ElementRef, ChangeDetectorRef, ComponentFactoryResolver, Injector, ComponentRef, ViewContainerRef, TemplateRef, Provider, OnInit, OnDestroy } from '@angular/core';
2
+ import { DoCheck, OnInit, OnDestroy, ComponentRef, ViewContainerRef, TemplateRef, Provider } from '@angular/core';
3
3
  import { TemplatePortal } from '@angular/cdk/portal';
4
- import { Overlay } from '@angular/cdk/overlay';
5
4
  import { Observable, Subject } from 'rxjs';
6
5
 
7
6
  declare enum LoadingType {
@@ -63,7 +62,6 @@ declare class TdLoadingComponent implements DoCheck {
63
62
  * Sets theme color of [TdLoadingComponent] rendered.
64
63
  */
65
64
  color: 'primary' | 'accent' | 'warn';
66
- constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
67
65
  ngDoCheck(): void;
68
66
  getHeight(): string | undefined;
69
67
  getCircleDiameter(): number;
@@ -92,6 +90,77 @@ declare class TdLoadingComponent implements DoCheck {
92
90
  static ɵcmp: i0.ɵɵComponentDeclaration<TdLoadingComponent, "td-loading", never, {}, {}, never, never, true, never>;
93
91
  }
94
92
 
93
+ /**
94
+ * Context class for variable reference
95
+ */
96
+ declare class TdLoadingContext {
97
+ $implicit: any;
98
+ tdLoading: any;
99
+ }
100
+ declare class TdLoadingDirective implements OnInit, OnDestroy {
101
+ private _viewContainerRef;
102
+ private _templateRef;
103
+ private _loadingService;
104
+ private _context;
105
+ private _loadingRef?;
106
+ /**
107
+ * tdLoading: string
108
+ * Name reference of the loading mask, used to register/resolve requests to the mask.
109
+ */
110
+ name: string;
111
+ /**
112
+ * tdLoadingUntil?: any
113
+ * If its null, undefined or false it will be used to register requests to the mask.
114
+ * Else if its any value that can be resolved as true, it will resolve the mask.
115
+ * [name] is optional when using [until], but can still be used to register/resolve it manually.
116
+ */
117
+ set until(until: any);
118
+ /**
119
+ * tdLoadingType?: LoadingType or ['linear' | 'circular']
120
+ * Sets the type of loading mask depending on value.
121
+ * Defaults to [LoadingType.Circular | 'circular'].
122
+ */
123
+ type: LoadingType;
124
+ /**
125
+ * tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']
126
+ * Sets the mode of loading mask depending on value.
127
+ * Defaults to [LoadingMode.Indeterminate | 'indeterminate'].
128
+ */
129
+ mode: LoadingMode;
130
+ /**
131
+ * tdLoadingStrategy?: LoadingStrategy or ['replace' | 'overlay']
132
+ * Sets the strategy of loading mask depending on value.
133
+ * Defaults to [LoadingMode.Replace | 'replace'].
134
+ */
135
+ strategy: LoadingStrategy.Overlay | LoadingStrategy.Replace;
136
+ /**
137
+ * tdLoadingColor?: "primary" | "accent" | "warn"
138
+ * Sets the theme color of the loading component. Defaults to "primary"
139
+ */
140
+ color: 'primary' | 'accent' | 'warn';
141
+ /**
142
+ * Registers component in the DOM, so it will be available when calling resolve/register.
143
+ */
144
+ ngOnInit(): void;
145
+ /**
146
+ * Remove component when directive is destroyed.
147
+ */
148
+ ngOnDestroy(): void;
149
+ /**
150
+ * Creates [TdLoadingComponent] and attaches it to this directive's [ViewContainerRef].
151
+ * Passes this directive's [TemplateRef] to modify DOM depending on loading `strategy`.
152
+ */
153
+ private _registerComponent;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingDirective, never>;
155
+ 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>;
156
+ }
157
+
158
+ declare class CovalentLoadingModule {
159
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentLoadingModule, never>;
160
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentLoadingModule, never, [typeof TdLoadingComponent, typeof TdLoadingDirective], [typeof TdLoadingComponent, typeof TdLoadingDirective]>;
161
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentLoadingModule>;
162
+ }
163
+
95
164
  interface IInternalLoadingOptions extends ITdLoadingConfig {
96
165
  height?: number;
97
166
  style?: LoadingStyle;
@@ -109,7 +178,6 @@ declare class TdLoadingFactory {
109
178
  private _componentFactoryResolver;
110
179
  private _overlay;
111
180
  private _injector;
112
- constructor(_componentFactoryResolver: ComponentFactoryResolver, _overlay: Overlay, _injector: Injector);
113
181
  /**
114
182
  * Uses material `Overlay` services to create a DOM element and attach the loading component
115
183
  * into it. Leveraging the state and configuration from it.
@@ -151,7 +219,7 @@ declare class TdLoadingFactory {
151
219
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingFactory, never>;
152
220
  static ɵprov: i0.ɵɵInjectableDeclaration<TdLoadingFactory>;
153
221
  }
154
- declare function LOADING_FACTORY_PROVIDER_FACTORY(parent: TdLoadingFactory, componentFactoryResolver: ComponentFactoryResolver, overlay: Overlay, injector: Injector): TdLoadingFactory;
222
+ declare function LOADING_FACTORY_PROVIDER_FACTORY(parent: TdLoadingFactory): TdLoadingFactory;
155
223
  declare const LOADING_FACTORY_PROVIDER: Provider;
156
224
 
157
225
  interface ITdLoadingConfig {
@@ -178,7 +246,7 @@ declare class TdLoadingService {
178
246
  private _loadingFactory;
179
247
  private _context;
180
248
  private _timeouts;
181
- constructor(_loadingFactory: TdLoadingFactory);
249
+ constructor();
182
250
  /**
183
251
  * params:
184
252
  * - config: ILoadingDirectiveConfig
@@ -264,80 +332,8 @@ declare class TdLoadingService {
264
332
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingService, never>;
265
333
  static ɵprov: i0.ɵɵInjectableDeclaration<TdLoadingService>;
266
334
  }
267
- declare function LOADING_PROVIDER_FACTORY(parent: TdLoadingService, loadingFactory: TdLoadingFactory): TdLoadingService;
335
+ declare function LOADING_PROVIDER_FACTORY(parent: TdLoadingService): TdLoadingService;
268
336
  declare const LOADING_PROVIDER: Provider;
269
337
 
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
338
  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
339
  export type { IInternalLoadingOptions, ILoadingRef, ITdLoadingConfig, ITdLoadingDirectiveConfig };
@@ -1,9 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { AfterViewInit, ViewContainerRef, TemplateRef, Renderer2, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { AfterViewInit, ViewContainerRef, TemplateRef } from '@angular/core';
3
3
 
4
4
  declare class TdMessageContainerDirective {
5
5
  viewContainer: ViewContainerRef;
6
- constructor(viewContainer: ViewContainerRef);
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TdMessageContainerDirective, never>;
8
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<TdMessageContainerDirective, "[tdMessageContainer]", never, {}, {}, never, never, true, never>;
9
8
  }
@@ -61,7 +60,7 @@ declare class TdMessageComponent implements AfterViewInit {
61
60
  */
62
61
  set opened(opened: boolean);
63
62
  get opened(): boolean;
64
- constructor(_renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef);
63
+ constructor();
65
64
  /**
66
65
  * Detach element when close animation is finished to set animating state to false
67
66
  * hidden state to true and detach element from DOM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covalent/core",
3
- "version": "11.0.0-beta.2",
3
+ "version": "11.0.0-beta.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./theming/_all-theme.scss",
@@ -82,7 +82,7 @@
82
82
  "@angular/router": "20.x.x",
83
83
  "@angular/cdk": "20.x.x",
84
84
  "@angular/material": "20.x.x",
85
- "@covalent/core": "11.0.0-beta.2"
85
+ "@covalent/core": "11.0.0-beta.4"
86
86
  },
87
87
  "dependencies": {
88
88
  "tslib": "^2.8.1"
package/search/README.md CHANGED
@@ -41,19 +41,7 @@
41
41
  Example for HTML usage:
42
42
 
43
43
  ```html
44
- <td-search-box
45
- backIcon="arrow_back"
46
- placeholder="Search here"
47
- [(ngModel)]="searchInputTerm"
48
- [showUnderline]="false|true"
49
- [debounce]="500"
50
- [alwaysVisible]="false|true"
51
- (searchDebounce)="searchInputTerm = $event"
52
- (search)="searchInputTerm = $event"
53
- (clear)="searchInputTerm = ''"
54
- (blur)="onBlurEvent()"
55
- >
56
- </td-search-box>
44
+ <td-search-box backIcon="arrow_back" placeholder="Search here" [(ngModel)]="searchInputTerm" [showUnderline]="false|true" [debounce]="500" [alwaysVisible]="false|true" (searchDebounce)="searchInputTerm = $event" (searchChange)="searchInputTerm = $event" (clear)="searchInputTerm = ''" (blur)="onBlurEvent()"> </td-search-box>
57
45
  ```
58
46
 
59
47
  # TdSearchInputComponent: td-search-input
@@ -102,17 +90,7 @@ Example for HTML usage:
102
90
  Example for HTML usage:
103
91
 
104
92
  ```html
105
- <td-search-input
106
- appearance="fill|outline"
107
- placeholder="Search here"
108
- [(ngModel)]="searchInputTerm"
109
- [showUnderline]="false|true"
110
- [debounce]="500"
111
- (searchDebounce)="searchInputTerm = $event"
112
- (search)="searchInputTerm = $event"
113
- (clear)="searchInputTerm = ''"
114
- >
115
- </td-search-input>
93
+ <td-search-input appearance="fill|outline" placeholder="Search here" [(ngModel)]="searchInputTerm" [showUnderline]="false|true" [debounce]="500" (searchDebounce)="searchInputTerm = $event" (searchChange)="searchInputTerm = $event" (clear)="searchInputTerm = ''"> </td-search-input>
116
94
  ```
117
95
 
118
96
  ## Setup
package/search/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, OnInit, OnDestroy, ElementRef, EventEmitter, NgZone } from '@angular/core';
3
- import { Dir } from '@angular/cdk/bidi';
2
+ import { ChangeDetectorRef, OnInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core';
4
3
  import { MatInput } from '@angular/material/input';
5
4
  import { MatFormFieldAppearance } from '@angular/material/form-field';
6
5
  import { IControlValueAccessor } from '@covalent/core/common';
@@ -13,7 +12,6 @@ declare class TdSearchInputBase {
13
12
  declare const _TdSearchInputMixinBase: (new (...args: any[]) => IControlValueAccessor) & typeof TdSearchInputBase;
14
13
  declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements IControlValueAccessor, OnInit, OnDestroy {
15
14
  private _dir;
16
- _changeDetectorRef: ChangeDetectorRef;
17
15
  private _ngZone;
18
16
  _input?: MatInput;
19
17
  _searchElement: ElementRef<HTMLInputElement>;
@@ -53,7 +51,7 @@ declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements
53
51
  * search: function($event)
54
52
  * Event emitted after the key enter has been pressed.
55
53
  */
56
- search: EventEmitter<string>;
54
+ searchChange: EventEmitter<string>;
57
55
  /**
58
56
  * clear: function()
59
57
  * Event emitted after the clear icon has been clicked.
@@ -66,7 +64,7 @@ declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements
66
64
  blurSearch: EventEmitter<void>;
67
65
  get isRTL(): boolean;
68
66
  private _destroy$;
69
- constructor(_dir: Dir, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone);
67
+ constructor();
70
68
  ngOnInit(): void;
71
69
  ngOnDestroy(): void;
72
70
  /**
@@ -81,8 +79,8 @@ declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements
81
79
  clearSearch(): void;
82
80
  private _searchTermChanged;
83
81
  private _stopPropagation;
84
- static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchInputComponent, [{ optional: true; }, null, null]>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": { "alias": "appearance"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, true, never>;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchInputComponent, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": { "alias": "appearance"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "searchChange": "searchChange"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, true, never>;
86
84
  }
87
85
 
88
86
  declare class TdSearchBoxBase {
@@ -142,7 +140,7 @@ declare class TdSearchBoxComponent implements ControlValueAccessor {
142
140
  * search: function($event)
143
141
  * Event emitted after the key enter has been pressed.
144
142
  */
145
- search: EventEmitter<string>;
143
+ searchChange: EventEmitter<string>;
146
144
  /**
147
145
  * clear: function()
148
146
  * Event emitted after the clear icon has been clicked.
@@ -153,7 +151,6 @@ declare class TdSearchBoxComponent implements ControlValueAccessor {
153
151
  * Event emitted after the blur event has been called in underlying input.
154
152
  */
155
153
  blurSearch: EventEmitter<void>;
156
- constructor(_changeDetectorRef: ChangeDetectorRef);
157
154
  writeValue(value: unknown): void;
158
155
  registerOnChange(): void;
159
156
  registerOnTouched(): void;
@@ -167,7 +164,7 @@ declare class TdSearchBoxComponent implements ControlValueAccessor {
167
164
  handleClear(): void;
168
165
  handleBlur(): void;
169
166
  static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchBoxComponent, never>;
170
- static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": { "alias": "backIcon"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "alwaysVisible": { "alias": "alwaysVisible"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, true, never>;
167
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": { "alias": "backIcon"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "alwaysVisible": { "alias": "alwaysVisible"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "searchChange": "searchChange"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, true, never>;
171
168
  }
172
169
 
173
170
  /**