@ckeditor/ckeditor5-table 0.0.0-nightly-next-20251222.0 → 0.0.0-nightly-20251223.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 (112) hide show
  1. package/build/table.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/ckeditor5-metadata.json +2 -11
  75. package/dist/index-content.css +30 -30
  76. package/dist/index-editor.css +170 -104
  77. package/dist/index.css +237 -147
  78. package/dist/index.css.map +1 -1
  79. package/dist/index.js +2399 -307
  80. package/dist/index.js.map +1 -1
  81. package/lang/contexts.json +4 -0
  82. package/package.json +9 -9
  83. package/src/augmentation.d.ts +15 -0
  84. package/src/converters/downcast.js +12 -3
  85. package/src/index.d.ts +4 -0
  86. package/src/index.js +5 -0
  87. package/src/tablecellproperties/tablecellpropertiesediting.js +4 -2
  88. package/src/tablecellproperties/tablecellpropertiesui.js +10 -30
  89. package/src/tablecellproperties/tablecellpropertiesuiexperimental.d.ts +128 -0
  90. package/src/tablecellproperties/tablecellpropertiesuiexperimental.js +408 -0
  91. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +0 -35
  92. package/src/tablecellproperties/ui/tablecellpropertiesview.js +23 -137
  93. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.d.ts +266 -0
  94. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.js +744 -0
  95. package/src/tableconfig.d.ts +4 -4
  96. package/src/tableproperties/tablepropertiesediting.js +147 -14
  97. package/src/tableproperties/tablepropertiesuiexperimental.d.ts +136 -0
  98. package/src/tableproperties/tablepropertiesuiexperimental.js +375 -0
  99. package/src/tableproperties/ui/tablepropertiesview.d.ts +0 -8
  100. package/src/tableproperties/ui/tablepropertiesview.js +37 -59
  101. package/src/tableproperties/ui/tablepropertiesviewexperimental.d.ts +216 -0
  102. package/src/tableproperties/ui/tablepropertiesviewexperimental.js +544 -0
  103. package/src/utils/common.js +3 -2
  104. package/src/utils/ui/table-propertiesexperimental.d.ts +215 -0
  105. package/src/utils/ui/table-propertiesexperimental.js +391 -0
  106. package/theme/formrow-experimental.css +15 -0
  107. package/theme/formrow.css +0 -2
  108. package/theme/tablecellproperties-experimental.css +4 -0
  109. package/theme/tableform-experimental.css +61 -0
  110. package/theme/tableform.css +5 -1
  111. package/theme/tableproperties-experimental.css +78 -0
  112. package/theme/tableproperties.css +0 -60
package/dist/index.css CHANGED
@@ -247,100 +247,6 @@
247
247
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
248
248
  */
249
249
 
250
- /*
251
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
252
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
253
- */
254
- /*
255
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
256
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
257
- */
258
-
259
- :root {
260
- --ck-form-default-width: 340px;
261
- }
262
-
263
- .ck.ck-form {
264
- padding: 0 0 var(--ck-spacing-large);
265
- }
266
-
267
- .ck.ck-form.ck-form_default-width {
268
- width: var(--ck-form-default-width);
269
- }
270
-
271
- .ck.ck-form:focus {
272
- outline: none;
273
- }
274
-
275
- .ck.ck-form .ck.ck-input-text,
276
- .ck.ck-form .ck.ck-input-number {
277
- min-width: 100%;
278
- width: 0;
279
- }
280
-
281
- .ck.ck-form .ck.ck-dropdown {
282
- min-width: 100%;
283
- }
284
-
285
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus) {
286
- border: 1px solid var(--ck-color-base-border);
287
- }
288
-
289
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label {
290
- width: 100%;
291
- }
292
-
293
- /* Default `ck-responsive-form` customization when it lies next to `ck-form` class */
294
-
295
- @media screen and (max-width: 600px) {
296
-
297
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit {
298
- flex-direction: column;
299
- align-items: stretch;
300
- padding: 0;
301
- }
302
- }
303
-
304
- @media screen and (max-width: 600px) {
305
-
306
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit > .ck {
307
- margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
308
- }
309
- }
310
-
311
- @media screen and (max-width: 600px) {
312
-
313
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text {
314
- justify-content: center;
315
- }
316
- }
317
-
318
- @media screen and (max-width: 600px) {
319
-
320
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding {
321
- padding-bottom: var(--ck-spacing-large);
322
- }
323
- }
324
-
325
- [dir="ltr"] .ck.ck-form.ck-responsive-form > :not(:first-child) {
326
- margin-left: 0;
327
- }
328
-
329
- [dir="rtl"] .ck.ck-form.ck-responsive-form > :not(:last-child) {
330
- margin-left: 0;
331
- }
332
-
333
- /* End of `ck-responsive-form` customization */
334
-
335
- /*
336
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
337
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
338
- */
339
-
340
- .ck.ck-form__row.ck-table-form__action-row {
341
- justify-content: flex-end;
342
- }
343
-
344
250
  .ck.ck-form__row.ck-table-form__action-row .ck-button-save,
345
251
  .ck.ck-form__row.ck-table-form__action-row .ck-button-cancel {
346
252
  justify-content: center;
@@ -373,11 +279,15 @@
373
279
  flex-grow: 0;
374
280
  }
375
281
 
282
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator, .ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row .ck-table-form__dimension-operator {
283
+ flex-grow: 0;
284
+ }
285
+
376
286
  /* Ignore labels that work as fieldset legends */
377
287
 
378
288
  /* Fallback for table dimension operator */
379
289
 
380
- .ck.ck-table-form .ck-form__row:not(.ck-table-form__action-row) > *:not(.ck-label, .ck-table-form__dimension-operator) {
290
+ .ck.ck-table-form .ck-form__row > *:not(.ck-label, .ck-table-form__dimension-operator) {
381
291
  flex-grow: 1;
382
292
  }
383
293
 
@@ -411,10 +321,6 @@
411
321
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
412
322
  */
413
323
 
414
- :root {
415
- --ck-content-table-style-spacing: 1.5em;
416
- }
417
-
418
324
  .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row {
419
325
  flex-wrap: wrap;
420
326
  flex-basis: 0;
@@ -425,54 +331,6 @@
425
331
  flex-wrap: nowrap;
426
332
  }
427
333
 
428
- .ck-content .table.table-style-align-left {
429
- float: left;
430
- margin-right: var(--ck-content-table-style-spacing);
431
- }
432
-
433
- .ck-content .table.table-style-align-right {
434
- float: right;
435
- margin-left: var(--ck-content-table-style-spacing);
436
- }
437
-
438
- .ck-content .table.table-style-align-center {
439
- margin-left: auto;
440
- margin-right: auto;
441
- }
442
-
443
- .ck-content .table.table-style-block-align-left {
444
- margin-left: 0;
445
- margin-right: auto;
446
- }
447
-
448
- .ck-content .table.table-style-block-align-right {
449
- margin-left: auto;
450
- margin-right: 0;
451
- }
452
-
453
- .ck-editor__editable .table.layout-table.table-style-align-center {
454
- margin-left: auto;
455
- margin-right: auto;
456
- }
457
-
458
- .ck-editor__editable .table.layout-table.table-style-align-left {
459
- margin-right: var(--ck-content-table-style-spacing);
460
- }
461
-
462
- .ck-editor__editable .table.layout-table.table-style-align-right {
463
- margin-left: var(--ck-content-table-style-spacing);
464
- }
465
-
466
- .ck-editor__editable .table.layout-table.table-style-block-align-left {
467
- margin-left: 0;
468
- margin-right: auto;
469
- }
470
-
471
- .ck-editor__editable .table.layout-table.table-style-block-align-right {
472
- margin-left: auto;
473
- margin-right: 0;
474
- }
475
-
476
334
  /*
477
335
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
478
336
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -604,6 +462,238 @@
604
462
  right: unset;
605
463
  }
606
464
 
465
+ /*
466
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
467
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
468
+ */
469
+
470
+ :root {
471
+ --ck-content-table-style-spacing: 1.5em;
472
+ }
473
+
474
+ .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row {
475
+ flex-wrap: wrap;
476
+ flex-basis: 0;
477
+ align-content: baseline;
478
+ }
479
+
480
+ .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items {
481
+ flex-wrap: nowrap;
482
+ }
483
+
484
+ .ck-content .table.table-style-align-left {
485
+ float: left;
486
+ margin-right: var(--ck-content-table-style-spacing);
487
+ }
488
+
489
+ .ck-content .table.table-style-align-right {
490
+ float: right;
491
+ margin-left: var(--ck-content-table-style-spacing);
492
+ }
493
+
494
+ .ck-content .table.table-style-align-center {
495
+ margin-left: auto;
496
+ margin-right: auto;
497
+ }
498
+
499
+ .ck-content .table.table-style-block-align-left {
500
+ margin-left: 0;
501
+ margin-right: auto;
502
+ }
503
+
504
+ .ck-content .table.table-style-block-align-right {
505
+ margin-left: auto;
506
+ margin-right: 0;
507
+ }
508
+
509
+ .ck-editor__editable .table.layout-table.table-style-align-center {
510
+ margin-left: auto;
511
+ margin-right: auto;
512
+ }
513
+
514
+ .ck-editor__editable .table.layout-table.table-style-align-left {
515
+ margin-right: var(--ck-content-table-style-spacing);
516
+ }
517
+
518
+ .ck-editor__editable .table.layout-table.table-style-align-right {
519
+ margin-left: var(--ck-content-table-style-spacing);
520
+ }
521
+
522
+ .ck-editor__editable .table.layout-table.table-style-block-align-left {
523
+ margin-left: 0;
524
+ margin-right: auto;
525
+ }
526
+
527
+ .ck-editor__editable .table.layout-table.table-style-block-align-right {
528
+ margin-left: auto;
529
+ margin-right: 0;
530
+ }
531
+
532
+ /*
533
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
534
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
535
+ */
536
+
537
+ /*
538
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
539
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
540
+ */
541
+ /*
542
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
543
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
544
+ */
545
+
546
+ :root {
547
+ --ck-form-default-width: 340px;
548
+ }
549
+
550
+ .ck.ck-form {
551
+ padding: 0 0 var(--ck-spacing-large);
552
+ }
553
+
554
+ .ck.ck-form.ck-form_default-width {
555
+ width: var(--ck-form-default-width);
556
+ }
557
+
558
+ .ck.ck-form:focus {
559
+ outline: none;
560
+ }
561
+
562
+ .ck.ck-form .ck.ck-input-text,
563
+ .ck.ck-form .ck.ck-input-number {
564
+ min-width: 100%;
565
+ width: 0;
566
+ }
567
+
568
+ .ck.ck-form .ck.ck-dropdown {
569
+ min-width: 100%;
570
+ }
571
+
572
+ .ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus) {
573
+ border: 1px solid var(--ck-color-base-border);
574
+ }
575
+
576
+ .ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label {
577
+ width: 100%;
578
+ }
579
+
580
+ /* Default `ck-responsive-form` customization when it lies next to `ck-form` class */
581
+
582
+ @media screen and (max-width: 600px) {
583
+
584
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit {
585
+ flex-direction: column;
586
+ align-items: stretch;
587
+ padding: 0;
588
+ }
589
+ }
590
+
591
+ @media screen and (max-width: 600px) {
592
+
593
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit > .ck {
594
+ margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
595
+ }
596
+ }
597
+
598
+ @media screen and (max-width: 600px) {
599
+
600
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text {
601
+ justify-content: center;
602
+ }
603
+ }
604
+
605
+ @media screen and (max-width: 600px) {
606
+
607
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding {
608
+ padding-bottom: var(--ck-spacing-large);
609
+ }
610
+ }
611
+
612
+ [dir="ltr"] .ck.ck-form.ck-responsive-form > :not(:first-child) {
613
+ margin-left: 0;
614
+ }
615
+
616
+ [dir="rtl"] .ck.ck-form.ck-responsive-form > :not(:last-child) {
617
+ margin-left: 0;
618
+ }
619
+
620
+ /* End of `ck-responsive-form` customization */
621
+
622
+ /*
623
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
624
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
625
+ */
626
+
627
+ .ck.ck-form__row.ck-table-form__action-row {
628
+ justify-content: flex-end;
629
+ }
630
+
631
+ .ck.ck-form__row.ck-table-form__action-row .ck-button-save,
632
+ .ck.ck-form__row.ck-table-form__action-row .ck-button-cancel {
633
+ justify-content: center;
634
+ }
635
+
636
+ /*
637
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
638
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
639
+ */
640
+
641
+ .ck.ck-table-form .ck-form__row.ck-table-form__border-row {
642
+ flex-wrap: wrap;
643
+ }
644
+
645
+ .ck.ck-table-form .ck-form__row.ck-table-form__background-row {
646
+ flex-wrap: wrap;
647
+ }
648
+
649
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row {
650
+ flex-wrap: wrap;
651
+ align-items: center;
652
+ }
653
+
654
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view {
655
+ display: flex;
656
+ flex-direction: column-reverse;
657
+ align-items: center;
658
+ }
659
+
660
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown {
661
+ flex-grow: 0;
662
+ }
663
+
664
+ /* Ignore labels that work as fieldset legends */
665
+
666
+ /* Fallback for table dimension operator */
667
+
668
+ .ck.ck-table-form .ck-form__row:not(.ck-table-form__action-row) > *:not(.ck-label, .ck-table-form__dimension-operator) {
669
+ flex-grow: 1;
670
+ }
671
+
672
+ .ck.ck-table-form .ck.ck-labeled-field-view {
673
+ /* Allow absolute positioning of the status (error) balloons. */
674
+ position: relative;
675
+ }
676
+
677
+ .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
678
+ position: absolute;
679
+ left: 50%;
680
+ bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );
681
+ transform: translate(-50%,100%);
682
+
683
+ /* Make sure the balloon status stays on top of other form elements. */
684
+ z-index: 1;
685
+
686
+ /* The arrow pointing towards the field. */
687
+ }
688
+
689
+ .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status::after {
690
+ content: "";
691
+ position: absolute;
692
+ top: calc( -1 * var(--ck-table-properties-error-arrow-size) );
693
+ left: 50%;
694
+ transform: translateX( -50% );
695
+ }
696
+
607
697
  /*
608
698
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
609
699
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options