@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
package/src/index.d.ts DELETED
@@ -1,44 +0,0 @@
1
- export * from './action-ribbon/action-ribbon';
2
- export * from './alert/alert';
3
- export * from './app-shell/app-shell';
4
- export * from './button/button';
5
- export * from './checkbox/checkbox';
6
- export * from './card/card';
7
- export * from './circular-progress/circular-progress';
8
- export * from './code-snippet/code-snippet';
9
- export * from './dialog/dialog';
10
- export * from './drawer/drawer';
11
- export * from './empty-state/empty-state';
12
- export * from './icon/icon';
13
- export * from './icon-button/icon-button';
14
- export * from './icon-checkbox/icon-check-toggle';
15
- export * from './icon-radio/icon-radio-toggle';
16
- export * from './linear-progress/linear-progress';
17
- export * from './list/check-list-item';
18
- export * from './list/list';
19
- export * from './list/list-expansion';
20
- export * from './list/list-item';
21
- export * from './list/nav-list-item';
22
- export * from './list/radio-list-item';
23
- export * from './menu/menu';
24
- export * from './radio/radio';
25
- export * from './select/select';
26
- export * from './side-sheet/side-sheet';
27
- export * from './slider/slider';
28
- export * from './slider/slider-range';
29
- export * from './snackbar/snackbar';
30
- export * from './status-header/status-header';
31
- export * from './status-header/status-header-item';
32
- export * from './switch/switch';
33
- export * from './tab/tab';
34
- export * from './tab/tab-bar';
35
- export * from './textarea/textarea';
36
- export * from './textfield/textfield';
37
- export * from './text-lockup/text-lockup';
38
- export * from './toolbar/toolbar';
39
- export * from './tooltip/tooltip';
40
- export * from './top-app-bar/top-app-bar';
41
- export * from './top-app-bar/top-app-bar-fixed';
42
- export * from './tree-list/tree-list';
43
- export * from './tree-list/tree-list-item';
44
- export * from './typography/typography';
@@ -1,9 +0,0 @@
1
- import { LinearProgressBase } from '@material/mwc-linear-progress/mwc-linear-progress-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-linear-progress': CovalentLinearProgressBase;
5
- }
6
- }
7
- export declare class CovalentLinearProgressBase extends LinearProgressBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { CheckListItemBase } from '@material/mwc-list/mwc-check-list-item-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-check-list-item': CovalentCheckListItemBase;
5
- }
6
- }
7
- export declare class CovalentCheckListItemBase extends CheckListItemBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,17 +0,0 @@
1
- import { CovalentListBase } from './list';
2
- import { CovalentListItemBase } from './list-item';
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- 'td-expansion-list': CovalentExpansionList;
6
- }
7
- }
8
- export declare class CovalentExpansionList extends CovalentListBase {
9
- static styles: import("lit").CSSResult[];
10
- static shadowRootOptions: ShadowRootInit;
11
- open: boolean;
12
- navOpen: boolean;
13
- expansionHeader: CovalentListItemBase[];
14
- constructor();
15
- private _toggleOpen;
16
- render(): import("lit-html").TemplateResult<1>;
17
- }
@@ -1,11 +0,0 @@
1
- import { ListItemBase } from '@material/mwc-list/mwc-list-item-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-list-item': CovalentListItemBase;
5
- }
6
- }
7
- export declare class CovalentListItemBase extends ListItemBase {
8
- static styles: import("lit").CSSResult[];
9
- hasChildren: boolean;
10
- render(): import("lit-html").TemplateResult<1>;
11
- }
@@ -1,9 +0,0 @@
1
- import { ListBase } from '@material/mwc-list/mwc-list-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-list': CovalentListBase;
5
- }
6
- }
7
- export declare class CovalentListBase extends ListBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,11 +0,0 @@
1
- import { CovalentListItemBase } from './list-item';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-nav-list-item': CovalentNavRailListItem;
5
- }
6
- }
7
- export declare class CovalentNavRailListItem extends CovalentListItemBase {
8
- static styles: import("lit").CSSResult[];
9
- navOpen: boolean;
10
- constructor();
11
- }
@@ -1,9 +0,0 @@
1
- import { RadioListItemBase } from '@material/mwc-list/mwc-radio-list-item-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-radio-list-item': CovalentRadioListItemBase;
5
- }
6
- }
7
- export declare class CovalentRadioListItemBase extends RadioListItemBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { MenuBase } from '@material/mwc-menu/mwc-menu-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-menu': CovalentMenuBase;
5
- }
6
- }
7
- export declare class CovalentMenuBase extends MenuBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { RadioBase } from '@material/mwc-radio/mwc-radio-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-radio': CovalentRadioBase;
5
- }
6
- }
7
- export declare class CovalentRadioBase extends RadioBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { SelectBase } from '@material/mwc-select/mwc-select-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-select': CovalentSelectBase;
5
- }
6
- }
7
- export declare class CovalentSelectBase extends SelectBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,17 +0,0 @@
1
- import { CovalentDialogBase } from '../dialog/dialog';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-side-sheet': CovalentSideSheet;
5
- }
6
- }
7
- /**
8
- * Side sheet element.
9
- *
10
- * @slot - This element has a slot
11
- */
12
- export declare class CovalentSideSheet extends CovalentDialogBase {
13
- static styles: import("lit").CSSResult[];
14
- pushed: boolean;
15
- noPadding: boolean;
16
- constructor();
17
- }
@@ -1,9 +0,0 @@
1
- import { SliderRangeBase } from '@material/mwc-slider/slider-range-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-slider-range': CovalentSliderRangeBase;
5
- }
6
- }
7
- export declare class CovalentSliderRangeBase extends SliderRangeBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { SliderSingleBase } from '@material/mwc-slider/slider-single-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-slider': CovalentSliderBase;
5
- }
6
- }
7
- export declare class CovalentSliderBase extends SliderSingleBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { SnackbarBase } from '@material/mwc-snackbar/mwc-snackbar-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-snackbar': CovalentSnackbarBase;
5
- }
6
- }
7
- export declare class CovalentSnackbarBase extends SnackbarBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,8 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class StatusHeaderBase extends LitElement {
3
- state: 'active' | 'positive' | 'caution' | 'error' | 'neutral';
4
- statusText: string;
5
- statusHelper: string;
6
- titleText: string;
7
- protected render(): import("lit-html").TemplateResult<1>;
8
- }
@@ -1,16 +0,0 @@
1
- import { LitElement } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-status-header-item': CovalentStatusHeaderItem;
5
- }
6
- }
7
- /**
8
- * Status header item
9
- *
10
- * @slot - This element has a slot
11
- */
12
- export declare class CovalentStatusHeaderItem extends LitElement {
13
- static styles: import("lit").CSSResult[];
14
- label: string;
15
- render(): import("lit-html").TemplateResult<1>;
16
- }
@@ -1,14 +0,0 @@
1
- import { StatusHeaderBase } from './status-header-base';
2
- /**
3
- * Status header
4
- *
5
- * @slot - This element has a slot
6
- */
7
- export declare class CovalentStatusHeader extends StatusHeaderBase {
8
- static styles: import("lit").CSSResult[];
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- 'td-status-header': CovalentStatusHeader;
13
- }
14
- }
@@ -1,9 +0,0 @@
1
- import { SwitchBase } from '@material/mwc-switch/mwc-switch-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-switch': CovalentSwitchBase;
5
- }
6
- }
7
- export declare class CovalentSwitchBase extends SwitchBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { TabBarBase } from '@material/mwc-tab-bar/mwc-tab-bar-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-tab-bar': CovalentTabBarBase;
5
- }
6
- }
7
- export declare class CovalentTabBarBase extends TabBarBase {
8
- static styles: import("lit").CSSResult[];
9
- }
package/src/tab/tab.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { TabBase } from '@material/mwc-tab/mwc-tab-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-tab': CovalentTabBase;
5
- }
6
- }
7
- export declare class CovalentTabBase extends TabBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,16 +0,0 @@
1
- import { LitElement, nothing } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-text-lockup': CovalentTextLockup;
5
- }
6
- }
7
- export declare class CovalentTextLockup extends LitElement {
8
- static styles: import("lit").CSSResult[];
9
- subText: string;
10
- icon?: string;
11
- state?: 'active' | 'positive' | 'negative' | 'caution';
12
- scale: 'large' | 'small';
13
- trailingSubText: boolean;
14
- render(): import("lit-html").TemplateResult<1>;
15
- renderIcon(): import("lit-html").TemplateResult<1> | typeof nothing;
16
- }
@@ -1,9 +0,0 @@
1
- import { TextAreaBase } from '@material/mwc-textarea/mwc-textarea-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-textarea': CovalentTextAreaBase;
5
- }
6
- }
7
- export declare class CovalentTextAreaBase extends TextAreaBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { TextFieldBase } from '@material/mwc-textfield/mwc-textfield-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-textfield': CovalentTextFieldBase;
5
- }
6
- }
7
- export declare class CovalentTextFieldBase extends TextFieldBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { TopAppBarBase } from '@material/mwc-top-app-bar/mwc-top-app-bar-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-toolbar': CovalentToolbarBase;
5
- }
6
- }
7
- export declare class CovalentToolbarBase extends TopAppBarBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,27 +0,0 @@
1
- import { BaseElement } from '@material/mwc-base/base-element';
2
- import { MDCTooltipAdapter } from '@material/tooltip';
3
- import { PropertyValues } from 'lit';
4
- import { MDCTooltipFoundation } from './tooltip.foundation';
5
- declare global {
6
- interface HTMLElementTagNameMap {
7
- 'td-tooltip': CovalentTooltipBase;
8
- }
9
- }
10
- export declare class CovalentTooltipBase extends BaseElement {
11
- protected mdcFoundation: MDCTooltipFoundation;
12
- protected readonly mdcFoundationClass: typeof MDCTooltipFoundation;
13
- static styles: import("lit").CSSResult[];
14
- protected mdcRoot: HTMLElement;
15
- protected mdcSurface: HTMLElement;
16
- anchor?: HTMLElement;
17
- richTitle?: string;
18
- rich?: boolean;
19
- persistent?: HTMLElement;
20
- showDelay?: number;
21
- hideDelay?: number;
22
- protected createAdapter(): MDCTooltipAdapter;
23
- protected updated(changedProps: PropertyValues): void;
24
- protected firstUpdated(): void;
25
- disconnectedCallback(): void;
26
- render(): import("lit-html").TemplateResult<1>;
27
- }
@@ -1,211 +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 { EventType, SpecificEventListener } from '@material/base/types';
25
- import { MDCTooltipAdapter } from '@material/tooltip';
26
- import { AnchorBoundaryType, PositionWithCaret, XPosition, YPosition } from '@material/tooltip';
27
- export declare class MDCTooltipFoundation extends MDCFoundation<MDCTooltipAdapter> {
28
- static get defaultAdapter(): MDCTooltipAdapter;
29
- private interactiveTooltip;
30
- private richTooltip;
31
- private persistentTooltip;
32
- private hasCaret;
33
- private tooltipShown;
34
- private anchorGap;
35
- private xTooltipPos;
36
- private yTooltipPos;
37
- private tooltipPositionWithCaret;
38
- private readonly minViewportTooltipThreshold;
39
- private hideDelayMs;
40
- private showDelayMs;
41
- private anchorRect;
42
- private parentRect;
43
- private frameId;
44
- private hideTimeout;
45
- private showTimeout;
46
- private readonly animFrame;
47
- private readonly anchorBlurHandler;
48
- private readonly documentClickHandler;
49
- private readonly documentKeydownHandler;
50
- private readonly tooltipMouseEnterHandler;
51
- private readonly tooltipMouseLeaveHandler;
52
- private readonly richTooltipFocusOutHandler;
53
- private readonly windowScrollHandler;
54
- private readonly windowResizeHandler;
55
- private readonly addAncestorScrollEventListeners;
56
- private readonly removeAncestorScrollEventListeners;
57
- constructor(adapter?: Partial<MDCTooltipAdapter>);
58
- init(): void;
59
- isShown(): boolean;
60
- isRich(): boolean;
61
- isPersistent(): boolean;
62
- handleAnchorMouseEnter(): void;
63
- handleAnchorTouchstart(): void;
64
- private preventContextMenuOnLongTouch;
65
- handleAnchorTouchend(): void;
66
- handleAnchorFocus(evt: FocusEvent): void;
67
- handleAnchorMouseLeave(): void;
68
- handleAnchorClick(): void;
69
- handleDocumentClick(evt: MouseEvent): void;
70
- handleKeydown(evt: KeyboardEvent): void;
71
- private handleAnchorBlur;
72
- private handleTooltipMouseEnter;
73
- private handleTooltipMouseLeave;
74
- private handleRichTooltipFocusOut;
75
- private handleWindowScrollEvent;
76
- /**
77
- * On window resize or scroll, check the anchor position and size and
78
- * repostion tooltip if necessary.
79
- */
80
- private handleWindowChangeEvent;
81
- show(): void;
82
- hide(): void;
83
- handleTransitionEnd(): void;
84
- private clearAllAnimationClasses;
85
- setTooltipPosition(position: {
86
- xPos?: XPosition;
87
- yPos?: YPosition;
88
- withCaretPos?: PositionWithCaret;
89
- }): void;
90
- setAnchorBoundaryType(type: AnchorBoundaryType): void;
91
- setShowDelay(delayMs: number): void;
92
- setHideDelay(delayMs: number): void;
93
- private isTooltipMultiline;
94
- private positionPlainTooltip;
95
- private positionRichTooltip;
96
- /**
97
- * Calculates the position of the tooltip. A tooltip will be placed beneath
98
- * the anchor element and aligned either with the 'start'/'end' edge of the
99
- * anchor element or the 'center'.
100
- *
101
- * Tooltip alignment is selected such that the tooltip maintains a threshold
102
- * distance away from the viewport (defaulting to 'center' alignment). If the
103
- * placement of the anchor prevents this threshold distance from being
104
- * maintained, the tooltip is positioned so that it does not collide with the
105
- * viewport.
106
- *
107
- * Users can specify an alignment, however, if this alignment results in the
108
- * tooltip colliding with the viewport, this specification is overwritten.
109
- */
110
- private calculateTooltipStyles;
111
- /**
112
- * Calculates the `left` distance for the tooltip.
113
- * Returns the distance value and a string indicating the x-axis transform-
114
- * origin that should be used when animating the tooltip.
115
- */
116
- private calculateXTooltipDistance;
117
- /**
118
- * Given the values for the horizontal alignments of the tooltip, calculates
119
- * which of these options would result in the tooltip maintaining the required
120
- * threshold distance vs which would result in the tooltip staying within the
121
- * viewport.
122
- *
123
- * A Set of values is returned holding the distances that would honor the
124
- * above requirements. Following the logic for determining the tooltip
125
- * position, if all alignments violate the threshold, then the returned Set
126
- * contains values that keep the tooltip within the viewport.
127
- */
128
- private determineValidPositionOptions;
129
- private positionHonorsViewportThreshold;
130
- private positionDoesntCollideWithViewport;
131
- /**
132
- * Calculates the `top` distance for the tooltip.
133
- * Returns the distance value and a string indicating the y-axis transform-
134
- * origin that should be used when animating the tooltip.
135
- */
136
- private calculateYTooltipDistance;
137
- /**
138
- * Given the values for above/below alignment of the tooltip, calculates
139
- * which of these options would result in the tooltip maintaining the required
140
- * threshold distance vs which would result in the tooltip staying within the
141
- * viewport.
142
- *
143
- * A Set of values is returned holding the distances that would honor the
144
- * above requirements. Following the logic for determining the tooltip
145
- * position, if all possible alignments violate the threshold, then the
146
- * returned Set contains values that keep the tooltip within the viewport.
147
- */
148
- private determineValidYPositionOptions;
149
- private yPositionHonorsViewportThreshold;
150
- private yPositionDoesntCollideWithViewport;
151
- private calculateTooltipWithCaretStyles;
152
- private calculateXWithCaretDistanceOptions;
153
- private calculateYWithCaretDistanceOptions;
154
- private repositionTooltipOnAnchorMove;
155
- /**
156
- * Given a list of x/y position options for a rich tooltip with caret, checks
157
- * if valid x/y combinations of these position options are either within the
158
- * viewport threshold, or simply within the viewport. Returns a map with the
159
- * valid x/y position combinations that all either honor the viewport
160
- * threshold or are simply inside within the viewport.
161
- */
162
- private validateTooltipWithCaretDistances;
163
- /**
164
- * Method for generating a horizontal and vertical position for the tooltip if
165
- * all other calculated values are considered invalid. This would only happen
166
- * in situations of very small viewports/large tooltips.
167
- */
168
- private generateBackupPositionOption;
169
- /**
170
- * Given a list of valid position options for a rich tooltip with caret,
171
- * returns the option that should be used.
172
- */
173
- private determineTooltipWithCaretDistance;
174
- /**
175
- * Returns the corresponding PositionWithCaret enum for the proivded
176
- * XPositionWithCaret and YPositionWithCaret enums. This mapping exists so our
177
- * public API accepts only PositionWithCaret enums (as all combinations of
178
- * XPositionWithCaret and YPositionWithCaret are not valid), but internally we
179
- * can calculate the X and Y positions of a rich tooltip with caret
180
- * separately.
181
- */
182
- private caretPositionOptionsMapping;
183
- /**
184
- * Given a PositionWithCaret, applies the correct styles to the caret element
185
- * so that it is positioned properly on the rich tooltip.
186
- * Returns the x and y positions of the caret, to be used as the
187
- * transform-origin on the tooltip itself for entrance animations.
188
- */
189
- private setCaretPositionStyles;
190
- /**
191
- * Given a PositionWithCaret, determines the correct styles to position the
192
- * caret properly on the rich tooltip.
193
- */
194
- private calculateCaretPositionOnTooltip;
195
- private clearShowTimeout;
196
- private clearHideTimeout;
197
- /**
198
- * Method that allows user to specify additional elements that should have a
199
- * scroll event listener attached to it. This should be used in instances
200
- * where the anchor element is placed inside a scrollable container, and will
201
- * ensure that the tooltip will stay attached to the anchor on scroll.
202
- */
203
- attachScrollHandler(addEventListenerFn: <K extends EventType>(event: K, handler: SpecificEventListener<K>) => void): void;
204
- /**
205
- * Must be used in conjunction with #attachScrollHandler. Removes the scroll
206
- * event handler from elements on the page.
207
- */
208
- removeScrollHandler(removeEventHandlerFn: <K extends EventType>(event: K, handler: SpecificEventListener<K>) => void): void;
209
- destroy(): void;
210
- }
211
- export default MDCTooltipFoundation;
@@ -1,9 +0,0 @@
1
- import { TopAppBarFixedBase } from '@material/mwc-top-app-bar-fixed/mwc-top-app-bar-fixed-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-top-app-bar-fixed': CovalentTopAppBaraFixedBase;
5
- }
6
- }
7
- export declare class CovalentTopAppBaraFixedBase extends TopAppBarFixedBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,9 +0,0 @@
1
- import { TopAppBarBase } from '@material/mwc-top-app-bar/mwc-top-app-bar-base';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-top-app-bar': CovalentTopAppBarBase;
5
- }
6
- }
7
- export declare class CovalentTopAppBarBase extends TopAppBarBase {
8
- static styles: import("lit").CSSResult[];
9
- }
@@ -1,15 +0,0 @@
1
- import { LitElement } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-tree-list-item': CovalentTreeListItem;
5
- }
6
- }
7
- export declare class CovalentTreeListItem extends LitElement {
8
- static styles: import("lit").CSSResult[];
9
- isOpen: boolean;
10
- icon: string;
11
- indentLevel: number;
12
- indentMultiple: number;
13
- render(): import("lit-html").TemplateResult<1>;
14
- private _handleClick;
15
- }
@@ -1,10 +0,0 @@
1
- import { LitElement } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-tree-list': CovalentTreeList;
5
- }
6
- }
7
- export declare class CovalentTreeList extends LitElement {
8
- static styles: import("lit").CSSResult[];
9
- render(): import("lit-html").TemplateResult<1>;
10
- }
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'td-typography': CovalentTypography;
5
- }
6
- }
7
- export declare class CovalentTypography extends LitElement {
8
- static styles: import("lit").CSSResult[];
9
- scale: string;
10
- render(): import("lit-html").TemplateResult<1>;
11
- }