@ckeditor/ckeditor5-table 40.2.0 → 41.0.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/CHANGELOG.md +4 -4
- package/LICENSE.md +1 -1
- package/build/table.js +2 -2
- package/ckeditor5-metadata.json +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/commands/insertcolumncommand.d.ts +2 -2
- package/src/commands/insertcolumncommand.js +2 -2
- package/src/commands/insertrowcommand.d.ts +2 -2
- package/src/commands/insertrowcommand.js +2 -2
- package/src/commands/inserttablecommand.d.ts +2 -2
- package/src/commands/inserttablecommand.js +2 -2
- package/src/commands/mergecellcommand.d.ts +4 -4
- package/src/commands/mergecellcommand.js +5 -5
- package/src/commands/mergecellscommand.d.ts +2 -2
- package/src/commands/mergecellscommand.js +5 -5
- package/src/commands/removecolumncommand.d.ts +2 -2
- package/src/commands/removecolumncommand.js +3 -3
- package/src/commands/removerowcommand.d.ts +2 -2
- package/src/commands/removerowcommand.js +2 -2
- package/src/commands/selectcolumncommand.d.ts +2 -2
- package/src/commands/selectcolumncommand.js +3 -3
- package/src/commands/selectrowcommand.d.ts +2 -2
- package/src/commands/selectrowcommand.js +2 -2
- package/src/commands/setheadercolumncommand.d.ts +2 -2
- package/src/commands/setheadercolumncommand.js +4 -4
- package/src/commands/setheaderrowcommand.d.ts +2 -2
- package/src/commands/setheaderrowcommand.js +4 -4
- package/src/commands/splitcellcommand.d.ts +2 -2
- package/src/commands/splitcellcommand.js +2 -2
- package/src/converters/downcast.d.ts +4 -4
- package/src/converters/downcast.js +3 -3
- package/src/converters/table-caption-post-fixer.d.ts +2 -2
- package/src/converters/table-caption-post-fixer.js +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.d.ts +2 -2
- package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
- package/src/converters/table-cell-refresh-handler.d.ts +2 -2
- package/src/converters/table-cell-refresh-handler.js +2 -2
- package/src/converters/table-headings-refresh-handler.d.ts +2 -2
- package/src/converters/table-headings-refresh-handler.js +2 -2
- package/src/converters/table-layout-post-fixer.d.ts +2 -2
- package/src/converters/table-layout-post-fixer.js +3 -3
- package/src/converters/tableproperties.d.ts +2 -2
- package/src/converters/tableproperties.js +1 -1
- package/src/converters/upcasttable.d.ts +2 -2
- package/src/converters/upcasttable.js +3 -3
- package/src/index.d.ts +54 -54
- package/src/index.js +24 -24
- package/src/plaintableoutput.d.ts +3 -3
- package/src/plaintableoutput.js +3 -3
- package/src/table.d.ts +9 -9
- package/src/table.js +9 -9
- package/src/tablecaption/tablecaptionediting.d.ts +3 -3
- package/src/tablecaption/tablecaptionediting.js +7 -7
- package/src/tablecaption/tablecaptionui.d.ts +2 -2
- package/src/tablecaption/tablecaptionui.js +4 -4
- package/src/tablecaption/toggletablecaptioncommand.d.ts +2 -2
- package/src/tablecaption/toggletablecaptioncommand.js +4 -4
- package/src/tablecaption/utils.d.ts +2 -2
- package/src/tablecaption/utils.js +2 -2
- package/src/tablecaption.d.ts +4 -4
- package/src/tablecaption.js +4 -4
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +3 -3
- package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +3 -3
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +3 -3
- package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellheightcommand.js +3 -3
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +4 -4
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +3 -3
- package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
- package/src/tablecellproperties/tablecellpropertiesediting.d.ts +4 -4
- package/src/tablecellproperties/tablecellpropertiesediting.js +16 -16
- package/src/tablecellproperties/tablecellpropertiesui.d.ts +4 -4
- package/src/tablecellproperties/tablecellpropertiesui.js +8 -8
- package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +8 -8
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +6 -6
- package/src/tablecellproperties.d.ts +4 -4
- package/src/tablecellproperties.js +4 -4
- package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +3 -3
- package/src/tablecellwidth/commands/tablecellwidthcommand.js +3 -3
- package/src/tablecellwidth/tablecellwidthediting.d.ts +3 -3
- package/src/tablecellwidth/tablecellwidthediting.js +6 -6
- package/src/tableclipboard.d.ts +6 -6
- package/src/tableclipboard.js +6 -6
- package/src/tablecolumnresize/constants.d.ts +1 -1
- package/src/tablecolumnresize/constants.js +1 -1
- package/src/tablecolumnresize/converters.d.ts +3 -3
- package/src/tablecolumnresize/converters.js +2 -2
- package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +5 -5
- package/src/tablecolumnresize/tablecolumnresizeediting.js +11 -11
- package/src/tablecolumnresize/tablewidthscommand.d.ts +3 -3
- package/src/tablecolumnresize/tablewidthscommand.js +3 -3
- package/src/tablecolumnresize/utils.d.ts +4 -4
- package/src/tablecolumnresize/utils.js +3 -3
- package/src/tablecolumnresize.d.ts +4 -4
- package/src/tablecolumnresize.js +4 -4
- package/src/tableconfig.d.ts +3 -3
- package/src/tableconfig.js +1 -1
- package/src/tableediting.d.ts +4 -4
- package/src/tableediting.js +21 -21
- package/src/tablekeyboard.d.ts +6 -6
- package/src/tablekeyboard.js +6 -6
- package/src/tablemouse/mouseeventsobserver.d.ts +2 -2
- package/src/tablemouse/mouseeventsobserver.js +2 -2
- package/src/tablemouse.d.ts +4 -4
- package/src/tablemouse.js +5 -5
- package/src/tableproperties/commands/tablealignmentcommand.d.ts +3 -3
- package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +3 -3
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
- package/src/tableproperties/commands/tablebordercolorcommand.d.ts +4 -4
- package/src/tableproperties/commands/tablebordercolorcommand.js +3 -3
- package/src/tableproperties/commands/tableborderstylecommand.d.ts +4 -4
- package/src/tableproperties/commands/tableborderstylecommand.js +3 -3
- package/src/tableproperties/commands/tableborderwidthcommand.d.ts +4 -4
- package/src/tableproperties/commands/tableborderwidthcommand.js +3 -3
- package/src/tableproperties/commands/tableheightcommand.d.ts +3 -3
- package/src/tableproperties/commands/tableheightcommand.js +3 -3
- package/src/tableproperties/commands/tablepropertycommand.d.ts +3 -3
- package/src/tableproperties/commands/tablepropertycommand.js +3 -3
- package/src/tableproperties/commands/tablewidthcommand.d.ts +3 -3
- package/src/tableproperties/commands/tablewidthcommand.js +3 -3
- package/src/tableproperties/tablepropertiesediting.d.ts +3 -3
- package/src/tableproperties/tablepropertiesediting.js +13 -13
- package/src/tableproperties/tablepropertiesui.d.ts +4 -4
- package/src/tableproperties/tablepropertiesui.js +8 -8
- package/src/tableproperties/ui/tablepropertiesview.d.ts +6 -6
- package/src/tableproperties/ui/tablepropertiesview.js +6 -6
- package/src/tableproperties.d.ts +4 -4
- package/src/tableproperties.js +4 -4
- package/src/tableselection.d.ts +4 -4
- package/src/tableselection.js +6 -6
- package/src/tabletoolbar.d.ts +3 -3
- package/src/tabletoolbar.js +4 -4
- package/src/tableui.d.ts +2 -2
- package/src/tableui.js +7 -8
- package/src/tableutils.d.ts +4 -4
- package/src/tableutils.js +7 -7
- package/src/tablewalker.d.ts +2 -2
- package/src/tablewalker.js +1 -1
- package/src/ui/colorinputview.d.ts +4 -4
- package/src/ui/colorinputview.js +3 -3
- package/src/ui/formrowview.d.ts +3 -3
- package/src/ui/formrowview.js +2 -2
- package/src/ui/inserttableview.d.ts +3 -3
- package/src/ui/inserttableview.js +3 -3
- package/src/utils/common.d.ts +3 -3
- package/src/utils/common.js +2 -2
- package/src/utils/structure.d.ts +4 -4
- package/src/utils/structure.js +3 -3
- package/src/utils/table-properties.d.ts +2 -2
- package/src/utils/table-properties.js +1 -1
- package/src/utils/ui/contextualballoon.d.ts +3 -3
- package/src/utils/ui/contextualballoon.js +5 -5
- package/src/utils/ui/table-properties.d.ts +6 -6
- package/src/utils/ui/table-properties.js +6 -6
- package/src/utils/ui/widget.d.ts +2 -2
- package/src/utils/ui/widget.js +2 -2
- package/theme/colorinput.css +1 -1
- package/theme/form.css +1 -1
- package/theme/formrow.css +1 -1
- package/theme/inserttable.css +1 -1
- package/theme/table.css +1 -1
- package/theme/tablecaption.css +1 -1
- package/theme/tablecellproperties.css +1 -1
- package/theme/tablecolumnresize.css +1 -1
- package/theme/tableediting.css +1 -1
- package/theme/tableform.css +1 -1
- package/theme/tableproperties.css +1 -1
- package/theme/tableselection.css +1 -1
- package/theme/icons/table.svg +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties/tablecellpropertiesediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { addBorderRules, addPaddingRules, addBackgroundRules } from 'ckeditor5/src/engine';
|
|
10
|
-
import { downcastAttributeToStyle, upcastBorderStyles } from './../converters/tableproperties';
|
|
11
|
-
import TableEditing from './../tableediting';
|
|
12
|
-
import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting';
|
|
13
|
-
import TableCellPaddingCommand from './commands/tablecellpaddingcommand';
|
|
14
|
-
import TableCellHeightCommand from './commands/tablecellheightcommand';
|
|
15
|
-
import TableCellBackgroundColorCommand from './commands/tablecellbackgroundcolorcommand';
|
|
16
|
-
import TableCellVerticalAlignmentCommand from './commands/tablecellverticalalignmentcommand';
|
|
17
|
-
import TableCellHorizontalAlignmentCommand from './commands/tablecellhorizontalalignmentcommand';
|
|
18
|
-
import TableCellBorderStyleCommand from './commands/tablecellborderstylecommand';
|
|
19
|
-
import TableCellBorderColorCommand from './commands/tablecellbordercolorcommand';
|
|
20
|
-
import TableCellBorderWidthCommand from './commands/tablecellborderwidthcommand';
|
|
21
|
-
import { getNormalizedDefaultProperties } from '../utils/table-properties';
|
|
22
|
-
import { enableProperty } from '../utils/common';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { addBorderRules, addPaddingRules, addBackgroundRules } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { downcastAttributeToStyle, upcastBorderStyles } from './../converters/tableproperties.js';
|
|
11
|
+
import TableEditing from './../tableediting.js';
|
|
12
|
+
import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
|
|
13
|
+
import TableCellPaddingCommand from './commands/tablecellpaddingcommand.js';
|
|
14
|
+
import TableCellHeightCommand from './commands/tablecellheightcommand.js';
|
|
15
|
+
import TableCellBackgroundColorCommand from './commands/tablecellbackgroundcolorcommand.js';
|
|
16
|
+
import TableCellVerticalAlignmentCommand from './commands/tablecellverticalalignmentcommand.js';
|
|
17
|
+
import TableCellHorizontalAlignmentCommand from './commands/tablecellhorizontalalignmentcommand.js';
|
|
18
|
+
import TableCellBorderStyleCommand from './commands/tablecellborderstylecommand.js';
|
|
19
|
+
import TableCellBorderColorCommand from './commands/tablecellbordercolorcommand.js';
|
|
20
|
+
import TableCellBorderWidthCommand from './commands/tablecellborderwidthcommand.js';
|
|
21
|
+
import { getNormalizedDefaultProperties } from '../utils/table-properties.js';
|
|
22
|
+
import { enableProperty } from '../utils/common.js';
|
|
23
23
|
const VALIGN_VALUES_REG_EXP = /^(top|middle|bottom)$/;
|
|
24
24
|
const ALIGN_VALUES_REG_EXP = /^(left|center|right|justify)$/;
|
|
25
25
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties/tablecellpropertiesui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
|
10
|
-
import TableCellPropertiesView from './ui/tablecellpropertiesview';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import TableCellPropertiesView from './ui/tablecellpropertiesview.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell properties UI plugin. It introduces the `'tableCellProperties'` button
|
|
13
13
|
* that opens a form allowing to specify the visual styling of a table cell.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties/tablecellpropertiesui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, clickOutsideHandler, ContextualBalloon, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui';
|
|
10
|
-
import TableCellPropertiesView from './ui/tablecellpropertiesview';
|
|
11
|
-
import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, defaultColors, lengthFieldValidator, lineWidthFieldValidator } from '../utils/ui/table-properties';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, clickOutsideHandler, ContextualBalloon, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import TableCellPropertiesView from './ui/tablecellpropertiesview.js';
|
|
11
|
+
import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, defaultColors, lengthFieldValidator, lineWidthFieldValidator } from '../utils/ui/table-properties.js';
|
|
12
12
|
import { debounce } from 'lodash-es';
|
|
13
|
-
import { getTableWidgetAncestor } from '../utils/ui/widget';
|
|
14
|
-
import { getBalloonCellPositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon';
|
|
13
|
+
import { getTableWidgetAncestor } from '../utils/ui/widget.js';
|
|
14
|
+
import { getBalloonCellPositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon.js';
|
|
15
15
|
import tableCellProperties from './../../theme/icons/table-cell-properties.svg';
|
|
16
|
-
import { getNormalizedDefaultProperties } from '../utils/table-properties';
|
|
16
|
+
import { getNormalizedDefaultProperties } from '../utils/table-properties.js';
|
|
17
17
|
const ERROR_TEXT_TIMEOUT = 500;
|
|
18
18
|
// Map of view properties and related commands.
|
|
19
19
|
const propertyToCommandMap = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties/ui/tablecellpropertiesview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type FocusableView, type NormalizedColorOption, type ColorPickerConfig } from 'ckeditor5/src/ui';
|
|
9
|
-
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type ColorInputView from '../../ui/colorinputview';
|
|
11
|
-
import type { TableCellPropertiesOptions } from '../../tableconfig';
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type FocusableView, type NormalizedColorOption, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type ColorInputView from '../../ui/colorinputview.js';
|
|
11
|
+
import type { TableCellPropertiesOptions } from '../../tableconfig.js';
|
|
12
12
|
import '../../../theme/form.css';
|
|
13
13
|
import '../../../theme/tableform.css';
|
|
14
14
|
import '../../../theme/tablecellproperties.css';
|
|
@@ -133,11 +133,11 @@ export default class TableCellPropertiesView extends View {
|
|
|
133
133
|
/**
|
|
134
134
|
* A toolbar with buttons that allow changing the horizontal text alignment in a table cell.
|
|
135
135
|
*/
|
|
136
|
-
readonly horizontalAlignmentToolbar:
|
|
136
|
+
readonly horizontalAlignmentToolbar: ToolbarView;
|
|
137
137
|
/**
|
|
138
138
|
* A toolbar with buttons that allow changing the vertical text alignment in a table cell.
|
|
139
139
|
*/
|
|
140
|
-
readonly verticalAlignmentToolbar:
|
|
140
|
+
readonly verticalAlignmentToolbar: ToolbarView;
|
|
141
141
|
/**
|
|
142
142
|
* The "Save" button view.
|
|
143
143
|
*/
|
|
@@ -149,7 +149,7 @@ export default class TableCellPropertiesView extends View {
|
|
|
149
149
|
/**
|
|
150
150
|
* A collection of views that can be focused in the form.
|
|
151
151
|
*/
|
|
152
|
-
protected readonly _focusables: ViewCollection
|
|
152
|
+
protected readonly _focusables: ViewCollection<FocusableView>;
|
|
153
153
|
/**
|
|
154
154
|
* Helps cycling over {@link #_focusables} in the form.
|
|
155
155
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties/ui/tablecellpropertiesview
|
|
7
7
|
*/
|
|
8
|
-
import { addListToDropdown, ButtonView, createLabeledDropdown, createLabeledInputText, FocusCycler, FormHeaderView, LabeledFieldView, LabelView, submitHandler, ToolbarView, View, ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils';
|
|
10
|
-
import { icons } from 'ckeditor5/src/core';
|
|
11
|
-
import { fillToolbar, getBorderStyleDefinitions, getBorderStyleLabels, getLabeledColorInputCreator } from '../../utils/ui/table-properties';
|
|
12
|
-
import FormRowView from '../../ui/formrowview';
|
|
8
|
+
import { addListToDropdown, ButtonView, createLabeledDropdown, createLabeledInputText, FocusCycler, FormHeaderView, LabeledFieldView, LabelView, submitHandler, ToolbarView, View, ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
11
|
+
import { fillToolbar, getBorderStyleDefinitions, getBorderStyleLabels, getLabeledColorInputCreator } from '../../utils/ui/table-properties.js';
|
|
12
|
+
import FormRowView from '../../ui/formrowview.js';
|
|
13
13
|
import '../../../theme/form.css';
|
|
14
14
|
import '../../../theme/tableform.css';
|
|
15
15
|
import '../../../theme/tablecellproperties.css';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui';
|
|
10
|
-
import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui.js';
|
|
10
|
+
import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell properties feature. Enables support for setting properties of table cells (size, border, background, etc.).
|
|
13
13
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui';
|
|
10
|
-
import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui.js';
|
|
10
|
+
import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell properties feature. Enables support for setting properties of table cells (size, border, background, etc.).
|
|
13
13
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellwidth/commands/tablecellwidthcommand
|
|
7
7
|
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand';
|
|
8
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell width command.
|
|
12
12
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand';
|
|
6
|
-
import { addDefaultUnitToNumericValue } from '../../utils/table-properties';
|
|
5
|
+
import TableCellPropertyCommand from '../../tablecellproperties/commands/tablecellpropertycommand.js';
|
|
6
|
+
import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell width command.
|
|
9
9
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellwidth/tablecellwidthediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableEditing from './../tableediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableEditing from './../tableediting.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell width editing feature.
|
|
12
12
|
*
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecellwidth/tablecellwidthediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableEditing from './../tableediting';
|
|
10
|
-
import TableCellWidthCommand from './commands/tablecellwidthcommand';
|
|
11
|
-
import { getNormalizedDefaultProperties } from '../utils/table-properties';
|
|
12
|
-
import { enableProperty } from '../utils/common';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableEditing from './../tableediting.js';
|
|
10
|
+
import TableCellWidthCommand from './commands/tablecellwidthcommand.js';
|
|
11
|
+
import { getNormalizedDefaultProperties } from '../utils/table-properties.js';
|
|
12
|
+
import { enableProperty } from '../utils/common.js';
|
|
13
13
|
/**
|
|
14
14
|
* The table cell width editing feature.
|
|
15
15
|
*
|
package/src/tableclipboard.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine';
|
|
7
|
-
import TableSelection from './tableselection';
|
|
8
|
-
import { type TableSlot } from './tablewalker';
|
|
9
|
-
import TableUtils from './tableutils';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import TableSelection from './tableselection.js';
|
|
8
|
+
import { type TableSlot } from './tablewalker.js';
|
|
9
|
+
import TableUtils from './tableutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* This plugin adds support for copying/cutting/pasting fragments of tables.
|
|
12
12
|
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
package/src/tableclipboard.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import TableSelection from './tableselection';
|
|
7
|
-
import TableWalker from './tablewalker';
|
|
8
|
-
import TableUtils from './tableutils';
|
|
9
|
-
import { cropTableToDimensions, getHorizontallyOverlappingCells, getVerticallyOverlappingCells, removeEmptyRowsColumns, splitHorizontally, splitVertically, trimTableCellIfNeeded, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import TableSelection from './tableselection.js';
|
|
7
|
+
import TableWalker from './tablewalker.js';
|
|
8
|
+
import TableUtils from './tableutils.js';
|
|
9
|
+
import { cropTableToDimensions, getHorizontallyOverlappingCells, getVerticallyOverlappingCells, removeEmptyRowsColumns, splitHorizontally, splitVertically, trimTableCellIfNeeded, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure.js';
|
|
10
10
|
/**
|
|
11
11
|
* This plugin adds support for copying/cutting/pasting fragments of tables.
|
|
12
12
|
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize/converters
|
|
7
7
|
*/
|
|
8
|
-
import type { DowncastDispatcher, UpcastDispatcher } from 'ckeditor5/src/engine';
|
|
9
|
-
import type TableUtils from '../tableutils';
|
|
8
|
+
import type { DowncastDispatcher, UpcastDispatcher } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import type TableUtils from '../tableutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* Returns a upcast helper that ensures the number of `<tableColumn>` elements corresponds to the actual number of columns in the table,
|
|
12
12
|
* because the input data might have too few or too many <col> elements.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { normalizeColumnWidths, updateColumnElements, getColumnGroupElement, getTableColumnElements, translateColSpanAttribute } from './utils';
|
|
5
|
+
import { normalizeColumnWidths, updateColumnElements, getColumnGroupElement, getTableColumnElements, translateColSpanAttribute } from './utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Returns a upcast helper that ensures the number of `<tableColumn>` elements corresponds to the actual number of columns in the table,
|
|
8
8
|
* because the input data might have too few or too many <col> elements.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
7
|
-
import TableEditing from '../tableediting';
|
|
8
|
-
import TableUtils from '../tableutils';
|
|
5
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import TableEditing from '../tableediting.js';
|
|
8
|
+
import TableUtils from '../tableutils.js';
|
|
9
9
|
/**
|
|
10
10
|
* The table column resize editing plugin.
|
|
11
11
|
*/
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize/tablecolumnresizeediting
|
|
7
7
|
*/
|
|
8
8
|
import { throttle, isEqual } from 'lodash-es';
|
|
9
|
-
import { global, DomEmitterMixin } from 'ckeditor5/src/utils';
|
|
10
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
11
|
-
import MouseEventsObserver from '../../src/tablemouse/mouseeventsobserver';
|
|
12
|
-
import TableEditing from '../tableediting';
|
|
13
|
-
import TableUtils from '../tableutils';
|
|
14
|
-
import TableWalker from '../tablewalker';
|
|
15
|
-
import TableWidthsCommand from './tablewidthscommand';
|
|
16
|
-
import { downcastTableResizedClass, upcastColgroupElement } from './converters';
|
|
17
|
-
import { clamp, createFilledArray, sumArray, getColumnEdgesIndexes, getChangedResizedTables, getColumnMinWidthAsPercentage, getElementWidthInPixels, getTableWidthInPixels, normalizeColumnWidths, toPrecision, getDomCellOuterWidth, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils';
|
|
18
|
-
import { COLUMN_MIN_WIDTH_IN_PIXELS } from './constants';
|
|
9
|
+
import { global, DomEmitterMixin } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
|
+
import MouseEventsObserver from '../../src/tablemouse/mouseeventsobserver.js';
|
|
12
|
+
import TableEditing from '../tableediting.js';
|
|
13
|
+
import TableUtils from '../tableutils.js';
|
|
14
|
+
import TableWalker from '../tablewalker.js';
|
|
15
|
+
import TableWidthsCommand from './tablewidthscommand.js';
|
|
16
|
+
import { downcastTableResizedClass, upcastColgroupElement } from './converters.js';
|
|
17
|
+
import { clamp, createFilledArray, sumArray, getColumnEdgesIndexes, getChangedResizedTables, getColumnMinWidthAsPercentage, getElementWidthInPixels, getTableWidthInPixels, normalizeColumnWidths, toPrecision, getDomCellOuterWidth, updateColumnElements, getColumnGroupElement, getTableColumnElements, getTableColumnsWidths } from './utils.js';
|
|
18
|
+
import { COLUMN_MIN_WIDTH_IN_PIXELS } from './constants.js';
|
|
19
19
|
/**
|
|
20
20
|
* The table column resize editing plugin.
|
|
21
21
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize/tablewidthscommand
|
|
7
7
|
*/
|
|
8
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* Command used by the {@link module:table/tablecolumnresize~TableColumnResize Table column resize feature} that
|
|
12
12
|
* updates the width of the whole table as well as its individual columns.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Command } from 'ckeditor5/src/core';
|
|
6
|
-
import { normalizeColumnWidths } from './utils';
|
|
5
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { normalizeColumnWidths } from './utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* Command used by the {@link module:table/tablecolumnresize~TableColumnResize Table column resize feature} that
|
|
9
9
|
* updates the width of the whole table as well as its individual columns.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Element, Model, Writer } from 'ckeditor5/src/engine';
|
|
10
|
-
import type TableUtils from '../tableutils';
|
|
8
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Element, Model, Writer } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type TableUtils from '../tableutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* Returns all the inserted or changed table model elements in a given change set. Only the tables
|
|
13
13
|
* with 'columnsWidth' attribute are taken into account. The returned set may be empty.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { global } from 'ckeditor5/src/utils';
|
|
6
|
-
import { COLUMN_WIDTH_PRECISION, COLUMN_MIN_WIDTH_AS_PERCENTAGE, COLUMN_MIN_WIDTH_IN_PIXELS } from './constants';
|
|
5
|
+
import { global } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { COLUMN_WIDTH_PRECISION, COLUMN_MIN_WIDTH_AS_PERCENTAGE, COLUMN_MIN_WIDTH_IN_PIXELS } from './constants.js';
|
|
7
7
|
/**
|
|
8
8
|
* Returns all the inserted or changed table model elements in a given change set. Only the tables
|
|
9
9
|
* with 'columnsWidth' attribute are taken into account. The returned set may be empty.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting';
|
|
10
|
-
import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting.js';
|
|
10
|
+
import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting.js';
|
|
11
11
|
import '../theme/tablecolumnresize.css';
|
|
12
12
|
/**
|
|
13
13
|
* The table column resize feature.
|
package/src/tablecolumnresize.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tablecolumnresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting';
|
|
10
|
-
import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TableColumnResizeEditing from './tablecolumnresize/tablecolumnresizeediting.js';
|
|
10
|
+
import TableCellWidthEditing from './tablecellwidth/tablecellwidthediting.js';
|
|
11
11
|
import '../theme/tablecolumnresize.css';
|
|
12
12
|
/**
|
|
13
13
|
* The table column resize feature.
|
package/src/tableconfig.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableconfig
|
|
7
7
|
*/
|
|
8
|
-
import type { ToolbarConfigItem } from 'ckeditor5/src/core';
|
|
9
|
-
import type { ColorOption, ColorPickerConfig } from 'ckeditor5/src/ui';
|
|
8
|
+
import type { ToolbarConfigItem } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { ColorOption, ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
|
11
11
|
* The configuration of the table feature. Used by the table feature in the `@ckeditor/ckeditor5-table` package.
|
|
12
12
|
*
|
package/src/tableconfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/tableediting.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { PositionOffset, SlotFilter } from 'ckeditor5/src/engine';
|
|
10
|
-
import TableUtils from '../src/tableutils';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { PositionOffset, SlotFilter } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import TableUtils from '../src/tableutils.js';
|
|
11
11
|
import '../theme/tableediting.css';
|
|
12
12
|
/**
|
|
13
13
|
* The table editing feature.
|
package/src/tableediting.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import upcastTable, { ensureParagraphInTableCell, skipEmptyTableRow, upcastTableFigure } from './converters/upcasttable';
|
|
10
|
-
import { convertParagraphInTableCell, downcastCell, downcastRow, downcastTable } from './converters/downcast';
|
|
11
|
-
import InsertTableCommand from './commands/inserttablecommand';
|
|
12
|
-
import InsertRowCommand from './commands/insertrowcommand';
|
|
13
|
-
import InsertColumnCommand from './commands/insertcolumncommand';
|
|
14
|
-
import SplitCellCommand from './commands/splitcellcommand';
|
|
15
|
-
import MergeCellCommand from './commands/mergecellcommand';
|
|
16
|
-
import RemoveRowCommand from './commands/removerowcommand';
|
|
17
|
-
import RemoveColumnCommand from './commands/removecolumncommand';
|
|
18
|
-
import SetHeaderRowCommand from './commands/setheaderrowcommand';
|
|
19
|
-
import SetHeaderColumnCommand from './commands/setheadercolumncommand';
|
|
20
|
-
import MergeCellsCommand from './commands/mergecellscommand';
|
|
21
|
-
import SelectRowCommand from './commands/selectrowcommand';
|
|
22
|
-
import SelectColumnCommand from './commands/selectcolumncommand';
|
|
23
|
-
import TableUtils from '../src/tableutils';
|
|
24
|
-
import injectTableLayoutPostFixer from './converters/table-layout-post-fixer';
|
|
25
|
-
import injectTableCellParagraphPostFixer from './converters/table-cell-paragraph-post-fixer';
|
|
26
|
-
import tableHeadingsRefreshHandler from './converters/table-headings-refresh-handler';
|
|
27
|
-
import tableCellRefreshHandler from './converters/table-cell-refresh-handler';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import upcastTable, { ensureParagraphInTableCell, skipEmptyTableRow, upcastTableFigure } from './converters/upcasttable.js';
|
|
10
|
+
import { convertParagraphInTableCell, downcastCell, downcastRow, downcastTable } from './converters/downcast.js';
|
|
11
|
+
import InsertTableCommand from './commands/inserttablecommand.js';
|
|
12
|
+
import InsertRowCommand from './commands/insertrowcommand.js';
|
|
13
|
+
import InsertColumnCommand from './commands/insertcolumncommand.js';
|
|
14
|
+
import SplitCellCommand from './commands/splitcellcommand.js';
|
|
15
|
+
import MergeCellCommand from './commands/mergecellcommand.js';
|
|
16
|
+
import RemoveRowCommand from './commands/removerowcommand.js';
|
|
17
|
+
import RemoveColumnCommand from './commands/removecolumncommand.js';
|
|
18
|
+
import SetHeaderRowCommand from './commands/setheaderrowcommand.js';
|
|
19
|
+
import SetHeaderColumnCommand from './commands/setheadercolumncommand.js';
|
|
20
|
+
import MergeCellsCommand from './commands/mergecellscommand.js';
|
|
21
|
+
import SelectRowCommand from './commands/selectrowcommand.js';
|
|
22
|
+
import SelectColumnCommand from './commands/selectcolumncommand.js';
|
|
23
|
+
import TableUtils from '../src/tableutils.js';
|
|
24
|
+
import injectTableLayoutPostFixer from './converters/table-layout-post-fixer.js';
|
|
25
|
+
import injectTableCellParagraphPostFixer from './converters/table-cell-paragraph-post-fixer.js';
|
|
26
|
+
import tableHeadingsRefreshHandler from './converters/table-headings-refresh-handler.js';
|
|
27
|
+
import tableCellRefreshHandler from './converters/table-cell-refresh-handler.js';
|
|
28
28
|
import '../theme/tableediting.css';
|
|
29
29
|
/**
|
|
30
30
|
* The table editing feature.
|