@covalent/components 7.0.0 → 7.1.0-beta.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.
@@ -1,20 +0,0 @@
1
- import { CovalentList } from './list';
2
- import CovalentNavRailListItem from './nav-list-item';
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- 'cv-expansion-list': CovalentExpansionList;
6
- }
7
- }
8
- export declare class CovalentExpansionList extends CovalentList {
9
- static styles: import("lit").CSSResult[];
10
- static shadowRootOptions: ShadowRootInit;
11
- open: boolean;
12
- navOpen: boolean;
13
- expansionHeader: CovalentNavRailListItem[];
14
- constructor();
15
- private _toggleOpen;
16
- attributeChangedCallback(name: string, _old: string, value: string): void;
17
- render(): import("lit-html").TemplateResult<1>;
18
- }
19
- export default CovalentExpansionList;
20
- //# sourceMappingURL=list-expansion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-expansion.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list-expansion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,uBAAuB,MAAM,iBAAiB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,qBAAqB,CAAC;KAC5C;CACF;AAED,qBACa,qBAAsB,SAAQ,YAAY;IACrD,OAAgB,MAAM,4BAOpB;IACF,OAAgB,iBAAiB,EAAE,cAAc,CAG/C;IAGF,IAAI,UAAS;IAGb,OAAO,UAAS;IAGhB,eAAe,EAAG,uBAAuB,EAAE,CAAC;;IAM5C,OAAO,CAAC,WAAW;IASV,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAelE,MAAM;CAMhB;AAED,eAAe,qBAAqB,CAAC"}
package/list-05db7fed.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";const c=require("./mwc-list-base-cb3500b4.js"),n=require("./query-assigned-elements-f623705d.js"),p=require("./property-57f6f6fe.js");/**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-LIcense-Identifier: Apache-2.0
5
- */const l=n.i`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 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{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var t=i>1?void 0:i?g(e,r):e,s=a.length-1,d;s>=0;s--)(d=a[s])&&(t=(i?d(e,r,t):d(t))||t);return i&&t&&m(e,r,t),t};exports.CovalentList=class extends c.ListBase{constructor(){super(...arguments),this.navOpen=!1}async getUpdateComplete(){return this.slotElements.forEach(e=>{e.setAttribute("navopen",this.navOpen.toString())}),await super.getUpdateComplete()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),e==="navopen"&&this.slotElements.forEach(t=>{i==="true"?t.setAttribute("navopen",i):t.removeAttribute("navopen")})}};exports.CovalentList.styles=[l];o([n.l({flatten:!0})],exports.CovalentList.prototype,"slotElements",2);o([p.n({type:Boolean,reflect:!0})],exports.CovalentList.prototype,"navOpen",2);exports.CovalentList=o([n.e("cv-list")],exports.CovalentList);const h=exports.CovalentList;exports.CovalentList$1=h;exports.styles=l;
package/list-066f5de4.mjs DELETED
@@ -1,45 +0,0 @@
1
- import { L as l } from "./mwc-list-base-32d4ac31.mjs";
2
- import { i as c, l as p, e as m } from "./query-assigned-elements-4a39219d.mjs";
3
- import { n as g } from "./property-9b6ea53b.mjs";
4
- /**
5
- * @license
6
- * Copyright 2021 Google LLC
7
- * SPDX-LIcense-Identifier: Apache-2.0
8
- */
9
- const f = c`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 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{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;
10
- var h = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (t, a, e, i) => {
11
- for (var r = i > 1 ? void 0 : i ? v(a, e) : a, s = t.length - 1, n; s >= 0; s--)
12
- (n = t[s]) && (r = (i ? n(a, e, r) : n(r)) || r);
13
- return i && r && h(a, e, r), r;
14
- };
15
- let d = class extends l {
16
- constructor() {
17
- super(...arguments), this.navOpen = !1;
18
- }
19
- async getUpdateComplete() {
20
- return this.slotElements.forEach((t) => {
21
- t.setAttribute("navopen", this.navOpen.toString());
22
- }), await super.getUpdateComplete();
23
- }
24
- attributeChangedCallback(t, a, e) {
25
- super.attributeChangedCallback(t, a, e), t === "navopen" && this.slotElements.forEach((i) => {
26
- e === "true" ? i.setAttribute("navopen", e) : i.removeAttribute("navopen");
27
- });
28
- }
29
- };
30
- d.styles = [f];
31
- o([
32
- p({ flatten: !0 })
33
- ], d.prototype, "slotElements", 2);
34
- o([
35
- g({ type: Boolean, reflect: !0 })
36
- ], d.prototype, "navOpen", 2);
37
- d = o([
38
- m("cv-list")
39
- ], d);
40
- const u = d;
41
- export {
42
- d as C,
43
- u as a,
44
- f as s
45
- };
package/list-expansion.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./query-assigned-elements-f623705d.js"),l=require("./property-57f6f6fe.js"),u=require("./list-05db7fed.js");require("./mwc-list-base-cb3500b4.js");require("./tslib.es6-e6a11c8a.js");require("./mwc-list-item-base-4a4d1e1b.js");require("./ripple-handlers-c82b1232.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./observer-a096ab43.js");require("./query-assigned-nodes-99eae71d.js");require("./if-defined-f1c45245.js");const v=`.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
2
- `;var c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,r=(o,t,i,n)=>{for(var e=n>1?void 0:n?d(t,i):t,a=o.length-1,p;a>=0;a--)(p=o[a])&&(e=(n?p(t,i,e):p(e))||e);return n&&e&&c(t,i,e),e};exports.CovalentExpansionList=class extends u.CovalentList{constructor(){super(),this.open=!1,this.navOpen=!1}_toggleOpen(){this.open=!this.open,this.expansionHeader.forEach(t=>{t.activated=this.open,t.selected=this.open})}attributeChangedCallback(t,i,n){super.attributeChangedCallback(t,i,n),t==="navopen"&&this.expansionHeader.forEach(e=>{n==="true"?(e.navOpen=!!n,e.setAttribute("navopen",n)):e.removeAttribute("navopen")})}render(){return s.x`
3
- <slot name="expansionHeader" @click=${this._toggleOpen}></slot>
4
- ${this.navOpen?super.render():s.A}
5
- `}};exports.CovalentExpansionList.styles=[s.i`
6
- ${s.r(u.styles)}
7
- `,s.i`
8
- ${s.r(v)}
9
- `];exports.CovalentExpansionList.shadowRootOptions={mode:"open",delegatesFocus:!0};r([l.n({type:Boolean,reflect:!0})],exports.CovalentExpansionList.prototype,"open",2);r([l.n({type:Boolean,reflect:!0})],exports.CovalentExpansionList.prototype,"navOpen",2);r([s.l({slot:"expansionHeader"})],exports.CovalentExpansionList.prototype,"expansionHeader",2);exports.CovalentExpansionList=r([s.e("cv-expansion-list")],exports.CovalentExpansionList);const h=exports.CovalentExpansionList;exports.default=h;
@@ -1,73 +0,0 @@
1
- import { i as l, r as h, l as d, x as c, A as v, e as f } from "./query-assigned-elements-4a39219d.mjs";
2
- import { n as m } from "./property-9b6ea53b.mjs";
3
- import { C as u, s as g } from "./list-066f5de4.mjs";
4
- import "./mwc-list-base-32d4ac31.mjs";
5
- import "./tslib.es6-f1eaf65c.mjs";
6
- import "./mwc-list-item-base-8654347d.mjs";
7
- import "./ripple-handlers-321219b8.mjs";
8
- import "./base-element-67ae173f.mjs";
9
- import "./utils-2932417c.mjs";
10
- import "./state-b5e865db.mjs";
11
- import "./query-d843aa92.mjs";
12
- import "./class-map-4b94b017.mjs";
13
- import "./style-map-bc3ed3e0.mjs";
14
- import "./observer-be7b92e2.mjs";
15
- import "./query-assigned-nodes-df691e78.mjs";
16
- import "./if-defined-c367f208.mjs";
17
- const x = `.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
18
- `;
19
- var O = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (e, n, t, o) => {
20
- for (var r = o > 1 ? void 0 : o ? C(n, t) : n, p = e.length - 1, a; p >= 0; p--)
21
- (a = e[p]) && (r = (o ? a(n, t, r) : a(r)) || r);
22
- return o && r && O(n, t, r), r;
23
- };
24
- let s = class extends u {
25
- constructor() {
26
- super(), this.open = !1, this.navOpen = !1;
27
- }
28
- _toggleOpen() {
29
- this.open = !this.open, this.expansionHeader.forEach((e) => {
30
- e.activated = this.open, e.selected = this.open;
31
- });
32
- }
33
- attributeChangedCallback(e, n, t) {
34
- super.attributeChangedCallback(e, n, t), e === "navopen" && this.expansionHeader.forEach((o) => {
35
- t === "true" ? (o.navOpen = !!t, o.setAttribute("navopen", t)) : o.removeAttribute("navopen");
36
- });
37
- }
38
- render() {
39
- return c`
40
- <slot name="expansionHeader" @click=${this._toggleOpen}></slot>
41
- ${this.navOpen ? super.render() : v}
42
- `;
43
- }
44
- };
45
- s.styles = [
46
- l`
47
- ${h(g)}
48
- `,
49
- l`
50
- ${h(x)}
51
- `
52
- ];
53
- s.shadowRootOptions = {
54
- mode: "open",
55
- delegatesFocus: !0
56
- };
57
- i([
58
- m({ type: Boolean, reflect: !0 })
59
- ], s.prototype, "open", 2);
60
- i([
61
- m({ type: Boolean, reflect: !0 })
62
- ], s.prototype, "navOpen", 2);
63
- i([
64
- d({ slot: "expansionHeader" })
65
- ], s.prototype, "expansionHeader", 2);
66
- s = i([
67
- f("cv-expansion-list")
68
- ], s);
69
- const z = s;
70
- export {
71
- s as CovalentExpansionList,
72
- z as default
73
- };
@@ -1,9 +0,0 @@
1
- "use strict";const m=require("./mwc-list-item-base-4a4d1e1b.js"),t=require("./query-assigned-elements-f623705d.js"),p=require("./property-57f6f6fe.js"),a=require("./mwc-list-item.css-25adc0c4.js"),l=`.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
2
- `;var d=Object.defineProperty,v=Object.getOwnPropertyDescriptor,h=(c,s,i,r)=>{for(var e=r>1?void 0:r?v(s,i):s,n=c.length-1,o;n>=0;n--)(o=c[n])&&(e=(r?o(s,i,e):o(e))||e);return r&&e&&d(s,i,e),e};exports.CovalentListItem=class extends m.ListItemBase{constructor(){super(...arguments),this.hasChildren=!1}render(){const s=this.renderText(),i=this.graphic?this.renderGraphic():t.A,r=this.hasMeta?this.renderMeta():t.A,e=this.activated?"arrow_drop_down":"arrow_right",n=this.hasChildren?t.x`<cv-icon class="expansion-icon">${e}</cv-icon>`:t.A,o=this.hasChildren?t.x`<slot name="child"></slot>`:t.A;return t.x` ${this.renderRipple()} ${n} ${i} ${s} ${r}
3
- ${o}`}};exports.CovalentListItem.styles=[t.i`
4
- ${t.r(a.styles)}
5
- `,t.i`
6
- ${t.r(a.styles$1)}
7
- `,t.i`
8
- ${t.r(l)}
9
- `];h([p.n({type:Boolean,reflect:!0})],exports.CovalentListItem.prototype,"hasChildren",2);exports.CovalentListItem=h([t.e("cv-list-item")],exports.CovalentListItem);const u=exports.CovalentListItem;exports.CovalentListItem$1=u;exports.styles=l;
@@ -1,44 +0,0 @@
1
- import { L as d } from "./mwc-list-item-base-8654347d.mjs";
2
- import { i as h, r as l, A as a, x as p, e as v } from "./query-assigned-elements-4a39219d.mjs";
3
- import { n as x } from "./property-9b6ea53b.mjs";
4
- import { s as f, a as $ } from "./mwc-list-item.css-b0009fc7.mjs";
5
- const g = `.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
6
- `;
7
- var _ = Object.defineProperty, u = Object.getOwnPropertyDescriptor, m = (n, e, r, s) => {
8
- for (var t = s > 1 ? void 0 : s ? u(e, r) : e, o = n.length - 1, c; o >= 0; o--)
9
- (c = n[o]) && (t = (s ? c(e, r, t) : c(t)) || t);
10
- return s && t && _(e, r, t), t;
11
- };
12
- let i = class extends d {
13
- constructor() {
14
- super(...arguments), this.hasChildren = !1;
15
- }
16
- render() {
17
- const n = this.renderText(), e = this.graphic ? this.renderGraphic() : a, r = this.hasMeta ? this.renderMeta() : a, s = this.activated ? "arrow_drop_down" : "arrow_right", t = this.hasChildren ? p`<cv-icon class="expansion-icon">${s}</cv-icon>` : a, o = this.hasChildren ? p`<slot name="child"></slot>` : a;
18
- return p` ${this.renderRipple()} ${t} ${e} ${n} ${r}
19
- ${o}`;
20
- }
21
- };
22
- i.styles = [
23
- h`
24
- ${l(f)}
25
- `,
26
- h`
27
- ${l($)}
28
- `,
29
- h`
30
- ${l(g)}
31
- `
32
- ];
33
- m([
34
- x({ type: Boolean, reflect: !0 })
35
- ], i.prototype, "hasChildren", 2);
36
- i = m([
37
- v("cv-list-item")
38
- ], i);
39
- const b = i;
40
- export {
41
- i as C,
42
- b as a,
43
- g as s
44
- };