@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.
- package/action-ribbon.mjs +148 -0
- package/alert.mjs +140 -0
- package/app-shell.mjs +94 -0
- package/button.mjs +20 -0
- package/card.mjs +70 -0
- package/check-list-item.mjs +18 -0
- package/checkbox.mjs +20 -0
- package/circular-progress.mjs +17 -0
- package/code-snippet.mjs +12142 -0
- package/covalent.mjs +44 -0
- package/covalent.umd.js +299 -0
- package/dialog.mjs +20 -0
- package/drawer.mjs +20 -0
- package/empty-state.mjs +66 -0
- package/icon-button.mjs +20 -0
- package/icon-check-toggle.mjs +71 -0
- package/icon-radio-toggle.mjs +62 -0
- package/icon.mjs +17 -0
- package/linear-progress.mjs +20 -0
- package/list-expansion.mjs +55 -0
- package/list-item.mjs +49 -0
- package/list.mjs +17 -0
- package/menu.mjs +17 -0
- package/nav-list-item.mjs +41 -0
- package/package.json +1 -1
- package/radio-list-item.mjs +18 -0
- package/radio.mjs +20 -0
- package/select.mjs +20 -0
- package/side-sheet.mjs +35 -0
- package/slider-range.mjs +17 -0
- package/slider.mjs +17 -0
- package/snackbar.mjs +20 -0
- package/status-header-item.mjs +28 -0
- package/status-header.mjs +74 -0
- package/switch.mjs +20 -0
- package/tab-bar.mjs +17 -0
- package/tab.mjs +20 -0
- package/text-lockup.mjs +53 -0
- package/textarea.mjs +20 -0
- package/textfield.mjs +24 -0
- package/textfield2.mjs +5 -0
- package/toolbar.mjs +23 -0
- package/tooltip.mjs +189 -0
- package/top-app-bar-fixed.mjs +24 -0
- package/top-app-bar.mjs +24 -0
- package/top-app-bar2.mjs +5 -0
- package/tree-list-item.mjs +82 -0
- package/tree-list.mjs +43 -0
- package/typography.mjs +31 -0
- package/actionRibbon.js +0 -16
- package/actionRibbon.js.LICENSE.txt +0 -75
- package/alert.js +0 -19
- package/alert.js.LICENSE.txt +0 -75
- package/appShell.js +0 -96
- package/appShell.js.LICENSE.txt +0 -131
- package/button.js +0 -38
- package/button.js.LICENSE.txt +0 -91
- package/card.js +0 -17
- package/card.js.LICENSE.txt +0 -23
- package/checkbox.js +0 -40
- package/checkbox.js.LICENSE.txt +0 -91
- package/circularProgress.js +0 -58
- package/circularProgress.js.LICENSE.txt +0 -41
- package/codeSnippet.js +0 -8
- package/codeSnippet.js.LICENSE.txt +0 -23
- package/dialog.js +0 -28
- package/dialog.js.LICENSE.txt +0 -165
- package/drawer.js +0 -18
- package/drawer.js.LICENSE.txt +0 -90
- package/emptyState.js +0 -25
- package/emptyState.js.LICENSE.txt +0 -29
- package/formField.js +0 -7
- package/formField.js.LICENSE.txt +0 -61
- package/icon.js +0 -2
- package/icon.js.LICENSE.txt +0 -29
- package/iconButton.js +0 -26
- package/iconButton.js.LICENSE.txt +0 -85
- package/iconCheckbox.js +0 -51
- package/iconCheckbox.js.LICENSE.txt +0 -91
- package/iconRadio.js +0 -43
- package/iconRadio.js.LICENSE.txt +0 -85
- package/icons/covalent-icons.css +0 -365
- package/icons/covalent-icons.eot +0 -0
- package/icons/covalent-icons.svg +0 -224
- package/icons/covalent-icons.ttf +0 -0
- package/icons/covalent-icons.woff +0 -0
- package/icons/favicon.ico +0 -0
- package/index.js +0 -993
- package/index.js.LICENSE.txt +0 -206
- package/linearProgress.js +0 -28
- package/linearProgress.js.LICENSE.txt +0 -41
- package/list.js +0 -44
- package/list.js.LICENSE.txt +0 -125
- package/listCheckItem.js +0 -77
- package/listCheckItem.js.LICENSE.txt +0 -91
- package/listExpansion.js +0 -47
- package/listExpansion.js.LICENSE.txt +0 -125
- package/listItem.js +0 -27
- package/listItem.js.LICENSE.txt +0 -79
- package/listNavItem.js +0 -27
- package/listNavItem.js.LICENSE.txt +0 -79
- package/listRadioItem.js +0 -70
- package/listRadioItem.js.LICENSE.txt +0 -85
- package/menu.js +0 -83
- package/menu.js.LICENSE.txt +0 -125
- package/radio.js +0 -33
- package/radio.js.LICENSE.txt +0 -85
- package/select.js +0 -176
- package/select.js.LICENSE.txt +0 -131
- package/sideSheet.js +0 -28
- package/sideSheet.js.LICENSE.txt +0 -165
- package/slider.js +0 -63
- package/slider.js.LICENSE.txt +0 -108
- package/sliderRange.js +0 -113
- package/sliderRange.js.LICENSE.txt +0 -108
- package/snackBar.js +0 -12
- package/snackBar.js.LICENSE.txt +0 -85
- package/src/action-ribbon/action-ribbon-base.d.ts +0 -29
- package/src/action-ribbon/action-ribbon.d.ts +0 -14
- package/src/action-ribbon/foundation.d.ts +0 -52
- package/src/alert/alert-base.d.ts +0 -30
- package/src/alert/alert.d.ts +0 -14
- package/src/app-shell/app-shell.d.ts +0 -27
- package/src/button/button.d.ts +0 -9
- package/src/card/card-base.d.ts +0 -24
- package/src/card/card.d.ts +0 -9
- package/src/checkbox/checkbox.d.ts +0 -9
- package/src/chips/chip-base.d.ts +0 -51
- package/src/chips/chip-set-base.d.ts +0 -32
- package/src/chips/chip-set.d.ts +0 -14
- package/src/chips/chip.d.ts +0 -14
- package/src/chips/foundation.d.ts +0 -59
- package/src/circular-progress/circular-progress.d.ts +0 -9
- package/src/code-snippet/code-snippet.d.ts +0 -20
- package/src/dialog/dialog.d.ts +0 -9
- package/src/drawer/drawer.d.ts +0 -9
- package/src/empty-state/empty-state.d.ts +0 -15
- package/src/formfield/formfield.d.ts +0 -9
- package/src/icon/icon.d.ts +0 -9
- package/src/icon-button/icon-button.d.ts +0 -9
- package/src/icon-checkbox/icon-check-toggle.d.ts +0 -14
- package/src/icon-radio/icon-radio-toggle.d.ts +0 -13
- package/src/index.d.ts +0 -44
- package/src/linear-progress/linear-progress.d.ts +0 -9
- package/src/list/check-list-item.d.ts +0 -9
- package/src/list/list-expansion.d.ts +0 -17
- package/src/list/list-item.d.ts +0 -11
- package/src/list/list.d.ts +0 -9
- package/src/list/nav-list-item.d.ts +0 -11
- package/src/list/radio-list-item.d.ts +0 -9
- package/src/menu/menu.d.ts +0 -9
- package/src/radio/radio.d.ts +0 -9
- package/src/select/select.d.ts +0 -9
- package/src/side-sheet/side-sheet.d.ts +0 -17
- package/src/slider/slider-range.d.ts +0 -9
- package/src/slider/slider.d.ts +0 -9
- package/src/snackbar/snackbar.d.ts +0 -9
- package/src/status-header/status-header-base.d.ts +0 -8
- package/src/status-header/status-header-item.d.ts +0 -16
- package/src/status-header/status-header.d.ts +0 -14
- package/src/switch/switch.d.ts +0 -9
- package/src/tab/tab-bar.d.ts +0 -9
- package/src/tab/tab.d.ts +0 -9
- package/src/text-lockup/text-lockup.d.ts +0 -16
- package/src/textarea/textarea.d.ts +0 -9
- package/src/textfield/textfield.d.ts +0 -9
- package/src/toolbar/toolbar.d.ts +0 -9
- package/src/tooltip/tooltip.d.ts +0 -27
- package/src/tooltip/tooltip.foundation.d.ts +0 -211
- package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -9
- package/src/top-app-bar/top-app-bar.d.ts +0 -9
- package/src/tree-list/tree-list-item.d.ts +0 -15
- package/src/tree-list/tree-list.d.ts +0 -10
- package/src/typography/typography.d.ts +0 -11
- package/statusHeader.js +0 -22
- package/statusHeader.js.LICENSE.txt +0 -23
- package/statusHeaderItem.js +0 -2
- package/statusHeaderItem.js.LICENSE.txt +0 -17
- package/switch.js +0 -63
- package/switch.js.LICENSE.txt +0 -108
- package/tab.js +0 -35
- package/tab.js.LICENSE.txt +0 -79
- package/tabBar.js +0 -53
- package/tabBar.js.LICENSE.txt +0 -79
- package/textArea.js +0 -96
- package/textArea.js.LICENSE.txt +0 -85
- package/textField.js +0 -69
- package/textField.js.LICENSE.txt +0 -85
- package/textLockup.js +0 -5
- package/textLockup.js.LICENSE.txt +0 -23
- package/theme.css +0 -1
- package/theme.js +0 -1
- package/toolbar.js +0 -19
- package/toolbar.js.LICENSE.txt +0 -96
- package/tooltip.js +0 -19
- package/tooltip.js.LICENSE.txt +0 -69
- package/topAppBar.js +0 -19
- package/topAppBar.js.LICENSE.txt +0 -102
- package/topAppBarFixed.js +0 -19
- package/topAppBarFixed.js.LICENSE.txt +0 -102
- package/treeList.js +0 -8
- package/treeList.js.LICENSE.txt +0 -17
- package/treeListItem.js +0 -24
- package/treeListItem.js.LICENSE.txt +0 -23
- package/typography.js +0 -2
- package/typography.js.LICENSE.txt +0 -17
package/dialog.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as c, unsafeCSS as i } from "lit";
|
2
|
+
import { customElement as n } from "lit/decorators.js";
|
3
|
+
import { DialogBase as d } from "@material/mwc-dialog/mwc-dialog-base";
|
4
|
+
import { styles as p } from "@material/mwc-dialog/mwc-dialog.css?used";
|
5
|
+
const v = `:host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}
|
6
|
+
`;
|
7
|
+
var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, h = (m, o, t, r) => {
|
8
|
+
for (var e = r > 1 ? void 0 : r ? g(o, t) : o, s = m.length - 1, l; s >= 0; s--)
|
9
|
+
(l = m[s]) && (e = (r ? l(o, t, e) : l(e)) || e);
|
10
|
+
return r && e && f(o, t, e), e;
|
11
|
+
};
|
12
|
+
let a = class extends d {
|
13
|
+
};
|
14
|
+
a.styles = [p, c`${i(v)}`];
|
15
|
+
a = h([
|
16
|
+
n("cv-dialog")
|
17
|
+
], a);
|
18
|
+
export {
|
19
|
+
a as CovalentDialogBase
|
20
|
+
};
|
package/drawer.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as f, unsafeCSS as p } from "lit";
|
2
|
+
import { customElement as c } from "lit/decorators.js";
|
3
|
+
import { DrawerBase as v } from "@material/mwc-drawer/mwc-drawer-base";
|
4
|
+
import { styles as n } from "@material/mwc-drawer/mwc-drawer.css?used";
|
5
|
+
const _ = `:host{border-color:var(--mdc-theme-border)}
|
6
|
+
`;
|
7
|
+
var w = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (a, e, o, s) => {
|
8
|
+
for (var r = s > 1 ? void 0 : s ? b(e, o) : e, t = a.length - 1, l; t >= 0; t--)
|
9
|
+
(l = a[t]) && (r = (s ? l(e, o, r) : l(r)) || r);
|
10
|
+
return s && r && w(e, o, r), r;
|
11
|
+
};
|
12
|
+
let m = class extends v {
|
13
|
+
};
|
14
|
+
m.styles = [n, f`${p(_)}`];
|
15
|
+
m = i([
|
16
|
+
c("cv-drawer")
|
17
|
+
], m);
|
18
|
+
export {
|
19
|
+
m as CovalentDrawerBase
|
20
|
+
};
|
package/empty-state.mjs
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
import { LitElement as s, html as o, css as g, unsafeCSS as f } from "lit";
|
2
|
+
import { property as h, customElement as l } from "lit/decorators.js";
|
3
|
+
import "./icon.mjs";
|
4
|
+
import "@material/mwc-icon/mwc-icon";
|
5
|
+
import "@material/mwc-icon/mwc-icon-host.css?used";
|
6
|
+
const c = `.mdc-typography{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif)}.mdc-typography--headline1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:6rem;font-size:var(--mdc-typography-headline1-font-size, 6rem);line-height:6rem;line-height:var(--mdc-typography-headline1-line-height, 6rem);font-weight:300;font-weight:var(--mdc-typography-headline1-font-weight, 300);letter-spacing:-.015625em;letter-spacing:var(--mdc-typography-headline1-letter-spacing, -.015625em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline1-text-transform, inherit)}.mdc-typography--headline2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:3.75rem;font-size:var(--mdc-typography-headline2-font-size, 3.75rem);line-height:3.75rem;line-height:var(--mdc-typography-headline2-line-height, 3.75rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit)}.mdc-typography--headline3{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline3-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:3rem;font-size:var(--mdc-typography-headline3-font-size, 3rem);line-height:3.125rem;line-height:var(--mdc-typography-headline3-line-height, 3.125rem);font-weight:400;font-weight:var(--mdc-typography-headline3-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline3-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline3-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline3-text-transform, inherit)}.mdc-typography--headline4{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline4-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:2.125rem;font-size:var(--mdc-typography-headline4-font-size, 2.125rem);line-height:2.5rem;line-height:var(--mdc-typography-headline4-line-height, 2.5rem);font-weight:400;font-weight:var(--mdc-typography-headline4-font-weight, 400);letter-spacing:.0073529412em;letter-spacing:var(--mdc-typography-headline4-letter-spacing, .0073529412em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline4-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline4-text-transform, inherit)}.mdc-typography--headline5{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.5rem;font-size:var(--mdc-typography-headline5-font-size, 1.5rem);line-height:2rem;line-height:var(--mdc-typography-headline5-line-height, 2rem);font-weight:400;font-weight:var(--mdc-typography-headline5-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline5-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline5-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline5-text-transform, inherit)}.mdc-typography--headline6{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, .0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-typography--subtitle1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit)}.mdc-typography--subtitle2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-typography--body1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-typography--body2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-typography--caption{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-typography--button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-button-font-size, .875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-typography--overline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-overline-font-size, .75rem);line-height:2rem;line-height:var(--mdc-typography-overline-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing, .1666666667em);text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform, uppercase)}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.icon-background{display:flex;justify-content:center;align-items:center;width:96px;height:96px;border-radius:50%;background-color:var(--mdc-theme-background);margin-left:auto;margin-right:auto}.covalent-icon{font-size:40px;color:var(--mdc-theme-text-secondary-on-background)}.mdc-typography--headline6{font-family:var(--mdc-typography-headline6-font-family);font-size:var(--mdc-typography-headline6-font-size);font-weight:var(--mdc-typography-headline6-font-weight);line-height:var(--mdc-typography-headline6-line-height);color:var(--mdc-theme-text-secondary-on-background);margin:16px 0 8px}.mdc-typography--caption{font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height);color:var(--mdc-theme-text-secondary-on-background);margin:0}.buttonContainer{display:flex;gap:0 20px;margin-top:16px}h6{margin:16px}
|
7
|
+
`;
|
8
|
+
var d = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (a, r, m, n) => {
|
9
|
+
for (var t = n > 1 ? void 0 : n ? v(r, m) : r, y = a.length - 1, p; y >= 0; y--)
|
10
|
+
(p = a[y]) && (t = (n ? p(r, m, t) : p(t)) || t);
|
11
|
+
return n && t && d(r, m, t), t;
|
12
|
+
};
|
13
|
+
let e = class extends s {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this.headline = "", this.subtitle = "", this.icon = "", this.card = !1;
|
16
|
+
}
|
17
|
+
render() {
|
18
|
+
return o`
|
19
|
+
<div
|
20
|
+
class="content mdc-typography"
|
21
|
+
style=${this.card ? "width: 632px; height: 300px;" : ""}
|
22
|
+
>
|
23
|
+
${this.icon ? o` <div class="icon-background">
|
24
|
+
<cv-icon class="covalent-icon">${this.icon}</cv-icon>
|
25
|
+
</div>` : ""}
|
26
|
+
${this.headline ? o`<h6 class="mdc-typography--headline6">${this.headline}</h6>` : ""}
|
27
|
+
${this.subtitle ? o` <p
|
28
|
+
key="{line}"
|
29
|
+
class="mdc-typography--caption"
|
30
|
+
style=${this.headline ? "" : "margin-top:16px;"}
|
31
|
+
>
|
32
|
+
${this.subtitle.split(/\n/).map((a) => o`${a}<br />`)}
|
33
|
+
</p>` : ""}
|
34
|
+
<div
|
35
|
+
class="buttonContainer"
|
36
|
+
style=${this.subtitle ? "" : "margin-top:0;"}
|
37
|
+
>
|
38
|
+
<slot name="buttons"></slot>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
`;
|
42
|
+
}
|
43
|
+
};
|
44
|
+
e.styles = [
|
45
|
+
g`
|
46
|
+
${f(c)}
|
47
|
+
`
|
48
|
+
];
|
49
|
+
i([
|
50
|
+
h({ type: String })
|
51
|
+
], e.prototype, "headline", 2);
|
52
|
+
i([
|
53
|
+
h({ type: String })
|
54
|
+
], e.prototype, "subtitle", 2);
|
55
|
+
i([
|
56
|
+
h({ type: String })
|
57
|
+
], e.prototype, "icon", 2);
|
58
|
+
i([
|
59
|
+
h({ type: Boolean })
|
60
|
+
], e.prototype, "card", 2);
|
61
|
+
e = i([
|
62
|
+
l("cv-empty-state")
|
63
|
+
], e);
|
64
|
+
export {
|
65
|
+
e as CovalentEmptyStateBase
|
66
|
+
};
|
package/icon-button.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as m, unsafeCSS as f } from "lit";
|
2
|
+
import { customElement as p } from "lit/decorators.js";
|
3
|
+
import { IconButtonBase as a } from "@material/mwc-icon-button/mwc-icon-button-base";
|
4
|
+
import { styles as v } from "@material/mwc-icon-button/mwc-icon-button.css?used";
|
5
|
+
const u = `:host{color:var(--mdc-theme-text-icon-on-background)}
|
6
|
+
`;
|
7
|
+
var i = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, b = (l, o, s, e) => {
|
8
|
+
for (var t = e > 1 ? void 0 : e ? _(o, s) : o, r = l.length - 1, n; r >= 0; r--)
|
9
|
+
(n = l[r]) && (t = (e ? n(o, s, t) : n(t)) || t);
|
10
|
+
return e && t && i(o, s, t), t;
|
11
|
+
};
|
12
|
+
let c = class extends a {
|
13
|
+
};
|
14
|
+
c.styles = [v, m`${f(u)}`];
|
15
|
+
c = b([
|
16
|
+
p("cv-icon-button")
|
17
|
+
], c);
|
18
|
+
export {
|
19
|
+
c as CovalentIconButtonBase
|
20
|
+
};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { html as l, css as h, unsafeCSS as m } from "lit";
|
2
|
+
import { property as s, customElement as f } from "lit/decorators.js";
|
3
|
+
import { classMap as d } from "lit/directives/class-map.js";
|
4
|
+
import { styleMap as g } from "lit/directives/style-map.js";
|
5
|
+
import { CheckboxBase as y } from "@material/mwc-checkbox/mwc-checkbox-base";
|
6
|
+
import { styles as v } from "@material/mwc-checkbox/mwc-checkbox.css?used";
|
7
|
+
const u = `:host .mdc-toggle__background{position:absolute;top:4px;right:4px;width:15px;height:15px;border:none;color:var(--mdc-theme-text-icon-on-dark)}:host .mdc-toggle__checkmark-path{transition:stroke-dashoffset .18s cubic-bezier(.4,0,.6,1) 0ms;stroke:currentcolor;stroke-width:3.12px;stroke-dashoffset:29.7833;stroke-dasharray:29.7833}:host .showCheck{stroke-dashoffset:0;opacity:1}:host([width=fill]){width:100%}.container{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;row-gap:8px;width:var(--width);height:var(--height);border:solid 2px var(--mdc-theme-border);border-radius:8px;color:var(--mdc-theme-text-primary-on-background);--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.container:before,.container:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.container:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.container:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.container.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.container.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.container.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.container.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.container.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.container:before,.container:after{top:0%;left:0%;width:100%;height:100%}.container.mdc-ripple-upgraded:before,.container.mdc-ripple-upgraded:after{top:var(--mdc-ripple-top, 0%);left:var(--mdc-ripple-left, 0%);width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container:before,.container:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.container:hover:before,.container.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.container.mdc-ripple-upgraded--background-focused:before,.container:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.container:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.container:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.container.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.container:after,.container:before{border-radius:8px}.container:hover{cursor:pointer}.cornerFill{background:linear-gradient(225deg,var(--mdc-theme-secondary) 28px,transparent 0)}.checked{border:solid 2px var(--mdc-theme-primary);background-color:var(--mdc-theme-surface-primary-highlight)}.checked:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}[name=icon]::slotted(*){font-size:40px;color:var(--mdc-theme-text-icon-on-background)}[name=text]::slotted(*){color:var(--mdc-theme-text-primary-on-background);font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.4px}[name=text]::slotted(*:last-child){color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}
|
8
|
+
`;
|
9
|
+
var b = Object.defineProperty, k = Object.getOwnPropertyDescriptor, c = (i, e, o, a) => {
|
10
|
+
for (var r = a > 1 ? void 0 : a ? k(e, o) : e, n = i.length - 1, p; n >= 0; n--)
|
11
|
+
(p = i[n]) && (r = (a ? p(e, o, r) : p(r)) || r);
|
12
|
+
return a && r && b(e, o, r), r;
|
13
|
+
};
|
14
|
+
let t = class extends y {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments), this.width = "200", this.height = "160", this.iconOnly = !1;
|
17
|
+
}
|
18
|
+
render() {
|
19
|
+
const i = {
|
20
|
+
checked: this.checked,
|
21
|
+
cornerFill: this.checked
|
22
|
+
}, e = {
|
23
|
+
showCheck: this.checked
|
24
|
+
}, o = {
|
25
|
+
"--width": this.width == "fill" ? "100%" : `${this.width}px`,
|
26
|
+
"--height": `${this.height}px`
|
27
|
+
};
|
28
|
+
return l`
|
29
|
+
<div class="${d(i)} container" style="${g(
|
30
|
+
o
|
31
|
+
)}" @click="${this._handleClick}">
|
32
|
+
<input type="checkbox" class="mdc-checkbox__native-control"></input>
|
33
|
+
<div class="mdc-toggle__background">
|
34
|
+
<svg class="mdc-toggle__checkmark ${d(
|
35
|
+
e
|
36
|
+
)}" viewBox="0 0 24 24">
|
37
|
+
<path class="mdc-toggle__checkmark-path ${d(
|
38
|
+
e
|
39
|
+
)}" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
|
40
|
+
</svg>
|
41
|
+
</div>
|
42
|
+
<slot name="icon"></slot>
|
43
|
+
${this.iconOnly ? "" : l`<div><slot name="text"></slot></div>`}
|
44
|
+
</div>
|
45
|
+
`;
|
46
|
+
}
|
47
|
+
_handleClick() {
|
48
|
+
this.checked = !this.checked;
|
49
|
+
}
|
50
|
+
};
|
51
|
+
t.styles = [
|
52
|
+
h`
|
53
|
+
${m(u)}
|
54
|
+
`,
|
55
|
+
v
|
56
|
+
];
|
57
|
+
c([
|
58
|
+
s()
|
59
|
+
], t.prototype, "width", 2);
|
60
|
+
c([
|
61
|
+
s()
|
62
|
+
], t.prototype, "height", 2);
|
63
|
+
c([
|
64
|
+
s({ type: Boolean })
|
65
|
+
], t.prototype, "iconOnly", 2);
|
66
|
+
t = c([
|
67
|
+
f("cv-checkbox-icon")
|
68
|
+
], t);
|
69
|
+
export {
|
70
|
+
t as CovalentIconCheckToggleBase
|
71
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { html as l, css as s, unsafeCSS as m } from "lit";
|
2
|
+
import { RadioBase as h } from "@material/mwc-radio/mwc-radio-base";
|
3
|
+
import { styles as f } from "@material/mwc-radio/mwc-radio.css?used";
|
4
|
+
import { property as p, customElement as g } from "lit/decorators.js";
|
5
|
+
import { classMap as y } from "lit/directives/class-map.js";
|
6
|
+
import { styleMap as v } from "lit/directives/style-map.js";
|
7
|
+
const u = `:host .mdc-radio__background{position:absolute;top:8px;right:8px}:host([width=fill]){width:100%}.container{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;row-gap:8px;width:var(--width);height:var(--height);border:solid 2px var(--mdc-theme-border);border-radius:8px;color:var(--mdc-theme-text-primary-on-background);--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.container:before,.container:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.container:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.container:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.container.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.container.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.container.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.container.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.container.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.container:before,.container:after{top:0%;left:0%;width:100%;height:100%}.container.mdc-ripple-upgraded:before,.container.mdc-ripple-upgraded:after{top:var(--mdc-ripple-top, 0%);left:var(--mdc-ripple-left, 0%);width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container:before,.container:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.container:hover:before,.container.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.container.mdc-ripple-upgraded--background-focused:before,.container:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.container:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.container:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.container.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.container:after,.container:before{border-radius:8px}.container:hover{cursor:pointer}.checked{border:solid 2px var(--mdc-theme-primary);background-color:var(--mdc-theme-surface-primary-highlight)}.checked:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}[name=icon]::slotted(*){font-size:40px;color:var(--mdc-theme-text-icon-on-background)}[name=text]::slotted(*){color:var(--mdc-theme-text-primary-on-background);font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.4px}[name=text]::slotted(*:last-child){color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}.mdc-radio__outer-circle{border-color:var(--mdc-theme-text-icon-on-background)}.mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__inner-circle{border-color:var(--mdc-theme-secondary, #018786)}
|
8
|
+
`;
|
9
|
+
var b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (o, r, c, i) => {
|
10
|
+
for (var e = i > 1 ? void 0 : i ? x(r, c) : r, n = o.length - 1, d; n >= 0; n--)
|
11
|
+
(d = o[n]) && (e = (i ? d(r, c, e) : d(e)) || e);
|
12
|
+
return i && e && b(r, c, e), e;
|
13
|
+
};
|
14
|
+
let t = class extends h {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments), this.width = "200", this.height = "160", this.iconOnly = !1;
|
17
|
+
}
|
18
|
+
render() {
|
19
|
+
const o = {
|
20
|
+
checked: this.checked
|
21
|
+
}, r = {
|
22
|
+
"--width": this.width == "fill" ? "100%" : `${this.width}px`,
|
23
|
+
"--height": `${this.height}px`
|
24
|
+
};
|
25
|
+
return l`
|
26
|
+
<div class="${y(o)} container" style="${v(
|
27
|
+
r
|
28
|
+
)}" @click="${() => {
|
29
|
+
this.checked = !0;
|
30
|
+
}}">
|
31
|
+
<input type="radio" class="mdc-radio__native-control"></input>
|
32
|
+
<div class="mdc-radio__background">
|
33
|
+
<div class="mdc-radio__outer-circle"></div>
|
34
|
+
<div class="mdc-radio__inner-circle"></div>
|
35
|
+
</div>
|
36
|
+
<slot name="icon"></slot>
|
37
|
+
${this.iconOnly ? "" : l`<div><slot name="text"></slot></div>`}
|
38
|
+
</div>
|
39
|
+
`;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
t.styles = [
|
43
|
+
s`
|
44
|
+
${m(u)}
|
45
|
+
`,
|
46
|
+
f
|
47
|
+
];
|
48
|
+
a([
|
49
|
+
p()
|
50
|
+
], t.prototype, "width", 2);
|
51
|
+
a([
|
52
|
+
p()
|
53
|
+
], t.prototype, "height", 2);
|
54
|
+
a([
|
55
|
+
p({ type: Boolean })
|
56
|
+
], t.prototype, "iconOnly", 2);
|
57
|
+
t = a([
|
58
|
+
g("cv-radio-icon")
|
59
|
+
], t);
|
60
|
+
export {
|
61
|
+
t as CovalentIconRadioToggleBase
|
62
|
+
};
|
package/icon.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Icon as f } from "@material/mwc-icon/mwc-icon";
|
2
|
+
import { styles as m } from "@material/mwc-icon/mwc-icon-host.css?used";
|
3
|
+
import { customElement as n } from "lit/decorators.js";
|
4
|
+
var v = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, i = (c, r, t, o) => {
|
5
|
+
for (var e = o > 1 ? void 0 : o ? _(r, t) : r, s = c.length - 1, l; s >= 0; s--)
|
6
|
+
(l = c[s]) && (e = (o ? l(r, t, e) : l(e)) || e);
|
7
|
+
return o && e && v(r, t, e), e;
|
8
|
+
};
|
9
|
+
let p = class extends f {
|
10
|
+
};
|
11
|
+
p.styles = [m];
|
12
|
+
p = i([
|
13
|
+
n("cv-icon")
|
14
|
+
], p);
|
15
|
+
export {
|
16
|
+
p as CovalentIcon
|
17
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as f, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as p } from "lit/decorators.js";
|
3
|
+
import { LinearProgressBase as c } from "@material/mwc-linear-progress/mwc-linear-progress-base";
|
4
|
+
import { styles as v } from "@material/mwc-linear-progress/mwc-linear-progress.css?used";
|
5
|
+
const i = `:host{--mdc-linear-progress-buffer-color: var(--mdc-theme-border)}
|
6
|
+
`;
|
7
|
+
var P = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, u = (a, e, o, s) => {
|
8
|
+
for (var r = s > 1 ? void 0 : s ? _(e, o) : e, t = a.length - 1, l; t >= 0; t--)
|
9
|
+
(l = a[t]) && (r = (s ? l(e, o, r) : l(r)) || r);
|
10
|
+
return s && r && P(e, o, r), r;
|
11
|
+
};
|
12
|
+
let m = class extends c {
|
13
|
+
};
|
14
|
+
m.styles = [v, f`${n(i)}`];
|
15
|
+
m = u([
|
16
|
+
p("cv-linear-progress")
|
17
|
+
], m);
|
18
|
+
export {
|
19
|
+
m as CovalentLinearProgressBase
|
20
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { html as d, nothing as m, css as l, unsafeCSS as h } from "lit";
|
2
|
+
import { property as c, queryAssignedElements as v, customElement as f } from "lit/decorators.js";
|
3
|
+
import { styles as u } from "@material/mwc-list/mwc-list.css?used";
|
4
|
+
import { CovalentListBase as g } from "./list.mjs";
|
5
|
+
import "@material/mwc-list/mwc-list-base";
|
6
|
+
const y = `.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
7
|
+
`;
|
8
|
+
var x = Object.defineProperty, O = Object.getOwnPropertyDescriptor, r = (s, o, i, n) => {
|
9
|
+
for (var e = n > 1 ? void 0 : n ? O(o, i) : o, p = s.length - 1, a; p >= 0; p--)
|
10
|
+
(a = s[p]) && (e = (n ? a(o, i, e) : a(e)) || e);
|
11
|
+
return n && e && x(o, i, e), e;
|
12
|
+
};
|
13
|
+
let t = class extends g {
|
14
|
+
constructor() {
|
15
|
+
super(), this.open = !1, this.navOpen = !1;
|
16
|
+
}
|
17
|
+
_toggleOpen() {
|
18
|
+
this.open = !this.open, this.expansionHeader.forEach((s) => {
|
19
|
+
s.activated = this.open, s.selected = this.open;
|
20
|
+
});
|
21
|
+
}
|
22
|
+
render() {
|
23
|
+
return d`
|
24
|
+
<slot name="expansionHeader" @click=${this._toggleOpen}></slot>
|
25
|
+
${this.navOpen ? super.render() : m}
|
26
|
+
`;
|
27
|
+
}
|
28
|
+
};
|
29
|
+
t.styles = [
|
30
|
+
l`
|
31
|
+
${h(u)}
|
32
|
+
`,
|
33
|
+
l`
|
34
|
+
${h(y)}
|
35
|
+
`
|
36
|
+
];
|
37
|
+
t.shadowRootOptions = {
|
38
|
+
mode: "open",
|
39
|
+
delegatesFocus: !0
|
40
|
+
};
|
41
|
+
r([
|
42
|
+
c({ type: Boolean, reflect: !0 })
|
43
|
+
], t.prototype, "open", 2);
|
44
|
+
r([
|
45
|
+
c({ type: Boolean, reflect: !0 })
|
46
|
+
], t.prototype, "navOpen", 2);
|
47
|
+
r([
|
48
|
+
v({ slot: "expansionHeader" })
|
49
|
+
], t.prototype, "expansionHeader", 2);
|
50
|
+
t = r([
|
51
|
+
f("cv-expansion-list")
|
52
|
+
], t);
|
53
|
+
export {
|
54
|
+
t as CovalentExpansionList
|
55
|
+
};
|
package/list-item.mjs
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ListItemBase as m } from "@material/mwc-list/mwc-list-item-base";
|
2
|
+
import { html as o, css as l, unsafeCSS as p } from "lit";
|
3
|
+
import { property as d, customElement as f } from "lit/decorators.js";
|
4
|
+
import { styles as v } from "@material/mwc-list/mwc-control-list-item.css?used";
|
5
|
+
import { styles as u } from "@material/mwc-list/mwc-list-item.css?used";
|
6
|
+
const _ = `.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
|
7
|
+
`;
|
8
|
+
var g = Object.defineProperty, x = Object.getOwnPropertyDescriptor, h = (n, e, s, r) => {
|
9
|
+
for (var t = r > 1 ? void 0 : r ? x(e, s) : e, a = n.length - 1, c; a >= 0; a--)
|
10
|
+
(c = n[a]) && (t = (r ? c(e, s, t) : c(t)) || t);
|
11
|
+
return r && t && g(e, s, t), t;
|
12
|
+
};
|
13
|
+
let i = class extends m {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this.hasChildren = !1;
|
16
|
+
}
|
17
|
+
render() {
|
18
|
+
const n = this.renderText(), e = this.graphic ? this.renderGraphic() : o``, s = this.hasMeta ? this.renderMeta() : o``, r = this.activated ? "arrow_drop_down" : "arrow_right", t = this.hasChildren ? o`<cv-icon class="expansion-icon">${r}</cv-icon>` : o``;
|
19
|
+
return o` ${this.renderRipple()} ${t} ${e} ${n} ${s} `;
|
20
|
+
}
|
21
|
+
};
|
22
|
+
i.styles = [
|
23
|
+
l`
|
24
|
+
${p(u)}
|
25
|
+
`,
|
26
|
+
l`
|
27
|
+
${p(v)}
|
28
|
+
`,
|
29
|
+
l`
|
30
|
+
${p(_)}
|
31
|
+
`
|
32
|
+
];
|
33
|
+
h([
|
34
|
+
d({ type: Boolean, reflect: !0 })
|
35
|
+
], i.prototype, "hasChildren", 2);
|
36
|
+
i = h([
|
37
|
+
f("cv-list-item")
|
38
|
+
], i);
|
39
|
+
const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
40
|
+
__proto__: null,
|
41
|
+
get CovalentListItemBase() {
|
42
|
+
return i;
|
43
|
+
}
|
44
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
45
|
+
export {
|
46
|
+
i as C,
|
47
|
+
I as l,
|
48
|
+
_ as s
|
49
|
+
};
|
package/list.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ListBase as m } from "@material/mwc-list/mwc-list-base";
|
2
|
+
import { styles as v } from "@material/mwc-list/mwc-list.css?used";
|
3
|
+
import { customElement as i } from "lit/decorators.js";
|
4
|
+
var _ = Object.defineProperty, a = Object.getOwnPropertyDescriptor, c = (f, s, t, r) => {
|
5
|
+
for (var e = r > 1 ? void 0 : r ? a(s, t) : s, o = f.length - 1, l; o >= 0; o--)
|
6
|
+
(l = f[o]) && (e = (r ? l(s, t, e) : l(e)) || e);
|
7
|
+
return r && e && _(s, t, e), e;
|
8
|
+
};
|
9
|
+
let p = class extends m {
|
10
|
+
};
|
11
|
+
p.styles = [v];
|
12
|
+
p = c([
|
13
|
+
i("cv-list")
|
14
|
+
], p);
|
15
|
+
export {
|
16
|
+
p as CovalentListBase
|
17
|
+
};
|
package/menu.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MenuBase as f } from "@material/mwc-menu/mwc-menu-base";
|
2
|
+
import { styles as n } from "@material/mwc-menu/mwc-menu.css?used";
|
3
|
+
import { customElement as v } from "lit/decorators.js";
|
4
|
+
var u = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (p, r, t, s) => {
|
5
|
+
for (var e = s > 1 ? void 0 : s ? _(r, t) : r, o = p.length - 1, l; o >= 0; o--)
|
6
|
+
(l = p[o]) && (e = (s ? l(r, t, e) : l(e)) || e);
|
7
|
+
return s && e && u(r, t, e), e;
|
8
|
+
};
|
9
|
+
let m = class extends f {
|
10
|
+
};
|
11
|
+
m.styles = [n];
|
12
|
+
m = a([
|
13
|
+
v("cv-menu")
|
14
|
+
], m);
|
15
|
+
export {
|
16
|
+
m as CovalentMenuBase
|
17
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { css as i, unsafeCSS as a } from "lit";
|
2
|
+
import { property as h, customElement as l } from "lit/decorators.js";
|
3
|
+
import { C as d, s as y } from "./list-item.mjs";
|
4
|
+
import { styles as f } from "@material/mwc-list/mwc-control-list-item.css?used";
|
5
|
+
import { styles as g } from "@material/mwc-list/mwc-list-item.css?used";
|
6
|
+
import "@material/mwc-list/mwc-list-item-base";
|
7
|
+
const v = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
|
8
|
+
`;
|
9
|
+
var b = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (m, e, r, o) => {
|
10
|
+
for (var t = o > 1 ? void 0 : o ? u(e, r) : e, s = m.length - 1, p; s >= 0; s--)
|
11
|
+
(p = m[s]) && (t = (o ? p(e, r, t) : p(t)) || t);
|
12
|
+
return o && t && b(e, r, t), t;
|
13
|
+
};
|
14
|
+
let n = class extends d {
|
15
|
+
constructor() {
|
16
|
+
super(), this.navOpen = !1;
|
17
|
+
}
|
18
|
+
};
|
19
|
+
n.styles = [
|
20
|
+
i`
|
21
|
+
${a(g)}
|
22
|
+
`,
|
23
|
+
i`
|
24
|
+
${a(f)}
|
25
|
+
`,
|
26
|
+
i`
|
27
|
+
${a(y)}
|
28
|
+
`,
|
29
|
+
i`
|
30
|
+
${a(v)}
|
31
|
+
`
|
32
|
+
];
|
33
|
+
c([
|
34
|
+
h({ type: Boolean, reflect: !0 })
|
35
|
+
], n.prototype, "navOpen", 2);
|
36
|
+
n = c([
|
37
|
+
l("cv-nav-list-item")
|
38
|
+
], n);
|
39
|
+
export {
|
40
|
+
n as CovalentNavRailListItem
|
41
|
+
};
|
package/package.json
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { RadioListItemBase as p } from "@material/mwc-list/mwc-radio-list-item-base";
|
2
|
+
import { styles as a } from "@material/mwc-list/mwc-control-list-item.css?used";
|
3
|
+
import { styles as f } from "@material/mwc-list/mwc-list-item.css?used";
|
4
|
+
import { customElement as v } from "lit/decorators.js";
|
5
|
+
var _ = Object.defineProperty, c = Object.getOwnPropertyDescriptor, n = (i, s, r, t) => {
|
6
|
+
for (var e = t > 1 ? void 0 : t ? c(s, r) : s, o = i.length - 1, m; o >= 0; o--)
|
7
|
+
(m = i[o]) && (e = (t ? m(s, r, e) : m(e)) || e);
|
8
|
+
return t && e && _(s, r, e), e;
|
9
|
+
};
|
10
|
+
let l = class extends p {
|
11
|
+
};
|
12
|
+
l.styles = [f, a];
|
13
|
+
l = n([
|
14
|
+
v("cv-radio-list-item")
|
15
|
+
], l);
|
16
|
+
export {
|
17
|
+
l as CovalentRadioListItemBase
|
18
|
+
};
|
package/radio.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as l, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as f } from "lit/decorators.js";
|
3
|
+
import { RadioBase as p } from "@material/mwc-radio/mwc-radio-base";
|
4
|
+
import { styles as i } from "@material/mwc-radio/mwc-radio.css?used";
|
5
|
+
const v = `:host{--mdc-radio-unchecked-color: var(--mdc-theme-text-icon-on-background)}
|
6
|
+
`;
|
7
|
+
var d = Object.defineProperty, u = Object.getOwnPropertyDescriptor, _ = (m, o, r, s) => {
|
8
|
+
for (var e = s > 1 ? void 0 : s ? u(o, r) : o, t = m.length - 1, c; t >= 0; t--)
|
9
|
+
(c = m[t]) && (e = (s ? c(o, r, e) : c(e)) || e);
|
10
|
+
return s && e && d(o, r, e), e;
|
11
|
+
};
|
12
|
+
let a = class extends p {
|
13
|
+
};
|
14
|
+
a.styles = [i, l`${n(v)}`];
|
15
|
+
a = _([
|
16
|
+
f("cv-radio")
|
17
|
+
], a);
|
18
|
+
export {
|
19
|
+
a as CovalentRadioBase
|
20
|
+
};
|
package/select.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as m, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as a } from "lit/decorators.js";
|
3
|
+
import { SelectBase as i } from "@material/mwc-select/mwc-select-base";
|
4
|
+
import { styles as v } from "@material/mwc-select/mwc-select.css?used";
|
5
|
+
const b = `:host{--mdc-select-idle-line-color: var(--mdc-theme-border);--mdc-select-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-select-fill-color: var(--mdc-theme-surface-canvas);--mdc-select-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-select-label-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-select-outlined-idle-border-color: var(--mdc-theme-border);--mdc-select-outlined-hover-border-color: var(--mdc-theme-text-icon-on-background);--mdc-select-dropdown-icon-color: var(--mdc-theme-text-icon-on-background)}:host .mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:var(--mdc-select-dropdown-icon-color)}
|
6
|
+
`;
|
7
|
+
var h = Object.defineProperty, p = Object.getOwnPropertyDescriptor, f = (d, c, r, o) => {
|
8
|
+
for (var e = o > 1 ? void 0 : o ? p(c, r) : c, t = d.length - 1, l; t >= 0; t--)
|
9
|
+
(l = d[t]) && (e = (o ? l(c, r, e) : l(e)) || e);
|
10
|
+
return o && e && h(c, r, e), e;
|
11
|
+
};
|
12
|
+
let s = class extends i {
|
13
|
+
};
|
14
|
+
s.styles = [m`${n(b)}`, v];
|
15
|
+
s = f([
|
16
|
+
a("cv-select")
|
17
|
+
], s);
|
18
|
+
export {
|
19
|
+
s as CovalentSelectBase
|
20
|
+
};
|
package/side-sheet.mjs
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
import { css as l, unsafeCSS as m } from "lit";
|
2
|
+
import { property as c, customElement as p } from "lit/decorators.js";
|
3
|
+
import { styles as h } from "@material/mwc-dialog/mwc-dialog.css?used";
|
4
|
+
import { CovalentDialogBase as g } from "./dialog.mjs";
|
5
|
+
import "@material/mwc-dialog/mwc-dialog-base";
|
6
|
+
const f = `:host{--cv-side-sheet-width: 800px;--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background)}.mdc-dialog{justify-content:flex-end}.mdc-dialog .mdc-dialog__surface{border-radius:0;height:100%;min-height:inherit;max-height:inherit;min-width:var(--cv-side-sheet-width, 400px)}.mdc-dialog--opening .mdc-dialog__container{transform:translate(100%);transition:transform .15s cubic-bezier(.4,0,1,1)}.mdc-dialog--open .mdc-dialog__container{transform:translate(0)}.mdc-dialog--closing .mdc-dialog__container{opacity:1;transform:translate(100%);transition:transform .15s cubic-bezier(0,0,.2,1)}:host([pushed]) .mdc-dialog__surface{min-width:100vw}:host([noPadding]) .mdc-dialog .mdc-dialog__content{padding:0}
|
7
|
+
`;
|
8
|
+
var u = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (d, o, r, i) => {
|
9
|
+
for (var e = i > 1 ? void 0 : i ? _(o, r) : o, n = d.length - 1, s; n >= 0; n--)
|
10
|
+
(s = d[n]) && (e = (i ? s(o, r, e) : s(e)) || e);
|
11
|
+
return i && e && u(o, r, e), e;
|
12
|
+
};
|
13
|
+
let t = class extends g {
|
14
|
+
constructor() {
|
15
|
+
super(), this.pushed = !1, this.noPadding = !1, this.hideActions = !0;
|
16
|
+
}
|
17
|
+
};
|
18
|
+
t.styles = [
|
19
|
+
h,
|
20
|
+
l`
|
21
|
+
${m(f)}
|
22
|
+
`
|
23
|
+
];
|
24
|
+
a([
|
25
|
+
c({ type: Boolean, reflect: !0 })
|
26
|
+
], t.prototype, "pushed", 2);
|
27
|
+
a([
|
28
|
+
c({ type: Boolean, reflect: !0 })
|
29
|
+
], t.prototype, "noPadding", 2);
|
30
|
+
t = a([
|
31
|
+
p("cv-side-sheet")
|
32
|
+
], t);
|
33
|
+
export {
|
34
|
+
t as CovalentSideSheet
|
35
|
+
};
|
package/slider-range.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { SliderRangeBase as f } from "@material/mwc-slider/slider-range-base";
|
2
|
+
import { styles as m } from "@material/mwc-slider/mwc-slider.css?used";
|
3
|
+
import { customElement as n } from "lit/decorators.js";
|
4
|
+
var v = Object.defineProperty, i = Object.getOwnPropertyDescriptor, _ = (a, r, t, s) => {
|
5
|
+
for (var e = s > 1 ? void 0 : s ? i(r, t) : r, l = a.length - 1, o; l >= 0; l--)
|
6
|
+
(o = a[l]) && (e = (s ? o(r, t, e) : o(e)) || e);
|
7
|
+
return s && e && v(r, t, e), e;
|
8
|
+
};
|
9
|
+
let p = class extends f {
|
10
|
+
};
|
11
|
+
p.styles = [m];
|
12
|
+
p = _([
|
13
|
+
n("cv-slider-range")
|
14
|
+
], p);
|
15
|
+
export {
|
16
|
+
p as CovalentSliderRangeBase
|
17
|
+
};
|