@covalent/components 9.1.0 → 9.1.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.
- package/{_commonjsHelpers-DjF3Plf2.mjs → _commonjsHelpers-HP5nalso.mjs} +2 -2
- package/action-ribbon.js +2 -2
- package/action-ribbon.mjs +24 -24
- package/alert.js +3 -3
- package/alert.mjs +4 -4
- package/app-shell.js +1 -1
- package/app-shell.mjs +6 -6
- package/async-directive-2AOdKBUW.mjs +66 -0
- package/async-directive-DZ3MjSIj.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +6 -6
- package/{base-element-aUDWLn36.js → base-element-5ZU-p99q.js} +1 -1
- package/{base-element-C-U4OfWx.mjs → base-element-CzNmpVoz.mjs} +1 -1
- package/button.js +1 -1
- package/button.mjs +24 -24
- package/card.js +1 -1
- package/card.mjs +12 -12
- package/check-list-item.js +7 -7
- package/check-list-item.mjs +31 -31
- package/checkbox.js +1 -1
- package/checkbox.mjs +9 -9
- package/{chip-C8L37ovG.mjs → chip-5QP7xPTY.mjs} +6 -6
- package/{chip-BsDYOEFW.js → chip-CitHXhY7.js} +1 -1
- package/chip-set.js +1 -1
- package/chip-set.mjs +114 -114
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +4 -4
- package/circular-progress.mjs +10 -10
- package/class-map-BHl5MHd7.mjs +36 -0
- package/class-map-PsUYVqvf.js +5 -0
- package/{code-editor-CSH3MdBF.js → code-editor-CCUZsYkN.js} +135 -137
- package/{code-editor-Bshyfjyn.mjs → code-editor-JaW-06cH.mjs} +8151 -8113
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +7 -7
- package/{dialog-BoNH4r3n.mjs → dialog-BVmWYLqR.mjs} +194 -194
- package/{dialog-LUOzoMeO.js → dialog-DzaPP3Vt.js} +9 -9
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/{directive-oAbCiebi.mjs → directive-B76A7YXI.mjs} +4 -4
- package/directive-C_VV3qwo.js +5 -0
- package/directive-helpers-6HCt_-zj.mjs +11 -0
- package/directive-helpers-BnUMbYHh.js +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +2 -2
- package/empty-state.js +1 -1
- package/empty-state.mjs +7 -7
- package/{event-options-CNykeE2u.mjs → event-options-D44mpm5S.mjs} +1 -1
- package/{event-options-BH8ks-kz.js → event-options-IG-2g8HU.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +4 -4
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +1 -1
- package/focused-page.js +1 -1
- package/focused-page.mjs +8 -8
- package/form-element--PS8uSRI.js +5 -0
- package/form-element-Dn0Lerng.mjs +50 -0
- package/formfield.js +4 -4
- package/formfield.mjs +13 -13
- package/{foundation-qQ4jzaAu.mjs → foundation-BYhAXCW_.mjs} +17 -15
- package/{foundation-PL3XY-m_.mjs → foundation-D6JHa7Lg.mjs} +4 -4
- package/{foundation-pgmPu2iJ.js → foundation-aT_gy6X8.js} +1 -1
- package/{foundation-CySCCTUE.js → foundation-sIsx2I_x.js} +2 -2
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +12 -12
- package/{html-DrhRpsz9.mjs → html-DhKW0KfF.mjs} +1 -1
- package/{html-DUGRoHaj.js → html-S7zzCKH0.js} +1 -1
- package/icon/_icon-list.d.ts +4 -0
- package/icon/_icon-list.d.ts.map +1 -0
- package/icon/icon-demo.d.ts +14 -0
- package/icon/icon-demo.d.ts.map +1 -0
- package/icon-button-toggle.js +5 -5
- package/icon-button-toggle.mjs +35 -35
- package/icon-button.js +2 -2
- package/icon-button.mjs +28 -28
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +6 -6
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +6 -6
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +8 -8
- package/icon.js +1 -1
- package/icon.mjs +14 -14
- package/{if-defined-D8C6ewRn.js → if-defined-B7G84qob.js} +1 -1
- package/{if-defined-BsNkRMMG.mjs → if-defined-DN7whKwy.mjs} +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -1
- package/index.mjs +450 -112
- package/{javascript-DKtDcqDi.mjs → javascript-BtkevR81.mjs} +1 -1
- package/{javascript-54eqLOAw.js → javascript-fH54qAGk.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +17 -17
- package/{list-item-BZVW1fmJ.js → list-item-BQ6SDTvW.js} +1 -1
- package/{list-item-DCzzLVZh.mjs → list-item-DuBDCnZ-.mjs} +1 -1
- package/list-item.js +2 -2
- package/list-item.mjs +16 -16
- package/list.js +1 -1
- package/list.mjs +16 -16
- package/menu.js +2 -2
- package/menu.mjs +11 -11
- package/{mwc-checkbox.css-Cd0yCOHu.js → mwc-checkbox.css-BV3dyB4C.js} +1 -1
- package/{mwc-checkbox.css-MBOzkrQg.mjs → mwc-checkbox.css-CNoj0V14.mjs} +31 -31
- package/{mwc-drawer-base-Dgs9327G.mjs → mwc-drawer-base-A-4s_ZnE.mjs} +10 -10
- package/{mwc-drawer-base-D-48lqfn.js → mwc-drawer-base-DWczEPvb.js} +3 -3
- package/{mwc-icon-BZRds8SY.mjs → mwc-icon-DTCUplqR.mjs} +2 -2
- package/{mwc-icon-BumH81hp.js → mwc-icon-Xgr698ax.js} +1 -1
- package/{mwc-icon-button.css-DJMY7U7e.mjs → mwc-icon-button.css-DJiDOS0_.mjs} +1 -1
- package/{mwc-icon-button.css-BtgKBOl3.js → mwc-icon-button.css-DOVWWyjA.js} +1 -1
- package/{mwc-line-ripple-directive-zhm5Zc8i.mjs → mwc-line-ripple-directive-TO37-41n.mjs} +34 -34
- package/{mwc-line-ripple-directive-DvPWr3ER.js → mwc-line-ripple-directive-r80jluoU.js} +4 -4
- package/{mwc-list-item.css-CtRq5wSu.js → mwc-list-item.css-CO1JlA8e.js} +10 -10
- package/{mwc-list-item.css-g34xqhLC.mjs → mwc-list-item.css-Cg9onxQ-.mjs} +11 -11
- package/{mwc-list.css-DFOdJyFB.mjs → mwc-list.css-C_-DVEme.mjs} +102 -102
- package/{mwc-list.css-CaMJWsDp.js → mwc-list.css-Deg9oBaO.js} +1 -1
- package/{mwc-menu.css-pxcxlTrh.js → mwc-menu.css-Dvr-f3_T.js} +18 -18
- package/{mwc-menu.css-BEiPghgR.mjs → mwc-menu.css-qpZxKN-g.mjs} +306 -306
- package/{mwc-radio.css-XRx0vL1k.mjs → mwc-radio.css-BiHC1R8I.mjs} +11 -11
- package/{mwc-radio.css-CVMtIq-L.js → mwc-radio.css-DjO4Rn44.js} +1 -1
- package/{mwc-slider.css-WrkrmqkL.js → mwc-slider.css-DFOaS04S.js} +13 -13
- package/{mwc-slider.css-2Bqk43z7.mjs → mwc-slider.css-Deh1__Ar.mjs} +290 -279
- package/{mwc-tab.css-B9yQpkYf.mjs → mwc-tab.css-2UrPKkNg.mjs} +34 -34
- package/{mwc-tab.css-CgdXMZBB.js → mwc-tab.css-sq5suZKe.js} +11 -11
- package/{mwc-top-app-bar-base-B0EW9eNk.mjs → mwc-top-app-bar-base-BIZGhVtM.mjs} +40 -40
- package/{mwc-top-app-bar-base-CSXRBOiX.js → mwc-top-app-bar-base-DUdOcIjS.js} +7 -7
- package/nav-list-item.js +3 -3
- package/nav-list-item.mjs +18 -18
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +25 -25
- package/package.json +6 -1
- package/{property-DYTC_2-m.js → property-BRKnMYJe.js} +1 -1
- package/{python-CEXbOLXn.mjs → python-BkZeja0y.mjs} +1 -1
- package/{python-CzGtlN7c.js → python-C2_KOh3o.js} +1 -1
- package/query-BvlE-gMJ.js +5 -0
- package/query-DSO61t36.mjs +15 -0
- package/query-assigned-elements-BQszEgac.js +31 -0
- package/query-assigned-elements-DhyCP_2z.mjs +591 -0
- package/query-assigned-nodes-9DFnkxV8.js +5 -0
- package/query-assigned-nodes-B-jCihdA.mjs +17 -0
- package/radio-list-item.js +5 -5
- package/radio-list-item.mjs +24 -24
- package/radio.js +1 -1
- package/radio.mjs +9 -9
- package/{ripple-handlers-i3WPEBiO.mjs → ripple-handlers-BAdg-fJB.mjs} +72 -72
- package/{ripple-handlers-CzfSBjWo.js → ripple-handlers-BDmOLx8c.js} +5 -5
- package/select.js +12 -12
- package/select.mjs +119 -118
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +39 -39
- package/slider.js +1 -1
- package/slider.mjs +18 -18
- package/snackbar.js +8 -8
- package/snackbar.mjs +21 -21
- package/{state-DaD9o2aK.mjs → state-B_tK3mBm.mjs} +2 -2
- package/{state-C3HoXfoa.js → state-Csv4sdJA.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -7
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +18 -18
- package/status-header.js +1 -1
- package/status-header.mjs +2 -2
- package/style-map-3QfsA_1O.js +5 -0
- package/style-map-QxIETvrs.mjs +42 -0
- package/switch.js +6 -6
- package/switch.mjs +40 -40
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +93 -93
- package/tab.js +1 -1
- package/tab.mjs +5 -5
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +11 -11
- package/textarea.js +6 -6
- package/textarea.mjs +22 -22
- package/{textfield-BwmiygD8.js → textfield-CO6CFCCn.js} +30 -30
- package/{textfield-C6sUZIeA.mjs → textfield-WSgoABZn.mjs} +103 -103
- package/textfield.js +2 -2
- package/textfield.mjs +9 -9
- package/toolbar.js +1 -1
- package/toolbar.mjs +2 -2
- package/tooltip.js +3 -3
- package/tooltip.mjs +56 -55
- package/{top-app-bar-4SA3DjLX.mjs → top-app-bar-BvXNELe9.mjs} +1 -1
- package/{top-app-bar-CGjBuyiD.js → top-app-bar-Cvp1aN42.js} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +35 -35
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +12 -12
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +5 -5
- package/tree-list.js +1 -1
- package/tree-list.mjs +5 -5
- package/tslib.es6-CISSdiiH.mjs +75 -0
- package/{typescript-DotYReBq.mjs → typescript-BUN0g4m9.mjs} +1 -1
- package/{typescript-D_zVB3gH.js → typescript-DzngJr4U.js} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +10 -10
- package/async-directive-Cx1B9M5C.mjs +0 -66
- package/async-directive-y3fBDDSk.js +0 -5
- package/class-map-C1SJpero.mjs +0 -36
- package/class-map-C8G1ALWK.js +0 -5
- package/directive-C7oCP5Bh.js +0 -5
- package/directive-helpers-CllkNDrI.mjs +0 -11
- package/directive-helpers-Duf3sfLn.js +0 -5
- package/form-element-CxSqbssX.mjs +0 -50
- package/form-element-DwqUbs65.js +0 -5
- package/query-BBDQWsft.mjs +0 -15
- package/query-BxDs8ftQ.js +0 -5
- package/query-assigned-elements-4CafVNR8.js +0 -31
- package/query-assigned-elements-DCt2xozt.mjs +0 -591
- package/query-assigned-nodes-B9zBfkh6.mjs +0 -17
- package/query-assigned-nodes-CckKHm2z.js +0 -5
- package/style-map-BJBXlSqn.js +0 -5
- package/style-map-CCsABR5m.mjs +0 -42
- package/tslib.es6-pPsSiLLK.mjs +0 -75
package/nav-list-item.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./query-assigned-elements-BQszEgac.js"),c=require("./property-BRKnMYJe.js"),h=require("./list-item.js"),l=require("./list-item-BQ6SDTvW.js"),p=require("./mwc-list-item.css-CO1JlA8e.js"),m=':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, 100px);transition:border-radius .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1);width:var(--cv-list-item-width, 100%);color:var(--cv-theme-on-surface-variant);--mdc-list-item-graphic-margin: 4px}:host ::slotted(cv-icon[slot=graphic]){color:var(--cv-theme-on-surface-variant)}::slotted(*){--cv-list-padding-right: 0;--cv-list-padding-left: 0;--cv-list-item-text-padding: 16px}:host([activated]){color:var(--cv-theme-on-secondary-container)}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--cv-theme-on-secondary-container)}:host([selected]:not([activated])) .expansion-header{transition:background-color .25s cubic-bezier(.4,0,.2,1) color .25s cubic-bezier(.4,0,.2,1);background-color:var(--cv-list-item-selected-background-color);color:var(--cv-list-item-selected-color)}:host([selected]:not([activated])) .expansion-header .mdc-deprecated-list-item__graphic{--mdc-theme-text-icon-on-background: var(--cv-list-item-selected-color)}:host([subnav]){--cv-list-item-text-padding: 16px;height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:var(--cv-list-item-border-radius, 100px);padding:0;padding-right:var(--cv-list-padding-right, 12px);padding-left:var(--cv-list-padding-left, 12px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{--mdc-theme-text-icon-on-background: var(--cv-theme-on-surface);margin-left:var(--cv-list-item-graphic-margin-left, 12px);padding-left:4px;background-color:transparent}:host([graphic=avatar]){padding:0;background-color:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host([selected]) .mdc-deprecated-list-item__graphic.material-icons,:host([activated]) .mdc-deprecated-list-item__graphic.material-icons,:host([hasActivatedChild]) .mdc-deprecated-list-item__graphic.material-icons{font-variation-settings:"FILL" 1}:host([hasChildren]){flex-direction:column;overflow:visible;height:var(--cv-list-item-height, inherit)!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 0}:host([hasChildren]) ::slotted(cv-list){padding-left:32px}: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-on-surface-variant)}.expansion-header{position:relative;height:48px;width:100%;border-radius:var(--cv-list-item-border-radius, 100px);overflow:hidden;display:flex;flex-shrink:0;align-items:center;background-color:var(--cv-list-item-background-color);color:var(--cv-list-item-text-color)}.expansion-header mwc-ripple{border-radius:var(--cv-list-item-border-radius, 100px);overflow:hidden}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, 0);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%;max-height:var(--cv-list-menu-height, 0);overflow:hidden;transition:max-height .2s cubic-bezier(.4,0,1,1);--mdc-list-side-padding: 72px}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition-timing-function:cubic-bezier(0,0,.2,1);max-height:var(--cv-list-menu-height, inherit)}';var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,s=(o,e,t,i)=>{for(var r=i>1?void 0:i?g(e,t):e,n=o.length-1,d;n>=0;n--)(d=o[n])&&(r=(i?d(e,t,r):d(r))||r);return i&&r&&v(e,t,r),r};exports.CovalentNavRailListItem=class extends h.CovalentListItem{constructor(){super(...arguments),this.open=!1,this.hasChildren=!1,this.activated=!1,this.lastKeySelected=0}_toggleOpen(){this.open=!this.open}_handleKeydown(e){const t=this.expansionPanelElements[0],i=t?t==null?void 0:t.getFocusedItemIndex():0,r=(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<r-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}_updateMaxHeight(e=this.open){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector(".expansion-panel");let i="0";e&&(i=t!=null&&t.scrollHeight?`${t.scrollHeight}px`:"inherit"),this.style.setProperty("--cv-list-menu-height",i)}renderExpansionItem(){const e=this.renderText(),t=this.graphic?this.renderGraphic():a.A,i=this.renderMeta();return a.x`
|
2
2
|
<div
|
3
3
|
@mousedown=${this._toggleOpen}
|
4
4
|
@touchstart="${this._toggleOpen}"
|
@@ -16,9 +16,9 @@
|
|
16
16
|
</span>`}firstUpdated(){super.firstUpdated(),this.hasChildren&&this._updateMaxHeight()}updated(e){super.updated(e),e.has("open")&&this.hasChildren&&this._updateMaxHeight()}render(){return this.hasChildren?this.renderExpansionItem():super.render()}};exports.CovalentNavRailListItem.styles=[a.i`
|
17
17
|
${a.r(p.styles)}
|
18
18
|
`,a.i`
|
19
|
-
${a.r(
|
19
|
+
${a.r(l.styles)}
|
20
20
|
`,a.i`
|
21
|
-
${a.r(
|
21
|
+
${a.r(l.covalentStyles)}
|
22
22
|
`,a.i`
|
23
23
|
${a.r(m)}
|
24
24
|
`];s([a.l({slot:"expansion-panel",flatten:!0})],exports.CovalentNavRailListItem.prototype,"expansionPanelElements",2);s([c.n({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"open",2);s([c.n({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"hasChildren",2);exports.CovalentNavRailListItem=s([a.e("cv-nav-list-item")],exports.CovalentNavRailListItem);const u=exports.CovalentNavRailListItem;exports.default=u;
|
package/nav-list-item.mjs
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import {
|
1
|
+
import { i as o, r as n, l as m, A as g, x as h, e as v } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
2
|
import { n as p } from "./property-DJzm_oB9.mjs";
|
3
3
|
import { CovalentListItem as u } from "./list-item.mjs";
|
4
|
-
import { s as f, c as x } from "./list-item-
|
5
|
-
import { s as b } from "./mwc-list-item.css-
|
4
|
+
import { s as f, c as x } from "./list-item-DuBDCnZ-.mjs";
|
5
|
+
import { s as b } from "./mwc-list-item.css-Cg9onxQ-.mjs";
|
6
6
|
const y = ':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, 100px);transition:border-radius .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1);width:var(--cv-list-item-width, 100%);color:var(--cv-theme-on-surface-variant);--mdc-list-item-graphic-margin: 4px}:host ::slotted(cv-icon[slot=graphic]){color:var(--cv-theme-on-surface-variant)}::slotted(*){--cv-list-padding-right: 0;--cv-list-padding-left: 0;--cv-list-item-text-padding: 16px}:host([activated]){color:var(--cv-theme-on-secondary-container)}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--cv-theme-on-secondary-container)}:host([selected]:not([activated])) .expansion-header{transition:background-color .25s cubic-bezier(.4,0,.2,1) color .25s cubic-bezier(.4,0,.2,1);background-color:var(--cv-list-item-selected-background-color);color:var(--cv-list-item-selected-color)}:host([selected]:not([activated])) .expansion-header .mdc-deprecated-list-item__graphic{--mdc-theme-text-icon-on-background: var(--cv-list-item-selected-color)}:host([subnav]){--cv-list-item-text-padding: 16px;height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:var(--cv-list-item-border-radius, 100px);padding:0;padding-right:var(--cv-list-padding-right, 12px);padding-left:var(--cv-list-padding-left, 12px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{--mdc-theme-text-icon-on-background: var(--cv-theme-on-surface);margin-left:var(--cv-list-item-graphic-margin-left, 12px);padding-left:4px;background-color:transparent}:host([graphic=avatar]){padding:0;background-color:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host([selected]) .mdc-deprecated-list-item__graphic.material-icons,:host([activated]) .mdc-deprecated-list-item__graphic.material-icons,:host([hasActivatedChild]) .mdc-deprecated-list-item__graphic.material-icons{font-variation-settings:"FILL" 1}:host([hasChildren]){flex-direction:column;overflow:visible;height:var(--cv-list-item-height, inherit)!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 0}:host([hasChildren]) ::slotted(cv-list){padding-left:32px}: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-on-surface-variant)}.expansion-header{position:relative;height:48px;width:100%;border-radius:var(--cv-list-item-border-radius, 100px);overflow:hidden;display:flex;flex-shrink:0;align-items:center;background-color:var(--cv-list-item-background-color);color:var(--cv-list-item-text-color)}.expansion-header mwc-ripple{border-radius:var(--cv-list-item-border-radius, 100px);overflow:hidden}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, 0);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%;max-height:var(--cv-list-menu-height, 0);overflow:hidden;transition:max-height .2s cubic-bezier(.4,0,1,1);--mdc-list-side-padding: 72px}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition-timing-function:cubic-bezier(0,0,.2,1);max-height:var(--cv-list-menu-height, inherit)}';
|
7
7
|
var _ = Object.defineProperty, w = Object.getOwnPropertyDescriptor, d = (e, t, i, a) => {
|
8
8
|
for (var r = a > 1 ? void 0 : a ? w(t, i) : t, c = e.length - 1, l; c >= 0; c--)
|
9
9
|
(l = e[c]) && (r = (a ? l(t, i, r) : l(r)) || r);
|
10
10
|
return a && r && _(t, i, r), r;
|
11
11
|
};
|
12
|
-
let
|
12
|
+
let s = class extends u {
|
13
13
|
constructor() {
|
14
14
|
super(...arguments), this.open = !1, this.hasChildren = !1, this.activated = !1, this.lastKeySelected = 0;
|
15
15
|
}
|
@@ -51,7 +51,7 @@ let o = class extends u {
|
|
51
51
|
e && (i = t != null && t.scrollHeight ? `${t.scrollHeight}px` : "inherit"), this.style.setProperty("--cv-list-menu-height", i);
|
52
52
|
}
|
53
53
|
renderExpansionItem() {
|
54
|
-
const e = this.renderText(), t = this.graphic ? this.renderGraphic() :
|
54
|
+
const e = this.renderText(), t = this.graphic ? this.renderGraphic() : g, i = this.renderMeta();
|
55
55
|
return h`
|
56
56
|
<div
|
57
57
|
@mousedown=${this._toggleOpen}
|
@@ -89,34 +89,34 @@ let o = class extends u {
|
|
89
89
|
return this.hasChildren ? this.renderExpansionItem() : super.render();
|
90
90
|
}
|
91
91
|
};
|
92
|
-
|
93
|
-
|
92
|
+
s.styles = [
|
93
|
+
o`
|
94
94
|
${n(b)}
|
95
95
|
`,
|
96
|
-
|
96
|
+
o`
|
97
97
|
${n(f)}
|
98
98
|
`,
|
99
|
-
|
99
|
+
o`
|
100
100
|
${n(x)}
|
101
101
|
`,
|
102
|
-
|
102
|
+
o`
|
103
103
|
${n(y)}
|
104
104
|
`
|
105
105
|
];
|
106
106
|
d([
|
107
|
-
|
108
|
-
],
|
107
|
+
m({ slot: "expansion-panel", flatten: !0 })
|
108
|
+
], s.prototype, "expansionPanelElements", 2);
|
109
109
|
d([
|
110
110
|
p({ type: Boolean, reflect: !0 })
|
111
|
-
],
|
111
|
+
], s.prototype, "open", 2);
|
112
112
|
d([
|
113
113
|
p({ type: Boolean, reflect: !0 })
|
114
|
-
],
|
115
|
-
|
114
|
+
], s.prototype, "hasChildren", 2);
|
115
|
+
s = d([
|
116
116
|
v("cv-nav-list-item")
|
117
|
-
],
|
118
|
-
const S =
|
117
|
+
], s);
|
118
|
+
const S = s;
|
119
119
|
export {
|
120
|
-
|
120
|
+
s as CovalentNavRailListItem,
|
121
121
|
S as default
|
122
122
|
};
|
package/notebook-cell.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./query-assigned-elements-BQszEgac.js"),r=require("./property-BRKnMYJe.js"),v=require("./state-Csv4sdJA.js"),p=require("./class-map-PsUYVqvf.js"),g=require("./code-editor-CCUZsYkN.js");require("./code-snippet.js");require("./icon-button.js");require("./typography.js");const b=":host{--mdc-icon-button-size: 2rem;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface);border-radius:0;box-sizing:border-box}cv-code-snippet::part(code){font-size:var(--mdc-typography-body2-font-size);line-height:var(--mdc-typography-body2-line-height);padding:0;white-space:pre-wrap}cv-code-editor{margin-top:-1px}.selectionIndicator{background-color:var(--cv-theme-primary);border-radius:2px;height:100%;visibility:hidden}.selectionIndicatorWrapper{min-width:8px}.selectionIndicatorWrapper:hover .selectionIndicator{visibility:visible}.status{padding:0 1px;position:relative}.loading{top:2.5px}.timesExecuted{--cv-icon-button-cursor: grab;align-items:center;box-sizing:border-box;color:var(--cv-theme-on-surface-38);display:flex;font-family:var(--cv-typography-subtitle2-font-family);font-size:var(--cv-typography-subtitle2-font-size);gap:.5rem;height:56px;line-height:var(--cv-typography-headline6-line-height)}.timesExecuted .executionCount{padding-right:1rem;overflow:hidden;text-align:right;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap;width:52px}.timesExecuted .dragHandle{color:var(--cv-theme-on-surface-variant);cursor:grab;padding-left:.5rem;transition:visibility .3s ease;visibility:hidden}.timesExecuted .dragHandle:active{--cv-icon-button-cursor: grabbing}.timesExecutedWrapper{cursor:grab}.timesExecutedWrapper:active{cursor:grabbing}.timesExecutedWrapper:hover .dragHandle{visibility:visible}.cell{box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;position:relative;transition:background-color .2s ease;-webkit-user-select:auto;user-select:auto}.cell.focused .selectionIndicator,.cell.selected .selectionIndicator{visibility:visible}.cell:hover{background-color:var(--cv-theme-secondary-4)}.cell:hover .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-38)}.cell:active{background-color:var(--cv-theme-secondary-12)}.cell:active .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-74)}.cellWrapper{display:flex;flex-direction:column;width:100%}.cellOutputWrapper{display:flex;flex-direction:column;max-width:calc(100% - 130px);flex:1}.contextMenu{background-color:var(--cv-theme-surface-canvas);border-radius:8px;box-shadow:0 8px 12px 6px #00000026,0 4px 4px #0000004d;display:flex;flex-direction:column;position:fixed;visibility:hidden;z-index:1000}.contextMenuContent{border-radius:4px;flex-grow:1;max-height:100%;overflow:auto}.contextMenu.open{visibility:visible}.editorContainer{box-sizing:border-box;background-color:var(--cv-theme-surface);border:1px solid var(--cv-theme-outline-variant);border-radius:var(--cv-editor-border-radius, 4px);min-height:56px;overflow:hidden;padding:1rem}.errors,.output{max-width:100%;width:100%}";var x=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=(c,e,t,i)=>{for(var o=i>1?void 0:i?m(e,t):e,l=c.length-1,a;l>=0;l--)(a=c[l])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&x(e,t,o),o};exports.CovalentNotebookCell=class extends n.s{constructor(){super(),this.code="",this.language="",this.loading=!1,this.selected=!1,this.timesExecuted=0,this.hideEditor=!1,this.hideCount=!1,this.editorTheme="",this._editorFocused=!1,this._isMenuOpen=!1,this._menuMaxHeight="auto",this._menuPosition={top:0,left:0},this.editorOptions={minimap:{enabled:!1},wordWrap:"on",fontSize:"14px",glyphMargin:!1,folding:!1,lineHeight:20,lineNumbers:"off",lineDecorationsWidth:0,lineNumbersMinChars:0,renderIndentGuides:!1,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"}},this.closeContextMenu=this.closeContextMenu.bind(this),this.showContextMenu=this.showContextMenu.bind(this)}closeContextMenu(){this._isMenuOpen=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.closeContextMenu)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.closeContextMenu)}handleCodeChange(e){this.code=e.detail.code}setEditorFocus(e,t){e.stopImmediatePropagation(),this._editorFocused=t,this.requestUpdate()}setEditorInstance(e){e.stopImmediatePropagation(),this._editor=e.detail.editor,this._editor.onKeyDown(t=>{t.shiftKey&&t.keyCode===g.KeyCode.Enter&&t.preventDefault()})}showContextMenu(e){var u;e.preventDefault();const t=document.querySelectorAll("cv-notebook-cell");t==null||t.forEach(h=>{h.closeContextMenu()});const i=(u=this.shadowRoot)==null?void 0:u.querySelector(".contextMenu"),o=i==null?void 0:i.offsetHeight,a=window.innerHeight-e.clientY,d=e.clientY;a>=o?(this._menuPosition={top:e.clientY,left:e.clientX},this._menuMaxHeight=`${a}px`):d>=o?(this._menuPosition={top:e.clientY-o,left:e.clientX},this._menuMaxHeight=`${o}px`):(this._menuPosition={top:e.clientY-d,left:e.clientX},this._menuMaxHeight=`${d}px`),this._isMenuOpen=!0}updated(e){var i,o;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("cv-code-editor");if(e.has("code")||e.has("language"))if(t)t.code=this.code,t.language=this.language;else{const l=(o=this.shadowRoot)==null?void 0:o.querySelector("cv-code-snippet");l&&!this.selected&&l.highlight()}super.updated(e)}getEditorBgColor(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editorContainer");return e?window.getComputedStyle(e).getPropertyValue("background-color"):""}renderEditor(){const e=this.selected?n.x`<cv-code-editor
|
2
2
|
@code-change="${this.handleCodeChange}"
|
3
3
|
@editor-ready="${this.setEditorInstance}"
|
4
4
|
@editor-focus="${t=>this.setEditorFocus(t,!0)}"
|
package/notebook-cell.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import { n as
|
3
|
-
import { t as f } from "./state-
|
4
|
-
import { o as p } from "./class-map-
|
5
|
-
import { K as b } from "./code-editor-
|
1
|
+
import { i as v, r as g, s as m, x as d, e as x } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { n as c } from "./property-DJzm_oB9.mjs";
|
3
|
+
import { t as f } from "./state-B_tK3mBm.mjs";
|
4
|
+
import { o as p } from "./class-map-BHl5MHd7.mjs";
|
5
|
+
import { K as b } from "./code-editor-JaW-06cH.mjs";
|
6
6
|
import "./code-snippet.mjs";
|
7
7
|
import "./icon-button.mjs";
|
8
8
|
import "./typography.mjs";
|
@@ -12,7 +12,7 @@ var C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, n = (e, t, o
|
|
12
12
|
(a = e[l]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
13
13
|
return r && s && C(t, o, s), s;
|
14
14
|
};
|
15
|
-
let i = class extends
|
15
|
+
let i = class extends m {
|
16
16
|
constructor() {
|
17
17
|
super(), this.code = "", this.language = "", this.loading = !1, this.selected = !1, this.timesExecuted = 0, this.hideEditor = !1, this.hideCount = !1, this.editorTheme = "", this._editorFocused = !1, this._isMenuOpen = !1, this._menuMaxHeight = "auto", this._menuPosition = { top: 0, left: 0 }, this.editorOptions = {
|
18
18
|
minimap: { enabled: !1 },
|
@@ -86,7 +86,7 @@ let i = class extends v {
|
|
86
86
|
return e ? window.getComputedStyle(e).getPropertyValue("background-color") : "";
|
87
87
|
}
|
88
88
|
renderEditor() {
|
89
|
-
const e = this.selected ?
|
89
|
+
const e = this.selected ? d`<cv-code-editor
|
90
90
|
@code-change="${this.handleCodeChange}"
|
91
91
|
@editor-ready="${this.setEditorInstance}"
|
92
92
|
@editor-focus="${(t) => this.setEditorFocus(t, !0)}"
|
@@ -96,27 +96,27 @@ let i = class extends v {
|
|
96
96
|
.options="${this.editorOptions}"
|
97
97
|
.theme="${this.editorTheme}"
|
98
98
|
disableScroll
|
99
|
-
></cv-code-editor>` :
|
99
|
+
></cv-code-editor>` : d`<cv-code-snippet hideHeader .language="${this.language}"
|
100
100
|
>${this.code}</cv-code-snippet
|
101
101
|
>`;
|
102
|
-
return
|
102
|
+
return d`${this.hideEditor ? "" : d`<div class="editorContainer">${e}</div>`}`;
|
103
103
|
}
|
104
104
|
renderOutput() {
|
105
|
-
const e =
|
105
|
+
const e = d` <div class="errors"><slot name="error"></slot></div>
|
106
106
|
<div class="output">
|
107
107
|
<slot name="output"></slot>
|
108
108
|
<slot name="input"></slot>
|
109
109
|
</div>`;
|
110
|
-
return
|
110
|
+
return d`${e}`;
|
111
111
|
}
|
112
112
|
renderExecutionCount() {
|
113
113
|
if (this.hideCount)
|
114
|
-
return
|
114
|
+
return d` `;
|
115
115
|
const e = {
|
116
116
|
status: !0,
|
117
117
|
loading: this.loading
|
118
118
|
};
|
119
|
-
return
|
119
|
+
return d`[<span class="${p(e)}"
|
120
120
|
>${this.loading ? "*" : this.timesExecuted || " "}</span
|
121
121
|
>] :`;
|
122
122
|
}
|
@@ -126,7 +126,7 @@ let i = class extends v {
|
|
126
126
|
selected: this.selected,
|
127
127
|
focused: this._editorFocused
|
128
128
|
};
|
129
|
-
return
|
129
|
+
return d`
|
130
130
|
<div class="${p(e)}" @contextmenu=${this.showContextMenu}>
|
131
131
|
<div class="selectionIndicatorWrapper">
|
132
132
|
<div class="selectionIndicator"></div>
|
@@ -157,36 +157,36 @@ let i = class extends v {
|
|
157
157
|
}
|
158
158
|
};
|
159
159
|
i.styles = [
|
160
|
-
|
161
|
-
${
|
160
|
+
v`
|
161
|
+
${g(y)}
|
162
162
|
`
|
163
163
|
];
|
164
164
|
n([
|
165
|
-
|
165
|
+
c({ type: Number })
|
166
166
|
], i.prototype, "index", 2);
|
167
167
|
n([
|
168
|
-
|
168
|
+
c({ type: String })
|
169
169
|
], i.prototype, "code", 2);
|
170
170
|
n([
|
171
|
-
|
171
|
+
c({ type: String })
|
172
172
|
], i.prototype, "language", 2);
|
173
173
|
n([
|
174
|
-
|
174
|
+
c({ type: Boolean, reflect: !0 })
|
175
175
|
], i.prototype, "loading", 2);
|
176
176
|
n([
|
177
|
-
|
177
|
+
c({ type: Boolean, reflect: !0 })
|
178
178
|
], i.prototype, "selected", 2);
|
179
179
|
n([
|
180
|
-
|
180
|
+
c({ type: Number })
|
181
181
|
], i.prototype, "timesExecuted", 2);
|
182
182
|
n([
|
183
|
-
|
183
|
+
c({ type: Boolean, reflect: !0 })
|
184
184
|
], i.prototype, "hideEditor", 2);
|
185
185
|
n([
|
186
|
-
|
186
|
+
c({ type: Boolean, reflect: !0 })
|
187
187
|
], i.prototype, "hideCount", 2);
|
188
188
|
n([
|
189
|
-
|
189
|
+
c({ type: String })
|
190
190
|
], i.prototype, "editorTheme", 2);
|
191
191
|
n([
|
192
192
|
f()
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/components",
|
3
|
-
"version": "9.1.
|
3
|
+
"version": "9.1.2",
|
4
4
|
"description": "a catalog of material components for covalent",
|
5
5
|
"main": "./index.js",
|
6
6
|
"module": "./index.mjs",
|
@@ -126,6 +126,11 @@
|
|
126
126
|
"import": "./icon.mjs",
|
127
127
|
"require": "./icon.js"
|
128
128
|
},
|
129
|
+
"./icon-demo": {
|
130
|
+
"types": "./icon/icon-demo.d.ts",
|
131
|
+
"import": "./icon-demo.mjs",
|
132
|
+
"require": "./icon-demo.js"
|
133
|
+
},
|
129
134
|
"./icon-button": {
|
130
135
|
"types": "./icon-button/icon-button.d.ts",
|
131
136
|
"import": "./icon-button.mjs",
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2017 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const
|
5
|
+
*/const t=(e,i)=>i.kind==="method"&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(r){r.createProperty(i.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){typeof i.initializer=="function"&&(this[i.key]=i.initializer.call(this))},finisher(r){r.createProperty(i.key,e)}},n=(e,i,r)=>{i.constructor.createProperty(r,e)};function o(e){return(i,r)=>r!==void 0?n(e,i,r):t(e,i)}exports.n=o;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as o } from "./code-editor-
|
1
|
+
import { m as o } from "./code-editor-JaW-06cH.mjs";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./code-editor-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./code-editor-CCUZsYkN.js");/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
4
|
* Released under the MIT license
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";const t=require("./query-assigned-elements-BQszEgac.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/function u(r,i){return t.o({descriptor:o=>({get(){var e,n;return(n=(e=this.renderRoot)===null||e===void 0?void 0:e.querySelector(r))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0})})}exports.i=u;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { o as t } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2017 Google LLC
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
+
*/
|
7
|
+
function d(r, u) {
|
8
|
+
return t({ descriptor: (o) => ({ get() {
|
9
|
+
var e, n;
|
10
|
+
return (n = (e = this.renderRoot) === null || e === void 0 ? void 0 : e.querySelector(r)) !== null && n !== void 0 ? n : null;
|
11
|
+
}, enumerable: !0, configurable: !0 }) });
|
12
|
+
}
|
13
|
+
export {
|
14
|
+
d as i
|
15
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2019 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/const H=window,W=H.ShadowRoot&&(H.ShadyCSS===void 0||H.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,q=Symbol(),K=new WeakMap;let ie=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(W&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=K.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&K.set(t,e))}return e}toString(){return this.cssText}};const re=i=>new ie(typeof i=="string"?i:i+"",void 0,q),pe=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,s,l)=>n+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new ie(t,i,q)},$e=(i,e)=>{W?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),s=H.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=t.cssText,i.appendChild(n)})},Z=W?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return re(t)})(i):i;/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2017 Google LLC
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
+
*/var k;const N=window,J=N.trustedTypes,_e=J?J.emptyScript:"",F=N.reactiveElementPolyfillSupport,z={toAttribute(i,e){switch(e){case Boolean:i=i?_e:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},le=(i,e)=>e!==i&&(e==e||i==i),R={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:le},I="finalized";let g=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const s=this._$Ep(n,t);s!==void 0&&(this._$Ev.set(s,n),e.push(s))}),e}static createProperty(e,t=R){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,n,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(s){const l=this[e];this[t]=s,this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||R}static finalize(){if(this.hasOwnProperty(I))return!1;this[I]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of n)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const s of n)t.unshift(Z(s))}else e!==void 0&&t.push(Z(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return $e(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=R){var s;const l=this.constructor._$Ep(e,n);if(l!==void 0&&n.reflect===!0){const r=(((s=n.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?n.converter:z).toAttribute(t,n.type);this._$El=e,r==null?this.removeAttribute(l):this.setAttribute(l,r),this._$El=null}}_$AK(e,t){var n;const s=this.constructor,l=s._$Ev.get(e);if(l!==void 0&&this._$El!==l){const r=s.getPropertyOptions(l),u=typeof r.converter=="function"?{fromAttribute:r.converter}:((n=r.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?r.converter:z;this._$El=l,this[l]=u.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,n){let s=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||le)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,l)=>this[l]=s),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var l;return(l=s.hostUpdate)===null||l===void 0?void 0:l.call(s)}),this.update(n)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var s;return(s=n.hostUpdated)===null||s===void 0?void 0:s.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};g[I]=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},F==null||F({ReactiveElement:g}),((k=N.reactiveElementVersions)!==null&&k!==void 0?k:N.reactiveElementVersions=[]).push("1.6.3");/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2017 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/var M;const T=window,E=T.trustedTypes,G=E?E.createPolicy("lit-html",{createHTML:i=>i}):void 0,V="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,oe="?"+$,Ae=`<${oe}>`,m=document,C=()=>m.createComment(""),w=i=>i===null||typeof i!="object"&&typeof i!="function",de=Array.isArray,me=i=>de(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",L=`[
|
14
|
+
\f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,_=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,ee=/"/g,ue=/^(?:script|style|textarea|title)$/i,ye=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),ge=ye(1),y=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),te=new WeakMap,A=m.createTreeWalker(m,129,null,!1);function he(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return G!==void 0?G.createHTML(e):e}const Ee=(i,e)=>{const t=i.length-1,n=[];let s,l=e===2?"<svg>":"",r=S;for(let u=0;u<t;u++){const o=i[u];let d,h,a=-1,f=0;for(;f<o.length&&(r.lastIndex=f,h=r.exec(o),h!==null);)f=r.lastIndex,r===S?h[1]==="!--"?r=Q:h[1]!==void 0?r=X:h[2]!==void 0?(ue.test(h[2])&&(s=RegExp("</"+h[2],"g")),r=_):h[3]!==void 0&&(r=_):r===_?h[0]===">"?(r=s??S,a=-1):h[1]===void 0?a=-2:(a=r.lastIndex-h[2].length,d=h[1],r=h[3]===void 0?_:h[3]==='"'?ee:Y):r===ee||r===Y?r=_:r===Q||r===X?r=S:(r=_,s=void 0);const p=r===_&&i[u+1].startsWith("/>")?" ":"";l+=r===S?o+Ae:a>=0?(n.push(d),o.slice(0,a)+V+o.slice(a)+$+p):o+$+(a===-2?(n.push(void 0),u):p)}return[he(i,l+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class x{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let l=0,r=0;const u=e.length-1,o=this.parts,[d,h]=Ee(e,t);if(this.el=x.createElement(d,n),A.currentNode=this.el.content,t===2){const a=this.el.content,f=a.firstChild;f.remove(),a.append(...f.childNodes)}for(;(s=A.nextNode())!==null&&o.length<u;){if(s.nodeType===1){if(s.hasAttributes()){const a=[];for(const f of s.getAttributeNames())if(f.endsWith(V)||f.startsWith($)){const p=h[r++];if(a.push(f),p!==void 0){const fe=s.getAttribute(p.toLowerCase()+V).split($),U=/([.?@])?(.*)/.exec(p);o.push({type:1,index:l,name:U[2],strings:fe,ctor:U[1]==="."?Se:U[1]==="?"?Ce:U[1]==="@"?we:O})}else o.push({type:6,index:l})}for(const f of a)s.removeAttribute(f)}if(ue.test(s.tagName)){const a=s.textContent.split($),f=a.length-1;if(f>0){s.textContent=E?E.emptyScript:"";for(let p=0;p<f;p++)s.append(a[p],C()),A.nextNode(),o.push({type:2,index:++l});s.append(a[f],C())}}}else if(s.nodeType===8)if(s.data===oe)o.push({type:2,index:l});else{let a=-1;for(;(a=s.data.indexOf($,a+1))!==-1;)o.push({type:7,index:l}),a+=$.length-1}l++}}static createElement(e,t){const n=m.createElement("template");return n.innerHTML=e,n}}function v(i,e,t=i,n){var s,l,r,u;if(e===y)return e;let o=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const d=w(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==d&&((l=o==null?void 0:o._$AO)===null||l===void 0||l.call(o,!1),d===void 0?o=void 0:(o=new d(i),o._$AT(i,t,n)),n!==void 0?((r=(u=t)._$Co)!==null&&r!==void 0?r:u._$Co=[])[n]=o:t._$Cl=o),o!==void 0&&(e=v(i,o._$AS(i,e.values),o,n)),e}class ve{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,l=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:m).importNode(n,!0);A.currentNode=l;let r=A.nextNode(),u=0,o=0,d=s[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new P(r,r.nextSibling,this,e):d.type===1?h=new d.ctor(r,d.name,d.strings,this,e):d.type===6&&(h=new xe(r,this,e)),this._$AV.push(h),d=s[++o]}u!==(d==null?void 0:d.index)&&(r=A.nextNode(),u++)}return A.currentNode=m,l}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class P{constructor(e,t,n,s){var l;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(l=s==null?void 0:s.isConnected)===null||l===void 0||l}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=v(this,e,t),w(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==y&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):me(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==c&&w(this._$AH)?this._$AA.nextSibling.data=e:this.$(m.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,l=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=x.createElement(he(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===l)this._$AH.v(n);else{const r=new ve(l,this),u=r.u(this.options);r.v(n),this.$(u),this._$AH=r}}_$AC(e){let t=te.get(e.strings);return t===void 0&&te.set(e.strings,t=new x(e)),t}T(e){de(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const l of e)s===t.length?t.push(n=new P(this.k(C()),this.k(C()),this,this.options)):n=t[s],n._$AI(l),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class O{constructor(e,t,n,s,l){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const l=this.strings;let r=!1;if(l===void 0)e=v(this,e,t,0),r=!w(e)||e!==this._$AH&&e!==y,r&&(this._$AH=e);else{const u=e;let o,d;for(e=l[0],o=0;o<l.length-1;o++)d=v(this,u[n+o],t,o),d===y&&(d=this._$AH[o]),r||(r=!w(d)||d!==this._$AH[o]),d===c?e=c:e!==c&&(e+=(d??"")+l[o+1]),this._$AH[o]=d}r&&!s&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Se extends O{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}}const be=E?E.emptyScript:"";class Ce extends O{constructor(){super(...arguments),this.type=4}j(e){e&&e!==c?this.element.setAttribute(this.name,be):this.element.removeAttribute(this.name)}}class we extends O{constructor(e,t,n,s,l){super(e,t,n,s,l),this.type=5}_$AI(e,t=this){var n;if((e=(n=v(this,e,t,0))!==null&&n!==void 0?n:c)===y)return;const s=this._$AH,l=e===c&&s!==c||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==c&&(s===c||l);l&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class xe{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){v(this,e)}}const ne=T.litHtmlPolyfillSupport;ne==null||ne(x,P),((M=T.litHtmlVersions)!==null&&M!==void 0?M:T.litHtmlVersions=[]).push("2.8.0");const ae=(i,e,t)=>{var n,s;const l=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let r=l._$litPart$;if(r===void 0){const u=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;l._$litPart$=r=new P(e.insertBefore(C(),u),u,void 0,t??{})}return r._$AI(i),r};/**
|
16
|
+
* @license
|
17
|
+
* Copyright 2017 Google LLC
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
19
|
+
*/var j,D;class b extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return y}}b.finalized=!0,b._$litElement$=!0,(j=globalThis.litElementHydrateSupport)===null||j===void 0||j.call(globalThis,{LitElement:b});const se=globalThis.litElementPolyfillSupport;se==null||se({LitElement:b});((D=globalThis.litElementVersions)!==null&&D!==void 0?D:globalThis.litElementVersions=[]).push("3.3.3");/**
|
20
|
+
* @license
|
21
|
+
* Copyright 2017 Google LLC
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
+
*/const Pe=i=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(i,e):((t,n)=>{const{kind:s,elements:l}=n;return{kind:s,elements:l,finisher(r){customElements.define(t,r)}}})(i,e);/**
|
24
|
+
* @license
|
25
|
+
* Copyright 2017 Google LLC
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
+
*/const ce=({finisher:i,descriptor:e})=>(t,n)=>{var s;if(n===void 0){const l=(s=t.originalKey)!==null&&s!==void 0?s:t.key,r=e!=null?{kind:"method",placement:"prototype",key:l,descriptor:e(t.key)}:{...t,key:l};return i!=null&&(r.finisher=function(u){i(u,l)}),r}{const l=t.constructor;e!==void 0&&Object.defineProperty(t,n,e(n)),i==null||i(l,n)}};/**
|
28
|
+
* @license
|
29
|
+
* Copyright 2021 Google LLC
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
31
|
+
*/var B;const Ue=((B=window.HTMLSlotElement)===null||B===void 0?void 0:B.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function He(i){const{slot:e,selector:t}=i??{};return ce({descriptor:n=>({get(){var s;const l="slot"+(e?`[name=${e}]`:":not([name])"),r=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(l),u=r!=null?Ue(r,i):[];return t?u.filter(o=>o.matches(t)):u},enumerable:!0,configurable:!0})})}exports.A=c;exports.D=ae;exports.T=y;exports.e=Pe;exports.i=pe;exports.l=He;exports.o=ce;exports.r=re;exports.s=b;exports.x=ge;
|