@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.
- package/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +12 -1
- package/dist/augmentation.d.ts +83 -80
- package/dist/commands/insertcolumncommand.d.ts +50 -50
- package/dist/commands/insertrowcommand.d.ts +49 -49
- package/dist/commands/inserttablecommand.d.ts +48 -43
- package/dist/commands/inserttablelayoutcommand.d.ts +39 -34
- package/dist/commands/mergecellcommand.d.ts +63 -63
- package/dist/commands/mergecellscommand.d.ts +24 -24
- package/dist/commands/removecolumncommand.d.ts +24 -24
- package/dist/commands/removerowcommand.d.ts +24 -24
- package/dist/commands/selectcolumncommand.d.ts +28 -28
- package/dist/commands/selectrowcommand.d.ts +28 -28
- package/dist/commands/setfooterrowcommand.d.ts +48 -48
- package/dist/commands/setheadercolumncommand.d.ts +45 -45
- package/dist/commands/setheaderrowcommand.d.ts +48 -48
- package/dist/commands/splitcellcommand.d.ts +39 -38
- package/dist/converters/downcast.d.ts +77 -77
- package/dist/converters/table-caption-post-fixer.d.ts +18 -18
- package/dist/converters/table-cell-paragraph-post-fixer.d.ts +30 -30
- package/dist/converters/table-cell-refresh-handler.d.ts +16 -16
- package/dist/converters/table-layout-post-fixer.d.ts +224 -224
- package/dist/converters/table-structure-post-fixer.d.ts +16 -16
- package/dist/converters/table-structure-refresh-handler.d.ts +15 -15
- package/dist/converters/tableproperties.d.ts +98 -98
- package/dist/converters/upcasttable.d.ts +47 -47
- package/dist/index-content.css +116 -105
- package/dist/index-content.css.map +1 -0
- package/dist/index-editor.css +718 -601
- package/dist/index-editor.css.map +1 -0
- package/dist/index.css +781 -650
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +103 -98
- package/dist/index.js +13669 -14491
- package/dist/index.js.map +1 -1
- package/dist/plaintableoutput.d.ts +28 -28
- package/dist/table.d.ts +38 -39
- package/dist/tablecaption/tablecaptionediting.d.ts +62 -62
- package/dist/tablecaption/tablecaptionui.d.ts +18 -18
- package/dist/tablecaption/toggletablecaptioncommand.d.ts +61 -61
- package/dist/tablecaption/utils.d.ts +31 -31
- package/dist/tablecaption.d.ts +22 -23
- package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +27 -27
- package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +32 -32
- package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +32 -32
- package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +46 -46
- package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +41 -41
- package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +27 -27
- package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +46 -46
- package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +79 -79
- package/dist/tablecellproperties/commands/tablecelltypecommand.d.ts +42 -42
- package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +35 -35
- package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +49 -49
- package/dist/tablecellproperties/tablecellpropertiesui.d.ts +130 -123
- package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
- package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +255 -257
- package/dist/tablecellproperties.d.ts +29 -29
- package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +41 -41
- package/dist/tablecellwidth/tablecellwidthediting.d.ts +28 -28
- package/dist/tableclipboard.d.ts +79 -79
- package/dist/tablecolumnresize/commands/tablecolumnwidthcommand.d.ts +56 -0
- package/dist/tablecolumnresize/constants.d.ts +40 -25
- package/dist/tablecolumnresize/converters.d.ts +20 -20
- package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +263 -184
- package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
- package/dist/tablecolumnresize/utils.d.ts +166 -127
- package/dist/tablecolumnresize.d.ts +24 -25
- package/dist/tableconfig.d.ts +736 -670
- package/dist/tableediting.d.ts +98 -99
- package/dist/tablekeyboard.d.ts +67 -67
- package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
- package/dist/tablelayout/tablelayoutediting.d.ts +57 -58
- package/dist/tablelayout/tablelayoutui.d.ts +27 -27
- package/dist/tablelayout.d.ts +25 -25
- package/dist/tablemouse/mouseeventsobserver.d.ts +54 -54
- package/dist/tablemouse.d.ts +47 -47
- package/dist/tableproperties/commands/tablealignmentcommand.d.ts +27 -27
- package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +27 -27
- package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +32 -32
- package/dist/tableproperties/commands/tableborderstylecommand.d.ts +32 -32
- package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +46 -46
- package/dist/tableproperties/commands/tableheightcommand.d.ts +41 -41
- package/dist/tableproperties/commands/tablepropertycommand.d.ts +64 -64
- package/dist/tableproperties/commands/tablewidthcommand.d.ts +41 -41
- package/dist/tableproperties/tablepropertiesediting.d.ts +48 -48
- package/dist/tableproperties/tablepropertiesui.d.ts +131 -131
- package/dist/tableproperties/ui/tablepropertiesview.d.ts +210 -207
- package/dist/tableproperties.d.ts +29 -29
- package/dist/tablescroll/tablescrollediting.d.ts +91 -0
- package/dist/tablescroll/watchers.d.ts +29 -0
- package/dist/tablescroll.d.ts +23 -0
- package/dist/tableselection.d.ts +105 -106
- package/dist/tabletoolbar.d.ts +31 -31
- package/dist/tableui.d.ts +53 -53
- package/dist/tableutils.d.ts +532 -532
- package/dist/tablewalker.d.ts +342 -350
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +5 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +5 -3
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +5 -3
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +5 -3
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +5 -3
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +5 -3
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +5 -3
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +5 -3
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +5 -3
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +5 -3
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +5 -3
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +5 -3
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +5 -3
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +5 -3
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +5 -3
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +5 -3
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +5 -3
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +5 -3
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +5 -3
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +5 -3
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +5 -3
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +5 -3
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +5 -3
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +5 -3
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +5 -3
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +5 -3
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +5 -3
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +5 -3
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +5 -3
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +5 -3
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +5 -3
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +5 -3
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +5 -3
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +5 -3
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +5 -3
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +5 -3
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +5 -3
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +5 -3
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +5 -3
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +5 -3
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +5 -3
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +5 -3
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +5 -3
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +5 -3
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +5 -3
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +5 -3
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +5 -3
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +5 -3
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +5 -3
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +5 -3
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +5 -3
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +5 -3
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +5 -3
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +5 -3
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +5 -3
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +5 -3
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +5 -3
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +5 -3
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +5 -3
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +5 -3
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +5 -3
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +5 -3
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +5 -3
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +5 -3
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +5 -3
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +5 -3
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +5 -3
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +5 -3
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +5 -3
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +5 -3
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +5 -3
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +5 -3
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +5 -3
- package/dist/ui/colorinputview.d.ts +136 -137
- package/dist/ui/inserttableview.d.ts +77 -78
- package/dist/utils/common.d.ts +64 -58
- package/dist/utils/structure.d.ts +229 -229
- package/dist/utils/table-properties.d.ts +92 -92
- package/dist/utils/ui/contextualballoon.d.ts +28 -28
- package/dist/utils/ui/table-properties.d.ts +130 -192
- package/dist/utils/ui/widget.d.ts +22 -22
- package/package.json +11 -10
|
@@ -1,215 +1,218 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig, type FocusableView } from
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from
|
|
10
|
-
import { type ColorInputView } from
|
|
11
|
-
import type { TablePropertiesOptions } from
|
|
12
|
-
import '../../../theme/formrow.css';
|
|
13
|
-
import '../../../theme/tableform.css';
|
|
14
|
-
import '../../../theme/tableproperties.css';
|
|
6
|
+
* @module table/tableproperties/ui/tablepropertiesview
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig, type FocusableView } from "@ckeditor/ckeditor5-ui";
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
+
import { type ColorInputView } from "../../ui/colorinputview.js";
|
|
11
|
+
import type { TablePropertiesOptions } from "../../tableconfig.js";
|
|
15
12
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
* Additional configuration of the view.
|
|
14
|
+
*/
|
|
18
15
|
export interface TablePropertiesViewOptions {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
/**
|
|
17
|
+
* A configuration of the border color palette used by the
|
|
18
|
+
* {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#borderColorInput}.
|
|
19
|
+
*/
|
|
20
|
+
borderColors: Array<NormalizedColorOption>;
|
|
21
|
+
/**
|
|
22
|
+
* A configuration of the background color palette used by the
|
|
23
|
+
* {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView#backgroundInput}.
|
|
24
|
+
*/
|
|
25
|
+
backgroundColors: Array<NormalizedColorOption>;
|
|
26
|
+
/**
|
|
27
|
+
* The default table properties.
|
|
28
|
+
*/
|
|
29
|
+
defaultTableProperties: TablePropertiesOptions;
|
|
30
|
+
/**
|
|
31
|
+
* The number of columns in the color palettes.
|
|
32
|
+
*
|
|
33
|
+
* Defaults to {@link module:ui/colorgrid/colors~defaultColorGridColumns}.
|
|
34
|
+
*/
|
|
35
|
+
colorGridColumns?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The default color picker config.
|
|
38
|
+
*/
|
|
39
|
+
colorPickerConfig: false | ColorPickerConfig;
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
* The class representing a table properties form, allowing users to customize
|
|
43
|
+
* certain style aspects of a table, for instance, border, background color, alignment, etc..
|
|
44
|
+
*/
|
|
42
45
|
export declare class TablePropertiesView extends View {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The value of the border style.
|
|
48
|
+
*
|
|
49
|
+
* @observable
|
|
50
|
+
* @default ''
|
|
51
|
+
*/
|
|
52
|
+
borderStyle: string;
|
|
53
|
+
/**
|
|
54
|
+
* The value of the border width style.
|
|
55
|
+
*
|
|
56
|
+
* @observable
|
|
57
|
+
* @default ''
|
|
58
|
+
*/
|
|
59
|
+
borderWidth: string;
|
|
60
|
+
/**
|
|
61
|
+
* The value of the border color style.
|
|
62
|
+
*
|
|
63
|
+
* @observable
|
|
64
|
+
* @default ''
|
|
65
|
+
*/
|
|
66
|
+
borderColor: string;
|
|
67
|
+
/**
|
|
68
|
+
* The value of the background color style.
|
|
69
|
+
*
|
|
70
|
+
* @observable
|
|
71
|
+
* @default ''
|
|
72
|
+
*/
|
|
73
|
+
backgroundColor: string;
|
|
74
|
+
/**
|
|
75
|
+
* The value of the table width style.
|
|
76
|
+
*
|
|
77
|
+
* @observable
|
|
78
|
+
* @default ''
|
|
79
|
+
*/
|
|
80
|
+
width: string;
|
|
81
|
+
/**
|
|
82
|
+
* The value of the table height style.
|
|
83
|
+
*
|
|
84
|
+
* @observable
|
|
85
|
+
* @default ''
|
|
86
|
+
*/
|
|
87
|
+
height: string;
|
|
88
|
+
/**
|
|
89
|
+
* The value of the table alignment style.
|
|
90
|
+
*
|
|
91
|
+
* @observable
|
|
92
|
+
* @default ''
|
|
93
|
+
*/
|
|
94
|
+
alignment: string;
|
|
95
|
+
/**
|
|
96
|
+
* Options passed to the view. See {@link #constructor} to learn more.
|
|
97
|
+
*/
|
|
98
|
+
readonly options: TablePropertiesViewOptions;
|
|
99
|
+
/**
|
|
100
|
+
* Tracks information about the DOM focus in the form.
|
|
101
|
+
*/
|
|
102
|
+
readonly focusTracker: FocusTracker;
|
|
103
|
+
/**
|
|
104
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
105
|
+
*/
|
|
106
|
+
readonly keystrokes: KeystrokeHandler;
|
|
107
|
+
/**
|
|
108
|
+
* A collection of child views in the form.
|
|
109
|
+
*/
|
|
110
|
+
readonly children: ViewCollection;
|
|
111
|
+
/**
|
|
112
|
+
* A dropdown that allows selecting the style of the table border.
|
|
113
|
+
*/
|
|
114
|
+
readonly borderStyleDropdown: LabeledFieldView<DropdownView>;
|
|
115
|
+
/**
|
|
116
|
+
* An input that allows specifying the width of the table border.
|
|
117
|
+
*/
|
|
118
|
+
readonly borderWidthInput: LabeledFieldView<InputTextView>;
|
|
119
|
+
/**
|
|
120
|
+
* An input that allows specifying the color of the table border.
|
|
121
|
+
*/
|
|
122
|
+
readonly borderColorInput: LabeledFieldView<ColorInputView>;
|
|
123
|
+
/**
|
|
124
|
+
* An input that allows specifying the table background color.
|
|
125
|
+
*/
|
|
126
|
+
readonly backgroundInput: LabeledFieldView<ColorInputView>;
|
|
127
|
+
/**
|
|
128
|
+
* An input that allows specifying the table width.
|
|
129
|
+
*/
|
|
130
|
+
readonly widthInput: LabeledFieldView<InputTextView>;
|
|
131
|
+
/**
|
|
132
|
+
* An input that allows specifying the table height.
|
|
133
|
+
*/
|
|
134
|
+
readonly heightInput: LabeledFieldView<InputTextView>;
|
|
135
|
+
/**
|
|
136
|
+
* A toolbar with buttons that allow changing the alignment of an entire table.
|
|
137
|
+
*/
|
|
138
|
+
readonly alignmentToolbar: ToolbarView;
|
|
139
|
+
/**
|
|
140
|
+
* The "Save" button view.
|
|
141
|
+
*/
|
|
142
|
+
saveButtonView: ButtonView;
|
|
143
|
+
/**
|
|
144
|
+
* The "Cancel" button view.
|
|
145
|
+
*/
|
|
146
|
+
cancelButtonView: ButtonView;
|
|
147
|
+
/**
|
|
148
|
+
* The Back button view displayed in the header.
|
|
149
|
+
*/
|
|
150
|
+
backButtonView: ButtonView;
|
|
151
|
+
/**
|
|
152
|
+
* A collection of views that can be focused in the form.
|
|
153
|
+
*/
|
|
154
|
+
protected readonly _focusables: ViewCollection<FocusableView>;
|
|
155
|
+
/**
|
|
156
|
+
* Helps cycling over {@link #_focusables} in the form.
|
|
157
|
+
*/
|
|
158
|
+
protected readonly _focusCycler: FocusCycler;
|
|
159
|
+
/**
|
|
160
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
161
|
+
* @param options Additional configuration of the view.
|
|
162
|
+
*/
|
|
163
|
+
constructor(locale: Locale, options: TablePropertiesViewOptions);
|
|
164
|
+
/**
|
|
165
|
+
* @inheritDoc
|
|
166
|
+
*/
|
|
167
|
+
override render(): void;
|
|
168
|
+
/**
|
|
169
|
+
* @inheritDoc
|
|
170
|
+
*/
|
|
171
|
+
override destroy(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Focuses the fist focusable field in the form.
|
|
174
|
+
*/
|
|
175
|
+
focus(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Creates the following form fields:
|
|
178
|
+
*
|
|
179
|
+
* * {@link #borderStyleDropdown},
|
|
180
|
+
* * {@link #borderWidthInput},
|
|
181
|
+
* * {@link #borderColorInput}.
|
|
182
|
+
*/
|
|
183
|
+
private _createBorderFields;
|
|
184
|
+
/**
|
|
185
|
+
* Creates the following form fields:
|
|
186
|
+
*
|
|
187
|
+
* * {@link #backgroundInput}.
|
|
188
|
+
*/
|
|
189
|
+
private _createBackgroundFields;
|
|
190
|
+
/**
|
|
191
|
+
* Creates the following form fields:
|
|
192
|
+
*
|
|
193
|
+
* * {@link #widthInput},
|
|
194
|
+
* * {@link #heightInput}.
|
|
195
|
+
*/
|
|
196
|
+
private _createDimensionFields;
|
|
197
|
+
/**
|
|
198
|
+
* Creates the following form fields:
|
|
199
|
+
*
|
|
200
|
+
* * {@link #alignmentToolbar}.
|
|
201
|
+
*/
|
|
202
|
+
private _createAlignmentFields;
|
|
203
|
+
/**
|
|
204
|
+
* Creates the following form controls:
|
|
205
|
+
*
|
|
206
|
+
* * {@link #saveButtonView},
|
|
207
|
+
* * {@link #cancelButtonView}.
|
|
208
|
+
*/
|
|
209
|
+
private _createActionButtons;
|
|
210
|
+
/**
|
|
211
|
+
* Creates a back button view that cancels the form.
|
|
212
|
+
*/
|
|
213
|
+
private _createBackButton;
|
|
214
|
+
/**
|
|
215
|
+
* Provides localized labels for {@link #alignmentToolbar} buttons.
|
|
216
|
+
*/
|
|
217
|
+
private get _alignmentLabels();
|
|
215
218
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { TablePropertiesEditing } from
|
|
10
|
-
import { TablePropertiesUI } from
|
|
6
|
+
* @module table/tableproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TablePropertiesEditing } from "./tableproperties/tablepropertiesediting.js";
|
|
10
|
+
import { TablePropertiesUI } from "./tableproperties/tablepropertiesui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
* The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
|
|
13
|
+
*
|
|
14
|
+
* Read more in the {@glink features/tables/tables-styling Table and cell styling tools} section.
|
|
15
|
+
* See also the {@link module:table/tablecellproperties~TableCellProperties} plugin.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin that loads the
|
|
18
|
+
* {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing table properties editing feature} and
|
|
19
|
+
* the {@link module:table/tableproperties/tablepropertiesui~TablePropertiesUI table properties UI feature}.
|
|
20
|
+
*/
|
|
21
21
|
export declare class TableProperties extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "TableProperties";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get requires(): PluginDependenciesOf<[TablePropertiesEditing, TablePropertiesUI]>;
|
|
34
34
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
*/
|
|
5
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
6
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
7
|
+
import { TableEditing } from "../tableediting.js";
|
|
8
|
+
/**
|
|
9
|
+
* The table scrolling editing plugin.
|
|
10
|
+
*/
|
|
11
|
+
export declare class TableScrollEditing extends Plugin {
|
|
12
|
+
/**
|
|
13
|
+
* Stops the `scroll` listeners set up by {@link #_watchFiguresScroll}.
|
|
14
|
+
*/
|
|
15
|
+
private _stopWatchingRootsScroll?;
|
|
16
|
+
/**
|
|
17
|
+
* Stops the `resize` observers set up by {@link #_watchRootEditables}.
|
|
18
|
+
*/
|
|
19
|
+
private _stopWatchingRootsResize?;
|
|
20
|
+
/**
|
|
21
|
+
* The throttled recalculation callback set up by {@link #_watchRootEditables}, kept so {@link #destroy}
|
|
22
|
+
* can cancel any call still pending. `undefined` until {@link #init} has run.
|
|
23
|
+
*/
|
|
24
|
+
private _throttledRecalculateAll?;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get pluginName(): "TableScrollEditing";
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isOfficialPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static get requires(): PluginDependenciesOf<[TableEditing]>;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
constructor(editor: Editor);
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
init(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
override destroy(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Whether a given table may overflow its container and become horizontally scrollable, and whether
|
|
51
|
+
* column/table resizing is allowed to grow it past the container's width.
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
_isTableScrollable(table: ModelElement): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Determines whether a table overflows its container and applies the corresponding view state:
|
|
58
|
+
* the `ck-table-overflowing` class on the figure, and the actual (possibly container-exceeding)
|
|
59
|
+
* width on the inner `<table>` and a sibling `<figcaption>`, if present.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
_updateTableScrollOverflowState(table: ModelElement, tableWidthOverride?: string | null): void;
|
|
64
|
+
/**
|
|
65
|
+
* Schedules a re-read of the widget figure's actual `scrollLeft` into `--ck-table-scroll-offset`, once
|
|
66
|
+
* the render reflecting the change that triggered it has actually happened - see the call site for why
|
|
67
|
+
* this can't just read (and force a reflow for) `scrollLeft` immediately instead.
|
|
68
|
+
*/
|
|
69
|
+
private _scheduleScrollOffsetSync;
|
|
70
|
+
/**
|
|
71
|
+
* Registers editing-only downcast listeners that keep overflow state in sync.
|
|
72
|
+
*/
|
|
73
|
+
private _registerConversion;
|
|
74
|
+
/**
|
|
75
|
+
* Keeps every overflowing table's `--ck-table-scroll-offset` custom property in sync with its
|
|
76
|
+
* `scrollLeft`, using a single delegated listener instead of one native listener per table.
|
|
77
|
+
*/
|
|
78
|
+
private _watchFiguresScroll;
|
|
79
|
+
/**
|
|
80
|
+
* Listen for column resize events and updates proper view element size.
|
|
81
|
+
*/
|
|
82
|
+
private _watchColumnResize;
|
|
83
|
+
/**
|
|
84
|
+
* Re-evaluates the overflow state of every table whenever the window or an editing root is resized.
|
|
85
|
+
*/
|
|
86
|
+
private _watchRootEditables;
|
|
87
|
+
/**
|
|
88
|
+
* Evaluates the overflow state of every newly inserted table.
|
|
89
|
+
*/
|
|
90
|
+
private _watchNewTables;
|
|
91
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module table/tablescroll/watchers
|
|
7
|
+
*/
|
|
8
|
+
import { Collection, type EventInfo } from "@ckeditor/ckeditor5-utils";
|
|
9
|
+
import type { EditingView, Model, ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
10
|
+
/**
|
|
11
|
+
* Creates a live collection of all `table` model elements present in the document and keeps it
|
|
12
|
+
* up to date as tables are inserted, moved, or removed.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function watchTableModelElements(model: Model): Collection<ModelElement>;
|
|
17
|
+
/**
|
|
18
|
+
* Observes the DOM width of every editing root and calls `onResize` whenever any of them changes width.
|
|
19
|
+
* Height-only changes are ignored, since only a root's width can make a table overflow it.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function watchRootsWidthResize(view: EditingView, onResize: () => void): () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Listens to `scroll` on every editing root and calls `onScroll` for scrolls happening anywhere inside them.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare function watchRootsScroll(view: EditingView, onScroll: (evt: EventInfo, domEvent: Event) => void): () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module table/tablescroll
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TableScrollEditing } from "./tablescroll/tablescrollediting.js";
|
|
10
|
+
export declare class TableScroll extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get pluginName(): "TableScroll";
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static override get isOfficialPlugin(): true;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): PluginDependenciesOf<[TableScrollEditing]>;
|
|
23
|
+
}
|