@gravitee/ui-components 3.24.4-migrate-codemirror-6bf640d → 3.24.4-renovate-devdependencies-non-major-7a9283d
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/README.md +1 -1
- package/assets/css/codemirror/all.css +476 -0
- package/assets/i18n/en.json +3 -0
- package/assets/i18n/fr.json +3 -0
- package/package.json +20 -31
- package/src/atoms/gv-input.js +25 -31
- package/src/index.js +1 -0
- package/src/mixins/input-element.js +3 -7
- package/src/molecules/gv-code-hint.js +66 -0
- package/src/molecules/gv-code.js +248 -202
- package/src/molecules/gv-expression-language.js +441 -202
- package/src/policy-studio/gv-policy-studio.js +5 -1
- package/src/styles/input.js +0 -2
- package/wc/gv-code-hint.js +1 -0
- package/src/lib/asciidoc-lang.js +0 -642
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ npm link @gravitee/ui-components
|
|
|
176
176
|
|
|
177
177
|
Some components are based on third party libraries, for integration into a web component, we extract the css from its libraries as assets.
|
|
178
178
|
|
|
179
|
-
WARNING: When `highlight.js` or `github-markdown-css` are updated, we must run `npm run build` task to update the css.
|
|
179
|
+
WARNING: When `codemirror`, `highlight.js` or `github-markdown-css` are updated, we must run `npm run build` task to update the css.
|
|
180
180
|
|
|
181
181
|
## Contributing
|
|
182
182
|
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
/* BASICS */
|
|
2
|
+
|
|
3
|
+
.CodeMirror {
|
|
4
|
+
/* Set height, width, borders, and global font properties here */
|
|
5
|
+
font-family: monospace;
|
|
6
|
+
height: 300px;
|
|
7
|
+
color: black;
|
|
8
|
+
direction: ltr;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* PADDING */
|
|
12
|
+
|
|
13
|
+
.CodeMirror-lines {
|
|
14
|
+
padding: 4px 0; /* Vertical padding around content */
|
|
15
|
+
}
|
|
16
|
+
.CodeMirror pre.CodeMirror-line,
|
|
17
|
+
.CodeMirror pre.CodeMirror-line-like {
|
|
18
|
+
padding: 0 4px; /* Horizontal padding of content */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
22
|
+
background-color: white; /* The little square between H and V scrollbars */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* GUTTER */
|
|
26
|
+
|
|
27
|
+
.CodeMirror-gutters {
|
|
28
|
+
border-right: 1px solid #ddd;
|
|
29
|
+
background-color: #f7f7f7;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
.CodeMirror-linenumbers {}
|
|
33
|
+
.CodeMirror-linenumber {
|
|
34
|
+
padding: 0 3px 0 5px;
|
|
35
|
+
min-width: 20px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
color: #999;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.CodeMirror-guttermarker { color: black; }
|
|
42
|
+
.CodeMirror-guttermarker-subtle { color: #999; }
|
|
43
|
+
|
|
44
|
+
/* CURSOR */
|
|
45
|
+
|
|
46
|
+
.CodeMirror-cursor {
|
|
47
|
+
border-left: 1px solid black;
|
|
48
|
+
border-right: none;
|
|
49
|
+
width: 0;
|
|
50
|
+
}
|
|
51
|
+
/* Shown when moving in bi-directional text */
|
|
52
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
|
53
|
+
border-left: 1px solid silver;
|
|
54
|
+
}
|
|
55
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
|
56
|
+
width: auto;
|
|
57
|
+
border: 0 !important;
|
|
58
|
+
background: #7e7;
|
|
59
|
+
}
|
|
60
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
|
61
|
+
z-index: 1;
|
|
62
|
+
}
|
|
63
|
+
.cm-fat-cursor-mark {
|
|
64
|
+
background-color: rgba(20, 255, 20, 0.5);
|
|
65
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
66
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
|
67
|
+
animation: blink 1.06s steps(1) infinite;
|
|
68
|
+
}
|
|
69
|
+
.cm-animate-fat-cursor {
|
|
70
|
+
width: auto;
|
|
71
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
72
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
|
73
|
+
animation: blink 1.06s steps(1) infinite;
|
|
74
|
+
background-color: #7e7;
|
|
75
|
+
}
|
|
76
|
+
@-moz-keyframes blink {
|
|
77
|
+
0% {}
|
|
78
|
+
50% { background-color: transparent; }
|
|
79
|
+
100% {}
|
|
80
|
+
}
|
|
81
|
+
@-webkit-keyframes blink {
|
|
82
|
+
0% {}
|
|
83
|
+
50% { background-color: transparent; }
|
|
84
|
+
100% {}
|
|
85
|
+
}
|
|
86
|
+
@keyframes blink {
|
|
87
|
+
0% {}
|
|
88
|
+
50% { background-color: transparent; }
|
|
89
|
+
100% {}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
|
93
|
+
.CodeMirror-overwrite .CodeMirror-cursor {}
|
|
94
|
+
|
|
95
|
+
.cm-tab { display: inline-block; text-decoration: inherit; }
|
|
96
|
+
|
|
97
|
+
.CodeMirror-rulers {
|
|
98
|
+
position: absolute;
|
|
99
|
+
left: 0; right: 0; top: -50px; bottom: 0;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
}
|
|
102
|
+
.CodeMirror-ruler {
|
|
103
|
+
border-left: 1px solid #ccc;
|
|
104
|
+
top: 0; bottom: 0;
|
|
105
|
+
position: absolute;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* DEFAULT THEME */
|
|
109
|
+
|
|
110
|
+
.cm-s-default .cm-header {color: blue;}
|
|
111
|
+
.cm-s-default .cm-quote {color: #090;}
|
|
112
|
+
.cm-negative {color: #d44;}
|
|
113
|
+
.cm-positive {color: #292;}
|
|
114
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
|
115
|
+
.cm-em {font-style: italic;}
|
|
116
|
+
.cm-link {text-decoration: underline;}
|
|
117
|
+
.cm-strikethrough {text-decoration: line-through;}
|
|
118
|
+
|
|
119
|
+
.cm-s-default .cm-keyword {color: #708;}
|
|
120
|
+
.cm-s-default .cm-atom {color: #219;}
|
|
121
|
+
.cm-s-default .cm-number {color: #164;}
|
|
122
|
+
.cm-s-default .cm-def {color: #00f;}
|
|
123
|
+
.cm-s-default .cm-variable,
|
|
124
|
+
.cm-s-default .cm-punctuation,
|
|
125
|
+
.cm-s-default .cm-property,
|
|
126
|
+
.cm-s-default .cm-operator {}
|
|
127
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
|
128
|
+
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
|
|
129
|
+
.cm-s-default .cm-comment {color: #a50;}
|
|
130
|
+
.cm-s-default .cm-string {color: #a11;}
|
|
131
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
|
132
|
+
.cm-s-default .cm-meta {color: #555;}
|
|
133
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
|
134
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
|
135
|
+
.cm-s-default .cm-bracket {color: #997;}
|
|
136
|
+
.cm-s-default .cm-tag {color: #170;}
|
|
137
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
|
138
|
+
.cm-s-default .cm-hr {color: #999;}
|
|
139
|
+
.cm-s-default .cm-link {color: #00c;}
|
|
140
|
+
|
|
141
|
+
.cm-s-default .cm-error {color: #f00;}
|
|
142
|
+
.cm-invalidchar {color: #f00;}
|
|
143
|
+
|
|
144
|
+
.CodeMirror-composing { border-bottom: 2px solid; }
|
|
145
|
+
|
|
146
|
+
/* Default styles for common addons */
|
|
147
|
+
|
|
148
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
|
|
149
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
|
|
150
|
+
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
|
151
|
+
.CodeMirror-activeline-background {background: #e8f2ff;}
|
|
152
|
+
|
|
153
|
+
/* STOP */
|
|
154
|
+
|
|
155
|
+
/* The rest of this file contains styles related to the mechanics of
|
|
156
|
+
the editor. You probably shouldn't touch them. */
|
|
157
|
+
|
|
158
|
+
.CodeMirror {
|
|
159
|
+
position: relative;
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
background: white;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.CodeMirror-scroll {
|
|
165
|
+
overflow: scroll !important; /* Things will break if this is overridden */
|
|
166
|
+
/* 50px is the magic margin used to hide the element's real scrollbars */
|
|
167
|
+
/* See overflow: hidden in .CodeMirror */
|
|
168
|
+
margin-bottom: -50px; margin-right: -50px;
|
|
169
|
+
padding-bottom: 50px;
|
|
170
|
+
height: 100%;
|
|
171
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
174
|
+
.CodeMirror-sizer {
|
|
175
|
+
position: relative;
|
|
176
|
+
border-right: 50px solid transparent;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
|
180
|
+
before actual scrolling happens, thus preventing shaking and
|
|
181
|
+
flickering artifacts. */
|
|
182
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
183
|
+
position: absolute;
|
|
184
|
+
z-index: 6;
|
|
185
|
+
display: none;
|
|
186
|
+
outline: none;
|
|
187
|
+
}
|
|
188
|
+
.CodeMirror-vscrollbar {
|
|
189
|
+
right: 0; top: 0;
|
|
190
|
+
overflow-x: hidden;
|
|
191
|
+
overflow-y: scroll;
|
|
192
|
+
}
|
|
193
|
+
.CodeMirror-hscrollbar {
|
|
194
|
+
bottom: 0; left: 0;
|
|
195
|
+
overflow-y: hidden;
|
|
196
|
+
overflow-x: scroll;
|
|
197
|
+
}
|
|
198
|
+
.CodeMirror-scrollbar-filler {
|
|
199
|
+
right: 0; bottom: 0;
|
|
200
|
+
}
|
|
201
|
+
.CodeMirror-gutter-filler {
|
|
202
|
+
left: 0; bottom: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.CodeMirror-gutters {
|
|
206
|
+
position: absolute; left: 0; top: 0;
|
|
207
|
+
min-height: 100%;
|
|
208
|
+
z-index: 3;
|
|
209
|
+
}
|
|
210
|
+
.CodeMirror-gutter {
|
|
211
|
+
white-space: normal;
|
|
212
|
+
height: 100%;
|
|
213
|
+
display: inline-block;
|
|
214
|
+
vertical-align: top;
|
|
215
|
+
margin-bottom: -50px;
|
|
216
|
+
}
|
|
217
|
+
.CodeMirror-gutter-wrapper {
|
|
218
|
+
position: absolute;
|
|
219
|
+
z-index: 4;
|
|
220
|
+
background: none !important;
|
|
221
|
+
border: none !important;
|
|
222
|
+
}
|
|
223
|
+
.CodeMirror-gutter-background {
|
|
224
|
+
position: absolute;
|
|
225
|
+
top: 0; bottom: 0;
|
|
226
|
+
z-index: 4;
|
|
227
|
+
}
|
|
228
|
+
.CodeMirror-gutter-elt {
|
|
229
|
+
position: absolute;
|
|
230
|
+
cursor: default;
|
|
231
|
+
z-index: 4;
|
|
232
|
+
}
|
|
233
|
+
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
|
|
234
|
+
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
|
|
235
|
+
|
|
236
|
+
.CodeMirror-lines {
|
|
237
|
+
cursor: text;
|
|
238
|
+
min-height: 1px; /* prevents collapsing before first draw */
|
|
239
|
+
}
|
|
240
|
+
.CodeMirror pre.CodeMirror-line,
|
|
241
|
+
.CodeMirror pre.CodeMirror-line-like {
|
|
242
|
+
/* Reset some styles that the rest of the page might have set */
|
|
243
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
|
244
|
+
border-width: 0;
|
|
245
|
+
background: transparent;
|
|
246
|
+
font-family: inherit;
|
|
247
|
+
font-size: inherit;
|
|
248
|
+
margin: 0;
|
|
249
|
+
white-space: pre;
|
|
250
|
+
word-wrap: normal;
|
|
251
|
+
line-height: inherit;
|
|
252
|
+
color: inherit;
|
|
253
|
+
z-index: 2;
|
|
254
|
+
position: relative;
|
|
255
|
+
overflow: visible;
|
|
256
|
+
-webkit-tap-highlight-color: transparent;
|
|
257
|
+
-webkit-font-variant-ligatures: contextual;
|
|
258
|
+
font-variant-ligatures: contextual;
|
|
259
|
+
}
|
|
260
|
+
.CodeMirror-wrap pre.CodeMirror-line,
|
|
261
|
+
.CodeMirror-wrap pre.CodeMirror-line-like {
|
|
262
|
+
word-wrap: break-word;
|
|
263
|
+
white-space: pre-wrap;
|
|
264
|
+
word-break: normal;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.CodeMirror-linebackground {
|
|
268
|
+
position: absolute;
|
|
269
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
|
270
|
+
z-index: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.CodeMirror-linewidget {
|
|
274
|
+
position: relative;
|
|
275
|
+
z-index: 2;
|
|
276
|
+
padding: 0.1px; /* Force widget margins to stay inside of the container */
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.CodeMirror-widget {}
|
|
280
|
+
|
|
281
|
+
.CodeMirror-rtl pre { direction: rtl; }
|
|
282
|
+
|
|
283
|
+
.CodeMirror-code {
|
|
284
|
+
outline: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* Force content-box sizing for the elements where we expect it */
|
|
288
|
+
.CodeMirror-scroll,
|
|
289
|
+
.CodeMirror-sizer,
|
|
290
|
+
.CodeMirror-gutter,
|
|
291
|
+
.CodeMirror-gutters,
|
|
292
|
+
.CodeMirror-linenumber {
|
|
293
|
+
-moz-box-sizing: content-box;
|
|
294
|
+
box-sizing: content-box;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.CodeMirror-measure {
|
|
298
|
+
position: absolute;
|
|
299
|
+
width: 100%;
|
|
300
|
+
height: 0;
|
|
301
|
+
overflow: hidden;
|
|
302
|
+
visibility: hidden;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.CodeMirror-cursor {
|
|
306
|
+
position: absolute;
|
|
307
|
+
pointer-events: none;
|
|
308
|
+
}
|
|
309
|
+
.CodeMirror-measure pre { position: static; }
|
|
310
|
+
|
|
311
|
+
div.CodeMirror-cursors {
|
|
312
|
+
visibility: hidden;
|
|
313
|
+
position: relative;
|
|
314
|
+
z-index: 3;
|
|
315
|
+
}
|
|
316
|
+
div.CodeMirror-dragcursors {
|
|
317
|
+
visibility: visible;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
|
321
|
+
visibility: visible;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
|
325
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
|
326
|
+
.CodeMirror-crosshair { cursor: crosshair; }
|
|
327
|
+
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
|
328
|
+
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
|
329
|
+
|
|
330
|
+
.cm-searching {
|
|
331
|
+
background-color: #ffa;
|
|
332
|
+
background-color: rgba(255, 255, 0, .4);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* Used to force a border model for a node */
|
|
336
|
+
.cm-force-border { padding-right: .1px; }
|
|
337
|
+
|
|
338
|
+
@media print {
|
|
339
|
+
/* Hide the cursor when printing */
|
|
340
|
+
.CodeMirror div.CodeMirror-cursors {
|
|
341
|
+
visibility: hidden;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* See issue #2901 */
|
|
346
|
+
.cm-tab-wrap-hack:after { content: ''; }
|
|
347
|
+
|
|
348
|
+
/* Help users use markselection to safely style text background */
|
|
349
|
+
span.CodeMirror-selectedtext { background: none; }
|
|
350
|
+
|
|
351
|
+
/* The lint marker gutter */
|
|
352
|
+
.CodeMirror-lint-markers {
|
|
353
|
+
width: 16px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.CodeMirror-lint-tooltip {
|
|
357
|
+
background-color: #ffd;
|
|
358
|
+
border: 1px solid black;
|
|
359
|
+
border-radius: 4px 4px 4px 4px;
|
|
360
|
+
color: black;
|
|
361
|
+
font-family: monospace;
|
|
362
|
+
font-size: 10pt;
|
|
363
|
+
overflow: hidden;
|
|
364
|
+
padding: 2px 5px;
|
|
365
|
+
position: fixed;
|
|
366
|
+
white-space: pre;
|
|
367
|
+
white-space: pre-wrap;
|
|
368
|
+
z-index: 100;
|
|
369
|
+
max-width: 600px;
|
|
370
|
+
opacity: 0;
|
|
371
|
+
transition: opacity .4s;
|
|
372
|
+
-moz-transition: opacity .4s;
|
|
373
|
+
-webkit-transition: opacity .4s;
|
|
374
|
+
-o-transition: opacity .4s;
|
|
375
|
+
-ms-transition: opacity .4s;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.CodeMirror-lint-mark {
|
|
379
|
+
background-position: left bottom;
|
|
380
|
+
background-repeat: repeat-x;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.CodeMirror-lint-mark-warning {
|
|
384
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.CodeMirror-lint-mark-error {
|
|
388
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==");
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.CodeMirror-lint-marker {
|
|
392
|
+
background-position: center center;
|
|
393
|
+
background-repeat: no-repeat;
|
|
394
|
+
cursor: pointer;
|
|
395
|
+
display: inline-block;
|
|
396
|
+
height: 16px;
|
|
397
|
+
width: 16px;
|
|
398
|
+
vertical-align: middle;
|
|
399
|
+
position: relative;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.CodeMirror-lint-message {
|
|
403
|
+
padding-left: 18px;
|
|
404
|
+
background-position: top left;
|
|
405
|
+
background-repeat: no-repeat;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
|
|
409
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=");
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
|
|
413
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=");
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.CodeMirror-lint-marker-multiple {
|
|
417
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");
|
|
418
|
+
background-repeat: no-repeat;
|
|
419
|
+
background-position: right bottom;
|
|
420
|
+
width: 100%; height: 100%;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.CodeMirror-lint-line-error {
|
|
424
|
+
background-color: rgba(183, 76, 81, 0.08);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.CodeMirror-lint-line-warning {
|
|
428
|
+
background-color: rgba(255, 211, 0, 0.1);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/*
|
|
432
|
+
MDN-LIKE Theme - Mozilla
|
|
433
|
+
Ported to CodeMirror by Peter Kroon <plakroon@gmail.com>
|
|
434
|
+
Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues
|
|
435
|
+
GitHub: @peterkroon
|
|
436
|
+
|
|
437
|
+
The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation
|
|
438
|
+
|
|
439
|
+
*/
|
|
440
|
+
.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; }
|
|
441
|
+
.cm-s-mdn-like div.CodeMirror-selected { background: #cfc; }
|
|
442
|
+
.cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; }
|
|
443
|
+
.cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; }
|
|
444
|
+
|
|
445
|
+
.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; }
|
|
446
|
+
.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; }
|
|
447
|
+
.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; }
|
|
448
|
+
|
|
449
|
+
.cm-s-mdn-like .cm-keyword { color: #6262FF; }
|
|
450
|
+
.cm-s-mdn-like .cm-atom { color: #F90; }
|
|
451
|
+
.cm-s-mdn-like .cm-number { color: #ca7841; }
|
|
452
|
+
.cm-s-mdn-like .cm-def { color: #8DA6CE; }
|
|
453
|
+
.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; }
|
|
454
|
+
.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def, .cm-s-mdn-like span.cm-type { color: #07a; }
|
|
455
|
+
|
|
456
|
+
.cm-s-mdn-like .cm-variable { color: #07a; }
|
|
457
|
+
.cm-s-mdn-like .cm-property { color: #905; }
|
|
458
|
+
.cm-s-mdn-like .cm-qualifier { color: #690; }
|
|
459
|
+
|
|
460
|
+
.cm-s-mdn-like .cm-operator { color: #cda869; }
|
|
461
|
+
.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; }
|
|
462
|
+
.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; }
|
|
463
|
+
.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/
|
|
464
|
+
.cm-s-mdn-like .cm-meta { color: #000; } /*?*/
|
|
465
|
+
.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/
|
|
466
|
+
.cm-s-mdn-like .cm-tag { color: #997643; }
|
|
467
|
+
.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/
|
|
468
|
+
.cm-s-mdn-like .cm-header { color: #FF6400; }
|
|
469
|
+
.cm-s-mdn-like .cm-hr { color: #AEAEAE; }
|
|
470
|
+
.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; }
|
|
471
|
+
.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; }
|
|
472
|
+
|
|
473
|
+
div.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; }
|
|
474
|
+
div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; }
|
|
475
|
+
|
|
476
|
+
|
package/assets/i18n/en.json
CHANGED
package/assets/i18n/fr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/ui-components",
|
|
3
|
-
"version": "3.24.4-
|
|
3
|
+
"version": "3.24.4-renovate-devdependencies-non-major-7a9283d",
|
|
4
4
|
"description": "Gravitee.io UI Components library, based on Web Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,26 +49,10 @@
|
|
|
49
49
|
"package.json": "npm run lint:package"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@codemirror/autocomplete": "^0.19.9",
|
|
53
|
-
"@codemirror/basic-setup": "^0.19.1",
|
|
54
|
-
"@codemirror/closebrackets": "^0.19.0",
|
|
55
|
-
"@codemirror/commands": "^0.19.6",
|
|
56
|
-
"@codemirror/fold": "^0.19.1",
|
|
57
|
-
"@codemirror/gutter": "^0.19.4",
|
|
58
|
-
"@codemirror/highlight": "^0.19.6",
|
|
59
|
-
"@codemirror/history": "^0.19.0",
|
|
60
|
-
"@codemirror/lang-html": "^0.19.3",
|
|
61
|
-
"@codemirror/lang-java": "^0.19.1",
|
|
62
|
-
"@codemirror/lang-javascript": "^0.19.2",
|
|
63
|
-
"@codemirror/language": "^0.19.3",
|
|
64
|
-
"@codemirror/language-data": "^0.19.1",
|
|
65
|
-
"@codemirror/matchbrackets": "^0.19.3",
|
|
66
|
-
"@codemirror/state": "^0.19.6",
|
|
67
|
-
"@codemirror/stream-parser": "^0.19.3",
|
|
68
|
-
"@codemirror/view": "^0.19.32",
|
|
69
52
|
"@formatjs/intl-locale": "^2.4.40",
|
|
70
53
|
"@formatjs/intl-relativetimeformat": "^9.3.2",
|
|
71
54
|
"clipboard-copy": "^4.0.0",
|
|
55
|
+
"codemirror": "^5.63.2",
|
|
72
56
|
"date-fns": "^2.26.0",
|
|
73
57
|
"jdenticon": "^3.1.0",
|
|
74
58
|
"jsonschema": "^1.4.0",
|
|
@@ -80,29 +64,30 @@
|
|
|
80
64
|
},
|
|
81
65
|
"devDependencies": {
|
|
82
66
|
"@asciidoctor/core": "2.2.5",
|
|
83
|
-
"@babel/core": "7.16.
|
|
67
|
+
"@babel/core": "7.16.5",
|
|
84
68
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
85
|
-
"@babel/preset-env": "7.16.
|
|
69
|
+
"@babel/preset-env": "7.16.5",
|
|
86
70
|
"@commitlint/cli": "15.0.0",
|
|
87
71
|
"@commitlint/config-conventional": "15.0.0",
|
|
88
|
-
"@highcharts/map-collection": "1.1.
|
|
72
|
+
"@highcharts/map-collection": "1.1.4",
|
|
89
73
|
"@semantic-release/changelog": "6.0.1",
|
|
90
74
|
"@semantic-release/git": "10.0.1",
|
|
91
|
-
"@storybook/addon-a11y": "6.4.
|
|
92
|
-
"@storybook/addon-essentials": "6.4.
|
|
93
|
-
"@storybook/components": "6.4.
|
|
94
|
-
"@storybook/theming": "6.4.
|
|
95
|
-
"@storybook/web-components": "6.4.
|
|
75
|
+
"@storybook/addon-a11y": "6.4.9",
|
|
76
|
+
"@storybook/addon-essentials": "6.4.9",
|
|
77
|
+
"@storybook/components": "6.4.9",
|
|
78
|
+
"@storybook/theming": "6.4.9",
|
|
79
|
+
"@storybook/web-components": "6.4.9",
|
|
96
80
|
"asciidoctor": "2.2.5",
|
|
97
81
|
"asciidoctor-highlight.js": "0.4.0",
|
|
98
|
-
"babel-jest": "27.4.
|
|
82
|
+
"babel-jest": "27.4.5",
|
|
99
83
|
"babel-loader": "8.2.3",
|
|
100
84
|
"babel-plugin-template-html-minifier": "4.1.0",
|
|
101
85
|
"bundle-phobia-cli": "0.14.13",
|
|
102
|
-
"chromatic": "6.
|
|
86
|
+
"chromatic": "6.2.3",
|
|
87
|
+
"codemirror-asciidoc": "1.0.4",
|
|
103
88
|
"danger": "10.7.1",
|
|
104
89
|
"del": "6.0.0",
|
|
105
|
-
"eslint": "8.
|
|
90
|
+
"eslint": "8.5.0",
|
|
106
91
|
"eslint-config-prettier": "8.3.0",
|
|
107
92
|
"eslint-config-standard": "16.0.3",
|
|
108
93
|
"eslint-plugin-import": "2.25.3",
|
|
@@ -122,11 +107,11 @@
|
|
|
122
107
|
"i18n-extract": "0.6.7",
|
|
123
108
|
"ignore-loader": "0.1.2",
|
|
124
109
|
"is-ci": "3.0.1",
|
|
125
|
-
"jest": "27.4.
|
|
110
|
+
"jest": "27.4.5",
|
|
126
111
|
"license-check-and-add": "4.0.3",
|
|
127
112
|
"lint-staged": "11.2.6",
|
|
128
113
|
"lit-html": "2.0.2",
|
|
129
|
-
"markdown-it": "12.
|
|
114
|
+
"markdown-it": "12.3.0",
|
|
130
115
|
"node-static": "0.7.11",
|
|
131
116
|
"nodemon": "2.0.15",
|
|
132
117
|
"pascal-case": "3.1.2",
|
|
@@ -146,6 +131,7 @@
|
|
|
146
131
|
"@highcharts/map-collection": "^1.0.0",
|
|
147
132
|
"asciidoctor": "^2.2.4",
|
|
148
133
|
"asciidoctor-highlight.js": "^0.3.0 || ^0.4.0",
|
|
134
|
+
"codemirror-asciidoc": "^1.0.4",
|
|
149
135
|
"highcharts": "^8.0.0 || ^9.0.0",
|
|
150
136
|
"highlight.js": "^10.7.0 || ^11.1.0"
|
|
151
137
|
},
|
|
@@ -162,6 +148,9 @@
|
|
|
162
148
|
"asciidoctor-highlight.js": {
|
|
163
149
|
"optional": true
|
|
164
150
|
},
|
|
151
|
+
"codemirror-asciidoc": {
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
165
154
|
"highcharts": {
|
|
166
155
|
"optional": true
|
|
167
156
|
},
|