@datarailsshared/datarailsshared 1.5.284 → 1.5.285
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/assets/styles/_styles.scss +4 -0
- package/datarailsshared-datarailsshared-1.5.285.tgz +0 -0
- package/esm2022/lib/dr-code-editor/components/code-editor-hint-wrapper.component.mjs +15 -0
- package/esm2022/lib/dr-code-editor/components/dr-codemirror.component.mjs +201 -0
- package/esm2022/lib/dr-code-editor/dr-code-editor.component.mjs +292 -0
- package/esm2022/lib/dr-code-editor/dr-code-editor.module.mjs +42 -0
- package/esm2022/lib/dr-code-editor/models/code-editor-hint.mjs +6 -0
- package/esm2022/lib/utils/dr-shared-utils.mjs +4 -1
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +598 -65
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-code-editor/components/code-editor-hint-wrapper.component.d.ts +7 -0
- package/lib/dr-code-editor/components/dr-codemirror.component.d.ts +47 -0
- package/lib/dr-code-editor/dr-code-editor.component.d.ts +44 -0
- package/lib/dr-code-editor/dr-code-editor.module.d.ts +17 -0
- package/lib/dr-code-editor/models/code-editor-hint.d.ts +14 -0
- package/lib/utils/dr-shared-utils.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/styles.css +526 -0
- package/datarailsshared-datarailsshared-1.5.284.tgz +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CodeEditorHintWrapperComponent {
|
|
3
|
+
content: string;
|
|
4
|
+
tooltip: string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeEditorHintWrapperComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeEditorHintWrapperComponent, "dr-code-editor-hint-wrapper", never, {}, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AfterViewInit, DoCheck, ElementRef, EventEmitter, KeyValueDiffers, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Editor, EditorChange, EditorFromTextArea, ScrollInfo } from 'codemirror';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DrCodemirrorComponent implements AfterViewInit, OnDestroy, ControlValueAccessor, DoCheck {
|
|
6
|
+
private _differs;
|
|
7
|
+
private _ngZone;
|
|
8
|
+
className: string;
|
|
9
|
+
name: string;
|
|
10
|
+
autoFocus: boolean;
|
|
11
|
+
set options(value: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
});
|
|
14
|
+
preserveScrollPosition: boolean;
|
|
15
|
+
cursorActivity: EventEmitter<Editor>;
|
|
16
|
+
focusChange: EventEmitter<boolean>;
|
|
17
|
+
scroll: EventEmitter<ScrollInfo>;
|
|
18
|
+
drop: EventEmitter<[Editor, DragEvent]>;
|
|
19
|
+
codeMirrorLoaded: EventEmitter<DrCodemirrorComponent>;
|
|
20
|
+
ref: ElementRef<HTMLTextAreaElement>;
|
|
21
|
+
value: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
isFocused: boolean;
|
|
24
|
+
codeMirror?: EditorFromTextArea;
|
|
25
|
+
private _codeMirror;
|
|
26
|
+
private _differ?;
|
|
27
|
+
private _options;
|
|
28
|
+
constructor(_differs: KeyValueDiffers, _ngZone: NgZone);
|
|
29
|
+
get codeMirrorGlobal(): any;
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
ngDoCheck(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
codemirrorValueChanged(cm: Editor, change: EditorChange): void;
|
|
34
|
+
setOptionIfChanged(optionName: string, newValue: any): void;
|
|
35
|
+
focusChanged(focused: boolean): void;
|
|
36
|
+
scrollChanged(cm: Editor): void;
|
|
37
|
+
cursorActive(cm: Editor): void;
|
|
38
|
+
dropFiles(cm: Editor, e: DragEvent): void;
|
|
39
|
+
writeValue(value: string): void;
|
|
40
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
41
|
+
registerOnTouched(fn: () => void): void;
|
|
42
|
+
setDisabledState(isDisabled: boolean): void;
|
|
43
|
+
private onChange;
|
|
44
|
+
private onTouched;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrCodemirrorComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrCodemirrorComponent, "dr-codemirror", never, { "className": { "alias": "className"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preserveScrollPosition": { "alias": "preserveScrollPosition"; "required": false; }; }, { "cursorActivity": "cursorActivity"; "focusChange": "focusChange"; "scroll": "scroll"; "drop": "drop"; "codeMirrorLoaded": "codeMirrorLoaded"; }, never, never, false, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { ICodeEditorHint } from './models/code-editor-hint';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DrCodeEditorComponent implements ControlValueAccessor {
|
|
6
|
+
private cdr;
|
|
7
|
+
private cfr;
|
|
8
|
+
private injector;
|
|
9
|
+
constructor(cdr: ChangeDetectorRef, cfr: ComponentFactoryResolver, injector: Injector);
|
|
10
|
+
innerValue: any;
|
|
11
|
+
private onTouchedCallback;
|
|
12
|
+
private onChangeCallback;
|
|
13
|
+
private existMarkers;
|
|
14
|
+
private highlightedHints;
|
|
15
|
+
private parenthesesMarkers;
|
|
16
|
+
private parenthesisColors;
|
|
17
|
+
private parenthesesMap;
|
|
18
|
+
private doc;
|
|
19
|
+
private _hints;
|
|
20
|
+
private hintRefsStack;
|
|
21
|
+
codeMirrorOptions: any;
|
|
22
|
+
isFocused: boolean;
|
|
23
|
+
private markers;
|
|
24
|
+
highlightHints: boolean;
|
|
25
|
+
set hints(values: ICodeEditorHint[]);
|
|
26
|
+
control: FormControl | any;
|
|
27
|
+
private codeEditor;
|
|
28
|
+
get value(): string;
|
|
29
|
+
set value(v: string);
|
|
30
|
+
writeValue(value: string): void;
|
|
31
|
+
registerOnChange(fn: any): void;
|
|
32
|
+
registerOnTouched(fn: any): void;
|
|
33
|
+
focusChanged(bool: any): void;
|
|
34
|
+
afterCodeMirrorLoaded(): void;
|
|
35
|
+
private isClosedParenthesis;
|
|
36
|
+
private colorizeParentheses;
|
|
37
|
+
private highlightCustomFunctionsInEditor;
|
|
38
|
+
pasteText(text: string, goCharLeft?: boolean): void;
|
|
39
|
+
private registerHints;
|
|
40
|
+
private destroyHints;
|
|
41
|
+
private updateHighlightHints;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrCodeEditorComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrCodeEditorComponent, "dr-code-editor", never, { "markers": { "alias": "markers"; "required": false; }; "highlightHints": { "alias": "highlightHints"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import 'codemirror/mode/javascript/javascript';
|
|
2
|
+
import 'codemirror/addon/edit/matchbrackets';
|
|
3
|
+
import 'codemirror/addon/hint/show-hint';
|
|
4
|
+
import '@codemirror/autocomplete';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./components/dr-codemirror.component";
|
|
7
|
+
import * as i2 from "./dr-code-editor.component";
|
|
8
|
+
import * as i3 from "./components/code-editor-hint-wrapper.component";
|
|
9
|
+
import * as i4 from "@angular/common";
|
|
10
|
+
import * as i5 from "@angular/forms";
|
|
11
|
+
import * as i6 from "../dr-tooltip/dr-tooltip.module";
|
|
12
|
+
import * as i7 from "../dr-error/dr-error.module";
|
|
13
|
+
export declare class DrCodeEditorModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrCodeEditorModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DrCodeEditorModule, [typeof i1.DrCodemirrorComponent, typeof i2.DrCodeEditorComponent, typeof i3.CodeEditorHintWrapperComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.DrTooltipModule, typeof i7.DrErrorModule], [typeof i1.DrCodemirrorComponent, typeof i2.DrCodeEditorComponent, typeof i3.CodeEditorHintWrapperComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DrCodeEditorModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ICodeEditorHint {
|
|
2
|
+
icon: ICodeEditorHintIcon;
|
|
3
|
+
value: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare enum ICodeEditorHintIcon {
|
|
8
|
+
VALUE = "#",
|
|
9
|
+
CALCULATED_VALUE = "="
|
|
10
|
+
}
|
|
11
|
+
export interface ICodeEditorMarker {
|
|
12
|
+
name: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
@@ -9,4 +9,5 @@ export declare class DrSharedUtils {
|
|
|
9
9
|
static getTimeframeByDateFormat(format: string): TimeframeOption;
|
|
10
10
|
static getDateByTag(tag: string): any;
|
|
11
11
|
static fromResizeObserver: (target: Element) => Observable<ResizeObserverEntry[]>;
|
|
12
|
+
static normalizeLineEndings: (str: string) => string;
|
|
12
13
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export * from './lib/dr-spinner/dr-spinner.directive';
|
|
|
47
47
|
export * from './lib/dr-inputs/button/button.component';
|
|
48
48
|
export * from './lib/dr-badge-status/dr-badge-status.component';
|
|
49
49
|
export * from './lib/dr-alert/dr-alert.component';
|
|
50
|
+
export * from './lib/dr-code-editor/dr-code-editor.component';
|
|
51
|
+
export * from './lib/dr-code-editor/components/dr-codemirror.component';
|
|
52
|
+
export * from './lib/dr-code-editor/components/code-editor-hint-wrapper.component';
|
|
50
53
|
export * from './lib/dr-scenario/components/dr-scenario-tag-configuration/dr-scenario-tag-configuration.component';
|
|
51
54
|
export * from './lib/dr-scenario/components/dr-scenario-configuration/dr-scenario-configuration.component';
|
|
52
55
|
export * from './lib/dr-tags-constructor/dr-tags-constructor.component';
|
|
@@ -103,6 +106,7 @@ export * from './lib/models/badgeStatus';
|
|
|
103
106
|
export * from './lib/models/feedback';
|
|
104
107
|
export * from './lib/models/toastr';
|
|
105
108
|
export * from './lib/models/datePickerRange';
|
|
109
|
+
export * from './lib/dr-code-editor/models/code-editor-hint';
|
|
106
110
|
export { ScenarioService } from './lib/dr-scenario/services/scenario.service';
|
|
107
111
|
export { TagsConstructorService } from './lib/dr-tags-constructor/tags-constructor.service';
|
|
108
112
|
export { DrAvatarService } from './lib/dr-avatar/services/dr-avatar.service';
|
|
@@ -132,3 +136,4 @@ export { ClickOutsideModule } from './lib/directives/click-outside/click-outside
|
|
|
132
136
|
export { DrAlertModule } from './lib/dr-alert/dr-alert.module';
|
|
133
137
|
export { DrTagsConstructorModule } from './lib/dr-tags-constructor/dr-tags-constructor.module';
|
|
134
138
|
export { DrToastrModule } from './lib/dr-toastr/dr-toastr.module';
|
|
139
|
+
export { DrCodeEditorModule } from './lib/dr-code-editor/dr-code-editor.module';
|
package/styles.css
CHANGED
|
@@ -194,3 +194,529 @@ button.toast-close-button {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
|
|
198
|
+
/* BASICS */
|
|
199
|
+
|
|
200
|
+
.CodeMirror {
|
|
201
|
+
/* Set height, width, borders, and global font properties here */
|
|
202
|
+
font-family: monospace;
|
|
203
|
+
height: 300px;
|
|
204
|
+
color: black;
|
|
205
|
+
direction: ltr;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* PADDING */
|
|
209
|
+
|
|
210
|
+
.CodeMirror-lines {
|
|
211
|
+
padding: 4px 0; /* Vertical padding around content */
|
|
212
|
+
}
|
|
213
|
+
.CodeMirror pre.CodeMirror-line,
|
|
214
|
+
.CodeMirror pre.CodeMirror-line-like {
|
|
215
|
+
padding: 0 4px; /* Horizontal padding of content */
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
219
|
+
background-color: white; /* The little square between H and V scrollbars */
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* GUTTER */
|
|
223
|
+
|
|
224
|
+
.CodeMirror-gutters {
|
|
225
|
+
border-right: 1px solid #ddd;
|
|
226
|
+
background-color: #f7f7f7;
|
|
227
|
+
white-space: nowrap;
|
|
228
|
+
}
|
|
229
|
+
.CodeMirror-linenumbers {}
|
|
230
|
+
.CodeMirror-linenumber {
|
|
231
|
+
padding: 0 3px 0 5px;
|
|
232
|
+
min-width: 20px;
|
|
233
|
+
text-align: right;
|
|
234
|
+
color: #999;
|
|
235
|
+
white-space: nowrap;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.CodeMirror-guttermarker { color: black; }
|
|
239
|
+
.CodeMirror-guttermarker-subtle { color: #999; }
|
|
240
|
+
|
|
241
|
+
/* CURSOR */
|
|
242
|
+
|
|
243
|
+
.CodeMirror-cursor {
|
|
244
|
+
border-left: 1px solid black;
|
|
245
|
+
border-right: none;
|
|
246
|
+
width: 0;
|
|
247
|
+
}
|
|
248
|
+
/* Shown when moving in bi-directional text */
|
|
249
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
|
250
|
+
border-left: 1px solid silver;
|
|
251
|
+
}
|
|
252
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
|
253
|
+
width: auto;
|
|
254
|
+
border: 0 !important;
|
|
255
|
+
background: #7e7;
|
|
256
|
+
}
|
|
257
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
|
258
|
+
z-index: 1;
|
|
259
|
+
}
|
|
260
|
+
.cm-fat-cursor .CodeMirror-line::selection,
|
|
261
|
+
.cm-fat-cursor .CodeMirror-line > span::selection,
|
|
262
|
+
.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }
|
|
263
|
+
.cm-fat-cursor .CodeMirror-line::-moz-selection,
|
|
264
|
+
.cm-fat-cursor .CodeMirror-line > span::-moz-selection,
|
|
265
|
+
.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }
|
|
266
|
+
.cm-fat-cursor { caret-color: transparent; }
|
|
267
|
+
@-moz-keyframes blink {
|
|
268
|
+
0% {}
|
|
269
|
+
50% { background-color: transparent; }
|
|
270
|
+
100% {}
|
|
271
|
+
}
|
|
272
|
+
@-webkit-keyframes blink {
|
|
273
|
+
0% {}
|
|
274
|
+
50% { background-color: transparent; }
|
|
275
|
+
100% {}
|
|
276
|
+
}
|
|
277
|
+
@keyframes blink {
|
|
278
|
+
0% {}
|
|
279
|
+
50% { background-color: transparent; }
|
|
280
|
+
100% {}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
|
284
|
+
.CodeMirror-overwrite .CodeMirror-cursor {}
|
|
285
|
+
|
|
286
|
+
.cm-tab { display: inline-block; text-decoration: inherit; }
|
|
287
|
+
|
|
288
|
+
.CodeMirror-rulers {
|
|
289
|
+
position: absolute;
|
|
290
|
+
left: 0; right: 0; top: -50px; bottom: 0;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
}
|
|
293
|
+
.CodeMirror-ruler {
|
|
294
|
+
border-left: 1px solid #ccc;
|
|
295
|
+
top: 0; bottom: 0;
|
|
296
|
+
position: absolute;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* DEFAULT THEME */
|
|
300
|
+
|
|
301
|
+
.cm-s-default .cm-header {color: blue;}
|
|
302
|
+
.cm-s-default .cm-quote {color: #090;}
|
|
303
|
+
.cm-negative {color: #d44;}
|
|
304
|
+
.cm-positive {color: #292;}
|
|
305
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
|
306
|
+
.cm-em {font-style: italic;}
|
|
307
|
+
.cm-link {text-decoration: underline;}
|
|
308
|
+
.cm-strikethrough {text-decoration: line-through;}
|
|
309
|
+
|
|
310
|
+
.cm-s-default .cm-keyword {color: #708;}
|
|
311
|
+
.cm-s-default .cm-atom {color: #219;}
|
|
312
|
+
.cm-s-default .cm-number {color: #164;}
|
|
313
|
+
.cm-s-default .cm-def {color: #00f;}
|
|
314
|
+
.cm-s-default .cm-variable,
|
|
315
|
+
.cm-s-default .cm-punctuation,
|
|
316
|
+
.cm-s-default .cm-property,
|
|
317
|
+
.cm-s-default .cm-operator {}
|
|
318
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
|
319
|
+
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
|
|
320
|
+
.cm-s-default .cm-comment {color: #a50;}
|
|
321
|
+
.cm-s-default .cm-string {color: #a11;}
|
|
322
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
|
323
|
+
.cm-s-default .cm-meta {color: #555;}
|
|
324
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
|
325
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
|
326
|
+
.cm-s-default .cm-bracket {color: #997;}
|
|
327
|
+
.cm-s-default .cm-tag {color: #170;}
|
|
328
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
|
329
|
+
.cm-s-default .cm-hr {color: #999;}
|
|
330
|
+
.cm-s-default .cm-link {color: #00c;}
|
|
331
|
+
|
|
332
|
+
.cm-s-default .cm-error {color: #f00;}
|
|
333
|
+
.cm-invalidchar {color: #f00;}
|
|
334
|
+
|
|
335
|
+
.CodeMirror-composing { border-bottom: 2px solid; }
|
|
336
|
+
|
|
337
|
+
/* Default styles for common addons */
|
|
338
|
+
|
|
339
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
|
|
340
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
|
|
341
|
+
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
|
342
|
+
.CodeMirror-activeline-background {background: #e8f2ff;}
|
|
343
|
+
|
|
344
|
+
/* STOP */
|
|
345
|
+
|
|
346
|
+
/* The rest of this file contains styles related to the mechanics of
|
|
347
|
+
the editor. You probably shouldn't touch them. */
|
|
348
|
+
|
|
349
|
+
.CodeMirror {
|
|
350
|
+
position: relative;
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
background: white;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.CodeMirror-scroll {
|
|
356
|
+
overflow: scroll !important; /* Things will break if this is overridden */
|
|
357
|
+
/* 50px is the magic margin used to hide the element's real scrollbars */
|
|
358
|
+
/* See overflow: hidden in .CodeMirror */
|
|
359
|
+
margin-bottom: -50px; margin-right: -50px;
|
|
360
|
+
padding-bottom: 50px;
|
|
361
|
+
height: 100%;
|
|
362
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
|
363
|
+
position: relative;
|
|
364
|
+
z-index: 0;
|
|
365
|
+
}
|
|
366
|
+
.CodeMirror-sizer {
|
|
367
|
+
position: relative;
|
|
368
|
+
border-right: 50px solid transparent;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
|
372
|
+
before actual scrolling happens, thus preventing shaking and
|
|
373
|
+
flickering artifacts. */
|
|
374
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
375
|
+
position: absolute;
|
|
376
|
+
z-index: 6;
|
|
377
|
+
display: none;
|
|
378
|
+
outline: none;
|
|
379
|
+
}
|
|
380
|
+
.CodeMirror-vscrollbar {
|
|
381
|
+
right: 0; top: 0;
|
|
382
|
+
overflow-x: hidden;
|
|
383
|
+
overflow-y: scroll;
|
|
384
|
+
}
|
|
385
|
+
.CodeMirror-hscrollbar {
|
|
386
|
+
bottom: 0; left: 0;
|
|
387
|
+
overflow-y: hidden;
|
|
388
|
+
overflow-x: scroll;
|
|
389
|
+
}
|
|
390
|
+
.CodeMirror-scrollbar-filler {
|
|
391
|
+
right: 0; bottom: 0;
|
|
392
|
+
}
|
|
393
|
+
.CodeMirror-gutter-filler {
|
|
394
|
+
left: 0; bottom: 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.CodeMirror-gutters {
|
|
398
|
+
position: absolute; left: 0; top: 0;
|
|
399
|
+
min-height: 100%;
|
|
400
|
+
z-index: 3;
|
|
401
|
+
}
|
|
402
|
+
.CodeMirror-gutter {
|
|
403
|
+
white-space: normal;
|
|
404
|
+
height: 100%;
|
|
405
|
+
display: inline-block;
|
|
406
|
+
vertical-align: top;
|
|
407
|
+
margin-bottom: -50px;
|
|
408
|
+
}
|
|
409
|
+
.CodeMirror-gutter-wrapper {
|
|
410
|
+
position: absolute;
|
|
411
|
+
z-index: 4;
|
|
412
|
+
background: none !important;
|
|
413
|
+
border: none !important;
|
|
414
|
+
}
|
|
415
|
+
.CodeMirror-gutter-background {
|
|
416
|
+
position: absolute;
|
|
417
|
+
top: 0; bottom: 0;
|
|
418
|
+
z-index: 4;
|
|
419
|
+
}
|
|
420
|
+
.CodeMirror-gutter-elt {
|
|
421
|
+
position: absolute;
|
|
422
|
+
cursor: default;
|
|
423
|
+
z-index: 4;
|
|
424
|
+
}
|
|
425
|
+
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
|
|
426
|
+
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
|
|
427
|
+
|
|
428
|
+
.CodeMirror-lines {
|
|
429
|
+
cursor: text;
|
|
430
|
+
min-height: 1px; /* prevents collapsing before first draw */
|
|
431
|
+
}
|
|
432
|
+
.CodeMirror pre.CodeMirror-line,
|
|
433
|
+
.CodeMirror pre.CodeMirror-line-like {
|
|
434
|
+
/* Reset some styles that the rest of the page might have set */
|
|
435
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
|
436
|
+
border-width: 0;
|
|
437
|
+
background: transparent;
|
|
438
|
+
font-family: inherit;
|
|
439
|
+
font-size: inherit;
|
|
440
|
+
margin: 0;
|
|
441
|
+
white-space: pre;
|
|
442
|
+
word-wrap: normal;
|
|
443
|
+
line-height: inherit;
|
|
444
|
+
color: inherit;
|
|
445
|
+
z-index: 2;
|
|
446
|
+
position: relative;
|
|
447
|
+
overflow: visible;
|
|
448
|
+
-webkit-tap-highlight-color: transparent;
|
|
449
|
+
-webkit-font-variant-ligatures: contextual;
|
|
450
|
+
font-variant-ligatures: contextual;
|
|
451
|
+
}
|
|
452
|
+
.CodeMirror-wrap pre.CodeMirror-line,
|
|
453
|
+
.CodeMirror-wrap pre.CodeMirror-line-like {
|
|
454
|
+
word-wrap: break-word;
|
|
455
|
+
white-space: pre-wrap;
|
|
456
|
+
word-break: normal;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.CodeMirror-linebackground {
|
|
460
|
+
position: absolute;
|
|
461
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
|
462
|
+
z-index: 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.CodeMirror-linewidget {
|
|
466
|
+
position: relative;
|
|
467
|
+
z-index: 2;
|
|
468
|
+
padding: 0.1px; /* Force widget margins to stay inside of the container */
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.CodeMirror-widget {}
|
|
472
|
+
|
|
473
|
+
.CodeMirror-rtl pre { direction: rtl; }
|
|
474
|
+
|
|
475
|
+
.CodeMirror-code {
|
|
476
|
+
outline: none;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Force content-box sizing for the elements where we expect it */
|
|
480
|
+
.CodeMirror-scroll,
|
|
481
|
+
.CodeMirror-sizer,
|
|
482
|
+
.CodeMirror-gutter,
|
|
483
|
+
.CodeMirror-gutters,
|
|
484
|
+
.CodeMirror-linenumber {
|
|
485
|
+
-moz-box-sizing: content-box;
|
|
486
|
+
box-sizing: content-box;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.CodeMirror-measure {
|
|
490
|
+
position: absolute;
|
|
491
|
+
width: 100%;
|
|
492
|
+
height: 0;
|
|
493
|
+
overflow: hidden;
|
|
494
|
+
visibility: hidden;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.CodeMirror-cursor {
|
|
498
|
+
position: absolute;
|
|
499
|
+
pointer-events: none;
|
|
500
|
+
}
|
|
501
|
+
.CodeMirror-measure pre { position: static; }
|
|
502
|
+
|
|
503
|
+
div.CodeMirror-cursors {
|
|
504
|
+
visibility: hidden;
|
|
505
|
+
position: relative;
|
|
506
|
+
z-index: 3;
|
|
507
|
+
}
|
|
508
|
+
div.CodeMirror-dragcursors {
|
|
509
|
+
visibility: visible;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
|
513
|
+
visibility: visible;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
|
517
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
|
518
|
+
.CodeMirror-crosshair { cursor: crosshair; }
|
|
519
|
+
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
|
520
|
+
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
|
521
|
+
|
|
522
|
+
.cm-searching {
|
|
523
|
+
background-color: #ffa;
|
|
524
|
+
background-color: rgba(255, 255, 0, .4);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* Used to force a border model for a node */
|
|
528
|
+
.cm-force-border { padding-right: .1px; }
|
|
529
|
+
|
|
530
|
+
@media print {
|
|
531
|
+
/* Hide the cursor when printing */
|
|
532
|
+
.CodeMirror div.CodeMirror-cursors {
|
|
533
|
+
visibility: hidden;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* See issue #2901 */
|
|
538
|
+
.cm-tab-wrap-hack:after { content: ''; }
|
|
539
|
+
|
|
540
|
+
/* Help users use markselection to safely style text background */
|
|
541
|
+
span.CodeMirror-selectedtext { background: none; }
|
|
542
|
+
|
|
543
|
+
/*
|
|
544
|
+
Name: material
|
|
545
|
+
Author: Mattia Astorino (http://github.com/equinusocio)
|
|
546
|
+
Website: https://material-theme.site/
|
|
547
|
+
*/
|
|
548
|
+
|
|
549
|
+
.cm-s-material.CodeMirror {
|
|
550
|
+
background-color: #263238;
|
|
551
|
+
color: #EEFFFF;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.cm-s-material .CodeMirror-gutters {
|
|
555
|
+
background: #263238;
|
|
556
|
+
color: #546E7A;
|
|
557
|
+
border: none;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.cm-s-material .CodeMirror-guttermarker,
|
|
561
|
+
.cm-s-material .CodeMirror-guttermarker-subtle,
|
|
562
|
+
.cm-s-material .CodeMirror-linenumber {
|
|
563
|
+
color: #546E7A;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.cm-s-material .CodeMirror-cursor {
|
|
567
|
+
border-left: 1px solid #FFCC00;
|
|
568
|
+
}
|
|
569
|
+
.cm-s-material.cm-fat-cursor .CodeMirror-cursor {
|
|
570
|
+
background-color: #5d6d5c80 !important;
|
|
571
|
+
}
|
|
572
|
+
.cm-s-material .cm-animate-fat-cursor {
|
|
573
|
+
background-color: #5d6d5c80 !important;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.cm-s-material div.CodeMirror-selected {
|
|
577
|
+
background: rgba(128, 203, 196, 0.2);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
581
|
+
background: rgba(128, 203, 196, 0.2);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.cm-s-material .CodeMirror-line::selection,
|
|
585
|
+
.cm-s-material .CodeMirror-line>span::selection,
|
|
586
|
+
.cm-s-material .CodeMirror-line>span>span::selection {
|
|
587
|
+
background: rgba(128, 203, 196, 0.2);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.cm-s-material .CodeMirror-line::-moz-selection,
|
|
591
|
+
.cm-s-material .CodeMirror-line>span::-moz-selection,
|
|
592
|
+
.cm-s-material .CodeMirror-line>span>span::-moz-selection {
|
|
593
|
+
background: rgba(128, 203, 196, 0.2);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.cm-s-material .CodeMirror-activeline-background {
|
|
597
|
+
background: rgba(0, 0, 0, 0.5);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.cm-s-material .cm-keyword {
|
|
601
|
+
color: #C792EA;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.cm-s-material .cm-operator {
|
|
605
|
+
color: #89DDFF;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.cm-s-material .cm-variable-2 {
|
|
609
|
+
color: #EEFFFF;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.cm-s-material .cm-variable-3,
|
|
613
|
+
.cm-s-material .cm-type {
|
|
614
|
+
color: #f07178;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cm-s-material .cm-builtin {
|
|
618
|
+
color: #FFCB6B;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.cm-s-material .cm-atom {
|
|
622
|
+
color: #F78C6C;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.cm-s-material .cm-number {
|
|
626
|
+
color: #FF5370;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.cm-s-material .cm-def {
|
|
630
|
+
color: #82AAFF;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cm-s-material .cm-string {
|
|
634
|
+
color: #C3E88D;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cm-s-material .cm-string-2 {
|
|
638
|
+
color: #f07178;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.cm-s-material .cm-comment {
|
|
642
|
+
color: #546E7A;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.cm-s-material .cm-variable {
|
|
646
|
+
color: #f07178;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.cm-s-material .cm-tag {
|
|
650
|
+
color: #FF5370;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.cm-s-material .cm-meta {
|
|
654
|
+
color: #FFCB6B;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.cm-s-material .cm-attribute {
|
|
658
|
+
color: #C792EA;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.cm-s-material .cm-property {
|
|
662
|
+
color: #C792EA;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.cm-s-material .cm-qualifier {
|
|
666
|
+
color: #DECB6B;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.cm-s-material .cm-variable-3,
|
|
670
|
+
.cm-s-material .cm-type {
|
|
671
|
+
color: #DECB6B;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
.cm-s-material .cm-error {
|
|
676
|
+
color: rgba(255, 255, 255, 1.0);
|
|
677
|
+
background-color: #FF5370;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.cm-s-material .CodeMirror-matchingbracket {
|
|
681
|
+
text-decoration: underline;
|
|
682
|
+
color: white !important;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.CodeMirror-hints {
|
|
686
|
+
position: absolute;
|
|
687
|
+
z-index: 10;
|
|
688
|
+
overflow: hidden;
|
|
689
|
+
list-style: none;
|
|
690
|
+
|
|
691
|
+
margin: 0;
|
|
692
|
+
padding: 2px;
|
|
693
|
+
|
|
694
|
+
-webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
695
|
+
-moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
696
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
697
|
+
border-radius: 3px;
|
|
698
|
+
border: 1px solid silver;
|
|
699
|
+
|
|
700
|
+
background: white;
|
|
701
|
+
font-size: 90%;
|
|
702
|
+
font-family: monospace;
|
|
703
|
+
|
|
704
|
+
max-height: 20em;
|
|
705
|
+
overflow-y: auto;
|
|
706
|
+
box-sizing: border-box;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.CodeMirror-hint {
|
|
710
|
+
margin: 0;
|
|
711
|
+
padding: 0 4px;
|
|
712
|
+
border-radius: 2px;
|
|
713
|
+
white-space: pre;
|
|
714
|
+
color: black;
|
|
715
|
+
cursor: pointer;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
li.CodeMirror-hint-active {
|
|
719
|
+
background: #08f;
|
|
720
|
+
color: white;
|
|
721
|
+
}
|
|
722
|
+
|
|
Binary file
|