@ckeditor/ckeditor5-track-changes 39.0.1 → 40.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 +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/table
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesTable extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
constructor(editor: Editor);
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
afterInit(): void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Coordinates for suggestion.
|
|
24
|
-
*/
|
|
25
|
-
export interface SuggestionCoordinates {
|
|
26
|
-
/**
|
|
27
|
-
* Index of the row at which the suggestion starts.
|
|
28
|
-
*/
|
|
29
|
-
minRow: number;
|
|
30
|
-
/**
|
|
31
|
-
* Index of the row at which the suggestion ends.
|
|
32
|
-
*/
|
|
33
|
-
maxRow: number;
|
|
34
|
-
/**
|
|
35
|
-
* Index of the column at which the suggestion starts.
|
|
36
|
-
*/
|
|
37
|
-
minColumn: number;
|
|
38
|
-
/**
|
|
39
|
-
* Index of the column at which the suggestion ends.
|
|
40
|
-
*/
|
|
41
|
-
maxColumn: number;
|
|
42
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/table
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesTable extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
constructor(editor: Editor);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
afterInit(): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Coordinates for suggestion.
|
|
24
|
+
*/
|
|
25
|
+
export interface SuggestionCoordinates {
|
|
26
|
+
/**
|
|
27
|
+
* Index of the row at which the suggestion starts.
|
|
28
|
+
*/
|
|
29
|
+
minRow: number;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the row at which the suggestion ends.
|
|
32
|
+
*/
|
|
33
|
+
maxRow: number;
|
|
34
|
+
/**
|
|
35
|
+
* Index of the column at which the suggestion starts.
|
|
36
|
+
*/
|
|
37
|
+
minColumn: number;
|
|
38
|
+
/**
|
|
39
|
+
* Index of the column at which the suggestion ends.
|
|
40
|
+
*/
|
|
41
|
+
maxColumn: number;
|
|
42
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x56e7=['registerDescriptionCallback','removeClass','every','fromRange','TableUtils','insertion','isTouching','ELEMENT_TABLE_ROW','get','registerElementLabel','hasAttribute','plugins','batch','markMultiRangeDeletion','ELEMENT_TABLE','registerCustomCallback','tablePaste','last','findAncestor','some','commands','removeTableColumn','_suggestionFactory','addMarker:suggestion','enqueueChange','change:data','setSelection','ELEMENT_TABLE_COLUMN_WITH_TEXT','rootName','_getCoordsForCells','_acceptFormatSuggestionCallbackFactory','getRanges','isArray','type','name','element','low','root','execute','values','from','insertTable','$graveyard','selection','position','registerPostFixer','forceValue','addClass','_getSuggestionCoords','$textProxy','maxRow','_descriptionFactory','createTableWalker','insertTableRowBelow','_setupColumnsRowsFixing','getItems','toViewElement','end','above','createRangeIn','length','getRowIndexes','filter','suggestion','getAttribute','editor','nodeBefore','change','removeTableRow','deletion','item','getFirstRange','downcastDispatcher','getSelectionAffectedTableCells','writer','nodeAfter','getSuggestion','accept','differ','showSuggestionHighlights','insertTableRowAbove','minColumn','insertTableColumnRight','start','_tablePostFixingSubtypes','getCellLocation','min','MIN_SAFE_INTEGER','getColumnIndexes','map','detach','add','data','toLowerCase','oldRange','table','getChildren','getChanges','markMultiRangeInsertion','highest','classes','TrackChangesEditing','startsWith','ELEMENT_TABLE_COLUMN','createRangeOn','colspan','span','substr','tableColumn','join','refresh','isEqual','addRange','document','tableRow','tableCell','model','enableCommand','*Insert:*\x20%0','minRow','subType','*Remove:*\x20%0','ELEMENT_TABLE_ROW_WITH_TEXT','first','options','push','ELEMENT_TABLE_WITH_TEXT','discard','max','rowspan','_tableSuggestions','order','cell','includes','locale','afterInit','left'];(function(_0x330bb2,_0x56e77a){const _0x57c9eb=function(_0x3ea95b){while(--_0x3ea95b){_0x330bb2['push'](_0x330bb2['shift']());}};_0x57c9eb(++_0x56e77a);}(_0x56e7,0x71));const _0x57c9=function(_0x330bb2,_0x56e77a){_0x330bb2=_0x330bb2-0x0;let _0x57c9eb=_0x56e7[_0x330bb2];return _0x57c9eb;};import{Plugin as _0x1c98dc}from'ckeditor5/src/core';import{LiveRange as _0x2461bd}from'ckeditor5/src/engine';import{setHighlightHandling as _0xd57c4}from'ckeditor5/src/widget';import{getTranslation as _0x209475}from'../utils/common-translations';export default class mt extends _0x1c98dc{constructor(_0x5716ff){super(_0x5716ff),this[_0x57c9('0x6c')]=['tableRow',_0x57c9('0x84')],this[_0x57c9('0x11')]=new Set();}[_0x57c9('0x16')](){const _0x2366a9=this[_0x57c9('0x59')],_0x27b0e0=_0x2366a9['model'][_0x57c9('0x0')][_0x57c9('0x43')];if(!_0x2366a9[_0x57c9('0x23')]['has']('TableEditing'))return;const _0x5a4d65=_0x2366a9[_0x57c9('0x15')],_0x15e43f=_0x2366a9[_0x57c9('0x23')]['get'](_0x57c9('0x7d')),_0x49c3bc=_0x2366a9['plugins'][_0x57c9('0x20')](_0x57c9('0x1c'));_0x15e43f[_0x57c9('0x4b')][_0x57c9('0x21')](_0x57c9('0x77'),_0xfe1b91=>_0x209475(_0x5a4d65,_0x57c9('0x26'),_0xfe1b91)),this[_0x57c9('0x4e')](),_0x15e43f[_0x57c9('0x4')](_0x57c9('0x41')),_0x15e43f['enableCommand']('selectTableRow'),_0x15e43f[_0x57c9('0x4')]('selectTableColumn');for(const _0x184551 of[_0x57c9('0x68'),_0x57c9('0x4d')]){const _0xd561d1=_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x184551);_0x15e43f[_0x57c9('0x4')](_0x184551,_0x55c8fd=>{_0x2366a9['model']['change'](_0x5a0bc7=>{_0x55c8fd();const _0x405e65=_0x57c9('0x52')===_0xd561d1['order'],_0xe24fea=_0x49c3bc['getSelectionAffectedTableCells'](_0x27b0e0),_0x517584=_0x49c3bc[_0x57c9('0x55')](_0xe24fea),_0x4475f0=_0x405e65?_0x517584['first']-0x1:_0x517584['last']+0x1,_0x36a8a8=_0xe24fea[0x0]['findAncestor']('table'),_0x5e72c7=_0x49c3bc[_0x57c9('0x4c')](_0x36a8a8,{'startRow':_0x4475f0,'endRow':_0x4475f0}),_0x11d83=Array[_0x57c9('0x40')](_0x5e72c7)[_0x57c9('0x71')](_0x4b8ef1=>_0x5a0bc7[_0x57c9('0x80')](_0x4b8ef1[_0x57c9('0x13')]));_0x15e43f['markMultiRangeInsertion'](_0x11d83,_0x57c9('0x1'));});});}for(const _0x3a7afd of['insertTableColumnLeft',_0x57c9('0x6a')]){const _0x388c0d=_0x2366a9[_0x57c9('0x2c')]['get'](_0x3a7afd);_0x15e43f[_0x57c9('0x4')](_0x3a7afd,_0x1c4372=>{_0x2366a9['model']['change'](_0x390a28=>{_0x1c4372();const _0x425d47=_0x57c9('0x17')===_0x388c0d[_0x57c9('0x12')],_0x5c3be7=_0x49c3bc[_0x57c9('0x61')](_0x27b0e0),_0x22eef6=_0x49c3bc['getColumnIndexes'](_0x5c3be7),_0x50b2a5=_0x425d47?_0x22eef6['first']-0x1:_0x22eef6[_0x57c9('0x29')]+0x1,_0x4a542e=_0x5c3be7[0x0]['findAncestor'](_0x57c9('0x77')),_0x3c8637=_0x49c3bc[_0x57c9('0x4c')](_0x4a542e,{'startRow':0x0,'column':_0x50b2a5,'includeAllSlots':!0x1}),_0x163ca0=Array[_0x57c9('0x40')](_0x3c8637)['map'](_0x5d3dd1=>_0x390a28['createRangeOn'](_0x5d3dd1[_0x57c9('0x13')]));_0x15e43f[_0x57c9('0x7a')](_0x163ca0,_0x57c9('0x84'));});});}for(const _0x5ea9e1 of[_0x57c9('0x5c'),_0x57c9('0x2d')]){const _0xe9602c=_0x5ea9e1[_0x57c9('0x83')](0xb),_0x3d2e4b=_0xe9602c[_0x57c9('0x75')](),_0x3e57c8=_0x3d2e4b[_0x57c9('0x83')](0x0,0x3)+'span',_0x4cff91='table'+_0xe9602c,_0x119372=_0x57c9('0x6e')+_0xe9602c,_0x4fa41a='max'+_0xe9602c;_0x15e43f['enableCommand'](_0x5ea9e1,()=>{_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0xc5a01f=>{const _0x6d883e=_0x49c3bc[_0x57c9('0x61')](_0x27b0e0),_0x16047a=_0x6d883e[0x0]['findAncestor'](_0x57c9('0x77'));let _0xaa27e6;if(_0x57c9('0x5c')==_0x5ea9e1){const _0x2e4af2=_0x49c3bc[_0x57c9('0x55')](_0x6d883e);_0xaa27e6={'startRow':_0x2e4af2[_0x57c9('0xa')],'endRow':_0x2e4af2['last'],'includeAllSlots':!0x0};}else{const _0x4cc112=_0x49c3bc[_0x57c9('0x70')](_0x6d883e);_0xaa27e6={'startColumn':_0x4cc112['first'],'endColumn':_0x4cc112[_0x57c9('0x29')],'includeAllSlots':!0x0};}const _0x208026=_0x49c3bc[_0x57c9('0x4c')](_0x16047a,_0xaa27e6),_0x3292ff=Array[_0x57c9('0x40')](_0x208026)[_0x57c9('0x71')](({cell:_0x57d400})=>_0x57d400),_0x5674a2=se(_0x3292ff[_0x57c9('0x56')](_0x4cb4a5=>_0x4cb4a5[_0x57c9('0x22')](_0x3e57c8))),_0x3397ee=se(_0x3292ff[_0x57c9('0x56')](_0x272307=>!_0x272307[_0x57c9('0x22')](_0x3e57c8)))[_0x57c9('0x71')](_0x217a39=>_0xc5a01f[_0x57c9('0x80')](_0x217a39)),_0x402e48=_0x15e43f[_0x57c9('0x25')](_0x3397ee,_0x4cff91);if(_0x402e48&&(_0x57c9('0x1')==_0x402e48[_0x57c9('0x7')]||_0x57c9('0x84')==_0x402e48[_0x57c9('0x7')])){const _0x3b2c7d=this[_0x57c9('0x48')](_0x402e48);for(const _0x5161ce of _0x5674a2){const _0x1f3e27=_0xc5a01f[_0x57c9('0x80')](_0x5161ce),_0x4edb0f=_0x49c3bc[_0x57c9('0x6d')](_0x5161ce),_0x27caee=_0x5161ce[_0x57c9('0x58')](_0x3e57c8)-0x1,_0x2194d1=_0x3b2c7d[_0x119372],_0x475f9e=_0x3b2c7d[_0x4fa41a];_0x2194d1<=_0x4edb0f[_0x3d2e4b]&&_0x4edb0f[_0x3d2e4b]+_0x27caee<=_0x475f9e&&_0x402e48[_0x57c9('0x88')](_0x1f3e27);}}});});}function _0x30ec12(_0x2843f4){const _0x3bc702=Array[_0x57c9('0x40')](_0x27b0e0[_0x57c9('0x37')]())['map'](_0x12c446=>_0x2461bd['fromRange'](_0x12c446));_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0x2901bb=>{const _0x1e4b0e=_0x2901bb[_0x57c9('0x24')];_0x2843f4=_0x2843f4['filter'](_0x5ab6d1=>_0x57c9('0x42')!=_0x5ab6d1[_0x57c9('0x3d')][_0x57c9('0x34')]),_0x2901bb['setSelection'](_0x2843f4),_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x57c9('0x5c'))['refresh'](),_0x2366a9[_0x57c9('0x3e')](_0x57c9('0x5c'),{'forceDefaultExecution':!0x0}),_0x2366a9[_0x57c9('0x3')][_0x57c9('0x30')](()=>{_0x2366a9[_0x57c9('0x3')][_0x57c9('0x30')](_0x1e4b0e,_0x36e136=>{const _0x540872=_0x3bc702[_0x57c9('0x56')](_0xdcaf7b=>_0x57c9('0x42')!=_0xdcaf7b[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x540872[_0x57c9('0x54')]>0x0&&_0x36e136['setSelection'](_0x540872);for(const _0x220885 of _0x3bc702)_0x220885[_0x57c9('0x72')]();});});});}function _0x5a947e(_0x59136c){_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0xc0c83b=>{const _0x100d45=Array[_0x57c9('0x40')](_0x27b0e0[_0x57c9('0x37')]())[_0x57c9('0x71')](_0x4a4484=>_0x2461bd['fromRange'](_0x4a4484)),_0x4d3eb7=[];for(const _0x3567ae of _0x59136c)for(const _0x531e30 of _0x3567ae[_0x57c9('0x4f')]({'shallow':!0x0}))_0x4d3eb7[_0x57c9('0xc')](_0x531e30);for(const _0x4a29fd of _0x4d3eb7)_0x57c9('0x42')!=_0x4a29fd[_0x57c9('0x3d')][_0x57c9('0x34')]&&(_0xc0c83b[_0x57c9('0x32')](_0xc0c83b['createPositionAt'](_0x4a29fd,0x0)),_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x57c9('0x2d'))[_0x57c9('0x86')](),_0x2366a9['execute'](_0x57c9('0x2d'),{'forceDefaultExecution':!0x0}));const _0x50c189=_0x100d45[_0x57c9('0x56')](_0x298d51=>_0x57c9('0x42')!=_0x298d51[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x50c189['length']>0x0&&_0xc0c83b[_0x57c9('0x32')](_0x50c189);for(const _0x38b4fa of _0x100d45)_0x38b4fa[_0x57c9('0x72')]();});}function _0x43b245(_0x150599,_0x801fc){return _0x801fc[_0x57c9('0x1a')](_0xb99aa6=>_0x150599[_0x57c9('0x2b')](_0x371e6a=>_0x371e6a[_0x57c9('0x51')][_0x57c9('0x87')](_0xb99aa6[_0x57c9('0x6b')])||_0xb99aa6[_0x57c9('0x51')][_0x57c9('0x87')](_0x371e6a[_0x57c9('0x6b')])));}function _0x27f362(_0x2b74f0,_0x2a38cb){return _0x2b74f0[_0x57c9('0x2b')](_0x530c4c=>_0x2a38cb[_0x57c9('0x2b')](_0x3839e7=>_0x530c4c['end'][_0x57c9('0x1e')](_0x3839e7[_0x57c9('0x6b')])));}_0x2366a9[_0x57c9('0x74')][_0x57c9('0x60')]['on'](_0x57c9('0x2f'),(_0x1a78e9,_0x3dd623,_0x3ada78)=>{if(!_0x3ada78[_0x57c9('0xb')][_0x57c9('0x67')])return;const _0x456d57=_0x3dd623[_0x57c9('0x5e')];if(!_0x456d57)return;const _0x29882c=_0x3ada78['mapper'][_0x57c9('0x50')](_0x456d57);function _0x119a1d(_0x23b0f0){return Array[_0x57c9('0x38')](_0x23b0f0)?_0x23b0f0:[_0x23b0f0];}_0x29882c&&_0x57c9('0x2')===_0x456d57[_0x57c9('0x3a')]&&_0xd57c4(_0x29882c,_0x3ada78[_0x57c9('0x62')],(_0xbf49,_0xc5f20,_0x3b48d8)=>_0x3b48d8[_0x57c9('0x47')](_0x119a1d(_0xc5f20['classes']),_0xbf49),(_0x4a96bc,_0x21e025,_0x368613)=>_0x368613[_0x57c9('0x19')](_0x119a1d(_0x21e025[_0x57c9('0x7c')]),_0x4a96bc));},{'priority':_0x57c9('0x7b')}),_0x15e43f[_0x57c9('0x4b')][_0x57c9('0x18')](_0x41c257=>{if(_0x57c9('0x1d')!=_0x41c257[_0x57c9('0x39')]&&_0x57c9('0x5d')!=_0x41c257[_0x57c9('0x39')])return;const _0x3580ca=_0x41c257['getContainedElement']();if(null!=_0x3580ca&&_0x3580ca['is'](_0x57c9('0x3b'),_0x57c9('0x77'))){if(_0x57c9('0x1d')==_0x41c257['type']){const _0x1fe2d5=_0x41c257['getItems']()[_0x57c9('0x56')](_0x2d749c=>_0x2d749c['is'](_0x57c9('0x49')))[_0x57c9('0x71')](_0x26452f=>_0x26452f[_0x57c9('0x74')]);if(_0x1fe2d5['length'])return{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0xd'),'\x22'+_0x1fe2d5['join']('\x20')+'\x22'))};}if(_0x57c9('0x5d')==_0x41c257[_0x57c9('0x39')]){const _0x4724e2=_0x41c257[_0x57c9('0x4f')]()['filter'](_0x5eede3=>_0x5eede3['is'](_0x57c9('0x49')))[_0x57c9('0x71')](_0x54ddc7=>_0x54ddc7[_0x57c9('0x74')]);if(_0x4724e2[_0x57c9('0x54')])return{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0xd'),'\x22'+_0x4724e2[_0x57c9('0x85')]('\x20')+'\x22'))};}}}),_0x15e43f[_0x57c9('0x4b')]['registerDescriptionCallback'](_0x49a5dc=>{if('tableRow'==_0x49a5dc[_0x57c9('0x7')]){const _0x2a1f32=_0x49a5dc[_0x57c9('0x4f')]()[_0x57c9('0x56')](_0x5eee30=>_0x5eee30['is']('$textProxy'))[_0x57c9('0x71')](_0x30591a=>_0x30591a[_0x57c9('0x74')]),_0x582546=this['_getSuggestionCoords'](_0x49a5dc),_0x32d98d=_0x582546[_0x57c9('0x4a')]-_0x582546[_0x57c9('0x6')]+0x1;if(_0x57c9('0x1d')==_0x49a5dc[_0x57c9('0x39')])return _0x2a1f32['length']?{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0x9'),[_0x32d98d,'\x22'+_0x2a1f32['join']('\x20')+'\x22']))}:{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x5'),_0x209475(_0x5a4d65,_0x57c9('0x1f'),_0x32d98d))};if('deletion'==_0x49a5dc[_0x57c9('0x39')])return _0x2a1f32[_0x57c9('0x54')]?{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x9'),[_0x32d98d,'\x22'+_0x2a1f32[_0x57c9('0x85')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x1f'),_0x32d98d))};}if(_0x57c9('0x84')==_0x49a5dc[_0x57c9('0x7')]){const _0x314550=_0x49a5dc['getItems']()[_0x57c9('0x56')](_0x251a4f=>_0x251a4f['is']('$textProxy'))['map'](_0x46356e=>_0x46356e['data']),_0x2b61d4=this[_0x57c9('0x48')](_0x49a5dc),_0x2ebb37=_0x2b61d4['maxColumn']-_0x2b61d4[_0x57c9('0x69')]+0x1;if(_0x57c9('0x1d')==_0x49a5dc[_0x57c9('0x39')])return _0x314550['length']?{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0x33'),[_0x2ebb37,'\x22'+_0x314550['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x209475(_0x5a4d65,_0x57c9('0x5'),_0x209475(_0x5a4d65,_0x57c9('0x7f'),_0x2ebb37))};if(_0x57c9('0x5d')==_0x49a5dc[_0x57c9('0x39')])return _0x314550['length']?{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ebb37,'\x22'+_0x314550[_0x57c9('0x85')]('\x20')+'\x22']))}:{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x7f'),_0x2ebb37))};}}),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')]('insertion','tableRow',_0x57c9('0xe'),_0x30ec12),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')](_0x57c9('0x5d'),_0x57c9('0x1'),_0x57c9('0x65'),_0x30ec12),_0x15e43f[_0x57c9('0x2e')]['registerCustomCallback']('insertion',_0x57c9('0x84'),_0x57c9('0xe'),_0x5a947e),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')](_0x57c9('0x5d'),'tableColumn',_0x57c9('0x65'),_0x5a947e),_0x15e43f[_0x57c9('0x2e')]['registerCustomCallback']('insertion',_0x57c9('0x84'),_0x57c9('0x85'),_0x43b245),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')]('deletion',_0x57c9('0x84'),_0x57c9('0x85'),_0x43b245),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')](_0x57c9('0x1d'),_0x57c9('0x1'),_0x57c9('0x85'),_0x27f362),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')]('deletion',_0x57c9('0x1'),_0x57c9('0x85'),_0x27f362);}[_0x57c9('0x36')](){const _0xbac73c=this[_0x57c9('0x59')],_0x85967e=_0xbac73c['model'][_0x57c9('0x0')]['selection'];return(_0x512708,_0x5ac733)=>{_0xbac73c['model']['change'](_0x4e125a=>{const {commandName:_0x2498a3,commandParams:_0x5468b8}=_0x5ac733;let _0x17ba50=_0x512708[0x0][_0x57c9('0x51')][_0x57c9('0x5a')];_0x5468b8&&_0x5468b8[0x0]&&!0x1===_0x5468b8[0x0][_0x57c9('0x46')]&&(_0x17ba50=_0x512708[0x0][_0x57c9('0x6b')][_0x57c9('0x63')]);const _0x5cb47b=_0x4e125a[_0x57c9('0x53')](_0x17ba50);if('$graveyard'==_0x5cb47b[_0x57c9('0x3d')][_0x57c9('0x34')])return;const _0x104d5d=Array[_0x57c9('0x40')](_0x85967e[_0x57c9('0x37')]())[_0x57c9('0x71')](_0x3cdc38=>_0x2461bd[_0x57c9('0x1b')](_0x3cdc38));_0x4e125a[_0x57c9('0x32')](_0x5cb47b),_0xbac73c[_0x57c9('0x2c')]['get'](_0x2498a3)[_0x57c9('0x86')](),_0x5468b8['push']({'forceDefaultExecution':!0x0}),_0xbac73c['execute'](_0x2498a3,..._0x5468b8);const _0x3cac3e=_0x104d5d['filter'](_0x1b0ebb=>_0x57c9('0x42')!=_0x1b0ebb[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x3cac3e[_0x57c9('0x54')]>0x0&&_0x4e125a[_0x57c9('0x32')](_0x3cac3e);for(const _0x150ecd of _0x104d5d)_0x150ecd[_0x57c9('0x72')]();});};}[_0x57c9('0x35')](_0x2af977){const _0x2d1fee=this[_0x57c9('0x59')][_0x57c9('0x23')][_0x57c9('0x20')](_0x57c9('0x1c'));let _0x25883f=Number['MAX_SAFE_INTEGER'],_0x3e3c8e=Number[_0x57c9('0x6f')],_0x40cc50=Number['MAX_SAFE_INTEGER'],_0x59cb94=Number[_0x57c9('0x6f')];for(const _0x78a8e0 of _0x2af977){if(_0x57c9('0x42')==_0x78a8e0[_0x57c9('0x3d')][_0x57c9('0x34')])continue;const {row:_0xe5b887,column:_0x49d594}=_0x2d1fee['getCellLocation'](_0x78a8e0),_0x31e4f3=_0x78a8e0['hasAttribute'](_0x57c9('0x10'))?_0x78a8e0[_0x57c9('0x58')](_0x57c9('0x10'))-0x1:0x0,_0x1ac171=_0x78a8e0[_0x57c9('0x22')](_0x57c9('0x81'))?_0x78a8e0[_0x57c9('0x58')]('colspan')-0x1:0x0;_0x25883f=_0xe5b887<_0x25883f?_0xe5b887:_0x25883f,_0x3e3c8e=_0xe5b887+_0x31e4f3>_0x3e3c8e?_0xe5b887+_0x31e4f3:_0x3e3c8e,_0x40cc50=_0x49d594<_0x40cc50?_0x49d594:_0x40cc50,_0x59cb94=_0x49d594+_0x1ac171>_0x59cb94?_0x49d594+_0x1ac171:_0x59cb94;}return{'minRow':_0x25883f,'maxRow':_0x3e3c8e,'minColumn':_0x40cc50,'maxColumn':_0x59cb94};}['_setupColumnsRowsFixing'](){const _0x4056b6=this[_0x57c9('0x59')],_0x186165=_0x4056b6['plugins'][_0x57c9('0x20')](_0x57c9('0x7d')),_0xddf2d5=_0x4056b6[_0x57c9('0x23')][_0x57c9('0x20')]('TableUtils');_0x4056b6[_0x57c9('0x3')][_0x57c9('0x0')]['on'](_0x57c9('0x31'),()=>{const _0x342a97=Array[_0x57c9('0x40')](_0x4056b6['model'][_0x57c9('0x0')][_0x57c9('0x66')]['getChangedMarkers']());for(const {name:_0x2407bd,data:_0x1ae7e3}of _0x342a97){const {group:_0xdb9749,id:_0x16cf83,subType:_0x23648a}=_0x186165['_splitMarkerName'](_0x2407bd);if(_0x57c9('0x57')!=_0xdb9749)continue;if(null!=_0x1ae7e3[_0x57c9('0x76')])continue;const _0x5a386b=_0x186165[_0x57c9('0x64')](_0x16cf83);this[_0x57c9('0x6c')][_0x57c9('0x14')](_0x23648a)&&this[_0x57c9('0x11')][_0x57c9('0x73')](_0x5a386b);}},{'priority':_0x57c9('0x3c')});const _0x522aa8=(_0x92e151,_0x51928a)=>{let _0x1234e4=!0x1;const _0x491046=_0x51928a[_0x57c9('0x80')](_0x92e151),_0x5ef74d=_0x92e151[_0x57c9('0x2a')]('table'),_0x3bd692=_0xddf2d5[_0x57c9('0x6d')](_0x92e151);for(const _0x58c3b3 of this[_0x57c9('0x11')]){const _0x143231=_0x58c3b3['subType'],_0x293fde=_0x143231[_0x57c9('0x7e')](_0x57c9('0x28')),_0xeb9cd9=_0x143231[_0x57c9('0x83')](_0x293fde?0xa:0x5),_0x2da3c=_0xeb9cd9[_0x57c9('0x75')](),_0x5a36ed=_0x2da3c[_0x57c9('0x83')](0x0,0x3)+_0x57c9('0x82'),_0x5869da='min'+_0xeb9cd9,_0x563660=_0x57c9('0xf')+_0xeb9cd9;if(!_0x58c3b3['isInContent'])continue;if(_0x5ef74d!=_0x58c3b3[_0x57c9('0x5f')]()['start'][_0x57c9('0x2a')](_0x57c9('0x77')))continue;if(_0x58c3b3['isIntersectingWithRange'](_0x491046))continue;const _0x6fe205=_0x92e151[_0x57c9('0x22')](_0x5a36ed)?_0x92e151[_0x57c9('0x58')](_0x5a36ed)-0x1:0x0,_0x39ba9e=this[_0x57c9('0x48')](_0x58c3b3),_0x107280=_0x39ba9e[_0x5869da],_0x548e53=_0x39ba9e[_0x563660];_0x107280<=_0x3bd692[_0x2da3c]&&_0x3bd692[_0x2da3c]+_0x6fe205<=_0x548e53&&(_0x58c3b3[_0x57c9('0x88')](_0x491046),_0x1234e4=!0x0);}return _0x1234e4;};_0x4056b6[_0x57c9('0x3')][_0x57c9('0x0')][_0x57c9('0x45')](_0x3c3361=>{let _0x5a1c4b=!0x1;for(const _0x22bff2 of _0x4056b6['model'][_0x57c9('0x0')][_0x57c9('0x66')][_0x57c9('0x79')]())if('insert'==_0x22bff2[_0x57c9('0x39')]){if(_0x57c9('0x1')==_0x22bff2[_0x57c9('0x3a')])for(const _0xc5cf0c of _0x22bff2[_0x57c9('0x44')][_0x57c9('0x63')][_0x57c9('0x78')]())_0x5a1c4b=_0x5a1c4b||_0x522aa8(_0xc5cf0c,_0x3c3361);else _0x57c9('0x2')==_0x22bff2[_0x57c9('0x3a')]&&(_0x5a1c4b=_0x5a1c4b||_0x522aa8(_0x22bff2['position'][_0x57c9('0x63')],_0x3c3361));}return _0x5a1c4b;});}['_getSuggestionCoords'](_0x540057){return this[_0x57c9('0x35')](_0x540057[_0x57c9('0x37')]()[_0x57c9('0x71')](_0x25aa8d=>_0x25aa8d[_0x57c9('0x6b')]['nodeAfter']));}}function se(_0x372f09){return Array[_0x57c9('0x40')](new Set(_0x372f09)[_0x57c9('0x3f')]());}
|
|
23
|
+
const _0x1619=['tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','fromRange','deletion','last','map','position','substr','above','removeTableColumn','some','getSuggestion','refresh','options','_suggestionFactory','left','oldRange','change','order','TableUtils','data','showSuggestionHighlights','root','markMultiRangeInsertion','createRangeIn','commands','min','cell','nodeAfter','addRange','_getSuggestionCoords','discard','getCellLocation','isEqual','tableCell','ELEMENT_TABLE_COLUMN','minRow','insertTable','_splitMarkerName','insert','classes','_acceptFormatSuggestionCallbackFactory','start','getSelectionAffectedTableCells','getItems','createPositionAt','hasAttribute','toViewElement','subType','insertion','model','editor','setSelection','ELEMENT_TABLE_ROW','tableColumn','from','getRowIndexes','enqueueChange','accept','maxColumn','tablePaste','nodeBefore','_tableSuggestions','MAX_SAFE_INTEGER','createRangeOn','low','insertTableColumnLeft','getAttribute','get','isArray','afterInit','removeTableRow','selectTableRow','insertTableRowAbove','rowspan','TableEditing','TrackChangesEditing','getChildren','findAncestor','$graveyard','table','createTableWalker','colspan','push','_getCoordsForCells','minColumn','MIN_SAFE_INTEGER','detach','span','*Remove:*\x20%0','*Insert:*\x20%0','document','type','registerPostFixer','toLowerCase','highest','isIntersectingWithRange','insertTableRowBelow','_setupColumnsRowsFixing','getColumnIndexes','enableCommand','batch','element','execute','forceValue','rootName','max','_tablePostFixingSubtypes','join','name','first','registerCustomCallback','downcastDispatcher','length','registerDescriptionCallback','includes','getFirstRange','plugins','_descriptionFactory','differ','end','ELEMENT_TABLE','getContainedElement','$textProxy','filter','addClass','isTouching','add','selectTableColumn','ELEMENT_TABLE_WITH_TEXT','ELEMENT_TABLE_ROW_WITH_TEXT','getRanges'];(function(_0x22961e,_0x161942){const _0x16c3b8=function(_0x2b249f){while(--_0x2b249f){_0x22961e['push'](_0x22961e['shift']());}};_0x16c3b8(++_0x161942);}(_0x1619,0xf5));const _0x16c3=function(_0x22961e,_0x161942){_0x22961e=_0x22961e-0x0;let _0x16c3b8=_0x1619[_0x22961e];return _0x16c3b8;};import{Plugin as _0x37a406}from'ckeditor5/src/core';import{LiveRange as _0x392b59}from'ckeditor5/src/engine';import{setHighlightHandling as _0xe25658}from'ckeditor5/src/widget';import{getTranslation as _0x12deb4}from'../utils/common-translations';export default class dt extends _0x37a406{constructor(_0x4d7730){super(_0x4d7730),this['_tablePostFixingSubtypes']=[_0x16c3('0x13'),_0x16c3('0x49')],this[_0x16c3('0x51')]=new Set();}[_0x16c3('0x59')](){const _0x68df5b=this[_0x16c3('0x46')],_0x58ed94=_0x68df5b[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];if(!_0x68df5b[_0x16c3('0x4')]['has'](_0x16c3('0x5e')))return;const _0x2db262=_0x68df5b['locale'],_0x4377e4=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x2b21c9=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x4377e4['_descriptionFactory']['registerElementLabel'](_0x16c3('0x63'),_0x2ac39c=>_0x12deb4(_0x2db262,_0x16c3('0x8'),_0x2ac39c)),this[_0x16c3('0x75')](),_0x4377e4[_0x16c3('0x77')](_0x16c3('0x38')),_0x4377e4['enableCommand'](_0x16c3('0x5b')),_0x4377e4[_0x16c3('0x77')](_0x16c3('0xf'));for(const _0x40dfa1 of[_0x16c3('0x5c'),_0x16c3('0x74')]){const _0x5d33ff=_0x68df5b['commands'][_0x16c3('0x57')](_0x40dfa1);_0x4377e4['enableCommand'](_0x40dfa1,_0x374c88=>{_0x68df5b[_0x16c3('0x45')]['change'](_0x293a3e=>{_0x374c88();const _0x7bc191=_0x16c3('0x1b')===_0x5d33ff['order'],_0x73d61d=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0xa6659=_0x2b21c9[_0x16c3('0x4b')](_0x73d61d),_0x643cc7=_0x7bc191?_0xa6659[_0x16c3('0x81')]-0x1:_0xa6659['last']+0x1,_0x6e80da=_0x73d61d[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x381917=_0x2b21c9['createTableWalker'](_0x6e80da,{'startRow':_0x643cc7,'endRow':_0x643cc7}),_0x25ba58=Array[_0x16c3('0x4a')](_0x381917)['map'](_0x5a8e07=>_0x293a3e[_0x16c3('0x53')](_0x5a8e07[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x25ba58,_0x16c3('0x13'));});});}for(const _0x118f17 of[_0x16c3('0x55'),'insertTableColumnRight']){const _0x54d4d0=_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x118f17);_0x4377e4[_0x16c3('0x77')](_0x118f17,_0x5f482=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x738480=>{_0x5f482();const _0x36993b=_0x16c3('0x22')===_0x54d4d0[_0x16c3('0x25')],_0x51def4=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0x1667fc=_0x2b21c9[_0x16c3('0x76')](_0x51def4),_0x59bcbf=_0x36993b?_0x1667fc[_0x16c3('0x81')]-0x1:_0x1667fc[_0x16c3('0x17')]+0x1,_0x86a329=_0x51def4[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x2e24eb=_0x2b21c9[_0x16c3('0x64')](_0x86a329,{'startRow':0x0,'column':_0x59bcbf,'includeAllSlots':!0x1}),_0x5180a7=Array['from'](_0x2e24eb)[_0x16c3('0x18')](_0x23d49c=>_0x738480[_0x16c3('0x53')](_0x23d49c[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x5180a7,_0x16c3('0x49'));});});}for(const _0x564349 of['removeTableRow',_0x16c3('0x1c')]){const _0x1b602d=_0x564349[_0x16c3('0x1a')](0xb),_0x551b3f=_0x1b602d['toLowerCase'](),_0x519f49=_0x551b3f[_0x16c3('0x1a')](0x0,0x3)+'span',_0x6d77c5=_0x16c3('0x63')+_0x1b602d,_0x4df3ef=_0x16c3('0x2d')+_0x1b602d,_0x2f671c='max'+_0x1b602d;_0x4377e4['enableCommand'](_0x564349,()=>{_0x68df5b['model'][_0x16c3('0x24')](_0x5ce7ee=>{const _0x598c16=_0x2b21c9[_0x16c3('0x3e')](_0x58ed94),_0x1ea8cf=_0x598c16[0x0]['findAncestor'](_0x16c3('0x63'));let _0x5d3d46;if(_0x16c3('0x5a')==_0x564349){const _0x57bfc2=_0x2b21c9[_0x16c3('0x4b')](_0x598c16);_0x5d3d46={'startRow':_0x57bfc2[_0x16c3('0x81')],'endRow':_0x57bfc2[_0x16c3('0x17')],'includeAllSlots':!0x0};}else{const _0x4c8782=_0x2b21c9[_0x16c3('0x76')](_0x598c16);_0x5d3d46={'startColumn':_0x4c8782['first'],'endColumn':_0x4c8782[_0x16c3('0x17')],'includeAllSlots':!0x0};}const _0x597133=_0x2b21c9[_0x16c3('0x64')](_0x1ea8cf,_0x5d3d46),_0x599069=Array[_0x16c3('0x4a')](_0x597133)[_0x16c3('0x18')](({cell:_0x86c9b1})=>_0x86c9b1),_0x3d28f1=se(_0x599069[_0x16c3('0xb')](_0x42d925=>_0x42d925[_0x16c3('0x41')](_0x519f49))),_0xbbf5c=se(_0x599069[_0x16c3('0xb')](_0x110058=>!_0x110058['hasAttribute'](_0x519f49)))[_0x16c3('0x18')](_0x5ebfce=>_0x5ce7ee[_0x16c3('0x53')](_0x5ebfce)),_0x174217=_0x4377e4['markMultiRangeDeletion'](_0xbbf5c,_0x6d77c5);if(_0x174217&&('tableRow'==_0x174217['subType']||'tableColumn'==_0x174217[_0x16c3('0x43')])){const _0x457ce2=this[_0x16c3('0x31')](_0x174217);for(const _0x4ba175 of _0x3d28f1){const _0x3504e7=_0x5ce7ee[_0x16c3('0x53')](_0x4ba175),_0x52f175=_0x2b21c9[_0x16c3('0x33')](_0x4ba175),_0x4e77c1=_0x4ba175[_0x16c3('0x56')](_0x519f49)-0x1,_0x533a83=_0x457ce2[_0x4df3ef],_0x4693b4=_0x457ce2[_0x2f671c];_0x533a83<=_0x52f175[_0x551b3f]&&_0x52f175[_0x551b3f]+_0x4e77c1<=_0x4693b4&&_0x174217[_0x16c3('0x30')](_0x3504e7);}}});});}function _0x122dde(_0x4371f1){const _0x3415aa=Array['from'](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x351848=>_0x392b59[_0x16c3('0x15')](_0x351848));_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x14fe4b=>{const _0x53d35d=_0x14fe4b[_0x16c3('0x78')];_0x4371f1=_0x4371f1['filter'](_0x23af3b=>_0x16c3('0x62')!=_0x23af3b['root'][_0x16c3('0x7c')]),_0x14fe4b[_0x16c3('0x47')](_0x4371f1),_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x16c3('0x5a'))[_0x16c3('0x1f')](),_0x68df5b[_0x16c3('0x7a')](_0x16c3('0x5a'),{'forceDefaultExecution':!0x0}),_0x68df5b[_0x16c3('0x45')]['enqueueChange'](()=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x4c')](_0x53d35d,_0x25218c=>{const _0x9fd483=_0x3415aa[_0x16c3('0xb')](_0x331d90=>_0x16c3('0x62')!=_0x331d90['root'][_0x16c3('0x7c')]);_0x9fd483['length']>0x0&&_0x25218c['setSelection'](_0x9fd483);for(const _0x3a8231 of _0x3415aa)_0x3a8231[_0x16c3('0x6a')]();});});});}function _0x10253e(_0x3d9236){_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x503476=>{const _0x305f12=Array[_0x16c3('0x4a')](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x1d68ab=>_0x392b59['fromRange'](_0x1d68ab)),_0x50ba05=[];for(const _0x44547d of _0x3d9236)for(const _0x44faf3 of _0x44547d[_0x16c3('0x3f')]({'shallow':!0x0}))_0x50ba05[_0x16c3('0x66')](_0x44faf3);for(const _0x23c6fb of _0x50ba05)_0x16c3('0x62')!=_0x23c6fb['root']['rootName']&&(_0x503476[_0x16c3('0x47')](_0x503476[_0x16c3('0x40')](_0x23c6fb,0x0)),_0x68df5b[_0x16c3('0x2c')]['get']('removeTableColumn')[_0x16c3('0x1f')](),_0x68df5b['execute'](_0x16c3('0x1c'),{'forceDefaultExecution':!0x0}));const _0x2597e5=_0x305f12[_0x16c3('0xb')](_0xba35ac=>_0x16c3('0x62')!=_0xba35ac[_0x16c3('0x29')]['rootName']);_0x2597e5['length']>0x0&&_0x503476[_0x16c3('0x47')](_0x2597e5);for(const _0x320c0a of _0x305f12)_0x320c0a[_0x16c3('0x6a')]();});}function _0x530253(_0x117884,_0xf06874){return _0xf06874['every'](_0x3b38e7=>_0x117884[_0x16c3('0x1d')](_0x6cd7e3=>_0x6cd7e3[_0x16c3('0x7')]['isEqual'](_0x3b38e7[_0x16c3('0x3d')])||_0x3b38e7[_0x16c3('0x7')][_0x16c3('0x34')](_0x6cd7e3[_0x16c3('0x3d')])));}function _0x332219(_0x1906ed,_0x22a151){return _0x1906ed[_0x16c3('0x1d')](_0x5d927d=>_0x22a151[_0x16c3('0x1d')](_0x24aca2=>_0x5d927d[_0x16c3('0x7')][_0x16c3('0xd')](_0x24aca2[_0x16c3('0x3d')])));}_0x68df5b[_0x16c3('0x27')][_0x16c3('0x83')]['on']('addMarker:suggestion',(_0x3a3eac,_0x8ed327,_0x286b22)=>{if(!_0x286b22[_0x16c3('0x20')][_0x16c3('0x28')])return;const _0x1ab0d9=_0x8ed327['item'];if(!_0x1ab0d9)return;const _0x1e48af=_0x286b22['mapper'][_0x16c3('0x42')](_0x1ab0d9);function _0x44fe93(_0x34d877){return Array[_0x16c3('0x58')](_0x34d877)?_0x34d877:[_0x34d877];}_0x1e48af&&_0x16c3('0x35')===_0x1ab0d9[_0x16c3('0x80')]&&_0xe25658(_0x1e48af,_0x286b22['writer'],(_0x4932af,_0x4ffd8f,_0x1e506c)=>_0x1e506c[_0x16c3('0xc')](_0x44fe93(_0x4ffd8f[_0x16c3('0x3b')]),_0x4932af),(_0x3366e7,_0x2eb532,_0x190dba)=>_0x190dba['removeClass'](_0x44fe93(_0x2eb532['classes']),_0x3366e7));},{'priority':_0x16c3('0x72')}),_0x4377e4[_0x16c3('0x5')][_0x16c3('0x1')](_0x4e02ed=>{if(_0x16c3('0x44')!=_0x4e02ed[_0x16c3('0x6f')]&&'deletion'!=_0x4e02ed[_0x16c3('0x6f')])return;const _0x4081a8=_0x4e02ed[_0x16c3('0x9')]();if(null!=_0x4081a8&&_0x4081a8['is'](_0x16c3('0x79'),_0x16c3('0x63'))){if(_0x16c3('0x44')==_0x4e02ed[_0x16c3('0x6f')]){const _0x71b36f=_0x4e02ed['getItems']()[_0x16c3('0xb')](_0x3f9abe=>_0x3f9abe['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1750e2=>_0x1750e2[_0x16c3('0x27')]);if(_0x71b36f[_0x16c3('0x0')])return{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x71b36f[_0x16c3('0x7f')]('\x20')+'\x22'))};}if(_0x16c3('0x16')==_0x4e02ed[_0x16c3('0x6f')]){const _0x55f6fe=_0x4e02ed[_0x16c3('0x3f')]()['filter'](_0x2c1fce=>_0x2c1fce['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x3d0cad=>_0x3d0cad[_0x16c3('0x27')]);if(_0x55f6fe[_0x16c3('0x0')])return{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x55f6fe[_0x16c3('0x7f')]('\x20')+'\x22'))};}}}),_0x4377e4[_0x16c3('0x5')]['registerDescriptionCallback'](_0x344e07=>{if(_0x16c3('0x13')==_0x344e07[_0x16c3('0x43')]){const _0x28692d=_0x344e07['getItems']()['filter'](_0x462aed=>_0x462aed['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x543c50=>_0x543c50[_0x16c3('0x27')]),_0x194726=this['_getSuggestionCoords'](_0x344e07),_0x23a6ec=_0x194726['maxRow']-_0x194726[_0x16c3('0x37')]+0x1;if('insertion'==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x11'),[_0x23a6ec,'\x22'+_0x28692d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};if(_0x16c3('0x16')==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23a6ec,'\x22'+_0x28692d['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};}if(_0x16c3('0x49')==_0x344e07[_0x16c3('0x43')]){const _0x159c1d=_0x344e07[_0x16c3('0x3f')]()[_0x16c3('0xb')](_0x40c8c0=>_0x40c8c0['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1b0e03=>_0x1b0e03[_0x16c3('0x27')]),_0x375b40=this['_getSuggestionCoords'](_0x344e07),_0xeef44c=_0x375b40[_0x16c3('0x4e')]-_0x375b40[_0x16c3('0x68')]+0x1;if(_0x16c3('0x44')==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};if('deletion'==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};}}),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x32'),_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),_0x16c3('0x13'),'accept',_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x49'),_0x16c3('0x32'),_0x10253e),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),_0x16c3('0x4d'),_0x10253e),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),'tableColumn',_0x16c3('0x7f'),_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),'join',_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x7f'),_0x332219),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),'tableRow',_0x16c3('0x7f'),_0x332219);}[_0x16c3('0x3c')](){const _0x17ee33=this['editor'],_0x818b98=_0x17ee33[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];return(_0x338e4a,_0x1f0345)=>{_0x17ee33[_0x16c3('0x45')][_0x16c3('0x24')](_0x3d21bc=>{const {commandName:_0xea5379,commandParams:_0x17083b}=_0x1f0345;let _0x36b33a=_0x338e4a[0x0]['end'][_0x16c3('0x50')];_0x17083b&&_0x17083b[0x0]&&!0x1===_0x17083b[0x0][_0x16c3('0x7b')]&&(_0x36b33a=_0x338e4a[0x0][_0x16c3('0x3d')]['nodeAfter']);const _0x4dbadd=_0x3d21bc[_0x16c3('0x2b')](_0x36b33a);if(_0x16c3('0x62')==_0x4dbadd[_0x16c3('0x29')][_0x16c3('0x7c')])return;const _0x30a0df=Array['from'](_0x818b98[_0x16c3('0x12')]())['map'](_0x33c08c=>_0x392b59[_0x16c3('0x15')](_0x33c08c));_0x3d21bc[_0x16c3('0x47')](_0x4dbadd),_0x17ee33[_0x16c3('0x2c')]['get'](_0xea5379)[_0x16c3('0x1f')](),_0x17083b[_0x16c3('0x66')]({'forceDefaultExecution':!0x0}),_0x17ee33['execute'](_0xea5379,..._0x17083b);const _0x47866d=_0x30a0df[_0x16c3('0xb')](_0x55ac23=>_0x16c3('0x62')!=_0x55ac23['root'][_0x16c3('0x7c')]);_0x47866d[_0x16c3('0x0')]>0x0&&_0x3d21bc[_0x16c3('0x47')](_0x47866d);for(const _0x127f42 of _0x30a0df)_0x127f42['detach']();});};}[_0x16c3('0x67')](_0x5e0c42){const _0xd2341a=this[_0x16c3('0x46')]['plugins'][_0x16c3('0x57')](_0x16c3('0x26'));let _0x2e02ed=Number[_0x16c3('0x52')],_0x379315=Number[_0x16c3('0x69')],_0x5950e8=Number[_0x16c3('0x52')],_0x12e184=Number[_0x16c3('0x69')];for(const _0x54d01b of _0x5e0c42){if(_0x16c3('0x62')==_0x54d01b['root'][_0x16c3('0x7c')])continue;const {row:_0x307df2,column:_0x3828af}=_0xd2341a[_0x16c3('0x33')](_0x54d01b),_0x2f0a8a=_0x54d01b['hasAttribute'](_0x16c3('0x5d'))?_0x54d01b['getAttribute'](_0x16c3('0x5d'))-0x1:0x0,_0x333a27=_0x54d01b['hasAttribute']('colspan')?_0x54d01b[_0x16c3('0x56')](_0x16c3('0x65'))-0x1:0x0;_0x2e02ed=_0x307df2<_0x2e02ed?_0x307df2:_0x2e02ed,_0x379315=_0x307df2+_0x2f0a8a>_0x379315?_0x307df2+_0x2f0a8a:_0x379315,_0x5950e8=_0x3828af<_0x5950e8?_0x3828af:_0x5950e8,_0x12e184=_0x3828af+_0x333a27>_0x12e184?_0x3828af+_0x333a27:_0x12e184;}return{'minRow':_0x2e02ed,'maxRow':_0x379315,'minColumn':_0x5950e8,'maxColumn':_0x12e184};}[_0x16c3('0x75')](){const _0x19b277=this[_0x16c3('0x46')],_0x264948=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x561d65=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x19b277['model'][_0x16c3('0x6e')]['on']('change:data',()=>{const _0x4db890=Array[_0x16c3('0x4a')](_0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')][_0x16c3('0x6')]['getChangedMarkers']());for(const {name:_0x48256d,data:_0x59e4e8}of _0x4db890){const {group:_0x313c8d,id:_0x5f3125,subType:_0x547743}=_0x264948[_0x16c3('0x39')](_0x48256d);if('suggestion'!=_0x313c8d)continue;if(null!=_0x59e4e8[_0x16c3('0x23')])continue;const _0x265c03=_0x264948[_0x16c3('0x1e')](_0x5f3125);this[_0x16c3('0x7e')][_0x16c3('0x2')](_0x547743)&&this[_0x16c3('0x51')][_0x16c3('0xe')](_0x265c03);}},{'priority':_0x16c3('0x54')});const _0x44a238=(_0x181ef9,_0x303ec0)=>{let _0x3d3aff=!0x1;const _0x2fb1b2=_0x303ec0[_0x16c3('0x53')](_0x181ef9),_0x2d441e=_0x181ef9[_0x16c3('0x61')](_0x16c3('0x63')),_0x3c788f=_0x561d65[_0x16c3('0x33')](_0x181ef9);for(const _0x26c56c of this['_tableSuggestions']){const _0x2fd725=_0x26c56c['subType'],_0xc25093=_0x2fd725['startsWith'](_0x16c3('0x4f')),_0x5f00e5=_0x2fd725[_0x16c3('0x1a')](_0xc25093?0xa:0x5),_0x4528d4=_0x5f00e5[_0x16c3('0x71')](),_0x54b963=_0x4528d4[_0x16c3('0x1a')](0x0,0x3)+_0x16c3('0x6b'),_0x5725c0='min'+_0x5f00e5,_0x363f2c=_0x16c3('0x7d')+_0x5f00e5;if(!_0x26c56c['isInContent'])continue;if(_0x2d441e!=_0x26c56c[_0x16c3('0x3')]()[_0x16c3('0x3d')][_0x16c3('0x61')](_0x16c3('0x63')))continue;if(_0x26c56c[_0x16c3('0x73')](_0x2fb1b2))continue;const _0x36fb62=_0x181ef9[_0x16c3('0x41')](_0x54b963)?_0x181ef9[_0x16c3('0x56')](_0x54b963)-0x1:0x0,_0x2ce3d6=this['_getSuggestionCoords'](_0x26c56c),_0x513014=_0x2ce3d6[_0x5725c0],_0x14557a=_0x2ce3d6[_0x363f2c];_0x513014<=_0x3c788f[_0x4528d4]&&_0x3c788f[_0x4528d4]+_0x36fb62<=_0x14557a&&(_0x26c56c['addRange'](_0x2fb1b2),_0x3d3aff=!0x0);}return _0x3d3aff;};_0x19b277[_0x16c3('0x45')]['document'][_0x16c3('0x70')](_0x22bd80=>{let _0x3a42f7=!0x1;for(const _0x309b09 of _0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')]['differ']['getChanges']())if(_0x16c3('0x3a')==_0x309b09[_0x16c3('0x6f')]){if('tableRow'==_0x309b09[_0x16c3('0x80')])for(const _0x160ecb of _0x309b09[_0x16c3('0x19')]['nodeAfter'][_0x16c3('0x60')]())_0x3a42f7=_0x3a42f7||_0x44a238(_0x160ecb,_0x22bd80);else _0x16c3('0x35')==_0x309b09[_0x16c3('0x80')]&&(_0x3a42f7=_0x3a42f7||_0x44a238(_0x309b09['position'][_0x16c3('0x2f')],_0x22bd80));}return _0x3a42f7;});}[_0x16c3('0x31')](_0x59df5e){return this[_0x16c3('0x67')](_0x59df5e['getRanges']()[_0x16c3('0x18')](_0x235c75=>_0x235c75[_0x16c3('0x3d')][_0x16c3('0x2f')]));}}function se(_0x3ee864){return Array['from'](new Set(_0x3ee864)['values']());}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tablecaption
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesTableCaption extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
afterInit(): void;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tablecaption
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesTableCaption extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
afterInit(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab4=['requires','afterInit','get','enableCommand','plugins','editor'];(function(_0x14a5dd,_0x2ab414){const _0x3f4d4e=function(_0x33e42c){while(--_0x33e42c){_0x14a5dd['push'](_0x14a5dd['shift']());}};_0x3f4d4e(++_0x2ab414);}(_0x2ab4,0xba));const _0x3f4d=function(_0x14a5dd,_0x2ab414){_0x14a5dd=_0x14a5dd-0x0;let _0x3f4d4e=_0x2ab4[_0x14a5dd];return _0x3f4d4e;};import{Plugin as _0x491d32}from'ckeditor5/src/core';import _0x2fea25 from'./table';export default class At extends _0x491d32{static get[_0x3f4d('0x0')](){return[_0x2fea25];}[_0x3f4d('0x1')](){const _0x1b956a=this[_0x3f4d('0x5')];if(!_0x1b956a[_0x3f4d('0x4')]['has']('TableCaptionEditing'))return;_0x1b956a['plugins'][_0x3f4d('0x2')]('TrackChangesEditing')[_0x3f4d('0x3')]('toggleTableCaption');}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import TrackChangesTable from './table';
|
|
7
|
-
/**
|
|
8
|
-
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
9
|
-
*/
|
|
10
|
-
export default class TrackChangesTableClipboard extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import TrackChangesTable from './table';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesTableClipboard extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4836=['view','markMultiRangeInsertion','join','table','insert','tablePasteColumn','markerToHighlight','element','oldRange','tablePasteChainId','tableCell','filter','redo','options','markMultiRangeBlockFormat','tableCellBorderColor','rowInsertionRanges','wrap','length','deletion','markers','schema','updateMarker','*Replace\x20table\x20cells*','createRangeIn','registerCustomCallback','markMultiRangeDeletion','get','nodeAfter','entries','markerAttributes','locale','isEqual','change','newRange','findAncestor','tableCellBorderStyle','map','removeColumns','markerName','selection','low','startsWith','editor','getColumnIndexes','paragraph','setAttribute','getRowIndexes','stop','conversion','listenTo','tableCellBorderWidth','move','attributes','getSuggestionCallback','getSuggestions','find','createTableWalker','accept','rowInsertionIndexes','tableCellVerticalAlignment','editing','ck-suggestion-marker-insertion','TrackChangesEditing','tableCellSuggestion','getChildren','tablePasteRow','getContainedElement','insertRows','plugins','isEmpty','fromEntries','author','tableCellBackgroundColor','columns','containsRange','hasSuggestion','insertContent','Users','high','_descriptionFactory','getShiftedBy','name','getRows','_splitMarkerName','column','getAttributes','$graveyard','insertion','columnInsertionRanges','tableCellHorizontalAlignment','getChanges','content','_createdBatches','add','createRangeOn','has','differ','type','formatBlock','showSuggestionHighlights','documentSelection','subType','getChild','createPositionBefore','ck-suggestion-marker','requires','suggestion:formatBlock:tablePasteCell','nextSibling','removeMarkers','batch','position','document','every','getSuggestion','tablePasteCell','_tablePostFixingSubtypes','getSelectionAffectedTableCells','reduce','set','endColumn','elementToElement','registerDescriptionCallback','createElement','registerPostFixer','columnInsertionIndexes','getRanges','_replaceTableSlotCell','fill','getTableIfOnlyTableInContent','TableClipboard','getMarkers','tableCellPadding','push','getColumns','tablePaste','removeMarker','keys','register','getAllAdjacentSuggestions','includes','_getCoordsForCells','unwrap','forceDefaultExecution','previous','for','end','suggestion-td','trackChanges','isInContent','_suggestionFactory','getRange','suggestion','first','remove','removeRows','discard','TableUtils','suggestionLoaded','deletionRanges','getChangedMarkers','model','from','last','commands'];(function(_0x10492b,_0x48366c){const _0x352ca7=function(_0x4db370){while(--_0x4db370){_0x10492b['push'](_0x10492b['shift']());}};_0x352ca7(++_0x48366c);}(_0x4836,0xa8));const _0x352c=function(_0x10492b,_0x48366c){_0x10492b=_0x10492b-0x0;let _0x352ca7=_0x4836[_0x10492b];return _0x352ca7;};import{getTranslation as _0x5e1dce}from'../utils/common-translations';import{Plugin as _0x5db8da}from'ckeditor5/src/core';import{uid as _0x3c6117,priorities as _0x220747}from'ckeditor5/src/utils';import _0x2060a9 from'./table';const le=[_0x352c('0x30'),_0x352c('0xc'),_0x352c('0x21'),_0x352c('0x57'),_0x352c('0x39'),_0x352c('0x46'),_0x352c('0x81')],ae=Object[_0x352c('0x44')](le[_0x352c('0x22')](_0x37127e=>[_0x37127e,null]));export default class kt extends _0x5db8da{static get[_0x352c('0x67')](){return[_0x2060a9];}['afterInit'](){const _0x18d001=this[_0x352c('0x28')];if(!_0x18d001[_0x352c('0x42')][_0x352c('0x5d')](_0x352c('0x7f')))return;const _0x30f891=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x3c')),_0x5c60be=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x9a')),_0x434e26=_0x18d001[_0x352c('0x42')]['get'](_0x2060a9),_0x3886f9=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x7f'));_0x434e26[_0x352c('0x71')][_0x352c('0x82')](_0x352c('0x3f'),'tablePasteColumn'),_0x18d001['model'][_0x352c('0x12')][_0x352c('0x87')](_0x352c('0x3d'),{'allowIn':_0x352c('0x7'),'allowContentOf':_0x352c('0x7'),'isLimit':!0x0}),_0x18d001['conversion'][_0x352c('0x76')]({'model':'tableCellSuggestion','view':_0x352c('0x90')});let _0x558b2f=null;_0x18d001[_0x352c('0x9e')]['on'](_0x352c('0x4a'),(_0x14aa56,_0x3f1505)=>{const [_0x57c54c,_0x4ff70e]=_0x3f1505,_0x5395f6=_0x3f1505[_0x3f1505[_0x352c('0xf')]-0x1];_0x5395f6&&_0x5395f6[_0x352c('0x8c')]||_0x30f891['_isForcedDefaultExecutionBlock']||this['editor'][_0x352c('0xa1')][_0x352c('0x18')](_0x352c('0x91'))['value']&&function(_0x2fa9bf,_0x406ad5,_0x1c1c3e,_0x42cfd5,_0x2b08db){if(_0x406ad5&&!_0x406ad5['is'](_0x352c('0x62')))return!0x1;const _0x25c343=_0x2b08db[_0x352c('0x7e')](_0x2fa9bf,_0x1c1c3e);if(!_0x25c343||!fe(_0x25c343,void 0x0,_0x42cfd5))return!0x1;const _0x1e7473=_0x42cfd5[_0x352c('0x72')](_0x1c1c3e[_0x352c('0x6d')][_0x352c('0x25')]);if(!_0x1e7473[_0x352c('0xf')])return!0x1;const _0x1069ec=_0x1e7473[0x0][_0x352c('0x20')](_0x352c('0x0')),_0x5d5adf=_0x42cfd5[_0x352c('0x2c')](_0x1e7473),_0xed75d7=_0x42cfd5[_0x352c('0x29')](_0x1e7473),_0x2ed9b0={'startRow':_0x5d5adf[_0x352c('0x96')],'endRow':_0x5d5adf['last'],'startColumn':_0xed75d7[_0x352c('0x96')],'endColumn':_0xed75d7[_0x352c('0xa0')]};return 0x1==_0x1e7473['length']&&(_0x2ed9b0['endRow']+=_0x42cfd5[_0x352c('0x50')](_0x25c343)-0x1,_0x2ed9b0[_0x352c('0x75')]+=_0x42cfd5[_0x352c('0x83')](_0x25c343)-0x1),fe(_0x1069ec,_0x2ed9b0,_0x42cfd5);}(_0x57c54c,_0x4ff70e,_0x18d001[_0x352c('0x9e')],_0x5c60be,_0x3886f9)&&(_0x14aa56['stop'](),_0x558b2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18d001[_0x352c('0x9e')][_0x352c('0x1e')](()=>{_0x18d001['model'][_0x352c('0x4a')](_0x3f1505[0x0],_0x3f1505[0x1],_0x3f1505[0x2],{'forceDefaultExecution':!0x0});const _0x344a3c=_0x3c6117(),{rowInsertionRanges:_0x3f5d8c,columnInsertionRanges:_0x579d1a,insertionRanges:_0x5efe86,deletionRanges:_0x309887,cells:_0x3b5c95}=_0x558b2f;_0x3f5d8c['length']&&_0x30f891[_0x352c('0xa3')](_0x3f5d8c,_0x352c('0x3f'),{'tablePasteChainId':_0x344a3c}),_0x579d1a[_0x352c('0xf')]&&_0x30f891['markMultiRangeInsertion'](_0x579d1a,_0x352c('0x2'),{'tablePasteChainId':_0x344a3c}),_0x5efe86[_0x352c('0xf')]&&_0x30f891[_0x352c('0xa3')](_0x5efe86,'tablePaste',{'tablePasteChainId':_0x344a3c,'skipNestingCheck':!0x0}),_0x309887[_0x352c('0xf')]&&_0x30f891[_0x352c('0x17')](_0x309887,'tablePaste',{'tablePasteChainId':_0x344a3c,'skipNestingCheck':!0x0});const _0x2dad16=_0x30f891[_0x352c('0xb')](_0x3b5c95['map'](({element:_0x4f0fc5})=>_0x4f0fc5),{'formatGroupId':_0x3c6117()},[],_0x352c('0x70'),{'tablePasteChainId':_0x344a3c});if(_0x2dad16){const _0x22620a=_0x2dad16[_0x352c('0x80')](),_0x5d6ac1=[];for(const {element:_0x1356df,attributes:_0x41277c}of _0x3b5c95){if(!_0x41277c)continue;const _0xe3adc5=_0x18d001[_0x352c('0x9e')][_0x352c('0x5c')](_0x1356df),_0x5ef5e1=_0x22620a[_0x352c('0x35')](_0x52dec4=>_0x52dec4[_0x352c('0x94')]()[_0x352c('0x1d')](_0xe3adc5));_0x5ef5e1&&_0x5d6ac1[_0x352c('0x82')]([_0x5ef5e1[_0x352c('0x4f')],_0x41277c]);}_0x5d6ac1[_0x352c('0xf')]&&_0x2dad16[_0x352c('0x2b')](_0x352c('0x1b'),Object['fromEntries'](_0x5d6ac1));}_0x558b2f=null;}));},{'priority':_0x220747[_0x352c('0x4c')]+0xa}),_0x18d001[_0x352c('0x42')]['get'](_0x352c('0x7f'))['on'](_0x352c('0x7c'),(_0x2e3790,_0x4241fe)=>{const [_0x39cada,_0x5ba930,,_0x2bd8f1]=_0x4241fe;if(!_0x558b2f)return;_0x2e3790[_0x352c('0x2d')]();const _0x48be69=_0x39cada['cell'],_0x4c5d06=_0x5ba930,_0x2acb6c=ce(_0x48be69),_0x14a082=ce(_0x4c5d06);_0x2e3790['return']=_0x48be69;let _0x5ee595=null,_0xc96bd6=null;if(_0x14a082||_0x2acb6c){if(_0x2acb6c&&!_0x14a082){_0x2bd8f1[_0x352c('0x97')](_0x48be69[_0x352c('0x64')](0x0));for(const _0x515e6d of Array['from'](_0x4c5d06[_0x352c('0x3e')]()))_0x2bd8f1[_0x352c('0x1')](_0x515e6d,_0x48be69,_0x352c('0x8f'));const _0x3a6ac6=_0x558b2f[_0x352c('0x38')][_0x352c('0x89')](_0x39cada['row']),_0x39de7a=_0x558b2f[_0x352c('0x7a')][_0x352c('0x89')](_0x39cada[_0x352c('0x52')]);_0x3a6ac6||_0x39de7a||(_0x5ee595=_0x2bd8f1[_0x352c('0x15')](_0x48be69));}else _0x14a082&&!_0x2acb6c&&(_0xc96bd6=_0x2bd8f1[_0x352c('0x15')](_0x48be69));}else{const _0x3d2d36=_0x2bd8f1['createElement'](_0x352c('0x3d')),_0x5b04b5=_0x2bd8f1[_0x352c('0x78')](_0x352c('0x3d'));_0x2bd8f1[_0x352c('0xe')](_0x2bd8f1['createRangeIn'](_0x48be69),_0x5b04b5),_0x2bd8f1['insert'](_0x3d2d36,_0x48be69,0x0);for(const _0x300906 of Array['from'](_0x4c5d06[_0x352c('0x3e')]()))_0x2bd8f1[_0x352c('0x1')](_0x300906,_0x3d2d36,'end');_0x5ee595=_0x2bd8f1[_0x352c('0x5c')](_0x3d2d36),_0xc96bd6=_0x2bd8f1[_0x352c('0x5c')](_0x5b04b5);}const _0x233462=Array['from'](_0x4c5d06[_0x352c('0x53')]())[_0x352c('0x8')](([_0x35c303])=>le['includes'](_0x35c303));_0x558b2f['cells'][_0x352c('0x82')]({'element':_0x48be69,'attributes':_0x233462['length']?Object[_0x352c('0x44')](_0x233462):null}),_0x5ee595&&_0x558b2f['insertionRanges']['push'](_0x5ee595),_0xc96bd6&&_0x558b2f[_0x352c('0x9c')][_0x352c('0x82')](_0xc96bd6);},{'priority':_0x352c('0x4c')}),_0x5c60be['on']('insertColumns',(_0x4f718f,_0x284a62)=>{const [_0x26c4ec,_0x274f6d={}]=_0x284a62;if(!_0x558b2f)return;const _0x17962d=_0x274f6d['at']||0x0,_0x3f4130=_0x274f6d[_0x352c('0x47')]||0x1;_0x558b2f['columnInsertionIndexes']=new Array(_0x3f4130)[_0x352c('0x7d')](_0x17962d)[_0x352c('0x22')]((_0x2829d2,_0x5c7f94)=>_0x2829d2+_0x5c7f94);for(const {cell:_0x134b14}of _0x5c60be[_0x352c('0x36')](_0x26c4ec,{'startColumn':_0x17962d,'endColumn':_0x17962d+_0x3f4130-0x1}))_0x558b2f[_0x352c('0x56')]['push'](_0x18d001[_0x352c('0x9e')][_0x352c('0x5c')](_0x134b14));},{'priority':_0x352c('0x26')}),_0x5c60be['on'](_0x352c('0x41'),(_0x28d51c,_0x18a4cc)=>{const [_0x3684d1,_0x1a8996={}]=_0x18a4cc;if(!_0x558b2f)return;const _0x5de894=_0x1a8996['at']||0x0,_0x408c5d=_0x1a8996['rows']||0x1;_0x558b2f[_0x352c('0x38')]=new Array(_0x408c5d)[_0x352c('0x7d')](_0x5de894)[_0x352c('0x22')]((_0x369598,_0x115044)=>_0x369598+_0x115044);for(const {cell:_0x260569}of _0x5c60be[_0x352c('0x36')](_0x3684d1,{'startRow':_0x5de894,'endRow':_0x5de894+_0x408c5d-0x1}))_0x558b2f[_0x352c('0xd')][_0x352c('0x82')](_0x18d001['model'][_0x352c('0x5c')](_0x260569));},{'priority':'low'}),_0x30f891[_0x352c('0x4d')][_0x352c('0x77')](_0x512807=>{if(_0x512807[_0x352c('0x63')]&&_0x512807[_0x352c('0x63')][_0x352c('0x27')](_0x352c('0x84')))return _0x512807[_0x352c('0x8d')]?{}:{'type':'insertion','content':_0x5e1dce(_0x18d001[_0x352c('0x1c')],_0x352c('0x14'))};});const _0x49681d=()=>{};for(const _0xf08a5c of[_0x352c('0x84'),_0x352c('0x2'),_0x352c('0x3f'),_0x352c('0x70')])_0x30f891['_suggestionFactory'][_0x352c('0x16')](_0x352c('0x55'),_0xf08a5c,_0x352c('0xa4'),_0x49681d),_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('deletion',_0xf08a5c,_0x352c('0xa4'),_0x49681d);_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('formatBlock',_0x352c('0x70'),_0x352c('0x99'),_0x49681d),_0x30f891[_0x352c('0x93')][_0x352c('0x16')](_0x352c('0x60'),_0x352c('0x70'),_0x352c('0x37'),(_0x3b8877,_0x5c3573,_0x34bb61)=>{const _0x583c95=_0x3b8877['map'](_0x4d83d1=>_0x4d83d1[_0x352c('0x40')]())[_0x352c('0x8')](_0x3c7724=>_0x3c7724),_0x411e2c=new Map(_0x583c95[_0x352c('0x22')](_0x5bbac8=>[_0x5bbac8,null]));if(_0x558b2f)for(const {element:_0x357357,attributes:_0x50e95c}of _0x558b2f['cells'])_0x50e95c&&_0x411e2c[_0x352c('0x74')](_0x357357,_0x50e95c);else{if(_0x34bb61&&_0x34bb61['markerAttributes'])for(const [_0x59f658,_0x3242fc]of Object[_0x352c('0x1a')](_0x34bb61['markerAttributes'])){const _0x3cea10=_0x18d001['model'][_0x352c('0x11')][_0x352c('0x18')](_0x59f658),_0x1a1ccb=_0x3cea10?_0x3cea10[_0x352c('0x94')]()[_0x352c('0x40')]():null;_0x1a1ccb&&_0x411e2c['set'](_0x1a1ccb,_0x3242fc);}}_0x18d001[_0x352c('0x9e')]['change'](_0xdf857c=>{for(const [_0x34c4b1,_0x1dadfe]of _0x411e2c)_0xdf857c['setAttributes']({...ae,..._0x1dadfe},_0x34c4b1);});});const _0x29deb0=(_0x1c9845,_0x1f0e56)=>{_0x30f891['_suggestionFactory']['registerCustomCallback'](_0x1c9845,_0x352c('0x84'),_0x1f0e56,(_0x461c4e,_0x5b7d54,_0x10a72e)=>{_0x18d001['model'][_0x352c('0x1e')](_0x286f8a=>{const _0x414fb7=[];for(const _0x407383 of _0x461c4e){const _0x312465=_0x407383['start'][_0x352c('0x19')];_0x312465['is'](_0x352c('0x4'),_0x352c('0x3d'))&&_0x414fb7['push'](_0x312465);}_0x30f891['_suggestionFactory'][_0x352c('0x33')](_0x1c9845,null,_0x1f0e56)(_0x461c4e,_0x5b7d54,_0x10a72e);for(const _0x46924d of _0x414fb7)_0x352c('0x54')!=_0x46924d['root']['rootName']&&_0x286f8a[_0x352c('0x8b')](_0x46924d);});});};_0x29deb0(_0x352c('0x55'),_0x352c('0x37')),_0x29deb0('insertion','discard'),_0x29deb0(_0x352c('0x10'),_0x352c('0x37')),_0x29deb0(_0x352c('0x10'),'discard'),_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('insertion',_0x352c('0x3f'),_0x352c('0x99'),_0x1a91b8=>{const _0x290a5d=_0x1a91b8[_0x352c('0x22')](_0x3892d6=>_0x3892d6[_0x352c('0x40')]()),_0x56a46c=_0x290a5d[0x0]['findAncestor']('table'),{minRow:_0x4ea6fe,maxRow:_0x46c496}=_0x434e26[_0x352c('0x8a')](_0x290a5d);_0x5c60be[_0x352c('0x98')](_0x56a46c,{'at':_0x4ea6fe,'rows':_0x46c496-_0x4ea6fe+0x1});}),_0x30f891[_0x352c('0x93')][_0x352c('0x16')](_0x352c('0x55'),_0x352c('0x2'),_0x352c('0x99'),_0x3ce4a4=>{const _0x499e6f=_0x3ce4a4[_0x352c('0x22')](_0x3fb879=>_0x3fb879[_0x352c('0x40')]()),_0x40ec56=_0x499e6f[0x0][_0x352c('0x20')](_0x352c('0x0')),{minColumn:_0x22d4ce,maxColumn:_0x20e10e}=_0x434e26['_getCoordsForCells'](_0x499e6f);_0x5c60be[_0x352c('0x23')](_0x40ec56,{'at':_0x22d4ce,'columns':_0x20e10e-_0x22d4ce+0x1});});const _0x3b08d3=(_0x506569,_0x383b71)=>{if(!_0x383b71[_0x352c('0x63')]||!_0x383b71['subType'][_0x352c('0x27')](_0x352c('0x84')))return;const _0x2e61e6=_0x383b71[_0x352c('0x32')][_0x352c('0x6')],_0x5b94b6=_0x30f891[_0x352c('0x34')]()[_0x352c('0x8')](_0x3dfa80=>_0x3dfa80[_0x352c('0x92')]&&_0x3dfa80[_0x352c('0x32')]&&_0x3dfa80[_0x352c('0x32')][_0x352c('0x6')]==_0x2e61e6);_0x5b94b6['length']&&_0x383b71[_0x352c('0x88')]()[_0x352c('0xf')]!=_0x5b94b6[_0x352c('0xf')]&&_0x5b94b6[_0x352c('0x73')]((_0x16b814,_0x294b53)=>(_0x16b814['next']=_0x294b53,_0x294b53[_0x352c('0x8d')]=_0x16b814,_0x294b53));};function _0x154ea7(_0x1d20e9,_0x525119=!0x0){const {id:_0x2bc79e}=_0x30f891['_splitMarkerName'](_0x1d20e9[_0x352c('0x24')]),_0x49237a=[_0x352c('0x66'),_0x352c('0x3b')],_0x468802=_0x30f891['activeMarkers'][_0x352c('0x89')](_0x1d20e9['markerName']);return _0x468802&&_0x49237a[_0x352c('0x82')]('ck-suggestion-marker--active'),{'classes':_0x49237a,'attributes':{'data-suggestion':_0x2bc79e},'priority':_0x468802&&_0x525119?0xbc2:0xbb8};}_0x30f891['on'](_0x352c('0x9b'),_0x3b08d3,{'priority':_0x352c('0x4c')}),_0x30f891['on']('suggestionUnloaded',_0x3b08d3,{'priority':_0x352c('0x4c')}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x79')](()=>{let _0x2e0323=!0x1;const _0x1eac6d=Array[_0x352c('0x9f')](_0x18d001[_0x352c('0x9e')]['document'][_0x352c('0x5e')][_0x352c('0x9d')]());for(const {name:_0x2cbd35,data:_0x233387}of _0x1eac6d){const {group:_0x189cc3,type:_0x52d516,id:_0x4e5e40}=_0x30f891['_splitMarkerName'](_0x2cbd35);if(_0x352c('0x95')!=_0x189cc3||_0x352c('0x10')!=_0x52d516||_0x233387['oldRange'])continue;if(!_0x30f891[_0x352c('0x49')](_0x4e5e40))continue;const _0x524bca=_0x30f891[_0x352c('0x6f')](_0x4e5e40)[_0x352c('0x7b')](),_0x224891=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x4b'))['me'];for(const _0x436dab of _0x30f891[_0x352c('0x34')]()){if(!_0x436dab['isInContent']||_0x436dab['author']!=_0x224891)continue;if(_0x352c('0x60')!=_0x436dab[_0x352c('0x5f')]||_0x352c('0x70')!=_0x436dab['subType'])continue;if(_0x436dab[_0x352c('0x7b')]()[_0x352c('0x6e')](_0x31466d=>_0x524bca['some'](_0x50573d=>_0x50573d[_0x352c('0x48')](_0x31466d,!0x0))))for(const _0x38f64d of _0x436dab['getAllAdjacentSuggestions']())_0x38f64d['isInContent']&&(_0x38f64d['discard'](),_0x2e0323=!0x0);}}return _0x2e0323;}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x79')](_0x24eee6=>{const _0xf6225b=_0x18d001[_0x352c('0xa1')]['get'](_0x352c('0x9'));if(!_0xf6225b||!_0xf6225b[_0x352c('0x5a')][_0x352c('0x5d')](_0x24eee6[_0x352c('0x6b')]))return!0x1;let _0x2e418b=!0x1;const _0xa6e89d=_0x18d001[_0x352c('0x42')]['get'](_0x352c('0x4b'))['me'],_0x12323b=_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x5e')][_0x352c('0x58')](),_0x5db19b=Array['from'](_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x5e')][_0x352c('0x9d')]())['filter'](({name:_0x51367b,data:_0x5be200})=>{const {group:_0x23962a,subType:_0x3238ae,authorId:_0x36a8eb}=_0x30f891[_0x352c('0x51')](_0x51367b);return _0x352c('0x95')==_0x23962a&&_0x352c('0x84')==_0x3238ae&&_0x36a8eb==_0xa6e89d['id']&&!_0x5be200[_0x352c('0x5')];});for(const _0x4d85cb of _0x12323b){if(_0x352c('0x1')!=_0x4d85cb[_0x352c('0x5f')]||_0x352c('0x3d')!=_0x4d85cb['name']||0x1!=_0x4d85cb[_0x352c('0xf')])continue;const _0x37dd81=_0x24eee6['createRange'](_0x4d85cb[_0x352c('0x6c')],_0x4d85cb['position'][_0x352c('0x4e')](0x1));if(!_0x5db19b[_0x352c('0x35')](({data:_0x5157d5})=>_0x5157d5[_0x352c('0x1f')][_0x352c('0x1d')](_0x37dd81)))for(const {name:_0x296f65,data:_0x1ceca5}of _0x5db19b)if(_0x37dd81[_0x352c('0x48')](_0x1ceca5['newRange'])){_0x24eee6[_0x352c('0x13')](_0x296f65,{'range':_0x37dd81}),_0x2e418b=!0x0;break;}}return _0x2e418b;}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')]['registerPostFixer'](_0x4c6ab8=>{let _0x1deb88=!0x1;const _0x319fe3=_0x18d001['plugins']['get'](_0x352c('0x4b'))['me'],_0x470a7d=_0x30f891[_0x352c('0x34')]()['filter'](_0x1b5288=>_0x1b5288[_0x352c('0x92')]&&_0x1b5288[_0x352c('0x45')]==_0x319fe3),_0x1a9998=new Set(),_0x4a521f=new Set();for(const _0x4d094b of _0x470a7d)if(_0x352c('0x84')==_0x4d094b[_0x352c('0x63')])for(const _0x36cbac of _0x4d094b['getMarkers']()){const _0x2cb007=_0x36cbac[_0x352c('0x94')]()['getContainedElement']();if(_0x2cb007){if(_0x2cb007['is'](_0x352c('0x4'),_0x352c('0x3d'))&&ce(_0x2cb007)){_0x4d094b[_0x352c('0x85')](_0x36cbac[_0x352c('0x4f')]),_0x1a9998[_0x352c('0x5b')](_0x2cb007),_0x1deb88=!0x0;const _0x3812b5=_0x2cb007[_0x352c('0x69')],_0x43d150=_0x2cb007['previousSibling'],_0x2bf0d4=_0x3812b5&&_0x3812b5['is'](_0x352c('0x4'),_0x352c('0x3d')),_0x93c357=_0x43d150&&_0x43d150['is']('element',_0x352c('0x3d'));_0x2bf0d4&&!_0x1a9998[_0x352c('0x5d')](_0x3812b5)&&_0x4a521f[_0x352c('0x5b')](_0x3812b5),_0x93c357&&!_0x1a9998[_0x352c('0x5d')](_0x43d150)&&_0x4a521f[_0x352c('0x5b')](_0x43d150);}else _0x2cb007['is']('element','paragraph')&&_0x2cb007['isEmpty']&&(_0x4d094b[_0x352c('0x85')](_0x36cbac[_0x352c('0x4f')]),_0x1deb88=!0x0);}}else{if(_0x352c('0x70')==_0x4d094b[_0x352c('0x63')]){if(!_0x4d094b['attributes']||!_0x4d094b['attributes'][_0x352c('0x6')])continue;const _0x55ec88=_0x4d094b[_0x352c('0x32')][_0x352c('0x1b')];if(_0x55ec88&&Object[_0x352c('0x86')](_0x55ec88)['length'])continue;const _0x108e76=_0x4d094b['attributes'][_0x352c('0x6')];let _0x54edbc=!0x0,_0x41ff30=!0x0;for(const _0x3a7cf1 of _0x470a7d)if(_0x3a7cf1[_0x352c('0x63')]&&_0x3a7cf1[_0x352c('0x63')]['startsWith'](_0x352c('0x84'))){if(!_0x3a7cf1['attributes'][_0x352c('0x6')]){_0x41ff30=!0x1;break;}if(_0x3a7cf1['id']!=_0x4d094b['id']&&_0x3a7cf1[_0x352c('0x32')][_0x352c('0x6')]==_0x108e76){_0x54edbc=!0x1;break;}}_0x41ff30&&_0x54edbc&&(_0x4d094b[_0x352c('0x6a')](),_0x1deb88=!0x0);}}for(const _0x13e5ba of _0x1a9998)_0x4c6ab8[_0x352c('0x97')](_0x13e5ba);for(const _0x316807 of _0x4a521f)_0x4c6ab8[_0x352c('0x8b')](_0x316807);return _0x1deb88;}),_0x18d001[_0x352c('0x2e')][_0x352c('0x8e')]('editingDowncast')['markerToHighlight']({'model':_0x352c('0x68'),'view':(_0x59cbba,_0x5a7d9f)=>_0x154ea7(_0x59cbba),'converterPriority':_0x352c('0x4c')}),_0x18d001[_0x352c('0x2e')][_0x352c('0x8e')]('dataDowncast')[_0x352c('0x3')]({'model':_0x352c('0x68'),'view':(_0x2d9762,_0x79c1ed)=>_0x79c1ed[_0x352c('0xa')][_0x352c('0x61')]?_0x154ea7(_0x2d9762,!0x1):null,'converterPriority':'high'});const _0x11f620=_0x18d001[_0x352c('0x3a')][_0x352c('0xa2')];this[_0x352c('0x2f')](_0x11f620['document'],'clipboardOutput',(_0x55d49c,_0x1cdf98)=>{const _0x3525f1=[];for(const _0x4758bf of _0x11f620[_0x352c('0x15')](_0x1cdf98[_0x352c('0x59')])['getItems']())_0x4758bf['is'](_0x352c('0x4'),_0x352c('0x90'))&&_0x3525f1[_0x352c('0x82')](_0x4758bf);_0x11f620[_0x352c('0x1e')](_0x4fd482=>{for(const _0x2e9c6d of _0x3525f1)_0x4fd482[_0x352c('0x31')](_0x4fd482[_0x352c('0x15')](_0x2e9c6d),_0x4fd482[_0x352c('0x65')](_0x2e9c6d)),_0x4fd482[_0x352c('0x97')](_0x2e9c6d);});});}}function ce(_0x4ccc0c){if(_0x4ccc0c[_0x352c('0x43')])return!0x0;const _0x4951d6=_0x4ccc0c[_0x352c('0x64')](0x0);return _0x4951d6['is'](_0x352c('0x4'),_0x352c('0x2a'))&&_0x4951d6[_0x352c('0x43')];}function fe(_0x4af501,_0x574719={},_0x2fbdb7){for(const {isAnchor:_0x22fd0e,cellHeight:_0x7c5930,cellWidth:_0x53826c}of _0x2fbdb7[_0x352c('0x36')](_0x4af501,{'includeAllSlots':!0x0,..._0x574719}))if(!_0x22fd0e||0x1!=_0x7c5930||0x1!=_0x53826c)return!0x1;return!0x0;}
|
|
23
|
+
const _0x9a74=['markerAttributes','tablePasteChainId','unwrap','deletionRanges','high','attributes','getMarkers','tablePasteColumn','forceDefaultExecution','cell','Users','_tablePostFixingSubtypes','insertRows','accept','newRange','tableCell','tablePaste','tableCellVerticalAlignment','suggestion','differ','registerCustomCallback','columnInsertionRanges','author','document','createTableWalker','markerToHighlight','tablePasteRow','isEmpty','formatBlock','low','_isForcedDefaultExecutionBlock','findAncestor','element','ck-suggestion-marker-insertion','isEqual','columnInsertionIndexes','map','rows','endRow','getColumns','registerPostFixer','_suggestionFactory','push','commands','tableCellBorderWidth','TableClipboard','register','markers','from','last','getAllAdjacentSuggestions','subType','getRowIndexes','dataDowncast','createRangeIn','getChangedMarkers','tableCellHorizontalAlignment','plugins','requires','suggestionUnloaded','first','getSuggestion','locale','insert','elementToElement','getChildren','conversion','length','rowInsertionIndexes','view','getSuggestions','tablePasteCell','return','markerName','markMultiRangeInsertion','includes','end','getChild','redo','wrap','table','every','change','removeRows','deletion','rowInsertionRanges','getRange','type','tableCellBorderStyle','fromEntries','options','getShiftedBy','activeMarkers','TableUtils','some','editor','getAttributes','hasSuggestion','position','get','removeMarker','getColumnIndexes','model','getItems','createRangeOn','insertion','startsWith','tableCellBorderColor','_getCoordsForCells','removeColumns','selection','column','_splitMarkerName','suggestion-td','getChanges','discard','find','nextSibling','insertColumns','removeMarkers','next','move','endColumn','tableCellBackgroundColor','add','*Replace\x20table\x20cells*','getSelectionAffectedTableCells','name','reduce','join','markMultiRangeBlockFormat','cells','getRanges','filter','getContainedElement','createPositionBefore','batch','createElement','keys','_descriptionFactory','afterInit','for','$graveyard','oldRange','remove','getRows','insertContent','schema','ck-suggestion-marker--active','containsRange','listenTo','stop','suggestion:formatBlock:tablePasteCell','suggestionLoaded','tableCellSuggestion','isInContent','_createdBatches','getTableIfOnlyTableInContent','trackChanges','has','showSuggestionHighlights'];(function(_0x3a7a31,_0x9a74f4){const _0x373f90=function(_0x4eb29d){while(--_0x4eb29d){_0x3a7a31['push'](_0x3a7a31['shift']());}};_0x373f90(++_0x9a74f4);}(_0x9a74,0x159));const _0x373f=function(_0x3a7a31,_0x9a74f4){_0x3a7a31=_0x3a7a31-0x0;let _0x373f90=_0x9a74[_0x3a7a31];return _0x373f90;};import{getTranslation as _0x34c3ad}from'../utils/common-translations';import{Plugin as _0x249369}from'ckeditor5/src/core';import{uid as _0xc3f4ce,priorities as _0x365b75}from'ckeditor5/src/utils';import _0xeec717 from'./table';const le=[_0x373f('0x15'),_0x373f('0x54'),_0x373f('0x41'),_0x373f('0x21'),_0x373f('0x9b'),_0x373f('0x64'),'tableCellPadding'],ae=Object[_0x373f('0x42')](le[_0x373f('0xd')](_0x149776=>[_0x149776,null]));export default class wt extends _0x249369{static get[_0x373f('0x23')](){return[_0xeec717];}[_0x373f('0x75')](){const _0xb0b07=this['editor'];if(!_0xb0b07[_0x373f('0x22')][_0x373f('0x88')]('TableClipboard'))return;const _0x7be3af=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('TrackChangesEditing'),_0x595255=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0x373f('0x46')),_0x54f627=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0xeec717),_0x523add=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('TableClipboard');_0x54f627[_0x373f('0x95')][_0x373f('0x13')](_0x373f('0x3'),'tablePasteColumn'),_0xb0b07['model'][_0x373f('0x7c')][_0x373f('0x17')](_0x373f('0x83'),{'allowIn':_0x373f('0x99'),'allowContentOf':'tableCell','isLimit':!0x0}),_0xb0b07[_0x373f('0x2b')][_0x373f('0x29')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5d549c=null;_0xb0b07[_0x373f('0x4f')]['on'](_0x373f('0x7b'),(_0x3ca2c9,_0x28f369)=>{const [_0x26f2bd,_0x208c40]=_0x28f369,_0x5ecd37=_0x28f369[_0x28f369[_0x373f('0x2c')]-0x1];_0x5ecd37&&_0x5ecd37[_0x373f('0x92')]||_0x7be3af[_0x373f('0x7')]||this[_0x373f('0x48')]['commands']['get'](_0x373f('0x87'))['value']&&function(_0x406b78,_0x540184,_0x28ad51,_0x134613,_0x18d56b){if(_0x540184&&!_0x540184['is']('documentSelection'))return!0x1;const _0x25109f=_0x18d56b[_0x373f('0x86')](_0x406b78,_0x28ad51);if(!_0x25109f||!fe(_0x25109f,void 0x0,_0x134613))return!0x1;const _0x12d126=_0x134613[_0x373f('0x67')](_0x28ad51[_0x373f('0x0')][_0x373f('0x57')]);if(!_0x12d126[_0x373f('0x2c')])return!0x1;const _0x4dafe5=_0x12d126[0x0][_0x373f('0x8')]('table'),_0x549ff8=_0x134613[_0x373f('0x1d')](_0x12d126),_0x3a1c59=_0x134613[_0x373f('0x4e')](_0x12d126),_0x252ac7={'startRow':_0x549ff8['first'],'endRow':_0x549ff8[_0x373f('0x1a')],'startColumn':_0x3a1c59[_0x373f('0x25')],'endColumn':_0x3a1c59['last']};return 0x1==_0x12d126[_0x373f('0x2c')]&&(_0x252ac7[_0x373f('0xf')]+=_0x134613[_0x373f('0x7a')](_0x25109f)-0x1,_0x252ac7[_0x373f('0x63')]+=_0x134613[_0x373f('0x10')](_0x25109f)-0x1),fe(_0x4dafe5,_0x252ac7,_0x134613);}(_0x26f2bd,_0x208c40,_0xb0b07[_0x373f('0x4f')],_0x595255,_0x523add)&&(_0x3ca2c9[_0x373f('0x80')](),_0x5d549c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](()=>{_0xb0b07['model'][_0x373f('0x7b')](_0x28f369[0x0],_0x28f369[0x1],_0x28f369[0x2],{'forceDefaultExecution':!0x0});const _0x38a548=_0xc3f4ce(),{rowInsertionRanges:_0x2f002a,columnInsertionRanges:_0x25c57d,insertionRanges:_0x1ab9a1,deletionRanges:_0x11388f,cells:_0x450c06}=_0x5d549c;_0x2f002a[_0x373f('0x2c')]&&_0x7be3af[_0x373f('0x33')](_0x2f002a,_0x373f('0x3'),{'tablePasteChainId':_0x38a548}),_0x25c57d['length']&&_0x7be3af[_0x373f('0x33')](_0x25c57d,'tablePasteColumn',{'tablePasteChainId':_0x38a548}),_0x1ab9a1[_0x373f('0x2c')]&&_0x7be3af[_0x373f('0x33')](_0x1ab9a1,_0x373f('0x9a'),{'tablePasteChainId':_0x38a548,'skipNestingCheck':!0x0}),_0x11388f[_0x373f('0x2c')]&&_0x7be3af['markMultiRangeDeletion'](_0x11388f,_0x373f('0x9a'),{'tablePasteChainId':_0x38a548,'skipNestingCheck':!0x0});const _0x114462=_0x7be3af[_0x373f('0x6b')](_0x450c06['map'](({element:_0x481f91})=>_0x481f91),{'formatGroupId':_0xc3f4ce()},[],_0x373f('0x30'),{'tablePasteChainId':_0x38a548});if(_0x114462){const _0x54e85d=_0x114462[_0x373f('0x90')](),_0x1f2c52=[];for(const {element:_0x5336d6,attributes:_0x5aa605}of _0x450c06){if(!_0x5aa605)continue;const _0x230a45=_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0x5336d6),_0x4802f6=_0x54e85d[_0x373f('0x5d')](_0x3f602b=>_0x3f602b[_0x373f('0x3f')]()[_0x373f('0xb')](_0x230a45));_0x4802f6&&_0x1f2c52[_0x373f('0x13')]([_0x4802f6[_0x373f('0x68')],_0x5aa605]);}_0x1f2c52[_0x373f('0x2c')]&&_0x114462['setAttribute'](_0x373f('0x8a'),Object[_0x373f('0x42')](_0x1f2c52));}_0x5d549c=null;}));},{'priority':_0x365b75[_0x373f('0x8e')]+0xa}),_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0x373f('0x16'))['on']('_replaceTableSlotCell',(_0x34a0bd,_0x18f80c)=>{const [_0x3a38fc,_0x58ac8a,,_0x19a12d]=_0x18f80c;if(!_0x5d549c)return;_0x34a0bd[_0x373f('0x80')]();const _0xe758f0=_0x3a38fc[_0x373f('0x93')],_0x309636=_0x58ac8a,_0x346e8e=ce(_0xe758f0),_0x1870f4=ce(_0x309636);_0x34a0bd[_0x373f('0x31')]=_0xe758f0;let _0x582dff=null,_0xae0874=null;if(_0x1870f4||_0x346e8e){if(_0x346e8e&&!_0x1870f4){_0x19a12d[_0x373f('0x79')](_0xe758f0[_0x373f('0x36')](0x0));for(const _0xbf8ed9 of Array['from'](_0x309636[_0x373f('0x2a')]()))_0x19a12d[_0x373f('0x28')](_0xbf8ed9,_0xe758f0,_0x373f('0x35'));const _0x401feb=_0x5d549c[_0x373f('0x2d')][_0x373f('0x34')](_0x3a38fc['row']),_0x5073bb=_0x5d549c[_0x373f('0xc')][_0x373f('0x34')](_0x3a38fc[_0x373f('0x58')]);_0x401feb||_0x5073bb||(_0x582dff=_0x19a12d[_0x373f('0x1f')](_0xe758f0));}else _0x1870f4&&!_0x346e8e&&(_0xae0874=_0x19a12d[_0x373f('0x1f')](_0xe758f0));}else{const _0x2c00f0=_0x19a12d[_0x373f('0x72')](_0x373f('0x83')),_0x2bab0c=_0x19a12d['createElement'](_0x373f('0x83'));_0x19a12d[_0x373f('0x38')](_0x19a12d['createRangeIn'](_0xe758f0),_0x2bab0c),_0x19a12d['insert'](_0x2c00f0,_0xe758f0,0x0);for(const _0x5d683e of Array[_0x373f('0x19')](_0x309636[_0x373f('0x2a')]()))_0x19a12d[_0x373f('0x28')](_0x5d683e,_0x2c00f0,_0x373f('0x35'));_0x582dff=_0x19a12d[_0x373f('0x51')](_0x2c00f0),_0xae0874=_0x19a12d[_0x373f('0x51')](_0x2bab0c);}const _0x15e9bc=Array[_0x373f('0x19')](_0x309636[_0x373f('0x49')]())[_0x373f('0x6e')](([_0x4c927b])=>le[_0x373f('0x34')](_0x4c927b));_0x5d549c[_0x373f('0x6c')][_0x373f('0x13')]({'element':_0xe758f0,'attributes':_0x15e9bc['length']?Object[_0x373f('0x42')](_0x15e9bc):null}),_0x582dff&&_0x5d549c['insertionRanges'][_0x373f('0x13')](_0x582dff),_0xae0874&&_0x5d549c[_0x373f('0x8d')][_0x373f('0x13')](_0xae0874);},{'priority':'high'}),_0x595255['on'](_0x373f('0x5f'),(_0x2168d9,_0x3249f4)=>{const [_0x51b878,_0x503a2f={}]=_0x3249f4;if(!_0x5d549c)return;const _0x36bd3a=_0x503a2f['at']||0x0,_0x3e73da=_0x503a2f['columns']||0x1;_0x5d549c[_0x373f('0xc')]=new Array(_0x3e73da)['fill'](_0x36bd3a)[_0x373f('0xd')]((_0x1579ad,_0x236eb6)=>_0x1579ad+_0x236eb6);for(const {cell:_0x1816b2}of _0x595255['createTableWalker'](_0x51b878,{'startColumn':_0x36bd3a,'endColumn':_0x36bd3a+_0x3e73da-0x1}))_0x5d549c[_0x373f('0x9f')][_0x373f('0x13')](_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0x1816b2));},{'priority':_0x373f('0x6')}),_0x595255['on'](_0x373f('0x96'),(_0x428047,_0x1d0536)=>{const [_0x1b3cb9,_0x15f458={}]=_0x1d0536;if(!_0x5d549c)return;const _0x472abd=_0x15f458['at']||0x0,_0x20d03d=_0x15f458[_0x373f('0xe')]||0x1;_0x5d549c[_0x373f('0x2d')]=new Array(_0x20d03d)['fill'](_0x472abd)['map']((_0x4c4d8e,_0xe3629c)=>_0x4c4d8e+_0xe3629c);for(const {cell:_0xe653d9}of _0x595255[_0x373f('0x1')](_0x1b3cb9,{'startRow':_0x472abd,'endRow':_0x472abd+_0x20d03d-0x1}))_0x5d549c[_0x373f('0x3e')][_0x373f('0x13')](_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0xe653d9));},{'priority':'low'}),_0x7be3af[_0x373f('0x74')]['registerDescriptionCallback'](_0x142499=>{if(_0x142499['subType']&&_0x142499['subType'][_0x373f('0x53')](_0x373f('0x9a')))return _0x142499['previous']?{}:{'type':_0x373f('0x52'),'content':_0x34c3ad(_0xb0b07[_0x373f('0x27')],_0x373f('0x66'))};});const _0xd82c00=()=>!0x1;for(const _0x4decc7 of[_0x373f('0x9a'),'tablePasteColumn',_0x373f('0x3'),'tablePasteCell'])_0x7be3af['_suggestionFactory']['registerCustomCallback'](_0x373f('0x52'),_0x4decc7,_0x373f('0x6a'),_0xd82c00),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x3d'),_0x4decc7,_0x373f('0x6a'),_0xd82c00),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x5'),_0x4decc7,_0x373f('0x6a'),_0xd82c00);_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')]('formatBlock','tablePasteCell',_0x373f('0x5c'),_0xd82c00),_0x7be3af['_suggestionFactory'][_0x373f('0x9e')]('formatBlock',_0x373f('0x30'),_0x373f('0x97'),(_0x5547ce,_0x4ff409,_0x3076cd)=>{const _0x277b7e=_0x5547ce[_0x373f('0xd')](_0x5197b8=>_0x5197b8[_0x373f('0x6f')]())[_0x373f('0x6e')](_0x112d65=>_0x112d65),_0x2ee9af=new Map(_0x277b7e[_0x373f('0xd')](_0x13a628=>[_0x13a628,null]));if(_0x5d549c)for(const {element:_0x375be4,attributes:_0x24c83f}of _0x5d549c[_0x373f('0x6c')])_0x24c83f&&_0x2ee9af['set'](_0x375be4,_0x24c83f);else{if(_0x3076cd&&_0x3076cd[_0x373f('0x8a')])for(const [_0x2c869e,_0x16d552]of Object['entries'](_0x3076cd[_0x373f('0x8a')])){const _0x3e2e8b=_0xb0b07[_0x373f('0x4f')][_0x373f('0x18')]['get'](_0x2c869e),_0x3732ed=_0x3e2e8b?_0x3e2e8b['getRange']()[_0x373f('0x6f')]():null;_0x3732ed&&_0x2ee9af['set'](_0x3732ed,_0x16d552);}}_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](_0x29ff1a=>{for(const [_0x40e726,_0x22d134]of _0x2ee9af)_0x29ff1a['setAttributes']({...ae,..._0x22d134},_0x40e726);});});const _0x3af0e1=(_0x5ed349,_0x41d0c9)=>{_0x7be3af[_0x373f('0x12')]['registerCustomCallback'](_0x5ed349,_0x373f('0x9a'),_0x41d0c9,(_0xf1e29e,_0x26e56b,_0x30aabd)=>{_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](_0x46681d=>{const _0x3ca1b5=[];for(const _0x55c7a5 of _0xf1e29e){const _0x16958f=_0x55c7a5['start']['nodeAfter'];_0x16958f['is']('element',_0x373f('0x83'))&&_0x3ca1b5['push'](_0x16958f);}_0x7be3af[_0x373f('0x12')]['getSuggestionCallback'](_0x5ed349,null,_0x41d0c9)(_0xf1e29e,_0x26e56b,_0x30aabd);for(const _0x4a0a3e of _0x3ca1b5)_0x373f('0x77')!=_0x4a0a3e['root']['rootName']&&_0x46681d[_0x373f('0x8c')](_0x4a0a3e);});});};_0x3af0e1('insertion',_0x373f('0x97')),_0x3af0e1(_0x373f('0x52'),_0x373f('0x5c')),_0x3af0e1(_0x373f('0x3d'),_0x373f('0x97')),_0x3af0e1(_0x373f('0x3d'),_0x373f('0x5c')),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x52'),_0x373f('0x3'),'discard',_0x998953=>{const _0x91512e=_0x998953['map'](_0xf5ce57=>_0xf5ce57[_0x373f('0x6f')]()),_0x4309ab=_0x91512e[0x0][_0x373f('0x8')](_0x373f('0x39')),{minRow:_0x292d54,maxRow:_0x17b4b0}=_0x54f627[_0x373f('0x55')](_0x91512e);_0x595255[_0x373f('0x3c')](_0x4309ab,{'at':_0x292d54,'rows':_0x17b4b0-_0x292d54+0x1});}),_0x7be3af['_suggestionFactory'][_0x373f('0x9e')]('insertion',_0x373f('0x91'),_0x373f('0x5c'),_0x31baf8=>{const _0x33d2a9=_0x31baf8[_0x373f('0xd')](_0x269430=>_0x269430[_0x373f('0x6f')]()),_0x9aceb5=_0x33d2a9[0x0]['findAncestor'](_0x373f('0x39')),{minColumn:_0x265719,maxColumn:_0x10d7a3}=_0x54f627[_0x373f('0x55')](_0x33d2a9);_0x595255[_0x373f('0x56')](_0x9aceb5,{'at':_0x265719,'columns':_0x10d7a3-_0x265719+0x1});});const _0xbc0bf9=(_0x1e8714,_0x113327)=>{if(!_0x113327[_0x373f('0x1c')]||!_0x113327[_0x373f('0x1c')][_0x373f('0x53')](_0x373f('0x9a')))return;const _0x895f52=_0x113327[_0x373f('0x8f')][_0x373f('0x8b')],_0x53f4fc=_0x7be3af[_0x373f('0x2f')]()[_0x373f('0x6e')](_0x59b6f0=>_0x59b6f0[_0x373f('0x84')]&&_0x59b6f0['attributes']&&_0x59b6f0[_0x373f('0x8f')][_0x373f('0x8b')]==_0x895f52);_0x53f4fc[_0x373f('0x2c')]&&_0x113327[_0x373f('0x1b')]()[_0x373f('0x2c')]!=_0x53f4fc[_0x373f('0x2c')]&&_0x53f4fc[_0x373f('0x69')]((_0x58415d,_0x1472eb)=>(_0x58415d[_0x373f('0x61')]=_0x1472eb,_0x1472eb['previous']=_0x58415d,_0x1472eb));};function _0x6b9c65(_0x4ed7e0,_0xfc4f5=!0x0){const {id:_0x49615c}=_0x7be3af[_0x373f('0x59')](_0x4ed7e0[_0x373f('0x32')]),_0x2c8f98=['ck-suggestion-marker',_0x373f('0xa')],_0x50fe7c=_0x7be3af[_0x373f('0x45')]['includes'](_0x4ed7e0[_0x373f('0x32')]);return _0x50fe7c&&_0x2c8f98[_0x373f('0x13')](_0x373f('0x7d')),{'classes':_0x2c8f98,'attributes':{'data-suggestion':_0x49615c},'priority':_0x50fe7c&&_0xfc4f5?0xbc2:0xbb8};}_0x7be3af['on'](_0x373f('0x82'),_0xbc0bf9,{'priority':_0x373f('0x8e')}),_0x7be3af['on'](_0x373f('0x24'),_0xbc0bf9,{'priority':'high'}),_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x11')](()=>{let _0xed4e20=!0x1;const _0x5ec9ef=Array[_0x373f('0x19')](_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x20')]());for(const {name:_0x4dd123,data:_0x3c2bc5}of _0x5ec9ef){const {group:_0x5408ed,type:_0x4e9b41,id:_0x56b5d2}=_0x7be3af[_0x373f('0x59')](_0x4dd123);if('suggestion'!=_0x5408ed||'deletion'!=_0x4e9b41||_0x3c2bc5[_0x373f('0x78')])continue;if(!_0x7be3af[_0x373f('0x4a')](_0x56b5d2))continue;const _0x4feea7=_0x7be3af[_0x373f('0x26')](_0x56b5d2)[_0x373f('0x6d')](),_0x1f782c=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('Users')['me'];for(const _0x14612d of _0x7be3af['getSuggestions']()){if(!_0x14612d[_0x373f('0x84')]||_0x14612d[_0x373f('0xa0')]!=_0x1f782c)continue;if(_0x373f('0x5')!=_0x14612d[_0x373f('0x40')]||_0x373f('0x30')!=_0x14612d[_0x373f('0x1c')])continue;if(_0x14612d[_0x373f('0x6d')]()[_0x373f('0x3a')](_0x35d35b=>_0x4feea7[_0x373f('0x47')](_0xf95373=>_0xf95373[_0x373f('0x7e')](_0x35d35b,!0x0))))for(const _0x4971cf of _0x14612d[_0x373f('0x1b')]())_0x4971cf[_0x373f('0x84')]&&(_0x4971cf[_0x373f('0x5c')](),_0xed4e20=!0x0);}}return _0xed4e20;}),_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x11')](_0x2d34c0=>{const _0x1ebb33=_0xb0b07[_0x373f('0x14')][_0x373f('0x4c')](_0x373f('0x37'));if(!_0x1ebb33||!_0x1ebb33[_0x373f('0x85')][_0x373f('0x88')](_0x2d34c0[_0x373f('0x71')]))return!0x1;let _0x289d44=!0x1;const _0x2de3b4=_0xb0b07['plugins'][_0x373f('0x4c')](_0x373f('0x94'))['me'],_0x53dc2b=_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x5b')](),_0x3e467b=Array[_0x373f('0x19')](_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x20')]())[_0x373f('0x6e')](({name:_0x2cca88,data:_0x4f2247})=>{const {group:_0x48a26d,subType:_0xcf32d5,authorId:_0x47a426}=_0x7be3af[_0x373f('0x59')](_0x2cca88);return _0x373f('0x9c')==_0x48a26d&&_0x373f('0x9a')==_0xcf32d5&&_0x47a426==_0x2de3b4['id']&&!_0x4f2247[_0x373f('0x78')];});for(const _0x451268 of _0x53dc2b){if(_0x373f('0x28')!=_0x451268[_0x373f('0x40')]||_0x373f('0x83')!=_0x451268[_0x373f('0x68')]||0x1!=_0x451268['length'])continue;const _0x40f937=_0x2d34c0['createRange'](_0x451268[_0x373f('0x4b')],_0x451268[_0x373f('0x4b')][_0x373f('0x44')](0x1));if(!_0x3e467b['find'](({data:_0x40b8e9})=>_0x40b8e9[_0x373f('0x98')][_0x373f('0xb')](_0x40f937)))for(const {name:_0x2baf92,data:_0x1f90ce}of _0x3e467b)if(_0x40f937[_0x373f('0x7e')](_0x1f90ce[_0x373f('0x98')])){_0x2d34c0['updateMarker'](_0x2baf92,{'range':_0x40f937}),_0x289d44=!0x0;break;}}return _0x289d44;}),_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x11')](_0x3015e8=>{let _0xbd5528=!0x1;const _0x2dd6d6=_0xb0b07['plugins'][_0x373f('0x4c')](_0x373f('0x94'))['me'],_0x352a38=_0x7be3af['getSuggestions']()[_0x373f('0x6e')](_0x2c5d9b=>_0x2c5d9b[_0x373f('0x84')]&&_0x2c5d9b[_0x373f('0xa0')]==_0x2dd6d6),_0x125d10=new Set(),_0x3fda72=new Set();for(const _0x234d4c of _0x352a38)if(_0x373f('0x9a')==_0x234d4c[_0x373f('0x1c')])for(const _0x59de88 of _0x234d4c[_0x373f('0x90')]()){const _0x5b9154=_0x59de88[_0x373f('0x3f')]()[_0x373f('0x6f')]();if(_0x5b9154){if(_0x5b9154['is'](_0x373f('0x9'),_0x373f('0x83'))&&ce(_0x5b9154)){_0x234d4c['removeMarker'](_0x59de88[_0x373f('0x68')]),_0x125d10[_0x373f('0x65')](_0x5b9154),_0xbd5528=!0x0;const _0x2ebeee=_0x5b9154[_0x373f('0x5e')],_0x45ac8a=_0x5b9154['previousSibling'],_0x36af02=_0x2ebeee&&_0x2ebeee['is'](_0x373f('0x9'),_0x373f('0x83')),_0x561ea2=_0x45ac8a&&_0x45ac8a['is'](_0x373f('0x9'),_0x373f('0x83'));_0x36af02&&!_0x125d10[_0x373f('0x88')](_0x2ebeee)&&_0x3fda72[_0x373f('0x65')](_0x2ebeee),_0x561ea2&&!_0x125d10['has'](_0x45ac8a)&&_0x3fda72[_0x373f('0x65')](_0x45ac8a);}else _0x5b9154['is']('element','paragraph')&&_0x5b9154[_0x373f('0x4')]&&(_0x234d4c[_0x373f('0x4d')](_0x59de88[_0x373f('0x68')]),_0xbd5528=!0x0);}}else{if(_0x373f('0x30')==_0x234d4c[_0x373f('0x1c')]){if(!_0x234d4c[_0x373f('0x8f')]||!_0x234d4c[_0x373f('0x8f')][_0x373f('0x8b')])continue;const _0x24cfb5=_0x234d4c[_0x373f('0x8f')][_0x373f('0x8a')];if(_0x24cfb5&&Object[_0x373f('0x73')](_0x24cfb5)[_0x373f('0x2c')])continue;const _0xb802c3=_0x234d4c['attributes'][_0x373f('0x8b')];let _0x4d5561=!0x0,_0x2da9b7=!0x0;for(const _0x5b3461 of _0x352a38)if(_0x5b3461['subType']&&_0x5b3461[_0x373f('0x1c')][_0x373f('0x53')]('tablePaste')){if(!_0x5b3461[_0x373f('0x8f')][_0x373f('0x8b')]){_0x2da9b7=!0x1;break;}if(_0x5b3461['id']!=_0x234d4c['id']&&_0x5b3461[_0x373f('0x8f')][_0x373f('0x8b')]==_0xb802c3){_0x4d5561=!0x1;break;}}_0x2da9b7&&_0x4d5561&&(_0x234d4c[_0x373f('0x60')](),_0xbd5528=!0x0);}}for(const _0x35aaff of _0x125d10)_0x3015e8['remove'](_0x35aaff);for(const _0x31581b of _0x3fda72)_0x3015e8[_0x373f('0x8c')](_0x31581b);return _0xbd5528;}),_0xb0b07[_0x373f('0x2b')][_0x373f('0x76')]('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4441f8,_0x3ce024)=>_0x6b9c65(_0x4441f8),'converterPriority':'high'}),_0xb0b07['conversion'][_0x373f('0x76')](_0x373f('0x1e'))[_0x373f('0x2')]({'model':_0x373f('0x81'),'view':(_0x5bb9de,_0x4f1636)=>_0x4f1636[_0x373f('0x43')][_0x373f('0x89')]?_0x6b9c65(_0x5bb9de,!0x1):null,'converterPriority':_0x373f('0x8e')});const _0x270f9a=_0xb0b07['editing'][_0x373f('0x2e')];this[_0x373f('0x7f')](_0x270f9a[_0x373f('0x0')],'clipboardOutput',(_0x49e9e3,_0x55970d)=>{const _0x1d1543=[];for(const _0x308a75 of _0x270f9a[_0x373f('0x1f')](_0x55970d['content'])[_0x373f('0x50')]())_0x308a75['is'](_0x373f('0x9'),_0x373f('0x5a'))&&_0x1d1543[_0x373f('0x13')](_0x308a75);_0x270f9a[_0x373f('0x3b')](_0x155199=>{for(const _0x196bd5 of _0x1d1543)_0x155199[_0x373f('0x62')](_0x155199['createRangeIn'](_0x196bd5),_0x155199[_0x373f('0x70')](_0x196bd5)),_0x155199[_0x373f('0x79')](_0x196bd5);});});}}function ce(_0x1eeb76){if(_0x1eeb76[_0x373f('0x4')])return!0x0;const _0x21c8a8=_0x1eeb76['getChild'](0x0);return _0x21c8a8['is'](_0x373f('0x9'),'paragraph')&&_0x21c8a8[_0x373f('0x4')];}function fe(_0x1d38b3,_0x19568a={},_0x14f00f){for(const {isAnchor:_0x59b839,cellHeight:_0x3cb4af,cellWidth:_0x4adf09}of _0x14f00f[_0x373f('0x1')](_0x1d38b3,{'includeAllSlots':!0x0,..._0x19568a}))if(!_0x59b839||0x1!=_0x3cb4af||0x1!=_0x4adf09)return!0x1;return!0x0;}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tablecolumnresize
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
12
|
-
/**
|
|
13
|
-
* Provides track changes plugin integration for table column resize feature.
|
|
14
|
-
*/
|
|
15
|
-
export default class TrackChangesTableColumnResize extends Plugin {
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
afterInit(): void;
|
|
20
|
-
handleResizeTableWidthCommand(executeCommand: Function, options: {
|
|
21
|
-
table?: Element;
|
|
22
|
-
tableWidth?: string;
|
|
23
|
-
columnWidths?: string;
|
|
24
|
-
}): void;
|
|
25
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
26
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tablecolumnresize
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
12
|
+
/**
|
|
13
|
+
* Provides track changes plugin integration for table column resize feature.
|
|
14
|
+
*/
|
|
15
|
+
export default class TrackChangesTableColumnResize extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
afterInit(): void;
|
|
20
|
+
handleResizeTableWidthCommand(executeCommand: Function, options: {
|
|
21
|
+
table?: Element;
|
|
22
|
+
tableWidth?: string;
|
|
23
|
+
columnWidths?: string;
|
|
24
|
+
}): void;
|
|
25
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
26
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5692=['editor','discard','get','*Format:*\x20resize\x20table','document','TrackChangesEditing','afterInit','plugins','selection','model','TableColumnResizeEditing','resizeTableWidth','change','formatBlock','enableCommand','getTableColumnsWidths','handleResizeTableWidthCommand','columnWidths','format','resizeColumnWidths','table','commandParams','getContainedElement','resizeTable','locale','handleSuggestionDescription','has','_suggestionFactory','getSuggestionCallback','bind','tableWidth','markBlockFormat','data','getSelectedElement','Users','registerCustomCallback','accept','getSuggestions'];(function(_0x349f15,_0x5692ef){const _0x4f3ec7=function(_0x1c1b4e){while(--_0x1c1b4e){_0x349f15['push'](_0x349f15['shift']());}};_0x4f3ec7(++_0x5692ef);}(_0x5692,0x141));const _0x4f3e=function(_0x349f15,_0x5692ef){_0x349f15=_0x349f15-0x0;let _0x4f3ec7=_0x5692[_0x349f15];return _0x4f3ec7;};import{Plugin as _0x25d384}from'ckeditor5/src/core';import{getTranslation as _0x5ea381}from'../utils/common-translations';export default class yt extends _0x25d384{[_0x4f3e('0x1b')](){if(!this[_0x4f3e('0x15')][_0x4f3e('0x1c')][_0x4f3e('0x9')](_0x4f3e('0x1f')))return;const _0x5e5c39=this[_0x4f3e('0x15')][_0x4f3e('0x1c')][_0x4f3e('0x17')](_0x4f3e('0x1a'));_0x5e5c39['enableCommand'](_0x4f3e('0x20'),this[_0x4f3e('0x25')][_0x4f3e('0xc')](this)),_0x5e5c39[_0x4f3e('0x23')](_0x4f3e('0x2'),this[_0x4f3e('0x25')][_0x4f3e('0xc')](this)),_0x5e5c39['_suggestionFactory'][_0x4f3e('0x12')](_0x4f3e('0x22'),'resizeTable',_0x4f3e('0x13'),_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0xb')]('formatBlock',null,_0x4f3e('0x16'))),_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0x12')](_0x4f3e('0x22'),'resizeTable','discard',_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0xb')](_0x4f3e('0x22'),null,_0x4f3e('0x13'))),_0x5e5c39['_descriptionFactory']['registerDescriptionCallback'](this[_0x4f3e('0x8')][_0x4f3e('0xc')](this));}[_0x4f3e('0x25')](_0xbb22ed,_0x558ee6){const _0x1449d2=this[_0x4f3e('0x15')]['plugins'][_0x4f3e('0x17')](_0x4f3e('0x1a')),_0x2929b3=this['editor'][_0x4f3e('0x1c')][_0x4f3e('0x17')](_0x4f3e('0x1f')),_0x331bc4=_0x558ee6[_0x4f3e('0x3')]||this['editor'][_0x4f3e('0x1e')][_0x4f3e('0x19')][_0x4f3e('0x1d')][_0x4f3e('0x10')]();this[_0x4f3e('0x15')][_0x4f3e('0x1e')][_0x4f3e('0x21')](()=>{const _0x25a394=_0x2929b3['getColumnGroupElement'](_0x331bc4);let _0x40231c=_0x25a394?_0x2929b3[_0x4f3e('0x24')](_0x25a394):null,_0x571693=_0x331bc4['getAttribute'](_0x4f3e('0xd'))||null;const _0x157d31=_0x558ee6['tableWidth']||_0x571693,_0xdf09dc=_0x558ee6['columnWidths']||_0x40231c,_0xf40696=this[_0x4f3e('0x15')]['plugins'][_0x4f3e('0x17')](_0x4f3e('0x11'))['me'];for(const _0x4a53ac of _0x1449d2[_0x4f3e('0x14')]()){const _0x17b4e1=_0x4a53ac[_0x4f3e('0x5')]();if(_0x4f3e('0x6')===_0x4a53ac['subType']&&_0x17b4e1===_0x331bc4){_0x4a53ac['author']!==_0xf40696&&_0x4a53ac[_0x4f3e('0x16')]();const _0x8a3a70=_0x4a53ac[_0x4f3e('0xf')][_0x4f3e('0x4')];_0x571693=_0x8a3a70[0x0][_0x4f3e('0xd')],_0x40231c=_0x8a3a70[0x0][_0x4f3e('0x0')];break;}}_0xbb22ed({'table':_0x331bc4,'tableWidth':_0x157d31,'columnWidths':_0xdf09dc}),_0x1449d2[_0x4f3e('0xe')](_0x331bc4,{'commandName':_0x4f3e('0x20'),'commandParams':[{'tableWidth':_0x571693,'columnWidths':_0x40231c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4f3e('0x8')](_0x4bf065){const {data:_0x321943}=_0x4bf065;if(_0x321943&&'resizeTable'===_0x321943['formatGroupId']){const _0x5b2cea=_0x4f3e('0x18');return{'type':_0x4f3e('0x1'),'content':_0x5ea381(this['editor'][_0x4f3e('0x7')],_0x5b2cea)};}}}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tableheadings
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesTableHeadings extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
afterInit(): void;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tableheadings
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesTableHeadings extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
afterInit(): void;
|
|
22
|
+
}
|