@covalent/core 10.4.0-beta.3 → 11.0.0-beta.2

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 +9 -9
  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,127 +0,0 @@
1
- import { RendererFactory2 } from '@angular/core';
2
- import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
3
- import { ComponentType } from '@angular/cdk/portal';
4
- import { TdAlertDialogComponent } from '../alert-dialog/alert-dialog.component';
5
- import { TdConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component';
6
- import { TdPromptDialogComponent } from '../prompt-dialog/prompt-dialog.component';
7
- import { DragDrop, DragRef } from '@angular/cdk/drag-drop';
8
- import { Subject } from 'rxjs';
9
- import { TdStatusDialogStates, TdStatusDialogComponent, TdStatusDialogDetailsLabels } from '../status-dialog/status-dialog.component';
10
- import * as i0 from "@angular/core";
11
- export interface IDialogConfig extends MatDialogConfig {
12
- title?: string;
13
- message: string;
14
- }
15
- export interface IAlertConfig extends IDialogConfig {
16
- closeButton?: string;
17
- }
18
- export interface IConfirmConfig extends IDialogConfig {
19
- acceptButton?: string;
20
- cancelButton?: string;
21
- isDestructive?: boolean;
22
- }
23
- export interface IPromptConfig extends IConfirmConfig {
24
- value?: string;
25
- }
26
- export interface IStatusConfig extends IAlertConfig {
27
- state?: TdStatusDialogStates;
28
- details?: string;
29
- detailsLabels?: TdStatusDialogDetailsLabels;
30
- }
31
- export interface IDraggableConfig<T> {
32
- component: ComponentType<T>;
33
- config?: MatDialogConfig;
34
- dragHandleSelectors?: string[];
35
- draggableClass?: string;
36
- }
37
- export interface IDraggableRefs<T> {
38
- matDialogRef: MatDialogRef<T>;
39
- dragRefSubject: Subject<DragRef>;
40
- }
41
- export declare class TdDialogService {
42
- private _document;
43
- private _dialogService;
44
- private _dragDrop;
45
- private rendererFactory;
46
- private _renderer2;
47
- constructor(_document: any, _dialogService: MatDialog, _dragDrop: DragDrop, rendererFactory: RendererFactory2);
48
- /**
49
- * params:
50
- * - component: ComponentType<T>
51
- * - config: MatDialogConfig
52
- * Wrapper function over the open() method in MatDialog.
53
- * Opens a modal dialog containing the given component.
54
- */
55
- open<T>(component: ComponentType<T>, config?: MatDialogConfig): MatDialogRef<T>;
56
- /**
57
- * Wrapper function over the closeAll() method in MatDialog.
58
- * Closes all of the currently-open dialogs.
59
- */
60
- closeAll(): void;
61
- /**
62
- * params:
63
- * - config: IAlertConfig {
64
- * message: string;
65
- * title?: string;
66
- * viewContainerRef?: ViewContainerRef;
67
- * closeButton?: string;
68
- * }
69
- *
70
- * Opens an alert dialog with the provided config.
71
- * Returns an MatDialogRef<TdAlertDialogComponent> object.
72
- */
73
- openAlert(config: IAlertConfig): MatDialogRef<TdAlertDialogComponent>;
74
- /**
75
- * params:
76
- * - config: IConfirmConfig {
77
- * message: string;
78
- * title?: string;
79
- * viewContainerRef?: ViewContainerRef;
80
- * acceptButton?: string;
81
- * cancelButton?: string;
82
- * isDestructive?: boolean;
83
- * }
84
- *
85
- * Opens a confirm dialog with the provided config.
86
- * Returns an MatDialogRef<TdConfirmDialogComponent> object.
87
- */
88
- openConfirm(config: IConfirmConfig): MatDialogRef<TdConfirmDialogComponent>;
89
- /**
90
- * params:
91
- * - config: IPromptConfig {
92
- * message: string;
93
- * title?: string;
94
- * value?: string;
95
- * viewContainerRef?: ViewContainerRef;
96
- * acceptButton?: string;
97
- * cancelButton?: string;
98
- * }
99
- *
100
- * Opens a prompt dialog with the provided config.
101
- * Returns an MatDialogRef<TdPromptDialogComponent> object.
102
- */
103
- openPrompt(config: IPromptConfig): MatDialogRef<TdPromptDialogComponent>;
104
- /**
105
- * Opens a draggable dialog containing the given component.
106
- */
107
- openDraggable<T>({ component, config, dragHandleSelectors, draggableClass, }: IDraggableConfig<T>): IDraggableRefs<T>;
108
- private _createConfig;
109
- /**
110
- * params:
111
- * - config: IStatusConfig {
112
- * closeButton?: string;
113
- * details?: string;
114
- * detailsLabels?: TdStatusDialogDetailsLabels;
115
- * message: string;
116
- * state?: 'error' | 'positive' | 'warning'
117
- * title?: string;
118
- * viewContainerRef?: ViewContainerRef;
119
- * }
120
- *
121
- * Opens a status dialog with the provided config.
122
- * Returns an MatDialogRef<TdStatusDialogComponent> object.
123
- */
124
- openStatus(config: IStatusConfig): MatDialogRef<TdStatusDialogComponent>;
125
- static ɵfac: i0.ɵɵFactoryDeclaration<TdDialogService, never>;
126
- static ɵprov: i0.ɵɵInjectableDeclaration<TdDialogService>;
127
- }
@@ -1,23 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export type TdStatusDialogStates = 'error' | 'positive' | 'warning';
4
- export type TdStatusDialogDetailsLabels = {
5
- showDetailsLabel: string;
6
- hideDetailsLabel: string;
7
- };
8
- export declare class TdStatusDialogComponent {
9
- private _dialogRef;
10
- closeButton?: string;
11
- message?: string;
12
- state?: TdStatusDialogStates;
13
- title?: string;
14
- details?: string;
15
- showDetails?: boolean | undefined;
16
- detailsLabels?: TdStatusDialogDetailsLabels;
17
- constructor(_dialogRef: MatDialogRef<TdStatusDialogComponent>);
18
- close(): void;
19
- getStatusIcon(): string;
20
- toggleDetails(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TdStatusDialogComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TdStatusDialogComponent, "td-status-dialog", never, {}, {}, never, never, true, never>;
23
- }
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { ThemePalette } from '@angular/material/core';
3
- import * as i0 from "@angular/core";
4
- export declare class TdWindowDialogComponent {
5
- toolbarColor?: ThemePalette;
6
- docked?: boolean | undefined;
7
- title?: string;
8
- toggleDockedStateLabel?: string;
9
- closeLabel?: string;
10
- dockToggled: EventEmitter<boolean>;
11
- closed: EventEmitter<void>;
12
- toolbarHeight: number;
13
- toggleDockedState(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TdWindowDialogComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TdWindowDialogComponent, "td-window-dialog", never, { "toolbarColor": { "alias": "toolbarColor"; "required": false; }; "docked": { "alias": "docked"; "required": false; }; "title": { "alias": "title"; "required": false; }; "toggleDockedStateLabel": { "alias": "toggleDockedStateLabel"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; }, { "dockToggled": "dockToggled"; "closed": "closed"; }, never, ["*"], true, never>;
16
- }
@@ -1,12 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { MatMenu } from '@angular/material/menu';
3
- import { IMenuItem, ITdDynamicMenuLinkClickEvent } from '../dynamic-menu.menu';
4
- import * as i0 from "@angular/core";
5
- export declare class TdDynamicMenuItemComponent {
6
- items: IMenuItem[];
7
- itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent>;
8
- childMenu: MatMenu;
9
- emitClicked(event: ITdDynamicMenuLinkClickEvent): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TdDynamicMenuItemComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TdDynamicMenuItemComponent, "td-dynamic-menu-item", never, { "items": { "alias": "items"; "required": false; }; }, { "itemClicked": "itemClicked"; }, never, never, true, never>;
12
- }
@@ -1,10 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { IMenuItem, ITdDynamicMenuLinkClickEvent } from '../../dynamic-menu.menu';
3
- import * as i0 from "@angular/core";
4
- export declare class TdDynamicMenuLinkComponent {
5
- item: IMenuItem;
6
- itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent>;
7
- emitClicked(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TdDynamicMenuLinkComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<TdDynamicMenuLinkComponent, "td-dynamic-menu-link", never, { "item": { "alias": "item"; "required": false; }; }, { "itemClicked": "itemClicked"; }, never, never, true, never>;
10
- }
@@ -1,11 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { IMenuItem, IMenuTrigger, ITdDynamicMenuLinkClickEvent } from './dynamic-menu.menu';
3
- import * as i0 from "@angular/core";
4
- export declare class TdDynamicMenuComponent {
5
- trigger: IMenuTrigger;
6
- items: IMenuItem[];
7
- itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent>;
8
- emitClicked(event: ITdDynamicMenuLinkClickEvent): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TdDynamicMenuComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<TdDynamicMenuComponent, "td-dynamic-menu", never, { "trigger": { "alias": "trigger"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "itemClicked": "itemClicked"; }, never, never, true, never>;
11
- }
@@ -1,22 +0,0 @@
1
- export interface IMenuTrigger {
2
- id?: string;
3
- text?: string;
4
- icon?: string;
5
- svgIcon?: string;
6
- iconClasses?: string[];
7
- }
8
- export interface IMenuItem {
9
- id?: string;
10
- text: string;
11
- icon?: string;
12
- svgIcon?: string;
13
- iconClasses?: string[];
14
- children?: IMenuItem[];
15
- link?: string;
16
- newTab?: boolean;
17
- action?: string;
18
- }
19
- export interface ITdDynamicMenuLinkClickEvent {
20
- text: string;
21
- action?: string;
22
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dynamic-menu.component";
3
- import * as i2 from "./dynamic-menu-item/dynamic-menu-item.component";
4
- import * as i3 from "./dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component";
5
- /**
6
- * @deprecated This module is deprecated and will be removed in future versions.
7
- * Please migrate to using standalone components as soon as possible.
8
- */
9
- export declare class CovalentDynamicMenuModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CovalentDynamicMenuModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentDynamicMenuModule, never, [typeof i1.TdDynamicMenuComponent, typeof i2.TdDynamicMenuItemComponent, typeof i3.TdDynamicMenuLinkComponent], [typeof i1.TdDynamicMenuComponent, typeof i2.TdDynamicMenuItemComponent, typeof i3.TdDynamicMenuLinkComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<CovalentDynamicMenuModule>;
13
- }
@@ -1,5 +0,0 @@
1
- export * from './dynamic-menu.module';
2
- export * from './dynamic-menu.menu';
3
- export * from './dynamic-menu.component';
4
- export * from './dynamic-menu-item/dynamic-menu-item.component';
5
- export * from './dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component';
@@ -1,50 +0,0 @@
1
- import { EventEmitter, ElementRef, Renderer2, OnInit, OnDestroy, NgZone } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TdFileDropBase {
4
- }
5
- export declare class TdFileDropDirective implements OnInit, OnDestroy {
6
- private _renderer;
7
- private _element;
8
- private _ngZone;
9
- private _multiple;
10
- private _dragenterListener?;
11
- private _dragleaveListener?;
12
- private _dragoverListener?;
13
- /**
14
- * multiple?: boolean
15
- * Sets whether multiple files can be dropped at once in host element, or just a single file.
16
- * Can also be 'multiple' native attribute.
17
- */
18
- set multiple(multiple: boolean | string);
19
- disabled?: boolean | undefined;
20
- /**
21
- * fileDrop?: function
22
- * Event emitted when a file or files are dropped in host element after being validated.
23
- * Emits a [FileList | File] object.
24
- */
25
- fileDrop: EventEmitter<FileList | File>;
26
- /**
27
- * Binds native 'multiple' attribute if [multiple] property is 'true'.
28
- */
29
- get multipleBinding(): string | undefined;
30
- /**
31
- * Binds native 'disabled' attribute if [disabled] property is 'true'.
32
- */
33
- get disabledBinding(): string | undefined;
34
- constructor(_renderer: Renderer2, _element: ElementRef<HTMLElement>, _ngZone: NgZone);
35
- ngOnInit(): void;
36
- ngOnDestroy(): void;
37
- /**
38
- * Listens to 'drop' host event to get validated transfer items.
39
- * Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
40
- * Stops event propagation and default action from browser for 'drop' event.
41
- */
42
- onDrop(event: Event): void;
43
- /**
44
- * Validates if the transfer item types are 'Files'.
45
- */
46
- private _typeCheck;
47
- private _stopEvent;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileDropDirective, never>;
49
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileDropDirective, "[tdFileDrop]", never, { "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "fileDrop": "fileDrop"; }, never, never, true, never>;
50
- }
@@ -1,33 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class TdFileSelectDirective {
5
- private model;
6
- private _multiple;
7
- /**
8
- * multiple?: boolean
9
- * Sets whether multiple files can be selected at once in host element, or just a single file.
10
- * Can also be 'multiple' native attribute.
11
- */
12
- set multiple(multiple: boolean | string);
13
- /**
14
- * fileSelect?: function
15
- * Event emitted when a file or files are selected in host [HTMLInputElement].
16
- * Emits a [FileList | File] object.
17
- * Alternative to not use [(ngModel)].
18
- */
19
- fileSelect: EventEmitter<FileList | File>;
20
- /**
21
- * Binds native 'multiple' attribute if [multiple] property is 'true'.
22
- */
23
- get multipleBinding(): string | undefined;
24
- constructor(model: NgModel);
25
- /**
26
- * Listens to 'change' host event to get [HTMLInputElement] files.
27
- * Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
28
- * Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
29
- */
30
- onChange(event: Event): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileSelectDirective, [{ optional: true; host: true; }]>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileSelectDirective, "[tdFileSelect]", never, { "multiple": { "alias": "multiple"; "required": false; }; }, { "fileSelect": "fileSelect"; }, never, never, true, never>;
33
- }
@@ -1,67 +0,0 @@
1
- import { EventEmitter, ElementRef, Renderer2, TemplateRef, ViewContainerRef, ChangeDetectorRef, OnInit, OnDestroy, NgZone } from '@angular/core';
2
- import { TemplatePortalDirective } from '@angular/cdk/portal';
3
- import { ICanDisable, IControlValueAccessor } from '@covalent/core/common';
4
- import * as i0 from "@angular/core";
5
- export declare class TdFileInputLabelDirective extends TemplatePortalDirective {
6
- constructor(templateRef: TemplateRef<unknown>, viewContainerRef: ViewContainerRef);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileInputLabelDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileInputLabelDirective, "[tdFileInputLabel]ng-template", never, {}, {}, never, never, true, never>;
9
- }
10
- export declare class TdFileInputBase {
11
- _changeDetectorRef: ChangeDetectorRef;
12
- constructor(_changeDetectorRef: ChangeDetectorRef);
13
- }
14
- export declare const _TdFileInputMixinBase: (new (...args: any[]) => IControlValueAccessor) & (new (...args: any[]) => ICanDisable) & typeof TdFileInputBase;
15
- export declare class TdFileInputComponent extends _TdFileInputMixinBase implements OnInit, OnDestroy, IControlValueAccessor, ICanDisable {
16
- private _ngZone;
17
- private _renderer;
18
- private _multiple;
19
- /** The native `<button class="td-file-input"></button>` element */
20
- _inputButton: ElementRef<HTMLElement>;
21
- /** The native `<input type="file"> element */
22
- _inputElement: ElementRef<HTMLInputElement>;
23
- get inputElement(): HTMLInputElement;
24
- /**
25
- * color?: 'accent' | 'primary' | 'warn'
26
- * Sets button color. Uses same color palette accepted as [MatButton].
27
- */
28
- color?: 'accent' | 'primary' | 'warn';
29
- /**
30
- * multiple?: boolean
31
- * Sets if multiple files can be dropped/selected at once in [TdFileInputComponent].
32
- */
33
- set multiple(multiple: boolean | string);
34
- get multiple(): boolean;
35
- /**
36
- * accept?: string
37
- * Sets files accepted when opening the file browser dialog.
38
- * Same as 'accept' attribute in <input/> element.
39
- */
40
- accept?: string;
41
- /**
42
- * select?: function
43
- * Event emitted a file is selected
44
- * Emits a [File | FileList] object.
45
- */
46
- selectFile: EventEmitter<File | FileList>;
47
- private _destroy$;
48
- constructor(_ngZone: NgZone, _renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef);
49
- ngOnInit(): void;
50
- ngOnDestroy(): void;
51
- /**
52
- * Method executed when a file is selected.
53
- */
54
- handleSelect(files: File | FileList): void;
55
- /**
56
- * Used to clear the selected files from the [TdFileInputComponent].
57
- */
58
- clear(): void;
59
- /** Method executed when the disabled value changes */
60
- onDisabledChange(v: boolean): void;
61
- /**
62
- * Sets disable to the component. Implemented as part of ControlValueAccessor.
63
- */
64
- setDisabledState(isDisabled: boolean): void;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileInputComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<TdFileInputComponent, "td-file-input", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "selectFile": "selectFile"; }, never, ["*"], true, never>;
67
- }
@@ -1,91 +0,0 @@
1
- import { EventEmitter, ChangeDetectorRef } from '@angular/core';
2
- import { TdFileInputComponent, TdFileInputLabelDirective } from '../file-input/file-input.component';
3
- import { ControlValueAccessor } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class TdFileUploadBase {
6
- _changeDetectorRef: ChangeDetectorRef;
7
- constructor(_changeDetectorRef: ChangeDetectorRef);
8
- }
9
- export declare class TdFileUploadComponent implements ControlValueAccessor {
10
- private _changeDetectorRef;
11
- private _multiple;
12
- private _required;
13
- private _disabled;
14
- fileInput?: TdFileInputComponent;
15
- inputLabel?: TdFileInputLabelDirective;
16
- /**
17
- * defaultColor?: 'accent' | 'primary' | 'warn'
18
- * Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
19
- */
20
- defaultColor: 'accent' | 'primary' | 'warn';
21
- /**
22
- * activeColor?: 'accent' | 'primary' | 'warn'
23
- * Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
24
- */
25
- activeColor: 'accent' | 'primary' | 'warn';
26
- /**
27
- * cancelColor?: 'accent' | 'primary' | 'warn'
28
- * Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
29
- */
30
- cancelColor: 'accent' | 'primary' | 'warn';
31
- /**
32
- * multiple?: boolean
33
- * Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
34
- */
35
- set multiple(multiple: boolean);
36
- get multiple(): boolean;
37
- /**
38
- * required?: boolean
39
- * Forces at least one file upload.
40
- * Defaults to 'false'
41
- */
42
- set required(required: boolean);
43
- get required(): boolean;
44
- /**
45
- * accept?: string
46
- * Sets files accepted when opening the file browser dialog.
47
- * Same as 'accept' attribute in <input/> element.
48
- */
49
- accept?: string;
50
- set disabled(disabled: boolean);
51
- get disabled(): boolean;
52
- value?: File | FileList | undefined;
53
- /**
54
- * select?: function
55
- * Event emitted when a file is selected.
56
- * Emits a [File | FileList] object.
57
- */
58
- selectFile: EventEmitter<File | FileList>;
59
- /**
60
- * upload?: function
61
- * Event emitted when upload button is clicked.
62
- * Emits a [File | FileList] object.
63
- */
64
- upload: EventEmitter<File | FileList | unknown>;
65
- /**
66
- * cancel?: function
67
- * Event emitted when cancel button is clicked.
68
- */
69
- cancel: EventEmitter<void>;
70
- constructor(_changeDetectorRef: ChangeDetectorRef);
71
- writeValue(value: File | FileList): void;
72
- registerOnChange(): void;
73
- registerOnTouched(): void;
74
- /**
75
- * Method executed when upload button is clicked.
76
- */
77
- uploadPressed(): void;
78
- /**
79
- * Method executed when a file is selected.
80
- */
81
- handleSelect(value: File | FileList | undefined): void;
82
- /**
83
- * Methods executed when cancel button is clicked.
84
- * Clears files.
85
- */
86
- _cancel(): void;
87
- /** Method executed when the disabled value changes */
88
- onDisabledChange(v: boolean): void;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileUploadComponent, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<TdFileUploadComponent, "td-file-upload", never, { "defaultColor": { "alias": "defaultColor"; "required": false; }; "activeColor": { "alias": "activeColor"; "required": false; }; "cancelColor": { "alias": "cancelColor"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectFile": "selectFile"; "upload": "upload"; "cancel": "cancel"; }, ["inputLabel"], ["*"], true, never>;
91
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./directives/file-select.directive";
3
- import * as i2 from "./directives/file-drop.directive";
4
- import * as i3 from "./file-upload/file-upload.component";
5
- import * as i4 from "./file-input/file-input.component";
6
- /**
7
- * @deprecated This module is deprecated and will be removed in future versions.
8
- * Please migrate to using standalone components as soon as possible.
9
- */
10
- export declare class CovalentFileModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CovalentFileModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentFileModule, never, [typeof i1.TdFileSelectDirective, typeof i2.TdFileDropDirective, typeof i3.TdFileUploadComponent, typeof i4.TdFileInputComponent, typeof i4.TdFileInputLabelDirective], [typeof i1.TdFileSelectDirective, typeof i2.TdFileDropDirective, typeof i3.TdFileUploadComponent, typeof i4.TdFileInputComponent, typeof i4.TdFileInputLabelDirective]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<CovalentFileModule>;
14
- }
@@ -1,6 +0,0 @@
1
- export * from './file.module';
2
- export * from './directives/file-drop.directive';
3
- export * from './directives/file-select.directive';
4
- export * from './file-input/file-input.component';
5
- export * from './file-upload/file-upload.component';
6
- export * from './services/file.service';
@@ -1,34 +0,0 @@
1
- import { HttpClient, HttpEvent } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export interface IUploadExtras {
5
- headers?: {
6
- [name: string]: string | string[];
7
- };
8
- params?: {
9
- [param: string]: string | string[];
10
- };
11
- }
12
- export declare class TdFileService {
13
- private readonly _http;
14
- private _progressSubject;
15
- private _progressObservable;
16
- /**
17
- * Gets progress observable to keep track of the files being uploaded.
18
- * Needs to be supported by backend.
19
- */
20
- get progress(): Observable<number>;
21
- /**
22
- * Creates a new instance
23
- * @param _http the http client instance
24
- * @breaking-change 3.0.0 remove 'Optional' decorator once the legay upload method is removed
25
- */
26
- constructor(_http: HttpClient);
27
- /**
28
- * Uploads a file to a URL.
29
- */
30
- send(url: string, method: string, body: File | FormData, { headers, params }?: IUploadExtras): Observable<HttpEvent<any>>;
31
- private handleEvent;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<TdFileService, [{ optional: true; }]>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<TdFileService>;
34
- }
@@ -1,24 +0,0 @@
1
- import { AnimationTriggerMetadata } from '@angular/animations';
2
- export interface IAnimationOptions {
3
- anchor?: string;
4
- duration?: number;
5
- delay?: number;
6
- }
7
- export interface ICollapseAnimation extends IAnimationOptions {
8
- easeOnClose?: string;
9
- easeOnOpen?: string;
10
- }
11
- /**
12
- * const tdCollapseAnimation
13
- *
14
- * Parameter Options:
15
- * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
16
- * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
17
- * * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in.
18
- * * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out.
19
- *
20
- * Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
21
- *
22
- * usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
23
- */
24
- export declare const tdCollapseAnimation: AnimationTriggerMetadata;
@@ -1,78 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { Dir } from '@angular/cdk/bidi';
3
- import * as i0 from "@angular/core";
4
- export declare class TdJsonFormatterComponent {
5
- private _changeDetectorRef;
6
- private _dir;
7
- /**
8
- * Max length for property names. Any names bigger than this get trunctated.
9
- */
10
- private static KEY_MAX_LENGTH;
11
- /**
12
- * Max length for preview string. Any names bigger than this get trunctated.
13
- */
14
- private static PREVIEW_STRING_MAX_LENGTH;
15
- /**
16
- * Max tooltip preview elements.
17
- */
18
- private static PREVIEW_LIMIT;
19
- private _key?;
20
- private _data;
21
- private _children?;
22
- private _open;
23
- private _levelsOpen;
24
- /**
25
- * levelsOpen?: number
26
- * Levels opened by default when JS object is formatted and rendered.
27
- */
28
- set levelsOpen(levelsOpen: number);
29
- get levelsOpen(): number;
30
- get open(): boolean;
31
- /**
32
- * key?: string
33
- * Tag to be displayed next to formatted object.
34
- */
35
- set key(key: string);
36
- get key(): string;
37
- /**
38
- * data: any
39
- * JS object to be formatted.
40
- */
41
- set data(data: Record<string, any>);
42
- get data(): Record<string, any>;
43
- get children(): string[];
44
- get isRTL(): boolean;
45
- constructor(_changeDetectorRef: ChangeDetectorRef, _dir: Dir);
46
- /**
47
- * Refreshes json-formatter and rerenders [data]
48
- */
49
- refresh(): void;
50
- /**
51
- * Toggles collapse/expanded state of component.
52
- */
53
- toggle(): void;
54
- isObject(): boolean;
55
- isArray(): boolean;
56
- hasChildren(): boolean;
57
- /**
58
- * Gets parsed value depending on value type.
59
- */
60
- getValue(value: any): string;
61
- /**
62
- * Gets type of object.
63
- * returns 'null' if object is null and 'date' if value is object and can be parsed to a date.
64
- */
65
- getType(object: any): string;
66
- /**
67
- * Generates string representation depending if its an object or function.
68
- * see: http://stackoverflow.com/a/332429
69
- */
70
- getObjectName(): string;
71
- /**
72
- * Creates preview of nodes children to render in tooltip depending if its an array or an object.
73
- */
74
- getPreview(): string;
75
- private parseChildren;
76
- static ɵfac: i0.ɵɵFactoryDeclaration<TdJsonFormatterComponent, [null, { optional: true; }]>;
77
- 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>;
78
- }