@ckeditor/ckeditor5-table 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 +2 -2
- package/build/table.js +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +1 -1
- package/src/commands/insertcolumncommand.d.ts +1 -1
- package/src/commands/insertcolumncommand.js +1 -1
- package/src/commands/insertrowcommand.d.ts +1 -1
- package/src/commands/insertrowcommand.js +1 -1
- package/src/commands/inserttablecommand.d.ts +1 -1
- package/src/commands/inserttablecommand.js +1 -1
- package/src/commands/mergecellcommand.d.ts +3 -3
- package/src/commands/mergecellcommand.js +4 -4
- package/src/commands/mergecellscommand.d.ts +1 -1
- package/src/commands/mergecellscommand.js +4 -4
- package/src/commands/removecolumncommand.d.ts +1 -1
- package/src/commands/removecolumncommand.js +2 -2
- package/src/commands/removerowcommand.d.ts +1 -1
- package/src/commands/removerowcommand.js +1 -1
- package/src/commands/selectcolumncommand.d.ts +1 -1
- package/src/commands/selectcolumncommand.js +2 -2
- package/src/commands/selectrowcommand.d.ts +1 -1
- package/src/commands/selectrowcommand.js +1 -1
- package/src/commands/setheadercolumncommand.d.ts +1 -1
- package/src/commands/setheadercolumncommand.js +3 -3
- package/src/commands/setheaderrowcommand.d.ts +1 -1
- package/src/commands/setheaderrowcommand.js +3 -3
- package/src/commands/splitcellcommand.d.ts +1 -1
- package/src/commands/splitcellcommand.js +1 -1
- package/src/converters/downcast.d.ts +3 -3
- package/src/converters/downcast.js +2 -2
- package/src/converters/table-caption-post-fixer.d.ts +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
- package/src/converters/table-cell-refresh-handler.d.ts +1 -1
- package/src/converters/table-cell-refresh-handler.js +1 -1
- package/src/converters/table-headings-refresh-handler.d.ts +1 -1
- package/src/converters/table-headings-refresh-handler.js +1 -1
- package/src/converters/table-layout-post-fixer.d.ts +1 -1
- package/src/converters/table-layout-post-fixer.js +2 -2
- package/src/converters/tableproperties.d.ts +1 -1
- package/src/converters/upcasttable.d.ts +1 -1
- package/src/converters/upcasttable.js +2 -2
- package/src/index.d.ts +53 -53
- package/src/index.js +23 -23
- package/src/plaintableoutput.d.ts +2 -2
- package/src/plaintableoutput.js +2 -2
- package/src/table.d.ts +8 -8
- package/src/table.js +8 -8
- package/src/tablecaption/tablecaptionediting.d.ts +2 -2
- package/src/tablecaption/tablecaptionediting.js +6 -6
- package/src/tablecaption/tablecaptionui.d.ts +1 -1
- package/src/tablecaption/tablecaptionui.js +3 -3
- package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
- package/src/tablecaption/toggletablecaptioncommand.js +3 -3
- package/src/tablecaption/utils.d.ts +1 -1
- package/src/tablecaption/utils.js +1 -1
- package/src/tablecaption.d.ts +3 -3
- package/src/tablecaption.js +3 -3
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +3 -3
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
- package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
- package/src/tablecellproperties/tablecellpropertiesediting.js +15 -15
- package/src/tablecellproperties/tablecellpropertiesui.d.ts +3 -3
- package/src/tablecellproperties/tablecellpropertiesui.js +7 -7
- package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +4 -4
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +5 -5
- package/src/tablecellproperties.d.ts +3 -3
- package/src/tablecellproperties.js +3 -3
- package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
- package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
- package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
- package/src/tablecellwidth/tablecellwidthediting.js +5 -5
- package/src/tableclipboard.d.ts +5 -5
- package/src/tableclipboard.js +5 -5
- package/src/tablecolumnresize/converters.d.ts +2 -2
- package/src/tablecolumnresize/converters.js +1 -1
- package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +4 -4
- package/src/tablecolumnresize/tablecolumnresizeediting.js +10 -10
- package/src/tablecolumnresize/tablewidthscommand.d.ts +2 -2
- package/src/tablecolumnresize/tablewidthscommand.js +2 -2
- package/src/tablecolumnresize/utils.d.ts +3 -3
- package/src/tablecolumnresize/utils.js +2 -2
- package/src/tablecolumnresize.d.ts +3 -3
- package/src/tablecolumnresize.js +3 -3
- package/src/tableconfig.d.ts +2 -2
- package/src/tableediting.d.ts +3 -3
- package/src/tableediting.js +20 -20
- package/src/tablekeyboard.d.ts +5 -5
- package/src/tablekeyboard.js +5 -5
- package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
- package/src/tablemouse/mouseeventsobserver.js +1 -1
- package/src/tablemouse.d.ts +3 -3
- package/src/tablemouse.js +4 -4
- package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
- package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
- package/src/tableproperties/commands/tablebordercolorcommand.d.ts +3 -3
- package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
- package/src/tableproperties/commands/tableborderstylecommand.d.ts +3 -3
- package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
- package/src/tableproperties/commands/tableborderwidthcommand.d.ts +3 -3
- package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
- package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
- package/src/tableproperties/commands/tableheightcommand.js +2 -2
- package/src/tableproperties/commands/tablepropertycommand.d.ts +2 -2
- package/src/tableproperties/commands/tablepropertycommand.js +2 -2
- package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablewidthcommand.js +2 -2
- package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
- package/src/tableproperties/tablepropertiesediting.js +12 -12
- package/src/tableproperties/tablepropertiesui.d.ts +3 -3
- package/src/tableproperties/tablepropertiesui.js +7 -7
- package/src/tableproperties/ui/tablepropertiesview.d.ts +4 -4
- package/src/tableproperties/ui/tablepropertiesview.js +5 -5
- package/src/tableproperties.d.ts +3 -3
- package/src/tableproperties.js +3 -3
- package/src/tableselection.d.ts +3 -3
- package/src/tableselection.js +5 -5
- package/src/tabletoolbar.d.ts +2 -2
- package/src/tabletoolbar.js +3 -3
- package/src/tableui.d.ts +1 -1
- package/src/tableui.js +4 -4
- package/src/tableutils.d.ts +3 -3
- package/src/tableutils.js +6 -6
- package/src/tablewalker.d.ts +1 -1
- package/src/ui/colorinputview.d.ts +2 -2
- package/src/ui/colorinputview.js +2 -2
- package/src/ui/formrowview.d.ts +2 -2
- package/src/ui/formrowview.js +1 -1
- package/src/ui/inserttableview.d.ts +2 -2
- package/src/ui/inserttableview.js +2 -2
- package/src/utils/common.d.ts +2 -2
- package/src/utils/common.js +1 -1
- package/src/utils/structure.d.ts +3 -3
- package/src/utils/structure.js +2 -2
- package/src/utils/table-properties.d.ts +1 -1
- package/src/utils/ui/contextualballoon.d.ts +2 -2
- package/src/utils/ui/contextualballoon.js +4 -4
- package/src/utils/ui/table-properties.d.ts +5 -5
- package/src/utils/ui/table-properties.js +4 -4
- package/src/utils/ui/widget.d.ts +1 -1
- package/src/utils/ui/widget.js +1 -1
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/tablepropertiesui
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
|
10
|
-
import TablePropertiesView from './ui/tablepropertiesview';
|
|
8
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import TablePropertiesView from './ui/tablepropertiesview.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table properties UI plugin. It introduces the `'tableProperties'` button
|
|
13
13
|
* that opens a form allowing to specify visual styling of an entire table.
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/tablepropertiesui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, ContextualBalloon, clickOutsideHandler, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, ContextualBalloon, clickOutsideHandler, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { debounce } from 'lodash-es';
|
|
11
|
-
import TablePropertiesView from './ui/tablepropertiesview';
|
|
11
|
+
import TablePropertiesView from './ui/tablepropertiesview.js';
|
|
12
12
|
import tableProperties from './../../theme/icons/table-properties.svg';
|
|
13
|
-
import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, lengthFieldValidator, lineWidthFieldValidator, defaultColors } from '../utils/ui/table-properties';
|
|
14
|
-
import { getSelectionAffectedTableWidget } from '../utils/ui/widget';
|
|
15
|
-
import { getBalloonTablePositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon';
|
|
16
|
-
import { getNormalizedDefaultProperties } from '../utils/table-properties';
|
|
13
|
+
import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, lengthFieldValidator, lineWidthFieldValidator, defaultColors } from '../utils/ui/table-properties.js';
|
|
14
|
+
import { getSelectionAffectedTableWidget } from '../utils/ui/widget.js';
|
|
15
|
+
import { getBalloonTablePositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon.js';
|
|
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 = {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/ui/tablepropertiesview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/form.css';
|
|
11
11
|
import '../../../theme/tableform.css';
|
|
12
12
|
import '../../../theme/tableproperties.css';
|
|
13
|
-
import type ColorInputView from '../../ui/colorinputview';
|
|
14
|
-
import type { TablePropertiesOptions } from '../../tableconfig';
|
|
13
|
+
import type ColorInputView from '../../ui/colorinputview.js';
|
|
14
|
+
import type { TablePropertiesOptions } from '../../tableconfig.js';
|
|
15
15
|
/**
|
|
16
16
|
* Additional configuration of the view.
|
|
17
17
|
*/
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties/ui/tablepropertiesview
|
|
7
7
|
*/
|
|
8
|
-
import { addListToDropdown, ButtonView, createLabeledDropdown, createLabeledInputText, FocusCycler, FormHeaderView, LabeledFieldView, LabelView, submitHandler, ToolbarView, View, ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } 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 { FocusTracker, KeystrokeHandler } 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/tableproperties.css';
|
package/src/tableproperties.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TablePropertiesEditing from './tableproperties/tablepropertiesediting';
|
|
10
|
-
import TablePropertiesUI from './tableproperties/tablepropertiesui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TablePropertiesEditing from './tableproperties/tablepropertiesediting.js';
|
|
10
|
+
import TablePropertiesUI from './tableproperties/tablepropertiesui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
|
|
13
13
|
*
|
package/src/tableproperties.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TablePropertiesEditing from './tableproperties/tablepropertiesediting';
|
|
10
|
-
import TablePropertiesUI from './tableproperties/tablepropertiesui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TablePropertiesEditing from './tableproperties/tablepropertiesediting.js';
|
|
10
|
+
import TablePropertiesUI from './tableproperties/tablepropertiesui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
|
|
13
13
|
*
|
package/src/tableselection.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableselection
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Element, DocumentFragment } from 'ckeditor5/src/engine';
|
|
10
|
-
import TableUtils from './tableutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Element, DocumentFragment } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import TableUtils from './tableutils.js';
|
|
11
11
|
import '../theme/tableselection.css';
|
|
12
12
|
/**
|
|
13
13
|
* This plugin enables the advanced table cells, rows and columns selection.
|
package/src/tableselection.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableselection
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { first } from 'ckeditor5/src/utils';
|
|
10
|
-
import TableWalker from './tablewalker';
|
|
11
|
-
import TableUtils from './tableutils';
|
|
12
|
-
import { cropTableToDimensions, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { first } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import TableWalker from './tablewalker.js';
|
|
11
|
+
import TableUtils from './tableutils.js';
|
|
12
|
+
import { cropTableToDimensions, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure.js';
|
|
13
13
|
import '../theme/tableselection.css';
|
|
14
14
|
/**
|
|
15
15
|
* This plugin enables the advanced table cells, rows and columns selection.
|
package/src/tabletoolbar.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tabletoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
|
|
12
12
|
*
|
package/src/tabletoolbar.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tabletoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
|
|
10
|
-
import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widget';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
10
|
+
import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widget.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
|
|
13
13
|
*
|
package/src/tableui.d.ts
CHANGED
package/src/tableui.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { addListToDropdown, createDropdown, Model, SplitButtonView, SwitchButtonView } from 'ckeditor5/src/ui';
|
|
10
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
11
|
-
import InsertTableView from './ui/inserttableview';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { addListToDropdown, createDropdown, Model, SplitButtonView, SwitchButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import InsertTableView from './ui/inserttableview.js';
|
|
12
12
|
import tableIcon from './../theme/icons/table.svg';
|
|
13
13
|
import tableColumnIcon from './../theme/icons/table-column.svg';
|
|
14
14
|
import tableRowIcon from './../theme/icons/table-row.svg';
|
package/src/tableutils.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 { DocumentSelection, Element, Range, Selection, Writer } from 'ckeditor5/src/engine';
|
|
7
|
-
import TableWalker, { type TableWalkerOptions } from './tablewalker';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { DocumentSelection, Element, Range, Selection, Writer } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import TableWalker, { type TableWalkerOptions } from './tablewalker.js';
|
|
8
8
|
type IndexesObject = {
|
|
9
9
|
first: number;
|
|
10
10
|
last: number;
|
package/src/tableutils.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/tableutils
|
|
7
7
|
*/
|
|
8
|
-
import { CKEditorError } from 'ckeditor5/src/utils';
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import TableWalker from './tablewalker';
|
|
11
|
-
import { createEmptyTableCell, updateNumericAttribute } from './utils/common';
|
|
12
|
-
import { removeEmptyColumns, removeEmptyRows } from './utils/structure';
|
|
13
|
-
import { getTableColumnElements } from './tablecolumnresize/utils';
|
|
8
|
+
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import TableWalker from './tablewalker.js';
|
|
11
|
+
import { createEmptyTableCell, updateNumericAttribute } from './utils/common.js';
|
|
12
|
+
import { removeEmptyColumns, removeEmptyRows } from './utils/structure.js';
|
|
13
|
+
import { getTableColumnElements } from './tablecolumnresize/utils.js';
|
|
14
14
|
/**
|
|
15
15
|
* The table utilities plugin.
|
|
16
16
|
*/
|
package/src/tablewalker.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/ui/colorinputview
|
|
7
7
|
*/
|
|
8
|
-
import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, InputTextView, FocusCycler, ViewCollection, type ColorDefinition, type DropdownView, type ColorPickerConfig, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../theme/colorinput.css';
|
|
11
11
|
export type ColorInputViewOptions = {
|
|
12
12
|
colorDefinitions: Array<ColorDefinition>;
|
package/src/ui/colorinputview.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/ui/colorinputview
|
|
7
7
|
*/
|
|
8
|
-
import { View, InputTextView, createDropdown, FocusCycler, ViewCollection, ColorSelectorView } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, InputTextView, createDropdown, FocusCycler, ViewCollection, ColorSelectorView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../theme/colorinput.css';
|
|
11
11
|
/**
|
|
12
12
|
* The color input view class. It allows the user to type in a color (hex, rgb, etc.)
|
package/src/ui/formrowview.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/ui/formrowview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type LabelView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, type LabelView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../theme/formrow.css';
|
|
11
11
|
/**
|
|
12
12
|
* The class representing a single row in a complex form,
|
package/src/ui/formrowview.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/ui/inserttableview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import './../../theme/inserttable.css';
|
|
11
11
|
/**
|
|
12
12
|
* The table size view.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/ui/inserttableview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ButtonView, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui';
|
|
9
|
-
import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, ButtonView, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import './../../theme/inserttable.css';
|
|
11
11
|
/**
|
|
12
12
|
* The table size view.
|
package/src/utils/common.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/common
|
|
7
7
|
*/
|
|
8
|
-
import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine';
|
|
9
|
-
import type TableUtils from '../tableutils';
|
|
8
|
+
import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import type TableUtils from '../tableutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* A common method to update the numeric value. If a value is the default one, it will be unset.
|
|
12
12
|
*
|
package/src/utils/common.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 { downcastAttributeToStyle, upcastStyleToAttribute } from './../converters/tableproperties';
|
|
5
|
+
import { downcastAttributeToStyle, upcastStyleToAttribute } from './../converters/tableproperties.js';
|
|
6
6
|
/**
|
|
7
7
|
* A common method to update the numeric value. If a value is the default one, it will be unset.
|
|
8
8
|
*
|
package/src/utils/structure.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/structure
|
|
7
7
|
*/
|
|
8
|
-
import type { Element, Writer } from 'ckeditor5/src/engine';
|
|
9
|
-
import { type TableSlot } from '../tablewalker';
|
|
10
|
-
import type TableUtils from '../tableutils';
|
|
8
|
+
import type { Element, Writer } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { type TableSlot } from '../tablewalker.js';
|
|
10
|
+
import type TableUtils from '../tableutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* Returns a cropped table according to given dimensions.
|
|
13
13
|
|
package/src/utils/structure.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 { default as TableWalker } from '../tablewalker';
|
|
6
|
-
import { createEmptyTableCell, updateNumericAttribute } from './common';
|
|
5
|
+
import { default as TableWalker } from '../tablewalker.js';
|
|
6
|
+
import { createEmptyTableCell, updateNumericAttribute } from './common.js';
|
|
7
7
|
/**
|
|
8
8
|
* Returns a cropped table according to given dimensions.
|
|
9
9
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/ui/contextualballoon
|
|
7
7
|
*/
|
|
8
|
-
import { type PositionOptions } from 'ckeditor5/src/utils';
|
|
9
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
8
|
+
import { type PositionOptions } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* A helper utility that positions the
|
|
12
12
|
* {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/ui/contextualballoon
|
|
7
7
|
*/
|
|
8
|
-
import { Rect } from 'ckeditor5/src/utils';
|
|
9
|
-
import { BalloonPanelView } from 'ckeditor5/src/ui';
|
|
10
|
-
import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from './widget';
|
|
11
|
-
import { getSelectionAffectedTable } from '../common';
|
|
8
|
+
import { Rect } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { BalloonPanelView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { getSelectionAffectedTableWidget, getTableWidgetAncestor } from './widget.js';
|
|
11
|
+
import { getSelectionAffectedTable } from '../common.js';
|
|
12
12
|
const DEFAULT_BALLOON_POSITIONS = BalloonPanelView.defaultPositions;
|
|
13
13
|
const BALLOON_POSITIONS = [
|
|
14
14
|
DEFAULT_BALLOON_POSITIONS.northArrowSouth,
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/ui/table-properties
|
|
7
7
|
*/
|
|
8
|
-
import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui';
|
|
9
|
-
import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils';
|
|
10
|
-
import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview';
|
|
11
|
-
import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview';
|
|
12
|
-
import ColorInputView from '../../ui/colorinputview';
|
|
8
|
+
import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview.js';
|
|
11
|
+
import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview.js';
|
|
12
|
+
import ColorInputView from '../../ui/colorinputview.js';
|
|
13
13
|
/**
|
|
14
14
|
* Returns an object containing pairs of CSS border style values and their localized UI
|
|
15
15
|
* labels. Used by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/ui/table-properties
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, Model } from 'ckeditor5/src/ui';
|
|
9
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine';
|
|
11
|
-
import ColorInputView from '../../ui/colorinputview';
|
|
8
|
+
import { ButtonView, Model } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine.js';
|
|
11
|
+
import ColorInputView from '../../ui/colorinputview.js';
|
|
12
12
|
const isEmpty = (val) => val === '';
|
|
13
13
|
/**
|
|
14
14
|
* Returns an object containing pairs of CSS border style values and their localized UI
|
package/src/utils/ui/widget.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table/utils/ui/widget
|
|
7
7
|
*/
|
|
8
|
-
import type { ViewDocumentSelection, ViewElement } from 'ckeditor5/src/engine';
|
|
8
|
+
import type { ViewDocumentSelection, ViewElement } from 'ckeditor5/src/engine.js';
|
|
9
9
|
/**
|
|
10
10
|
* Depending on the position of the selection either return the selected table or the table higher in the hierarchy.
|
|
11
11
|
*/
|
package/src/utils/ui/widget.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, 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 { isWidget } from 'ckeditor5/src/widget';
|
|
5
|
+
import { isWidget } from 'ckeditor5/src/widget.js';
|
|
6
6
|
/**
|
|
7
7
|
* Depending on the position of the selection either return the selected table or the table higher in the hierarchy.
|
|
8
8
|
*/
|