@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230707.0 → 0.0.0-nightly-20230709.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 _0x518e=['ck-suggestion-marker--active','tableCellVerticalAlignment','nodeAfter','tableCellBackgroundColor','add','batch','rowInsertionRanges','editing','markerToHighlight','formatBlock','discard','getChild','getAttributes','createElement','containsRange','getRange','listenTo','markerAttributes','return','push','row','columns','elementToElement','_replaceTableSlotCell','suggestion','columnInsertionRanges','fill','findAncestor','markers','keys','for','_descriptionFactory','insert','trackChanges','rowInsertionIndexes','oldRange','markerName','has','getRows','_splitMarkerName','tableCell','nextSibling','isInContent','subType','move','getColumns','last','tableCellBorderStyle','unwrap','end','ck-suggestion-marker-insertion','createPositionBefore','tablePaste','from','removeMarkers','getShiftedBy','getChangedMarkers','TableClipboard','registerPostFixer','selection','registerCustomCallback','entries','getTableIfOnlyTableInContent','set','createTableWalker','type','redo','plugins','removeMarker','differ','createRange','editingDowncast','deletionRanges','getRowIndexes','getRanges','conversion','createRangeOn','suggestion-td','length','setAttribute','activeMarkers','high','attributes','next','markMultiRangeDeletion','rootName','_suggestionFactory','markMultiRangeBlockFormat','suggestion:formatBlock:tablePasteCell','document','forceDefaultExecution','tableCellHorizontalAlignment','requires','endColumn','remove','suggestionLoaded','Users','reduce','commands','columnInsertionIndexes','editor','getItems','startsWith','first','find','tablePasteColumn','content','locale','setAttributes','cells','getMarkers','position','accept','updateMarker','getChildren','tableCellSuggestion','filter','dataDowncast','insertion','start','join','afterInit','isEmpty','_tablePostFixingSubtypes','ck-suggestion-marker','_getCoordsForCells','includes','fromEntries','options','element','tablePasteRow','clipboardOutput','value','previous','author','low','get','cell','getAllAdjacentSuggestions','map','endRow','isEqual','model','markMultiRangeInsertion','deletion','wrap','getContainedElement','table','insertContent','getChanges','paragraph','showSuggestionHighlights','createRangeIn','change','_isForcedDefaultExecutionBlock','getColumnIndexes','tablePasteChainId','insertColumns','name','tablePasteCell','previousSibling','view','stop','getSuggestions'];(function(_0x133208,_0x518e63){const _0x518b79=function(_0x5a3b01){while(--_0x5a3b01){_0x133208['push'](_0x133208['shift']());}};_0x518b79(++_0x518e63);}(_0x518e,0xb4));const _0x518b=function(_0x133208,_0x518e63){_0x133208=_0x133208-0x0;let _0x518b79=_0x518e[_0x133208];return _0x518b79;};import{getTranslation as _0x1f4476}from'../utils/common-translations';import{Plugin as _0x48778c}from'ckeditor5/src/core';import{uid as _0x2bea19,priorities as _0x1bc9be}from'ckeditor5/src/utils';import _0x3959ae from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x518b('0x1f'),_0x518b('0x4b'),_0x518b('0x95'),_0x518b('0x97'),'tableCellPadding'],ae=Object[_0x518b('0x6f')](le[_0x518b('0x7b')](_0x23c960=>[_0x23c960,null]));export default class kt extends _0x48778c{static get[_0x518b('0x4c')](){return[_0x3959ae];}[_0x518b('0x69')](){const _0x7bc825=this[_0x518b('0x54')];if(!_0x7bc825[_0x518b('0x33')][_0x518b('0x15')](_0x518b('0x29')))return;const _0x183710=_0x7bc825[_0x518b('0x33')]['get']('TrackChangesEditing'),_0x145b97=_0x7bc825['plugins'][_0x518b('0x78')]('TableUtils'),_0x21af34=_0x7bc825[_0x518b('0x33')][_0x518b('0x78')](_0x3959ae),_0x2ac2da=_0x7bc825['plugins'][_0x518b('0x78')](_0x518b('0x29'));_0x21af34[_0x518b('0x6b')][_0x518b('0x3')](_0x518b('0x72'),_0x518b('0x59')),_0x7bc825[_0x518b('0x7e')]['schema']['register'](_0x518b('0x63'),{'allowIn':_0x518b('0x18'),'allowContentOf':_0x518b('0x18'),'isLimit':!0x0}),_0x7bc825[_0x518b('0x3b')][_0x518b('0x6')]({'model':_0x518b('0x63'),'view':'suggestion-td'});let _0x14591e=null;_0x7bc825[_0x518b('0x7e')]['on'](_0x518b('0x84'),(_0x8122cb,_0x2d0a74)=>{const [_0x2ca019,_0x4ea34e]=_0x2d0a74,_0x2f18d9=_0x2d0a74[_0x2d0a74[_0x518b('0x3e')]-0x1];_0x2f18d9&&_0x2f18d9[_0x518b('0x4a')]||_0x183710[_0x518b('0x8a')]||this['editor'][_0x518b('0x52')][_0x518b('0x78')](_0x518b('0x11'))[_0x518b('0x74')]&&function(_0x3d5368,_0x2cd6fd,_0x5ee100,_0x14d07f,_0x5939ca){if(_0x2cd6fd&&!_0x2cd6fd['is']('documentSelection'))return!0x1;const _0x3d9092=_0x5939ca[_0x518b('0x2e')](_0x3d5368,_0x5ee100);if(!_0x3d9092||!fe(_0x3d9092,void 0x0,_0x14d07f))return!0x1;const _0x3c2192=_0x14d07f['getSelectionAffectedTableCells'](_0x5ee100[_0x518b('0x49')][_0x518b('0x2b')]);if(!_0x3c2192['length'])return!0x1;const _0x45ef84=_0x3c2192[0x0][_0x518b('0xb')](_0x518b('0x83')),_0x5b974b=_0x14d07f[_0x518b('0x39')](_0x3c2192),_0x1c79c7=_0x14d07f[_0x518b('0x8b')](_0x3c2192),_0x350bfb={'startRow':_0x5b974b[_0x518b('0x57')],'endRow':_0x5b974b['last'],'startColumn':_0x1c79c7[_0x518b('0x57')],'endColumn':_0x1c79c7[_0x518b('0x1e')]};return 0x1==_0x3c2192[_0x518b('0x3e')]&&(_0x350bfb[_0x518b('0x7c')]+=_0x14d07f[_0x518b('0x16')](_0x3d9092)-0x1,_0x350bfb[_0x518b('0x4d')]+=_0x14d07f[_0x518b('0x1d')](_0x3d9092)-0x1),fe(_0x45ef84,_0x350bfb,_0x14d07f);}(_0x2ca019,_0x4ea34e,_0x7bc825['model'],_0x145b97,_0x2ac2da)&&(_0x8122cb['stop'](),_0x14591e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x7bc825[_0x518b('0x7e')][_0x518b('0x89')](()=>{_0x7bc825[_0x518b('0x7e')][_0x518b('0x84')](_0x2d0a74[0x0],_0x2d0a74[0x1],_0x2d0a74[0x2],{'forceDefaultExecution':!0x0});const _0x38234f=_0x2bea19(),{rowInsertionRanges:_0x2a6cc9,columnInsertionRanges:_0x6ba546,insertionRanges:_0x43d053,deletionRanges:_0x221cf8,cells:_0x5a33a6}=_0x14591e;_0x2a6cc9[_0x518b('0x3e')]&&_0x183710['markMultiRangeInsertion'](_0x2a6cc9,_0x518b('0x72'),{'tablePasteChainId':_0x38234f}),_0x6ba546[_0x518b('0x3e')]&&_0x183710[_0x518b('0x7f')](_0x6ba546,'tablePasteColumn',{'tablePasteChainId':_0x38234f}),_0x43d053[_0x518b('0x3e')]&&_0x183710[_0x518b('0x7f')](_0x43d053,'tablePaste',{'tablePasteChainId':_0x38234f,'skipNestingCheck':!0x0}),_0x221cf8[_0x518b('0x3e')]&&_0x183710[_0x518b('0x44')](_0x221cf8,_0x518b('0x24'),{'tablePasteChainId':_0x38234f,'skipNestingCheck':!0x0});const _0x30770c=_0x183710[_0x518b('0x47')](_0x5a33a6[_0x518b('0x7b')](({element:_0x35630c})=>_0x35630c),{'formatGroupId':_0x2bea19()},[],_0x518b('0x8f'),{'tablePasteChainId':_0x38234f});if(_0x30770c){const _0x34c396=_0x30770c[_0x518b('0x5e')](),_0x5f4bf6=[];for(const {element:_0x30376f,attributes:_0x10a3ec}of _0x5a33a6){if(!_0x10a3ec)continue;const _0x3f20dd=_0x7bc825[_0x518b('0x7e')]['createRangeOn'](_0x30376f),_0x362dfd=_0x34c396[_0x518b('0x58')](_0xbdbde8=>_0xbdbde8[_0x518b('0xa3')]()[_0x518b('0x7d')](_0x3f20dd));_0x362dfd&&_0x5f4bf6['push']([_0x362dfd[_0x518b('0x8e')],_0x10a3ec]);}_0x5f4bf6['length']&&_0x30770c[_0x518b('0x3f')]('markerAttributes',Object[_0x518b('0x6f')](_0x5f4bf6));}_0x14591e=null;}));},{'priority':_0x1bc9be[_0x518b('0x41')]+0xa}),_0x7bc825[_0x518b('0x33')][_0x518b('0x78')]('TableClipboard')['on'](_0x518b('0x7'),(_0x2234ef,_0x48f9ce)=>{const [_0x62e9bd,_0x3a01e2,,_0x6cfceb]=_0x48f9ce;if(!_0x14591e)return;_0x2234ef[_0x518b('0x92')]();const _0x2d224f=_0x62e9bd[_0x518b('0x79')],_0x5c4806=_0x3a01e2,_0x310778=ce(_0x2d224f),_0x46d49c=ce(_0x5c4806);_0x2234ef[_0x518b('0x2')]=_0x2d224f;let _0x95b05b=null,_0x3d5531=null;if(_0x46d49c||_0x310778){if(_0x310778&&!_0x46d49c){_0x6cfceb[_0x518b('0x4e')](_0x2d224f[_0x518b('0x9f')](0x0));for(const _0x58a421 of Array[_0x518b('0x25')](_0x5c4806[_0x518b('0x62')]()))_0x6cfceb[_0x518b('0x10')](_0x58a421,_0x2d224f,_0x518b('0x21'));const _0x5bbf7f=_0x14591e[_0x518b('0x12')][_0x518b('0x6e')](_0x62e9bd[_0x518b('0x4')]),_0x55526c=_0x14591e[_0x518b('0x53')]['includes'](_0x62e9bd['column']);_0x5bbf7f||_0x55526c||(_0x95b05b=_0x6cfceb[_0x518b('0x88')](_0x2d224f));}else _0x46d49c&&!_0x310778&&(_0x3d5531=_0x6cfceb[_0x518b('0x88')](_0x2d224f));}else{const _0x3f81de=_0x6cfceb[_0x518b('0xa1')](_0x518b('0x63')),_0x5be8f4=_0x6cfceb[_0x518b('0xa1')](_0x518b('0x63'));_0x6cfceb[_0x518b('0x81')](_0x6cfceb[_0x518b('0x88')](_0x2d224f),_0x5be8f4),_0x6cfceb[_0x518b('0x10')](_0x3f81de,_0x2d224f,0x0);for(const _0xf624b of Array[_0x518b('0x25')](_0x5c4806[_0x518b('0x62')]()))_0x6cfceb[_0x518b('0x10')](_0xf624b,_0x3f81de,_0x518b('0x21'));_0x95b05b=_0x6cfceb[_0x518b('0x3c')](_0x3f81de),_0x3d5531=_0x6cfceb['createRangeOn'](_0x5be8f4);}const _0x52fa96=Array[_0x518b('0x25')](_0x5c4806[_0x518b('0xa0')]())[_0x518b('0x64')](([_0x561f9d])=>le[_0x518b('0x6e')](_0x561f9d));_0x14591e[_0x518b('0x5d')]['push']({'element':_0x2d224f,'attributes':_0x52fa96['length']?Object[_0x518b('0x6f')](_0x52fa96):null}),_0x95b05b&&_0x14591e['insertionRanges'][_0x518b('0x3')](_0x95b05b),_0x3d5531&&_0x14591e[_0x518b('0x38')][_0x518b('0x3')](_0x3d5531);},{'priority':_0x518b('0x41')}),_0x145b97['on'](_0x518b('0x8d'),(_0x13425d,_0x4c8b5c)=>{const [_0xe87530,_0x22897e={}]=_0x4c8b5c;if(!_0x14591e)return;const _0x49ae31=_0x22897e['at']||0x0,_0x2330f7=_0x22897e[_0x518b('0x5')]||0x1;_0x14591e[_0x518b('0x53')]=new Array(_0x2330f7)[_0x518b('0xa')](_0x49ae31)[_0x518b('0x7b')]((_0x2f1068,_0x59739f)=>_0x2f1068+_0x59739f);for(const {cell:_0x99abdd}of _0x145b97[_0x518b('0x30')](_0xe87530,{'startColumn':_0x49ae31,'endColumn':_0x49ae31+_0x2330f7-0x1}))_0x14591e[_0x518b('0x9')][_0x518b('0x3')](_0x7bc825[_0x518b('0x7e')]['createRangeOn'](_0x99abdd));},{'priority':_0x518b('0x77')}),_0x145b97['on']('insertRows',(_0xee147,_0x2e2fd1)=>{const [_0x2bfcf6,_0x3c4812={}]=_0x2e2fd1;if(!_0x14591e)return;const _0x2b8403=_0x3c4812['at']||0x0,_0x23734b=_0x3c4812['rows']||0x1;_0x14591e[_0x518b('0x12')]=new Array(_0x23734b)[_0x518b('0xa')](_0x2b8403)['map']((_0x4bf993,_0x3faad2)=>_0x4bf993+_0x3faad2);for(const {cell:_0x53d8e2}of _0x145b97[_0x518b('0x30')](_0x2bfcf6,{'startRow':_0x2b8403,'endRow':_0x2b8403+_0x23734b-0x1}))_0x14591e[_0x518b('0x9a')][_0x518b('0x3')](_0x7bc825[_0x518b('0x7e')][_0x518b('0x3c')](_0x53d8e2));},{'priority':_0x518b('0x77')}),_0x183710[_0x518b('0xf')]['registerDescriptionCallback'](_0x37813d=>{if(_0x37813d[_0x518b('0x1b')]&&_0x37813d[_0x518b('0x1b')]['startsWith']('tablePaste'))return _0x37813d[_0x518b('0x75')]?{}:{'type':_0x518b('0x66'),'content':_0x1f4476(_0x7bc825[_0x518b('0x5b')],'*Replace\x20table\x20cells*')};});const _0x474632=()=>{};for(const _0x3caf0c of[_0x518b('0x24'),_0x518b('0x59'),_0x518b('0x72'),_0x518b('0x8f')])_0x183710[_0x518b('0x46')][_0x518b('0x2c')](_0x518b('0x66'),_0x3caf0c,_0x518b('0x68'),_0x474632),_0x183710[_0x518b('0x46')][_0x518b('0x2c')](_0x518b('0x80'),_0x3caf0c,_0x518b('0x68'),_0x474632);_0x183710['_suggestionFactory'][_0x518b('0x2c')](_0x518b('0x9d'),'tablePasteCell',_0x518b('0x9e'),_0x474632),_0x183710[_0x518b('0x46')]['registerCustomCallback'](_0x518b('0x9d'),_0x518b('0x8f'),_0x518b('0x60'),(_0x371da9,_0xe8aed9,_0xeeafea)=>{const _0x26672d=_0x371da9['map'](_0x3ff6bc=>_0x3ff6bc['getContainedElement']())[_0x518b('0x64')](_0xa5b1fb=>_0xa5b1fb),_0x4d270f=new Map(_0x26672d[_0x518b('0x7b')](_0xa3836f=>[_0xa3836f,null]));if(_0x14591e)for(const {element:_0x507361,attributes:_0x59c74b}of _0x14591e[_0x518b('0x5d')])_0x59c74b&&_0x4d270f[_0x518b('0x2f')](_0x507361,_0x59c74b);else{if(_0xeeafea&&_0xeeafea['markerAttributes'])for(const [_0x4c903e,_0x302074]of Object[_0x518b('0x2d')](_0xeeafea['markerAttributes'])){const _0x18912b=_0x7bc825[_0x518b('0x7e')][_0x518b('0xc')][_0x518b('0x78')](_0x4c903e),_0x3f47c1=_0x18912b?_0x18912b[_0x518b('0xa3')]()[_0x518b('0x82')]():null;_0x3f47c1&&_0x4d270f[_0x518b('0x2f')](_0x3f47c1,_0x302074);}}_0x7bc825['model'][_0x518b('0x89')](_0x3e56c4=>{for(const [_0x290a02,_0x5412c]of _0x4d270f)_0x3e56c4[_0x518b('0x5c')]({...ae,..._0x5412c},_0x290a02);});});const _0x40defa=(_0x44ac60,_0x1f4cda)=>{_0x183710[_0x518b('0x46')][_0x518b('0x2c')](_0x44ac60,'tablePaste',_0x1f4cda,(_0x1a2929,_0x5c7fd7,_0x124b1c)=>{_0x7bc825[_0x518b('0x7e')][_0x518b('0x89')](_0x52021=>{const _0x2db8a1=[];for(const _0x3fa532 of _0x1a2929){const _0x422589=_0x3fa532[_0x518b('0x67')][_0x518b('0x96')];_0x422589['is']('element',_0x518b('0x63'))&&_0x2db8a1['push'](_0x422589);}_0x183710[_0x518b('0x46')]['getSuggestionCallback'](_0x44ac60,null,_0x1f4cda)(_0x1a2929,_0x5c7fd7,_0x124b1c);for(const _0x4cdcad of _0x2db8a1)'$graveyard'!=_0x4cdcad['root'][_0x518b('0x45')]&&_0x52021[_0x518b('0x20')](_0x4cdcad);});});};_0x40defa(_0x518b('0x66'),_0x518b('0x60')),_0x40defa(_0x518b('0x66'),'discard'),_0x40defa(_0x518b('0x80'),_0x518b('0x60')),_0x40defa('deletion','discard'),_0x183710[_0x518b('0x46')][_0x518b('0x2c')]('insertion','tablePasteRow','discard',_0x151c89=>{const _0x292637=_0x151c89[_0x518b('0x7b')](_0x25ddb8=>_0x25ddb8['getContainedElement']()),_0x4d9ed7=_0x292637[0x0][_0x518b('0xb')](_0x518b('0x83')),{minRow:_0x4082d1,maxRow:_0x3f547f}=_0x21af34[_0x518b('0x6d')](_0x292637);_0x145b97['removeRows'](_0x4d9ed7,{'at':_0x4082d1,'rows':_0x3f547f-_0x4082d1+0x1});}),_0x183710[_0x518b('0x46')][_0x518b('0x2c')](_0x518b('0x66'),_0x518b('0x59'),'discard',_0x4d7f6c=>{const _0x38a7f1=_0x4d7f6c['map'](_0x5920ad=>_0x5920ad[_0x518b('0x82')]()),_0x51c896=_0x38a7f1[0x0][_0x518b('0xb')]('table'),{minColumn:_0x2d5765,maxColumn:_0x3ac3b0}=_0x21af34[_0x518b('0x6d')](_0x38a7f1);_0x145b97['removeColumns'](_0x51c896,{'at':_0x2d5765,'columns':_0x3ac3b0-_0x2d5765+0x1});});const _0xd528bb=(_0x579aa4,_0x415b17)=>{if(!_0x415b17['subType']||!_0x415b17[_0x518b('0x1b')][_0x518b('0x56')](_0x518b('0x24')))return;const _0x328842=_0x415b17['attributes'][_0x518b('0x8c')],_0x54e755=_0x183710['getSuggestions']()[_0x518b('0x64')](_0x18d5fa=>_0x18d5fa['isInContent']&&_0x18d5fa[_0x518b('0x42')]&&_0x18d5fa[_0x518b('0x42')][_0x518b('0x8c')]==_0x328842);_0x54e755[_0x518b('0x3e')]&&_0x415b17[_0x518b('0x7a')]()[_0x518b('0x3e')]!=_0x54e755[_0x518b('0x3e')]&&_0x54e755[_0x518b('0x51')]((_0xba6f96,_0x408754)=>(_0xba6f96[_0x518b('0x43')]=_0x408754,_0x408754[_0x518b('0x75')]=_0xba6f96,_0x408754));};function _0x4f8abc(_0x23267d,_0x1b6e1b=!0x0){const {id:_0x4dee62}=_0x183710[_0x518b('0x17')](_0x23267d[_0x518b('0x14')]),_0x4d9b03=[_0x518b('0x6c'),_0x518b('0x22')],_0x4796fc=_0x183710[_0x518b('0x40')]['includes'](_0x23267d['markerName']);return _0x4796fc&&_0x4d9b03[_0x518b('0x3')](_0x518b('0x94')),{'classes':_0x4d9b03,'attributes':{'data-suggestion':_0x4dee62},'priority':_0x4796fc&&_0x1b6e1b?0xbc2:0xbb8};}_0x183710['on'](_0x518b('0x4f'),_0xd528bb,{'priority':_0x518b('0x41')}),_0x183710['on']('suggestionUnloaded',_0xd528bb,{'priority':'high'}),_0x7bc825[_0x518b('0x7e')][_0x518b('0x49')][_0x518b('0x2a')](()=>{let _0x1b64d3=!0x1;const _0x47dc08=Array[_0x518b('0x25')](_0x7bc825[_0x518b('0x7e')][_0x518b('0x49')]['differ'][_0x518b('0x28')]());for(const {name:_0x39c677,data:_0x579a96}of _0x47dc08){const {group:_0x484506,type:_0x4a6c30,id:_0x597f25}=_0x183710[_0x518b('0x17')](_0x39c677);if(_0x518b('0x8')!=_0x484506||'deletion'!=_0x4a6c30||_0x579a96[_0x518b('0x13')])continue;if(!_0x183710['hasSuggestion'](_0x597f25))continue;const _0x36c049=_0x183710['getSuggestion'](_0x597f25)[_0x518b('0x3a')](),_0x47caeb=_0x7bc825['plugins'][_0x518b('0x78')](_0x518b('0x50'))['me'];for(const _0x77c337 of _0x183710[_0x518b('0x93')]()){if(!_0x77c337[_0x518b('0x1a')]||_0x77c337['author']!=_0x47caeb)continue;if(_0x518b('0x9d')!=_0x77c337[_0x518b('0x31')]||_0x518b('0x8f')!=_0x77c337[_0x518b('0x1b')])continue;if(_0x77c337['getRanges']()['every'](_0x34e067=>_0x36c049['some'](_0x1d24b7=>_0x1d24b7[_0x518b('0xa2')](_0x34e067,!0x0))))for(const _0x232050 of _0x77c337[_0x518b('0x7a')]())_0x232050[_0x518b('0x1a')]&&(_0x232050[_0x518b('0x9e')](),_0x1b64d3=!0x0);}}return _0x1b64d3;}),_0x7bc825['model']['document'][_0x518b('0x2a')](_0x483ff1=>{const _0x4ce58a=_0x7bc825['commands'][_0x518b('0x78')](_0x518b('0x32'));if(!_0x4ce58a||!_0x4ce58a['_createdBatches'][_0x518b('0x15')](_0x483ff1[_0x518b('0x99')]))return!0x1;let _0x483122=!0x1;const _0x2000b1=_0x7bc825[_0x518b('0x33')][_0x518b('0x78')](_0x518b('0x50'))['me'],_0x593f18=_0x7bc825['model'][_0x518b('0x49')]['differ'][_0x518b('0x85')](),_0x1b718b=Array[_0x518b('0x25')](_0x7bc825['model'][_0x518b('0x49')][_0x518b('0x35')]['getChangedMarkers']())[_0x518b('0x64')](({name:_0x5e7dff,data:_0x166d4d})=>{const {group:_0x5739b1,subType:_0x472ee8,authorId:_0xbeddf6}=_0x183710[_0x518b('0x17')](_0x5e7dff);return _0x518b('0x8')==_0x5739b1&&'tablePaste'==_0x472ee8&&_0xbeddf6==_0x2000b1['id']&&!_0x166d4d['oldRange'];});for(const _0x14bcf7 of _0x593f18){if(_0x518b('0x10')!=_0x14bcf7[_0x518b('0x31')]||_0x518b('0x63')!=_0x14bcf7[_0x518b('0x8e')]||0x1!=_0x14bcf7['length'])continue;const _0x37c02f=_0x483ff1[_0x518b('0x36')](_0x14bcf7[_0x518b('0x5f')],_0x14bcf7[_0x518b('0x5f')][_0x518b('0x27')](0x1));if(!_0x1b718b[_0x518b('0x58')](({data:_0x18f278})=>_0x18f278['newRange'][_0x518b('0x7d')](_0x37c02f)))for(const {name:_0x373914,data:_0x46c88}of _0x1b718b)if(_0x37c02f[_0x518b('0xa2')](_0x46c88['newRange'])){_0x483ff1[_0x518b('0x61')](_0x373914,{'range':_0x37c02f}),_0x483122=!0x0;break;}}return _0x483122;}),_0x7bc825[_0x518b('0x7e')][_0x518b('0x49')][_0x518b('0x2a')](_0x2f00a3=>{let _0x8607d8=!0x1;const _0x1a1ce9=_0x7bc825['plugins'][_0x518b('0x78')](_0x518b('0x50'))['me'],_0x4b7450=_0x183710['getSuggestions']()[_0x518b('0x64')](_0x16535e=>_0x16535e[_0x518b('0x1a')]&&_0x16535e[_0x518b('0x76')]==_0x1a1ce9),_0x3bf734=new Set(),_0x480fef=new Set();for(const _0x444cf0 of _0x4b7450)if(_0x518b('0x24')==_0x444cf0[_0x518b('0x1b')])for(const _0x1360ba of _0x444cf0[_0x518b('0x5e')]()){const _0x241e76=_0x1360ba[_0x518b('0xa3')]()[_0x518b('0x82')]();if(_0x241e76){if(_0x241e76['is'](_0x518b('0x71'),_0x518b('0x63'))&&ce(_0x241e76)){_0x444cf0[_0x518b('0x34')](_0x1360ba['name']),_0x3bf734[_0x518b('0x98')](_0x241e76),_0x8607d8=!0x0;const _0x1d00a2=_0x241e76[_0x518b('0x19')],_0x59843f=_0x241e76[_0x518b('0x90')],_0x1a791d=_0x1d00a2&&_0x1d00a2['is'](_0x518b('0x71'),_0x518b('0x63')),_0xdb7f72=_0x59843f&&_0x59843f['is'](_0x518b('0x71'),'tableCellSuggestion');_0x1a791d&&!_0x3bf734[_0x518b('0x15')](_0x1d00a2)&&_0x480fef[_0x518b('0x98')](_0x1d00a2),_0xdb7f72&&!_0x3bf734['has'](_0x59843f)&&_0x480fef[_0x518b('0x98')](_0x59843f);}else _0x241e76['is'](_0x518b('0x71'),_0x518b('0x86'))&&_0x241e76['isEmpty']&&(_0x444cf0[_0x518b('0x34')](_0x1360ba[_0x518b('0x8e')]),_0x8607d8=!0x0);}}else{if(_0x518b('0x8f')==_0x444cf0['subType']){if(!_0x444cf0[_0x518b('0x42')]||!_0x444cf0['attributes'][_0x518b('0x8c')])continue;const _0x6fe129=_0x444cf0['attributes'][_0x518b('0x1')];if(_0x6fe129&&Object[_0x518b('0xd')](_0x6fe129)[_0x518b('0x3e')])continue;const _0x109ef9=_0x444cf0[_0x518b('0x42')][_0x518b('0x8c')];let _0x45c05a=!0x0,_0x35792e=!0x0;for(const _0xa06371 of _0x4b7450)if(_0xa06371[_0x518b('0x1b')]&&_0xa06371[_0x518b('0x1b')][_0x518b('0x56')](_0x518b('0x24'))){if(!_0xa06371['attributes'][_0x518b('0x8c')]){_0x35792e=!0x1;break;}if(_0xa06371['id']!=_0x444cf0['id']&&_0xa06371[_0x518b('0x42')][_0x518b('0x8c')]==_0x109ef9){_0x45c05a=!0x1;break;}}_0x35792e&&_0x45c05a&&(_0x444cf0[_0x518b('0x26')](),_0x8607d8=!0x0);}}for(const _0x34e514 of _0x3bf734)_0x2f00a3['remove'](_0x34e514);for(const _0x2f919b of _0x480fef)_0x2f00a3[_0x518b('0x20')](_0x2f919b);return _0x8607d8;}),_0x7bc825[_0x518b('0x3b')][_0x518b('0xe')](_0x518b('0x37'))[_0x518b('0x9c')]({'model':_0x518b('0x48'),'view':(_0x1a92fd,_0x2f13e2)=>_0x4f8abc(_0x1a92fd),'converterPriority':_0x518b('0x41')}),_0x7bc825['conversion'][_0x518b('0xe')](_0x518b('0x65'))[_0x518b('0x9c')]({'model':_0x518b('0x48'),'view':(_0x5ea320,_0x3fa3d5)=>_0x3fa3d5[_0x518b('0x70')][_0x518b('0x87')]?_0x4f8abc(_0x5ea320,!0x1):null,'converterPriority':'high'});const _0x412d0c=_0x7bc825[_0x518b('0x9b')][_0x518b('0x91')];this[_0x518b('0x0')](_0x412d0c['document'],_0x518b('0x73'),(_0x5e44b9,_0x238518)=>{const _0xfb7f97=[];for(const _0x714077 of _0x412d0c['createRangeIn'](_0x238518[_0x518b('0x5a')])[_0x518b('0x55')]())_0x714077['is'](_0x518b('0x71'),_0x518b('0x3d'))&&_0xfb7f97[_0x518b('0x3')](_0x714077);_0x412d0c[_0x518b('0x89')](_0x41e4e1=>{for(const _0x5be4b0 of _0xfb7f97)_0x41e4e1[_0x518b('0x1c')](_0x41e4e1['createRangeIn'](_0x5be4b0),_0x41e4e1[_0x518b('0x23')](_0x5be4b0)),_0x41e4e1['remove'](_0x5be4b0);});});}}function ce(_0xbcd777){if(_0xbcd777['isEmpty'])return!0x0;const _0x116cf0=_0xbcd777[_0x518b('0x9f')](0x0);return _0x116cf0['is'](_0x518b('0x71'),_0x518b('0x86'))&&_0x116cf0[_0x518b('0x6a')];}function fe(_0x5b2fbc,_0x28da5c={},_0x50c4e3){for(const {isAnchor:_0x5dc3af,cellHeight:_0x44e802,cellWidth:_0x39ccfa}of _0x50c4e3[_0x518b('0x30')](_0x5b2fbc,{'includeAllSlots':!0x0,..._0x28da5c}))if(!_0x5dc3af||0x1!=_0x44e802||0x1!=_0x39ccfa)return!0x1;return!0x0;}
|
|
23
|
+
const _0x5718=['ck-suggestion-marker--active','_suggestionFactory','clipboardOutput','ck-suggestion-marker-insertion','author','removeColumns','push','tableCellHorizontalAlignment','schema','tableCellBackgroundColor','registerPostFixer','registerDescriptionCallback','hasSuggestion','deletionRanges','tableCellPadding','insertion','tableCellBorderWidth','tablePasteChainId','getContainedElement','table','_descriptionFactory','fill','newRange','_isForcedDefaultExecutionBlock','filter','_splitMarkerName','wrap','suggestion:formatBlock:tablePasteCell','stop','start','dataDowncast','markMultiRangeDeletion','tableCellBorderStyle','suggestionUnloaded','cell','TableClipboard','from','previousSibling','createTableWalker','columns','registerCustomCallback','getSuggestions','deletion','for','commands','paragraph','getAttributes','selection','getSelectionAffectedTableCells','afterInit','getRange','Users','fromEntries','suggestion-td','has','content','join','column','row','keys','reduce','rows','documentSelection','get','getChanges','tableCell','insert','set','getSuggestion','rowInsertionIndexes','map','next','markMultiRangeBlockFormat','activeMarkers','getAllAdjacentSuggestions','_replaceTableSlotCell','cells','end','_getCoordsForCells','showSuggestionHighlights','document','length','*Replace\x20table\x20cells*','createElement','listenTo','updateMarker','rowInsertionRanges','markerName','markerToHighlight','name','register','startsWith','createPositionBefore','accept','tablePasteRow','getColumns','remove','move','editingDowncast','last','isEmpty','getMarkers','getColumnIndexes','ck-suggestion-marker','tableCellSuggestion','some','conversion','getChildren','getRanges','type','markMultiRangeInsertion','insertRows','formatBlock','createRange','findAncestor','value','removeRows','differ','markers','plugins','columnInsertionIndexes','nextSibling','discard','getShiftedBy','requires','removeMarker','batch','element','getItems','model','insertionRanges','getChild','TrackChangesEditing','includes','attributes','isInContent','tablePaste','redo','entries','oldRange','getSuggestionCallback','_tablePostFixingSubtypes','isEqual','nodeAfter','insertContent','getRowIndexes','high','createRangeOn','markerAttributes','add','getChangedMarkers','editor','return','forceDefaultExecution','insertColumns','view','_createdBatches','options','position','tablePasteColumn','root','change','previous','createRangeIn','suggestionLoaded','subType','tablePasteCell'];(function(_0x597860,_0x5718b6){const _0x2a5ac9=function(_0xa50b25){while(--_0xa50b25){_0x597860['push'](_0x597860['shift']());}};_0x2a5ac9(++_0x5718b6);}(_0x5718,0x1dc));const _0x2a5a=function(_0x597860,_0x5718b6){_0x597860=_0x597860-0x0;let _0x2a5ac9=_0x5718[_0x597860];return _0x2a5ac9;};import{getTranslation as _0x4b3e8e}from'../utils/common-translations';import{Plugin as _0x5741c9}from'ckeditor5/src/core';import{uid as _0x2a4712,priorities as _0x5a57b0}from'ckeditor5/src/utils';import _0x15f222 from'./table';const le=[_0x2a5a('0x29'),'tableCellBorderColor',_0x2a5a('0x39'),_0x2a5a('0x20'),'tableCellVerticalAlignment',_0x2a5a('0x22'),_0x2a5a('0x27')],ae=Object[_0x2a5a('0x4d')](le['map'](_0x3401c2=>[_0x3401c2,null]));export default class kt extends _0x5741c9{static get[_0x2a5a('0x95')](){return[_0x15f222];}[_0x2a5a('0x4a')](){const _0x5f17a3=this[_0x2a5a('0x9')];if(!_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x4f')](_0x2a5a('0x3c')))return;const _0x1062d6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x9d')),_0x56d93c=_0x5f17a3[_0x2a5a('0x90')]['get']('TableUtils'),_0x393cf6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x15f222),_0x162033=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')]('TableClipboard');_0x393cf6[_0x2a5a('0xa6')][_0x2a5a('0x1f')](_0x2a5a('0x77'),_0x2a5a('0x11')),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x21')][_0x2a5a('0x73')](_0x2a5a('0x81'),{'allowIn':_0x2a5a('0x5a'),'allowContentOf':_0x2a5a('0x5a'),'isLimit':!0x0}),_0x5f17a3[_0x2a5a('0x83')]['elementToElement']({'model':_0x2a5a('0x81'),'view':_0x2a5a('0x4e')});let _0x760716=null;_0x5f17a3[_0x2a5a('0x9a')]['on'](_0x2a5a('0x2'),(_0xee0b68,_0x4040da)=>{const [_0x5e051b,_0x475aa6]=_0x4040da,_0x247ef3=_0x4040da[_0x4040da['length']-0x1];_0x247ef3&&_0x247ef3[_0x2a5a('0xb')]||_0x1062d6[_0x2a5a('0x30')]||this['editor'][_0x2a5a('0x45')]['get']('trackChanges')[_0x2a5a('0x8c')]&&function(_0x4421ce,_0x2dd96a,_0x3682af,_0x42bb19,_0x1f5f1b){if(_0x2dd96a&&!_0x2dd96a['is'](_0x2a5a('0x57')))return!0x1;const _0x11d5c5=_0x1f5f1b['getTableIfOnlyTableInContent'](_0x4421ce,_0x3682af);if(!_0x11d5c5||!fe(_0x11d5c5,void 0x0,_0x42bb19))return!0x1;const _0x243bca=_0x42bb19[_0x2a5a('0x49')](_0x3682af[_0x2a5a('0x69')][_0x2a5a('0x48')]);if(!_0x243bca[_0x2a5a('0x6a')])return!0x1;const _0x3f6f56=_0x243bca[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),_0x48e6f0=_0x42bb19[_0x2a5a('0x3')](_0x243bca),_0x3464de=_0x42bb19[_0x2a5a('0x7f')](_0x243bca),_0x3ae192={'startRow':_0x48e6f0['first'],'endRow':_0x48e6f0[_0x2a5a('0x7c')],'startColumn':_0x3464de['first'],'endColumn':_0x3464de[_0x2a5a('0x7c')]};return 0x1==_0x243bca[_0x2a5a('0x6a')]&&(_0x3ae192['endRow']+=_0x42bb19['getRows'](_0x11d5c5)-0x1,_0x3ae192['endColumn']+=_0x42bb19[_0x2a5a('0x78')](_0x11d5c5)-0x1),fe(_0x3f6f56,_0x3ae192,_0x42bb19);}(_0x5e051b,_0x475aa6,_0x5f17a3[_0x2a5a('0x9a')],_0x56d93c,_0x162033)&&(_0xee0b68['stop'](),_0x760716={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f17a3[_0x2a5a('0x9a')]['change'](()=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x2')](_0x4040da[0x0],_0x4040da[0x1],_0x4040da[0x2],{'forceDefaultExecution':!0x0});const _0xabfff2=_0x2a4712(),{rowInsertionRanges:_0x2dac9f,columnInsertionRanges:_0x2f792b,insertionRanges:_0x3eade1,deletionRanges:_0x569ef3,cells:_0x1e022a}=_0x760716;_0x2dac9f['length']&&_0x1062d6[_0x2a5a('0x87')](_0x2dac9f,'tablePasteRow',{'tablePasteChainId':_0xabfff2}),_0x2f792b[_0x2a5a('0x6a')]&&_0x1062d6['markMultiRangeInsertion'](_0x2f792b,_0x2a5a('0x11'),{'tablePasteChainId':_0xabfff2}),_0x3eade1[_0x2a5a('0x6a')]&&_0x1062d6[_0x2a5a('0x87')](_0x3eade1,_0x2a5a('0xa1'),{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0}),_0x569ef3['length']&&_0x1062d6[_0x2a5a('0x38')](_0x569ef3,'tablePaste',{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0});const _0x10f73d=_0x1062d6[_0x2a5a('0x61')](_0x1e022a['map'](({element:_0x26414c})=>_0x26414c),{'formatGroupId':_0x2a4712()},[],'tablePasteCell',{'tablePasteChainId':_0xabfff2});if(_0x10f73d){const _0x311e96=_0x10f73d[_0x2a5a('0x7e')](),_0x343b27=[];for(const {element:_0x36525f,attributes:_0x2bc85e}of _0x1e022a){if(!_0x2bc85e)continue;const _0x37e29f=_0x5f17a3['model'][_0x2a5a('0x5')](_0x36525f),_0x2d5b76=_0x311e96['find'](_0x4b0236=>_0x4b0236[_0x2a5a('0x4b')]()['isEqual'](_0x37e29f));_0x2d5b76&&_0x343b27['push']([_0x2d5b76[_0x2a5a('0x72')],_0x2bc85e]);}_0x343b27['length']&&_0x10f73d['setAttribute']('markerAttributes',Object['fromEntries'](_0x343b27));}_0x760716=null;}));},{'priority':_0x5a57b0[_0x2a5a('0x4')]+0xa}),_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x3c'))['on'](_0x2a5a('0x64'),(_0x4fc36a,_0x1bd008)=>{const [_0x1131d7,_0x16aa80,,_0x2fb843]=_0x1bd008;if(!_0x760716)return;_0x4fc36a[_0x2a5a('0x35')]();const _0x12d066=_0x1131d7[_0x2a5a('0x3b')],_0x3d8553=_0x16aa80,_0x3b180f=ce(_0x12d066),_0x89f35f=ce(_0x3d8553);_0x4fc36a[_0x2a5a('0xa')]=_0x12d066;let _0x24d4c9=null,_0xb7a1b1=null;if(_0x89f35f||_0x3b180f){if(_0x3b180f&&!_0x89f35f){_0x2fb843['remove'](_0x12d066[_0x2a5a('0x9c')](0x0));for(const _0x55eabb of Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x55eabb,_0x12d066,_0x2a5a('0x66'));const _0x21190e=_0x760716[_0x2a5a('0x5e')][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x53')]),_0x2f8cce=_0x760716['columnInsertionIndexes'][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x52')]);_0x21190e||_0x2f8cce||(_0x24d4c9=_0x2fb843['createRangeIn'](_0x12d066));}else _0x89f35f&&!_0x3b180f&&(_0xb7a1b1=_0x2fb843['createRangeIn'](_0x12d066));}else{const _0xced275=_0x2fb843[_0x2a5a('0x6c')](_0x2a5a('0x81')),_0x5ebfe5=_0x2fb843[_0x2a5a('0x6c')]('tableCellSuggestion');_0x2fb843[_0x2a5a('0x33')](_0x2fb843[_0x2a5a('0x15')](_0x12d066),_0x5ebfe5),_0x2fb843[_0x2a5a('0x5b')](_0xced275,_0x12d066,0x0);for(const _0x44893e of Array['from'](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x44893e,_0xced275,_0x2a5a('0x66'));_0x24d4c9=_0x2fb843[_0x2a5a('0x5')](_0xced275),_0xb7a1b1=_0x2fb843[_0x2a5a('0x5')](_0x5ebfe5);}const _0x401d8c=Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x47')]())[_0x2a5a('0x31')](([_0x1481e7])=>le[_0x2a5a('0x9e')](_0x1481e7));_0x760716[_0x2a5a('0x65')][_0x2a5a('0x1f')]({'element':_0x12d066,'attributes':_0x401d8c['length']?Object['fromEntries'](_0x401d8c):null}),_0x24d4c9&&_0x760716[_0x2a5a('0x9b')][_0x2a5a('0x1f')](_0x24d4c9),_0xb7a1b1&&_0x760716[_0x2a5a('0x26')][_0x2a5a('0x1f')](_0xb7a1b1);},{'priority':_0x2a5a('0x4')}),_0x56d93c['on'](_0x2a5a('0xc'),(_0x3149b5,_0x3dc73d)=>{const [_0x4d6eac,_0x5bc15c={}]=_0x3dc73d;if(!_0x760716)return;const _0x34733a=_0x5bc15c['at']||0x0,_0x20d1a6=_0x5bc15c[_0x2a5a('0x40')]||0x1;_0x760716[_0x2a5a('0x91')]=new Array(_0x20d1a6)[_0x2a5a('0x2e')](_0x34733a)[_0x2a5a('0x5f')]((_0x53e354,_0x543c6a)=>_0x53e354+_0x543c6a);for(const {cell:_0x223216}of _0x56d93c[_0x2a5a('0x3f')](_0x4d6eac,{'startColumn':_0x34733a,'endColumn':_0x34733a+_0x20d1a6-0x1}))_0x760716['columnInsertionRanges']['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x223216));},{'priority':'low'}),_0x56d93c['on'](_0x2a5a('0x88'),(_0x58c2e6,_0x5a32cb)=>{const [_0x31f44d,_0x2ce581={}]=_0x5a32cb;if(!_0x760716)return;const _0x530da2=_0x2ce581['at']||0x0,_0x39a36f=_0x2ce581[_0x2a5a('0x56')]||0x1;_0x760716[_0x2a5a('0x5e')]=new Array(_0x39a36f)[_0x2a5a('0x2e')](_0x530da2)[_0x2a5a('0x5f')]((_0x1ed556,_0x17c762)=>_0x1ed556+_0x17c762);for(const {cell:_0x5aed58}of _0x56d93c[_0x2a5a('0x3f')](_0x31f44d,{'startRow':_0x530da2,'endRow':_0x530da2+_0x39a36f-0x1}))_0x760716[_0x2a5a('0x6f')]['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x5aed58));},{'priority':'low'}),_0x1062d6[_0x2a5a('0x2d')][_0x2a5a('0x24')](_0x5c1ed1=>{if(_0x5c1ed1[_0x2a5a('0x17')]&&_0x5c1ed1['subType'][_0x2a5a('0x74')](_0x2a5a('0xa1')))return _0x5c1ed1[_0x2a5a('0x14')]?{}:{'type':'insertion','content':_0x4b3e8e(_0x5f17a3['locale'],_0x2a5a('0x6b'))};});const _0x2a624b=()=>{};for(const _0x291693 of[_0x2a5a('0xa1'),_0x2a5a('0x11'),_0x2a5a('0x77'),'tablePasteCell'])_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x291693,_0x2a5a('0x51'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')]['registerCustomCallback'](_0x2a5a('0x43'),_0x291693,'join',_0x2a624b);_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),_0x2a5a('0x93'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),'accept',(_0x382499,_0x450a5c,_0x205979)=>{const _0x4aa570=_0x382499[_0x2a5a('0x5f')](_0x27ba71=>_0x27ba71[_0x2a5a('0x2b')]())[_0x2a5a('0x31')](_0x5265bb=>_0x5265bb),_0x1cb2f9=new Map(_0x4aa570[_0x2a5a('0x5f')](_0x57a22a=>[_0x57a22a,null]));if(_0x760716)for(const {element:_0x2cb0cb,attributes:_0x9ecbf}of _0x760716[_0x2a5a('0x65')])_0x9ecbf&&_0x1cb2f9[_0x2a5a('0x5c')](_0x2cb0cb,_0x9ecbf);else{if(_0x205979&&_0x205979[_0x2a5a('0x6')])for(const [_0x5c27fc,_0x58ab6e]of Object[_0x2a5a('0xa3')](_0x205979[_0x2a5a('0x6')])){const _0x155da6=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x8f')][_0x2a5a('0x58')](_0x5c27fc),_0x1e36ce=_0x155da6?_0x155da6['getRange']()['getContainedElement']():null;_0x1e36ce&&_0x1cb2f9[_0x2a5a('0x5c')](_0x1e36ce,_0x58ab6e);}}_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x1ac517=>{for(const [_0xcd7421,_0x11ec40]of _0x1cb2f9)_0x1ac517['setAttributes']({...ae,..._0x11ec40},_0xcd7421);});});const _0x2b2a28=(_0xa0760f,_0x2d209e)=>{_0x1062d6['_suggestionFactory'][_0x2a5a('0x41')](_0xa0760f,_0x2a5a('0xa1'),_0x2d209e,(_0x4f7cb2,_0x581514,_0x2067bf)=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x3fae47=>{const _0x18e01a=[];for(const _0x672108 of _0x4f7cb2){const _0x59241c=_0x672108[_0x2a5a('0x36')][_0x2a5a('0x1')];_0x59241c['is'](_0x2a5a('0x98'),_0x2a5a('0x81'))&&_0x18e01a['push'](_0x59241c);}_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0xa5')](_0xa0760f,null,_0x2d209e)(_0x4f7cb2,_0x581514,_0x2067bf);for(const _0x3ace2e of _0x18e01a)'$graveyard'!=_0x3ace2e[_0x2a5a('0x12')]['rootName']&&_0x3fae47['unwrap'](_0x3ace2e);});});};_0x2b2a28('insertion','accept'),_0x2b2a28(_0x2a5a('0x28'),_0x2a5a('0x93')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x76')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x93')),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')]('insertion',_0x2a5a('0x77'),_0x2a5a('0x93'),_0x30438c=>{const _0x542a78=_0x30438c[_0x2a5a('0x5f')](_0x31e20f=>_0x31e20f[_0x2a5a('0x2b')]()),_0x365d89=_0x542a78[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),{minRow:_0x30a83e,maxRow:_0x1bd787}=_0x393cf6[_0x2a5a('0x67')](_0x542a78);_0x56d93c[_0x2a5a('0x8d')](_0x365d89,{'at':_0x30a83e,'rows':_0x1bd787-_0x30a83e+0x1});}),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x2a5a('0x11'),_0x2a5a('0x93'),_0x77adb7=>{const _0x18f8a4=_0x77adb7[_0x2a5a('0x5f')](_0x541dc4=>_0x541dc4[_0x2a5a('0x2b')]()),_0x55eaea=_0x18f8a4[0x0]['findAncestor']('table'),{minColumn:_0x51ad3b,maxColumn:_0x3b07b0}=_0x393cf6['_getCoordsForCells'](_0x18f8a4);_0x56d93c[_0x2a5a('0x1e')](_0x55eaea,{'at':_0x51ad3b,'columns':_0x3b07b0-_0x51ad3b+0x1});});const _0x1169f4=(_0x42ab56,_0x39836a)=>{if(!_0x39836a[_0x2a5a('0x17')]||!_0x39836a[_0x2a5a('0x17')]['startsWith'](_0x2a5a('0xa1')))return;const _0x5553c0=_0x39836a[_0x2a5a('0x9f')][_0x2a5a('0x2a')],_0x3ae88a=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x112d54=>_0x112d54[_0x2a5a('0xa0')]&&_0x112d54[_0x2a5a('0x9f')]&&_0x112d54['attributes']['tablePasteChainId']==_0x5553c0);_0x3ae88a[_0x2a5a('0x6a')]&&_0x39836a[_0x2a5a('0x63')]()['length']!=_0x3ae88a['length']&&_0x3ae88a[_0x2a5a('0x55')]((_0x8a4213,_0x1615f7)=>(_0x8a4213[_0x2a5a('0x60')]=_0x1615f7,_0x1615f7['previous']=_0x8a4213,_0x1615f7));};function _0x5b676a(_0x362eb7,_0x30f24a=!0x0){const {id:_0x17eb87}=_0x1062d6[_0x2a5a('0x32')](_0x362eb7[_0x2a5a('0x70')]),_0x49de2c=[_0x2a5a('0x80'),_0x2a5a('0x1c')],_0x107fde=_0x1062d6[_0x2a5a('0x62')][_0x2a5a('0x9e')](_0x362eb7['markerName']);return _0x107fde&&_0x49de2c[_0x2a5a('0x1f')](_0x2a5a('0x19')),{'classes':_0x49de2c,'attributes':{'data-suggestion':_0x17eb87},'priority':_0x107fde&&_0x30f24a?0xbc2:0xbb8};}_0x1062d6['on'](_0x2a5a('0x16'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x1062d6['on'](_0x2a5a('0x3a'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](()=>{let _0x21f64c=!0x1;const _0x163c44=Array[_0x2a5a('0x3d')](_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x8')]());for(const {name:_0xf82110,data:_0x2f4689}of _0x163c44){const {group:_0x4f0d73,type:_0x4fb89f,id:_0x4fac70}=_0x1062d6[_0x2a5a('0x32')](_0xf82110);if('suggestion'!=_0x4f0d73||_0x2a5a('0x43')!=_0x4fb89f||_0x2f4689[_0x2a5a('0xa4')])continue;if(!_0x1062d6[_0x2a5a('0x25')](_0x4fac70))continue;const _0x51ca9d=_0x1062d6[_0x2a5a('0x5d')](_0x4fac70)['getRanges'](),_0x2fc4f6=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'];for(const _0x102444 of _0x1062d6['getSuggestions']()){if(!_0x102444[_0x2a5a('0xa0')]||_0x102444[_0x2a5a('0x1d')]!=_0x2fc4f6)continue;if(_0x2a5a('0x89')!=_0x102444['type']||'tablePasteCell'!=_0x102444['subType'])continue;if(_0x102444[_0x2a5a('0x85')]()['every'](_0x2a265f=>_0x51ca9d[_0x2a5a('0x82')](_0x445c43=>_0x445c43['containsRange'](_0x2a265f,!0x0))))for(const _0x482dac of _0x102444['getAllAdjacentSuggestions']())_0x482dac[_0x2a5a('0xa0')]&&(_0x482dac[_0x2a5a('0x93')](),_0x21f64c=!0x0);}}return _0x21f64c;}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x406603=>{const _0x14d5b0=_0x5f17a3[_0x2a5a('0x45')][_0x2a5a('0x58')](_0x2a5a('0xa2'));if(!_0x14d5b0||!_0x14d5b0[_0x2a5a('0xe')][_0x2a5a('0x4f')](_0x406603[_0x2a5a('0x97')]))return!0x1;let _0x1139f2=!0x1;const _0xacffb3=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'],_0x8266f9=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x59')](),_0x57f982=Array['from'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')]['getChangedMarkers']())['filter'](({name:_0x535ee1,data:_0x5cbe5a})=>{const {group:_0x4dede9,subType:_0x1572be,authorId:_0x215c27}=_0x1062d6[_0x2a5a('0x32')](_0x535ee1);return'suggestion'==_0x4dede9&&_0x2a5a('0xa1')==_0x1572be&&_0x215c27==_0xacffb3['id']&&!_0x5cbe5a[_0x2a5a('0xa4')];});for(const _0x380237 of _0x8266f9){if(_0x2a5a('0x5b')!=_0x380237[_0x2a5a('0x86')]||_0x2a5a('0x81')!=_0x380237['name']||0x1!=_0x380237[_0x2a5a('0x6a')])continue;const _0x4a0253=_0x406603[_0x2a5a('0x8a')](_0x380237[_0x2a5a('0x10')],_0x380237[_0x2a5a('0x10')][_0x2a5a('0x94')](0x1));if(!_0x57f982['find'](({data:_0x201e44})=>_0x201e44[_0x2a5a('0x2f')][_0x2a5a('0x0')](_0x4a0253)))for(const {name:_0x4bae71,data:_0x1c145a}of _0x57f982)if(_0x4a0253['containsRange'](_0x1c145a[_0x2a5a('0x2f')])){_0x406603[_0x2a5a('0x6e')](_0x4bae71,{'range':_0x4a0253}),_0x1139f2=!0x0;break;}}return _0x1139f2;}),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x45590b=>{let _0x848b2b=!0x1;const _0x80a93d=_0x5f17a3['plugins'][_0x2a5a('0x58')](_0x2a5a('0x4c'))['me'],_0x42958d=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x370ef4=>_0x370ef4[_0x2a5a('0xa0')]&&_0x370ef4['author']==_0x80a93d),_0x58ce11=new Set(),_0x4d862a=new Set();for(const _0x127776 of _0x42958d)if('tablePaste'==_0x127776[_0x2a5a('0x17')])for(const _0x46823e of _0x127776['getMarkers']()){const _0x12bd29=_0x46823e[_0x2a5a('0x4b')]()[_0x2a5a('0x2b')]();if(_0x12bd29){if(_0x12bd29['is'](_0x2a5a('0x98'),'tableCellSuggestion')&&ce(_0x12bd29)){_0x127776[_0x2a5a('0x96')](_0x46823e[_0x2a5a('0x72')]),_0x58ce11['add'](_0x12bd29),_0x848b2b=!0x0;const _0x57e825=_0x12bd29[_0x2a5a('0x92')],_0x303caf=_0x12bd29[_0x2a5a('0x3e')],_0x5c554c=_0x57e825&&_0x57e825['is'](_0x2a5a('0x98'),_0x2a5a('0x81')),_0x3e6cb8=_0x303caf&&_0x303caf['is'](_0x2a5a('0x98'),_0x2a5a('0x81'));_0x5c554c&&!_0x58ce11[_0x2a5a('0x4f')](_0x57e825)&&_0x4d862a[_0x2a5a('0x7')](_0x57e825),_0x3e6cb8&&!_0x58ce11[_0x2a5a('0x4f')](_0x303caf)&&_0x4d862a[_0x2a5a('0x7')](_0x303caf);}else _0x12bd29['is'](_0x2a5a('0x98'),'paragraph')&&_0x12bd29[_0x2a5a('0x7d')]&&(_0x127776[_0x2a5a('0x96')](_0x46823e['name']),_0x848b2b=!0x0);}}else{if('tablePasteCell'==_0x127776[_0x2a5a('0x17')]){if(!_0x127776[_0x2a5a('0x9f')]||!_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x2a')])continue;const _0x2415c8=_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x6')];if(_0x2415c8&&Object[_0x2a5a('0x54')](_0x2415c8)[_0x2a5a('0x6a')])continue;const _0x4fb843=_0x127776['attributes'][_0x2a5a('0x2a')];let _0x411cfd=!0x0,_0x52b76c=!0x0;for(const _0x4953d3 of _0x42958d)if(_0x4953d3[_0x2a5a('0x17')]&&_0x4953d3['subType'][_0x2a5a('0x74')]('tablePaste')){if(!_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]){_0x52b76c=!0x1;break;}if(_0x4953d3['id']!=_0x127776['id']&&_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]==_0x4fb843){_0x411cfd=!0x1;break;}}_0x52b76c&&_0x411cfd&&(_0x127776['removeMarkers'](),_0x848b2b=!0x0);}}for(const _0x54988f of _0x58ce11)_0x45590b[_0x2a5a('0x79')](_0x54988f);for(const _0x57d23d of _0x4d862a)_0x45590b['unwrap'](_0x57d23d);return _0x848b2b;}),_0x5f17a3['conversion'][_0x2a5a('0x44')](_0x2a5a('0x7b'))['markerToHighlight']({'model':_0x2a5a('0x34'),'view':(_0x3aaad0,_0x4cadf8)=>_0x5b676a(_0x3aaad0),'converterPriority':_0x2a5a('0x4')}),_0x5f17a3[_0x2a5a('0x83')]['for'](_0x2a5a('0x37'))[_0x2a5a('0x71')]({'model':_0x2a5a('0x34'),'view':(_0x17e7fd,_0x248878)=>_0x248878[_0x2a5a('0xf')][_0x2a5a('0x68')]?_0x5b676a(_0x17e7fd,!0x1):null,'converterPriority':_0x2a5a('0x4')});const _0x4e4cd9=_0x5f17a3['editing'][_0x2a5a('0xd')];this[_0x2a5a('0x6d')](_0x4e4cd9['document'],_0x2a5a('0x1b'),(_0x4385d0,_0x27b1ad)=>{const _0x3ef3f2=[];for(const _0x34c47f of _0x4e4cd9[_0x2a5a('0x15')](_0x27b1ad[_0x2a5a('0x50')])[_0x2a5a('0x99')]())_0x34c47f['is'](_0x2a5a('0x98'),'suggestion-td')&&_0x3ef3f2[_0x2a5a('0x1f')](_0x34c47f);_0x4e4cd9['change'](_0x1cfa66=>{for(const _0x2e1caf of _0x3ef3f2)_0x1cfa66[_0x2a5a('0x7a')](_0x1cfa66[_0x2a5a('0x15')](_0x2e1caf),_0x1cfa66[_0x2a5a('0x75')](_0x2e1caf)),_0x1cfa66[_0x2a5a('0x79')](_0x2e1caf);});});}}function ce(_0x4e8b6){if(_0x4e8b6[_0x2a5a('0x7d')])return!0x0;const _0x558878=_0x4e8b6[_0x2a5a('0x9c')](0x0);return _0x558878['is'](_0x2a5a('0x98'),_0x2a5a('0x46'))&&_0x558878[_0x2a5a('0x7d')];}function fe(_0x833b94,_0x330bcf={},_0x38b553){for(const {isAnchor:_0x1645ed,cellHeight:_0x30c0e0,cellWidth:_0x26d055}of _0x38b553[_0x2a5a('0x3f')](_0x833b94,{'includeAllSlots':!0x0,..._0x330bcf}))if(!_0x1645ed||0x1!=_0x30c0e0||0x1!=_0x26d055)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b02=['_descriptionFactory','formatGroupId','document','tableWidth','subType','resizeColumnWidths','*Format:*\x20resize\x20table','bind','commandParams','author','table','editor','enableCommand','resizeTable','registerDescriptionCallback','TrackChangesEditing','model','discard','plugins','accept','handleResizeTableWidthCommand','getTableColumnsWidths','getColumnGroupElement','selection','get','locale','resizeTableWidth','_suggestionFactory','has','data','registerCustomCallback','handleSuggestionDescription','getSuggestionCallback','getAttribute','columnWidths','format','formatBlock','markBlockFormat'];(function(_0x2b3c70,_0x5b0200){const _0x14c831=function(_0x345ea0){while(--_0x345ea0){_0x2b3c70['push'](_0x2b3c70['shift']());}};_0x14c831(++_0x5b0200);}(_0x5b02,0x119));const _0x14c8=function(_0x2b3c70,_0x5b0200){_0x2b3c70=_0x2b3c70-0x0;let _0x14c831=_0x5b02[_0x2b3c70];return _0x14c831;};import{Plugin as _0x5e58c4}from'ckeditor5/src/core';import{getTranslation as _0x492b09}from'../utils/common-translations';export default class wt extends _0x5e58c4{['afterInit'](){if(!this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0xd')]('TableColumnResizeEditing'))return;const _0x306ff2=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')](_0x14c8('0x0'));_0x306ff2[_0x14c8('0x23')]('resizeTableWidth',this[_0x14c8('0x5')][_0x14c8('0x1e')](this)),_0x306ff2[_0x14c8('0x23')](_0x14c8('0x1c'),this[_0x14c8('0x5')]['bind'](this)),_0x306ff2[_0x14c8('0xc')][_0x14c8('0xf')](_0x14c8('0x15'),_0x14c8('0x24'),_0x14c8('0x4'),_0x306ff2[_0x14c8('0xc')][_0x14c8('0x11')]('formatBlock',null,_0x14c8('0x2'))),_0x306ff2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c8('0x24'),_0x14c8('0x2'),_0x306ff2[_0x14c8('0xc')][_0x14c8('0x11')](_0x14c8('0x15'),null,_0x14c8('0x4'))),_0x306ff2[_0x14c8('0x17')][_0x14c8('0x25')](this[_0x14c8('0x10')][_0x14c8('0x1e')](this));}[_0x14c8('0x5')](_0x4d378a,_0x386b71){const _0x135c33=this[_0x14c8('0x22')]['plugins'][_0x14c8('0x9')](_0x14c8('0x0')),_0x4052e9=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')]('TableColumnResizeEditing'),_0x1ddf32=_0x386b71[_0x14c8('0x21')]||this[_0x14c8('0x22')][_0x14c8('0x1')][_0x14c8('0x19')][_0x14c8('0x8')]['getSelectedElement']();this['editor'][_0x14c8('0x1')]['change'](()=>{const _0x14b81c=_0x4052e9[_0x14c8('0x7')](_0x1ddf32);let _0x15be7c=_0x14b81c?_0x4052e9[_0x14c8('0x6')](_0x14b81c):null,_0x367d2c=_0x1ddf32[_0x14c8('0x12')](_0x14c8('0x1a'))||null;const _0x41122b=_0x386b71['tableWidth']||_0x367d2c,_0x16648a=_0x386b71[_0x14c8('0x13')]||_0x15be7c,_0x477cc8=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')]('Users')['me'];for(const _0x2ac652 of _0x135c33['getSuggestions']()){const _0x40780f=_0x2ac652['getContainedElement']();if(_0x14c8('0x24')===_0x2ac652[_0x14c8('0x1b')]&&_0x40780f===_0x1ddf32){_0x2ac652[_0x14c8('0x20')]!==_0x477cc8&&_0x2ac652[_0x14c8('0x2')]();const _0x1478a6=_0x2ac652[_0x14c8('0xe')][_0x14c8('0x1f')];_0x367d2c=_0x1478a6[0x0][_0x14c8('0x1a')],_0x15be7c=_0x1478a6[0x0][_0x14c8('0x13')];break;}}_0x4d378a({'table':_0x1ddf32,'tableWidth':_0x41122b,'columnWidths':_0x16648a}),_0x135c33[_0x14c8('0x16')](_0x1ddf32,{'commandName':_0x14c8('0xb'),'commandParams':[{'tableWidth':_0x367d2c,'columnWidths':_0x15be7c}],'formatGroupId':_0x14c8('0x24')},[],_0x14c8('0x24'));});}[_0x14c8('0x10')](_0x53c2fa){const {data:_0x189b4f}=_0x53c2fa;if(_0x189b4f&&'resizeTable'===_0x189b4f[_0x14c8('0x18')]){const _0x4088a3=_0x14c8('0x1d');return{'type':_0x14c8('0x14'),'content':_0x492b09(this['editor'][_0x14c8('0xa')],_0x4088a3)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47fe=['nodeBefore','FORMAT_HEADER_ROW','table','_suggestionFactory','createRange','model','stop','FORMAT_REGULAR_ROW','highest','getColumnIndexes','_descriptionFactory','index','document','createPositionBefore','removeClass','markerNameToElements','enableCommand','setAttribute','activeMarkers','_splitMarkerName','setTableRowHeader','registerCustomCallback','data-suggestion','TableUtils','removeMarker:suggestion','getRowIndexes','getAttribute','name','findAncestor','from','parent','markerRange','getChild','editing','formatBlock','ck-suggestion-marker--active','item','cell','TrackChangesEditing','isBefore','headingRows','showSuggestionHighlights','plugins','nodeAfter','data','forceValue','consumable','createPositionAfter','downcastDispatcher','removeAttribute','markBlockFormat','markerName','commands','headingColumns','consume','locale','mapper','setTableColumnHeader','ck-suggestion-marker-','selection','get','editor','commandName','change','afterInit','childCount','end','first','getSuggestion','getCellLocation','addMarker:suggestion','FORMAT_HEADER_COLUMN','getSelectionAffectedTableCells','commandParams','TableEditing','createTableWalker','last','writer','requires','start','value','accept','addClass','*Format:*\x20%0','bindElementToMarker','has'];(function(_0x473513,_0x47fe99){const _0x2c90ca=function(_0x5623e5){while(--_0x5623e5){_0x473513['push'](_0x473513['shift']());}};_0x2c90ca(++_0x47fe99);}(_0x47fe,0x18f));const _0x2c90=function(_0x473513,_0x47fe99){_0x473513=_0x473513-0x0;let _0x2c90ca=_0x47fe[_0x473513];return _0x2c90ca;};import{Plugin as _0x45d683}from'ckeditor5/src/core';import _0x53f7cc from'./table';import{getTranslation as _0x16329d}from'../utils/common-translations';export default class pt extends _0x45d683{static get[_0x2c90('0x17')](){return[_0x53f7cc];}[_0x2c90('0x9')](){const _0x171665=this[_0x2c90('0x6')];if(!_0x171665['plugins'][_0x2c90('0x1e')](_0x2c90('0x13')))return;const _0x55e5f4=_0x171665[_0x2c90('0x0')],_0x223b1e=_0x171665[_0x2c90('0x49')]['get'](_0x2c90('0x45')),_0xa3bc32=_0x171665[_0x2c90('0x49')][_0x2c90('0x5')]('TableUtils'),_0x12e3e4=_0x171665[_0x2c90('0x49')]['get'](_0x53f7cc);function _0x28f7e5({showActiveMarker:_0x364b0a=!0x0,setDataAttribute:_0x9a4341=!0x0}={}){return(_0x557f86,_0x2990e6,_0x1e14fc)=>{const {type:_0x3f03f0,id:_0x2c09ac}=_0x223b1e[_0x2c90('0x32')](_0x2990e6[_0x2c90('0x52')]),_0x982feb=_0x223b1e[_0x2c90('0xd')](_0x2c09ac);if(!_0x982feb['data']||_0x2c90('0x2')!=_0x982feb[_0x2c90('0x4b')][_0x2c90('0x7')])return;if(_0x2990e6[_0x2c90('0x43')])return void _0x557f86[_0x2c90('0x25')]();if(!_0x1e14fc[_0x2c90('0x4d')][_0x2c90('0x55')](_0x2990e6[_0x2c90('0x3e')],_0x557f86[_0x2c90('0x3a')]))return;const _0x44b262=_0x2990e6[_0x2c90('0x3e')][_0x2c90('0x18')][_0x2c90('0x4a')],_0x54118d=_0x2990e6[_0x2c90('0x3e')][_0x2c90('0xb')][_0x2c90('0x1f')],_0x17de15=_0x44b262['parent'][_0x2c90('0x3d')],{column:_0x42f71c}=_0xa3bc32[_0x2c90('0xe')](_0x44b262),{column:_0x33e83d}=_0xa3bc32[_0x2c90('0xe')](_0x54118d);for(let _0x51a62c=_0x42f71c;_0x51a62c<=_0x33e83d;_0x51a62c++){const _0x2d87ce=_0xa3bc32[_0x2c90('0x14')](_0x17de15,{'column':_0x51a62c,'includeAllSlots':!0x1});for(const _0x1b0259 of _0x2d87ce){const _0x15caef=_0x1b0259[_0x2c90('0x44')],_0x35fa0b=_0x1e14fc[_0x2c90('0x1')]['toViewElement'](_0x15caef);_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x1b')](_0x2c90('0x3')+_0x3f03f0,_0x35fa0b),_0x9a4341&&_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x30')](_0x2c90('0x35'),_0x2c09ac,_0x35fa0b),_0x1e14fc[_0x2c90('0x1')][_0x2c90('0x1d')](_0x35fa0b,_0x2990e6[_0x2c90('0x52')]),_0x364b0a&&(_0x223b1e[_0x2c90('0x31')]['includes'](_0x2990e6[_0x2c90('0x52')])?_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x1b')]('ck-suggestion-marker--active',_0x35fa0b):_0x1e14fc['writer'][_0x2c90('0x2d')](_0x2c90('0x42'),_0x35fa0b));}}};}_0x223b1e['enableCommand'](_0x2c90('0x33'),(_0x158608,_0x1a9e7b)=>{const _0x2b9449=_0xa3bc32[_0x2c90('0x11')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2b')][_0x2c90('0x4')]),_0x1f1cf8=_0xa3bc32[_0x2c90('0x38')](_0x2b9449),_0x32630b=_0x2b9449[0x0][_0x2c90('0x3b')](_0x2c90('0x21')),_0x471c70=_0x32630b[_0x2c90('0x39')](_0x2c90('0x47'))||0x0,_0x493952=_0x1a9e7b&&null!==_0x1a9e7b['forceValue']?_0x1a9e7b[_0x2c90('0x4c')]:!_0x171665[_0x2c90('0x53')]['get'](_0x2c90('0x33'))['value'],_0x2f24b4=_0x493952?_0x1f1cf8[_0x2c90('0x15')]:_0x1f1cf8['first'],_0x3e3307=_0x32630b['getChild'](_0x2f24b4);let _0x3d889e;if(_0x493952){const _0xa8220f=_0x32630b[_0x2c90('0x3f')](_0x471c70);if(_0x3e3307[_0x2c90('0x2a')]<_0xa8220f['index'])return;_0x3d889e=_0x171665['model'][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0xa8220f[_0x2c90('0x3f')](0x0)),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x3e3307[_0x2c90('0x3f')](_0x3e3307[_0x2c90('0xa')]-0x1)));}else{const _0x18eb4d=_0x32630b[_0x2c90('0x3f')](_0x471c70-0x1);if(!_0x18eb4d)return;_0x3d889e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0x3e3307[_0x2c90('0x3f')](0x0)),_0x171665[_0x2c90('0x24')][_0x2c90('0x4e')](_0x18eb4d[_0x2c90('0x3f')](_0x18eb4d[_0x2c90('0xa')]-0x1)));}_0x171665['model'][_0x2c90('0x8')](()=>{_0x223b1e[_0x2c90('0x51')](_0x3d889e,{'commandName':_0x2c90('0x33'),'commandParams':[{'forceValue':_0x493952}]},[],_0x2c90('0x33'));});}),_0x223b1e[_0x2c90('0x2f')](_0x2c90('0x2'),(_0x4b56c0,_0x4d565f)=>{const _0x5e6bd9=_0x171665['plugins'][_0x2c90('0x5')](_0x2c90('0x36')),_0x442ea0=_0x5e6bd9[_0x2c90('0x11')](_0x171665[_0x2c90('0x24')]['document'][_0x2c90('0x4')]),_0x4857d9=_0x5e6bd9[_0x2c90('0x28')](_0x442ea0),_0x44c133=_0x442ea0[0x0][_0x2c90('0x3b')](_0x2c90('0x21')),_0x35ac41=_0x44c133[_0x2c90('0x39')](_0x2c90('0x54'))||0x0,_0x2d288d=_0x4d565f&&null!==_0x4d565f[_0x2c90('0x4c')]?_0x4d565f[_0x2c90('0x4c')]:!_0x171665[_0x2c90('0x53')][_0x2c90('0x5')](_0x2c90('0x2'))[_0x2c90('0x19')];let _0x242b4e;const _0x3a74ab=_0x44c133[_0x2c90('0x3f')](0x0),_0x2231a5=_0x2d288d?_0x4857d9[_0x2c90('0x15')]:_0x4857d9[_0x2c90('0xc')],_0x265639=_0x5e6bd9[_0x2c90('0x14')](_0x44c133,{'startRow':0x0,'column':_0x2231a5,'includeAllSlots':!0x1}),_0x2b7c87=Array[_0x2c90('0x3c')](_0x265639)[0x0][_0x2c90('0x44')];if(_0x2d288d){const _0x1bdbf6=_0x3a74ab[_0x2c90('0x3f')](_0x35ac41);if(_0x2b7c87[_0x2c90('0x46')](_0x1bdbf6))return;_0x242b4e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665['model'][_0x2c90('0x2c')](_0x1bdbf6),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x2b7c87));}else{const _0x4c484b=_0x3a74ab[_0x2c90('0x3f')](_0x35ac41-0x1);if(!_0x4c484b)return;_0x242b4e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0x2b7c87),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x4c484b));}_0x171665[_0x2c90('0x24')][_0x2c90('0x8')](()=>{_0x223b1e['markBlockFormat'](_0x242b4e,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x2d288d}]},[],_0x2c90('0x2'));});}),_0x171665[_0x2c90('0x40')][_0x2c90('0x4f')]['on'](_0x2c90('0xf'),_0x28f7e5(),{'priority':'highest'}),_0x171665['data'][_0x2c90('0x4f')]['on']('addMarker:suggestion',(_0x2ecbd0,_0x4473ba,_0x221e13)=>{_0x221e13['options'][_0x2c90('0x48')]&&_0x28f7e5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ecbd0,_0x4473ba,_0x221e13);},{'priority':_0x2c90('0x27')}),_0x171665[_0x2c90('0x40')][_0x2c90('0x4f')]['on'](_0x2c90('0x37'),(_0x4bd2b5,_0x207b5f,_0x242622)=>{const {type:_0x44751b,id:_0xc6492}=_0x223b1e[_0x2c90('0x32')](_0x207b5f['markerName']),_0x503b3d=_0x223b1e['getSuggestion'](_0xc6492);if(!_0x503b3d[_0x2c90('0x4b')]||_0x2c90('0x2')!=_0x503b3d['data'][_0x2c90('0x7')])return;const _0x556983=_0x242622[_0x2c90('0x1')][_0x2c90('0x2e')](_0x207b5f['markerName']);if(_0x556983)for(const _0x5e9da9 of _0x556983)_0x242622['writer'][_0x2c90('0x2d')](_0x2c90('0x3')+_0x44751b,_0x5e9da9),_0x242622[_0x2c90('0x16')]['removeClass'](_0x2c90('0x42'),_0x5e9da9),_0x242622[_0x2c90('0x16')][_0x2c90('0x50')](_0x2c90('0x35'),_0x5e9da9),_0x242622['mapper']['unbindElementFromMarkerName'](_0x5e9da9,_0x207b5f['markerName']);},{'priority':'highest'}),_0x223b1e[_0x2c90('0x29')]['registerDescriptionCallback'](_0x256b12=>{const {data:_0x54f058}=_0x256b12;if(_0x54f058){if(_0x2c90('0x33')==_0x54f058[_0x2c90('0x7')]){const _0x6ad74=_0x54f058[_0x2c90('0x12')][0x0]['forceValue'];return _0x561649(_0x16329d(_0x55e5f4,_0x6ad74?_0x2c90('0x20'):_0x2c90('0x26')));}if(_0x2c90('0x2')==_0x54f058[_0x2c90('0x7')]){const _0x425fc3=_0x54f058['commandParams'][0x0]['forceValue'];return _0x561649(_0x16329d(_0x55e5f4,_0x425fc3?_0x2c90('0x10'):'FORMAT_REGULAR_COLUMN'));}}function _0x561649(_0x2abcf5){return{'type':'format','content':_0x16329d(_0x55e5f4,_0x2c90('0x1c'),_0x2abcf5)};}});const _0x53ecb8=_0x12e3e4['_acceptFormatSuggestionCallbackFactory']();_0x223b1e[_0x2c90('0x22')][_0x2c90('0x34')](_0x2c90('0x41'),'setTableRowHeader',_0x2c90('0x1a'),_0x53ecb8),_0x223b1e[_0x2c90('0x22')][_0x2c90('0x34')](_0x2c90('0x41'),'setTableColumnHeader',_0x2c90('0x1a'),_0x53ecb8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11a2=['highest','tableCell','execute','enableCommand','fromRange','cell','registerDescriptionCallback','getSelectionAffectedTableCells','horizontally','commands','TableUtils','mergeTableCellUp','find','TrackChangesEditing','getRanges','mergeTableCellLeft','setSelection','trackChanges','size','createTableWalker','stop','from','isEnabled','requires','locale','registerCustomCallback','markBlockFormat','markMultiRangeBlockFormat','_areMergableCells','editor','*Merge\x20cells*','element','return','containsRange','author','map','add','_areSelectedCellsMergable','selection','low','getFirstPosition','change','push','filter','findAncestor','*Split\x20cell:*\x20vertically','rootName','createRangeOn','accept','_acceptFormatSuggestionCallbackFactory','has','length','direction','mergeTableCellDown','splitTableCellHorizontally','plugins','get','root','model','afterInit','getAncestors','formatBlock','type','detach','value','format','commandName','_suggestionFactory','_tablePostFixingSubtypes','subType','document','set:isEnabled','refresh','mergeTableCells','mergeTableCellRight','isInContent','insertion','table','splitTableCellVertically'];(function(_0x4d4558,_0x11a220){const _0x5760d8=function(_0x473074){while(--_0x473074){_0x4d4558['push'](_0x4d4558['shift']());}};_0x5760d8(++_0x11a220);}(_0x11a2,0x1a8));const _0x5760=function(_0x4d4558,_0x11a220){_0x4d4558=_0x4d4558-0x0;let _0x5760d8=_0x11a2[_0x4d4558];return _0x5760d8;};import{Plugin as _0x196559}from'ckeditor5/src/core';import _0x20ebe0 from'./table';import{LiveRange as _0x2bf2c7}from'ckeditor5/src/engine';import{getTranslation as _0x4f7a4d}from'../utils/common-translations';export default class dt extends _0x196559{static get[_0x5760('0x49')](){return[_0x20ebe0];}[_0x5760('0x1e')](){const _0x3909e1=this[_0x5760('0x0')],_0x21de76=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')]['selection'],_0x4c18a3=_0x3909e1[_0x5760('0x4a')];if(!_0x3909e1[_0x5760('0x1a')][_0x5760('0x15')]('TableEditing'))return;const _0x486abd=_0x3909e1[_0x5760('0x1a')][_0x5760('0x1b')](_0x5760('0x3f')),_0x443a58=_0x3909e1[_0x5760('0x1a')]['get'](_0x5760('0x3c')),_0x8d708d=_0x3909e1[_0x5760('0x1a')][_0x5760('0x1b')](_0x20ebe0);_0x8d708d[_0x5760('0x27')][_0x5760('0xd')](_0x5760('0x2c')),_0x486abd['enableCommand']('mergeTableCells',()=>{const _0x38f2b=_0x443a58[_0x5760('0x39')](_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')]);_0x3909e1['model'][_0x5760('0xc')](()=>{_0x486abd['markMultiRangeBlockFormat'](_0x38f2b,{'commandName':_0x5760('0x2c'),'commandParams':[]},[],_0x5760('0x2c'));});}),_0x3909e1[_0x5760('0x3b')][_0x5760('0x1b')]('mergeTableCells')['on'](_0x5760('0x34'),(_0x4d2f29,_0x263f32)=>{_0x3909e1['commands'][_0x5760('0x1b')](_0x5760('0x43'))['value']&&(_0x263f32['length']>0x0&&_0x263f32[_0x263f32[_0x5760('0x16')]-0x1]&&_0x263f32[_0x263f32['length']-0x1]['forceDefaultExecution']||_0x486abd['_isForcedDefaultExecutionBlock']||this[_0x5760('0x8')]()||_0x4d2f29[_0x5760('0x46')]());},{'priority':_0x5760('0x32')});for(const _0x4b0ee9 of[_0x5760('0x3d'),_0x5760('0x2d'),_0x5760('0x18'),_0x5760('0x41')]){const _0x10ee46=_0x3909e1['commands'][_0x5760('0x1b')](_0x4b0ee9);_0x486abd[_0x5760('0x35')](_0x4b0ee9,()=>{const _0x3eff4d=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')][_0x5760('0xb')]()['getAncestors']()['find'](_0x1bbc4a=>_0x1bbc4a['is'](_0x5760('0x2'),_0x5760('0x33'))),_0x3a0c59=_0x10ee46[_0x5760('0x23')];_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](()=>{_0x486abd[_0x5760('0x4d')]([_0x3eff4d,_0x3a0c59],{'commandName':_0x5760('0x2c'),'commandParams':[]},[],_0x5760('0x2c'));});});}for(const _0x4c509e of['splitTableCellVertically',_0x5760('0x19')]){const _0x132557=_0x3909e1[_0x5760('0x3b')][_0x5760('0x1b')](_0x4c509e);_0x486abd['enableCommand'](_0x4c509e,()=>{const _0x4f6b17=_0x443a58['getSelectionAffectedTableCells'](_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')]['selection'])[0x0],_0x57532c=_0x4f6b17[_0x5760('0xf')](_0x5760('0x30')),{column:_0x2407bf,row:_0x30a8ce}=_0x443a58['getCellLocation'](_0x4f6b17);let _0x19ef5f=[];if(_0x5760('0x3a')==_0x132557[_0x5760('0x17')]){const _0x4dc781=_0x443a58[_0x5760('0x45')](_0x57532c,{'startRow':_0x30a8ce,'endRow':_0x30a8ce,'includeAllSlots':!0x0});_0x19ef5f=Array['from'](_0x4dc781)[_0x5760('0x6')](_0x54cc88=>_0x54cc88[_0x5760('0x37')]);}else{const _0x6caa72=_0x443a58['createTableWalker'](_0x57532c,{'column':_0x2407bf,'includeAllSlots':!0x0});_0x19ef5f=Array[_0x5760('0x47')](_0x6caa72)[_0x5760('0x6')](_0x2dd2da=>_0x2dd2da[_0x5760('0x37')]);}_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](_0x733309=>{_0x486abd[_0x5760('0x4c')](_0x733309[_0x5760('0x12')](_0x4f6b17),{'commandName':_0x4c509e,'commandParams':[]},_0x19ef5f,_0x4c509e);});});}_0x486abd['_descriptionFactory'][_0x5760('0x38')](_0x170905=>{const {data:_0x238cf7}=_0x170905;if(_0x238cf7)return _0x5760('0x2c')==_0x238cf7[_0x5760('0x25')]?{'type':_0x5760('0x24'),'content':_0x4f7a4d(_0x4c18a3,_0x5760('0x1'))}:void 0x0;}),_0x486abd['_descriptionFactory'][_0x5760('0x38')](_0x58ab98=>{const {data:_0xe1b14c}=_0x58ab98;if(_0xe1b14c)return _0x5760('0x31')==_0xe1b14c[_0x5760('0x25')]?{'type':'format','content':_0x4f7a4d(_0x4c18a3,_0x5760('0x10'))}:_0x5760('0x19')==_0xe1b14c[_0x5760('0x25')]?{'type':_0x5760('0x24'),'content':_0x4f7a4d(_0x4c18a3,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x542fbd=_0x8d708d[_0x5760('0x14')]();for(const _0x242e64 of[_0x5760('0x3d'),_0x5760('0x2d'),'mergeTableCellDown','mergeTableCellLeft'])_0x486abd[_0x5760('0x26')][_0x5760('0x4b')](_0x5760('0x20'),_0x242e64,_0x5760('0x13'),_0x542fbd);for(const _0x247015 of[_0x5760('0x31'),'splitTableCellHorizontally'])_0x486abd[_0x5760('0x26')][_0x5760('0x4b')](_0x5760('0x20'),_0x247015,_0x5760('0x13'),_0x542fbd);_0x486abd['_suggestionFactory'][_0x5760('0x4b')](_0x5760('0x20'),_0x5760('0x2c'),_0x5760('0x13'),_0x163873=>{_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](_0x2fdc92=>{const _0x785fb8=Array['from'](_0x21de76[_0x5760('0x40')]())['map'](_0x13a06c=>_0x2bf2c7[_0x5760('0x36')](_0x13a06c));_0x2fdc92['setSelection'](_0x163873),_0x3909e1['commands'][_0x5760('0x1b')](_0x5760('0x2c'))[_0x5760('0x2b')](),_0x3909e1[_0x5760('0x34')](_0x5760('0x2c'),{'forceDefaultExecution':!0x0});const _0x30d949=_0x785fb8[_0x5760('0xe')](_0x1ee161=>'$graveyard'!=_0x1ee161[_0x5760('0x1c')][_0x5760('0x11')]);_0x30d949[_0x5760('0x16')]>0x0&&_0x2fdc92[_0x5760('0x42')](_0x30d949);for(const _0xc9a5fa of _0x785fb8)_0xc9a5fa[_0x5760('0x22')]();});});for(const _0x310557 of[_0x5760('0x3d'),_0x5760('0x18'),_0x5760('0x41'),_0x5760('0x2d')]){const _0x879154=_0x3909e1['commands'][_0x5760('0x1b')](_0x310557);_0x879154['on'](_0x5760('0x2a'),(_0x5f4055,_0xfd1243,_0x35e0a9)=>{if(_0x35e0a9){const _0x1622bc=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')][_0x5760('0xb')]()[_0x5760('0x1f')]()[_0x5760('0x3e')](_0x2c3c68=>_0x2c3c68['is']('element',_0x5760('0x33')));this['_areMergableCells'](_0x879154[_0x5760('0x23')],_0x1622bc)||(_0x5f4055[_0x5760('0x3')]=!0x1,_0x5f4055[_0x5760('0x46')]());}},{'priority':_0x5760('0xa')});}}[_0x5760('0x8')](){const _0x49daad=this[_0x5760('0x0')][_0x5760('0x3b')][_0x5760('0x1b')](_0x5760('0x2c')),_0x4b7518=this[_0x5760('0x0')][_0x5760('0x1a')][_0x5760('0x1b')](_0x5760('0x3c'));if(!_0x49daad[_0x5760('0x48')])return!0x1;const _0x4c1788=_0x4b7518[_0x5760('0x39')](this['editor']['model'][_0x5760('0x29')]['selection']);for(const _0x89497b of _0x4c1788)for(const _0x129ec1 of _0x4c1788)if(_0x89497b!=_0x129ec1&&!this[_0x5760('0x4e')](_0x89497b,_0x129ec1))return!0x1;return!0x0;}[_0x5760('0x4e')](_0x2bcbf3,_0x159104){const _0xf6fcfa=this[_0x5760('0x0')][_0x5760('0x1a')]['get']('TrackChangesEditing'),_0x568e0a=this[_0x5760('0x0')][_0x5760('0x1d')][_0x5760('0x12')](_0x2bcbf3),_0x762943=this[_0x5760('0x0')]['model'][_0x5760('0x12')](_0x159104),_0x5b7420=new Set(),_0x3276d8=new Set();for(const _0x567aef of _0xf6fcfa['getSuggestions']())if((_0x5760('0x2f')==_0x567aef[_0x5760('0x21')]||'deletion'==_0x567aef[_0x5760('0x21')]||'mergeTableCells'==_0x567aef[_0x5760('0x28')])&&_0x567aef[_0x5760('0x2e')])for(const _0x49ad22 of _0x567aef[_0x5760('0x40')]())_0x49ad22[_0x5760('0x4')](_0x568e0a,!0x0)&&_0x5b7420[_0x5760('0x7')](_0x567aef[_0x5760('0x21')]+':'+_0x567aef[_0x5760('0x5')]['id']),_0x49ad22[_0x5760('0x4')](_0x762943,!0x0)&&_0x3276d8['add'](_0x567aef['type']+':'+_0x567aef[_0x5760('0x5')]['id']);if(_0x5b7420[_0x5760('0x44')]!=_0x3276d8[_0x5760('0x44')])return!0x1;for(const _0x33c688 of _0x5b7420)if(!_0x3276d8[_0x5760('0x15')](_0x33c688))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x820a=['TrackChangesEditing','afterInit','commands','get','tableOfContents','plugins','ELEMENT_TABLE_OF_CONTENTS','_descriptionFactory','insertTableOfContents','locale'];(function(_0x5db145,_0x820a7f){const _0x1db6bd=function(_0x20ceab){while(--_0x20ceab){_0x5db145['push'](_0x5db145['shift']());}};_0x1db6bd(++_0x820a7f);}(_0x820a,0x1ed));const _0x1db6=function(_0x5db145,_0x820a7f){_0x5db145=_0x5db145-0x0;let _0x1db6bd=_0x820a[_0x5db145];return _0x1db6bd;};import{Plugin as _0xc6145f}from'ckeditor5/src/core';import{getTranslation as _0x592c12}from'../utils/common-translations';export default class bt extends _0xc6145f{[_0x1db6('0x8')](){const _0x2e2dbc=this['editor'];if(!_0x2e2dbc[_0x1db6('0x9')][_0x1db6('0x0')](_0x1db6('0x5')))return;_0x2e2dbc[_0x1db6('0x2')]['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x210209=_0x2e2dbc[_0x1db6('0x2')][_0x1db6('0x0')](_0x1db6('0x7')),_0x57e4c7=_0x2e2dbc[_0x1db6('0x6')];_0x210209[_0x1db6('0x4')]['registerElementLabel'](_0x1db6('0x1'),_0x40ba4f=>_0x592c12(_0x57e4c7,_0x1db6('0x3'),_0x40ba4f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291a=['TableCellPropertiesEditing','plugins','enableCommand','getSuggestions','afterInit','tableCellVerticalAlignment','tableHeight','_descriptionFactory','handleDiscardAction','get','pluginName','getSuggestionCallback','tableBorderWidth','tableCellBorderWidth','registerCustomCallback','findAncestor','_getSuggestion','change','tableCellHeight','*Format:*\x20change\x20table\x20cell\x20properties','model','tableCellHorizontalAlignment','data','markBlockFormat','tableProperties','tableCellWidth','format','subType','discard','accept','TrackChangesEditing','getAttribute','editor','tableCellPadding','handleSuggestionDescription','tableCellProperties','_handlePropertyChange','_suggestionFactory','locale','formatBlock','document','selection','tableBorderStyle','table','join','*Format:*\x20change\x20table\x20properties','getFirstPosition','getSelectionAffectedTableCells','TablePropertiesEditing','has','nodeAfter','TrackChangesTableProperties','tableWidth','batch','tableCellBorderColor'];(function(_0x1c1aa9,_0x291a7b){const _0x583363=function(_0x4aa168){while(--_0x4aa168){_0x1c1aa9['push'](_0x1c1aa9['shift']());}};_0x583363(++_0x291a7b);}(_0x291a,0xda));const _0x5833=function(_0x1c1aa9,_0x291a7b){_0x1c1aa9=_0x1c1aa9-0x0;let _0x583363=_0x291a[_0x1c1aa9];return _0x583363;};import{Plugin as _0x39e53f}from'ckeditor5/src/core';import{getTranslation as _0x1f1501}from'../utils/common-translations';export default class Ct extends _0x39e53f{constructor(_0x27c18c){super(_0x27c18c),this[_0x5833('0x1a')]=['tableBorderColor',_0x5833('0x2c'),_0x5833('0xe'),'tableAlignment',_0x5833('0x36'),_0x5833('0x8'),'tableBackgroundColor'],this[_0x5833('0x25')]=[_0x5833('0x1'),'tableCellBorderStyle',_0x5833('0xf'),_0x5833('0x23'),_0x5833('0x1b'),_0x5833('0x14'),'tableCellBackgroundColor',_0x5833('0x17'),_0x5833('0x7')];}static get[_0x5833('0xc')](){return _0x5833('0x35');}[_0x5833('0x6')](){const _0x2f68d4=this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0xb')]('TrackChangesEditing');if(this['editor'][_0x5833('0x3')]['has'](_0x5833('0x32'))){for(const _0x19fb10 of this[_0x5833('0x1a')])_0x2f68d4[_0x5833('0x4')](_0x19fb10,(_0x3e4987,_0x5e1e48)=>{const _0x1fdaa7=this['editor'][_0x5833('0x16')][_0x5833('0x2a')][_0x5833('0x2b')][_0x5833('0x30')]()[_0x5833('0x11')](_0x5833('0x2d'));this[_0x5833('0x26')](_0x19fb10,[_0x1fdaa7],this[_0x5833('0x1a')],_0x5833('0x1a'),_0x3e4987,_0x5e1e48);});_0x2f68d4[_0x5833('0x27')]['registerCustomCallback'](_0x5833('0x29'),_0x5833('0x1a'),_0x5833('0x1f'),_0x2f68d4['_suggestionFactory'][_0x5833('0xd')](_0x5833('0x29'),null,_0x5833('0x1e'))),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')]('formatBlock',_0x5833('0x1a'),_0x5833('0x1e'),(_0xad0ebb,_0x23cf98)=>this[_0x5833('0xa')](this['tableProperties'],_0xad0ebb,_0x23cf98)),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),'tableProperties',_0x5833('0x2e'),()=>!0x1);}if(this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0x33')](_0x5833('0x2'))){for(const _0x348970 of this[_0x5833('0x25')])_0x2f68d4[_0x5833('0x4')](_0x348970,(_0x52e3d9,_0x2bc27c)=>{const _0x1fc21d=this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0xb')]('TableUtils')[_0x5833('0x31')](this[_0x5833('0x22')][_0x5833('0x16')][_0x5833('0x2a')][_0x5833('0x2b')]);this[_0x5833('0x26')](_0x348970,_0x1fc21d,this[_0x5833('0x25')],_0x5833('0x25'),_0x52e3d9,_0x2bc27c);});_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),_0x5833('0x25'),_0x5833('0x1f'),_0x2f68d4[_0x5833('0x27')][_0x5833('0xd')](_0x5833('0x29'),null,'discard')),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),_0x5833('0x25'),_0x5833('0x1e'),(_0x344c59,_0x1e112a)=>this[_0x5833('0xa')](this[_0x5833('0x25')],_0x344c59,_0x1e112a)),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),'tableCellProperties',_0x5833('0x2e'),()=>!0x1);}_0x2f68d4[_0x5833('0x9')]['registerDescriptionCallback'](_0x35a97f=>this[_0x5833('0x24')](_0x35a97f));}[_0x5833('0x26')](_0x336477,_0x5a14b1,_0x4c5608,_0x239aba,_0x1ac394,_0xbb001a){const _0x393955=this[_0x5833('0x22')]['plugins'][_0x5833('0xb')](_0x5833('0x20'));this[_0x5833('0x22')][_0x5833('0x16')]['enqueueChange'](_0xbb001a[_0x5833('0x0')],()=>{for(const _0x390aa6 of _0x5a14b1){if(this['_getSuggestion'](_0x390aa6,_0x239aba))_0x1ac394(_0xbb001a);else{const _0x5d4ae1={};for(const _0x37e0aa of _0x4c5608){const _0x14b198=_0x390aa6[_0x5833('0x21')](_0x37e0aa);void 0x0!==_0x14b198&&(_0x5d4ae1[_0x37e0aa]=_0x14b198);}_0x1ac394(_0xbb001a),_0x393955[_0x5833('0x19')](_0x390aa6,{'commandParams':[_0x5d4ae1]},[],_0x239aba);}}});}[_0x5833('0xa')](_0x4d5055,_0x49cf37,_0x38b6c4){const _0x59cfc1=_0x49cf37[0x0]['start'][_0x5833('0x34')],_0x2d2f3e=_0x38b6c4['commandParams'][0x0];this[_0x5833('0x22')][_0x5833('0x16')][_0x5833('0x13')](_0x578c0c=>{for(const _0xaea808 of _0x4d5055)void 0x0!==_0x2d2f3e[_0xaea808]?_0x578c0c['setAttribute'](_0xaea808,_0x2d2f3e[_0xaea808],_0x59cfc1):_0x578c0c['removeAttribute'](_0xaea808,_0x59cfc1);});}['handleSuggestionDescription'](_0x4dfe0b){if(_0x4dfe0b[_0x5833('0x18')])switch(_0x4dfe0b[_0x5833('0x1d')]){case _0x5833('0x1a'):return{'type':_0x5833('0x1c'),'content':_0x1f1501(this[_0x5833('0x22')][_0x5833('0x28')],_0x5833('0x2f'))};case _0x5833('0x25'):return{'type':'format','content':_0x1f1501(this['editor'][_0x5833('0x28')],_0x5833('0x15'))};}}[_0x5833('0x12')](_0x2e70d9,_0x233bdb){const _0x23fcfb=this[_0x5833('0x22')]['plugins']['get'](_0x5833('0x20'));for(const _0x5ab9ad of _0x23fcfb[_0x5833('0x5')]({'skipNotAttached':!0x0})){const _0x36ba80=_0x5ab9ad['getContainedElement']();if(_0x5ab9ad['subType']===_0x233bdb&&_0x36ba80===_0x2e70d9)return _0x5ab9ad;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3965=['Template','get','plugins','insertTemplate','afterInit','TrackChangesEditing'];(function(_0x38703e,_0x396508){const _0x418d98=function(_0x29ad9e){while(--_0x29ad9e){_0x38703e['push'](_0x38703e['shift']());}};_0x418d98(++_0x396508);}(_0x3965,0x72));const _0x418d=function(_0x38703e,_0x396508){_0x38703e=_0x38703e-0x0;let _0x418d98=_0x3965[_0x38703e];return _0x418d98;};import{Plugin as _0x55f1ca}from'ckeditor5/src/core';export default class yt extends _0x55f1ca{[_0x418d('0x4')](){const _0x5deaf6=this['editor'];_0x5deaf6[_0x418d('0x2')]['has'](_0x418d('0x0'))&&_0x5deaf6[_0x418d('0x2')][_0x418d('0x1')](_0x418d('0x5'))['enableCommand'](_0x418d('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x172f=['title-content','getNearestSelectionRange','start','model','updateMarker','document','registerPostFixer','Title','has','differ','get','afterInit','_splitMarkerName','getChangedMarkers','locale','schema','editor','createRange','element','suggestion','isCollapsed','forward','ELEMENT_TITLE','end','newRange'];(function(_0x208fc9,_0x172f56){const _0x5464f5=function(_0x44b889){while(--_0x44b889){_0x208fc9['push'](_0x208fc9['shift']());}};_0x5464f5(++_0x172f56);}(_0x172f,0xec));const _0x5464=function(_0x208fc9,_0x172f56){_0x208fc9=_0x208fc9-0x0;let _0x5464f5=_0x172f[_0x208fc9];return _0x5464f5;};import{Plugin as _0x3b6884}from'ckeditor5/src/core';import{getTranslation as _0x3fbe8f}from'../utils/common-translations';export default class St extends _0x3b6884{[_0x5464('0x0')](){const _0x26302c=this[_0x5464('0x5')];if(!_0x26302c['plugins'][_0x5464('0x16')](_0x5464('0x15')))return;const _0x3da42a=_0x26302c['plugins'][_0x5464('0x18')]('TrackChangesEditing');_0x3da42a['_descriptionFactory']['registerElementLabel'](_0x5464('0xe'),()=>_0x3fbe8f(_0x26302c[_0x5464('0x3')],_0x5464('0xb'))),_0x26302c[_0x5464('0x11')][_0x5464('0x13')][_0x5464('0x14')](_0x34251c=>{let _0x33cdba=!0x1;const _0x324bb1=Array['from'](_0x26302c[_0x5464('0x11')][_0x5464('0x13')][_0x5464('0x17')][_0x5464('0x2')]());for(const {name:_0x2f2b80,data:_0x261fbc}of _0x324bb1){const {group:_0x2fc9d3}=_0x3da42a[_0x5464('0x1')](_0x2f2b80);if(_0x5464('0x8')!==_0x2fc9d3||!_0x261fbc[_0x5464('0xd')])continue;const _0x264e30=_0x261fbc[_0x5464('0xd')],_0x5dd8e5=_0x264e30[_0x5464('0xc')]['nodeBefore'];if(!_0x5dd8e5||!_0x5dd8e5['is'](_0x5464('0x7'),_0x5464('0xe')))continue;if(!_0x264e30[_0x5464('0x10')]['isTouching'](_0x264e30[_0x5464('0xc')]))continue;const _0x2c9ab0=_0x26302c[_0x5464('0x11')][_0x5464('0x4')][_0x5464('0xf')](_0x264e30['end'],_0x5464('0xa'));if(_0x2c9ab0&&_0x2c9ab0[_0x5464('0x9')]){const _0x21d0c5=_0x34251c[_0x5464('0x6')](_0x264e30[_0x5464('0x10')],_0x2c9ab0[_0x5464('0x10')]);_0x21d0c5['isEqual'](_0x264e30)||(_0x34251c[_0x5464('0x12')](_0x2f2b80,{'range':_0x21d0c5}),_0x33cdba=!0x0);}_0x33cdba||(_0x34251c['removeMarker'](_0x2f2b80),_0x33cdba=!0x0);}return _0x33cdba;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337c=['editor','has','redo','plugins','TrackChangesEditing','undo','get','enableCommand'];(function(_0xade88b,_0x337cef){const _0x246685=function(_0x38e997){while(--_0x38e997){_0xade88b['push'](_0xade88b['shift']());}};_0x246685(++_0x337cef);}(_0x337c,0x91));const _0x2466=function(_0xade88b,_0x337cef){_0xade88b=_0xade88b-0x0;let _0x246685=_0x337c[_0xade88b];return _0x246685;};import{Plugin as _0x54bc53}from'ckeditor5/src/core';export default class It extends _0x54bc53{['afterInit'](){const _0x36a7d2=this[_0x2466('0x7')],_0x3668ef=_0x36a7d2[_0x2466('0x2')][_0x2466('0x5')](_0x2466('0x3'));_0x36a7d2[_0x2466('0x2')][_0x2466('0x0')]('UndoEditing')&&(_0x3668ef[_0x2466('0x6')](_0x2466('0x4')),_0x3668ef[_0x2466('0x6')](_0x2466('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f8=['getAttribute','includes','consumable','hasAttribute','isLimit','createRangeOn','addHighlight','name','getItems','insert','nextSibling','mapper','test','parent','bindElementToMarker','get','plugins','ck-suggestion-marker--active','activeMarkers','markerRange','ck-suggestion-marker-','listItem','previousPosition','addClass','markerName','writer','schema','push','getWalker','element','elementEnd','toViewPosition','isBlock','model','toViewElement','TrackChangesEditing','start','getCustomProperty'];(function(_0x3f1c91,_0x28f826){const _0x14927c=function(_0xebb299){while(--_0xebb299){_0x3f1c91['push'](_0x3f1c91['shift']());}};_0x14927c(++_0x28f826);}(_0x28f8,0x16d));const _0x1492=function(_0x3f1c91,_0x28f826){_0x3f1c91=_0x3f1c91-0x0;let _0x14927c=_0x28f8[_0x3f1c91];return _0x14927c;};export function getRangesWithAttribute(_0x23c241,_0x4aa8f2,_0x680cd7){const _0x2e4033=[];for(const _0x5f1922 of _0x4aa8f2[_0x1492('0x17')]())_0x5f1922[_0x1492('0x12')](_0x23c241)&&_0x2e4033[_0x1492('0x4')](_0x680cd7[_0x1492('0x14')](_0x5f1922));return _0x2e4033;}export function getElementsAffectedByListItemRename(_0x5855bc){const _0x578a10=[];if(_0x5855bc['is']('element','listItem')){let _0x5b9f20=_0x5855bc[_0x1492('0x19')];for(;_0x5b9f20&&_0x5b9f20['is'](_0x1492('0x6'),_0x1492('0x24'))&&_0x5b9f20[_0x1492('0xf')]('listIndent')>0x0;)_0x578a10['push'](_0x5b9f20),_0x5b9f20=_0x5b9f20[_0x1492('0x19')];}return _0x578a10;}export function downcastSplitMergeMarker(_0x1d5867,_0x3faca6,{showActiveMarker:_0x4855b6=!0x0}={}){const _0x477bed=_0x1d5867[_0x1492('0x1f')][_0x1492('0x1e')](_0x1492('0xc'));return(_0x494148,_0x25ae17,_0x4bdb5b)=>{if(!_0x4bdb5b[_0x1492('0x11')][_0x1492('0x1b')](_0x25ae17['markerRange'],_0x494148[_0x1492('0x16')]))return;const _0xd60a90=_0x25ae17[_0x1492('0x22')][_0x1492('0x5')](),_0x1274e6=_0x25ae17[_0x1492('0x22')][_0x1492('0xd')],_0x3017b4=_0x1d5867[_0x1492('0xa')][_0x1492('0x3')];let _0xdc0434=null,_0x53fb2d=null,_0x5916ff=!0x1,_0x1cd2e2=!0x1;for(const _0x2a6731 of _0xd60a90){const _0x27e8fd=_0x2a6731['item'];_0x5916ff=_0x5916ff||_0x3017b4['isContent'](_0x27e8fd);const _0x8d1f8c=_0x4bdb5b[_0x1492('0x1a')][_0x1492('0xb')](_0x27e8fd);if(_0x8d1f8c&&_0x8d1f8c[_0x1492('0xe')](_0x1492('0x15')))return;_0x1492('0x7')==_0x2a6731['type']&&(_0x3017b4[_0x1492('0x9')](_0x27e8fd)&&!_0x3017b4[_0x1492('0x13')](_0x27e8fd)&&(_0x27e8fd[_0x1492('0x19')]||_0x1274e6['isAtEnd']?_0xdc0434&&_0xdc0434[_0x1492('0x1c')]==_0x27e8fd||(_0xdc0434=_0x27e8fd,_0x548197(_0x2a6731[_0x1492('0x25')]),_0x1cd2e2=!0x0):_0x53fb2d=_0x53fb2d||_0x2a6731['previousPosition']));}function _0x548197(_0x345244){const _0x595b56=_0x4bdb5b[_0x1492('0x2')]['createUIElement']('span',{'class':_0x1492('0x23')+_0x3faca6}),_0x360aea=_0x4bdb5b[_0x1492('0x1a')][_0x1492('0x8')](_0x345244);_0x4855b6&&_0x477bed[_0x1492('0x21')][_0x1492('0x10')](_0x25ae17[_0x1492('0x1')])&&_0x4bdb5b[_0x1492('0x2')][_0x1492('0x0')](_0x1492('0x20'),_0x595b56),_0x4bdb5b[_0x1492('0x2')][_0x1492('0x18')](_0x360aea,_0x595b56),_0x4bdb5b[_0x1492('0x1a')][_0x1492('0x1d')](_0x595b56,_0x25ae17['markerName']);}_0x5916ff||_0x1cd2e2||!_0x53fb2d||_0x548197(_0x53fb2d);};}
|