@ckeditor/ckeditor5-table 0.0.0-nightly-20240603.0 → 0.0.0-nightly-20240604.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "0.0.0-nightly-20240603.0",
3
+ "version": "0.0.0-nightly-20240604.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": "0.0.0-nightly-20240603.0",
17
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240603.0",
16
+ "ckeditor5": "0.0.0-nightly-20240604.0",
17
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240604.0",
18
18
  "lodash-es": "4.17.21"
19
19
  },
20
20
  "author": "CKSource (http://cksource.com/)",
@@ -13,6 +13,15 @@ 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
+ };
16
25
  /**
17
26
  * The class representing a table cell properties form, allowing users to customize
18
27
  * certain style aspects of a table cell, for instance, border, padding, text alignment, etc..
@@ -418,15 +427,6 @@ export default class TableCellPropertiesView extends View {
418
427
  const locale = this.locale;
419
428
  const t = this.t;
420
429
  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,6 +13,11 @@ 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
+ };
16
21
  /**
17
22
  * The class representing a table properties form, allowing users to customize
18
23
  * certain style aspects of a table, for instance, border, background color, alignment, etc..
@@ -388,11 +393,7 @@ export default class TablePropertiesView extends View {
388
393
  });
389
394
  fillToolbar({
390
395
  view: this,
391
- icons: {
392
- left: icons.objectLeft,
393
- center: icons.objectCenter,
394
- right: icons.objectRight
395
- },
396
+ icons: ALIGNMENT_ICONS,
396
397
  toolbar: alignmentToolbar,
397
398
  labels: this._alignmentLabels,
398
399
  propertyName: 'alignment',
@@ -9,15 +9,16 @@ 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 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
- ])();
12
+ const DEFAULT_BALLOON_POSITIONS = BalloonPanelView.defaultPositions;
13
+ const BALLOON_POSITIONS = [
14
+ DEFAULT_BALLOON_POSITIONS.northArrowSouth,
15
+ DEFAULT_BALLOON_POSITIONS.northArrowSouthWest,
16
+ DEFAULT_BALLOON_POSITIONS.northArrowSouthEast,
17
+ DEFAULT_BALLOON_POSITIONS.southArrowNorth,
18
+ DEFAULT_BALLOON_POSITIONS.southArrowNorthWest,
19
+ DEFAULT_BALLOON_POSITIONS.southArrowNorthEast,
20
+ DEFAULT_BALLOON_POSITIONS.viewportStickyNorth
21
+ ];
21
22
  /**
22
23
  * A helper utility that positions the
23
24
  * {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance