@covalent/core 10.4.0-beta.3 → 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
package/search/index.d.ts CHANGED
@@ -1,5 +1,183 @@
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';
4
+ import { MatInput } from '@angular/material/input';
5
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
6
+ import { IControlValueAccessor } from '@covalent/core/common';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+
9
+ declare class TdSearchInputBase {
10
+ _changeDetectorRef: ChangeDetectorRef;
11
+ constructor(_changeDetectorRef: ChangeDetectorRef);
12
+ }
13
+ declare const _TdSearchInputMixinBase: (new (...args: any[]) => IControlValueAccessor) & typeof TdSearchInputBase;
14
+ declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements IControlValueAccessor, OnInit, OnDestroy {
15
+ private _dir;
16
+ _changeDetectorRef: ChangeDetectorRef;
17
+ private _ngZone;
18
+ _input?: MatInput;
19
+ _searchElement: ElementRef<HTMLInputElement>;
20
+ /**
21
+ * appearance?: MatFormFieldAppearance
22
+ * Appearance style for the underlying input component.
23
+ */
24
+ appearance: MatFormFieldAppearance;
25
+ /**
26
+ * showUnderline?: boolean
27
+ * Sets if the input underline should be visible. Defaults to 'false'.
28
+ */
29
+ showUnderline: boolean;
30
+ /**
31
+ * debounce?: number
32
+ * Debounce timeout between keypresses. Defaults to 400.
33
+ */
34
+ debounce: number;
35
+ /**
36
+ * placeholder?: string
37
+ * Placeholder for the underlying input component.
38
+ */
39
+ placeholder: string;
40
+ /**
41
+ * clearIcon?: string
42
+ * The icon used to clear the search input.
43
+ * Defaults to 'cancel' icon.
44
+ */
45
+ clearIcon: string;
46
+ value: unknown;
47
+ /**
48
+ * searchDebounce: function($event)
49
+ * Event emitted after the [debounce] timeout.
50
+ */
51
+ searchDebounce: EventEmitter<string>;
52
+ /**
53
+ * search: function($event)
54
+ * Event emitted after the key enter has been pressed.
55
+ */
56
+ search: EventEmitter<string>;
57
+ /**
58
+ * clear: function()
59
+ * Event emitted after the clear icon has been clicked.
60
+ */
61
+ clear: EventEmitter<void>;
62
+ /**
63
+ * blur: function()
64
+ * Event emitted after the blur event has been called in underlying input.
65
+ */
66
+ blurSearch: EventEmitter<void>;
67
+ get isRTL(): boolean;
68
+ private _destroy$;
69
+ constructor(_dir: Dir, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone);
70
+ ngOnInit(): void;
71
+ ngOnDestroy(): void;
72
+ /**
73
+ * Method to focus to underlying input.
74
+ */
75
+ focus(): void;
76
+ handleBlur(): void;
77
+ handleSearch(event: Event): void;
78
+ /**
79
+ * Method to clear the underlying input.
80
+ */
81
+ clearSearch(): void;
82
+ private _searchTermChanged;
83
+ 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>;
86
+ }
87
+
88
+ declare class TdSearchBoxBase {
89
+ _changeDetectorRef: ChangeDetectorRef;
90
+ constructor(_changeDetectorRef: ChangeDetectorRef);
91
+ }
92
+ declare class TdSearchBoxComponent implements ControlValueAccessor {
93
+ private _changeDetectorRef;
94
+ private _searchVisible;
95
+ _searchInput?: TdSearchInputComponent;
96
+ get searchVisible(): boolean;
97
+ /**
98
+ * backIcon?: string
99
+ * The icon used to close the search toggle, only shown when [alwaysVisible] is false.
100
+ * Defaults to 'search' icon.
101
+ */
102
+ backIcon: string;
103
+ /**
104
+ * searchIcon?: string
105
+ * The icon used to open/focus the search toggle.
106
+ * Defaults to 'search' icon.
107
+ */
108
+ searchIcon: string;
109
+ /**
110
+ * clearIcon?: string
111
+ * The icon used to clear the search input.
112
+ * Defaults to 'cancel' icon.
113
+ */
114
+ clearIcon: string;
115
+ /**
116
+ * showUnderline?: boolean
117
+ * Sets if the input underline should be visible. Defaults to 'false'.
118
+ */
119
+ showUnderline: boolean;
120
+ /**
121
+ * debounce?: number
122
+ * Debounce timeout between keypresses. Defaults to 400.
123
+ */
124
+ debounce: number;
125
+ /**
126
+ * alwaysVisible?: boolean
127
+ * Sets if the input should always be visible. Defaults to 'false'.
128
+ */
129
+ alwaysVisible: boolean;
130
+ /**
131
+ * placeholder?: string
132
+ * Placeholder for the underlying input component.
133
+ */
134
+ placeholder: string;
135
+ value: unknown;
136
+ /**
137
+ * searchDebounce: function($event)
138
+ * Event emitted after the [debounce] timeout.
139
+ */
140
+ searchDebounce: EventEmitter<string>;
141
+ /**
142
+ * search: function($event)
143
+ * Event emitted after the key enter has been pressed.
144
+ */
145
+ search: EventEmitter<string>;
146
+ /**
147
+ * clear: function()
148
+ * Event emitted after the clear icon has been clicked.
149
+ */
150
+ clear: EventEmitter<void>;
151
+ /**
152
+ * blur: function()
153
+ * Event emitted after the blur event has been called in underlying input.
154
+ */
155
+ blurSearch: EventEmitter<void>;
156
+ constructor(_changeDetectorRef: ChangeDetectorRef);
157
+ writeValue(value: unknown): void;
158
+ registerOnChange(): void;
159
+ registerOnTouched(): void;
160
+ /**
161
+ * Method executed when the search icon is clicked.
162
+ */
163
+ searchClicked(): void;
164
+ toggleVisibility(): void;
165
+ handleSearchDebounce(value: string): void;
166
+ handleSearch(value: string): void;
167
+ handleClear(): void;
168
+ handleBlur(): void;
169
+ 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>;
171
+ }
172
+
1
173
  /**
2
- * Generated bundle index. Do not edit.
174
+ * @deprecated This module is deprecated and will be removed in future versions.
175
+ * Please migrate to using standalone components as soon as possible.
3
176
  */
4
- /// <amd-module name="@covalent/core/search" />
5
- export * from './public_api';
177
+ declare class CovalentSearchModule {
178
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSearchModule, never>;
179
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentSearchModule, never, [typeof TdSearchInputComponent, typeof TdSearchBoxComponent], [typeof TdSearchInputComponent, typeof TdSearchBoxComponent]>;
180
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentSearchModule>;
181
+ }
182
+
183
+ export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent, _TdSearchInputMixinBase };
@@ -1,5 +1,266 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, ChangeDetectorRef, EventEmitter, ComponentRef, EmbeddedViewRef, OnDestroy, Injector, Type, InjectionToken, TemplateRef, OnInit, OnChanges, SimpleChanges } from '@angular/core';
3
+ import * as _angular_material_dialog_d_hlN3f_Hk from '@angular/material/dialog.d-hlN3f-Hk';
4
+ import { AnimationEvent } from '@angular/animations';
5
+ import { ConfigurableFocusTrapFactory, FocusOrigin, FocusMonitor } from '@angular/cdk/a11y';
6
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, DomPortal, ComponentType } from '@angular/cdk/portal';
7
+ import { MatDialogConfig, MatDialogRef, MatDialogContainer } from '@angular/material/dialog';
8
+ import { OverlayRef, Overlay } from '@angular/cdk/overlay';
9
+
10
+ declare enum SubPageMode {
11
+ pushed = "pushed",
12
+ shifted = "shifted",
13
+ none = "none"
14
+ }
15
+ declare class CovalentSideSheetConfig<D = any> extends MatDialogConfig<D> {
16
+ subPageMode?: string;
17
+ }
18
+
1
19
  /**
2
- * Generated bundle index. Do not edit.
20
+ * Base class for the `CovalentSideSheetContainer`. The base class does not implement
21
+ * animations as these are left to implementers of the side-sheet container.
3
22
  */
4
- /// <amd-module name="@covalent/core/side-sheet" />
5
- export * from './public_api';
23
+ declare abstract class _CovalentSideSheetContainerBase extends BasePortalOutlet {
24
+ protected _elementRef: ElementRef;
25
+ protected _focusTrapFactory: ConfigurableFocusTrapFactory;
26
+ protected _changeDetectorRef: ChangeDetectorRef;
27
+ /** The side-sheet configuration. */
28
+ _config: CovalentSideSheetConfig;
29
+ private _focusMonitor?;
30
+ protected _document: Document;
31
+ /** The portal outlet inside of this container into which the side-sheet content will be loaded. */
32
+ _portalOutlet: CdkPortalOutlet;
33
+ /** The class that traps and manages focus within the side-sheet. */
34
+ private _focusTrap;
35
+ /** Emits when an animation state changes. */
36
+ _animationStateChanged: EventEmitter<{
37
+ state: "opened" | "opening" | "closing" | "closed";
38
+ totalTime: number;
39
+ }>;
40
+ /** Element that was focused before the side-sheet was opened. Save this to restore upon close. */
41
+ private _elementFocusedBeforeSideSheetWasOpened;
42
+ /**
43
+ * Type of interaction that led to the side-sheet being closed. This is used to determine
44
+ * whether the focus style will be applied when returning focus to its original location
45
+ * after the side-sheet is closed.
46
+ */
47
+ _closeInteractionType: FocusOrigin | null;
48
+ /** ID of the element that should be considered as the side-sheet's label. */
49
+ _ariaLabelledBy: string | null;
50
+ /** ID for the container DOM element. */
51
+ _id: string;
52
+ constructor(_elementRef: ElementRef, _focusTrapFactory: ConfigurableFocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any,
53
+ /** The side-sheet configuration. */
54
+ _config: CovalentSideSheetConfig, _focusMonitor?: FocusMonitor | undefined);
55
+ /** Starts the side-sheet exit animation. */
56
+ abstract _startExitAnimation(): void;
57
+ /** Initializes the side-sheet container with the attached content. */
58
+ _initializeWithAttachedContent(): void;
59
+ /**
60
+ * Attach a ComponentPortal as content to this side-sheet container.
61
+ * @param portal Portal to be attached as the side-sheet content.
62
+ */
63
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
64
+ /**
65
+ * Attach a TemplatePortal as content to this side-sheet container.
66
+ * @param portal Portal to be attached as the side-sheet content.
67
+ */
68
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
69
+ /**
70
+ * Attaches a DOM portal to the side-sheet container.
71
+ * @param portal Portal to be attached.
72
+ * @deprecated To be turned into a method.
73
+ */
74
+ attachDomPortal: (portal: DomPortal) => void;
75
+ /** Moves focus back into the side-sheet if it was moved out. */
76
+ _recaptureFocus(): void;
77
+ /**
78
+ * Moves the focus inside the focus trap. When autoFocus is not set to 'side-sheet', if focus
79
+ * cannot be moved then focus will go to the side-sheet container.
80
+ */
81
+ protected _trapFocus(): void;
82
+ /** Restores focus to the element that was focused before the side-sheet opened. */
83
+ protected _restoreFocus(): void;
84
+ /** Sets up the focus trap. */
85
+ private _setupFocusTrap;
86
+ /** Captures the element that was focused before the side-sheet was opened. */
87
+ private _capturePreviouslyFocusedElement;
88
+ /** Focuses the side-sheet container. */
89
+ private _focusSideSheetContainer;
90
+ /** Returns whether focus is inside the side-sheet. */
91
+ private _containsFocus;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CovalentSideSheetContainerBase, [null, null, null, { optional: true; }, null, null]>;
93
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_CovalentSideSheetContainerBase, never, never, {}, {}, never, never, true, never>;
94
+ }
95
+ /**
96
+ * Internal component that wraps the generated side-sheet content.
97
+ * This animation below is the only reason for duplicating most of the Material dialog code
98
+ */
99
+ declare class CovalentSideSheetContainerComponent extends _CovalentSideSheetContainerBase {
100
+ /** State of the side-sheet animation. */
101
+ _state: 'void' | 'enter' | 'exit';
102
+ tdSideSheetContainerClass: boolean;
103
+ tabIndex: number;
104
+ arialModal: boolean;
105
+ idAttr: string;
106
+ roleAttr: _angular_material_dialog_d_hlN3f_Hk.D | undefined;
107
+ arialLabelByAttr: string | null;
108
+ arialDescribeByAttr: string | null;
109
+ arialLabelAttr: string | null | undefined;
110
+ get sideSheetAnimationState(): "enter" | "void" | "exit";
111
+ onAnimateStart($event: AnimationEvent): void;
112
+ onAnimateDone($event: AnimationEvent): void;
113
+ /** Callback, invoked whenever an animation on the host completes. */
114
+ _onAnimationDone({ toState, totalTime }: AnimationEvent): void;
115
+ /** Callback, invoked when an animation on the host starts. */
116
+ _onAnimationStart({ toState, totalTime }: AnimationEvent): void;
117
+ /** Starts the side-sheet exit animation. */
118
+ _startExitAnimation(): void;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetContainerComponent, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<CovalentSideSheetContainerComponent, "td-side-sheet-container", never, {}, {}, never, never, true, never>;
121
+ }
122
+
123
+ declare class CovalentSideSheetRef<T, R = any> extends MatDialogRef<T, R> {
124
+ overlayRef: OverlayRef;
125
+ config: CovalentSideSheetConfig;
126
+ _containerInstance: MatDialogContainer;
127
+ readonly id: string;
128
+ constructor(overlayRef: OverlayRef, config: CovalentSideSheetConfig, _containerInstance: MatDialogContainer, id?: string);
129
+ }
130
+ declare function _closeSideSheetVia<R>(ref: CovalentSideSheetRef<R>, interactionType: FocusOrigin, result?: R): void;
131
+
132
+ declare class _CovalentSideSheetBase<C extends _CovalentSideSheetContainerBase> implements OnDestroy {
133
+ private _overlay;
134
+ private _injector;
135
+ private _defaultOptions;
136
+ private _parentSideSheet;
137
+ private _sideSheetRefConstructor;
138
+ private _sideSheetContainerType;
139
+ private _sideSheetDataToken;
140
+ private _openSideSheetsAtThisLevel;
141
+ private readonly _afterAllClosedAtThisLevel;
142
+ private readonly _afterOpenedAtThisLevel;
143
+ private _animationStateSubscriptions;
144
+ private defaultSidebarConfig;
145
+ constructor(_overlay: Overlay, _injector: Injector, _defaultOptions: CovalentSideSheetConfig | undefined, _parentSideSheet: _CovalentSideSheetBase<C> | undefined, _sideSheetRefConstructor: Type<CovalentSideSheetRef<any>>, _sideSheetContainerType: Type<C>, _sideSheetDataToken: InjectionToken<unknown>);
146
+ /** Keeps track of the currently-open side-sheets. */
147
+ get openSideSheets(): CovalentSideSheetRef<unknown>[];
148
+ open<T, D = unknown, R = unknown>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: CovalentSideSheetConfig<D>): CovalentSideSheetRef<T, R>;
149
+ ngOnDestroy(): void;
150
+ /**
151
+ * Closes all of the currently-open side-sheets.
152
+ */
153
+ closeAll(): void;
154
+ private _createOverlay;
155
+ /**
156
+ * Attaches a container to a side-sheets's already-created overlay.
157
+ * @param overlay Reference to the side-sheet's underlying overlay.
158
+ * @param config The side-sheet configuration.
159
+ * @returns A promise resolving to a ComponentRef for the attached container.
160
+ */
161
+ private _attachSideSheetContainer;
162
+ /**
163
+ * Attaches the user-provided component to the already-created side sheet container.
164
+ * @param componentOrTemplateRef The type of component being loaded into the side-sheet,
165
+ * or a TemplateRef to instantiate as the content.
166
+ * @param dialogContainer Reference to the wrapping side-sheet container.
167
+ * @param overlayRef Reference to the overlay in which the side-sheet resides.
168
+ * @param config The side-sheet configuration.
169
+ * @returns A promise resolving to the CovalentSideSheetRef that should be returned to the user.
170
+ */
171
+ private _attachSideSheetContent;
172
+ private _createInjector;
173
+ /**
174
+ * Removes a side sheet from the array of open side sheets.
175
+ * @param sideSheetRef Side Sheet to be removed.
176
+ */
177
+ private _removeOpenSideSheet;
178
+ /** Closes all of the side-sheet in an array. */
179
+ private _closeSideSheets;
180
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CovalentSideSheetBase<any>, never>;
181
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_CovalentSideSheetBase<any>, never, never, {}, {}, never, never, true, never>;
182
+ }
183
+ /**
184
+ * Service to open Covalent Design side-sheet.
185
+ */
186
+ declare class CovalentSideSheet extends _CovalentSideSheetBase<CovalentSideSheetContainerComponent> {
187
+ constructor(overlay: Overlay, injector: Injector, defaultOptions: CovalentSideSheetConfig, parentSideSheet: CovalentSideSheet);
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheet, [null, null, { optional: true; }, { optional: true; skipSelf: true; }]>;
189
+ static ɵprov: i0.ɵɵInjectableDeclaration<CovalentSideSheet>;
190
+ }
191
+
192
+ /**
193
+ * Button that will close the current dialog.
194
+ */
195
+ declare class CovalentSideSheetCloseDirective implements OnInit, OnChanges {
196
+ dialogRef: CovalentSideSheetRef<any>;
197
+ private _elementRef;
198
+ private _dialog;
199
+ /** Screenreader label for the button. */
200
+ ariaLabel?: string;
201
+ /** Default to "button" to prevents accidental form submits. */
202
+ type: 'submit' | 'button' | 'reset';
203
+ /** Dialog close input. */
204
+ dialogResult: any;
205
+ _CovalentSideSheetClose: any;
206
+ onClick($event: MouseEvent): void;
207
+ constructor(dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
208
+ ngOnInit(): void;
209
+ ngOnChanges(changes: SimpleChanges): void;
210
+ _onButtonClick(event: MouseEvent): void;
211
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetCloseDirective, [{ optional: true; }, null, null]>;
212
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "td-side-sheet-close"; "required": false; }; "_CovalentSideSheetClose": { "alias": "CovalentSideSheetClose"; "required": false; }; }, {}, never, never, true, never>;
213
+ }
214
+ /**
215
+ * Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
216
+ */
217
+ declare class CovalentSideSheetTitleDirective implements OnInit {
218
+ private _dialogRef;
219
+ private _elementRef;
220
+ private _dialog;
221
+ /** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
222
+ id: string;
223
+ tdSideSheetTitle: boolean;
224
+ idAttr: string;
225
+ constructor(_dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
226
+ ngOnInit(): void;
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetTitleDirective, [{ optional: true; }, null, null]>;
228
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
229
+ }
230
+ /**
231
+ * Scrollable content container of a dialog.
232
+ */
233
+ declare class CovalentSideSheetContentDirective {
234
+ tdSideSheetContent: boolean;
235
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetContentDirective, never>;
236
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetContentDirective, "[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]", never, {}, {}, never, never, true, never>;
237
+ }
238
+ /**
239
+ * Container for the bottom action buttons in a dialog.
240
+ * Stays fixed to the bottom when scrolling.
241
+ */
242
+ declare class CovalentSideSheetActionsDirective {
243
+ tdSideSheetActions: boolean;
244
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetActionsDirective, never>;
245
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetActionsDirective, "[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]", never, {}, {}, never, never, true, never>;
246
+ }
247
+ /**
248
+ * Container for the wrapper part of the dialog
249
+ */
250
+ declare class CovalentSideSheetWrapperDirective {
251
+ tdSideSheetWrapper: boolean;
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetWrapperDirective, never>;
253
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetWrapperDirective, "[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]", never, {}, {}, never, never, true, never>;
254
+ }
255
+
256
+ /**
257
+ * @deprecated This module is deprecated and will be removed in future versions.
258
+ * Please migrate to using standalone components as soon as possible.
259
+ */
260
+ declare class CovalentSideSheetModule {
261
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetModule, never>;
262
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentSideSheetModule, never, [typeof CovalentSideSheetContainerComponent, typeof CovalentSideSheetActionsDirective, typeof CovalentSideSheetCloseDirective, typeof CovalentSideSheetContentDirective, typeof CovalentSideSheetTitleDirective, typeof CovalentSideSheetWrapperDirective], [typeof CovalentSideSheetActionsDirective, typeof CovalentSideSheetCloseDirective, typeof CovalentSideSheetContentDirective, typeof CovalentSideSheetTitleDirective, typeof CovalentSideSheetWrapperDirective]>;
263
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentSideSheetModule>;
264
+ }
265
+
266
+ export { CovalentSideSheet, CovalentSideSheetActionsDirective, CovalentSideSheetCloseDirective, CovalentSideSheetConfig, CovalentSideSheetContentDirective, CovalentSideSheetModule, CovalentSideSheetRef, CovalentSideSheetTitleDirective, CovalentSideSheetWrapperDirective, SubPageMode, _CovalentSideSheetBase, _closeSideSheetVia };
@@ -26,9 +26,18 @@
26
26
 
27
27
  $foreground: map-get(map-get($theme, color), foreground);
28
28
  $inverse-on-surface: map-get($foreground, inverse-on-surface);
29
+ $outline-variant: map-get($foreground, dividers);
30
+
31
+ .mat-divider {
32
+ --mat-divider-color: #{$outline-variant};
33
+ }
34
+
35
+ .mat-drawer-side {
36
+ --mat-sidenav-container-divider-color: #{$outline-variant};
37
+ }
29
38
 
30
39
  .mdc-tooltip__surface {
31
40
  // Tooltip fix to override the correct fill color in MDC styles
32
- --mdc-plain-tooltip-supporting-text-color: #{$inverse-on-surface};
41
+ --mat-tooltip-supporting-text-color: #{$inverse-on-surface};
33
42
  }
34
43
  }
@@ -244,8 +244,8 @@ $td-light-theme-background: (
244
244
  // todo: need to re-catalog used variables
245
245
  $td-light-theme-foreground: (
246
246
  base: $light-on-background,
247
- divider: $light-divider,
248
- dividers: $light-divider,
247
+ divider: $theme-light-colors-outline,
248
+ dividers: $theme-light-colors-outline-variant,
249
249
  disabled: $theme-light-colors-on-surface-38,
250
250
  disabled-button: $theme-light-colors-on-surface-38,
251
251
  disabled-text: $theme-light-colors-on-surface-38,
@@ -318,8 +318,8 @@ $td-dark-theme-background: (
318
318
  // todo: need to re-catalog used variables
319
319
  $td-dark-theme-foreground: (
320
320
  base: $dark-on-background,
321
- divider: $dark-divider,
322
- dividers: $dark-divider,
321
+ divider: $theme-dark-colors-outline,
322
+ dividers: $theme-dark-colors-outline-variant,
323
323
  disabled: $theme-dark-colors-on-surface-38,
324
324
  disabled-button: $theme-dark-colors-on-surface-38,
325
325
  disabled-text: $theme-dark-colors-on-surface-38,
@@ -331,9 +331,9 @@ $td-dark-theme-foreground: (
331
331
  icons: $dark-text-icon-on-background,
332
332
  inverse-on-surface: $theme-dark-colors-inverse-on-surface,
333
333
  text: $dark-on-surface,
334
- slider-min: $dark-on-surface,
335
- slider-off: $theme-dark-colors-on-surface-8,
336
- slider-off-active: $theme-dark-colors-on-surface-16,
334
+ slider-min: red,
335
+ slider-off: red,
336
+ slider-off-active: red,
337
337
  accent: $theme-dark-colors-on-primary,
338
338
  emphasis: $theme-dark-colors-on-emphasis,
339
339
  caution: $theme-dark-colors-on-caution,