@covalent/components 8.18.0 → 8.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +1 -1
- package/action-ribbon.mjs +4 -3
- package/alert.js +1 -1
- package/alert.mjs +4 -3
- package/app-shell.js +1 -1
- package/app-shell.mjs +8 -7
- package/async-directive-4a34f75e.js +5 -0
- package/async-directive-99a01ec7.mjs +78 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -3
- package/button.js +1 -1
- package/button.mjs +10 -9
- package/card.js +1 -1
- package/card.mjs +14 -13
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +8 -7
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -15
- package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
- package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
- package/chip-set.js +2 -2
- package/chip-set.mjs +46 -45
- package/chip.js +1 -1
- package/chip.mjs +5 -4
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +5 -4
- package/class-map-0a4c6ca9.js +5 -0
- package/class-map-6e504a9a.mjs +38 -0
- package/code-editor/code-editor.d.ts +58 -0
- package/code-editor/code-editor.d.ts.map +1 -0
- package/code-editor/code-editor.theme.d.ts +61 -0
- package/code-editor/code-editor.theme.d.ts.map +1 -0
- package/code-editor-8064b078.mjs +61268 -0
- package/code-editor-f85b0a6b.js +662 -0
- package/code-editor.js +1 -0
- package/code-editor.mjs +10 -0
- package/code-snippet.js +2 -2
- package/code-snippet.mjs +5 -4
- package/css-5dd354ac.mjs +186 -0
- package/css-9be95551.js +8 -0
- package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
- package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
- package/dialog.js +1 -1
- package/dialog.mjs +5 -4
- package/directive-1186bc23.js +5 -0
- package/directive-daf4e9b6.mjs +27 -0
- package/drawer.js +1 -1
- package/drawer.mjs +5 -4
- package/formfield.js +3 -3
- package/formfield.mjs +4 -3
- package/html-5fd3a841.mjs +286 -0
- package/html-73c71ff4.js +6 -0
- package/icon-button-toggle.js +1 -1
- package/icon-button-toggle.mjs +6 -5
- package/icon-button.js +1 -1
- package/icon-button.mjs +6 -5
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -6
- package/icon-radio-toggle.js +3 -3
- package/icon-radio-toggle.mjs +7 -6
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +123 -117
- package/javascript-204f9122.js +6 -0
- package/javascript-85aeeec4.mjs +80 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +5 -4
- package/list-item.js +2 -2
- package/list-item.mjs +7 -6
- package/list.js +1 -1
- package/list.mjs +8 -7
- package/markdown-9b448c46.mjs +202 -0
- package/markdown-eae8e3ba.js +6 -0
- package/menu.js +5 -5
- package/menu.mjs +9 -8
- package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
- package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
- package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
- package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
- package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
- package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
- package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
- package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
- package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
- package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
- package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
- package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
- package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
- package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
- package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
- package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
- package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
- package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
- package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
- package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -6
- package/notebook-cell/notebook-cell.d.ts +94 -0
- package/notebook-cell/notebook-cell.d.ts.map +1 -0
- package/notebook-cell.js +47 -0
- package/notebook-cell.mjs +217 -0
- package/package.json +11 -1
- package/python-abc06189.mjs +264 -0
- package/python-cb76a8a4.js +6 -0
- package/r-42c6f0aa.js +6 -0
- package/r-630f5d6b.mjs +245 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +8 -7
- package/radio.js +2 -2
- package/radio.mjs +7 -6
- package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
- package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
- package/select.js +2 -2
- package/select.mjs +11 -10
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +3 -2
- package/slider-range.js +1 -1
- package/slider-range.mjs +7 -6
- package/slider.js +1 -1
- package/slider.mjs +12 -11
- package/snackbar.js +14 -18
- package/snackbar.mjs +88 -159
- package/sql-63ec8e76.mjs +818 -0
- package/sql-faf05577.js +6 -0
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -6
- package/status-header.js +1 -1
- package/status-header.mjs +4 -3
- package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
- package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
- package/style.css +1 -0
- package/switch.js +1 -1
- package/switch.mjs +6 -5
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +7 -6
- package/tab.js +1 -1
- package/tab.mjs +9 -8
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +4 -3
- package/textarea.js +1 -1
- package/textarea.mjs +6 -5
- package/{textfield-a064a2b4.js → textfield-48207bf2.js} +16 -16
- package/{textfield-69844234.mjs → textfield-a994ca16.mjs} +5 -4
- package/textfield.js +1 -1
- package/textfield.mjs +6 -5
- package/toolbar.js +1 -1
- package/toolbar.mjs +5 -4
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +5 -4
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +8 -7
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -3
- package/typescript-5cbac06a.mjs +332 -0
- package/typescript-95376fa5.js +6 -0
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
package/tree-list-item.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-f623705d.js"),n=require("./property-57f6f6fe.js"),d=require("./class-map-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-f623705d.js"),n=require("./property-57f6f6fe.js"),d=require("./class-map-0a4c6ca9.js");require("./icon.js");require("./directive-1186bc23.js");require("./mwc-icon-f87639bc.js");require("./tslib.es6-98719205.js");const l=`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-ripple-surface:before,.mdc-ripple-surface:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface:before,.mdc-ripple-surface:after{top:0%;left:0%;width:100%;height:100%}.mdc-ripple-surface.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 50%);height:var(--mdc-ripple-fg-size, 50%)}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover:before,.mdc-ripple-surface.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused:before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface:after,.mdc-ripple-surface:before{border-radius:0 16px 16px 0}.itemContent{padding:0 32px 0 var(--indent);margin-right:16px}.itemContent:hover{cursor:pointer;background-color:var(--mdc-theme-surface-neutral-highlight-hover);border-radius:0 16px 16px 0}.selected{background-color:var(--mdc-theme-surface-primary-highlight);color:var(--mdc-theme-primary);border-radius:0 16px 16px 0}.selected:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}.mainContent{display:flex;flex-direction:row;padding:4px 0}[name=label]::slotted(*){font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.25px;padding-left:16px}[name=extraContent]::slotted(*){padding-left:64px;padding-bottom:4px;margin-top:-4px;letter-spacing:.4px;color:var(--mdc-theme-text-secondary-on-background);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)}.hidden{display:none}.visible{display:flex;flex-direction:column}.endOfNest{padding:8px;padding-left:calc(var(--indent) + 20px);letter-spacing:.4px;-webkit-user-select:none;user-select:none;color:var(--mdc-theme-text-disabled-on-background);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)}.arrowIcon{color:var(--mdc-theme-text-primary-on-background)}.open{transition:transform .1s ease-out;transform:rotate(90deg)}.close{transition:transform .1s ease-in;transform:rotate(0)}
|
2
2
|
`;var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,o=(c,r,a,i)=>{for(var e=i>1?void 0:i?f(r,a):r,p=c.length-1,s;p>=0;p--)(s=c[p])&&(e=(i?s(r,a,e):s(e))||e);return i&&e&&m(r,a,e),e};exports.CovalentTreeListItem=class extends t.s{constructor(){super(...arguments),this.isOpen=!1,this.icon="",this.indentLevel=0,this.indentMultiple=16}render(){const r={hidden:!this.isOpen,visible:this.isOpen},a={open:this.isOpen,close:!this.isOpen},i="arrow_right",e=t.x`<cv-icon>${this.icon}</cv-icon>`,p=t.x`<cv-icon class="${d.o(a)} arrowIcon"
|
3
3
|
>${i}</cv-icon
|
4
4
|
>`;return t.x`
|
package/tree-list-item.mjs
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { i as m, r as f, s as g, x as s, e as u } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { n } from "./property-9b6ea53b.mjs";
|
3
|
-
import { o as l } from "./class-map-
|
3
|
+
import { o as l } from "./class-map-6e504a9a.mjs";
|
4
4
|
import "./icon.mjs";
|
5
|
+
import "./directive-daf4e9b6.mjs";
|
5
6
|
import "./mwc-icon-5227aec3.mjs";
|
6
7
|
import "./tslib.es6-c4b0f3b1.mjs";
|
7
8
|
const h = `.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-ripple-surface:before,.mdc-ripple-surface:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface:before,.mdc-ripple-surface:after{top:0%;left:0%;width:100%;height:100%}.mdc-ripple-surface.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 50%);height:var(--mdc-ripple-fg-size, 50%)}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover:before,.mdc-ripple-surface.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused:before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface:after,.mdc-ripple-surface:before{border-radius:0 16px 16px 0}.itemContent{padding:0 32px 0 var(--indent);margin-right:16px}.itemContent:hover{cursor:pointer;background-color:var(--mdc-theme-surface-neutral-highlight-hover);border-radius:0 16px 16px 0}.selected{background-color:var(--mdc-theme-surface-primary-highlight);color:var(--mdc-theme-primary);border-radius:0 16px 16px 0}.selected:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}.mainContent{display:flex;flex-direction:row;padding:4px 0}[name=label]::slotted(*){font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.25px;padding-left:16px}[name=extraContent]::slotted(*){padding-left:64px;padding-bottom:4px;margin-top:-4px;letter-spacing:.4px;color:var(--mdc-theme-text-secondary-on-background);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)}.hidden{display:none}.visible{display:flex;flex-direction:column}.endOfNest{padding:8px;padding-left:calc(var(--indent) + 20px);letter-spacing:.4px;-webkit-user-select:none;user-select:none;color:var(--mdc-theme-text-disabled-on-background);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)}.arrowIcon{color:var(--mdc-theme-text-primary-on-background)}.open{transition:transform .1s ease-out;transform:rotate(90deg)}.close{transition:transform .1s ease-in;transform:rotate(0)}
|
@@ -80,8 +81,8 @@ o([
|
|
80
81
|
r = o([
|
81
82
|
u("cv-tree-list-item")
|
82
83
|
], r);
|
83
|
-
const
|
84
|
+
const k = r;
|
84
85
|
export {
|
85
86
|
r as CovalentTreeListItem,
|
86
|
-
|
87
|
+
k as default
|
87
88
|
};
|
@@ -0,0 +1,332 @@
|
|
1
|
+
import { m as c } from "./code-editor-8064b078.mjs";
|
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";
|
7
|
+
/*!-----------------------------------------------------------------------------
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
|
+
* Released under the MIT license
|
11
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
|
+
*-----------------------------------------------------------------------------*/
|
13
|
+
var a = Object.defineProperty, p = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, s = (t, e, o, i) => {
|
14
|
+
if (e && typeof e == "object" || typeof e == "function")
|
15
|
+
for (let n of g(e))
|
16
|
+
!l.call(t, n) && n !== o && a(t, n, { get: () => e[n], enumerable: !(i = p(e, n)) || i.enumerable });
|
17
|
+
return t;
|
18
|
+
}, d = (t, e, o) => (s(t, e, "default"), o && s(o, e, "default")), r = {};
|
19
|
+
d(r, c);
|
20
|
+
var y = {
|
21
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
22
|
+
comments: {
|
23
|
+
lineComment: "//",
|
24
|
+
blockComment: ["/*", "*/"]
|
25
|
+
},
|
26
|
+
brackets: [
|
27
|
+
["{", "}"],
|
28
|
+
["[", "]"],
|
29
|
+
["(", ")"]
|
30
|
+
],
|
31
|
+
onEnterRules: [
|
32
|
+
{
|
33
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
34
|
+
afterText: /^\s*\*\/$/,
|
35
|
+
action: {
|
36
|
+
indentAction: r.languages.IndentAction.IndentOutdent,
|
37
|
+
appendText: " * "
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
42
|
+
action: {
|
43
|
+
indentAction: r.languages.IndentAction.None,
|
44
|
+
appendText: " * "
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
49
|
+
action: {
|
50
|
+
indentAction: r.languages.IndentAction.None,
|
51
|
+
appendText: "* "
|
52
|
+
}
|
53
|
+
},
|
54
|
+
{
|
55
|
+
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
56
|
+
action: {
|
57
|
+
indentAction: r.languages.IndentAction.None,
|
58
|
+
removeText: 1
|
59
|
+
}
|
60
|
+
}
|
61
|
+
],
|
62
|
+
autoClosingPairs: [
|
63
|
+
{ open: "{", close: "}" },
|
64
|
+
{ open: "[", close: "]" },
|
65
|
+
{ open: "(", close: ")" },
|
66
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
67
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
68
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
69
|
+
{ open: "/**", close: " */", notIn: ["string"] }
|
70
|
+
],
|
71
|
+
folding: {
|
72
|
+
markers: {
|
73
|
+
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
74
|
+
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}, _ = {
|
78
|
+
defaultToken: "invalid",
|
79
|
+
tokenPostfix: ".ts",
|
80
|
+
keywords: [
|
81
|
+
"abstract",
|
82
|
+
"any",
|
83
|
+
"as",
|
84
|
+
"asserts",
|
85
|
+
"bigint",
|
86
|
+
"boolean",
|
87
|
+
"break",
|
88
|
+
"case",
|
89
|
+
"catch",
|
90
|
+
"class",
|
91
|
+
"continue",
|
92
|
+
"const",
|
93
|
+
"constructor",
|
94
|
+
"debugger",
|
95
|
+
"declare",
|
96
|
+
"default",
|
97
|
+
"delete",
|
98
|
+
"do",
|
99
|
+
"else",
|
100
|
+
"enum",
|
101
|
+
"export",
|
102
|
+
"extends",
|
103
|
+
"false",
|
104
|
+
"finally",
|
105
|
+
"for",
|
106
|
+
"from",
|
107
|
+
"function",
|
108
|
+
"get",
|
109
|
+
"if",
|
110
|
+
"implements",
|
111
|
+
"import",
|
112
|
+
"in",
|
113
|
+
"infer",
|
114
|
+
"instanceof",
|
115
|
+
"interface",
|
116
|
+
"is",
|
117
|
+
"keyof",
|
118
|
+
"let",
|
119
|
+
"module",
|
120
|
+
"namespace",
|
121
|
+
"never",
|
122
|
+
"new",
|
123
|
+
"null",
|
124
|
+
"number",
|
125
|
+
"object",
|
126
|
+
"out",
|
127
|
+
"package",
|
128
|
+
"private",
|
129
|
+
"protected",
|
130
|
+
"public",
|
131
|
+
"override",
|
132
|
+
"readonly",
|
133
|
+
"require",
|
134
|
+
"global",
|
135
|
+
"return",
|
136
|
+
"set",
|
137
|
+
"static",
|
138
|
+
"string",
|
139
|
+
"super",
|
140
|
+
"switch",
|
141
|
+
"symbol",
|
142
|
+
"this",
|
143
|
+
"throw",
|
144
|
+
"true",
|
145
|
+
"try",
|
146
|
+
"type",
|
147
|
+
"typeof",
|
148
|
+
"undefined",
|
149
|
+
"unique",
|
150
|
+
"unknown",
|
151
|
+
"var",
|
152
|
+
"void",
|
153
|
+
"while",
|
154
|
+
"with",
|
155
|
+
"yield",
|
156
|
+
"async",
|
157
|
+
"await",
|
158
|
+
"of"
|
159
|
+
],
|
160
|
+
operators: [
|
161
|
+
"<=",
|
162
|
+
">=",
|
163
|
+
"==",
|
164
|
+
"!=",
|
165
|
+
"===",
|
166
|
+
"!==",
|
167
|
+
"=>",
|
168
|
+
"+",
|
169
|
+
"-",
|
170
|
+
"**",
|
171
|
+
"*",
|
172
|
+
"/",
|
173
|
+
"%",
|
174
|
+
"++",
|
175
|
+
"--",
|
176
|
+
"<<",
|
177
|
+
"</",
|
178
|
+
">>",
|
179
|
+
">>>",
|
180
|
+
"&",
|
181
|
+
"|",
|
182
|
+
"^",
|
183
|
+
"!",
|
184
|
+
"~",
|
185
|
+
"&&",
|
186
|
+
"||",
|
187
|
+
"??",
|
188
|
+
"?",
|
189
|
+
":",
|
190
|
+
"=",
|
191
|
+
"+=",
|
192
|
+
"-=",
|
193
|
+
"*=",
|
194
|
+
"**=",
|
195
|
+
"/=",
|
196
|
+
"%=",
|
197
|
+
"<<=",
|
198
|
+
">>=",
|
199
|
+
">>>=",
|
200
|
+
"&=",
|
201
|
+
"|=",
|
202
|
+
"^=",
|
203
|
+
"@"
|
204
|
+
],
|
205
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
206
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
207
|
+
digits: /\d+(_+\d+)*/,
|
208
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
209
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
210
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
211
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
212
|
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
213
|
+
tokenizer: {
|
214
|
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
215
|
+
common: [
|
216
|
+
[
|
217
|
+
/[a-z_$][\w$]*/,
|
218
|
+
{
|
219
|
+
cases: {
|
220
|
+
"@keywords": "keyword",
|
221
|
+
"@default": "identifier"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
],
|
225
|
+
[/[A-Z][\w\$]*/, "type.identifier"],
|
226
|
+
{ include: "@whitespace" },
|
227
|
+
[
|
228
|
+
/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
229
|
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
230
|
+
],
|
231
|
+
[/[()\[\]]/, "@brackets"],
|
232
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
233
|
+
[/!(?=([^=]|$))/, "delimiter"],
|
234
|
+
[
|
235
|
+
/@symbols/,
|
236
|
+
{
|
237
|
+
cases: {
|
238
|
+
"@operators": "delimiter",
|
239
|
+
"@default": ""
|
240
|
+
}
|
241
|
+
}
|
242
|
+
],
|
243
|
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
244
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
245
|
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
246
|
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
247
|
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
248
|
+
[/(@digits)n?/, "number"],
|
249
|
+
[/[;,.]/, "delimiter"],
|
250
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
251
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
252
|
+
[/"/, "string", "@string_double"],
|
253
|
+
[/'/, "string", "@string_single"],
|
254
|
+
[/`/, "string", "@string_backtick"]
|
255
|
+
],
|
256
|
+
whitespace: [
|
257
|
+
[/[ \t\r\n]+/, ""],
|
258
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
259
|
+
[/\/\*/, "comment", "@comment"],
|
260
|
+
[/\/\/.*$/, "comment"]
|
261
|
+
],
|
262
|
+
comment: [
|
263
|
+
[/[^\/*]+/, "comment"],
|
264
|
+
[/\*\//, "comment", "@pop"],
|
265
|
+
[/[\/*]/, "comment"]
|
266
|
+
],
|
267
|
+
jsdoc: [
|
268
|
+
[/[^\/*]+/, "comment.doc"],
|
269
|
+
[/\*\//, "comment.doc", "@pop"],
|
270
|
+
[/[\/*]/, "comment.doc"]
|
271
|
+
],
|
272
|
+
regexp: [
|
273
|
+
[
|
274
|
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
275
|
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
276
|
+
],
|
277
|
+
[
|
278
|
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
279
|
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
280
|
+
],
|
281
|
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
282
|
+
[/[()]/, "regexp.escape.control"],
|
283
|
+
[/@regexpctl/, "regexp.escape.control"],
|
284
|
+
[/[^\\\/]/, "regexp"],
|
285
|
+
[/@regexpesc/, "regexp.escape"],
|
286
|
+
[/\\\./, "regexp.invalid"],
|
287
|
+
[/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
288
|
+
],
|
289
|
+
regexrange: [
|
290
|
+
[/-/, "regexp.escape.control"],
|
291
|
+
[/\^/, "regexp.invalid"],
|
292
|
+
[/@regexpesc/, "regexp.escape"],
|
293
|
+
[/[^\]]/, "regexp"],
|
294
|
+
[
|
295
|
+
/\]/,
|
296
|
+
{
|
297
|
+
token: "regexp.escape.control",
|
298
|
+
next: "@pop",
|
299
|
+
bracket: "@close"
|
300
|
+
}
|
301
|
+
]
|
302
|
+
],
|
303
|
+
string_double: [
|
304
|
+
[/[^\\"]+/, "string"],
|
305
|
+
[/@escapes/, "string.escape"],
|
306
|
+
[/\\./, "string.escape.invalid"],
|
307
|
+
[/"/, "string", "@pop"]
|
308
|
+
],
|
309
|
+
string_single: [
|
310
|
+
[/[^\\']+/, "string"],
|
311
|
+
[/@escapes/, "string.escape"],
|
312
|
+
[/\\./, "string.escape.invalid"],
|
313
|
+
[/'/, "string", "@pop"]
|
314
|
+
],
|
315
|
+
string_backtick: [
|
316
|
+
[/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
|
317
|
+
[/[^\\`$]+/, "string"],
|
318
|
+
[/@escapes/, "string.escape"],
|
319
|
+
[/\\./, "string.escape.invalid"],
|
320
|
+
[/`/, "string", "@pop"]
|
321
|
+
],
|
322
|
+
bracketCounting: [
|
323
|
+
[/\{/, "delimiter.bracket", "@bracketCounting"],
|
324
|
+
[/\}/, "delimiter.bracket", "@pop"],
|
325
|
+
{ include: "common" }
|
326
|
+
]
|
327
|
+
}
|
328
|
+
};
|
329
|
+
export {
|
330
|
+
y as conf,
|
331
|
+
_ as language
|
332
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./code-editor-f85b0a6b.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.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,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&a(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(s(t,e,"default"),o&&s(o,e,"default")),r={};d(r,c.monaco_editor_core_star);var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};exports.conf=m;exports.language=u;
|
package/class-map-4b94b017.mjs
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
import { T as h } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
/**
|
3
|
-
* @license
|
4
|
-
* Copyright 2017 Google LLC
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
-
*/
|
7
|
-
const a = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, d = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
8
|
-
class l {
|
9
|
-
constructor(t) {
|
10
|
-
}
|
11
|
-
get _$AU() {
|
12
|
-
return this._$AM._$AU;
|
13
|
-
}
|
14
|
-
_$AT(t, s, r) {
|
15
|
-
this._$Ct = t, this._$AM = s, this._$Ci = r;
|
16
|
-
}
|
17
|
-
_$AS(t, s) {
|
18
|
-
return this.update(t, s);
|
19
|
-
}
|
20
|
-
update(t, s) {
|
21
|
-
return this.render(...s);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
/**
|
25
|
-
* @license
|
26
|
-
* Copyright 2018 Google LLC
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
-
*/
|
29
|
-
const u = d(class extends l {
|
30
|
-
constructor(e) {
|
31
|
-
var t;
|
32
|
-
if (super(e), e.type !== a.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
33
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
34
|
-
}
|
35
|
-
render(e) {
|
36
|
-
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
37
|
-
}
|
38
|
-
update(e, [t]) {
|
39
|
-
var s, r;
|
40
|
-
if (this.it === void 0) {
|
41
|
-
this.it = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((i) => i !== "")));
|
42
|
-
for (const i in t)
|
43
|
-
t[i] && !(!((s = this.nt) === null || s === void 0) && s.has(i)) && this.it.add(i);
|
44
|
-
return this.render(t);
|
45
|
-
}
|
46
|
-
const n = e.element.classList;
|
47
|
-
this.it.forEach((i) => {
|
48
|
-
i in t || (n.remove(i), this.it.delete(i));
|
49
|
-
});
|
50
|
-
for (const i in t) {
|
51
|
-
const o = !!t[i];
|
52
|
-
o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (n.add(i), this.it.add(i)) : (n.remove(i), this.it.delete(i)));
|
53
|
-
}
|
54
|
-
return h;
|
55
|
-
}
|
56
|
-
});
|
57
|
-
export {
|
58
|
-
d as e,
|
59
|
-
l as i,
|
60
|
-
u as o,
|
61
|
-
a as t
|
62
|
-
};
|
package/class-map-b5efe8da.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";const l=require("./query-assigned-elements-f623705d.js");/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const h={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=i=>(...t)=>({_$litDirective$:i,values:t});class d{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,r){this._$Ct=t,this._$AM=s,this._$Ci=r}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}/**
|
6
|
-
* @license
|
7
|
-
* Copyright 2018 Google LLC
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/const u=a(class extends d{constructor(i){var t;if(super(i),i.type!==h.ATTRIBUTE||i.name!=="class"||((t=i.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(e=>e!=="")));for(const e in t)t[e]&&!(!((s=this.nt)===null||s===void 0)&&s.has(e))&&this.it.add(e);return this.render(t)}const n=i.element.classList;this.it.forEach(e=>{e in t||(n.remove(e),this.it.delete(e))});for(const e in t){const o=!!t[e];o===this.it.has(e)||!((r=this.nt)===null||r===void 0)&&r.has(e)||(o?(n.add(e),this.it.add(e)):(n.remove(e),this.it.delete(e)))}return l.T}});exports.e=a;exports.i=d;exports.o=u;exports.t=h;
|