@covalent/components 8.23.2 → 9.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_commonjsHelpers-2f131a27.mjs → _commonjsHelpers-DjF3Plf2.mjs} +2 -4
- package/action-ribbon.js +5 -6
- package/action-ribbon.mjs +47 -51
- package/alert.js +5 -6
- package/alert.mjs +48 -52
- package/app-shell.js +1 -2
- package/app-shell.mjs +13 -30
- package/{async-directive-99a01ec7.mjs → async-directive-Cx1B9M5C.mjs} +11 -23
- package/{async-directive-4a34f75e.js → async-directive-y3fBDDSk.js} +1 -1
- package/badge.js +1 -2
- package/badge.mjs +10 -12
- package/{base-element-acf30176.mjs → base-element-C-U4OfWx.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-aUDWLn36.js} +1 -1
- package/button.js +2 -3
- package/button.mjs +18 -23
- package/card.js +8 -9
- package/card.mjs +36 -38
- package/check-list-item.js +11 -15
- package/check-list-item.mjs +53 -70
- package/checkbox.js +1 -2
- package/checkbox.mjs +15 -31
- package/{chip-c65a4549.js → chip-BsDYOEFW.js} +31 -32
- package/{chip-fb0ea5c5.mjs → chip-C8L37ovG.mjs} +110 -117
- package/chip-set.js +5 -6
- package/chip-set.mjs +73 -83
- package/chip.js +1 -1
- package/chip.mjs +4 -13
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +9 -10
- package/{class-map-6e504a9a.mjs → class-map-C1SJpero.mjs} +4 -6
- package/{class-map-0a4c6ca9.js → class-map-C8G1ALWK.js} +1 -1
- package/{code-editor-712d0ce9.mjs → code-editor-CxQzms2S.mjs} +13485 -13720
- package/code-editor-hT6MTCL6.js +660 -0
- package/code-editor.js +1 -1
- package/code-editor.mjs +3 -6
- package/code-snippet.js +5 -6
- package/code-snippet.mjs +235 -284
- package/{dialog-78a9fd0e.mjs → dialog-BoNH4r3n.mjs} +23 -25
- package/{dialog-83104700.js → dialog-LUOzoMeO.js} +6 -7
- package/dialog.js +1 -1
- package/dialog.mjs +4 -13
- package/directive-C7oCP5Bh.js +5 -0
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-CllkNDrI.mjs} +1 -1
- package/{directive-helpers-0ce1f995.js → directive-helpers-Duf3sfLn.js} +1 -1
- package/{directive-daf4e9b6.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -3
- package/drawer.mjs +7 -17
- package/empty-state.js +2 -3
- package/empty-state.mjs +12 -15
- package/{event-options-3f5eb195.js → event-options-BH8ks-kz.js} +1 -1
- package/{event-options-78d6cf94.mjs → event-options-CNykeE2u.mjs} +1 -1
- package/expansion-panel-item.js +1 -2
- package/expansion-panel-item.mjs +6 -9
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +2 -2
- package/focused-page.js +1 -2
- package/focused-page.mjs +13 -16
- package/{form-element-abadd335.mjs → form-element-CxSqbssX.mjs} +4 -4
- package/{form-element-c553d6f5.js → form-element-DwqUbs65.js} +1 -1
- package/formfield.js +6 -7
- package/formfield.mjs +19 -23
- package/{foundation-e980aa3d.js → foundation-CySCCTUE.js} +3 -3
- package/{foundation-d533452a.mjs → foundation-qQ4jzaAu.mjs} +11 -13
- package/full-screen-dialog.js +4 -5
- package/full-screen-dialog.mjs +13 -22
- package/{html-021d0b5b.mjs → html-BFM6gjw5.mjs} +13 -18
- package/html-BMgGKfr0.js +6 -0
- package/icon-button-toggle.js +11 -16
- package/icon-button-toggle.mjs +68 -78
- package/icon-button.js +6 -11
- package/icon-button.mjs +56 -66
- package/icon-check-toggle.js +6 -7
- package/icon-check-toggle.mjs +10 -23
- package/icon-radio-toggle.js +4 -5
- package/icon-radio-toggle.mjs +13 -29
- package/icon.js +1 -5
- package/icon.mjs +13 -20
- package/{if-defined-c367f208.mjs → if-defined-BsNkRMMG.mjs} +1 -1
- package/{if-defined-f1c45245.js → if-defined-D8C6ewRn.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +110 -150
- package/{inert.esm-359d4581.mjs → inert.esm-BJ7IrRxy.mjs} +3 -4
- package/{javascript-5b83986c.js → javascript-20JK5_5Y.js} +1 -1
- package/{javascript-d2604785.mjs → javascript-BVQ0GGQP.mjs} +4 -10
- package/linear-progress.js +2 -3
- package/linear-progress.mjs +12 -14
- package/list-item-BZVW1fmJ.js +5 -0
- package/list-item-DCzzLVZh.mjs +11 -0
- package/list-item.js +5 -5
- package/list-item.mjs +21 -32
- package/list.js +3 -8
- package/list.mjs +18 -38
- package/menu.js +3 -8
- package/menu.mjs +18 -39
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-Cd0yCOHu.js} +42 -2
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-MBOzkrQg.mjs} +198 -3
- package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-D-48lqfn.js} +5 -5
- package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-Dgs9327G.mjs} +24 -26
- package/{mwc-icon-5227aec3.mjs → mwc-icon-BZRds8SY.mjs} +6 -5
- package/{mwc-icon-f87639bc.js → mwc-icon-BumH81hp.js} +2 -2
- package/mwc-icon-button.css-BtgKBOl3.js +5 -0
- package/mwc-icon-button.css-DJMY7U7e.mjs +10 -0
- package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-DvPWr3ER.js} +1 -1
- package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-zhm5Zc8i.mjs} +7 -7
- package/{list-item-8b940ec8.js → mwc-list-item.css-CtRq5wSu.js} +28 -6
- package/{list-item-ef175b93.mjs → mwc-list-item.css-g34xqhLC.mjs} +199 -9
- package/mwc-list.css-CaMJWsDp.js +111 -0
- package/{mwc-list-base-402e1d8e.mjs → mwc-list.css-DFOdJyFB.mjs} +213 -213
- package/{mwc-menu-base-04586160.mjs → mwc-menu.css-BEiPghgR.mjs} +90 -92
- package/{mwc-menu-base-08f54c38.js → mwc-menu.css-pxcxlTrh.js} +22 -22
- package/mwc-radio.css-CVMtIq-L.js +105 -0
- package/{mwc-radio-base-768b4221.mjs → mwc-radio.css-XRx0vL1k.mjs} +124 -118
- package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-2Bqk43z7.mjs} +200 -211
- package/{mwc-slider.css-c5f99704.js → mwc-slider.css-WrkrmqkL.js} +6 -6
- package/{mwc-tab-base-0814a3ef.mjs → mwc-tab.css-B9yQpkYf.mjs} +126 -122
- package/{mwc-tab-base-f2269fd1.js → mwc-tab.css-CgdXMZBB.js} +26 -22
- package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-B0EW9eNk.mjs} +13 -15
- package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-CSXRBOiX.js} +3 -3
- package/nav-list-item.js +4 -5
- package/nav-list-item.mjs +12 -23
- package/notebook-cell.js +8 -9
- package/notebook-cell.mjs +14 -29
- package/package.json +1 -1
- package/python-B8sEpp0H.js +6 -0
- package/{python-0707b744.mjs → python-BRZC-1dQ.mjs} +11 -16
- package/query-BBDQWsft.mjs +15 -0
- package/query-BxDs8ftQ.js +5 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-DCt2xozt.mjs} +32 -57
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-B9zBfkh6.mjs} +1 -1
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-CckKHm2z.js} +1 -1
- package/radio-list-item.js +9 -13
- package/radio-list-item.mjs +50 -66
- package/radio.js +1 -2
- package/radio.mjs +15 -32
- package/{ripple-handlers-9fb4a31a.js → ripple-handlers-CzfSBjWo.js} +8 -8
- package/{ripple-handlers-8883e893.mjs → ripple-handlers-i3WPEBiO.mjs} +20 -25
- package/select.js +15 -20
- package/select.mjs +196 -213
- package/side-sheet.js +1 -2
- package/side-sheet.mjs +18 -27
- package/slider-range.js +1 -1
- package/slider-range.mjs +15 -19
- package/slider.js +1 -1
- package/slider.mjs +18 -26
- package/snackbar.js +9 -10
- package/snackbar.mjs +30 -33
- package/{state-0974a8e5.js → state-C3HoXfoa.js} +1 -1
- package/{state-b5e865db.mjs → state-DaD9o2aK.mjs} +1 -1
- package/status-dialog/status-dialog.d.ts.map +1 -1
- package/status-dialog.js +15 -37
- package/status-dialog.mjs +47 -116
- package/status-header-item.js +1 -2
- package/status-header-item.mjs +7 -8
- package/status-header.js +4 -5
- package/status-header.mjs +22 -24
- package/{style-map-a135c6ab.js → style-map-BJBXlSqn.js} +1 -1
- package/{style-map-e7ec6d41.mjs → style-map-CCsABR5m.mjs} +4 -6
- package/style.css +1 -1
- package/switch.js +6 -7
- package/switch.mjs +20 -29
- package/tab-bar.js +18 -22
- package/tab-bar.mjs +192 -205
- package/tab.js +1 -6
- package/tab.mjs +13 -31
- package/text-lockup.js +1 -2
- package/text-lockup.mjs +14 -16
- package/textarea.js +15 -19
- package/textarea.mjs +53 -68
- package/textfield-BwmiygD8.js +136 -0
- package/textfield-C6sUZIeA.mjs +927 -0
- package/textfield.js +3 -7
- package/textfield.mjs +17 -37
- package/toolbar.js +1 -2
- package/toolbar.mjs +6 -13
- package/tooltip.js +3 -4
- package/tooltip.mjs +29 -40
- package/{top-app-bar-f83386e0.mjs → top-app-bar-4SA3DjLX.mjs} +2 -3
- package/{top-app-bar-a531c1b4.js → top-app-bar-CGjBuyiD.js} +2 -3
- package/top-app-bar-fixed.js +6 -6
- package/top-app-bar-fixed.mjs +24 -32
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -25
- package/tree-list-item.js +1 -2
- package/tree-list-item.mjs +9 -13
- package/tree-list.js +1 -2
- package/tree-list.mjs +6 -7
- package/{tslib.es6-c4b0f3b1.mjs → tslib.es6-pPsSiLLK.mjs} +15 -26
- package/typescript-CqVUCaiQ.js +6 -0
- package/{typescript-399a453a.mjs → typescript-qqbekFoQ.mjs} +10 -15
- package/typography.js +1 -2
- package/typography.mjs +7 -8
- package/code-editor-b36fad77.js +0 -662
- package/directive-1186bc23.js +0 -5
- package/html-b2900c6a.js +0 -6
- package/mwc-checkbox-base-02b4eb91.mjs +0 -198
- package/mwc-checkbox-base-935d9566.js +0 -41
- package/mwc-list-base-22616d0a.js +0 -111
- package/mwc-list-item-base-06d93e6e.js +0 -28
- package/mwc-list-item-base-3c6a3bfb.mjs +0 -202
- package/mwc-radio-base-147cf999.js +0 -101
- package/mwc-radio.css-4e140252.js +0 -5
- package/mwc-radio.css-7454bb11.mjs +0 -10
- package/python-6a1f2ad7.js +0 -6
- package/query-680f1868.js +0 -5
- package/query-d843aa92.mjs +0 -25
- package/textfield-83e78e56.js +0 -133
- package/textfield-853ebae5.mjs +0 -933
- package/typescript-98fbdb3d.js +0 -6
- /package/{_commonjsHelpers-2367a3a2.js → _commonjsHelpers-6jR-N8xe.js} +0 -0
- /package/{aria-property-fa2717fe.mjs → aria-property-6O5bK0tV.mjs} +0 -0
- /package/{aria-property-849c8816.js → aria-property-Dl2ZKBbP.js} +0 -0
- /package/{css-9be95551.js → css-Bn4le2Sp.js} +0 -0
- /package/{css-5dd354ac.mjs → css-DjwjINlv.mjs} +0 -0
- /package/{foundation-2334d146.mjs → foundation-PL3XY-m_.mjs} +0 -0
- /package/{foundation-e830bd94.js → foundation-pgmPu2iJ.js} +0 -0
- /package/{inert.esm-2cee6f2e.js → inert.esm-CNFtJ8pb.js} +0 -0
- /package/{keyboard-983b121c.mjs → keyboard-BLpVBEDM.mjs} +0 -0
- /package/{keyboard-39125691.js → keyboard-CZlaSOb1.js} +0 -0
- /package/{markdown-eae8e3ba.js → markdown-CrnizovQ.js} +0 -0
- /package/{markdown-9b448c46.mjs → markdown-bAu8rWEZ.mjs} +0 -0
- /package/{observer-be7b92e2.mjs → observer-DQ8OfVDQ.mjs} +0 -0
- /package/{observer-a096ab43.js → observer-N9cgkDqh.js} +0 -0
- /package/{property-9b6ea53b.mjs → property-DJzm_oB9.mjs} +0 -0
- /package/{property-57f6f6fe.js → property-DYTC_2-m.js} +0 -0
- /package/{query-assigned-elements-f623705d.js → query-assigned-elements-4CafVNR8.js} +0 -0
- /package/{r-42c6f0aa.js → r-DKABafMl.js} +0 -0
- /package/{r-630f5d6b.mjs → r-rF4J5dF2.mjs} +0 -0
- /package/{sql-63ec8e76.mjs → sql-CL8qgBkR.mjs} +0 -0
- /package/{sql-faf05577.js → sql-CXm05EUD.js} +0 -0
- /package/{tslib.es6-98719205.js → tslib.es6-CHeFCc6E.js} +0 -0
- /package/{utils-dc65fdc9.mjs → utils-Dr5MegQq.mjs} +0 -0
- /package/{utils-a8190a39.js → utils-wMBJ9n_n.js} +0 -0
package/status-dialog.js
CHANGED
@@ -1,50 +1,28 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
2
|
-
|
3
|
-
* Copyright 2016 Google Inc.
|
4
|
-
*
|
5
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
* of this software and associated documentation files (the "Software"), to deal
|
7
|
-
* in the Software without restriction, including without limitation the rights
|
8
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
* copies of the Software, and to permit persons to whom the Software is
|
10
|
-
* furnished to do so, subject to the following conditions:
|
11
|
-
*
|
12
|
-
* The above copyright notice and this permission notice shall be included in
|
13
|
-
* all copies or substantial portions of the Software.
|
14
|
-
*
|
15
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
* THE SOFTWARE.
|
22
|
-
*/var u={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"};const p=`:host{--mdc-dialog-content-ink-color: var(--cv-theme-on-surface-variant);--mdc-dialog-heading-ink-color: var(--cv-theme-on-surface);--mdc-dialog-min-width: 96vw;--mdc-theme-surface: var(--cv-theme-surface-container-lowest);--mdc-typography-body1-font-family: var( --cv-typography-subtitle1-font-family );--mdc-typography-headline6-font-size: var( --cv-typography-headline6-font-size );--mdc-typography-headline6-font-weight: var( --cv-typography-headline1-font-weight )}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative-8)}:host .mdc-dialog.error .status-dialog__state cv-icon{color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive-8)}:host .mdc-dialog.positive .status-dialog__state cv-icon{color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution-8)}:host .mdc-dialog.warning .status-dialog__state cv-icon{color:var(--cv-theme-caution)}:host .mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 40px)}:host .mdc-dialog .mdc-dialog__content{padding:0 16px}:host .mdc-dialog .mdc-dialog__content.padding-bottom{padding-bottom:2rem}:host .mdc-dialog__actions{flex-shrink:0;padding:16px}:host .mdc-dialog__content{flex-grow:1}:host .mdc-dialog__title{flex:1;line-height:var(--cv-typography-body1-line-height);margin:0;padding:0 40px 0 0}:host .mdc-dialog__title:before{display:none}:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border:none}.status-dialog__arrow-icon{margin-top:2px}.status-dialog__arrow-icon.open{transform:rotate(0);transition:transform .25s ease-out}.status-dialog__arrow-icon.close{transform:rotate(180deg);transition:transform .25s ease-in}.status-dialog__container{display:flex}.status-dialog__content{display:flex;flex:1;flex-direction:column}.status-dialog__container,.status-dialog__content{max-height:calc(100% - 32px);overflow-y:auto}.status-dialog__details{display:none}.status-dialog__details.visible{display:block}.status-dialog__heading{--mdc-icon-button-size: 40px;align-items:start;box-sizing:border-box;display:inline-flex;justify-content:space-between;padding:18px 16px;width:100%}.status-dialog__heading.no-heading{justify-content:flex-end}.status-dialog__heading .status-dialog__close-icon{position:absolute;right:8px;top:10px}.status-dialog__state{--mdc-icon-size: 32px;padding:14px 16px 0}.status-dialog__state cv-icon{font-variation-settings:"FILL" 1}.status-dialog__toggle-details{align-items:center;color:var(--cv-theme-primary);cursor:pointer;display:inline-flex;font-size:14px;font-style:normal;font-weight:400;letter-spacing:.25px;line-height:20px;padding:16px 0}@media screen and (min-width: 600px){:host{--mdc-dialog-min-width: 575px}:host .mdc-dialog .mdc-dialog__surface{max-width:575px}}@media screen and (max-width: 480px){:host .status-dialog__container{flex-direction:column}:host .status-dialog__heading .status-dialog__close-icon{top:18px}:host .status-dialog__state{padding:4px}:host .status-dialog__state cv-icon{display:none}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution)}}
|
23
|
-
`;var m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,l=(n,t,a,s)=>{for(var e=s>1?void 0:s?v(t,a):t,d=n.length-1,c;d>=0;d--)(c=n[d])&&(e=(s?c(t,a,e):c(e))||e);return s&&e&&m(t,a,e),e};exports.CovalentStatusDialog=class extends g.CovalentDialog$1{constructor(){super(...arguments),this.state="error",this.expandDetails=!1,this.showDetailsLink=!1}firstUpdated(){if(super.firstUpdated(),this._details){const t=this._details.assignedNodes({flatten:!0});this.showDetailsLink=t.some(a=>a.nodeType===Node.ELEMENT_NODE)}}toggleDetails(){this.expandDetails=!this.expandDetails}_getStatusIcon(){switch(this.state){case"positive":return"check";default:return this.state}}renderDetails(){const t={"status-dialog__details":!0,visible:this.expandDetails},a={open:!this.expandDetails,close:this.expandDetails},s=i.x`<cv-icon
|
24
|
-
class="${o.o(a)} status-dialog__arrow-icon"
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./query-assigned-elements-4CafVNR8.js"),h=require("./property-DYTC_2-m.js"),r=require("./state-C3HoXfoa.js"),_=require("./query-BxDs8ftQ.js"),g=require("./dialog-LUOzoMeO.js"),e=require("./class-map-C8G1ALWK.js");require("./icon.js");require("./icon-button.js");const p=':host{--mdc-dialog-content-ink-color: var(--cv-theme-on-surface-variant);--mdc-dialog-heading-ink-color: var(--cv-theme-on-surface);--mdc-dialog-min-width: 96vw;--mdc-theme-surface: var(--cv-theme-surface-container-lowest);--mdc-typography-body1-font-family: var( --cv-typography-subtitle1-font-family );--mdc-typography-headline6-font-size: var( --cv-typography-headline6-font-size );--mdc-typography-headline6-font-weight: var( --cv-typography-headline1-font-weight )}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative-8)}:host .mdc-dialog.error .status-dialog__state cv-icon{color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive-8)}:host .mdc-dialog.positive .status-dialog__state cv-icon{color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution-8)}:host .mdc-dialog.warning .status-dialog__state cv-icon{color:var(--cv-theme-caution)}:host .mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 40px)}:host .mdc-dialog .mdc-dialog__content{padding:0 16px}:host .mdc-dialog .mdc-dialog__content.padding-bottom{padding-bottom:2rem}:host .mdc-dialog__actions{flex-shrink:0;padding:16px}:host .mdc-dialog__content{flex-grow:1}:host .mdc-dialog__title{flex:1;line-height:var(--cv-typography-body1-line-height);margin:0;padding:0 40px 0 0}:host .mdc-dialog__title:before{display:none}:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border:none}.status-dialog__arrow-icon{margin-top:2px}.status-dialog__arrow-icon.open{transform:rotate(0);transition:transform .25s ease-out}.status-dialog__arrow-icon.close{transform:rotate(180deg);transition:transform .25s ease-in}.status-dialog__container{display:flex}.status-dialog__content{display:flex;flex:1;flex-direction:column}.status-dialog__container,.status-dialog__content{max-height:calc(100% - 32px);overflow-y:auto}.status-dialog__details{display:none}.status-dialog__details.visible{display:block}.status-dialog__heading{--mdc-icon-button-size: 40px;align-items:start;box-sizing:border-box;display:inline-flex;justify-content:space-between;padding:18px 16px;width:100%}.status-dialog__heading.no-heading{justify-content:flex-end}.status-dialog__heading .status-dialog__close-icon{position:absolute;right:8px;top:10px}.status-dialog__state{--mdc-icon-size: 32px;padding:14px 16px 0}.status-dialog__state cv-icon{font-variation-settings:"FILL" 1}.status-dialog__toggle-details{align-items:center;color:var(--cv-theme-primary);cursor:pointer;display:inline-flex;font-size:14px;font-style:normal;font-weight:400;letter-spacing:.25px;line-height:20px;padding:16px 0}@media screen and (min-width: 600px){:host{--mdc-dialog-min-width: 575px}:host .mdc-dialog .mdc-dialog__surface{max-width:575px}}@media screen and (max-width: 480px){:host .status-dialog__container{flex-direction:column}:host .status-dialog__heading .status-dialog__close-icon{top:18px}:host .status-dialog__state{padding:4px}:host .status-dialog__state cv-icon{display:none}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution)}}';var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d=(l,t,a,o)=>{for(var i=o>1?void 0:o?v(t,a):t,n=l.length-1,c;n>=0;n--)(c=l[n])&&(i=(o?c(t,a,i):c(i))||i);return o&&i&&u(t,a,i),i};exports.CovalentStatusDialog=class extends g.CovalentDialog$1{constructor(){super(...arguments),this.state="error",this.expandDetails=!1,this.showDetailsLink=!1}firstUpdated(){if(super.firstUpdated(),this._details){const t=this._details.assignedNodes({flatten:!0});this.showDetailsLink=t.some(a=>a.nodeType===Node.ELEMENT_NODE)}}toggleDetails(){this.expandDetails=!this.expandDetails}_getStatusIcon(){switch(this.state){case"positive":return"check";default:return this.state}}renderDetails(){const t={"status-dialog__details":!0,visible:this.expandDetails},a={open:!this.expandDetails,close:this.expandDetails},o=s.x`<cv-icon
|
2
|
+
class="${e.o(a)} status-dialog__arrow-icon"
|
25
3
|
>arrow_drop_down</cv-icon
|
26
|
-
>`;return
|
4
|
+
>`;return s.x`${this.showDetailsLink?s.x`<div>
|
27
5
|
<span
|
28
6
|
class="status-dialog__toggle-details"
|
29
7
|
@click="${this.toggleDetails}"
|
30
|
-
>${this.expandDetails?"Hide details":"Show details"} ${
|
8
|
+
>${this.expandDetails?"Hide details":"Show details"} ${o}
|
31
9
|
</span>
|
32
10
|
</div>`:""}
|
33
11
|
<slot
|
34
12
|
name="details"
|
35
13
|
id="details"
|
36
|
-
class="${
|
37
|
-
></slot>`}renderHeading(){const t={"status-dialog__heading":!0,"no-heading":!this.heading};let a=
|
14
|
+
class="${e.o(t)}"
|
15
|
+
></slot>`}renderHeading(){const t={"status-dialog__heading":!0,"no-heading":!this.heading};let a=s.x``;return this.heading&&(a=s.x`<h2 id="title" class="mdc-dialog__title">
|
38
16
|
${this.heading}
|
39
|
-
</h2>`),
|
17
|
+
</h2>`),s.x`<span class="${e.o(t)}">
|
40
18
|
${a}
|
41
19
|
<cv-icon-button
|
42
20
|
class="status-dialog__close-icon"
|
43
21
|
icon="close"
|
44
22
|
@click=${this.close}
|
45
23
|
></cv-icon-button>
|
46
|
-
</span>`}render(){const t={
|
47
|
-
class="mdc-dialog ${
|
24
|
+
</span>`}render(){const t={"mdc-dialog--stacked":this.stacked,error:this.state==="error",positive:this.state==="positive",warning:this.state==="warning"},a=this.renderHeading(),o=this.renderDetails(),i={"mdc-dialog__actions":!this.hideActions},n={"mdc-dialog__content":!0,"padding-bottom":this.hideActions};return s.x` <div
|
25
|
+
class="mdc-dialog ${e.o(t)}"
|
48
26
|
role="alertdialog"
|
49
27
|
aria-modal="true"
|
50
28
|
aria-labelledby="title"
|
@@ -58,11 +36,11 @@
|
|
58
36
|
</div>
|
59
37
|
<div class="status-dialog__content">
|
60
38
|
${a}
|
61
|
-
<div id="content" class="${
|
39
|
+
<div id="content" class="${e.o(n)}">
|
62
40
|
<slot id="contentSlot"></slot>
|
63
|
-
${
|
41
|
+
${o}
|
64
42
|
</div>
|
65
|
-
<footer id="actions" class="${
|
43
|
+
<footer id="actions" class="${e.o(i)}">
|
66
44
|
<span>
|
67
45
|
<slot name="secondaryAction"></slot>
|
68
46
|
</span>
|
@@ -75,6 +53,6 @@
|
|
75
53
|
</div>
|
76
54
|
</div>
|
77
55
|
<div class="mdc-dialog__scrim"></div>
|
78
|
-
</div>`}};exports.CovalentStatusDialog.styles=[g.styles,
|
79
|
-
${
|
80
|
-
`];
|
56
|
+
</div>`}};exports.CovalentStatusDialog.styles=[g.styles,s.i`
|
57
|
+
${s.r(p)}
|
58
|
+
`];d([_.i("#details")],exports.CovalentStatusDialog.prototype,"_details",2);d([h.n({type:String})],exports.CovalentStatusDialog.prototype,"state",2);d([r.t()],exports.CovalentStatusDialog.prototype,"expandDetails",2);d([r.t()],exports.CovalentStatusDialog.prototype,"showDetailsLink",2);exports.CovalentStatusDialog=d([s.e("cv-status-dialog")],exports.CovalentStatusDialog);const m=exports.CovalentStatusDialog;exports.default=m;
|
package/status-dialog.mjs
CHANGED
@@ -1,96 +1,27 @@
|
|
1
|
-
import {
|
2
|
-
import { n as
|
3
|
-
import { t as g } from "./state-
|
4
|
-
import { i as v } from "./query-
|
5
|
-
import {
|
6
|
-
import { o as
|
1
|
+
import { x as e, i as h, r as _, e as p } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
import { n as m } from "./property-DJzm_oB9.mjs";
|
3
|
+
import { t as g } from "./state-DaD9o2aK.mjs";
|
4
|
+
import { i as v } from "./query-BBDQWsft.mjs";
|
5
|
+
import { a as u, s as f } from "./dialog-BoNH4r3n.mjs";
|
6
|
+
import { o as n } from "./class-map-C1SJpero.mjs";
|
7
7
|
import "./icon.mjs";
|
8
8
|
import "./icon-button.mjs";
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
import "./directive-daf4e9b6.mjs";
|
15
|
-
import "./mwc-icon-5227aec3.mjs";
|
16
|
-
import "./ripple-handlers-8883e893.mjs";
|
17
|
-
import "./style-map-e7ec6d41.mjs";
|
18
|
-
import "./aria-property-fa2717fe.mjs";
|
19
|
-
import "./event-options-78d6cf94.mjs";
|
20
|
-
import "./if-defined-c367f208.mjs";
|
21
|
-
/**
|
22
|
-
* @license
|
23
|
-
* Copyright 2016 Google Inc.
|
24
|
-
*
|
25
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
26
|
-
* of this software and associated documentation files (the "Software"), to deal
|
27
|
-
* in the Software without restriction, including without limitation the rights
|
28
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
29
|
-
* copies of the Software, and to permit persons to whom the Software is
|
30
|
-
* furnished to do so, subject to the following conditions:
|
31
|
-
*
|
32
|
-
* The above copyright notice and this permission notice shall be included in
|
33
|
-
* all copies or substantial portions of the Software.
|
34
|
-
*
|
35
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
36
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
37
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
38
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
39
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
40
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
41
|
-
* THE SOFTWARE.
|
42
|
-
*/
|
43
|
-
var x = {
|
44
|
-
CLOSING: "mdc-dialog--closing",
|
45
|
-
OPEN: "mdc-dialog--open",
|
46
|
-
OPENING: "mdc-dialog--opening",
|
47
|
-
SCROLLABLE: "mdc-dialog--scrollable",
|
48
|
-
SCROLL_LOCK: "mdc-dialog-scroll-lock",
|
49
|
-
STACKED: "mdc-dialog--stacked",
|
50
|
-
FULLSCREEN: "mdc-dialog--fullscreen",
|
51
|
-
// Class for showing a scroll divider on full-screen dialog header element.
|
52
|
-
// Should only be displayed on scrollable content, when the dialog content is
|
53
|
-
// scrolled "underneath" the header.
|
54
|
-
SCROLL_DIVIDER_HEADER: "mdc-dialog-scroll-divider-header",
|
55
|
-
// Class for showing a scroll divider on a full-screen dialog footer element.
|
56
|
-
// Should only be displayed on scrolalble content, when the dialog content is
|
57
|
-
// obscured "underneath" the footer.
|
58
|
-
SCROLL_DIVIDER_FOOTER: "mdc-dialog-scroll-divider-footer",
|
59
|
-
// The "surface scrim" is a scrim covering only the surface of a dialog. This
|
60
|
-
// is used in situations where a confirmation dialog is shown over an already
|
61
|
-
// opened full-screen dialog. On larger screen-sizes, the full-screen dialog
|
62
|
-
// is sized as a modal and so in these situations we display a "surface scrim"
|
63
|
-
// to prevent a "double scrim" (where the scrim from the secondary
|
64
|
-
// confirmation dialog would overlap with the scrim from the full-screen
|
65
|
-
// dialog).
|
66
|
-
SURFACE_SCRIM_SHOWN: "mdc-dialog__surface-scrim--shown",
|
67
|
-
// "Showing" animating class for the surface-scrim.
|
68
|
-
SURFACE_SCRIM_SHOWING: "mdc-dialog__surface-scrim--showing",
|
69
|
-
// "Hiding" animating class for the surface-scrim.
|
70
|
-
SURFACE_SCRIM_HIDING: "mdc-dialog__surface-scrim--hiding",
|
71
|
-
// Class to hide a dialog's scrim (used in conjunction with a surface-scrim).
|
72
|
-
// Note that we only hide the original scrim rather than removing it entirely
|
73
|
-
// to prevent interactions with the content behind this scrim, and to capture
|
74
|
-
// scrim clicks.
|
75
|
-
SCRIM_HIDDEN: "mdc-dialog__scrim--hidden"
|
9
|
+
const x = ':host{--mdc-dialog-content-ink-color: var(--cv-theme-on-surface-variant);--mdc-dialog-heading-ink-color: var(--cv-theme-on-surface);--mdc-dialog-min-width: 96vw;--mdc-theme-surface: var(--cv-theme-surface-container-lowest);--mdc-typography-body1-font-family: var( --cv-typography-subtitle1-font-family );--mdc-typography-headline6-font-size: var( --cv-typography-headline6-font-size );--mdc-typography-headline6-font-weight: var( --cv-typography-headline1-font-weight )}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative-8)}:host .mdc-dialog.error .status-dialog__state cv-icon{color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive-8)}:host .mdc-dialog.positive .status-dialog__state cv-icon{color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution-8)}:host .mdc-dialog.warning .status-dialog__state cv-icon{color:var(--cv-theme-caution)}:host .mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 40px)}:host .mdc-dialog .mdc-dialog__content{padding:0 16px}:host .mdc-dialog .mdc-dialog__content.padding-bottom{padding-bottom:2rem}:host .mdc-dialog__actions{flex-shrink:0;padding:16px}:host .mdc-dialog__content{flex-grow:1}:host .mdc-dialog__title{flex:1;line-height:var(--cv-typography-body1-line-height);margin:0;padding:0 40px 0 0}:host .mdc-dialog__title:before{display:none}:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,:host .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border:none}.status-dialog__arrow-icon{margin-top:2px}.status-dialog__arrow-icon.open{transform:rotate(0);transition:transform .25s ease-out}.status-dialog__arrow-icon.close{transform:rotate(180deg);transition:transform .25s ease-in}.status-dialog__container{display:flex}.status-dialog__content{display:flex;flex:1;flex-direction:column}.status-dialog__container,.status-dialog__content{max-height:calc(100% - 32px);overflow-y:auto}.status-dialog__details{display:none}.status-dialog__details.visible{display:block}.status-dialog__heading{--mdc-icon-button-size: 40px;align-items:start;box-sizing:border-box;display:inline-flex;justify-content:space-between;padding:18px 16px;width:100%}.status-dialog__heading.no-heading{justify-content:flex-end}.status-dialog__heading .status-dialog__close-icon{position:absolute;right:8px;top:10px}.status-dialog__state{--mdc-icon-size: 32px;padding:14px 16px 0}.status-dialog__state cv-icon{font-variation-settings:"FILL" 1}.status-dialog__toggle-details{align-items:center;color:var(--cv-theme-primary);cursor:pointer;display:inline-flex;font-size:14px;font-style:normal;font-weight:400;letter-spacing:.25px;line-height:20px;padding:16px 0}@media screen and (min-width: 600px){:host{--mdc-dialog-min-width: 575px}:host .mdc-dialog .mdc-dialog__surface{max-width:575px}}@media screen and (max-width: 480px){:host .status-dialog__container{flex-direction:column}:host .status-dialog__heading .status-dialog__close-icon{top:18px}:host .status-dialog__state{padding:4px}:host .status-dialog__state cv-icon{display:none}:host .mdc-dialog.error .status-dialog__state{background-color:var(--cv-theme-negative)}:host .mdc-dialog.positive .status-dialog__state{background-color:var(--cv-theme-positive)}:host .mdc-dialog.warning .status-dialog__state{background-color:var(--cv-theme-caution)}}';
|
10
|
+
var y = Object.defineProperty, w = Object.getOwnPropertyDescriptor, l = (a, t, o, d) => {
|
11
|
+
for (var i = d > 1 ? void 0 : d ? w(t, o) : t, c = a.length - 1, r; c >= 0; c--)
|
12
|
+
(r = a[c]) && (i = (d ? r(t, o, i) : r(i)) || i);
|
13
|
+
return d && i && y(t, o, i), i;
|
76
14
|
};
|
77
|
-
|
78
|
-
`;
|
79
|
-
var w = Object.defineProperty, b = Object.getOwnPropertyDescriptor, n = (i, t, s, d) => {
|
80
|
-
for (var a = d > 1 ? void 0 : d ? b(t, s) : t, c = i.length - 1, r; c >= 0; c--)
|
81
|
-
(r = i[c]) && (a = (d ? r(t, s, a) : r(a)) || a);
|
82
|
-
return d && a && w(t, s, a), a;
|
83
|
-
};
|
84
|
-
let o = class extends f {
|
15
|
+
let s = class extends u {
|
85
16
|
constructor() {
|
86
17
|
super(...arguments), this.state = "error", this.expandDetails = !1, this.showDetailsLink = !1;
|
87
18
|
}
|
88
19
|
firstUpdated() {
|
89
20
|
if (super.firstUpdated(), this._details) {
|
90
|
-
const
|
21
|
+
const a = this._details.assignedNodes({
|
91
22
|
flatten: !0
|
92
23
|
});
|
93
|
-
this.showDetailsLink =
|
24
|
+
this.showDetailsLink = a.some(
|
94
25
|
(t) => t.nodeType === Node.ELEMENT_NODE
|
95
26
|
);
|
96
27
|
}
|
@@ -108,38 +39,38 @@ let o = class extends f {
|
|
108
39
|
}
|
109
40
|
// Renders the details section in the dialog content
|
110
41
|
renderDetails() {
|
111
|
-
const
|
42
|
+
const a = {
|
112
43
|
"status-dialog__details": !0,
|
113
44
|
visible: this.expandDetails
|
114
45
|
}, t = {
|
115
46
|
open: !this.expandDetails,
|
116
47
|
close: this.expandDetails
|
117
|
-
},
|
118
|
-
class="${
|
48
|
+
}, o = e`<cv-icon
|
49
|
+
class="${n(t)} status-dialog__arrow-icon"
|
119
50
|
>arrow_drop_down</cv-icon
|
120
51
|
>`;
|
121
52
|
return e`${this.showDetailsLink ? e`<div>
|
122
53
|
<span
|
123
54
|
class="status-dialog__toggle-details"
|
124
55
|
@click="${this.toggleDetails}"
|
125
|
-
>${this.expandDetails ? "Hide details" : "Show details"} ${
|
56
|
+
>${this.expandDetails ? "Hide details" : "Show details"} ${o}
|
126
57
|
</span>
|
127
58
|
</div>` : ""}
|
128
59
|
<slot
|
129
60
|
name="details"
|
130
61
|
id="details"
|
131
|
-
class="${
|
62
|
+
class="${n(a)}"
|
132
63
|
></slot>`;
|
133
64
|
}
|
134
65
|
renderHeading() {
|
135
|
-
const
|
66
|
+
const a = {
|
136
67
|
"status-dialog__heading": !0,
|
137
68
|
"no-heading": !this.heading
|
138
69
|
};
|
139
70
|
let t = e``;
|
140
71
|
return this.heading && (t = e`<h2 id="title" class="mdc-dialog__title">
|
141
72
|
${this.heading}
|
142
|
-
</h2>`), e`<span class="${
|
73
|
+
</h2>`), e`<span class="${n(a)}">
|
143
74
|
${t}
|
144
75
|
<cv-icon-button
|
145
76
|
class="status-dialog__close-icon"
|
@@ -149,19 +80,19 @@ let o = class extends f {
|
|
149
80
|
</span>`;
|
150
81
|
}
|
151
82
|
render() {
|
152
|
-
const
|
153
|
-
|
83
|
+
const a = {
|
84
|
+
"mdc-dialog--stacked": this.stacked,
|
154
85
|
error: this.state === "error",
|
155
86
|
positive: this.state === "positive",
|
156
87
|
warning: this.state === "warning"
|
157
|
-
}, t = this.renderHeading(),
|
88
|
+
}, t = this.renderHeading(), o = this.renderDetails(), d = {
|
158
89
|
"mdc-dialog__actions": !this.hideActions
|
159
|
-
},
|
90
|
+
}, i = {
|
160
91
|
"mdc-dialog__content": !0,
|
161
92
|
"padding-bottom": this.hideActions
|
162
93
|
};
|
163
94
|
return e` <div
|
164
|
-
class="mdc-dialog ${
|
95
|
+
class="mdc-dialog ${n(a)}"
|
165
96
|
role="alertdialog"
|
166
97
|
aria-modal="true"
|
167
98
|
aria-labelledby="title"
|
@@ -175,11 +106,11 @@ let o = class extends f {
|
|
175
106
|
</div>
|
176
107
|
<div class="status-dialog__content">
|
177
108
|
${t}
|
178
|
-
<div id="content" class="${
|
109
|
+
<div id="content" class="${n(i)}">
|
179
110
|
<slot id="contentSlot"></slot>
|
180
|
-
${
|
111
|
+
${o}
|
181
112
|
</div>
|
182
|
-
<footer id="actions" class="${
|
113
|
+
<footer id="actions" class="${n(d)}">
|
183
114
|
<span>
|
184
115
|
<slot name="secondaryAction"></slot>
|
185
116
|
</span>
|
@@ -195,29 +126,29 @@ let o = class extends f {
|
|
195
126
|
</div>`;
|
196
127
|
}
|
197
128
|
};
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
${
|
129
|
+
s.styles = [
|
130
|
+
f,
|
131
|
+
h`
|
132
|
+
${_(x)}
|
202
133
|
`
|
203
134
|
];
|
204
|
-
|
135
|
+
l([
|
205
136
|
v("#details")
|
206
|
-
],
|
207
|
-
|
208
|
-
|
209
|
-
],
|
210
|
-
|
137
|
+
], s.prototype, "_details", 2);
|
138
|
+
l([
|
139
|
+
m({ type: String })
|
140
|
+
], s.prototype, "state", 2);
|
141
|
+
l([
|
211
142
|
g()
|
212
|
-
],
|
213
|
-
|
143
|
+
], s.prototype, "expandDetails", 2);
|
144
|
+
l([
|
214
145
|
g()
|
215
|
-
],
|
216
|
-
|
146
|
+
], s.prototype, "showDetailsLink", 2);
|
147
|
+
s = l([
|
217
148
|
p("cv-status-dialog")
|
218
|
-
],
|
219
|
-
const
|
149
|
+
], s);
|
150
|
+
const N = s;
|
220
151
|
export {
|
221
|
-
|
222
|
-
|
152
|
+
s as CovalentStatusDialog,
|
153
|
+
N as default
|
223
154
|
};
|
package/status-header-item.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-
|
2
|
-
`;var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d=(s,a,o,r)=>{for(var e=r>1?void 0:r?v(a,o):a,n=s.length-1,l;n>=0;n--)(l=s[n])&&(e=(r?l(a,o,e):l(e))||e);return r&&e&&u(a,o,e),e};exports.CovalentStatusHeaderItem=class extends t.s{render(){return t.x`<span>${this.label}</span> <slot></slot>`}};exports.CovalentStatusHeaderItem.styles=[t.i`
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-4CafVNR8.js"),i=require("./property-DYTC_2-m.js"),p=":host{--cv-status-header-item-width: 178px;display:flex;padding:14px 16px;align-items:center;font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}span{display:inline-block;width:var(--cv-status-header-item-width);color:var(--mdc-theme-text-secondary-on-background)}";var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d=(s,a,o,r)=>{for(var e=r>1?void 0:r?v(a,o):a,n=s.length-1,l;n>=0;n--)(l=s[n])&&(e=(r?l(a,o,e):l(e))||e);return r&&e&&u(a,o,e),e};exports.CovalentStatusHeaderItem=class extends t.s{render(){return t.x`<span>${this.label}</span> <slot></slot>`}};exports.CovalentStatusHeaderItem.styles=[t.i`
|
3
2
|
${t.r(p)}
|
4
3
|
`];d([i.n()],exports.CovalentStatusHeaderItem.prototype,"label",2);exports.CovalentStatusHeaderItem=d([t.e("cv-status-header-item")],exports.CovalentStatusHeaderItem);const y=exports.CovalentStatusHeaderItem;exports.default=y;
|
package/status-header-item.mjs
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import { n as m } from "./property-
|
3
|
-
const f =
|
4
|
-
`;
|
1
|
+
import { s as p, x as d, i as h, r as y, e as c } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
import { n as m } from "./property-DJzm_oB9.mjs";
|
3
|
+
const f = ":host{--cv-status-header-item-width: 178px;display:flex;padding:14px 16px;align-items:center;font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}span{display:inline-block;width:var(--cv-status-header-item-width);color:var(--mdc-theme-text-secondary-on-background)}";
|
5
4
|
var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (i, a, o, r) => {
|
6
5
|
for (var t = r > 1 ? void 0 : r ? g(a, o) : a, s = i.length - 1, n; s >= 0; s--)
|
7
6
|
(n = i[s]) && (t = (r ? n(a, o, t) : n(t)) || t);
|
8
7
|
return r && t && v(a, o, t), t;
|
9
8
|
};
|
10
|
-
let e = class extends
|
9
|
+
let e = class extends p {
|
11
10
|
render() {
|
12
|
-
return
|
11
|
+
return d`<span>${this.label}</span> <slot></slot>`;
|
13
12
|
}
|
14
13
|
};
|
15
14
|
e.styles = [
|
16
|
-
|
17
|
-
${
|
15
|
+
h`
|
16
|
+
${y(f)}
|
18
17
|
`
|
19
18
|
];
|
20
19
|
l([
|
package/status-header.js
CHANGED
@@ -1,4 +1,4 @@
|
|
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 c=require("./query-assigned-elements-4CafVNR8.js"),u=require("./class-map-C8G1ALWK.js"),h=require("./property-DYTC_2-m.js");var l=Object.defineProperty,n=(a,e,r,i)=>{for(var t=void 0,s=a.length-1,o;s>=0;s--)(o=a[s])&&(t=o(e,r,t)||t);return t&&l(e,r,t),t};class d extends c.s{constructor(){super(...arguments),this.state="neutral",this.statusText="",this.statusHelper="",this.titleText=""}render(){const e={active:this.state==="active",caution:this.state==="caution",error:this.state==="error",positive:this.state==="positive"};return c.x`
|
2
2
|
<div class="status-header ${u.o(e)}">
|
3
3
|
<div class="status-header-title">
|
4
4
|
<div class="status-header-title-text">${this.titleText}</div>
|
@@ -18,7 +18,6 @@
|
|
18
18
|
</div>
|
19
19
|
<slot></slot>
|
20
20
|
</div>
|
21
|
-
`}}n([
|
22
|
-
|
23
|
-
|
24
|
-
`];exports.CovalentStatusHeader=f([i.e("cv-status-header")],exports.CovalentStatusHeader);const y=exports.CovalentStatusHeader;exports.default=y;
|
21
|
+
`}}n([h.n()],d.prototype,"state");n([h.n({type:String})],d.prototype,"statusText");n([h.n({type:String})],d.prototype,"statusHelper");n([h.n({type:String})],d.prototype,"titleText");const v=".status-header{--cv-status-header-background: transparent;--cv-status-header-icon-background: var( --mdc-theme-surface-neutral-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-text-icon-on-background);--cv-status-header-status-color: var(--mdc-theme-on-surface);background-color:var(--cv-status-header-background)}.status-header .status-header-content{max-width:inherit;flex-direction:column}.status-header .status-header-icon{background-color:var(--cv-status-header-icon-background);color:var(--cv-status-header-icon-color)}.status-header .status-header-text{--mdc-theme-primary: var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-text-icon-on-background);color:var(--cv-status-header-status-color)}.status-header .status-header-helper{color:var(--mdc-theme-text-secondary-on-background)}.status-header .status-header-title-text{color:var(--mdc-theme-on-surface)}.status-header.active{--cv-status-header-background: var( --mdc-theme-surface-secondary-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-secondary-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-secondary);--cv-status-header-status-color: var(--mdc-theme-secondary)}.status-header.caution{--cv-status-header-background: var(--mdc-theme-surface-caution-highlight);--cv-status-header-icon-background: var( --mdc-theme-surface-caution-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-caution);--cv-status-header-status-color: var(--mdc-theme-caution)}.status-header.error{--cv-status-header-background: var( --mdc-theme-surface-negative-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-negative-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-negative);--cv-status-header-status-color: var(--mdc-theme-negative)}.status-header.positive{--cv-status-header-background: var( --mdc-theme-surface-positive-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-positive-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-positive);--cv-status-header-status-color: var(--mdc-theme-positive)}.status-header-title{padding:0 0 16px 16px;height:fit-content;display:flex;justify-content:space-between;align-items:center}.status-header-title-text{font-family:var(--mdc-typography-headline6-font-family);font-size:var(--mdc-typography-headline6-font-size);font-weight:var(--mdc-typography-headline6-font-weight);line-height:var(--mdc-typography-headline6-line-height)}.status-header-text{font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}.status-header-icon{--mdc-icon-size: 36px;border-radius:50%;min-width:72px;height:72px;display:flex;justify-content:center;align-items:center}.status-header-status{padding-left:32px;padding-bottom:16px;display:flex;flex-direction:row;align-items:center}.status-header-text-block{display:flex;flex-direction:column;margin-left:12px;margin-right:56px}.status-header-text-block .status-header-helper{font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}";var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=(a,e,r,i)=>{for(var t=i>1?void 0:i?g(e,r):e,s=a.length-1,o;s>=0;s--)(o=a[s])&&(t=(i?o(e,r,t):o(t))||t);return i&&t&&m(e,r,t),t};exports.CovalentStatusHeader=class extends d{};exports.CovalentStatusHeader.styles=[c.i`
|
22
|
+
${c.r(v)}
|
23
|
+
`];exports.CovalentStatusHeader=p([c.e("cv-status-header")],exports.CovalentStatusHeader);const f=exports.CovalentStatusHeader;exports.default=f;
|
package/status-header.mjs
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
import { s as u, x as
|
2
|
-
import { o as g } from "./class-map-
|
3
|
-
import { n as d } from "./property-
|
4
|
-
|
5
|
-
var
|
6
|
-
|
7
|
-
|
8
|
-
return a && t && f(e, s, t), t;
|
1
|
+
import { s as u, x as l, i as v, r as m, e as p } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
import { o as g } from "./class-map-C1SJpero.mjs";
|
3
|
+
import { n as d } from "./property-DJzm_oB9.mjs";
|
4
|
+
var f = Object.defineProperty, n = (s, e, r, i) => {
|
5
|
+
for (var t = void 0, a = s.length - 1, o; a >= 0; a--)
|
6
|
+
(o = s[a]) && (t = o(e, r, t) || t);
|
7
|
+
return t && f(e, r, t), t;
|
9
8
|
};
|
10
|
-
class
|
9
|
+
class c extends u {
|
11
10
|
constructor() {
|
12
11
|
super(...arguments), this.state = "neutral", this.statusText = "", this.statusHelper = "", this.titleText = "";
|
13
12
|
}
|
@@ -18,7 +17,7 @@ class i extends u {
|
|
18
17
|
error: this.state === "error",
|
19
18
|
positive: this.state === "positive"
|
20
19
|
};
|
21
|
-
return
|
20
|
+
return l`
|
22
21
|
<div class="status-header ${g(e)}">
|
23
22
|
<div class="status-header-title">
|
24
23
|
<div class="status-header-title-text">${this.titleText}</div>
|
@@ -43,31 +42,30 @@ class i extends u {
|
|
43
42
|
}
|
44
43
|
n([
|
45
44
|
d()
|
46
|
-
],
|
45
|
+
], c.prototype, "state");
|
47
46
|
n([
|
48
47
|
d({ type: String })
|
49
|
-
],
|
48
|
+
], c.prototype, "statusText");
|
50
49
|
n([
|
51
50
|
d({ type: String })
|
52
|
-
],
|
51
|
+
], c.prototype, "statusHelper");
|
53
52
|
n([
|
54
53
|
d({ type: String })
|
55
|
-
],
|
56
|
-
const
|
57
|
-
|
58
|
-
var
|
59
|
-
|
60
|
-
|
61
|
-
return a && t && b(e, s, t), t;
|
54
|
+
], c.prototype, "titleText");
|
55
|
+
const y = ".status-header{--cv-status-header-background: transparent;--cv-status-header-icon-background: var( --mdc-theme-surface-neutral-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-text-icon-on-background);--cv-status-header-status-color: var(--mdc-theme-on-surface);background-color:var(--cv-status-header-background)}.status-header .status-header-content{max-width:inherit;flex-direction:column}.status-header .status-header-icon{background-color:var(--cv-status-header-icon-background);color:var(--cv-status-header-icon-color)}.status-header .status-header-text{--mdc-theme-primary: var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface: var(--mdc-theme-text-icon-on-background);color:var(--cv-status-header-status-color)}.status-header .status-header-helper{color:var(--mdc-theme-text-secondary-on-background)}.status-header .status-header-title-text{color:var(--mdc-theme-on-surface)}.status-header.active{--cv-status-header-background: var( --mdc-theme-surface-secondary-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-secondary-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-secondary);--cv-status-header-status-color: var(--mdc-theme-secondary)}.status-header.caution{--cv-status-header-background: var(--mdc-theme-surface-caution-highlight);--cv-status-header-icon-background: var( --mdc-theme-surface-caution-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-caution);--cv-status-header-status-color: var(--mdc-theme-caution)}.status-header.error{--cv-status-header-background: var( --mdc-theme-surface-negative-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-negative-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-negative);--cv-status-header-status-color: var(--mdc-theme-negative)}.status-header.positive{--cv-status-header-background: var( --mdc-theme-surface-positive-highlight );--cv-status-header-icon-background: var( --mdc-theme-surface-positive-highlight-hover );--cv-status-header-icon-color: var(--mdc-theme-positive);--cv-status-header-status-color: var(--mdc-theme-positive)}.status-header-title{padding:0 0 16px 16px;height:fit-content;display:flex;justify-content:space-between;align-items:center}.status-header-title-text{font-family:var(--mdc-typography-headline6-font-family);font-size:var(--mdc-typography-headline6-font-size);font-weight:var(--mdc-typography-headline6-font-weight);line-height:var(--mdc-typography-headline6-line-height)}.status-header-text{font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}.status-header-icon{--mdc-icon-size: 36px;border-radius:50%;min-width:72px;height:72px;display:flex;justify-content:center;align-items:center}.status-header-status{padding-left:32px;padding-bottom:16px;display:flex;flex-direction:row;align-items:center}.status-header-text-block{display:flex;flex-direction:column;margin-left:12px;margin-right:56px}.status-header-text-block .status-header-helper{font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}";
|
56
|
+
var x = Object.defineProperty, b = Object.getOwnPropertyDescriptor, k = (s, e, r, i) => {
|
57
|
+
for (var t = i > 1 ? void 0 : i ? b(e, r) : e, a = s.length - 1, o; a >= 0; a--)
|
58
|
+
(o = s[a]) && (t = (i ? o(e, r, t) : o(t)) || t);
|
59
|
+
return i && t && x(e, r, t), t;
|
62
60
|
};
|
63
|
-
let h = class extends
|
61
|
+
let h = class extends c {
|
64
62
|
};
|
65
63
|
h.styles = [
|
66
|
-
|
67
|
-
${m(
|
64
|
+
v`
|
65
|
+
${m(y)}
|
68
66
|
`
|
69
67
|
];
|
70
|
-
h =
|
68
|
+
h = k([
|
71
69
|
p("cv-status-header")
|
72
70
|
], h);
|
73
71
|
const z = h;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const c=require("./query-assigned-elements-
|
1
|
+
"use strict";const c=require("./query-assigned-elements-4CafVNR8.js"),o=require("./directive-C7oCP5Bh.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { T as l } from "./query-assigned-elements-
|
2
|
-
import { e as h, i as d, t as u } from "./directive-
|
1
|
+
import { T as l } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
import { e as h, i as d, t as u } from "./directive-oAbCiebi.mjs";
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2018 Google LLC
|
@@ -8,8 +8,7 @@ import { e as h, i as d, t as u } from "./directive-daf4e9b6.mjs";
|
|
8
8
|
const o = "important", c = " !" + o, m = h(class extends d {
|
9
9
|
constructor(n) {
|
10
10
|
var t;
|
11
|
-
if (super(n), n.type !== u.ATTRIBUTE || n.name !== "style" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
12
|
-
throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
11
|
+
if (super(n), n.type !== u.ATTRIBUTE || n.name !== "style" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
13
12
|
}
|
14
13
|
render(n) {
|
15
14
|
return Object.keys(n).reduce((t, s) => {
|
@@ -21,8 +20,7 @@ const o = "important", c = " !" + o, m = h(class extends d {
|
|
21
20
|
const { style: s } = n.element;
|
22
21
|
if (this.ht === void 0) {
|
23
22
|
this.ht = /* @__PURE__ */ new Set();
|
24
|
-
for (const e in t)
|
25
|
-
this.ht.add(e);
|
23
|
+
for (const e in t) this.ht.add(e);
|
26
24
|
return this.render(t);
|
27
25
|
}
|
28
26
|
this.ht.forEach((e) => {
|