@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.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/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4095=['getSuggestionCallback','type','tablePasteRow','selection','root','from','setAttribute','options','reduce','elementToElement','_getCoordsForCells','paragraph','deletion','differ','getSelectionAffectedTableCells','fill','nodeAfter','move','conversion','_suggestionFactory','_tablePostFixingSubtypes','length','low','for','return','getTableIfOnlyTableInContent','nextSibling','clipboardOutput','element','setAttributes','redo','first','dataDowncast','requires','editor','createElement','tableCellVerticalAlignment','map','removeMarker','findAncestor','entries','locale','getRange','getAllAdjacentSuggestions','suggestion:formatBlock:tablePasteCell','getRows','registerDescriptionCallback','get','formatBlock','name','model','_replaceTableSlotCell','Users','showSuggestionHighlights','_splitMarkerName','end','last','subType','content','tablePasteColumn','$graveyard','getContainedElement','_isForcedDefaultExecutionBlock','tablePaste','join','add','TableClipboard','tableCellBorderStyle','removeMarkers','getChild','start','insertColumns','tableCell','unwrap','fromEntries','TableUtils','isInContent','change','markMultiRangeDeletion','tableCellHorizontalAlignment','set','document','getSuggestions','table','_descriptionFactory','documentSelection','insertion','tableCellBorderColor','listenTo','stop','createRangeIn','isEqual','ck-suggestion-marker-insertion','commands','getMarkers','isEmpty','suggestion','registerPostFixer','keys','tableCellSuggestion','has','columnInsertionIndexes','previous','includes','getRowIndexes','createRangeOn','registerCustomCallback','activeMarkers','cells','accept','tablePasteChainId','insertContent','getChangedMarkers','rootName','rowInsertionRanges','previousSibling','find','schema','oldRange','value','remove','markerToHighlight','position','cell','rowInsertionIndexes','removeRows','markerName','register','ck-suggestion-marker','suggestionUnloaded','column','createPositionBefore','wrap','markMultiRangeInsertion','insert','discard','tablePasteCell','removeColumns','newRange','tableCellBackgroundColor','attributes','editing','getShiftedBy','getRanges','suggestion-td','high','TrackChangesEditing','_createdBatches','afterInit','plugins','updateMarker','markMultiRangeBlockFormat','createTableWalker','push','trackChanges','insertRows','filter','row','getChildren','markerAttributes','startsWith'];(function(_0x28fcc8,_0x40953c){const _0xf82212=function(_0x1d7580){while(--_0x1d7580){_0x28fcc8['push'](_0x28fcc8['shift']());}};_0xf82212(++_0x40953c);}(_0x4095,0x110));const _0xf822=function(_0x28fcc8,_0x40953c){_0x28fcc8=_0x28fcc8-0x0;let _0xf82212=_0x4095[_0x28fcc8];return _0xf82212;};import{getTranslation as _0x48c1fc}from'../utils/common-translations';import{Plugin as _0x5c1e43}from'ckeditor5/src/core';import{uid as _0x1b030c,priorities as _0xebabc8}from'ckeditor5/src/utils';import _0x3a9bb2 from'./table';const le=['tableCellBorderWidth',_0xf822('0x89'),_0xf822('0x75'),_0xf822('0x81'),_0xf822('0x56'),_0xf822('0x1c'),'tableCellPadding'],ae=Object['fromEntries'](le[_0xf822('0x57')](_0xbab6e6=>[_0xbab6e6,null]));export default class kt extends _0x5c1e43{static get[_0xf822('0x53')](){return[_0x3a9bb2];}[_0xf822('0x25')](){const _0x57afb6=this[_0xf822('0x54')];if(!_0x57afb6[_0xf822('0x26')][_0xf822('0x96')](_0xf822('0x74')))return;const _0xd6882a=_0x57afb6['plugins'][_0xf822('0x61')](_0xf822('0x23')),_0xee7190=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0xf822('0x7d')),_0x18cba9=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0x3a9bb2),_0x3410be=_0x57afb6[_0xf822('0x26')]['get'](_0xf822('0x74'));_0x18cba9[_0xf822('0x46')][_0xf822('0x2a')](_0xf822('0x34'),_0xf822('0x6d')),_0x57afb6[_0xf822('0x64')][_0xf822('0x6')][_0xf822('0x10')](_0xf822('0x95'),{'allowIn':'tableCell','allowContentOf':_0xf822('0x7a'),'isLimit':!0x0}),_0x57afb6['conversion'][_0xf822('0x3b')]({'model':'tableCellSuggestion','view':_0xf822('0x21')});let _0x1fcd3f=null;_0x57afb6[_0xf822('0x64')]['on'](_0xf822('0x0'),(_0x1d8888,_0x1fd8b0)=>{const [_0x264751,_0x1bbaa2]=_0x1fd8b0,_0x299ed6=_0x1fd8b0[_0x1fd8b0[_0xf822('0x47')]-0x1];_0x299ed6&&_0x299ed6['forceDefaultExecution']||_0xd6882a[_0xf822('0x70')]||this['editor'][_0xf822('0x8f')][_0xf822('0x61')](_0xf822('0x2b'))[_0xf822('0x8')]&&function(_0x407fd9,_0xb45258,_0x21fe07,_0x248284,_0x1130bb){if(_0xb45258&&!_0xb45258['is'](_0xf822('0x87')))return!0x1;const _0xf3d2e8=_0x1130bb[_0xf822('0x4b')](_0x407fd9,_0x21fe07);if(!_0xf3d2e8||!fe(_0xf3d2e8,void 0x0,_0x248284))return!0x1;const _0x2eb33b=_0x248284[_0xf822('0x40')](_0x21fe07['document'][_0xf822('0x35')]);if(!_0x2eb33b[_0xf822('0x47')])return!0x1;const _0x376f3f=_0x2eb33b[0x0][_0xf822('0x59')]('table'),_0x5d77f0=_0x248284[_0xf822('0x9a')](_0x2eb33b),_0x134127=_0x248284['getColumnIndexes'](_0x2eb33b),_0x2116ce={'startRow':_0x5d77f0['first'],'endRow':_0x5d77f0[_0xf822('0x6a')],'startColumn':_0x134127[_0xf822('0x51')],'endColumn':_0x134127[_0xf822('0x6a')]};return 0x1==_0x2eb33b['length']&&(_0x2116ce['endRow']+=_0x248284[_0xf822('0x5f')](_0xf3d2e8)-0x1,_0x2116ce['endColumn']+=_0x248284['getColumns'](_0xf3d2e8)-0x1),fe(_0x376f3f,_0x2116ce,_0x248284);}(_0x264751,_0x1bbaa2,_0x57afb6[_0xf822('0x64')],_0xee7190,_0x3410be)&&(_0x1d8888[_0xf822('0x8b')](),_0x1fcd3f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x57afb6[_0xf822('0x64')][_0xf822('0x7f')](()=>{_0x57afb6[_0xf822('0x64')][_0xf822('0x0')](_0x1fd8b0[0x0],_0x1fd8b0[0x1],_0x1fd8b0[0x2],{'forceDefaultExecution':!0x0});const _0x53e331=_0x1b030c(),{rowInsertionRanges:_0x427bb1,columnInsertionRanges:_0x5c8595,insertionRanges:_0x33f5dc,deletionRanges:_0x87312e,cells:_0x331a67}=_0x1fcd3f;_0x427bb1[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x16')](_0x427bb1,_0xf822('0x34'),{'tablePasteChainId':_0x53e331}),_0x5c8595[_0xf822('0x47')]&&_0xd6882a['markMultiRangeInsertion'](_0x5c8595,'tablePasteColumn',{'tablePasteChainId':_0x53e331}),_0x33f5dc[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x16')](_0x33f5dc,_0xf822('0x71'),{'tablePasteChainId':_0x53e331,'skipNestingCheck':!0x0}),_0x87312e[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x80')](_0x87312e,'tablePaste',{'tablePasteChainId':_0x53e331,'skipNestingCheck':!0x0});const _0x1661f5=_0xd6882a[_0xf822('0x28')](_0x331a67['map'](({element:_0x584201})=>_0x584201),{'formatGroupId':_0x1b030c()},[],_0xf822('0x19'),{'tablePasteChainId':_0x53e331});if(_0x1661f5){const _0x2eceda=_0x1661f5[_0xf822('0x90')](),_0x3e7df3=[];for(const {element:_0x5cd3a9,attributes:_0x5a4ddd}of _0x331a67){if(!_0x5a4ddd)continue;const _0x1352f0=_0x57afb6['model'][_0xf822('0x9b')](_0x5cd3a9),_0x36e6ab=_0x2eceda['find'](_0x3a579c=>_0x3a579c[_0xf822('0x5c')]()['isEqual'](_0x1352f0));_0x36e6ab&&_0x3e7df3[_0xf822('0x2a')]([_0x36e6ab[_0xf822('0x63')],_0x5a4ddd]);}_0x3e7df3['length']&&_0x1661f5[_0xf822('0x38')](_0xf822('0x30'),Object[_0xf822('0x7c')](_0x3e7df3));}_0x1fcd3f=null;}));},{'priority':_0xebabc8[_0xf822('0x22')]+0xa}),_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0xf822('0x74'))['on'](_0xf822('0x65'),(_0x41657e,_0x1fe272)=>{const [_0xe56baa,_0x5d1830,,_0x1eafc7]=_0x1fe272;if(!_0x1fcd3f)return;_0x41657e['stop']();const _0xbc4abf=_0xe56baa[_0xf822('0xc')],_0x52c7b9=_0x5d1830,_0x285ced=ce(_0xbc4abf),_0x5a50fe=ce(_0x52c7b9);_0x41657e[_0xf822('0x4a')]=_0xbc4abf;let _0x506422=null,_0x2685f3=null;if(_0x5a50fe||_0x285ced){if(_0x285ced&&!_0x5a50fe){_0x1eafc7[_0xf822('0x9')](_0xbc4abf[_0xf822('0x77')](0x0));for(const _0x30127a of Array['from'](_0x52c7b9[_0xf822('0x2f')]()))_0x1eafc7[_0xf822('0x17')](_0x30127a,_0xbc4abf,_0xf822('0x69'));const _0x444029=_0x1fcd3f[_0xf822('0xd')]['includes'](_0xe56baa[_0xf822('0x2e')]),_0x29241f=_0x1fcd3f[_0xf822('0x97')][_0xf822('0x99')](_0xe56baa[_0xf822('0x13')]);_0x444029||_0x29241f||(_0x506422=_0x1eafc7[_0xf822('0x8c')](_0xbc4abf));}else _0x5a50fe&&!_0x285ced&&(_0x2685f3=_0x1eafc7[_0xf822('0x8c')](_0xbc4abf));}else{const _0xacb8df=_0x1eafc7['createElement'](_0xf822('0x95')),_0x49da29=_0x1eafc7[_0xf822('0x55')](_0xf822('0x95'));_0x1eafc7[_0xf822('0x15')](_0x1eafc7[_0xf822('0x8c')](_0xbc4abf),_0x49da29),_0x1eafc7['insert'](_0xacb8df,_0xbc4abf,0x0);for(const _0x10d4da of Array[_0xf822('0x37')](_0x52c7b9[_0xf822('0x2f')]()))_0x1eafc7['insert'](_0x10d4da,_0xacb8df,_0xf822('0x69'));_0x506422=_0x1eafc7[_0xf822('0x9b')](_0xacb8df),_0x2685f3=_0x1eafc7[_0xf822('0x9b')](_0x49da29);}const _0x4862de=Array[_0xf822('0x37')](_0x52c7b9['getAttributes']())[_0xf822('0x2d')](([_0x1b3820])=>le[_0xf822('0x99')](_0x1b3820));_0x1fcd3f[_0xf822('0x9e')]['push']({'element':_0xbc4abf,'attributes':_0x4862de[_0xf822('0x47')]?Object[_0xf822('0x7c')](_0x4862de):null}),_0x506422&&_0x1fcd3f['insertionRanges'][_0xf822('0x2a')](_0x506422),_0x2685f3&&_0x1fcd3f['deletionRanges'][_0xf822('0x2a')](_0x2685f3);},{'priority':_0xf822('0x22')}),_0xee7190['on'](_0xf822('0x79'),(_0x25a455,_0x1a5c6c)=>{const [_0x149b4d,_0x556f3c={}]=_0x1a5c6c;if(!_0x1fcd3f)return;const _0x2ad3be=_0x556f3c['at']||0x0,_0x285dd4=_0x556f3c['columns']||0x1;_0x1fcd3f['columnInsertionIndexes']=new Array(_0x285dd4)[_0xf822('0x41')](_0x2ad3be)[_0xf822('0x57')]((_0x3bb667,_0xbee87e)=>_0x3bb667+_0xbee87e);for(const {cell:_0x2c6d87}of _0xee7190[_0xf822('0x29')](_0x149b4d,{'startColumn':_0x2ad3be,'endColumn':_0x2ad3be+_0x285dd4-0x1}))_0x1fcd3f['columnInsertionRanges']['push'](_0x57afb6[_0xf822('0x64')][_0xf822('0x9b')](_0x2c6d87));},{'priority':_0xf822('0x48')}),_0xee7190['on'](_0xf822('0x2c'),(_0x8c0ae8,_0x264b2e)=>{const [_0x4f6c8a,_0x26bcd={}]=_0x264b2e;if(!_0x1fcd3f)return;const _0x1c39dc=_0x26bcd['at']||0x0,_0x3b24c1=_0x26bcd['rows']||0x1;_0x1fcd3f['rowInsertionIndexes']=new Array(_0x3b24c1)[_0xf822('0x41')](_0x1c39dc)[_0xf822('0x57')]((_0x3991ef,_0x4d200a)=>_0x3991ef+_0x4d200a);for(const {cell:_0x5791ba}of _0xee7190[_0xf822('0x29')](_0x4f6c8a,{'startRow':_0x1c39dc,'endRow':_0x1c39dc+_0x3b24c1-0x1}))_0x1fcd3f[_0xf822('0x3')]['push'](_0x57afb6[_0xf822('0x64')][_0xf822('0x9b')](_0x5791ba));},{'priority':_0xf822('0x48')}),_0xd6882a[_0xf822('0x86')][_0xf822('0x60')](_0x3b0259=>{if(_0x3b0259['subType']&&_0x3b0259[_0xf822('0x6b')][_0xf822('0x31')](_0xf822('0x71')))return _0x3b0259[_0xf822('0x98')]?{}:{'type':_0xf822('0x88'),'content':_0x48c1fc(_0x57afb6[_0xf822('0x5b')],'*Replace\x20table\x20cells*')};});const _0x51205e=()=>{};for(const _0x162998 of[_0xf822('0x71'),_0xf822('0x6d'),'tablePasteRow',_0xf822('0x19')])_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x88'),_0x162998,_0xf822('0x72'),_0x51205e),_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x3e'),_0x162998,_0xf822('0x72'),_0x51205e);_0xd6882a['_suggestionFactory'][_0xf822('0x9c')](_0xf822('0x62'),_0xf822('0x19'),_0xf822('0x18'),_0x51205e),_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x62'),_0xf822('0x19'),'accept',(_0x46d889,_0x3c94e5,_0x39e921)=>{const _0x1a67f8=_0x46d889[_0xf822('0x57')](_0x4c55a1=>_0x4c55a1['getContainedElement']())[_0xf822('0x2d')](_0xaf812f=>_0xaf812f),_0xbfa45e=new Map(_0x1a67f8['map'](_0x3c2b39=>[_0x3c2b39,null]));if(_0x1fcd3f)for(const {element:_0x3e4a1b,attributes:_0x340774}of _0x1fcd3f[_0xf822('0x9e')])_0x340774&&_0xbfa45e['set'](_0x3e4a1b,_0x340774);else{if(_0x39e921&&_0x39e921['markerAttributes'])for(const [_0x4eebf4,_0x50b98d]of Object[_0xf822('0x5a')](_0x39e921['markerAttributes'])){const _0x26706a=_0x57afb6[_0xf822('0x64')]['markers'][_0xf822('0x61')](_0x4eebf4),_0xcdc128=_0x26706a?_0x26706a['getRange']()[_0xf822('0x6f')]():null;_0xcdc128&&_0xbfa45e[_0xf822('0x82')](_0xcdc128,_0x50b98d);}}_0x57afb6[_0xf822('0x64')]['change'](_0x111ac0=>{for(const [_0x572f4d,_0x5e3ca1]of _0xbfa45e)_0x111ac0[_0xf822('0x4f')]({...ae,..._0x5e3ca1},_0x572f4d);});});const _0x279e42=(_0x3606fc,_0x15654a)=>{_0xd6882a[_0xf822('0x45')]['registerCustomCallback'](_0x3606fc,_0xf822('0x71'),_0x15654a,(_0x296a23,_0x241153,_0x17480a)=>{_0x57afb6[_0xf822('0x64')]['change'](_0x7f8630=>{const _0x232fd3=[];for(const _0x4d4188 of _0x296a23){const _0x3dc3a7=_0x4d4188[_0xf822('0x78')][_0xf822('0x42')];_0x3dc3a7['is'](_0xf822('0x4e'),_0xf822('0x95'))&&_0x232fd3[_0xf822('0x2a')](_0x3dc3a7);}_0xd6882a[_0xf822('0x45')][_0xf822('0x32')](_0x3606fc,null,_0x15654a)(_0x296a23,_0x241153,_0x17480a);for(const _0x2c7021 of _0x232fd3)_0xf822('0x6e')!=_0x2c7021[_0xf822('0x36')][_0xf822('0x2')]&&_0x7f8630[_0xf822('0x7b')](_0x2c7021);});});};_0x279e42(_0xf822('0x88'),_0xf822('0x9f')),_0x279e42(_0xf822('0x88'),_0xf822('0x18')),_0x279e42(_0xf822('0x3e'),_0xf822('0x9f')),_0x279e42(_0xf822('0x3e'),_0xf822('0x18')),_0xd6882a['_suggestionFactory'][_0xf822('0x9c')](_0xf822('0x88'),_0xf822('0x34'),_0xf822('0x18'),_0x2697a0=>{const _0x251158=_0x2697a0['map'](_0x5138d8=>_0x5138d8['getContainedElement']()),_0x473d0a=_0x251158[0x0][_0xf822('0x59')](_0xf822('0x85')),{minRow:_0x2ed61e,maxRow:_0x53a6a6}=_0x18cba9[_0xf822('0x3c')](_0x251158);_0xee7190[_0xf822('0xe')](_0x473d0a,{'at':_0x2ed61e,'rows':_0x53a6a6-_0x2ed61e+0x1});}),_0xd6882a[_0xf822('0x45')]['registerCustomCallback'](_0xf822('0x88'),_0xf822('0x6d'),'discard',_0x35bad3=>{const _0x6d9a4e=_0x35bad3[_0xf822('0x57')](_0xb5a169=>_0xb5a169[_0xf822('0x6f')]()),_0x50ee70=_0x6d9a4e[0x0][_0xf822('0x59')](_0xf822('0x85')),{minColumn:_0x21bdb5,maxColumn:_0x26c5b4}=_0x18cba9['_getCoordsForCells'](_0x6d9a4e);_0xee7190[_0xf822('0x1a')](_0x50ee70,{'at':_0x21bdb5,'columns':_0x26c5b4-_0x21bdb5+0x1});});const _0x376469=(_0x14754d,_0x288fd1)=>{if(!_0x288fd1[_0xf822('0x6b')]||!_0x288fd1[_0xf822('0x6b')][_0xf822('0x31')](_0xf822('0x71')))return;const _0x58dc24=_0x288fd1[_0xf822('0x1d')]['tablePasteChainId'],_0x41d142=_0xd6882a['getSuggestions']()['filter'](_0x1adb72=>_0x1adb72[_0xf822('0x7e')]&&_0x1adb72['attributes']&&_0x1adb72['attributes']['tablePasteChainId']==_0x58dc24);_0x41d142[_0xf822('0x47')]&&_0x288fd1['getAllAdjacentSuggestions']()['length']!=_0x41d142['length']&&_0x41d142[_0xf822('0x3a')]((_0x2e123d,_0xd6c943)=>(_0x2e123d['next']=_0xd6c943,_0xd6c943[_0xf822('0x98')]=_0x2e123d,_0xd6c943));};function _0xd6475f(_0xb2cbfa,_0x407ab9=!0x0){const {id:_0x59ad00}=_0xd6882a[_0xf822('0x68')](_0xb2cbfa['markerName']),_0x24e174=[_0xf822('0x11'),_0xf822('0x8e')],_0x3151b9=_0xd6882a[_0xf822('0x9d')][_0xf822('0x99')](_0xb2cbfa[_0xf822('0xf')]);return _0x3151b9&&_0x24e174[_0xf822('0x2a')]('ck-suggestion-marker--active'),{'classes':_0x24e174,'attributes':{'data-suggestion':_0x59ad00},'priority':_0x3151b9&&_0x407ab9?0xbc2:0xbb8};}_0xd6882a['on']('suggestionLoaded',_0x376469,{'priority':_0xf822('0x22')}),_0xd6882a['on'](_0xf822('0x12'),_0x376469,{'priority':_0xf822('0x22')}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')]['registerPostFixer'](()=>{let _0x101747=!0x1;const _0x50101d=Array[_0xf822('0x37')](_0x57afb6['model']['document'][_0xf822('0x3f')][_0xf822('0x1')]());for(const {name:_0x501b17,data:_0x49bce3}of _0x50101d){const {group:_0x527516,type:_0x101e12,id:_0x547784}=_0xd6882a['_splitMarkerName'](_0x501b17);if(_0xf822('0x92')!=_0x527516||_0xf822('0x3e')!=_0x101e12||_0x49bce3[_0xf822('0x7')])continue;if(!_0xd6882a['hasSuggestion'](_0x547784))continue;const _0x48f6bd=_0xd6882a['getSuggestion'](_0x547784)[_0xf822('0x20')](),_0x23e3b6=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')]('Users')['me'];for(const _0x1ba9da of _0xd6882a['getSuggestions']()){if(!_0x1ba9da[_0xf822('0x7e')]||_0x1ba9da['author']!=_0x23e3b6)continue;if(_0xf822('0x62')!=_0x1ba9da[_0xf822('0x33')]||'tablePasteCell'!=_0x1ba9da[_0xf822('0x6b')])continue;if(_0x1ba9da[_0xf822('0x20')]()['every'](_0x3616f1=>_0x48f6bd['some'](_0x4c31b6=>_0x4c31b6['containsRange'](_0x3616f1,!0x0))))for(const _0x575552 of _0x1ba9da[_0xf822('0x5d')]())_0x575552['isInContent']&&(_0x575552[_0xf822('0x18')](),_0x101747=!0x0);}}return _0x101747;}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')][_0xf822('0x93')](_0x58608b=>{const _0x55e5c2=_0x57afb6[_0xf822('0x8f')][_0xf822('0x61')](_0xf822('0x50'));if(!_0x55e5c2||!_0x55e5c2[_0xf822('0x24')][_0xf822('0x96')](_0x58608b['batch']))return!0x1;let _0x228980=!0x1;const _0x47c2c0=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')]('Users')['me'],_0xacd11d=_0x57afb6[_0xf822('0x64')]['document'][_0xf822('0x3f')]['getChanges'](),_0x2ec06b=Array['from'](_0x57afb6[_0xf822('0x64')]['document'][_0xf822('0x3f')]['getChangedMarkers']())[_0xf822('0x2d')](({name:_0x5e963d,data:_0x375fec})=>{const {group:_0x22578d,subType:_0x5a63df,authorId:_0xaf9727}=_0xd6882a['_splitMarkerName'](_0x5e963d);return _0xf822('0x92')==_0x22578d&&_0xf822('0x71')==_0x5a63df&&_0xaf9727==_0x47c2c0['id']&&!_0x375fec['oldRange'];});for(const _0x15c9eb of _0xacd11d){if(_0xf822('0x17')!=_0x15c9eb[_0xf822('0x33')]||'tableCellSuggestion'!=_0x15c9eb[_0xf822('0x63')]||0x1!=_0x15c9eb['length'])continue;const _0x1badb5=_0x58608b['createRange'](_0x15c9eb[_0xf822('0xb')],_0x15c9eb[_0xf822('0xb')][_0xf822('0x1f')](0x1));if(!_0x2ec06b[_0xf822('0x5')](({data:_0x2b9524})=>_0x2b9524[_0xf822('0x1b')][_0xf822('0x8d')](_0x1badb5)))for(const {name:_0x582958,data:_0x3ce799}of _0x2ec06b)if(_0x1badb5['containsRange'](_0x3ce799[_0xf822('0x1b')])){_0x58608b[_0xf822('0x27')](_0x582958,{'range':_0x1badb5}),_0x228980=!0x0;break;}}return _0x228980;}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')][_0xf822('0x93')](_0x4c56e5=>{let _0x2cb500=!0x1;const _0x1af51f=_0x57afb6['plugins'][_0xf822('0x61')](_0xf822('0x66'))['me'],_0x3e8f73=_0xd6882a[_0xf822('0x84')]()[_0xf822('0x2d')](_0x121c57=>_0x121c57[_0xf822('0x7e')]&&_0x121c57['author']==_0x1af51f),_0x1cdba8=new Set(),_0x1b5a12=new Set();for(const _0x55aba8 of _0x3e8f73)if(_0xf822('0x71')==_0x55aba8[_0xf822('0x6b')])for(const _0x14e969 of _0x55aba8[_0xf822('0x90')]()){const _0x39f0fc=_0x14e969[_0xf822('0x5c')]()[_0xf822('0x6f')]();if(_0x39f0fc){if(_0x39f0fc['is'](_0xf822('0x4e'),_0xf822('0x95'))&&ce(_0x39f0fc)){_0x55aba8[_0xf822('0x58')](_0x14e969[_0xf822('0x63')]),_0x1cdba8[_0xf822('0x73')](_0x39f0fc),_0x2cb500=!0x0;const _0x5a0f4d=_0x39f0fc[_0xf822('0x4c')],_0x2e7402=_0x39f0fc[_0xf822('0x4')],_0x1ca7e5=_0x5a0f4d&&_0x5a0f4d['is']('element',_0xf822('0x95')),_0x4966d3=_0x2e7402&&_0x2e7402['is'](_0xf822('0x4e'),_0xf822('0x95'));_0x1ca7e5&&!_0x1cdba8[_0xf822('0x96')](_0x5a0f4d)&&_0x1b5a12[_0xf822('0x73')](_0x5a0f4d),_0x4966d3&&!_0x1cdba8[_0xf822('0x96')](_0x2e7402)&&_0x1b5a12[_0xf822('0x73')](_0x2e7402);}else _0x39f0fc['is']('element',_0xf822('0x3d'))&&_0x39f0fc['isEmpty']&&(_0x55aba8[_0xf822('0x58')](_0x14e969['name']),_0x2cb500=!0x0);}}else{if('tablePasteCell'==_0x55aba8[_0xf822('0x6b')]){if(!_0x55aba8['attributes']||!_0x55aba8[_0xf822('0x1d')][_0xf822('0xa0')])continue;const _0x20a15b=_0x55aba8[_0xf822('0x1d')][_0xf822('0x30')];if(_0x20a15b&&Object[_0xf822('0x94')](_0x20a15b)[_0xf822('0x47')])continue;const _0x1f067d=_0x55aba8[_0xf822('0x1d')]['tablePasteChainId'];let _0x37c812=!0x0,_0x48fb5b=!0x0;for(const _0xc4d0fb of _0x3e8f73)if(_0xc4d0fb['subType']&&_0xc4d0fb[_0xf822('0x6b')]['startsWith'](_0xf822('0x71'))){if(!_0xc4d0fb[_0xf822('0x1d')]['tablePasteChainId']){_0x48fb5b=!0x1;break;}if(_0xc4d0fb['id']!=_0x55aba8['id']&&_0xc4d0fb['attributes']['tablePasteChainId']==_0x1f067d){_0x37c812=!0x1;break;}}_0x48fb5b&&_0x37c812&&(_0x55aba8[_0xf822('0x76')](),_0x2cb500=!0x0);}}for(const _0x1fe097 of _0x1cdba8)_0x4c56e5[_0xf822('0x9')](_0x1fe097);for(const _0x37c9b3 of _0x1b5a12)_0x4c56e5[_0xf822('0x7b')](_0x37c9b3);return _0x2cb500;}),_0x57afb6[_0xf822('0x44')][_0xf822('0x49')]('editingDowncast')[_0xf822('0xa')]({'model':_0xf822('0x5e'),'view':(_0x46b0b4,_0x38d0c3)=>_0xd6475f(_0x46b0b4),'converterPriority':_0xf822('0x22')}),_0x57afb6['conversion'][_0xf822('0x49')](_0xf822('0x52'))[_0xf822('0xa')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x123a70,_0x18ecea)=>_0x18ecea[_0xf822('0x39')][_0xf822('0x67')]?_0xd6475f(_0x123a70,!0x1):null,'converterPriority':_0xf822('0x22')});const _0x18fee5=_0x57afb6[_0xf822('0x1e')]['view'];this[_0xf822('0x8a')](_0x18fee5[_0xf822('0x83')],_0xf822('0x4d'),(_0x1cb377,_0x424c28)=>{const _0x3e45f4=[];for(const _0x12d754 of _0x18fee5[_0xf822('0x8c')](_0x424c28[_0xf822('0x6c')])['getItems']())_0x12d754['is'](_0xf822('0x4e'),_0xf822('0x21'))&&_0x3e45f4[_0xf822('0x2a')](_0x12d754);_0x18fee5[_0xf822('0x7f')](_0xff27f9=>{for(const _0x369ade of _0x3e45f4)_0xff27f9[_0xf822('0x43')](_0xff27f9['createRangeIn'](_0x369ade),_0xff27f9[_0xf822('0x14')](_0x369ade)),_0xff27f9[_0xf822('0x9')](_0x369ade);});});}}function ce(_0x30cc38){if(_0x30cc38[_0xf822('0x91')])return!0x0;const _0xd73571=_0x30cc38['getChild'](0x0);return _0xd73571['is']('element',_0xf822('0x3d'))&&_0xd73571['isEmpty'];}function fe(_0x416b8f,_0x45d9db={},_0x394d25){for(const {isAnchor:_0x142231,cellHeight:_0x21be09,cellWidth:_0x3653d7}of _0x394d25['createTableWalker'](_0x416b8f,{'includeAllSlots':!0x0,..._0x45d9db}))if(!_0x142231||0x1!=_0x21be09||0x1!=_0x3653d7)return!0x1;return!0x0;}
|
|
23
|
+
const _0x5089=['entries','find','_descriptionFactory','remove','tablePasteColumn','endColumn','previous','tableCellBorderColor','insertionRanges','insertContent','suggestionLoaded','removeColumns','dataDowncast','locale','registerCustomCallback','register','getChild','previousSibling','editingDowncast','map','createRangeIn','_getCoordsForCells','getShiftedBy','getColumnIndexes','getAllAdjacentSuggestions','has','add','row','subType','tableCellHorizontalAlignment','options','join','tablePaste','markerAttributes','fromEntries','createRangeOn','rowInsertionRanges','for','forceDefaultExecution','removeRows','endRow','high','cells','tablePasteCell','discard','tableCellSuggestion','author','redo','document','getSuggestion','some','root','trackChanges','getRange','return','table','requires','newRange','*Replace\x20table\x20cells*','tableCellBackgroundColor','suggestion:formatBlock:tablePasteCell','set','markerToHighlight','TableClipboard','registerPostFixer','setAttributes','commands','ck-suggestion-marker--active','removeMarkers','getSuggestions','suggestion-td','findAncestor','markMultiRangeInsertion','getRows','unwrap','deletion','includes','markMultiRangeDeletion','conversion','differ','filter','listenTo','getChangedMarkers','editor','model','activeMarkers','paragraph','wrap','markerName','columnInsertionIndexes','insert','name','type','Users','attributes','documentSelection','createTableWalker','getTableIfOnlyTableInContent','hasSuggestion','isEmpty','get','_splitMarkerName','createElement','content','isInContent','accept','stop','rowInsertionIndexes','getSuggestionCallback','removeMarker','_isForcedDefaultExecutionBlock','suggestionUnloaded','formatBlock','end','element','deletionRanges','_suggestionFactory','getColumns','tableCellBorderWidth','suggestion','insertion','push','from','position','getMarkers','length','_replaceTableSlotCell','columnInsertionRanges','markMultiRangeBlockFormat','tableCell','oldRange','columns','batch','view','containsRange','plugins','getContainedElement','tablePasteRow','value','getSelectionAffectedTableCells','change','registerDescriptionCallback','startsWith','tablePasteChainId','TrackChangesEditing','first','reduce','selection','low','next','cell','nodeAfter','isEqual','getRowIndexes','_tablePostFixingSubtypes','fill','TableUtils','column'];(function(_0x1e0bfd,_0x5089ed){const _0x4ecbe0=function(_0x311c9c){while(--_0x311c9c){_0x1e0bfd['push'](_0x1e0bfd['shift']());}};_0x4ecbe0(++_0x5089ed);}(_0x5089,0xe2));const _0x4ecb=function(_0x1e0bfd,_0x5089ed){_0x1e0bfd=_0x1e0bfd-0x0;let _0x4ecbe0=_0x5089[_0x1e0bfd];return _0x4ecbe0;};import{getTranslation as _0x16138d}from'../utils/common-translations';import{Plugin as _0x476fac}from'ckeditor5/src/core';import{uid as _0x87425d,priorities as _0x164959}from'ckeditor5/src/utils';import _0x3cafe6 from'./table';const le=[_0x4ecb('0x32'),_0x4ecb('0x61'),'tableCellBorderStyle',_0x4ecb('0x77'),'tableCellVerticalAlignment',_0x4ecb('0x95'),'tableCellPadding'],ae=Object['fromEntries'](le['map'](_0x302ca0=>[_0x302ca0,null]));export default class kt extends _0x476fac{static get[_0x4ecb('0x92')](){return[_0x3cafe6];}['afterInit'](){const _0x164839=this[_0x4ecb('0xf')];if(!_0x164839[_0x4ecb('0x43')][_0x4ecb('0x73')](_0x4ecb('0x99')))return;const _0x6a7ab5=_0x164839['plugins'][_0x4ecb('0x20')](_0x4ecb('0x4c')),_0x576c8e=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x58')),_0x414cdd=_0x164839[_0x4ecb('0x43')]['get'](_0x3cafe6),_0x4b761c=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x99'));_0x414cdd[_0x4ecb('0x56')][_0x4ecb('0x35')]('tablePasteRow',_0x4ecb('0x5e')),_0x164839[_0x4ecb('0x10')]['schema'][_0x4ecb('0x69')](_0x4ecb('0x87'),{'allowIn':_0x4ecb('0x3d'),'allowContentOf':_0x4ecb('0x3d'),'isLimit':!0x0}),_0x164839[_0x4ecb('0xa')]['elementToElement']({'model':'tableCellSuggestion','view':_0x4ecb('0x2')});let _0x4d53af=null;_0x164839[_0x4ecb('0x10')]['on'](_0x4ecb('0x63'),(_0x146738,_0x4e417b)=>{const [_0x4839e9,_0x4afdbe]=_0x4e417b,_0x23ae51=_0x4e417b[_0x4e417b['length']-0x1];_0x23ae51&&_0x23ae51[_0x4ecb('0x80')]||_0x6a7ab5[_0x4ecb('0x2a')]||this[_0x4ecb('0xf')][_0x4ecb('0x9c')]['get'](_0x4ecb('0x8e'))[_0x4ecb('0x46')]&&function(_0x2d0cb7,_0x402e9b,_0x4bba10,_0x4361df,_0x57d330){if(_0x402e9b&&!_0x402e9b['is'](_0x4ecb('0x1b')))return!0x1;const _0x4c31bc=_0x57d330[_0x4ecb('0x1d')](_0x2d0cb7,_0x4bba10);if(!_0x4c31bc||!fe(_0x4c31bc,void 0x0,_0x4361df))return!0x1;const _0x510017=_0x4361df[_0x4ecb('0x47')](_0x4bba10[_0x4ecb('0x8a')][_0x4ecb('0x4f')]);if(!_0x510017[_0x4ecb('0x39')])return!0x1;const _0x2b735f=_0x510017[0x0][_0x4ecb('0x3')](_0x4ecb('0x91')),_0x2a1940=_0x4361df[_0x4ecb('0x55')](_0x510017),_0x52dcb5=_0x4361df[_0x4ecb('0x71')](_0x510017),_0x557623={'startRow':_0x2a1940[_0x4ecb('0x4d')],'endRow':_0x2a1940['last'],'startColumn':_0x52dcb5[_0x4ecb('0x4d')],'endColumn':_0x52dcb5['last']};return 0x1==_0x510017['length']&&(_0x557623[_0x4ecb('0x82')]+=_0x4361df[_0x4ecb('0x5')](_0x4c31bc)-0x1,_0x557623[_0x4ecb('0x5f')]+=_0x4361df[_0x4ecb('0x31')](_0x4c31bc)-0x1),fe(_0x2b735f,_0x557623,_0x4361df);}(_0x4839e9,_0x4afdbe,_0x164839[_0x4ecb('0x10')],_0x576c8e,_0x4b761c)&&(_0x146738[_0x4ecb('0x26')](),_0x4d53af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x164839['model'][_0x4ecb('0x48')](()=>{_0x164839[_0x4ecb('0x10')]['insertContent'](_0x4e417b[0x0],_0x4e417b[0x1],_0x4e417b[0x2],{'forceDefaultExecution':!0x0});const _0x27cd1d=_0x87425d(),{rowInsertionRanges:_0x223895,columnInsertionRanges:_0x3a9268,insertionRanges:_0xe5ffbc,deletionRanges:_0x341a76,cells:_0x4dcd17}=_0x4d53af;_0x223895[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0x223895,_0x4ecb('0x45'),{'tablePasteChainId':_0x27cd1d}),_0x3a9268[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0x3a9268,'tablePasteColumn',{'tablePasteChainId':_0x27cd1d}),_0xe5ffbc[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0xe5ffbc,_0x4ecb('0x7a'),{'tablePasteChainId':_0x27cd1d,'skipNestingCheck':!0x0}),_0x341a76[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x9')](_0x341a76,'tablePaste',{'tablePasteChainId':_0x27cd1d,'skipNestingCheck':!0x0});const _0xae9f0f=_0x6a7ab5[_0x4ecb('0x3c')](_0x4dcd17[_0x4ecb('0x6d')](({element:_0x1202bc})=>_0x1202bc),{'formatGroupId':_0x87425d()},[],_0x4ecb('0x85'),{'tablePasteChainId':_0x27cd1d});if(_0xae9f0f){const _0x4512d4=_0xae9f0f[_0x4ecb('0x38')](),_0x19b355=[];for(const {element:_0x4651ff,attributes:_0x18fdb7}of _0x4dcd17){if(!_0x18fdb7)continue;const _0x2bb905=_0x164839['model'][_0x4ecb('0x7d')](_0x4651ff),_0x6d825b=_0x4512d4[_0x4ecb('0x5b')](_0x2e7c73=>_0x2e7c73[_0x4ecb('0x8f')]()[_0x4ecb('0x54')](_0x2bb905));_0x6d825b&&_0x19b355['push']([_0x6d825b[_0x4ecb('0x17')],_0x18fdb7]);}_0x19b355[_0x4ecb('0x39')]&&_0xae9f0f['setAttribute'](_0x4ecb('0x7b'),Object[_0x4ecb('0x7c')](_0x19b355));}_0x4d53af=null;}));},{'priority':_0x164959[_0x4ecb('0x83')]+0xa}),_0x164839[_0x4ecb('0x43')]['get']('TableClipboard')['on'](_0x4ecb('0x3a'),(_0x44d516,_0x4b88ed)=>{const [_0x264136,_0x108904,,_0x3e4901]=_0x4b88ed;if(!_0x4d53af)return;_0x44d516[_0x4ecb('0x26')]();const _0x2d6dad=_0x264136[_0x4ecb('0x52')],_0x3061bc=_0x108904,_0xb90857=ce(_0x2d6dad),_0x1741a7=ce(_0x3061bc);_0x44d516[_0x4ecb('0x90')]=_0x2d6dad;let _0x2aceeb=null,_0x1a0cf8=null;if(_0x1741a7||_0xb90857){if(_0xb90857&&!_0x1741a7){_0x3e4901[_0x4ecb('0x5d')](_0x2d6dad[_0x4ecb('0x6a')](0x0));for(const _0x3c7b64 of Array[_0x4ecb('0x36')](_0x3061bc['getChildren']()))_0x3e4901['insert'](_0x3c7b64,_0x2d6dad,_0x4ecb('0x2d'));const _0x1368b2=_0x4d53af[_0x4ecb('0x27')]['includes'](_0x264136[_0x4ecb('0x75')]),_0x47fa4a=_0x4d53af[_0x4ecb('0x15')][_0x4ecb('0x8')](_0x264136[_0x4ecb('0x59')]);_0x1368b2||_0x47fa4a||(_0x2aceeb=_0x3e4901['createRangeIn'](_0x2d6dad));}else _0x1741a7&&!_0xb90857&&(_0x1a0cf8=_0x3e4901[_0x4ecb('0x6e')](_0x2d6dad));}else{const _0x21e5f8=_0x3e4901[_0x4ecb('0x22')]('tableCellSuggestion'),_0xa8e6a9=_0x3e4901[_0x4ecb('0x22')](_0x4ecb('0x87'));_0x3e4901[_0x4ecb('0x13')](_0x3e4901['createRangeIn'](_0x2d6dad),_0xa8e6a9),_0x3e4901[_0x4ecb('0x16')](_0x21e5f8,_0x2d6dad,0x0);for(const _0x4e3e1c of Array[_0x4ecb('0x36')](_0x3061bc['getChildren']()))_0x3e4901[_0x4ecb('0x16')](_0x4e3e1c,_0x21e5f8,'end');_0x2aceeb=_0x3e4901[_0x4ecb('0x7d')](_0x21e5f8),_0x1a0cf8=_0x3e4901['createRangeOn'](_0xa8e6a9);}const _0x4cb5b8=Array[_0x4ecb('0x36')](_0x3061bc['getAttributes']())[_0x4ecb('0xc')](([_0x5e9a3f])=>le['includes'](_0x5e9a3f));_0x4d53af[_0x4ecb('0x84')][_0x4ecb('0x35')]({'element':_0x2d6dad,'attributes':_0x4cb5b8['length']?Object[_0x4ecb('0x7c')](_0x4cb5b8):null}),_0x2aceeb&&_0x4d53af[_0x4ecb('0x62')][_0x4ecb('0x35')](_0x2aceeb),_0x1a0cf8&&_0x4d53af[_0x4ecb('0x2f')][_0x4ecb('0x35')](_0x1a0cf8);},{'priority':_0x4ecb('0x83')}),_0x576c8e['on']('insertColumns',(_0x330e11,_0x501b67)=>{const [_0x2d6d67,_0x321cca={}]=_0x501b67;if(!_0x4d53af)return;const _0x4f2179=_0x321cca['at']||0x0,_0x187b17=_0x321cca[_0x4ecb('0x3f')]||0x1;_0x4d53af['columnInsertionIndexes']=new Array(_0x187b17)[_0x4ecb('0x57')](_0x4f2179)[_0x4ecb('0x6d')]((_0x21c5ad,_0x135183)=>_0x21c5ad+_0x135183);for(const {cell:_0xb7ac89}of _0x576c8e['createTableWalker'](_0x2d6d67,{'startColumn':_0x4f2179,'endColumn':_0x4f2179+_0x187b17-0x1}))_0x4d53af[_0x4ecb('0x3b')][_0x4ecb('0x35')](_0x164839[_0x4ecb('0x10')][_0x4ecb('0x7d')](_0xb7ac89));},{'priority':_0x4ecb('0x50')}),_0x576c8e['on']('insertRows',(_0x51d6e8,_0x39e4eb)=>{const [_0x140abc,_0x12e30f={}]=_0x39e4eb;if(!_0x4d53af)return;const _0x104f28=_0x12e30f['at']||0x0,_0x24621a=_0x12e30f['rows']||0x1;_0x4d53af[_0x4ecb('0x27')]=new Array(_0x24621a)['fill'](_0x104f28)[_0x4ecb('0x6d')]((_0x465f7a,_0x297024)=>_0x465f7a+_0x297024);for(const {cell:_0x19cc96}of _0x576c8e[_0x4ecb('0x1c')](_0x140abc,{'startRow':_0x104f28,'endRow':_0x104f28+_0x24621a-0x1}))_0x4d53af[_0x4ecb('0x7e')]['push'](_0x164839['model'][_0x4ecb('0x7d')](_0x19cc96));},{'priority':_0x4ecb('0x50')}),_0x6a7ab5[_0x4ecb('0x5c')][_0x4ecb('0x49')](_0x202154=>{if(_0x202154[_0x4ecb('0x76')]&&_0x202154[_0x4ecb('0x76')][_0x4ecb('0x4a')](_0x4ecb('0x7a')))return _0x202154['previous']?{}:{'type':'insertion','content':_0x16138d(_0x164839[_0x4ecb('0x67')],_0x4ecb('0x94'))};});const _0x1795de=()=>{};for(const _0x44bdff of[_0x4ecb('0x7a'),_0x4ecb('0x5e'),_0x4ecb('0x45'),'tablePasteCell'])_0x6a7ab5[_0x4ecb('0x30')]['registerCustomCallback'](_0x4ecb('0x34'),_0x44bdff,_0x4ecb('0x79'),_0x1795de),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('deletion',_0x44bdff,_0x4ecb('0x79'),_0x1795de);_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('formatBlock',_0x4ecb('0x85'),_0x4ecb('0x86'),_0x1795de),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('formatBlock',_0x4ecb('0x85'),_0x4ecb('0x25'),(_0x203134,_0x498d44,_0xad307f)=>{const _0x139083=_0x203134[_0x4ecb('0x6d')](_0x24c38d=>_0x24c38d[_0x4ecb('0x44')]())[_0x4ecb('0xc')](_0x92b7c1=>_0x92b7c1),_0x13027f=new Map(_0x139083['map'](_0x31d649=>[_0x31d649,null]));if(_0x4d53af)for(const {element:_0x3245b6,attributes:_0x3f59f6}of _0x4d53af[_0x4ecb('0x84')])_0x3f59f6&&_0x13027f[_0x4ecb('0x97')](_0x3245b6,_0x3f59f6);else{if(_0xad307f&&_0xad307f[_0x4ecb('0x7b')])for(const [_0x3b0741,_0xaaa5fd]of Object[_0x4ecb('0x5a')](_0xad307f['markerAttributes'])){const _0x1dee48=_0x164839[_0x4ecb('0x10')]['markers'][_0x4ecb('0x20')](_0x3b0741),_0x323601=_0x1dee48?_0x1dee48[_0x4ecb('0x8f')]()[_0x4ecb('0x44')]():null;_0x323601&&_0x13027f[_0x4ecb('0x97')](_0x323601,_0xaaa5fd);}}_0x164839['model']['change'](_0x3d7dcc=>{for(const [_0x46b7e7,_0x3a4900]of _0x13027f)_0x3d7dcc[_0x4ecb('0x9b')]({...ae,..._0x3a4900},_0x46b7e7);});});const _0x22d332=(_0x1034a5,_0x3e9350)=>{_0x6a7ab5[_0x4ecb('0x30')]['registerCustomCallback'](_0x1034a5,_0x4ecb('0x7a'),_0x3e9350,(_0x418ea2,_0x272c6f,_0x5dad84)=>{_0x164839[_0x4ecb('0x10')][_0x4ecb('0x48')](_0x4e7cb8=>{const _0x5f2fc9=[];for(const _0x3f72c6 of _0x418ea2){const _0x52f17a=_0x3f72c6['start'][_0x4ecb('0x53')];_0x52f17a['is'](_0x4ecb('0x2e'),'tableCellSuggestion')&&_0x5f2fc9[_0x4ecb('0x35')](_0x52f17a);}_0x6a7ab5['_suggestionFactory'][_0x4ecb('0x28')](_0x1034a5,null,_0x3e9350)(_0x418ea2,_0x272c6f,_0x5dad84);for(const _0x15a9bd of _0x5f2fc9)'$graveyard'!=_0x15a9bd[_0x4ecb('0x8d')]['rootName']&&_0x4e7cb8[_0x4ecb('0x6')](_0x15a9bd);});});};_0x22d332('insertion',_0x4ecb('0x25')),_0x22d332('insertion',_0x4ecb('0x86')),_0x22d332(_0x4ecb('0x7'),_0x4ecb('0x25')),_0x22d332(_0x4ecb('0x7'),'discard'),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('insertion',_0x4ecb('0x45'),_0x4ecb('0x86'),_0x482775=>{const _0x19d207=_0x482775['map'](_0x5d5397=>_0x5d5397[_0x4ecb('0x44')]()),_0x1b55cb=_0x19d207[0x0][_0x4ecb('0x3')]('table'),{minRow:_0x2fe0c9,maxRow:_0x4e2a87}=_0x414cdd['_getCoordsForCells'](_0x19d207);_0x576c8e[_0x4ecb('0x81')](_0x1b55cb,{'at':_0x2fe0c9,'rows':_0x4e2a87-_0x2fe0c9+0x1});}),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')](_0x4ecb('0x34'),_0x4ecb('0x5e'),_0x4ecb('0x86'),_0x595c00=>{const _0x1c62ef=_0x595c00[_0x4ecb('0x6d')](_0x4fe207=>_0x4fe207[_0x4ecb('0x44')]()),_0x5e8ef6=_0x1c62ef[0x0][_0x4ecb('0x3')](_0x4ecb('0x91')),{minColumn:_0x1b1206,maxColumn:_0x291b32}=_0x414cdd[_0x4ecb('0x6f')](_0x1c62ef);_0x576c8e[_0x4ecb('0x65')](_0x5e8ef6,{'at':_0x1b1206,'columns':_0x291b32-_0x1b1206+0x1});});const _0x50acc3=(_0xbcb567,_0xebce84)=>{if(!_0xebce84['subType']||!_0xebce84['subType'][_0x4ecb('0x4a')](_0x4ecb('0x7a')))return;const _0x31bfee=_0xebce84['attributes'][_0x4ecb('0x4b')],_0x192d47=_0x6a7ab5[_0x4ecb('0x1')]()['filter'](_0x33e76a=>_0x33e76a[_0x4ecb('0x24')]&&_0x33e76a[_0x4ecb('0x1a')]&&_0x33e76a[_0x4ecb('0x1a')]['tablePasteChainId']==_0x31bfee);_0x192d47[_0x4ecb('0x39')]&&_0xebce84[_0x4ecb('0x72')]()[_0x4ecb('0x39')]!=_0x192d47[_0x4ecb('0x39')]&&_0x192d47[_0x4ecb('0x4e')]((_0xb15d6a,_0x1ca36c)=>(_0xb15d6a[_0x4ecb('0x51')]=_0x1ca36c,_0x1ca36c[_0x4ecb('0x60')]=_0xb15d6a,_0x1ca36c));};function _0x38e8ee(_0x471020,_0x56912c=!0x0){const {id:_0x22f01e}=_0x6a7ab5[_0x4ecb('0x21')](_0x471020[_0x4ecb('0x14')]),_0x3f2fe0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1cd13f=_0x6a7ab5[_0x4ecb('0x11')][_0x4ecb('0x8')](_0x471020[_0x4ecb('0x14')]);return _0x1cd13f&&_0x3f2fe0['push'](_0x4ecb('0x9d')),{'classes':_0x3f2fe0,'attributes':{'data-suggestion':_0x22f01e},'priority':_0x1cd13f&&_0x56912c?0xbc2:0xbb8};}_0x6a7ab5['on'](_0x4ecb('0x64'),_0x50acc3,{'priority':'high'}),_0x6a7ab5['on'](_0x4ecb('0x2b'),_0x50acc3,{'priority':_0x4ecb('0x83')}),_0x164839[_0x4ecb('0x10')]['document'][_0x4ecb('0x9a')](()=>{let _0x74d5b=!0x1;const _0x3d587d=Array['from'](_0x164839[_0x4ecb('0x10')]['document'][_0x4ecb('0xb')]['getChangedMarkers']());for(const {name:_0x3bf380,data:_0x4b11a5}of _0x3d587d){const {group:_0xab7f9b,type:_0x198bf9,id:_0x3f6dad}=_0x6a7ab5[_0x4ecb('0x21')](_0x3bf380);if(_0x4ecb('0x33')!=_0xab7f9b||_0x4ecb('0x7')!=_0x198bf9||_0x4b11a5[_0x4ecb('0x3e')])continue;if(!_0x6a7ab5[_0x4ecb('0x1e')](_0x3f6dad))continue;const _0x68ad3f=_0x6a7ab5[_0x4ecb('0x8b')](_0x3f6dad)['getRanges'](),_0x1173b0=_0x164839[_0x4ecb('0x43')]['get'](_0x4ecb('0x19'))['me'];for(const _0x1d3f8a of _0x6a7ab5[_0x4ecb('0x1')]()){if(!_0x1d3f8a['isInContent']||_0x1d3f8a[_0x4ecb('0x88')]!=_0x1173b0)continue;if(_0x4ecb('0x2c')!=_0x1d3f8a[_0x4ecb('0x18')]||'tablePasteCell'!=_0x1d3f8a['subType'])continue;if(_0x1d3f8a['getRanges']()['every'](_0x24fd4e=>_0x68ad3f[_0x4ecb('0x8c')](_0xe56f25=>_0xe56f25[_0x4ecb('0x42')](_0x24fd4e,!0x0))))for(const _0x232667 of _0x1d3f8a[_0x4ecb('0x72')]())_0x232667[_0x4ecb('0x24')]&&(_0x232667[_0x4ecb('0x86')](),_0x74d5b=!0x0);}}return _0x74d5b;}),_0x164839['model']['document'][_0x4ecb('0x9a')](_0x4e2ec5=>{const _0xcd6189=_0x164839[_0x4ecb('0x9c')][_0x4ecb('0x20')](_0x4ecb('0x89'));if(!_0xcd6189||!_0xcd6189['_createdBatches']['has'](_0x4e2ec5[_0x4ecb('0x40')]))return!0x1;let _0x108386=!0x1;const _0x51ff8c=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x19'))['me'],_0x2eb7bd=_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')]['differ']['getChanges'](),_0x337209=Array[_0x4ecb('0x36')](_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')]['differ'][_0x4ecb('0xe')]())['filter'](({name:_0x386486,data:_0x2de888})=>{const {group:_0x3be8fd,subType:_0x15566b,authorId:_0x21885a}=_0x6a7ab5[_0x4ecb('0x21')](_0x386486);return _0x4ecb('0x33')==_0x3be8fd&&_0x4ecb('0x7a')==_0x15566b&&_0x21885a==_0x51ff8c['id']&&!_0x2de888[_0x4ecb('0x3e')];});for(const _0x1d2f63 of _0x2eb7bd){if(_0x4ecb('0x16')!=_0x1d2f63[_0x4ecb('0x18')]||_0x4ecb('0x87')!=_0x1d2f63[_0x4ecb('0x17')]||0x1!=_0x1d2f63[_0x4ecb('0x39')])continue;const _0x2bd539=_0x4e2ec5['createRange'](_0x1d2f63[_0x4ecb('0x37')],_0x1d2f63[_0x4ecb('0x37')][_0x4ecb('0x70')](0x1));if(!_0x337209[_0x4ecb('0x5b')](({data:_0x384915})=>_0x384915[_0x4ecb('0x93')]['isEqual'](_0x2bd539)))for(const {name:_0x3131c1,data:_0x1abf86}of _0x337209)if(_0x2bd539['containsRange'](_0x1abf86['newRange'])){_0x4e2ec5['updateMarker'](_0x3131c1,{'range':_0x2bd539}),_0x108386=!0x0;break;}}return _0x108386;}),_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')][_0x4ecb('0x9a')](_0x2e881d=>{let _0x4ed580=!0x1;const _0x402a92=_0x164839[_0x4ecb('0x43')]['get'](_0x4ecb('0x19'))['me'],_0x12e1df=_0x6a7ab5['getSuggestions']()[_0x4ecb('0xc')](_0x4cb62e=>_0x4cb62e[_0x4ecb('0x24')]&&_0x4cb62e['author']==_0x402a92),_0x3548a9=new Set(),_0x43df72=new Set();for(const _0x34bae3 of _0x12e1df)if(_0x4ecb('0x7a')==_0x34bae3['subType'])for(const _0x38ff22 of _0x34bae3[_0x4ecb('0x38')]()){const _0x276b19=_0x38ff22[_0x4ecb('0x8f')]()[_0x4ecb('0x44')]();if(_0x276b19){if(_0x276b19['is'](_0x4ecb('0x2e'),_0x4ecb('0x87'))&&ce(_0x276b19)){_0x34bae3[_0x4ecb('0x29')](_0x38ff22[_0x4ecb('0x17')]),_0x3548a9[_0x4ecb('0x74')](_0x276b19),_0x4ed580=!0x0;const _0x3f794b=_0x276b19['nextSibling'],_0x502438=_0x276b19[_0x4ecb('0x6b')],_0x244443=_0x3f794b&&_0x3f794b['is'](_0x4ecb('0x2e'),'tableCellSuggestion'),_0x51c933=_0x502438&&_0x502438['is']('element',_0x4ecb('0x87'));_0x244443&&!_0x3548a9[_0x4ecb('0x73')](_0x3f794b)&&_0x43df72[_0x4ecb('0x74')](_0x3f794b),_0x51c933&&!_0x3548a9[_0x4ecb('0x73')](_0x502438)&&_0x43df72[_0x4ecb('0x74')](_0x502438);}else _0x276b19['is'](_0x4ecb('0x2e'),_0x4ecb('0x12'))&&_0x276b19[_0x4ecb('0x1f')]&&(_0x34bae3['removeMarker'](_0x38ff22[_0x4ecb('0x17')]),_0x4ed580=!0x0);}}else{if(_0x4ecb('0x85')==_0x34bae3[_0x4ecb('0x76')]){if(!_0x34bae3[_0x4ecb('0x1a')]||!_0x34bae3[_0x4ecb('0x1a')][_0x4ecb('0x4b')])continue;const _0x2bd37e=_0x34bae3[_0x4ecb('0x1a')]['markerAttributes'];if(_0x2bd37e&&Object['keys'](_0x2bd37e)[_0x4ecb('0x39')])continue;const _0x6d0123=_0x34bae3['attributes'][_0x4ecb('0x4b')];let _0x3faf95=!0x0,_0x21842b=!0x0;for(const _0x4ce60e of _0x12e1df)if(_0x4ce60e['subType']&&_0x4ce60e[_0x4ecb('0x76')][_0x4ecb('0x4a')]('tablePaste')){if(!_0x4ce60e[_0x4ecb('0x1a')][_0x4ecb('0x4b')]){_0x21842b=!0x1;break;}if(_0x4ce60e['id']!=_0x34bae3['id']&&_0x4ce60e[_0x4ecb('0x1a')][_0x4ecb('0x4b')]==_0x6d0123){_0x3faf95=!0x1;break;}}_0x21842b&&_0x3faf95&&(_0x34bae3[_0x4ecb('0x0')](),_0x4ed580=!0x0);}}for(const _0x3b407f of _0x3548a9)_0x2e881d[_0x4ecb('0x5d')](_0x3b407f);for(const _0x9a06cc of _0x43df72)_0x2e881d[_0x4ecb('0x6')](_0x9a06cc);return _0x4ed580;}),_0x164839[_0x4ecb('0xa')][_0x4ecb('0x7f')](_0x4ecb('0x6c'))[_0x4ecb('0x98')]({'model':_0x4ecb('0x96'),'view':(_0x4db278,_0x2bad81)=>_0x38e8ee(_0x4db278),'converterPriority':_0x4ecb('0x83')}),_0x164839['conversion'][_0x4ecb('0x7f')](_0x4ecb('0x66'))['markerToHighlight']({'model':_0x4ecb('0x96'),'view':(_0x1670de,_0x196ed4)=>_0x196ed4[_0x4ecb('0x78')]['showSuggestionHighlights']?_0x38e8ee(_0x1670de,!0x1):null,'converterPriority':_0x4ecb('0x83')});const _0x4b9eef=_0x164839['editing'][_0x4ecb('0x41')];this[_0x4ecb('0xd')](_0x4b9eef['document'],'clipboardOutput',(_0x555884,_0x56d0f2)=>{const _0x57a77f=[];for(const _0x415d46 of _0x4b9eef['createRangeIn'](_0x56d0f2[_0x4ecb('0x23')])['getItems']())_0x415d46['is'](_0x4ecb('0x2e'),_0x4ecb('0x2'))&&_0x57a77f['push'](_0x415d46);_0x4b9eef['change'](_0x2d7d15=>{for(const _0x23bb80 of _0x57a77f)_0x2d7d15['move'](_0x2d7d15[_0x4ecb('0x6e')](_0x23bb80),_0x2d7d15['createPositionBefore'](_0x23bb80)),_0x2d7d15[_0x4ecb('0x5d')](_0x23bb80);});});}}function ce(_0x338af2){if(_0x338af2[_0x4ecb('0x1f')])return!0x0;const _0x39bb20=_0x338af2[_0x4ecb('0x6a')](0x0);return _0x39bb20['is'](_0x4ecb('0x2e'),_0x4ecb('0x12'))&&_0x39bb20[_0x4ecb('0x1f')];}function fe(_0x9fd21b,_0x2f84e4={},_0x3b9631){for(const {isAnchor:_0x3ff568,cellHeight:_0x11dd51,cellWidth:_0x47bad8}of _0x3b9631[_0x4ecb('0x1c')](_0x9fd21b,{'includeAllSlots':!0x0,..._0x2f84e4}))if(!_0x3ff568||0x1!=_0x11dd51||0x1!=_0x47bad8)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a9a=['getSuggestionCallback','getSelectedElement','markBlockFormat','author','plugins','get','editor','tableWidth','change','selection','model','data','format','getSuggestions','getAttribute','resizeColumnWidths','formatBlock','getTableColumnsWidths','handleResizeTableWidthCommand','_suggestionFactory','registerCustomCallback','discard','TableColumnResizeEditing','resizeTable','registerDescriptionCallback','locale','commandParams','bind','accept','getColumnGroupElement','Users'];(function(_0x2e97a3,_0x5a9a56){const _0x561155=function(_0x25ad94){while(--_0x25ad94){_0x2e97a3['push'](_0x2e97a3['shift']());}};_0x561155(++_0x5a9a56);}(_0x5a9a,0x127));const _0x5611=function(_0x2e97a3,_0x5a9a56){_0x2e97a3=_0x2e97a3-0x0;let _0x561155=_0x5a9a[_0x2e97a3];return _0x561155;};import{Plugin as _0x52cfd9}from'ckeditor5/src/core';import{getTranslation as _0x5bb01d}from'../utils/common-translations';export default class wt extends _0x52cfd9{['afterInit'](){if(!this[_0x5611('0x15')][_0x5611('0x13')]['has'](_0x5611('0x6')))return;const _0x52630f=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')]('TrackChangesEditing');_0x52630f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand'][_0x5611('0xb')](this)),_0x52630f['enableCommand'](_0x5611('0x1e'),this[_0x5611('0x2')][_0x5611('0xb')](this)),_0x52630f[_0x5611('0x3')]['registerCustomCallback'](_0x5611('0x0'),_0x5611('0x7'),_0x5611('0xc'),_0x52630f['_suggestionFactory'][_0x5611('0xf')](_0x5611('0x0'),null,_0x5611('0x5'))),_0x52630f[_0x5611('0x3')][_0x5611('0x4')]('formatBlock',_0x5611('0x7'),_0x5611('0x5'),_0x52630f[_0x5611('0x3')][_0x5611('0xf')](_0x5611('0x0'),null,_0x5611('0xc'))),_0x52630f['_descriptionFactory'][_0x5611('0x8')](this['handleSuggestionDescription'][_0x5611('0xb')](this));}['handleResizeTableWidthCommand'](_0x203602,_0x55beb6){const _0x19d8cf=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')]('TrackChangesEditing'),_0x265403=this['editor']['plugins'][_0x5611('0x14')](_0x5611('0x6')),_0x274c0b=_0x55beb6['table']||this['editor'][_0x5611('0x19')]['document'][_0x5611('0x18')][_0x5611('0x10')]();this[_0x5611('0x15')]['model'][_0x5611('0x17')](()=>{const _0x2e2f6d=_0x265403[_0x5611('0xd')](_0x274c0b);let _0x34b6ec=_0x2e2f6d?_0x265403[_0x5611('0x1')](_0x2e2f6d):null,_0x1e9917=_0x274c0b[_0x5611('0x1d')]('tableWidth')||null;const _0x5ba384=_0x55beb6['tableWidth']||_0x1e9917,_0x5b37c0=_0x55beb6['columnWidths']||_0x34b6ec,_0x2f5ec4=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')](_0x5611('0xe'))['me'];for(const _0x1df1c7 of _0x19d8cf[_0x5611('0x1c')]()){const _0x1fa8cb=_0x1df1c7['getContainedElement']();if(_0x5611('0x7')===_0x1df1c7['subType']&&_0x1fa8cb===_0x274c0b){_0x1df1c7[_0x5611('0x12')]!==_0x2f5ec4&&_0x1df1c7[_0x5611('0x5')]();const _0x3af534=_0x1df1c7[_0x5611('0x1a')][_0x5611('0xa')];_0x1e9917=_0x3af534[0x0][_0x5611('0x16')],_0x34b6ec=_0x3af534[0x0]['columnWidths'];break;}}_0x203602({'table':_0x274c0b,'tableWidth':_0x5ba384,'columnWidths':_0x5b37c0}),_0x19d8cf[_0x5611('0x11')](_0x274c0b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1e9917,'columnWidths':_0x34b6ec}],'formatGroupId':'resizeTable'},[],_0x5611('0x7'));});}['handleSuggestionDescription'](_0x5b3b0c){const {data:_0x4c76dc}=_0x5b3b0c;if(_0x4c76dc&&_0x5611('0x7')===_0x4c76dc['formatGroupId']){const _0x54271a='*Format:*\x20resize\x20table';return{'type':_0x5611('0x1b'),'content':_0x5bb01d(this[_0x5611('0x15')][_0x5611('0x9')],_0x54271a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42cd=['createRange','options','markerNameToElements','getChild','data','removeAttribute','TableEditing','isBefore','FORMAT_REGULAR_ROW','requires','table','writer','headingColumns','commands','_descriptionFactory','markerRange','registerCustomCallback','getRowIndexes','editing','consumable','getSuggestion','plugins','enableCommand','FORMAT_HEADER_COLUMN','_splitMarkerName','registerDescriptionCallback','markBlockFormat','*Format:*\x20%0','first','TrackChangesEditing','commandParams','value','accept','setAttribute','createPositionAfter','index','includes','createTableWalker','formatBlock','get','nodeBefore','ck-suggestion-marker-','bindElementToMarker','ck-suggestion-marker--active','setTableColumnHeader','highest','createPositionBefore','last','data-suggestion','removeMarker:suggestion','setTableRowHeader','toViewElement','model','from','document','findAncestor','consume','activeMarkers','_suggestionFactory','getColumnIndexes','start','FORMAT_REGULAR_COLUMN','has','commandName','childCount','getSelectionAffectedTableCells','markerName','cell','getAttribute','removeClass','getCellLocation','downcastDispatcher','addClass','change','mapper','forceValue','addMarker:suggestion','stop','parent','FORMAT_HEADER_ROW','TableUtils'];(function(_0x289e67,_0x42cd7f){const _0x2916e6=function(_0x46bfaa){while(--_0x46bfaa){_0x289e67['push'](_0x289e67['shift']());}};_0x2916e6(++_0x42cd7f);}(_0x42cd,0x10e));const _0x2916=function(_0x289e67,_0x42cd7f){_0x289e67=_0x289e67-0x0;let _0x2916e6=_0x42cd[_0x289e67];return _0x2916e6;};import{Plugin as _0x24d612}from'ckeditor5/src/core';import _0x50a7a2 from'./table';import{getTranslation as _0x726731}from'../utils/common-translations';export default class pt extends _0x24d612{static get[_0x2916('0x3f')](){return[_0x50a7a2];}['afterInit'](){const _0x28a4c3=this['editor'];if(!_0x28a4c3[_0x2916('0x4b')][_0x2916('0x23')](_0x2916('0x3c')))return;const _0x104c0f=_0x28a4c3['locale'],_0x53b59f=_0x28a4c3[_0x2916('0x4b')][_0x2916('0xc')](_0x2916('0x2')),_0x3324f5=_0x28a4c3[_0x2916('0x4b')]['get'](_0x2916('0x35')),_0x17b6c8=_0x28a4c3['plugins'][_0x2916('0xc')](_0x50a7a2);function _0x4b3ca0({showActiveMarker:_0x140f85=!0x0,setDataAttribute:_0x11ce78=!0x0}={}){return(_0x1e6119,_0x2cd409,_0x48fc56)=>{const {type:_0x571955,id:_0x49f814}=_0x53b59f[_0x2916('0x4e')](_0x2cd409[_0x2916('0x27')]),_0xcdbb9d=_0x53b59f[_0x2916('0x4a')](_0x49f814);if(!_0xcdbb9d[_0x2916('0x3a')]||'setTableColumnHeader'!=_0xcdbb9d[_0x2916('0x3a')][_0x2916('0x24')])return;if(_0x2cd409['item'])return void _0x1e6119[_0x2916('0x32')]();if(!_0x48fc56[_0x2916('0x49')][_0x2916('0x1d')](_0x2cd409[_0x2916('0x45')],_0x1e6119['name']))return;const _0x354322=_0x2cd409[_0x2916('0x45')][_0x2916('0x21')]['nodeAfter'],_0x5d7063=_0x2cd409[_0x2916('0x45')]['end'][_0x2916('0xd')],_0xd85201=_0x354322['parent'][_0x2916('0x33')],{column:_0x499d7f}=_0x3324f5[_0x2916('0x2b')](_0x354322),{column:_0x88803f}=_0x3324f5['getCellLocation'](_0x5d7063);for(let _0x498513=_0x499d7f;_0x498513<=_0x88803f;_0x498513++){const _0x5e55ba=_0x3324f5['createTableWalker'](_0xd85201,{'column':_0x498513,'includeAllSlots':!0x1});for(const _0x108d46 of _0x5e55ba){const _0x4fa4ef=_0x108d46['cell'],_0x49adc7=_0x48fc56[_0x2916('0x2f')][_0x2916('0x18')](_0x4fa4ef);_0x48fc56[_0x2916('0x41')][_0x2916('0x2d')](_0x2916('0xe')+_0x571955,_0x49adc7),_0x11ce78&&_0x48fc56[_0x2916('0x41')][_0x2916('0x6')]('data-suggestion',_0x49f814,_0x49adc7),_0x48fc56[_0x2916('0x2f')][_0x2916('0xf')](_0x49adc7,_0x2cd409[_0x2916('0x27')]),_0x140f85&&(_0x53b59f[_0x2916('0x1e')][_0x2916('0x9')](_0x2cd409[_0x2916('0x27')])?_0x48fc56[_0x2916('0x41')][_0x2916('0x2d')](_0x2916('0x10'),_0x49adc7):_0x48fc56[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0x10'),_0x49adc7));}}};}_0x53b59f[_0x2916('0x4c')]('setTableRowHeader',(_0x5dc20d,_0x4d4e2e)=>{const _0x2a99de=_0x3324f5[_0x2916('0x26')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x1b')]['selection']),_0x1abe74=_0x3324f5[_0x2916('0x47')](_0x2a99de),_0x1c0faf=_0x2a99de[0x0][_0x2916('0x1c')](_0x2916('0x40')),_0x3a8b6b=_0x1c0faf['getAttribute']('headingRows')||0x0,_0x466da0=_0x4d4e2e&&null!==_0x4d4e2e[_0x2916('0x30')]?_0x4d4e2e['forceValue']:!_0x28a4c3['commands'][_0x2916('0xc')](_0x2916('0x17'))[_0x2916('0x4')],_0x2f2d8c=_0x466da0?_0x1abe74['last']:_0x1abe74[_0x2916('0x1')],_0x146f48=_0x1c0faf[_0x2916('0x39')](_0x2f2d8c);let _0x33b5f3;if(_0x466da0){const _0x3a98c8=_0x1c0faf[_0x2916('0x39')](_0x3a8b6b);if(_0x146f48[_0x2916('0x8')]<_0x3a98c8[_0x2916('0x8')])return;_0x33b5f3=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x13')](_0x3a98c8[_0x2916('0x39')](0x0)),_0x28a4c3[_0x2916('0x19')]['createPositionAfter'](_0x146f48[_0x2916('0x39')](_0x146f48[_0x2916('0x25')]-0x1)));}else{const _0x4b5060=_0x1c0faf[_0x2916('0x39')](_0x3a8b6b-0x1);if(!_0x4b5060)return;_0x33b5f3=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x146f48[_0x2916('0x39')](0x0)),_0x28a4c3[_0x2916('0x19')][_0x2916('0x7')](_0x4b5060[_0x2916('0x39')](_0x4b5060['childCount']-0x1)));}_0x28a4c3['model'][_0x2916('0x2e')](()=>{_0x53b59f[_0x2916('0x50')](_0x33b5f3,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x466da0}]},[],_0x2916('0x17'));});}),_0x53b59f['enableCommand'](_0x2916('0x11'),(_0x5d48b8,_0x13bd90)=>{const _0x5ed8a9=_0x28a4c3['plugins']['get'](_0x2916('0x35')),_0xf33bb2=_0x5ed8a9[_0x2916('0x26')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x1b')]['selection']),_0x3fbcd1=_0x5ed8a9[_0x2916('0x20')](_0xf33bb2),_0xc32243=_0xf33bb2[0x0][_0x2916('0x1c')]('table'),_0x4f37cf=_0xc32243[_0x2916('0x29')](_0x2916('0x42'))||0x0,_0x5c7033=_0x13bd90&&null!==_0x13bd90[_0x2916('0x30')]?_0x13bd90['forceValue']:!_0x28a4c3[_0x2916('0x43')][_0x2916('0xc')](_0x2916('0x11'))['value'];let _0x2f4289;const _0x33b821=_0xc32243[_0x2916('0x39')](0x0),_0x2c980a=_0x5c7033?_0x3fbcd1[_0x2916('0x14')]:_0x3fbcd1[_0x2916('0x1')],_0x4ed382=_0x5ed8a9[_0x2916('0xa')](_0xc32243,{'startRow':0x0,'column':_0x2c980a,'includeAllSlots':!0x1}),_0x4e9132=Array[_0x2916('0x1a')](_0x4ed382)[0x0][_0x2916('0x28')];if(_0x5c7033){const _0x57595d=_0x33b821[_0x2916('0x39')](_0x4f37cf);if(_0x4e9132[_0x2916('0x3d')](_0x57595d))return;_0x2f4289=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x57595d),_0x28a4c3['model'][_0x2916('0x7')](_0x4e9132));}else{const _0x3540fb=_0x33b821[_0x2916('0x39')](_0x4f37cf-0x1);if(!_0x3540fb)return;_0x2f4289=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x4e9132),_0x28a4c3[_0x2916('0x19')]['createPositionAfter'](_0x3540fb));}_0x28a4c3[_0x2916('0x19')][_0x2916('0x2e')](()=>{_0x53b59f[_0x2916('0x50')](_0x2f4289,{'commandName':_0x2916('0x11'),'commandParams':[{'forceValue':_0x5c7033}]},[],'setTableColumnHeader');});}),_0x28a4c3[_0x2916('0x48')][_0x2916('0x2c')]['on'](_0x2916('0x31'),_0x4b3ca0(),{'priority':'highest'}),_0x28a4c3[_0x2916('0x3a')]['downcastDispatcher']['on'](_0x2916('0x31'),(_0x37f103,_0x324bb5,_0x21fe34)=>{_0x21fe34[_0x2916('0x37')]['showSuggestionHighlights']&&_0x4b3ca0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37f103,_0x324bb5,_0x21fe34);},{'priority':_0x2916('0x12')}),_0x28a4c3['editing'][_0x2916('0x2c')]['on'](_0x2916('0x16'),(_0x58c606,_0x1aa580,_0x4562d9)=>{const {type:_0x46e86a,id:_0x3d5150}=_0x53b59f[_0x2916('0x4e')](_0x1aa580[_0x2916('0x27')]),_0x21bb21=_0x53b59f[_0x2916('0x4a')](_0x3d5150);if(!_0x21bb21[_0x2916('0x3a')]||_0x2916('0x11')!=_0x21bb21['data'][_0x2916('0x24')])return;const _0x217a7a=_0x4562d9[_0x2916('0x2f')][_0x2916('0x38')](_0x1aa580[_0x2916('0x27')]);if(_0x217a7a)for(const _0x5cdaf8 of _0x217a7a)_0x4562d9[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0xe')+_0x46e86a,_0x5cdaf8),_0x4562d9[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0x10'),_0x5cdaf8),_0x4562d9['writer'][_0x2916('0x3b')](_0x2916('0x15'),_0x5cdaf8),_0x4562d9[_0x2916('0x2f')]['unbindElementFromMarkerName'](_0x5cdaf8,_0x1aa580[_0x2916('0x27')]);},{'priority':_0x2916('0x12')}),_0x53b59f[_0x2916('0x44')][_0x2916('0x4f')](_0x188360=>{const {data:_0x5df4e2}=_0x188360;if(_0x5df4e2){if('setTableRowHeader'==_0x5df4e2['commandName']){const _0x57e171=_0x5df4e2[_0x2916('0x3')][0x0][_0x2916('0x30')];return _0x2975c7(_0x726731(_0x104c0f,_0x57e171?_0x2916('0x34'):_0x2916('0x3e')));}if(_0x2916('0x11')==_0x5df4e2[_0x2916('0x24')]){const _0x326f6a=_0x5df4e2[_0x2916('0x3')][0x0]['forceValue'];return _0x2975c7(_0x726731(_0x104c0f,_0x326f6a?_0x2916('0x4d'):_0x2916('0x22')));}}function _0x2975c7(_0x39c5dc){return{'type':'format','content':_0x726731(_0x104c0f,_0x2916('0x0'),_0x39c5dc)};}});const _0x3cb446=_0x17b6c8['_acceptFormatSuggestionCallbackFactory']();_0x53b59f[_0x2916('0x1f')]['registerCustomCallback'](_0x2916('0xb'),'setTableRowHeader','accept',_0x3cb446),_0x53b59f['_suggestionFactory'][_0x2916('0x46')]('formatBlock',_0x2916('0x11'),_0x2916('0x5'),_0x3cb446);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20da=['element','fromRange','_isForcedDefaultExecutionBlock','author','splitTableCellVertically','getSuggestions','*Split\x20cell:*\x20horizontally','push','document','value','*Merge\x20cells*','plugins','mergeTableCellDown','mergeTableCells','TrackChangesEditing','tableCell','requires','splitTableCellHorizontally','detach','createRangeOn','get','commands','table','TableUtils','trackChanges','*Split\x20cell:*\x20vertically','_areSelectedCellsMergable','low','formatBlock','mergeTableCellUp','change','forceDefaultExecution','_tablePostFixingSubtypes','length','_descriptionFactory','subType','mergeTableCellLeft','getCellLocation','execute','mergeTableCellRight','filter','registerCustomCallback','rootName','model','$graveyard','type','_areMergableCells','createTableWalker','getSelectionAffectedTableCells','getFirstPosition','direction','horizontally','TableEditing','selection','map','stop','afterInit','accept','from','isInContent','enableCommand','root','registerDescriptionCallback','containsRange','find','return','setSelection','cell','commandName','editor','markBlockFormat','isEnabled','set:isEnabled','format','size','_suggestionFactory','markMultiRangeBlockFormat','getAncestors','highest','add'];(function(_0x1c1ea7,_0x20da1f){const _0x32111d=function(_0x154714){while(--_0x154714){_0x1c1ea7['push'](_0x1c1ea7['shift']());}};_0x32111d(++_0x20da1f);}(_0x20da,0xda));const _0x3211=function(_0x1c1ea7,_0x20da1f){_0x1c1ea7=_0x1c1ea7-0x0;let _0x32111d=_0x20da[_0x1c1ea7];return _0x32111d;};import{Plugin as _0x48e3a1}from'ckeditor5/src/core';import _0x2dc283 from'./table';import{LiveRange as _0x27a45b}from'ckeditor5/src/engine';import{getTranslation as _0x52c3d8}from'../utils/common-translations';export default class dt extends _0x48e3a1{static get[_0x3211('0x26')](){return[_0x2dc283];}[_0x3211('0x4e')](){const _0x4c700e=this[_0x3211('0xb')],_0x42d11a=_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')][_0x3211('0x4b')],_0x2a92f4=_0x4c700e['locale'];if(!_0x4c700e[_0x3211('0x21')]['has'](_0x3211('0x4a')))return;const _0x4b9bb1=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x3211('0x24')),_0x1012c4=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x3211('0x2d')),_0x218fb0=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x2dc283);_0x218fb0[_0x3211('0x36')][_0x3211('0x1d')](_0x3211('0x23')),_0x4b9bb1[_0x3211('0x2')]('mergeTableCells',()=>{const _0xab3baf=_0x1012c4[_0x3211('0x46')](_0x4c700e['model']['document'][_0x3211('0x4b')]);_0x4c700e[_0x3211('0x41')]['change'](()=>{_0x4b9bb1['markMultiRangeBlockFormat'](_0xab3baf,{'commandName':_0x3211('0x23'),'commandParams':[]},[],_0x3211('0x23'));});}),_0x4c700e['commands'][_0x3211('0x2a')]('mergeTableCells')['on'](_0x3211('0x3c'),(_0xa790d2,_0x3c3020)=>{_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x3211('0x2e'))['value']&&(_0x3c3020[_0x3211('0x37')]>0x0&&_0x3c3020[_0x3c3020[_0x3211('0x37')]-0x1]&&_0x3c3020[_0x3c3020['length']-0x1][_0x3211('0x35')]||_0x4b9bb1[_0x3211('0x18')]||this[_0x3211('0x30')]()||_0xa790d2['stop']());},{'priority':_0x3211('0x14')});for(const _0x5baf12 of[_0x3211('0x33'),'mergeTableCellRight',_0x3211('0x22'),_0x3211('0x3a')]){const _0x31b8ef=_0x4c700e['commands'][_0x3211('0x2a')](_0x5baf12);_0x4b9bb1['enableCommand'](_0x5baf12,()=>{const _0x1ff342=_0x4c700e[_0x3211('0x41')]['document'][_0x3211('0x4b')][_0x3211('0x47')]()[_0x3211('0x13')]()['find'](_0x1a2a3b=>_0x1a2a3b['is'](_0x3211('0x16'),_0x3211('0x25'))),_0x225eac=_0x31b8ef[_0x3211('0x1f')];_0x4c700e[_0x3211('0x41')][_0x3211('0x34')](()=>{_0x4b9bb1[_0x3211('0x12')]([_0x1ff342,_0x225eac],{'commandName':_0x3211('0x23'),'commandParams':[]},[],_0x3211('0x23'));});});}for(const _0x2a7dd7 of[_0x3211('0x1a'),'splitTableCellHorizontally']){const _0x56a89a=_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x2a7dd7);_0x4b9bb1[_0x3211('0x2')](_0x2a7dd7,()=>{const _0x2785ab=_0x1012c4[_0x3211('0x46')](_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')][_0x3211('0x4b')])[0x0],_0x49c903=_0x2785ab['findAncestor'](_0x3211('0x2c')),{column:_0x2d9a4c,row:_0x2d8cb9}=_0x1012c4[_0x3211('0x3b')](_0x2785ab);let _0x52c495=[];if(_0x3211('0x49')==_0x56a89a[_0x3211('0x48')]){const _0x3ae52d=_0x1012c4['createTableWalker'](_0x49c903,{'startRow':_0x2d8cb9,'endRow':_0x2d8cb9,'includeAllSlots':!0x0});_0x52c495=Array[_0x3211('0x0')](_0x3ae52d)[_0x3211('0x4c')](_0x2551b6=>_0x2551b6[_0x3211('0x9')]);}else{const _0x2aa4c2=_0x1012c4[_0x3211('0x45')](_0x49c903,{'column':_0x2d9a4c,'includeAllSlots':!0x0});_0x52c495=Array[_0x3211('0x0')](_0x2aa4c2)[_0x3211('0x4c')](_0x5c4c98=>_0x5c4c98['cell']);}_0x4c700e[_0x3211('0x41')][_0x3211('0x34')](_0x5501d8=>{_0x4b9bb1[_0x3211('0xc')](_0x5501d8[_0x3211('0x29')](_0x2785ab),{'commandName':_0x2a7dd7,'commandParams':[]},_0x52c495,_0x2a7dd7);});});}_0x4b9bb1[_0x3211('0x38')][_0x3211('0x4')](_0x31eb68=>{const {data:_0x4fede1}=_0x31eb68;if(_0x4fede1)return _0x3211('0x23')==_0x4fede1[_0x3211('0xa')]?{'type':_0x3211('0xf'),'content':_0x52c3d8(_0x2a92f4,_0x3211('0x20'))}:void 0x0;}),_0x4b9bb1[_0x3211('0x38')][_0x3211('0x4')](_0x5af0f1=>{const {data:_0x5351af}=_0x5af0f1;if(_0x5351af)return _0x3211('0x1a')==_0x5351af[_0x3211('0xa')]?{'type':_0x3211('0xf'),'content':_0x52c3d8(_0x2a92f4,_0x3211('0x2f'))}:_0x3211('0x27')==_0x5351af[_0x3211('0xa')]?{'type':'format','content':_0x52c3d8(_0x2a92f4,_0x3211('0x1c'))}:void 0x0;});const _0xd3f0fc=_0x218fb0['_acceptFormatSuggestionCallbackFactory']();for(const _0x223844 of[_0x3211('0x33'),_0x3211('0x3d'),_0x3211('0x22'),'mergeTableCellLeft'])_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')](_0x3211('0x32'),_0x223844,_0x3211('0x4f'),_0xd3f0fc);for(const _0x36d143 of['splitTableCellVertically',_0x3211('0x27')])_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')]('formatBlock',_0x36d143,'accept',_0xd3f0fc);_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')](_0x3211('0x32'),_0x3211('0x23'),_0x3211('0x4f'),_0x5df78f=>{_0x4c700e['model']['change'](_0x110c7b=>{const _0x32155c=Array[_0x3211('0x0')](_0x42d11a['getRanges']())[_0x3211('0x4c')](_0xee46fc=>_0x27a45b[_0x3211('0x17')](_0xee46fc));_0x110c7b[_0x3211('0x8')](_0x5df78f),_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')]('mergeTableCells')['refresh'](),_0x4c700e[_0x3211('0x3c')](_0x3211('0x23'),{'forceDefaultExecution':!0x0});const _0x30db94=_0x32155c[_0x3211('0x3e')](_0xa9d1bb=>_0x3211('0x42')!=_0xa9d1bb[_0x3211('0x3')][_0x3211('0x40')]);_0x30db94[_0x3211('0x37')]>0x0&&_0x110c7b[_0x3211('0x8')](_0x30db94);for(const _0x8c7829 of _0x32155c)_0x8c7829[_0x3211('0x28')]();});});for(const _0x9cb9c0 of['mergeTableCellUp',_0x3211('0x22'),_0x3211('0x3a'),'mergeTableCellRight']){const _0x65bd97=_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x9cb9c0);_0x65bd97['on'](_0x3211('0xe'),(_0x21fc26,_0x4fedab,_0x52afb9)=>{if(_0x52afb9){const _0x23e767=_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')]['selection'][_0x3211('0x47')]()[_0x3211('0x13')]()[_0x3211('0x6')](_0x3939aa=>_0x3939aa['is'](_0x3211('0x16'),'tableCell'));this[_0x3211('0x44')](_0x65bd97[_0x3211('0x1f')],_0x23e767)||(_0x21fc26[_0x3211('0x7')]=!0x1,_0x21fc26[_0x3211('0x4d')]());}},{'priority':_0x3211('0x31')});}}[_0x3211('0x30')](){const _0x394df9=this[_0x3211('0xb')][_0x3211('0x2b')]['get'](_0x3211('0x23')),_0x17a557=this[_0x3211('0xb')][_0x3211('0x21')][_0x3211('0x2a')]('TableUtils');if(!_0x394df9[_0x3211('0xd')])return!0x1;const _0x1da51e=_0x17a557[_0x3211('0x46')](this[_0x3211('0xb')]['model'][_0x3211('0x1e')][_0x3211('0x4b')]);for(const _0xdc3733 of _0x1da51e)for(const _0x1f7b69 of _0x1da51e)if(_0xdc3733!=_0x1f7b69&&!this[_0x3211('0x44')](_0xdc3733,_0x1f7b69))return!0x1;return!0x0;}[_0x3211('0x44')](_0x289412,_0x18c160){const _0x153407=this[_0x3211('0xb')][_0x3211('0x21')]['get']('TrackChangesEditing'),_0xc68f2b=this[_0x3211('0xb')][_0x3211('0x41')][_0x3211('0x29')](_0x289412),_0x214ef6=this['editor']['model'][_0x3211('0x29')](_0x18c160),_0x4ecbac=new Set(),_0xe4d10b=new Set();for(const _0x2e408e of _0x153407[_0x3211('0x1b')]())if(('insertion'==_0x2e408e[_0x3211('0x43')]||'deletion'==_0x2e408e['type']||'mergeTableCells'==_0x2e408e[_0x3211('0x39')])&&_0x2e408e[_0x3211('0x1')])for(const _0x1edd38 of _0x2e408e['getRanges']())_0x1edd38[_0x3211('0x5')](_0xc68f2b,!0x0)&&_0x4ecbac['add'](_0x2e408e[_0x3211('0x43')]+':'+_0x2e408e['author']['id']),_0x1edd38[_0x3211('0x5')](_0x214ef6,!0x0)&&_0xe4d10b[_0x3211('0x15')](_0x2e408e['type']+':'+_0x2e408e[_0x3211('0x19')]['id']);if(_0x4ecbac['size']!=_0xe4d10b[_0x3211('0x10')])return!0x1;for(const _0x5c2655 of _0x4ecbac)if(!_0xe4d10b['has'](_0x5c2655))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa2d3=['commands','enableCommand','get','plugins','TrackChangesEditing','insertTableOfContents','tableOfContents','afterInit','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','locale'];(function(_0x4a4d96,_0xa2d37){const _0x3a0e5c=function(_0x407f36){while(--_0x407f36){_0x4a4d96['push'](_0x4a4d96['shift']());}};_0x3a0e5c(++_0xa2d37);}(_0xa2d3,0x19c));const _0x3a0e=function(_0x4a4d96,_0xa2d37){_0x4a4d96=_0x4a4d96-0x0;let _0x3a0e5c=_0xa2d3[_0x4a4d96];return _0x3a0e5c;};import{Plugin as _0x15466b}from'ckeditor5/src/core';import{getTranslation as _0xb8d599}from'../utils/common-translations';export default class bt extends _0x15466b{[_0x3a0e('0x2')](){const _0x4c473b=this['editor'];if(!_0x4c473b[_0x3a0e('0x6')][_0x3a0e('0x8')](_0x3a0e('0x0')))return;_0x4c473b[_0x3a0e('0x9')][_0x3a0e('0x8')]('TrackChangesEditing')[_0x3a0e('0x7')](_0x3a0e('0x0'));const _0x2fd855=_0x4c473b[_0x3a0e('0x9')][_0x3a0e('0x8')](_0x3a0e('0xa')),_0x508c5a=_0x4c473b[_0x3a0e('0x5')];_0x2fd855['_descriptionFactory'][_0x3a0e('0x3')](_0x3a0e('0x1'),_0xf6d763=>_0xb8d599(_0x508c5a,_0x3a0e('0x4'),_0xf6d763));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5683=['TrackChangesEditing','tableCellBorderStyle','discard','_handlePropertyChange','handleDiscardAction','tableBackgroundColor','model','batch','handleSuggestionDescription','tableCellBorderColor','getAttribute','tableCellWidth','tableProperties','getSuggestionCallback','enableCommand','pluginName','data','get','nodeAfter','_descriptionFactory','accept','tableBorderColor','editor','enqueueChange','getFirstPosition','subType','tableCellHeight','plugins','locale','removeAttribute','formatBlock','_suggestionFactory','change','getSuggestions','tableBorderWidth','markBlockFormat','tableCellPadding','table','*Format:*\x20change\x20table\x20cell\x20properties','TableCellPropertiesEditing','tableCellProperties','tableBorderStyle','format','tableCellBackgroundColor','afterInit','findAncestor','tableAlignment','document','has','registerCustomCallback','getContainedElement','tableHeight','join','selection','tableCellVerticalAlignment','_getSuggestion','tableCellHorizontalAlignment'];(function(_0x31e1fc,_0x568394){const _0xaf4753=function(_0x593840){while(--_0x593840){_0x31e1fc['push'](_0x31e1fc['shift']());}};_0xaf4753(++_0x568394);}(_0x5683,0x71));const _0xaf47=function(_0x31e1fc,_0x568394){_0x31e1fc=_0x31e1fc-0x0;let _0xaf4753=_0x5683[_0x31e1fc];return _0xaf4753;};import{Plugin as _0x18e352}from'ckeditor5/src/core';import{getTranslation as _0x16d45e}from'../utils/common-translations';export default class Ct extends _0x18e352{constructor(_0x2bc5b2){super(_0x2bc5b2),this['tableProperties']=[_0xaf47('0x16'),_0xaf47('0x2a'),_0xaf47('0x23'),_0xaf47('0x2f'),'tableWidth',_0xaf47('0x34'),_0xaf47('0x6')],this[_0xaf47('0x29')]=[_0xaf47('0xa'),_0xaf47('0x2'),'tableCellBorderWidth',_0xaf47('0x25'),_0xaf47('0xc'),_0xaf47('0x1b'),_0xaf47('0x2c'),_0xaf47('0x0'),_0xaf47('0x37')];}static get[_0xaf47('0x10')](){return'TrackChangesTableProperties';}[_0xaf47('0x2d')](){const _0x523cbc=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')](_0xaf47('0x1'));if(this['editor'][_0xaf47('0x1c')]['has']('TablePropertiesEditing')){for(const _0x2b025d of this['tableProperties'])_0x523cbc[_0xaf47('0xf')](_0x2b025d,(_0x3b68fe,_0x2635fc)=>{const _0x24cbdb=this['editor']['model'][_0xaf47('0x30')][_0xaf47('0x36')][_0xaf47('0x19')]()[_0xaf47('0x2e')](_0xaf47('0x26'));this['_handlePropertyChange'](_0x2b025d,[_0x24cbdb],this[_0xaf47('0xd')],'tableProperties',_0x3b68fe,_0x2635fc);});_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),'accept',_0x523cbc['_suggestionFactory'][_0xaf47('0xe')](_0xaf47('0x1f'),null,_0xaf47('0x3'))),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),_0xaf47('0x3'),(_0x326262,_0x2de036)=>this[_0xaf47('0x5')](this[_0xaf47('0xd')],_0x326262,_0x2de036)),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),_0xaf47('0x35'),()=>!0x1);}if(this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x31')](_0xaf47('0x28'))){for(const _0x8583d of this[_0xaf47('0x29')])_0x523cbc[_0xaf47('0xf')](_0x8583d,(_0x27dbca,_0x4a1da1)=>{const _0x4deb39=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')]('TableUtils')['getSelectionAffectedTableCells'](this['editor'][_0xaf47('0x7')][_0xaf47('0x30')][_0xaf47('0x36')]);this[_0xaf47('0x4')](_0x8583d,_0x4deb39,this['tableCellProperties'],_0xaf47('0x29'),_0x27dbca,_0x4a1da1);});_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),'tableCellProperties',_0xaf47('0x15'),_0x523cbc['_suggestionFactory'][_0xaf47('0xe')](_0xaf47('0x1f'),null,'discard')),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')]('formatBlock',_0xaf47('0x29'),_0xaf47('0x3'),(_0x1cb9b5,_0x94718c)=>this[_0xaf47('0x5')](this[_0xaf47('0x29')],_0x1cb9b5,_0x94718c)),_0x523cbc[_0xaf47('0x20')]['registerCustomCallback'](_0xaf47('0x1f'),'tableCellProperties',_0xaf47('0x35'),()=>!0x1);}_0x523cbc[_0xaf47('0x14')]['registerDescriptionCallback'](_0x28272f=>this[_0xaf47('0x9')](_0x28272f));}[_0xaf47('0x4')](_0x383dce,_0x44f66d,_0x27fb19,_0x51dfbe,_0x2a199e,_0x116e4f){const _0x5c014a=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')](_0xaf47('0x1'));this[_0xaf47('0x17')][_0xaf47('0x7')][_0xaf47('0x18')](_0x116e4f[_0xaf47('0x8')],()=>{for(const _0xc31473 of _0x44f66d){if(this['_getSuggestion'](_0xc31473,_0x51dfbe))_0x2a199e(_0x116e4f);else{const _0x1cae3e={};for(const _0x1385c0 of _0x27fb19){const _0x55dcd1=_0xc31473[_0xaf47('0xb')](_0x1385c0);void 0x0!==_0x55dcd1&&(_0x1cae3e[_0x1385c0]=_0x55dcd1);}_0x2a199e(_0x116e4f),_0x5c014a[_0xaf47('0x24')](_0xc31473,{'commandParams':[_0x1cae3e]},[],_0x51dfbe);}}});}['handleDiscardAction'](_0x243618,_0x2f505b,_0x987eac){const _0x117c4f=_0x2f505b[0x0]['start'][_0xaf47('0x13')],_0x193ca0=_0x987eac['commandParams'][0x0];this[_0xaf47('0x17')][_0xaf47('0x7')][_0xaf47('0x21')](_0x588a1e=>{for(const _0x901ba9 of _0x243618)void 0x0!==_0x193ca0[_0x901ba9]?_0x588a1e['setAttribute'](_0x901ba9,_0x193ca0[_0x901ba9],_0x117c4f):_0x588a1e[_0xaf47('0x1e')](_0x901ba9,_0x117c4f);});}[_0xaf47('0x9')](_0x1ccf42){if(_0x1ccf42[_0xaf47('0x11')])switch(_0x1ccf42[_0xaf47('0x1a')]){case _0xaf47('0xd'):return{'type':_0xaf47('0x2b'),'content':_0x16d45e(this[_0xaf47('0x17')][_0xaf47('0x1d')],'*Format:*\x20change\x20table\x20properties')};case _0xaf47('0x29'):return{'type':_0xaf47('0x2b'),'content':_0x16d45e(this[_0xaf47('0x17')][_0xaf47('0x1d')],_0xaf47('0x27'))};}}[_0xaf47('0x38')](_0x596382,_0x24ae60){const _0x59c1ad=this[_0xaf47('0x17')][_0xaf47('0x1c')]['get'](_0xaf47('0x1'));for(const _0x5a8838 of _0x59c1ad[_0xaf47('0x22')]({'skipNotAttached':!0x0})){const _0x357ab1=_0x5a8838[_0xaf47('0x33')]();if(_0x5a8838[_0xaf47('0x1a')]===_0x24ae60&&_0x357ab1===_0x596382)return _0x5a8838;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x206b=['get','plugins','editor','afterInit','Template','has'];(function(_0x10b728,_0x206b52){const _0x656c73=function(_0x54f358){while(--_0x54f358){_0x10b728['push'](_0x10b728['shift']());}};_0x656c73(++_0x206b52);}(_0x206b,0xaa));const _0x656c=function(_0x10b728,_0x206b52){_0x10b728=_0x10b728-0x0;let _0x656c73=_0x206b[_0x10b728];return _0x656c73;};import{Plugin as _0x4dde8d}from'ckeditor5/src/core';export default class yt extends _0x4dde8d{[_0x656c('0x1')](){const _0x4b8c10=this[_0x656c('0x0')];_0x4b8c10[_0x656c('0x5')][_0x656c('0x3')](_0x656c('0x2'))&&_0x4b8c10[_0x656c('0x5')][_0x656c('0x4')]('TrackChangesEditing')['enableCommand']('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d96=['start','from','getChangedMarkers','locale','getNearestSelectionRange','editor','newRange','Title','end','registerPostFixer','nodeBefore','element','updateMarker','differ','_descriptionFactory','plugins','isTouching','forward','model','_splitMarkerName','registerElementLabel','isEqual','schema','suggestion','get','document','has','title-content','isCollapsed'];(function(_0x70fbb3,_0x4d9687){const _0x3a8e34=function(_0x10a6b3){while(--_0x10a6b3){_0x70fbb3['push'](_0x70fbb3['shift']());}};_0x3a8e34(++_0x4d9687);}(_0x4d96,0x81));const _0x3a8e=function(_0x70fbb3,_0x4d9687){_0x70fbb3=_0x70fbb3-0x0;let _0x3a8e34=_0x4d96[_0x70fbb3];return _0x3a8e34;};import{Plugin as _0xb67e75}from'ckeditor5/src/core';import{getTranslation as _0x5de515}from'../utils/common-translations';export default class St extends _0xb67e75{['afterInit'](){const _0x2c3d74=this[_0x3a8e('0x15')];if(!_0x2c3d74['plugins'][_0x3a8e('0xd')](_0x3a8e('0x17')))return;const _0x11f587=_0x2c3d74[_0x3a8e('0x2')][_0x3a8e('0xb')]('TrackChangesEditing');_0x11f587[_0x3a8e('0x1')][_0x3a8e('0x7')](_0x3a8e('0xe'),()=>_0x5de515(_0x2c3d74[_0x3a8e('0x13')],'ELEMENT_TITLE')),_0x2c3d74['model']['document'][_0x3a8e('0x19')](_0x5ee705=>{let _0x451ae1=!0x1;const _0x57fada=Array[_0x3a8e('0x11')](_0x2c3d74[_0x3a8e('0x5')][_0x3a8e('0xc')][_0x3a8e('0x0')][_0x3a8e('0x12')]());for(const {name:_0x1482a1,data:_0x1242f9}of _0x57fada){const {group:_0x2f279b}=_0x11f587[_0x3a8e('0x6')](_0x1482a1);if(_0x3a8e('0xa')!==_0x2f279b||!_0x1242f9[_0x3a8e('0x16')])continue;const _0x3240fb=_0x1242f9[_0x3a8e('0x16')],_0x294b10=_0x3240fb[_0x3a8e('0x18')][_0x3a8e('0x1a')];if(!_0x294b10||!_0x294b10['is'](_0x3a8e('0x1b'),_0x3a8e('0xe')))continue;if(!_0x3240fb[_0x3a8e('0x10')][_0x3a8e('0x3')](_0x3240fb[_0x3a8e('0x18')]))continue;const _0x147015=_0x2c3d74[_0x3a8e('0x5')][_0x3a8e('0x9')][_0x3a8e('0x14')](_0x3240fb['end'],_0x3a8e('0x4'));if(_0x147015&&_0x147015[_0x3a8e('0xf')]){const _0x3d4db1=_0x5ee705['createRange'](_0x3240fb[_0x3a8e('0x10')],_0x147015['start']);_0x3d4db1[_0x3a8e('0x8')](_0x3240fb)||(_0x5ee705[_0x3a8e('0x1c')](_0x1482a1,{'range':_0x3d4db1}),_0x451ae1=!0x0);}_0x451ae1||(_0x5ee705['removeMarker'](_0x1482a1),_0x451ae1=!0x0);}return _0x451ae1;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4244=['plugins','enableCommand','TrackChangesEditing','has','get','undo','afterInit'];(function(_0x45b54d,_0x42442d){const _0x49e6fe=function(_0x3f7260){while(--_0x3f7260){_0x45b54d['push'](_0x45b54d['shift']());}};_0x49e6fe(++_0x42442d);}(_0x4244,0x189));const _0x49e6=function(_0x45b54d,_0x42442d){_0x45b54d=_0x45b54d-0x0;let _0x49e6fe=_0x4244[_0x45b54d];return _0x49e6fe;};import{Plugin as _0x388242}from'ckeditor5/src/core';export default class It extends _0x388242{[_0x49e6('0x5')](){const _0x317f64=this['editor'],_0x4775b8=_0x317f64[_0x49e6('0x6')][_0x49e6('0x3')](_0x49e6('0x1'));_0x317f64['plugins'][_0x49e6('0x2')]('UndoEditing')&&(_0x4775b8[_0x49e6('0x0')](_0x49e6('0x4')),_0x4775b8['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eab=['model','addHighlight','addClass','markerName','getAttribute','listItem','bindElementToMarker','hasAttribute','TrackChangesEditing','elementEnd','span','parent','toViewElement','ck-suggestion-marker--active','nextSibling','test','writer','get','getCustomProperty','type','isLimit','plugins','activeMarkers','mapper','element','consumable','getWalker','isBlock','push','isAtEnd','toViewPosition','getItems','ck-suggestion-marker-','previousPosition','name','markerRange','item'];(function(_0x299041,_0x5eab8a){const _0x4f7c95=function(_0x14c5ba){while(--_0x14c5ba){_0x299041['push'](_0x299041['shift']());}};_0x4f7c95(++_0x5eab8a);}(_0x5eab,0x112));const _0x4f7c=function(_0x299041,_0x5eab8a){_0x299041=_0x299041-0x0;let _0x4f7c95=_0x5eab[_0x299041];return _0x4f7c95;};export function getRangesWithAttribute(_0x34a102,_0x31ef65,_0x13c3f5){const _0x24e3cc=[];for(const _0x257b9e of _0x31ef65[_0x4f7c('0x10')]())_0x257b9e[_0x4f7c('0x1d')](_0x34a102)&&_0x24e3cc['push'](_0x13c3f5['createRangeOn'](_0x257b9e));return _0x24e3cc;}export function getElementsAffectedByListItemRename(_0x8cbd2c){const _0x37c1b9=[];if(_0x8cbd2c['is'](_0x4f7c('0x9'),_0x4f7c('0x1b'))){let _0xd3e9b8=_0x8cbd2c[_0x4f7c('0x24')];for(;_0xd3e9b8&&_0xd3e9b8['is'](_0x4f7c('0x9'),'listItem')&&_0xd3e9b8[_0x4f7c('0x1a')]('listIndent')>0x0;)_0x37c1b9[_0x4f7c('0xd')](_0xd3e9b8),_0xd3e9b8=_0xd3e9b8[_0x4f7c('0x24')];}return _0x37c1b9;}export function downcastSplitMergeMarker(_0x81d625,_0x681cef,{showActiveMarker:_0x2aed25=!0x0}={}){const _0x2f6386=_0x81d625[_0x4f7c('0x6')][_0x4f7c('0x2')](_0x4f7c('0x1e'));return(_0x43e13d,_0x1fa7f7,_0x4ae529)=>{if(!_0x4ae529[_0x4f7c('0xa')][_0x4f7c('0x0')](_0x1fa7f7[_0x4f7c('0x14')],_0x43e13d[_0x4f7c('0x13')]))return;const _0x4492f1=_0x1fa7f7[_0x4f7c('0x14')][_0x4f7c('0xb')](),_0x3c06c3=_0x1fa7f7['markerRange']['start'],_0x2bf004=_0x81d625[_0x4f7c('0x16')]['schema'];let _0x2235cf=null,_0x42654c=null,_0x2ed93a=!0x1,_0x48cf45=!0x1;for(const _0x4dd7f6 of _0x4492f1){const _0x2ecd48=_0x4dd7f6[_0x4f7c('0x15')];_0x2ed93a=_0x2ed93a||_0x2bf004['isContent'](_0x2ecd48);const _0x49f6ea=_0x4ae529['mapper'][_0x4f7c('0x22')](_0x2ecd48);if(_0x49f6ea&&_0x49f6ea[_0x4f7c('0x3')](_0x4f7c('0x17')))return;_0x4f7c('0x1f')==_0x4dd7f6[_0x4f7c('0x4')]&&(_0x2bf004[_0x4f7c('0xc')](_0x2ecd48)&&!_0x2bf004[_0x4f7c('0x5')](_0x2ecd48)&&(_0x2ecd48['nextSibling']||_0x3c06c3[_0x4f7c('0xe')]?_0x2235cf&&_0x2235cf[_0x4f7c('0x21')]==_0x2ecd48||(_0x2235cf=_0x2ecd48,_0x1e6fc8(_0x4dd7f6[_0x4f7c('0x12')]),_0x48cf45=!0x0):_0x42654c=_0x42654c||_0x4dd7f6[_0x4f7c('0x12')]));}function _0x1e6fc8(_0x30b4bf){const _0x1a426f=_0x4ae529[_0x4f7c('0x1')]['createUIElement'](_0x4f7c('0x20'),{'class':_0x4f7c('0x11')+_0x681cef}),_0x4561ec=_0x4ae529[_0x4f7c('0x8')][_0x4f7c('0xf')](_0x30b4bf);_0x2aed25&&_0x2f6386[_0x4f7c('0x7')]['includes'](_0x1fa7f7['markerName'])&&_0x4ae529[_0x4f7c('0x1')][_0x4f7c('0x18')](_0x4f7c('0x23'),_0x1a426f),_0x4ae529['writer']['insert'](_0x4561ec,_0x1a426f),_0x4ae529[_0x4f7c('0x8')][_0x4f7c('0x1c')](_0x1a426f,_0x1fa7f7[_0x4f7c('0x19')]);}_0x2ed93a||_0x48cf45||!_0x42654c||_0x1e6fc8(_0x42654c);};}
|