@covalent/components 7.0.0 → 7.1.0-beta.2

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 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAO5D,OAAO,uBAAuB,MAAM,iBAAiB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,YAAY,CAAC;KACzB;CACF;AAED,qBACa,YAAa,SAAQ,QAAQ;IAExC,YAAY,EAAG,uBAAuB,EAAE,CAAC;IAGzC,OAAO,UAAS;IAEhB,OAAgB,MAAM,4BAAY;IAEnB,iBAAiB;IAQvB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAa5E;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,YAAY,CAAC;KACzB;CACF;AAED,qBACa,YAAa,SAAQ,QAAQ;IACxC,OAAgB,MAAM,4BAGpB;CACH;AAED,eAAe,YAAY,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { CovalentListItem } from './list-item';
2
+ import CovalentList from './list';
2
3
  declare global {
3
4
  interface HTMLElementTagNameMap {
4
5
  'cv-nav-list-item': CovalentNavRailListItem;
@@ -6,8 +7,20 @@ declare global {
6
7
  }
7
8
  export declare class CovalentNavRailListItem extends CovalentListItem {
8
9
  static styles: import("lit").CSSResult[];
9
- navOpen: boolean;
10
- constructor();
10
+ expansionPanelElements: CovalentList[];
11
+ lastKeySelected: number;
12
+ open: boolean;
13
+ hasChildren: boolean;
14
+ activated: boolean;
15
+ private _toggleOpen;
16
+ private _handleKeydown;
17
+ private _handleRequestSelected;
18
+ private _deselectChildren;
19
+ private _deselectHeader;
20
+ renderExpansionItem(): import("lit-html").TemplateResult<1>;
21
+ connectedCallback(): void;
22
+ disconnectedCallback(): void;
23
+ render(): import("lit-html").TemplateResult<1>;
11
24
  }
12
25
  export default CovalentNavRailListItem;
13
26
  //# sourceMappingURL=nav-list-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nav-list-item.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/nav-list-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM/C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,uBAAuB,CAAC;KAC7C;CACF;AAED,qBACa,uBAAwB,SAAQ,gBAAgB;IAC3D,OAAgB,MAAM,4BAapB;IAGF,OAAO,UAAS;;CAKjB;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"nav-list-item.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/nav-list-item.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM/C,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,uBAAuB,CAAC;KAC7C;CACF;AAED,qBACa,uBAAwB,SAAQ,gBAAgB;IAC3D,OAAgB,MAAM,4BAapB;IAGF,sBAAsB,EAAG,YAAY,EAAE,CAAC;IAExC,eAAe,SAAK;IAGpB,IAAI,UAAS;IAGb,WAAW,UAAS;IAEpB,SAAS,UAAS;IAElB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,cAAc;IAkEtB,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAOvB,mBAAmB;IAsBV,iBAAiB;IAOjB,oBAAoB;IAOpB,MAAM;CAGhB;AAED,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";const c=require("./mwc-list-item-base-4a4d1e1b.js"),e=require("./query-assigned-elements-f623705d.js"),v=require("./mwc-list-item.css-25adc0c4.js"),a=`.mdc-deprecated-list-item__text{padding-left:var(--cv-list-item-text-padding, 0)}
2
+ `;var o=Object.defineProperty,I=Object.getOwnPropertyDescriptor,L=(l,s,r,i)=>{for(var t=i>1?void 0:i?I(s,r):s,n=l.length-1,m;n>=0;n--)(m=l[n])&&(t=(i?m(s,r,t):m(t))||t);return i&&t&&o(s,r,t),t};exports.CovalentListItem=class extends c.ListItemBase{};exports.CovalentListItem.styles=[e.i`
3
+ ${e.r(v.styles)}
4
+ `,e.i`
5
+ ${e.r(v.styles$1)}
6
+ `,e.i`
7
+ ${e.r(a)}
8
+ `];exports.CovalentListItem=L([e.e("cv-list-item")],exports.CovalentListItem);const C=exports.CovalentListItem;exports.CovalentListItem$1=C;exports.styles=a;
@@ -0,0 +1,32 @@
1
+ import { L as v } from "./mwc-list-item-base-8654347d.mjs";
2
+ import { i as m, r as o, e as n } from "./query-assigned-elements-4a39219d.mjs";
3
+ import { s as c, a as f } from "./mwc-list-item.css-b0009fc7.mjs";
4
+ const _ = `.mdc-deprecated-list-item__text{padding-left:var(--cv-list-item-text-padding, 0)}
5
+ `;
6
+ var d = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, x = (p, e, a, s) => {
7
+ for (var t = s > 1 ? void 0 : s ? $(e, a) : e, i = p.length - 1, l; i >= 0; i--)
8
+ (l = p[i]) && (t = (s ? l(e, a, t) : l(t)) || t);
9
+ return s && t && d(e, a, t), t;
10
+ };
11
+ let r = class extends v {
12
+ };
13
+ r.styles = [
14
+ m`
15
+ ${o(c)}
16
+ `,
17
+ m`
18
+ ${o(f)}
19
+ `,
20
+ m`
21
+ ${o(_)}
22
+ `
23
+ ];
24
+ r = x([
25
+ n("cv-list-item")
26
+ ], r);
27
+ const O = r;
28
+ export {
29
+ r as C,
30
+ O as a,
31
+ _ as s
32
+ };
package/list-item.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-item-base-4a4d1e1b.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./mwc-list-item.css-25adc0c4.js");const e=require("./list-item-8da7ba96.js");require("./tslib.es6-e6a11c8a.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");Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>e.CovalentListItem});exports.default=e.CovalentListItem$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-item-base-4a4d1e1b.js");require("./query-assigned-elements-f623705d.js");require("./mwc-list-item.css-25adc0c4.js");const e=require("./list-item-3dc4b60f.js");require("./tslib.es6-e6a11c8a.js");require("./ripple-handlers-c82b1232.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./observer-a096ab43.js");Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>e.CovalentListItem});exports.default=e.CovalentListItem$1;
package/list-item.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./mwc-list-item-base-8654347d.mjs";
2
2
  import "./query-assigned-elements-4a39219d.mjs";
3
- import "./property-9b6ea53b.mjs";
4
3
  import "./mwc-list-item.css-b0009fc7.mjs";
5
- import { C as v, a as x } from "./list-item-ba77097d.mjs";
4
+ import { C as v, a as x } from "./list-item-bab8d6ba.mjs";
6
5
  import "./tslib.es6-f1eaf65c.mjs";
7
6
  import "./ripple-handlers-321219b8.mjs";
8
7
  import "./base-element-67ae173f.mjs";
9
8
  import "./utils-2932417c.mjs";
9
+ import "./property-9b6ea53b.mjs";
10
10
  import "./state-b5e865db.mjs";
11
11
  import "./query-d843aa92.mjs";
12
12
  import "./class-map-4b94b017.mjs";
package/list.js CHANGED
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-base-cb3500b4.js");const e=require("./list-05db7fed.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.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");Object.defineProperty(exports,"CovalentList",{enumerable:!0,get:()=>e.CovalentList});exports.default=e.CovalentList$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./query-assigned-elements-f623705d.js"),l=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("./property-57f6f6fe.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");/**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-LIcense-Identifier: Apache-2.0
5
+ */const o=r.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}`,c=`:host{padding-right:var(--cv-list-padding-right, 16px)}:host(.subnav){--cv-list-padding-right: 0;--cv-list-item-text-padding: 68px}:host(.subnav) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:0 28px 28px 0;padding:0}.mdc-deprecated-list{display:flex;flex-direction:column;align-items:center;width:100%}
6
+ `;var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=(d,t,a,i)=>{for(var e=i>1?void 0:i?m(t,a):t,s=d.length-1,n;s>=0;s--)(n=d[s])&&(e=(i?n(t,a,e):n(e))||e);return i&&e&&p(t,a,e),e};exports.CovalentList=class extends l.ListBase{};exports.CovalentList.styles=[o,r.i`${r.r(c)}`];exports.CovalentList=g([r.e("cv-list")],exports.CovalentList);const h=exports.CovalentList;exports.default=h;
package/list.mjs CHANGED
@@ -1,12 +1,11 @@
1
- import "./mwc-list-base-32d4ac31.mjs";
2
- import { C as L, a as b } from "./list-066f5de4.mjs";
3
- import "./query-assigned-elements-4a39219d.mjs";
4
- import "./property-9b6ea53b.mjs";
1
+ import { i as n, r as l, e as p } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { L as m } from "./mwc-list-base-32d4ac31.mjs";
5
3
  import "./tslib.es6-f1eaf65c.mjs";
6
4
  import "./mwc-list-item-base-8654347d.mjs";
7
5
  import "./ripple-handlers-321219b8.mjs";
8
6
  import "./base-element-67ae173f.mjs";
9
7
  import "./utils-2932417c.mjs";
8
+ import "./property-9b6ea53b.mjs";
10
9
  import "./state-b5e865db.mjs";
11
10
  import "./query-d843aa92.mjs";
12
11
  import "./class-map-4b94b017.mjs";
@@ -14,7 +13,29 @@ import "./style-map-bc3ed3e0.mjs";
14
13
  import "./observer-be7b92e2.mjs";
15
14
  import "./query-assigned-nodes-df691e78.mjs";
16
15
  import "./if-defined-c367f208.mjs";
16
+ /**
17
+ * @license
18
+ * Copyright 2021 Google LLC
19
+ * SPDX-LIcense-Identifier: Apache-2.0
20
+ */
21
+ const c = n`@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}`, g = `:host{padding-right:var(--cv-list-padding-right, 16px)}:host(.subnav){--cv-list-padding-right: 0;--cv-list-item-text-padding: 68px}:host(.subnav) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:0 28px 28px 0;padding:0}.mdc-deprecated-list{display:flex;flex-direction:column;align-items:center;width:100%}
22
+ `;
23
+ var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, v = (o, e, d, i) => {
24
+ for (var t = i > 1 ? void 0 : i ? f(e, d) : e, a = o.length - 1, s; a >= 0; a--)
25
+ (s = o[a]) && (t = (i ? s(e, d, t) : s(t)) || t);
26
+ return i && t && h(e, d, t), t;
27
+ };
28
+ let r = class extends m {
29
+ };
30
+ r.styles = [
31
+ c,
32
+ n`${l(g)}`
33
+ ];
34
+ r = v([
35
+ p("cv-list")
36
+ ], r);
37
+ const R = r;
17
38
  export {
18
- L as CovalentList,
19
- b as default
39
+ r as CovalentList,
40
+ R as default
20
41
  };
package/nav-list-item.js CHANGED
@@ -1,10 +1,22 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./query-assigned-elements-f623705d.js"),c=require("./property-57f6f6fe.js"),m=require("./list-item-8da7ba96.js"),l=require("./mwc-list-item.css-25adc0c4.js");require("./mwc-list-item-base-4a4d1e1b.js");require("./tslib.es6-e6a11c8a.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");const d=`:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
2
- `;var h=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=(a,o,r,i)=>{for(var t=i>1?void 0:i?v(o,r):o,n=a.length-1,s;n>=0;n--)(s=a[n])&&(t=(i?s(o,r,t):s(t))||t);return i&&t&&h(o,r,t),t};exports.CovalentNavRailListItem=class extends m.CovalentListItem{constructor(){super(),this.navOpen=!1}};exports.CovalentNavRailListItem.styles=[e.i`
3
- ${e.r(l.styles)}
4
- `,e.i`
5
- ${e.r(l.styles$1)}
6
- `,e.i`
7
- ${e.r(m.styles)}
8
- `,e.i`
9
- ${e.r(d)}
10
- `];p([c.n({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"navOpen",2);exports.CovalentNavRailListItem=p([e.e("cv-nav-list-item")],exports.CovalentNavRailListItem);const y=exports.CovalentNavRailListItem;exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./query-assigned-elements-f623705d.js"),h=require("./property-57f6f6fe.js"),c=require("./list-item-3dc4b60f.js"),d=require("./mwc-list-item.css-25adc0c4.js");require("./mwc-list-item-base-4a4d1e1b.js");require("./tslib.es6-e6a11c8a.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");const p=`:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:600;line-height:var(--mdc-typography-body2-line-height);text-align:left;border-radius:var(--cv-list-item-border-radius, 28px);transition:border-radius .1s ease-out;width:var(--cv-list-item-width, 100%)}::slotted(.section-selector){display:none;position:absolute;top:0;right:0}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--mdc-theme-primary)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{margin-left:var(--cv-list-item-graphic-margin-left, 12px)}:host([graphic=avatar]){padding:0}:host([graphic=avatar]) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0 0 0 15px}:host([hasChildren]){flex-direction:column;overflow:visible;height:inherit!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 12px}:host([hasChildren][open]:hover:not([activated])) .expansion-header{--mdc-ripple-color: transparent}:host([hasChildren][open]:hover:not([activated])) .expansion-header:hover{--mdc-ripple-color: var(--mdc-theme-primary)}.expansion-header{border-radius:var(--cv-list-item-border-radius);position:relative;height:48px;width:100%;overflow:hidden;display:flex;flex-shrink:0;align-items:center}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, -12px);font-size:var(--cv-list-item-expansion-icon-size, --mdc-icon-size);color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}.expansion-panel{display:block;width:100%;height:var(--cv-list-menu-height, 0);--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
2
+ `;var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,n=(o,e,t,i)=>{for(var s=i>1?void 0:i?g(e,t):e,r=o.length-1,l;r>=0;r--)(l=o[r])&&(s=(i?l(e,t,s):l(s))||s);return i&&s&&m(e,t,s),s};exports.CovalentNavRailListItem=class extends c.CovalentListItem{constructor(){super(...arguments),this.lastKeySelected=0,this.open=!1,this.hasChildren=!1,this.activated=!1}_toggleOpen(){this.open=!this.open}_handleKeydown(e){const t=this.expansionPanelElements[0],i=t?t==null?void 0:t.getFocusedItemIndex():0,s=(t==null?void 0:t.items.length)??0;if(this.hasChildren){if(e.code==="Enter"){e.preventDefault(),e.stopImmediatePropagation(),e.target.hasChildren?this._toggleOpen():this._deselectHeader(e);return}if(this.open){if(e.code==="ArrowUp"&&i===0&&this.lastKeySelected===0&&!e.target.hasChildren){e.preventDefault(),e.stopImmediatePropagation(),t.items[0].blur(),this.focus();return}e.code==="ArrowDown"&&i===-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(0),this.lastKeySelected=0),e.code==="ArrowUp"&&i!==-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(i),this.lastKeySelected=i),(e.code==="ArrowDown"||e.code==="ArrowUp")&&i!==-1&&this.lastKeySelected<s-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(i),this.lastKeySelected=i)}}}_handleRequestSelected(e){const t=e;this.hasChildren&&t.detail.selected===!1&&t.detail.source==="property"&&this._deselectChildren()}_deselectChildren(){this.expansionPanelElements.forEach(e=>{e.items.forEach(t=>t.selected=!1)})}_deselectHeader(e){e.preventDefault(),e.stopImmediatePropagation(),this.fireRequestSelected(!1,"interaction"),this.activated=!1}renderExpansionItem(){const e=this.renderText(),t=this.graphic?this.renderGraphic():a.A,i=this.hasMeta?this.renderMeta():a.A,s=this.open?"arrow_drop_down":"arrow_right",r=a.x`<cv-icon class="expansion-icon">${s}</cv-icon>`;return a.x`
3
+ <div
4
+ @mousedown=${this._toggleOpen}
5
+ @touchstart="${this._toggleOpen}"
6
+ @keydown=${this._toggleOpen}
7
+ class="expansion-header"
8
+ >
9
+ ${this.renderRipple()} ${r} ${t} ${e} ${i}
10
+ </div>
11
+ <div class="expansion-panel" @click=${this._deselectHeader}>
12
+ <slot name="expansion-panel"></slot>
13
+ </div>
14
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeydown),this.addEventListener("request-selected",this._handleRequestSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown),this.addEventListener("request-selected",this._handleRequestSelected)}render(){return this.hasChildren?this.renderExpansionItem():super.render()}};exports.CovalentNavRailListItem.styles=[a.i`
15
+ ${a.r(d.styles)}
16
+ `,a.i`
17
+ ${a.r(d.styles$1)}
18
+ `,a.i`
19
+ ${a.r(c.styles)}
20
+ `,a.i`
21
+ ${a.r(p)}
22
+ `];n([a.l({slot:"expansion-panel",flatten:!0})],exports.CovalentNavRailListItem.prototype,"expansionPanelElements",2);n([h.n({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"open",2);n([h.n({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"hasChildren",2);exports.CovalentNavRailListItem=n([a.e("cv-nav-list-item")],exports.CovalentNavRailListItem);const u=exports.CovalentNavRailListItem;exports.default=u;
package/nav-list-item.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { i as a, r, e as h } from "./query-assigned-elements-4a39219d.mjs";
2
- import { n as l } from "./property-9b6ea53b.mjs";
3
- import { C as d, s as y } from "./list-item-ba77097d.mjs";
4
- import { s as f, a as v } from "./mwc-list-item.css-b0009fc7.mjs";
1
+ import { i as r, r as n, l as g, A as h, x as c, 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 v } from "./list-item-bab8d6ba.mjs";
4
+ import { s as y, a as x } from "./mwc-list-item.css-b0009fc7.mjs";
5
5
  import "./mwc-list-item-base-8654347d.mjs";
6
6
  import "./tslib.es6-f1eaf65c.mjs";
7
7
  import "./ripple-handlers-321219b8.mjs";
@@ -12,40 +12,102 @@ import "./query-d843aa92.mjs";
12
12
  import "./class-map-4b94b017.mjs";
13
13
  import "./style-map-bc3ed3e0.mjs";
14
14
  import "./observer-be7b92e2.mjs";
15
- const g = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
15
+ const b = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:600;line-height:var(--mdc-typography-body2-line-height);text-align:left;border-radius:var(--cv-list-item-border-radius, 28px);transition:border-radius .1s ease-out;width:var(--cv-list-item-width, 100%)}::slotted(.section-selector){display:none;position:absolute;top:0;right:0}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--mdc-theme-primary)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{margin-left:var(--cv-list-item-graphic-margin-left, 12px)}:host([graphic=avatar]){padding:0}:host([graphic=avatar]) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0 0 0 15px}:host([hasChildren]){flex-direction:column;overflow:visible;height:inherit!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 12px}:host([hasChildren][open]:hover:not([activated])) .expansion-header{--mdc-ripple-color: transparent}:host([hasChildren][open]:hover:not([activated])) .expansion-header:hover{--mdc-ripple-color: var(--mdc-theme-primary)}.expansion-header{border-radius:var(--cv-list-item-border-radius);position:relative;height:48px;width:100%;overflow:hidden;display:flex;flex-shrink:0;align-items:center}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, -12px);font-size:var(--cv-list-item-expansion-icon-size, --mdc-icon-size);color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}.expansion-panel{display:block;width:100%;height:var(--cv-list-menu-height, 0);--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
16
16
  `;
17
- var b = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (m, e, n, i) => {
18
- for (var t = i > 1 ? void 0 : i ? u(e, n) : e, s = m.length - 1, p; s >= 0; s--)
19
- (p = m[s]) && (t = (i ? p(e, n, t) : p(t)) || t);
20
- return i && t && b(e, n, t), t;
17
+ var w = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, d = (e, t, i, a) => {
18
+ for (var s = a > 1 ? void 0 : a ? _(t, i) : t, l = e.length - 1, p; l >= 0; l--)
19
+ (p = e[l]) && (s = (a ? p(t, i, s) : p(s)) || s);
20
+ return a && s && w(t, i, s), s;
21
21
  };
22
- let o = class extends d {
22
+ let o = class extends u {
23
23
  constructor() {
24
- super(), this.navOpen = !1;
24
+ super(...arguments), this.lastKeySelected = 0, this.open = !1, this.hasChildren = !1, this.activated = !1;
25
+ }
26
+ _toggleOpen() {
27
+ this.open = !this.open;
28
+ }
29
+ _handleKeydown(e) {
30
+ const t = this.expansionPanelElements[0], i = t ? t == null ? void 0 : t.getFocusedItemIndex() : 0, a = (t == null ? void 0 : t.items.length) ?? 0;
31
+ if (this.hasChildren) {
32
+ if (e.code === "Enter") {
33
+ e.preventDefault(), e.stopImmediatePropagation(), e.target.hasChildren ? this._toggleOpen() : this._deselectHeader(e);
34
+ return;
35
+ }
36
+ if (this.open) {
37
+ if (e.code === "ArrowUp" && i === 0 && this.lastKeySelected === 0 && !e.target.hasChildren) {
38
+ e.preventDefault(), e.stopImmediatePropagation(), t.items[0].blur(), this.focus();
39
+ return;
40
+ }
41
+ e.code === "ArrowDown" && i === -1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(0), this.lastKeySelected = 0), e.code === "ArrowUp" && i !== -1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(i), this.lastKeySelected = i), (e.code === "ArrowDown" || e.code === "ArrowUp") && i !== -1 && this.lastKeySelected < a - 1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(i), this.lastKeySelected = i);
42
+ }
43
+ }
44
+ }
45
+ _handleRequestSelected(e) {
46
+ const t = e;
47
+ this.hasChildren && t.detail.selected === !1 && t.detail.source === "property" && this._deselectChildren();
48
+ }
49
+ _deselectChildren() {
50
+ this.expansionPanelElements.forEach((e) => {
51
+ e.items.forEach((t) => t.selected = !1);
52
+ });
53
+ }
54
+ _deselectHeader(e) {
55
+ e.preventDefault(), e.stopImmediatePropagation(), this.fireRequestSelected(!1, "interaction"), this.activated = !1;
56
+ }
57
+ renderExpansionItem() {
58
+ const e = this.renderText(), t = this.graphic ? this.renderGraphic() : h, i = this.hasMeta ? this.renderMeta() : h, a = this.open ? "arrow_drop_down" : "arrow_right", s = c`<cv-icon class="expansion-icon">${a}</cv-icon>`;
59
+ return c`
60
+ <div
61
+ @mousedown=${this._toggleOpen}
62
+ @touchstart="${this._toggleOpen}"
63
+ @keydown=${this._toggleOpen}
64
+ class="expansion-header"
65
+ >
66
+ ${this.renderRipple()} ${s} ${t} ${e} ${i}
67
+ </div>
68
+ <div class="expansion-panel" @click=${this._deselectHeader}>
69
+ <slot name="expansion-panel"></slot>
70
+ </div>
71
+ `;
72
+ }
73
+ connectedCallback() {
74
+ super.connectedCallback(), this.addEventListener("keydown", this._handleKeydown), this.addEventListener("request-selected", this._handleRequestSelected);
75
+ }
76
+ disconnectedCallback() {
77
+ super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeydown), this.addEventListener("request-selected", this._handleRequestSelected);
78
+ }
79
+ render() {
80
+ return this.hasChildren ? this.renderExpansionItem() : super.render();
25
81
  }
26
82
  };
27
83
  o.styles = [
28
- a`
29
- ${r(f)}
84
+ r`
85
+ ${n(y)}
30
86
  `,
31
- a`
32
- ${r(v)}
87
+ r`
88
+ ${n(x)}
33
89
  `,
34
- a`
35
- ${r(y)}
90
+ r`
91
+ ${n(v)}
36
92
  `,
37
- a`
38
- ${r(g)}
93
+ r`
94
+ ${n(b)}
39
95
  `
40
96
  ];
41
- c([
42
- l({ type: Boolean, reflect: !0 })
43
- ], o.prototype, "navOpen", 2);
44
- o = c([
45
- h("cv-nav-list-item")
97
+ d([
98
+ g({ slot: "expansion-panel", flatten: !0 })
99
+ ], o.prototype, "expansionPanelElements", 2);
100
+ d([
101
+ m({ type: Boolean, reflect: !0 })
102
+ ], o.prototype, "open", 2);
103
+ d([
104
+ m({ type: Boolean, reflect: !0 })
105
+ ], o.prototype, "hasChildren", 2);
106
+ o = d([
107
+ f("cv-nav-list-item")
46
108
  ], o);
47
- const B = o;
109
+ const q = o;
48
110
  export {
49
111
  o as CovalentNavRailListItem,
50
- B as default
112
+ q as default
51
113
  };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@covalent/components",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-beta.2",
4
4
  "description": "a catalog of material components for covalent",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
7
7
  "types": "./index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
+ "sass": "./style.css",
10
11
  "import": "./index.mjs",
11
12
  "require": "./index.js"
12
13
  },