@ckeditor/ckeditor5-table 48.8.1-alpha.4 → 49.0.0-alpha.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.
Files changed (251) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +12 -1
  3. package/dist/augmentation.d.ts +83 -80
  4. package/dist/commands/insertcolumncommand.d.ts +50 -50
  5. package/dist/commands/insertrowcommand.d.ts +49 -49
  6. package/dist/commands/inserttablecommand.d.ts +48 -43
  7. package/dist/commands/inserttablelayoutcommand.d.ts +39 -34
  8. package/dist/commands/mergecellcommand.d.ts +63 -63
  9. package/dist/commands/mergecellscommand.d.ts +24 -24
  10. package/dist/commands/removecolumncommand.d.ts +24 -24
  11. package/dist/commands/removerowcommand.d.ts +24 -24
  12. package/dist/commands/selectcolumncommand.d.ts +28 -28
  13. package/dist/commands/selectrowcommand.d.ts +28 -28
  14. package/dist/commands/setfooterrowcommand.d.ts +48 -48
  15. package/dist/commands/setheadercolumncommand.d.ts +45 -45
  16. package/dist/commands/setheaderrowcommand.d.ts +48 -48
  17. package/dist/commands/splitcellcommand.d.ts +39 -38
  18. package/dist/converters/downcast.d.ts +77 -77
  19. package/dist/converters/table-caption-post-fixer.d.ts +18 -18
  20. package/dist/converters/table-cell-paragraph-post-fixer.d.ts +30 -30
  21. package/dist/converters/table-cell-refresh-handler.d.ts +16 -16
  22. package/dist/converters/table-layout-post-fixer.d.ts +224 -224
  23. package/dist/converters/table-structure-post-fixer.d.ts +16 -16
  24. package/dist/converters/table-structure-refresh-handler.d.ts +15 -15
  25. package/dist/converters/tableproperties.d.ts +98 -98
  26. package/dist/converters/upcasttable.d.ts +47 -47
  27. package/dist/index-content.css +116 -105
  28. package/dist/index-content.css.map +1 -0
  29. package/dist/index-editor.css +718 -601
  30. package/dist/index-editor.css.map +1 -0
  31. package/dist/index.css +781 -650
  32. package/dist/index.css.map +1 -1
  33. package/dist/index.d.ts +103 -98
  34. package/dist/index.js +13669 -14491
  35. package/dist/index.js.map +1 -1
  36. package/dist/plaintableoutput.d.ts +28 -28
  37. package/dist/table.d.ts +38 -39
  38. package/dist/tablecaption/tablecaptionediting.d.ts +62 -62
  39. package/dist/tablecaption/tablecaptionui.d.ts +18 -18
  40. package/dist/tablecaption/toggletablecaptioncommand.d.ts +61 -61
  41. package/dist/tablecaption/utils.d.ts +31 -31
  42. package/dist/tablecaption.d.ts +22 -23
  43. package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +27 -27
  44. package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +32 -32
  45. package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +32 -32
  46. package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +46 -46
  47. package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +41 -41
  48. package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +27 -27
  49. package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +46 -46
  50. package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +79 -79
  51. package/dist/tablecellproperties/commands/tablecelltypecommand.d.ts +42 -42
  52. package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +35 -35
  53. package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +49 -49
  54. package/dist/tablecellproperties/tablecellpropertiesui.d.ts +130 -123
  55. package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
  56. package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +255 -257
  57. package/dist/tablecellproperties.d.ts +29 -29
  58. package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +41 -41
  59. package/dist/tablecellwidth/tablecellwidthediting.d.ts +28 -28
  60. package/dist/tableclipboard.d.ts +79 -79
  61. package/dist/tablecolumnresize/commands/tablecolumnwidthcommand.d.ts +56 -0
  62. package/dist/tablecolumnresize/constants.d.ts +40 -25
  63. package/dist/tablecolumnresize/converters.d.ts +20 -20
  64. package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +263 -184
  65. package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
  66. package/dist/tablecolumnresize/utils.d.ts +166 -127
  67. package/dist/tablecolumnresize.d.ts +24 -25
  68. package/dist/tableconfig.d.ts +736 -670
  69. package/dist/tableediting.d.ts +98 -99
  70. package/dist/tablekeyboard.d.ts +67 -67
  71. package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
  72. package/dist/tablelayout/tablelayoutediting.d.ts +57 -58
  73. package/dist/tablelayout/tablelayoutui.d.ts +27 -27
  74. package/dist/tablelayout.d.ts +25 -25
  75. package/dist/tablemouse/mouseeventsobserver.d.ts +54 -54
  76. package/dist/tablemouse.d.ts +47 -47
  77. package/dist/tableproperties/commands/tablealignmentcommand.d.ts +27 -27
  78. package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +27 -27
  79. package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +32 -32
  80. package/dist/tableproperties/commands/tableborderstylecommand.d.ts +32 -32
  81. package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +46 -46
  82. package/dist/tableproperties/commands/tableheightcommand.d.ts +41 -41
  83. package/dist/tableproperties/commands/tablepropertycommand.d.ts +64 -64
  84. package/dist/tableproperties/commands/tablewidthcommand.d.ts +41 -41
  85. package/dist/tableproperties/tablepropertiesediting.d.ts +48 -48
  86. package/dist/tableproperties/tablepropertiesui.d.ts +131 -131
  87. package/dist/tableproperties/ui/tablepropertiesview.d.ts +210 -207
  88. package/dist/tableproperties.d.ts +29 -29
  89. package/dist/tablescroll/tablescrollediting.d.ts +91 -0
  90. package/dist/tablescroll/watchers.d.ts +29 -0
  91. package/dist/tablescroll.d.ts +23 -0
  92. package/dist/tableselection.d.ts +105 -106
  93. package/dist/tabletoolbar.d.ts +31 -31
  94. package/dist/tableui.d.ts +53 -53
  95. package/dist/tableutils.d.ts +532 -532
  96. package/dist/tablewalker.d.ts +342 -350
  97. package/dist/translations/af.js +1 -1
  98. package/dist/translations/af.umd.js +5 -3
  99. package/dist/translations/ar.js +1 -1
  100. package/dist/translations/ar.umd.js +5 -3
  101. package/dist/translations/ast.js +1 -1
  102. package/dist/translations/ast.umd.js +5 -3
  103. package/dist/translations/az.js +1 -1
  104. package/dist/translations/az.umd.js +5 -3
  105. package/dist/translations/be.js +1 -1
  106. package/dist/translations/be.umd.js +5 -3
  107. package/dist/translations/bg.js +1 -1
  108. package/dist/translations/bg.umd.js +5 -3
  109. package/dist/translations/bn.js +1 -1
  110. package/dist/translations/bn.umd.js +5 -3
  111. package/dist/translations/bs.js +1 -1
  112. package/dist/translations/bs.umd.js +5 -3
  113. package/dist/translations/ca.js +1 -1
  114. package/dist/translations/ca.umd.js +5 -3
  115. package/dist/translations/cs.js +1 -1
  116. package/dist/translations/cs.umd.js +5 -3
  117. package/dist/translations/da.js +1 -1
  118. package/dist/translations/da.umd.js +5 -3
  119. package/dist/translations/de-ch.js +1 -1
  120. package/dist/translations/de-ch.umd.js +5 -3
  121. package/dist/translations/de.js +1 -1
  122. package/dist/translations/de.umd.js +5 -3
  123. package/dist/translations/el.js +1 -1
  124. package/dist/translations/el.umd.js +5 -3
  125. package/dist/translations/en-au.js +1 -1
  126. package/dist/translations/en-au.umd.js +5 -3
  127. package/dist/translations/en-gb.js +1 -1
  128. package/dist/translations/en-gb.umd.js +5 -3
  129. package/dist/translations/en.js +1 -1
  130. package/dist/translations/en.umd.js +5 -3
  131. package/dist/translations/eo.js +1 -1
  132. package/dist/translations/eo.umd.js +5 -3
  133. package/dist/translations/es-co.js +1 -1
  134. package/dist/translations/es-co.umd.js +5 -3
  135. package/dist/translations/es.js +1 -1
  136. package/dist/translations/es.umd.js +5 -3
  137. package/dist/translations/et.js +1 -1
  138. package/dist/translations/et.umd.js +5 -3
  139. package/dist/translations/eu.js +1 -1
  140. package/dist/translations/eu.umd.js +5 -3
  141. package/dist/translations/fa.js +1 -1
  142. package/dist/translations/fa.umd.js +5 -3
  143. package/dist/translations/fi.js +1 -1
  144. package/dist/translations/fi.umd.js +5 -3
  145. package/dist/translations/fr.js +1 -1
  146. package/dist/translations/fr.umd.js +5 -3
  147. package/dist/translations/gl.js +1 -1
  148. package/dist/translations/gl.umd.js +5 -3
  149. package/dist/translations/gu.js +1 -1
  150. package/dist/translations/gu.umd.js +5 -3
  151. package/dist/translations/he.js +1 -1
  152. package/dist/translations/he.umd.js +5 -3
  153. package/dist/translations/hi.js +1 -1
  154. package/dist/translations/hi.umd.js +5 -3
  155. package/dist/translations/hr.js +1 -1
  156. package/dist/translations/hr.umd.js +5 -3
  157. package/dist/translations/hu.js +1 -1
  158. package/dist/translations/hu.umd.js +5 -3
  159. package/dist/translations/hy.js +1 -1
  160. package/dist/translations/hy.umd.js +5 -3
  161. package/dist/translations/id.js +1 -1
  162. package/dist/translations/id.umd.js +5 -3
  163. package/dist/translations/it.js +1 -1
  164. package/dist/translations/it.umd.js +5 -3
  165. package/dist/translations/ja.js +1 -1
  166. package/dist/translations/ja.umd.js +5 -3
  167. package/dist/translations/jv.js +1 -1
  168. package/dist/translations/jv.umd.js +5 -3
  169. package/dist/translations/kk.js +1 -1
  170. package/dist/translations/kk.umd.js +5 -3
  171. package/dist/translations/km.js +1 -1
  172. package/dist/translations/km.umd.js +5 -3
  173. package/dist/translations/kn.js +1 -1
  174. package/dist/translations/kn.umd.js +5 -3
  175. package/dist/translations/ko.js +1 -1
  176. package/dist/translations/ko.umd.js +5 -3
  177. package/dist/translations/ku.js +1 -1
  178. package/dist/translations/ku.umd.js +5 -3
  179. package/dist/translations/lt.js +1 -1
  180. package/dist/translations/lt.umd.js +5 -3
  181. package/dist/translations/lv.js +1 -1
  182. package/dist/translations/lv.umd.js +5 -3
  183. package/dist/translations/ms.js +1 -1
  184. package/dist/translations/ms.umd.js +5 -3
  185. package/dist/translations/nb.js +1 -1
  186. package/dist/translations/nb.umd.js +5 -3
  187. package/dist/translations/ne.js +1 -1
  188. package/dist/translations/ne.umd.js +5 -3
  189. package/dist/translations/nl.js +1 -1
  190. package/dist/translations/nl.umd.js +5 -3
  191. package/dist/translations/no.js +1 -1
  192. package/dist/translations/no.umd.js +5 -3
  193. package/dist/translations/oc.js +1 -1
  194. package/dist/translations/oc.umd.js +5 -3
  195. package/dist/translations/pl.js +1 -1
  196. package/dist/translations/pl.umd.js +5 -3
  197. package/dist/translations/pt-br.js +1 -1
  198. package/dist/translations/pt-br.umd.js +5 -3
  199. package/dist/translations/pt.js +1 -1
  200. package/dist/translations/pt.umd.js +5 -3
  201. package/dist/translations/ro.js +1 -1
  202. package/dist/translations/ro.umd.js +5 -3
  203. package/dist/translations/ru.js +1 -1
  204. package/dist/translations/ru.umd.js +5 -3
  205. package/dist/translations/si.js +1 -1
  206. package/dist/translations/si.umd.js +5 -3
  207. package/dist/translations/sk.js +1 -1
  208. package/dist/translations/sk.umd.js +5 -3
  209. package/dist/translations/sl.js +1 -1
  210. package/dist/translations/sl.umd.js +5 -3
  211. package/dist/translations/sq.js +1 -1
  212. package/dist/translations/sq.umd.js +5 -3
  213. package/dist/translations/sr-latn.js +1 -1
  214. package/dist/translations/sr-latn.umd.js +5 -3
  215. package/dist/translations/sr.js +1 -1
  216. package/dist/translations/sr.umd.js +5 -3
  217. package/dist/translations/sv.js +1 -1
  218. package/dist/translations/sv.umd.js +5 -3
  219. package/dist/translations/th.js +1 -1
  220. package/dist/translations/th.umd.js +5 -3
  221. package/dist/translations/ti.js +1 -1
  222. package/dist/translations/ti.umd.js +5 -3
  223. package/dist/translations/tk.js +1 -1
  224. package/dist/translations/tk.umd.js +5 -3
  225. package/dist/translations/tr.js +1 -1
  226. package/dist/translations/tr.umd.js +5 -3
  227. package/dist/translations/tt.js +1 -1
  228. package/dist/translations/tt.umd.js +5 -3
  229. package/dist/translations/ug.js +1 -1
  230. package/dist/translations/ug.umd.js +5 -3
  231. package/dist/translations/uk.js +1 -1
  232. package/dist/translations/uk.umd.js +5 -3
  233. package/dist/translations/ur.js +1 -1
  234. package/dist/translations/ur.umd.js +5 -3
  235. package/dist/translations/uz.js +1 -1
  236. package/dist/translations/uz.umd.js +5 -3
  237. package/dist/translations/vi.js +1 -1
  238. package/dist/translations/vi.umd.js +5 -3
  239. package/dist/translations/zh-cn.js +1 -1
  240. package/dist/translations/zh-cn.umd.js +5 -3
  241. package/dist/translations/zh.js +1 -1
  242. package/dist/translations/zh.umd.js +5 -3
  243. package/dist/ui/colorinputview.d.ts +136 -137
  244. package/dist/ui/inserttableview.d.ts +77 -78
  245. package/dist/utils/common.d.ts +64 -58
  246. package/dist/utils/structure.d.ts +229 -229
  247. package/dist/utils/table-properties.d.ts +92 -92
  248. package/dist/utils/ui/contextualballoon.d.ts +28 -28
  249. package/dist/utils/ui/table-properties.d.ts +130 -192
  250. package/dist/utils/ui/widget.d.ts +22 -22
  251. package/package.json +11 -10
@@ -1,128 +1,128 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module table/converters/tableproperties
7
- */
8
- import type { Editor } from '@ckeditor/ckeditor5-core';
9
- import type { Conversion, UpcastConversionData, ViewElement, Consumables } from '@ckeditor/ckeditor5-engine';
6
+ * @module table/converters/tableproperties
7
+ */
8
+ import type { Editor } from "@ckeditor/ckeditor5-core";
9
+ import type { Conversion, UpcastConversionData, ViewElement, Consumables } from "@ckeditor/ckeditor5-engine";
10
10
  /**
11
- * Conversion helper for upcasting attributes using normalized styles.
12
- *
13
- * @param options.modelAttribute The attribute to set.
14
- * @param options.styleName The style name to convert.
15
- * @param options.attributeName The HTML attribute name to convert.
16
- * @param options.attributeType The HTML attribute type for value normalization.
17
- * @param options.viewElement The view element name that should be converted.
18
- * @param options.defaultValue The default value for the specified `modelAttribute`.
19
- * @param options.shouldUpcast The function which returns `true` if style should be upcasted from this element.
20
- * @internal
21
- */
11
+ * Conversion helper for upcasting attributes using normalized styles.
12
+ *
13
+ * @param options.modelAttribute The attribute to set.
14
+ * @param options.styleName The style name to convert.
15
+ * @param options.attributeName The HTML attribute name to convert.
16
+ * @param options.attributeType The HTML attribute type for value normalization.
17
+ * @param options.viewElement The view element name that should be converted.
18
+ * @param options.defaultValue The default value for the specified `modelAttribute`.
19
+ * @param options.shouldUpcast The function which returns `true` if style should be upcasted from this element.
20
+ * @internal
21
+ */
22
22
  export declare function upcastStyleToAttribute(conversion: Conversion, options: {
23
- modelAttribute: string;
24
- styleName: string;
25
- attributeName?: string;
26
- attributeType?: 'length' | 'color';
27
- viewElement: string | RegExp;
28
- defaultValue: string;
29
- reduceBoxSides?: boolean;
30
- shouldUpcast?: (viewElement: ViewElement) => boolean;
23
+ modelAttribute: string;
24
+ styleName: string;
25
+ attributeName?: string;
26
+ attributeType?: "length" | "color";
27
+ viewElement: string | RegExp;
28
+ defaultValue: string;
29
+ reduceBoxSides?: boolean;
30
+ shouldUpcast?: (viewElement: ViewElement) => boolean;
31
31
  }): void;
32
32
  /**
33
- * The style values for border styles.
34
- *
35
- * @internal
36
- */
33
+ * The style values for border styles.
34
+ *
35
+ * @internal
36
+ */
37
37
  export interface StyleValues {
38
- color: string;
39
- style: string;
40
- width: string;
38
+ color: string;
39
+ style: string;
40
+ width: string;
41
41
  }
42
42
  /**
43
- * Conversion helper for upcasting border styles for view elements.
44
- *
45
- * @param editor The editor instance.
46
- * @param defaultBorder The default border values.
47
- * @param defaultBorder.color The default `borderColor` value.
48
- * @param defaultBorder.style The default `borderStyle` value.
49
- * @param defaultBorder.width The default `borderWidth` value.
50
- * @internal
51
- */
43
+ * Conversion helper for upcasting border styles for view elements.
44
+ *
45
+ * @param editor The editor instance.
46
+ * @param defaultBorder The default border values.
47
+ * @param defaultBorder.color The default `borderColor` value.
48
+ * @param defaultBorder.style The default `borderStyle` value.
49
+ * @param defaultBorder.width The default `borderWidth` value.
50
+ * @internal
51
+ */
52
52
  export declare function upcastBorderStyles(editor: Editor, viewElementName: string, modelAttributes: StyleValues, defaultBorder: StyleValues): void;
53
53
  /**
54
- * Conversion helper for downcasting an attribute to a style.
55
- *
56
- * @internal
57
- */
54
+ * Conversion helper for downcasting an attribute to a style.
55
+ *
56
+ * @internal
57
+ */
58
58
  export declare function downcastAttributeToStyle(conversion: Conversion, options: {
59
- modelElement: string;
60
- modelAttribute: string;
61
- styleName: string;
59
+ modelElement: string;
60
+ modelAttribute: string;
61
+ styleName: string;
62
62
  }): void;
63
63
  /**
64
- * Conversion helper for downcasting attributes from the model table to a view table (not to `<figure>`).
65
- *
66
- * @internal
67
- */
64
+ * Conversion helper for downcasting attributes from the model table to a view table (not to `<figure>`).
65
+ *
66
+ * @internal
67
+ */
68
68
  export declare function downcastTableAttribute(conversion: Conversion, options: {
69
- modelAttribute: string;
70
- styleName: string;
69
+ modelAttribute: string;
70
+ styleName: string;
71
71
  }): void;
72
72
  /**
73
- * Returns the default value for table or table cell property adjusted for layout tables.
74
- *
75
- * @internal
76
- */
73
+ * Returns the default value for table or table cell property adjusted for layout tables.
74
+ *
75
+ * @internal
76
+ */
77
77
  export declare function getDefaultValueAdjusted(defaultValue: string, layoutTableDefault: string, data: UpcastConversionData<ViewElement>): string;
78
78
  /**
79
- * Conversion helper for upcasting the `cellpadding` table attribute.
80
- *
81
- * @param editor The editor instance.
82
- * @param viewElementName The view element name that should be converted.
83
- * @param defaultPadding The default padding value.
84
- * @internal
85
- */
79
+ * Conversion helper for upcasting the `cellpadding` table attribute.
80
+ *
81
+ * @param editor The editor instance.
82
+ * @param viewElementName The view element name that should be converted.
83
+ * @param defaultPadding The default padding value.
84
+ * @internal
85
+ */
86
86
  export declare function upcastTableCellPaddingAttribute(editor: Editor, viewElementName: string, defaultPadding?: string): void;
87
87
  /**
88
- * Default table alignment options.
89
- */
88
+ * Default table alignment options.
89
+ */
90
90
  export declare const DEFAULT_TABLE_ALIGNMENT_OPTIONS: {
91
- left: {
92
- className: string;
93
- };
94
- center: {
95
- className: string;
96
- };
97
- right: {
98
- className: string;
99
- };
100
- blockLeft: {
101
- className: string;
102
- };
103
- blockRight: {
104
- className: string;
105
- };
91
+ left: {
92
+ className: string;
93
+ };
94
+ center: {
95
+ className: string;
96
+ };
97
+ right: {
98
+ className: string;
99
+ };
100
+ blockLeft: {
101
+ className: string;
102
+ };
103
+ blockRight: {
104
+ className: string;
105
+ };
106
106
  };
107
107
  /**
108
- * Configuration for upcasting table alignment from view to model.
109
- */
108
+ * Configuration for upcasting table alignment from view to model.
109
+ */
110
110
  export declare const upcastTableAlignmentConfig: Array<UpcastTableAlignmentConfig>;
111
111
  export declare const downcastTableAlignmentConfig: Record<TableAlignmentValues, {
112
- align: string | undefined;
113
- style: string;
114
- className: string;
112
+ align: string | undefined;
113
+ style: string;
114
+ className: string;
115
115
  }>;
116
116
  type UpcastTableAlignmentConfig = {
117
- view: {
118
- name: RegExp | string;
119
- styles?: Record<string, RegExp | string>;
120
- attributes?: Record<string, RegExp | string>;
121
- key?: string;
122
- value?: RegExp | string;
123
- };
124
- getAlign: ((viewElement: ViewElement) => string | undefined) | (() => string);
125
- getConsumables: (viewElement: ViewElement) => Consumables;
117
+ view: {
118
+ name: RegExp | string;
119
+ styles?: Record<string, RegExp | string>;
120
+ attributes?: Record<string, RegExp | string>;
121
+ key?: string;
122
+ value?: RegExp | string;
123
+ };
124
+ getAlign: ((viewElement: ViewElement) => string | undefined) | (() => string);
125
+ getConsumables: (viewElement: ViewElement) => Consumables;
126
126
  };
127
- export type TableAlignmentValues = 'left' | 'center' | 'right' | 'blockLeft' | 'blockRight';
127
+ export type TableAlignmentValues = "left" | "center" | "right" | "blockLeft" | "blockRight";
128
128
  export {};
@@ -1,58 +1,58 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module table/converters/upcasttable
7
- */
8
- import type { UpcastDispatcher } from '@ckeditor/ckeditor5-engine';
6
+ * @module table/converters/upcasttable
7
+ */
8
+ import type { UpcastDispatcher } from "@ckeditor/ckeditor5-engine";
9
9
  /**
10
- * Returns a function that converts the table view representation:
11
- *
12
- * ```xml
13
- * <figure class="table"><table>...</table></figure>
14
- * ```
15
- *
16
- * to the model representation:
17
- *
18
- * ```xml
19
- * <table></table>
20
- * ```
21
- *
22
- * @internal
23
- */
10
+ * Returns a function that converts the table view representation:
11
+ *
12
+ * ```xml
13
+ * <figure class="table"><table>...</table></figure>
14
+ * ```
15
+ *
16
+ * to the model representation:
17
+ *
18
+ * ```xml
19
+ * <table></table>
20
+ * ```
21
+ *
22
+ * @internal
23
+ */
24
24
  export declare function upcastTableFigure(): (dispatcher: UpcastDispatcher) => void;
25
25
  /**
26
- * View table element to model table element conversion helper.
27
- *
28
- * This conversion helper converts the table element as well as table rows.
29
- *
30
- * @param options Conversion options.
31
- * @param options.enableFooters If set to `true` the `footerRows` attribute will be upcasted.
32
- * @returns Conversion helper.
33
- * @internal
34
- */
26
+ * View table element to model table element conversion helper.
27
+ *
28
+ * This conversion helper converts the table element as well as table rows.
29
+ *
30
+ * @param options Conversion options.
31
+ * @param options.enableFooters If set to `true` the `footerRows` attribute will be upcasted.
32
+ * @returns Conversion helper.
33
+ * @internal
34
+ */
35
35
  export declare function upcastTable(options: {
36
- enableFooters?: boolean;
36
+ enableFooters?: boolean;
37
37
  }): (dispatcher: UpcastDispatcher) => void;
38
38
  /**
39
- * A conversion helper that skips empty <tr> elements from upcasting at the beginning of the table.
40
- *
41
- * An empty row is considered a table model error but when handling clipboard data there could be rows that contain only row-spanned cells
42
- * and empty TR-s are used to maintain the table structure (also {@link module:table/tablewalker~TableWalker} assumes that there are only
43
- * rows that have related `tableRow` elements).
44
- *
45
- * *Note:* Only the first empty rows are removed because they have no meaning and it solves the issue
46
- * of an improper table with all empty rows.
47
- *
48
- * @internal
49
- * @returns Conversion helper.
50
- */
39
+ * A conversion helper that skips empty <tr> elements from upcasting at the beginning of the table.
40
+ *
41
+ * An empty row is considered a table model error but when handling clipboard data there could be rows that contain only row-spanned cells
42
+ * and empty TR-s are used to maintain the table structure (also {@link module:table/tablewalker~TableWalker} assumes that there are only
43
+ * rows that have related `tableRow` elements).
44
+ *
45
+ * *Note:* Only the first empty rows are removed because they have no meaning and it solves the issue
46
+ * of an improper table with all empty rows.
47
+ *
48
+ * @internal
49
+ * @returns Conversion helper.
50
+ */
51
51
  export declare function skipEmptyTableRow(): (dispatcher: UpcastDispatcher) => void;
52
52
  /**
53
- * A converter that ensures an empty paragraph is inserted in a table cell if no other content was converted.
54
- *
55
- * @internal
56
- * @returns Conversion helper.
57
- */
53
+ * A converter that ensures an empty paragraph is inserted in a table cell if no other content was converted.
54
+ *
55
+ * @internal
56
+ * @returns Conversion helper.
57
+ */
58
58
  export declare function ensureParagraphInTableCell(elementName: string): (dispatcher: UpcastDispatcher) => void;
@@ -2,134 +2,145 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- .ck-content .table th{
6
- text-align:start;
5
+ :root, :host {
6
+ --ck-content-table-style-spacing: 1.5em;
7
+ --ck-content-color-table-caption-background: #f7f7f7;
8
+ --ck-content-color-table-caption-text: #333;
7
9
  }
8
10
 
9
- .ck-content[dir="rtl"] .table th{
10
- text-align:right;
11
- }
12
-
13
- .ck-content[dir="ltr"] .table th{
14
- text-align:left;
15
- }
16
-
17
- .ck-content figure.table:not(.layout-table){
18
- display:table;
19
- }
20
-
21
- .ck-content figure.table:not(.layout-table) > table{
22
- width:100%;
23
- height:100%;
24
- }
25
-
26
- .ck-content .table:not(.layout-table){
27
- margin:.9em auto;
28
- }
29
-
30
- .ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table{
31
- border-collapse:collapse;
32
- border-spacing:0;
33
- border:1px double #b3b3b3;
34
- }
35
-
36
- :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th{
37
- background:#0000000d;
38
- font-weight:bold;
39
- }
40
-
41
- :is(:is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th) > p:first-of-type{
42
- margin-top:0;
43
- }
44
-
45
- :is(:is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th) > p:last-of-type{
46
- margin-bottom:0;
47
- }
48
-
49
- :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th{
50
- border:1px solid #bfbfbf;
51
- min-width:2em;
52
- padding:.4em;
53
- }
11
+ .ck-content {
12
+ & .table th {
13
+ text-align: start;
14
+ }
54
15
 
55
- @media print{
56
- .ck-content figure.table:not(.layout-table){
57
- width:fit-content;
58
- height:fit-content;
16
+ &[dir="rtl"] .table th {
17
+ text-align: right;
59
18
  }
60
19
 
61
- .ck-content figure.table:not(.layout-table) > table{
62
- height:initial;
20
+ &[dir="ltr"] .table th {
21
+ text-align: left;
63
22
  }
64
- }
65
23
 
66
- .ck-content table.table.layout-table, .ck-content figure.table.layout-table{
67
- margin-top:0;
68
- margin-bottom:0;
69
- }
24
+ & figure.table:not(.layout-table) {
25
+ display: table;
70
26
 
71
- .ck-content table.table.layout-table, .ck-content figure.table.layout-table > table{
72
- border-spacing:0;
73
- }
27
+ & > table {
28
+ width: 100%;
29
+ height: 100%;
30
+ }
31
+ }
74
32
 
75
- :root{
76
- --ck-content-table-style-spacing:1.5em;
77
- }
33
+ & .table:not(.layout-table) {
34
+ margin: .9em auto;
35
+ }
78
36
 
79
- .ck-content .table.table-style-align-left{
80
- float:left;
81
- margin-right:var(--ck-content-table-style-spacing);
37
+ & table.table:not(.layout-table), & figure.table:not(.layout-table) > table {
38
+ border-collapse: collapse;
39
+ border-spacing: 0;
40
+ border: 1px double #b3b3b3;
41
+
42
+ & > thead, & > tfoot, & > tbody {
43
+ & > tr {
44
+ & > th {
45
+ background: #0000000d;
46
+ font-weight: bold;
47
+ }
48
+
49
+ & > td, & > th {
50
+ & > p:first-of-type {
51
+ margin-top: 0;
52
+ }
53
+
54
+ & > p:last-of-type {
55
+ margin-bottom: 0;
56
+ }
57
+
58
+ border: 1px solid #bfbfbf;
59
+ min-width: 2em;
60
+ padding: .4em;
61
+ }
62
+ }
63
+ }
64
+ }
82
65
  }
83
66
 
84
- .ck-content .table.table-style-align-right{
85
- float:right;
86
- margin-left:var(--ck-content-table-style-spacing);
87
- }
67
+ @media print {
68
+ .ck-content figure.table {
69
+ &:not(.layout-table) {
70
+ width: fit-content;
71
+ height: fit-content;
72
+ }
88
73
 
89
- .ck-content .table.table-style-align-center{
90
- margin-left:auto;
91
- margin-right:auto;
74
+ &:not(.layout-table) > table {
75
+ height: initial;
76
+ }
77
+ }
92
78
  }
93
79
 
94
- .ck-content .table.table-style-block-align-left{
95
- margin-left:0;
96
- margin-right:auto;
97
- }
80
+ .ck-content {
81
+ & table.table.layout-table, & figure.table.layout-table {
82
+ margin-top: 0;
83
+ margin-bottom: 0;
84
+ }
98
85
 
99
- .ck-content .table.table-style-block-align-right{
100
- margin-left:auto;
101
- margin-right:0;
86
+ & table.table.layout-table, & figure.table.layout-table > table {
87
+ border-spacing: 0;
88
+ }
102
89
  }
103
90
 
104
- :root{
105
- --ck-content-color-table-caption-background:#f7f7f7;
106
- --ck-content-color-table-caption-text:#333;
91
+ .ck-content {
92
+ & .table {
93
+ &.table-style-align-left {
94
+ float: left;
95
+ margin-right: var(--ck-content-table-style-spacing);
96
+ }
97
+
98
+ &.table-style-align-right {
99
+ float: right;
100
+ margin-left: var(--ck-content-table-style-spacing);
101
+ }
102
+
103
+ &.table-style-align-center {
104
+ margin-left: auto;
105
+ margin-right: auto;
106
+ }
107
+
108
+ &.table-style-block-align-left {
109
+ margin-left: 0;
110
+ margin-right: auto;
111
+ }
112
+
113
+ &.table-style-block-align-right {
114
+ margin-left: auto;
115
+ margin-right: 0;
116
+ }
117
+ }
107
118
  }
108
119
 
109
- .ck-content .table > figcaption, .ck-content figure.table > table > caption{
110
- caption-side:top;
111
- word-break:normal;
112
- overflow-wrap:anywhere;
113
- text-align:center;
114
- color:var(--ck-content-color-table-caption-text);
115
- background-color:var(--ck-content-color-table-caption-background);
116
- outline-offset:-1px;
117
- padding:.6em;
118
- font-size:.75em;
119
- display:table-caption;
120
+ .ck-content .table > figcaption, .ck-content figure.table > table > caption {
121
+ caption-side: top;
122
+ word-break: normal;
123
+ overflow-wrap: anywhere;
124
+ text-align: center;
125
+ color: var(--ck-content-color-table-caption-text);
126
+ background-color: var(--ck-content-color-table-caption-background);
127
+ outline-offset: -1px;
128
+ padding: .6em;
129
+ font-size: .75em;
130
+ display: table-caption;
131
+
132
+ @media (forced-colors: active) {
133
+ background-color: unset;
134
+ color: unset;
135
+ }
120
136
  }
121
137
 
122
- @media (forced-colors: active){
123
- .ck-content .table > figcaption, .ck-content figure.table > table > caption{
124
- background-color:unset;
125
- color:unset;
126
- }
138
+ .ck-content .table .ck-table-resized {
139
+ table-layout: fixed;
127
140
  }
128
141
 
129
- .ck-content .table .ck-table-resized{
130
- table-layout:fixed;
142
+ .ck-content .table td, .ck-content .table th {
143
+ overflow-wrap: break-word;
131
144
  }
132
145
 
133
- .ck-content .table td, .ck-content .table th{
134
- overflow-wrap:break-word;
135
- }
146
+ /*# sourceMappingURL=index-content.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../theme/index-content.css","index-content.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG;AACzC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;AACtD,CAAC,CAAC,CAAC,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,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,CAAA;ACzED,CAAC,CAAC,CAAC,CDyE8B,UAAA,CAAA,KAAA,CAAA,CAAA,KAAA;ACxEjC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK;AAChB,CAAC,CAAC;AACF;;AD4EA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,OAAA,CAAA;ACzEA,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK;AACrB;;AD4EA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,EAAA,CAAA;ACzEA,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI;AAC3B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-content.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root,\n:host {\n\t/* The variable is used by both editor and content styles. Keep it in sync with the identical declaration in `tableproperties.css`. */\n\t--ck-content-table-style-spacing: 1.5em;\n\n\t/* The variable is used by both editor and content styles. Keep it in sync with the identical declaration in `tablecaption.css`. */\n\t--ck-content-color-table-caption-background: hsl(0, 0%, 97%);\n\t--ck-content-color-table-caption-text: hsl(0, 0%, 20%);\n}\n\n.ck-content {\n\t/* Ensure that table header text is aligned to the start by default. See https://github.com/ckeditor/ckeditor5/issues/19454. */\n\t& .table th {\n\t\ttext-align: start;\n\t}\n\n\t/* Text alignment of the table header should match the editor settings and override the native browser styling,\n\twhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638. */\n\t&[dir=\"rtl\"] .table th {\n\t\ttext-align: right;\n\t}\n\n\t&[dir=\"ltr\"] .table th {\n\t\ttext-align: left;\n\t}\n\n\t& figure.table:not(.layout-table) {\n\t\tdisplay: table;\n\n\t\t& > table {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t& .table:not(.layout-table) {\n\t\t/* Give the table widget some air and center it horizontally */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\t}\n\n\t& table.table:not(.layout-table),\n\t& figure.table:not(.layout-table) > table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& > thead,\n\t\t& > tfoot,\n\t\t& > tbody {\n\t\t\t/* The linter is disabled here because linter is confused when resolving the `table.table:not(.layout-table)`\n\t\t\tand `figure.table:not(.layout-table) > table` selectors combined with below selectors.\n\t\t\tThere is no need to split it into two large structures with same code just to make linter happy. */\n\t\t\t& > tr {\n\t\t\t\t& > th {\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t\t\t}\n\n\t\t\t\t& > td,\n\t\t\t\t& > th {\n\t\t\t\t\t/* Opinionated table content styling: prevents content from shifting\n\t\t\t\t\t * when Enter is pressed in the first cell.\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:first-of-type {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Mirrors the rule above for the last paragraph to keep the\n\t\t\t\t\t * experience consistent with the first paragraph.\n\t\t\t\t\t *\n\t\t\t\t\t * Together, these rules prevent margins from appearing when a\n\t\t\t\t\t * bogus paragraph becomes a real paragraph after it receives line\n\t\t\t\t\t * height, text alignment, or other block style.\n\t\t\t\t\t *\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:last-of-type {\n\t\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tmin-width: 2em;\n\t\t\t\t\tpadding: 0.4em;\n\n\t\t\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.\n\t\t\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n@media print {\n\t.ck-content figure.table {\n\t\t/**\n\t\t * Sometimes Chrome incorrectly calculates the height of the last table row and some\n\t\t * of the content overlaps the paragraph that is placed directly after the table. It affects\n\t\t * the column split mode pagination calculation which causes mismatch between the print mode and\n\t\t * the preview mode.\n\t\t *\n\t\t * This issue happens only if:\n\t\t *\n\t\t * \t* The table is inside a figure element.\n\t\t * \t* The table has `display: table` style set.\n\t\t * \t* The block element is placed directly after the table.\n\t\t */\n\t\t&:not(.layout-table) {\n\t\t\twidth: fit-content;\n\t\t\theight: fit-content;\n\t\t}\n\n\t\t/**\n\t\t * Expanding the table to the full height of the parent container is necessary because tables\n\t\t * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\n\t\t * While setting `height: 100%` fixes the issue in the editing mode described here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/6186\n\t\t *\n\t\t * it's causing another issue with the table height in the print preview mode here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/16856\n\t\t *\n\t\t * For now, resetting the height to `initial` in the print mode works as a workaround.\n\t\t */\n\t\t&:not(.layout-table) > table {\n\t\t\theight: initial;\n\t\t}\n\t}\n}\n\n.ck-content {\n\t& table.table.layout-table,\n\t& figure.table.layout-table {\n\t\t/* Do not reserve space above and below the layout table. */\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t& table.table.layout-table {\n\t\tborder-spacing: 0;\n\t}\n\n\t& figure.table.layout-table > table {\n\t\tborder-spacing: 0;\n\t}\n}\n\n.ck-content {\n\t& .table {\n\t\t&.table-style-align-left {\n\t\t\tfloat: left;\n\t\t\tmargin-right: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-right {\n\t\t\tfloat: right;\n\t\t\tmargin-left: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-center {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-left {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-right {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n}\n\n.ck-content .table > figcaption,\n.ck-content figure.table > table > caption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: normal;\n\toverflow-wrap: anywhere;\n\ttext-align: center;\n\tcolor: var(--ck-content-color-table-caption-text);\n\tbackground-color: var(--ck-content-color-table-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n\t@media (forced-colors: active) {\n\t\tbackground-color: unset;\n\t\tcolor: unset;\n\t}\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n}\n",":root, :host {\n --ck-content-table-style-spacing: 1.5em;\n --ck-content-color-table-caption-background: #f7f7f7;\n --ck-content-color-table-caption-text: #333;\n}\n\n.ck-content {\n & .table th {\n text-align: start;\n }\n\n &[dir=\"rtl\"] .table th {\n text-align: right;\n }\n\n &[dir=\"ltr\"] .table th {\n text-align: left;\n }\n\n & figure.table:not(.layout-table) {\n display: table;\n\n & > table {\n width: 100%;\n height: 100%;\n }\n }\n\n & .table:not(.layout-table) {\n margin: .9em auto;\n }\n\n & table.table:not(.layout-table), & figure.table:not(.layout-table) > table {\n border-collapse: collapse;\n border-spacing: 0;\n border: 1px double #b3b3b3;\n\n & > thead, & > tfoot, & > tbody {\n & > tr {\n & > th {\n background: #0000000d;\n font-weight: bold;\n }\n\n & > td, & > th {\n & > p:first-of-type {\n margin-top: 0;\n }\n\n & > p:last-of-type {\n margin-bottom: 0;\n }\n\n border: 1px solid #bfbfbf;\n min-width: 2em;\n padding: .4em;\n }\n }\n }\n }\n}\n\n@media print {\n .ck-content figure.table {\n &:not(.layout-table) {\n width: fit-content;\n height: fit-content;\n }\n\n &:not(.layout-table) > table {\n height: initial;\n }\n }\n}\n\n.ck-content {\n & table.table.layout-table, & figure.table.layout-table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n & table.table.layout-table, & figure.table.layout-table > table {\n border-spacing: 0;\n }\n}\n\n.ck-content {\n & .table {\n &.table-style-align-left {\n float: left;\n margin-right: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-right {\n float: right;\n margin-left: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n &.table-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n &.table-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n }\n}\n\n.ck-content .table > figcaption, .ck-content figure.table > table > caption {\n caption-side: top;\n word-break: normal;\n overflow-wrap: anywhere;\n text-align: center;\n color: var(--ck-content-color-table-caption-text);\n background-color: var(--ck-content-color-table-caption-background);\n outline-offset: -1px;\n padding: .6em;\n font-size: .75em;\n display: table-caption;\n\n @media (forced-colors: active) {\n background-color: unset;\n color: unset;\n }\n}\n\n.ck-content .table .ck-table-resized {\n table-layout: fixed;\n}\n\n.ck-content .table td, .ck-content .table th {\n overflow-wrap: break-word;\n}\n\n/*# sourceMappingURL=index-content.css.map */"]}