@silexlabs/silex 3.3.0 → 3.3.1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client/grapesjs/flex.d.ts +7 -0
- package/dist/client/client/grapesjs/li.d.ts +7 -0
- package/dist/client/client/grapesjs/sectors.d.ts +11 -0
- package/dist/client/client/grapesjs/symbolDialogs.d.ts +2 -1
- package/dist/client/css/admin.css +3 -3
- package/dist/client/css/admin.css.map +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/js/main.js +777 -159
- package/dist/client/silex-lib/src/ts/client/grapesjs/flex.d.ts +7 -0
- package/dist/client/silex-lib/src/ts/client/grapesjs/li.d.ts +7 -0
- package/dist/client/silex-lib/src/ts/client/grapesjs/scroll.d.ts +7 -0
- package/dist/client/silex-lib/src/ts/client/grapesjs/sectors.d.ts +11 -0
- package/dist/plugins/server/plugins/server/GitlabConnector.js +3 -67
- package/dist/plugins/server/plugins/server/GitlabConnector.js.map +1 -1
- package/package.json +3 -2
- package/src/ts/client/grapesjs/LoginDialog.ts +1 -0
- package/src/ts/client/grapesjs/css-props.ts +230 -303
- package/src/ts/client/grapesjs/flex.ts +83 -0
- package/src/ts/client/grapesjs/img.ts +45 -6
- package/src/ts/client/grapesjs/index.ts +12 -9
- package/src/ts/client/grapesjs/li.ts +77 -0
- package/src/ts/client/grapesjs/sectors.ts +59 -0
- package/src/ts/client/grapesjs/semantic.ts +132 -58
- package/src/ts/client/grapesjs/symbolDialogs.ts +10 -6
- package/src/ts/client/index.ts +0 -38
- package/src/ts/plugins/server/GitlabConnector.ts +2 -67
|
@@ -23,9 +23,9 @@ import { Editor } from 'grapesjs'
|
|
|
23
23
|
|
|
24
24
|
export default (editor: Editor, opts) => {
|
|
25
25
|
editor.on('load', () => {
|
|
26
|
-
/***************/
|
|
26
|
+
/***************/
|
|
27
27
|
/* General */
|
|
28
|
-
/***************/
|
|
28
|
+
/***************/
|
|
29
29
|
editor.StyleManager.removeProperty('general', 'display')
|
|
30
30
|
editor.StyleManager.addProperty('general', {
|
|
31
31
|
name: 'Display',
|
|
@@ -33,18 +33,17 @@ export default (editor: Editor, opts) => {
|
|
|
33
33
|
type: 'select',
|
|
34
34
|
defaults: '',
|
|
35
35
|
options: [
|
|
36
|
-
|
|
37
|
-
{ value: '', name: '' },
|
|
38
|
-
|
|
39
|
-
{ value: 'block', name: 'block' },
|
|
40
|
-
|
|
41
|
-
{ value: '
|
|
42
|
-
|
|
43
|
-
{ value: '
|
|
44
|
-
|
|
45
|
-
{ value: '
|
|
46
|
-
|
|
47
|
-
{ value: 'none', name: 'none' },
|
|
36
|
+
{ id: '', value: '', name: '' },
|
|
37
|
+
{ id: 'block', value: 'block', name: 'block' },
|
|
38
|
+
{ id: 'inline', value: 'inline', name: 'inline' },
|
|
39
|
+
{ id: 'inline-block', value: 'inline-block', name: 'inline-block' },
|
|
40
|
+
{ id: 'flex', value: 'flex', name: 'flex' },
|
|
41
|
+
{ id: 'grid', value: 'grid', name: 'grid' },
|
|
42
|
+
{ id: 'inline-flex', value: 'inline-flex', name: 'inline-flex' },
|
|
43
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
44
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
45
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
46
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
48
47
|
],
|
|
49
48
|
info: '',
|
|
50
49
|
})
|
|
@@ -54,14 +53,13 @@ export default (editor: Editor, opts) => {
|
|
|
54
53
|
type: 'select',
|
|
55
54
|
defaults: '',
|
|
56
55
|
options: [
|
|
57
|
-
|
|
58
|
-
{ value: '', name: '' },
|
|
59
|
-
|
|
60
|
-
{ value: '
|
|
61
|
-
|
|
62
|
-
{ value: '
|
|
63
|
-
|
|
64
|
-
{ value: 'collapse', name: 'collapse' },
|
|
56
|
+
{ id: '', value: '', name: '' },
|
|
57
|
+
{ id: 'visible', value: 'visible', name: 'visible' },
|
|
58
|
+
{ id: 'hidden', value: 'hidden', name: 'hidden' },
|
|
59
|
+
{ id: 'collapse', value: 'collapse', name: 'collapse' },
|
|
60
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
61
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
62
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
65
63
|
],
|
|
66
64
|
info: 'The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a <table>.',
|
|
67
65
|
})
|
|
@@ -74,24 +72,15 @@ export default (editor: Editor, opts) => {
|
|
|
74
72
|
defaults: '',
|
|
75
73
|
full: true,
|
|
76
74
|
options: [
|
|
77
|
-
|
|
78
|
-
{ value: '', name: '' },
|
|
79
|
-
|
|
80
|
-
{ value: '
|
|
81
|
-
|
|
82
|
-
{ value: '
|
|
83
|
-
|
|
84
|
-
{ value: '
|
|
85
|
-
|
|
86
|
-
{ value: 'relative', name: 'relative' },
|
|
87
|
-
/* @ts-ignore */
|
|
88
|
-
{ value: 'absolute', name: 'absolute' },
|
|
89
|
-
/* @ts-ignore */
|
|
90
|
-
{ value: 'fixed', name: 'fixed' },
|
|
91
|
-
/* @ts-ignore */
|
|
92
|
-
{ value: 'sticky', name: 'sticky' },
|
|
93
|
-
/* @ts-ignore */
|
|
94
|
-
{ value: 'unset', name: 'unset' },
|
|
75
|
+
{ id: '', value: '', name: '' },
|
|
76
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
77
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
78
|
+
{ id: 'static', value: 'static', name: 'static' },
|
|
79
|
+
{ id: 'relative', value: 'relative', name: 'relative' },
|
|
80
|
+
{ id: 'absolute', value: 'absolute', name: 'absolute' },
|
|
81
|
+
{ id: 'fixed', value: 'fixed', name: 'fixed' },
|
|
82
|
+
{ id: 'sticky', value: 'sticky', name: 'sticky' },
|
|
83
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
95
84
|
],
|
|
96
85
|
info: '',
|
|
97
86
|
})
|
|
@@ -204,38 +193,34 @@ export default (editor: Editor, opts) => {
|
|
|
204
193
|
type: 'select',
|
|
205
194
|
defaults: '',
|
|
206
195
|
options: [
|
|
207
|
-
|
|
208
|
-
{ value: '', name: '' },
|
|
209
|
-
|
|
210
|
-
{ value: '
|
|
211
|
-
|
|
212
|
-
{ value: '
|
|
213
|
-
|
|
214
|
-
{ value: '
|
|
215
|
-
/* @ts-ignore */
|
|
216
|
-
{ value: 'scroll', name: 'scroll' },
|
|
196
|
+
{ id: '', value: '', name: '' },
|
|
197
|
+
{ id: 'auto', value: 'auto', name: 'auto' },
|
|
198
|
+
{ id: 'hidden', value: 'hidden', name: 'hidden' },
|
|
199
|
+
{ id: 'visible', value: 'visible', name: 'visible' },
|
|
200
|
+
{ id: 'scroll', value: 'scroll', name: 'scroll' },
|
|
201
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
202
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
203
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
217
204
|
],
|
|
218
205
|
}, {
|
|
219
206
|
name: 'Overflow Y',
|
|
220
207
|
type: 'select',
|
|
221
208
|
defaults: '',
|
|
222
209
|
options: [
|
|
223
|
-
|
|
224
|
-
{ value: '', name: '' },
|
|
225
|
-
|
|
226
|
-
{ value: '
|
|
227
|
-
|
|
228
|
-
{ value: '
|
|
229
|
-
|
|
230
|
-
{ value: '
|
|
231
|
-
/* @ts-ignore */
|
|
232
|
-
{ value: 'scroll', name: 'scroll' },
|
|
210
|
+
{ id: '', value: '', name: '' },
|
|
211
|
+
{ id: 'auto', value: 'auto', name: 'auto' },
|
|
212
|
+
{ id: 'hidden', value: 'hidden', name: 'hidden' },
|
|
213
|
+
{ id: 'visible', value: 'visible', name: 'visible' },
|
|
214
|
+
{ id: 'scroll', value: 'scroll', name: 'scroll' },
|
|
215
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
216
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
217
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
233
218
|
],
|
|
234
219
|
}],
|
|
235
220
|
info: 'The overflow CSS property sets what to do when an element\'s content is too big to fit in its block formatting context. It is a shorthand for overflow-x and overflow-y.',
|
|
236
221
|
}, { at: 6 })
|
|
237
222
|
editor.StyleManager.removeProperty('dimension', 'margin')
|
|
238
|
-
editor.StyleManager.addProperty('dimension', {
|
|
223
|
+
editor.StyleManager.addProperty('dimension', {
|
|
239
224
|
name: 'Margin',
|
|
240
225
|
property: 'margin',
|
|
241
226
|
type: 'composite',
|
|
@@ -273,7 +258,7 @@ export default (editor: Editor, opts) => {
|
|
|
273
258
|
}],
|
|
274
259
|
}, { at: 7 })
|
|
275
260
|
editor.StyleManager.removeProperty('dimension', 'padding')
|
|
276
|
-
editor.StyleManager.addProperty('dimension', {
|
|
261
|
+
editor.StyleManager.addProperty('dimension', {
|
|
277
262
|
name: 'Padding',
|
|
278
263
|
property: 'padding',
|
|
279
264
|
type: 'composite',
|
|
@@ -313,7 +298,64 @@ export default (editor: Editor, opts) => {
|
|
|
313
298
|
units: [ 'px', '%', 'em', 'rem', 'vh', 'vw' ],
|
|
314
299
|
}],
|
|
315
300
|
}, { at: 8 })
|
|
316
|
-
|
|
301
|
+
|
|
302
|
+
editor.StyleManager.addProperty('extra', {
|
|
303
|
+
name: 'Scroll Snap Type',
|
|
304
|
+
property: 'scroll-snap-type',
|
|
305
|
+
type: 'composite',
|
|
306
|
+
properties: [{
|
|
307
|
+
name: 'Direction',
|
|
308
|
+
property: 'scroll-snap-type-direction',
|
|
309
|
+
type: 'select',
|
|
310
|
+
defaults: '',
|
|
311
|
+
options: [
|
|
312
|
+
{ id: '', value: '', name: '' },
|
|
313
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
314
|
+
{ id: 'x', value: 'x', name: 'x' },
|
|
315
|
+
{ id: 'y', value: 'y', name: 'y' },
|
|
316
|
+
{ id: 'block', value: 'block', name: 'block' },
|
|
317
|
+
{ id: 'inline', value: 'inline', name: 'inline' },
|
|
318
|
+
{ id: 'both', value: 'both', name: 'both' },
|
|
319
|
+
],
|
|
320
|
+
}, {
|
|
321
|
+
name: 'Mode',
|
|
322
|
+
property: 'scroll-snap-type-mode',
|
|
323
|
+
type: 'select',
|
|
324
|
+
defaults: '',
|
|
325
|
+
options: [
|
|
326
|
+
{ id: '', value: '', name: '' },
|
|
327
|
+
{ id: 'proximity', value: 'proximity', name: 'proximity' },
|
|
328
|
+
{ id: 'mandatory', value: 'mandatory', name: 'mandatory' },
|
|
329
|
+
],
|
|
330
|
+
}],
|
|
331
|
+
info: 'The scroll-snap-type CSS property sets the direction and mode of enforced snap points on the scroll container.',
|
|
332
|
+
}, { at: 9 })
|
|
333
|
+
|
|
334
|
+
editor.StyleManager.addProperty('extra', {
|
|
335
|
+
name: 'Scroll Padding',
|
|
336
|
+
property: 'scroll-padding',
|
|
337
|
+
type: 'integer',
|
|
338
|
+
defaults: '',
|
|
339
|
+
units: ['px', 'em', 'rem', '%'],
|
|
340
|
+
info: 'The scroll-padding CSS property defines offsets for the optimal snap position when scrolling is loaded by the browser.',
|
|
341
|
+
}, { at: 10 })
|
|
342
|
+
|
|
343
|
+
editor.StyleManager.addProperty('extra', {
|
|
344
|
+
name: 'Scroll Snap Align',
|
|
345
|
+
property: 'scroll-snap-align',
|
|
346
|
+
type: 'select',
|
|
347
|
+
defaults: '',
|
|
348
|
+
options: [
|
|
349
|
+
{ id: '', value: '', name: '' },
|
|
350
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
351
|
+
{ id: 'start', value: 'start', name: 'start' },
|
|
352
|
+
{ id: 'end', value: 'end', name: 'end' },
|
|
353
|
+
{ id: 'center', value: 'center', name: 'center' },
|
|
354
|
+
],
|
|
355
|
+
info: 'The scroll-snap-align property specifies how strictly the snap points are enforced on the element in the container.',
|
|
356
|
+
}, { at: 11 })
|
|
357
|
+
|
|
358
|
+
/***************/
|
|
317
359
|
/* Typography */
|
|
318
360
|
/***************/
|
|
319
361
|
editor.StyleManager.removeProperty('typography', 'font-size')
|
|
@@ -333,25 +375,15 @@ export default (editor: Editor, opts) => {
|
|
|
333
375
|
default: '',
|
|
334
376
|
fixedValues: ['inherit', 'initial', 'unset', 'auto'],
|
|
335
377
|
options: [
|
|
336
|
-
/* @ts-ignore */
|
|
337
378
|
{ id: '', label: '' },
|
|
338
|
-
/* @ts-ignore */
|
|
339
379
|
{ id: '100', label: 'Thin' },
|
|
340
|
-
/* @ts-ignore */
|
|
341
380
|
{ id: '200', label: 'Extra-Light' },
|
|
342
|
-
/* @ts-ignore */
|
|
343
381
|
{ id: '300', label: 'Light' },
|
|
344
|
-
/* @ts-ignore */
|
|
345
382
|
{ id: '400', label: 'Normal' },
|
|
346
|
-
/* @ts-ignore */
|
|
347
383
|
{ id: '500', label: 'Medium' },
|
|
348
|
-
/* @ts-ignore */
|
|
349
384
|
{ id: '600', label: 'Semi-Bold' },
|
|
350
|
-
/* @ts-ignore */
|
|
351
385
|
{ id: '700', label: 'Bold' },
|
|
352
|
-
/* @ts-ignore */
|
|
353
386
|
{ id: '800', label: 'Extra-Bold' },
|
|
354
|
-
/* @ts-ignore */
|
|
355
387
|
{ id: '900', label: 'Ultra-Bold' }
|
|
356
388
|
]
|
|
357
389
|
}, { at: 2 })
|
|
@@ -388,34 +420,27 @@ export default (editor: Editor, opts) => {
|
|
|
388
420
|
type: 'select',
|
|
389
421
|
defaults: '',
|
|
390
422
|
options: [
|
|
391
|
-
|
|
392
|
-
{ id: '', label: '' },
|
|
393
|
-
/* @ts-ignore */
|
|
423
|
+
{ id: '', label: '' },
|
|
394
424
|
{ id: 'left', label: 'left' },
|
|
395
|
-
/* @ts-ignore */
|
|
396
425
|
{ id: 'center', label: 'center' },
|
|
397
|
-
/* @ts-ignore */
|
|
398
426
|
{ id: 'right', label: 'right' },
|
|
399
|
-
/* @ts-ignore */
|
|
400
427
|
{ id: 'justified', label: 'justified' },
|
|
428
|
+
{ id: 'inherit', label: 'inherit' },
|
|
429
|
+
{ id: 'initial', label: 'initial' },
|
|
430
|
+
{ id: 'unset', label: 'unset' },
|
|
401
431
|
],
|
|
402
|
-
}, { at: 6 })
|
|
432
|
+
}, { at: 6 })
|
|
403
433
|
editor.StyleManager.addProperty('typography', {
|
|
404
434
|
name: 'Word break',
|
|
405
435
|
property: 'word-break',
|
|
406
436
|
type: 'select',
|
|
407
437
|
defaults: '',
|
|
408
438
|
options: [
|
|
409
|
-
|
|
410
|
-
{ value: '', name: '' },
|
|
411
|
-
|
|
412
|
-
{ value: '
|
|
413
|
-
|
|
414
|
-
{ value: 'break-all', name: 'break-all' },
|
|
415
|
-
/* @ts-ignore */
|
|
416
|
-
{ value: 'keep-all', name: 'keep-all' },
|
|
417
|
-
/* @ts-ignore */
|
|
418
|
-
{ value: 'break-word', name: 'break-word' },
|
|
439
|
+
{ id: '', value: '', name: '' },
|
|
440
|
+
{ id: 'normal', value: 'normal', name: 'normal' },
|
|
441
|
+
{ id: 'break-all', value: 'break-all', name: 'break-all' },
|
|
442
|
+
{ id: 'keep-all', value: 'keep-all', name: 'keep-all' },
|
|
443
|
+
{ id: 'break-word', value: 'break-word', name: 'break-word' },
|
|
419
444
|
],
|
|
420
445
|
info: 'The word-break CSS property sets whether line breaks appear wherever the text would otherwise overflow its content box.',
|
|
421
446
|
}, { at: 7 })
|
|
@@ -425,12 +450,9 @@ export default (editor: Editor, opts) => {
|
|
|
425
450
|
type: 'select',
|
|
426
451
|
defaults: '',
|
|
427
452
|
options: [
|
|
428
|
-
|
|
429
|
-
{ value: '', name: '' },
|
|
430
|
-
|
|
431
|
-
{ value: 'normal', name: 'normal' },
|
|
432
|
-
/* @ts-ignore */
|
|
433
|
-
{ value: 'break-word', name: 'break-word' },
|
|
453
|
+
{ id: '', value: '', name: '' },
|
|
454
|
+
{ id: 'normal', value: 'normal', name: 'normal' },
|
|
455
|
+
{ id: 'break-word', value: 'break-word', name: 'break-word' },
|
|
434
456
|
],
|
|
435
457
|
info: 'The word-wrap CSS property sets whether the line may be broken within a word in order to prevent overflow when an otherwise unbreakable string is too long to fit in its containing box.',
|
|
436
458
|
}, { at: 8 })
|
|
@@ -440,20 +462,13 @@ export default (editor: Editor, opts) => {
|
|
|
440
462
|
type: 'select',
|
|
441
463
|
defaults: '',
|
|
442
464
|
options: [
|
|
443
|
-
|
|
444
|
-
{ value: '', name: '' },
|
|
445
|
-
|
|
446
|
-
{ value: '
|
|
447
|
-
|
|
448
|
-
{ value: '
|
|
449
|
-
|
|
450
|
-
{ value: 'pre', name: 'pre' },
|
|
451
|
-
/* @ts-ignore */
|
|
452
|
-
{ value: 'pre-wrap', name: 'pre-wrap' },
|
|
453
|
-
/* @ts-ignore */
|
|
454
|
-
{ value: 'pre-line', name: 'pre-line' },
|
|
455
|
-
/* @ts-ignore */
|
|
456
|
-
{ value: 'break-spaces', name: 'break-spaces' },
|
|
465
|
+
{ id: '', value: '', name: '' },
|
|
466
|
+
{ id: 'normal', value: 'normal', name: 'normal' },
|
|
467
|
+
{ id: 'nowrap', value: 'nowrap', name: 'nowrap' },
|
|
468
|
+
{ id: 'pre', value: 'pre', name: 'pre' },
|
|
469
|
+
{ id: 'pre-wrap', value: 'pre-wrap', name: 'pre-wrap' },
|
|
470
|
+
{ id: 'pre-line', value: 'pre-line', name: 'pre-line' },
|
|
471
|
+
{ id: 'break-spaces', value: 'break-spaces', name: 'break-spaces' },
|
|
457
472
|
],
|
|
458
473
|
info: 'The white-space CSS property sets how white space inside an element is handled.',
|
|
459
474
|
}, { at: 9 })
|
|
@@ -468,18 +483,12 @@ export default (editor: Editor, opts) => {
|
|
|
468
483
|
defaults: '',
|
|
469
484
|
fixedValues: ['auto', 'inherit', 'initial', 'revert', 'unset'],
|
|
470
485
|
options: [
|
|
471
|
-
|
|
472
|
-
{ value: '', name: '' },
|
|
473
|
-
|
|
474
|
-
{ value: '
|
|
475
|
-
|
|
476
|
-
{ value: '
|
|
477
|
-
/* @ts-ignore */
|
|
478
|
-
{ value: 'overline', name: 'overline' },
|
|
479
|
-
/* @ts-ignore */
|
|
480
|
-
{ value: 'line-through', name: 'line-through' },
|
|
481
|
-
/* @ts-ignore */
|
|
482
|
-
{ value: 'blink', name: 'blink' },
|
|
486
|
+
{ id: '', value: '', name: '' },
|
|
487
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
488
|
+
{ id: 'underline', value: 'underline', name: 'underline' },
|
|
489
|
+
{ id: 'overline', value: 'overline', name: 'overline' },
|
|
490
|
+
{ id: 'line-through', value: 'line-through', name: 'line-through' },
|
|
491
|
+
{ id: 'blink', value: 'blink', name: 'blink' },
|
|
483
492
|
],
|
|
484
493
|
info: 'The text-decoration CSS property sets the appearance of decorative lines on text.',
|
|
485
494
|
}, {
|
|
@@ -488,18 +497,12 @@ export default (editor: Editor, opts) => {
|
|
|
488
497
|
type: 'select',
|
|
489
498
|
defaults: '',
|
|
490
499
|
options: [
|
|
491
|
-
|
|
492
|
-
{ value: '', name: '' },
|
|
493
|
-
|
|
494
|
-
{ value: '
|
|
495
|
-
|
|
496
|
-
{ value: '
|
|
497
|
-
/* @ts-ignore */
|
|
498
|
-
{ value: 'dotted', name: 'dotted' },
|
|
499
|
-
/* @ts-ignore */
|
|
500
|
-
{ value: 'dashed', name: 'dashed' },
|
|
501
|
-
/* @ts-ignore */
|
|
502
|
-
{ value: 'wavy', name: 'wavy' },
|
|
500
|
+
{ id: '', value: '', name: '' },
|
|
501
|
+
{ id: 'solid', value: 'solid', name: 'solid' },
|
|
502
|
+
{ id: 'double', value: 'double', name: 'double' },
|
|
503
|
+
{ id: 'dotted', value: 'dotted', name: 'dotted' },
|
|
504
|
+
{ id: 'dashed', value: 'dashed', name: 'dashed' },
|
|
505
|
+
{ id: 'wavy', value: 'wavy', name: 'wavy' },
|
|
503
506
|
],
|
|
504
507
|
info: 'The text-decoration-style CSS property sets the style of the lines specified by text-decoration-line. The style applies to all lines, there is no way to define different styles for each of the lines.',
|
|
505
508
|
}, {
|
|
@@ -525,16 +528,11 @@ export default (editor: Editor, opts) => {
|
|
|
525
528
|
type: 'select',
|
|
526
529
|
defaults: '',
|
|
527
530
|
options: [
|
|
528
|
-
|
|
529
|
-
{ value: '', name: '' },
|
|
530
|
-
|
|
531
|
-
{ value: '
|
|
532
|
-
|
|
533
|
-
{ value: 'capitalize', name: 'capitalize' },
|
|
534
|
-
/* @ts-ignore */
|
|
535
|
-
{ value: 'uppercase', name: 'uppercase' },
|
|
536
|
-
/* @ts-ignore */
|
|
537
|
-
{ value: 'lowercase', name: 'lowercase' },
|
|
531
|
+
{ id: '', value: '', name: '' },
|
|
532
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
533
|
+
{ id: 'capitalize', value: 'capitalize', name: 'capitalize' },
|
|
534
|
+
{ id: 'uppercase', value: 'uppercase', name: 'uppercase' },
|
|
535
|
+
{ id: 'lowercase', value: 'lowercase', name: 'lowercase' },
|
|
538
536
|
],
|
|
539
537
|
info: 'The text-transform CSS property sets how to capitalize an element\'s text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.',
|
|
540
538
|
}, { at: 11 })
|
|
@@ -544,18 +542,18 @@ export default (editor: Editor, opts) => {
|
|
|
544
542
|
type: 'select',
|
|
545
543
|
defaults: '',
|
|
546
544
|
options: [
|
|
547
|
-
|
|
548
|
-
{ value: '', name: '' },
|
|
549
|
-
|
|
550
|
-
{ value: '
|
|
551
|
-
|
|
552
|
-
{ value: '
|
|
545
|
+
{ id: '', value: '', name: '' },
|
|
546
|
+
{ id: 'clip', value: 'clip', name: 'clip' },
|
|
547
|
+
{ id: 'ellipsis', value: 'ellipsis', name: 'ellipsis' },
|
|
548
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
549
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
550
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
553
551
|
],
|
|
554
552
|
info: 'The text-overflow CSS property sets how hidden overflow content is signaled to users. It can be clipped, display an ellipsis (\'…\', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string. It covers the two long-hand properties text-overflow-clip and text-overflow-string.',
|
|
555
553
|
}, { at: 12 })
|
|
556
|
-
/***************/
|
|
554
|
+
/***************/
|
|
557
555
|
/* Decorations */
|
|
558
|
-
/***************/
|
|
556
|
+
/***************/
|
|
559
557
|
editor.StyleManager.removeProperty('decorations', 'background-color')
|
|
560
558
|
editor.StyleManager.addProperty('decorations', {
|
|
561
559
|
name: 'Background color',
|
|
@@ -565,7 +563,7 @@ export default (editor: Editor, opts) => {
|
|
|
565
563
|
full: true,
|
|
566
564
|
}, { at: 0 })
|
|
567
565
|
editor.StyleManager.removeProperty('decorations', 'border-radius')
|
|
568
|
-
editor.StyleManager.addProperty('decorations', {
|
|
566
|
+
editor.StyleManager.addProperty('decorations', {
|
|
569
567
|
name: 'Border radius',
|
|
570
568
|
property: 'border-radius',
|
|
571
569
|
type: 'composite',
|
|
@@ -621,28 +619,17 @@ export default (editor: Editor, opts) => {
|
|
|
621
619
|
type: 'select',
|
|
622
620
|
defaults: '',
|
|
623
621
|
options: [
|
|
624
|
-
|
|
625
|
-
{ value: '', name: '' },
|
|
626
|
-
|
|
627
|
-
{ value: '
|
|
628
|
-
|
|
629
|
-
{ value: '
|
|
630
|
-
|
|
631
|
-
{ value: '
|
|
632
|
-
|
|
633
|
-
{ value: '
|
|
634
|
-
|
|
635
|
-
{ value: 'solid', name: 'solid' },
|
|
636
|
-
/* @ts-ignore */
|
|
637
|
-
{ value: 'double', name: 'double' },
|
|
638
|
-
/* @ts-ignore */
|
|
639
|
-
{ value: 'groove', name: 'groove' },
|
|
640
|
-
/* @ts-ignore */
|
|
641
|
-
{ value: 'ridge', name: 'ridge' },
|
|
642
|
-
/* @ts-ignore */
|
|
643
|
-
{ value: 'inset', name: 'inset' },
|
|
644
|
-
/* @ts-ignore */
|
|
645
|
-
{ value: 'outset', name: 'outset' },
|
|
622
|
+
{ id: '', value: '', name: '' },
|
|
623
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
624
|
+
{ id: 'hidden', value: 'hidden', name: 'hidden' },
|
|
625
|
+
{ id: 'dotted', value: 'dotted', name: 'dotted' },
|
|
626
|
+
{ id: 'dashed', value: 'dashed', name: 'dashed' },
|
|
627
|
+
{ id: 'solid', value: 'solid', name: 'solid' },
|
|
628
|
+
{ id: 'double', value: 'double', name: 'double' },
|
|
629
|
+
{ id: 'groove', value: 'groove', name: 'groove' },
|
|
630
|
+
{ id: 'ridge', value: 'ridge', name: 'ridge' },
|
|
631
|
+
{ id: 'inset', value: 'inset', name: 'inset' },
|
|
632
|
+
{ id: 'outset', value: 'outset', name: 'outset' },
|
|
646
633
|
],
|
|
647
634
|
info: 'The outline-style CSS property sets the style of an element\'s outline. An outline is a line that is drawn around an element, outside the border.',
|
|
648
635
|
}, {
|
|
@@ -653,9 +640,9 @@ export default (editor: Editor, opts) => {
|
|
|
653
640
|
info: 'The outline-color CSS property sets the color of an element\'s outline.',
|
|
654
641
|
}],
|
|
655
642
|
}, { at: 8 })
|
|
656
|
-
/***************/
|
|
643
|
+
/***************/
|
|
657
644
|
/* Extra */
|
|
658
|
-
/***************/
|
|
645
|
+
/***************/
|
|
659
646
|
editor.StyleManager.addProperty('extra', {
|
|
660
647
|
name: 'Z index',
|
|
661
648
|
property: 'z-index',
|
|
@@ -674,28 +661,20 @@ export default (editor: Editor, opts) => {
|
|
|
674
661
|
type: 'select',
|
|
675
662
|
defaults: '',
|
|
676
663
|
options: [
|
|
677
|
-
|
|
678
|
-
{ value: '', name: '' },
|
|
679
|
-
|
|
680
|
-
{ value: '
|
|
681
|
-
|
|
682
|
-
{ value: '
|
|
683
|
-
|
|
684
|
-
{ value: '
|
|
685
|
-
|
|
686
|
-
{ value: '
|
|
687
|
-
|
|
688
|
-
{ value: '
|
|
689
|
-
|
|
690
|
-
{ value: '
|
|
691
|
-
/* @ts-ignore */
|
|
692
|
-
{ value: 'painted', name: 'painted' },
|
|
693
|
-
/* @ts-ignore */
|
|
694
|
-
{ value: 'fill', name: 'fill' },
|
|
695
|
-
/* @ts-ignore */
|
|
696
|
-
{ value: 'stroke', name: 'stroke' },
|
|
697
|
-
/* @ts-ignore */
|
|
698
|
-
{ value: 'all', name: 'all' },
|
|
664
|
+
{ id: '', value: '', name: '' },
|
|
665
|
+
{ id: 'auto', value: 'auto', name: 'auto' },
|
|
666
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
667
|
+
{ id: 'visiblePainted', value: 'visiblePainted', name: 'visiblePainted' },
|
|
668
|
+
{ id: 'visibleFill', value: 'visibleFill', name: 'visibleFill' },
|
|
669
|
+
{ id: 'visibleStroke', value: 'visibleStroke', name: 'visibleStroke' },
|
|
670
|
+
{ id: 'visible', value: 'visible', name: 'visible' },
|
|
671
|
+
{ id: 'painted', value: 'painted', name: 'painted' },
|
|
672
|
+
{ id: 'fill', value: 'fill', name: 'fill' },
|
|
673
|
+
{ id: 'stroke', value: 'stroke', name: 'stroke' },
|
|
674
|
+
{ id: 'all', value: 'all', name: 'all' },
|
|
675
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
676
|
+
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
677
|
+
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
699
678
|
],
|
|
700
679
|
info: 'The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.',
|
|
701
680
|
}, { at: 2 })
|
|
@@ -705,80 +684,43 @@ export default (editor: Editor, opts) => {
|
|
|
705
684
|
type: 'select',
|
|
706
685
|
defaults: '',
|
|
707
686
|
options: [
|
|
708
|
-
|
|
709
|
-
{ value: '', name: '' },
|
|
710
|
-
|
|
711
|
-
{ value: '
|
|
712
|
-
|
|
713
|
-
{ value: '
|
|
714
|
-
|
|
715
|
-
{ value: '
|
|
716
|
-
|
|
717
|
-
{ value: '
|
|
718
|
-
|
|
719
|
-
{ value: '
|
|
720
|
-
|
|
721
|
-
{ value: '
|
|
722
|
-
|
|
723
|
-
{ value: '
|
|
724
|
-
|
|
725
|
-
{ value: '
|
|
726
|
-
|
|
727
|
-
{ value: '
|
|
728
|
-
|
|
729
|
-
{ value: '
|
|
730
|
-
|
|
731
|
-
{ value: '
|
|
732
|
-
|
|
733
|
-
{ value: '
|
|
734
|
-
|
|
735
|
-
{ value: '
|
|
736
|
-
|
|
737
|
-
{ value: '
|
|
738
|
-
|
|
739
|
-
{ value: '
|
|
740
|
-
|
|
741
|
-
{ value: '
|
|
742
|
-
|
|
743
|
-
{ value: '
|
|
744
|
-
|
|
745
|
-
{ value: 'grab', name: 'grab' },
|
|
746
|
-
/* @ts-ignore */
|
|
747
|
-
{ value: 'grabbing', name: 'grabbing' },
|
|
748
|
-
/* @ts-ignore */
|
|
749
|
-
{ value: 'all-scroll', name: 'all-scroll' },
|
|
750
|
-
/* @ts-ignore */
|
|
751
|
-
{ value: 'col-resize', name: 'col-resize' },
|
|
752
|
-
/* @ts-ignore */
|
|
753
|
-
{ value: 'row-resize', name: 'row-resize' },
|
|
754
|
-
/* @ts-ignore */
|
|
755
|
-
{ value: 'n-resize', name: 'n-resize' },
|
|
756
|
-
/* @ts-ignore */
|
|
757
|
-
{ value: 'e-resize', name: 'e-resize' },
|
|
758
|
-
/* @ts-ignore */
|
|
759
|
-
{ value: 's-resize', name: 's-resize' },
|
|
760
|
-
/* @ts-ignore */
|
|
761
|
-
{ value: 'w-resize', name: 'w-resize' },
|
|
762
|
-
/* @ts-ignore */
|
|
763
|
-
{ value: 'ne-resize', name: 'ne-resize' },
|
|
764
|
-
/* @ts-ignore */
|
|
765
|
-
{ value: 'nw-resize', name: 'nw-resize' },
|
|
766
|
-
/* @ts-ignore */
|
|
767
|
-
{ value: 'se-resize', name: 'se-resize' },
|
|
768
|
-
/* @ts-ignore */
|
|
769
|
-
{ value: 'sw-resize', name: 'sw-resize' },
|
|
770
|
-
/* @ts-ignore */
|
|
771
|
-
{ value: 'ew-resize', name: 'ew-resize' },
|
|
772
|
-
/* @ts-ignore */
|
|
773
|
-
{ value: 'ns-resize', name: 'ns-resize' },
|
|
774
|
-
/* @ts-ignore */
|
|
775
|
-
{ value: 'nesw-resize', name: 'nesw-resize' },
|
|
776
|
-
/* @ts-ignore */
|
|
777
|
-
{ value: 'nwse-resize', name: 'nwse-resize' },
|
|
778
|
-
/* @ts-ignore */
|
|
779
|
-
{ value: 'zoom-in', name: 'zoom-in' },
|
|
780
|
-
/* @ts-ignore */
|
|
781
|
-
{ value: 'zoom-out', name: 'zoom-out' },
|
|
687
|
+
{ id: '', value: '', name: '' },
|
|
688
|
+
{ id: 'auto', value: 'auto', name: 'auto' },
|
|
689
|
+
{ id: 'default', value: 'default', name: 'default' },
|
|
690
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
691
|
+
{ id: 'context-menu', value: 'context-menu', name: 'context-menu' },
|
|
692
|
+
{ id: 'help', value: 'help', name: 'help' },
|
|
693
|
+
{ id: 'pointer', value: 'pointer', name: 'pointer' },
|
|
694
|
+
{ id: 'progress', value: 'progress', name: 'progress' },
|
|
695
|
+
{ id: 'wait', value: 'wait', name: 'wait' },
|
|
696
|
+
{ id: 'cell', value: 'cell', name: 'cell' },
|
|
697
|
+
{ id: 'crosshair', value: 'crosshair', name: 'crosshair' },
|
|
698
|
+
{ id: 'text', value: 'text', name: 'text' },
|
|
699
|
+
{ id: 'vertical-text', value: 'vertical-text', name: 'vertical-text' },
|
|
700
|
+
{ id: 'alias', value: 'alias', name: 'alias' },
|
|
701
|
+
{ id: 'copy', value: 'copy', name: 'copy' },
|
|
702
|
+
{ id: 'move', value: 'move', name: 'move' },
|
|
703
|
+
{ id: 'no-drop', value: 'no-drop', name: 'no-drop' },
|
|
704
|
+
{ id: 'not-allowed', value: 'not-allowed', name: 'not-allowed' },
|
|
705
|
+
{ id: 'grab', value: 'grab', name: 'grab' },
|
|
706
|
+
{ id: 'grabbing', value: 'grabbing', name: 'grabbing' },
|
|
707
|
+
{ id: 'all-scroll', value: 'all-scroll', name: 'all-scroll' },
|
|
708
|
+
{ id: 'col-resize', value: 'col-resize', name: 'col-resize' },
|
|
709
|
+
{ id: 'row-resize', value: 'row-resize', name: 'row-resize' },
|
|
710
|
+
{ id: 'n-resize', value: 'n-resize', name: 'n-resize' },
|
|
711
|
+
{ id: 'e-resize', value: 'e-resize', name: 'e-resize' },
|
|
712
|
+
{ id: 's-resize', value: 's-resize', name: 's-resize' },
|
|
713
|
+
{ id: 'w-resize', value: 'w-resize', name: 'w-resize' },
|
|
714
|
+
{ id: 'ne-resize', value: 'ne-resize', name: 'ne-resize' },
|
|
715
|
+
{ id: 'nw-resize', value: 'nw-resize', name: 'nw-resize' },
|
|
716
|
+
{ id: 'se-resize', value: 'se-resize', name: 'se-resize' },
|
|
717
|
+
{ id: 'sw-resize', value: 'sw-resize', name: 'sw-resize' },
|
|
718
|
+
{ id: 'ew-resize', value: 'ew-resize', name: 'ew-resize' },
|
|
719
|
+
{ id: 'ns-resize', value: 'ns-resize', name: 'ns-resize' },
|
|
720
|
+
{ id: 'nesw-resize', value: 'nesw-resize', name: 'nesw-resize' },
|
|
721
|
+
{ id: 'nwse-resize', value: 'nwse-resize', name: 'nwse-resize' },
|
|
722
|
+
{ id: 'zoom-in', value: 'zoom-in', name: 'zoom-in' },
|
|
723
|
+
{ id: 'zoom-out', value: 'zoom-out', name: 'zoom-out' },
|
|
782
724
|
],
|
|
783
725
|
info: 'The cursor CSS property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element.',
|
|
784
726
|
}, { at: 3 })
|
|
@@ -828,30 +770,18 @@ export default (editor: Editor, opts) => {
|
|
|
828
770
|
type: 'select',
|
|
829
771
|
defaults: '',
|
|
830
772
|
options: [
|
|
831
|
-
|
|
832
|
-
{ value: '', name: '' },
|
|
833
|
-
|
|
834
|
-
{ value: '
|
|
835
|
-
|
|
836
|
-
{ value: '
|
|
837
|
-
|
|
838
|
-
{ value: '
|
|
839
|
-
|
|
840
|
-
{ value: '
|
|
841
|
-
|
|
842
|
-
{ value: '
|
|
843
|
-
/* @ts-ignore */
|
|
844
|
-
{ value: 'double', name: 'double' },
|
|
845
|
-
/* @ts-ignore */
|
|
846
|
-
{ value: 'groove', name: 'groove' },
|
|
847
|
-
/* @ts-ignore */
|
|
848
|
-
{ value: 'ridge', name: 'ridge' },
|
|
849
|
-
/* @ts-ignore */
|
|
850
|
-
{ value: 'inset', name: 'inset' },
|
|
851
|
-
/* @ts-ignore */
|
|
852
|
-
{ value: 'outset', name: 'outset' },
|
|
853
|
-
/* @ts-ignore */
|
|
854
|
-
{ value: 'inherit', name: 'inherit' },
|
|
773
|
+
{ id: '', value: '', name: '' },
|
|
774
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
775
|
+
{ id: 'hidden', value: 'hidden', name: 'hidden' },
|
|
776
|
+
{ id: 'dotted', value: 'dotted', name: 'dotted' },
|
|
777
|
+
{ id: 'dashed', value: 'dashed', name: 'dashed' },
|
|
778
|
+
{ id: 'solid', value: 'solid', name: 'solid' },
|
|
779
|
+
{ id: 'double', value: 'double', name: 'double' },
|
|
780
|
+
{ id: 'groove', value: 'groove', name: 'groove' },
|
|
781
|
+
{ id: 'ridge', value: 'ridge', name: 'ridge' },
|
|
782
|
+
{ id: 'inset', value: 'inset', name: 'inset' },
|
|
783
|
+
{ id: 'outset', value: 'outset', name: 'outset' },
|
|
784
|
+
{ id: 'inherit', value: 'inherit', name: 'inherit' },
|
|
855
785
|
],
|
|
856
786
|
info: 'The column-rule-style CSS property sets the style of the line drawn between columns in a multi-column layout.',
|
|
857
787
|
}, {
|
|
@@ -868,12 +798,9 @@ export default (editor: Editor, opts) => {
|
|
|
868
798
|
type: 'select',
|
|
869
799
|
defaults: '',
|
|
870
800
|
options: [
|
|
871
|
-
|
|
872
|
-
{ value: '', name: '' },
|
|
873
|
-
|
|
874
|
-
{ value: 'none', name: 'none' },
|
|
875
|
-
/* @ts-ignore */
|
|
876
|
-
{ value: 'all', name: 'all' },
|
|
801
|
+
{ id: '', value: '', name: '' },
|
|
802
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
803
|
+
{ id: 'all', value: 'all', name: 'all' },
|
|
877
804
|
],
|
|
878
805
|
info: 'The column-span CSS property makes it possible for an element to span across all columns when its value is set to all.',
|
|
879
806
|
}, { at: 8 })
|