@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.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 _0x10a2=['editingDowncast','schema','markers','insertion','rows','markerAttributes','editing','wrap','change','getRanges','position','registerCustomCallback','fill','tableCell','getAllAdjacentSuggestions','unwrap','markMultiRangeInsertion','element','getAttributes','getRowIndexes','markerToHighlight','getChildren','start','value','listenTo','getRows','endColumn','registerDescriptionCallback','redo','createTableWalker','paragraph','columnInsertionRanges','model','suggestion:formatBlock:tablePasteCell','last','TrackChangesEditing','nextSibling','insert','cells','Users','row','reduce','getMarkers','deletionRanges','getColumnIndexes','some','getChild','tablePasteCell','suggestionLoaded','getTableIfOnlyTableInContent','createRangeIn','ck-suggestion-marker-insertion','column','remove','tableCellSuggestion','selection','deletion','setAttributes','isEmpty','previous','clipboardOutput','options','createElement','attributes','findAncestor','getShiftedBy','length','cell','from','tablePasteRow','insertColumns','containsRange','set','elementToElement','getRange','rootName','tablePaste','suggestionUnloaded','discard','rowInsertionIndexes','trackChanges','tableCellBorderColor','ck-suggestion-marker--active','$graveyard','_replaceTableSlotCell','formatBlock','fromEntries','hasSuggestion','endRow','add','type','filter','forceDefaultExecution','get','getSuggestion','root','join','tableCellVerticalAlignment','afterInit','subType','stop','tablePasteColumn','table','tableCellBorderStyle','isInContent','createRangeOn','first','has','view','newRange','author','suggestion','removeMarker','return','getColumns','ck-suggestion-marker','columnInsertionIndexes','end','activeMarkers','getContainedElement','getItems','tableCellHorizontalAlignment','createRange','every','differ','getChangedMarkers','removeMarkers','commands','plugins','getSuggestionCallback','_createdBatches','_tablePostFixingSubtypes','tablePasteChainId','registerPostFixer','getChanges','getSuggestions','markMultiRangeDeletion','nodeAfter','low','accept','getSelectionAffectedTableCells','push','for','map','oldRange','_splitMarkerName','tableCellBackgroundColor','high','includes','TableClipboard','suggestion-td','startsWith','document','name','_getCoordsForCells','markerName','rowInsertionRanges','entries','find','showSuggestionHighlights','documentSelection','setAttribute','_suggestionFactory','_descriptionFactory'];(function(_0x4ae7a0,_0x10a26d){const _0x55d570=function(_0x16d821){while(--_0x16d821){_0x4ae7a0['push'](_0x4ae7a0['shift']());}};_0x55d570(++_0x10a26d);}(_0x10a2,0x19e));const _0x55d5=function(_0x4ae7a0,_0x10a26d){_0x4ae7a0=_0x4ae7a0-0x0;let _0x55d570=_0x10a2[_0x4ae7a0];return _0x55d570;};import{getTranslation as _0x267cd4}from'../utils/common-translations';import{Plugin as _0x39a7e8}from'ckeditor5/src/core';import{uid as _0x19ee79,priorities as _0x303a0d}from'ckeditor5/src/utils';import _0x1e97d2 from'./table';const le=['tableCellBorderWidth',_0x55d5('0x9f'),_0x55d5('0x11'),_0x55d5('0x23'),_0x55d5('0xb'),_0x55d5('0x3c'),'tableCellPadding'],ae=Object[_0x55d5('0x0')](le[_0x55d5('0x39')](_0x5c1c01=>[_0x5c1c01,null]));export default class kt extends _0x39a7e8{static get['requires'](){return[_0x1e97d2];}[_0x55d5('0xc')](){const _0x1297a7=this['editor'];if(!_0x1297a7['plugins'][_0x55d5('0x15')](_0x55d5('0x3f')))return;const _0x28e8f2=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x71')),_0x282a12=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableUtils'),_0x3301fd=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x1e97d2),_0x10c6e1=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableClipboard');_0x3301fd[_0x55d5('0x2d')][_0x55d5('0x37')]('tablePasteRow','tablePasteColumn'),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x4f')]['register']('tableCellSuggestion',{'allowIn':_0x55d5('0x5b'),'allowContentOf':_0x55d5('0x5b'),'isLimit':!0x0}),_0x1297a7['conversion'][_0x55d5('0x97')]({'model':'tableCellSuggestion','view':_0x55d5('0x40')});let _0x54c1b9=null;_0x1297a7[_0x55d5('0x6e')]['on']('insertContent',(_0x451c8c,_0x46a0fb)=>{const [_0x5c7577,_0x5681a8]=_0x46a0fb,_0x769460=_0x46a0fb[_0x46a0fb[_0x55d5('0x90')]-0x1];_0x769460&&_0x769460[_0x55d5('0x6')]||_0x28e8f2['_isForcedDefaultExecutionBlock']||this['editor'][_0x55d5('0x29')][_0x55d5('0x7')](_0x55d5('0x9e'))[_0x55d5('0x65')]&&function(_0x2b38df,_0x32054f,_0x5ef307,_0x37eb9a,_0x45317e){if(_0x32054f&&!_0x32054f['is'](_0x55d5('0x4a')))return!0x1;const _0x58d7d3=_0x45317e[_0x55d5('0x7f')](_0x2b38df,_0x5ef307);if(!_0x58d7d3||!fe(_0x58d7d3,void 0x0,_0x37eb9a))return!0x1;const _0x45b9bd=_0x37eb9a[_0x55d5('0x36')](_0x5ef307[_0x55d5('0x42')][_0x55d5('0x85')]);if(!_0x45b9bd[_0x55d5('0x90')])return!0x1;const _0x164f33=_0x45b9bd[0x0]['findAncestor'](_0x55d5('0x10')),_0x5c5c18=_0x37eb9a[_0x55d5('0x61')](_0x45b9bd),_0x19adab=_0x37eb9a[_0x55d5('0x7a')](_0x45b9bd),_0x239b05={'startRow':_0x5c5c18[_0x55d5('0x14')],'endRow':_0x5c5c18[_0x55d5('0x70')],'startColumn':_0x19adab[_0x55d5('0x14')],'endColumn':_0x19adab[_0x55d5('0x70')]};return 0x1==_0x45b9bd[_0x55d5('0x90')]&&(_0x239b05[_0x55d5('0x2')]+=_0x37eb9a[_0x55d5('0x67')](_0x58d7d3)-0x1,_0x239b05[_0x55d5('0x68')]+=_0x37eb9a[_0x55d5('0x1c')](_0x58d7d3)-0x1),fe(_0x164f33,_0x239b05,_0x37eb9a);}(_0x5c7577,_0x5681a8,_0x1297a7['model'],_0x282a12,_0x10c6e1)&&(_0x451c8c[_0x55d5('0xe')](),_0x54c1b9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1297a7[_0x55d5('0x6e')]['change'](()=>{_0x1297a7[_0x55d5('0x6e')]['insertContent'](_0x46a0fb[0x0],_0x46a0fb[0x1],_0x46a0fb[0x2],{'forceDefaultExecution':!0x0});const _0x3a5b6a=_0x19ee79(),{rowInsertionRanges:_0x16146f,columnInsertionRanges:_0x4f17c4,insertionRanges:_0x2497ac,deletionRanges:_0x5496ce,cells:_0x32a737}=_0x54c1b9;_0x16146f[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x16146f,_0x55d5('0x93'),{'tablePasteChainId':_0x3a5b6a}),_0x4f17c4[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x4f17c4,_0x55d5('0xf'),{'tablePasteChainId':_0x3a5b6a}),_0x2497ac[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x2497ac,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0}),_0x5496ce['length']&&_0x28e8f2[_0x55d5('0x32')](_0x5496ce,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0});const _0x2a62f2=_0x28e8f2['markMultiRangeBlockFormat'](_0x32a737[_0x55d5('0x39')](({element:_0x55771c})=>_0x55771c),{'formatGroupId':_0x19ee79()},[],_0x55d5('0x7d'),{'tablePasteChainId':_0x3a5b6a});if(_0x2a62f2){const _0x200fa1=_0x2a62f2[_0x55d5('0x78')](),_0x2b7425=[];for(const {element:_0x380544,attributes:_0x5c917f}of _0x32a737){if(!_0x5c917f)continue;const _0x42049b=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x380544),_0x524d33=_0x200fa1[_0x55d5('0x48')](_0x3d8815=>_0x3d8815[_0x55d5('0x98')]()['isEqual'](_0x42049b));_0x524d33&&_0x2b7425[_0x55d5('0x37')]([_0x524d33['name'],_0x5c917f]);}_0x2b7425[_0x55d5('0x90')]&&_0x2a62f2[_0x55d5('0x4b')]('markerAttributes',Object[_0x55d5('0x0')](_0x2b7425));}_0x54c1b9=null;}));},{'priority':_0x303a0d[_0x55d5('0x3d')]+0xa}),_0x1297a7[_0x55d5('0x2a')]['get'](_0x55d5('0x3f'))['on'](_0x55d5('0xa2'),(_0x444a0a,_0x4e5515)=>{const [_0x4f04f2,_0x4d08a1,,_0x458626]=_0x4e5515;if(!_0x54c1b9)return;_0x444a0a['stop']();const _0x3dd11d=_0x4f04f2[_0x55d5('0x91')],_0x47ca07=_0x4d08a1,_0x3ea340=ce(_0x3dd11d),_0x40526b=ce(_0x47ca07);_0x444a0a[_0x55d5('0x1b')]=_0x3dd11d;let _0x7cb6e5=null,_0x376bd7=null;if(_0x40526b||_0x3ea340){if(_0x3ea340&&!_0x40526b){_0x458626['remove'](_0x3dd11d[_0x55d5('0x7c')](0x0));for(const _0x2534dc of Array[_0x55d5('0x92')](_0x47ca07['getChildren']()))_0x458626[_0x55d5('0x73')](_0x2534dc,_0x3dd11d,_0x55d5('0x1f'));const _0x3f0eff=_0x54c1b9[_0x55d5('0x9d')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x76')]),_0x1945a2=_0x54c1b9[_0x55d5('0x1e')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x82')]);_0x3f0eff||_0x1945a2||(_0x7cb6e5=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else _0x40526b&&!_0x3ea340&&(_0x376bd7=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else{const _0xb68f=_0x458626['createElement'](_0x55d5('0x84')),_0x157ad6=_0x458626[_0x55d5('0x8c')](_0x55d5('0x84'));_0x458626[_0x55d5('0x55')](_0x458626['createRangeIn'](_0x3dd11d),_0x157ad6),_0x458626[_0x55d5('0x73')](_0xb68f,_0x3dd11d,0x0);for(const _0x5161c5 of Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x63')]()))_0x458626[_0x55d5('0x73')](_0x5161c5,_0xb68f,_0x55d5('0x1f'));_0x7cb6e5=_0x458626[_0x55d5('0x13')](_0xb68f),_0x376bd7=_0x458626['createRangeOn'](_0x157ad6);}const _0x5ad7d9=Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x60')]())[_0x55d5('0x5')](([_0x3f20fb])=>le[_0x55d5('0x3e')](_0x3f20fb));_0x54c1b9[_0x55d5('0x74')][_0x55d5('0x37')]({'element':_0x3dd11d,'attributes':_0x5ad7d9[_0x55d5('0x90')]?Object[_0x55d5('0x0')](_0x5ad7d9):null}),_0x7cb6e5&&_0x54c1b9['insertionRanges']['push'](_0x7cb6e5),_0x376bd7&&_0x54c1b9[_0x55d5('0x79')][_0x55d5('0x37')](_0x376bd7);},{'priority':_0x55d5('0x3d')}),_0x282a12['on'](_0x55d5('0x94'),(_0x3f8117,_0x2eec42)=>{const [_0x515ce5,_0x46d5cf={}]=_0x2eec42;if(!_0x54c1b9)return;const _0x510bca=_0x46d5cf['at']||0x0,_0xba4f05=_0x46d5cf['columns']||0x1;_0x54c1b9[_0x55d5('0x1e')]=new Array(_0xba4f05)[_0x55d5('0x5a')](_0x510bca)[_0x55d5('0x39')]((_0x3e819e,_0x5db857)=>_0x3e819e+_0x5db857);for(const {cell:_0x59d7a0}of _0x282a12[_0x55d5('0x6b')](_0x515ce5,{'startColumn':_0x510bca,'endColumn':_0x510bca+_0xba4f05-0x1}))_0x54c1b9[_0x55d5('0x6d')]['push'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x59d7a0));},{'priority':_0x55d5('0x34')}),_0x282a12['on']('insertRows',(_0x5a1764,_0x3acb1a)=>{const [_0x4d19f3,_0x24ba60={}]=_0x3acb1a;if(!_0x54c1b9)return;const _0x5327f1=_0x24ba60['at']||0x0,_0x50f849=_0x24ba60[_0x55d5('0x52')]||0x1;_0x54c1b9[_0x55d5('0x9d')]=new Array(_0x50f849)[_0x55d5('0x5a')](_0x5327f1)[_0x55d5('0x39')]((_0x2da548,_0x2623ed)=>_0x2da548+_0x2623ed);for(const {cell:_0x1d1298}of _0x282a12[_0x55d5('0x6b')](_0x4d19f3,{'startRow':_0x5327f1,'endRow':_0x5327f1+_0x50f849-0x1}))_0x54c1b9[_0x55d5('0x46')][_0x55d5('0x37')](_0x1297a7['model'][_0x55d5('0x13')](_0x1d1298));},{'priority':_0x55d5('0x34')}),_0x28e8f2[_0x55d5('0x4d')][_0x55d5('0x69')](_0x4033aa=>{if(_0x4033aa[_0x55d5('0xd')]&&_0x4033aa[_0x55d5('0xd')][_0x55d5('0x41')]('tablePaste'))return _0x4033aa['previous']?{}:{'type':_0x55d5('0x51'),'content':_0x267cd4(_0x1297a7['locale'],'*Replace\x20table\x20cells*')};});const _0x5b52b3=()=>{};for(const _0x21a9ed of[_0x55d5('0x9a'),_0x55d5('0xf'),'tablePasteRow',_0x55d5('0x7d')])_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x21a9ed,_0x55d5('0xa'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0x86'),_0x21a9ed,'join',_0x5b52b3);_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x9c'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x35'),(_0xa12438,_0x1465ee,_0x2a5cf2)=>{const _0x35a9a6=_0xa12438['map'](_0x3680c2=>_0x3680c2['getContainedElement']())[_0x55d5('0x5')](_0x48aa34=>_0x48aa34),_0x5496bc=new Map(_0x35a9a6['map'](_0x38a915=>[_0x38a915,null]));if(_0x54c1b9)for(const {element:_0x20378d,attributes:_0x3443f1}of _0x54c1b9[_0x55d5('0x74')])_0x3443f1&&_0x5496bc[_0x55d5('0x96')](_0x20378d,_0x3443f1);else{if(_0x2a5cf2&&_0x2a5cf2[_0x55d5('0x53')])for(const [_0x393d4e,_0x350e22]of Object[_0x55d5('0x47')](_0x2a5cf2[_0x55d5('0x53')])){const _0x7fb2aa=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x50')][_0x55d5('0x7')](_0x393d4e),_0xa71d0b=_0x7fb2aa?_0x7fb2aa[_0x55d5('0x98')]()[_0x55d5('0x21')]():null;_0xa71d0b&&_0x5496bc['set'](_0xa71d0b,_0x350e22);}}_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0xfd918b=>{for(const [_0x16a108,_0x48ba2f]of _0x5496bc)_0xfd918b[_0x55d5('0x87')]({...ae,..._0x48ba2f},_0x16a108);});});const _0x5b28aa=(_0x61772e,_0x158f80)=>{_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x61772e,_0x55d5('0x9a'),_0x158f80,(_0x3c2dea,_0x35af6a,_0x6a3604)=>{_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0x2d39fe=>{const _0x2f8fc=[];for(const _0x250407 of _0x3c2dea){const _0x57920d=_0x250407[_0x55d5('0x64')][_0x55d5('0x33')];_0x57920d['is'](_0x55d5('0x5f'),_0x55d5('0x84'))&&_0x2f8fc['push'](_0x57920d);}_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x2b')](_0x61772e,null,_0x158f80)(_0x3c2dea,_0x35af6a,_0x6a3604);for(const _0x3d9b92 of _0x2f8fc)_0x55d5('0xa1')!=_0x3d9b92[_0x55d5('0x9')][_0x55d5('0x99')]&&_0x2d39fe[_0x55d5('0x5d')](_0x3d9b92);});});};_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x9c')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x9c')),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),'tablePasteRow',_0x55d5('0x9c'),_0x90e4fc=>{const _0x350ccb=_0x90e4fc[_0x55d5('0x39')](_0x189eac=>_0x189eac[_0x55d5('0x21')]()),_0x90e887=_0x350ccb[0x0][_0x55d5('0x8e')]('table'),{minRow:_0x28be8e,maxRow:_0x5bdd17}=_0x3301fd[_0x55d5('0x44')](_0x350ccb);_0x282a12['removeRows'](_0x90e887,{'at':_0x28be8e,'rows':_0x5bdd17-_0x28be8e+0x1});}),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x55d5('0xf'),_0x55d5('0x9c'),_0x52b452=>{const _0x210faa=_0x52b452[_0x55d5('0x39')](_0x5cdbab=>_0x5cdbab['getContainedElement']()),_0x1d5df3=_0x210faa[0x0][_0x55d5('0x8e')]('table'),{minColumn:_0x14d627,maxColumn:_0x12c4c5}=_0x3301fd[_0x55d5('0x44')](_0x210faa);_0x282a12['removeColumns'](_0x1d5df3,{'at':_0x14d627,'columns':_0x12c4c5-_0x14d627+0x1});});const _0xba96f0=(_0x32ac5b,_0x5752d1)=>{if(!_0x5752d1[_0x55d5('0xd')]||!_0x5752d1['subType']['startsWith'](_0x55d5('0x9a')))return;const _0x3a0d97=_0x5752d1[_0x55d5('0x8d')][_0x55d5('0x2e')],_0x33f435=_0x28e8f2[_0x55d5('0x31')]()['filter'](_0x5de553=>_0x5de553[_0x55d5('0x12')]&&_0x5de553[_0x55d5('0x8d')]&&_0x5de553[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x3a0d97);_0x33f435['length']&&_0x5752d1[_0x55d5('0x5c')]()[_0x55d5('0x90')]!=_0x33f435[_0x55d5('0x90')]&&_0x33f435[_0x55d5('0x77')]((_0x2df3f9,_0x4fdf62)=>(_0x2df3f9['next']=_0x4fdf62,_0x4fdf62[_0x55d5('0x89')]=_0x2df3f9,_0x4fdf62));};function _0xd6468f(_0x5f2000,_0x2851ea=!0x0){const {id:_0x1fdce6}=_0x28e8f2[_0x55d5('0x3b')](_0x5f2000['markerName']),_0x141240=[_0x55d5('0x1d'),_0x55d5('0x81')],_0x3d6465=_0x28e8f2[_0x55d5('0x20')]['includes'](_0x5f2000[_0x55d5('0x45')]);return _0x3d6465&&_0x141240[_0x55d5('0x37')](_0x55d5('0xa0')),{'classes':_0x141240,'attributes':{'data-suggestion':_0x1fdce6},'priority':_0x3d6465&&_0x2851ea?0xbc2:0xbb8};}_0x28e8f2['on'](_0x55d5('0x7e'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x28e8f2['on'](_0x55d5('0x9b'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](()=>{let _0x5d28a3=!0x1;const _0x3678f6=Array['from'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x26')][_0x55d5('0x27')]());for(const {name:_0xdcdbb4,data:_0x1c23d9}of _0x3678f6){const {group:_0x4c6d1d,type:_0x4ef505,id:_0x31e52e}=_0x28e8f2['_splitMarkerName'](_0xdcdbb4);if(_0x55d5('0x19')!=_0x4c6d1d||_0x55d5('0x86')!=_0x4ef505||_0x1c23d9[_0x55d5('0x3a')])continue;if(!_0x28e8f2[_0x55d5('0x1')](_0x31e52e))continue;const _0x116e75=_0x28e8f2[_0x55d5('0x8')](_0x31e52e)[_0x55d5('0x57')](),_0x3fcd60=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'];for(const _0x20953d of _0x28e8f2[_0x55d5('0x31')]()){if(!_0x20953d['isInContent']||_0x20953d[_0x55d5('0x18')]!=_0x3fcd60)continue;if('formatBlock'!=_0x20953d[_0x55d5('0x4')]||_0x55d5('0x7d')!=_0x20953d[_0x55d5('0xd')])continue;if(_0x20953d['getRanges']()[_0x55d5('0x25')](_0x592b1c=>_0x116e75[_0x55d5('0x7b')](_0x3ad641=>_0x3ad641[_0x55d5('0x95')](_0x592b1c,!0x0))))for(const _0x486407 of _0x20953d[_0x55d5('0x5c')]())_0x486407[_0x55d5('0x12')]&&(_0x486407[_0x55d5('0x9c')](),_0x5d28a3=!0x0);}}return _0x5d28a3;}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](_0x16d9e9=>{const _0x33c825=_0x1297a7['commands'][_0x55d5('0x7')](_0x55d5('0x6a'));if(!_0x33c825||!_0x33c825[_0x55d5('0x2c')]['has'](_0x16d9e9['batch']))return!0x1;let _0x2f6db7=!0x1;const _0xadaa4e=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x336c11=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')]['differ'][_0x55d5('0x30')](),_0x3aa14c=Array[_0x55d5('0x92')](_0x1297a7[_0x55d5('0x6e')]['document'][_0x55d5('0x26')][_0x55d5('0x27')]())[_0x55d5('0x5')](({name:_0x1242ab,data:_0x10f602})=>{const {group:_0x255c6a,subType:_0x3b44d1,authorId:_0x22f425}=_0x28e8f2['_splitMarkerName'](_0x1242ab);return _0x55d5('0x19')==_0x255c6a&&_0x55d5('0x9a')==_0x3b44d1&&_0x22f425==_0xadaa4e['id']&&!_0x10f602[_0x55d5('0x3a')];});for(const _0x118754 of _0x336c11){if(_0x55d5('0x73')!=_0x118754[_0x55d5('0x4')]||'tableCellSuggestion'!=_0x118754[_0x55d5('0x43')]||0x1!=_0x118754[_0x55d5('0x90')])continue;const _0x5ccc93=_0x16d9e9[_0x55d5('0x24')](_0x118754['position'],_0x118754[_0x55d5('0x58')][_0x55d5('0x8f')](0x1));if(!_0x3aa14c[_0x55d5('0x48')](({data:_0x241839})=>_0x241839[_0x55d5('0x17')]['isEqual'](_0x5ccc93)))for(const {name:_0x3e07c3,data:_0x31a5e9}of _0x3aa14c)if(_0x5ccc93[_0x55d5('0x95')](_0x31a5e9[_0x55d5('0x17')])){_0x16d9e9['updateMarker'](_0x3e07c3,{'range':_0x5ccc93}),_0x2f6db7=!0x0;break;}}return _0x2f6db7;}),_0x1297a7['model'][_0x55d5('0x42')][_0x55d5('0x2f')](_0x586cff=>{let _0x35fa3d=!0x1;const _0x10ed07=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x1cdec0=_0x28e8f2['getSuggestions']()[_0x55d5('0x5')](_0x29b98a=>_0x29b98a[_0x55d5('0x12')]&&_0x29b98a[_0x55d5('0x18')]==_0x10ed07),_0x4a96d7=new Set(),_0x1be6d9=new Set();for(const _0x3b47e5 of _0x1cdec0)if('tablePaste'==_0x3b47e5[_0x55d5('0xd')])for(const _0x11d17c of _0x3b47e5[_0x55d5('0x78')]()){const _0x3a2d6a=_0x11d17c['getRange']()[_0x55d5('0x21')]();if(_0x3a2d6a){if(_0x3a2d6a['is'](_0x55d5('0x5f'),'tableCellSuggestion')&&ce(_0x3a2d6a)){_0x3b47e5['removeMarker'](_0x11d17c['name']),_0x4a96d7[_0x55d5('0x3')](_0x3a2d6a),_0x35fa3d=!0x0;const _0x10efa9=_0x3a2d6a[_0x55d5('0x72')],_0x3ce23c=_0x3a2d6a['previousSibling'],_0x2d5d0c=_0x10efa9&&_0x10efa9['is']('element','tableCellSuggestion'),_0x4bf0bd=_0x3ce23c&&_0x3ce23c['is'](_0x55d5('0x5f'),_0x55d5('0x84'));_0x2d5d0c&&!_0x4a96d7['has'](_0x10efa9)&&_0x1be6d9[_0x55d5('0x3')](_0x10efa9),_0x4bf0bd&&!_0x4a96d7[_0x55d5('0x15')](_0x3ce23c)&&_0x1be6d9[_0x55d5('0x3')](_0x3ce23c);}else _0x3a2d6a['is'](_0x55d5('0x5f'),_0x55d5('0x6c'))&&_0x3a2d6a[_0x55d5('0x88')]&&(_0x3b47e5[_0x55d5('0x1a')](_0x11d17c[_0x55d5('0x43')]),_0x35fa3d=!0x0);}}else{if('tablePasteCell'==_0x3b47e5[_0x55d5('0xd')]){if(!_0x3b47e5[_0x55d5('0x8d')]||!_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x2e')])continue;const _0x4b5df1=_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x53')];if(_0x4b5df1&&Object['keys'](_0x4b5df1)['length'])continue;const _0x42865e=_0x3b47e5['attributes']['tablePasteChainId'];let _0x5dcb89=!0x0,_0x45da5a=!0x0;for(const _0x287a87 of _0x1cdec0)if(_0x287a87['subType']&&_0x287a87[_0x55d5('0xd')]['startsWith'](_0x55d5('0x9a'))){if(!_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]){_0x45da5a=!0x1;break;}if(_0x287a87['id']!=_0x3b47e5['id']&&_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x42865e){_0x5dcb89=!0x1;break;}}_0x45da5a&&_0x5dcb89&&(_0x3b47e5[_0x55d5('0x28')](),_0x35fa3d=!0x0);}}for(const _0x31cc06 of _0x4a96d7)_0x586cff['remove'](_0x31cc06);for(const _0x201904 of _0x1be6d9)_0x586cff[_0x55d5('0x5d')](_0x201904);return _0x35fa3d;}),_0x1297a7['conversion'][_0x55d5('0x38')](_0x55d5('0x4e'))[_0x55d5('0x62')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9852f1,_0x3a73b9)=>_0xd6468f(_0x9852f1),'converterPriority':_0x55d5('0x3d')}),_0x1297a7['conversion'][_0x55d5('0x38')]('dataDowncast')[_0x55d5('0x62')]({'model':_0x55d5('0x6f'),'view':(_0x202bec,_0x261773)=>_0x261773[_0x55d5('0x8b')][_0x55d5('0x49')]?_0xd6468f(_0x202bec,!0x1):null,'converterPriority':'high'});const _0x2ce9cf=_0x1297a7[_0x55d5('0x54')][_0x55d5('0x16')];this[_0x55d5('0x66')](_0x2ce9cf[_0x55d5('0x42')],_0x55d5('0x8a'),(_0x19be88,_0x54b7ac)=>{const _0x54056a=[];for(const _0x5487e8 of _0x2ce9cf[_0x55d5('0x80')](_0x54b7ac['content'])[_0x55d5('0x22')]())_0x5487e8['is']('element',_0x55d5('0x40'))&&_0x54056a[_0x55d5('0x37')](_0x5487e8);_0x2ce9cf[_0x55d5('0x56')](_0x5aa57d=>{for(const _0x2691c0 of _0x54056a)_0x5aa57d['move'](_0x5aa57d[_0x55d5('0x80')](_0x2691c0),_0x5aa57d['createPositionBefore'](_0x2691c0)),_0x5aa57d[_0x55d5('0x83')](_0x2691c0);});});}}function ce(_0x389333){if(_0x389333['isEmpty'])return!0x0;const _0x390d47=_0x389333[_0x55d5('0x7c')](0x0);return _0x390d47['is'](_0x55d5('0x5f'),'paragraph')&&_0x390d47['isEmpty'];}function fe(_0x489bc8,_0x287095={},_0x4f27e8){for(const {isAnchor:_0x389923,cellHeight:_0x46e769,cellWidth:_0x563b43}of _0x4f27e8[_0x55d5('0x6b')](_0x489bc8,{'includeAllSlots':!0x0,..._0x287095}))if(!_0x389923||0x1!=_0x46e769||0x1!=_0x563b43)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4198=['newRange','length','elementToElement','isEmpty','cells','endColumn','columnInsertionRanges','*Replace\x20table\x20cells*','markMultiRangeDeletion','updateMarker','insert','tablePasteColumn','remove','deletion','createRange','suggestion:formatBlock:tablePasteCell','activeMarkers','name','ck-suggestion-marker-insertion','suggestion-td','markerToHighlight','editingDowncast','getItems','push','reduce','previous','TableClipboard','tableCellBorderColor','register','tableCellSuggestion','commands','element','markerName','subType','suggestionUnloaded','insertion','view','first','tableCellHorizontalAlignment','some','rows','suggestion','removeMarkers','getSuggestion','removeMarker','tablePaste','tableCellVerticalAlignment','createElement','cell','removeColumns','high','map','getRowIndexes','model','removeRows','end','registerPostFixer','editor','getAllAdjacentSuggestions','next','get','find','_getCoordsForCells','getContainedElement','deletionRanges','tableCell','differ','requires','table','getChanges','_descriptionFactory','stop','batch','ck-suggestion-marker','createRangeOn','columns','add','getRange','root','start','nodeAfter','change','join','_suggestionFactory','isEqual','markMultiRangeInsertion','discard','getTableIfOnlyTableInContent','insertColumns','fill','getSuggestions','isInContent','Users','tablePasteRow','conversion','tableCellBorderWidth','type','low','getRows','containsRange','rowInsertionRanges','_tablePostFixingSubtypes','every','createRangeIn','position','from','rowInsertionIndexes','registerCustomCallback','startsWith','fromEntries','set','unwrap','setAttributes','afterInit','getColumnIndexes','markerAttributes','columnInsertionIndexes','getChangedMarkers','getSelectionAffectedTableCells','tablePasteChainId','document','forceDefaultExecution','_replaceTableSlotCell','includes','insertContent','getMarkers','_splitMarkerName','_isForcedDefaultExecutionBlock','$graveyard','getColumns','entries','plugins','_createdBatches','keys','tablePasteCell','tableCellBorderStyle','getRanges','for','getChild','findAncestor','getAttributes','accept','dataDowncast','filter','getChildren','has','wrap','formatBlock','tableCellBackgroundColor','paragraph','oldRange','createTableWalker','insertionRanges','attributes','locale','setAttribute'];(function(_0x437add,_0x419833){const _0x3900c5=function(_0x2731d2){while(--_0x2731d2){_0x437add['push'](_0x437add['shift']());}};_0x3900c5(++_0x419833);}(_0x4198,0x17f));const _0x3900=function(_0x437add,_0x419833){_0x437add=_0x437add-0x0;let _0x3900c5=_0x4198[_0x437add];return _0x3900c5;};import{getTranslation as _0x3f2121}from'../utils/common-translations';import{Plugin as _0x4e6504}from'ckeditor5/src/core';import{uid as _0x3dfb24,priorities as _0x4e4404}from'ckeditor5/src/utils';import _0x2ea1bd from'./table';const le=[_0x3900('0x18'),_0x3900('0x70'),_0x3900('0x40'),_0x3900('0x7b'),_0x3900('0x83'),_0x3900('0x4d'),'tableCellPadding'],ae=Object['fromEntries'](le[_0x3900('0x88')](_0x4e79ed=>[_0x4e79ed,null]));export default class kt extends _0x4e6504{static get[_0x3900('0x98')](){return[_0x2ea1bd];}[_0x3900('0x2a')](){const _0x613aa1=this[_0x3900('0x8e')];if(!_0x613aa1[_0x3900('0x3c')][_0x3900('0x4a')](_0x3900('0x6f')))return;const _0x4cf0b7=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')]('TrackChangesEditing'),_0x5d12fe=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')]('TableUtils'),_0x4329d2=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x2ea1bd),_0x28a4c0=_0x613aa1[_0x3900('0x3c')]['get'](_0x3900('0x6f'));_0x4329d2[_0x3900('0x1e')]['push'](_0x3900('0x16'),_0x3900('0x60')),_0x613aa1['model']['schema'][_0x3900('0x71')](_0x3900('0x72'),{'allowIn':_0x3900('0x96'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x613aa1[_0x3900('0x17')][_0x3900('0x57')]({'model':_0x3900('0x72'),'view':_0x3900('0x68')});let _0xb48b64=null;_0x613aa1[_0x3900('0x8a')]['on'](_0x3900('0x35'),(_0x54c404,_0x1fa016)=>{const [_0x3f699d,_0x4c7d2e]=_0x1fa016,_0xef005f=_0x1fa016[_0x1fa016[_0x3900('0x56')]-0x1];_0xef005f&&_0xef005f[_0x3900('0x32')]||_0x4cf0b7[_0x3900('0x38')]||this[_0x3900('0x8e')][_0x3900('0x73')]['get']('trackChanges')['value']&&function(_0x453b11,_0x40b5d2,_0x12eb7d,_0x3f2a4f,_0x5a1f80){if(_0x40b5d2&&!_0x40b5d2['is']('documentSelection'))return!0x1;const _0x18320b=_0x5a1f80[_0x3900('0x10')](_0x453b11,_0x12eb7d);if(!_0x18320b||!fe(_0x18320b,void 0x0,_0x3f2a4f))return!0x1;const _0x45c33a=_0x3f2a4f[_0x3900('0x2f')](_0x12eb7d[_0x3900('0x31')]['selection']);if(!_0x45c33a[_0x3900('0x56')])return!0x1;const _0x4ddcb1=_0x45c33a[0x0]['findAncestor'](_0x3900('0x99')),_0x2ca3d1=_0x3f2a4f[_0x3900('0x89')](_0x45c33a),_0x1c232d=_0x3f2a4f[_0x3900('0x2b')](_0x45c33a),_0x5f4406={'startRow':_0x2ca3d1[_0x3900('0x7a')],'endRow':_0x2ca3d1['last'],'startColumn':_0x1c232d[_0x3900('0x7a')],'endColumn':_0x1c232d['last']};return 0x1==_0x45c33a['length']&&(_0x5f4406['endRow']+=_0x3f2a4f[_0x3900('0x1b')](_0x18320b)-0x1,_0x5f4406[_0x3900('0x5a')]+=_0x3f2a4f[_0x3900('0x3a')](_0x18320b)-0x1),fe(_0x4ddcb1,_0x5f4406,_0x3f2a4f);}(_0x3f699d,_0x4c7d2e,_0x613aa1[_0x3900('0x8a')],_0x5d12fe,_0x28a4c0)&&(_0x54c404[_0x3900('0x0')](),_0xb48b64={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x613aa1[_0x3900('0x8a')]['change'](()=>{_0x613aa1[_0x3900('0x8a')]['insertContent'](_0x1fa016[0x0],_0x1fa016[0x1],_0x1fa016[0x2],{'forceDefaultExecution':!0x0});const _0x4bc30a=_0x3dfb24(),{rowInsertionRanges:_0x46a8a1,columnInsertionRanges:_0x40196e,insertionRanges:_0x511df2,deletionRanges:_0xe152f7,cells:_0x2d5970}=_0xb48b64;_0x46a8a1['length']&&_0x4cf0b7[_0x3900('0xe')](_0x46a8a1,'tablePasteRow',{'tablePasteChainId':_0x4bc30a}),_0x40196e[_0x3900('0x56')]&&_0x4cf0b7[_0x3900('0xe')](_0x40196e,_0x3900('0x60'),{'tablePasteChainId':_0x4bc30a}),_0x511df2[_0x3900('0x56')]&&_0x4cf0b7[_0x3900('0xe')](_0x511df2,_0x3900('0x82'),{'tablePasteChainId':_0x4bc30a,'skipNestingCheck':!0x0}),_0xe152f7['length']&&_0x4cf0b7[_0x3900('0x5d')](_0xe152f7,_0x3900('0x82'),{'tablePasteChainId':_0x4bc30a,'skipNestingCheck':!0x0});const _0x3f35ec=_0x4cf0b7['markMultiRangeBlockFormat'](_0x2d5970[_0x3900('0x88')](({element:_0x410a2d})=>_0x410a2d),{'formatGroupId':_0x3dfb24()},[],_0x3900('0x3f'),{'tablePasteChainId':_0x4bc30a});if(_0x3f35ec){const _0xcead39=_0x3f35ec['getMarkers'](),_0x174a45=[];for(const {element:_0x5cd268,attributes:_0x930110}of _0x2d5970){if(!_0x930110)continue;const _0x3fa58a=_0x613aa1[_0x3900('0x8a')][_0x3900('0x3')](_0x5cd268),_0x5549dc=_0xcead39[_0x3900('0x92')](_0x46c520=>_0x46c520['getRange']()['isEqual'](_0x3fa58a));_0x5549dc&&_0x174a45[_0x3900('0x6c')]([_0x5549dc[_0x3900('0x66')],_0x930110]);}_0x174a45[_0x3900('0x56')]&&_0x3f35ec[_0x3900('0x54')](_0x3900('0x2c'),Object[_0x3900('0x26')](_0x174a45));}_0xb48b64=null;}));},{'priority':_0x4e4404[_0x3900('0x87')]+0xa}),_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x6f'))['on'](_0x3900('0x33'),(_0x5515e8,_0x45bd95)=>{const [_0x21a6d2,_0x443422,,_0x252cc2]=_0x45bd95;if(!_0xb48b64)return;_0x5515e8['stop']();const _0x13f020=_0x21a6d2[_0x3900('0x85')],_0x2f5bc3=_0x443422,_0x5586e3=ce(_0x13f020),_0xf3c014=ce(_0x2f5bc3);_0x5515e8['return']=_0x13f020;let _0x1a1b6e=null,_0x33e4ae=null;if(_0xf3c014||_0x5586e3){if(_0x5586e3&&!_0xf3c014){_0x252cc2[_0x3900('0x61')](_0x13f020[_0x3900('0x43')](0x0));for(const _0x36541a of Array['from'](_0x2f5bc3[_0x3900('0x49')]()))_0x252cc2[_0x3900('0x5f')](_0x36541a,_0x13f020,'end');const _0x57c493=_0xb48b64['rowInsertionIndexes']['includes'](_0x21a6d2['row']),_0x416ef7=_0xb48b64[_0x3900('0x2d')][_0x3900('0x34')](_0x21a6d2['column']);_0x57c493||_0x416ef7||(_0x1a1b6e=_0x252cc2['createRangeIn'](_0x13f020));}else _0xf3c014&&!_0x5586e3&&(_0x33e4ae=_0x252cc2[_0x3900('0x20')](_0x13f020));}else{const _0x5c8d76=_0x252cc2[_0x3900('0x84')](_0x3900('0x72')),_0x318704=_0x252cc2[_0x3900('0x84')](_0x3900('0x72'));_0x252cc2[_0x3900('0x4b')](_0x252cc2[_0x3900('0x20')](_0x13f020),_0x318704),_0x252cc2[_0x3900('0x5f')](_0x5c8d76,_0x13f020,0x0);for(const _0x4ac561 of Array['from'](_0x2f5bc3['getChildren']()))_0x252cc2[_0x3900('0x5f')](_0x4ac561,_0x5c8d76,_0x3900('0x8c'));_0x1a1b6e=_0x252cc2[_0x3900('0x3')](_0x5c8d76),_0x33e4ae=_0x252cc2[_0x3900('0x3')](_0x318704);}const _0x47da70=Array[_0x3900('0x22')](_0x2f5bc3[_0x3900('0x45')]())[_0x3900('0x48')](([_0x10038c])=>le[_0x3900('0x34')](_0x10038c));_0xb48b64[_0x3900('0x59')][_0x3900('0x6c')]({'element':_0x13f020,'attributes':_0x47da70[_0x3900('0x56')]?Object['fromEntries'](_0x47da70):null}),_0x1a1b6e&&_0xb48b64[_0x3900('0x51')][_0x3900('0x6c')](_0x1a1b6e),_0x33e4ae&&_0xb48b64[_0x3900('0x95')][_0x3900('0x6c')](_0x33e4ae);},{'priority':_0x3900('0x87')}),_0x5d12fe['on'](_0x3900('0x11'),(_0x574625,_0x1eb86a)=>{const [_0x42401e,_0x143421={}]=_0x1eb86a;if(!_0xb48b64)return;const _0xf91f97=_0x143421['at']||0x0,_0x579ef3=_0x143421[_0x3900('0x4')]||0x1;_0xb48b64[_0x3900('0x2d')]=new Array(_0x579ef3)['fill'](_0xf91f97)[_0x3900('0x88')]((_0x40cb7d,_0x369209)=>_0x40cb7d+_0x369209);for(const {cell:_0x3db806}of _0x5d12fe['createTableWalker'](_0x42401e,{'startColumn':_0xf91f97,'endColumn':_0xf91f97+_0x579ef3-0x1}))_0xb48b64[_0x3900('0x5b')]['push'](_0x613aa1[_0x3900('0x8a')][_0x3900('0x3')](_0x3db806));},{'priority':_0x3900('0x1a')}),_0x5d12fe['on']('insertRows',(_0x308965,_0x4bbbd5)=>{const [_0x112154,_0x17987f={}]=_0x4bbbd5;if(!_0xb48b64)return;const _0x499356=_0x17987f['at']||0x0,_0x3530a2=_0x17987f[_0x3900('0x7d')]||0x1;_0xb48b64[_0x3900('0x23')]=new Array(_0x3530a2)[_0x3900('0x12')](_0x499356)[_0x3900('0x88')]((_0x50bcb3,_0x5bcbc2)=>_0x50bcb3+_0x5bcbc2);for(const {cell:_0x1ad4ab}of _0x5d12fe[_0x3900('0x50')](_0x112154,{'startRow':_0x499356,'endRow':_0x499356+_0x3530a2-0x1}))_0xb48b64[_0x3900('0x1d')]['push'](_0x613aa1[_0x3900('0x8a')]['createRangeOn'](_0x1ad4ab));},{'priority':_0x3900('0x1a')}),_0x4cf0b7[_0x3900('0x9b')]['registerDescriptionCallback'](_0x263cd0=>{if(_0x263cd0[_0x3900('0x76')]&&_0x263cd0[_0x3900('0x76')][_0x3900('0x25')](_0x3900('0x82')))return _0x263cd0[_0x3900('0x6e')]?{}:{'type':_0x3900('0x78'),'content':_0x3f2121(_0x613aa1[_0x3900('0x53')],_0x3900('0x5c'))};});const _0x491fc0=()=>{};for(const _0x5c9ddd of[_0x3900('0x82'),_0x3900('0x60'),_0x3900('0x16'),_0x3900('0x3f')])_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x5c9ddd,_0x3900('0xb'),_0x491fc0),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x62'),_0x5c9ddd,_0x3900('0xb'),_0x491fc0);_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x4c'),_0x3900('0x3f'),'discard',_0x491fc0),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x4c'),'tablePasteCell',_0x3900('0x46'),(_0x38b5ff,_0x2e8693,_0x29cc47)=>{const _0x434c21=_0x38b5ff[_0x3900('0x88')](_0x415e60=>_0x415e60[_0x3900('0x94')]())[_0x3900('0x48')](_0x4528ef=>_0x4528ef),_0x20a7c9=new Map(_0x434c21['map'](_0x335df8=>[_0x335df8,null]));if(_0xb48b64)for(const {element:_0x239ad4,attributes:_0xdcab87}of _0xb48b64[_0x3900('0x59')])_0xdcab87&&_0x20a7c9[_0x3900('0x27')](_0x239ad4,_0xdcab87);else{if(_0x29cc47&&_0x29cc47[_0x3900('0x2c')])for(const [_0x3a8daa,_0x2ada45]of Object[_0x3900('0x3b')](_0x29cc47['markerAttributes'])){const _0x481a1d=_0x613aa1[_0x3900('0x8a')]['markers'][_0x3900('0x91')](_0x3a8daa),_0x1267c3=_0x481a1d?_0x481a1d[_0x3900('0x6')]()[_0x3900('0x94')]():null;_0x1267c3&&_0x20a7c9['set'](_0x1267c3,_0x2ada45);}}_0x613aa1[_0x3900('0x8a')]['change'](_0x1a4e90=>{for(const [_0x4b797e,_0x4bd8d0]of _0x20a7c9)_0x1a4e90[_0x3900('0x29')]({...ae,..._0x4bd8d0},_0x4b797e);});});const _0x358e21=(_0x427271,_0x47f82c)=>{_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x427271,_0x3900('0x82'),_0x47f82c,(_0x27656d,_0x99ba82,_0x506472)=>{_0x613aa1[_0x3900('0x8a')][_0x3900('0xa')](_0x26b130=>{const _0x36d62c=[];for(const _0x522a62 of _0x27656d){const _0x54c185=_0x522a62[_0x3900('0x8')][_0x3900('0x9')];_0x54c185['is']('element',_0x3900('0x72'))&&_0x36d62c[_0x3900('0x6c')](_0x54c185);}_0x4cf0b7[_0x3900('0xc')]['getSuggestionCallback'](_0x427271,null,_0x47f82c)(_0x27656d,_0x99ba82,_0x506472);for(const _0x127b8b of _0x36d62c)_0x3900('0x39')!=_0x127b8b[_0x3900('0x7')]['rootName']&&_0x26b130['unwrap'](_0x127b8b);});});};_0x358e21(_0x3900('0x78'),_0x3900('0x46')),_0x358e21(_0x3900('0x78'),_0x3900('0xf')),_0x358e21(_0x3900('0x62'),_0x3900('0x46')),_0x358e21(_0x3900('0x62'),_0x3900('0xf')),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x3900('0x16'),_0x3900('0xf'),_0x3af99b=>{const _0x458294=_0x3af99b[_0x3900('0x88')](_0x3fc212=>_0x3fc212[_0x3900('0x94')]()),_0x424717=_0x458294[0x0]['findAncestor']('table'),{minRow:_0xfd4fe0,maxRow:_0x5d32b7}=_0x4329d2['_getCoordsForCells'](_0x458294);_0x5d12fe[_0x3900('0x8b')](_0x424717,{'at':_0xfd4fe0,'rows':_0x5d32b7-_0xfd4fe0+0x1});}),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x3900('0x60'),_0x3900('0xf'),_0x4e10de=>{const _0x492b6c=_0x4e10de[_0x3900('0x88')](_0x241807=>_0x241807[_0x3900('0x94')]()),_0x3d8423=_0x492b6c[0x0][_0x3900('0x44')](_0x3900('0x99')),{minColumn:_0x5acef1,maxColumn:_0x5ceb02}=_0x4329d2[_0x3900('0x93')](_0x492b6c);_0x5d12fe[_0x3900('0x86')](_0x3d8423,{'at':_0x5acef1,'columns':_0x5ceb02-_0x5acef1+0x1});});const _0xca429f=(_0x3be7c1,_0x2b61ca)=>{if(!_0x2b61ca[_0x3900('0x76')]||!_0x2b61ca[_0x3900('0x76')][_0x3900('0x25')](_0x3900('0x82')))return;const _0x1eebd3=_0x2b61ca[_0x3900('0x52')][_0x3900('0x30')],_0x4f6ae6=_0x4cf0b7[_0x3900('0x13')]()['filter'](_0x3c8f4b=>_0x3c8f4b[_0x3900('0x14')]&&_0x3c8f4b[_0x3900('0x52')]&&_0x3c8f4b[_0x3900('0x52')][_0x3900('0x30')]==_0x1eebd3);_0x4f6ae6[_0x3900('0x56')]&&_0x2b61ca['getAllAdjacentSuggestions']()[_0x3900('0x56')]!=_0x4f6ae6['length']&&_0x4f6ae6[_0x3900('0x6d')]((_0x460438,_0x53b46b)=>(_0x460438[_0x3900('0x90')]=_0x53b46b,_0x53b46b[_0x3900('0x6e')]=_0x460438,_0x53b46b));};function _0x16105f(_0x19e750,_0xd8803f=!0x0){const {id:_0x2054da}=_0x4cf0b7[_0x3900('0x37')](_0x19e750[_0x3900('0x75')]),_0x420855=[_0x3900('0x2'),_0x3900('0x67')],_0x261fac=_0x4cf0b7[_0x3900('0x65')]['includes'](_0x19e750['markerName']);return _0x261fac&&_0x420855[_0x3900('0x6c')]('ck-suggestion-marker--active'),{'classes':_0x420855,'attributes':{'data-suggestion':_0x2054da},'priority':_0x261fac&&_0xd8803f?0xbc2:0xbb8};}_0x4cf0b7['on']('suggestionLoaded',_0xca429f,{'priority':_0x3900('0x87')}),_0x4cf0b7['on'](_0x3900('0x77'),_0xca429f,{'priority':_0x3900('0x87')}),_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')]['registerPostFixer'](()=>{let _0x3fb490=!0x1;const _0x186838=Array[_0x3900('0x22')](_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')][_0x3900('0x97')]['getChangedMarkers']());for(const {name:_0x1d3e1b,data:_0x2f48d8}of _0x186838){const {group:_0x2b8b4b,type:_0x34affc,id:_0x280f5e}=_0x4cf0b7[_0x3900('0x37')](_0x1d3e1b);if('suggestion'!=_0x2b8b4b||'deletion'!=_0x34affc||_0x2f48d8[_0x3900('0x4f')])continue;if(!_0x4cf0b7['hasSuggestion'](_0x280f5e))continue;const _0x311d2d=_0x4cf0b7[_0x3900('0x80')](_0x280f5e)[_0x3900('0x41')](),_0x1a9013=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x15'))['me'];for(const _0x2607da of _0x4cf0b7[_0x3900('0x13')]()){if(!_0x2607da[_0x3900('0x14')]||_0x2607da['author']!=_0x1a9013)continue;if('formatBlock'!=_0x2607da[_0x3900('0x19')]||_0x3900('0x3f')!=_0x2607da[_0x3900('0x76')])continue;if(_0x2607da[_0x3900('0x41')]()[_0x3900('0x1f')](_0x1e92a6=>_0x311d2d[_0x3900('0x7c')](_0x51a511=>_0x51a511[_0x3900('0x1c')](_0x1e92a6,!0x0))))for(const _0x3e31d9 of _0x2607da[_0x3900('0x8f')]())_0x3e31d9[_0x3900('0x14')]&&(_0x3e31d9[_0x3900('0xf')](),_0x3fb490=!0x0);}}return _0x3fb490;}),_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')]['registerPostFixer'](_0xfce64c=>{const _0x2424bd=_0x613aa1['commands'][_0x3900('0x91')]('redo');if(!_0x2424bd||!_0x2424bd[_0x3900('0x3d')][_0x3900('0x4a')](_0xfce64c[_0x3900('0x1')]))return!0x1;let _0x1b51d8=!0x1;const _0x176a6a=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x15'))['me'],_0x2b08e4=_0x613aa1[_0x3900('0x8a')]['document']['differ'][_0x3900('0x9a')](),_0x54728c=Array[_0x3900('0x22')](_0x613aa1[_0x3900('0x8a')]['document']['differ'][_0x3900('0x2e')]())[_0x3900('0x48')](({name:_0x38c14c,data:_0x457de1})=>{const {group:_0x471ed8,subType:_0x54730d,authorId:_0x59ee03}=_0x4cf0b7[_0x3900('0x37')](_0x38c14c);return _0x3900('0x7e')==_0x471ed8&&_0x3900('0x82')==_0x54730d&&_0x59ee03==_0x176a6a['id']&&!_0x457de1[_0x3900('0x4f')];});for(const _0x4d8b83 of _0x2b08e4){if(_0x3900('0x5f')!=_0x4d8b83['type']||_0x3900('0x72')!=_0x4d8b83[_0x3900('0x66')]||0x1!=_0x4d8b83[_0x3900('0x56')])continue;const _0x4481f6=_0xfce64c[_0x3900('0x63')](_0x4d8b83[_0x3900('0x21')],_0x4d8b83[_0x3900('0x21')]['getShiftedBy'](0x1));if(!_0x54728c['find'](({data:_0x29ffba})=>_0x29ffba[_0x3900('0x55')][_0x3900('0xd')](_0x4481f6)))for(const {name:_0x17500c,data:_0xa2ee6d}of _0x54728c)if(_0x4481f6['containsRange'](_0xa2ee6d['newRange'])){_0xfce64c[_0x3900('0x5e')](_0x17500c,{'range':_0x4481f6}),_0x1b51d8=!0x0;break;}}return _0x1b51d8;}),_0x613aa1['model'][_0x3900('0x31')][_0x3900('0x8d')](_0x4c5d8e=>{let _0x40166f=!0x1;const _0x21f3ef=_0x613aa1[_0x3900('0x3c')]['get'](_0x3900('0x15'))['me'],_0x5dc783=_0x4cf0b7[_0x3900('0x13')]()[_0x3900('0x48')](_0x4c5f87=>_0x4c5f87[_0x3900('0x14')]&&_0x4c5f87['author']==_0x21f3ef),_0x7e9986=new Set(),_0x5bb872=new Set();for(const _0x4364a5 of _0x5dc783)if(_0x3900('0x82')==_0x4364a5[_0x3900('0x76')])for(const _0x44e451 of _0x4364a5[_0x3900('0x36')]()){const _0xd70895=_0x44e451[_0x3900('0x6')]()[_0x3900('0x94')]();if(_0xd70895){if(_0xd70895['is'](_0x3900('0x74'),'tableCellSuggestion')&&ce(_0xd70895)){_0x4364a5['removeMarker'](_0x44e451[_0x3900('0x66')]),_0x7e9986['add'](_0xd70895),_0x40166f=!0x0;const _0x5b83d8=_0xd70895['nextSibling'],_0x7b7f70=_0xd70895['previousSibling'],_0x550d61=_0x5b83d8&&_0x5b83d8['is'](_0x3900('0x74'),_0x3900('0x72')),_0x41d8bd=_0x7b7f70&&_0x7b7f70['is'](_0x3900('0x74'),_0x3900('0x72'));_0x550d61&&!_0x7e9986[_0x3900('0x4a')](_0x5b83d8)&&_0x5bb872[_0x3900('0x5')](_0x5b83d8),_0x41d8bd&&!_0x7e9986['has'](_0x7b7f70)&&_0x5bb872[_0x3900('0x5')](_0x7b7f70);}else _0xd70895['is'](_0x3900('0x74'),_0x3900('0x4e'))&&_0xd70895[_0x3900('0x58')]&&(_0x4364a5[_0x3900('0x81')](_0x44e451['name']),_0x40166f=!0x0);}}else{if(_0x3900('0x3f')==_0x4364a5[_0x3900('0x76')]){if(!_0x4364a5[_0x3900('0x52')]||!_0x4364a5['attributes'][_0x3900('0x30')])continue;const _0x22614f=_0x4364a5['attributes'][_0x3900('0x2c')];if(_0x22614f&&Object[_0x3900('0x3e')](_0x22614f)[_0x3900('0x56')])continue;const _0x27f221=_0x4364a5['attributes'][_0x3900('0x30')];let _0x23d2cf=!0x0,_0x204076=!0x0;for(const _0x557b96 of _0x5dc783)if(_0x557b96[_0x3900('0x76')]&&_0x557b96[_0x3900('0x76')][_0x3900('0x25')]('tablePaste')){if(!_0x557b96['attributes'][_0x3900('0x30')]){_0x204076=!0x1;break;}if(_0x557b96['id']!=_0x4364a5['id']&&_0x557b96[_0x3900('0x52')][_0x3900('0x30')]==_0x27f221){_0x23d2cf=!0x1;break;}}_0x204076&&_0x23d2cf&&(_0x4364a5[_0x3900('0x7f')](),_0x40166f=!0x0);}}for(const _0x5f40d4 of _0x7e9986)_0x4c5d8e['remove'](_0x5f40d4);for(const _0x339cc5 of _0x5bb872)_0x4c5d8e[_0x3900('0x28')](_0x339cc5);return _0x40166f;}),_0x613aa1[_0x3900('0x17')][_0x3900('0x42')](_0x3900('0x6a'))[_0x3900('0x69')]({'model':_0x3900('0x64'),'view':(_0x10e2a6,_0x4b470c)=>_0x16105f(_0x10e2a6),'converterPriority':_0x3900('0x87')}),_0x613aa1[_0x3900('0x17')][_0x3900('0x42')](_0x3900('0x47'))[_0x3900('0x69')]({'model':_0x3900('0x64'),'view':(_0x2a6413,_0x3faf59)=>_0x3faf59['options']['showSuggestionHighlights']?_0x16105f(_0x2a6413,!0x1):null,'converterPriority':'high'});const _0x468c41=_0x613aa1['editing'][_0x3900('0x79')];this['listenTo'](_0x468c41[_0x3900('0x31')],'clipboardOutput',(_0x54d50e,_0x4f9c55)=>{const _0x2b5c1d=[];for(const _0x3dc497 of _0x468c41[_0x3900('0x20')](_0x4f9c55['content'])[_0x3900('0x6b')]())_0x3dc497['is'](_0x3900('0x74'),_0x3900('0x68'))&&_0x2b5c1d[_0x3900('0x6c')](_0x3dc497);_0x468c41[_0x3900('0xa')](_0x401df2=>{for(const _0x492856 of _0x2b5c1d)_0x401df2['move'](_0x401df2[_0x3900('0x20')](_0x492856),_0x401df2['createPositionBefore'](_0x492856)),_0x401df2[_0x3900('0x61')](_0x492856);});});}}function ce(_0x16f8ac){if(_0x16f8ac['isEmpty'])return!0x0;const _0x13be3e=_0x16f8ac[_0x3900('0x43')](0x0);return _0x13be3e['is']('element','paragraph')&&_0x13be3e[_0x3900('0x58')];}function fe(_0x7e67c0,_0x118092={},_0x20ff0b){for(const {isAnchor:_0x447dd3,cellHeight:_0x1aa8e3,cellWidth:_0x5792a1}of _0x20ff0b[_0x3900('0x50')](_0x7e67c0,{'includeAllSlots':!0x0,..._0x118092}))if(!_0x447dd3||0x1!=_0x1aa8e3||0x1!=_0x5792a1)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x995a=['TableColumnResizeEditing','_descriptionFactory','columnWidths','formatGroupId','locale','resizeTableWidth','Users','subType','registerCustomCallback','formatBlock','model','has','getContainedElement','plugins','enableCommand','_suggestionFactory','markBlockFormat','resizeColumnWidths','discard','handleSuggestionDescription','getAttribute','format','registerDescriptionCallback','tableWidth','getTableColumnsWidths','handleResizeTableWidthCommand','editor','bind','table','author','getColumnGroupElement','commandParams','accept','*Format:*\x20resize\x20table','resizeTable','get','getSelectedElement','data','selection','change'];(function(_0x3d179c,_0x995aae){const _0x1fd57a=function(_0x3e87b8){while(--_0x3e87b8){_0x3d179c['push'](_0x3d179c['shift']());}};_0x1fd57a(++_0x995aae);}(_0x995a,0x164));const _0x1fd5=function(_0x3d179c,_0x995aae){_0x3d179c=_0x3d179c-0x0;let _0x1fd57a=_0x995a[_0x3d179c];return _0x1fd57a;};import{Plugin as _0x319d85}from'ckeditor5/src/core';import{getTranslation as _0x40ead4}from'../utils/common-translations';export default class wt extends _0x319d85{['afterInit'](){if(!this[_0x1fd5('0x1e')]['plugins'][_0x1fd5('0xf')]('TableColumnResizeEditing'))return;const _0x3e8f20=this[_0x1fd5('0x1e')]['plugins'][_0x1fd5('0x27')]('TrackChangesEditing');_0x3e8f20[_0x1fd5('0x12')](_0x1fd5('0x9'),this['handleResizeTableWidthCommand']['bind'](this)),_0x3e8f20['enableCommand'](_0x1fd5('0x15'),this[_0x1fd5('0x1d')]['bind'](this)),_0x3e8f20[_0x1fd5('0x13')]['registerCustomCallback']('formatBlock',_0x1fd5('0x26'),_0x1fd5('0x24'),_0x3e8f20[_0x1fd5('0x13')]['getSuggestionCallback'](_0x1fd5('0xd'),null,_0x1fd5('0x16'))),_0x3e8f20['_suggestionFactory'][_0x1fd5('0xc')](_0x1fd5('0xd'),_0x1fd5('0x26'),_0x1fd5('0x16'),_0x3e8f20[_0x1fd5('0x13')]['getSuggestionCallback']('formatBlock',null,_0x1fd5('0x24'))),_0x3e8f20[_0x1fd5('0x5')][_0x1fd5('0x1a')](this['handleSuggestionDescription'][_0x1fd5('0x1f')](this));}[_0x1fd5('0x1d')](_0x35605f,_0x140a5c){const _0x187c47=this[_0x1fd5('0x1e')][_0x1fd5('0x11')]['get']('TrackChangesEditing'),_0x375608=this[_0x1fd5('0x1e')]['plugins'][_0x1fd5('0x27')](_0x1fd5('0x4')),_0x3d6f99=_0x140a5c[_0x1fd5('0x20')]||this[_0x1fd5('0x1e')][_0x1fd5('0xe')]['document'][_0x1fd5('0x2')][_0x1fd5('0x0')]();this[_0x1fd5('0x1e')][_0x1fd5('0xe')][_0x1fd5('0x3')](()=>{const _0x425848=_0x375608[_0x1fd5('0x22')](_0x3d6f99);let _0x50b634=_0x425848?_0x375608[_0x1fd5('0x1c')](_0x425848):null,_0x5da2d4=_0x3d6f99[_0x1fd5('0x18')](_0x1fd5('0x1b'))||null;const _0x3f2f7e=_0x140a5c['tableWidth']||_0x5da2d4,_0x1c440c=_0x140a5c[_0x1fd5('0x6')]||_0x50b634,_0xd878a4=this[_0x1fd5('0x1e')]['plugins'][_0x1fd5('0x27')](_0x1fd5('0xa'))['me'];for(const _0x207e86 of _0x187c47['getSuggestions']()){const _0x31b13e=_0x207e86[_0x1fd5('0x10')]();if(_0x1fd5('0x26')===_0x207e86[_0x1fd5('0xb')]&&_0x31b13e===_0x3d6f99){_0x207e86[_0x1fd5('0x21')]!==_0xd878a4&&_0x207e86[_0x1fd5('0x16')]();const _0x21bce8=_0x207e86[_0x1fd5('0x1')][_0x1fd5('0x23')];_0x5da2d4=_0x21bce8[0x0][_0x1fd5('0x1b')],_0x50b634=_0x21bce8[0x0][_0x1fd5('0x6')];break;}}_0x35605f({'table':_0x3d6f99,'tableWidth':_0x3f2f7e,'columnWidths':_0x1c440c}),_0x187c47[_0x1fd5('0x14')](_0x3d6f99,{'commandName':_0x1fd5('0x9'),'commandParams':[{'tableWidth':_0x5da2d4,'columnWidths':_0x50b634}],'formatGroupId':_0x1fd5('0x26')},[],_0x1fd5('0x26'));});}[_0x1fd5('0x17')](_0x12f0db){const {data:_0x144433}=_0x12f0db;if(_0x144433&&_0x1fd5('0x26')===_0x144433[_0x1fd5('0x7')]){const _0x44b62c=_0x1fd5('0x25');return{'type':_0x1fd5('0x19'),'content':_0x40ead4(this[_0x1fd5('0x1e')][_0x1fd5('0x8')],_0x44b62c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24af=['ck-suggestion-marker-','commandName','TableUtils','parent','setTableRowHeader','bindElementToMarker','markBlockFormat','addClass','createTableWalker','removeMarker:suggestion','mapper','getCellLocation','highest','data-suggestion','FORMAT_HEADER_COLUMN','nodeBefore','_suggestionFactory','model','first','setTableColumnHeader','item','forceValue','_acceptFormatSuggestionCallbackFactory','getChild','FORMAT_HEADER_ROW','requires','commandParams','value','getRowIndexes','selection','editing','createPositionAfter','from','isBefore','table','getSelectionAffectedTableCells','FORMAT_REGULAR_COLUMN','end','createRange','formatBlock','data','last','ck-suggestion-marker--active','consumable','afterInit','enableCommand','registerCustomCallback','plugins','showSuggestionHighlights','stop','removeAttribute','FORMAT_REGULAR_ROW','_splitMarkerName','document','consume','markerName','headingColumns','commands','writer','options','has','getColumnIndexes','getAttribute','*Format:*\x20%0','removeClass','downcastDispatcher','cell','registerDescriptionCallback','childCount','createPositionBefore','markerRange','accept','name','addMarker:suggestion','start','index','setAttribute','nodeAfter','get','findAncestor'];(function(_0x154419,_0x24aff9){const _0x2ad3b3=function(_0x3ef440){while(--_0x3ef440){_0x154419['push'](_0x154419['shift']());}};_0x2ad3b3(++_0x24aff9);}(_0x24af,0xbd));const _0x2ad3=function(_0x154419,_0x24aff9){_0x154419=_0x154419-0x0;let _0x2ad3b3=_0x24af[_0x154419];return _0x2ad3b3;};import{Plugin as _0x26b9f2}from'ckeditor5/src/core';import _0x32deb7 from'./table';import{getTranslation as _0x603329}from'../utils/common-translations';export default class pt extends _0x26b9f2{static get[_0x2ad3('0x4c')](){return[_0x32deb7];}[_0x2ad3('0xf')](){const _0x58343b=this['editor'];if(!_0x58343b[_0x2ad3('0x12')][_0x2ad3('0x1f')]('TableEditing'))return;const _0x593e30=_0x58343b['locale'],_0x398544=_0x58343b['plugins']['get']('TrackChangesEditing'),_0x9007e5=_0x58343b[_0x2ad3('0x12')][_0x2ad3('0x31')]('TableUtils'),_0x2a96ed=_0x58343b[_0x2ad3('0x12')][_0x2ad3('0x31')](_0x32deb7);function _0x1870f7({showActiveMarker:_0x1ed4c0=!0x0,setDataAttribute:_0x313885=!0x0}={}){return(_0x4c67bc,_0x162496,_0x47bc97)=>{const {type:_0x2c2b19,id:_0x484e29}=_0x398544[_0x2ad3('0x17')](_0x162496[_0x2ad3('0x1a')]),_0x3aa37a=_0x398544['getSuggestion'](_0x484e29);if(!_0x3aa37a[_0x2ad3('0xb')]||_0x2ad3('0x46')!=_0x3aa37a[_0x2ad3('0xb')][_0x2ad3('0x34')])return;if(_0x162496[_0x2ad3('0x47')])return void _0x4c67bc[_0x2ad3('0x14')]();if(!_0x47bc97[_0x2ad3('0xe')][_0x2ad3('0x19')](_0x162496[_0x2ad3('0x29')],_0x4c67bc[_0x2ad3('0x2b')]))return;const _0x5052fc=_0x162496[_0x2ad3('0x29')][_0x2ad3('0x2d')][_0x2ad3('0x30')],_0x1ccd22=_0x162496['markerRange'][_0x2ad3('0x8')][_0x2ad3('0x42')],_0x24a9db=_0x5052fc[_0x2ad3('0x36')]['parent'],{column:_0x40a71c}=_0x9007e5[_0x2ad3('0x3e')](_0x5052fc),{column:_0x455dec}=_0x9007e5[_0x2ad3('0x3e')](_0x1ccd22);for(let _0x425642=_0x40a71c;_0x425642<=_0x455dec;_0x425642++){const _0x2298cc=_0x9007e5[_0x2ad3('0x3b')](_0x24a9db,{'column':_0x425642,'includeAllSlots':!0x1});for(const _0x228618 of _0x2298cc){const _0x11c17e=_0x228618[_0x2ad3('0x25')],_0x372753=_0x47bc97[_0x2ad3('0x3d')]['toViewElement'](_0x11c17e);_0x47bc97[_0x2ad3('0x1d')][_0x2ad3('0x3a')](_0x2ad3('0x33')+_0x2c2b19,_0x372753),_0x313885&&_0x47bc97['writer'][_0x2ad3('0x2f')]('data-suggestion',_0x484e29,_0x372753),_0x47bc97[_0x2ad3('0x3d')][_0x2ad3('0x38')](_0x372753,_0x162496[_0x2ad3('0x1a')]),_0x1ed4c0&&(_0x398544['activeMarkers']['includes'](_0x162496['markerName'])?_0x47bc97[_0x2ad3('0x1d')][_0x2ad3('0x3a')]('ck-suggestion-marker--active',_0x372753):_0x47bc97[_0x2ad3('0x1d')][_0x2ad3('0x23')](_0x2ad3('0xd'),_0x372753));}}};}_0x398544['enableCommand'](_0x2ad3('0x37'),(_0x217669,_0x3d060a)=>{const _0x53755f=_0x9007e5[_0x2ad3('0x6')](_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x18')][_0x2ad3('0x0')]),_0x4bd775=_0x9007e5[_0x2ad3('0x4f')](_0x53755f),_0x5d0a96=_0x53755f[0x0][_0x2ad3('0x32')](_0x2ad3('0x5')),_0x2719fd=_0x5d0a96['getAttribute']('headingRows')||0x0,_0x435141=_0x3d060a&&null!==_0x3d060a[_0x2ad3('0x48')]?_0x3d060a[_0x2ad3('0x48')]:!_0x58343b[_0x2ad3('0x1c')][_0x2ad3('0x31')]('setTableRowHeader')[_0x2ad3('0x4e')],_0xd6539f=_0x435141?_0x4bd775[_0x2ad3('0xc')]:_0x4bd775['first'],_0x6658aa=_0x5d0a96['getChild'](_0xd6539f);let _0x121098;if(_0x435141){const _0x49b2b1=_0x5d0a96['getChild'](_0x2719fd);if(_0x6658aa[_0x2ad3('0x2e')]<_0x49b2b1[_0x2ad3('0x2e')])return;_0x121098=_0x58343b['model'][_0x2ad3('0x9')](_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x28')](_0x49b2b1[_0x2ad3('0x4a')](0x0)),_0x58343b[_0x2ad3('0x44')]['createPositionAfter'](_0x6658aa['getChild'](_0x6658aa[_0x2ad3('0x27')]-0x1)));}else{const _0x3ab6a9=_0x5d0a96[_0x2ad3('0x4a')](_0x2719fd-0x1);if(!_0x3ab6a9)return;_0x121098=_0x58343b['model'][_0x2ad3('0x9')](_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x28')](_0x6658aa[_0x2ad3('0x4a')](0x0)),_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x2')](_0x3ab6a9[_0x2ad3('0x4a')](_0x3ab6a9[_0x2ad3('0x27')]-0x1)));}_0x58343b[_0x2ad3('0x44')]['change'](()=>{_0x398544[_0x2ad3('0x39')](_0x121098,{'commandName':_0x2ad3('0x37'),'commandParams':[{'forceValue':_0x435141}]},[],'setTableRowHeader');});}),_0x398544[_0x2ad3('0x10')](_0x2ad3('0x46'),(_0x579c99,_0x243067)=>{const _0x370ef9=_0x58343b[_0x2ad3('0x12')][_0x2ad3('0x31')](_0x2ad3('0x35')),_0x2c904a=_0x370ef9['getSelectionAffectedTableCells'](_0x58343b[_0x2ad3('0x44')]['document'][_0x2ad3('0x0')]),_0x561701=_0x370ef9[_0x2ad3('0x20')](_0x2c904a),_0x10f8ae=_0x2c904a[0x0][_0x2ad3('0x32')](_0x2ad3('0x5')),_0x5e92c2=_0x10f8ae[_0x2ad3('0x21')](_0x2ad3('0x1b'))||0x0,_0x41e947=_0x243067&&null!==_0x243067['forceValue']?_0x243067[_0x2ad3('0x48')]:!_0x58343b[_0x2ad3('0x1c')][_0x2ad3('0x31')](_0x2ad3('0x46'))[_0x2ad3('0x4e')];let _0x235311;const _0x23c124=_0x10f8ae['getChild'](0x0),_0x2d32e0=_0x41e947?_0x561701[_0x2ad3('0xc')]:_0x561701[_0x2ad3('0x45')],_0x18a8be=_0x370ef9[_0x2ad3('0x3b')](_0x10f8ae,{'startRow':0x0,'column':_0x2d32e0,'includeAllSlots':!0x1}),_0xdca6fd=Array[_0x2ad3('0x3')](_0x18a8be)[0x0][_0x2ad3('0x25')];if(_0x41e947){const _0x47a40e=_0x23c124['getChild'](_0x5e92c2);if(_0xdca6fd[_0x2ad3('0x4')](_0x47a40e))return;_0x235311=_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x9')](_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x28')](_0x47a40e),_0x58343b['model']['createPositionAfter'](_0xdca6fd));}else{const _0xe90e29=_0x23c124[_0x2ad3('0x4a')](_0x5e92c2-0x1);if(!_0xe90e29)return;_0x235311=_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x9')](_0x58343b['model'][_0x2ad3('0x28')](_0xdca6fd),_0x58343b[_0x2ad3('0x44')][_0x2ad3('0x2')](_0xe90e29));}_0x58343b[_0x2ad3('0x44')]['change'](()=>{_0x398544['markBlockFormat'](_0x235311,{'commandName':_0x2ad3('0x46'),'commandParams':[{'forceValue':_0x41e947}]},[],_0x2ad3('0x46'));});}),_0x58343b[_0x2ad3('0x1')][_0x2ad3('0x24')]['on'](_0x2ad3('0x2c'),_0x1870f7(),{'priority':_0x2ad3('0x3f')}),_0x58343b['data'][_0x2ad3('0x24')]['on'](_0x2ad3('0x2c'),(_0x249d8d,_0x3a6c22,_0xf4059b)=>{_0xf4059b[_0x2ad3('0x1e')][_0x2ad3('0x13')]&&_0x1870f7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x249d8d,_0x3a6c22,_0xf4059b);},{'priority':_0x2ad3('0x3f')}),_0x58343b[_0x2ad3('0x1')][_0x2ad3('0x24')]['on'](_0x2ad3('0x3c'),(_0x3dd39c,_0x586c35,_0x545121)=>{const {type:_0x24f1ec,id:_0x2d4b29}=_0x398544['_splitMarkerName'](_0x586c35[_0x2ad3('0x1a')]),_0x193150=_0x398544['getSuggestion'](_0x2d4b29);if(!_0x193150[_0x2ad3('0xb')]||_0x2ad3('0x46')!=_0x193150['data']['commandName'])return;const _0xa263b6=_0x545121[_0x2ad3('0x3d')]['markerNameToElements'](_0x586c35[_0x2ad3('0x1a')]);if(_0xa263b6)for(const _0x3417f0 of _0xa263b6)_0x545121['writer'][_0x2ad3('0x23')](_0x2ad3('0x33')+_0x24f1ec,_0x3417f0),_0x545121[_0x2ad3('0x1d')][_0x2ad3('0x23')]('ck-suggestion-marker--active',_0x3417f0),_0x545121['writer'][_0x2ad3('0x15')](_0x2ad3('0x40'),_0x3417f0),_0x545121[_0x2ad3('0x3d')]['unbindElementFromMarkerName'](_0x3417f0,_0x586c35[_0x2ad3('0x1a')]);},{'priority':'highest'}),_0x398544['_descriptionFactory'][_0x2ad3('0x26')](_0x4808c2=>{const {data:_0xba716c}=_0x4808c2;if(_0xba716c){if(_0x2ad3('0x37')==_0xba716c[_0x2ad3('0x34')]){const _0x2002ee=_0xba716c['commandParams'][0x0][_0x2ad3('0x48')];return _0x320492(_0x603329(_0x593e30,_0x2002ee?_0x2ad3('0x4b'):_0x2ad3('0x16')));}if(_0x2ad3('0x46')==_0xba716c[_0x2ad3('0x34')]){const _0x45925c=_0xba716c[_0x2ad3('0x4d')][0x0][_0x2ad3('0x48')];return _0x320492(_0x603329(_0x593e30,_0x45925c?_0x2ad3('0x41'):_0x2ad3('0x7')));}}function _0x320492(_0x545f6d){return{'type':'format','content':_0x603329(_0x593e30,_0x2ad3('0x22'),_0x545f6d)};}});const _0x549b0b=_0x2a96ed[_0x2ad3('0x49')]();_0x398544[_0x2ad3('0x43')][_0x2ad3('0x11')]('formatBlock','setTableRowHeader',_0x2ad3('0x2a'),_0x549b0b),_0x398544[_0x2ad3('0x43')][_0x2ad3('0x11')](_0x2ad3('0xa'),_0x2ad3('0x46'),_0x2ad3('0x2a'),_0x549b0b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25fc=['getSuggestions','registerCustomCallback','enableCommand','requires','cell','map','_areMergableCells','document','set:isEnabled','getAncestors','$graveyard','splitTableCellHorizontally','insertion','mergeTableCells','_descriptionFactory','TrackChangesEditing','containsRange','getRanges','commandName','markBlockFormat','_acceptFormatSuggestionCallbackFactory','trackChanges','setSelection','selection','get','mergeTableCellLeft','low','value','has','author','getSelectionAffectedTableCells','mergeTableCellDown','_suggestionFactory','add','mergeTableCellRight','locale','from','splitTableCellVertically','markMultiRangeBlockFormat','filter','mergeTableCellUp','find','root','commands','isInContent','afterInit','registerDescriptionCallback','length','*Merge\x20cells*','getFirstPosition','format','createTableWalker','TableEditing','getCellLocation','*Split\x20cell:*\x20vertically','change','push','tableCell','_areSelectedCellsMergable','rootName','editor','deletion','isEnabled','plugins','table','forceDefaultExecution','element','type','*Split\x20cell:*\x20horizontally','refresh','return','size','execute','_tablePostFixingSubtypes','model','direction','createRangeOn','highest','fromRange','formatBlock','subType'];(function(_0x3db381,_0x25fc50){const _0xc61032=function(_0x32f1b8){while(--_0x32f1b8){_0x3db381['push'](_0x3db381['shift']());}};_0xc61032(++_0x25fc50);}(_0x25fc,0x167));const _0xc610=function(_0x3db381,_0x25fc50){_0x3db381=_0x3db381-0x0;let _0xc61032=_0x25fc[_0x3db381];return _0xc61032;};import{Plugin as _0x301c04}from'ckeditor5/src/core';import _0x6bab83 from'./table';import{LiveRange as _0x47a7f4}from'ckeditor5/src/engine';import{getTranslation as _0x520df3}from'../utils/common-translations';export default class dt extends _0x301c04{static get[_0xc610('0x31')](){return[_0x6bab83];}[_0xc610('0xa')](){const _0x14ba75=this[_0xc610('0x19')],_0x40f4cf=_0x14ba75[_0xc610('0x27')][_0xc610('0x35')]['selection'],_0x421346=_0x14ba75[_0xc610('0x0')];if(!_0x14ba75['plugins'][_0xc610('0x4a')](_0xc610('0x11')))return;const _0x4b4974=_0x14ba75[_0xc610('0x1c')][_0xc610('0x46')]('TrackChangesEditing'),_0x36a8c9=_0x14ba75['plugins']['get']('TableUtils'),_0x31054c=_0x14ba75['plugins'][_0xc610('0x46')](_0x6bab83);_0x31054c[_0xc610('0x26')][_0xc610('0x15')]('mergeTableCells'),_0x4b4974[_0xc610('0x30')](_0xc610('0x3b'),()=>{const _0x166b76=_0x36a8c9[_0xc610('0x4c')](_0x14ba75[_0xc610('0x27')][_0xc610('0x35')][_0xc610('0x45')]);_0x14ba75[_0xc610('0x27')][_0xc610('0x14')](()=>{_0x4b4974[_0xc610('0x3')](_0x166b76,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x14ba75[_0xc610('0x8')][_0xc610('0x46')](_0xc610('0x3b'))['on'](_0xc610('0x25'),(_0x5a45af,_0x1c694f)=>{_0x14ba75[_0xc610('0x8')]['get'](_0xc610('0x43'))['value']&&(_0x1c694f[_0xc610('0xc')]>0x0&&_0x1c694f[_0x1c694f[_0xc610('0xc')]-0x1]&&_0x1c694f[_0x1c694f['length']-0x1][_0xc610('0x1e')]||_0x4b4974['_isForcedDefaultExecutionBlock']||this[_0xc610('0x17')]()||_0x5a45af['stop']());},{'priority':_0xc610('0x2a')});for(const _0x5b8266 of[_0xc610('0x5'),_0xc610('0x50'),_0xc610('0x4d'),_0xc610('0x47')]){const _0x5017ff=_0x14ba75[_0xc610('0x8')][_0xc610('0x46')](_0x5b8266);_0x4b4974[_0xc610('0x30')](_0x5b8266,()=>{const _0x360ff6=_0x14ba75['model'][_0xc610('0x35')][_0xc610('0x45')][_0xc610('0xe')]()[_0xc610('0x37')]()[_0xc610('0x6')](_0x1c98a5=>_0x1c98a5['is'](_0xc610('0x1f'),_0xc610('0x16'))),_0x547d65=_0x5017ff[_0xc610('0x49')];_0x14ba75[_0xc610('0x27')][_0xc610('0x14')](()=>{_0x4b4974['markMultiRangeBlockFormat']([_0x360ff6,_0x547d65],{'commandName':_0xc610('0x3b'),'commandParams':[]},[],_0xc610('0x3b'));});});}for(const _0x22790d of[_0xc610('0x2'),_0xc610('0x39')]){const _0x3ca6b1=_0x14ba75[_0xc610('0x8')][_0xc610('0x46')](_0x22790d);_0x4b4974[_0xc610('0x30')](_0x22790d,()=>{const _0x4ec436=_0x36a8c9[_0xc610('0x4c')](_0x14ba75['model'][_0xc610('0x35')][_0xc610('0x45')])[0x0],_0x2d16a5=_0x4ec436['findAncestor'](_0xc610('0x1d')),{column:_0x193511,row:_0x1d3dca}=_0x36a8c9[_0xc610('0x12')](_0x4ec436);let _0x5e674d=[];if('horizontally'==_0x3ca6b1[_0xc610('0x28')]){const _0x5178ec=_0x36a8c9[_0xc610('0x10')](_0x2d16a5,{'startRow':_0x1d3dca,'endRow':_0x1d3dca,'includeAllSlots':!0x0});_0x5e674d=Array[_0xc610('0x1')](_0x5178ec)[_0xc610('0x33')](_0x3a3220=>_0x3a3220['cell']);}else{const _0x44b972=_0x36a8c9[_0xc610('0x10')](_0x2d16a5,{'column':_0x193511,'includeAllSlots':!0x0});_0x5e674d=Array[_0xc610('0x1')](_0x44b972)[_0xc610('0x33')](_0x5e7506=>_0x5e7506[_0xc610('0x32')]);}_0x14ba75[_0xc610('0x27')][_0xc610('0x14')](_0x5082c0=>{_0x4b4974[_0xc610('0x41')](_0x5082c0[_0xc610('0x29')](_0x4ec436),{'commandName':_0x22790d,'commandParams':[]},_0x5e674d,_0x22790d);});});}_0x4b4974[_0xc610('0x3c')][_0xc610('0xb')](_0x290f87=>{const {data:_0x1f6026}=_0x290f87;if(_0x1f6026)return'mergeTableCells'==_0x1f6026[_0xc610('0x40')]?{'type':_0xc610('0xf'),'content':_0x520df3(_0x421346,_0xc610('0xd'))}:void 0x0;}),_0x4b4974[_0xc610('0x3c')][_0xc610('0xb')](_0x52b6bd=>{const {data:_0x2b1556}=_0x52b6bd;if(_0x2b1556)return'splitTableCellVertically'==_0x2b1556[_0xc610('0x40')]?{'type':'format','content':_0x520df3(_0x421346,_0xc610('0x13'))}:'splitTableCellHorizontally'==_0x2b1556['commandName']?{'type':'format','content':_0x520df3(_0x421346,_0xc610('0x21'))}:void 0x0;});const _0x24a139=_0x31054c[_0xc610('0x42')]();for(const _0x501e8c of['mergeTableCellUp',_0xc610('0x50'),_0xc610('0x4d'),_0xc610('0x47')])_0x4b4974[_0xc610('0x4e')][_0xc610('0x2f')](_0xc610('0x2c'),_0x501e8c,'accept',_0x24a139);for(const _0x2fc02c of[_0xc610('0x2'),_0xc610('0x39')])_0x4b4974[_0xc610('0x4e')]['registerCustomCallback'](_0xc610('0x2c'),_0x2fc02c,'accept',_0x24a139);_0x4b4974[_0xc610('0x4e')][_0xc610('0x2f')](_0xc610('0x2c'),_0xc610('0x3b'),'accept',_0x21781c=>{_0x14ba75[_0xc610('0x27')][_0xc610('0x14')](_0x25189f=>{const _0xb1577=Array['from'](_0x40f4cf[_0xc610('0x3f')]())['map'](_0x186ab1=>_0x47a7f4[_0xc610('0x2b')](_0x186ab1));_0x25189f[_0xc610('0x44')](_0x21781c),_0x14ba75[_0xc610('0x8')][_0xc610('0x46')](_0xc610('0x3b'))[_0xc610('0x22')](),_0x14ba75[_0xc610('0x25')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x39fa31=_0xb1577[_0xc610('0x4')](_0x25387e=>_0xc610('0x38')!=_0x25387e[_0xc610('0x7')][_0xc610('0x18')]);_0x39fa31[_0xc610('0xc')]>0x0&&_0x25189f[_0xc610('0x44')](_0x39fa31);for(const _0x34b15c of _0xb1577)_0x34b15c['detach']();});});for(const _0x33d122 of[_0xc610('0x5'),_0xc610('0x4d'),_0xc610('0x47'),'mergeTableCellRight']){const _0x180c6d=_0x14ba75[_0xc610('0x8')][_0xc610('0x46')](_0x33d122);_0x180c6d['on'](_0xc610('0x36'),(_0x19f078,_0x196ce9,_0x1e7ad2)=>{if(_0x1e7ad2){const _0x10c86f=_0x14ba75[_0xc610('0x27')][_0xc610('0x35')][_0xc610('0x45')][_0xc610('0xe')]()[_0xc610('0x37')]()[_0xc610('0x6')](_0x1f8282=>_0x1f8282['is'](_0xc610('0x1f'),_0xc610('0x16')));this[_0xc610('0x34')](_0x180c6d['value'],_0x10c86f)||(_0x19f078[_0xc610('0x23')]=!0x1,_0x19f078['stop']());}},{'priority':_0xc610('0x48')});}}[_0xc610('0x17')](){const _0x918ce5=this[_0xc610('0x19')]['commands'][_0xc610('0x46')](_0xc610('0x3b')),_0x15790a=this[_0xc610('0x19')]['plugins']['get']('TableUtils');if(!_0x918ce5[_0xc610('0x1b')])return!0x1;const _0x367b3e=_0x15790a['getSelectionAffectedTableCells'](this[_0xc610('0x19')][_0xc610('0x27')][_0xc610('0x35')]['selection']);for(const _0x1d3b32 of _0x367b3e)for(const _0x116dfe of _0x367b3e)if(_0x1d3b32!=_0x116dfe&&!this['_areMergableCells'](_0x1d3b32,_0x116dfe))return!0x1;return!0x0;}[_0xc610('0x34')](_0x1788fd,_0x3dbe00){const _0x5e5dc9=this[_0xc610('0x19')][_0xc610('0x1c')][_0xc610('0x46')](_0xc610('0x3d')),_0x4df4ba=this[_0xc610('0x19')][_0xc610('0x27')][_0xc610('0x29')](_0x1788fd),_0x69ee25=this[_0xc610('0x19')]['model'][_0xc610('0x29')](_0x3dbe00),_0x1d2e5d=new Set(),_0x407dc5=new Set();for(const _0x5e3362 of _0x5e5dc9[_0xc610('0x2e')]())if((_0xc610('0x3a')==_0x5e3362['type']||_0xc610('0x1a')==_0x5e3362['type']||_0xc610('0x3b')==_0x5e3362[_0xc610('0x2d')])&&_0x5e3362[_0xc610('0x9')])for(const _0x1ba882 of _0x5e3362['getRanges']())_0x1ba882['containsRange'](_0x4df4ba,!0x0)&&_0x1d2e5d[_0xc610('0x4f')](_0x5e3362[_0xc610('0x20')]+':'+_0x5e3362[_0xc610('0x4b')]['id']),_0x1ba882[_0xc610('0x3e')](_0x69ee25,!0x0)&&_0x407dc5['add'](_0x5e3362[_0xc610('0x20')]+':'+_0x5e3362[_0xc610('0x4b')]['id']);if(_0x1d2e5d[_0xc610('0x24')]!=_0x407dc5[_0xc610('0x24')])return!0x1;for(const _0x445b2f of _0x1d2e5d)if(!_0x407dc5[_0xc610('0x4a')](_0x445b2f))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56e7=['commands','afterInit','insertTableOfContents','plugins','registerElementLabel','get','_descriptionFactory','TrackChangesEditing'];(function(_0x54cc52,_0x56e7ad){const _0x1f7d0c=function(_0x4e833c){while(--_0x4e833c){_0x54cc52['push'](_0x54cc52['shift']());}};_0x1f7d0c(++_0x56e7ad);}(_0x56e7,0x1c8));const _0x1f7d=function(_0x54cc52,_0x56e7ad){_0x54cc52=_0x54cc52-0x0;let _0x1f7d0c=_0x56e7[_0x54cc52];return _0x1f7d0c;};import{Plugin as _0x213b31}from'ckeditor5/src/core';import{getTranslation as _0x456c1b}from'../utils/common-translations';export default class bt extends _0x213b31{[_0x1f7d('0x1')](){const _0xde2670=this['editor'];if(!_0xde2670[_0x1f7d('0x0')][_0x1f7d('0x5')](_0x1f7d('0x2')))return;_0xde2670[_0x1f7d('0x3')][_0x1f7d('0x5')](_0x1f7d('0x7'))['enableCommand'](_0x1f7d('0x2'));const _0x12f98f=_0xde2670[_0x1f7d('0x3')][_0x1f7d('0x5')](_0x1f7d('0x7')),_0x22881d=_0xde2670['locale'];_0x12f98f[_0x1f7d('0x6')][_0x1f7d('0x4')]('tableOfContents',_0x289cf1=>_0x456c1b(_0x22881d,'ELEMENT_TABLE_OF_CONTENTS',_0x289cf1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x190d=['tableAlignment','accept','join','_handlePropertyChange','plugins','registerCustomCallback','tableCellVerticalAlignment','tableCellBorderStyle','subType','tableProperties','markBlockFormat','tableCellBackgroundColor','tableCellBorderWidth','tableBorderWidth','table','tableWidth','_getSuggestion','format','getContainedElement','tableCellHeight','getSelectionAffectedTableCells','tableHeight','start','findAncestor','discard','*Format:*\x20change\x20table\x20cell\x20properties','tableBorderColor','nodeAfter','document','enableCommand','batch','getSuggestions','tableCellProperties','editor','formatBlock','enqueueChange','tableCellBorderColor','get','selection','locale','_descriptionFactory','has','TrackChangesTableProperties','getSuggestionCallback','model','setAttribute','handleDiscardAction','commandParams','tableCellHorizontalAlignment','getAttribute','tableBackgroundColor','TableUtils','TrackChangesEditing','_suggestionFactory'];(function(_0x270b78,_0x190dac){const _0xa569a4=function(_0x3501ba){while(--_0x3501ba){_0x270b78['push'](_0x270b78['shift']());}};_0xa569a4(++_0x190dac);}(_0x190d,0x108));const _0xa569=function(_0x270b78,_0x190dac){_0x270b78=_0x270b78-0x0;let _0xa569a4=_0x190d[_0x270b78];return _0xa569a4;};import{Plugin as _0x40b353}from'ckeditor5/src/core';import{getTranslation as _0x42e7dd}from'../utils/common-translations';export default class Ct extends _0x40b353{constructor(_0xedc77){super(_0xedc77),this[_0xa569('0xf')]=[_0xa569('0x20'),'tableBorderStyle',_0xa569('0x13'),_0xa569('0x6'),_0xa569('0x15'),_0xa569('0x1b'),_0xa569('0x2')],this[_0xa569('0x26')]=[_0xa569('0x2a'),_0xa569('0xd'),_0xa569('0x12'),'tableCellPadding','tableCellWidth',_0xa569('0x19'),_0xa569('0x11'),_0xa569('0x0'),_0xa569('0xc')];}static get['pluginName'](){return _0xa569('0x30');}['afterInit'](){const _0xe87ea3=this[_0xa569('0x27')][_0xa569('0xa')][_0xa569('0x2b')](_0xa569('0x4'));if(this[_0xa569('0x27')][_0xa569('0xa')][_0xa569('0x2f')]('TablePropertiesEditing')){for(const _0x5e4547 of this[_0xa569('0xf')])_0xe87ea3[_0xa569('0x23')](_0x5e4547,(_0x2fbac2,_0x44df57)=>{const _0xf4a191=this[_0xa569('0x27')][_0xa569('0x32')]['document'][_0xa569('0x2c')]['getFirstPosition']()[_0xa569('0x1d')](_0xa569('0x14'));this[_0xa569('0x9')](_0x5e4547,[_0xf4a191],this['tableProperties'],'tableProperties',_0x2fbac2,_0x44df57);});_0xe87ea3[_0xa569('0x5')]['registerCustomCallback'](_0xa569('0x28'),_0xa569('0xf'),_0xa569('0x7'),_0xe87ea3['_suggestionFactory']['getSuggestionCallback'](_0xa569('0x28'),null,'discard')),_0xe87ea3['_suggestionFactory'][_0xa569('0xb')](_0xa569('0x28'),_0xa569('0xf'),_0xa569('0x1e'),(_0x1dc593,_0x210ec2)=>this[_0xa569('0x34')](this[_0xa569('0xf')],_0x1dc593,_0x210ec2)),_0xe87ea3[_0xa569('0x5')][_0xa569('0xb')]('formatBlock','tableProperties','join',()=>!0x1);}if(this[_0xa569('0x27')]['plugins'][_0xa569('0x2f')]('TableCellPropertiesEditing')){for(const _0x34aec8 of this[_0xa569('0x26')])_0xe87ea3[_0xa569('0x23')](_0x34aec8,(_0x299a17,_0x57f56d)=>{const _0x9fa18=this[_0xa569('0x27')][_0xa569('0xa')]['get'](_0xa569('0x3'))[_0xa569('0x1a')](this['editor'][_0xa569('0x32')][_0xa569('0x22')][_0xa569('0x2c')]);this['_handlePropertyChange'](_0x34aec8,_0x9fa18,this[_0xa569('0x26')],_0xa569('0x26'),_0x299a17,_0x57f56d);});_0xe87ea3[_0xa569('0x5')][_0xa569('0xb')](_0xa569('0x28'),'tableCellProperties','accept',_0xe87ea3[_0xa569('0x5')][_0xa569('0x31')](_0xa569('0x28'),null,_0xa569('0x1e'))),_0xe87ea3['_suggestionFactory'][_0xa569('0xb')](_0xa569('0x28'),_0xa569('0x26'),_0xa569('0x1e'),(_0x58ec59,_0x535608)=>this[_0xa569('0x34')](this['tableCellProperties'],_0x58ec59,_0x535608)),_0xe87ea3[_0xa569('0x5')][_0xa569('0xb')]('formatBlock','tableCellProperties',_0xa569('0x8'),()=>!0x1);}_0xe87ea3[_0xa569('0x2e')]['registerDescriptionCallback'](_0x1f31b8=>this['handleSuggestionDescription'](_0x1f31b8));}[_0xa569('0x9')](_0x278d86,_0x249c85,_0x52de97,_0x4feef7,_0x916b79,_0x395457){const _0x36643c=this['editor']['plugins'][_0xa569('0x2b')](_0xa569('0x4'));this[_0xa569('0x27')][_0xa569('0x32')][_0xa569('0x29')](_0x395457[_0xa569('0x24')],()=>{for(const _0x560d9b of _0x249c85){if(this[_0xa569('0x16')](_0x560d9b,_0x4feef7))_0x916b79(_0x395457);else{const _0x420163={};for(const _0x18106e of _0x52de97){const _0x287fa9=_0x560d9b[_0xa569('0x1')](_0x18106e);void 0x0!==_0x287fa9&&(_0x420163[_0x18106e]=_0x287fa9);}_0x916b79(_0x395457),_0x36643c[_0xa569('0x10')](_0x560d9b,{'commandParams':[_0x420163]},[],_0x4feef7);}}});}[_0xa569('0x34')](_0x8231cb,_0x5ac2eb,_0x43f467){const _0x5d9ad2=_0x5ac2eb[0x0][_0xa569('0x1c')][_0xa569('0x21')],_0x57a263=_0x43f467[_0xa569('0x35')][0x0];this[_0xa569('0x27')]['model']['change'](_0x1e4963=>{for(const _0x5b5dbb of _0x8231cb)void 0x0!==_0x57a263[_0x5b5dbb]?_0x1e4963[_0xa569('0x33')](_0x5b5dbb,_0x57a263[_0x5b5dbb],_0x5d9ad2):_0x1e4963['removeAttribute'](_0x5b5dbb,_0x5d9ad2);});}['handleSuggestionDescription'](_0x36f289){if(_0x36f289['data'])switch(_0x36f289[_0xa569('0xe')]){case _0xa569('0xf'):return{'type':_0xa569('0x17'),'content':_0x42e7dd(this[_0xa569('0x27')][_0xa569('0x2d')],'*Format:*\x20change\x20table\x20properties')};case _0xa569('0x26'):return{'type':_0xa569('0x17'),'content':_0x42e7dd(this[_0xa569('0x27')]['locale'],_0xa569('0x1f'))};}}[_0xa569('0x16')](_0x388197,_0x310a6d){const _0x3f3120=this[_0xa569('0x27')]['plugins'][_0xa569('0x2b')]('TrackChangesEditing');for(const _0x1f11f3 of _0x3f3120[_0xa569('0x25')]({'skipNotAttached':!0x0})){const _0x160371=_0x1f11f3[_0xa569('0x18')]();if(_0x1f11f3[_0xa569('0xe')]===_0x310a6d&&_0x160371===_0x388197)return _0x1f11f3;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1583=['get','plugins','editor','has','afterInit','enableCommand','insertTemplate'];(function(_0x979a4d,_0x15837b){const _0x1f921c=function(_0x2c4318){while(--_0x2c4318){_0x979a4d['push'](_0x979a4d['shift']());}};_0x1f921c(++_0x15837b);}(_0x1583,0x8b));const _0x1f92=function(_0x979a4d,_0x15837b){_0x979a4d=_0x979a4d-0x0;let _0x1f921c=_0x1583[_0x979a4d];return _0x1f921c;};import{Plugin as _0x5c36fd}from'ckeditor5/src/core';export default class yt extends _0x5c36fd{[_0x1f92('0x5')](){const _0x159042=this[_0x1f92('0x3')];_0x159042[_0x1f92('0x2')][_0x1f92('0x4')]('Template')&&_0x159042[_0x1f92('0x2')][_0x1f92('0x1')]('TrackChangesEditing')[_0x1f92('0x6')](_0x1f92('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d59=['registerPostFixer','start','element','end','from','get','title-content','registerElementLabel','suggestion','newRange','model','document','forward','Title','isEqual','differ','schema','locale','afterInit','nodeBefore','getNearestSelectionRange','TrackChangesEditing','plugins','getChangedMarkers','createRange'];(function(_0x23f65c,_0x2d5991){const _0xc1990b=function(_0x514764){while(--_0x514764){_0x23f65c['push'](_0x23f65c['shift']());}};_0xc1990b(++_0x2d5991);}(_0x2d59,0xfb));const _0xc199=function(_0x23f65c,_0x2d5991){_0x23f65c=_0x23f65c-0x0;let _0xc1990b=_0x2d59[_0x23f65c];return _0xc1990b;};import{Plugin as _0x10d807}from'ckeditor5/src/core';import{getTranslation as _0x16ba96}from'../utils/common-translations';export default class St extends _0x10d807{[_0xc199('0x11')](){const _0x4c812c=this['editor'];if(!_0x4c812c[_0xc199('0x15')]['has'](_0xc199('0xc')))return;const _0x78506c=_0x4c812c[_0xc199('0x15')][_0xc199('0x4')](_0xc199('0x14'));_0x78506c['_descriptionFactory'][_0xc199('0x6')]('title-content',()=>_0x16ba96(_0x4c812c[_0xc199('0x10')],'ELEMENT_TITLE')),_0x4c812c[_0xc199('0x9')][_0xc199('0xa')][_0xc199('0x18')](_0x2a4381=>{let _0x3b8d26=!0x1;const _0x440940=Array[_0xc199('0x3')](_0x4c812c[_0xc199('0x9')][_0xc199('0xa')][_0xc199('0xe')][_0xc199('0x16')]());for(const {name:_0x2190eb,data:_0xc46775}of _0x440940){const {group:_0x250eb4}=_0x78506c['_splitMarkerName'](_0x2190eb);if(_0xc199('0x7')!==_0x250eb4||!_0xc46775['newRange'])continue;const _0x415790=_0xc46775[_0xc199('0x8')],_0x38e120=_0x415790[_0xc199('0x2')][_0xc199('0x12')];if(!_0x38e120||!_0x38e120['is'](_0xc199('0x1'),_0xc199('0x5')))continue;if(!_0x415790[_0xc199('0x0')]['isTouching'](_0x415790[_0xc199('0x2')]))continue;const _0x40526b=_0x4c812c[_0xc199('0x9')][_0xc199('0xf')][_0xc199('0x13')](_0x415790[_0xc199('0x2')],_0xc199('0xb'));if(_0x40526b&&_0x40526b['isCollapsed']){const _0x24caee=_0x2a4381[_0xc199('0x17')](_0x415790[_0xc199('0x0')],_0x40526b['start']);_0x24caee[_0xc199('0xd')](_0x415790)||(_0x2a4381['updateMarker'](_0x2190eb,{'range':_0x24caee}),_0x3b8d26=!0x0);}_0x3b8d26||(_0x2a4381['removeMarker'](_0x2190eb),_0x3b8d26=!0x0);}return _0x3b8d26;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2927=['plugins','editor','TrackChangesEditing','afterInit','redo','enableCommand','undo','has','UndoEditing'];(function(_0x23d1f0,_0x2927ff){const _0x317196=function(_0x701cc2){while(--_0x701cc2){_0x23d1f0['push'](_0x23d1f0['shift']());}};_0x317196(++_0x2927ff);}(_0x2927,0xfa));const _0x3171=function(_0x23d1f0,_0x2927ff){_0x23d1f0=_0x23d1f0-0x0;let _0x317196=_0x2927[_0x23d1f0];return _0x317196;};import{Plugin as _0x4a3953}from'ckeditor5/src/core';export default class It extends _0x4a3953{[_0x3171('0x5')](){const _0x20a100=this[_0x3171('0x3')],_0xdef995=_0x20a100[_0x3171('0x2')]['get'](_0x3171('0x4'));_0x20a100[_0x3171('0x2')][_0x3171('0x0')](_0x3171('0x1'))&&(_0xdef995[_0x3171('0x7')](_0x3171('0x8')),_0xdef995['enableCommand'](_0x3171('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e4a=['start','toViewElement','TrackChangesEditing','getCustomProperty','consumable','previousPosition','model','type','listItem','span','hasAttribute','plugins','markerRange','isLimit','toViewPosition','writer','getItems','push','createRangeOn','bindElementToMarker','get','elementEnd','mapper','isBlock','markerName','addHighlight','getWalker','item','listIndent','nextSibling','insert','addClass','element'];(function(_0x483d09,_0x5e4abf){const _0x163c66=function(_0x4de3e0){while(--_0x4de3e0){_0x483d09['push'](_0x483d09['shift']());}};_0x163c66(++_0x5e4abf);}(_0x5e4a,0x193));const _0x163c=function(_0x483d09,_0x5e4abf){_0x483d09=_0x483d09-0x0;let _0x163c66=_0x5e4a[_0x483d09];return _0x163c66;};export function getRangesWithAttribute(_0xd755cc,_0x56aa7c,_0xbcaba9){const _0x4a0354=[];for(const _0x599b31 of _0x56aa7c[_0x163c('0x9')]())_0x599b31[_0x163c('0x3')](_0xd755cc)&&_0x4a0354[_0x163c('0xa')](_0xbcaba9[_0x163c('0xb')](_0x599b31));return _0x4a0354;}export function getElementsAffectedByListItemRename(_0x2ae96a){const _0x5de35a=[];if(_0x2ae96a['is'](_0x163c('0x19'),_0x163c('0x1'))){let _0x444812=_0x2ae96a[_0x163c('0x16')];for(;_0x444812&&_0x444812['is'](_0x163c('0x19'),_0x163c('0x1'))&&_0x444812['getAttribute'](_0x163c('0x15'))>0x0;)_0x5de35a[_0x163c('0xa')](_0x444812),_0x444812=_0x444812[_0x163c('0x16')];}return _0x5de35a;}export function downcastSplitMergeMarker(_0x56ed9c,_0x1ae4f7,{showActiveMarker:_0x2969ed=!0x0}={}){const _0x768a36=_0x56ed9c[_0x163c('0x4')][_0x163c('0xd')](_0x163c('0x1c'));return(_0xa95e2e,_0x39b528,_0x187e2d)=>{if(!_0x187e2d[_0x163c('0x1e')]['test'](_0x39b528['markerRange'],_0xa95e2e['name']))return;const _0x339c92=_0x39b528['markerRange'][_0x163c('0x13')](),_0x48ecc8=_0x39b528[_0x163c('0x5')][_0x163c('0x1a')],_0x587019=_0x56ed9c[_0x163c('0x20')]['schema'];let _0x4ca72b=null,_0x39a924=null,_0x2ba171=!0x1,_0x673d46=!0x1;for(const _0x56c554 of _0x339c92){const _0x47b821=_0x56c554[_0x163c('0x14')];_0x2ba171=_0x2ba171||_0x587019['isContent'](_0x47b821);const _0x465955=_0x187e2d[_0x163c('0xf')][_0x163c('0x1b')](_0x47b821);if(_0x465955&&_0x465955[_0x163c('0x1d')](_0x163c('0x12')))return;_0x163c('0xe')==_0x56c554[_0x163c('0x0')]&&(_0x587019[_0x163c('0x10')](_0x47b821)&&!_0x587019[_0x163c('0x6')](_0x47b821)&&(_0x47b821[_0x163c('0x16')]||_0x48ecc8['isAtEnd']?_0x4ca72b&&_0x4ca72b['parent']==_0x47b821||(_0x4ca72b=_0x47b821,_0x3c6a57(_0x56c554[_0x163c('0x1f')]),_0x673d46=!0x0):_0x39a924=_0x39a924||_0x56c554[_0x163c('0x1f')]));}function _0x3c6a57(_0x475098){const _0x572608=_0x187e2d[_0x163c('0x8')]['createUIElement'](_0x163c('0x2'),{'class':'ck-suggestion-marker-'+_0x1ae4f7}),_0x24375a=_0x187e2d[_0x163c('0xf')][_0x163c('0x7')](_0x475098);_0x2969ed&&_0x768a36['activeMarkers']['includes'](_0x39b528['markerName'])&&_0x187e2d[_0x163c('0x8')][_0x163c('0x18')]('ck-suggestion-marker--active',_0x572608),_0x187e2d[_0x163c('0x8')][_0x163c('0x17')](_0x24375a,_0x572608),_0x187e2d[_0x163c('0xf')][_0x163c('0xc')](_0x572608,_0x39b528[_0x163c('0x11')]);}_0x2ba171||_0x673d46||!_0x39a924||_0x3c6a57(_0x39a924);};}
|