@covalent/components 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +6 -6
- package/action-ribbon.mjs +30 -35
- package/alert.js +6 -6
- package/alert.mjs +14 -19
- package/app-shell/app-shell.d.ts +2 -0
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +8 -8
- package/app-shell.mjs +44 -42
- package/button.js +9 -9
- package/button.mjs +16 -25
- package/card.js +8 -8
- package/card.mjs +15 -17
- package/check-list-item.js +9 -9
- package/check-list-item.mjs +17 -26
- package/checkbox.js +2 -2
- package/checkbox.mjs +20 -29
- package/circular-progress.js +29 -29
- package/circular-progress.mjs +10 -14
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +7 -10
- package/dialog.js +1 -1
- package/dialog.mjs +162 -14
- package/{dialog-85c21333.mjs → dialog2.mjs} +50 -56
- package/directive-helpers.mjs +5 -0
- package/drawer.js +3 -3
- package/drawer.mjs +9 -15
- package/empty-state.js +5 -5
- package/empty-state.mjs +4 -6
- package/{form-element-d4e7bcdb.js → form-element.mjs} +2 -2
- package/{foundation-3f55a9dc.js → foundation.mjs} +3 -3
- package/icon-button.js +8 -8
- package/icon-button.mjs +16 -25
- package/icon-check-toggle.js +9 -9
- package/icon-check-toggle.mjs +11 -20
- package/icon-radio/icon-radio-toggle.d.ts +2 -3
- package/icon-radio/icon-radio-toggle.d.ts.map +1 -1
- package/icon-radio-toggle.js +8 -14
- package/icon-radio-toggle.mjs +37 -64
- package/icon.js +2 -2
- package/icon.mjs +8 -9
- package/if-defined.mjs +5 -0
- package/index.js +1 -1
- package/index.mjs +114 -124
- package/linear-progress.js +12 -12
- package/linear-progress.mjs +17 -23
- package/list/list-expansion.d.ts +3 -2
- package/list/list-expansion.d.ts.map +1 -1
- package/list/list-item.d.ts.map +1 -1
- package/list/list.d.ts +5 -0
- package/list/list.d.ts.map +1 -1
- package/list-expansion.js +8 -8
- package/list-expansion.mjs +37 -41
- package/list-item.js +1 -1
- package/list-item.mjs +9 -18
- package/list-item2.mjs +43 -0
- package/list.js +1 -1
- package/list.mjs +5 -20
- package/{list-28b77a61.mjs → list2.mjs} +35 -16
- package/menu.js +2 -2
- package/menu.mjs +20 -29
- package/{mwc-checkbox-base-435c1f1d.js → mwc-checkbox-base.mjs} +6 -6
- package/mwc-checkbox.css.mjs +5 -0
- package/{mwc-drawer-base-f44fcf34.js → mwc-drawer-base.mjs} +11 -11
- package/mwc-icon.mjs +9 -0
- package/{mwc-line-ripple-directive-a97ce725.js → mwc-line-ripple-directive.mjs} +16 -16
- package/mwc-list-base.mjs +111 -0
- package/mwc-list-item-base.mjs +28 -0
- package/mwc-list-item.css.mjs +9 -0
- package/{mwc-menu-base-ac49fe54.js → mwc-menu-base.mjs} +20 -20
- package/{mwc-radio-base-442d495a.js → mwc-radio-base.mjs} +11 -11
- package/mwc-radio.css.mjs +5 -0
- package/mwc-ripple.mjs +175 -0
- package/{mwc-slider.css-48f02f1e.js → mwc-slider.css.mjs} +20 -20
- package/{mwc-tab-base-1a19b299.js → mwc-tab-base.mjs} +22 -22
- package/{mwc-top-app-bar-base-14e0a018.js → mwc-top-app-bar-base.mjs} +10 -10
- package/nav-list-item.js +10 -10
- package/nav-list-item.mjs +28 -36
- package/{observer-a096ab43.js → observer.mjs} +1 -1
- package/package.json +1 -1
- package/radio-list-item.js +10 -10
- package/radio-list-item.mjs +24 -33
- package/radio.js +2 -2
- package/radio.mjs +19 -28
- package/ripple-handlers.mjs +5 -0
- package/select.js +28 -28
- package/select.mjs +21 -31
- package/side-sheet.js +4 -4
- package/side-sheet.mjs +8 -14
- package/slider-range.js +7 -7
- package/slider-range.mjs +64 -72
- package/slider.js +3 -3
- package/slider.mjs +21 -29
- package/snackbar.js +15 -15
- package/snackbar.mjs +21 -27
- package/status-header-item.js +4 -4
- package/status-header-item.mjs +13 -14
- package/status-header.js +6 -6
- package/status-header.mjs +7 -9
- package/style.css +1 -1
- package/switch.js +18 -18
- package/switch.mjs +22 -31
- package/tab-bar.js +21 -21
- package/tab-bar.mjs +14 -23
- package/tab.js +3 -3
- package/tab.mjs +6 -15
- package/text-lockup.js +5 -5
- package/text-lockup.mjs +6 -8
- package/textarea.js +14 -14
- package/textarea.mjs +20 -28
- package/textfield.js +3 -3
- package/textfield.mjs +132 -41
- package/{textfield-276b0ded.mjs → textfield2.mjs} +21 -28
- package/toolbar.js +3 -3
- package/toolbar.mjs +4 -10
- package/tooltip.js +12 -12
- package/tooltip.mjs +9 -13
- package/top-app-bar-fixed.js +5 -5
- package/top-app-bar-fixed.mjs +23 -29
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +6 -30
- package/{top-app-bar-a236c3bc.mjs → top-app-bar2.mjs} +1 -1
- package/tree-list-item.js +8 -8
- package/tree-list-item.mjs +3 -5
- package/tree-list.js +3 -3
- package/tree-list.mjs +4 -4
- package/typography.js +4 -4
- package/typography.mjs +11 -12
- package/aria-property-fa2717fe.mjs +0 -41
- package/base-element-c3dc926e.mjs +0 -28
- package/base-element-d5abe37a.js +0 -5
- package/class-map-08c84aeb.mjs +0 -62
- package/class-map-50b8edb4.js +0 -9
- package/dialog-8ee07177.js +0 -162
- package/directive-helpers-725a181d.mjs +0 -11
- package/directive-helpers-fce8cf91.js +0 -5
- package/event-options-3937d997.mjs +0 -14
- package/event-options-7bc382d8.js +0 -5
- package/form-element-6dbd7afa.mjs +0 -50
- package/foundation-2334d146.mjs +0 -60
- package/foundation-c580100a.mjs +0 -152
- package/if-defined-639ed018.mjs +0 -10
- package/if-defined-cb12d481.js +0 -5
- package/inert.esm-359d4581.mjs +0 -640
- package/list-170cca53.js +0 -5
- package/list-item-26ddcc43.js +0 -8
- package/list-item-c1e72538.mjs +0 -43
- package/mwc-checkbox-base-10e977f2.mjs +0 -198
- package/mwc-checkbox.css-956e3d6c.js +0 -5
- package/mwc-checkbox.css-b7abc7fd.mjs +0 -10
- package/mwc-drawer-base-b2b772c3.mjs +0 -335
- package/mwc-icon-b96fb867.js +0 -9
- package/mwc-icon-c7013880.mjs +0 -26
- package/mwc-line-ripple-directive-c3e1f04a.mjs +0 -653
- package/mwc-list-base-7d5f7278.js +0 -111
- package/mwc-list-base-c0f8af1c.mjs +0 -840
- package/mwc-list-item-base-803b9771.js +0 -28
- package/mwc-list-item-base-acef0223.mjs +0 -202
- package/mwc-list-item.css-401e2407.js +0 -9
- package/mwc-list-item.css-b5481d96.mjs +0 -17
- package/mwc-menu-base-8970b43d.mjs +0 -1145
- package/mwc-radio-base-c29e6f42.mjs +0 -528
- package/mwc-radio.css-388ad26d.js +0 -5
- package/mwc-radio.css-4694aa9c.mjs +0 -10
- package/mwc-slider.css-336f809b.mjs +0 -956
- package/mwc-tab-base-7fb3d339.mjs +0 -694
- package/mwc-top-app-bar-base-79c87e69.mjs +0 -380
- package/observer-be7b92e2.mjs +0 -32
- package/property-074570d1.js +0 -5
- package/property-ca27685b.mjs +0 -20
- package/query-1e7846ea.mjs +0 -25
- package/query-2ba749b7.js +0 -5
- package/query-assigned-elements-07e38f46.js +0 -33
- package/query-assigned-elements-514e5265.mjs +0 -615
- package/query-assigned-nodes-9ec0fa5f.js +0 -5
- package/query-assigned-nodes-bea12e0c.mjs +0 -17
- package/ripple-handlers-2176f137.js +0 -107
- package/ripple-handlers-227497d3.mjs +0 -761
- package/state-6f7e570d.mjs +0 -12
- package/state-949232e6.js +0 -5
- package/style-map-2cb0fb63.mjs +0 -40
- package/style-map-3056a771.js +0 -5
- package/textfield-507c6a06.js +0 -133
- package/top-app-bar-34e85527.js +0 -6
- package/tslib.es6-6b53b818.js +0 -1
- package/tslib.es6-b5e819a6.mjs +0 -82
- package/utils-a8190a39.js +0 -5
- package/utils-dc65fdc9.mjs +0 -52
- /package/{aria-property-849c8816.js → aria-property.mjs} +0 -0
- /package/{foundation-e830bd94.js → foundation2.mjs} +0 -0
- /package/{inert.esm-2cee6f2e.js → inert.esm.mjs} +0 -0
package/linear-progress.js
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./mwc-ripple.mjs"),c=require("./aria-property.mjs"),d=require("./if-defined.mjs");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/class
|
5
|
+
*/class a extends r.s{constructor(){super(...arguments),this.indeterminate=!1,this.progress=0,this.buffer=1,this.reverse=!1,this.closed=!1,this.stylePrimaryHalf="",this.stylePrimaryFull="",this.styleSecondaryQuarter="",this.styleSecondaryHalf="",this.styleSecondaryFull="",this.animationReady=!0,this.closedAnimationOff=!1,this.resizeObserver=null}connectedCallback(){super.connectedCallback(),this.rootEl&&this.attachResizeObserver()}render(){const e={"mdc-linear-progress--closed":this.closed,"mdc-linear-progress--closed-animation-off":this.closedAnimationOff,"mdc-linear-progress--indeterminate":this.indeterminate,"mdc-linear-progress--animation-ready":this.animationReady},i={"--mdc-linear-progress-primary-half":this.stylePrimaryHalf,"--mdc-linear-progress-primary-half-neg":this.stylePrimaryHalf!==""?`-${this.stylePrimaryHalf}`:"","--mdc-linear-progress-primary-full":this.stylePrimaryFull,"--mdc-linear-progress-primary-full-neg":this.stylePrimaryFull!==""?`-${this.stylePrimaryFull}`:"","--mdc-linear-progress-secondary-quarter":this.styleSecondaryQuarter,"--mdc-linear-progress-secondary-quarter-neg":this.styleSecondaryQuarter!==""?`-${this.styleSecondaryQuarter}`:"","--mdc-linear-progress-secondary-half":this.styleSecondaryHalf,"--mdc-linear-progress-secondary-half-neg":this.styleSecondaryHalf!==""?`-${this.styleSecondaryHalf}`:"","--mdc-linear-progress-secondary-full":this.styleSecondaryFull,"--mdc-linear-progress-secondary-full-neg":this.styleSecondaryFull!==""?`-${this.styleSecondaryFull}`:""},n={"flex-basis":this.indeterminate?"100%":`${this.buffer*100}%`},s={transform:this.indeterminate?"scaleX(1)":`scaleX(${this.progress})`};return r.y`
|
6
6
|
<div
|
7
7
|
role="progressbar"
|
8
|
-
class="mdc-linear-progress ${
|
9
|
-
style="${
|
10
|
-
dir="${
|
11
|
-
aria-label="${
|
8
|
+
class="mdc-linear-progress ${r.o(e)}"
|
9
|
+
style="${r.i$2(i)}"
|
10
|
+
dir="${d.l(this.reverse?"rtl":void 0)}"
|
11
|
+
aria-label="${d.l(this.ariaLabel)}"
|
12
12
|
aria-valuemin="0"
|
13
13
|
aria-valuemax="1"
|
14
|
-
aria-valuenow="${
|
14
|
+
aria-valuenow="${d.l(this.indeterminate?void 0:this.progress)}"
|
15
15
|
@transitionend="${this.syncClosedState}">
|
16
16
|
<div class="mdc-linear-progress__buffer">
|
17
17
|
<div
|
18
18
|
class="mdc-linear-progress__buffer-bar"
|
19
|
-
style=${
|
19
|
+
style=${r.i$2(n)}>
|
20
20
|
</div>
|
21
21
|
<div class="mdc-linear-progress__buffer-dots"></div>
|
22
22
|
</div>
|
23
23
|
<div
|
24
24
|
class="mdc-linear-progress__bar mdc-linear-progress__primary-bar"
|
25
|
-
style=${
|
25
|
+
style=${r.i$2(s)}>
|
26
26
|
<span class="mdc-linear-progress__bar-inner"></span>
|
27
27
|
</div>
|
28
28
|
<div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
|
29
29
|
<span class="mdc-linear-progress__bar-inner"></span>
|
30
30
|
</div>
|
31
|
-
</div>`}update(
|
31
|
+
</div>`}update(e){e.has("closed")&&(!this.closed||e.get("closed")===void 0)&&this.syncClosedState(),super.update(e)}async firstUpdated(e){super.firstUpdated(e),this.attachResizeObserver()}syncClosedState(){this.closedAnimationOff=this.closed}updated(e){!e.has("indeterminate")&&e.has("reverse")&&this.indeterminate&&this.restartAnimation(),e.has("indeterminate")&&e.get("indeterminate")!==void 0&&this.indeterminate&&window.ResizeObserver&&this.calculateAndSetAnimationDimensions(this.rootEl.offsetWidth),super.updated(e)}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),super.disconnectedCallback()}attachResizeObserver(){if(window.ResizeObserver){this.resizeObserver=new window.ResizeObserver(e=>{if(this.indeterminate){for(const i of e)if(i.contentRect){const n=i.contentRect.width;this.calculateAndSetAnimationDimensions(n)}}}),this.resizeObserver.observe(this.rootEl);return}this.resizeObserver=null}calculateAndSetAnimationDimensions(e){const i=e*.8367142,n=e*2.00611057,s=e*.37651913,t=e*.84386165,o=e*1.60277782;this.stylePrimaryHalf=`${i}px`,this.stylePrimaryFull=`${n}px`,this.styleSecondaryQuarter=`${s}px`,this.styleSecondaryHalf=`${t}px`,this.styleSecondaryFull=`${o}px`,this.restartAnimation()}async restartAnimation(){this.animationReady=!1,await this.updateComplete,await new Promise(requestAnimationFrame),this.animationReady=!0,await this.updateComplete}open(){this.closed=!1}close(){this.closed=!0}}r.__decorate([r.i(".mdc-linear-progress")],a.prototype,"rootEl",void 0);r.__decorate([r.e({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0);r.__decorate([r.e({type:Number})],a.prototype,"progress",void 0);r.__decorate([r.e({type:Number})],a.prototype,"buffer",void 0);r.__decorate([r.e({type:Boolean,reflect:!0})],a.prototype,"reverse",void 0);r.__decorate([r.e({type:Boolean,reflect:!0})],a.prototype,"closed",void 0);r.__decorate([c.ariaProperty,r.e({attribute:"aria-label"})],a.prototype,"ariaLabel",void 0);r.__decorate([r.t()],a.prototype,"stylePrimaryHalf",void 0);r.__decorate([r.t()],a.prototype,"stylePrimaryFull",void 0);r.__decorate([r.t()],a.prototype,"styleSecondaryQuarter",void 0);r.__decorate([r.t()],a.prototype,"styleSecondaryHalf",void 0);r.__decorate([r.t()],a.prototype,"styleSecondaryFull",void 0);r.__decorate([r.t()],a.prototype,"animationReady",void 0);r.__decorate([r.t()],a.prototype,"closedAnimationOff",void 0);/**
|
32
32
|
* @license
|
33
33
|
* Copyright 2021 Google LLC
|
34
34
|
* SPDX-LIcense-Identifier: Apache-2.0
|
35
|
-
*/const
|
36
|
-
`;var
|
35
|
+
*/const m=r.i$1`@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(-200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(-160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid transparent;overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:4px}.mdc-linear-progress__bar-inner{border-top-width:4px}.mdc-linear-progress__buffer-dots{background-size:10px 4px}:host{display:block}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6;background-color:var(--mdc-linear-progress-buffer-color, #e6e6e6)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E");background-image:var(--mdc-linear-progress-buffering-dots-image, url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E"))}`,p=`:host{--mdc-linear-progress-buffer-color: var(--mdc-theme-border)}
|
36
|
+
`;var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=(l,e,i,n)=>{for(var s=n>1?void 0:n?f(e,i):e,t=l.length-1,o;t>=0;t--)(o=l[t])&&(s=(n?o(e,i,s):o(s))||s);return n&&s&&g(e,i,s),s};exports.CovalentLinearProgress=class extends a{};exports.CovalentLinearProgress.styles=[m,r.i$1`${r.r(p)}`];exports.CovalentLinearProgress=y([r.e$1("cv-linear-progress")],exports.CovalentLinearProgress);const u=exports.CovalentLinearProgress;exports.default=u;
|
package/linear-progress.mjs
CHANGED
@@ -1,18 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { e as o } from "./property-ca27685b.mjs";
|
5
|
-
import { t } from "./state-6f7e570d.mjs";
|
6
|
-
import { i as v } from "./query-1e7846ea.mjs";
|
7
|
-
import { o as x } from "./class-map-08c84aeb.mjs";
|
8
|
-
import { l as p } from "./if-defined-639ed018.mjs";
|
9
|
-
import { i as f } from "./style-map-2cb0fb63.mjs";
|
1
|
+
import { _ as a, t, i as y, e as o, s as b, y as u, o as h, h as p, b as g, r as _, c as v } from "./mwc-ripple.mjs";
|
2
|
+
import { a as x } from "./aria-property.mjs";
|
3
|
+
import { l as f } from "./if-defined.mjs";
|
10
4
|
/**
|
11
5
|
* @license
|
12
6
|
* Copyright 2018 Google LLC
|
13
7
|
* SPDX-License-Identifier: Apache-2.0
|
14
8
|
*/
|
15
|
-
class e extends
|
9
|
+
class e extends b {
|
16
10
|
constructor() {
|
17
11
|
super(...arguments), this.indeterminate = !1, this.progress = 0, this.buffer = 1, this.reverse = !1, this.closed = !1, this.stylePrimaryHalf = "", this.stylePrimaryFull = "", this.styleSecondaryQuarter = "", this.styleSecondaryHalf = "", this.styleSecondaryFull = "", this.animationReady = !0, this.closedAnimationOff = !1, this.resizeObserver = null;
|
18
12
|
}
|
@@ -48,24 +42,24 @@ class e extends y {
|
|
48
42
|
return u`
|
49
43
|
<div
|
50
44
|
role="progressbar"
|
51
|
-
class="mdc-linear-progress ${
|
52
|
-
style="${
|
53
|
-
dir="${
|
54
|
-
aria-label="${
|
45
|
+
class="mdc-linear-progress ${h(r)}"
|
46
|
+
style="${p(i)}"
|
47
|
+
dir="${f(this.reverse ? "rtl" : void 0)}"
|
48
|
+
aria-label="${f(this.ariaLabel)}"
|
55
49
|
aria-valuemin="0"
|
56
50
|
aria-valuemax="1"
|
57
|
-
aria-valuenow="${
|
51
|
+
aria-valuenow="${f(this.indeterminate ? void 0 : this.progress)}"
|
58
52
|
@transitionend="${this.syncClosedState}">
|
59
53
|
<div class="mdc-linear-progress__buffer">
|
60
54
|
<div
|
61
55
|
class="mdc-linear-progress__buffer-bar"
|
62
|
-
style=${
|
56
|
+
style=${p(n)}>
|
63
57
|
</div>
|
64
58
|
<div class="mdc-linear-progress__buffer-dots"></div>
|
65
59
|
</div>
|
66
60
|
<div
|
67
61
|
class="mdc-linear-progress__bar mdc-linear-progress__primary-bar"
|
68
|
-
style=${
|
62
|
+
style=${p(s)}>
|
69
63
|
<span class="mdc-linear-progress__bar-inner"></span>
|
70
64
|
</div>
|
71
65
|
<div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
|
@@ -118,7 +112,7 @@ class e extends y {
|
|
118
112
|
}
|
119
113
|
}
|
120
114
|
a([
|
121
|
-
|
115
|
+
y(".mdc-linear-progress")
|
122
116
|
], e.prototype, "rootEl", void 0);
|
123
117
|
a([
|
124
118
|
o({ type: Boolean, reflect: !0 })
|
@@ -136,7 +130,7 @@ a([
|
|
136
130
|
o({ type: Boolean, reflect: !0 })
|
137
131
|
], e.prototype, "closed", void 0);
|
138
132
|
a([
|
139
|
-
|
133
|
+
x,
|
140
134
|
o({ attribute: "aria-label" })
|
141
135
|
], e.prototype, "ariaLabel", void 0);
|
142
136
|
a([
|
@@ -174,12 +168,12 @@ var z = Object.defineProperty, k = Object.getOwnPropertyDescriptor, S = (c, r, i
|
|
174
168
|
};
|
175
169
|
let d = class extends e {
|
176
170
|
};
|
177
|
-
d.styles = [w, g`${
|
171
|
+
d.styles = [w, g`${_(X)}`];
|
178
172
|
d = S([
|
179
|
-
|
173
|
+
v("cv-linear-progress")
|
180
174
|
], d);
|
181
|
-
const
|
175
|
+
const P = d;
|
182
176
|
export {
|
183
177
|
d as CovalentLinearProgress,
|
184
|
-
|
178
|
+
P as default
|
185
179
|
};
|
package/list/list-expansion.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CovalentList } from './list';
|
2
|
-
import
|
2
|
+
import CovalentNavRailListItem from './nav-list-item';
|
3
3
|
declare global {
|
4
4
|
interface HTMLElementTagNameMap {
|
5
5
|
'cv-expansion-list': CovalentExpansionList;
|
@@ -10,9 +10,10 @@ export declare class CovalentExpansionList extends CovalentList {
|
|
10
10
|
static shadowRootOptions: ShadowRootInit;
|
11
11
|
open: boolean;
|
12
12
|
navOpen: boolean;
|
13
|
-
expansionHeader:
|
13
|
+
expansionHeader: CovalentNavRailListItem[];
|
14
14
|
constructor();
|
15
15
|
private _toggleOpen;
|
16
|
+
attributeChangedCallback(name: string, _old: string, value: string): void;
|
16
17
|
render(): import("lit-html").TemplateResult<1>;
|
17
18
|
}
|
18
19
|
export default CovalentExpansionList;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"list-expansion.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list-expansion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,
|
1
|
+
{"version":3,"file":"list-expansion.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list-expansion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,uBAAuB,MAAM,iBAAiB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,qBAAqB,CAAC;KAC5C;CACF;AAED,qBACa,qBAAsB,SAAQ,YAAY;IACrD,OAAgB,MAAM,4BAOpB;IACF,OAAgB,iBAAiB,EAAE,cAAc,CAG/C;IAGF,IAAI,UAAS;IAGb,OAAO,UAAS;IAGhB,eAAe,EAAG,uBAAuB,EAAE,CAAC;;IAM5C,OAAO,CAAC,WAAW;IASV,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAelE,MAAM;CAMhB;AAED,eAAe,qBAAqB,CAAC"}
|
package/list/list-item.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AASrE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,gBAAgB,CAAC;KAClC;CACF;AAED,qBACa,gBAAiB,SAAQ,YAAY;IAChD,OAAgB,MAAM,4BAUpB;IAE0C,WAAW,UAAS;IAEvD,MAAM;
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AASrE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,gBAAgB,CAAC;KAClC;CACF;AAED,qBACa,gBAAiB,SAAQ,YAAY;IAChD,OAAgB,MAAM,4BAUpB;IAE0C,WAAW,UAAS;IAEvD,MAAM;CAehB;AAED,eAAe,gBAAgB,CAAC"}
|
package/list/list.d.ts
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
import { ListBase } from '@material/mwc-list/mwc-list-base';
|
2
|
+
import CovalentNavRailListItem from './nav-list-item';
|
2
3
|
declare global {
|
3
4
|
interface HTMLElementTagNameMap {
|
4
5
|
'cv-list': CovalentList;
|
5
6
|
}
|
6
7
|
}
|
7
8
|
export declare class CovalentList extends ListBase {
|
9
|
+
slotElements: CovalentNavRailListItem[];
|
10
|
+
navOpen: boolean;
|
8
11
|
static styles: import("lit").CSSResult[];
|
12
|
+
getUpdateComplete(): Promise<boolean>;
|
13
|
+
attributeChangedCallback(name: string, _old: string, value: string): void;
|
9
14
|
}
|
10
15
|
export default CovalentList;
|
11
16
|
//# sourceMappingURL=list.d.ts.map
|
package/list/list.d.ts.map
CHANGED
@@ -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;
|
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"}
|
package/list-expansion.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
2
|
-
`;var c=Object.defineProperty,
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./mwc-ripple.mjs"),l=require("./list.mjs");require("./mwc-list-base.mjs");require("./mwc-list-item-base.mjs");require("./observer.mjs");require("./ripple-handlers.mjs");require("./if-defined.mjs");const v=`.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
2
|
+
`;var c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,o=(a,t,i,s)=>{for(var e=s>1?void 0:s?h(t,i):t,r=a.length-1,p;r>=0;r--)(p=a[r])&&(e=(s?p(t,i,e):p(e))||e);return s&&e&&c(t,i,e),e};exports.CovalentExpansionList=class extends l.CovalentList{constructor(){super(),this.open=!1,this.navOpen=!1}_toggleOpen(){this.open=!this.open,this.expansionHeader.forEach(t=>{t.activated=this.open,t.selected=this.open})}attributeChangedCallback(t,i,s){super.attributeChangedCallback(t,i,s),t==="navopen"&&this.expansionHeader.forEach(e=>{s==="true"?(e.navOpen=!!s,e.setAttribute("navopen",s)):e.removeAttribute("navopen")})}render(){return n.y`
|
3
3
|
<slot name="expansionHeader" @click=${this._toggleOpen}></slot>
|
4
|
-
${this.navOpen?super.render():
|
5
|
-
`}};exports.CovalentExpansionList.styles=[
|
6
|
-
${
|
7
|
-
`,
|
8
|
-
${
|
9
|
-
`];exports.CovalentExpansionList.shadowRootOptions={mode:"open",delegatesFocus:!0};
|
4
|
+
${this.navOpen?super.render():n.b}
|
5
|
+
`}};exports.CovalentExpansionList.styles=[n.i$1`
|
6
|
+
${n.r(l.styles)}
|
7
|
+
`,n.i$1`
|
8
|
+
${n.r(v)}
|
9
|
+
`];exports.CovalentExpansionList.shadowRootOptions={mode:"open",delegatesFocus:!0};o([n.e({type:Boolean,reflect:!0})],exports.CovalentExpansionList.prototype,"open",2);o([n.e({type:Boolean,reflect:!0})],exports.CovalentExpansionList.prototype,"navOpen",2);o([n.l({slot:"expansionHeader"})],exports.CovalentExpansionList.prototype,"expansionHeader",2);exports.CovalentExpansionList=o([n.e$1("cv-expansion-list")],exports.CovalentExpansionList);const u=exports.CovalentExpansionList;exports.default=u;
|
package/list-expansion.mjs
CHANGED
@@ -1,68 +1,64 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import "./mwc-list-base
|
5
|
-
import "./
|
6
|
-
import "./
|
7
|
-
import "./
|
8
|
-
import "./base-element-c3dc926e.mjs";
|
9
|
-
import "./utils-dc65fdc9.mjs";
|
10
|
-
import "./state-6f7e570d.mjs";
|
11
|
-
import "./query-1e7846ea.mjs";
|
12
|
-
import "./class-map-08c84aeb.mjs";
|
13
|
-
import "./style-map-2cb0fb63.mjs";
|
14
|
-
import "./observer-be7b92e2.mjs";
|
15
|
-
import "./query-assigned-nodes-bea12e0c.mjs";
|
16
|
-
import "./if-defined-639ed018.mjs";
|
1
|
+
import { b as l, r as h, e as d, l as c, y as v, d as f, c as m } from "./mwc-ripple.mjs";
|
2
|
+
import { C as u, s as g } from "./list2.mjs";
|
3
|
+
import "./mwc-list-base.mjs";
|
4
|
+
import "./mwc-list-item-base.mjs";
|
5
|
+
import "./observer.mjs";
|
6
|
+
import "./ripple-handlers.mjs";
|
7
|
+
import "./if-defined.mjs";
|
17
8
|
const x = `.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
18
9
|
`;
|
19
|
-
var O = Object.defineProperty,
|
20
|
-
for (var
|
21
|
-
(
|
22
|
-
return
|
10
|
+
var O = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (e, r, t, s) => {
|
11
|
+
for (var n = s > 1 ? void 0 : s ? b(r, t) : r, a = e.length - 1, p; a >= 0; a--)
|
12
|
+
(p = e[a]) && (n = (s ? p(r, t, n) : p(n)) || n);
|
13
|
+
return s && n && O(r, t, n), n;
|
23
14
|
};
|
24
|
-
let
|
15
|
+
let o = class extends u {
|
25
16
|
constructor() {
|
26
17
|
super(), this.open = !1, this.navOpen = !1;
|
27
18
|
}
|
28
19
|
_toggleOpen() {
|
29
|
-
this.open = !this.open, this.expansionHeader.forEach((
|
30
|
-
|
20
|
+
this.open = !this.open, this.expansionHeader.forEach((e) => {
|
21
|
+
e.activated = this.open, e.selected = this.open;
|
22
|
+
});
|
23
|
+
}
|
24
|
+
attributeChangedCallback(e, r, t) {
|
25
|
+
super.attributeChangedCallback(e, r, t), e === "navopen" && this.expansionHeader.forEach((s) => {
|
26
|
+
t === "true" ? (s.navOpen = !!t, s.setAttribute("navopen", t)) : s.removeAttribute("navopen");
|
31
27
|
});
|
32
28
|
}
|
33
29
|
render() {
|
34
|
-
return
|
30
|
+
return v`
|
35
31
|
<slot name="expansionHeader" @click=${this._toggleOpen}></slot>
|
36
|
-
${this.navOpen ? super.render() :
|
32
|
+
${this.navOpen ? super.render() : f}
|
37
33
|
`;
|
38
34
|
}
|
39
35
|
};
|
40
|
-
|
36
|
+
o.styles = [
|
41
37
|
l`
|
42
|
-
${
|
38
|
+
${h(g)}
|
43
39
|
`,
|
44
40
|
l`
|
45
|
-
${
|
41
|
+
${h(x)}
|
46
42
|
`
|
47
43
|
];
|
48
|
-
|
44
|
+
o.shadowRootOptions = {
|
49
45
|
mode: "open",
|
50
46
|
delegatesFocus: !0
|
51
47
|
};
|
52
48
|
i([
|
53
|
-
|
54
|
-
],
|
49
|
+
d({ type: Boolean, reflect: !0 })
|
50
|
+
], o.prototype, "open", 2);
|
55
51
|
i([
|
56
|
-
|
57
|
-
],
|
52
|
+
d({ type: Boolean, reflect: !0 })
|
53
|
+
], o.prototype, "navOpen", 2);
|
58
54
|
i([
|
59
|
-
|
60
|
-
],
|
61
|
-
|
62
|
-
|
63
|
-
],
|
64
|
-
const
|
55
|
+
c({ slot: "expansionHeader" })
|
56
|
+
], o.prototype, "expansionHeader", 2);
|
57
|
+
o = i([
|
58
|
+
m("cv-expansion-list")
|
59
|
+
], o);
|
60
|
+
const P = o;
|
65
61
|
export {
|
66
|
-
|
67
|
-
|
62
|
+
o as CovalentExpansionList,
|
63
|
+
P as default
|
68
64
|
};
|
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
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-item-base.mjs");require("./mwc-ripple.mjs");require("./mwc-list-item.css.mjs");const e=require("./list-item.mjs");require("./observer.mjs");require("./ripple-handlers.mjs");Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>e.CovalentListItem});exports.default=e.CovalentListItem$1;
|
package/list-item.mjs
CHANGED
@@ -1,18 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import "./state-6f7e570d.mjs";
|
11
|
-
import "./query-1e7846ea.mjs";
|
12
|
-
import "./class-map-08c84aeb.mjs";
|
13
|
-
import "./style-map-2cb0fb63.mjs";
|
14
|
-
import "./observer-be7b92e2.mjs";
|
15
|
-
export {
|
16
|
-
v as CovalentListItem,
|
17
|
-
x as default
|
18
|
-
};
|
1
|
+
"use strict";const p=require("./mwc-list-item-base.mjs"),t=require("./mwc-ripple.mjs"),a=require("./mwc-list-item.css.mjs"),l=`.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
|
2
|
+
`;var m=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=(c,s,i,r)=>{for(var e=r>1?void 0:r?d(s,i):s,o=c.length-1,n;o>=0;o--)(n=c[o])&&(e=(r?n(s,i,e):n(e))||e);return r&&e&&m(s,i,e),e};exports.CovalentListItem=class extends p.ListItemBase{constructor(){super(...arguments),this.hasChildren=!1}render(){const s=this.renderText(),i=this.graphic?this.renderGraphic():t.b,r=this.hasMeta?this.renderMeta():t.b,e=this.activated?"arrow_drop_down":"arrow_right",o=this.hasChildren?t.y`<cv-icon class="expansion-icon">${e}</cv-icon>`:t.b,n=this.hasChildren?t.y`<slot name="child"></slot>`:t.b;return t.y` ${this.renderRipple()} ${o} ${i} ${s} ${r}
|
3
|
+
${n}`}};exports.CovalentListItem.styles=[t.i$1`
|
4
|
+
${t.r(a.styles)}
|
5
|
+
`,t.i$1`
|
6
|
+
${t.r(a.styles$1)}
|
7
|
+
`,t.i$1`
|
8
|
+
${t.r(l)}
|
9
|
+
`];h([t.e({type:Boolean,reflect:!0})],exports.CovalentListItem.prototype,"hasChildren",2);exports.CovalentListItem=h([t.e$1("cv-list-item")],exports.CovalentListItem);const v=exports.CovalentListItem;exports.CovalentListItem$1=v;exports.styles=l;
|
package/list-item2.mjs
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import { L as m } from "./mwc-list-item-base.mjs";
|
2
|
+
import { b as h, r as l, e as v, d as n, y as p, c as $ } from "./mwc-ripple.mjs";
|
3
|
+
import { s as x, a as f } from "./mwc-list-item.css.mjs";
|
4
|
+
const g = `.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
|
5
|
+
`;
|
6
|
+
var _ = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = (a, e, r, s) => {
|
7
|
+
for (var t = s > 1 ? void 0 : s ? u(e, r) : e, o = a.length - 1, c; o >= 0; o--)
|
8
|
+
(c = a[o]) && (t = (s ? c(e, r, t) : c(t)) || t);
|
9
|
+
return s && t && _(e, r, t), t;
|
10
|
+
};
|
11
|
+
let i = class extends m {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments), this.hasChildren = !1;
|
14
|
+
}
|
15
|
+
render() {
|
16
|
+
const a = this.renderText(), e = this.graphic ? this.renderGraphic() : n, r = this.hasMeta ? this.renderMeta() : n, s = this.activated ? "arrow_drop_down" : "arrow_right", t = this.hasChildren ? p`<cv-icon class="expansion-icon">${s}</cv-icon>` : n, o = this.hasChildren ? p`<slot name="child"></slot>` : n;
|
17
|
+
return p` ${this.renderRipple()} ${t} ${e} ${a} ${r}
|
18
|
+
${o}`;
|
19
|
+
}
|
20
|
+
};
|
21
|
+
i.styles = [
|
22
|
+
h`
|
23
|
+
${l(x)}
|
24
|
+
`,
|
25
|
+
h`
|
26
|
+
${l(f)}
|
27
|
+
`,
|
28
|
+
h`
|
29
|
+
${l(g)}
|
30
|
+
`
|
31
|
+
];
|
32
|
+
d([
|
33
|
+
v({ type: Boolean, reflect: !0 })
|
34
|
+
], i.prototype, "hasChildren", 2);
|
35
|
+
i = d([
|
36
|
+
$("cv-list-item")
|
37
|
+
], i);
|
38
|
+
const b = i;
|
39
|
+
export {
|
40
|
+
i as C,
|
41
|
+
b as a,
|
42
|
+
g as s
|
43
|
+
};
|
package/list.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-base
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-base.mjs");const e=require("./list.mjs");require("./mwc-ripple.mjs");require("./mwc-list-item-base.mjs");require("./observer.mjs");require("./ripple-handlers.mjs");require("./if-defined.mjs");Object.defineProperty(exports,"CovalentList",{enumerable:!0,get:()=>e.CovalentList});exports.default=e.CovalentList$1;
|
package/list.mjs
CHANGED
@@ -1,20 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
import "./ripple-handlers-227497d3.mjs";
|
7
|
-
import "./base-element-c3dc926e.mjs";
|
8
|
-
import "./utils-dc65fdc9.mjs";
|
9
|
-
import "./property-ca27685b.mjs";
|
10
|
-
import "./state-6f7e570d.mjs";
|
11
|
-
import "./query-1e7846ea.mjs";
|
12
|
-
import "./class-map-08c84aeb.mjs";
|
13
|
-
import "./style-map-2cb0fb63.mjs";
|
14
|
-
import "./observer-be7b92e2.mjs";
|
15
|
-
import "./query-assigned-nodes-bea12e0c.mjs";
|
16
|
-
import "./if-defined-639ed018.mjs";
|
17
|
-
export {
|
18
|
-
L as CovalentList,
|
19
|
-
b as default
|
20
|
-
};
|
1
|
+
"use strict";const p=require("./mwc-list-base.mjs"),a=require("./mwc-ripple.mjs");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
+
*/const l=a.i$1`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;var c=Object.defineProperty,m=Object.getOwnPropertyDescriptor,n=(s,e,r,i)=>{for(var t=i>1?void 0:i?m(e,r):e,d=s.length-1,o;d>=0;d--)(o=s[d])&&(t=(i?o(e,r,t):o(t))||t);return i&&t&&c(e,r,t),t};exports.CovalentList=class extends p.ListBase{constructor(){super(...arguments),this.navOpen=!1}async getUpdateComplete(){return this.slotElements.forEach(e=>{e.setAttribute("navopen",this.navOpen.toString())}),await super.getUpdateComplete()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),e==="navopen"&&this.slotElements.forEach(t=>{i==="true"?t.setAttribute("navopen",i):t.removeAttribute("navopen")})}};exports.CovalentList.styles=[l];n([a.l({flatten:!0})],exports.CovalentList.prototype,"slotElements",2);n([a.e({type:Boolean,reflect:!0})],exports.CovalentList.prototype,"navOpen",2);exports.CovalentList=n([a.e$1("cv-list")],exports.CovalentList);const g=exports.CovalentList;exports.CovalentList$1=g;exports.styles=l;
|
@@ -1,25 +1,44 @@
|
|
1
|
-
import { L as l } from "./mwc-list-base
|
2
|
-
import {
|
1
|
+
import { L as l } from "./mwc-list-base.mjs";
|
2
|
+
import { b as c, l as p, e as m, c as g } from "./mwc-ripple.mjs";
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2021 Google LLC
|
6
6
|
* SPDX-LIcense-Identifier: Apache-2.0
|
7
7
|
*/
|
8
|
-
const
|
9
|
-
var
|
10
|
-
for (var
|
11
|
-
(
|
12
|
-
return i &&
|
8
|
+
const f = c`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;
|
9
|
+
var h = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (t, a, e, i) => {
|
10
|
+
for (var r = i > 1 ? void 0 : i ? v(a, e) : a, s = t.length - 1, n; s >= 0; s--)
|
11
|
+
(n = t[s]) && (r = (i ? n(a, e, r) : n(r)) || r);
|
12
|
+
return i && r && h(a, e, r), r;
|
13
13
|
};
|
14
|
-
let
|
14
|
+
let d = class extends l {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments), this.navOpen = !1;
|
17
|
+
}
|
18
|
+
async getUpdateComplete() {
|
19
|
+
return this.slotElements.forEach((t) => {
|
20
|
+
t.setAttribute("navopen", this.navOpen.toString());
|
21
|
+
}), await super.getUpdateComplete();
|
22
|
+
}
|
23
|
+
attributeChangedCallback(t, a, e) {
|
24
|
+
super.attributeChangedCallback(t, a, e), t === "navopen" && this.slotElements.forEach((i) => {
|
25
|
+
e === "true" ? i.setAttribute("navopen", e) : i.removeAttribute("navopen");
|
26
|
+
});
|
27
|
+
}
|
15
28
|
};
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
],
|
20
|
-
|
29
|
+
d.styles = [f];
|
30
|
+
o([
|
31
|
+
p({ flatten: !0 })
|
32
|
+
], d.prototype, "slotElements", 2);
|
33
|
+
o([
|
34
|
+
m({ type: Boolean, reflect: !0 })
|
35
|
+
], d.prototype, "navOpen", 2);
|
36
|
+
d = o([
|
37
|
+
g("cv-list")
|
38
|
+
], d);
|
39
|
+
const x = d;
|
21
40
|
export {
|
22
|
-
|
23
|
-
|
24
|
-
|
41
|
+
d as C,
|
42
|
+
x as a,
|
43
|
+
f as s
|
25
44
|
};
|
package/menu.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./mwc-menu-base.mjs"),o=require("./mwc-ripple.mjs");require("./mwc-list-base.mjs");require("./mwc-list-item-base.mjs");require("./observer.mjs");require("./ripple-handlers.mjs");require("./if-defined.mjs");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
-
*/const v=
|
5
|
+
*/const v=o.i$1`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`;var a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,m=(r,t,l,n)=>{for(var e=n>1?void 0:n?c(t,l):t,u=r.length-1,s;u>=0;u--)(s=r[u])&&(e=(n?s(t,l,e):s(e))||e);return n&&e&&a(t,l,e),e};exports.CovalentMenu=class extends i.MenuBase{};exports.CovalentMenu.styles=[v];exports.CovalentMenu=m([o.e$1("cv-menu")],exports.CovalentMenu);const M=exports.CovalentMenu;exports.default=M;
|