@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.
Files changed (161) hide show
  1. package/breadcrumbs/index.d.ts +82 -3
  2. package/common/index.d.ts +388 -3
  3. package/dialogs/index.d.ts +263 -3
  4. package/dynamic-menu/index.d.ts +63 -3
  5. package/fesm2022/covalent-core-breadcrumbs.mjs +1 -1
  6. package/fesm2022/covalent-core-breadcrumbs.mjs.map +1 -1
  7. package/fesm2022/covalent-core-common.mjs +2 -2
  8. package/fesm2022/covalent-core-common.mjs.map +1 -1
  9. package/fesm2022/covalent-core-dialogs.mjs +3 -5
  10. package/fesm2022/covalent-core-dialogs.mjs.map +1 -1
  11. package/fesm2022/covalent-core-dynamic-menu.mjs +4 -6
  12. package/fesm2022/covalent-core-dynamic-menu.mjs.map +1 -1
  13. package/fesm2022/covalent-core-file.mjs +2 -2
  14. package/fesm2022/covalent-core-file.mjs.map +1 -1
  15. package/fesm2022/covalent-core-json-formatter.mjs +2 -2
  16. package/fesm2022/covalent-core-json-formatter.mjs.map +1 -1
  17. package/fesm2022/covalent-core-layout.mjs +1 -1
  18. package/fesm2022/covalent-core-layout.mjs.map +1 -1
  19. package/fesm2022/covalent-core-loading.mjs.map +1 -1
  20. package/fesm2022/covalent-core-menu.mjs.map +1 -1
  21. package/fesm2022/covalent-core-message.mjs +2 -2
  22. package/fesm2022/covalent-core-message.mjs.map +1 -1
  23. package/fesm2022/covalent-core-search.mjs +3 -3
  24. package/fesm2022/covalent-core-search.mjs.map +1 -1
  25. package/fesm2022/covalent-core-side-sheet.mjs +7 -5
  26. package/fesm2022/covalent-core-side-sheet.mjs.map +1 -1
  27. package/fesm2022/covalent-core-user-profile.mjs +5 -4
  28. package/fesm2022/covalent-core-user-profile.mjs.map +1 -1
  29. package/fesm2022/covalent-core.mjs.map +1 -1
  30. package/file/index.d.ts +282 -3
  31. package/index.d.ts +2 -5
  32. package/json-formatter/index.d.ts +89 -3
  33. package/layout/index.d.ts +555 -3
  34. package/loading/index.d.ts +341 -3
  35. package/menu/index.d.ts +16 -3
  36. package/message/index.d.ts +112 -3
  37. package/package.json +13 -13
  38. package/search/index.d.ts +181 -3
  39. package/side-sheet/index.d.ts +264 -3
  40. package/theming/_all-theme.scss +10 -1
  41. package/theming/_teradata-theme.scss +7 -7
  42. package/theming/prebuilt/all-theme-dark.css +1 -1
  43. package/theming/prebuilt/all-theme-dark.css.map +1 -1
  44. package/theming/prebuilt/all-theme-light.css +1 -1
  45. package/theming/prebuilt/all-theme-light.css.map +1 -1
  46. package/theming/prebuilt/blue-grey-deep-orange.css +1 -1
  47. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  48. package/theming/prebuilt/blue-orange.css +1 -1
  49. package/theming/prebuilt/blue-orange.css.map +1 -1
  50. package/theming/prebuilt/indigo-pink.css +1 -1
  51. package/theming/prebuilt/indigo-pink.css.map +1 -1
  52. package/theming/prebuilt/orange-light-blue.css +1 -1
  53. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  54. package/theming/prebuilt/teal-orange.css +1 -1
  55. package/theming/prebuilt/teal-orange.css.map +1 -1
  56. package/user-profile/index.d.ts +26 -3
  57. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +0 -37
  58. package/breadcrumbs/breadcrumbs.component.d.ts +0 -36
  59. package/breadcrumbs/breadcrumbs.module.d.ts +0 -12
  60. package/breadcrumbs/public_api.d.ts +0 -3
  61. package/common/animations/bounce/bounce.animation.d.ts +0 -14
  62. package/common/animations/collapse/collapse.animation.d.ts +0 -20
  63. package/common/animations/common/interfaces.d.ts +0 -5
  64. package/common/animations/fade/fadeInOut.animation.d.ts +0 -20
  65. package/common/animations/flash/flash.animation.d.ts +0 -14
  66. package/common/animations/headshake/headshake.animation.d.ts +0 -14
  67. package/common/animations/jello/jello.animation.d.ts +0 -14
  68. package/common/animations/pulse/pulse.animation.d.ts +0 -14
  69. package/common/animations/rotate/rotate.animation.d.ts +0 -21
  70. package/common/behaviors/control-value-accesor.mixin.d.ts +0 -16
  71. package/common/behaviors/disable-ripple.mixin.d.ts +0 -9
  72. package/common/behaviors/disabled.mixin.d.ts +0 -9
  73. package/common/common.module.d.ts +0 -21
  74. package/common/directives/fullscreen/fullscreen.directive.d.ts +0 -25
  75. package/common/directives/web-components/form-control.directive.d.ts +0 -21
  76. package/common/forms/auto-trim/auto-trim.directive.d.ts +0 -12
  77. package/common/forms/validators/validators.d.ts +0 -8
  78. package/common/functions/clipboard.d.ts +0 -9
  79. package/common/functions/convert.d.ts +0 -31
  80. package/common/functions/download.d.ts +0 -48
  81. package/common/functions/file.d.ts +0 -7
  82. package/common/pipes/bytes/bytes.pipe.d.ts +0 -7
  83. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +0 -7
  84. package/common/pipes/digits/digits.pipe.d.ts +0 -10
  85. package/common/pipes/time-ago/time-ago.pipe.d.ts +0 -7
  86. package/common/pipes/time-difference/time-difference.pipe.d.ts +0 -7
  87. package/common/pipes/time-until/time-until.pipe.d.ts +0 -7
  88. package/common/pipes/truncate/truncate.pipe.d.ts +0 -7
  89. package/common/public_api.d.ts +0 -39
  90. package/common/services/icon.service.d.ts +0 -8
  91. package/common/services/router-path.service.d.ts +0 -10
  92. package/dialogs/alert-dialog/alert-dialog.component.d.ts +0 -12
  93. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +0 -15
  94. package/dialogs/dialog.component.d.ts +0 -27
  95. package/dialogs/dialogs.module.d.ts +0 -16
  96. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +0 -24
  97. package/dialogs/public_api.d.ts +0 -9
  98. package/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.d.ts +0 -21
  99. package/dialogs/services/dialog.service.d.ts +0 -127
  100. package/dialogs/status-dialog/status-dialog.component.d.ts +0 -23
  101. package/dialogs/window-dialog/window-dialog.component.d.ts +0 -16
  102. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +0 -12
  103. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +0 -10
  104. package/dynamic-menu/dynamic-menu.component.d.ts +0 -11
  105. package/dynamic-menu/dynamic-menu.menu.d.ts +0 -22
  106. package/dynamic-menu/dynamic-menu.module.d.ts +0 -13
  107. package/dynamic-menu/public_api.d.ts +0 -5
  108. package/file/directives/file-drop.directive.d.ts +0 -50
  109. package/file/directives/file-select.directive.d.ts +0 -33
  110. package/file/file-input/file-input.component.d.ts +0 -67
  111. package/file/file-upload/file-upload.component.d.ts +0 -91
  112. package/file/file.module.d.ts +0 -14
  113. package/file/public_api.d.ts +0 -6
  114. package/file/services/file.service.d.ts +0 -34
  115. package/json-formatter/collapse.animation.d.ts +0 -24
  116. package/json-formatter/json-formatter.component.d.ts +0 -78
  117. package/json-formatter/json-formatter.module.d.ts +0 -11
  118. package/json-formatter/public_api.d.ts +0 -2
  119. package/layout/layout-card-over/layout-card-over.component.d.ts +0 -31
  120. package/layout/layout-footer/layout-footer.component.d.ts +0 -17
  121. package/layout/layout-manage-list/layout-manage-list.component.d.ts +0 -66
  122. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +0 -25
  123. package/layout/layout-nav/layout-nav.component.d.ts +0 -45
  124. package/layout/layout-nav-list/layout-nav-list.component.d.ts +0 -104
  125. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +0 -25
  126. package/layout/layout-toggle.class.d.ts +0 -40
  127. package/layout/layout.component.d.ts +0 -66
  128. package/layout/layout.directives.d.ts +0 -25
  129. package/layout/layout.module.d.ts +0 -20
  130. package/layout/navigation-drawer/navigation-drawer.component.d.ts +0 -120
  131. package/layout/public_api.d.ts +0 -12
  132. package/loading/directives/loading.directive.d.ts +0 -70
  133. package/loading/loading.component.d.ts +0 -90
  134. package/loading/loading.module.d.ts +0 -8
  135. package/loading/public_api.d.ts +0 -5
  136. package/loading/services/loading.factory.d.ts +0 -69
  137. package/loading/services/loading.service.d.ts +0 -118
  138. package/menu/menu.component.d.ts +0 -5
  139. package/menu/menu.module.d.ts +0 -11
  140. package/menu/public_api.d.ts +0 -2
  141. package/message/collapse.animation.d.ts +0 -24
  142. package/message/message.component.d.ts +0 -101
  143. package/message/message.module.d.ts +0 -11
  144. package/message/public_api.d.ts +0 -2
  145. package/public_api.d.ts +0 -1
  146. package/search/public_api.d.ts +0 -3
  147. package/search/search-box/search-box.component.d.ts +0 -88
  148. package/search/search-input/search-input.component.d.ts +0 -84
  149. package/search/search.module.d.ts +0 -12
  150. package/side-sheet/public_api.d.ts +0 -5
  151. package/side-sheet/side-sheet-container.d.ts +0 -110
  152. package/side-sheet/side-sheet-ref.d.ts +0 -12
  153. package/side-sheet/side-sheet.animation.d.ts +0 -4
  154. package/side-sheet/side-sheet.config.d.ts +0 -9
  155. package/side-sheet/side-sheet.content-directives.d.ts +0 -67
  156. package/side-sheet/side-sheet.d.ts +0 -66
  157. package/side-sheet/side-sheet.module.d.ts +0 -12
  158. package/user-profile/public_api.d.ts +0 -3
  159. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +0 -8
  160. package/user-profile/user-profile.component.d.ts +0 -7
  161. package/user-profile/user-profile.module.d.ts +0 -11
@@ -1,5 +1,84 @@
1
+ import * as i0 from '@angular/core';
2
+ import { AfterViewInit, ElementRef, ChangeDetectorRef, OnInit, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
3
+
4
+ declare class TdBreadcrumbComponent implements AfterViewInit {
5
+ private _elementRef;
6
+ private _changeDetectorRef;
7
+ private _displayCrumb;
8
+ private _width;
9
+ private _displayIcon;
10
+ private _separatorIcon;
11
+ matButtonClass: boolean;
12
+ tdBreadCrumbClass: boolean;
13
+ get separatorIcon(): string;
14
+ set separatorIcon(separatorIcon: string);
15
+ get displayIcon(): boolean;
16
+ set displayIcon(displayIcon: boolean);
17
+ get displayCrumb(): boolean;
18
+ /**
19
+ * Whether to display the crumb or not
20
+ */
21
+ set displayCrumb(shouldDisplay: boolean);
22
+ /**
23
+ * Width of the DOM element of the crumb
24
+ */
25
+ get width(): number;
26
+ /**
27
+ * Gets the display style of the crumb
28
+ */
29
+ get displayBinding(): string | undefined;
30
+ constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
31
+ ngAfterViewInit(): void;
32
+ /**
33
+ * Stop click propagation when clicking on icon
34
+ */
35
+ _handleIconClick(event: Event): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdBreadcrumbComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdBreadcrumbComponent, "td-breadcrumb, a[td-breadcrumb]", never, {}, {}, never, ["*"], true, never>;
38
+ }
39
+
40
+ declare class TdBreadcrumbsComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {
41
+ private _elementRef;
42
+ private _changeDetectorRef;
43
+ private _resizing;
44
+ private _separatorIcon;
45
+ private _destroy$;
46
+ tdBreadCrumbsClass: boolean;
47
+ _breadcrumbs: QueryList<TdBreadcrumbComponent>;
48
+ hiddenBreadcrumbs: TdBreadcrumbComponent[];
49
+ /**
50
+ * Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'.
51
+ */
52
+ set separatorIcon(separatorIcon: string);
53
+ get separatorIcon(): string;
54
+ constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
55
+ ngOnInit(): void;
56
+ ngAfterViewInit(): void;
57
+ ngAfterContentInit(): void;
58
+ ngOnDestroy(): void;
59
+ get nativeElementWidth(): number;
60
+ /**
61
+ * The total count of individual breadcrumbs
62
+ */
63
+ get count(): number;
64
+ /**
65
+ * Set the crumb icon separators
66
+ */
67
+ private setCrumbIcons;
68
+ private _calculateVisibility;
69
+ private _waitToCalculateVisibility;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdBreadcrumbsComponent, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdBreadcrumbsComponent, "td-breadcrumbs", never, { "separatorIcon": { "alias": "separatorIcon"; "required": false; }; }, {}, ["_breadcrumbs"], ["*"], true, never>;
72
+ }
73
+
1
74
  /**
2
- * Generated bundle index. Do not edit.
75
+ * @deprecated This module is deprecated and will be removed in future versions.
76
+ * Please migrate to using standalone components as soon as possible.
3
77
  */
4
- /// <amd-module name="@covalent/core/breadcrumbs" />
5
- export * from './public_api';
78
+ declare class CovalentBreadcrumbsModule {
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentBreadcrumbsModule, never>;
80
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentBreadcrumbsModule, never, [typeof TdBreadcrumbsComponent, typeof TdBreadcrumbComponent], [typeof TdBreadcrumbsComponent, typeof TdBreadcrumbComponent]>;
81
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentBreadcrumbsModule>;
82
+ }
83
+
84
+ export { CovalentBreadcrumbsModule, TdBreadcrumbComponent, TdBreadcrumbsComponent };
package/common/index.d.ts CHANGED
@@ -1,5 +1,390 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, PipeTransform, ChangeDetectorRef } from '@angular/core';
3
+ import * as i10 from '@angular/forms';
4
+ import { NgModel, ControlValueAccessor, NgControl, ValidatorFn, AbstractControl } from '@angular/forms';
5
+ import * as i11 from '@angular/common';
6
+ import { AnimationTriggerMetadata } from '@angular/animations';
7
+ import { Observable } from 'rxjs';
8
+
9
+ declare class TdAutoTrimDirective {
10
+ private _model;
11
+ constructor(_model: NgModel);
12
+ /**
13
+ * Listens to host's (blur) event and trims value.
14
+ */
15
+ onBlur(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdAutoTrimDirective, [{ optional: true; host: true; }]>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdAutoTrimDirective, "[tdAutoTrim]", never, {}, {}, never, never, true, never>;
18
+ }
19
+
20
+ interface IFsDocument extends HTMLDocument {
21
+ fullscreenElement: Element;
22
+ webkitFullscreenElement: Element;
23
+ mozFullscreenElement: Element;
24
+ msFullscreenElement: Element;
25
+ webkitExitFullscreen: () => void;
26
+ mozCancelFullScreen: () => void;
27
+ msExitFullscreen: () => void;
28
+ }
29
+ declare class TdFullscreenDirective {
30
+ private _document;
31
+ private _el;
32
+ fullScreenIsActive: boolean;
33
+ constructor(_document: IFsDocument, _el: ElementRef);
34
+ fsChangeHandler(event: Event): void;
35
+ toggleFullScreen(): void;
36
+ enterFullScreen(): void;
37
+ exitFullScreen(): void;
38
+ private _getFullScreenElement;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdFullscreenDirective, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdFullscreenDirective, "[tdFullScreen]", ["tdFullScreen"], {}, {}, never, never, true, never>;
41
+ }
42
+
43
+ declare class TdTimeAgoPipe implements PipeTransform {
44
+ transform(time: any, reference?: any): string;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdTimeAgoPipe, never>;
46
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdTimeAgoPipe, "timeAgo", true>;
47
+ }
48
+
49
+ declare class TdTimeDifferencePipe implements PipeTransform {
50
+ transform(start: any, end?: any): string;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdTimeDifferencePipe, never>;
52
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdTimeDifferencePipe, "timeDifference", true>;
53
+ }
54
+
55
+ declare class TdTimeUntilPipe implements PipeTransform {
56
+ transform(time: any, reference?: any): string;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdTimeUntilPipe, never>;
58
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdTimeUntilPipe, "timeUntil", true>;
59
+ }
60
+
61
+ declare class TdBytesPipe implements PipeTransform {
62
+ transform(bytes: any, precision?: number): string;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdBytesPipe, never>;
64
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdBytesPipe, "bytes", true>;
65
+ }
66
+
67
+ declare class TdDecimalBytesPipe implements PipeTransform {
68
+ transform(bytes: any, precision?: number): string;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdDecimalBytesPipe, never>;
70
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdDecimalBytesPipe, "decimalBytes", true>;
71
+ }
72
+
73
+ declare class TdDigitsPipe implements PipeTransform {
74
+ private _locale;
75
+ private _decimalPipe;
76
+ constructor(_locale?: string);
77
+ transform(digits: any, precision?: number): string;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdDigitsPipe, never>;
79
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdDigitsPipe, "digits", true>;
80
+ }
81
+
82
+ declare class TdTruncatePipe implements PipeTransform {
83
+ transform(text: any, length?: number): string;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdTruncatePipe, never>;
85
+ static ɵpipe: i0.ɵɵPipeDeclaration<TdTruncatePipe, "truncate", true>;
86
+ }
87
+
1
88
  /**
2
- * Generated bundle index. Do not edit.
89
+ * @deprecated This module is deprecated and will be removed in future versions.
90
+ * Please migrate to using standalone components as soon as possible.
3
91
  */
4
- /// <amd-module name="@covalent/core/common" />
5
- export * from './public_api';
92
+ declare class CovalentCommonModule {
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentCommonModule, never>;
94
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentCommonModule, never, [typeof TdAutoTrimDirective, typeof TdFullscreenDirective, typeof TdTimeAgoPipe, typeof TdTimeDifferencePipe, typeof TdTimeUntilPipe, typeof TdBytesPipe, typeof TdDecimalBytesPipe, typeof TdDigitsPipe, typeof TdTruncatePipe], [typeof i10.FormsModule, typeof i11.CommonModule, typeof TdAutoTrimDirective, typeof TdFullscreenDirective, typeof TdTimeAgoPipe, typeof TdTimeDifferencePipe, typeof TdTimeUntilPipe, typeof TdBytesPipe, typeof TdDecimalBytesPipe, typeof TdDigitsPipe, typeof TdTruncatePipe]>;
95
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentCommonModule>;
96
+ }
97
+
98
+ interface IAnimationOptions {
99
+ anchor?: string;
100
+ duration?: number;
101
+ delay?: number;
102
+ }
103
+
104
+ interface IRotateAnimation extends IAnimationOptions {
105
+ degrees?: number;
106
+ ease?: string;
107
+ }
108
+ /**
109
+ * const tdRotateAnimation
110
+ *
111
+ * Parameter Options:
112
+ * * degressStart: Degrees of rotation that the dom object will end up in during the "false" state
113
+ * * degreesEnd: Degrees of rotation that the dom object will end up in during the "true" state
114
+ * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
115
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
116
+ * * ease: Animation accelerates and decelerates. Defaults to ease-in.
117
+ *
118
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a rotation animation.
119
+ *
120
+ * usage: [@tdRotate]="{ value: true | false, params: { degreesEnd: 90 }}"
121
+ */
122
+ declare const tdRotateAnimation: AnimationTriggerMetadata;
123
+
124
+ interface ICollapseAnimation extends IAnimationOptions {
125
+ easeOnClose?: string;
126
+ easeOnOpen?: string;
127
+ }
128
+ /**
129
+ * const tdCollapseAnimation
130
+ *
131
+ * Parameter Options:
132
+ * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
133
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
134
+ * * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in.
135
+ * * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out.
136
+ *
137
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
138
+ *
139
+ * usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
140
+ */
141
+ declare const tdCollapseAnimation: AnimationTriggerMetadata;
142
+
143
+ interface IFadeInOutAnimation extends IAnimationOptions {
144
+ easeOnIn?: string;
145
+ easeOnOut?: string;
146
+ }
147
+ /**
148
+ * const tdFadeInOutAnimation
149
+ *
150
+ * Parameter Options:
151
+ * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
152
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
153
+ * * easeOnIn: Animation accelerates and decelerates when fading in. Defaults to ease-in.
154
+ * * easeOnOut: Animation accelerates and decelerates when fading out. Defaults to ease-out.
155
+ *
156
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a fade animation.
157
+ *
158
+ * usage: [@tdFadeInOut]="{ value: true | false, params: { duration: 200 }}"
159
+ */
160
+ declare const tdFadeInOutAnimation: AnimationTriggerMetadata;
161
+
162
+ /**
163
+ * const tdBounceAnimation
164
+ *
165
+ * Parameter Options:
166
+ * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms.
167
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
168
+ * * ease: Animation accelerate and decelerate style. Defaults to ease-out.
169
+ *
170
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a bounce animation.
171
+ *
172
+ * usage: [@tdBounce]="{ value: true | false, params: { duration: 200 }}"
173
+ */
174
+ declare const tdBounceAnimation: AnimationTriggerMetadata;
175
+
176
+ /**
177
+ * const tdFlashAnimation
178
+ *
179
+ * Parameter Options:
180
+ * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms.
181
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
182
+ * * ease: Animation accelerate and decelerate style. Defaults to ease-out.
183
+ *
184
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a flash animation.
185
+ *
186
+ * usage: [@tdFlash]="{ value: true | false, params: { duration: 200 }}"
187
+ */
188
+ declare const tdFlashAnimation: AnimationTriggerMetadata;
189
+
190
+ /**
191
+ * const tdHeadshakeAnimation
192
+ *
193
+ * Parameter Options:
194
+ * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms.
195
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
196
+ * * ease: Animation accelerate and decelerate style. Defaults to ease-out.
197
+ *
198
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a headshake animation.
199
+ *
200
+ * usage: [@tdHeadshake]="{ value: true | false, params: { duration: 200 }}"
201
+ */
202
+ declare const tdHeadshakeAnimation: AnimationTriggerMetadata;
203
+
204
+ /**
205
+ * const tdJelloAnimation
206
+ *
207
+ * Parameter Options:
208
+ * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms.
209
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
210
+ * * ease: Animation accelerate and decelerate style. Defaults to ease-out.
211
+ *
212
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a jello animation.
213
+ *
214
+ * usage: [@tdJello]="{ value: true | false, params: { duration: 200 }}"
215
+ */
216
+ declare const tdJelloAnimation: AnimationTriggerMetadata;
217
+
218
+ /**
219
+ * const tdPulseAnimation
220
+ *
221
+ * Parameter Options:
222
+ * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms.
223
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
224
+ * * ease: Animation accelerate and decelerate style. Defaults to ease-out.
225
+ *
226
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a pulse animation.
227
+ *
228
+ * usage: [@tdPulse]="{ value: true | false, params: { duration: 200 }}"
229
+ */
230
+ declare const tdPulseAnimation: AnimationTriggerMetadata;
231
+
232
+ type Constructor$2<T> = new (...args: any[]) => T;
233
+ interface IControlValueAccessor extends ControlValueAccessor {
234
+ value: any;
235
+ valueChanges: Observable<any>;
236
+ onChange: (_: any) => any;
237
+ onTouched: () => any;
238
+ }
239
+ interface IHasChangeDetectorRef {
240
+ _changeDetectorRef: ChangeDetectorRef;
241
+ }
242
+ /** Mixin to augment a component with ngModel support. */
243
+ declare function mixinControlValueAccessor<T extends Constructor$2<IHasChangeDetectorRef>>(base: T, initialValue?: any): Constructor$2<IControlValueAccessor> & T;
244
+
245
+ type Constructor$1<T> = new (...args: any[]) => T;
246
+ /** Interface to implement when applying the disabled mixin */
247
+ interface ICanDisable {
248
+ disabled: boolean;
249
+ onDisabledChange(v: boolean): void;
250
+ }
251
+ /** Mixin to augment a component or directive with a `disabled` property. */
252
+ declare function mixinDisabled<T extends Constructor$1<any>>(base: T): Constructor$1<ICanDisable> & T;
253
+
254
+ type Constructor<T> = new (...args: any[]) => T;
255
+ /** Interface to implement when applying the disabled mixin */
256
+ interface ICanDisableRipple {
257
+ disableRipple: boolean;
258
+ onDisableRippleChange(v: boolean): void;
259
+ }
260
+ /** Mixin to augment a component or directive with a `disabled` property. */
261
+ declare function mixinDisableRipple<T extends Constructor<Record<string, unknown>>>(base: T): Constructor<ICanDisableRipple> & T;
262
+
263
+ declare class CovalentTextfieldValueAccessorDirective implements ControlValueAccessor {
264
+ private _elementRef;
265
+ _ngControl: NgControl;
266
+ private _onChange;
267
+ private _onTouched;
268
+ constructor(_elementRef: ElementRef<any>, _ngControl: NgControl);
269
+ writeValue(value: string): void;
270
+ registerOnChange(fn: any): void;
271
+ registerOnTouched(fn: any): void;
272
+ handleChange(event: Event): void;
273
+ handleBlur(): void;
274
+ setDisabledState(isDisabled: boolean): void;
275
+ private _isCheckBox;
276
+ private _isRadio;
277
+ private _updateValidity;
278
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentTextfieldValueAccessorDirective, never>;
279
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentTextfieldValueAccessorDirective, "cv-textfield[formControl], cv-textarea[formControl], cv-select[formControl], cv-checkbox[formControl], cv-checkbox-icon[formControl], cv-radio[formControl], cv-radio-icon[formControl], cv-textfield[formControlName], cv-textarea[formControlName], cv-select[formControlName], cv-checkbox[formControlName], cv-checkbox-icon[formControlName], cv-radio[formControlName], cv-radio-icon[formControlName],", never, {}, {}, never, never, true, never>;
280
+ }
281
+
282
+ declare class CovalentValidators {
283
+ static min(minValue: any): ValidatorFn;
284
+ static max(maxValue: any): ValidatorFn;
285
+ static numberRequired(c: AbstractControl): {
286
+ [key: string]: any;
287
+ };
288
+ }
289
+
290
+ /**
291
+ * Assign a text value to the system clipboard. Note: Due to browser
292
+ * security restrictions, the copy will only succeed if this method
293
+ * is invoked as a result of a user action (eg. user button click).
294
+ *
295
+ * @param value text value to be assigned to clipboard.
296
+ * @returns boolean indicating success/failure of copy operation.
297
+ */
298
+ declare function copyToClipboard(value: string): boolean;
299
+
300
+ /**
301
+ * Conversion function that takes an array of objects and converts
302
+ * them to CSV format. Custom key and line separators can be specified.
303
+ *
304
+ * @param objects list of strings in JSON format or actual objects
305
+ * @param keySeparator optional parameter to specify custom value separator
306
+ * @param lineSeparator optional parameter to specify custom end of line separator
307
+ * @returns CSV formatted string
308
+ */
309
+ declare function convertObjectsToCSV(objects: any[], keySeparator?: string, lineSeparator?: string): string;
310
+ /**
311
+ * Conversion function that takes a CSV representation
312
+ * of objects and converts them to JSON.
313
+ * The first row in the input must be the object keys.
314
+ * Custom key separator and line separator can be specified.
315
+ * Indentation size for output JSON can be specified.
316
+ *
317
+ * @param csv list of strings in JSON format or actual objects
318
+ * @param keySeparator optional parameter to specify custom value separator
319
+ * @param lineSeparator optional parameter to specify custom end of line separator
320
+ * @param indent optional parameter indicating space indentation for pretty output. Default is 2.
321
+ * @returns JSON formatted string
322
+ */
323
+ declare function convertCSVToJSON(csv: string, keySeparator?: string, lineSeparator?: string, indent?: number): string;
324
+ /**
325
+ * Convert object to JSON using stringify. Indentation size for output JSON can be specified.
326
+ *
327
+ * @param json object to be converted
328
+ * @param indent optional parameter indicating space indentation for pretty output. Default is 2.
329
+ */
330
+ declare function formatJSON(json: object, indent?: number): string;
331
+
332
+ /**
333
+ * Download CSV content to the specified file with .csv extension
334
+ * appended to the provided base file name.
335
+ *
336
+ * @param fileBaseName base name of destination file
337
+ * @param csv CSV contents
338
+ */
339
+ declare function downloadCSV(fileBaseName: string, csv: string): void;
340
+ /**
341
+ * Download JSON content to the specified file with .json extension
342
+ * appended to the provided base file name.
343
+ *
344
+ * @param fileBaseName base name of destination file
345
+ * @param json JSON contents
346
+ * @param format indicates if JSON should be prettied
347
+ * @param indent optional parameter indicating space indentation for pretty output. Default is 2
348
+ */
349
+ declare function downloadJSON(fileBaseName: string, json: string, format?: boolean, indent?: number): void;
350
+ /**
351
+ * Convert objects to CSV format and download to file with .csv
352
+ * extension appended to the provided base file name. Custom key
353
+ * separator and line separator can be specified.
354
+ *
355
+ * @param fileBaseName base name of destination file
356
+ * @param objects object array to be converted to CSV format
357
+ * prior to writing to download destination
358
+ * @param keySeparator optional parameter to specify custom value separator
359
+ * @param lineSeparator optional parameter to specify custom end of line separator
360
+ */
361
+ declare function downloadObjectsToCSV(fileBaseName: string, objects: any[], keySeparator?: string, lineSeparator?: string): void;
362
+ /**
363
+ * Convert objects to JSON format and download to file with .json
364
+ * extension appended to the provided base file name.
365
+ *
366
+ * @param fileBaseName base name of destination file
367
+ * @param objects object array to be converted to JSON format
368
+ * prior to writing to download destination
369
+ * @param indent optional parameter indicating space indentation for pretty output. Default is 2
370
+ */
371
+ declare function downloadObjectsToJSON(fileBaseName: string, objects: any[], indent?: number): void;
372
+ /**
373
+ * Download string content to the specified file with desired mime type.
374
+ *
375
+ * @param fileName full filename (including appropriate extension) of destination file
376
+ * @param contents string contents to be written to download destination
377
+ * @param mimeType mime type appropriate to file content to support consumption of destination file
378
+ */
379
+ declare function downloadFile(fileName: string, contents: string, mimeType?: string): void;
380
+
381
+ /**
382
+ * Read file as UTF-8 text. Return string contents on read completion.
383
+ *
384
+ * @param file filename or File object
385
+ * @returns promise that resolves to file content string
386
+ */
387
+ declare function readFile(file: File): Promise<string>;
388
+
389
+ export { CovalentCommonModule, CovalentTextfieldValueAccessorDirective, CovalentValidators, TdAutoTrimDirective, TdBytesPipe, TdDecimalBytesPipe, TdDigitsPipe, TdFullscreenDirective, TdTimeAgoPipe, TdTimeDifferencePipe, TdTimeUntilPipe, TdTruncatePipe, convertCSVToJSON, convertObjectsToCSV, copyToClipboard, downloadCSV, downloadFile, downloadJSON, downloadObjectsToCSV, downloadObjectsToJSON, formatJSON, mixinControlValueAccessor, mixinDisableRipple, mixinDisabled, readFile, tdBounceAnimation, tdCollapseAnimation, tdFadeInOutAnimation, tdFlashAnimation, tdHeadshakeAnimation, tdJelloAnimation, tdPulseAnimation, tdRotateAnimation };
390
+ export type { ICanDisable, ICanDisableRipple, ICollapseAnimation, IControlValueAccessor, IFadeInOutAnimation, IHasChangeDetectorRef, IRotateAnimation };