@nixweb/nixloc-ui 0.0.96 → 0.0.99

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.
Files changed (83) hide show
  1. package/ckeditor5/LICENSE.md +49 -0
  2. package/ckeditor5/README.md +68 -0
  3. package/ckeditor5/build/ckeditor.js +6 -0
  4. package/ckeditor5/build/ckeditor.js.map +1 -0
  5. package/ckeditor5/build/translations/af.js +1 -0
  6. package/ckeditor5/build/translations/ar.js +1 -0
  7. package/ckeditor5/build/translations/ast.js +1 -0
  8. package/ckeditor5/build/translations/az.js +1 -0
  9. package/ckeditor5/build/translations/bg.js +1 -0
  10. package/ckeditor5/build/translations/bs.js +1 -0
  11. package/ckeditor5/build/translations/ca.js +1 -0
  12. package/ckeditor5/build/translations/cs.js +1 -0
  13. package/ckeditor5/build/translations/da.js +1 -0
  14. package/ckeditor5/build/translations/de-ch.js +1 -0
  15. package/ckeditor5/build/translations/de.js +1 -0
  16. package/ckeditor5/build/translations/el.js +1 -0
  17. package/ckeditor5/build/translations/en-au.js +1 -0
  18. package/ckeditor5/build/translations/en-gb.js +1 -0
  19. package/ckeditor5/build/translations/en.js +1 -0
  20. package/ckeditor5/build/translations/eo.js +1 -0
  21. package/ckeditor5/build/translations/es.js +1 -0
  22. package/ckeditor5/build/translations/et.js +1 -0
  23. package/ckeditor5/build/translations/eu.js +1 -0
  24. package/ckeditor5/build/translations/fa.js +1 -0
  25. package/ckeditor5/build/translations/fi.js +1 -0
  26. package/ckeditor5/build/translations/fr.js +1 -0
  27. package/ckeditor5/build/translations/gl.js +1 -0
  28. package/ckeditor5/build/translations/gu.js +1 -0
  29. package/ckeditor5/build/translations/he.js +1 -0
  30. package/ckeditor5/build/translations/hi.js +1 -0
  31. package/ckeditor5/build/translations/hr.js +1 -0
  32. package/ckeditor5/build/translations/hu.js +1 -0
  33. package/ckeditor5/build/translations/id.js +1 -0
  34. package/ckeditor5/build/translations/it.js +1 -0
  35. package/ckeditor5/build/translations/ja.js +1 -0
  36. package/ckeditor5/build/translations/kk.js +1 -0
  37. package/ckeditor5/build/translations/km.js +1 -0
  38. package/ckeditor5/build/translations/kn.js +1 -0
  39. package/ckeditor5/build/translations/ko.js +1 -0
  40. package/ckeditor5/build/translations/ku.js +1 -0
  41. package/ckeditor5/build/translations/lt.js +1 -0
  42. package/ckeditor5/build/translations/lv.js +1 -0
  43. package/ckeditor5/build/translations/nb.js +1 -0
  44. package/ckeditor5/build/translations/ne.js +1 -0
  45. package/ckeditor5/build/translations/nl.js +1 -0
  46. package/ckeditor5/build/translations/no.js +1 -0
  47. package/ckeditor5/build/translations/oc.js +1 -0
  48. package/ckeditor5/build/translations/pl.js +1 -0
  49. package/ckeditor5/build/translations/pt.js +1 -0
  50. package/ckeditor5/build/translations/ro.js +1 -0
  51. package/ckeditor5/build/translations/ru.js +1 -0
  52. package/ckeditor5/build/translations/si.js +1 -0
  53. package/ckeditor5/build/translations/sk.js +1 -0
  54. package/ckeditor5/build/translations/sl.js +1 -0
  55. package/ckeditor5/build/translations/sq.js +1 -0
  56. package/ckeditor5/build/translations/sr-latn.js +1 -0
  57. package/ckeditor5/build/translations/sr.js +1 -0
  58. package/ckeditor5/build/translations/sv.js +1 -0
  59. package/ckeditor5/build/translations/th.js +1 -0
  60. package/ckeditor5/build/translations/tk.js +1 -0
  61. package/ckeditor5/build/translations/tr.js +1 -0
  62. package/ckeditor5/build/translations/tt.js +1 -0
  63. package/ckeditor5/build/translations/ug.js +1 -0
  64. package/ckeditor5/build/translations/uk.js +1 -0
  65. package/ckeditor5/build/translations/uz.js +1 -0
  66. package/ckeditor5/build/translations/vi.js +1 -0
  67. package/ckeditor5/build/translations/zh-cn.js +1 -0
  68. package/ckeditor5/build/translations/zh.js +1 -0
  69. package/ckeditor5/package.json +41 -0
  70. package/ckeditor5/sample/index.html +133 -0
  71. package/ckeditor5/sample/styles.css +500 -0
  72. package/ckeditor5/src/ckeditor.js +122 -0
  73. package/ckeditor5/webpack.config.js +96 -0
  74. package/package.json +9 -2
  75. package/src/component/shared/CabecalhoImpressao.vue +36 -0
  76. package/src/component/shared/DocumentoEditor.vue +134 -0
  77. package/src/component/shared/DocumentoPreview.vue +25 -0
  78. package/src/component/shared/ExportarExcel.vue +67 -0
  79. package/src/component/shared/{Imprimir.vue → ExportarPDF.vue} +5 -3
  80. package/src/component/shared/query-builder/Tags.vue +2 -38
  81. package/src/component/template/ModeloRelatorioView.vue +34 -21
  82. package/src/store/modulos/generic.js +1 -1
  83. package/src/store/modulos/relatorio.js +35 -3
@@ -0,0 +1,500 @@
1
+ /**
2
+ * @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ * This file is licensed under the terms of the MIT License (see LICENSE.md).
4
+ */
5
+
6
+ :root {
7
+ --ck-sample-base-spacing: 2em;
8
+ --ck-sample-color-white: #fff;
9
+ --ck-sample-color-green: #279863;
10
+ --ck-sample-color-blue: #1a9aef;
11
+ --ck-sample-container-width: 1285px;
12
+ --ck-sample-sidebar-width: 350px;
13
+ --ck-sample-editor-min-height: 400px;
14
+ --ck-sample-editor-z-index: 10;
15
+ }
16
+
17
+ /* --------- EDITOR STYLES ---------------------------------------------------------------------------------------- */
18
+
19
+ .editor__editable,
20
+ /* Classic build. */
21
+ main .ck-editor[role='application'] .ck.ck-content,
22
+ /* Decoupled document build. */
23
+ .ck.editor__editable[role='textbox'],
24
+ .ck.ck-editor__editable[role='textbox'],
25
+ /* Inline & Balloon build. */
26
+ .ck.editor[role='textbox'] {
27
+ width: 100%;
28
+ background: #fff;
29
+ font-size: 1em;
30
+ line-height: 1.6em;
31
+ min-height: var(--ck-sample-editor-min-height);
32
+ padding: 1.5em 2em;
33
+ }
34
+
35
+ main .ck-editor[role='application'] {
36
+ overflow: auto;
37
+ }
38
+
39
+ .ck.ck-editor__editable {
40
+ background: #fff;
41
+ border: 1px solid hsl(0, 0%, 70%);
42
+ width: 100%;
43
+ }
44
+
45
+ /* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */
46
+ .ck.ck-editor__editable {
47
+ position: relative;
48
+ z-index: var(--ck-sample-editor-z-index);
49
+ }
50
+
51
+ .editor-container {
52
+ display: flex;
53
+ flex-direction: row;
54
+ flex-wrap: nowrap;
55
+ position: relative;
56
+ width: 100%;
57
+ justify-content: center;
58
+ }
59
+
60
+ /* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/
61
+ body[data-editor='DecoupledDocumentEditor'] .document-editor__toolbar {
62
+ width: 100%;
63
+ }
64
+
65
+ body[data-editor='DecoupledDocumentEditor'] .collaboration-demo__editable,
66
+ body[data-editor='DecoupledDocumentEditor'] .row-editor .editor {
67
+ /* A pixel is added for each of the border. */
68
+ width: calc(21cm + 2px);
69
+ min-height: calc(29.7cm + 2px);
70
+ /* To avoid having extra scrolls inside the editor container. */
71
+ height: fit-content;
72
+ padding: 2cm 1.2cm;
73
+ margin: 2.5rem;
74
+ border: 1px hsl( 0, 0%, 82.7% ) solid;
75
+ background-color: var(--ck-sample-color-white);
76
+ box-shadow: 0 0 5px hsla( 0, 0%, 0%, .1 );
77
+ box-sizing: border-box;
78
+ }
79
+
80
+ body[data-editor='DecoupledDocumentEditor'] .row-editor {
81
+ display: flex;
82
+ position: relative;
83
+ justify-content: center;
84
+ overflow-y: auto;
85
+ background-color: #f2f2f2;
86
+ border: 1px solid hsl(0, 0%, 77%);
87
+ /* Limit the max-height of the editor to avoid scrolling from bottom to top to see the toolbar. */
88
+ max-height: 700px;
89
+ }
90
+
91
+ body[data-editor='DecoupledDocumentEditor'] .sidebar {
92
+ background: transparent;
93
+ border: 0;
94
+ box-shadow: none;
95
+ }
96
+
97
+ /* --------- COMMENTS & TRACK CHANGES FEATURE ---------------------------------------------------------------------- */
98
+ .sidebar {
99
+ padding: 0 15px;
100
+ position: relative;
101
+ min-width: var(--ck-sample-sidebar-width);
102
+ max-width: var(--ck-sample-sidebar-width);
103
+ font-size: 20px;
104
+ border: 1px solid hsl(0, 0%, 77%);
105
+ background: hsl(0, 0%, 98%);
106
+ border-left: 0;
107
+ overflow: hidden;
108
+ min-height: 100%;
109
+ flex-grow: 1;
110
+ }
111
+
112
+ /* Do not inherit styles related to the editable editor content. See line 25.*/
113
+ .sidebar .ck-content[role='textbox'],
114
+ .ck.ck-annotation-wrapper .ck-content[role='textbox'] {
115
+ min-height: unset;
116
+ width: unset;
117
+ padding: 0;
118
+ background: transparent;
119
+ }
120
+
121
+ .sidebar.narrow {
122
+ min-width: 60px;
123
+ flex-grow: 0;
124
+ }
125
+
126
+ .sidebar.hidden {
127
+ display: none !important;
128
+ }
129
+
130
+ #sidebar-display-toggle {
131
+ position: absolute;
132
+ z-index: 1;
133
+ width: 30px;
134
+ height: 30px;
135
+ text-align: center;
136
+ left: 15px;
137
+ top: 30px;
138
+ border: 0;
139
+ padding: 0;
140
+ color: hsl( 0, 0%, 50% );
141
+ transition: 250ms ease color;
142
+ background-color: transparent;
143
+ }
144
+
145
+ #sidebar-display-toggle:hover {
146
+ color: hsl( 0, 0%, 30% );
147
+ cursor: pointer;
148
+ }
149
+
150
+ #sidebar-display-toggle:focus,
151
+ #sidebar-display-toggle:active {
152
+ outline: none;
153
+ border: 1px solid #a9d29d;
154
+ }
155
+
156
+ #sidebar-display-toggle svg {
157
+ fill: currentColor;
158
+ }
159
+
160
+ /* --------- COLLABORATION FEATURES (USERS) ------------------------------------------------------------------------ */
161
+ .row-presence {
162
+ width: 100%;
163
+ border: 1px solid hsl(0, 0%, 77%);
164
+ border-bottom: 0;
165
+ background: hsl(0, 0%, 98%);
166
+ padding: var(--ck-spacing-small);
167
+
168
+ /* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */
169
+ box-shadow: 0 1px 0 0 hsl(0, 0%, 77%);
170
+
171
+ /* Make `z-index` bigger than `.editor` to properly display tooltips. */
172
+ z-index: 20;
173
+ }
174
+
175
+ .ck.ck-presence-list {
176
+ flex: 1;
177
+ padding: 1.25rem .75rem;
178
+ }
179
+
180
+ .presence .ck.ck-presence-list__counter {
181
+ order: 2;
182
+ margin-left: var(--ck-spacing-large)
183
+ }
184
+
185
+ /* --------- REAL TIME COLLABORATION FEATURES (SHARE TOPBAR CONTAINER) --------------------------------------------- */
186
+ .collaboration-demo__row {
187
+ display: flex;
188
+ position: relative;
189
+ justify-content: center;
190
+ overflow-y: auto;
191
+ background-color: #f2f2f2;
192
+ border: 1px solid hsl(0, 0%, 77%);
193
+ }
194
+
195
+ body[data-editor='InlineEditor'] .collaboration-demo__row {
196
+ border: 0;
197
+ }
198
+
199
+ .collaboration-demo__container {
200
+ max-width: var(--ck-sample-container-width);
201
+ margin: 0 auto;
202
+ padding: 1.25rem;
203
+ }
204
+
205
+ .presence, .collaboration-demo__row {
206
+ transition: .2s opacity;
207
+ }
208
+
209
+ .collaboration-demo__topbar {
210
+ background: #fff;
211
+ border: 1px solid var(--ck-color-toolbar-border);
212
+ display: flex;
213
+ justify-content: space-between;
214
+ align-items: center;
215
+ border-bottom: 0;
216
+ border-radius: 4px 4px 0 0;
217
+ }
218
+
219
+ .collaboration-demo__topbar .btn {
220
+ margin-right: 1em;
221
+ outline-offset: 2px;
222
+ outline-width: 2px;
223
+ background-color: var( --ck-sample-color-blue );
224
+ }
225
+
226
+ .collaboration-demo__topbar .btn:focus,
227
+ .collaboration-demo__topbar .btn:hover {
228
+ border-color: var( --ck-sample-color-blue );
229
+ }
230
+
231
+ .collaboration-demo__share {
232
+ display: flex;
233
+ align-items: center;
234
+ padding: 1.25rem .75rem
235
+ }
236
+
237
+ .collaboration-demo__share-description p {
238
+ margin: 0;
239
+ font-weight: bold;
240
+ font-size: 0.9em;
241
+ }
242
+
243
+ .collaboration-demo__share input {
244
+ height: auto;
245
+ font-size: 0.9em;
246
+ min-width: 220px;
247
+ margin: 0 10px;
248
+ border-radius: 4px;
249
+ border: 1px solid var(--ck-color-toolbar-border)
250
+ }
251
+
252
+ .collaboration-demo__share button,
253
+ .collaboration-demo__share input {
254
+ height: 40px;
255
+ padding: 5px 10px;
256
+ }
257
+
258
+ .collaboration-demo__share button {
259
+ position: relative;
260
+ }
261
+
262
+ .collaboration-demo__share button:focus {
263
+ outline: none;
264
+ }
265
+
266
+ .collaboration-demo__share button[data-tooltip]::before,
267
+ .collaboration-demo__share button[data-tooltip]::after {
268
+ position: absolute;
269
+ visibility: hidden;
270
+ opacity: 0;
271
+ pointer-events: none;
272
+ transition: all .15s cubic-bezier(.5,1,.25,1);
273
+ z-index: 1;
274
+ }
275
+
276
+ .collaboration-demo__share button[data-tooltip]::before {
277
+ content: attr(data-tooltip);
278
+ padding: 5px 15px;
279
+ border-radius: 3px;
280
+ background: #111;
281
+ color: #fff;
282
+ text-align: center;
283
+ font-size: 11px;
284
+ top: 100%;
285
+ left: 50%;
286
+ margin-top: 5px;
287
+ transform: translateX(-50%);
288
+ }
289
+
290
+ .collaboration-demo__share button[data-tooltip]::after {
291
+ content: '';
292
+ border: 5px solid transparent;
293
+ width: 0;
294
+ font-size: 0;
295
+ line-height: 0;
296
+ top: 100%;
297
+ left: 50%;
298
+ transform: translateX(-50%);
299
+ border-bottom: 5px solid #111;
300
+ border-top: none;
301
+ }
302
+
303
+ .collaboration-demo__share button[data-tooltip]:hover:before,
304
+ .collaboration-demo__share button[data-tooltip]:hover:after {
305
+ visibility: visible;
306
+ opacity: 1;
307
+ }
308
+
309
+ .collaboration-demo--ready {
310
+ overflow: visible;
311
+ height: auto;
312
+ }
313
+
314
+ .collaboration-demo--ready .presence,
315
+ .collaboration-demo--ready .collaboration-demo__row {
316
+ opacity: 1;
317
+ }
318
+
319
+ /* --------- PAGINATION FEATURE ------------------------------------------------------------------------------------ */
320
+
321
+ /* Pagination view line must be stacked at least at the same level as the editor,
322
+ otherwise it will be hidden underneath. */
323
+ .ck.ck-pagination-view-line {
324
+ z-index: var(--ck-sample-editor-z-index);
325
+ }
326
+
327
+ /* --------- REVISION HISTORY FEATURE ------------------------------------------------------------------------------ */
328
+
329
+ .revision-viewer-container {
330
+ display: none;
331
+ }
332
+
333
+ .revision-viewer-sidebar {
334
+ position: relative;
335
+ min-width: 310px;
336
+ overflow: hidden;
337
+ background: var(--ck-color-toolbar-background);
338
+ border: 1px solid var(--ck-color-toolbar-border);
339
+ margin-left: -1px;
340
+ }
341
+
342
+ /* A case when Pagination and Revision History features are enabled in the editor. */
343
+ /* Move the square with page number from the Pagination plugin to the left side, so that it does not cover the RH sidebar. */
344
+ body[data-revision-history='true'] .ck.ck-pagination-view-line::after {
345
+ transform: translateX(-100%) !important;
346
+ left: -1px !important;
347
+ right: unset !important;
348
+ }
349
+
350
+ /* --------- SAMPLE GENERIC STYLES (not related to CKEditor) ------------------------------------------------------- */
351
+ body, html {
352
+ padding: 0;
353
+ margin: 0;
354
+
355
+ font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
356
+ font-size: 16px;
357
+ line-height: 1.5;
358
+ }
359
+
360
+ body {
361
+ height: 100%;
362
+ color: #2D3A4A;
363
+ }
364
+
365
+ body * {
366
+ box-sizing: border-box;
367
+ }
368
+
369
+ a {
370
+ color: #38A5EE;
371
+ }
372
+
373
+ header .centered {
374
+ display: flex;
375
+ flex-flow: row nowrap;
376
+ justify-content: space-between;
377
+ align-items: center;
378
+ min-height: 8em;
379
+ }
380
+
381
+ header h1 a {
382
+ font-size: 20px;
383
+ display: flex;
384
+ align-items: center;
385
+ color: #2D3A4A;
386
+ text-decoration: none;
387
+ }
388
+
389
+ header h1 img {
390
+ display: block;
391
+ height: 64px;
392
+ }
393
+
394
+ header nav ul {
395
+ margin: 0;
396
+ padding: 0;
397
+ list-style-type: none;
398
+ }
399
+
400
+ header nav ul li {
401
+ display: inline-block;
402
+ }
403
+
404
+ header nav ul li + li {
405
+ margin-left: 1em;
406
+ }
407
+
408
+ header nav ul li a {
409
+ font-weight: bold;
410
+ text-decoration: none;
411
+ color: #2D3A4A;
412
+ }
413
+
414
+ header nav ul li a:hover {
415
+ text-decoration: underline;
416
+ }
417
+
418
+ main .message {
419
+ padding: 0 0 var(--ck-sample-base-spacing);
420
+ background: var(--ck-sample-color-green);
421
+ color: var(--ck-sample-color-white);
422
+ }
423
+
424
+ main .message::after {
425
+ content: "";
426
+ z-index: -1;
427
+ display: block;
428
+ height: 10em;
429
+ width: 100%;
430
+ background: var(--ck-sample-color-green);
431
+ position: absolute;
432
+ left: 0;
433
+ }
434
+
435
+ main .message h2 {
436
+ position: relative;
437
+ padding-top: 1em;
438
+ font-size: 2em;
439
+ }
440
+
441
+ .centered {
442
+ /* Hide overlapping comments. */
443
+ overflow: hidden;
444
+ max-width: var(--ck-sample-container-width);
445
+ margin: 0 auto;
446
+ padding: 0 var(--ck-sample-base-spacing);
447
+ }
448
+
449
+ .row {
450
+ display: flex;
451
+ position: relative;
452
+ }
453
+
454
+ .btn {
455
+ cursor: pointer;
456
+ padding: 8px 16px;
457
+ font-size: 1rem;
458
+ user-select: none;
459
+ border-radius: 4px;
460
+ transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,opacity .2s ease-in-out;
461
+ background-color: var(--ck-sample-color-button-blue);
462
+ border-color: var(--ck-sample-color-button-blue);
463
+ color: var(--ck-sample-color-white);
464
+ display: inline-block;
465
+ }
466
+
467
+ .btn--tiny {
468
+ padding: 6px 12px;
469
+ font-size: .8rem;
470
+ }
471
+
472
+ footer {
473
+ margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing);
474
+ font-size: .8em;
475
+ text-align: center;
476
+ color: rgba(0,0,0,.4);
477
+ }
478
+
479
+ /* --------- RWD --------------------------------------------------------------------------------------------------- */
480
+ @media screen and ( max-width: 800px ) {
481
+ :root {
482
+ --ck-sample-base-spacing: 1em;
483
+ }
484
+
485
+ header h1 {
486
+ width: 100%;
487
+ }
488
+
489
+ header h1 img {
490
+ height: 40px;
491
+ }
492
+
493
+ header nav ul {
494
+ text-align: right;
495
+ }
496
+
497
+ main .message h2 {
498
+ font-size: 1.5em;
499
+ }
500
+ }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import DecoupledDocumentEditor from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor.js';
6
+ import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment.js';
7
+ import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js';
8
+ import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
9
+ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials.js';
10
+ import FontBackgroundColor from '@ckeditor/ckeditor5-font/src/fontbackgroundcolor.js';
11
+ import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor.js';
12
+ import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily.js';
13
+ import FontSize from '@ckeditor/ckeditor5-font/src/fontsize.js';
14
+ import GeneralHtmlSupport from '@ckeditor/ckeditor5-html-support/src/generalhtmlsupport.js';
15
+ import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js';
16
+ import Image from '@ckeditor/ckeditor5-image/src/image.js';
17
+ import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption.js';
18
+ import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize.js';
19
+ import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle.js';
20
+ import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar.js';
21
+ import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload.js';
22
+ import Indent from '@ckeditor/ckeditor5-indent/src/indent.js';
23
+ import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock.js';
24
+ import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
25
+ import List from '@ckeditor/ckeditor5-list/src/list.js';
26
+ import ListProperties from '@ckeditor/ckeditor5-list/src/listproperties.js';
27
+ import PageBreak from '@ckeditor/ckeditor5-page-break/src/pagebreak.js';
28
+ import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph.js';
29
+ import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js';
30
+ import Table from '@ckeditor/ckeditor5-table/src/table.js';
31
+ import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
32
+ import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
33
+ import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js';
34
+ import TextTransformation from '@ckeditor/ckeditor5-typing/src/texttransformation.js';
35
+ import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js';
36
+
37
+ class Editor extends DecoupledDocumentEditor {}
38
+
39
+ // Plugins to include in the build.
40
+ Editor.builtinPlugins = [
41
+ Alignment,
42
+ Base64UploadAdapter,
43
+ Bold,
44
+ Essentials,
45
+ FontBackgroundColor,
46
+ FontColor,
47
+ FontFamily,
48
+ FontSize,
49
+ GeneralHtmlSupport,
50
+ HorizontalLine,
51
+ Image,
52
+ ImageCaption,
53
+ ImageResize,
54
+ ImageStyle,
55
+ ImageToolbar,
56
+ ImageUpload,
57
+ Indent,
58
+ IndentBlock,
59
+ Italic,
60
+ List,
61
+ ListProperties,
62
+ PageBreak,
63
+ Paragraph,
64
+ PasteFromOffice,
65
+ Table,
66
+ TableCellProperties,
67
+ TableProperties,
68
+ TableToolbar,
69
+ TextTransformation,
70
+ Underline
71
+ ];
72
+
73
+ // Editor configuration.
74
+ Editor.defaultConfig = {
75
+ toolbar: {
76
+ items: [
77
+ 'undo',
78
+ 'redo',
79
+ '|',
80
+ 'fontSize',
81
+ 'fontFamily',
82
+ 'fontColor',
83
+ 'fontBackgroundColor',
84
+ '|',
85
+ 'bold',
86
+ 'italic',
87
+ 'underline',
88
+ '|',
89
+ 'alignment',
90
+ 'outdent',
91
+ 'indent',
92
+ '|',
93
+ 'insertTable',
94
+ 'numberedList',
95
+ 'bulletedList',
96
+ '|',
97
+ 'imageUpload',
98
+ 'horizontalLine',
99
+ 'pageBreak'
100
+ ]
101
+ },
102
+ language: 'pt-br',
103
+ image: {
104
+ toolbar: [
105
+ 'imageTextAlternative',
106
+ 'imageStyle:inline',
107
+ 'imageStyle:block',
108
+ 'imageStyle:side'
109
+ ]
110
+ },
111
+ table: {
112
+ contentToolbar: [
113
+ 'tableColumn',
114
+ 'tableRow',
115
+ 'mergeTableCells',
116
+ 'tableCellProperties',
117
+ 'tableProperties'
118
+ ]
119
+ }
120
+ };
121
+
122
+ export default Editor;
@@ -0,0 +1,96 @@
1
+ /**
2
+ * @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ /* eslint-env node */
9
+
10
+ const path = require( 'path' );
11
+ const webpack = require( 'webpack' );
12
+ const { bundler, styles } = require( '@ckeditor/ckeditor5-dev-utils' );
13
+ const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
14
+ const TerserWebpackPlugin = require( 'terser-webpack-plugin' );
15
+
16
+ module.exports = {
17
+ devtool: 'source-map',
18
+ performance: { hints: false },
19
+
20
+ entry: path.resolve( __dirname, 'src', 'ckeditor.js' ),
21
+
22
+ output: {
23
+ // The name under which the editor will be exported.
24
+ library: 'DecoupledDocumentEditor',
25
+
26
+ path: path.resolve( __dirname, 'build' ),
27
+ filename: 'ckeditor.js',
28
+ libraryTarget: 'umd',
29
+ libraryExport: 'default'
30
+ },
31
+
32
+ optimization: {
33
+ minimizer: [
34
+ new TerserWebpackPlugin( {
35
+ sourceMap: true,
36
+ terserOptions: {
37
+ output: {
38
+ // Preserve CKEditor 5 license comments.
39
+ comments: /^!/
40
+ }
41
+ },
42
+ extractComments: false
43
+ } )
44
+ ]
45
+ },
46
+
47
+ plugins: [
48
+ new CKEditorWebpackPlugin( {
49
+ // UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
50
+ // When changing the built-in language, remember to also change it in the editor's configuration (src/ckeditor.js).
51
+ language: 'pt-br',
52
+ additionalLanguages: 'all'
53
+ } ),
54
+ new webpack.BannerPlugin( {
55
+ banner: bundler.getLicenseBanner(),
56
+ raw: true
57
+ } )
58
+ ],
59
+
60
+ module: {
61
+ rules: [
62
+ {
63
+ test: /\.svg$/,
64
+ use: [ 'raw-loader' ]
65
+ },
66
+ {
67
+ test: /\.css$/,
68
+ use: [
69
+ {
70
+ loader: 'style-loader',
71
+ options: {
72
+ injectType: 'singletonStyleTag',
73
+ attributes: {
74
+ 'data-cke': true
75
+ }
76
+ }
77
+ },
78
+ {
79
+ loader: 'css-loader'
80
+ },
81
+ {
82
+ loader: 'postcss-loader',
83
+ options: {
84
+ postcssOptions: styles.getPostCssConfig( {
85
+ themeImporter: {
86
+ themePath: require.resolve( '@ckeditor/ckeditor5-theme-lark' )
87
+ },
88
+ minify: true
89
+ } )
90
+ }
91
+ },
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ };