@ckeditor/ckeditor5-table 41.4.1 → 42.0.0-alpha.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.
- package/README.md +6 -0
- package/build/table.js +1 -1
- package/dist/index.js +2995 -2072
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +9 -9
- package/src/tableproperties/ui/tablepropertiesview.js +5 -6
- package/src/utils/ui/contextualballoon.js +9 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "42.0.0-alpha.0",
|
|
4
4
|
"description": "Table feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "
|
|
17
|
-
"@ckeditor/ckeditor5-ui": "
|
|
16
|
+
"ckeditor5": "42.0.0-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-ui": "42.0.0-alpha.0",
|
|
18
18
|
"lodash-es": "4.17.21"
|
|
19
19
|
},
|
|
20
20
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -13,15 +13,6 @@ import FormRowView from '../../ui/formrowview.js';
|
|
|
13
13
|
import '../../../theme/form.css';
|
|
14
14
|
import '../../../theme/tableform.css';
|
|
15
15
|
import '../../../theme/tablecellproperties.css';
|
|
16
|
-
const ALIGNMENT_ICONS = {
|
|
17
|
-
left: icons.alignLeft,
|
|
18
|
-
center: icons.alignCenter,
|
|
19
|
-
right: icons.alignRight,
|
|
20
|
-
justify: icons.alignJustify,
|
|
21
|
-
top: icons.alignTop,
|
|
22
|
-
middle: icons.alignMiddle,
|
|
23
|
-
bottom: icons.alignBottom
|
|
24
|
-
};
|
|
25
16
|
/**
|
|
26
17
|
* The class representing a table cell properties form, allowing users to customize
|
|
27
18
|
* certain style aspects of a table cell, for instance, border, padding, text alignment, etc..
|
|
@@ -427,6 +418,15 @@ export default class TableCellPropertiesView extends View {
|
|
|
427
418
|
const locale = this.locale;
|
|
428
419
|
const t = this.t;
|
|
429
420
|
const alignmentLabel = new LabelView(locale);
|
|
421
|
+
const ALIGNMENT_ICONS = {
|
|
422
|
+
left: icons.alignLeft,
|
|
423
|
+
center: icons.alignCenter,
|
|
424
|
+
right: icons.alignRight,
|
|
425
|
+
justify: icons.alignJustify,
|
|
426
|
+
top: icons.alignTop,
|
|
427
|
+
middle: icons.alignMiddle,
|
|
428
|
+
bottom: icons.alignBottom
|
|
429
|
+
};
|
|
430
430
|
alignmentLabel.text = t('Table cell text alignment');
|
|
431
431
|
// -- Horizontal ---------------------------------------------------
|
|
432
432
|
const horizontalAlignmentToolbar = new ToolbarView(locale);
|
|
@@ -13,11 +13,6 @@ import FormRowView from '../../ui/formrowview.js';
|
|
|
13
13
|
import '../../../theme/form.css';
|
|
14
14
|
import '../../../theme/tableform.css';
|
|
15
15
|
import '../../../theme/tableproperties.css';
|
|
16
|
-
const ALIGNMENT_ICONS = {
|
|
17
|
-
left: icons.objectLeft,
|
|
18
|
-
center: icons.objectCenter,
|
|
19
|
-
right: icons.objectRight
|
|
20
|
-
};
|
|
21
16
|
/**
|
|
22
17
|
* The class representing a table properties form, allowing users to customize
|
|
23
18
|
* certain style aspects of a table, for instance, border, background color, alignment, etc..
|
|
@@ -393,7 +388,11 @@ export default class TablePropertiesView extends View {
|
|
|
393
388
|
});
|
|
394
389
|
fillToolbar({
|
|
395
390
|
view: this,
|
|
396
|
-
icons:
|
|
391
|
+
icons: {
|
|
392
|
+
left: icons.objectLeft,
|
|
393
|
+
center: icons.objectCenter,
|
|
394
|
+
right: icons.objectRight
|
|
395
|
+
},
|
|
397
396
|
toolbar: alignmentToolbar,
|
|
398
397
|
labels: this._alignmentLabels,
|
|
399
398
|
propertyName: 'alignment',
|
|
@@ -9,16 +9,15 @@ import { Rect } from 'ckeditor5/src/utils.js';
|
|
|
9
9
|
import { BalloonPanelView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from './widget.js';
|
|
11
11
|
import { getSelectionAffectedTable } from '../common.js';
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
];
|
|
12
|
+
const BALLOON_POSITIONS = /* #__PURE__ */ (() => [
|
|
13
|
+
BalloonPanelView.defaultPositions.northArrowSouth,
|
|
14
|
+
BalloonPanelView.defaultPositions.northArrowSouthWest,
|
|
15
|
+
BalloonPanelView.defaultPositions.northArrowSouthEast,
|
|
16
|
+
BalloonPanelView.defaultPositions.southArrowNorth,
|
|
17
|
+
BalloonPanelView.defaultPositions.southArrowNorthWest,
|
|
18
|
+
BalloonPanelView.defaultPositions.southArrowNorthEast,
|
|
19
|
+
BalloonPanelView.defaultPositions.viewportStickyNorth
|
|
20
|
+
])();
|
|
22
21
|
/**
|
|
23
22
|
* A helper utility that positions the
|
|
24
23
|
* {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance
|