@covalent/components 4.16.0-beta.1 → 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 -93
- package/button.js +0 -38
- package/button.js.LICENSE.txt +0 -53
- package/card.js +0 -17
- package/card.js.LICENSE.txt +0 -23
- package/checkbox.js +0 -40
- package/checkbox.js.LICENSE.txt +0 -53
- 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 -104
- package/drawer.js +0 -18
- package/drawer.js.LICENSE.txt +0 -52
- package/emptyState.js +0 -25
- package/emptyState.js.LICENSE.txt +0 -29
- package/formField.js +0 -7
- package/formField.js.LICENSE.txt +0 -46
- package/icon.js +0 -2
- package/icon.js.LICENSE.txt +0 -29
- package/iconButton.js +0 -26
- package/iconButton.js.LICENSE.txt +0 -47
- package/iconCheckbox.js +0 -51
- package/iconCheckbox.js.LICENSE.txt +0 -53
- package/iconRadio.js +0 -43
- package/iconRadio.js.LICENSE.txt +0 -47
- 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 -191
- package/linearProgress.js +0 -28
- package/linearProgress.js.LICENSE.txt +0 -41
- package/list.js +0 -44
- package/list.js.LICENSE.txt +0 -41
- package/listCheckItem.js +0 -77
- package/listCheckItem.js.LICENSE.txt +0 -53
- package/listExpansion.js +0 -47
- package/listExpansion.js.LICENSE.txt +0 -41
- package/listItem.js +0 -27
- package/listItem.js.LICENSE.txt +0 -41
- package/listNavItem.js +0 -27
- package/listNavItem.js.LICENSE.txt +0 -41
- package/listRadioItem.js +0 -70
- package/listRadioItem.js.LICENSE.txt +0 -47
- package/menu.js +0 -83
- package/menu.js.LICENSE.txt +0 -87
- package/radio.js +0 -33
- package/radio.js.LICENSE.txt +0 -47
- package/select.js +0 -176
- package/select.js.LICENSE.txt +0 -93
- package/sideSheet.js +0 -28
- package/sideSheet.js.LICENSE.txt +0 -104
- package/slider.js +0 -63
- package/slider.js.LICENSE.txt +0 -93
- package/sliderRange.js +0 -113
- package/sliderRange.js.LICENSE.txt +0 -93
- package/snackBar.js +0 -12
- package/snackBar.js.LICENSE.txt +0 -47
- package/src/action-ribbon/action-ribbon-base.d.ts +0 -28
- package/src/action-ribbon/action-ribbon.d.ts +0 -14
- package/src/alert/alert-base.d.ts +0 -29
- 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 -26
- 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 -70
- package/tab.js +0 -35
- package/tab.js.LICENSE.txt +0 -41
- package/tabBar.js +0 -53
- package/tabBar.js.LICENSE.txt +0 -41
- package/textArea.js +0 -96
- package/textArea.js.LICENSE.txt +0 -47
- package/textField.js +0 -69
- package/textField.js.LICENSE.txt +0 -47
- 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 -58
- package/tooltip.js +0 -19
- package/tooltip.js.LICENSE.txt +0 -63
- package/topAppBar.js +0 -19
- package/topAppBar.js.LICENSE.txt +0 -64
- package/topAppBarFixed.js +0 -19
- package/topAppBarFixed.js.LICENSE.txt +0 -64
- 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
@@ -0,0 +1,148 @@
|
|
1
|
+
import { LitElement as g, html as h, css as u, unsafeCSS as f } from "lit";
|
2
|
+
import { query as l, property as m, customElement as v } from "lit/decorators.js";
|
3
|
+
import { addHasRemoveClass as x } from "@material/mwc-base/base-element";
|
4
|
+
import { observer as y } from "@material/mwc-base/observer";
|
5
|
+
import { selectors as _, CloseReason as b, events as s } from "@material/banner/constants";
|
6
|
+
import { MDCBannerFoundation as w } from "@material/banner";
|
7
|
+
import { classMap as C } from "lit/directives/class-map.js";
|
8
|
+
var E = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (c, e, r, a) => {
|
9
|
+
for (var t = a > 1 ? void 0 : a ? k(e, r) : e, o = c.length - 1, d; o >= 0; o--)
|
10
|
+
(d = c[o]) && (t = (a ? d(e, r, t) : d(t)) || t);
|
11
|
+
return a && t && E(e, r, t), t;
|
12
|
+
};
|
13
|
+
class n extends g {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this.mdcFoundationClass = w, this.open = !0, this.labelText = "", this.icon = "", this.iconAriaLabel = "", this.centered = !0, this.reason = b.UNSPECIFIED;
|
16
|
+
}
|
17
|
+
render() {
|
18
|
+
const e = {
|
19
|
+
"mdc-banner": !0,
|
20
|
+
negative: this.state === "negative",
|
21
|
+
positive: this.state === "positive",
|
22
|
+
caution: this.state === "caution",
|
23
|
+
active: this.state === "active",
|
24
|
+
"mdc-banner--centered": this.centered
|
25
|
+
};
|
26
|
+
return h` <div class="${C(e)}" role="banner">
|
27
|
+
<div class="mdc-banner__content" role="alertdialog" aria-live="assertive" aria-label="${this.labelText}">
|
28
|
+
<div class="mdc-banner__graphic-text-wrapper">
|
29
|
+
${this.icon ? this.renderIcon() : ""}
|
30
|
+
<div class="mdc-banner__text">${this.labelText}</div>
|
31
|
+
</div>
|
32
|
+
<div class="mdc-banner__actions">
|
33
|
+
<slot name="action-items"></slot>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>`;
|
37
|
+
}
|
38
|
+
renderIcon() {
|
39
|
+
return h` <div class="mdc-banner__graphic" role="img" aria-label="${this.iconAriaLabel}">
|
40
|
+
<slot name="icon">
|
41
|
+
<cv-icon class="mdc-banner__icon"> ${this.icon} </cv-icon>
|
42
|
+
</slot>
|
43
|
+
</div>`;
|
44
|
+
}
|
45
|
+
createAdapter() {
|
46
|
+
return {
|
47
|
+
...x(this.mdcRoot),
|
48
|
+
getContentHeight: () => this.mdcContent.offsetHeight,
|
49
|
+
setStyleProperty: (e, r) => this.mdcRoot.style.setProperty(e, r),
|
50
|
+
trapFocus: () => {
|
51
|
+
var e;
|
52
|
+
return (e = this.primaryActionEl) == null ? void 0 : e.focus();
|
53
|
+
},
|
54
|
+
releaseFocus: () => {
|
55
|
+
var e;
|
56
|
+
return (e = this.primaryActionEl) == null ? void 0 : e.blur();
|
57
|
+
},
|
58
|
+
notifyActionClicked: (e) => this.dispatchEvent(
|
59
|
+
new CustomEvent(s.ACTION_CLICKED, {
|
60
|
+
bubbles: !0,
|
61
|
+
cancelable: !0,
|
62
|
+
detail: { reason: e }
|
63
|
+
})
|
64
|
+
),
|
65
|
+
notifyClosed: (e) => this.dispatchEvent(
|
66
|
+
new CustomEvent(s.CLOSED, {
|
67
|
+
bubbles: !0,
|
68
|
+
cancelable: !0,
|
69
|
+
detail: { reason: e }
|
70
|
+
})
|
71
|
+
),
|
72
|
+
notifyClosing: (e) => this.dispatchEvent(
|
73
|
+
new CustomEvent(s.CLOSING, {
|
74
|
+
bubbles: !0,
|
75
|
+
cancelable: !0,
|
76
|
+
detail: { reason: e }
|
77
|
+
})
|
78
|
+
),
|
79
|
+
notifyOpened: () => this.dispatchEvent(
|
80
|
+
new CustomEvent(s.OPENED, { bubbles: !0, cancelable: !0 })
|
81
|
+
),
|
82
|
+
notifyOpening: () => this.dispatchEvent(
|
83
|
+
new CustomEvent(s.OPENING, { bubbles: !0, cancelable: !0 })
|
84
|
+
)
|
85
|
+
};
|
86
|
+
}
|
87
|
+
/** @export */
|
88
|
+
show() {
|
89
|
+
this.open = !0;
|
90
|
+
}
|
91
|
+
/** @export */
|
92
|
+
close(e = b.UNSPECIFIED) {
|
93
|
+
this.reason = e, this.open = !1;
|
94
|
+
}
|
95
|
+
async firstUpdated() {
|
96
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.open && this.mdcFoundation.open();
|
97
|
+
}
|
98
|
+
}
|
99
|
+
i([
|
100
|
+
l(".mdc-banner")
|
101
|
+
], n.prototype, "mdcRoot", 2);
|
102
|
+
i([
|
103
|
+
l(_.CONTENT)
|
104
|
+
], n.prototype, "mdcContent", 2);
|
105
|
+
i([
|
106
|
+
l(_.PRIMARY_ACTION)
|
107
|
+
], n.prototype, "primaryActionEl", 2);
|
108
|
+
i([
|
109
|
+
m({ type: Boolean, reflect: !0 }),
|
110
|
+
y(function(c) {
|
111
|
+
this.mdcFoundation && (c ? this.mdcFoundation.open() : (this.mdcFoundation.close(this.reason), this.reason = b.UNSPECIFIED));
|
112
|
+
})
|
113
|
+
], n.prototype, "open", 2);
|
114
|
+
i([
|
115
|
+
m({ type: String })
|
116
|
+
], n.prototype, "labelText", 2);
|
117
|
+
i([
|
118
|
+
m({ type: String })
|
119
|
+
], n.prototype, "icon", 2);
|
120
|
+
i([
|
121
|
+
m({ type: String })
|
122
|
+
], n.prototype, "iconAriaLabel", 2);
|
123
|
+
i([
|
124
|
+
m({ type: Boolean })
|
125
|
+
], n.prototype, "centered", 2);
|
126
|
+
i([
|
127
|
+
m()
|
128
|
+
], n.prototype, "state", 2);
|
129
|
+
const O = `.mdc-banner__graphic{color:#fff;color:var(--mdc-theme-surface, #fff)}.mdc-banner__graphic{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-banner__content,.mdc-banner__fixed{min-width:344px}@media (max-width: 480px),(max-width: 344px){.mdc-banner__content,.mdc-banner__fixed{min-width:100%}}.mdc-banner__content{max-width:720px}.mdc-banner{z-index:1;border-bottom-style:solid;box-sizing:border-box;display:none;flex-shrink:0;height:0;position:relative;width:100%}@media (max-width: 480px){.mdc-banner .mdc-banner__fixed{left:0;right:0}.mdc-banner .mdc-banner__text{margin-left:16px;margin-right:36px}[dir=rtl] .mdc-banner .mdc-banner__text,.mdc-banner .mdc-banner__text[dir=rtl]{margin-left:36px;margin-right:16px}}@media (max-width: 480px){.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__content{flex-wrap:wrap}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__graphic{margin-bottom:12px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:16px;margin-right:8px;padding-bottom:4px}[dir=rtl] .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text,.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__actions{margin-left:auto}}.mdc-banner--opening,.mdc-banner--open,.mdc-banner--closing{display:flex}.mdc-banner--open{transition:height .3s ease}.mdc-banner--open .mdc-banner__content{transition:transform .3s ease;transform:translateY(0)}.mdc-banner--closing{transition:height .25s ease}.mdc-banner--closing .mdc-banner__content{transition:transform .25s ease}.mdc-banner--centered .mdc-banner__content{left:0;margin-left:auto;margin-right:auto;right:0}.mdc-banner__fixed{border-bottom-style:solid;box-sizing:border-box;height:inherit;position:fixed;width:100%}.mdc-banner__content{display:flex;min-height:52px;position:absolute;transform:translateY(-100%);width:100%}.mdc-banner__graphic-text-wrapper{display:flex;width:100%}.mdc-banner__graphic{margin:16px 0 16px 16px;flex-shrink:0;text-align:center}[dir=rtl] .mdc-banner__graphic,.mdc-banner__graphic[dir=rtl]{margin-left:0;margin-right:16px}.mdc-banner__icon{position:relative;top:50%;transform:translateY(-50%)}.mdc-banner__text{margin-left:24px;margin-right:90px;align-self:center;flex-grow:1;padding-top:16px;padding-bottom:16px}[dir=rtl] .mdc-banner__text,.mdc-banner__text[dir=rtl]{margin-left:90px;margin-right:24px}.mdc-banner__actions{padding:8px 8px 8px 0;align-self:flex-end;display:flex;flex-shrink:0}[dir=rtl] .mdc-banner__actions,.mdc-banner__actions[dir=rtl]{padding-left:8px;padding-right:0}.mdc-banner{background-color:#fff;border-bottom-color:#0000001f;border-bottom-width:1px;border-radius:0}.mdc-banner .mdc-banner__text{color:#000}.mdc-banner .mdc-banner__text{letter-spacing:.0178571429em;font-size:.875rem;font-family:Roboto,sans-serif;font-weight:400;line-height:1.25rem}.mdc-banner .mdc-banner__graphic{border-radius:50%}.mdc-banner .mdc-banner__graphic{height:40px;width:40px}.mdc-banner .mdc-banner__fixed{background-color:#fff}.mdc-banner .mdc-banner__fixed{border-bottom-color:#0000001f}.mdc-banner .mdc-banner__fixed{border-bottom-width:1px}.mdc-banner .mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-text-button-label-text-color, #6200ee)}.mdc-banner .mdc-button .mdc-button__ripple:before,.mdc-banner .mdc-button .mdc-button__ripple:after{background-color:#6200ee;background-color:var(--mdc-text-button-hover-state-layer-color, #6200ee)}.mdc-banner .mdc-button:hover .mdc-button__ripple:before,.mdc-banner .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple:before{opacity:.04;opacity:var(--mdc-text-button-hover-state-layer-opacity, .04)}.mdc-banner .mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple:before,.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-text-button-focus-state-layer-opacity, .12)}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple:after{transition:opacity .15s linear}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple:after{transition-duration:75ms;opacity:.1;opacity:var(--mdc-text-button-pressed-state-layer-opacity, .1)}.mdc-banner .mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-text-button-pressed-state-layer-opacity, .1)}.mdc-banner__secondary-action{margin-left:0;margin-right:8px}[dir=rtl] .mdc-banner__secondary-action,.mdc-banner__secondary-action[dir=rtl]{margin-left:8px;margin-right:0}.mdc-banner{--cv-action-ribbon-background: transparent;background-color:var(--cv-action-ribbon-background);overflow:hidden}.mdc-banner .mdc-banner__content{max-width:inherit}.mdc-banner .mdc-banner__graphic,.mdc-banner .mdc-banner__text{--mdc-theme-primary: var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-text-icon-on-background);color:var(--mdc-theme-on-surface)}.mdc-banner .mdc-banner__text{--mdc-theme-on-surface: var(--mdc-theme-text-disabled-on-background);margin-left:16px;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)}.mdc-banner.caution{--cv-action-ribbon-background: var(--mdc-theme-surface-caution-highlight)}.mdc-banner.caution .mdc-banner__graphic,.mdc-banner.caution .mdc-banner__text{--mdc-theme-primary: var(--mdc-theme-surface-caution-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-caution)}.mdc-banner.negative{--cv-action-ribbon-background: var( --mdc-theme-surface-negative-highlight )}.mdc-banner.negative .mdc-banner__graphic,.mdc-banner.negative .mdc-banner__text{--mdc-theme-primary: var(--mdc-theme-surface-negative-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-error)}.mdc-banner.active{--cv-action-ribbon-background: var( --mdc-theme-surface-secondary-highlight )}.mdc-banner.active .mdc-banner__graphic,.mdc-banner.active .mdc-banner__text{--mdc-theme-primary: var(--mdc-theme-surface-secondary-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-secondary)}.mdc-banner.positive{--cv-action-ribbon-background: var( --mdc-theme-surface-positive-highlight )}.mdc-banner.positive .mdc-banner__graphic,.mdc-banner.positive .mdc-banner__text{--mdc-theme-primary: var(--mdc-theme-surface-positive-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-positive)}::slotted(*){margin-left:8px}.mdc-banner__content{min-height:56px}.mdc-banner__graphic{background-color:transparent;margin-top:8px;margin-bottom:8px}.mdc-banner__actions{align-self:center}
|
130
|
+
`;
|
131
|
+
var P = Object.defineProperty, F = Object.getOwnPropertyDescriptor, A = (c, e, r, a) => {
|
132
|
+
for (var t = a > 1 ? void 0 : a ? F(e, r) : e, o = c.length - 1, d; o >= 0; o--)
|
133
|
+
(d = c[o]) && (t = (a ? d(e, r, t) : d(t)) || t);
|
134
|
+
return a && t && P(e, r, t), t;
|
135
|
+
};
|
136
|
+
let p = class extends n {
|
137
|
+
};
|
138
|
+
p.styles = [
|
139
|
+
u`
|
140
|
+
${f(O)}
|
141
|
+
`
|
142
|
+
];
|
143
|
+
p = A([
|
144
|
+
v("cv-action-ribbon")
|
145
|
+
], p);
|
146
|
+
export {
|
147
|
+
p as CovalentActionRibbon
|
148
|
+
};
|
package/alert.mjs
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
import { LitElement as l, html as b, css as _, unsafeCSS as f } from "lit";
|
2
|
+
import { query as p, property as s, customElement as g } from "lit/decorators.js";
|
3
|
+
import { addHasRemoveClass as u } from "@material/mwc-base/base-element";
|
4
|
+
import { observer as v } from "@material/mwc-base/observer";
|
5
|
+
import { MDCBannerFoundation as x } from "@material/banner/foundation";
|
6
|
+
import { CloseReason as m, events as y } from "@material/banner/constants";
|
7
|
+
import { classMap as w } from "lit/directives/class-map.js";
|
8
|
+
var C = Object.defineProperty, k = Object.getOwnPropertyDescriptor, o = (i, e, r, a) => {
|
9
|
+
for (var t = a > 1 ? void 0 : a ? k(e, r) : e, c = i.length - 1, d; c >= 0; c--)
|
10
|
+
(d = i[c]) && (t = (a ? d(e, r, t) : d(t)) || t);
|
11
|
+
return a && t && C(e, r, t), t;
|
12
|
+
};
|
13
|
+
class n extends l {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this.mdcFoundationClass = x, this.open = !0, this.titleText = "", this.descriptionText = "", this.icon = "", this.iconAriaLabel = "", this.inline = !1, this.state = "", this.reason = m.UNSPECIFIED;
|
16
|
+
}
|
17
|
+
render() {
|
18
|
+
const e = {
|
19
|
+
"mdc-banner": !0,
|
20
|
+
"cv-banner--inline": this.inline,
|
21
|
+
negative: this.state === "negative",
|
22
|
+
positive: this.state === "positive",
|
23
|
+
caution: this.state === "caution",
|
24
|
+
active: this.state === "active"
|
25
|
+
};
|
26
|
+
return b` <div class="${w(e)}" role="banner">
|
27
|
+
<div class="mdc-banner__content" role="alertdialog" aria-live="assertive" aria-label="${this.titleText}">
|
28
|
+
<div class="mdc-banner__graphic-text-wrapper">
|
29
|
+
${this.icon ? this.renderIcon() : ""}
|
30
|
+
<div class="mdc-banner__text">
|
31
|
+
<span class="mdc-typography--body2">${this.titleText}</span>
|
32
|
+
<div class="mdc-typography--body1">${this.descriptionText}</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div class="mdc-banner__actions">
|
36
|
+
<slot name="action-items"></slot>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>`;
|
40
|
+
}
|
41
|
+
/** @soyTemplate */
|
42
|
+
renderIcon() {
|
43
|
+
return b` <div class="mdc-banner__graphic" role="img" aria-label="${this.iconAriaLabel}">
|
44
|
+
<slot name="icon">
|
45
|
+
<cv-icon class="mdc-banner__icon"> ${this.icon} </cv-icon>
|
46
|
+
</slot>
|
47
|
+
</div>`;
|
48
|
+
}
|
49
|
+
createAdapter() {
|
50
|
+
return {
|
51
|
+
...u(this.mdcRoot),
|
52
|
+
getContentHeight: () => this.mdcContent.offsetHeight,
|
53
|
+
setStyleProperty: (e, r) => {
|
54
|
+
this.mdcRoot.style.setProperty(e, r);
|
55
|
+
},
|
56
|
+
trapFocus: () => {
|
57
|
+
},
|
58
|
+
releaseFocus: () => {
|
59
|
+
},
|
60
|
+
notifyActionClicked: (e) => this.dispatchEvent(
|
61
|
+
new CustomEvent(y.ACTION_CLICKED, {
|
62
|
+
bubbles: !0,
|
63
|
+
cancelable: !0,
|
64
|
+
detail: { reason: e }
|
65
|
+
})
|
66
|
+
),
|
67
|
+
notifyClosed: () => {
|
68
|
+
},
|
69
|
+
notifyClosing: () => {
|
70
|
+
this.open = !1;
|
71
|
+
},
|
72
|
+
notifyOpened: () => {
|
73
|
+
},
|
74
|
+
notifyOpening: () => {
|
75
|
+
this.open = !0;
|
76
|
+
}
|
77
|
+
};
|
78
|
+
}
|
79
|
+
/** @export */
|
80
|
+
show() {
|
81
|
+
this.open = !0;
|
82
|
+
}
|
83
|
+
/** @export */
|
84
|
+
close(e = m.UNSPECIFIED) {
|
85
|
+
this.reason = e, this.open = !1;
|
86
|
+
}
|
87
|
+
async firstUpdated() {
|
88
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.open && this.mdcFoundation.open();
|
89
|
+
}
|
90
|
+
}
|
91
|
+
o([
|
92
|
+
p(".mdc-banner")
|
93
|
+
], n.prototype, "mdcRoot", 2);
|
94
|
+
o([
|
95
|
+
p(".mdc-banner__content")
|
96
|
+
], n.prototype, "mdcContent", 2);
|
97
|
+
o([
|
98
|
+
s({ type: Boolean, reflect: !0 }),
|
99
|
+
v(function(i) {
|
100
|
+
this.mdcFoundation && (i ? this.mdcFoundation.open() : (this.mdcFoundation.close(this.reason), this.reason = m.UNSPECIFIED));
|
101
|
+
})
|
102
|
+
], n.prototype, "open", 2);
|
103
|
+
o([
|
104
|
+
s({ type: String })
|
105
|
+
], n.prototype, "titleText", 2);
|
106
|
+
o([
|
107
|
+
s({ type: String })
|
108
|
+
], n.prototype, "descriptionText", 2);
|
109
|
+
o([
|
110
|
+
s({ type: String })
|
111
|
+
], n.prototype, "icon", 2);
|
112
|
+
o([
|
113
|
+
s({ type: String })
|
114
|
+
], n.prototype, "iconAriaLabel", 2);
|
115
|
+
o([
|
116
|
+
s({ type: Boolean })
|
117
|
+
], n.prototype, "inline", 2);
|
118
|
+
o([
|
119
|
+
s()
|
120
|
+
], n.prototype, "state", 2);
|
121
|
+
const F = `:host .mdc-banner__graphic{color:#fff;color:var(--mdc-theme-surface, #fff)}:host .mdc-banner__graphic{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}:host .mdc-banner__content,:host .mdc-banner__fixed{min-width:344px}@media (max-width: 480px),(max-width: 344px){:host .mdc-banner__content,:host .mdc-banner__fixed{min-width:100%}}:host .mdc-banner__content{max-width:720px}:host .mdc-banner{z-index:1;border-bottom-style:solid;box-sizing:border-box;display:none;flex-shrink:0;height:0;position:relative;width:100%}@media (max-width: 480px){:host .mdc-banner .mdc-banner__fixed{left:0;right:0}:host .mdc-banner .mdc-banner__text{margin-left:16px;margin-right:36px}[dir=rtl] :host .mdc-banner .mdc-banner__text,:host .mdc-banner .mdc-banner__text[dir=rtl]{margin-left:36px;margin-right:16px}}@media (max-width: 480px){:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__content{flex-wrap:wrap}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__graphic{margin-bottom:12px}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:16px;margin-right:8px;padding-bottom:4px}[dir=rtl] :host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text,:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text[dir=rtl]{margin-left:8px;margin-right:16px}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__actions{margin-left:auto}}:host .mdc-banner--opening,:host .mdc-banner--open,:host .mdc-banner--closing{display:flex}:host .mdc-banner--open{transition:height .3s ease}:host .mdc-banner--open .mdc-banner__content{transition:transform .3s ease;transform:translateY(0)}:host .mdc-banner--closing{transition:height .25s ease}:host .mdc-banner--closing .mdc-banner__content{transition:transform .25s ease}:host .mdc-banner--centered .mdc-banner__content{left:0;margin-left:auto;margin-right:auto;right:0}:host .mdc-banner__fixed{border-bottom-style:solid;box-sizing:border-box;height:inherit;position:fixed;width:100%}:host .mdc-banner__content{display:flex;min-height:52px;position:absolute;transform:translateY(-100%);width:100%}:host .mdc-banner__graphic-text-wrapper{display:flex;width:100%}:host .mdc-banner__graphic{margin:16px 0 16px 16px;flex-shrink:0;text-align:center}[dir=rtl] :host .mdc-banner__graphic,:host .mdc-banner__graphic[dir=rtl]{margin-left:0;margin-right:16px}:host .mdc-banner__icon{position:relative;top:50%;transform:translateY(-50%)}:host .mdc-banner__text{margin-left:24px;margin-right:90px;align-self:center;flex-grow:1;padding-top:16px;padding-bottom:16px}[dir=rtl] :host .mdc-banner__text,:host .mdc-banner__text[dir=rtl]{margin-left:90px;margin-right:24px}:host .mdc-banner__actions{padding:8px 8px 8px 0;align-self:flex-end;display:flex;flex-shrink:0}[dir=rtl] :host .mdc-banner__actions,:host .mdc-banner__actions[dir=rtl]{padding-left:8px;padding-right:0}:host .mdc-banner{background-color:#fff;border-bottom-color:#0000001f;border-bottom-width:1px;border-radius:0}:host .mdc-banner .mdc-banner__text{color:#000}:host .mdc-banner .mdc-banner__text{letter-spacing:.0178571429em;font-size:.875rem;font-family:Roboto,sans-serif;font-weight:400;line-height:1.25rem}:host .mdc-banner .mdc-banner__graphic{border-radius:50%}:host .mdc-banner .mdc-banner__graphic{height:40px;width:40px}:host .mdc-banner .mdc-banner__fixed{background-color:#fff}:host .mdc-banner .mdc-banner__fixed{border-bottom-color:#0000001f}:host .mdc-banner .mdc-banner__fixed{border-bottom-width:1px}:host .mdc-banner .mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-text-button-label-text-color, #6200ee)}:host .mdc-banner .mdc-button .mdc-button__ripple:before,:host .mdc-banner .mdc-button .mdc-button__ripple:after{background-color:#6200ee;background-color:var(--mdc-text-button-hover-state-layer-color, #6200ee)}:host .mdc-banner .mdc-button:hover .mdc-button__ripple:before,:host .mdc-banner .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple:before{opacity:.04;opacity:var(--mdc-text-button-hover-state-layer-opacity, .04)}:host .mdc-banner .mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple:before,:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-text-button-focus-state-layer-opacity, .12)}:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple:after{transition:opacity .15s linear}:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple:after{transition-duration:75ms;opacity:.1;opacity:var(--mdc-text-button-pressed-state-layer-opacity, .1)}:host .mdc-banner .mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-text-button-pressed-state-layer-opacity, .1)}:host .mdc-banner__secondary-action{margin-left:0;margin-right:8px}[dir=rtl] :host .mdc-banner__secondary-action,:host .mdc-banner__secondary-action[dir=rtl]{margin-left:8px;margin-right:0}:host .mdc-banner{--mdc-theme-surface: var(--mdc-theme-surface-neutral);background-color:var(--mdc-theme-surface)}:host .mdc-banner .mdc-banner__graphic{--mdc-theme-surface: var(--mdc-theme-text-icon-on-background)}:host .mdc-banner .mdc-banner__text{color:var(--mdc-theme-text-primary-on-background)}:host .mdc-banner .mdc-banner__text .mdc-typography--body2{font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:700;line-height:var(--mdc-typography-body2-line-height)}:host .mdc-banner .mdc-banner__text .mdc-typography--body1{color:var(--mdc-theme-text-secondary-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)}:host .mdc-banner.caution{--mdc-theme-surface: var(--mdc-theme-surface-caution)}:host .mdc-banner.caution.cv-banner--inline{--mdc-theme-surface: var(--mdc-theme-surface-caution-highlight)}:host .mdc-banner.caution.cv-banner--inline .mdc-banner__graphic,:host .mdc-banner.caution.cv-banner--inline .mdc-banner__text{--mdc-theme-surface: var(--mdc-theme-caution);--mdc-theme-text-primary-on-background: var(--mdc-theme-caution)}:host .mdc-banner.negative{--mdc-theme-surface: var(--mdc-theme-surface-negative)}:host .mdc-banner.negative.cv-banner--inline{--mdc-theme-surface: var(--mdc-theme-surface-negative-highlight)}:host .mdc-banner.negative.cv-banner--inline .mdc-banner__graphic,:host .mdc-banner.negative.cv-banner--inline .mdc-banner__text{--mdc-theme-surface: var(--mdc-theme-negative);--mdc-theme-text-primary-on-background: var(--mdc-theme-negative)}:host .mdc-banner.active{--mdc-theme-surface: var(--mdc-theme-surface-secondary)}:host .mdc-banner.active.cv-banner--inline{--mdc-theme-surface: var(--mdc-theme-surface-secondary-highlight)}:host .mdc-banner.active.cv-banner--inline .mdc-banner__graphic,:host .mdc-banner.active.cv-banner--inline .mdc-banner__text{--mdc-theme-surface: var(--mdc-theme-secondary);--mdc-theme-text-primary-on-background: var(--mdc-theme-secondary)}:host .mdc-banner.positive{--mdc-theme-surface: var(--mdc-theme-surface-positive)}:host .mdc-banner.positive.cv-banner--inline{--mdc-theme-surface: var(--mdc-theme-surface-positive-highlight)}:host .mdc-banner.positive.cv-banner--inline .mdc-banner__graphic,:host .mdc-banner.positive.cv-banner--inline .mdc-banner__text{--mdc-theme-surface: var(--mdc-theme-positive);--mdc-theme-text-primary-on-background: var(--mdc-theme-positive)}:host .mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity .28s cubic-bezier(.4,0,.2,1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}:host .mdc-banner{border-radius:8px;position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;overflow:hidden;border:none}:host .mdc-banner .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}:host .mdc-banner .mdc-banner__content{max-width:inherit}:host .mdc-banner .mdc-banner__graphic{background:none;margin-left:24px;width:24px}:host .mdc-banner .mdc-banner__text{margin-left:24px}:host .mdc-banner .mdc-banner__actions{align-self:center;align-items:center}:host .mdc-banner.cv-banner--inline{border-radius:0;box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}:host ::slotted(*){margin-left:8px}
|
122
|
+
`;
|
123
|
+
var P = Object.defineProperty, E = Object.getOwnPropertyDescriptor, O = (i, e, r, a) => {
|
124
|
+
for (var t = a > 1 ? void 0 : a ? E(e, r) : e, c = i.length - 1, d; c >= 0; c--)
|
125
|
+
(d = i[c]) && (t = (a ? d(e, r, t) : d(t)) || t);
|
126
|
+
return a && t && P(e, r, t), t;
|
127
|
+
};
|
128
|
+
let h = class extends n {
|
129
|
+
};
|
130
|
+
h.styles = [
|
131
|
+
_`
|
132
|
+
${f(F)}
|
133
|
+
`
|
134
|
+
];
|
135
|
+
h = O([
|
136
|
+
g("cv-alert")
|
137
|
+
], h);
|
138
|
+
export {
|
139
|
+
h as CovalentAlert
|
140
|
+
};
|
package/app-shell.mjs
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
import { html as l, nothing as p, css as h, unsafeCSS as g } from "lit";
|
2
|
+
import { property as c, customElement as f } from "lit/decorators.js";
|
3
|
+
import { classMap as m } from "lit/directives/class-map.js";
|
4
|
+
import { DrawerBase as y } from "@material/mwc-drawer/mwc-drawer-base";
|
5
|
+
const b = `.mdc-drawer{border-color:#0000001f;background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-top-left-radius:0;border-top-right-radius:0;border-top-right-radius:var(--mdc-shape-large, 0);border-bottom-right-radius:0;border-bottom-right-radius:var(--mdc-shape-large, 0);border-bottom-left-radius:0;z-index:6;width:256px;display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box;height:100%;border-right-width:1px;border-right-style:solid;overflow:hidden;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdc-drawer .mdc-drawer__title{color:#000000de}.mdc-drawer .mdc-deprecated-list-group__subheader,.mdc-drawer .mdc-drawer__subtitle,.mdc-drawer .mdc-deprecated-list-item__graphic{color:#0009}.mdc-drawer .mdc-deprecated-list-item{color:#000000de}.mdc-drawer .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#6200ee}.mdc-drawer .mdc-deprecated-list-item--activated{color:#6200eede}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-top-left-radius:0;border-top-left-radius:var(--mdc-shape-large, 0);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-left-radius:var(--mdc-shape-large, 0)}.mdc-drawer .mdc-deprecated-list-item{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-right:0}[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content,.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:256px}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-right-width:0;border-left-width:1px;border-right-style:none;border-left-style:solid}.mdc-drawer .mdc-deprecated-list-item{-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);height:40px;margin:8px;padding:0 8px}.mdc-drawer .mdc-deprecated-list-item:nth-child(1){margin-top:2px}.mdc-drawer .mdc-deprecated-list-item:nth-last-child(1){margin-bottom:0}.mdc-drawer .mdc-deprecated-list-group__subheader{-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);display:block;line-height:normal;margin:0;padding:0 16px}.mdc-drawer .mdc-deprecated-list-group__subheader:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-drawer .mdc-deprecated-list-divider{margin:3px 0 4px}.mdc-drawer .mdc-deprecated-list-item__text,.mdc-drawer .mdc-deprecated-list-item__graphic{pointer-events:none}.mdc-drawer--animate{transform:translate(-100%)}[dir=rtl] .mdc-drawer--animate,.mdc-drawer--animate[dir=rtl]{transform:translate(100%)}.mdc-drawer--opening{transform:translate(0);transition-duration:.25s}[dir=rtl] .mdc-drawer--opening,.mdc-drawer--opening[dir=rtl]{transform:translate(0)}.mdc-drawer--closing{transform:translate(-100%);transition-duration:.2s}[dir=rtl] .mdc-drawer--closing,.mdc-drawer--closing[dir=rtl]{transform:translate(100%)}.mdc-drawer__header{flex-shrink:0;box-sizing:border-box;min-height:64px;padding:0 16px 4px}.mdc-drawer__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);display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-drawer__title:before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-drawer__title:after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-drawer__subtitle{-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);display:block;margin-top:0;line-height:normal;margin-bottom:0}.mdc-drawer__subtitle:before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-drawer__content{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.mdc-drawer--dismissible{left:0;right:initial;display:none;position:absolute}[dir=rtl] .mdc-drawer--dismissible,.mdc-drawer--dismissible[dir=rtl]{left:initial;right:0}.mdc-drawer--dismissible.mdc-drawer--open{display:flex}.mdc-drawer-app-content{margin-left:0;margin-right:0;position:relative}[dir=rtl] .mdc-drawer-app-content,.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:0}.mdc-drawer--modal{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;left:0;right:initial;display:none;position:fixed}.mdc-drawer--modal+.mdc-drawer-scrim{background-color:#00000052}[dir=rtl] .mdc-drawer--modal,.mdc-drawer--modal[dir=rtl]{left:initial;right:0}.mdc-drawer--modal.mdc-drawer--open{display:flex}.mdc-drawer-scrim{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:5;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdc-drawer--open+.mdc-drawer-scrim{display:block}.mdc-drawer--animate+.mdc-drawer-scrim{opacity:0}.mdc-drawer--opening+.mdc-drawer-scrim{transition-duration:.25s;opacity:1}.mdc-drawer--closing+.mdc-drawer-scrim{transition-duration:.2s;opacity:0}:host{--mdc-theme-surface: var(--mdc-theme-background);--mdc-list-vertical-padding: 0}.app-shell{background-color:var(--mdc-theme-surface);display:grid;grid-template:"nav mini-list main help" min-content/auto auto 1fr;min-height:100vh}.app-shell:after{content:"";position:absolute;top:0;height:2px;width:100%;z-index:1000;background-color:#f3753f}.main{grid-area:main;overflow:auto;height:100vh;border-left:1px solid;border-color:var(--mdc-theme-border, rgba(0, 0, 0, .12))}.help{grid-area:help;width:320px;height:100vh;overflow-y:auto;border-left:1px solid;border-color:var(--mdc-theme-border, rgba(0, 0, 0, .12));transition-property:width;transition-duration:.2s}.help.help--closed{width:0}[name=mini-list]::slotted(*){display:block;width:320px;height:100vh;overflow:auto;border-left:1px solid;border-color:var(--mdc-theme-border, rgba(0, 0, 0, .12))}@media only screen and (max-width: 1000px){[name=mini-list]::slotted(*){display:none}}nav.navigation{grid-area:nav;height:100vh;overflow-y:auto;border-right:0}nav.navigation .toggle-drawer{margin:8px auto}nav.navigation .navigation-toolbar{display:flex;align-items:center}nav.navigation slot[name=logo]{display:none}nav.navigation.mdc-drawer--open .toggle-drawer{margin-left:12px;margin-right:12px}nav.navigation.mdc-drawer--open slot[name=logo]{display:block}[divider]{border-bottom:1px solid;margin:16px;border-color:var(--mdc-theme-border, rgba(0, 0, 0, .12))}@media only screen and (min-width: 768px){nav.navigation{display:flex;flex-direction:column;transition-property:width;transition-duration:.2s;transform:none;background-color:transparent}.mdc-drawer--dismissible{display:block;width:72px;position:static}.mdc-drawer--open{width:256px}.mdc-drawer--opening{width:256px;transition-duration:.2s}.mdc-drawer--closing{width:72px;transition-duration:.2s}.header{display:none}}@media only screen and (max-width: 768px){.app-shell{grid-template-columns:1fr;grid-template-areas:"header" "main" "mini-list" "help"}[name=help]::slotted(*),.main{height:auto;width:auto;border:none}}
|
6
|
+
`;
|
7
|
+
var w = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, r, a, i) => {
|
8
|
+
for (var e = i > 1 ? void 0 : i ? v(r, a) : r, d = t.length - 1, n; d >= 0; d--)
|
9
|
+
(n = t[d]) && (e = (i ? n(r, a, e) : n(e)) || e);
|
10
|
+
return i && e && w(r, a, e), e;
|
11
|
+
};
|
12
|
+
let o = class extends y {
|
13
|
+
constructor() {
|
14
|
+
super(), this.appName = "", this.helpOpen = !1, this.resizeEvent();
|
15
|
+
}
|
16
|
+
_toggleOpen() {
|
17
|
+
this.mdcFoundation.isOpening() || this.mdcFoundation.isClosing() || (this.open = !this.open, this.dispatchEvent(
|
18
|
+
new Event("CovalentAppShell:toggle", { bubbles: !0, composed: !0 })
|
19
|
+
));
|
20
|
+
}
|
21
|
+
resizeEvent() {
|
22
|
+
const t = window.matchMedia("(max-width: 800px)");
|
23
|
+
t.matches && this.type !== "modal" ? this.type = "modal" : !t.matches && this.type !== "dismissible" && (this.type = "dismissible"), this.requestUpdate();
|
24
|
+
}
|
25
|
+
connectedCallback() {
|
26
|
+
super.connectedCallback(), window.addEventListener("resize", () => this.resizeEvent());
|
27
|
+
}
|
28
|
+
disconnectedCallback() {
|
29
|
+
super.disconnectedCallback(), window.removeEventListener("resize", this.resizeEvent);
|
30
|
+
}
|
31
|
+
render() {
|
32
|
+
const t = this.type === "dismissible" || this.type === "modal", r = this.type === "modal", a = {
|
33
|
+
"mdc-drawer--dismissible": t,
|
34
|
+
"mdc-drawer--modal": r
|
35
|
+
}, i = {
|
36
|
+
"help--closed": !this.helpOpen
|
37
|
+
}, e = r ? l`<div
|
38
|
+
class="mdc-drawer-scrim"
|
39
|
+
@click="${this._handleScrimClick}"
|
40
|
+
></div>` : p;
|
41
|
+
return l`
|
42
|
+
<div class="app-shell">
|
43
|
+
<span class="header"
|
44
|
+
><cv-top-app-bar-fixed centerTitle>
|
45
|
+
<cv-icon-button
|
46
|
+
class="toggle-drawer"
|
47
|
+
@click=${this._toggleOpen}
|
48
|
+
slot="navigationIcon"
|
49
|
+
icon="menu"
|
50
|
+
></cv-icon-button>
|
51
|
+
<span slot="title">${this.appName}</span>
|
52
|
+
</cv-top-app-bar-fixed>
|
53
|
+
</span>
|
54
|
+
<nav class="navigation mdc-drawer ${m(a)}">
|
55
|
+
<div class="navigation-toolbar">
|
56
|
+
<cv-icon-button
|
57
|
+
@click=${this._toggleOpen}
|
58
|
+
class="toggle-drawer"
|
59
|
+
icon="menu"
|
60
|
+
></cv-icon-button>
|
61
|
+
<slot name="logo"></slot>
|
62
|
+
</div>
|
63
|
+
<slot name="navigation"></slot>
|
64
|
+
<div style="display:flex; flex:1;"></div>
|
65
|
+
<div divider></div>
|
66
|
+
<slot name="user-menu"></slot>
|
67
|
+
</nav>
|
68
|
+
${e}
|
69
|
+
<slot name="mini-list"></slot>
|
70
|
+
<div class="main mdc-drawer-app-content"><slot></slot></div>
|
71
|
+
<div class="help ${m(i)}">
|
72
|
+
<slot name="help"></slot>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
`;
|
76
|
+
}
|
77
|
+
};
|
78
|
+
o.styles = [
|
79
|
+
h`
|
80
|
+
${g(b)}
|
81
|
+
`
|
82
|
+
];
|
83
|
+
s([
|
84
|
+
c()
|
85
|
+
], o.prototype, "appName", 2);
|
86
|
+
s([
|
87
|
+
c({ type: Boolean })
|
88
|
+
], o.prototype, "helpOpen", 2);
|
89
|
+
o = s([
|
90
|
+
f("cv-app-shell")
|
91
|
+
], o);
|
92
|
+
export {
|
93
|
+
o as CovalentAppShell
|
94
|
+
};
|
package/button.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as a, unsafeCSS as l } from "lit";
|
2
|
+
import { customElement as p } from "lit/decorators.js";
|
3
|
+
import { ButtonBase as u } from "@material/mwc-button/mwc-button-base";
|
4
|
+
import { styles as i } from "@material/mwc-button/styles.css?used";
|
5
|
+
const v = `:host{--mdc-button-outline-color: var(--mdc-theme-text-icon-on-background);--mdc-theme-primary: var(--mdc-theme-text-primary-on-background)}:host(.accent.primary){--mdc-theme-primary: var(--mdc-theme-accent);--mdc-button-outline-color: var(--mdc-theme-accent)}:host(.destructive.primary){--mdc-theme-primary: var(--mdc-theme-error);--mdc-button-outline-color: var(--mdc-theme-error)}
|
6
|
+
`;
|
7
|
+
var d = Object.defineProperty, h = Object.getOwnPropertyDescriptor, f = (n, e, o, r) => {
|
8
|
+
for (var t = r > 1 ? void 0 : r ? h(e, o) : e, m = n.length - 1, c; m >= 0; m--)
|
9
|
+
(c = n[m]) && (t = (r ? c(e, o, t) : c(t)) || t);
|
10
|
+
return r && t && d(e, o, t), t;
|
11
|
+
};
|
12
|
+
let s = class extends u {
|
13
|
+
};
|
14
|
+
s.styles = [i, a`${l(v)}`];
|
15
|
+
s = f([
|
16
|
+
p("cv-button")
|
17
|
+
], s);
|
18
|
+
export {
|
19
|
+
s as CovalentButtonBase
|
20
|
+
};
|
package/card.mjs
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
import { LitElement as s, html as m, css as _, unsafeCSS as f } from "lit";
|
2
|
+
import { property as n, customElement as b } from "lit/decorators.js";
|
3
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
4
|
+
var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, p = (d, i, e, a) => {
|
5
|
+
for (var r = a > 1 ? void 0 : a ? y(i, e) : i, c = d.length - 1, t; c >= 0; c--)
|
6
|
+
(t = d[c]) && (r = (a ? t(i, e, r) : t(r)) || r);
|
7
|
+
return a && r && g(i, e, r), r;
|
8
|
+
};
|
9
|
+
class o extends s {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments), this.cardTitle = "", this.subTitle = "", this.actionBar = !1, this.interactive = !1, this.outlined = !1;
|
12
|
+
}
|
13
|
+
render() {
|
14
|
+
const i = {
|
15
|
+
"mdc-card": !0,
|
16
|
+
"mdc-card--outlined": this.outlined
|
17
|
+
};
|
18
|
+
return m` <div class="${u(i)}">
|
19
|
+
${this.cardTitle ? m`
|
20
|
+
<div class="mdc-card__actions mdc-typography--headline5">
|
21
|
+
${this.cardTitle}
|
22
|
+
</div>
|
23
|
+
` : ""}
|
24
|
+
<div class="mdc-card__primary-action">
|
25
|
+
<slot></slot>
|
26
|
+
${this.interactive ? m`<div class="mdc-card__ripple"></div>` : ""}
|
27
|
+
</div>
|
28
|
+
${this.actionBar ? m`
|
29
|
+
<div class="mdc-card__actions">
|
30
|
+
<slot name="card-actions"></slot>
|
31
|
+
</div>
|
32
|
+
` : ""}
|
33
|
+
</div>`;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
p([
|
37
|
+
n()
|
38
|
+
], o.prototype, "cardTitle", 2);
|
39
|
+
p([
|
40
|
+
n()
|
41
|
+
], o.prototype, "subTitle", 2);
|
42
|
+
p([
|
43
|
+
n({ type: Boolean })
|
44
|
+
], o.prototype, "actionBar", 2);
|
45
|
+
p([
|
46
|
+
n({ type: Boolean })
|
47
|
+
], o.prototype, "interactive", 2);
|
48
|
+
p([
|
49
|
+
n({ type: Boolean })
|
50
|
+
], o.prototype, "outlined", 2);
|
51
|
+
const h = `.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity .28s cubic-bezier(.4,0,.2,1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-card{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;display:flex;flex-direction:column;box-sizing:border-box}.mdc-card .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-card:after{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);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-card:after{border-color:CanvasText}}.mdc-card--outlined{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f;border-width:1px;border-style:solid;border-color:#e0e0e0}.mdc-card--outlined:after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media:before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square:before{margin-top:100%}.mdc-card__media--16-9:before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:#0009;flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:#0009}@keyframes mdc-ripple-fg-radius-in{0%{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{0%{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{0%{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-card__primary-action{--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}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-card__primary-action .mdc-card__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-card__primary-action .mdc-card__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-card__primary-action.mdc-ripple-upgraded--unbounded .mdc-card__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-card__primary-action.mdc-ripple-upgraded--foreground-activation .mdc-card__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-card__primary-action.mdc-ripple-upgraded--foreground-deactivation .mdc-card__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-card__primary-action:hover .mdc-card__ripple:before,.mdc-card__primary-action.mdc-ripple-surface--hover .mdc-card__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-card__primary-action.mdc-ripple-upgraded--background-focused .mdc-card__ripple:before,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus .mdc-card__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-card__primary-action:not(.mdc-ripple-upgraded) .mdc-card__ripple:after{transition:opacity .15s linear}.mdc-card__primary-action:not(.mdc-ripple-upgraded):active .mdc-card__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-card__primary-action.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-card__primary-action .mdc-card__ripple{box-sizing:content-box;height:100%;overflow:hidden;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-card__primary-action.mdc-ripple-upgraded--background-focused:after,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus:after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:5px double transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-card__primary-action.mdc-ripple-upgraded--background-focused:after,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus:after{border-color:CanvasText}}.mdc-card__actions{color:var(--mdc-theme-text-primary-on-background);justify-content:space-between}.mdc-card__actions:first-of-type{border-bottom:1px solid var(--mdc-theme-border);padding-left:16px}.mdc-card.mdc-card--outlined{background-color:var(--mdc-theme-surface)}
|
52
|
+
`;
|
53
|
+
var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, w = (d, i, e, a) => {
|
54
|
+
for (var r = a > 1 ? void 0 : a ? x(i, e) : i, c = d.length - 1, t; c >= 0; c--)
|
55
|
+
(t = d[c]) && (r = (a ? t(i, e, r) : t(r)) || r);
|
56
|
+
return a && r && v(i, e, r), r;
|
57
|
+
};
|
58
|
+
let l = class extends o {
|
59
|
+
};
|
60
|
+
l.styles = [
|
61
|
+
_`
|
62
|
+
${f(h)}
|
63
|
+
`
|
64
|
+
];
|
65
|
+
l = w([
|
66
|
+
b("cv-card")
|
67
|
+
], l);
|
68
|
+
export {
|
69
|
+
l as CovalentCardBase
|
70
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CheckListItemBase as c } from "@material/mwc-list/mwc-check-list-item-base";
|
2
|
+
import { styles as f } from "@material/mwc-list/mwc-control-list-item.css?used";
|
3
|
+
import { styles as i } from "@material/mwc-list/mwc-list-item.css?used";
|
4
|
+
import { customElement as v } from "lit/decorators.js";
|
5
|
+
var a = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (p, s, r, t) => {
|
6
|
+
for (var e = t > 1 ? void 0 : t ? _(s, r) : s, m = p.length - 1, o; m >= 0; m--)
|
7
|
+
(o = p[m]) && (e = (t ? o(s, r, e) : o(e)) || e);
|
8
|
+
return t && e && a(s, r, e), e;
|
9
|
+
};
|
10
|
+
let l = class extends c {
|
11
|
+
};
|
12
|
+
l.styles = [i, f];
|
13
|
+
l = n([
|
14
|
+
v("cv-check-list-item")
|
15
|
+
], l);
|
16
|
+
export {
|
17
|
+
l as CovalentCheckListItemBase
|
18
|
+
};
|
package/checkbox.mjs
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as l, unsafeCSS as n } from "lit";
|
2
|
+
import { customElement as d } from "lit/decorators.js";
|
3
|
+
import { CheckboxBase as h } from "@material/mwc-checkbox/mwc-checkbox-base";
|
4
|
+
import { styles as b } from "@material/mwc-checkbox/mwc-checkbox.css?used";
|
5
|
+
const p = `:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
|
6
|
+
`;
|
7
|
+
var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, f = (a, c, r, o) => {
|
8
|
+
for (var e = o > 1 ? void 0 : o ? x(c, r) : c, s = a.length - 1, t; s >= 0; s--)
|
9
|
+
(t = a[s]) && (e = (o ? t(c, r, e) : t(e)) || e);
|
10
|
+
return o && e && v(c, r, e), e;
|
11
|
+
};
|
12
|
+
let m = class extends h {
|
13
|
+
};
|
14
|
+
m.styles = [b, l`${n(p)}`];
|
15
|
+
m = f([
|
16
|
+
d("cv-checkbox")
|
17
|
+
], m);
|
18
|
+
export {
|
19
|
+
m as CovalentCheckboxBase
|
20
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { CircularProgressBase as a } from "@material/mwc-circular-progress/mwc-circular-progress-base";
|
2
|
+
import { styles as f } from "@material/mwc-circular-progress/mwc-circular-progress.css?used";
|
3
|
+
import { customElement as m } from "lit/decorators.js";
|
4
|
+
var v = Object.defineProperty, i = Object.getOwnPropertyDescriptor, u = (c, e, o, s) => {
|
5
|
+
for (var r = s > 1 ? void 0 : s ? i(e, o) : e, t = c.length - 1, l; t >= 0; t--)
|
6
|
+
(l = c[t]) && (r = (s ? l(e, o, r) : l(r)) || r);
|
7
|
+
return s && r && v(e, o, r), r;
|
8
|
+
};
|
9
|
+
let p = class extends a {
|
10
|
+
};
|
11
|
+
p.styles = [f];
|
12
|
+
p = u([
|
13
|
+
m("cv-circular-progress")
|
14
|
+
], p);
|
15
|
+
export {
|
16
|
+
p as CovalentCircularProgressBase
|
17
|
+
};
|