@ckeditor/ckeditor5-track-changes 40.1.0 → 41.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -20
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +6 -6
- package/lang/translations/az.po +5 -5
- package/lang/translations/bg.po +6 -6
- package/lang/translations/bn.po +6 -6
- package/lang/translations/ca.po +6 -6
- package/lang/translations/cs.po +6 -6
- package/lang/translations/da.po +6 -6
- package/lang/translations/de.po +6 -6
- package/lang/translations/el.po +6 -6
- package/lang/translations/en-au.po +6 -6
- package/lang/translations/en.po +6 -6
- package/lang/translations/es.po +7 -7
- package/lang/translations/et.po +6 -6
- package/lang/translations/fi.po +6 -6
- package/lang/translations/fr.po +6 -6
- package/lang/translations/gl.po +37 -37
- package/lang/translations/he.po +6 -6
- package/lang/translations/hi.po +6 -6
- package/lang/translations/hr.po +6 -6
- package/lang/translations/hu.po +6 -6
- package/lang/translations/id.po +6 -6
- package/lang/translations/it.po +6 -6
- package/lang/translations/ja.po +6 -6
- package/lang/translations/ko.po +6 -6
- package/lang/translations/lt.po +6 -6
- package/lang/translations/lv.po +6 -6
- package/lang/translations/ms.po +6 -6
- package/lang/translations/nl.po +6 -6
- package/lang/translations/no.po +6 -6
- package/lang/translations/pl.po +6 -6
- package/lang/translations/pt-br.po +6 -6
- package/lang/translations/pt.po +6 -6
- package/lang/translations/ro.po +6 -6
- package/lang/translations/ru.po +6 -6
- package/lang/translations/sk.po +6 -6
- package/lang/translations/sq.po +5 -5
- package/lang/translations/sr-latn.po +25 -25
- package/lang/translations/sr.po +6 -6
- package/lang/translations/sv.po +6 -6
- package/lang/translations/th.po +6 -6
- package/lang/translations/tk.po +5 -5
- package/lang/translations/tr.po +6 -6
- package/lang/translations/tt.po +5 -5
- package/lang/translations/uk.po +6 -6
- package/lang/translations/ur.po +5 -5
- package/lang/translations/vi.po +6 -6
- package/lang/translations/zh-cn.po +6 -6
- package/lang/translations/zh.po +6 -6
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- 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
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1546=['registerElementLabel','_acceptFormatSuggestionCallbackFactory','item','getFirstRange','createPositionAt','findAncestor','registerDescriptionCallback','cell','$graveyard','isTouching','nodeBefore','_getCoordsForCells','getCellLocation','markMultiRangeInsertion','tableCell','getRowIndexes','removeTableRow','showSuggestionHighlights','_getSuggestionCoords','removeTableColumn','_suggestionFactory','data','every','enableCommand','detach','options','last','tableRow','getSuggestion','batch','createTableWalker','getChanges','model','length','includes','toLowerCase','subType','document','mapper','name','startsWith','change','getAttribute','isInContent','map','locale','refresh','selection','start','createRangeIn','table','ELEMENT_TABLE_WITH_TEXT','addClass','insertion','MAX_SAFE_INTEGER','forceValue','insertTableRowBelow','plugins','span','_tableSuggestions','createRangeOn','min','highest','getChildren','execute','setSelection','classes','colspan','isEqual','getChangedMarkers','ELEMENT_TABLE','filter','rowspan','addMarker:suggestion','$textProxy','TrackChangesEditing','toViewElement','first','getContainedElement','discard','ELEMENT_TABLE_ROW_WITH_TEXT','join','insertTableRowAbove','deletion','nodeAfter','addRange','getRanges','commands','accept','ELEMENT_TABLE_COLUMN_WITH_TEXT','suggestion','hasAttribute','*Insert:*\x20%0','position','editor','markMultiRangeDeletion','getSelectionAffectedTableCells','from','root','enqueueChange','insertTableColumnRight','ELEMENT_TABLE_COLUMN','selectTableColumn','substr','registerCustomCallback','_setupColumnsRowsFixing','get','*Remove:*\x20%0','order','max','_descriptionFactory','some','TableUtils','MIN_SAFE_INTEGER','isIntersectingWithRange','push','tablePaste','writer','insert','has','oldRange','tableColumn','rootName','minColumn','fromRange','ELEMENT_TABLE_ROW','end','getColumnIndexes','element','getItems','type'];(function(_0x395c15,_0x1546f3){const _0x5a6e5e=function(_0x250c88){while(--_0x250c88){_0x395c15['push'](_0x395c15['shift']());}};_0x5a6e5e(++_0x1546f3);}(_0x1546,0x73));const _0x5a6e=function(_0x395c15,_0x1546f3){_0x395c15=_0x395c15-0x0;let _0x5a6e5e=_0x1546[_0x395c15];return _0x5a6e5e;};import{Plugin as _0x5ef1b5}from'ckeditor5/src/core';import{LiveRange as _0x5799ae}from'ckeditor5/src/engine';import{setHighlightHandling as _0x147f43}from'ckeditor5/src/widget';import{getTranslation as _0x32edce}from'../utils/common-translations';export default class wt extends _0x5ef1b5{constructor(_0x3bbaaa){super(_0x3bbaaa),this['_tablePostFixingSubtypes']=[_0x5a6e('0x2b'),_0x5a6e('0x6')],this[_0x5a6e('0x4b')]=new Set();}['afterInit'](){const _0x7616af=this[_0x5a6e('0x6e')],_0x3d53de=_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x35')][_0x5a6e('0x3f')];if(!_0x7616af[_0x5a6e('0x49')][_0x5a6e('0x4')]('TableEditing'))return;const _0x2cd26c=_0x7616af[_0x5a6e('0x3d')],_0x16fa90=_0x7616af['plugins'][_0x5a6e('0x7a')](_0x5a6e('0x5b')),_0x58916b=_0x7616af[_0x5a6e('0x49')][_0x5a6e('0x7a')]('TableUtils');_0x16fa90[_0x5a6e('0x7e')][_0x5a6e('0x10')]('table',_0xfa81a9=>_0x32edce(_0x2cd26c,_0x5a6e('0x56'),_0xfa81a9)),this['_setupColumnsRowsFixing'](),_0x16fa90[_0x5a6e('0x27')]('insertTable'),_0x16fa90[_0x5a6e('0x27')]('selectTableRow'),_0x16fa90[_0x5a6e('0x27')](_0x5a6e('0x76'));for(const _0x1b9a5d of[_0x5a6e('0x62'),_0x5a6e('0x48')]){const _0x18e0d0=_0x7616af[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x1b9a5d);_0x16fa90['enableCommand'](_0x1b9a5d,_0x5819fb=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x571b56=>{_0x5819fb();const _0xf45e6c='above'===_0x18e0d0[_0x5a6e('0x7c')],_0x15e034=_0x58916b[_0x5a6e('0x70')](_0x3d53de),_0x196bd4=_0x58916b[_0x5a6e('0x1f')](_0x15e034),_0x18f6f8=_0xf45e6c?_0x196bd4['first']-0x1:_0x196bd4[_0x5a6e('0x2a')]+0x1,_0x5bb4f1=_0x15e034[0x0][_0x5a6e('0x15')]('table'),_0x2f1e90=_0x58916b['createTableWalker'](_0x5bb4f1,{'startRow':_0x18f6f8,'endRow':_0x18f6f8}),_0xe4f004=Array[_0x5a6e('0x71')](_0x2f1e90)[_0x5a6e('0x3c')](_0x339a87=>_0x571b56[_0x5a6e('0x4c')](_0x339a87[_0x5a6e('0x17')]));_0x16fa90[_0x5a6e('0x1d')](_0xe4f004,_0x5a6e('0x2b'));});});}for(const _0x4f336c of['insertTableColumnLeft',_0x5a6e('0x74')]){const _0x800a7c=_0x7616af['commands'][_0x5a6e('0x7a')](_0x4f336c);_0x16fa90[_0x5a6e('0x27')](_0x4f336c,_0x225d3d=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0xcbdde3=>{_0x225d3d();const _0xadb72b='left'===_0x800a7c[_0x5a6e('0x7c')],_0x3e8d94=_0x58916b[_0x5a6e('0x70')](_0x3d53de),_0x9d885c=_0x58916b[_0x5a6e('0xc')](_0x3e8d94),_0xa570ac=_0xadb72b?_0x9d885c[_0x5a6e('0x5d')]-0x1:_0x9d885c[_0x5a6e('0x2a')]+0x1,_0x3eee96=_0x3e8d94[0x0]['findAncestor'](_0x5a6e('0x42')),_0x23f1b4=_0x58916b[_0x5a6e('0x2e')](_0x3eee96,{'startRow':0x0,'column':_0xa570ac,'includeAllSlots':!0x1}),_0x4197c6=Array[_0x5a6e('0x71')](_0x23f1b4)['map'](_0x46c077=>_0xcbdde3[_0x5a6e('0x4c')](_0x46c077[_0x5a6e('0x17')]));_0x16fa90['markMultiRangeInsertion'](_0x4197c6,_0x5a6e('0x6'));});});}for(const _0x1f37c4 of[_0x5a6e('0x20'),_0x5a6e('0x23')]){const _0x299bff=_0x1f37c4[_0x5a6e('0x77')](0xb),_0x50756c=_0x299bff['toLowerCase'](),_0x4b8f58=_0x50756c[_0x5a6e('0x77')](0x0,0x3)+_0x5a6e('0x4a'),_0x4bfbba='table'+_0x299bff,_0x1fd4dd=_0x5a6e('0x4d')+_0x299bff,_0x375eaf=_0x5a6e('0x7d')+_0x299bff;_0x16fa90['enableCommand'](_0x1f37c4,()=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x59514a=>{const _0x372ae2=_0x58916b['getSelectionAffectedTableCells'](_0x3d53de),_0x499f3b=_0x372ae2[0x0][_0x5a6e('0x15')]('table');let _0x42a67a;if(_0x5a6e('0x20')==_0x1f37c4){const _0x57f9cb=_0x58916b[_0x5a6e('0x1f')](_0x372ae2);_0x42a67a={'startRow':_0x57f9cb['first'],'endRow':_0x57f9cb[_0x5a6e('0x2a')],'includeAllSlots':!0x0};}else{const _0x158544=_0x58916b['getColumnIndexes'](_0x372ae2);_0x42a67a={'startColumn':_0x158544[_0x5a6e('0x5d')],'endColumn':_0x158544[_0x5a6e('0x2a')],'includeAllSlots':!0x0};}const _0xe53e1f=_0x58916b[_0x5a6e('0x2e')](_0x499f3b,_0x42a67a),_0x3086e7=Array[_0x5a6e('0x71')](_0xe53e1f)[_0x5a6e('0x3c')](({cell:_0x332269})=>_0x332269),_0x5d5cc5=se(_0x3086e7[_0x5a6e('0x57')](_0x208677=>_0x208677['hasAttribute'](_0x4b8f58))),_0x172fe9=se(_0x3086e7[_0x5a6e('0x57')](_0x594180=>!_0x594180[_0x5a6e('0x6b')](_0x4b8f58)))['map'](_0x2aa56c=>_0x59514a[_0x5a6e('0x4c')](_0x2aa56c)),_0x1356b4=_0x16fa90[_0x5a6e('0x6f')](_0x172fe9,_0x4bfbba);if(_0x1356b4&&(_0x5a6e('0x2b')==_0x1356b4[_0x5a6e('0x34')]||'tableColumn'==_0x1356b4[_0x5a6e('0x34')])){const _0x14f44c=this['_getSuggestionCoords'](_0x1356b4);for(const _0x2ed263 of _0x5d5cc5){const _0x22f2e4=_0x59514a[_0x5a6e('0x4c')](_0x2ed263),_0xb06df=_0x58916b[_0x5a6e('0x1c')](_0x2ed263),_0x3d9801=_0x2ed263[_0x5a6e('0x3a')](_0x4b8f58)-0x1,_0x3624cc=_0x14f44c[_0x1fd4dd],_0xb8265=_0x14f44c[_0x375eaf];_0x3624cc<=_0xb06df[_0x50756c]&&_0xb06df[_0x50756c]+_0x3d9801<=_0xb8265&&_0x1356b4['addRange'](_0x22f2e4);}}});});}function _0x22cbdc(_0x58d49c){const _0x1a119d=Array['from'](_0x3d53de[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x5ab449=>_0x5799ae[_0x5a6e('0x9')](_0x5ab449));_0x7616af['model']['change'](_0x2563c6=>{const _0x5baf7b=_0x2563c6[_0x5a6e('0x2d')];_0x58d49c=_0x58d49c[_0x5a6e('0x57')](_0x413000=>'$graveyard'!=_0x413000[_0x5a6e('0x72')][_0x5a6e('0x7')]),_0x2563c6[_0x5a6e('0x51')](_0x58d49c),_0x7616af[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x5a6e('0x20'))[_0x5a6e('0x3e')](),_0x7616af[_0x5a6e('0x50')](_0x5a6e('0x20'),{'forceDefaultExecution':!0x0}),_0x7616af['model'][_0x5a6e('0x73')](()=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x73')](_0x5baf7b,_0x545c7c=>{const _0x2d694a=_0x1a119d['filter'](_0x3d0a4e=>_0x5a6e('0x18')!=_0x3d0a4e[_0x5a6e('0x72')][_0x5a6e('0x7')]);_0x2d694a[_0x5a6e('0x31')]>0x0&&_0x545c7c[_0x5a6e('0x51')](_0x2d694a);for(const _0x2f3bd0 of _0x1a119d)_0x2f3bd0[_0x5a6e('0x28')]();});});});}function _0x371608(_0x236019){_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x3b7f3e=>{const _0x26301c=Array[_0x5a6e('0x71')](_0x3d53de[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x53500f=>_0x5799ae[_0x5a6e('0x9')](_0x53500f)),_0x2b3bd9=[];for(const _0x4bb886 of _0x236019)for(const _0x5deaca of _0x4bb886['getItems']({'shallow':!0x0}))_0x2b3bd9[_0x5a6e('0x0')](_0x5deaca);for(const _0x2a97fb of _0x2b3bd9)_0x5a6e('0x18')!=_0x2a97fb['root'][_0x5a6e('0x7')]&&(_0x3b7f3e['setSelection'](_0x3b7f3e[_0x5a6e('0x14')](_0x2a97fb,0x0)),_0x7616af['commands']['get'](_0x5a6e('0x23'))['refresh'](),_0x7616af['execute'](_0x5a6e('0x23'),{'forceDefaultExecution':!0x0}));const _0x4dc47b=_0x26301c['filter'](_0x449ae5=>_0x5a6e('0x18')!=_0x449ae5[_0x5a6e('0x72')]['rootName']);_0x4dc47b[_0x5a6e('0x31')]>0x0&&_0x3b7f3e[_0x5a6e('0x51')](_0x4dc47b);for(const _0x3c800b of _0x26301c)_0x3c800b[_0x5a6e('0x28')]();});}function _0xc6caaf(_0x11b181,_0x45e121){return _0x45e121[_0x5a6e('0x26')](_0x2f2c72=>_0x11b181[_0x5a6e('0x7f')](_0x3c350b=>_0x3c350b[_0x5a6e('0xb')]['isEqual'](_0x2f2c72['start'])||_0x2f2c72[_0x5a6e('0xb')][_0x5a6e('0x54')](_0x3c350b['start'])));}function _0x42f146(_0x299b2e,_0x1a8251){return _0x299b2e[_0x5a6e('0x7f')](_0x312c62=>_0x1a8251[_0x5a6e('0x7f')](_0xa0d8ab=>_0x312c62[_0x5a6e('0xb')][_0x5a6e('0x19')](_0xa0d8ab[_0x5a6e('0x40')])));}_0x7616af['data']['downcastDispatcher']['on'](_0x5a6e('0x59'),(_0x11fece,_0x4ce57c,_0x41ea71)=>{if(!_0x41ea71[_0x5a6e('0x29')][_0x5a6e('0x21')])return;const _0x155644=_0x4ce57c[_0x5a6e('0x12')];if(!_0x155644)return;const _0x3820b5=_0x41ea71[_0x5a6e('0x36')][_0x5a6e('0x5c')](_0x155644);function _0x3db917(_0x5b9aa3){return Array['isArray'](_0x5b9aa3)?_0x5b9aa3:[_0x5b9aa3];}_0x3820b5&&_0x5a6e('0x1e')===_0x155644[_0x5a6e('0x37')]&&_0x147f43(_0x3820b5,_0x41ea71[_0x5a6e('0x2')],(_0x28ce5a,_0x199808,_0x56c4df)=>_0x56c4df[_0x5a6e('0x44')](_0x3db917(_0x199808[_0x5a6e('0x52')]),_0x28ce5a),(_0x58c216,_0x290e56,_0x423c89)=>_0x423c89['removeClass'](_0x3db917(_0x290e56[_0x5a6e('0x52')]),_0x58c216));},{'priority':_0x5a6e('0x4e')}),_0x16fa90[_0x5a6e('0x7e')][_0x5a6e('0x16')](_0x17d750=>{if('insertion'!=_0x17d750[_0x5a6e('0xf')]&&'deletion'!=_0x17d750[_0x5a6e('0xf')])return;const _0x30979d=_0x17d750[_0x5a6e('0x5e')]();if(null!=_0x30979d&&_0x30979d['is'](_0x5a6e('0xd'),_0x5a6e('0x42'))){if(_0x5a6e('0x45')==_0x17d750[_0x5a6e('0xf')]){const _0x18bdfc=_0x17d750['getItems']()[_0x5a6e('0x57')](_0x916e46=>_0x916e46['is'](_0x5a6e('0x5a')))['map'](_0xfe057a=>_0xfe057a['data']);if(_0x18bdfc['length'])return{'type':'insertion','content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0x43'),'\x22'+_0x18bdfc[_0x5a6e('0x61')]('\x20')+'\x22'))};}if(_0x5a6e('0x63')==_0x17d750['type']){const _0x59b32e=_0x17d750[_0x5a6e('0xe')]()[_0x5a6e('0x57')](_0x139352=>_0x139352['is'](_0x5a6e('0x5a')))[_0x5a6e('0x3c')](_0x390a90=>_0x390a90[_0x5a6e('0x25')]);if(_0x59b32e['length'])return{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x43'),'\x22'+_0x59b32e[_0x5a6e('0x61')]('\x20')+'\x22'))};}}}),_0x16fa90[_0x5a6e('0x7e')]['registerDescriptionCallback'](_0xf0280c=>{if(_0x5a6e('0x2b')==_0xf0280c[_0x5a6e('0x34')]){const _0x2b129d=_0xf0280c[_0x5a6e('0xe')]()['filter'](_0x207db2=>_0x207db2['is']('$textProxy'))['map'](_0x2bd87d=>_0x2bd87d[_0x5a6e('0x25')]),_0x47474a=this[_0x5a6e('0x22')](_0xf0280c),_0x5c1566=_0x47474a['maxRow']-_0x47474a['minRow']+0x1;if(_0x5a6e('0x45')==_0xf0280c[_0x5a6e('0xf')])return _0x2b129d[_0x5a6e('0x31')]?{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0x60'),[_0x5c1566,'\x22'+_0x2b129d[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0xa'),_0x5c1566))};if(_0x5a6e('0x63')==_0xf0280c[_0x5a6e('0xf')])return _0x2b129d[_0x5a6e('0x31')]?{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,'*Remove:*\x20%0',_0x32edce(_0x2cd26c,_0x5a6e('0x60'),[_0x5c1566,'\x22'+_0x2b129d['join']('\x20')+'\x22']))}:{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0xa'),_0x5c1566))};}if(_0x5a6e('0x6')==_0xf0280c[_0x5a6e('0x34')]){const _0x2b4be2=_0xf0280c[_0x5a6e('0xe')]()[_0x5a6e('0x57')](_0xf32a45=>_0xf32a45['is'](_0x5a6e('0x5a')))[_0x5a6e('0x3c')](_0x418a94=>_0x418a94['data']),_0xa8aef0=this['_getSuggestionCoords'](_0xf0280c),_0x48604e=_0xa8aef0['maxColumn']-_0xa8aef0[_0x5a6e('0x8')]+0x1;if('insertion'==_0xf0280c[_0x5a6e('0xf')])return _0x2b4be2[_0x5a6e('0x31')]?{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,'*Insert:*\x20%0',_0x32edce(_0x2cd26c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48604e,'\x22'+_0x2b4be2[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,'*Insert:*\x20%0',_0x32edce(_0x2cd26c,_0x5a6e('0x75'),_0x48604e))};if('deletion'==_0xf0280c['type'])return _0x2b4be2[_0x5a6e('0x31')]?{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x69'),[_0x48604e,'\x22'+_0x2b4be2[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x75'),_0x48604e))};}}),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x2b'),'discard',_0x22cbdc),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')]('deletion','tableRow','accept',_0x22cbdc),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x6'),_0x5a6e('0x5f'),_0x371608),_0x16fa90[_0x5a6e('0x24')]['registerCustomCallback']('deletion',_0x5a6e('0x6'),_0x5a6e('0x68'),_0x371608),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x6'),_0x5a6e('0x61'),_0xc6caaf),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x63'),_0x5a6e('0x6'),_0x5a6e('0x61'),_0xc6caaf),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),'tableRow',_0x5a6e('0x61'),_0x42f146),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x63'),_0x5a6e('0x2b'),_0x5a6e('0x61'),_0x42f146);}[_0x5a6e('0x11')](){const _0xdf5495=this['editor'],_0x3289e4=_0xdf5495['model']['document'][_0x5a6e('0x3f')];return(_0x4224a0,_0xc17a33)=>{_0xdf5495[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x1b8b83=>{const {commandName:_0x384a29,commandParams:_0x5d71c6}=_0xc17a33;let _0x3525f2=_0x4224a0[0x0]['end'][_0x5a6e('0x1a')];_0x5d71c6&&_0x5d71c6[0x0]&&!0x1===_0x5d71c6[0x0][_0x5a6e('0x47')]&&(_0x3525f2=_0x4224a0[0x0]['start']['nodeAfter']);const _0x4bea4b=_0x1b8b83[_0x5a6e('0x41')](_0x3525f2);if(_0x5a6e('0x18')==_0x4bea4b[_0x5a6e('0x72')][_0x5a6e('0x7')])return;const _0x3ac3cb=Array[_0x5a6e('0x71')](_0x3289e4[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x35488d=>_0x5799ae[_0x5a6e('0x9')](_0x35488d));_0x1b8b83[_0x5a6e('0x51')](_0x4bea4b),_0xdf5495[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x384a29)[_0x5a6e('0x3e')](),_0x5d71c6[_0x5a6e('0x0')]({'forceDefaultExecution':!0x0}),_0xdf5495[_0x5a6e('0x50')](_0x384a29,..._0x5d71c6);const _0x362d6d=_0x3ac3cb['filter'](_0x474970=>_0x5a6e('0x18')!=_0x474970[_0x5a6e('0x72')][_0x5a6e('0x7')]);_0x362d6d[_0x5a6e('0x31')]>0x0&&_0x1b8b83[_0x5a6e('0x51')](_0x362d6d);for(const _0x242446 of _0x3ac3cb)_0x242446['detach']();});};}['_getCoordsForCells'](_0x48717b){const _0x572df2=this[_0x5a6e('0x6e')][_0x5a6e('0x49')][_0x5a6e('0x7a')](_0x5a6e('0x80'));let _0x59181f=Number[_0x5a6e('0x46')],_0x4e4727=Number[_0x5a6e('0x81')],_0x246866=Number[_0x5a6e('0x46')],_0x385b7b=Number[_0x5a6e('0x81')];for(const _0x47aa12 of _0x48717b){if(_0x5a6e('0x18')==_0x47aa12[_0x5a6e('0x72')][_0x5a6e('0x7')])continue;const {row:_0x4c4145,column:_0xa1d486}=_0x572df2[_0x5a6e('0x1c')](_0x47aa12),_0x986b6a=_0x47aa12['hasAttribute'](_0x5a6e('0x58'))?_0x47aa12[_0x5a6e('0x3a')](_0x5a6e('0x58'))-0x1:0x0,_0x563981=_0x47aa12[_0x5a6e('0x6b')]('colspan')?_0x47aa12[_0x5a6e('0x3a')](_0x5a6e('0x53'))-0x1:0x0;_0x59181f=_0x4c4145<_0x59181f?_0x4c4145:_0x59181f,_0x4e4727=_0x4c4145+_0x986b6a>_0x4e4727?_0x4c4145+_0x986b6a:_0x4e4727,_0x246866=_0xa1d486<_0x246866?_0xa1d486:_0x246866,_0x385b7b=_0xa1d486+_0x563981>_0x385b7b?_0xa1d486+_0x563981:_0x385b7b;}return{'minRow':_0x59181f,'maxRow':_0x4e4727,'minColumn':_0x246866,'maxColumn':_0x385b7b};}[_0x5a6e('0x79')](){const _0x4f6e0f=this['editor'],_0x1dde68=_0x4f6e0f['plugins'][_0x5a6e('0x7a')](_0x5a6e('0x5b')),_0x4aead3=_0x4f6e0f[_0x5a6e('0x49')][_0x5a6e('0x7a')]('TableUtils');_0x4f6e0f['model'][_0x5a6e('0x35')]['on']('change:data',()=>{const _0x1e19a4=Array[_0x5a6e('0x71')](_0x4f6e0f[_0x5a6e('0x30')][_0x5a6e('0x35')]['differ'][_0x5a6e('0x55')]());for(const {name:_0x3bacc5,data:_0x2546f4}of _0x1e19a4){const {group:_0x14d177,id:_0x48c15c,subType:_0x2104e1}=_0x1dde68['_splitMarkerName'](_0x3bacc5);if(_0x5a6e('0x6a')!=_0x14d177)continue;if(null!=_0x2546f4[_0x5a6e('0x5')])continue;const _0x47243b=_0x1dde68[_0x5a6e('0x2c')](_0x48c15c);this['_tablePostFixingSubtypes'][_0x5a6e('0x32')](_0x2104e1)&&this[_0x5a6e('0x4b')]['add'](_0x47243b);}},{'priority':'low'});const _0x1612db=(_0x407103,_0x1d4196)=>{let _0x44c7ac=!0x1;const _0x4a2e3a=_0x1d4196['createRangeOn'](_0x407103),_0x55cc7d=_0x407103[_0x5a6e('0x15')]('table'),_0x4f7bf6=_0x4aead3[_0x5a6e('0x1c')](_0x407103);for(const _0x19f192 of this[_0x5a6e('0x4b')]){const _0x585a27=_0x19f192['subType'],_0x366e4a=_0x585a27[_0x5a6e('0x38')](_0x5a6e('0x1')),_0x4996bf=_0x585a27[_0x5a6e('0x77')](_0x366e4a?0xa:0x5),_0x215755=_0x4996bf[_0x5a6e('0x33')](),_0x189e4b=_0x215755[_0x5a6e('0x77')](0x0,0x3)+_0x5a6e('0x4a'),_0xc4678c=_0x5a6e('0x4d')+_0x4996bf,_0x4ea4a0=_0x5a6e('0x7d')+_0x4996bf;if(!_0x19f192[_0x5a6e('0x3b')])continue;if(_0x55cc7d!=_0x19f192[_0x5a6e('0x13')]()[_0x5a6e('0x40')][_0x5a6e('0x15')](_0x5a6e('0x42')))continue;if(_0x19f192[_0x5a6e('0x82')](_0x4a2e3a))continue;const _0x929f06=_0x407103[_0x5a6e('0x6b')](_0x189e4b)?_0x407103['getAttribute'](_0x189e4b)-0x1:0x0,_0x3c7a59=this[_0x5a6e('0x22')](_0x19f192),_0x5b2bab=_0x3c7a59[_0xc4678c],_0x76fac0=_0x3c7a59[_0x4ea4a0];_0x5b2bab<=_0x4f7bf6[_0x215755]&&_0x4f7bf6[_0x215755]+_0x929f06<=_0x76fac0&&(_0x19f192[_0x5a6e('0x65')](_0x4a2e3a),_0x44c7ac=!0x0);}return _0x44c7ac;};_0x4f6e0f[_0x5a6e('0x30')]['document']['registerPostFixer'](_0x20062b=>{let _0xe0c7ea=!0x1;for(const _0x2526dd of _0x4f6e0f[_0x5a6e('0x30')][_0x5a6e('0x35')]['differ'][_0x5a6e('0x2f')]())if(_0x5a6e('0x3')==_0x2526dd[_0x5a6e('0xf')]){if(_0x5a6e('0x2b')==_0x2526dd[_0x5a6e('0x37')])for(const _0x2ae12c of _0x2526dd[_0x5a6e('0x6d')][_0x5a6e('0x64')][_0x5a6e('0x4f')]())_0xe0c7ea=_0xe0c7ea||_0x1612db(_0x2ae12c,_0x20062b);else'tableCell'==_0x2526dd[_0x5a6e('0x37')]&&(_0xe0c7ea=_0xe0c7ea||_0x1612db(_0x2526dd[_0x5a6e('0x6d')][_0x5a6e('0x64')],_0x20062b));}return _0xe0c7ea;});}['_getSuggestionCoords'](_0x543ad2){return this[_0x5a6e('0x1b')](_0x543ad2['getRanges']()[_0x5a6e('0x3c')](_0x4c6a22=>_0x4c6a22[_0x5a6e('0x40')][_0x5a6e('0x64')]));}}function se(_0x385987){return Array[_0x5a6e('0x71')](new Set(_0x385987)['values']());}
|
|
23
|
+
const _0x4e22=['getRanges','insertTableColumnLeft','highest','options','push','includes','registerCustomCallback','afterInit','accept','item','registerDescriptionCallback','differ','MIN_SAFE_INTEGER','rowspan','values','order','model','selectTableColumn','has','startsWith','_suggestionFactory','createRangeIn','getSelectionAffectedTableCells','insertion','tableRow','deletion','nodeBefore','isEqual','TrackChangesEditing','last','getContainedElement','span','markMultiRangeInsertion','low','findAncestor','showSuggestionHighlights','$textProxy','some','end','name','enableCommand','join','tableCell','maxColumn','from','type','refresh','above','left','removeTableColumn','registerElementLabel','commands','execute','table','_splitMarkerName','max','discard','ELEMENT_TABLE_WITH_TEXT','getColumnIndexes','plugins','_getSuggestionCoords','getRowIndexes','TableUtils','ELEMENT_TABLE_COLUMN_WITH_TEXT','cell','getChanges','setSelection','root','getItems','hasAttribute','createRangeOn','min','nodeAfter','get','getFirstRange','_tableSuggestions','isArray','tableColumn','MAX_SAFE_INTEGER','locale','insertTableRowAbove','filter','getSuggestion','getChangedMarkers','forceValue','fromRange','length','classes','createTableWalker','selectTableRow','every','ELEMENT_TABLE_COLUMN','getChildren','_descriptionFactory','insertTable','start','rootName','isTouching','data','batch','substr','*Insert:*\x20%0','_acceptFormatSuggestionCallbackFactory','registerPostFixer','first','enqueueChange','ELEMENT_TABLE_ROW','getCellLocation','_getCoordsForCells','ELEMENT_TABLE_ROW_WITH_TEXT','removeTableRow','position','insertTableRowBelow','*Remove:*\x20%0','addRange','toLowerCase','oldRange','detach','document','map','$graveyard','downcastDispatcher','subType','_setupColumnsRowsFixing','getAttribute','editor','change','_tablePostFixingSubtypes','createPositionAt'];(function(_0x5db996,_0x4e22cf){const _0x227c07=function(_0x2faedd){while(--_0x2faedd){_0x5db996['push'](_0x5db996['shift']());}};_0x227c07(++_0x4e22cf);}(_0x4e22,0x1ee));const _0x227c=function(_0x5db996,_0x4e22cf){_0x5db996=_0x5db996-0x0;let _0x227c07=_0x4e22[_0x5db996];return _0x227c07;};import{Plugin as _0x2910c4}from'ckeditor5/src/core.js';import{LiveRange as _0x50bd69}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x23cc4f}from'ckeditor5/src/widget.js';import{getTranslation as _0x17a8b7}from'../utils/common-translations.js';export default class yt extends _0x2910c4{constructor(_0x257b68){super(_0x257b68),this[_0x227c('0x14')]=[_0x227c('0x2e'),_0x227c('0x63')],this[_0x227c('0x61')]=new Set();}[_0x227c('0x1d')](){const _0x55109d=this[_0x227c('0x12')],_0x3dbdd2=_0x55109d[_0x227c('0x26')][_0x227c('0xb')]['selection'];if(!_0x55109d[_0x227c('0x51')][_0x227c('0x28')]('TableEditing'))return;const _0x2aa1f4=_0x55109d[_0x227c('0x65')],_0x37c135=_0x55109d[_0x227c('0x51')]['get'](_0x227c('0x32')),_0x89d45b=_0x55109d['plugins']['get'](_0x227c('0x54'));_0x37c135['_descriptionFactory'][_0x227c('0x48')]('table',_0xa79b79=>_0x17a8b7(_0x2aa1f4,'ELEMENT_TABLE',_0xa79b79)),this['_setupColumnsRowsFixing'](),_0x37c135[_0x227c('0x3e')](_0x227c('0x74')),_0x37c135[_0x227c('0x3e')](_0x227c('0x6f')),_0x37c135[_0x227c('0x3e')](_0x227c('0x27'));for(const _0x17e0d1 of[_0x227c('0x66'),_0x227c('0x5')]){const _0x5a78d3=_0x55109d[_0x227c('0x49')][_0x227c('0x5f')](_0x17e0d1);_0x37c135[_0x227c('0x3e')](_0x17e0d1,_0x20cd29=>{_0x55109d['model'][_0x227c('0x13')](_0x536c6f=>{_0x20cd29();const _0x38df40=_0x227c('0x45')===_0x5a78d3[_0x227c('0x25')],_0xcc5158=_0x89d45b[_0x227c('0x2c')](_0x3dbdd2),_0x801456=_0x89d45b[_0x227c('0x53')](_0xcc5158),_0x36d8ca=_0x38df40?_0x801456['first']-0x1:_0x801456[_0x227c('0x33')]+0x1,_0xcd800f=_0xcc5158[0x0][_0x227c('0x38')](_0x227c('0x4b')),_0x2009d2=_0x89d45b['createTableWalker'](_0xcd800f,{'startRow':_0x36d8ca,'endRow':_0x36d8ca}),_0x273271=Array[_0x227c('0x42')](_0x2009d2)[_0x227c('0xc')](_0x5ca243=>_0x536c6f[_0x227c('0x5c')](_0x5ca243[_0x227c('0x56')]));_0x37c135[_0x227c('0x36')](_0x273271,_0x227c('0x2e'));});});}for(const _0x4c4fc1 of[_0x227c('0x17'),'insertTableColumnRight']){const _0x75049c=_0x55109d[_0x227c('0x49')][_0x227c('0x5f')](_0x4c4fc1);_0x37c135[_0x227c('0x3e')](_0x4c4fc1,_0x56b7ce=>{_0x55109d['model'][_0x227c('0x13')](_0x19bc39=>{_0x56b7ce();const _0x477102=_0x227c('0x46')===_0x75049c[_0x227c('0x25')],_0x321151=_0x89d45b['getSelectionAffectedTableCells'](_0x3dbdd2),_0x3db85e=_0x89d45b['getColumnIndexes'](_0x321151),_0x48a79a=_0x477102?_0x3db85e['first']-0x1:_0x3db85e[_0x227c('0x33')]+0x1,_0x290566=_0x321151[0x0][_0x227c('0x38')](_0x227c('0x4b')),_0x12535a=_0x89d45b[_0x227c('0x6e')](_0x290566,{'startRow':0x0,'column':_0x48a79a,'includeAllSlots':!0x1}),_0x5c05da=Array[_0x227c('0x42')](_0x12535a)[_0x227c('0xc')](_0x3f0d6b=>_0x19bc39['createRangeOn'](_0x3f0d6b[_0x227c('0x56')]));_0x37c135[_0x227c('0x36')](_0x5c05da,'tableColumn');});});}for(const _0x67ec23 of[_0x227c('0x3'),'removeTableColumn']){const _0x42eb97=_0x67ec23[_0x227c('0x7a')](0xb),_0x14ac9c=_0x42eb97[_0x227c('0x8')](),_0x35dc2e=_0x14ac9c[_0x227c('0x7a')](0x0,0x3)+'span',_0x3a4a51=_0x227c('0x4b')+_0x42eb97,_0x35c600=_0x227c('0x5d')+_0x42eb97,_0x4a2761='max'+_0x42eb97;_0x37c135[_0x227c('0x3e')](_0x67ec23,()=>{_0x55109d[_0x227c('0x26')]['change'](_0x5c7e64=>{const _0x4dd885=_0x89d45b[_0x227c('0x2c')](_0x3dbdd2),_0x2921d5=_0x4dd885[0x0]['findAncestor']('table');let _0xb6ab0;if(_0x227c('0x3')==_0x67ec23){const _0x11f100=_0x89d45b[_0x227c('0x53')](_0x4dd885);_0xb6ab0={'startRow':_0x11f100[_0x227c('0x7e')],'endRow':_0x11f100[_0x227c('0x33')],'includeAllSlots':!0x0};}else{const _0xfc236=_0x89d45b[_0x227c('0x50')](_0x4dd885);_0xb6ab0={'startColumn':_0xfc236[_0x227c('0x7e')],'endColumn':_0xfc236[_0x227c('0x33')],'includeAllSlots':!0x0};}const _0x9c0227=_0x89d45b[_0x227c('0x6e')](_0x2921d5,_0xb6ab0),_0x1c3724=Array[_0x227c('0x42')](_0x9c0227)['map'](({cell:_0x1d16b2})=>_0x1d16b2),_0x35a69f=ue(_0x1c3724[_0x227c('0x67')](_0x29349f=>_0x29349f['hasAttribute'](_0x35dc2e))),_0x407f41=ue(_0x1c3724[_0x227c('0x67')](_0x1449d2=>!_0x1449d2[_0x227c('0x5b')](_0x35dc2e)))[_0x227c('0xc')](_0x1c5eaf=>_0x5c7e64[_0x227c('0x5c')](_0x1c5eaf)),_0x487a53=_0x37c135['markMultiRangeDeletion'](_0x407f41,_0x3a4a51);if(_0x487a53&&(_0x227c('0x2e')==_0x487a53[_0x227c('0xf')]||'tableColumn'==_0x487a53['subType'])){const _0x1f2b78=this[_0x227c('0x52')](_0x487a53);for(const _0x3c226b of _0x35a69f){const _0x1ade71=_0x5c7e64[_0x227c('0x5c')](_0x3c226b),_0x1a5cfc=_0x89d45b[_0x227c('0x0')](_0x3c226b),_0x2b35e8=_0x3c226b[_0x227c('0x11')](_0x35dc2e)-0x1,_0x4b6b87=_0x1f2b78[_0x35c600],_0x34c896=_0x1f2b78[_0x4a2761];_0x4b6b87<=_0x1a5cfc[_0x14ac9c]&&_0x1a5cfc[_0x14ac9c]+_0x2b35e8<=_0x34c896&&_0x487a53['addRange'](_0x1ade71);}}});});}function _0x22ef98(_0x207f45){const _0x2b2b7a=Array[_0x227c('0x42')](_0x3dbdd2[_0x227c('0x16')]())[_0x227c('0xc')](_0x38088a=>_0x50bd69['fromRange'](_0x38088a));_0x55109d[_0x227c('0x26')][_0x227c('0x13')](_0x44ce1a=>{const _0x11124e=_0x44ce1a[_0x227c('0x79')];_0x207f45=_0x207f45[_0x227c('0x67')](_0x44de0e=>_0x227c('0xd')!=_0x44de0e[_0x227c('0x59')][_0x227c('0x76')]),_0x44ce1a[_0x227c('0x58')](_0x207f45),_0x55109d[_0x227c('0x49')][_0x227c('0x5f')](_0x227c('0x3'))[_0x227c('0x44')](),_0x55109d[_0x227c('0x4a')](_0x227c('0x3'),{'forceDefaultExecution':!0x0}),_0x55109d['model']['enqueueChange'](()=>{_0x55109d['model'][_0x227c('0x7f')](_0x11124e,_0x29b8b8=>{const _0x51888f=_0x2b2b7a[_0x227c('0x67')](_0x2ffed2=>'$graveyard'!=_0x2ffed2['root'][_0x227c('0x76')]);_0x51888f[_0x227c('0x6c')]>0x0&&_0x29b8b8[_0x227c('0x58')](_0x51888f);for(const _0x40f3f4 of _0x2b2b7a)_0x40f3f4['detach']();});});});}function _0x2ff7c5(_0x2cd1d9){_0x55109d[_0x227c('0x26')][_0x227c('0x13')](_0x49fff3=>{const _0x544e8d=Array['from'](_0x3dbdd2[_0x227c('0x16')]())['map'](_0x509331=>_0x50bd69[_0x227c('0x6b')](_0x509331)),_0x25f4bf=[];for(const _0xde1ef9 of _0x2cd1d9)for(const _0x4f0588 of _0xde1ef9[_0x227c('0x5a')]({'shallow':!0x0}))_0x25f4bf[_0x227c('0x1a')](_0x4f0588);for(const _0x4f48ee of _0x25f4bf)_0x227c('0xd')!=_0x4f48ee[_0x227c('0x59')]['rootName']&&(_0x49fff3[_0x227c('0x58')](_0x49fff3[_0x227c('0x15')](_0x4f48ee,0x0)),_0x55109d[_0x227c('0x49')][_0x227c('0x5f')]('removeTableColumn')[_0x227c('0x44')](),_0x55109d['execute'](_0x227c('0x47'),{'forceDefaultExecution':!0x0}));const _0x9c6f42=_0x544e8d[_0x227c('0x67')](_0x2f2cf6=>_0x227c('0xd')!=_0x2f2cf6['root'][_0x227c('0x76')]);_0x9c6f42[_0x227c('0x6c')]>0x0&&_0x49fff3[_0x227c('0x58')](_0x9c6f42);for(const _0x3f2a0b of _0x544e8d)_0x3f2a0b[_0x227c('0xa')]();});}function _0x14a68c(_0x3b352a,_0x4542bc){return _0x4542bc[_0x227c('0x70')](_0x1999c9=>_0x3b352a[_0x227c('0x3b')](_0x7149a2=>_0x7149a2[_0x227c('0x3c')][_0x227c('0x31')](_0x1999c9['start'])||_0x1999c9[_0x227c('0x3c')]['isEqual'](_0x7149a2[_0x227c('0x75')])));}function _0x547d1a(_0xd035c6,_0x407f5a){return _0xd035c6[_0x227c('0x3b')](_0xdffbf5=>_0x407f5a[_0x227c('0x3b')](_0x9a1d=>_0xdffbf5[_0x227c('0x3c')][_0x227c('0x77')](_0x9a1d[_0x227c('0x75')])));}_0x55109d[_0x227c('0x78')][_0x227c('0xe')]['on']('addMarker:suggestion',(_0x4fb011,_0x2667f9,_0x46cdc7)=>{if(!_0x46cdc7[_0x227c('0x19')][_0x227c('0x39')])return;const _0x5d902f=_0x2667f9[_0x227c('0x1f')];if(!_0x5d902f)return;const _0x298d6f=_0x46cdc7['mapper']['toViewElement'](_0x5d902f);function _0x198335(_0x3c3cf6){return Array[_0x227c('0x62')](_0x3c3cf6)?_0x3c3cf6:[_0x3c3cf6];}_0x298d6f&&_0x227c('0x40')===_0x5d902f[_0x227c('0x3d')]&&_0x23cc4f(_0x298d6f,_0x46cdc7['writer'],(_0x1a59a6,_0x4d0501,_0x25c46c)=>_0x25c46c['addClass'](_0x198335(_0x4d0501[_0x227c('0x6d')]),_0x1a59a6),(_0x396955,_0x570d71,_0x59598b)=>_0x59598b['removeClass'](_0x198335(_0x570d71[_0x227c('0x6d')]),_0x396955));},{'priority':_0x227c('0x18')}),_0x37c135[_0x227c('0x73')][_0x227c('0x20')](_0x3a0f70=>{if(_0x227c('0x2d')!=_0x3a0f70[_0x227c('0x43')]&&'deletion'!=_0x3a0f70[_0x227c('0x43')])return;const _0xbf71a=_0x3a0f70[_0x227c('0x34')]();if(null!=_0xbf71a&&_0xbf71a['is']('element',_0x227c('0x4b'))){if(_0x227c('0x2d')==_0x3a0f70[_0x227c('0x43')]){const _0x4ad1f3=_0x3a0f70[_0x227c('0x5a')]()[_0x227c('0x67')](_0x567a5b=>_0x567a5b['is'](_0x227c('0x3a')))[_0x227c('0xc')](_0x5f198a=>_0x5f198a[_0x227c('0x78')]);if(_0x4ad1f3['length'])return{'type':'insertion','content':_0x17a8b7(_0x2aa1f4,'*Insert:*\x20%0',_0x17a8b7(_0x2aa1f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ad1f3['join']('\x20')+'\x22'))};}if(_0x227c('0x2f')==_0x3a0f70['type']){const _0x508a8d=_0x3a0f70[_0x227c('0x5a')]()[_0x227c('0x67')](_0x460d23=>_0x460d23['is'](_0x227c('0x3a')))[_0x227c('0xc')](_0x16fef3=>_0x16fef3[_0x227c('0x78')]);if(_0x508a8d['length'])return{'type':'deletion','content':_0x17a8b7(_0x2aa1f4,_0x227c('0x6'),_0x17a8b7(_0x2aa1f4,_0x227c('0x4f'),'\x22'+_0x508a8d[_0x227c('0x3f')]('\x20')+'\x22'))};}}}),_0x37c135[_0x227c('0x73')][_0x227c('0x20')](_0x31c03c=>{if('tableRow'==_0x31c03c['subType']){const _0x527aab=_0x31c03c[_0x227c('0x5a')]()['filter'](_0x1de33a=>_0x1de33a['is'](_0x227c('0x3a')))['map'](_0x22f83b=>_0x22f83b[_0x227c('0x78')]),_0x27fcbc=this['_getSuggestionCoords'](_0x31c03c),_0x53e54a=_0x27fcbc['maxRow']-_0x27fcbc['minRow']+0x1;if('insertion'==_0x31c03c[_0x227c('0x43')])return _0x527aab['length']?{'type':_0x227c('0x2d'),'content':_0x17a8b7(_0x2aa1f4,_0x227c('0x7b'),_0x17a8b7(_0x2aa1f4,_0x227c('0x2'),[_0x53e54a,'\x22'+_0x527aab['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x17a8b7(_0x2aa1f4,_0x227c('0x7b'),_0x17a8b7(_0x2aa1f4,_0x227c('0x80'),_0x53e54a))};if(_0x227c('0x2f')==_0x31c03c[_0x227c('0x43')])return _0x527aab[_0x227c('0x6c')]?{'type':'deletion','content':_0x17a8b7(_0x2aa1f4,_0x227c('0x6'),_0x17a8b7(_0x2aa1f4,_0x227c('0x2'),[_0x53e54a,'\x22'+_0x527aab['join']('\x20')+'\x22']))}:{'type':_0x227c('0x2f'),'content':_0x17a8b7(_0x2aa1f4,'*Remove:*\x20%0',_0x17a8b7(_0x2aa1f4,_0x227c('0x80'),_0x53e54a))};}if('tableColumn'==_0x31c03c[_0x227c('0xf')]){const _0x223725=_0x31c03c[_0x227c('0x5a')]()[_0x227c('0x67')](_0x18e603=>_0x18e603['is'](_0x227c('0x3a')))['map'](_0x15a70b=>_0x15a70b['data']),_0x291725=this[_0x227c('0x52')](_0x31c03c),_0x2691dd=_0x291725[_0x227c('0x41')]-_0x291725['minColumn']+0x1;if(_0x227c('0x2d')==_0x31c03c[_0x227c('0x43')])return _0x223725[_0x227c('0x6c')]?{'type':_0x227c('0x2d'),'content':_0x17a8b7(_0x2aa1f4,_0x227c('0x7b'),_0x17a8b7(_0x2aa1f4,_0x227c('0x55'),[_0x2691dd,'\x22'+_0x223725['join']('\x20')+'\x22']))}:{'type':_0x227c('0x2d'),'content':_0x17a8b7(_0x2aa1f4,_0x227c('0x7b'),_0x17a8b7(_0x2aa1f4,'ELEMENT_TABLE_COLUMN',_0x2691dd))};if('deletion'==_0x31c03c[_0x227c('0x43')])return _0x223725[_0x227c('0x6c')]?{'type':_0x227c('0x2f'),'content':_0x17a8b7(_0x2aa1f4,_0x227c('0x6'),_0x17a8b7(_0x2aa1f4,_0x227c('0x55'),[_0x2691dd,'\x22'+_0x223725[_0x227c('0x3f')]('\x20')+'\x22']))}:{'type':_0x227c('0x2f'),'content':_0x17a8b7(_0x2aa1f4,_0x227c('0x6'),_0x17a8b7(_0x2aa1f4,_0x227c('0x71'),_0x2691dd))};}}),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')](_0x227c('0x2d'),'tableRow',_0x227c('0x4e'),_0x22ef98),_0x37c135['_suggestionFactory']['registerCustomCallback']('deletion','tableRow',_0x227c('0x1e'),_0x22ef98),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')](_0x227c('0x2d'),'tableColumn','discard',_0x2ff7c5),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')]('deletion',_0x227c('0x63'),_0x227c('0x1e'),_0x2ff7c5),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')](_0x227c('0x2d'),_0x227c('0x63'),_0x227c('0x3f'),_0x14a68c),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')](_0x227c('0x2f'),_0x227c('0x63'),_0x227c('0x3f'),_0x14a68c),_0x37c135[_0x227c('0x2a')]['registerCustomCallback']('insertion',_0x227c('0x2e'),'join',_0x547d1a),_0x37c135[_0x227c('0x2a')][_0x227c('0x1c')](_0x227c('0x2f'),_0x227c('0x2e'),_0x227c('0x3f'),_0x547d1a);}[_0x227c('0x7c')](){const _0x5ecd04=this[_0x227c('0x12')],_0x6d375a=_0x5ecd04['model'][_0x227c('0xb')]['selection'];return(_0x4a1401,_0x107c3f)=>{_0x5ecd04[_0x227c('0x26')]['change'](_0x590b11=>{const {commandName:_0x70dbab,commandParams:_0x467102}=_0x107c3f;let _0x1c8328=_0x4a1401[0x0][_0x227c('0x3c')][_0x227c('0x30')];_0x467102&&_0x467102[0x0]&&!0x1===_0x467102[0x0][_0x227c('0x6a')]&&(_0x1c8328=_0x4a1401[0x0][_0x227c('0x75')][_0x227c('0x5e')]);const _0x323c7d=_0x590b11[_0x227c('0x2b')](_0x1c8328);if('$graveyard'==_0x323c7d[_0x227c('0x59')]['rootName'])return;const _0x29cb2a=Array['from'](_0x6d375a[_0x227c('0x16')]())['map'](_0x1c214a=>_0x50bd69['fromRange'](_0x1c214a));_0x590b11[_0x227c('0x58')](_0x323c7d),_0x5ecd04[_0x227c('0x49')]['get'](_0x70dbab)[_0x227c('0x44')](),_0x467102['push']({'forceDefaultExecution':!0x0}),_0x5ecd04['execute'](_0x70dbab,..._0x467102);const _0x11dcf1=_0x29cb2a[_0x227c('0x67')](_0x2f42b6=>'$graveyard'!=_0x2f42b6[_0x227c('0x59')][_0x227c('0x76')]);_0x11dcf1[_0x227c('0x6c')]>0x0&&_0x590b11['setSelection'](_0x11dcf1);for(const _0xf6634b of _0x29cb2a)_0xf6634b[_0x227c('0xa')]();});};}['_getCoordsForCells'](_0x51005f){const _0x220793=this[_0x227c('0x12')][_0x227c('0x51')][_0x227c('0x5f')](_0x227c('0x54'));let _0x143f37=Number[_0x227c('0x64')],_0x3a0d8a=Number[_0x227c('0x22')],_0x1d74fe=Number[_0x227c('0x64')],_0x3cbf98=Number[_0x227c('0x22')];for(const _0x5d6c91 of _0x51005f){if(_0x227c('0xd')==_0x5d6c91['root'][_0x227c('0x76')])continue;const {row:_0x1b4ccf,column:_0x1d8c8c}=_0x220793['getCellLocation'](_0x5d6c91),_0x32a8c0=_0x5d6c91[_0x227c('0x5b')](_0x227c('0x23'))?_0x5d6c91[_0x227c('0x11')](_0x227c('0x23'))-0x1:0x0,_0x599754=_0x5d6c91['hasAttribute']('colspan')?_0x5d6c91[_0x227c('0x11')]('colspan')-0x1:0x0;_0x143f37=_0x1b4ccf<_0x143f37?_0x1b4ccf:_0x143f37,_0x3a0d8a=_0x1b4ccf+_0x32a8c0>_0x3a0d8a?_0x1b4ccf+_0x32a8c0:_0x3a0d8a,_0x1d74fe=_0x1d8c8c<_0x1d74fe?_0x1d8c8c:_0x1d74fe,_0x3cbf98=_0x1d8c8c+_0x599754>_0x3cbf98?_0x1d8c8c+_0x599754:_0x3cbf98;}return{'minRow':_0x143f37,'maxRow':_0x3a0d8a,'minColumn':_0x1d74fe,'maxColumn':_0x3cbf98};}[_0x227c('0x10')](){const _0x357a6a=this[_0x227c('0x12')],_0x253f4e=_0x357a6a[_0x227c('0x51')][_0x227c('0x5f')](_0x227c('0x32')),_0x4d8abe=_0x357a6a['plugins'][_0x227c('0x5f')]('TableUtils');_0x357a6a[_0x227c('0x26')][_0x227c('0xb')]['on']('change:data',()=>{const _0xb62668=Array[_0x227c('0x42')](_0x357a6a[_0x227c('0x26')][_0x227c('0xb')][_0x227c('0x21')][_0x227c('0x69')]());for(const {name:_0x48c888,data:_0x1d54cb}of _0xb62668){const {group:_0x4a3f7a,id:_0x2c0882,subType:_0x5cca5c}=_0x253f4e[_0x227c('0x4c')](_0x48c888);if('suggestion'!=_0x4a3f7a)continue;if(null!=_0x1d54cb[_0x227c('0x9')])continue;const _0x159eaf=_0x253f4e[_0x227c('0x68')](_0x2c0882);this['_tablePostFixingSubtypes'][_0x227c('0x1b')](_0x5cca5c)&&this[_0x227c('0x61')]['add'](_0x159eaf);}},{'priority':_0x227c('0x37')});const _0x53d5b8=(_0x25adfa,_0x235062)=>{let _0x1282c1=!0x1;const _0x26ba97=_0x235062[_0x227c('0x5c')](_0x25adfa),_0x49b6e2=_0x25adfa['findAncestor']('table'),_0x2c8049=_0x4d8abe[_0x227c('0x0')](_0x25adfa);for(const _0x2cec5f of this[_0x227c('0x61')]){const _0x17fb9c=_0x2cec5f[_0x227c('0xf')],_0x4f709a=_0x17fb9c[_0x227c('0x29')]('tablePaste'),_0x509afd=_0x17fb9c[_0x227c('0x7a')](_0x4f709a?0xa:0x5),_0x336ced=_0x509afd[_0x227c('0x8')](),_0x32343d=_0x336ced[_0x227c('0x7a')](0x0,0x3)+_0x227c('0x35'),_0x4ff636='min'+_0x509afd,_0x4d852f=_0x227c('0x4d')+_0x509afd;if(!_0x2cec5f['isInContent'])continue;if(_0x49b6e2!=_0x2cec5f[_0x227c('0x60')]()[_0x227c('0x75')]['findAncestor'](_0x227c('0x4b')))continue;if(_0x2cec5f['isIntersectingWithRange'](_0x26ba97))continue;const _0x2c20cd=_0x25adfa[_0x227c('0x5b')](_0x32343d)?_0x25adfa['getAttribute'](_0x32343d)-0x1:0x0,_0x41de72=this[_0x227c('0x52')](_0x2cec5f),_0x5ee54e=_0x41de72[_0x4ff636],_0x3066d6=_0x41de72[_0x4d852f];_0x5ee54e<=_0x2c8049[_0x336ced]&&_0x2c8049[_0x336ced]+_0x2c20cd<=_0x3066d6&&(_0x2cec5f[_0x227c('0x7')](_0x26ba97),_0x1282c1=!0x0);}return _0x1282c1;};_0x357a6a[_0x227c('0x26')]['document'][_0x227c('0x7d')](_0x41b4d1=>{let _0x1bdf3a=!0x1;for(const _0x8bb876 of _0x357a6a[_0x227c('0x26')][_0x227c('0xb')][_0x227c('0x21')][_0x227c('0x57')]())if('insert'==_0x8bb876['type']){if(_0x227c('0x2e')==_0x8bb876[_0x227c('0x3d')])for(const _0x5d431f of _0x8bb876[_0x227c('0x4')][_0x227c('0x5e')][_0x227c('0x72')]())_0x1bdf3a=_0x1bdf3a||_0x53d5b8(_0x5d431f,_0x41b4d1);else _0x227c('0x40')==_0x8bb876[_0x227c('0x3d')]&&(_0x1bdf3a=_0x1bdf3a||_0x53d5b8(_0x8bb876['position'][_0x227c('0x5e')],_0x41b4d1));}return _0x1bdf3a;});}[_0x227c('0x52')](_0x59ae79){return this[_0x227c('0x1')](_0x59ae79[_0x227c('0x16')]()['map'](_0x2fd71f=>_0x2fd71f[_0x227c('0x75')][_0x227c('0x5e')]));}}function ue(_0x3ff1be){return Array[_0x227c('0x42')](new Set(_0x3ff1be)[_0x227c('0x24')]());}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tablecaption
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TrackChangesTable from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x543c=['enableCommand','afterInit','editor','requires','toggleTableCaption','TrackChangesEditing','has','get'];(function(_0x2cf28c,_0x543c4e){const _0x19a310=function(_0x2c001a){while(--_0x2c001a){_0x2cf28c['push'](_0x2cf28c['shift']());}};_0x19a310(++_0x543c4e);}(_0x543c,0x120));const _0x19a3=function(_0x2cf28c,_0x543c4e){_0x2cf28c=_0x2cf28c-0x0;let _0x19a310=_0x543c[_0x2cf28c];return _0x19a310;};import{Plugin as _0x128c6d}from'ckeditor5/src/core.js';import _0x48c0e6 from'./table.js';export default class Nt extends _0x128c6d{static get[_0x19a3('0x3')](){return[_0x48c0e6];}[_0x19a3('0x1')](){const _0x2c18d3=this[_0x19a3('0x2')];if(!_0x2c18d3['plugins'][_0x19a3('0x6')]('TableCaptionEditing'))return;_0x2c18d3['plugins'][_0x19a3('0x7')](_0x19a3('0x5'))[_0x19a3('0x0')](_0x19a3('0x4'));}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import TrackChangesTable from './table';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import TrackChangesTable from './table.js';
|
|
7
7
|
/**
|
|
8
8
|
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
9
9
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32d7=['position','tablePaste','TableUtils','_tablePostFixingSubtypes','tableCellHorizontalAlignment','entries','every','move','accept','table','add','editor','_suggestionFactory','insertion','differ','_isForcedDefaultExecutionBlock','removeRows','endColumn','documentSelection','commands','tableCellSuggestion','getRange','reduce','registerDescriptionCallback','hasSuggestion','getItems','row','insertColumns','formatBlock','batch','markerAttributes','plugins','getShiftedBy','registerPostFixer','getChangedMarkers','ck-suggestion-marker--active','insertionRanges','insertContent','Users','TrackChangesEditing','end','wrap','forceDefaultExecution','clipboardOutput','paragraph','document','removeMarker','model','getChildren','deletion','getSuggestions','getMarkers','startsWith','suggestion-td','stop','getRowIndexes','getColumnIndexes','isInContent','tablePasteCell','from','editingDowncast','tableCellBackgroundColor','_descriptionFactory','createRangeOn','length','findAncestor','columnInsertionRanges','set','removeMarkers','setAttribute','subType','activeMarkers','tablePasteRow','cells','_getCoordsForCells','columnInsertionIndexes','locale','getSelectionAffectedTableCells','oldRange','options','$graveyard','map','join','registerCustomCallback','filter','column','suggestion','get','createRange','tablePasteColumn','markMultiRangeBlockFormat','push','next','containsRange','newRange','includes','author','start','insert','for','afterInit','getAllAdjacentSuggestions','rowInsertionRanges','setAttributes','conversion','*Replace\x20table\x20cells*','trackChanges','previousSibling','createTableWalker','view','deletionRanges','change','suggestionLoaded','type','tableCellBorderStyle','rowInsertionIndexes','has','element','markers','getChild','_splitMarkerName','tablePasteChainId','getSuggestion','some','discard','first','schema','ck-suggestion-marker-insertion','createRangeIn','tableCell','insertRows','unwrap','tableCellBorderWidth','isEqual','editing','_replaceTableSlotCell','value','find','name','listenTo','attributes','fill','suggestion:formatBlock:tablePasteCell','content','markerToHighlight','tableCellPadding','return','columns','getContainedElement','updateMarker','getRanges','last','high','elementToElement','selection','getRows','nextSibling','keys','createElement','TableClipboard','isEmpty','remove','redo','markMultiRangeInsertion','fromEntries'];(function(_0x1c215d,_0x32d736){const _0x5d7aa3=function(_0x19dc6f){while(--_0x19dc6f){_0x1c215d['push'](_0x1c215d['shift']());}};_0x5d7aa3(++_0x32d736);}(_0x32d7,0xda));const _0x5d7a=function(_0x1c215d,_0x32d736){_0x1c215d=_0x1c215d-0x0;let _0x5d7aa3=_0x32d7[_0x1c215d];return _0x5d7aa3;};import{getTranslation as _0x55f958}from'../utils/common-translations';import{Plugin as _0x4a0ad8}from'ckeditor5/src/core';import{uid as _0x5a76a2,priorities as _0x20fdf2}from'ckeditor5/src/utils';import _0x3b6d7c from'./table';const le=[_0x5d7a('0x4f'),'tableCellBorderColor',_0x5d7a('0x3d'),_0x5d7a('0x74'),'tableCellVerticalAlignment',_0x5d7a('0x8'),_0x5d7a('0x5c')],ae=Object[_0x5d7a('0x6f')](le[_0x5d7a('0x1c')](_0x3d97f6=>[_0x3d97f6,null]));export default class At extends _0x4a0ad8{static get['requires'](){return[_0x3b6d7c];}[_0x5d7a('0x2f')](){const _0x3afc17=this['editor'];if(!_0x3afc17[_0x5d7a('0x8f')]['has'](_0x5d7a('0x6a')))return;const _0x570542=_0x3afc17[_0x5d7a('0x8f')]['get'](_0x5d7a('0x97')),_0x58c9eb=_0x3afc17['plugins']['get'](_0x5d7a('0x72')),_0x4e38ba=_0x3afc17[_0x5d7a('0x8f')]['get'](_0x3b6d7c),_0x4ac210=_0x3afc17['plugins'][_0x5d7a('0x22')](_0x5d7a('0x6a'));_0x4e38ba[_0x5d7a('0x73')][_0x5d7a('0x26')](_0x5d7a('0x13'),_0x5d7a('0x24')),_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0x49')]['register'](_0x5d7a('0x84'),{'allowIn':_0x5d7a('0x4c'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x3afc17[_0x5d7a('0x33')][_0x5d7a('0x64')]({'model':_0x5d7a('0x84'),'view':_0x5d7a('0x0')});let _0x3a0ca9=null;_0x3afc17['model']['on'](_0x5d7a('0x95'),(_0x5777e4,_0x5c51c2)=>{const [_0xed8ab1,_0x51b07e]=_0x5c51c2,_0x356065=_0x5c51c2[_0x5c51c2['length']-0x1];_0x356065&&_0x356065[_0x5d7a('0x9a')]||_0x570542[_0x5d7a('0x7f')]||this[_0x5d7a('0x7b')][_0x5d7a('0x83')]['get'](_0x5d7a('0x35'))[_0x5d7a('0x53')]&&function(_0x4c04ee,_0x492877,_0x319020,_0x24330c,_0x5f3433){if(_0x492877&&!_0x492877['is'](_0x5d7a('0x82')))return!0x1;const _0x49f5b8=_0x5f3433['getTableIfOnlyTableInContent'](_0x4c04ee,_0x319020);if(!_0x49f5b8||!fe(_0x49f5b8,void 0x0,_0x24330c))return!0x1;const _0x4196c9=_0x24330c[_0x5d7a('0x18')](_0x319020['document'][_0x5d7a('0x65')]);if(!_0x4196c9['length'])return!0x1;const _0x459f6d=_0x4196c9[0x0][_0x5d7a('0xc')]('table'),_0x4f429f=_0x24330c[_0x5d7a('0x2')](_0x4196c9),_0x3d5d53=_0x24330c[_0x5d7a('0x3')](_0x4196c9),_0x436fb6={'startRow':_0x4f429f[_0x5d7a('0x48')],'endRow':_0x4f429f[_0x5d7a('0x62')],'startColumn':_0x3d5d53[_0x5d7a('0x48')],'endColumn':_0x3d5d53[_0x5d7a('0x62')]};return 0x1==_0x4196c9['length']&&(_0x436fb6['endRow']+=_0x24330c[_0x5d7a('0x66')](_0x49f5b8)-0x1,_0x436fb6[_0x5d7a('0x81')]+=_0x24330c['getColumns'](_0x49f5b8)-0x1),fe(_0x459f6d,_0x436fb6,_0x24330c);}(_0xed8ab1,_0x51b07e,_0x3afc17['model'],_0x58c9eb,_0x4ac210)&&(_0x5777e4['stop'](),_0x3a0ca9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3afc17[_0x5d7a('0x9f')]['change'](()=>{_0x3afc17[_0x5d7a('0x9f')]['insertContent'](_0x5c51c2[0x0],_0x5c51c2[0x1],_0x5c51c2[0x2],{'forceDefaultExecution':!0x0});const _0x2990c9=_0x5a76a2(),{rowInsertionRanges:_0x2dc93e,columnInsertionRanges:_0x1d5978,insertionRanges:_0x562167,deletionRanges:_0x4c2df6,cells:_0x9e6b07}=_0x3a0ca9;_0x2dc93e[_0x5d7a('0xb')]&&_0x570542[_0x5d7a('0x6e')](_0x2dc93e,'tablePasteRow',{'tablePasteChainId':_0x2990c9}),_0x1d5978[_0x5d7a('0xb')]&&_0x570542['markMultiRangeInsertion'](_0x1d5978,_0x5d7a('0x24'),{'tablePasteChainId':_0x2990c9}),_0x562167[_0x5d7a('0xb')]&&_0x570542['markMultiRangeInsertion'](_0x562167,_0x5d7a('0x71'),{'tablePasteChainId':_0x2990c9,'skipNestingCheck':!0x0}),_0x4c2df6[_0x5d7a('0xb')]&&_0x570542['markMultiRangeDeletion'](_0x4c2df6,_0x5d7a('0x71'),{'tablePasteChainId':_0x2990c9,'skipNestingCheck':!0x0});const _0x44b326=_0x570542[_0x5d7a('0x25')](_0x9e6b07[_0x5d7a('0x1c')](({element:_0x46b24c})=>_0x46b24c),{'formatGroupId':_0x5a76a2()},[],_0x5d7a('0x5'),{'tablePasteChainId':_0x2990c9});if(_0x44b326){const _0x30a517=_0x44b326[_0x5d7a('0xa3')](),_0x485929=[];for(const {element:_0x108d5d,attributes:_0x505d23}of _0x9e6b07){if(!_0x505d23)continue;const _0x35a7c2=_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0xa')](_0x108d5d),_0x5232aa=_0x30a517[_0x5d7a('0x54')](_0x31266d=>_0x31266d[_0x5d7a('0x85')]()[_0x5d7a('0x50')](_0x35a7c2));_0x5232aa&&_0x485929[_0x5d7a('0x26')]([_0x5232aa[_0x5d7a('0x55')],_0x505d23]);}_0x485929[_0x5d7a('0xb')]&&_0x44b326[_0x5d7a('0x10')]('markerAttributes',Object[_0x5d7a('0x6f')](_0x485929));}_0x3a0ca9=null;}));},{'priority':_0x20fdf2[_0x5d7a('0x63')]+0xa}),_0x3afc17['plugins'][_0x5d7a('0x22')](_0x5d7a('0x6a'))['on'](_0x5d7a('0x52'),(_0x2bf113,_0x31dc8c)=>{const [_0x588381,_0x225a58,,_0x490079]=_0x31dc8c;if(!_0x3a0ca9)return;_0x2bf113[_0x5d7a('0x1')]();const _0x1ef457=_0x588381['cell'],_0x42cbd2=_0x225a58,_0x34c757=ce(_0x1ef457),_0x1247c6=ce(_0x42cbd2);_0x2bf113[_0x5d7a('0x5d')]=_0x1ef457;let _0x591173=null,_0x4e9dfe=null;if(_0x1247c6||_0x34c757){if(_0x34c757&&!_0x1247c6){_0x490079[_0x5d7a('0x6c')](_0x1ef457['getChild'](0x0));for(const _0x4c6fd2 of Array[_0x5d7a('0x6')](_0x42cbd2[_0x5d7a('0xa0')]()))_0x490079[_0x5d7a('0x2d')](_0x4c6fd2,_0x1ef457,'end');const _0x1aa3b0=_0x3a0ca9[_0x5d7a('0x3e')]['includes'](_0x588381[_0x5d7a('0x8a')]),_0x17005d=_0x3a0ca9[_0x5d7a('0x16')][_0x5d7a('0x2a')](_0x588381[_0x5d7a('0x20')]);_0x1aa3b0||_0x17005d||(_0x591173=_0x490079[_0x5d7a('0x4b')](_0x1ef457));}else _0x1247c6&&!_0x34c757&&(_0x4e9dfe=_0x490079['createRangeIn'](_0x1ef457));}else{const _0x10eaea=_0x490079[_0x5d7a('0x69')](_0x5d7a('0x84')),_0xd4afcf=_0x490079[_0x5d7a('0x69')]('tableCellSuggestion');_0x490079[_0x5d7a('0x99')](_0x490079[_0x5d7a('0x4b')](_0x1ef457),_0xd4afcf),_0x490079['insert'](_0x10eaea,_0x1ef457,0x0);for(const _0x18aa72 of Array[_0x5d7a('0x6')](_0x42cbd2[_0x5d7a('0xa0')]()))_0x490079[_0x5d7a('0x2d')](_0x18aa72,_0x10eaea,_0x5d7a('0x98'));_0x591173=_0x490079[_0x5d7a('0xa')](_0x10eaea),_0x4e9dfe=_0x490079[_0x5d7a('0xa')](_0xd4afcf);}const _0x130841=Array[_0x5d7a('0x6')](_0x42cbd2['getAttributes']())[_0x5d7a('0x1f')](([_0x54b479])=>le['includes'](_0x54b479));_0x3a0ca9[_0x5d7a('0x14')][_0x5d7a('0x26')]({'element':_0x1ef457,'attributes':_0x130841[_0x5d7a('0xb')]?Object[_0x5d7a('0x6f')](_0x130841):null}),_0x591173&&_0x3a0ca9[_0x5d7a('0x94')]['push'](_0x591173),_0x4e9dfe&&_0x3a0ca9[_0x5d7a('0x39')][_0x5d7a('0x26')](_0x4e9dfe);},{'priority':_0x5d7a('0x63')}),_0x58c9eb['on'](_0x5d7a('0x8b'),(_0x2e3aa7,_0x2046c7)=>{const [_0x24aa89,_0x2331d1={}]=_0x2046c7;if(!_0x3a0ca9)return;const _0x12cb6b=_0x2331d1['at']||0x0,_0x37b8f8=_0x2331d1[_0x5d7a('0x5e')]||0x1;_0x3a0ca9[_0x5d7a('0x16')]=new Array(_0x37b8f8)['fill'](_0x12cb6b)[_0x5d7a('0x1c')]((_0x44c6dd,_0x2f13d6)=>_0x44c6dd+_0x2f13d6);for(const {cell:_0x1fe5e3}of _0x58c9eb[_0x5d7a('0x37')](_0x24aa89,{'startColumn':_0x12cb6b,'endColumn':_0x12cb6b+_0x37b8f8-0x1}))_0x3a0ca9[_0x5d7a('0xd')]['push'](_0x3afc17[_0x5d7a('0x9f')]['createRangeOn'](_0x1fe5e3));},{'priority':'low'}),_0x58c9eb['on'](_0x5d7a('0x4d'),(_0x250160,_0x1b2c97)=>{const [_0x50d969,_0x7713fd={}]=_0x1b2c97;if(!_0x3a0ca9)return;const _0x3a5c7c=_0x7713fd['at']||0x0,_0x239348=_0x7713fd['rows']||0x1;_0x3a0ca9[_0x5d7a('0x3e')]=new Array(_0x239348)[_0x5d7a('0x58')](_0x3a5c7c)[_0x5d7a('0x1c')]((_0x2dc71a,_0xfd9388)=>_0x2dc71a+_0xfd9388);for(const {cell:_0x1997c1}of _0x58c9eb[_0x5d7a('0x37')](_0x50d969,{'startRow':_0x3a5c7c,'endRow':_0x3a5c7c+_0x239348-0x1}))_0x3a0ca9[_0x5d7a('0x31')][_0x5d7a('0x26')](_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0xa')](_0x1997c1));},{'priority':'low'}),_0x570542[_0x5d7a('0x9')][_0x5d7a('0x87')](_0x53ea7c=>{if(_0x53ea7c[_0x5d7a('0x11')]&&_0x53ea7c[_0x5d7a('0x11')]['startsWith'](_0x5d7a('0x71')))return _0x53ea7c['previous']?{}:{'type':_0x5d7a('0x7d'),'content':_0x55f958(_0x3afc17[_0x5d7a('0x17')],_0x5d7a('0x34'))};});const _0x541430=()=>!0x1;for(const _0x36d0ce of[_0x5d7a('0x71'),_0x5d7a('0x24'),_0x5d7a('0x13'),_0x5d7a('0x5')])_0x570542['_suggestionFactory'][_0x5d7a('0x1e')]('insertion',_0x36d0ce,'join',_0x541430),_0x570542['_suggestionFactory'][_0x5d7a('0x1e')]('deletion',_0x36d0ce,_0x5d7a('0x1d'),_0x541430),_0x570542[_0x5d7a('0x7c')]['registerCustomCallback']('formatBlock',_0x36d0ce,_0x5d7a('0x1d'),_0x541430);_0x570542[_0x5d7a('0x7c')][_0x5d7a('0x1e')](_0x5d7a('0x8c'),'tablePasteCell',_0x5d7a('0x47'),_0x541430),_0x570542[_0x5d7a('0x7c')][_0x5d7a('0x1e')](_0x5d7a('0x8c'),'tablePasteCell',_0x5d7a('0x78'),(_0x276287,_0x47a93a,_0x528d2f)=>{const _0x1ad1d3=_0x276287['map'](_0x38a14a=>_0x38a14a[_0x5d7a('0x5f')]())[_0x5d7a('0x1f')](_0x2daeff=>_0x2daeff),_0x900918=new Map(_0x1ad1d3[_0x5d7a('0x1c')](_0x51c9d9=>[_0x51c9d9,null]));if(_0x3a0ca9)for(const {element:_0xabadda,attributes:_0x2fc207}of _0x3a0ca9[_0x5d7a('0x14')])_0x2fc207&&_0x900918[_0x5d7a('0xe')](_0xabadda,_0x2fc207);else{if(_0x528d2f&&_0x528d2f['markerAttributes'])for(const [_0x28c5dd,_0x43a072]of Object[_0x5d7a('0x75')](_0x528d2f['markerAttributes'])){const _0x16fe8b=_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0x41')][_0x5d7a('0x22')](_0x28c5dd),_0x1ce704=_0x16fe8b?_0x16fe8b[_0x5d7a('0x85')]()[_0x5d7a('0x5f')]():null;_0x1ce704&&_0x900918[_0x5d7a('0xe')](_0x1ce704,_0x43a072);}}_0x3afc17['model'][_0x5d7a('0x3a')](_0x171e92=>{for(const [_0x1bbdd2,_0x29f681]of _0x900918)_0x171e92[_0x5d7a('0x32')]({...ae,..._0x29f681},_0x1bbdd2);});});const _0x11df2c=(_0x2826be,_0x185ae9)=>{_0x570542[_0x5d7a('0x7c')][_0x5d7a('0x1e')](_0x2826be,_0x5d7a('0x71'),_0x185ae9,(_0x1e1a6d,_0x578c28,_0x946d43)=>{_0x3afc17['model'][_0x5d7a('0x3a')](_0x4e9eb9=>{const _0x214f3a=[];for(const _0x4b9eab of _0x1e1a6d){const _0x10a36a=_0x4b9eab[_0x5d7a('0x2c')]['nodeAfter'];_0x10a36a['is']('element',_0x5d7a('0x84'))&&_0x214f3a[_0x5d7a('0x26')](_0x10a36a);}_0x570542['_suggestionFactory']['getSuggestionCallback'](_0x2826be,null,_0x185ae9)(_0x1e1a6d,_0x578c28,_0x946d43);for(const _0x3c3307 of _0x214f3a)_0x5d7a('0x1b')!=_0x3c3307['root']['rootName']&&_0x4e9eb9[_0x5d7a('0x4e')](_0x3c3307);});});};_0x11df2c('insertion',_0x5d7a('0x78')),_0x11df2c(_0x5d7a('0x7d'),'discard'),_0x11df2c(_0x5d7a('0xa1'),_0x5d7a('0x78')),_0x11df2c(_0x5d7a('0xa1'),_0x5d7a('0x47')),_0x570542['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d7a('0x13'),_0x5d7a('0x47'),_0x27660d=>{const _0x4903c4=_0x27660d[_0x5d7a('0x1c')](_0x402331=>_0x402331[_0x5d7a('0x5f')]()),_0xe16610=_0x4903c4[0x0]['findAncestor']('table'),{minRow:_0x19dbea,maxRow:_0x154eda}=_0x4e38ba['_getCoordsForCells'](_0x4903c4);_0x58c9eb[_0x5d7a('0x80')](_0xe16610,{'at':_0x19dbea,'rows':_0x154eda-_0x19dbea+0x1});}),_0x570542[_0x5d7a('0x7c')][_0x5d7a('0x1e')]('insertion',_0x5d7a('0x24'),_0x5d7a('0x47'),_0x3598d5=>{const _0x18f296=_0x3598d5[_0x5d7a('0x1c')](_0x7becec=>_0x7becec[_0x5d7a('0x5f')]()),_0x1a4a56=_0x18f296[0x0][_0x5d7a('0xc')](_0x5d7a('0x79')),{minColumn:_0x15743e,maxColumn:_0x465e35}=_0x4e38ba[_0x5d7a('0x15')](_0x18f296);_0x58c9eb['removeColumns'](_0x1a4a56,{'at':_0x15743e,'columns':_0x465e35-_0x15743e+0x1});});const _0x5d80e6=(_0x169563,_0x4f8488)=>{if(!_0x4f8488[_0x5d7a('0x11')]||!_0x4f8488[_0x5d7a('0x11')]['startsWith'](_0x5d7a('0x71')))return;const _0x28ed96=_0x4f8488[_0x5d7a('0x57')][_0x5d7a('0x44')],_0x48e822=_0x570542[_0x5d7a('0xa2')]()['filter'](_0x2bacd2=>_0x2bacd2[_0x5d7a('0x4')]&&_0x2bacd2['attributes']&&_0x2bacd2[_0x5d7a('0x57')][_0x5d7a('0x44')]==_0x28ed96);_0x48e822[_0x5d7a('0xb')]&&_0x4f8488[_0x5d7a('0x30')]()[_0x5d7a('0xb')]!=_0x48e822[_0x5d7a('0xb')]&&_0x48e822[_0x5d7a('0x86')]((_0x4b0b08,_0x479f4d)=>(_0x4b0b08[_0x5d7a('0x27')]=_0x479f4d,_0x479f4d['previous']=_0x4b0b08,_0x479f4d));};function _0x17a9e5(_0x6e56c3,_0x3dab21=!0x0){const {id:_0x25e124}=_0x570542[_0x5d7a('0x43')](_0x6e56c3['markerName']),_0x24a95a=['ck-suggestion-marker',_0x5d7a('0x4a')],_0x7f11ac=_0x570542[_0x5d7a('0x12')][_0x5d7a('0x2a')](_0x6e56c3['markerName']);return _0x7f11ac&&_0x24a95a[_0x5d7a('0x26')](_0x5d7a('0x93')),{'classes':_0x24a95a,'attributes':{'data-suggestion':_0x25e124},'priority':_0x7f11ac&&_0x3dab21?0xbc2:0xbb8};}_0x570542['on'](_0x5d7a('0x3b'),_0x5d80e6,{'priority':'high'}),_0x570542['on']('suggestionUnloaded',_0x5d80e6,{'priority':_0x5d7a('0x63')}),_0x3afc17['model'][_0x5d7a('0x9d')][_0x5d7a('0x91')](()=>{let _0x102325=!0x1;const _0x168ff6=Array[_0x5d7a('0x6')](_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0x9d')][_0x5d7a('0x7e')]['getChangedMarkers']());for(const {name:_0x468eee,data:_0x14cefc}of _0x168ff6){const {group:_0x3c7335,type:_0x2810d0,id:_0x592eb1}=_0x570542[_0x5d7a('0x43')](_0x468eee);if(_0x5d7a('0x21')!=_0x3c7335||_0x5d7a('0xa1')!=_0x2810d0||_0x14cefc[_0x5d7a('0x19')])continue;if(!_0x570542[_0x5d7a('0x88')](_0x592eb1))continue;const _0x2f8edd=_0x570542[_0x5d7a('0x45')](_0x592eb1)[_0x5d7a('0x61')](),_0x4c48c7=_0x3afc17[_0x5d7a('0x8f')]['get'](_0x5d7a('0x96'))['me'];for(const _0x4526e9 of _0x570542[_0x5d7a('0xa2')]()){if(!_0x4526e9['isInContent']||_0x4526e9[_0x5d7a('0x2b')]!=_0x4c48c7)continue;if(_0x5d7a('0x8c')!=_0x4526e9[_0x5d7a('0x3c')]||_0x5d7a('0x5')!=_0x4526e9[_0x5d7a('0x11')])continue;if(_0x4526e9[_0x5d7a('0x61')]()[_0x5d7a('0x76')](_0x172116=>_0x2f8edd[_0x5d7a('0x46')](_0x3707e8=>_0x3707e8[_0x5d7a('0x28')](_0x172116,!0x0))))for(const _0x1d15d1 of _0x4526e9[_0x5d7a('0x30')]())_0x1d15d1['isInContent']&&(_0x1d15d1[_0x5d7a('0x47')](),_0x102325=!0x0);}}return _0x102325;}),_0x3afc17['model']['document'][_0x5d7a('0x91')](_0x361df7=>{const _0x417248=_0x3afc17[_0x5d7a('0x83')][_0x5d7a('0x22')](_0x5d7a('0x6d'));if(!_0x417248||!_0x417248['_createdBatches'][_0x5d7a('0x3f')](_0x361df7[_0x5d7a('0x8d')]))return!0x1;let _0x5a8bcf=!0x1;const _0x405eb0=_0x3afc17[_0x5d7a('0x8f')][_0x5d7a('0x22')]('Users')['me'],_0x95d500=_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0x9d')][_0x5d7a('0x7e')]['getChanges'](),_0x2c4577=Array[_0x5d7a('0x6')](_0x3afc17['model'][_0x5d7a('0x9d')][_0x5d7a('0x7e')][_0x5d7a('0x92')]())['filter'](({name:_0x5c1dda,data:_0x198ce7})=>{const {group:_0x52fbf6,subType:_0x5e8f92,authorId:_0x5b0c17}=_0x570542[_0x5d7a('0x43')](_0x5c1dda);return'suggestion'==_0x52fbf6&&_0x5d7a('0x71')==_0x5e8f92&&_0x5b0c17==_0x405eb0['id']&&!_0x198ce7['oldRange'];});for(const _0x2294f4 of _0x95d500){if('insert'!=_0x2294f4[_0x5d7a('0x3c')]||'tableCellSuggestion'!=_0x2294f4['name']||0x1!=_0x2294f4[_0x5d7a('0xb')])continue;const _0x4349dc=_0x361df7[_0x5d7a('0x23')](_0x2294f4['position'],_0x2294f4[_0x5d7a('0x70')][_0x5d7a('0x90')](0x1));if(!_0x2c4577[_0x5d7a('0x54')](({data:_0x597e2d})=>_0x597e2d[_0x5d7a('0x29')]['isEqual'](_0x4349dc)))for(const {name:_0x39f2f8,data:_0x7fea1a}of _0x2c4577)if(_0x4349dc[_0x5d7a('0x28')](_0x7fea1a['newRange'])){_0x361df7[_0x5d7a('0x60')](_0x39f2f8,{'range':_0x4349dc}),_0x5a8bcf=!0x0;break;}}return _0x5a8bcf;}),_0x3afc17[_0x5d7a('0x9f')][_0x5d7a('0x9d')][_0x5d7a('0x91')](_0x26f883=>{let _0x5d6936=!0x1;const _0x10fc74=_0x3afc17[_0x5d7a('0x8f')][_0x5d7a('0x22')](_0x5d7a('0x96'))['me'],_0x2e1943=_0x570542['getSuggestions']()[_0x5d7a('0x1f')](_0xf13f62=>_0xf13f62['isInContent']&&_0xf13f62[_0x5d7a('0x2b')]==_0x10fc74),_0x1dd4dc=new Set(),_0xed6190=new Set();for(const _0x270861 of _0x2e1943)if(_0x5d7a('0x71')==_0x270861[_0x5d7a('0x11')])for(const _0x3bffe7 of _0x270861[_0x5d7a('0xa3')]()){const _0x45232d=_0x3bffe7['getRange']()['getContainedElement']();if(_0x45232d){if(_0x45232d['is'](_0x5d7a('0x40'),_0x5d7a('0x84'))&&ce(_0x45232d)){_0x270861[_0x5d7a('0x9e')](_0x3bffe7[_0x5d7a('0x55')]),_0x1dd4dc[_0x5d7a('0x7a')](_0x45232d),_0x5d6936=!0x0;const _0x214a00=_0x45232d[_0x5d7a('0x67')],_0x103bff=_0x45232d[_0x5d7a('0x36')],_0x1e5803=_0x214a00&&_0x214a00['is'](_0x5d7a('0x40'),_0x5d7a('0x84')),_0x505675=_0x103bff&&_0x103bff['is'](_0x5d7a('0x40'),_0x5d7a('0x84'));_0x1e5803&&!_0x1dd4dc[_0x5d7a('0x3f')](_0x214a00)&&_0xed6190['add'](_0x214a00),_0x505675&&!_0x1dd4dc[_0x5d7a('0x3f')](_0x103bff)&&_0xed6190['add'](_0x103bff);}else _0x45232d['is'](_0x5d7a('0x40'),_0x5d7a('0x9c'))&&_0x45232d['isEmpty']&&(_0x270861['removeMarker'](_0x3bffe7[_0x5d7a('0x55')]),_0x5d6936=!0x0);}}else{if(_0x5d7a('0x5')==_0x270861[_0x5d7a('0x11')]){if(!_0x270861[_0x5d7a('0x57')]||!_0x270861[_0x5d7a('0x57')][_0x5d7a('0x44')])continue;const _0x34c8ae=_0x270861[_0x5d7a('0x57')][_0x5d7a('0x8e')];if(_0x34c8ae&&Object[_0x5d7a('0x68')](_0x34c8ae)[_0x5d7a('0xb')])continue;const _0x3baecb=_0x270861['attributes'][_0x5d7a('0x44')];let _0x5b6f1e=!0x0,_0x5c1beb=!0x0;for(const _0x503a37 of _0x2e1943)if(_0x503a37[_0x5d7a('0x11')]&&_0x503a37[_0x5d7a('0x11')][_0x5d7a('0xa4')](_0x5d7a('0x71'))){if(!_0x503a37['attributes'][_0x5d7a('0x44')]){_0x5c1beb=!0x1;break;}if(_0x503a37['id']!=_0x270861['id']&&_0x503a37[_0x5d7a('0x57')][_0x5d7a('0x44')]==_0x3baecb){_0x5b6f1e=!0x1;break;}}_0x5c1beb&&_0x5b6f1e&&(_0x270861[_0x5d7a('0xf')](),_0x5d6936=!0x0);}}for(const _0x24c894 of _0x1dd4dc)_0x26f883[_0x5d7a('0x6c')](_0x24c894);for(const _0xe446db of _0xed6190)_0x26f883['unwrap'](_0xe446db);return _0x5d6936;}),_0x3afc17[_0x5d7a('0x33')][_0x5d7a('0x2e')](_0x5d7a('0x7'))[_0x5d7a('0x5b')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3febdc,_0x504701)=>_0x17a9e5(_0x3febdc),'converterPriority':_0x5d7a('0x63')}),_0x3afc17[_0x5d7a('0x33')][_0x5d7a('0x2e')]('dataDowncast')[_0x5d7a('0x5b')]({'model':_0x5d7a('0x59'),'view':(_0x5ec927,_0x13bac9)=>_0x13bac9[_0x5d7a('0x1a')]['showSuggestionHighlights']?_0x17a9e5(_0x5ec927,!0x1):null,'converterPriority':_0x5d7a('0x63')});const _0x45360f=_0x3afc17[_0x5d7a('0x51')][_0x5d7a('0x38')];this[_0x5d7a('0x56')](_0x45360f[_0x5d7a('0x9d')],_0x5d7a('0x9b'),(_0xad80cb,_0x23b974)=>{const _0x27e9ef=[];for(const _0x42b926 of _0x45360f[_0x5d7a('0x4b')](_0x23b974[_0x5d7a('0x5a')])[_0x5d7a('0x89')]())_0x42b926['is'](_0x5d7a('0x40'),_0x5d7a('0x0'))&&_0x27e9ef[_0x5d7a('0x26')](_0x42b926);_0x45360f['change'](_0x413062=>{for(const _0xc66d52 of _0x27e9ef)_0x413062[_0x5d7a('0x77')](_0x413062[_0x5d7a('0x4b')](_0xc66d52),_0x413062['createPositionBefore'](_0xc66d52)),_0x413062[_0x5d7a('0x6c')](_0xc66d52);});});}}function ce(_0x1f4331){if(_0x1f4331[_0x5d7a('0x6b')])return!0x0;const _0x2c8c8f=_0x1f4331[_0x5d7a('0x42')](0x0);return _0x2c8c8f['is']('element',_0x5d7a('0x9c'))&&_0x2c8c8f['isEmpty'];}function fe(_0x114c79,_0x4d037a={},_0x49976c){for(const {isAnchor:_0x53a126,cellHeight:_0x15b872,cellWidth:_0x1de5f7}of _0x49976c[_0x5d7a('0x37')](_0x114c79,{'includeAllSlots':!0x0,..._0x4d037a}))if(!_0x53a126||0x1!=_0x15b872||0x1!=_0x1de5f7)return!0x1;return!0x0;}
|
|
23
|
+
const _0x2e29=['previous','insertColumns','high','markerName','isEmpty','redo','end','locale','getSuggestionCallback','getChild','Users','getSuggestions','createRangeIn','_getCoordsForCells','createPositionBefore','document','removeMarkers','markerAttributes','plugins','markers','showSuggestionHighlights','getAttributes','low','getTableIfOnlyTableInContent','getAllAdjacentSuggestions','getSelectionAffectedTableCells','TableUtils','fromEntries','_suggestionFactory','createRange','markMultiRangeDeletion','registerCustomCallback','tableCellPadding','keys','requires','editingDowncast','tableCellSuggestion','add','markMultiRangeInsertion','getRows','remove','differ','conversion','createRangeOn','_tablePostFixingSubtypes','element','paragraph','getItems','updateMarker','tablePasteChainId','clipboardOutput','name','getChangedMarkers','removeRows','dataDowncast','rowInsertionRanges','for','reduce','columnInsertionRanges','getSuggestion','_splitMarkerName','rowInsertionIndexes','getColumnIndexes','getRange','model','insertContent','value','every','tableCellBorderWidth','cells','insertionRanges','deletionRanges','registerPostFixer','$graveyard','position','listenTo','insert','map','tableCellBorderStyle','tablePasteCell','some','previousSibling','removeColumns','join','suggestion:formatBlock:tablePasteCell','register','discard','_isForcedDefaultExecutionBlock','findAncestor','insertion','accept','createElement','getRanges','rootName','markerToHighlight','start','getChildren','elementToElement','root','content','getRowIndexes','attributes','unwrap','forceDefaultExecution','removeMarker','suggestion','editor','push','cell','getMarkers','commands','schema','nodeAfter','fill','subType','filter','containsRange','endColumn','tablePasteRow','*Replace\x20table\x20cells*','next','_replaceTableSlotCell','startsWith','stop','deletion','first','length','tableCellBackgroundColor','setAttribute','rows','selection','formatBlock','tablePasteColumn','hasSuggestion','tableCellVerticalAlignment','isInContent','afterInit','batch','author','tableCellBorderColor','set','columnInsertionIndexes','nextSibling','from','_descriptionFactory','get','tableCellHorizontalAlignment','newRange','column','TableClipboard','find','suggestionUnloaded','change','ck-suggestion-marker-insertion','oldRange','type','tablePaste','getContainedElement','row','suggestion-td','isEqual','includes','getChanges','tableCell','registerDescriptionCallback','ck-suggestion-marker','return','has','columns'];(function(_0x109fdf,_0x2e29ab){const _0x94f923=function(_0x3466e8){while(--_0x3466e8){_0x109fdf['push'](_0x109fdf['shift']());}};_0x94f923(++_0x2e29ab);}(_0x2e29,0xa9));const _0x94f9=function(_0x109fdf,_0x2e29ab){_0x109fdf=_0x109fdf-0x0;let _0x94f923=_0x2e29[_0x109fdf];return _0x94f923;};import{getTranslation as _0x58fe80}from'../utils/common-translations.js';import{Plugin as _0x3f0842}from'ckeditor5/src/core.js';import{uid as _0x542d63,priorities as _0x2fd574}from'ckeditor5/src/utils.js';import _0x58bc97 from'./table.js';const fe=[_0x94f9('0x44'),_0x94f9('0x8b'),_0x94f9('0x4e'),_0x94f9('0x92'),_0x94f9('0x86'),_0x94f9('0x7f'),_0x94f9('0x20')],be=Object[_0x94f9('0x1b')](fe['map'](_0x4029e6=>[_0x4029e6,null]));export default class At extends _0x3f0842{static get[_0x94f9('0x22')](){return[_0x58bc97];}[_0x94f9('0x88')](){const _0x3e29c9=this[_0x94f9('0x6a')];if(!_0x3e29c9[_0x94f9('0x12')]['has'](_0x94f9('0x95')))return;const _0x597cc4=_0x3e29c9[_0x94f9('0x12')][_0x94f9('0x91')]('TrackChangesEditing'),_0x2518e3=_0x3e29c9[_0x94f9('0x12')][_0x94f9('0x91')](_0x94f9('0x1a')),_0x3e96f2=_0x3e29c9[_0x94f9('0x12')]['get'](_0x58bc97),_0x31f428=_0x3e29c9[_0x94f9('0x12')][_0x94f9('0x91')](_0x94f9('0x95'));_0x3e96f2[_0x94f9('0x2c')]['push'](_0x94f9('0x76'),'tablePasteColumn'),_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x6f')][_0x94f9('0x55')](_0x94f9('0x24'),{'allowIn':_0x94f9('0xa3'),'allowContentOf':_0x94f9('0xa3'),'isLimit':!0x0}),_0x3e29c9[_0x94f9('0x2a')][_0x94f9('0x61')]({'model':_0x94f9('0x24'),'view':_0x94f9('0x9f')});let _0xe79120=null;_0x3e29c9[_0x94f9('0x40')]['on'](_0x94f9('0x41'),(_0x14d34a,_0x94b69f)=>{const [_0xbc909b,_0x4cb539]=_0x94b69f,_0x2fbbcd=_0x94b69f[_0x94b69f[_0x94f9('0x7e')]-0x1];_0x2fbbcd&&_0x2fbbcd[_0x94f9('0x67')]||_0x597cc4[_0x94f9('0x57')]||this['editor'][_0x94f9('0x6e')]['get']('trackChanges')[_0x94f9('0x42')]&&function(_0x3431cb,_0x204478,_0x5dcd70,_0x394257,_0x278ed4){if(_0x204478&&!_0x204478['is']('documentSelection'))return!0x1;const _0x392d43=_0x278ed4[_0x94f9('0x17')](_0x3431cb,_0x5dcd70);if(!_0x392d43||!de(_0x392d43,void 0x0,_0x394257))return!0x1;const _0xe8185b=_0x394257[_0x94f9('0x19')](_0x5dcd70[_0x94f9('0xf')][_0x94f9('0x82')]);if(!_0xe8185b['length'])return!0x1;const _0x53c241=_0xe8185b[0x0]['findAncestor']('table'),_0x44c4a4=_0x394257[_0x94f9('0x64')](_0xe8185b),_0x1ad5e4=_0x394257[_0x94f9('0x3e')](_0xe8185b),_0x30fe73={'startRow':_0x44c4a4[_0x94f9('0x7d')],'endRow':_0x44c4a4['last'],'startColumn':_0x1ad5e4['first'],'endColumn':_0x1ad5e4['last']};return 0x1==_0xe8185b[_0x94f9('0x7e')]&&(_0x30fe73['endRow']+=_0x394257[_0x94f9('0x27')](_0x392d43)-0x1,_0x30fe73[_0x94f9('0x75')]+=_0x394257['getColumns'](_0x392d43)-0x1),de(_0x53c241,_0x30fe73,_0x394257);}(_0xbc909b,_0x4cb539,_0x3e29c9[_0x94f9('0x40')],_0x2518e3,_0x31f428)&&(_0x14d34a['stop'](),_0xe79120={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x98')](()=>{_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x41')](_0x94b69f[0x0],_0x94b69f[0x1],_0x94b69f[0x2],{'forceDefaultExecution':!0x0});const _0x122442=_0x542d63(),{rowInsertionRanges:_0x23d152,columnInsertionRanges:_0x3934bd,insertionRanges:_0x20f09f,deletionRanges:_0x350394,cells:_0x4c508f}=_0xe79120;_0x23d152[_0x94f9('0x7e')]&&_0x597cc4['markMultiRangeInsertion'](_0x23d152,_0x94f9('0x76'),{'tablePasteChainId':_0x122442}),_0x3934bd[_0x94f9('0x7e')]&&_0x597cc4[_0x94f9('0x26')](_0x3934bd,'tablePasteColumn',{'tablePasteChainId':_0x122442}),_0x20f09f[_0x94f9('0x7e')]&&_0x597cc4[_0x94f9('0x26')](_0x20f09f,_0x94f9('0x9c'),{'tablePasteChainId':_0x122442,'skipNestingCheck':!0x0}),_0x350394['length']&&_0x597cc4[_0x94f9('0x1e')](_0x350394,'tablePaste',{'tablePasteChainId':_0x122442,'skipNestingCheck':!0x0});const _0x4bb549=_0x597cc4['markMultiRangeBlockFormat'](_0x4c508f[_0x94f9('0x4d')](({element:_0x49976d})=>_0x49976d),{'formatGroupId':_0x542d63()},[],'tablePasteCell',{'tablePasteChainId':_0x122442});if(_0x4bb549){const _0x2d8585=_0x4bb549[_0x94f9('0x6d')](),_0x41470a=[];for(const {element:_0x5cedb0,attributes:_0x193a15}of _0x4c508f){if(!_0x193a15)continue;const _0x216e37=_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x2b')](_0x5cedb0),_0x53ee57=_0x2d8585[_0x94f9('0x96')](_0x4d3916=>_0x4d3916[_0x94f9('0x3f')]()[_0x94f9('0xa0')](_0x216e37));_0x53ee57&&_0x41470a[_0x94f9('0x6b')]([_0x53ee57[_0x94f9('0x33')],_0x193a15]);}_0x41470a[_0x94f9('0x7e')]&&_0x4bb549[_0x94f9('0x80')](_0x94f9('0x11'),Object[_0x94f9('0x1b')](_0x41470a));}_0xe79120=null;}));},{'priority':_0x2fd574[_0x94f9('0x2')]+0xa}),_0x3e29c9[_0x94f9('0x12')][_0x94f9('0x91')](_0x94f9('0x95'))['on'](_0x94f9('0x79'),(_0x1dc7a9,_0x4c3dc4)=>{const [_0x58ce17,_0x106a75,,_0x45a055]=_0x4c3dc4;if(!_0xe79120)return;_0x1dc7a9[_0x94f9('0x7b')]();const _0x4ad045=_0x58ce17[_0x94f9('0x6c')],_0x300ded=_0x106a75,_0x5373d5=ge(_0x4ad045),_0x32ad1f=ge(_0x300ded);_0x1dc7a9[_0x94f9('0xa6')]=_0x4ad045;let _0x4cf5cb=null,_0x10b232=null;if(_0x32ad1f||_0x5373d5){if(_0x5373d5&&!_0x32ad1f){_0x45a055[_0x94f9('0x28')](_0x4ad045[_0x94f9('0x9')](0x0));for(const _0x2a43e9 of Array['from'](_0x300ded[_0x94f9('0x60')]()))_0x45a055[_0x94f9('0x4c')](_0x2a43e9,_0x4ad045,_0x94f9('0x6'));const _0x22e313=_0xe79120['rowInsertionIndexes']['includes'](_0x58ce17[_0x94f9('0x9e')]),_0x276ad8=_0xe79120[_0x94f9('0x8d')][_0x94f9('0xa1')](_0x58ce17[_0x94f9('0x94')]);_0x22e313||_0x276ad8||(_0x4cf5cb=_0x45a055[_0x94f9('0xc')](_0x4ad045));}else _0x32ad1f&&!_0x5373d5&&(_0x10b232=_0x45a055['createRangeIn'](_0x4ad045));}else{const _0x202064=_0x45a055['createElement'](_0x94f9('0x24')),_0x4b51b5=_0x45a055[_0x94f9('0x5b')](_0x94f9('0x24'));_0x45a055['wrap'](_0x45a055[_0x94f9('0xc')](_0x4ad045),_0x4b51b5),_0x45a055['insert'](_0x202064,_0x4ad045,0x0);for(const _0x40fccb of Array[_0x94f9('0x8f')](_0x300ded[_0x94f9('0x60')]()))_0x45a055[_0x94f9('0x4c')](_0x40fccb,_0x202064,_0x94f9('0x6'));_0x4cf5cb=_0x45a055[_0x94f9('0x2b')](_0x202064),_0x10b232=_0x45a055[_0x94f9('0x2b')](_0x4b51b5);}const _0x4ca820=Array['from'](_0x300ded[_0x94f9('0x15')]())[_0x94f9('0x73')](([_0x5ec26f])=>fe[_0x94f9('0xa1')](_0x5ec26f));_0xe79120[_0x94f9('0x45')][_0x94f9('0x6b')]({'element':_0x4ad045,'attributes':_0x4ca820['length']?Object[_0x94f9('0x1b')](_0x4ca820):null}),_0x4cf5cb&&_0xe79120[_0x94f9('0x46')][_0x94f9('0x6b')](_0x4cf5cb),_0x10b232&&_0xe79120[_0x94f9('0x47')]['push'](_0x10b232);},{'priority':_0x94f9('0x2')}),_0x2518e3['on'](_0x94f9('0x1'),(_0x2ec45c,_0x175f29)=>{const [_0x9d5be1,_0xe9d067={}]=_0x175f29;if(!_0xe79120)return;const _0x1bf409=_0xe9d067['at']||0x0,_0xd89143=_0xe9d067[_0x94f9('0xa8')]||0x1;_0xe79120[_0x94f9('0x8d')]=new Array(_0xd89143)[_0x94f9('0x71')](_0x1bf409)[_0x94f9('0x4d')]((_0x58c8ca,_0x51fc56)=>_0x58c8ca+_0x51fc56);for(const {cell:_0x1e4576}of _0x2518e3['createTableWalker'](_0x9d5be1,{'startColumn':_0x1bf409,'endColumn':_0x1bf409+_0xd89143-0x1}))_0xe79120[_0x94f9('0x3a')][_0x94f9('0x6b')](_0x3e29c9['model'][_0x94f9('0x2b')](_0x1e4576));},{'priority':_0x94f9('0x16')}),_0x2518e3['on']('insertRows',(_0x2e97f8,_0x16cd34)=>{const [_0x32dc2c,_0xeeee1c={}]=_0x16cd34;if(!_0xe79120)return;const _0x4b5736=_0xeeee1c['at']||0x0,_0x45d6b4=_0xeeee1c[_0x94f9('0x81')]||0x1;_0xe79120[_0x94f9('0x3d')]=new Array(_0x45d6b4)[_0x94f9('0x71')](_0x4b5736)['map']((_0x435e48,_0x1e8352)=>_0x435e48+_0x1e8352);for(const {cell:_0x38c28b}of _0x2518e3['createTableWalker'](_0x32dc2c,{'startRow':_0x4b5736,'endRow':_0x4b5736+_0x45d6b4-0x1}))_0xe79120[_0x94f9('0x37')][_0x94f9('0x6b')](_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x2b')](_0x38c28b));},{'priority':_0x94f9('0x16')}),_0x597cc4[_0x94f9('0x90')][_0x94f9('0xa4')](_0x130c9e=>{if(_0x130c9e['subType']&&_0x130c9e[_0x94f9('0x72')]['startsWith']('tablePaste'))return _0x130c9e[_0x94f9('0x0')]?{}:{'type':'insertion','content':_0x58fe80(_0x3e29c9[_0x94f9('0x7')],_0x94f9('0x77'))};});const _0x154127=()=>!0x1;for(const _0x5898e5 of[_0x94f9('0x9c'),'tablePasteColumn',_0x94f9('0x76'),_0x94f9('0x4f')])_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')]('insertion',_0x5898e5,_0x94f9('0x53'),_0x154127),_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')](_0x94f9('0x7c'),_0x5898e5,_0x94f9('0x53'),_0x154127),_0x597cc4[_0x94f9('0x1c')]['registerCustomCallback'](_0x94f9('0x83'),_0x5898e5,_0x94f9('0x53'),_0x154127);_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')](_0x94f9('0x83'),_0x94f9('0x4f'),_0x94f9('0x56'),_0x154127),_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')](_0x94f9('0x83'),_0x94f9('0x4f'),_0x94f9('0x5a'),(_0x1b71b2,_0x18a54b,_0x7b4752)=>{const _0x3199f6=_0x1b71b2[_0x94f9('0x4d')](_0x48d420=>_0x48d420[_0x94f9('0x9d')]())[_0x94f9('0x73')](_0x18fc4b=>_0x18fc4b),_0x18d48c=new Map(_0x3199f6[_0x94f9('0x4d')](_0x57e092=>[_0x57e092,null]));if(_0xe79120)for(const {element:_0x4ffae5,attributes:_0xd33bd6}of _0xe79120['cells'])_0xd33bd6&&_0x18d48c[_0x94f9('0x8c')](_0x4ffae5,_0xd33bd6);else{if(_0x7b4752&&_0x7b4752[_0x94f9('0x11')])for(const [_0x27a78f,_0x1c9322]of Object['entries'](_0x7b4752[_0x94f9('0x11')])){const _0x562c34=_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x13')]['get'](_0x27a78f),_0x5acc0b=_0x562c34?_0x562c34[_0x94f9('0x3f')]()[_0x94f9('0x9d')]():null;_0x5acc0b&&_0x18d48c[_0x94f9('0x8c')](_0x5acc0b,_0x1c9322);}}_0x3e29c9[_0x94f9('0x40')][_0x94f9('0x98')](_0x2eb4bc=>{for(const [_0x1adc8d,_0x3fec68]of _0x18d48c)_0x2eb4bc['setAttributes']({...be,..._0x3fec68},_0x1adc8d);});});const _0x22dea3=(_0x1f7e17,_0x1bd5bb)=>{_0x597cc4['_suggestionFactory'][_0x94f9('0x1f')](_0x1f7e17,'tablePaste',_0x1bd5bb,(_0xbaf0f2,_0x2a8fe5,_0x28f3ee)=>{_0x3e29c9['model'][_0x94f9('0x98')](_0x22cc3b=>{const _0x58a7c8=[];for(const _0x4290cd of _0xbaf0f2){const _0x4c5a2e=_0x4290cd[_0x94f9('0x5f')][_0x94f9('0x70')];_0x4c5a2e['is'](_0x94f9('0x2d'),'tableCellSuggestion')&&_0x58a7c8[_0x94f9('0x6b')](_0x4c5a2e);}_0x597cc4['_suggestionFactory'][_0x94f9('0x8')](_0x1f7e17,null,_0x1bd5bb)(_0xbaf0f2,_0x2a8fe5,_0x28f3ee);for(const _0x29afd1 of _0x58a7c8)_0x94f9('0x49')!=_0x29afd1[_0x94f9('0x62')][_0x94f9('0x5d')]&&_0x22cc3b[_0x94f9('0x66')](_0x29afd1);});});};_0x22dea3(_0x94f9('0x59'),_0x94f9('0x5a')),_0x22dea3(_0x94f9('0x59'),_0x94f9('0x56')),_0x22dea3(_0x94f9('0x7c'),_0x94f9('0x5a')),_0x22dea3(_0x94f9('0x7c'),_0x94f9('0x56')),_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')](_0x94f9('0x59'),_0x94f9('0x76'),_0x94f9('0x56'),_0x16c3b6=>{const _0x414bc3=_0x16c3b6[_0x94f9('0x4d')](_0x3b33bc=>_0x3b33bc['getContainedElement']()),_0x1f3e17=_0x414bc3[0x0]['findAncestor']('table'),{minRow:_0x3395b8,maxRow:_0x1a9bf1}=_0x3e96f2[_0x94f9('0xd')](_0x414bc3);_0x2518e3[_0x94f9('0x35')](_0x1f3e17,{'at':_0x3395b8,'rows':_0x1a9bf1-_0x3395b8+0x1});}),_0x597cc4[_0x94f9('0x1c')][_0x94f9('0x1f')](_0x94f9('0x59'),_0x94f9('0x84'),_0x94f9('0x56'),_0x341fdb=>{const _0x197de5=_0x341fdb[_0x94f9('0x4d')](_0x2c8209=>_0x2c8209['getContainedElement']()),_0x514670=_0x197de5[0x0][_0x94f9('0x58')]('table'),{minColumn:_0x354088,maxColumn:_0x51544b}=_0x3e96f2[_0x94f9('0xd')](_0x197de5);_0x2518e3[_0x94f9('0x52')](_0x514670,{'at':_0x354088,'columns':_0x51544b-_0x354088+0x1});});const _0x3afad2=(_0x3ad143,_0x56f92f)=>{if(!_0x56f92f['subType']||!_0x56f92f[_0x94f9('0x72')]['startsWith']('tablePaste'))return;const _0x28cd8a=_0x56f92f[_0x94f9('0x65')][_0x94f9('0x31')],_0x1eef9a=_0x597cc4[_0x94f9('0xb')]()[_0x94f9('0x73')](_0x396833=>_0x396833[_0x94f9('0x87')]&&_0x396833[_0x94f9('0x65')]&&_0x396833['attributes'][_0x94f9('0x31')]==_0x28cd8a);_0x1eef9a[_0x94f9('0x7e')]&&_0x56f92f['getAllAdjacentSuggestions']()['length']!=_0x1eef9a[_0x94f9('0x7e')]&&_0x1eef9a[_0x94f9('0x39')]((_0x35547b,_0x11969f)=>(_0x35547b[_0x94f9('0x78')]=_0x11969f,_0x11969f['previous']=_0x35547b,_0x11969f));};function _0x57941a(_0x58e0f9,_0x1a0299=!0x0){const {id:_0x281434}=_0x597cc4['_splitMarkerName'](_0x58e0f9[_0x94f9('0x3')]),_0x5f294e=[_0x94f9('0xa5'),_0x94f9('0x99')],_0x353a2e=_0x597cc4['activeMarkers'][_0x94f9('0xa1')](_0x58e0f9[_0x94f9('0x3')]);return _0x353a2e&&_0x5f294e[_0x94f9('0x6b')]('ck-suggestion-marker--active'),{'classes':_0x5f294e,'attributes':{'data-suggestion':_0x281434},'priority':_0x353a2e&&_0x1a0299?0xbc2:0xbb8};}_0x597cc4['on']('suggestionLoaded',_0x3afad2,{'priority':'high'}),_0x597cc4['on'](_0x94f9('0x97'),_0x3afad2,{'priority':_0x94f9('0x2')}),_0x3e29c9[_0x94f9('0x40')][_0x94f9('0xf')][_0x94f9('0x48')](()=>{let _0x134f0f=!0x1;const _0x509f4a=Array['from'](_0x3e29c9['model'][_0x94f9('0xf')][_0x94f9('0x29')][_0x94f9('0x34')]());for(const {name:_0x4e2837,data:_0x7d0c0b}of _0x509f4a){const {group:_0x179a4f,type:_0x1cc30b,id:_0x3a2e15}=_0x597cc4[_0x94f9('0x3c')](_0x4e2837);if(_0x94f9('0x69')!=_0x179a4f||_0x94f9('0x7c')!=_0x1cc30b||_0x7d0c0b[_0x94f9('0x9a')])continue;if(!_0x597cc4[_0x94f9('0x85')](_0x3a2e15))continue;const _0x534245=_0x597cc4[_0x94f9('0x3b')](_0x3a2e15)['getRanges'](),_0x3be558=_0x3e29c9[_0x94f9('0x12')][_0x94f9('0x91')](_0x94f9('0xa'))['me'];for(const _0x3848dc of _0x597cc4[_0x94f9('0xb')]()){if(!_0x3848dc[_0x94f9('0x87')]||_0x3848dc[_0x94f9('0x8a')]!=_0x3be558)continue;if(_0x94f9('0x83')!=_0x3848dc[_0x94f9('0x9b')]||'tablePasteCell'!=_0x3848dc[_0x94f9('0x72')])continue;if(_0x3848dc[_0x94f9('0x5c')]()[_0x94f9('0x43')](_0x33c834=>_0x534245[_0x94f9('0x50')](_0x365da9=>_0x365da9[_0x94f9('0x74')](_0x33c834,!0x0))))for(const _0x12736b of _0x3848dc[_0x94f9('0x18')]())_0x12736b[_0x94f9('0x87')]&&(_0x12736b['discard'](),_0x134f0f=!0x0);}}return _0x134f0f;}),_0x3e29c9[_0x94f9('0x40')][_0x94f9('0xf')][_0x94f9('0x48')](_0x3e20b4=>{const _0x8896d=_0x3e29c9[_0x94f9('0x6e')][_0x94f9('0x91')](_0x94f9('0x5'));if(!_0x8896d||!_0x8896d['_createdBatches']['has'](_0x3e20b4[_0x94f9('0x89')]))return!0x1;let _0x24cfbd=!0x1;const _0x3b9651=_0x3e29c9['plugins'][_0x94f9('0x91')]('Users')['me'],_0x4a3ea6=_0x3e29c9['model']['document'][_0x94f9('0x29')][_0x94f9('0xa2')](),_0x553d6d=Array[_0x94f9('0x8f')](_0x3e29c9[_0x94f9('0x40')][_0x94f9('0xf')][_0x94f9('0x29')][_0x94f9('0x34')]())[_0x94f9('0x73')](({name:_0x1b5f10,data:_0x4cef95})=>{const {group:_0x5f2904,subType:_0x207821,authorId:_0x46b8ae}=_0x597cc4[_0x94f9('0x3c')](_0x1b5f10);return'suggestion'==_0x5f2904&&_0x94f9('0x9c')==_0x207821&&_0x46b8ae==_0x3b9651['id']&&!_0x4cef95[_0x94f9('0x9a')];});for(const _0x58206e of _0x4a3ea6){if(_0x94f9('0x4c')!=_0x58206e[_0x94f9('0x9b')]||_0x94f9('0x24')!=_0x58206e['name']||0x1!=_0x58206e[_0x94f9('0x7e')])continue;const _0x34ba88=_0x3e20b4[_0x94f9('0x1d')](_0x58206e[_0x94f9('0x4a')],_0x58206e[_0x94f9('0x4a')]['getShiftedBy'](0x1));if(!_0x553d6d['find'](({data:_0x2b9438})=>_0x2b9438[_0x94f9('0x93')][_0x94f9('0xa0')](_0x34ba88)))for(const {name:_0x1d0df1,data:_0x3bc4a8}of _0x553d6d)if(_0x34ba88[_0x94f9('0x74')](_0x3bc4a8[_0x94f9('0x93')])){_0x3e20b4[_0x94f9('0x30')](_0x1d0df1,{'range':_0x34ba88}),_0x24cfbd=!0x0;break;}}return _0x24cfbd;}),_0x3e29c9[_0x94f9('0x40')][_0x94f9('0xf')][_0x94f9('0x48')](_0x55f51e=>{let _0x2be7d3=!0x1;const _0x574970=_0x3e29c9[_0x94f9('0x12')]['get'](_0x94f9('0xa'))['me'],_0x18f3ed=_0x597cc4['getSuggestions']()[_0x94f9('0x73')](_0x59e7f9=>_0x59e7f9[_0x94f9('0x87')]&&_0x59e7f9[_0x94f9('0x8a')]==_0x574970),_0x4c407f=new Set(),_0x274169=new Set();for(const _0xccbb64 of _0x18f3ed)if(_0x94f9('0x9c')==_0xccbb64[_0x94f9('0x72')])for(const _0x185ce0 of _0xccbb64['getMarkers']()){const _0x59aed6=_0x185ce0['getRange']()[_0x94f9('0x9d')]();if(_0x59aed6){if(_0x59aed6['is']('element',_0x94f9('0x24'))&&ge(_0x59aed6)){_0xccbb64['removeMarker'](_0x185ce0['name']),_0x4c407f['add'](_0x59aed6),_0x2be7d3=!0x0;const _0x49eac9=_0x59aed6[_0x94f9('0x8e')],_0x4ce591=_0x59aed6[_0x94f9('0x51')],_0x27ac46=_0x49eac9&&_0x49eac9['is'](_0x94f9('0x2d'),_0x94f9('0x24')),_0x3a1b47=_0x4ce591&&_0x4ce591['is']('element',_0x94f9('0x24'));_0x27ac46&&!_0x4c407f['has'](_0x49eac9)&&_0x274169[_0x94f9('0x25')](_0x49eac9),_0x3a1b47&&!_0x4c407f[_0x94f9('0xa7')](_0x4ce591)&&_0x274169[_0x94f9('0x25')](_0x4ce591);}else _0x59aed6['is']('element',_0x94f9('0x2e'))&&_0x59aed6[_0x94f9('0x4')]&&(_0xccbb64[_0x94f9('0x68')](_0x185ce0['name']),_0x2be7d3=!0x0);}}else{if(_0x94f9('0x4f')==_0xccbb64[_0x94f9('0x72')]){if(!_0xccbb64[_0x94f9('0x65')]||!_0xccbb64[_0x94f9('0x65')][_0x94f9('0x31')])continue;const _0x37f05b=_0xccbb64[_0x94f9('0x65')][_0x94f9('0x11')];if(_0x37f05b&&Object[_0x94f9('0x21')](_0x37f05b)[_0x94f9('0x7e')])continue;const _0x27153b=_0xccbb64['attributes'][_0x94f9('0x31')];let _0x4b45ce=!0x0,_0x35d5d1=!0x0;for(const _0x17245c of _0x18f3ed)if(_0x17245c[_0x94f9('0x72')]&&_0x17245c[_0x94f9('0x72')][_0x94f9('0x7a')](_0x94f9('0x9c'))){if(!_0x17245c[_0x94f9('0x65')][_0x94f9('0x31')]){_0x35d5d1=!0x1;break;}if(_0x17245c['id']!=_0xccbb64['id']&&_0x17245c[_0x94f9('0x65')][_0x94f9('0x31')]==_0x27153b){_0x4b45ce=!0x1;break;}}_0x35d5d1&&_0x4b45ce&&(_0xccbb64[_0x94f9('0x10')](),_0x2be7d3=!0x0);}}for(const _0x26f5cb of _0x4c407f)_0x55f51e[_0x94f9('0x28')](_0x26f5cb);for(const _0x128fea of _0x274169)_0x55f51e[_0x94f9('0x66')](_0x128fea);return _0x2be7d3;}),_0x3e29c9[_0x94f9('0x2a')][_0x94f9('0x38')](_0x94f9('0x23'))[_0x94f9('0x5e')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49e7b7,_0x1508c0)=>_0x57941a(_0x49e7b7),'converterPriority':_0x94f9('0x2')}),_0x3e29c9[_0x94f9('0x2a')][_0x94f9('0x38')](_0x94f9('0x36'))['markerToHighlight']({'model':_0x94f9('0x54'),'view':(_0x12310b,_0x1c3c3d)=>_0x1c3c3d['options'][_0x94f9('0x14')]?_0x57941a(_0x12310b,!0x1):null,'converterPriority':_0x94f9('0x2')});const _0x309e27=_0x3e29c9['editing']['view'];this[_0x94f9('0x4b')](_0x309e27[_0x94f9('0xf')],_0x94f9('0x32'),(_0x42be5b,_0x3139f1)=>{const _0x5cb082=[];for(const _0x326560 of _0x309e27['createRangeIn'](_0x3139f1[_0x94f9('0x63')])[_0x94f9('0x2f')]())_0x326560['is'](_0x94f9('0x2d'),_0x94f9('0x9f'))&&_0x5cb082[_0x94f9('0x6b')](_0x326560);_0x309e27['change'](_0x26cc1c=>{for(const _0x28ba99 of _0x5cb082)_0x26cc1c['move'](_0x26cc1c['createRangeIn'](_0x28ba99),_0x26cc1c[_0x94f9('0xe')](_0x28ba99)),_0x26cc1c[_0x94f9('0x28')](_0x28ba99);});});}}function ge(_0x2b2be5){if(_0x2b2be5[_0x94f9('0x4')])return!0x0;const _0x2a06db=_0x2b2be5['getChild'](0x0);return _0x2a06db['is'](_0x94f9('0x2d'),'paragraph')&&_0x2a06db[_0x94f9('0x4')];}function de(_0xf87ab,_0x23ca6f={},_0x5eba42){for(const {isAnchor:_0x3a7139,cellHeight:_0x420f40,cellWidth:_0x520e8a}of _0x5eba42['createTableWalker'](_0xf87ab,{'includeAllSlots':!0x0,..._0x23ca6f}))if(!_0x3a7139||0x1!=_0x420f40||0x1!=_0x520e8a)return!0x1;return!0x0;}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tablecolumnresize
|
|
7
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';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
12
12
|
/**
|
|
13
13
|
* Provides track changes plugin integration for table column resize feature.
|
|
14
14
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1050=['selection','getSelectedElement','subType','resizeTable','getColumnGroupElement','getContainedElement','getTableColumnsWidths','editor','formatBlock','table','formatInline','getSuggestions','columnWidths','enableCommand','markBlockFormat','registerCustomCallback','bind','tableWidth','model','type','Users','get','document','handleResizeTableWidthCommand','registerDescriptionCallback','discard','_suggestionFactory','TrackChangesEditing','commandParams','TableColumnResizeEditing','afterInit','has','_descriptionFactory','resizeTableWidth','plugins','format','change','locale','handleSuggestionDescription','getAttribute'];(function(_0x5c7308,_0x105058){const _0x16836e=function(_0x1d6b24){while(--_0x1d6b24){_0x5c7308['push'](_0x5c7308['shift']());}};_0x16836e(++_0x105058);}(_0x1050,0x1e8));const _0x1683=function(_0x5c7308,_0x105058){_0x5c7308=_0x5c7308-0x0;let _0x16836e=_0x1050[_0x5c7308];return _0x16836e;};import{Plugin as _0x31fa2c}from'ckeditor5/src/core.js';import{getTranslation as _0x69713e}from'../utils/common-translations.js';export default class It extends _0x31fa2c{[_0x1683('0x16')](){if(!this['editor']['plugins'][_0x1683('0x17')](_0x1683('0x15')))return;const _0x355041=this[_0x1683('0x27')][_0x1683('0x1a')][_0x1683('0xd')]('TrackChangesEditing');_0x355041[_0x1683('0x5')]('resizeTableWidth',this[_0x1683('0xf')][_0x1683('0x8')](this)),_0x355041[_0x1683('0x12')][_0x1683('0x7')](_0x1683('0x0'),'resizeTable','accept',_0x355041[_0x1683('0x12')]['getSuggestionCallback'](_0x1683('0x0'),null,_0x1683('0x11'))),_0x355041[_0x1683('0x12')]['registerCustomCallback']('formatBlock',_0x1683('0x23'),_0x1683('0x11'),_0x355041[_0x1683('0x12')]['getSuggestionCallback'](_0x1683('0x0'),null,'accept')),_0x355041[_0x1683('0x18')][_0x1683('0x10')](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3d51bc,_0x49371b){const _0x265974=this[_0x1683('0x27')]['plugins'][_0x1683('0xd')](_0x1683('0x13')),_0x145038=this[_0x1683('0x27')]['plugins'][_0x1683('0xd')]('TableColumnResizeEditing'),_0x86b25f=_0x49371b[_0x1683('0x1')]||this[_0x1683('0x27')][_0x1683('0xa')][_0x1683('0xe')][_0x1683('0x20')][_0x1683('0x21')]();this['editor']['model'][_0x1683('0x1c')](()=>{const _0x6b06dd=_0x145038[_0x1683('0x24')](_0x86b25f);let _0x833b89=_0x6b06dd?_0x145038[_0x1683('0x26')](_0x6b06dd):null,_0x2cbccc=_0x86b25f[_0x1683('0x1f')](_0x1683('0x9'))||null;const _0x2b7d47=_0x49371b[_0x1683('0x9')]||_0x2cbccc,_0x30e8a9=_0x49371b[_0x1683('0x4')]||_0x833b89,_0x28c366=this[_0x1683('0x27')]['plugins'][_0x1683('0xd')](_0x1683('0xc'))['me'];for(const _0x33177e of _0x265974[_0x1683('0x3')]()){const _0x363472=_0x33177e[_0x1683('0x25')]();if(_0x1683('0x23')===_0x33177e[_0x1683('0x22')]&&_0x363472===_0x86b25f){_0x33177e['author']!==_0x28c366&&_0x33177e[_0x1683('0x11')]();const _0x1a2a8e=_0x33177e['data'][_0x1683('0x14')];_0x2cbccc=_0x1a2a8e[0x0][_0x1683('0x9')],_0x833b89=_0x1a2a8e[0x0][_0x1683('0x4')];break;}}_0x3d51bc({'table':_0x86b25f,'tableWidth':_0x2b7d47,'columnWidths':_0x30e8a9}),_0x265974[_0x1683('0x6')](_0x86b25f,{'commandName':_0x1683('0x19'),'commandParams':[{'tableWidth':_0x2cbccc,'columnWidths':_0x833b89}],'formatGroupId':_0x1683('0x23')},[],_0x1683('0x23'));});}[_0x1683('0x1e')](_0x1ddb3a){if('formatBlock'!=_0x1ddb3a[_0x1683('0xb')]&&_0x1683('0x2')!=_0x1ddb3a['type'])return;const {data:_0x18d70d}=_0x1ddb3a;if(_0x18d70d&&_0x1683('0x23')===_0x18d70d['formatGroupId']){const _0xe8d530='*Format:*\x20resize\x20table';return{'type':_0x1683('0x1b'),'content':_0x69713e(this[_0x1683('0x27')][_0x1683('0x1d')],_0xe8d530)};}}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tableheadings
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TrackChangesTable from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10ce=['stop','TableUtils','mapper','setTableRowHeader','editing','_acceptFormatSuggestionCallbackFactory','removeClass','requires','nodeAfter','bindElementToMarker','showSuggestionHighlights','getCellLocation','highest','removeAttribute','registerAttributeLabel','item','markerRange','_descriptionFactory','forceValue','writer','formatBlock','editor','consumable','includes','FORMAT_HEADER_ROW','has','name','*Format:*\x20%0','format','TableEditing','type','TrackChangesEditing','data','parent','plugins','registerCustomCallback','locale','_registerLegacyDescription','_suggestionFactory','ck-suggestion-marker-','addMarker:suggestion','activeMarkers','commandParams','registerDescriptionCallback','afterInit','setAttribute','commandName','ck-suggestion-marker--active','data-suggestion','get','FORMAT_HEADER_COLUMN','setTableColumnHeader','downcastDispatcher','markerName','start','headingRows','removeMarker:suggestion','_splitMarkerName','unbindElementFromMarkerName','end','cell','nodeBefore','_enableDefaultAttributesIntegration','accept','consume','markerNameToElements'];(function(_0x54cf8c,_0x10ce8){const _0x569260=function(_0x426457){while(--_0x426457){_0x54cf8c['push'](_0x54cf8c['shift']());}};_0x569260(++_0x10ce8);}(_0x10ce,0x1c8));const _0x5692=function(_0x54cf8c,_0x10ce8){_0x54cf8c=_0x54cf8c-0x0;let _0x569260=_0x10ce[_0x54cf8c];return _0x569260;};import{Plugin as _0x52b7c7}from'ckeditor5/src/core.js';import _0x510a31 from'./table.js';import{getTranslation as _0x27d7b5}from'../utils/common-translations.js';export default class St extends _0x52b7c7{static get[_0x5692('0xd')](){return[_0x510a31];}[_0x5692('0x32')](){const _0x17d693=this[_0x5692('0x1b')];if(!_0x17d693[_0x5692('0x28')][_0x5692('0x1f')](_0x5692('0x23')))return;const _0x106614=_0x17d693[_0x5692('0x2a')],_0x5cc5c0=_0x17d693[_0x5692('0x28')][_0x5692('0x37')]('TrackChangesEditing');_0x5cc5c0[_0x5692('0x2')](_0x5692('0x9'),[],[_0x5692('0x3d')]),_0x5cc5c0[_0x5692('0x2')]('setTableColumnHeader',[],['headingColumns']),_0x5cc5c0['_descriptionFactory'][_0x5692('0x14')](_0x5692('0x3d'),_0x27d7b5(_0x106614,_0x5692('0x1e'))),_0x5cc5c0[_0x5692('0x17')][_0x5692('0x14')]('headingColumns',_0x27d7b5(_0x106614,_0x5692('0x38'))),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cea80=this['editor'][_0x5692('0x28')][_0x5692('0x37')](_0x5692('0x25')),_0x1a5061=this[_0x5692('0x1b')][_0x5692('0x28')]['get'](_0x5692('0x7')),_0x589d1d=this['editor'][_0x5692('0x28')][_0x5692('0x37')](_0x510a31)[_0x5692('0xb')]();function _0x1bd2ea({showActiveMarker:_0xac2e17=!0x0,setDataAttribute:_0x5b4dc0=!0x0}={}){return(_0x3ce766,_0x58c819,_0x106e4f)=>{const {type:_0x7b2a17,id:_0xf45da4}=_0x5cea80[_0x5692('0x3f')](_0x58c819[_0x5692('0x3b')]),_0x29b5fe=_0x5cea80['getSuggestion'](_0xf45da4),_0x4c2e57=_0x29b5fe[_0x5692('0x26')];if(_0x5692('0x1a')!=_0x29b5fe['type']||!_0x4c2e57||'setTableColumnHeader'!=_0x4c2e57['commandName'])return;if(_0x58c819[_0x5692('0x15')])return void _0x3ce766[_0x5692('0x6')]();if(!_0x106e4f[_0x5692('0x1c')][_0x5692('0x4')](_0x58c819[_0x5692('0x16')],_0x3ce766[_0x5692('0x20')]))return;const _0x112702=_0x58c819[_0x5692('0x16')][_0x5692('0x3c')][_0x5692('0xe')],_0x22c622=_0x58c819[_0x5692('0x16')][_0x5692('0x41')][_0x5692('0x1')],_0x4b8d2e=_0x112702[_0x5692('0x27')][_0x5692('0x27')],{column:_0xf24338}=_0x1a5061[_0x5692('0x11')](_0x112702),{column:_0x333847}=_0x1a5061[_0x5692('0x11')](_0x22c622);for(let _0x40ce5c=_0xf24338;_0x40ce5c<=_0x333847;_0x40ce5c++){const _0x50fd2f=_0x1a5061['createTableWalker'](_0x4b8d2e,{'column':_0x40ce5c,'includeAllSlots':!0x1});for(const _0x56f9b5 of _0x50fd2f){const _0x4e535f=_0x56f9b5[_0x5692('0x0')],_0x3ac495=_0x106e4f[_0x5692('0x8')]['toViewElement'](_0x4e535f);_0x106e4f[_0x5692('0x19')]['addClass'](_0x5692('0x2d')+_0x7b2a17,_0x3ac495),_0x5b4dc0&&_0x106e4f[_0x5692('0x19')][_0x5692('0x33')](_0x5692('0x36'),_0xf45da4,_0x3ac495),_0x106e4f[_0x5692('0x8')][_0x5692('0xf')](_0x3ac495,_0x58c819[_0x5692('0x3b')]),_0xac2e17&&(_0x5cea80[_0x5692('0x2f')][_0x5692('0x1d')](_0x58c819[_0x5692('0x3b')])?_0x106e4f[_0x5692('0x19')]['addClass'](_0x5692('0x35'),_0x3ac495):_0x106e4f['writer'][_0x5692('0xc')](_0x5692('0x35'),_0x3ac495));}}};}_0x5cea80[_0x5692('0x2c')][_0x5692('0x29')](_0x5692('0x1a'),'setTableRowHeader','accept',_0x589d1d),_0x5cea80[_0x5692('0x2c')][_0x5692('0x29')](_0x5692('0x1a'),_0x5692('0x39'),_0x5692('0x3'),_0x589d1d),this[_0x5692('0x1b')]['editing'][_0x5692('0x3a')]['on']('addMarker:suggestion',_0x1bd2ea(),{'priority':'highest'}),this[_0x5692('0x1b')][_0x5692('0x26')][_0x5692('0x3a')]['on'](_0x5692('0x2e'),(_0x11e3b6,_0x3d824d,_0x262031)=>{_0x262031['options'][_0x5692('0x10')]&&_0x1bd2ea({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11e3b6,_0x3d824d,_0x262031);},{'priority':_0x5692('0x12')}),this[_0x5692('0x1b')][_0x5692('0xa')]['downcastDispatcher']['on'](_0x5692('0x3e'),(_0x20b9a4,_0x51bf1f,_0x2d6106)=>{const {type:_0x1cbba8,id:_0x453953}=_0x5cea80[_0x5692('0x3f')](_0x51bf1f[_0x5692('0x3b')]),_0x1b03a5=_0x5cea80['getSuggestion'](_0x453953),_0x26fc91=_0x1b03a5[_0x5692('0x26')];if('formatBlock'!=_0x1b03a5[_0x5692('0x24')]||!_0x26fc91||_0x5692('0x39')!=_0x26fc91[_0x5692('0x34')])return;const _0x37525e=_0x2d6106['mapper'][_0x5692('0x5')](_0x51bf1f['markerName']);if(_0x37525e)for(const _0x3ab0f5 of _0x37525e)_0x2d6106[_0x5692('0x19')]['removeClass'](_0x5692('0x2d')+_0x1cbba8,_0x3ab0f5),_0x2d6106['writer'][_0x5692('0xc')](_0x5692('0x35'),_0x3ab0f5),_0x2d6106[_0x5692('0x19')][_0x5692('0x13')]('data-suggestion',_0x3ab0f5),_0x2d6106[_0x5692('0x8')][_0x5692('0x40')](_0x3ab0f5,_0x51bf1f[_0x5692('0x3b')]);},{'priority':_0x5692('0x12')}),this[_0x5692('0x2b')]();}[_0x5692('0x2b')](){const _0x4459a5=this['editor'],_0x558586=_0x4459a5[_0x5692('0x2a')];function _0x166a17(_0x4b2c7a){return{'type':_0x5692('0x22'),'content':_0x27d7b5(_0x558586,_0x5692('0x21'),_0x4b2c7a)};}_0x4459a5[_0x5692('0x28')][_0x5692('0x37')]('TrackChangesEditing')[_0x5692('0x17')][_0x5692('0x31')](_0x57a308=>{if('formatBlock'!=_0x57a308[_0x5692('0x24')])return;const {data:_0x345f24}=_0x57a308;if(_0x345f24){if(_0x5692('0x9')==_0x345f24[_0x5692('0x34')]){const _0x441e66=_0x345f24[_0x5692('0x30')][0x0][_0x5692('0x18')];return _0x166a17(_0x27d7b5(_0x558586,_0x441e66?_0x5692('0x1e'):'FORMAT_REGULAR_ROW'));}if(_0x5692('0x39')==_0x345f24[_0x5692('0x34')]){const _0x460ff4=_0x345f24['commandParams'][0x0][_0x5692('0x18')];return _0x166a17(_0x27d7b5(_0x558586,_0x460ff4?_0x5692('0x38'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tablemergesplit
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TrackChangesTable from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
|
|
12
12
|
*/
|