@limetech/lime-elements 35.0.0-next.1 → 35.0.0-next.13
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/dist/cjs/checkbox.template-b7b0460f.js +41 -0
- package/dist/cjs/lime-elements.cjs.js +2 -2
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +48 -21
- package/dist/cjs/limel-form.cjs.entry.js +7545 -8992
- package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_3.cjs.entry.js +128 -73
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +2 -2
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +362 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/badge/badge.css +8 -15
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/checkbox/checkbox.css +1 -3
- package/dist/collection/components/checkbox/checkbox.template.js +22 -20
- package/dist/collection/components/chip-set/chip-set.css +1 -1
- package/dist/collection/components/code-editor/code-editor.css +8 -13
- package/dist/collection/components/form/templates/common.js +4 -1
- package/dist/collection/components/input-field/input-field.css +14 -0
- package/dist/collection/components/list/list.css +2 -3
- package/dist/collection/components/menu-list/menu-list.css +2 -3
- package/dist/collection/components/select/select.css +6 -3
- package/dist/collection/components/select/select.template.js +1 -1
- package/dist/collection/components/slider/slider.css +5 -0
- package/dist/collection/components/tab-bar/tab-bar.css +14 -12
- package/dist/collection/components/table/columns.js +1 -1
- package/dist/collection/components/table/selection.js +111 -0
- package/dist/collection/components/table/table-selection.js +125 -0
- package/dist/collection/components/table/table.css +115 -32
- package/dist/collection/components/table/table.js +212 -7
- package/dist/collection/style/internal/lime-theme.scss +30 -31
- package/dist/collection/style/internal/lime-typography.scss +55 -56
- package/dist/collection/style/internal/shared_input-select-picker.scss +1 -0
- package/dist/collection/style/internal/z-index.scss +2 -1
- package/dist/esm/checkbox.template-b4bacc2e.js +39 -0
- package/dist/esm/{component-2eb4e07b.js → component-834d85a1.js} +1 -1
- package/dist/esm/lime-elements.js +2 -2
- package/dist/esm/limel-badge.entry.js +3 -3
- package/dist/esm/limel-checkbox.entry.js +3 -3
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +48 -21
- package/dist/esm/limel-form.entry.js +7548 -8995
- package/dist/esm/limel-input-field.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list_3.entry.js +130 -75
- package/dist/esm/limel-menu-list.entry.js +3 -3
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-slider.entry.js +2 -2
- package/dist/esm/limel-tab-bar.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +362 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{util-71a23335.js → util-f1bde91c.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-f2c706b8.entry.js → p-169fd2eb.entry.js} +1 -1
- package/dist/lime-elements/p-22c60ff3.js +1 -0
- package/dist/lime-elements/{p-138c0d50.entry.js → p-24d97176.entry.js} +1 -1
- package/dist/lime-elements/{p-13f0e4f4.entry.js → p-268cf1fa.entry.js} +1 -1
- package/dist/lime-elements/p-3dc1ddbe.entry.js +1 -0
- package/dist/lime-elements/{p-d48ad9f7.entry.js → p-51aa6433.entry.js} +1 -1
- package/dist/lime-elements/{p-6215e45e.entry.js → p-67a10143.entry.js} +1 -1
- package/dist/lime-elements/{p-bc0dcf01.entry.js → p-84689828.entry.js} +4 -4
- package/dist/lime-elements/p-8590a1b7.entry.js +16 -0
- package/dist/lime-elements/{p-31299106.js → p-90c6fa15.js} +1 -1
- package/dist/lime-elements/{p-152a6d5f.js → p-9faad6eb.js} +1 -1
- package/dist/lime-elements/{p-a77cbb08.entry.js → p-ca664c9f.entry.js} +1 -1
- package/dist/lime-elements/{p-050e8972.entry.js → p-d8167c28.entry.js} +2 -2
- package/dist/lime-elements/{p-b5faa40d.entry.js → p-df8faeb4.entry.js} +2 -2
- package/dist/lime-elements/{p-64549ba6.entry.js → p-e275f502.entry.js} +2 -2
- package/dist/lime-elements/p-e6e76954.entry.js +1 -0
- package/dist/lime-elements/style/internal/lime-theme.scss +30 -31
- package/dist/lime-elements/style/internal/lime-typography.scss +55 -56
- package/dist/lime-elements/style/internal/shared_input-select-picker.scss +1 -0
- package/dist/lime-elements/style/internal/z-index.scss +2 -1
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/table/columns.d.ts +7 -0
- package/dist/types/components/table/selection.d.ts +79 -0
- package/dist/types/components/table/table-selection.d.ts +57 -0
- package/dist/types/components/table/table.d.ts +39 -7
- package/dist/types/components/table/table.types.d.ts +13 -0
- package/dist/types/components.d.ts +33 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/package.json +17 -17
- package/dist/cjs/checkbox.template-50eb8b76.js +0 -39
- package/dist/esm/checkbox.template-50f7c07b.js +0 -37
- package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
- package/dist/lime-elements/p-250f55be.js +0 -1
- package/dist/lime-elements/p-d2c74396.entry.js +0 -1
- package/dist/lime-elements/p-d93a3b07.entry.js +0 -16
|
@@ -2352,12 +2352,14 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
2352
2352
|
function mapFromLineView(lineView, line, lineN) {
|
|
2353
2353
|
if (lineView.line == line)
|
|
2354
2354
|
{ return {map: lineView.measure.map, cache: lineView.measure.cache} }
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
{
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
{
|
|
2355
|
+
if (lineView.rest) {
|
|
2356
|
+
for (var i = 0; i < lineView.rest.length; i++)
|
|
2357
|
+
{ if (lineView.rest[i] == line)
|
|
2358
|
+
{ return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]} } }
|
|
2359
|
+
for (var i$1 = 0; i$1 < lineView.rest.length; i$1++)
|
|
2360
|
+
{ if (lineNo(lineView.rest[i$1]) > lineN)
|
|
2361
|
+
{ return {map: lineView.measure.maps[i$1], cache: lineView.measure.caches[i$1], before: true} } }
|
|
2362
|
+
}
|
|
2361
2363
|
}
|
|
2362
2364
|
|
|
2363
2365
|
// Render a line into the hidden node display.externalMeasured. Used
|
|
@@ -2584,9 +2586,11 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
2584
2586
|
}
|
|
2585
2587
|
|
|
2586
2588
|
function widgetTopHeight(lineObj) {
|
|
2589
|
+
var ref = visualLine(lineObj);
|
|
2590
|
+
var widgets = ref.widgets;
|
|
2587
2591
|
var height = 0;
|
|
2588
|
-
if (
|
|
2589
|
-
{ height += widgetHeight(
|
|
2592
|
+
if (widgets) { for (var i = 0; i < widgets.length; ++i) { if (widgets[i].above)
|
|
2593
|
+
{ height += widgetHeight(widgets[i]); } } }
|
|
2590
2594
|
return height
|
|
2591
2595
|
}
|
|
2592
2596
|
|
|
@@ -3151,13 +3155,19 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3151
3155
|
var curFragment = result.cursors = document.createDocumentFragment();
|
|
3152
3156
|
var selFragment = result.selection = document.createDocumentFragment();
|
|
3153
3157
|
|
|
3158
|
+
var customCursor = cm.options.$customCursor;
|
|
3159
|
+
if (customCursor) { primary = true; }
|
|
3154
3160
|
for (var i = 0; i < doc.sel.ranges.length; i++) {
|
|
3155
3161
|
if (!primary && i == doc.sel.primIndex) { continue }
|
|
3156
3162
|
var range = doc.sel.ranges[i];
|
|
3157
3163
|
if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) { continue }
|
|
3158
3164
|
var collapsed = range.empty();
|
|
3159
|
-
if (
|
|
3160
|
-
|
|
3165
|
+
if (customCursor) {
|
|
3166
|
+
var head = customCursor(cm, range);
|
|
3167
|
+
if (head) { drawSelectionCursor(cm, head, curFragment); }
|
|
3168
|
+
} else if (collapsed || cm.options.showCursorWhenSelecting) {
|
|
3169
|
+
drawSelectionCursor(cm, range.head, curFragment);
|
|
3170
|
+
}
|
|
3161
3171
|
if (!collapsed)
|
|
3162
3172
|
{ drawSelectionRange(cm, range, selFragment); }
|
|
3163
3173
|
}
|
|
@@ -3175,7 +3185,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3175
3185
|
|
|
3176
3186
|
if (/\bcm-fat-cursor\b/.test(cm.getWrapperElement().className)) {
|
|
3177
3187
|
var charPos = charCoords(cm, head, "div", null, null);
|
|
3178
|
-
|
|
3188
|
+
var width = charPos.right - charPos.left;
|
|
3189
|
+
cursor.style.width = (width > 0 ? width : cm.defaultCharWidth()) + "px";
|
|
3179
3190
|
}
|
|
3180
3191
|
|
|
3181
3192
|
if (pos.other) {
|
|
@@ -3350,10 +3361,14 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3350
3361
|
function updateHeightsInViewport(cm) {
|
|
3351
3362
|
var display = cm.display;
|
|
3352
3363
|
var prevBottom = display.lineDiv.offsetTop;
|
|
3364
|
+
var viewTop = Math.max(0, display.scroller.getBoundingClientRect().top);
|
|
3365
|
+
var oldHeight = display.lineDiv.getBoundingClientRect().top;
|
|
3366
|
+
var mustScroll = 0;
|
|
3353
3367
|
for (var i = 0; i < display.view.length; i++) {
|
|
3354
3368
|
var cur = display.view[i], wrapping = cm.options.lineWrapping;
|
|
3355
3369
|
var height = (void 0), width = 0;
|
|
3356
3370
|
if (cur.hidden) { continue }
|
|
3371
|
+
oldHeight += cur.line.height;
|
|
3357
3372
|
if (ie && ie_version < 8) {
|
|
3358
3373
|
var bot = cur.node.offsetTop + cur.node.offsetHeight;
|
|
3359
3374
|
height = bot - prevBottom;
|
|
@@ -3368,6 +3383,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3368
3383
|
}
|
|
3369
3384
|
var diff = cur.line.height - height;
|
|
3370
3385
|
if (diff > .005 || diff < -.005) {
|
|
3386
|
+
if (oldHeight < viewTop) { mustScroll -= diff; }
|
|
3371
3387
|
updateLineHeight(cur.line, height);
|
|
3372
3388
|
updateWidgetHeight(cur.line);
|
|
3373
3389
|
if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)
|
|
@@ -3382,6 +3398,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3382
3398
|
}
|
|
3383
3399
|
}
|
|
3384
3400
|
}
|
|
3401
|
+
if (Math.abs(mustScroll) > 2) { display.scroller.scrollTop += mustScroll; }
|
|
3385
3402
|
}
|
|
3386
3403
|
|
|
3387
3404
|
// Read and store the height of line widgets associated with the
|
|
@@ -3642,6 +3659,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
3642
3659
|
this.vert.firstChild.style.height =
|
|
3643
3660
|
Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px";
|
|
3644
3661
|
} else {
|
|
3662
|
+
this.vert.scrollTop = 0;
|
|
3645
3663
|
this.vert.style.display = "";
|
|
3646
3664
|
this.vert.firstChild.style.height = "0";
|
|
3647
3665
|
}
|
|
@@ -4493,6 +4511,12 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
4493
4511
|
|
|
4494
4512
|
function onScrollWheel(cm, e) {
|
|
4495
4513
|
var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;
|
|
4514
|
+
var pixelsPerUnit = wheelPixelsPerUnit;
|
|
4515
|
+
if (e.deltaMode === 0) {
|
|
4516
|
+
dx = e.deltaX;
|
|
4517
|
+
dy = e.deltaY;
|
|
4518
|
+
pixelsPerUnit = 1;
|
|
4519
|
+
}
|
|
4496
4520
|
|
|
4497
4521
|
var display = cm.display, scroll = display.scroller;
|
|
4498
4522
|
// Quit if there's nothing to scroll here
|
|
@@ -4521,10 +4545,10 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
4521
4545
|
// estimated pixels/delta value, we just handle horizontal
|
|
4522
4546
|
// scrolling entirely here. It'll be slightly off from native, but
|
|
4523
4547
|
// better than glitching out.
|
|
4524
|
-
if (dx && !gecko && !presto &&
|
|
4548
|
+
if (dx && !gecko && !presto && pixelsPerUnit != null) {
|
|
4525
4549
|
if (dy && canScrollY)
|
|
4526
|
-
{ updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy *
|
|
4527
|
-
setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx *
|
|
4550
|
+
{ updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy * pixelsPerUnit)); }
|
|
4551
|
+
setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx * pixelsPerUnit));
|
|
4528
4552
|
// Only prevent default scrolling if vertical scrolling is
|
|
4529
4553
|
// actually possible. Otherwise, it causes vertical scroll
|
|
4530
4554
|
// jitter on OSX trackpads when deltaX is small and deltaY
|
|
@@ -4537,15 +4561,15 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
4537
4561
|
|
|
4538
4562
|
// 'Project' the visible viewport to cover the area that is being
|
|
4539
4563
|
// scrolled into view (if we know enough to estimate it).
|
|
4540
|
-
if (dy &&
|
|
4541
|
-
var pixels = dy *
|
|
4564
|
+
if (dy && pixelsPerUnit != null) {
|
|
4565
|
+
var pixels = dy * pixelsPerUnit;
|
|
4542
4566
|
var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;
|
|
4543
4567
|
if (pixels < 0) { top = Math.max(0, top + pixels - 50); }
|
|
4544
4568
|
else { bot = Math.min(cm.doc.height, bot + pixels + 50); }
|
|
4545
4569
|
updateDisplaySimple(cm, {top: top, bottom: bot});
|
|
4546
4570
|
}
|
|
4547
4571
|
|
|
4548
|
-
if (wheelSamples < 20) {
|
|
4572
|
+
if (wheelSamples < 20 && e.deltaMode !== 0) {
|
|
4549
4573
|
if (display.wheelStartX == null) {
|
|
4550
4574
|
display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;
|
|
4551
4575
|
display.wheelDX = dx; display.wheelDY = dy;
|
|
@@ -8222,7 +8246,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
8222
8246
|
}
|
|
8223
8247
|
|
|
8224
8248
|
function hiddenTextarea() {
|
|
8225
|
-
var te = elt("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none");
|
|
8249
|
+
var te = elt("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none");
|
|
8226
8250
|
var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
|
|
8227
8251
|
// The textarea is kept positioned near the cursor to prevent the
|
|
8228
8252
|
// fact that it'll be scrolled into view on input from scrolling
|
|
@@ -8986,9 +9010,11 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
8986
9010
|
ContentEditableInput.prototype.supportsTouch = function () { return true };
|
|
8987
9011
|
|
|
8988
9012
|
ContentEditableInput.prototype.receivedFocus = function () {
|
|
9013
|
+
var this$1 = this;
|
|
9014
|
+
|
|
8989
9015
|
var input = this;
|
|
8990
9016
|
if (this.selectionInEditor())
|
|
8991
|
-
{ this.pollSelection(); }
|
|
9017
|
+
{ setTimeout(function () { return this$1.pollSelection(); }, 20); }
|
|
8992
9018
|
else
|
|
8993
9019
|
{ runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }
|
|
8994
9020
|
|
|
@@ -9817,7 +9843,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
|
|
|
9817
9843
|
|
|
9818
9844
|
addLegacyProps(CodeMirror);
|
|
9819
9845
|
|
|
9820
|
-
CodeMirror.version = "5.
|
|
9846
|
+
CodeMirror.version = "5.65.1";
|
|
9821
9847
|
|
|
9822
9848
|
return CodeMirror;
|
|
9823
9849
|
|
|
@@ -10151,6 +10177,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
|
10151
10177
|
cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
|
|
10152
10178
|
cx.state.localVars = null;
|
|
10153
10179
|
}
|
|
10180
|
+
pushcontext.lex = pushblockcontext.lex = true;
|
|
10154
10181
|
function popcontext() {
|
|
10155
10182
|
cx.state.localVars = cx.state.context.vars;
|
|
10156
10183
|
cx.state.context = cx.state.context.prev;
|
|
@@ -11006,7 +11033,7 @@ createCommonjsModule(function (module, exports) {
|
|
|
11006
11033
|
});
|
|
11007
11034
|
});
|
|
11008
11035
|
|
|
11009
|
-
const codeEditorCss = ".CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px;}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white;}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{0%{}50%{background-color:transparent}100%{}}@-webkit-keyframes blink{0%{}50%{background-color:transparent}100%{}}@keyframes blink{0%{}50%{background-color:transparent}100%{}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, .3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:0.1px;}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, .4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}:host{display:flex;font-size:1rem}.editor{width:100%}.editor.is-light-mode{--code-editor-neutral-text-color:var(--contrast-1100);--code-editor-background-color:var(--contrast-200);--code-editor-gutter-background-color:var(--contrast-300);--code-editor-line-number-text-color:var(--contrast-700);--code-editor-cursor-color:var(--color-amber-dark);--code-editor-selection-highlight-color:var(--color-cyan-default);--code-editor-selection-lowlight-color:var(--contrast-600)}.editor.is-light-mode .cm-attribute,.editor.is-light-mode .cm-property,.editor.is-light-mode .cm-keyword{color:rgb(var(--color-violet-light))}.editor.is-light-mode .cm-operator{color:rgb(var(--color-sky-dark))}.editor.is-light-mode .cm-variable{color:rgb(var(--color-pink-light))}.editor.is-light-mode .cm-variable-2{color:rgb(var(--contrast-1100))}.editor.is-light-mode .cm-variable-3,.editor.is-light-mode .cm-type{color:rgb(var(--color-amber-darker))}.editor.is-light-mode .cm-builtin,.editor.is-light-mode .cm-meta{color:rgb(var(--color-amber-default))}.editor.is-light-mode .cm-atom{color:rgb(var(--color-coral-default))}.editor.is-light-mode .cm-tag,.editor.is-light-mode .cm-number{color:rgb(var(--color-magenta-default))}.editor.is-light-mode .cm-def{color:rgb(var(--color-sky-default))}.editor.is-light-mode .cm-string{color:rgb(var(--color-green-dark))}.editor.is-light-mode .cm-string-2{color:rgb(var(--color-pink-default))}.editor.is-light-mode .cm-qualifier{color:rgb(var(--color-grass-default))}.editor.is-light-mode .cm-error{color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.editor.is-light-mode .cm-comment{color:rgba(var(--code-editor-neutral-text-color), 0.7)}.editor.is-dark-mode{--code-editor-neutral-text-color:var(--contrast-200);--code-editor-background-color:var(--contrast-1600);--code-editor-gutter-background-color:var(--contrast-1500);--code-editor-line-number-text-color:var(--contrast-1000);--code-editor-cursor-color:var(--color-amber-default);--code-editor-selection-highlight-color:var(--color-cyan-light);--code-editor-selection-lowlight-color:var(--contrast-1700)}.editor.is-dark-mode .cm-attribute,.editor.is-dark-mode .cm-property,.editor.is-dark-mode .cm-keyword{color:rgb(var(--color-purple-lighter))}.editor.is-dark-mode .cm-operator{color:rgb(var(--color-sky-lighter))}.editor.is-dark-mode .cm-variable{color:rgb(var(--color-pink-light))}.editor.is-dark-mode .cm-variable-2{color:rgb(var(--contrast-300))}.editor.is-dark-mode .cm-variable-3,.editor.is-dark-mode .cm-type{color:rgb(var(--color-yellow-light))}.editor.is-dark-mode .cm-builtin,.editor.is-dark-mode .cm-meta{color:rgb(var(--color-amber-default))}.editor.is-dark-mode .cm-atom{color:rgb(var(--color-coral-light))}.editor.is-dark-mode .cm-tag,.editor.is-dark-mode .cm-number{color:rgb(var(--color-magenta-light))}.editor.is-dark-mode .cm-def{color:rgb(var(--color-sky-light))}.editor.is-dark-mode .cm-string{color:rgb(var(--color-lime-light))}.editor.is-dark-mode .cm-string-2{color:rgb(var(--color-pink-lighter))}.editor.is-dark-mode .cm-qualifier{color:rgb(var(--color-grass-light))}.editor.is-dark-mode .cm-error{color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.editor.is-dark-mode .cm-comment{color:rgba(var(--code-editor-neutral-text-color), 0.4)}.editor.readonly .CodeMirror-focused .CodeMirror-cursors{visibility:visible !important}.cm-s-lime.CodeMirror{color:rgb(var(--code-editor-neutral-text-color));background-color:rgb(var(--code-editor-background-color));border-radius:0.25rem;height:auto}.cm-s-lime .CodeMirror-scroll{max-height:var(--code-editor-max-height, 10rem)}.cm-s-lime.CodeMirror-focused div.CodeMirror-selected{background:rgba(var(--code-editor-selection-highlight-color), 0.15)}.cm-s-lime div.CodeMirror-selected{background:rgba(var(--code-editor-selection-highlight-color), 0.05)}.cm-s-lime .CodeMirror-gutters{background-color:rgb(var(--code-editor-gutter-background-color));color:rgb(var(--code-editor-line-number-text-color));border:none}.cm-s-lime .CodeMirror-guttermarker,.cm-s-lime .CodeMirror-guttermarker-subtle,.cm-s-lime .CodeMirror-linenumber{color:rgb(var(--code-editor-line-number-text-color))}.cm-s-lime .CodeMirror-cursor{border-left:1px solid rgb(var(--code-editor-cursor-color))}.editor.readonly .cm-s-lime .CodeMirror-cursor{border-color:rgba(var(--code-editor-neutral-text-color), 0.5);border-width:0.125rem}.cm-s-lime .CodeMirror-activeline-background{background:rgba(var(--code-editor-selection-lowlight-color), 0.5)}.cm-s-lime .CodeMirror-matchingbracket{font-weight:bold;color:rgb(var(--code-editor-neutral-text-color)) !important;background:rgba(var(--code-editor-selection-highlight-color), 0.15);position:relative}.cm-s-lime .CodeMirror-matchingbracket:before{content:\"_\";color:rgb(var(--code-editor-selection-highlight-color), 0.8);position:absolute;bottom:-0.4rem;left:0;right:0}";
|
|
11036
|
+
const codeEditorCss = ".CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px;}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white;}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{0%{}50%{background-color:transparent}100%{}}@-webkit-keyframes blink{0%{}50%{background-color:transparent}100%{}}@keyframes blink{0%{}50%{background-color:transparent}100%{}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, .3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:0.1px;}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, .4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}:host{display:flex;font-size:1rem}.editor{width:100%}.editor.is-light-mode{--code-editor-neutral-text-color:var(--contrast-1100);--code-editor-background-color:var(--contrast-200);--code-editor-gutter-background-color:var(--contrast-300);--code-editor-line-number-text-color:var(--contrast-700);--code-editor-cursor-color:var(--color-amber-dark);--code-editor-selection-highlight-color:var(--color-cyan-default);--code-editor-selection-lowlight-color:var(--contrast-600)}.editor.is-light-mode .cm-attribute,.editor.is-light-mode .cm-property,.editor.is-light-mode .cm-keyword{color:rgb(var(--color-violet-light))}.editor.is-light-mode .cm-operator{color:rgb(var(--color-sky-dark))}.editor.is-light-mode .cm-variable{color:rgb(var(--color-pink-light))}.editor.is-light-mode .cm-variable-2{color:rgb(var(--contrast-1100))}.editor.is-light-mode .cm-variable-3,.editor.is-light-mode .cm-type{color:rgb(var(--color-amber-darker))}.editor.is-light-mode .cm-builtin,.editor.is-light-mode .cm-meta{color:rgb(var(--color-amber-default))}.editor.is-light-mode .cm-atom{color:rgb(var(--color-coral-default))}.editor.is-light-mode .cm-tag,.editor.is-light-mode .cm-number{color:rgb(var(--color-magenta-default))}.editor.is-light-mode .cm-def{color:rgb(var(--color-sky-default))}.editor.is-light-mode .cm-string{color:rgb(var(--color-green-dark))}.editor.is-light-mode .cm-string-2{color:rgb(var(--color-pink-default))}.editor.is-light-mode .cm-qualifier{color:rgb(var(--color-grass-default))}.editor.is-light-mode .cm-error{color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.editor.is-light-mode .cm-comment{color:rgba(var(--code-editor-neutral-text-color), 0.7)}.editor.is-dark-mode{--code-editor-neutral-text-color:var(--contrast-200);--code-editor-background-color:var(--contrast-1600);--code-editor-gutter-background-color:var(--contrast-1500);--code-editor-line-number-text-color:var(--contrast-1000);--code-editor-cursor-color:var(--color-amber-default);--code-editor-selection-highlight-color:var(--color-cyan-light);--code-editor-selection-lowlight-color:var(--contrast-1700)}.editor.is-dark-mode .cm-attribute,.editor.is-dark-mode .cm-property,.editor.is-dark-mode .cm-keyword{color:rgb(var(--color-purple-lighter))}.editor.is-dark-mode .cm-operator{color:rgb(var(--color-sky-lighter))}.editor.is-dark-mode .cm-variable{color:rgb(var(--color-pink-light))}.editor.is-dark-mode .cm-variable-2{color:rgb(var(--contrast-300))}.editor.is-dark-mode .cm-variable-3,.editor.is-dark-mode .cm-type{color:rgb(var(--color-yellow-light))}.editor.is-dark-mode .cm-builtin,.editor.is-dark-mode .cm-meta{color:rgb(var(--color-amber-default))}.editor.is-dark-mode .cm-atom{color:rgb(var(--color-coral-light))}.editor.is-dark-mode .cm-tag,.editor.is-dark-mode .cm-number{color:rgb(var(--color-magenta-light))}.editor.is-dark-mode .cm-def{color:rgb(var(--color-sky-light))}.editor.is-dark-mode .cm-string{color:rgb(var(--color-lime-light))}.editor.is-dark-mode .cm-string-2{color:rgb(var(--color-pink-lighter))}.editor.is-dark-mode .cm-qualifier{color:rgb(var(--color-grass-light))}.editor.is-dark-mode .cm-error{color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.editor.is-dark-mode .cm-comment{color:rgba(var(--code-editor-neutral-text-color), 0.4)}.editor.readonly .CodeMirror-focused .CodeMirror-cursors{visibility:visible !important}.cm-s-lime.CodeMirror{color:rgb(var(--code-editor-neutral-text-color));background-color:rgb(var(--code-editor-background-color));border-radius:0.25rem;height:auto}.cm-s-lime .CodeMirror-scroll{max-height:var(--code-editor-max-height, 10rem)}.cm-s-lime.CodeMirror-focused div.CodeMirror-selected{background:rgba(var(--code-editor-selection-highlight-color), 0.15)}.cm-s-lime div.CodeMirror-selected{background:rgba(var(--code-editor-selection-highlight-color), 0.05)}.cm-s-lime .CodeMirror-gutters{background-color:rgb(var(--code-editor-gutter-background-color));color:rgb(var(--code-editor-line-number-text-color));border:none}.cm-s-lime .CodeMirror-guttermarker,.cm-s-lime .CodeMirror-guttermarker-subtle,.cm-s-lime .CodeMirror-linenumber{color:rgb(var(--code-editor-line-number-text-color))}.cm-s-lime .CodeMirror-cursor{border-left:1px solid rgb(var(--code-editor-cursor-color))}.editor.readonly .cm-s-lime .CodeMirror-cursor{border-color:rgba(var(--code-editor-neutral-text-color), 0.5);border-width:0.125rem}.cm-s-lime .CodeMirror-activeline-background{background:rgba(var(--code-editor-selection-lowlight-color), 0.5)}.cm-s-lime .CodeMirror-matchingbracket{font-weight:bold;color:rgb(var(--code-editor-neutral-text-color)) !important;background:rgba(var(--code-editor-selection-highlight-color), 0.15);position:relative}.cm-s-lime .CodeMirror-matchingbracket:before{content:\"_\";color:rgb(var(--code-editor-selection-highlight-color), 0.8);position:absolute;bottom:-0.4rem;left:0;right:0}";
|
|
11010
11037
|
|
|
11011
11038
|
let CodeEditor = class {
|
|
11012
11039
|
constructor(hostRef) {
|