@nickaux/form-configurator 1.0.0

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 (79) 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/ca.js +1 -0
  11. package/ckeditor5/build/translations/cs.js +1 -0
  12. package/ckeditor5/build/translations/da.js +1 -0
  13. package/ckeditor5/build/translations/de-ch.js +1 -0
  14. package/ckeditor5/build/translations/de.js +1 -0
  15. package/ckeditor5/build/translations/el.js +1 -0
  16. package/ckeditor5/build/translations/en-au.js +1 -0
  17. package/ckeditor5/build/translations/en-gb.js +1 -0
  18. package/ckeditor5/build/translations/en.js +1 -0
  19. package/ckeditor5/build/translations/eo.js +1 -0
  20. package/ckeditor5/build/translations/es.js +1 -0
  21. package/ckeditor5/build/translations/et.js +1 -0
  22. package/ckeditor5/build/translations/eu.js +1 -0
  23. package/ckeditor5/build/translations/fa.js +1 -0
  24. package/ckeditor5/build/translations/fi.js +1 -0
  25. package/ckeditor5/build/translations/gl.js +1 -0
  26. package/ckeditor5/build/translations/gu.js +1 -0
  27. package/ckeditor5/build/translations/he.js +1 -0
  28. package/ckeditor5/build/translations/hi.js +1 -0
  29. package/ckeditor5/build/translations/hr.js +1 -0
  30. package/ckeditor5/build/translations/hu.js +1 -0
  31. package/ckeditor5/build/translations/id.js +1 -0
  32. package/ckeditor5/build/translations/it.js +1 -0
  33. package/ckeditor5/build/translations/ja.js +1 -0
  34. package/ckeditor5/build/translations/km.js +1 -0
  35. package/ckeditor5/build/translations/kn.js +1 -0
  36. package/ckeditor5/build/translations/ko.js +1 -0
  37. package/ckeditor5/build/translations/ku.js +1 -0
  38. package/ckeditor5/build/translations/lt.js +1 -0
  39. package/ckeditor5/build/translations/lv.js +1 -0
  40. package/ckeditor5/build/translations/ms.js +1 -0
  41. package/ckeditor5/build/translations/nb.js +1 -0
  42. package/ckeditor5/build/translations/ne.js +1 -0
  43. package/ckeditor5/build/translations/nl.js +1 -0
  44. package/ckeditor5/build/translations/no.js +1 -0
  45. package/ckeditor5/build/translations/oc.js +1 -0
  46. package/ckeditor5/build/translations/pl.js +1 -0
  47. package/ckeditor5/build/translations/pt-br.js +1 -0
  48. package/ckeditor5/build/translations/pt.js +1 -0
  49. package/ckeditor5/build/translations/ro.js +1 -0
  50. package/ckeditor5/build/translations/ru.js +1 -0
  51. package/ckeditor5/build/translations/si.js +1 -0
  52. package/ckeditor5/build/translations/sk.js +1 -0
  53. package/ckeditor5/build/translations/sl.js +1 -0
  54. package/ckeditor5/build/translations/sq.js +1 -0
  55. package/ckeditor5/build/translations/sr-latn.js +1 -0
  56. package/ckeditor5/build/translations/sr.js +1 -0
  57. package/ckeditor5/build/translations/sv.js +1 -0
  58. package/ckeditor5/build/translations/th.js +1 -0
  59. package/ckeditor5/build/translations/tk.js +1 -0
  60. package/ckeditor5/build/translations/tr.js +1 -0
  61. package/ckeditor5/build/translations/tt.js +1 -0
  62. package/ckeditor5/build/translations/ug.js +1 -0
  63. package/ckeditor5/build/translations/uk.js +1 -0
  64. package/ckeditor5/build/translations/vi.js +1 -0
  65. package/ckeditor5/build/translations/zh-cn.js +1 -0
  66. package/ckeditor5/build/translations/zh.js +1 -0
  67. package/ckeditor5/package.json +43 -0
  68. package/ckeditor5/sample/styles.css +465 -0
  69. package/ckeditor5/webpack.config.js +96 -0
  70. package/dist/FormConfigurator.cjs +2 -0
  71. package/dist/FormConfigurator.cjs.map +1 -0
  72. package/dist/FormConfigurator.modern.js +11 -0
  73. package/dist/FormConfigurator.modern.js.map +1 -0
  74. package/dist/FormConfigurator.module.js +2 -0
  75. package/dist/FormConfigurator.module.js.map +1 -0
  76. package/dist/FormConfigurator.umd.js +2 -0
  77. package/dist/FormConfigurator.umd.js.map +1 -0
  78. package/package.json +80 -0
  79. package/vite.config.js +7 -0
@@ -0,0 +1,465 @@
1
+ /**
2
+ * @license Copyright (c) 2014-2021, CKSource - Frederico Knabben. 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
+ .ck.ck-editor__editable {
36
+ background: #fff;
37
+ border: 1px solid hsl(0, 0%, 70%);
38
+ width: 100%;
39
+ }
40
+
41
+ .ck.ck-editor {
42
+ /* To enable toolbar wrapping. */
43
+ width: 100%;
44
+ overflow-x: hidden;
45
+ }
46
+
47
+ /* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */
48
+ .ck.ck-editor__editable {
49
+ position: relative;
50
+ z-index: var(--ck-sample-editor-z-index);
51
+ }
52
+
53
+ /* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/
54
+ body[data-editor='DecoupledDocumentEditor'] .document-editor__toolbar {
55
+ width: 100%;
56
+ }
57
+
58
+ body[ data-editor='DecoupledDocumentEditor'] .collaboration-demo__editable,
59
+ body[ data-editor='DecoupledDocumentEditor'] .row-editor .editor {
60
+ width: 18.5cm;
61
+ height: 100%;
62
+ min-height: 26.25cm;
63
+ padding: 1.75cm 1.5cm;
64
+ margin: 2.5rem;
65
+ border: 1px hsl( 0, 0%, 82.7% ) solid;
66
+ background-color: var(--ck-sample-color-white);
67
+ box-shadow: 0 0 5px hsla( 0, 0%, 0%, .1 );
68
+ }
69
+
70
+ body[ data-editor='DecoupledDocumentEditor'] .row-editor {
71
+ display: flex;
72
+ position: relative;
73
+ justify-content: center;
74
+ overflow-y: auto;
75
+ background-color: #f2f2f2;
76
+ border: 1px solid hsl(0, 0%, 77%);
77
+ }
78
+
79
+ body[data-editor='DecoupledDocumentEditor'] .sidebar {
80
+ background: transparent;
81
+ border: 0;
82
+ box-shadow: none;
83
+ }
84
+
85
+ /* --------- COMMENTS & TRACK CHANGES FEATURE ---------------------------------------------------------------------- */
86
+ .sidebar {
87
+ padding: 0 15px;
88
+ position: relative;
89
+ min-width: var(--ck-sample-sidebar-width);
90
+ max-width: var(--ck-sample-sidebar-width);
91
+ font-size: 20px;
92
+ border: 1px solid hsl(0, 0%, 77%);
93
+ background: hsl(0, 0%, 98%);
94
+ border-left: 0;
95
+ overflow: hidden;
96
+ min-height: 100%;
97
+ flex-grow: 1;
98
+ }
99
+
100
+ /* Do not inherit styles related to the editable editor content. See line 25.*/
101
+ .sidebar .ck-content[role='textbox'],
102
+ .ck.ck-annotation-wrapper .ck-content[role='textbox'] {
103
+ min-height: unset;
104
+ width: unset;
105
+ padding: 0;
106
+ background: transparent;
107
+ }
108
+
109
+ .sidebar.narrow {
110
+ min-width: 60px;
111
+ flex-grow: 0;
112
+ }
113
+
114
+ .sidebar.hidden {
115
+ display: none !important;
116
+ }
117
+
118
+ #sidebar-display-toggle {
119
+ position: absolute;
120
+ z-index: 1;
121
+ width: 30px;
122
+ height: 30px;
123
+ text-align: center;
124
+ left: 15px;
125
+ top: 30px;
126
+ border: 0;
127
+ padding: 0;
128
+ color: hsl( 0, 0%, 50% );
129
+ transition: 250ms ease color;
130
+ background-color: transparent;
131
+ }
132
+
133
+ #sidebar-display-toggle:hover {
134
+ color: hsl( 0, 0%, 30% );
135
+ cursor: pointer;
136
+ }
137
+
138
+ #sidebar-display-toggle:focus,
139
+ #sidebar-display-toggle:active {
140
+ outline: none;
141
+ border: 1px solid #a9d29d;
142
+ }
143
+
144
+ #sidebar-display-toggle svg {
145
+ fill: currentColor;
146
+ }
147
+
148
+ /* --------- COLLABORATION FEATURES (USERS) ------------------------------------------------------------------------ */
149
+ .row-presence {
150
+ width: 100%;
151
+ border: 1px solid hsl(0, 0%, 77%);
152
+ border-bottom: 0;
153
+ background: hsl(0, 0%, 98%);
154
+ padding: var(--ck-spacing-small);
155
+
156
+ /* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */
157
+ box-shadow: 0 1px 0 0 hsl(0, 0%, 77%);
158
+
159
+ /* Make `z-index` bigger than `.editor` to properly display tooltips. */
160
+ z-index: 20;
161
+ }
162
+
163
+ .ck.ck-presence-list {
164
+ flex: 1;
165
+ padding: 1.25rem .75rem;
166
+ }
167
+
168
+ .presence .ck.ck-presence-list__counter {
169
+ order: 2;
170
+ margin-left: var(--ck-spacing-large)
171
+ }
172
+
173
+ /* --------- REAL TIME COLLABORATION FEATURES (SHARE TOPBAR CONTAINER) --------------------------------------------- */
174
+ .collaboration-demo__row {
175
+ display: flex;
176
+ position: relative;
177
+ justify-content: center;
178
+ overflow-y: auto;
179
+ background-color: #f2f2f2;
180
+ border: 1px solid hsl(0, 0%, 77%);
181
+ }
182
+
183
+ body[ data-editor='InlineEditor'] .collaboration-demo__row {
184
+ border: 0;
185
+ }
186
+
187
+ .collaboration-demo__container {
188
+ max-width: var(--ck-sample-container-width);
189
+ margin: 0 auto;
190
+ padding: 1.25rem;
191
+ }
192
+
193
+ .presence, .collaboration-demo__row {
194
+ transition: .2s opacity;
195
+ }
196
+
197
+ .collaboration-demo__topbar {
198
+ background: #fff;
199
+ border: 1px solid var(--ck-color-toolbar-border);
200
+ display: flex;
201
+ justify-content: space-between;
202
+ align-items: center;
203
+ border-bottom: 0;
204
+ border-radius: 4px 4px 0 0;
205
+ }
206
+
207
+ .collaboration-demo__topbar .btn {
208
+ margin-right: 1em;
209
+ outline-offset: 2px;
210
+ outline-width: 2px;
211
+ background-color: var( --ck-sample-color-blue );
212
+ }
213
+
214
+ .collaboration-demo__topbar .btn:focus,
215
+ .collaboration-demo__topbar .btn:hover {
216
+ border-color: var( --ck-sample-color-blue );
217
+ }
218
+
219
+ .collaboration-demo__share {
220
+ display: flex;
221
+ align-items: center;
222
+ padding: 1.25rem .75rem
223
+ }
224
+
225
+ .collaboration-demo__share-description p {
226
+ margin: 0;
227
+ font-weight: bold;
228
+ font-size: 0.9em;
229
+ }
230
+
231
+ .collaboration-demo__share input {
232
+ height: auto;
233
+ font-size: 0.9em;
234
+ min-width: 220px;
235
+ margin: 0 10px;
236
+ border-radius: 4px;
237
+ border: 1px solid var(--ck-color-toolbar-border)
238
+ }
239
+
240
+ .collaboration-demo__share button,
241
+ .collaboration-demo__share input {
242
+ height: 40px;
243
+ padding: 5px 10px;
244
+ }
245
+
246
+ .collaboration-demo__share button {
247
+ position: relative;
248
+ }
249
+
250
+ .collaboration-demo__share button:focus {
251
+ outline: none;
252
+ }
253
+
254
+ .collaboration-demo__share button[data-tooltip]::before,
255
+ .collaboration-demo__share button[data-tooltip]::after {
256
+ position: absolute;
257
+ visibility: hidden;
258
+ opacity: 0;
259
+ pointer-events: none;
260
+ transition: all .15s cubic-bezier(.5,1,.25,1);
261
+ z-index: 1;
262
+ }
263
+
264
+ .collaboration-demo__share button[data-tooltip]::before {
265
+ content: attr(data-tooltip);
266
+ padding: 5px 15px;
267
+ border-radius: 3px;
268
+ background: #111;
269
+ color: #fff;
270
+ text-align: center;
271
+ font-size: 11px;
272
+ top: 100%;
273
+ left: 50%;
274
+ margin-top: 5px;
275
+ transform: translateX(-50%);
276
+ }
277
+
278
+ .collaboration-demo__share button[data-tooltip]::after {
279
+ content: '';
280
+ border: 5px solid transparent;
281
+ width: 0;
282
+ font-size: 0;
283
+ line-height: 0;
284
+ top: 100%;
285
+ left: 50%;
286
+ transform: translateX(-50%);
287
+ border-bottom: 5px solid #111;
288
+ border-top: none;
289
+ }
290
+
291
+ .collaboration-demo__share button[data-tooltip]:hover:before,
292
+ .collaboration-demo__share button[data-tooltip]:hover:after {
293
+ visibility: visible;
294
+ opacity: 1;
295
+ }
296
+
297
+ .collaboration-demo--ready {
298
+ overflow: visible;
299
+ height: auto;
300
+ }
301
+
302
+ .collaboration-demo--ready .presence,
303
+ .collaboration-demo--ready .collaboration-demo__row {
304
+ opacity: 1;
305
+ }
306
+
307
+ /* --------- PAGINATION FEATURE ------------------------------------------------------------------------------------ */
308
+
309
+ /* Pagination view line must be stacked at least at the same level as the editor,
310
+ otherwise it will be hidden underneath. */
311
+ .ck.ck-pagination-view-line {
312
+ z-index: var(--ck-sample-editor-z-index);
313
+ }
314
+
315
+ /* --------- SAMPLE GENERIC STYLES (not related to CKEditor) ------------------------------------------------------- */
316
+ body, html {
317
+ padding: 0;
318
+ margin: 0;
319
+
320
+ font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
321
+ font-size: 16px;
322
+ line-height: 1.5;
323
+ }
324
+
325
+ body {
326
+ height: 100%;
327
+ color: #2D3A4A;
328
+ }
329
+
330
+ body * {
331
+ box-sizing: border-box;
332
+ }
333
+
334
+ a {
335
+ color: #38A5EE;
336
+ }
337
+
338
+ header .centered {
339
+ display: flex;
340
+ flex-flow: row nowrap;
341
+ justify-content: space-between;
342
+ align-items: center;
343
+ min-height: 8em;
344
+ }
345
+
346
+ header h1 a {
347
+ font-size: 20px;
348
+ display: flex;
349
+ align-items: center;
350
+ color: #2D3A4A;
351
+ text-decoration: none;
352
+ }
353
+
354
+ header h1 img {
355
+ display: block;
356
+ height: 64px;
357
+ }
358
+
359
+ header nav ul {
360
+ margin: 0;
361
+ padding: 0;
362
+ list-style-type: none;
363
+ }
364
+
365
+ header nav ul li {
366
+ display: inline-block;
367
+ }
368
+
369
+ header nav ul li + li {
370
+ margin-left: 1em;
371
+ }
372
+
373
+ header nav ul li a {
374
+ font-weight: bold;
375
+ text-decoration: none;
376
+ color: #2D3A4A;
377
+ }
378
+
379
+ header nav ul li a:hover {
380
+ text-decoration: underline;
381
+ }
382
+
383
+ main .message {
384
+ padding: 0 0 var(--ck-sample-base-spacing);
385
+ background: var(--ck-sample-color-green);
386
+ color: var(--ck-sample-color-white);
387
+ }
388
+
389
+ main .message::after {
390
+ content: "";
391
+ z-index: -1;
392
+ display: block;
393
+ height: 10em;
394
+ width: 100%;
395
+ background: var(--ck-sample-color-green);
396
+ position: absolute;
397
+ left: 0;
398
+ }
399
+
400
+ main .message h2 {
401
+ position: relative;
402
+ padding-top: 1em;
403
+ font-size: 2em;
404
+ }
405
+
406
+ .centered {
407
+ /* Hide overlapping comments. */
408
+ overflow: hidden;
409
+ max-width: var(--ck-sample-container-width);
410
+ margin: 0 auto;
411
+ padding: 0 var(--ck-sample-base-spacing);
412
+ }
413
+
414
+ .row {
415
+ display: flex;
416
+ position: relative;
417
+ }
418
+
419
+ .btn {
420
+ cursor: pointer;
421
+ padding: 8px 16px;
422
+ font-size: 1rem;
423
+ user-select: none;
424
+ border-radius: 4px;
425
+ transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,opacity .2s ease-in-out;
426
+ background-color: var(--ck-sample-color-button-blue);
427
+ border-color: var(--ck-sample-color-button-blue);
428
+ color: var(--ck-sample-color-white);
429
+ display: inline-block;
430
+ }
431
+
432
+ .btn--tiny {
433
+ padding: 6px 12px;
434
+ font-size: .8rem;
435
+ }
436
+
437
+ footer {
438
+ margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing);
439
+ font-size: .8em;
440
+ text-align: center;
441
+ color: rgba(0,0,0,.4);
442
+ }
443
+
444
+ /* --------- RWD --------------------------------------------------------------------------------------------------- */
445
+ @media screen and ( max-width: 800px ) {
446
+ :root {
447
+ --ck-sample-base-spacing: 1em;
448
+ }
449
+
450
+ header h1 {
451
+ width: 100%;
452
+ }
453
+
454
+ header h1 img {
455
+ height: 40px;
456
+ }
457
+
458
+ header nav ul {
459
+ text-align: right;
460
+ }
461
+
462
+ main .message h2 {
463
+ font-size: 1.5em;
464
+ }
465
+ }
@@ -0,0 +1,96 @@
1
+ /**
2
+ * @license Copyright (c) 2014-2021, CKSource - Frederico Knabben. 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: 'InlineEditor',
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: 'fr',
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
+ };