@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/slider.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { SliderSingleBase as m } from "@material/mwc-slider/slider-single-base";
|
2
|
+
import { styles as v } from "@material/mwc-slider/mwc-slider.css?used";
|
3
|
+
import { customElement as i } from "lit/decorators.js";
|
4
|
+
var n = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (f, r, l, s) => {
|
5
|
+
for (var e = s > 1 ? void 0 : s ? _(r, l) : r, t = f.length - 1, o; t >= 0; t--)
|
6
|
+
(o = f[t]) && (e = (s ? o(r, l, e) : o(e)) || e);
|
7
|
+
return s && e && n(r, l, e), e;
|
8
|
+
};
|
9
|
+
let p = class extends m {
|
10
|
+
};
|
11
|
+
p.styles = [v];
|
12
|
+
p = a([
|
13
|
+
i("cv-slider")
|
14
|
+
], p);
|
15
|
+
export {
|
16
|
+
p as CovalentSliderBase
|
17
|
+
};
|
package/snackbar.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as m, unsafeCSS as l } from "lit";
|
2
|
+
import { customElement as p } from "lit/decorators.js";
|
3
|
+
import { SnackbarBase as v } from "@material/mwc-snackbar/mwc-snackbar-base";
|
4
|
+
import { styles as f } from "@material/mwc-snackbar/mwc-snackbar.css?used";
|
5
|
+
const i = `:host{--mdc-snackbar-action-color: var(--mdc-theme-text-primary-on-dark)}:host ::slotted(cv-icon-button){color:var(--mdc-theme-text-icon-on-dark)}
|
6
|
+
`;
|
7
|
+
var b = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, d = (n, t, s, e) => {
|
8
|
+
for (var r = e > 1 ? void 0 : e ? _(t, s) : t, o = n.length - 1, a; o >= 0; o--)
|
9
|
+
(a = n[o]) && (r = (e ? a(t, s, r) : a(r)) || r);
|
10
|
+
return e && r && b(t, s, r), r;
|
11
|
+
};
|
12
|
+
let c = class extends v {
|
13
|
+
};
|
14
|
+
c.styles = [f, m`${l(i)}`];
|
15
|
+
c = d([
|
16
|
+
p("cv-snackbar")
|
17
|
+
], c);
|
18
|
+
export {
|
19
|
+
c as CovalentSnackbarBase
|
20
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { LitElement as i, html as d, css as h, unsafeCSS as m } from "lit";
|
2
|
+
import { property as y, customElement as c } from "lit/decorators.js";
|
3
|
+
const f = `:host{--cv-status-header-item-width: 178px;display:flex;padding:14px 16px;align-items:center;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)}span{display:inline-block;width:var(--cv-status-header-item-width);color:var(--mdc-theme-text-secondary-on-background)}
|
4
|
+
`;
|
5
|
+
var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (p, e, s, r) => {
|
6
|
+
for (var t = r > 1 ? void 0 : r ? g(e, s) : e, a = p.length - 1, n; a >= 0; a--)
|
7
|
+
(n = p[a]) && (t = (r ? n(e, s, t) : n(t)) || t);
|
8
|
+
return r && t && v(e, s, t), t;
|
9
|
+
};
|
10
|
+
let o = class extends i {
|
11
|
+
render() {
|
12
|
+
return d`<span>${this.label}</span> <slot></slot>`;
|
13
|
+
}
|
14
|
+
};
|
15
|
+
o.styles = [
|
16
|
+
h`
|
17
|
+
${m(f)}
|
18
|
+
`
|
19
|
+
];
|
20
|
+
l([
|
21
|
+
y()
|
22
|
+
], o.prototype, "label", 2);
|
23
|
+
o = l([
|
24
|
+
c("cv-status-header-item")
|
25
|
+
], o);
|
26
|
+
export {
|
27
|
+
o as CovalentStatusHeaderItem
|
28
|
+
};
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { LitElement as u, html as l, css as v, unsafeCSS as m } from "lit";
|
2
|
+
import { property as h, customElement as p } from "lit/decorators.js";
|
3
|
+
import { classMap as g } from "lit/directives/class-map.js";
|
4
|
+
var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, d = (c, e, s, a) => {
|
5
|
+
for (var t = a > 1 ? void 0 : a ? y(e, s) : e, r = c.length - 1, o; r >= 0; r--)
|
6
|
+
(o = c[r]) && (t = (a ? o(e, s, t) : o(t)) || t);
|
7
|
+
return a && t && f(e, s, t), t;
|
8
|
+
};
|
9
|
+
class i extends u {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments), this.state = "neutral", this.statusText = "", this.statusHelper = "", this.titleText = "";
|
12
|
+
}
|
13
|
+
render() {
|
14
|
+
const e = {
|
15
|
+
active: this.state === "active",
|
16
|
+
caution: this.state === "caution",
|
17
|
+
error: this.state === "error",
|
18
|
+
positive: this.state === "positive"
|
19
|
+
};
|
20
|
+
return l`
|
21
|
+
<div class="status-header ${g(e)}">
|
22
|
+
<div class="status-header-title">
|
23
|
+
<div class="status-header-title-text">${this.titleText}</div>
|
24
|
+
<slot name="status-header-actions"></slot>
|
25
|
+
</div>
|
26
|
+
<div class="status-header-status">
|
27
|
+
<div class="status-header-icon">
|
28
|
+
<slot name="status-header-icon"></slot>
|
29
|
+
</div>
|
30
|
+
<div class="status-header-text-block">
|
31
|
+
<div class="status-header-text">${this.statusText}</div>
|
32
|
+
<div class="status-header-helper">${this.statusHelper}</div>
|
33
|
+
</div>
|
34
|
+
<div class="status-header-slot">
|
35
|
+
<slot name="status-header-text"></slot>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<slot></slot>
|
39
|
+
</div>
|
40
|
+
`;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
d([
|
44
|
+
h()
|
45
|
+
], i.prototype, "state", 2);
|
46
|
+
d([
|
47
|
+
h({ type: String })
|
48
|
+
], i.prototype, "statusText", 2);
|
49
|
+
d([
|
50
|
+
h({ type: String })
|
51
|
+
], i.prototype, "statusHelper", 2);
|
52
|
+
d([
|
53
|
+
h({ type: String })
|
54
|
+
], i.prototype, "titleText", 2);
|
55
|
+
const x = `.status-header{--cv-status-header-background: transparent;--cv-status-header-icon-background: var( --mdc-theme-surface-neutral-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-text-icon-on-background);--cv-status-header-status-color: var(--mdc-theme-on-surface);background-color:var(--cv-status-header-background)}.status-header .status-header-content{max-width:inherit;flex-direction:column}.status-header .status-header-icon{background-color:var(--cv-status-header-icon-background);color:var(--cv-status-header-icon-color)}.status-header .status-header-text{--mdc-theme-primary: var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-text-icon-on-background);color:var(--cv-status-header-status-color)}.status-header .status-header-helper{color:var(--mdc-theme-text-secondary-on-background)}.status-header .status-header-title-text{color:var(--mdc-theme-on-surface)}.status-header.active{--cv-status-header-background: var( --mdc-theme-surface-secondary-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-secondary-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-secondary);--cv-status-header-status-color: var(--mdc-theme-secondary)}.status-header.caution{--cv-status-header-background: var(--mdc-theme-surface-caution-highlight);--cv-status-header-icon-background: var( --mdc-theme-surface-caution-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-caution);--cv-status-header-status-color: var(--mdc-theme-caution)}.status-header.error{--cv-status-header-background: var( --mdc-theme-surface-negative-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-negative-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-negative);--cv-status-header-status-color: var(--mdc-theme-negative)}.status-header.positive{--cv-status-header-background: var( --mdc-theme-surface-positive-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-positive-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-positive);--cv-status-header-status-color: var(--mdc-theme-positive)}.status-header-title{padding:0 0 16px 16px;height:fit-content;display:flex;justify-content:space-between;align-items:center}.status-header-title-text{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)}.status-header-text{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)}.status-header-icon{--mdc-icon-size: 36px;border-radius:50%;min-width:72px;height:72px;display:flex;justify-content:center;align-items:center}.status-header-status{padding-left:32px;padding-bottom:16px;display:flex;flex-direction:row;align-items:center}.status-header-text-block{display:flex;flex-direction:column;margin-left:12px;margin-right:56px}.status-header-text-block .status-header-helper{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)}
|
56
|
+
`;
|
57
|
+
var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, _ = (c, e, s, a) => {
|
58
|
+
for (var t = a > 1 ? void 0 : a ? w(e, s) : e, r = c.length - 1, o; r >= 0; r--)
|
59
|
+
(o = c[r]) && (t = (a ? o(e, s, t) : o(t)) || t);
|
60
|
+
return a && t && b(e, s, t), t;
|
61
|
+
};
|
62
|
+
let n = class extends i {
|
63
|
+
};
|
64
|
+
n.styles = [
|
65
|
+
v`
|
66
|
+
${m(x)}
|
67
|
+
`
|
68
|
+
];
|
69
|
+
n = _([
|
70
|
+
p("cv-status-header")
|
71
|
+
], n);
|
72
|
+
export {
|
73
|
+
n as CovalentStatusHeader
|
74
|
+
};
|
package/switch.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as a, unsafeCSS as d } from "lit";
|
2
|
+
import { customElement as l } from "lit/decorators.js";
|
3
|
+
import { SwitchBase as i } from "@material/mwc-switch/mwc-switch-base";
|
4
|
+
import { styles as v } from "@material/mwc-switch/styles.css?used";
|
5
|
+
const f = `:host{--mdc-theme-surface: var(--mdc-theme-background);--mdc-switch-selected-handle-color: var(--mdc-theme-primary);--mdc-switch-selected-hover-handle-color: var(--mdc-theme-primary);--mdc-switch-selected-focus-handle-color: var(--mdc-theme-primary);--mdc-switch-selected-pressed-handle-color: var(--mdc-theme-primary);--mdc-switch-selected-track-color: var(--mdc-theme-surface-secondary);--mdc-switch-selected-focus-track-color: var( --mdc-theme-surface-secondary-highlight );--mdc-switch-selected-hover-track-color: var( --mdc-theme-surface-secondary-highlight-hover );--mdc-switch-selected-pressed-track-color: var( --mdc-theme-surface-secondary-highlight-hover )}
|
6
|
+
`;
|
7
|
+
var n = Object.defineProperty, p = Object.getOwnPropertyDescriptor, w = (h, c, s, r) => {
|
8
|
+
for (var e = r > 1 ? void 0 : r ? p(c, s) : c, t = h.length - 1, m; t >= 0; t--)
|
9
|
+
(m = h[t]) && (e = (r ? m(c, s, e) : m(e)) || e);
|
10
|
+
return r && e && n(c, s, e), e;
|
11
|
+
};
|
12
|
+
let o = class extends i {
|
13
|
+
};
|
14
|
+
o.styles = [v, a`${d(f)}`];
|
15
|
+
o = w([
|
16
|
+
l("cv-switch")
|
17
|
+
], o);
|
18
|
+
export {
|
19
|
+
o as CovalentSwitchBase
|
20
|
+
};
|
package/tab-bar.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { TabBarBase as f } from "@material/mwc-tab-bar/mwc-tab-bar-base";
|
2
|
+
import { styles as m } from "@material/mwc-tab-bar/mwc-tab-bar.css?used";
|
3
|
+
import { customElement as v } from "lit/decorators.js";
|
4
|
+
var b = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, c = (p, r, t, s) => {
|
5
|
+
for (var e = s > 1 ? void 0 : s ? _(r, t) : r, a = p.length - 1, o; a >= 0; a--)
|
6
|
+
(o = p[a]) && (e = (s ? o(r, t, e) : o(e)) || e);
|
7
|
+
return s && e && b(r, t, e), e;
|
8
|
+
};
|
9
|
+
let l = class extends f {
|
10
|
+
};
|
11
|
+
l.styles = [m];
|
12
|
+
l = c([
|
13
|
+
v("cv-tab-bar")
|
14
|
+
], l);
|
15
|
+
export {
|
16
|
+
l as CovalentTabBarBase
|
17
|
+
};
|
package/tab.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as l, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as b } from "lit/decorators.js";
|
3
|
+
import { TabBase as d } from "@material/mwc-tab/mwc-tab-base";
|
4
|
+
import { styles as f } from "@material/mwc-tab/mwc-tab.css?used";
|
5
|
+
const p = `:host{--mdc-tab-text-label-color-default: var( --mdc-theme-text-primary-on-background );--mdc-tab-color-default: var(--mdc-theme-text-icon-on-background)}:host .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-theme-text-primary-on-background)}
|
6
|
+
`;
|
7
|
+
var v = Object.defineProperty, u = Object.getOwnPropertyDescriptor, i = (m, e, o, r) => {
|
8
|
+
for (var t = r > 1 ? void 0 : r ? u(e, o) : e, a = m.length - 1, s; a >= 0; a--)
|
9
|
+
(s = m[a]) && (t = (r ? s(e, o, t) : s(t)) || t);
|
10
|
+
return r && t && v(e, o, t), t;
|
11
|
+
};
|
12
|
+
let c = class extends d {
|
13
|
+
};
|
14
|
+
c.styles = [f, l`${n(p)}`];
|
15
|
+
c = i([
|
16
|
+
b("cv-tab")
|
17
|
+
], c);
|
18
|
+
export {
|
19
|
+
c as CovalentTabBase
|
20
|
+
};
|
package/text-lockup.mjs
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
import { LitElement as h, html as l, nothing as y, css as m, unsafeCSS as g } from "lit";
|
2
|
+
import { property as i, customElement as f } from "lit/decorators.js";
|
3
|
+
import { classMap as d } from "lit/directives/class-map.js";
|
4
|
+
const u = `.subtext--trailing{display:flex;flex-direction:column-reverse}.subtext{display:flex;align-items:center;--mdc-icon-size: 16px;color:var(--mdc-theme-text-secondary-on-background);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);margin-bottom:2px}.subtext cv-icon{margin-right:8px}slot{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);margin-bottom:8px}.scale--large .subtext{--mdc-icon-size: 24px;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);margin-bottom:2px}.scale--large slot{font-family:var(--mdc-typography-headline4-font-family);font-size:var(--mdc-typography-headline4-font-size);font-weight:var(--mdc-typography-headline4-font-weight);line-height:var(--mdc-typography-headline4-line-height);margin-bottom:8px}.subtext-state--positive .subtext{color:var(--mdc-theme-positive)}.subtext-state--negative .subtext{color:var(--mdc-theme-negative)}.subtext-state--caution .subtext{color:var(--mdc-theme-caution)}.subtext-state--active .subtext{color:var(--mdc-theme-accent)}
|
5
|
+
`;
|
6
|
+
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, a = (o, r, n, s) => {
|
7
|
+
for (var e = s > 1 ? void 0 : s ? b(r, n) : r, c = o.length - 1, p; c >= 0; c--)
|
8
|
+
(p = o[c]) && (e = (s ? p(r, n, e) : p(e)) || e);
|
9
|
+
return s && e && v(r, n, e), e;
|
10
|
+
};
|
11
|
+
let t = class extends h {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments), this.scale = "small", this.trailingSubText = !1;
|
14
|
+
}
|
15
|
+
render() {
|
16
|
+
const o = {
|
17
|
+
"subtext--trailing": this.trailingSubText
|
18
|
+
};
|
19
|
+
return o[`scale--${this.scale}`] = !0, this.state && (o[`subtext-state--${this.state}`] = !0), l`<span class="${d(o)}"
|
20
|
+
><span class="subtext">${this.renderIcon()}${this.subText}</span
|
21
|
+
><slot></slot
|
22
|
+
></span>`;
|
23
|
+
}
|
24
|
+
renderIcon() {
|
25
|
+
return this.icon ? l`<cv-icon>${this.icon}</cv-icon>` : y;
|
26
|
+
}
|
27
|
+
};
|
28
|
+
t.styles = [
|
29
|
+
m`
|
30
|
+
${g(u)}
|
31
|
+
`
|
32
|
+
];
|
33
|
+
a([
|
34
|
+
i()
|
35
|
+
], t.prototype, "subText", 2);
|
36
|
+
a([
|
37
|
+
i()
|
38
|
+
], t.prototype, "icon", 2);
|
39
|
+
a([
|
40
|
+
i()
|
41
|
+
], t.prototype, "state", 2);
|
42
|
+
a([
|
43
|
+
i()
|
44
|
+
], t.prototype, "scale", 2);
|
45
|
+
a([
|
46
|
+
i({ type: Boolean, reflect: !0 })
|
47
|
+
], t.prototype, "trailingSubText", 2);
|
48
|
+
t = a([
|
49
|
+
f("cv-text-lockup")
|
50
|
+
], t);
|
51
|
+
export {
|
52
|
+
t as CovalentTextLockup
|
53
|
+
};
|
package/textarea.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as l, unsafeCSS as p } from "lit";
|
2
|
+
import { customElement as v } from "lit/decorators.js";
|
3
|
+
import { TextAreaBase as c } from "@material/mwc-textarea/mwc-textarea-base";
|
4
|
+
import { styles as i } from "@material/mwc-textarea/mwc-textarea.css?used";
|
5
|
+
import { styles as n } from "@material/mwc-textfield/mwc-textfield.css.js";
|
6
|
+
import { s as _ } from "./textfield2.mjs";
|
7
|
+
var x = Object.defineProperty, y = Object.getOwnPropertyDescriptor, u = (f, s, t, r) => {
|
8
|
+
for (var e = r > 1 ? void 0 : r ? y(s, t) : s, o = f.length - 1, m; o >= 0; o--)
|
9
|
+
(m = f[o]) && (e = (r ? m(s, t, e) : m(e)) || e);
|
10
|
+
return r && e && x(s, t, e), e;
|
11
|
+
};
|
12
|
+
let a = class extends c {
|
13
|
+
};
|
14
|
+
a.styles = [n, i, l`${p(_)}`];
|
15
|
+
a = u([
|
16
|
+
v("cv-textarea")
|
17
|
+
], a);
|
18
|
+
export {
|
19
|
+
a as CovalentTextAreaBase
|
20
|
+
};
|
package/textfield.mjs
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { css as p, unsafeCSS as i } from "lit";
|
2
|
+
import { customElement as v } from "lit/decorators.js";
|
3
|
+
import { TextFieldBase as a } from "@material/mwc-textfield/mwc-textfield-base";
|
4
|
+
import { styles as c } from "@material/mwc-textfield/mwc-textfield.css?used";
|
5
|
+
import { s as n } from "./textfield2.mjs";
|
6
|
+
var _ = Object.defineProperty, x = Object.getOwnPropertyDescriptor, u = (m, s, t, r) => {
|
7
|
+
for (var e = r > 1 ? void 0 : r ? x(s, t) : s, o = m.length - 1, l; o >= 0; o--)
|
8
|
+
(l = m[o]) && (e = (r ? l(s, t, e) : l(e)) || e);
|
9
|
+
return r && e && _(s, t, e), e;
|
10
|
+
};
|
11
|
+
let f = class extends a {
|
12
|
+
};
|
13
|
+
f.styles = [
|
14
|
+
c,
|
15
|
+
p`
|
16
|
+
${i(n)}
|
17
|
+
`
|
18
|
+
];
|
19
|
+
f = u([
|
20
|
+
v("cv-textfield")
|
21
|
+
], f);
|
22
|
+
export {
|
23
|
+
f as CovalentTextFieldBase
|
24
|
+
};
|
package/textfield2.mjs
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
const e = `:host{--mdc-text-field-label-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-fill-color: var(--mdc-theme-surface-canvas);--mdc-text-field-idle-line-color: var(--mdc-theme-border);--mdc-text-field-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-text-field-outlined-idle-border-color: var(--mdc-theme-border);--mdc-text-field-outlined-hover-border-color: var(--mdc-theme-text-icon-on-background)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--mdc-theme-text-icon-on-background)}
|
2
|
+
`;
|
3
|
+
export {
|
4
|
+
e as s
|
5
|
+
};
|
package/toolbar.mjs
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
import { css as c, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as m } from "lit/decorators.js";
|
3
|
+
import { TopAppBarBase as b } from "@material/mwc-top-app-bar/mwc-top-app-bar-base";
|
4
|
+
const s = `.mdc-top-app-bar{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);color:#fff;display:flex;position:fixed;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;z-index:4}.mdc-top-app-bar .mdc-top-app-bar__action-item,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item:before,.mdc-top-app-bar .mdc-top-app-bar__action-item:after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:after{background-color:#fff;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-primary, #fff))}.mdc-top-app-bar .mdc-top-app-bar__action-item:hover:before,.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-surface--hover:before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:hover:before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-surface--hover:before{opacity:.08;opacity:var(--mdc-ripple-hover-opacity, .08)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded--background-focused:before,.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):focus:before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded--background-focused:before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity, .24)}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):active:after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity, .24)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .24)}.mdc-top-app-bar__row{display:flex;position:relative;box-sizing:border-box;width:100%;height:64px}.mdc-top-app-bar__section{display:inline-flex;flex:1 1 auto;align-items:center;min-width:0;padding:8px 12px;z-index:1}.mdc-top-app-bar__section--align-start{justify-content:flex-start;order:-1}.mdc-top-app-bar__section--align-end{justify-content:flex-end;order:1}.mdc-top-app-bar__title{-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);padding-left:20px;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1}[dir=rtl] .mdc-top-app-bar__title,.mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--short-collapsed{border-radius:0 0 24px}[dir=rtl] .mdc-top-app-bar--short-collapsed,.mdc-top-app-bar--short-collapsed[dir=rtl]{border-radius:0 0 0 24px}.mdc-top-app-bar--short{top:0;right:auto;left:0;width:100%;transition:width .25s cubic-bezier(.4,0,.2,1)}[dir=rtl] .mdc-top-app-bar--short,.mdc-top-app-bar--short[dir=rtl]{right:0;left:auto}.mdc-top-app-bar--short .mdc-top-app-bar__row{height:56px}.mdc-top-app-bar--short .mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short .mdc-top-app-bar__title{transition:opacity .2s cubic-bezier(.4,0,.2,1);opacity:1}.mdc-top-app-bar--short-collapsed{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;width:56px;transition:width .3s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__title{display:none}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__action-item{transition:padding .15s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item{width:112px}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--dense .mdc-top-app-bar__row{height:48px}.mdc-top-app-bar--dense .mdc-top-app-bar__section{padding:0 4px}.mdc-top-app-bar--dense .mdc-top-app-bar__title{padding-left:12px;padding-right:0}[dir=rtl] .mdc-top-app-bar--dense .mdc-top-app-bar__title,.mdc-top-app-bar--dense .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:12px}.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:128px}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{align-self:flex-end;padding-bottom:2px}.mdc-top-app-bar--prominent .mdc-top-app-bar__action-item,.mdc-top-app-bar--prominent .mdc-top-app-bar__navigation-icon{align-self:flex-start}.mdc-top-app-bar--fixed{transition:box-shadow .2s linear}.mdc-top-app-bar--fixed-scrolled{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;transition:box-shadow .2s linear}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:96px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section{padding:0 12px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-left:20px;padding-right:0;padding-bottom:9px}[dir=rtl] .mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title,.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--fixed-adjust{padding-top:64px}.mdc-top-app-bar--dense-fixed-adjust{padding-top:48px}.mdc-top-app-bar--short-fixed-adjust{padding-top:56px}.mdc-top-app-bar--prominent-fixed-adjust{padding-top:128px}.mdc-top-app-bar--dense-prominent-fixed-adjust{padding-top:96px}@media (max-width: 599px){.mdc-top-app-bar__row{height:56px}.mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short{transition:width .2s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed{transition:width .25s cubic-bezier(.4,0,.2,1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-bottom:6px}.mdc-top-app-bar--fixed-adjust{padding-top:56px}}:host{display:block}.mdc-top-app-bar__title{padding-left:0}@media screen and (max-width: 768px){.mdc-top-app-bar__title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height)}}.mdc-top-app-bar{position:static;background-color:transparent;background-color:var(--mdc-theme-surface);color:var(--mdc-theme-on-surface)}.mdc-top-app-bar--fixed-adjust,.mdc-top-app-bar--dense-fixed-adjust{padding-top:0}
|
5
|
+
`;
|
6
|
+
var l = Object.defineProperty, g = Object.getOwnPropertyDescriptor, h = (e, a, o, t) => {
|
7
|
+
for (var p = t > 1 ? void 0 : t ? g(a, o) : a, r = e.length - 1, d; r >= 0; r--)
|
8
|
+
(d = e[r]) && (p = (t ? d(a, o, p) : d(p)) || p);
|
9
|
+
return t && p && l(a, o, p), p;
|
10
|
+
};
|
11
|
+
let i = class extends b {
|
12
|
+
};
|
13
|
+
i.styles = [
|
14
|
+
c`
|
15
|
+
${n(s)}
|
16
|
+
`
|
17
|
+
];
|
18
|
+
i = h([
|
19
|
+
m("cv-toolbar")
|
20
|
+
], i);
|
21
|
+
export {
|
22
|
+
i as CovalentToolbarBase
|
23
|
+
};
|
package/tooltip.mjs
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
import { LitElement as p, html as l, css as h, unsafeCSS as f } from "lit";
|
2
|
+
import { query as m, property as a, customElement as u } from "lit/decorators.js";
|
3
|
+
import { addHasRemoveClass as g } from "@material/mwc-base/base-element";
|
4
|
+
import { events as y } from "@material/tooltip";
|
5
|
+
import { MDCTooltipFoundation as _ } from "@material/tooltip/foundation";
|
6
|
+
const v = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{z-index:9}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip{position:fixed;display:none}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{-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);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);line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;align-items:flex-start;border-radius:4px;display:flex;flex-direction:column;line-height:20px;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{display:block;line-height:20px;-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);margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-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);max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__title,.mdc-tooltip__content{color:var(--mdc-theme-text-primary-on-background)}.mdc-tooltip__content-link{color:var(--mdc-theme-accent)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--mdc-theme-surface)}
|
7
|
+
`;
|
8
|
+
var x = Object.defineProperty, b = Object.getOwnPropertyDescriptor, c = (t, o, e, n) => {
|
9
|
+
for (var i = n > 1 ? void 0 : n ? b(o, e) : o, d = t.length - 1, s; d >= 0; d--)
|
10
|
+
(s = t[d]) && (i = (n ? s(o, e, i) : s(i)) || i);
|
11
|
+
return n && i && x(o, e, i), i;
|
12
|
+
};
|
13
|
+
let r = class extends p {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this.mdcFoundationClass = _;
|
16
|
+
}
|
17
|
+
createAdapter() {
|
18
|
+
return {
|
19
|
+
...g(this.mdcRoot),
|
20
|
+
getAttribute: (t) => this.mdcRoot.getAttribute(t),
|
21
|
+
setAttribute: (t, o) => this.mdcRoot.setAttribute(t, o),
|
22
|
+
removeAttribute: (t) => this.mdcRoot.removeAttribute(t),
|
23
|
+
getComputedStyleProperty: (t) => getComputedStyle(this.mdcRoot, t).cssText,
|
24
|
+
setStyleProperty: (t, o) => this.mdcRoot.style.setProperty(t, o),
|
25
|
+
setSurfaceAnimationStyleProperty: (t, o) => this.mdcSurface.style.setProperty(t, o),
|
26
|
+
getViewportWidth: () => Math.max(
|
27
|
+
document.documentElement.clientWidth || 0,
|
28
|
+
window.innerWidth || 0
|
29
|
+
),
|
30
|
+
getViewportHeight: () => Math.max(
|
31
|
+
document.documentElement.clientHeight || 0,
|
32
|
+
window.innerHeight || 0
|
33
|
+
),
|
34
|
+
getTooltipSize: () => Object.assign({
|
35
|
+
width: this.mdcRoot.clientWidth,
|
36
|
+
height: this.mdcRoot.clientHeight
|
37
|
+
}),
|
38
|
+
getAnchorBoundingRect: () => {
|
39
|
+
var t;
|
40
|
+
return ((t = this.anchor) == null ? void 0 : t.getBoundingClientRect()) ?? null;
|
41
|
+
},
|
42
|
+
getParentBoundingRect: () => {
|
43
|
+
var t;
|
44
|
+
return ((t = this.renderRoot.getRootNode().parentElement) == null ? void 0 : t.getBoundingClientRect()) ?? null;
|
45
|
+
},
|
46
|
+
getAnchorAttribute: (t) => {
|
47
|
+
var o;
|
48
|
+
return ((o = this.anchor) == null ? void 0 : o.getAttribute(t)) ?? null;
|
49
|
+
},
|
50
|
+
setAnchorAttribute: (t, o) => {
|
51
|
+
var e;
|
52
|
+
return (e = this.anchor) == null ? void 0 : e.setAttribute(t, o);
|
53
|
+
},
|
54
|
+
isRTL: () => !1,
|
55
|
+
anchorContainsElement: (t) => {
|
56
|
+
var o;
|
57
|
+
return ((o = this.anchor) == null ? void 0 : o.contains(t)) ?? !1;
|
58
|
+
},
|
59
|
+
tooltipContainsElement: (t) => this.contains(t),
|
60
|
+
focusAnchorElement: () => {
|
61
|
+
var t;
|
62
|
+
return (t = this.anchor) == null ? void 0 : t.focus();
|
63
|
+
},
|
64
|
+
registerEventHandler: (t, o) => {
|
65
|
+
var e;
|
66
|
+
return (e = this.mdcRoot) == null ? void 0 : e.addEventListener(t, o);
|
67
|
+
},
|
68
|
+
deregisterEventHandler: (t, o) => {
|
69
|
+
var e;
|
70
|
+
return (e = this.mdcRoot) == null ? void 0 : e.removeEventListener(t, o);
|
71
|
+
},
|
72
|
+
registerAnchorEventHandler: (t, o) => {
|
73
|
+
var e;
|
74
|
+
return (e = this.anchor) == null ? void 0 : e.addEventListener(t, o);
|
75
|
+
},
|
76
|
+
deregisterAnchorEventHandler: (t, o) => {
|
77
|
+
var e;
|
78
|
+
return (e = this.anchor) == null ? void 0 : e.removeEventListener(t, o);
|
79
|
+
},
|
80
|
+
registerDocumentEventHandler: (t, o) => document.addEventListener(t, o),
|
81
|
+
deregisterDocumentEventHandler: (t, o) => document.removeEventListener(t, o),
|
82
|
+
registerWindowEventHandler: (t, o) => window.addEventListener(t, o),
|
83
|
+
deregisterWindowEventHandler: (t, o) => window.removeEventListener(t, o),
|
84
|
+
notifyHidden: () => this.dispatchEvent(new Event(y.HIDDEN)),
|
85
|
+
getTooltipCaretBoundingRect: () => null,
|
86
|
+
setTooltipCaretStyle: () => {
|
87
|
+
},
|
88
|
+
clearTooltipCaretStyles: () => {
|
89
|
+
},
|
90
|
+
getActiveElement: () => document.activeElement
|
91
|
+
};
|
92
|
+
}
|
93
|
+
updated(t) {
|
94
|
+
super.updated(t), this.showDelay !== void 0 && !isNaN(this.showDelay) && this.mdcFoundation.setShowDelay(this.showDelay), this.hideDelay !== void 0 && !isNaN(this.hideDelay) && this.mdcFoundation.setHideDelay(this.hideDelay);
|
95
|
+
}
|
96
|
+
async firstUpdated() {
|
97
|
+
var t, o, e, n, i;
|
98
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (t = this.anchor) == null || t.addEventListener(
|
99
|
+
"click",
|
100
|
+
() => this.mdcFoundation.handleAnchorClick()
|
101
|
+
), (o = this.anchor) == null || o.addEventListener(
|
102
|
+
"mouseenter",
|
103
|
+
() => this.mdcFoundation.handleAnchorMouseEnter()
|
104
|
+
), (e = this.anchor) == null || e.addEventListener(
|
105
|
+
"touchstart",
|
106
|
+
() => this.mdcFoundation.handleAnchorTouchstart()
|
107
|
+
), this.persistent || ((n = this.anchor) == null || n.addEventListener(
|
108
|
+
"mouseleave",
|
109
|
+
() => this.mdcFoundation.handleAnchorMouseLeave()
|
110
|
+
), (i = this.anchor) == null || i.addEventListener(
|
111
|
+
"touchend",
|
112
|
+
() => this.mdcFoundation.handleAnchorTouchend()
|
113
|
+
));
|
114
|
+
}
|
115
|
+
disconnectedCallback() {
|
116
|
+
var t, o, e, n, i;
|
117
|
+
super.connectedCallback(), (t = this.anchor) == null || t.removeEventListener(
|
118
|
+
"click",
|
119
|
+
() => this.mdcFoundation.handleAnchorClick()
|
120
|
+
), (o = this.anchor) == null || o.removeEventListener(
|
121
|
+
"mouseenter",
|
122
|
+
() => this.mdcFoundation.handleAnchorMouseEnter()
|
123
|
+
), (e = this.anchor) == null || e.removeEventListener(
|
124
|
+
"mouseleave",
|
125
|
+
() => this.mdcFoundation.handleAnchorMouseLeave()
|
126
|
+
), (n = this.anchor) == null || n.removeEventListener(
|
127
|
+
"touchstart",
|
128
|
+
() => this.mdcFoundation.handleAnchorTouchstart()
|
129
|
+
), (i = this.anchor) == null || i.removeEventListener(
|
130
|
+
"touchend",
|
131
|
+
() => this.mdcFoundation.handleAnchorTouchend()
|
132
|
+
);
|
133
|
+
}
|
134
|
+
render() {
|
135
|
+
return l`
|
136
|
+
<div
|
137
|
+
class="mdc-tooltip ${this.rich ? "mdc-tooltip--rich" : ""}"
|
138
|
+
role="tooltip"
|
139
|
+
aria-hidden="true"
|
140
|
+
data-mdc-tooltip-persistent="true"
|
141
|
+
>
|
142
|
+
<div class="mdc-tooltip__surface mdc-tooltip__surface-animation">
|
143
|
+
${this.rich ? l`<div class="mdc-tooltip__title">${this.richTitle}</div>
|
144
|
+
<div class="mdc-tooltip__content">
|
145
|
+
<slot></slot>
|
146
|
+
</div>
|
147
|
+
<div class="mdc-tooltip--rich-actions">
|
148
|
+
<slot name="actionItems"></slot>
|
149
|
+
</div>` : l`<slot></slot>`}
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
`;
|
153
|
+
}
|
154
|
+
};
|
155
|
+
r.styles = [
|
156
|
+
h`
|
157
|
+
${f(v)}
|
158
|
+
`
|
159
|
+
];
|
160
|
+
c([
|
161
|
+
m(".mdc-tooltip")
|
162
|
+
], r.prototype, "mdcRoot", 2);
|
163
|
+
c([
|
164
|
+
m(".mdc-tooltip__surface")
|
165
|
+
], r.prototype, "mdcSurface", 2);
|
166
|
+
c([
|
167
|
+
a({ type: Object })
|
168
|
+
], r.prototype, "anchor", 2);
|
169
|
+
c([
|
170
|
+
a()
|
171
|
+
], r.prototype, "richTitle", 2);
|
172
|
+
c([
|
173
|
+
a({ type: Boolean, reflect: !0 })
|
174
|
+
], r.prototype, "rich", 2);
|
175
|
+
c([
|
176
|
+
a({ type: Boolean, reflect: !0 })
|
177
|
+
], r.prototype, "persistent", 2);
|
178
|
+
c([
|
179
|
+
a({ type: Number })
|
180
|
+
], r.prototype, "showDelay", 2);
|
181
|
+
c([
|
182
|
+
a({ type: Number })
|
183
|
+
], r.prototype, "hideDelay", 2);
|
184
|
+
r = c([
|
185
|
+
u("cv-tooltip")
|
186
|
+
], r);
|
187
|
+
export {
|
188
|
+
r as CovalentTooltipBase
|
189
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { css as m, unsafeCSS as l } from "lit";
|
2
|
+
import { customElement as i } from "lit/decorators.js";
|
3
|
+
import { TopAppBarFixedBase as v } from "@material/mwc-top-app-bar-fixed/mwc-top-app-bar-fixed-base";
|
4
|
+
import { styles as c } from "@material/mwc-top-app-bar/mwc-top-app-bar.css?used";
|
5
|
+
import { b as n } from "./top-app-bar2.mjs";
|
6
|
+
var _ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, x = (f, r, s, p) => {
|
7
|
+
for (var e = p > 1 ? void 0 : p ? b(r, s) : r, o = f.length - 1, t; o >= 0; o--)
|
8
|
+
(t = f[o]) && (e = (p ? t(r, s, e) : t(e)) || e);
|
9
|
+
return p && e && _(r, s, e), e;
|
10
|
+
};
|
11
|
+
let a = class extends v {
|
12
|
+
};
|
13
|
+
a.styles = [
|
14
|
+
c,
|
15
|
+
m`
|
16
|
+
${l(n)}
|
17
|
+
`
|
18
|
+
];
|
19
|
+
a = x([
|
20
|
+
i("cv-top-app-bar-fixed")
|
21
|
+
], a);
|
22
|
+
export {
|
23
|
+
a as CovalentTopAppBaraFixedBase
|
24
|
+
};
|
package/top-app-bar.mjs
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { css as f, unsafeCSS as l } from "lit";
|
2
|
+
import { customElement as v } from "lit/decorators.js";
|
3
|
+
import { TopAppBarBase as c } from "@material/mwc-top-app-bar/mwc-top-app-bar-base";
|
4
|
+
import { styles as n } from "@material/mwc-top-app-bar/mwc-top-app-bar.css?used";
|
5
|
+
import { b as _ } from "./top-app-bar2.mjs";
|
6
|
+
var b = Object.defineProperty, i = Object.getOwnPropertyDescriptor, u = (m, e, s, p) => {
|
7
|
+
for (var r = p > 1 ? void 0 : p ? i(e, s) : e, o = m.length - 1, t; o >= 0; o--)
|
8
|
+
(t = m[o]) && (r = (p ? t(e, s, r) : t(r)) || r);
|
9
|
+
return p && r && b(e, s, r), r;
|
10
|
+
};
|
11
|
+
let a = class extends c {
|
12
|
+
};
|
13
|
+
a.styles = [
|
14
|
+
n,
|
15
|
+
f`
|
16
|
+
${l(_)}
|
17
|
+
`
|
18
|
+
];
|
19
|
+
a = u([
|
20
|
+
v("cv-top-app-bar")
|
21
|
+
], a);
|
22
|
+
export {
|
23
|
+
a as CovalentTopAppBarBase
|
24
|
+
};
|
package/top-app-bar2.mjs
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
const e = `:host{--mdc-theme-primary: var(--mdc-theme-surface);--mdc-theme-on-primary: var(--mdc-theme-text-primary-on-background)}:host ::slotted(cv-button){--mdc-theme-primary: var(--mdc-theme-primary);--mdc-theme-on-primary: var(--mdc-theme-on-primary)}.mdc-top-app-bar{background:var(--mdc-theme-surface);color:var(--mdc-theme-on-surface)}
|
2
|
+
`;
|
3
|
+
export {
|
4
|
+
e as b
|
5
|
+
};
|