@covalent/components 8.23.2 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/notebook-cell.mjs
CHANGED
@@ -1,33 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
import { n as d } from "./property-
|
3
|
-
import { t as f } from "./state-
|
4
|
-
import { o as
|
5
|
-
import { K as b } from "./code-editor-
|
1
|
+
import { s as v, x as c, i as g, r as m, e as x } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
import { n as d } from "./property-DJzm_oB9.mjs";
|
3
|
+
import { t as f } from "./state-DaD9o2aK.mjs";
|
4
|
+
import { o as p } from "./class-map-C1SJpero.mjs";
|
5
|
+
import { K as b } from "./code-editor-CxQzms2S.mjs";
|
6
6
|
import "./code-snippet.mjs";
|
7
7
|
import "./icon-button.mjs";
|
8
8
|
import "./typography.mjs";
|
9
|
-
|
10
|
-
import "./async-directive-99a01ec7.mjs";
|
11
|
-
import "./directive-helpers-e3ea6592.mjs";
|
12
|
-
import "./query-assigned-nodes-df691e78.mjs";
|
13
|
-
import "./_commonjsHelpers-2f131a27.mjs";
|
14
|
-
import "./tslib.es6-c4b0f3b1.mjs";
|
15
|
-
import "./ripple-handlers-8883e893.mjs";
|
16
|
-
import "./base-element-acf30176.mjs";
|
17
|
-
import "./utils-dc65fdc9.mjs";
|
18
|
-
import "./query-d843aa92.mjs";
|
19
|
-
import "./style-map-e7ec6d41.mjs";
|
20
|
-
import "./aria-property-fa2717fe.mjs";
|
21
|
-
import "./event-options-78d6cf94.mjs";
|
22
|
-
import "./if-defined-c367f208.mjs";
|
23
|
-
const y = `:host{--mdc-icon-button-size: 2rem;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface);border-radius:0;box-sizing:border-box}cv-code-snippet::part(code){font-size:var(--mdc-typography-body2-font-size);line-height:var(--mdc-typography-body2-line-height);padding:0;white-space:pre-wrap}cv-code-editor{margin-top:-1px}.selectionIndicator{background-color:var(--cv-theme-primary);border-radius:2px;height:100%;visibility:hidden}.selectionIndicatorWrapper{min-width:8px}.selectionIndicatorWrapper:hover .selectionIndicator{visibility:visible}.status{padding:0 1px;position:relative}.loading{top:2.5px}.timesExecuted{--cv-icon-button-cursor: grab;align-items:center;box-sizing:border-box;color:var(--cv-theme-on-surface-38);display:flex;font-family:var(--cv-typography-subtitle2-font-family);font-size:var(--cv-typography-subtitle2-font-size);gap:.5rem;height:56px;line-height:var(--cv-typography-headline6-line-height)}.timesExecuted .executionCount{padding-right:1rem;overflow:hidden;text-align:right;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap;width:52px}.timesExecuted .dragHandle{color:var(--cv-theme-on-surface-variant);cursor:grab;padding-left:.5rem;transition:visibility .3s ease;visibility:hidden}.timesExecuted .dragHandle:active{--cv-icon-button-cursor: grabbing}.timesExecutedWrapper{cursor:grab}.timesExecutedWrapper:active{cursor:grabbing}.timesExecutedWrapper:hover .dragHandle{visibility:visible}.cell{box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;position:relative;transition:background-color .2s ease;-webkit-user-select:auto;user-select:auto}.cell.focused .selectionIndicator,.cell.selected .selectionIndicator{visibility:visible}.cell:hover{background-color:var(--cv-theme-secondary-4)}.cell:hover .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-38)}.cell:active{background-color:var(--cv-theme-secondary-12)}.cell:active .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-74)}.cellWrapper{display:flex;flex-direction:column;width:100%}.cellOutputWrapper{display:flex;flex-direction:column;max-width:calc(100% - 130px);flex:1}.contextMenu{background-color:var(--cv-theme-surface-canvas);border-radius:8px;box-shadow:0 8px 12px 6px #00000026,0 4px 4px #0000004d;display:flex;flex-direction:column;position:fixed;visibility:hidden;z-index:1000}.contextMenuContent{border-radius:4px;flex-grow:1;max-height:100%;overflow:auto}.contextMenu.open{visibility:visible}.editorContainer{box-sizing:border-box;background-color:var(--cv-theme-surface);border:1px solid var(--cv-theme-outline-variant);border-radius:var(--cv-editor-border-radius, 4px);min-height:56px;overflow:hidden;padding:1rem}.errors,.output{max-width:100%;width:100%}
|
24
|
-
`;
|
9
|
+
const y = ":host{--mdc-icon-button-size: 2rem;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface);border-radius:0;box-sizing:border-box}cv-code-snippet::part(code){font-size:var(--mdc-typography-body2-font-size);line-height:var(--mdc-typography-body2-line-height);padding:0;white-space:pre-wrap}cv-code-editor{margin-top:-1px}.selectionIndicator{background-color:var(--cv-theme-primary);border-radius:2px;height:100%;visibility:hidden}.selectionIndicatorWrapper{min-width:8px}.selectionIndicatorWrapper:hover .selectionIndicator{visibility:visible}.status{padding:0 1px;position:relative}.loading{top:2.5px}.timesExecuted{--cv-icon-button-cursor: grab;align-items:center;box-sizing:border-box;color:var(--cv-theme-on-surface-38);display:flex;font-family:var(--cv-typography-subtitle2-font-family);font-size:var(--cv-typography-subtitle2-font-size);gap:.5rem;height:56px;line-height:var(--cv-typography-headline6-line-height)}.timesExecuted .executionCount{padding-right:1rem;overflow:hidden;text-align:right;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap;width:52px}.timesExecuted .dragHandle{color:var(--cv-theme-on-surface-variant);cursor:grab;padding-left:.5rem;transition:visibility .3s ease;visibility:hidden}.timesExecuted .dragHandle:active{--cv-icon-button-cursor: grabbing}.timesExecutedWrapper{cursor:grab}.timesExecutedWrapper:active{cursor:grabbing}.timesExecutedWrapper:hover .dragHandle{visibility:visible}.cell{box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;position:relative;transition:background-color .2s ease;-webkit-user-select:auto;user-select:auto}.cell.focused .selectionIndicator,.cell.selected .selectionIndicator{visibility:visible}.cell:hover{background-color:var(--cv-theme-secondary-4)}.cell:hover .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-38)}.cell:active{background-color:var(--cv-theme-secondary-12)}.cell:active .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-74)}.cellWrapper{display:flex;flex-direction:column;width:100%}.cellOutputWrapper{display:flex;flex-direction:column;max-width:calc(100% - 130px);flex:1}.contextMenu{background-color:var(--cv-theme-surface-canvas);border-radius:8px;box-shadow:0 8px 12px 6px #00000026,0 4px 4px #0000004d;display:flex;flex-direction:column;position:fixed;visibility:hidden;z-index:1000}.contextMenuContent{border-radius:4px;flex-grow:1;max-height:100%;overflow:auto}.contextMenu.open{visibility:visible}.editorContainer{box-sizing:border-box;background-color:var(--cv-theme-surface);border:1px solid var(--cv-theme-outline-variant);border-radius:var(--cv-editor-border-radius, 4px);min-height:56px;overflow:hidden;padding:1rem}.errors,.output{max-width:100%;width:100%}";
|
25
10
|
var C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, n = (e, t, o, r) => {
|
26
11
|
for (var s = r > 1 ? void 0 : r ? w(t, o) : t, l = e.length - 1, a; l >= 0; l--)
|
27
12
|
(a = e[l]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
28
13
|
return r && s && C(t, o, s), s;
|
29
14
|
};
|
30
|
-
let i = class extends
|
15
|
+
let i = class extends v {
|
31
16
|
constructor() {
|
32
17
|
super(), this.code = "", this.language = "", this.loading = !1, this.selected = !1, this.timesExecuted = 0, this.hideEditor = !1, this.hideCount = !1, this.editorTheme = "", this._editorFocused = !1, this._isMenuOpen = !1, this._menuMaxHeight = "auto", this._menuPosition = { top: 0, left: 0 }, this.editorOptions = {
|
33
18
|
minimap: { enabled: !1 },
|
@@ -72,13 +57,13 @@ let i = class extends g {
|
|
72
57
|
});
|
73
58
|
}
|
74
59
|
showContextMenu(e) {
|
75
|
-
var
|
60
|
+
var u;
|
76
61
|
e.preventDefault();
|
77
62
|
const t = document.querySelectorAll("cv-notebook-cell");
|
78
63
|
t == null || t.forEach((h) => {
|
79
64
|
h.closeContextMenu();
|
80
65
|
});
|
81
|
-
const o = (
|
66
|
+
const o = (u = this.shadowRoot) == null ? void 0 : u.querySelector(
|
82
67
|
".contextMenu"
|
83
68
|
), r = o == null ? void 0 : o.offsetHeight, l = window.innerHeight - e.clientY, a = e.clientY;
|
84
69
|
l >= r ? (this._menuPosition = { top: e.clientY, left: e.clientX }, this._menuMaxHeight = `${l}px`) : a >= r ? (this._menuPosition = { top: e.clientY - r, left: e.clientX }, this._menuMaxHeight = `${r}px`) : (this._menuPosition = { top: e.clientY - a, left: e.clientX }, this._menuMaxHeight = `${a}px`), this._isMenuOpen = !0;
|
@@ -131,7 +116,7 @@ let i = class extends g {
|
|
131
116
|
status: !0,
|
132
117
|
loading: this.loading
|
133
118
|
};
|
134
|
-
return c`[<span class="${
|
119
|
+
return c`[<span class="${p(e)}"
|
135
120
|
>${this.loading ? "*" : this.timesExecuted || " "}</span
|
136
121
|
>] :`;
|
137
122
|
}
|
@@ -142,7 +127,7 @@ let i = class extends g {
|
|
142
127
|
focused: this._editorFocused
|
143
128
|
};
|
144
129
|
return c`
|
145
|
-
<div class="${
|
130
|
+
<div class="${p(e)}" @contextmenu=${this.showContextMenu}>
|
146
131
|
<div class="selectionIndicatorWrapper">
|
147
132
|
<div class="selectionIndicator"></div>
|
148
133
|
</div>
|
@@ -172,7 +157,7 @@ let i = class extends g {
|
|
172
157
|
}
|
173
158
|
};
|
174
159
|
i.styles = [
|
175
|
-
|
160
|
+
g`
|
176
161
|
${m(y)}
|
177
162
|
`
|
178
163
|
];
|
@@ -209,8 +194,8 @@ n([
|
|
209
194
|
i = n([
|
210
195
|
x("cv-notebook-cell")
|
211
196
|
], i);
|
212
|
-
const
|
197
|
+
const W = i;
|
213
198
|
export {
|
214
199
|
i as CovalentNotebookCell,
|
215
|
-
|
200
|
+
W as default
|
216
201
|
};
|
package/package.json
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./code-editor-hT6MTCL6.js");/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,d=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(s=l(e,r))||s.enumerable});return t},g=(t,e,n)=>(d(t,e,"default"),n),o={};g(o,i.monaco_editor_core_star);var _={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:o.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};exports.conf=_;exports.language=m;
|
@@ -1,23 +1,18 @@
|
|
1
|
-
import { m as
|
2
|
-
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
-
import "./property-9b6ea53b.mjs";
|
4
|
-
import "./async-directive-99a01ec7.mjs";
|
5
|
-
import "./directive-helpers-e3ea6592.mjs";
|
6
|
-
import "./directive-daf4e9b6.mjs";
|
1
|
+
import { m as i } from "./code-editor-CxQzms2S.mjs";
|
7
2
|
/*!-----------------------------------------------------------------------------
|
8
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
4
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
5
|
* Released under the MIT license
|
11
6
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
7
|
*-----------------------------------------------------------------------------*/
|
13
|
-
var
|
8
|
+
var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, p = Object.prototype.hasOwnProperty, d = (t, e, n, s) => {
|
14
9
|
if (e && typeof e == "object" || typeof e == "function")
|
15
|
-
for (let r of
|
16
|
-
!
|
10
|
+
for (let r of c(e))
|
11
|
+
!p.call(t, r) && r !== n && a(t, r, { get: () => e[r], enumerable: !(s = l(e, r)) || s.enumerable });
|
17
12
|
return t;
|
18
|
-
}, _ = (t, e, n) => (
|
19
|
-
_(
|
20
|
-
var
|
13
|
+
}, _ = (t, e, n) => (d(t, e, "default"), n), o = {};
|
14
|
+
_(o, i);
|
15
|
+
var m = {
|
21
16
|
comments: {
|
22
17
|
lineComment: "#",
|
23
18
|
blockComment: ["'''", "'''"]
|
@@ -44,7 +39,7 @@ var w = {
|
|
44
39
|
onEnterRules: [
|
45
40
|
{
|
46
41
|
beforeText: new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),
|
47
|
-
action: { indentAction:
|
42
|
+
action: { indentAction: o.languages.IndentAction.Indent }
|
48
43
|
}
|
49
44
|
],
|
50
45
|
folding: {
|
@@ -54,7 +49,7 @@ var w = {
|
|
54
49
|
end: new RegExp("^\\s*#endregion\\b")
|
55
50
|
}
|
56
51
|
}
|
57
|
-
},
|
52
|
+
}, b = {
|
58
53
|
defaultToken: "",
|
59
54
|
tokenPostfix: ".python",
|
60
55
|
keywords: [
|
@@ -259,6 +254,6 @@ var w = {
|
|
259
254
|
}
|
260
255
|
};
|
261
256
|
export {
|
262
|
-
|
263
|
-
|
257
|
+
m as conf,
|
258
|
+
b as language
|
264
259
|
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { o as n } from "./query-assigned-elements-DCt2xozt.mjs";
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2017 Google LLC
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
+
*/
|
7
|
+
function c(e, t) {
|
8
|
+
return n({ descriptor: (u) => ({ get() {
|
9
|
+
var r, o;
|
10
|
+
return (o = (r = this.renderRoot) === null || r === void 0 ? void 0 : r.querySelector(e)) !== null && o !== void 0 ? o : null;
|
11
|
+
}, enumerable: !0, configurable: !0 }) });
|
12
|
+
}
|
13
|
+
export {
|
14
|
+
c as i
|
15
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";const t=require("./query-assigned-elements-4CafVNR8.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/function o(n,u){return t.o({descriptor:i=>({get(){var e,r;return(r=(e=this.renderRoot)===null||e===void 0?void 0:e.querySelector(n))!==null&&r!==void 0?r:null},enumerable:!0,configurable:!0})})}exports.i=o;
|
@@ -6,8 +6,7 @@
|
|
6
6
|
const U = window, W = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, q = Symbol(), K = /* @__PURE__ */ new WeakMap();
|
7
7
|
let nt = class {
|
8
8
|
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, s !== q)
|
10
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
9
|
+
if (this._$cssResult$ = !0, s !== q) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
10
|
this.cssText = t, this.t = e;
|
12
11
|
}
|
13
12
|
get styleSheet() {
|
@@ -25,10 +24,8 @@ let nt = class {
|
|
25
24
|
};
|
26
25
|
const ct = (n) => new nt(typeof n == "string" ? n : n + "", void 0, q), Pt = (n, ...t) => {
|
27
26
|
const e = n.length === 1 ? n[0] : t.reduce((s, i, r) => s + ((o) => {
|
28
|
-
if (o._$cssResult$ === !0)
|
29
|
-
|
30
|
-
if (typeof o == "number")
|
31
|
-
return o;
|
27
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
28
|
+
if (typeof o == "number") return o;
|
32
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
33
30
|
})(i) + n[r + 1], n[0]);
|
34
31
|
return new nt(e, n, q);
|
@@ -39,8 +36,7 @@ const ct = (n) => new nt(typeof n == "string" ? n : n + "", void 0, q), Pt = (n,
|
|
39
36
|
});
|
40
37
|
}, Z = W ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
41
38
|
let e = "";
|
42
|
-
for (const s of t.cssRules)
|
43
|
-
e += s.cssText;
|
39
|
+
for (const s of t.cssRules) e += s.cssText;
|
44
40
|
return ct(e);
|
45
41
|
})(n) : n;
|
46
42
|
/**
|
@@ -112,14 +108,12 @@ let m = class extends HTMLElement {
|
|
112
108
|
return this.elementProperties.get(t) || R;
|
113
109
|
}
|
114
110
|
static finalize() {
|
115
|
-
if (this.hasOwnProperty(I))
|
116
|
-
return !1;
|
111
|
+
if (this.hasOwnProperty(I)) return !1;
|
117
112
|
this[I] = !0;
|
118
113
|
const t = Object.getPrototypeOf(this);
|
119
114
|
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
120
115
|
const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
121
|
-
for (const i of s)
|
122
|
-
this.createProperty(i, e[i]);
|
116
|
+
for (const i of s) this.createProperty(i, e[i]);
|
123
117
|
}
|
124
118
|
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
125
119
|
}
|
@@ -127,10 +121,8 @@ let m = class extends HTMLElement {
|
|
127
121
|
const e = [];
|
128
122
|
if (Array.isArray(t)) {
|
129
123
|
const s = new Set(t.flat(1 / 0).reverse());
|
130
|
-
for (const i of s)
|
131
|
-
|
132
|
-
} else
|
133
|
-
t !== void 0 && e.push(Z(t));
|
124
|
+
for (const i of s) e.unshift(Z(i));
|
125
|
+
} else t !== void 0 && e.push(Z(t));
|
134
126
|
return e;
|
135
127
|
}
|
136
128
|
static _$Ep(t, e) {
|
@@ -213,8 +205,7 @@ let m = class extends HTMLElement {
|
|
213
205
|
}
|
214
206
|
performUpdate() {
|
215
207
|
var t;
|
216
|
-
if (!this.isUpdatePending)
|
217
|
-
return;
|
208
|
+
if (!this.isUpdatePending) return;
|
218
209
|
this.hasUpdated, this._$Ei && (this._$Ei.forEach((i, r) => this[r] = i), this._$Ei = void 0);
|
219
210
|
let e = !1;
|
220
211
|
const s = this._$AL;
|
@@ -268,8 +259,7 @@ const T = window, y = T.trustedTypes, G = y ? y.createPolicy("lit-html", { creat
|
|
268
259
|
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Q = /-->/g, X = />/g, _ = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
269
260
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Y = /'/g, tt = /"/g, ht = /^(?:script|style|textarea|title)$/i, _t = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Ht = _t(1), g = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), et = /* @__PURE__ */ new WeakMap(), f = A.createTreeWalker(A, 129, null, !1);
|
270
261
|
function at(n, t) {
|
271
|
-
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
272
|
-
throw Error("invalid template strings array");
|
262
|
+
if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
273
263
|
return G !== void 0 ? G.createHTML(t) : t;
|
274
264
|
}
|
275
265
|
const ft = (n, t) => {
|
@@ -278,8 +268,7 @@ const ft = (n, t) => {
|
|
278
268
|
for (let a = 0; a < e; a++) {
|
279
269
|
const l = n[a];
|
280
270
|
let h, d, c = -1, p = 0;
|
281
|
-
for (; p < l.length && (o.lastIndex = p, d = o.exec(l), d !== null); )
|
282
|
-
p = o.lastIndex, o === S ? d[1] === "!--" ? o = Q : d[1] !== void 0 ? o = X : d[2] !== void 0 ? (ht.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = _) : d[3] !== void 0 && (o = _) : o === _ ? d[0] === ">" ? (o = i ?? S, c = -1) : d[1] === void 0 ? c = -2 : (c = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? _ : d[3] === '"' ? tt : Y) : o === tt || o === Y ? o = _ : o === Q || o === X ? o = S : (o = _, i = void 0);
|
271
|
+
for (; p < l.length && (o.lastIndex = p, d = o.exec(l), d !== null); ) p = o.lastIndex, o === S ? d[1] === "!--" ? o = Q : d[1] !== void 0 ? o = X : d[2] !== void 0 ? (ht.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = _) : d[3] !== void 0 && (o = _) : o === _ ? d[0] === ">" ? (o = i ?? S, c = -1) : d[1] === void 0 ? c = -2 : (c = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? _ : d[3] === '"' ? tt : Y) : o === tt || o === Y ? o = _ : o === Q || o === X ? o = S : (o = _, i = void 0);
|
283
272
|
const $ = o === _ && n[a + 1].startsWith("/>") ? " " : "";
|
284
273
|
r += o === S ? l + $t : c >= 0 ? (s.push(h), l.slice(0, c) + V + l.slice(c) + v + $) : l + v + (c === -2 ? (s.push(void 0), a) : $);
|
285
274
|
}
|
@@ -299,35 +288,28 @@ class w {
|
|
299
288
|
if (i.nodeType === 1) {
|
300
289
|
if (i.hasAttributes()) {
|
301
290
|
const c = [];
|
302
|
-
for (const p of i.getAttributeNames())
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
}
|
311
|
-
for (const p of c)
|
312
|
-
i.removeAttribute(p);
|
291
|
+
for (const p of i.getAttributeNames()) if (p.endsWith(V) || p.startsWith(v)) {
|
292
|
+
const $ = d[o++];
|
293
|
+
if (c.push(p), $ !== void 0) {
|
294
|
+
const dt = i.getAttribute($.toLowerCase() + V).split(v), P = /([.?@])?(.*)/.exec($);
|
295
|
+
l.push({ type: 1, index: r, name: P[2], strings: dt, ctor: P[1] === "." ? mt : P[1] === "?" ? gt : P[1] === "@" ? Et : O });
|
296
|
+
} else l.push({ type: 6, index: r });
|
297
|
+
}
|
298
|
+
for (const p of c) i.removeAttribute(p);
|
313
299
|
}
|
314
300
|
if (ht.test(i.tagName)) {
|
315
301
|
const c = i.textContent.split(v), p = c.length - 1;
|
316
302
|
if (p > 0) {
|
317
303
|
i.textContent = y ? y.emptyScript : "";
|
318
|
-
for (let $ = 0; $ < p; $++)
|
319
|
-
i.append(c[$], b()), f.nextNode(), l.push({ type: 2, index: ++r });
|
304
|
+
for (let $ = 0; $ < p; $++) i.append(c[$], b()), f.nextNode(), l.push({ type: 2, index: ++r });
|
320
305
|
i.append(c[p], b());
|
321
306
|
}
|
322
307
|
}
|
323
|
-
} else if (i.nodeType === 8)
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
for (; (c = i.data.indexOf(v, c + 1)) !== -1; )
|
329
|
-
l.push({ type: 7, index: r }), c += v.length - 1;
|
330
|
-
}
|
308
|
+
} else if (i.nodeType === 8) if (i.data === rt) l.push({ type: 2, index: r });
|
309
|
+
else {
|
310
|
+
let c = -1;
|
311
|
+
for (; (c = i.data.indexOf(v, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += v.length - 1;
|
312
|
+
}
|
331
313
|
r++;
|
332
314
|
}
|
333
315
|
}
|
@@ -338,8 +320,7 @@ class w {
|
|
338
320
|
}
|
339
321
|
function E(n, t, e = n, s) {
|
340
322
|
var i, r, o, a;
|
341
|
-
if (t === g)
|
342
|
-
return t;
|
323
|
+
if (t === g) return t;
|
343
324
|
let l = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
344
325
|
const h = C(t) ? void 0 : t._$litDirective$;
|
345
326
|
return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, s)), s !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = E(n, l._$AS(n, t.values), l, s)), t;
|
@@ -370,8 +351,7 @@ class At {
|
|
370
351
|
}
|
371
352
|
v(t) {
|
372
353
|
let e = 0;
|
373
|
-
for (const s of this._$AV)
|
374
|
-
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
354
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
375
355
|
}
|
376
356
|
}
|
377
357
|
class x {
|
@@ -409,8 +389,7 @@ class x {
|
|
409
389
|
g(t) {
|
410
390
|
var e;
|
411
391
|
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = w.createElement(at(i.h, i.h[0]), this.options)), i);
|
412
|
-
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
|
413
|
-
this._$AH.v(s);
|
392
|
+
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r) this._$AH.v(s);
|
414
393
|
else {
|
415
394
|
const o = new At(r, this), a = o.u(this.options);
|
416
395
|
o.v(s), this.$(a), this._$AH = o;
|
@@ -424,8 +403,7 @@ class x {
|
|
424
403
|
lt(this._$AH) || (this._$AH = [], this._$AR());
|
425
404
|
const e = this._$AH;
|
426
405
|
let s, i = 0;
|
427
|
-
for (const r of t)
|
428
|
-
i === e.length ? e.push(s = new x(this.k(b()), this.k(b()), this, this.options)) : s = e[i], s._$AI(r), i++;
|
406
|
+
for (const r of t) i === e.length ? e.push(s = new x(this.k(b()), this.k(b()), this, this.options)) : s = e[i], s._$AI(r), i++;
|
429
407
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
430
408
|
}
|
431
409
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -453,13 +431,11 @@ class O {
|
|
453
431
|
_$AI(t, e = this, s, i) {
|
454
432
|
const r = this.strings;
|
455
433
|
let o = !1;
|
456
|
-
if (r === void 0)
|
457
|
-
t = E(this, t, e, 0), o = !C(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
|
434
|
+
if (r === void 0) t = E(this, t, e, 0), o = !C(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
|
458
435
|
else {
|
459
436
|
const a = t;
|
460
437
|
let l, h;
|
461
|
-
for (t = r[0], l = 0; l < r.length - 1; l++)
|
462
|
-
h = E(this, a[s + l], e, l), h === g && (h = this._$AH[l]), o || (o = !C(h) || h !== this._$AH[l]), h === u ? t = u : t !== u && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
|
438
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) h = E(this, a[s + l], e, l), h === g && (h = this._$AH[l]), o || (o = !C(h) || h !== this._$AH[l]), h === u ? t = u : t !== u && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
|
463
439
|
}
|
464
440
|
o && !i && this.j(t);
|
465
441
|
}
|
@@ -490,8 +466,7 @@ class Et extends O {
|
|
490
466
|
}
|
491
467
|
_$AI(t, e = this) {
|
492
468
|
var s;
|
493
|
-
if ((t = (s = E(this, t, e, 0)) !== null && s !== void 0 ? s : u) === g)
|
494
|
-
return;
|
469
|
+
if ((t = (s = E(this, t, e, 0)) !== null && s !== void 0 ? s : u) === g) return;
|
495
470
|
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || r);
|
496
471
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
497
472
|
}
|
package/radio-list-item.js
CHANGED
@@ -1,29 +1,25 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
-
*/const f=e.i`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40px - 20px) / 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio .mdc-radio__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host{display:inline-block;outline:none}.mdc-radio{vertical-align:bottom}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unchecked-color, rgba(0, 0, 0, 0.54))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}`;/**
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-CHeFCc6E.js"),r=require("./query-assigned-elements-4CafVNR8.js"),p=require("./mwc-radio.css-CVMtIq-L.js"),m=require("./property-DYTC_2-m.js"),u=require("./query-BxDs8ftQ.js"),f=require("./class-map-C8G1ALWK.js"),g=require("./if-defined-D8C6ewRn.js"),_=require("./mwc-list-item.css-CtRq5wSu.js"),h=require("./list-item-BZVW1fmJ.js");/**
|
6
2
|
* @license
|
7
3
|
* Copyright 2018 Google LLC
|
8
4
|
* SPDX-License-Identifier: Apache-2.0
|
9
|
-
*/let
|
5
|
+
*/let d=class extends p.RadioBase{};d.styles=[p.styles];d=c.__decorate([r.e("mwc-radio")],d);/**
|
10
6
|
* @license
|
11
7
|
* Copyright 2020 Google LLC
|
12
8
|
* SPDX-License-Identifier: Apache-2.0
|
13
|
-
*/class
|
9
|
+
*/class l extends _.ListItemBase{constructor(){super(...arguments),this.left=!1,this.graphic="control",this._changeFromClick=!1}render(){const s={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),i=this.graphic&&this.graphic!=="control"&&!this.left?this.renderGraphic():r.x``,t=this.hasMeta&&this.left?this.renderMeta():r.x``,a=this.renderRipple();return r.x`
|
14
10
|
${a}
|
15
11
|
${i}
|
16
|
-
${this.left?"":
|
12
|
+
${this.left?"":e}
|
17
13
|
<mwc-radio
|
18
14
|
global
|
19
|
-
class=${
|
15
|
+
class=${f.o(s)}
|
20
16
|
tabindex=${this.tabindex}
|
21
17
|
name=${g.l(this.group===null?void 0:this.group)}
|
22
18
|
.checked=${this.selected}
|
23
19
|
?disabled=${this.disabled}
|
24
20
|
@checked=${this.onChange}>
|
25
21
|
</mwc-radio>
|
26
|
-
${this.left?
|
27
|
-
${
|
28
|
-
${
|
29
|
-
`];exports.CovalentRadioListItem=
|
22
|
+
${this.left?e:""}
|
23
|
+
${t}`}onClick(){this._changeFromClick=!0,super.onClick()}async onChange(s){const e=s.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1,this._changeFromClick||this.fireRequestSelected(this.selected,"interaction")),this._changeFromClick=!1}}c.__decorate([u.i("slot")],l.prototype,"slotElement",void 0);c.__decorate([u.i("mwc-radio")],l.prototype,"radioElement",void 0);c.__decorate([m.n({type:Boolean})],l.prototype,"left",void 0);c.__decorate([m.n({type:String,reflect:!0})],l.prototype,"graphic",void 0);var v=Object.defineProperty,C=Object.getOwnPropertyDescriptor,y=(o,s,e,i)=>{for(var t=i>1?void 0:i?C(s,e):s,a=o.length-1,n;a>=0;a--)(n=o[a])&&(t=(i?n(s,e,t):n(t))||t);return i&&t&&v(s,e,t),t};exports.CovalentRadioListItem=class extends l{};exports.CovalentRadioListItem.styles=[_.styles,h.styles,r.i`
|
24
|
+
${r.r(h.covalentStyles)}
|
25
|
+
`];exports.CovalentRadioListItem=y([r.e("cv-radio-list-item")],exports.CovalentRadioListItem);const R=exports.CovalentRadioListItem;exports.default=R;
|