@covalent/components 4.15.0 → 6.0.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 (206) hide show
  1. package/action-ribbon.mjs +148 -0
  2. package/alert.mjs +140 -0
  3. package/app-shell.mjs +94 -0
  4. package/button.mjs +20 -0
  5. package/card.mjs +70 -0
  6. package/check-list-item.mjs +18 -0
  7. package/checkbox.mjs +20 -0
  8. package/circular-progress.mjs +17 -0
  9. package/code-snippet.mjs +12142 -0
  10. package/covalent.mjs +44 -0
  11. package/covalent.umd.js +299 -0
  12. package/dialog.mjs +20 -0
  13. package/drawer.mjs +20 -0
  14. package/empty-state.mjs +66 -0
  15. package/icon-button.mjs +20 -0
  16. package/icon-check-toggle.mjs +71 -0
  17. package/icon-radio-toggle.mjs +62 -0
  18. package/icon.mjs +17 -0
  19. package/linear-progress.mjs +20 -0
  20. package/list-expansion.mjs +55 -0
  21. package/list-item.mjs +49 -0
  22. package/list.mjs +17 -0
  23. package/menu.mjs +17 -0
  24. package/nav-list-item.mjs +41 -0
  25. package/package.json +1 -1
  26. package/radio-list-item.mjs +18 -0
  27. package/radio.mjs +20 -0
  28. package/select.mjs +20 -0
  29. package/side-sheet.mjs +35 -0
  30. package/slider-range.mjs +17 -0
  31. package/slider.mjs +17 -0
  32. package/snackbar.mjs +20 -0
  33. package/status-header-item.mjs +28 -0
  34. package/status-header.mjs +74 -0
  35. package/switch.mjs +20 -0
  36. package/tab-bar.mjs +17 -0
  37. package/tab.mjs +20 -0
  38. package/text-lockup.mjs +53 -0
  39. package/textarea.mjs +20 -0
  40. package/textfield.mjs +24 -0
  41. package/textfield2.mjs +5 -0
  42. package/toolbar.mjs +23 -0
  43. package/tooltip.mjs +189 -0
  44. package/top-app-bar-fixed.mjs +24 -0
  45. package/top-app-bar.mjs +24 -0
  46. package/top-app-bar2.mjs +5 -0
  47. package/tree-list-item.mjs +82 -0
  48. package/tree-list.mjs +43 -0
  49. package/typography.mjs +31 -0
  50. package/actionRibbon.js +0 -16
  51. package/actionRibbon.js.LICENSE.txt +0 -75
  52. package/alert.js +0 -19
  53. package/alert.js.LICENSE.txt +0 -75
  54. package/appShell.js +0 -96
  55. package/appShell.js.LICENSE.txt +0 -131
  56. package/button.js +0 -38
  57. package/button.js.LICENSE.txt +0 -91
  58. package/card.js +0 -17
  59. package/card.js.LICENSE.txt +0 -23
  60. package/checkbox.js +0 -40
  61. package/checkbox.js.LICENSE.txt +0 -91
  62. package/circularProgress.js +0 -58
  63. package/circularProgress.js.LICENSE.txt +0 -41
  64. package/codeSnippet.js +0 -8
  65. package/codeSnippet.js.LICENSE.txt +0 -23
  66. package/dialog.js +0 -28
  67. package/dialog.js.LICENSE.txt +0 -165
  68. package/drawer.js +0 -18
  69. package/drawer.js.LICENSE.txt +0 -90
  70. package/emptyState.js +0 -25
  71. package/emptyState.js.LICENSE.txt +0 -29
  72. package/formField.js +0 -7
  73. package/formField.js.LICENSE.txt +0 -61
  74. package/icon.js +0 -2
  75. package/icon.js.LICENSE.txt +0 -29
  76. package/iconButton.js +0 -26
  77. package/iconButton.js.LICENSE.txt +0 -85
  78. package/iconCheckbox.js +0 -51
  79. package/iconCheckbox.js.LICENSE.txt +0 -91
  80. package/iconRadio.js +0 -43
  81. package/iconRadio.js.LICENSE.txt +0 -85
  82. package/icons/covalent-icons.css +0 -365
  83. package/icons/covalent-icons.eot +0 -0
  84. package/icons/covalent-icons.svg +0 -224
  85. package/icons/covalent-icons.ttf +0 -0
  86. package/icons/covalent-icons.woff +0 -0
  87. package/icons/favicon.ico +0 -0
  88. package/index.js +0 -993
  89. package/index.js.LICENSE.txt +0 -206
  90. package/linearProgress.js +0 -28
  91. package/linearProgress.js.LICENSE.txt +0 -41
  92. package/list.js +0 -44
  93. package/list.js.LICENSE.txt +0 -125
  94. package/listCheckItem.js +0 -77
  95. package/listCheckItem.js.LICENSE.txt +0 -91
  96. package/listExpansion.js +0 -47
  97. package/listExpansion.js.LICENSE.txt +0 -125
  98. package/listItem.js +0 -27
  99. package/listItem.js.LICENSE.txt +0 -79
  100. package/listNavItem.js +0 -27
  101. package/listNavItem.js.LICENSE.txt +0 -79
  102. package/listRadioItem.js +0 -70
  103. package/listRadioItem.js.LICENSE.txt +0 -85
  104. package/menu.js +0 -83
  105. package/menu.js.LICENSE.txt +0 -125
  106. package/radio.js +0 -33
  107. package/radio.js.LICENSE.txt +0 -85
  108. package/select.js +0 -176
  109. package/select.js.LICENSE.txt +0 -131
  110. package/sideSheet.js +0 -28
  111. package/sideSheet.js.LICENSE.txt +0 -165
  112. package/slider.js +0 -63
  113. package/slider.js.LICENSE.txt +0 -108
  114. package/sliderRange.js +0 -113
  115. package/sliderRange.js.LICENSE.txt +0 -108
  116. package/snackBar.js +0 -12
  117. package/snackBar.js.LICENSE.txt +0 -85
  118. package/src/action-ribbon/action-ribbon-base.d.ts +0 -29
  119. package/src/action-ribbon/action-ribbon.d.ts +0 -14
  120. package/src/action-ribbon/foundation.d.ts +0 -52
  121. package/src/alert/alert-base.d.ts +0 -30
  122. package/src/alert/alert.d.ts +0 -14
  123. package/src/app-shell/app-shell.d.ts +0 -27
  124. package/src/button/button.d.ts +0 -9
  125. package/src/card/card-base.d.ts +0 -24
  126. package/src/card/card.d.ts +0 -9
  127. package/src/checkbox/checkbox.d.ts +0 -9
  128. package/src/chips/chip-base.d.ts +0 -51
  129. package/src/chips/chip-set-base.d.ts +0 -32
  130. package/src/chips/chip-set.d.ts +0 -14
  131. package/src/chips/chip.d.ts +0 -14
  132. package/src/chips/foundation.d.ts +0 -59
  133. package/src/circular-progress/circular-progress.d.ts +0 -9
  134. package/src/code-snippet/code-snippet.d.ts +0 -20
  135. package/src/dialog/dialog.d.ts +0 -9
  136. package/src/drawer/drawer.d.ts +0 -9
  137. package/src/empty-state/empty-state.d.ts +0 -15
  138. package/src/formfield/formfield.d.ts +0 -9
  139. package/src/icon/icon.d.ts +0 -9
  140. package/src/icon-button/icon-button.d.ts +0 -9
  141. package/src/icon-checkbox/icon-check-toggle.d.ts +0 -14
  142. package/src/icon-radio/icon-radio-toggle.d.ts +0 -13
  143. package/src/index.d.ts +0 -44
  144. package/src/linear-progress/linear-progress.d.ts +0 -9
  145. package/src/list/check-list-item.d.ts +0 -9
  146. package/src/list/list-expansion.d.ts +0 -17
  147. package/src/list/list-item.d.ts +0 -11
  148. package/src/list/list.d.ts +0 -9
  149. package/src/list/nav-list-item.d.ts +0 -11
  150. package/src/list/radio-list-item.d.ts +0 -9
  151. package/src/menu/menu.d.ts +0 -9
  152. package/src/radio/radio.d.ts +0 -9
  153. package/src/select/select.d.ts +0 -9
  154. package/src/side-sheet/side-sheet.d.ts +0 -17
  155. package/src/slider/slider-range.d.ts +0 -9
  156. package/src/slider/slider.d.ts +0 -9
  157. package/src/snackbar/snackbar.d.ts +0 -9
  158. package/src/status-header/status-header-base.d.ts +0 -8
  159. package/src/status-header/status-header-item.d.ts +0 -16
  160. package/src/status-header/status-header.d.ts +0 -14
  161. package/src/switch/switch.d.ts +0 -9
  162. package/src/tab/tab-bar.d.ts +0 -9
  163. package/src/tab/tab.d.ts +0 -9
  164. package/src/text-lockup/text-lockup.d.ts +0 -16
  165. package/src/textarea/textarea.d.ts +0 -9
  166. package/src/textfield/textfield.d.ts +0 -9
  167. package/src/toolbar/toolbar.d.ts +0 -9
  168. package/src/tooltip/tooltip.d.ts +0 -27
  169. package/src/tooltip/tooltip.foundation.d.ts +0 -211
  170. package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -9
  171. package/src/top-app-bar/top-app-bar.d.ts +0 -9
  172. package/src/tree-list/tree-list-item.d.ts +0 -15
  173. package/src/tree-list/tree-list.d.ts +0 -10
  174. package/src/typography/typography.d.ts +0 -11
  175. package/statusHeader.js +0 -22
  176. package/statusHeader.js.LICENSE.txt +0 -23
  177. package/statusHeaderItem.js +0 -2
  178. package/statusHeaderItem.js.LICENSE.txt +0 -17
  179. package/switch.js +0 -63
  180. package/switch.js.LICENSE.txt +0 -108
  181. package/tab.js +0 -35
  182. package/tab.js.LICENSE.txt +0 -79
  183. package/tabBar.js +0 -53
  184. package/tabBar.js.LICENSE.txt +0 -79
  185. package/textArea.js +0 -96
  186. package/textArea.js.LICENSE.txt +0 -85
  187. package/textField.js +0 -69
  188. package/textField.js.LICENSE.txt +0 -85
  189. package/textLockup.js +0 -5
  190. package/textLockup.js.LICENSE.txt +0 -23
  191. package/theme.css +0 -1
  192. package/theme.js +0 -1
  193. package/toolbar.js +0 -19
  194. package/toolbar.js.LICENSE.txt +0 -96
  195. package/tooltip.js +0 -19
  196. package/tooltip.js.LICENSE.txt +0 -69
  197. package/topAppBar.js +0 -19
  198. package/topAppBar.js.LICENSE.txt +0 -102
  199. package/topAppBarFixed.js +0 -19
  200. package/topAppBarFixed.js.LICENSE.txt +0 -102
  201. package/treeList.js +0 -8
  202. package/treeList.js.LICENSE.txt +0 -17
  203. package/treeListItem.js +0 -24
  204. package/treeListItem.js.LICENSE.txt +0 -23
  205. package/typography.js +0 -2
  206. package/typography.js.LICENSE.txt +0 -17
@@ -1,85 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
-
16
- /**
17
- * @license
18
- * Copyright 2016 Google Inc.
19
- *
20
- * Permission is hereby granted, free of charge, to any person obtaining a copy
21
- * of this software and associated documentation files (the "Software"), to deal
22
- * in the Software without restriction, including without limitation the rights
23
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24
- * copies of the Software, and to permit persons to whom the Software is
25
- * furnished to do so, subject to the following conditions:
26
- *
27
- * The above copyright notice and this permission notice shall be included in
28
- * all copies or substantial portions of the Software.
29
- *
30
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36
- * THE SOFTWARE.
37
- */
38
-
39
- /**
40
- * @license
41
- * Copyright 2017 Google LLC
42
- * SPDX-License-Identifier: BSD-3-Clause
43
- */
44
-
45
- /**
46
- * @license
47
- * Copyright 2018 Google LLC
48
- * SPDX-License-Identifier: Apache-2.0
49
- */
50
-
51
- /**
52
- * @license
53
- * Copyright 2018 Google LLC
54
- * SPDX-License-Identifier: BSD-3-Clause
55
- */
56
-
57
- /**
58
- * @license
59
- * Copyright 2019 Google LLC
60
- * SPDX-License-Identifier: Apache-2.0
61
- */
62
-
63
- /**
64
- * @license
65
- * Copyright 2019 Google LLC
66
- * SPDX-License-Identifier: BSD-3-Clause
67
- */
68
-
69
- /**
70
- * @license
71
- * Copyright 2020 Google LLC
72
- * SPDX-License-Identifier: BSD-3-Clause
73
- */
74
-
75
- /**
76
- * @license
77
- * Copyright 2021 Google LLC
78
- * SPDX-LIcense-Identifier: Apache-2.0
79
- */
80
-
81
- /**
82
- * @license
83
- * Copyright 2021 Google LLC
84
- * SPDX-License-Identifier: BSD-3-Clause
85
- */
@@ -1,29 +0,0 @@
1
- import { BaseElement } from '@material/mwc-base/base-element';
2
- import { MDCBannerAdapter } from '@material/banner/adapter';
3
- import { CloseReason } from '@material/banner/constants';
4
- import MDCBannerFoundation from './foundation';
5
- import { TemplateResult } from 'lit';
6
- export declare class ActionRibbonBase extends BaseElement {
7
- protected mdcFoundation: MDCBannerFoundation;
8
- protected readonly mdcFoundationClass: typeof MDCBannerFoundation;
9
- protected mdcRoot: HTMLElement;
10
- protected mdcContent: HTMLElement;
11
- protected primaryActionEl: HTMLElement;
12
- open: boolean;
13
- labelText: string;
14
- icon: string;
15
- centered: boolean;
16
- /**
17
- * The state representation active|negative|positive|caution
18
- */
19
- state?: 'active' | 'negative' | 'positive' | 'caution';
20
- protected reason: CloseReason;
21
- protected render(): TemplateResult<1>;
22
- protected renderIcon(): TemplateResult;
23
- protected createAdapter(): MDCBannerAdapter;
24
- /** @export */
25
- show(): void;
26
- /** @export */
27
- close(reason?: CloseReason): void;
28
- protected firstUpdated(): void;
29
- }
@@ -1,14 +0,0 @@
1
- import { ActionRibbonBase } from './action-ribbon-base';
2
- /**
3
- * Action ribbon
4
- *
5
- * @slot - This element has a slot
6
- */
7
- export declare class CovalentActionRibbon extends ActionRibbonBase {
8
- static styles: import("lit").CSSResult[];
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- 'td-action-ribbon': CovalentActionRibbon;
13
- }
14
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google Inc.
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6
- * of this software and associated documentation files (the "Software"), to deal
7
- * in the Software without restriction, including without limitation the rights
8
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- * copies of the Software, and to permit persons to whom the Software is
10
- * furnished to do so, subject to the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be included in
13
- * all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- * THE SOFTWARE.
22
- */
23
- import { MDCFoundation } from '@material/base/foundation';
24
- import { MDCBannerAdapter } from '@material/banner/adapter';
25
- import { CloseReason } from '@material/banner/constants';
26
- /**
27
- * Foundation class for banner. Responsibilities include opening and closing the
28
- * banner.
29
- */
30
- export declare class MDCBannerFoundation extends MDCFoundation<MDCBannerAdapter> {
31
- static get defaultAdapter(): MDCBannerAdapter;
32
- private isOpened;
33
- private animationFrame;
34
- private animationTimer;
35
- constructor(adapter?: Partial<MDCBannerAdapter>);
36
- destroy(): void;
37
- open(): void;
38
- /**
39
- * @param reason Why the banner was closed. Value will be passed to
40
- * events.CLOSING and events.CLOSED via the `event.detail.reason`
41
- * property. Standard values are CloseReason.PRIMARY and
42
- * CloseReason.SECONDARY, but CloseReason.UNSPECIFIED is provided for
43
- * custom handling of programmatic closing of the banner.
44
- */
45
- close(reason: CloseReason): void;
46
- isOpen(): boolean;
47
- handlePrimaryActionClick(): void;
48
- handleSecondaryActionClick(): void;
49
- layout(): void;
50
- private handleAnimationTimerEnd;
51
- }
52
- export default MDCBannerFoundation;
@@ -1,30 +0,0 @@
1
- import { BaseElement } from '@material/mwc-base/base-element';
2
- import { MDCBannerAdapter } from '@material/banner/adapter';
3
- import { CloseReason } from '@material/banner/constants';
4
- import MDCBannerFoundation from '../action-ribbon/foundation';
5
- import { TemplateResult } from 'lit';
6
- export declare class AlertBase extends BaseElement {
7
- protected mdcFoundation: MDCBannerFoundation;
8
- protected readonly mdcFoundationClass: typeof MDCBannerFoundation;
9
- protected mdcRoot: HTMLElement;
10
- protected mdcContent: HTMLElement;
11
- open: boolean;
12
- titleText: string;
13
- descriptionText: string;
14
- icon: string;
15
- inline: boolean;
16
- /**
17
- * The state representation active|negative|positive|caution
18
- */
19
- state: string;
20
- protected reason: CloseReason;
21
- protected render(): TemplateResult<1>;
22
- /** @soyTemplate */
23
- protected renderIcon(): TemplateResult;
24
- protected createAdapter(): MDCBannerAdapter;
25
- /** @export */
26
- show(): void;
27
- /** @export */
28
- close(reason?: CloseReason): void;
29
- protected firstUpdated(): void;
30
- }
@@ -1,14 +0,0 @@
1
- import { AlertBase } from './alert-base';
2
- /**
3
- * Action ribbon
4
- *
5
- * @slot - This element has a slot
6
- */
7
- export declare class CovalentAlert extends AlertBase {
8
- static styles: import("lit").CSSResult[];
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- 'td-alert': CovalentAlert;
13
- }
14
- }
@@ -1,27 +0,0 @@
1
- import { DrawerBase } from '@material/mwc-drawer/mwc-drawer-base';
2
- import '@material/mwc-icon-button';
3
- import '@material/mwc-top-app-bar-fixed';
4
- declare global {
5
- interface HTMLElementTagNameMap {
6
- 'td-app-shell': CovalentAppShell;
7
- }
8
- }
9
- /**
10
- * App Shell element.
11
- *
12
- * @slot - This element has a slot
13
- */
14
- export declare class CovalentAppShell extends DrawerBase {
15
- static styles: import("lit").CSSResult[];
16
- /**
17
- * The name of the application to show in the small app bar
18
- */
19
- appName: string;
20
- helpOpen: boolean;
21
- constructor();
22
- private _toggleOpen;
23
- resizeEvent(): void;
24
- connectedCallback(): void;
25
- disconnectedCallback(): void;
26
- render(): import("lit-html").TemplateResult<1>;
27
- }
@@ -1,9 +0,0 @@
1
- import { ButtonBase } from '@material/mwc-button/mwc-button-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-button': CovalentButtonBase;
5
- }
6
- }
7
- export declare class CovalentButtonBase extends ButtonBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,24 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class CardBase extends LitElement {
3
- /**
4
- * The title of the card
5
- */
6
- cardTitle: string;
7
- /**
8
- * The sub-title of the card
9
- */
10
- subTitle: string;
11
- /**
12
- * Displays the action bar
13
- */
14
- actionBar: boolean;
15
- /**
16
- * Displays the ripple affect in primary area
17
- */
18
- interactive: boolean;
19
- /**
20
- * Style the card as an outline variant
21
- */
22
- outlined: boolean;
23
- render(): import("lit-html").TemplateResult<1>;
24
- }
@@ -1,9 +0,0 @@
1
- import { CardBase } from './card-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-card': CovalentCardBase;
5
- }
6
- }
7
- export declare class CovalentCardBase extends CardBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { CheckboxBase } from '@material/mwc-checkbox/mwc-checkbox-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-checkbox': CovalentCheckboxBase;
5
- }
6
- }
7
- export declare class CovalentCheckboxBase extends CheckboxBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,51 +0,0 @@
1
- import { BaseElement } from '@material/mwc-base';
2
- import { MDCChipFoundation } from './foundation';
3
- import { MDCChipAnimation } from '@material/chips/chip/constants';
4
- import { MDCChipAction } from '@material/chips/action';
5
- import { MDCChipActionFocusBehavior, MDCChipActionType } from '@material/chips/action/constants';
6
- import { MDCChipAdapter } from '@material/chips/chip/adapter';
7
- export declare class ChipBase extends BaseElement {
8
- protected mdcFoundation?: MDCChipFoundation;
9
- protected readonly mdcFoundationClass: typeof MDCChipFoundation;
10
- protected actions: Map<MDCChipActionType, MDCChipAction>;
11
- protected chipId: number;
12
- protected mdcRoot: HTMLElement;
13
- /**
14
- * The text label of the chip
15
- */
16
- label: string;
17
- /**
18
- * The icon name to use for primary or leading chip
19
- */
20
- icon: string;
21
- trailingIcon: boolean;
22
- avatar: boolean;
23
- /**
24
- * The text label of the chip
25
- */
26
- disabled: boolean;
27
- /**
28
- * Set the filter chip varient
29
- */
30
- filter: boolean;
31
- /**
32
- * The state representation secondary|negative|positive|caution
33
- */
34
- state?: 'secondary' | 'negative' | 'positive' | 'caution';
35
- constructor();
36
- protected render(): import("lit-html").TemplateResult<1>;
37
- protected firstUpdated(): void;
38
- protected renderGraphic(): import("lit-html").TemplateResult<1>;
39
- protected renderCheckMark(): import("lit-html").TemplateResult<1>;
40
- protected renderIcon(trailing?: boolean): import("lit-html").TemplateResult<1>;
41
- protected renderTrailing(): import("lit-html").TemplateResult<1>;
42
- protected createAdapter(): MDCChipAdapter;
43
- getActions(): MDCChipActionType[];
44
- getElementID(): string;
45
- isActionFocusable(action: MDCChipActionType): boolean;
46
- isActionSelectable(action: MDCChipActionType): boolean;
47
- isActionSelected(action: MDCChipActionType): boolean;
48
- setActionFocus(action: MDCChipActionType, focus: MDCChipActionFocusBehavior): void | undefined;
49
- setActionSelected(actionType: MDCChipActionType, isSelected: boolean): void | undefined;
50
- startAnimation(animation: MDCChipAnimation): void | undefined;
51
- }
@@ -1,32 +0,0 @@
1
- import { MDCChipSetAdapter } from '@material/chips/chip-set/adapter';
2
- import { MDCChipSetFoundation } from '@material/chips/chip-set/foundation';
3
- import { LitElement, PropertyValues } from 'lit';
4
- import { CovalentChip } from './chip';
5
- export declare class ChipSetBase extends LitElement {
6
- protected mdcFoundation: MDCChipSetFoundation;
7
- protected mdcRoot: HTMLElement;
8
- /**
9
- * Set if the chips are selectable/actionable
10
- */
11
- selectable: boolean;
12
- /**
13
- * Set the chips are mulit-selectable
14
- */
15
- multi: boolean;
16
- /**
17
- * The arial label for the the chip set
18
- */
19
- label: string;
20
- activeIndex: number;
21
- protected _previousActiveIndex: number;
22
- protected chips: CovalentChip[];
23
- render(): import("lit-html").TemplateResult<1>;
24
- protected updated(changedProps: PropertyValues): Promise<void>;
25
- protected firstUpdated(changedProps: PropertyValues): void;
26
- connectedCallback(): void;
27
- disconnectedCallback(): void;
28
- protected createAdapter(): MDCChipSetAdapter;
29
- private _handleChipAnimation;
30
- private _handleChipInteraction;
31
- private _handleChipNavigation;
32
- }
@@ -1,14 +0,0 @@
1
- import { ChipSetBase } from './chip-set-base';
2
- /**
3
- * Action ribbon
4
- *
5
- * @slot - This element has a slot
6
- */
7
- export declare class CovalentChipSet extends ChipSetBase {
8
- static styles: import("lit").CSSResult[];
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- 'td-chip-set': CovalentChipSet;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import { ChipBase } from './chip-base';
2
- /**
3
- * Action ribbon
4
- *
5
- * @slot - This element has a slot
6
- */
7
- export declare class CovalentChip extends ChipBase {
8
- static styles: import("lit").CSSResult[];
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- 'td-chip': CovalentChip;
13
- }
14
- }
@@ -1,59 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google Inc.
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6
- * of this software and associated documentation files (the "Software"), to deal
7
- * in the Software without restriction, including without limitation the rights
8
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- * copies of the Software, and to permit persons to whom the Software is
10
- * furnished to do so, subject to the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be included in
13
- * all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- * THE SOFTWARE.
22
- */
23
- import { MDCFoundation } from '@material/base/foundation';
24
- import { MDCChipActionType, MDCChipActionFocusBehavior } from '@material/chips/action/constants';
25
- import { MDCChipAdapter } from '@material/chips/chip/adapter';
26
- import { MDCChipAnimation } from '@material/chips/chip/constants';
27
- import { ActionInteractionEvent, ActionNavigationEvent } from '@material/chips/chip/types';
28
- /**
29
- * MDCChipFoundation provides a foundation for all chips.
30
- */
31
- export declare class MDCChipFoundation extends MDCFoundation<MDCChipAdapter> {
32
- static get defaultAdapter(): MDCChipAdapter;
33
- private readonly animFrame;
34
- constructor(adapter?: Partial<MDCChipAdapter>);
35
- destroy(): void;
36
- getElementID(): string;
37
- setDisabled(isDisabled: boolean): void;
38
- isDisabled(): boolean;
39
- getActions(): MDCChipActionType[];
40
- isActionFocusable(action: MDCChipActionType): boolean;
41
- isActionSelectable(action: MDCChipActionType): boolean;
42
- isActionSelected(action: MDCChipActionType): boolean;
43
- setActionFocus(action: MDCChipActionType, focus: MDCChipActionFocusBehavior): void;
44
- setActionSelected(action: MDCChipActionType, isSelected: boolean): void;
45
- startAnimation(animation: MDCChipAnimation): void;
46
- handleAnimationEnd(event: AnimationEvent): void;
47
- handleTransitionEnd(): void;
48
- handleActionInteraction({ detail }: ActionInteractionEvent): void;
49
- handleActionNavigation({ detail }: ActionNavigationEvent): void;
50
- private directionFromKey;
51
- private navigateActions;
52
- private shouldRemove;
53
- private getRemovedAnnouncement;
54
- private getAddedAnnouncement;
55
- private animateSelection;
56
- private resetAnimationStyles;
57
- private updateSelectionStyles;
58
- }
59
- export default MDCChipFoundation;
@@ -1,9 +0,0 @@
1
- import { CircularProgressBase } from '@material/mwc-circular-progress/mwc-circular-progress-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-circular-progress': CovalentCircularProgressBase;
5
- }
6
- }
7
- export declare class CovalentCircularProgressBase extends CircularProgressBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,20 +0,0 @@
1
- import { LitElement } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-code-snippet': CovalentCodeSnippetBase;
5
- }
6
- }
7
- export declare class CovalentCodeSnippetBase extends LitElement {
8
- static styles: import("lit").CSSResult[];
9
- language?: string;
10
- label?: string;
11
- inline: boolean;
12
- hideHeader: boolean;
13
- _codeItems: Array<Node>;
14
- maxHeight?: number;
15
- _code: string;
16
- firstUpdated(): void;
17
- render(): import("lit-html").TemplateResult<1>;
18
- renderContainer(): import("lit-html").TemplateResult<1>;
19
- renderHeader(): import("lit-html").TemplateResult<1>;
20
- }
@@ -1,9 +0,0 @@
1
- import { DialogBase } from '@material/mwc-dialog/mwc-dialog-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-dialog': CovalentDialogBase;
5
- }
6
- }
7
- export declare class CovalentDialogBase extends DialogBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { DrawerBase } from '@material/mwc-drawer/mwc-drawer-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-drawer': CovalentDrawerBase;
5
- }
6
- }
7
- export declare class CovalentDrawerBase extends DrawerBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,15 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import '../icon/icon';
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- 'td-empty-state': CovalentEmptyStateBase;
6
- }
7
- }
8
- export declare class CovalentEmptyStateBase extends LitElement {
9
- static styles: import("lit").CSSResult[];
10
- headline: string;
11
- subtitle: string;
12
- icon: string;
13
- card: boolean;
14
- render(): import("lit-html").TemplateResult<1>;
15
- }
@@ -1,9 +0,0 @@
1
- import { FormfieldBase } from '@material/mwc-formfield/mwc-formfield-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-formfield': CovalentFormfieldBase;
5
- }
6
- }
7
- export declare class CovalentFormfieldBase extends FormfieldBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { Icon } from '@material/mwc-icon/mwc-icon';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-icon': CovalentIcon;
5
- }
6
- }
7
- export declare class CovalentIcon extends Icon {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { IconButtonBase } from '@material/mwc-icon-button/mwc-icon-button-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-icon-button': CovalentIconButtonBase;
5
- }
6
- }
7
- export declare class CovalentIconButtonBase extends IconButtonBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,14 +0,0 @@
1
- import { CheckboxBase } from '@material/mwc-checkbox/mwc-checkbox-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-icon-check-item': CovalentIconCheckToggleBase;
5
- }
6
- }
7
- export declare class CovalentIconCheckToggleBase extends CheckboxBase {
8
- static styles: import("lit").CSSResult[];
9
- width: number | string;
10
- height: number | string;
11
- iconOnly: boolean;
12
- render(): import("lit-html").TemplateResult<1>;
13
- private _handleClick;
14
- }
@@ -1,13 +0,0 @@
1
- import { RadioBase } from '@material/mwc-radio/mwc-radio-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-icon-radio-item': CovalentIconRadioToggleBase;
5
- }
6
- }
7
- export declare class CovalentIconRadioToggleBase extends RadioBase {
8
- static styles: import("lit").CSSResult[];
9
- width: number | string;
10
- height: number | string;
11
- iconOnly: boolean;
12
- render(): import("lit-html").TemplateResult<1>;
13
- }