@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x222c=['suggestionLoaded','formatBlock','from','keys','dataDowncast','_getCoordsForCells','createPositionBefore','getColumns','join','tablePasteRow','map','_suggestionFactory','tableCellBorderColor','removeColumns','tablePasteCell','conversion','ck-suggestion-marker','getChangedMarkers','getMarkers','commands','subType','markerAttributes','columnInsertionIndexes','find','getChildren','markMultiRangeInsertion','view','ck-suggestion-marker-insertion','startsWith','rootName','deletionRanges','type','listenTo','set','redo','getContainedElement','nextSibling','registerPostFixer','findAncestor','tableCellSuggestion','getSuggestions','remove','tablePasteChainId','removeRows','getRows','move','plugins','columnInsertionRanges','editingDowncast','rowInsertionIndexes','markers','cell','suggestion','TableClipboard','getSuggestionCallback','tableCellBorderStyle','unwrap','options','insert','fromEntries','getItems','next','isEqual','markMultiRangeBlockFormat','name','row','nodeAfter','start','createRangeIn','isEmpty','tablePasteColumn','previousSibling','ck-suggestion-marker--active','cells','createRangeOn','getRanges','isInContent','low','for','accept','setAttribute','oldRange','getColumnIndexes','columns','batch','register','requires','get','tableCellBackgroundColor','add','_isForcedDefaultExecutionBlock','$graveyard','wrap','_tablePostFixingSubtypes','tableCellBorderWidth','Users','removeMarker','length','containsRange','first','registerDescriptionCallback','markerName','markMultiRangeDeletion','stop','deletion','clipboardOutput','insertionRanges','setAttributes','end','registerCustomCallback','document','newRange','removeMarkers','TableUtils','tableCellHorizontalAlignment','getAllAdjacentSuggestions','attributes','element','includes','TrackChangesEditing','schema','insertColumns','author','markerToHighlight','tableCellVerticalAlignment','getRange','model','paragraph','suggestionUnloaded','suggestion-td','getChild','change','content','previous','column','insertion','root','trackChanges','push','_replaceTableSlotCell','activeMarkers','_splitMarkerName','return','locale','high','getAttributes','forceDefaultExecution','fill','suggestion:formatBlock:tablePasteCell','hasSuggestion','editing','getTableIfOnlyTableInContent','updateMarker','discard','has','createTableWalker','getSuggestion','table','tablePaste','_descriptionFactory','filter','createElement','tableCell','entries','*Replace\x20table\x20cells*','some'];(function(_0x3c0ab4,_0x222c98){const _0x489613=function(_0x1a0aa2){while(--_0x1a0aa2){_0x3c0ab4['push'](_0x3c0ab4['shift']());}};_0x489613(++_0x222c98);}(_0x222c,0x160));const _0x4896=function(_0x3c0ab4,_0x222c98){_0x3c0ab4=_0x3c0ab4-0x0;let _0x489613=_0x222c[_0x3c0ab4];return _0x489613;};import{getTranslation as _0x363950}from'../utils/common-translations';import{Plugin as _0x207070}from'ckeditor5/src/core';import{uid as _0x32e1fe,priorities as _0x555eb0}from'ckeditor5/src/utils';import _0x3e64db from'./table';const le=[_0x4896('0x4a'),_0x4896('0x9e'),_0x4896('0x23'),_0x4896('0x5e'),_0x4896('0x68'),_0x4896('0x44'),'tableCellPadding'],ae=Object[_0x4896('0x27')](le[_0x4896('0x9c')](_0x578ce8=>[_0x578ce8,null]));export default class At extends _0x207070{static get[_0x4896('0x42')](){return[_0x3e64db];}['afterInit'](){const _0x415d49=this['editor'];if(!_0x415d49['plugins'][_0x4896('0x86')]('TableClipboard'))return;const _0xeae1c6=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x63')),_0xf915fa=_0x415d49[_0x4896('0x1a')]['get'](_0x4896('0x5d')),_0x121203=_0x415d49['plugins']['get'](_0x3e64db),_0x132433=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x21'));_0x121203[_0x4896('0x49')]['push'](_0x4896('0x9b'),_0x4896('0x32')),_0x415d49[_0x4896('0x6a')][_0x4896('0x64')][_0x4896('0x41')](_0x4896('0x13'),{'allowIn':_0x4896('0x8e'),'allowContentOf':_0x4896('0x8e'),'isLimit':!0x0}),_0x415d49[_0x4896('0xa1')]['elementToElement']({'model':_0x4896('0x13'),'view':_0x4896('0x6d')});let _0x1f41c6=null;_0x415d49[_0x4896('0x6a')]['on']('insertContent',(_0x438a50,_0x4511d8)=>{const [_0x36ef33,_0x2bb802]=_0x4511d8,_0x2ba134=_0x4511d8[_0x4511d8[_0x4896('0x4d')]-0x1];_0x2ba134&&_0x2ba134[_0x4896('0x7e')]||_0xeae1c6[_0x4896('0x46')]||this['editor'][_0x4896('0xa5')][_0x4896('0x43')](_0x4896('0x75'))['value']&&function(_0x1bd3e8,_0x35facf,_0x1b86b3,_0x2154d2,_0x28a7c4){if(_0x35facf&&!_0x35facf['is']('documentSelection'))return!0x1;const _0x1b9974=_0x28a7c4[_0x4896('0x83')](_0x1bd3e8,_0x1b86b3);if(!_0x1b9974||!fe(_0x1b9974,void 0x0,_0x2154d2))return!0x1;const _0x5a8ec0=_0x2154d2['getSelectionAffectedTableCells'](_0x1b86b3[_0x4896('0x5a')]['selection']);if(!_0x5a8ec0[_0x4896('0x4d')])return!0x1;const _0x31b754=_0x5a8ec0[0x0]['findAncestor'](_0x4896('0x89')),_0x4d9d0f=_0x2154d2['getRowIndexes'](_0x5a8ec0),_0x377e87=_0x2154d2[_0x4896('0x3e')](_0x5a8ec0),_0x1a1bbf={'startRow':_0x4d9d0f[_0x4896('0x4f')],'endRow':_0x4d9d0f['last'],'startColumn':_0x377e87[_0x4896('0x4f')],'endColumn':_0x377e87['last']};return 0x1==_0x5a8ec0[_0x4896('0x4d')]&&(_0x1a1bbf['endRow']+=_0x2154d2[_0x4896('0x18')](_0x1b9974)-0x1,_0x1a1bbf['endColumn']+=_0x2154d2[_0x4896('0x99')](_0x1b9974)-0x1),fe(_0x31b754,_0x1a1bbf,_0x2154d2);}(_0x36ef33,_0x2bb802,_0x415d49['model'],_0xf915fa,_0x132433)&&(_0x438a50['stop'](),_0x1f41c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x415d49[_0x4896('0x6a')][_0x4896('0x6f')](()=>{_0x415d49['model']['insertContent'](_0x4511d8[0x0],_0x4511d8[0x1],_0x4511d8[0x2],{'forceDefaultExecution':!0x0});const _0x8f5a41=_0x32e1fe(),{rowInsertionRanges:_0x3b76c2,columnInsertionRanges:_0x45c30b,insertionRanges:_0x9ac4f8,deletionRanges:_0x2f82c2,cells:_0x279a4a}=_0x1f41c6;_0x3b76c2['length']&&_0xeae1c6['markMultiRangeInsertion'](_0x3b76c2,_0x4896('0x9b'),{'tablePasteChainId':_0x8f5a41}),_0x45c30b['length']&&_0xeae1c6[_0x4896('0x5')](_0x45c30b,_0x4896('0x32'),{'tablePasteChainId':_0x8f5a41}),_0x9ac4f8[_0x4896('0x4d')]&&_0xeae1c6[_0x4896('0x5')](_0x9ac4f8,_0x4896('0x8a'),{'tablePasteChainId':_0x8f5a41,'skipNestingCheck':!0x0}),_0x2f82c2[_0x4896('0x4d')]&&_0xeae1c6[_0x4896('0x52')](_0x2f82c2,_0x4896('0x8a'),{'tablePasteChainId':_0x8f5a41,'skipNestingCheck':!0x0});const _0x35718f=_0xeae1c6[_0x4896('0x2b')](_0x279a4a[_0x4896('0x9c')](({element:_0x10495c})=>_0x10495c),{'formatGroupId':_0x32e1fe()},[],_0x4896('0xa0'),{'tablePasteChainId':_0x8f5a41});if(_0x35718f){const _0x12da49=_0x35718f[_0x4896('0xa4')](),_0x337d49=[];for(const {element:_0x1aba55,attributes:_0xbd8c56}of _0x279a4a){if(!_0xbd8c56)continue;const _0x2b705a=_0x415d49['model'][_0x4896('0x36')](_0x1aba55),_0x447fd0=_0x12da49[_0x4896('0x3')](_0x2f59e5=>_0x2f59e5[_0x4896('0x69')]()[_0x4896('0x2a')](_0x2b705a));_0x447fd0&&_0x337d49[_0x4896('0x76')]([_0x447fd0[_0x4896('0x2c')],_0xbd8c56]);}_0x337d49[_0x4896('0x4d')]&&_0x35718f[_0x4896('0x3c')](_0x4896('0x1'),Object[_0x4896('0x27')](_0x337d49));}_0x1f41c6=null;}));},{'priority':_0x555eb0[_0x4896('0x7c')]+0xa}),_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x21'))['on'](_0x4896('0x77'),(_0x1c242b,_0x49fc3f)=>{const [_0x12ebe4,_0x4e41db,,_0x4dd74a]=_0x49fc3f;if(!_0x1f41c6)return;_0x1c242b[_0x4896('0x53')]();const _0x50a7d6=_0x12ebe4[_0x4896('0x1f')],_0x3c7d9f=_0x4e41db,_0x105e2d=ce(_0x50a7d6),_0x48d954=ce(_0x3c7d9f);_0x1c242b[_0x4896('0x7a')]=_0x50a7d6;let _0x1a2f5b=null,_0x5ad66a=null;if(_0x48d954||_0x105e2d){if(_0x105e2d&&!_0x48d954){_0x4dd74a['remove'](_0x50a7d6[_0x4896('0x6e')](0x0));for(const _0x52fc55 of Array[_0x4896('0x94')](_0x3c7d9f[_0x4896('0x4')]()))_0x4dd74a[_0x4896('0x26')](_0x52fc55,_0x50a7d6,'end');const _0x8a6a7f=_0x1f41c6[_0x4896('0x1d')]['includes'](_0x12ebe4[_0x4896('0x2d')]),_0xe05833=_0x1f41c6['columnInsertionIndexes'][_0x4896('0x62')](_0x12ebe4[_0x4896('0x72')]);_0x8a6a7f||_0xe05833||(_0x1a2f5b=_0x4dd74a[_0x4896('0x30')](_0x50a7d6));}else _0x48d954&&!_0x105e2d&&(_0x5ad66a=_0x4dd74a['createRangeIn'](_0x50a7d6));}else{const _0x53bfa6=_0x4dd74a[_0x4896('0x8d')](_0x4896('0x13')),_0xf9de6b=_0x4dd74a[_0x4896('0x8d')](_0x4896('0x13'));_0x4dd74a[_0x4896('0x48')](_0x4dd74a['createRangeIn'](_0x50a7d6),_0xf9de6b),_0x4dd74a['insert'](_0x53bfa6,_0x50a7d6,0x0);for(const _0x90a3b8 of Array[_0x4896('0x94')](_0x3c7d9f['getChildren']()))_0x4dd74a[_0x4896('0x26')](_0x90a3b8,_0x53bfa6,_0x4896('0x58'));_0x1a2f5b=_0x4dd74a[_0x4896('0x36')](_0x53bfa6),_0x5ad66a=_0x4dd74a['createRangeOn'](_0xf9de6b);}const _0x3e2cd8=Array['from'](_0x3c7d9f[_0x4896('0x7d')]())['filter'](([_0x1cacec])=>le[_0x4896('0x62')](_0x1cacec));_0x1f41c6['cells'][_0x4896('0x76')]({'element':_0x50a7d6,'attributes':_0x3e2cd8['length']?Object[_0x4896('0x27')](_0x3e2cd8):null}),_0x1a2f5b&&_0x1f41c6[_0x4896('0x56')][_0x4896('0x76')](_0x1a2f5b),_0x5ad66a&&_0x1f41c6[_0x4896('0xa')][_0x4896('0x76')](_0x5ad66a);},{'priority':_0x4896('0x7c')}),_0xf915fa['on'](_0x4896('0x65'),(_0x17a92e,_0x5c6786)=>{const [_0x207668,_0x3122df={}]=_0x5c6786;if(!_0x1f41c6)return;const _0x21d64d=_0x3122df['at']||0x0,_0x360548=_0x3122df[_0x4896('0x3f')]||0x1;_0x1f41c6[_0x4896('0x2')]=new Array(_0x360548)['fill'](_0x21d64d)['map']((_0x5ba23c,_0x10c3d7)=>_0x5ba23c+_0x10c3d7);for(const {cell:_0x3ba977}of _0xf915fa[_0x4896('0x87')](_0x207668,{'startColumn':_0x21d64d,'endColumn':_0x21d64d+_0x360548-0x1}))_0x1f41c6[_0x4896('0x1b')][_0x4896('0x76')](_0x415d49[_0x4896('0x6a')]['createRangeOn'](_0x3ba977));},{'priority':_0x4896('0x39')}),_0xf915fa['on']('insertRows',(_0x303460,_0x33c1c7)=>{const [_0x58e8b0,_0x855ac2={}]=_0x33c1c7;if(!_0x1f41c6)return;const _0x9d67b4=_0x855ac2['at']||0x0,_0x4fe087=_0x855ac2['rows']||0x1;_0x1f41c6[_0x4896('0x1d')]=new Array(_0x4fe087)[_0x4896('0x7f')](_0x9d67b4)[_0x4896('0x9c')]((_0x470b24,_0x3d92e4)=>_0x470b24+_0x3d92e4);for(const {cell:_0xb98521}of _0xf915fa[_0x4896('0x87')](_0x58e8b0,{'startRow':_0x9d67b4,'endRow':_0x9d67b4+_0x4fe087-0x1}))_0x1f41c6['rowInsertionRanges'][_0x4896('0x76')](_0x415d49['model'][_0x4896('0x36')](_0xb98521));},{'priority':'low'}),_0xeae1c6[_0x4896('0x8b')][_0x4896('0x50')](_0x10dd4d=>{if(_0x10dd4d['subType']&&_0x10dd4d['subType'][_0x4896('0x8')](_0x4896('0x8a')))return _0x10dd4d[_0x4896('0x71')]?{}:{'type':_0x4896('0x73'),'content':_0x363950(_0x415d49[_0x4896('0x7b')],_0x4896('0x90'))};});const _0x1d7873=()=>!0x1;for(const _0x561c88 of[_0x4896('0x8a'),'tablePasteColumn',_0x4896('0x9b'),_0x4896('0xa0')])_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x73'),_0x561c88,_0x4896('0x9a'),_0x1d7873),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x54'),_0x561c88,_0x4896('0x9a'),_0x1d7873),_0xeae1c6['_suggestionFactory'][_0x4896('0x59')](_0x4896('0x93'),_0x561c88,'join',_0x1d7873);_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x93'),_0x4896('0xa0'),_0x4896('0x85'),_0x1d7873),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x93'),'tablePasteCell','accept',(_0x1dc5f2,_0xc45a26,_0x9be0b3)=>{const _0x3764ec=_0x1dc5f2[_0x4896('0x9c')](_0x545cd4=>_0x545cd4[_0x4896('0xf')]())['filter'](_0x88a42f=>_0x88a42f),_0x5d8fa1=new Map(_0x3764ec[_0x4896('0x9c')](_0x457662=>[_0x457662,null]));if(_0x1f41c6)for(const {element:_0x12eea6,attributes:_0x440f73}of _0x1f41c6[_0x4896('0x35')])_0x440f73&&_0x5d8fa1[_0x4896('0xd')](_0x12eea6,_0x440f73);else{if(_0x9be0b3&&_0x9be0b3[_0x4896('0x1')])for(const [_0x275c85,_0x146d8b]of Object[_0x4896('0x8f')](_0x9be0b3[_0x4896('0x1')])){const _0x37a762=_0x415d49['model'][_0x4896('0x1e')][_0x4896('0x43')](_0x275c85),_0x31ce07=_0x37a762?_0x37a762[_0x4896('0x69')]()[_0x4896('0xf')]():null;_0x31ce07&&_0x5d8fa1[_0x4896('0xd')](_0x31ce07,_0x146d8b);}}_0x415d49['model'][_0x4896('0x6f')](_0x76b991=>{for(const [_0x3db5c4,_0x4333bb]of _0x5d8fa1)_0x76b991[_0x4896('0x57')]({...ae,..._0x4333bb},_0x3db5c4);});});const _0xdfcc64=(_0x460c38,_0x4ad722)=>{_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x460c38,'tablePaste',_0x4ad722,(_0x4455b4,_0x593a04,_0x34310b)=>{_0x415d49['model']['change'](_0x4ca310=>{const _0x1bda19=[];for(const _0x5ba0f4 of _0x4455b4){const _0x20bd31=_0x5ba0f4[_0x4896('0x2f')][_0x4896('0x2e')];_0x20bd31['is'](_0x4896('0x61'),_0x4896('0x13'))&&_0x1bda19['push'](_0x20bd31);}_0xeae1c6[_0x4896('0x9d')][_0x4896('0x22')](_0x460c38,null,_0x4ad722)(_0x4455b4,_0x593a04,_0x34310b);for(const _0x4ed836 of _0x1bda19)_0x4896('0x47')!=_0x4ed836[_0x4896('0x74')][_0x4896('0x9')]&&_0x4ca310[_0x4896('0x24')](_0x4ed836);});});};_0xdfcc64(_0x4896('0x73'),_0x4896('0x3b')),_0xdfcc64(_0x4896('0x73'),_0x4896('0x85')),_0xdfcc64(_0x4896('0x54'),_0x4896('0x3b')),_0xdfcc64(_0x4896('0x54'),_0x4896('0x85')),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x73'),'tablePasteRow',_0x4896('0x85'),_0x350a9a=>{const _0x562e28=_0x350a9a['map'](_0x539f20=>_0x539f20['getContainedElement']()),_0x4c8566=_0x562e28[0x0][_0x4896('0x12')](_0x4896('0x89')),{minRow:_0x391537,maxRow:_0x531648}=_0x121203[_0x4896('0x97')](_0x562e28);_0xf915fa[_0x4896('0x17')](_0x4c8566,{'at':_0x391537,'rows':_0x531648-_0x391537+0x1});}),_0xeae1c6[_0x4896('0x9d')]['registerCustomCallback'](_0x4896('0x73'),_0x4896('0x32'),_0x4896('0x85'),_0xf0139=>{const _0x3ce65d=_0xf0139['map'](_0x513479=>_0x513479[_0x4896('0xf')]()),_0x4d60f1=_0x3ce65d[0x0][_0x4896('0x12')](_0x4896('0x89')),{minColumn:_0x5e2919,maxColumn:_0x464137}=_0x121203['_getCoordsForCells'](_0x3ce65d);_0xf915fa[_0x4896('0x9f')](_0x4d60f1,{'at':_0x5e2919,'columns':_0x464137-_0x5e2919+0x1});});const _0x432628=(_0x30c204,_0x41b7af)=>{if(!_0x41b7af['subType']||!_0x41b7af[_0x4896('0x0')][_0x4896('0x8')](_0x4896('0x8a')))return;const _0x5be90d=_0x41b7af['attributes'][_0x4896('0x16')],_0x5c38ee=_0xeae1c6['getSuggestions']()[_0x4896('0x8c')](_0x4085b3=>_0x4085b3['isInContent']&&_0x4085b3['attributes']&&_0x4085b3[_0x4896('0x60')]['tablePasteChainId']==_0x5be90d);_0x5c38ee['length']&&_0x41b7af['getAllAdjacentSuggestions']()[_0x4896('0x4d')]!=_0x5c38ee[_0x4896('0x4d')]&&_0x5c38ee['reduce']((_0x17954f,_0xde0dbb)=>(_0x17954f[_0x4896('0x29')]=_0xde0dbb,_0xde0dbb[_0x4896('0x71')]=_0x17954f,_0xde0dbb));};function _0xa96171(_0x56fdac,_0x3864f0=!0x0){const {id:_0x181cab}=_0xeae1c6[_0x4896('0x79')](_0x56fdac[_0x4896('0x51')]),_0x3e08cf=[_0x4896('0xa2'),_0x4896('0x7')],_0x71d5f5=_0xeae1c6[_0x4896('0x78')][_0x4896('0x62')](_0x56fdac[_0x4896('0x51')]);return _0x71d5f5&&_0x3e08cf[_0x4896('0x76')](_0x4896('0x34')),{'classes':_0x3e08cf,'attributes':{'data-suggestion':_0x181cab},'priority':_0x71d5f5&&_0x3864f0?0xbc2:0xbb8};}_0xeae1c6['on'](_0x4896('0x92'),_0x432628,{'priority':'high'}),_0xeae1c6['on'](_0x4896('0x6c'),_0x432628,{'priority':_0x4896('0x7c')}),_0x415d49['model'][_0x4896('0x5a')][_0x4896('0x11')](()=>{let _0x3ed7dd=!0x1;const _0x1d0b9f=Array[_0x4896('0x94')](_0x415d49['model'][_0x4896('0x5a')]['differ'][_0x4896('0xa3')]());for(const {name:_0x1b6aaa,data:_0x9d8c0}of _0x1d0b9f){const {group:_0x43695c,type:_0xd131a0,id:_0x123a61}=_0xeae1c6['_splitMarkerName'](_0x1b6aaa);if('suggestion'!=_0x43695c||_0x4896('0x54')!=_0xd131a0||_0x9d8c0[_0x4896('0x3d')])continue;if(!_0xeae1c6[_0x4896('0x81')](_0x123a61))continue;const _0xea27d8=_0xeae1c6[_0x4896('0x88')](_0x123a61)[_0x4896('0x37')](),_0x34f123=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x4b'))['me'];for(const _0x1cf5e8 of _0xeae1c6[_0x4896('0x14')]()){if(!_0x1cf5e8[_0x4896('0x38')]||_0x1cf5e8['author']!=_0x34f123)continue;if('formatBlock'!=_0x1cf5e8['type']||_0x4896('0xa0')!=_0x1cf5e8[_0x4896('0x0')])continue;if(_0x1cf5e8['getRanges']()['every'](_0x143a67=>_0xea27d8[_0x4896('0x91')](_0x1211a9=>_0x1211a9['containsRange'](_0x143a67,!0x0))))for(const _0x3b81c2 of _0x1cf5e8[_0x4896('0x5f')]())_0x3b81c2[_0x4896('0x38')]&&(_0x3b81c2['discard'](),_0x3ed7dd=!0x0);}}return _0x3ed7dd;}),_0x415d49['model'][_0x4896('0x5a')][_0x4896('0x11')](_0x1c0a94=>{const _0x5bf114=_0x415d49['commands']['get'](_0x4896('0xe'));if(!_0x5bf114||!_0x5bf114['_createdBatches'][_0x4896('0x86')](_0x1c0a94[_0x4896('0x40')]))return!0x1;let _0xab294c=!0x1;const _0x4aaa42=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x4b'))['me'],_0x5dfe09=_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['differ']['getChanges'](),_0x48bc8a=Array[_0x4896('0x94')](_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['differ'][_0x4896('0xa3')]())[_0x4896('0x8c')](({name:_0x1efea4,data:_0x43293e})=>{const {group:_0x5b5dab,subType:_0x1040d5,authorId:_0x43489a}=_0xeae1c6[_0x4896('0x79')](_0x1efea4);return _0x4896('0x20')==_0x5b5dab&&_0x4896('0x8a')==_0x1040d5&&_0x43489a==_0x4aaa42['id']&&!_0x43293e['oldRange'];});for(const _0x1d0579 of _0x5dfe09){if(_0x4896('0x26')!=_0x1d0579[_0x4896('0xb')]||_0x4896('0x13')!=_0x1d0579['name']||0x1!=_0x1d0579[_0x4896('0x4d')])continue;const _0x1b48c3=_0x1c0a94['createRange'](_0x1d0579['position'],_0x1d0579['position']['getShiftedBy'](0x1));if(!_0x48bc8a[_0x4896('0x3')](({data:_0x6aed2})=>_0x6aed2['newRange'][_0x4896('0x2a')](_0x1b48c3)))for(const {name:_0x2fc889,data:_0x1ea78d}of _0x48bc8a)if(_0x1b48c3[_0x4896('0x4e')](_0x1ea78d[_0x4896('0x5b')])){_0x1c0a94[_0x4896('0x84')](_0x2fc889,{'range':_0x1b48c3}),_0xab294c=!0x0;break;}}return _0xab294c;}),_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['registerPostFixer'](_0x433ceb=>{let _0x381a4a=!0x1;const _0x4f3ff4=_0x415d49[_0x4896('0x1a')]['get'](_0x4896('0x4b'))['me'],_0x271e23=_0xeae1c6['getSuggestions']()[_0x4896('0x8c')](_0x5a1188=>_0x5a1188[_0x4896('0x38')]&&_0x5a1188[_0x4896('0x66')]==_0x4f3ff4),_0x19c4ae=new Set(),_0x2fd5e5=new Set();for(const _0x2fdcf9 of _0x271e23)if(_0x4896('0x8a')==_0x2fdcf9['subType'])for(const _0x354790 of _0x2fdcf9[_0x4896('0xa4')]()){const _0x549546=_0x354790['getRange']()[_0x4896('0xf')]();if(_0x549546){if(_0x549546['is'](_0x4896('0x61'),_0x4896('0x13'))&&ce(_0x549546)){_0x2fdcf9['removeMarker'](_0x354790['name']),_0x19c4ae[_0x4896('0x45')](_0x549546),_0x381a4a=!0x0;const _0x2a4377=_0x549546[_0x4896('0x10')],_0x2700bd=_0x549546[_0x4896('0x33')],_0x475757=_0x2a4377&&_0x2a4377['is']('element',_0x4896('0x13')),_0x2aebf5=_0x2700bd&&_0x2700bd['is'](_0x4896('0x61'),_0x4896('0x13'));_0x475757&&!_0x19c4ae[_0x4896('0x86')](_0x2a4377)&&_0x2fd5e5['add'](_0x2a4377),_0x2aebf5&&!_0x19c4ae[_0x4896('0x86')](_0x2700bd)&&_0x2fd5e5[_0x4896('0x45')](_0x2700bd);}else _0x549546['is'](_0x4896('0x61'),'paragraph')&&_0x549546[_0x4896('0x31')]&&(_0x2fdcf9[_0x4896('0x4c')](_0x354790['name']),_0x381a4a=!0x0);}}else{if(_0x4896('0xa0')==_0x2fdcf9[_0x4896('0x0')]){if(!_0x2fdcf9['attributes']||!_0x2fdcf9[_0x4896('0x60')][_0x4896('0x16')])continue;const _0x5a6ab1=_0x2fdcf9['attributes'][_0x4896('0x1')];if(_0x5a6ab1&&Object[_0x4896('0x95')](_0x5a6ab1)['length'])continue;const _0x5574d0=_0x2fdcf9[_0x4896('0x60')][_0x4896('0x16')];let _0x499bbd=!0x0,_0xa1d0d4=!0x0;for(const _0x4ad304 of _0x271e23)if(_0x4ad304[_0x4896('0x0')]&&_0x4ad304[_0x4896('0x0')][_0x4896('0x8')](_0x4896('0x8a'))){if(!_0x4ad304['attributes'][_0x4896('0x16')]){_0xa1d0d4=!0x1;break;}if(_0x4ad304['id']!=_0x2fdcf9['id']&&_0x4ad304[_0x4896('0x60')][_0x4896('0x16')]==_0x5574d0){_0x499bbd=!0x1;break;}}_0xa1d0d4&&_0x499bbd&&(_0x2fdcf9[_0x4896('0x5c')](),_0x381a4a=!0x0);}}for(const _0x286729 of _0x19c4ae)_0x433ceb[_0x4896('0x15')](_0x286729);for(const _0x3c9d05 of _0x2fd5e5)_0x433ceb[_0x4896('0x24')](_0x3c9d05);return _0x381a4a;}),_0x415d49[_0x4896('0xa1')][_0x4896('0x3a')](_0x4896('0x1c'))[_0x4896('0x67')]({'model':_0x4896('0x80'),'view':(_0x4b5dc5,_0x196141)=>_0xa96171(_0x4b5dc5),'converterPriority':'high'}),_0x415d49[_0x4896('0xa1')][_0x4896('0x3a')](_0x4896('0x96'))['markerToHighlight']({'model':_0x4896('0x80'),'view':(_0x5bb7c4,_0x434cec)=>_0x434cec[_0x4896('0x25')]['showSuggestionHighlights']?_0xa96171(_0x5bb7c4,!0x1):null,'converterPriority':'high'});const _0x362c5f=_0x415d49[_0x4896('0x82')][_0x4896('0x6')];this[_0x4896('0xc')](_0x362c5f['document'],_0x4896('0x55'),(_0x407a75,_0x398aa5)=>{const _0x986dc8=[];for(const _0x2838c4 of _0x362c5f['createRangeIn'](_0x398aa5[_0x4896('0x70')])[_0x4896('0x28')]())_0x2838c4['is']('element',_0x4896('0x6d'))&&_0x986dc8[_0x4896('0x76')](_0x2838c4);_0x362c5f[_0x4896('0x6f')](_0x532fd8=>{for(const _0x1ac36b of _0x986dc8)_0x532fd8[_0x4896('0x19')](_0x532fd8[_0x4896('0x30')](_0x1ac36b),_0x532fd8[_0x4896('0x98')](_0x1ac36b)),_0x532fd8[_0x4896('0x15')](_0x1ac36b);});});}}function ce(_0x2eef3a){if(_0x2eef3a['isEmpty'])return!0x0;const _0x4c783f=_0x2eef3a[_0x4896('0x6e')](0x0);return _0x4c783f['is'](_0x4896('0x61'),_0x4896('0x6b'))&&_0x4c783f[_0x4896('0x31')];}function fe(_0x15604b,_0x7e2598={},_0x3a75f2){for(const {isAnchor:_0x2d1aa5,cellHeight:_0x539bb7,cellWidth:_0x26462f}of _0x3a75f2['createTableWalker'](_0x15604b,{'includeAllSlots':!0x0,..._0x7e2598}))if(!_0x2d1aa5||0x1!=_0x539bb7||0x1!=_0x26462f)return!0x1;return!0x0;}
|
|
23
|
+
const _0x33a5=['isEmpty','first','push','registerCustomCallback','wrap','change','tablePasteCell','_descriptionFactory','suggestionLoaded','createRangeIn','for','trackChanges','getSuggestions','schema','return','markMultiRangeInsertion','markerAttributes','low','getTableIfOnlyTableInContent','nodeAfter','get','_tablePostFixingSubtypes','remove','tableCellVerticalAlignment','_createdBatches','elementToElement','hasSuggestion','_getCoordsForCells','tableCellBorderColor','createTableWalker','add','tablePasteColumn','createRange','join','columnInsertionRanges','rowInsertionIndexes','Users','markerName','insertRows','tableCellBackgroundColor','tableCellBorderStyle','registerPostFixer','differ','TableClipboard','insertColumns','end','content','columns','tablePasteChainId','length','formatBlock','tableCellSuggestion','unwrap','editor','tablePasteRow','removeColumns','redo','nextSibling','getChanges','element','subType','fromEntries','previous','fill','getChangedMarkers','afterInit','getRowIndexes','getContainedElement','set','rowInsertionRanges','_suggestionFactory','startsWith','createRangeOn','conversion','rows','cells','deletion','insert','tableCell','from','_replaceTableSlotCell','insertContent','suggestion','markers','containsRange','setAttributes','tableCellPadding','findAncestor','paragraph','ck-suggestion-marker-insertion','insertion','getColumnIndexes','plugins','registerDescriptionCallback','getAttributes','suggestion-td','isEqual','batch','getShiftedBy','*Replace\x20table\x20cells*','TableUtils','move','getSuggestionCallback','name','rootName','locale','markerToHighlight','tablePaste','entries','$graveyard','getMarkers','author','suggestion:formatBlock:tablePasteCell','position','endColumn','createPositionBefore','showSuggestionHighlights','includes','getRange','removeMarker','isInContent','filter','has','TrackChangesEditing','removeRows','_splitMarkerName','documentSelection','model','forceDefaultExecution','markMultiRangeBlockFormat','getChildren','cell','editing','columnInsertionIndexes','document','discard','getAllAdjacentSuggestions','createElement','oldRange','commands','getColumns','type','editingDowncast','start','endRow','table','getRows','getSelectionAffectedTableCells','getSuggestion','newRange','map','high','column','attributes','next','getRanges','removeMarkers','row','ck-suggestion-marker--active','reduce','find','getChild','clipboardOutput'];(function(_0x3b2610,_0x33a55b){const _0x4c0c17=function(_0x4bd2f9){while(--_0x4bd2f9){_0x3b2610['push'](_0x3b2610['shift']());}};_0x4c0c17(++_0x33a55b);}(_0x33a5,0x15c));const _0x4c0c=function(_0x3b2610,_0x33a55b){_0x3b2610=_0x3b2610-0x0;let _0x4c0c17=_0x33a5[_0x3b2610];return _0x4c0c17;};import{getTranslation as _0x5e1a6d}from'../utils/common-translations.js';import{Plugin as _0x70ac4b}from'ckeditor5/src/core.js';import{uid as _0x1b5486,priorities as _0x424f3f}from'ckeditor5/src/utils.js';import _0x2f170d from'./table.js';const le=['tableCellBorderWidth',_0x4c0c('0x6'),_0x4c0c('0x12'),'tableCellHorizontalAlignment',_0x4c0c('0x1'),_0x4c0c('0x11'),_0x4c0c('0x40')],ae=Object['fromEntries'](le[_0x4c0c('0x80')](_0x30f35d=>[_0x30f35d,null]));export default class St extends _0x70ac4b{static get['requires'](){return[_0x2f170d];}[_0x4c0c('0x2b')](){const _0x4a28fc=this[_0x4c0c('0x1f')];if(!_0x4a28fc[_0x4c0c('0x46')]['has'](_0x4c0c('0x15')))return;const _0x1472ed=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x65')),_0x4fb501=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x4e')),_0x2c7f85=_0x4a28fc[_0x4c0c('0x46')]['get'](_0x2f170d),_0x3d0422=_0x4a28fc[_0x4c0c('0x46')]['get']('TableClipboard');_0x2c7f85[_0x4c0c('0xa2')][_0x4c0c('0x8f')]('tablePasteRow',_0x4c0c('0x9')),_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x9a')]['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x4c0c('0x38'),'isLimit':!0x0}),_0x4a28fc['conversion'][_0x4c0c('0x3')]({'model':'tableCellSuggestion','view':_0x4c0c('0x49')});let _0x1d699f=null;_0x4a28fc[_0x4c0c('0x69')]['on'](_0x4c0c('0x3b'),(_0x134697,_0x47fc6f)=>{const [_0x16a01e,_0x3b583f]=_0x47fc6f,_0xc86bf6=_0x47fc6f[_0x47fc6f[_0x4c0c('0x1b')]-0x1];_0xc86bf6&&_0xc86bf6[_0x4c0c('0x6a')]||_0x1472ed['_isForcedDefaultExecutionBlock']||this['editor'][_0x4c0c('0x75')][_0x4c0c('0xa1')](_0x4c0c('0x98'))['value']&&function(_0xc2fb78,_0x5191ae,_0x34b02c,_0x5bab82,_0x3e4cc8){if(_0x5191ae&&!_0x5191ae['is'](_0x4c0c('0x68')))return!0x1;const _0x334226=_0x3e4cc8[_0x4c0c('0x9f')](_0xc2fb78,_0x34b02c);if(!_0x334226||!fe(_0x334226,void 0x0,_0x5bab82))return!0x1;const _0x4f23c6=_0x5bab82[_0x4c0c('0x7d')](_0x34b02c[_0x4c0c('0x70')]['selection']);if(!_0x4f23c6['length'])return!0x1;const _0x76b256=_0x4f23c6[0x0][_0x4c0c('0x41')](_0x4c0c('0x7b')),_0x254b8d=_0x5bab82[_0x4c0c('0x2c')](_0x4f23c6),_0x5bdc73=_0x5bab82[_0x4c0c('0x45')](_0x4f23c6),_0x4ea06d={'startRow':_0x254b8d[_0x4c0c('0x8e')],'endRow':_0x254b8d['last'],'startColumn':_0x5bdc73[_0x4c0c('0x8e')],'endColumn':_0x5bdc73['last']};return 0x1==_0x4f23c6[_0x4c0c('0x1b')]&&(_0x4ea06d[_0x4c0c('0x7a')]+=_0x5bab82[_0x4c0c('0x7c')](_0x334226)-0x1,_0x4ea06d[_0x4c0c('0x5c')]+=_0x5bab82[_0x4c0c('0x76')](_0x334226)-0x1),fe(_0x76b256,_0x4ea06d,_0x5bab82);}(_0x16a01e,_0x3b583f,_0x4a28fc['model'],_0x4fb501,_0x3d0422)&&(_0x134697['stop'](),_0x1d699f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a28fc['model'][_0x4c0c('0x92')](()=>{_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x3b')](_0x47fc6f[0x0],_0x47fc6f[0x1],_0x47fc6f[0x2],{'forceDefaultExecution':!0x0});const _0x4640b0=_0x1b5486(),{rowInsertionRanges:_0x40b182,columnInsertionRanges:_0x32d37a,insertionRanges:_0x5cbc81,deletionRanges:_0x4652ce,cells:_0x2d9235}=_0x1d699f;_0x40b182['length']&&_0x1472ed['markMultiRangeInsertion'](_0x40b182,_0x4c0c('0x20'),{'tablePasteChainId':_0x4640b0}),_0x32d37a['length']&&_0x1472ed[_0x4c0c('0x9c')](_0x32d37a,_0x4c0c('0x9'),{'tablePasteChainId':_0x4640b0}),_0x5cbc81[_0x4c0c('0x1b')]&&_0x1472ed[_0x4c0c('0x9c')](_0x5cbc81,_0x4c0c('0x55'),{'tablePasteChainId':_0x4640b0,'skipNestingCheck':!0x0}),_0x4652ce[_0x4c0c('0x1b')]&&_0x1472ed['markMultiRangeDeletion'](_0x4652ce,_0x4c0c('0x55'),{'tablePasteChainId':_0x4640b0,'skipNestingCheck':!0x0});const _0x855f1d=_0x1472ed[_0x4c0c('0x6b')](_0x2d9235[_0x4c0c('0x80')](({element:_0x2b7541})=>_0x2b7541),{'formatGroupId':_0x1b5486()},[],_0x4c0c('0x93'),{'tablePasteChainId':_0x4640b0});if(_0x855f1d){const _0x10bf9a=_0x855f1d[_0x4c0c('0x58')](),_0xf8a4c1=[];for(const {element:_0x7183bc,attributes:_0x45d30c}of _0x2d9235){if(!_0x45d30c)continue;const _0x20a1e0=_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x32')](_0x7183bc),_0x11727d=_0x10bf9a[_0x4c0c('0x8a')](_0xcb0a5c=>_0xcb0a5c[_0x4c0c('0x60')]()[_0x4c0c('0x4a')](_0x20a1e0));_0x11727d&&_0xf8a4c1[_0x4c0c('0x8f')]([_0x11727d['name'],_0x45d30c]);}_0xf8a4c1[_0x4c0c('0x1b')]&&_0x855f1d['setAttribute'](_0x4c0c('0x9d'),Object['fromEntries'](_0xf8a4c1));}_0x1d699f=null;}));},{'priority':_0x424f3f[_0x4c0c('0x81')]+0xa}),_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x15'))['on'](_0x4c0c('0x3a'),(_0x2499d2,_0x40d039)=>{const [_0xc333d7,_0x665ee1,,_0x4f7155]=_0x40d039;if(!_0x1d699f)return;_0x2499d2['stop']();const _0x1121a6=_0xc333d7[_0x4c0c('0x6d')],_0x36fe70=_0x665ee1,_0x5269e4=ce(_0x1121a6),_0x4c537f=ce(_0x36fe70);_0x2499d2[_0x4c0c('0x9b')]=_0x1121a6;let _0x34acb9=null,_0x33296e=null;if(_0x4c537f||_0x5269e4){if(_0x5269e4&&!_0x4c537f){_0x4f7155[_0x4c0c('0x0')](_0x1121a6[_0x4c0c('0x8b')](0x0));for(const _0x506f29 of Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x6c')]()))_0x4f7155[_0x4c0c('0x37')](_0x506f29,_0x1121a6,'end');const _0x4db6f3=_0x1d699f[_0x4c0c('0xd')][_0x4c0c('0x5f')](_0xc333d7[_0x4c0c('0x87')]),_0x421796=_0x1d699f[_0x4c0c('0x6f')][_0x4c0c('0x5f')](_0xc333d7[_0x4c0c('0x82')]);_0x4db6f3||_0x421796||(_0x34acb9=_0x4f7155[_0x4c0c('0x96')](_0x1121a6));}else _0x4c537f&&!_0x5269e4&&(_0x33296e=_0x4f7155[_0x4c0c('0x96')](_0x1121a6));}else{const _0xe8143f=_0x4f7155[_0x4c0c('0x73')]('tableCellSuggestion'),_0x47da3c=_0x4f7155['createElement'](_0x4c0c('0x1d'));_0x4f7155[_0x4c0c('0x91')](_0x4f7155['createRangeIn'](_0x1121a6),_0x47da3c),_0x4f7155['insert'](_0xe8143f,_0x1121a6,0x0);for(const _0x2020d4 of Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x6c')]()))_0x4f7155[_0x4c0c('0x37')](_0x2020d4,_0xe8143f,_0x4c0c('0x17'));_0x34acb9=_0x4f7155[_0x4c0c('0x32')](_0xe8143f),_0x33296e=_0x4f7155['createRangeOn'](_0x47da3c);}const _0x7eca43=Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x48')]())['filter'](([_0x127be6])=>le[_0x4c0c('0x5f')](_0x127be6));_0x1d699f[_0x4c0c('0x35')][_0x4c0c('0x8f')]({'element':_0x1121a6,'attributes':_0x7eca43[_0x4c0c('0x1b')]?Object[_0x4c0c('0x27')](_0x7eca43):null}),_0x34acb9&&_0x1d699f['insertionRanges'][_0x4c0c('0x8f')](_0x34acb9),_0x33296e&&_0x1d699f['deletionRanges'][_0x4c0c('0x8f')](_0x33296e);},{'priority':_0x4c0c('0x81')}),_0x4fb501['on'](_0x4c0c('0x16'),(_0x5de0bf,_0x23f283)=>{const [_0x4c7ae8,_0x214c96={}]=_0x23f283;if(!_0x1d699f)return;const _0x5a6aea=_0x214c96['at']||0x0,_0x5e7dbb=_0x214c96[_0x4c0c('0x19')]||0x1;_0x1d699f[_0x4c0c('0x6f')]=new Array(_0x5e7dbb)[_0x4c0c('0x29')](_0x5a6aea)[_0x4c0c('0x80')]((_0x2242f9,_0x5e71e6)=>_0x2242f9+_0x5e71e6);for(const {cell:_0x1e7576}of _0x4fb501['createTableWalker'](_0x4c7ae8,{'startColumn':_0x5a6aea,'endColumn':_0x5a6aea+_0x5e7dbb-0x1}))_0x1d699f[_0x4c0c('0xc')]['push'](_0x4a28fc['model'][_0x4c0c('0x32')](_0x1e7576));},{'priority':'low'}),_0x4fb501['on'](_0x4c0c('0x10'),(_0x61402,_0x481e2)=>{const [_0x65d7c3,_0x2187d9={}]=_0x481e2;if(!_0x1d699f)return;const _0x596955=_0x2187d9['at']||0x0,_0xd4def3=_0x2187d9[_0x4c0c('0x34')]||0x1;_0x1d699f[_0x4c0c('0xd')]=new Array(_0xd4def3)[_0x4c0c('0x29')](_0x596955)[_0x4c0c('0x80')]((_0x1e094d,_0x3ebb72)=>_0x1e094d+_0x3ebb72);for(const {cell:_0x51a2bc}of _0x4fb501['createTableWalker'](_0x65d7c3,{'startRow':_0x596955,'endRow':_0x596955+_0xd4def3-0x1}))_0x1d699f[_0x4c0c('0x2f')][_0x4c0c('0x8f')](_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x32')](_0x51a2bc));},{'priority':_0x4c0c('0x9e')}),_0x1472ed[_0x4c0c('0x94')][_0x4c0c('0x47')](_0x1f6a8b=>{if(_0x1f6a8b['subType']&&_0x1f6a8b[_0x4c0c('0x26')][_0x4c0c('0x31')](_0x4c0c('0x55')))return _0x1f6a8b[_0x4c0c('0x28')]?{}:{'type':_0x4c0c('0x44'),'content':_0x5e1a6d(_0x4a28fc[_0x4c0c('0x53')],_0x4c0c('0x4d'))};});const _0x4e6a8f=()=>!0x1;for(const _0x2f09f1 of['tablePaste',_0x4c0c('0x9'),_0x4c0c('0x20'),_0x4c0c('0x93')])_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x2f09f1,_0x4c0c('0xb'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x36'),_0x2f09f1,_0x4c0c('0xb'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')]['registerCustomCallback']('formatBlock',_0x2f09f1,'join',_0x4e6a8f);_0x1472ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c0c('0x93'),_0x4c0c('0x71'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')]['registerCustomCallback'](_0x4c0c('0x1c'),'tablePasteCell','accept',(_0x22bc07,_0x36cf24,_0x1e409d)=>{const _0x2529ec=_0x22bc07[_0x4c0c('0x80')](_0x34c9d2=>_0x34c9d2[_0x4c0c('0x2d')]())[_0x4c0c('0x63')](_0x361972=>_0x361972),_0xe80992=new Map(_0x2529ec[_0x4c0c('0x80')](_0xc3144f=>[_0xc3144f,null]));if(_0x1d699f)for(const {element:_0x2050ae,attributes:_0x1f60a7}of _0x1d699f[_0x4c0c('0x35')])_0x1f60a7&&_0xe80992[_0x4c0c('0x2e')](_0x2050ae,_0x1f60a7);else{if(_0x1e409d&&_0x1e409d[_0x4c0c('0x9d')])for(const [_0x42fcc9,_0x221e9b]of Object[_0x4c0c('0x56')](_0x1e409d[_0x4c0c('0x9d')])){const _0x3a6fb7=_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x3d')][_0x4c0c('0xa1')](_0x42fcc9),_0x2eed2f=_0x3a6fb7?_0x3a6fb7[_0x4c0c('0x60')]()[_0x4c0c('0x2d')]():null;_0x2eed2f&&_0xe80992['set'](_0x2eed2f,_0x221e9b);}}_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x92')](_0x2dac92=>{for(const [_0x20d2ea,_0x848438]of _0xe80992)_0x2dac92[_0x4c0c('0x3f')]({...ae,..._0x848438},_0x20d2ea);});});const _0xabb209=(_0x43d995,_0x5db9d5)=>{_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x43d995,_0x4c0c('0x55'),_0x5db9d5,(_0x926d4,_0x546fa4,_0x3deb34)=>{_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x92')](_0x32c92e=>{const _0x26f8cc=[];for(const _0x287038 of _0x926d4){const _0x469e93=_0x287038[_0x4c0c('0x79')][_0x4c0c('0xa0')];_0x469e93['is'](_0x4c0c('0x25'),_0x4c0c('0x1d'))&&_0x26f8cc[_0x4c0c('0x8f')](_0x469e93);}_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x50')](_0x43d995,null,_0x5db9d5)(_0x926d4,_0x546fa4,_0x3deb34);for(const _0x348bbe of _0x26f8cc)_0x4c0c('0x57')!=_0x348bbe['root'][_0x4c0c('0x52')]&&_0x32c92e[_0x4c0c('0x1e')](_0x348bbe);});});};_0xabb209(_0x4c0c('0x44'),'accept'),_0xabb209(_0x4c0c('0x44'),_0x4c0c('0x71')),_0xabb209(_0x4c0c('0x36'),'accept'),_0xabb209(_0x4c0c('0x36'),'discard'),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x4c0c('0x20'),_0x4c0c('0x71'),_0x5c5a34=>{const _0x50d268=_0x5c5a34[_0x4c0c('0x80')](_0x5d77ec=>_0x5d77ec[_0x4c0c('0x2d')]()),_0x517cb3=_0x50d268[0x0]['findAncestor']('table'),{minRow:_0x2cf1a0,maxRow:_0xd56623}=_0x2c7f85[_0x4c0c('0x5')](_0x50d268);_0x4fb501[_0x4c0c('0x66')](_0x517cb3,{'at':_0x2cf1a0,'rows':_0xd56623-_0x2cf1a0+0x1});}),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x4c0c('0x9'),_0x4c0c('0x71'),_0x449bfc=>{const _0x1a49da=_0x449bfc['map'](_0x1c61ae=>_0x1c61ae[_0x4c0c('0x2d')]()),_0x5efdc5=_0x1a49da[0x0][_0x4c0c('0x41')](_0x4c0c('0x7b')),{minColumn:_0xbcd466,maxColumn:_0x4cc64f}=_0x2c7f85['_getCoordsForCells'](_0x1a49da);_0x4fb501[_0x4c0c('0x21')](_0x5efdc5,{'at':_0xbcd466,'columns':_0x4cc64f-_0xbcd466+0x1});});const _0x375a30=(_0x3f7f75,_0x2faa15)=>{if(!_0x2faa15[_0x4c0c('0x26')]||!_0x2faa15[_0x4c0c('0x26')][_0x4c0c('0x31')](_0x4c0c('0x55')))return;const _0x1dc78a=_0x2faa15[_0x4c0c('0x83')]['tablePasteChainId'],_0x4ae317=_0x1472ed[_0x4c0c('0x99')]()['filter'](_0x99d2bb=>_0x99d2bb[_0x4c0c('0x62')]&&_0x99d2bb['attributes']&&_0x99d2bb[_0x4c0c('0x83')][_0x4c0c('0x1a')]==_0x1dc78a);_0x4ae317[_0x4c0c('0x1b')]&&_0x2faa15['getAllAdjacentSuggestions']()['length']!=_0x4ae317[_0x4c0c('0x1b')]&&_0x4ae317[_0x4c0c('0x89')]((_0x5913dc,_0x5b10ba)=>(_0x5913dc[_0x4c0c('0x84')]=_0x5b10ba,_0x5b10ba[_0x4c0c('0x28')]=_0x5913dc,_0x5b10ba));};function _0x100e2a(_0x2aa8af,_0x1e6f7a=!0x0){const {id:_0x2db02d}=_0x1472ed[_0x4c0c('0x67')](_0x2aa8af[_0x4c0c('0xf')]),_0x5230ad=['ck-suggestion-marker',_0x4c0c('0x43')],_0x5ab2ea=_0x1472ed['activeMarkers'][_0x4c0c('0x5f')](_0x2aa8af[_0x4c0c('0xf')]);return _0x5ab2ea&&_0x5230ad[_0x4c0c('0x8f')](_0x4c0c('0x88')),{'classes':_0x5230ad,'attributes':{'data-suggestion':_0x2db02d},'priority':_0x5ab2ea&&_0x1e6f7a?0xbc2:0xbb8};}_0x1472ed['on'](_0x4c0c('0x95'),_0x375a30,{'priority':'high'}),_0x1472ed['on']('suggestionUnloaded',_0x375a30,{'priority':_0x4c0c('0x81')}),_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x13')](()=>{let _0x4280f1=!0x1;const _0x30711e=Array['from'](_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x70')]['differ']['getChangedMarkers']());for(const {name:_0x49ed0b,data:_0x30f5d7}of _0x30711e){const {group:_0x59c2f5,type:_0x5f4d8d,id:_0x2b1017}=_0x1472ed['_splitMarkerName'](_0x49ed0b);if('suggestion'!=_0x59c2f5||'deletion'!=_0x5f4d8d||_0x30f5d7[_0x4c0c('0x74')])continue;if(!_0x1472ed[_0x4c0c('0x4')](_0x2b1017))continue;const _0x44a722=_0x1472ed[_0x4c0c('0x7e')](_0x2b1017)[_0x4c0c('0x85')](),_0x1dd0f0=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'];for(const _0x5e4466 of _0x1472ed[_0x4c0c('0x99')]()){if(!_0x5e4466['isInContent']||_0x5e4466[_0x4c0c('0x59')]!=_0x1dd0f0)continue;if(_0x4c0c('0x1c')!=_0x5e4466[_0x4c0c('0x77')]||_0x4c0c('0x93')!=_0x5e4466[_0x4c0c('0x26')])continue;if(_0x5e4466[_0x4c0c('0x85')]()['every'](_0x2fd723=>_0x44a722['some'](_0xcb00d7=>_0xcb00d7[_0x4c0c('0x3e')](_0x2fd723,!0x0))))for(const _0x42e408 of _0x5e4466[_0x4c0c('0x72')]())_0x42e408[_0x4c0c('0x62')]&&(_0x42e408[_0x4c0c('0x71')](),_0x4280f1=!0x0);}}return _0x4280f1;}),_0x4a28fc['model']['document'][_0x4c0c('0x13')](_0x482abf=>{const _0x3f9aa4=_0x4a28fc[_0x4c0c('0x75')][_0x4c0c('0xa1')](_0x4c0c('0x22'));if(!_0x3f9aa4||!_0x3f9aa4[_0x4c0c('0x2')][_0x4c0c('0x64')](_0x482abf[_0x4c0c('0x4b')]))return!0x1;let _0xc228af=!0x1;const _0x5a5056=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'],_0x5bdbac=_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x14')][_0x4c0c('0x24')](),_0x5c3541=Array[_0x4c0c('0x39')](_0x4a28fc['model'][_0x4c0c('0x70')]['differ'][_0x4c0c('0x2a')]())[_0x4c0c('0x63')](({name:_0xe1de3d,data:_0x3bcfae})=>{const {group:_0x1ee037,subType:_0x2a71ff,authorId:_0x57a174}=_0x1472ed[_0x4c0c('0x67')](_0xe1de3d);return _0x4c0c('0x3c')==_0x1ee037&&_0x4c0c('0x55')==_0x2a71ff&&_0x57a174==_0x5a5056['id']&&!_0x3bcfae[_0x4c0c('0x74')];});for(const _0x4a1524 of _0x5bdbac){if('insert'!=_0x4a1524[_0x4c0c('0x77')]||'tableCellSuggestion'!=_0x4a1524[_0x4c0c('0x51')]||0x1!=_0x4a1524[_0x4c0c('0x1b')])continue;const _0x2e967c=_0x482abf[_0x4c0c('0xa')](_0x4a1524[_0x4c0c('0x5b')],_0x4a1524[_0x4c0c('0x5b')][_0x4c0c('0x4c')](0x1));if(!_0x5c3541[_0x4c0c('0x8a')](({data:_0x551636})=>_0x551636['newRange'][_0x4c0c('0x4a')](_0x2e967c)))for(const {name:_0x369c1b,data:_0x4b190b}of _0x5c3541)if(_0x2e967c[_0x4c0c('0x3e')](_0x4b190b[_0x4c0c('0x7f')])){_0x482abf['updateMarker'](_0x369c1b,{'range':_0x2e967c}),_0xc228af=!0x0;break;}}return _0xc228af;}),_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x13')](_0x5e3516=>{let _0x3d6c98=!0x1;const _0x527121=_0x4a28fc['plugins'][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'],_0x3f6fdd=_0x1472ed[_0x4c0c('0x99')]()[_0x4c0c('0x63')](_0x236318=>_0x236318[_0x4c0c('0x62')]&&_0x236318[_0x4c0c('0x59')]==_0x527121),_0x2bed1f=new Set(),_0x23cab3=new Set();for(const _0x34a0a0 of _0x3f6fdd)if(_0x4c0c('0x55')==_0x34a0a0['subType'])for(const _0x2ca86c of _0x34a0a0[_0x4c0c('0x58')]()){const _0x4d34c9=_0x2ca86c[_0x4c0c('0x60')]()[_0x4c0c('0x2d')]();if(_0x4d34c9){if(_0x4d34c9['is']('element','tableCellSuggestion')&&ce(_0x4d34c9)){_0x34a0a0[_0x4c0c('0x61')](_0x2ca86c[_0x4c0c('0x51')]),_0x2bed1f[_0x4c0c('0x8')](_0x4d34c9),_0x3d6c98=!0x0;const _0x545e05=_0x4d34c9[_0x4c0c('0x23')],_0x25a66f=_0x4d34c9['previousSibling'],_0x2a78d4=_0x545e05&&_0x545e05['is']('element','tableCellSuggestion'),_0x458af4=_0x25a66f&&_0x25a66f['is'](_0x4c0c('0x25'),_0x4c0c('0x1d'));_0x2a78d4&&!_0x2bed1f[_0x4c0c('0x64')](_0x545e05)&&_0x23cab3[_0x4c0c('0x8')](_0x545e05),_0x458af4&&!_0x2bed1f[_0x4c0c('0x64')](_0x25a66f)&&_0x23cab3['add'](_0x25a66f);}else _0x4d34c9['is']('element','paragraph')&&_0x4d34c9[_0x4c0c('0x8d')]&&(_0x34a0a0[_0x4c0c('0x61')](_0x2ca86c[_0x4c0c('0x51')]),_0x3d6c98=!0x0);}}else{if(_0x4c0c('0x93')==_0x34a0a0['subType']){if(!_0x34a0a0[_0x4c0c('0x83')]||!_0x34a0a0[_0x4c0c('0x83')][_0x4c0c('0x1a')])continue;const _0x5017fc=_0x34a0a0['attributes']['markerAttributes'];if(_0x5017fc&&Object['keys'](_0x5017fc)[_0x4c0c('0x1b')])continue;const _0x58bf8c=_0x34a0a0[_0x4c0c('0x83')][_0x4c0c('0x1a')];let _0xe23325=!0x0,_0x15d2a1=!0x0;for(const _0x3fa0cb of _0x3f6fdd)if(_0x3fa0cb[_0x4c0c('0x26')]&&_0x3fa0cb[_0x4c0c('0x26')]['startsWith'](_0x4c0c('0x55'))){if(!_0x3fa0cb[_0x4c0c('0x83')][_0x4c0c('0x1a')]){_0x15d2a1=!0x1;break;}if(_0x3fa0cb['id']!=_0x34a0a0['id']&&_0x3fa0cb[_0x4c0c('0x83')][_0x4c0c('0x1a')]==_0x58bf8c){_0xe23325=!0x1;break;}}_0x15d2a1&&_0xe23325&&(_0x34a0a0[_0x4c0c('0x86')](),_0x3d6c98=!0x0);}}for(const _0x581695 of _0x2bed1f)_0x5e3516[_0x4c0c('0x0')](_0x581695);for(const _0x41c92f of _0x23cab3)_0x5e3516[_0x4c0c('0x1e')](_0x41c92f);return _0x3d6c98;}),_0x4a28fc[_0x4c0c('0x33')][_0x4c0c('0x97')](_0x4c0c('0x78'))[_0x4c0c('0x54')]({'model':_0x4c0c('0x5a'),'view':(_0x1fdc1f,_0x374ad2)=>_0x100e2a(_0x1fdc1f),'converterPriority':_0x4c0c('0x81')}),_0x4a28fc[_0x4c0c('0x33')]['for']('dataDowncast')[_0x4c0c('0x54')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d65a9,_0x9fc6d2)=>_0x9fc6d2['options'][_0x4c0c('0x5e')]?_0x100e2a(_0x4d65a9,!0x1):null,'converterPriority':_0x4c0c('0x81')});const _0x5f3f5c=_0x4a28fc[_0x4c0c('0x6e')]['view'];this['listenTo'](_0x5f3f5c[_0x4c0c('0x70')],_0x4c0c('0x8c'),(_0xf1a00f,_0x3cb3fb)=>{const _0x1adfa7=[];for(const _0xdac48c of _0x5f3f5c[_0x4c0c('0x96')](_0x3cb3fb[_0x4c0c('0x18')])['getItems']())_0xdac48c['is'](_0x4c0c('0x25'),_0x4c0c('0x49'))&&_0x1adfa7[_0x4c0c('0x8f')](_0xdac48c);_0x5f3f5c[_0x4c0c('0x92')](_0x3269b7=>{for(const _0x39cb6c of _0x1adfa7)_0x3269b7[_0x4c0c('0x4f')](_0x3269b7[_0x4c0c('0x96')](_0x39cb6c),_0x3269b7[_0x4c0c('0x5d')](_0x39cb6c)),_0x3269b7['remove'](_0x39cb6c);});});}}function ce(_0x124734){if(_0x124734[_0x4c0c('0x8d')])return!0x0;const _0x54a262=_0x124734[_0x4c0c('0x8b')](0x0);return _0x54a262['is'](_0x4c0c('0x25'),_0x4c0c('0x42'))&&_0x54a262[_0x4c0c('0x8d')];}function fe(_0x3b8b5c,_0x59a9c8={},_0x4b0a3e){for(const {isAnchor:_0x18c4e0,cellHeight:_0x591605,cellWidth:_0x370dce}of _0x4b0a3e[_0x4c0c('0x7')](_0x3b8b5c,{'includeAllSlots':!0x0,..._0x59a9c8}))if(!_0x18c4e0||0x1!=_0x591605||0x1!=_0x370dce)return!0x1;return!0x0;}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tablecolumnresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
12
12
|
/**
|
|
13
13
|
* Provides track changes plugin integration for table column resize feature.
|
|
14
14
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf4a5=['handleSuggestionDescription','change','document','editor','author','formatInline','get','getAttribute','table','TableColumnResizeEditing','enableCommand','markBlockFormat','has','data','plugins','getSelectedElement','Users','_descriptionFactory','registerDescriptionCallback','_suggestionFactory','TrackChangesEditing','afterInit','commandParams','columnWidths','registerCustomCallback','getSuggestions','resizeTableWidth','getSuggestionCallback','type','subType','discard','resizeTable','formatGroupId','format','formatBlock','*Format:*\x20resize\x20table','tableWidth','accept','handleResizeTableWidthCommand','getTableColumnsWidths','bind'];(function(_0x4868c2,_0xf4a5d3){const _0x203a82=function(_0x325b73){while(--_0x325b73){_0x4868c2['push'](_0x4868c2['shift']());}};_0x203a82(++_0xf4a5d3);}(_0xf4a5,0x76));const _0x203a=function(_0x4868c2,_0xf4a5d3){_0x4868c2=_0x4868c2-0x0;let _0x203a82=_0xf4a5[_0x4868c2];return _0x203a82;};import{Plugin as _0x1144ba}from'ckeditor5/src/core.js';import{getTranslation as _0x306828}from'../utils/common-translations.js';export default class At extends _0x1144ba{[_0x203a('0x1a')](){if(!this[_0x203a('0x8')][_0x203a('0x13')][_0x203a('0x11')](_0x203a('0xe')))return;const _0x320ec8=this[_0x203a('0x8')]['plugins'][_0x203a('0xb')](_0x203a('0x19'));_0x320ec8[_0x203a('0xf')](_0x203a('0x1f'),this['handleResizeTableWidthCommand'][_0x203a('0x4')](this)),_0x320ec8['_suggestionFactory'][_0x203a('0x1d')](_0x203a('0x27'),_0x203a('0x24'),'accept',_0x320ec8[_0x203a('0x18')][_0x203a('0x20')](_0x203a('0x27'),null,_0x203a('0x23'))),_0x320ec8[_0x203a('0x18')][_0x203a('0x1d')](_0x203a('0x27'),_0x203a('0x24'),_0x203a('0x23'),_0x320ec8[_0x203a('0x18')][_0x203a('0x20')](_0x203a('0x27'),null,_0x203a('0x1'))),_0x320ec8[_0x203a('0x16')][_0x203a('0x17')](this[_0x203a('0x5')][_0x203a('0x4')](this));}[_0x203a('0x2')](_0xd2e144,_0x188906){const _0x465aa7=this[_0x203a('0x8')]['plugins'][_0x203a('0xb')](_0x203a('0x19')),_0x16cd0f=this['editor'][_0x203a('0x13')][_0x203a('0xb')]('TableColumnResizeEditing'),_0x27495b=_0x188906[_0x203a('0xd')]||this[_0x203a('0x8')]['model'][_0x203a('0x7')]['selection'][_0x203a('0x14')]();this['editor']['model'][_0x203a('0x6')](()=>{const _0x213395=_0x16cd0f['getColumnGroupElement'](_0x27495b);let _0x5a8492=_0x213395?_0x16cd0f[_0x203a('0x3')](_0x213395):null,_0x421275=_0x27495b[_0x203a('0xc')](_0x203a('0x0'))||null;const _0x3cd289=_0x188906[_0x203a('0x0')]||_0x421275,_0x5023fc=_0x188906[_0x203a('0x1c')]||_0x5a8492,_0x55e38b=this[_0x203a('0x8')][_0x203a('0x13')]['get'](_0x203a('0x15'))['me'];for(const _0x5568c9 of _0x465aa7[_0x203a('0x1e')]()){const _0x4f271d=_0x5568c9['getContainedElement']();if(_0x203a('0x24')===_0x5568c9[_0x203a('0x22')]&&_0x4f271d===_0x27495b){_0x5568c9[_0x203a('0x9')]!==_0x55e38b&&_0x5568c9[_0x203a('0x23')]();const _0x2a9b6a=_0x5568c9[_0x203a('0x12')][_0x203a('0x1b')];_0x421275=_0x2a9b6a[0x0]['tableWidth'],_0x5a8492=_0x2a9b6a[0x0][_0x203a('0x1c')];break;}}_0xd2e144({'table':_0x27495b,'tableWidth':_0x3cd289,'columnWidths':_0x5023fc}),_0x465aa7[_0x203a('0x10')](_0x27495b,{'commandName':_0x203a('0x1f'),'commandParams':[{'tableWidth':_0x421275,'columnWidths':_0x5a8492}],'formatGroupId':_0x203a('0x24')},[],_0x203a('0x24'));});}[_0x203a('0x5')](_0xa77698){if(_0x203a('0x27')!=_0xa77698[_0x203a('0x21')]&&_0x203a('0xa')!=_0xa77698[_0x203a('0x21')])return;const {data:_0x33ec11}=_0xa77698;if(_0x33ec11&&_0x203a('0x24')===_0x33ec11[_0x203a('0x25')]){const _0x3214d3=_0x203a('0x28');return{'type':_0x203a('0x26'),'content':_0x306828(this[_0x203a('0x8')]['locale'],_0x3214d3)};}}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tableheadings
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TrackChangesTable from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
|
|
12
12
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3372=['createTableWalker','end','_splitMarkerName','accept','activeMarkers','commandName','mapper','commandParams','FORMAT_HEADER_COLUMN','FORMAT_HEADER_ROW','plugins','_suggestionFactory','get','addMarker:suggestion','consumable','name','downcastDispatcher','forceValue','requires','editing','markerName','TableEditing','unbindElementFromMarkerName','editor','getSuggestion','has','ck-suggestion-marker--active','ck-suggestion-marker-','format','_descriptionFactory','removeMarker:suggestion','_registerLegacyDescription','getCellLocation','showSuggestionHighlights','formatBlock','nodeAfter','_enableDefaultAttributesIntegration','cell','markerRange','includes','setTableColumnHeader','removeClass','headingColumns','removeAttribute','writer','TableUtils','setTableRowHeader','registerAttributeLabel','TrackChangesEditing','locale','bindElementToMarker','_handleLegacySuggestions','options','highest','parent','_acceptFormatSuggestionCallbackFactory','type','addClass','data','consume','setAttribute','start','registerCustomCallback','markerNameToElements','nodeBefore'];(function(_0x1b644e,_0x337281){const _0x5d59c0=function(_0xa0c08){while(--_0xa0c08){_0x1b644e['push'](_0x1b644e['shift']());}};_0x5d59c0(++_0x337281);}(_0x3372,0xd7));const _0x5d59=function(_0x1b644e,_0x337281){_0x1b644e=_0x1b644e-0x0;let _0x5d59c0=_0x3372[_0x1b644e];return _0x5d59c0;};import{Plugin as _0xdfef2d}from'ckeditor5/src/core.js';import _0x686438 from'./table.js';import{getTranslation as _0x401cfe}from'../utils/common-translations.js';export default class jt extends _0xdfef2d{static get[_0x5d59('0x3f')](){return[_0x686438];}['afterInit'](){const _0x5110e5=this['editor'];if(!_0x5110e5[_0x5d59('0x37')][_0x5d59('0x5')](_0x5d59('0x1')))return;const _0x3ece85=_0x5110e5[_0x5d59('0x1d')],_0x16c32b=_0x5110e5[_0x5d59('0x37')]['get'](_0x5d59('0x1c'));_0x16c32b[_0x5d59('0x10')]('setTableRowHeader',[],['headingRows']),_0x16c32b[_0x5d59('0x10')](_0x5d59('0x14'),[],[_0x5d59('0x16')]),_0x16c32b[_0x5d59('0x9')][_0x5d59('0x1b')]('headingRows',_0x401cfe(_0x3ece85,_0x5d59('0x36'))),_0x16c32b[_0x5d59('0x9')][_0x5d59('0x1b')]('headingColumns',_0x401cfe(_0x3ece85,_0x5d59('0x35'))),this[_0x5d59('0x1f')]();}[_0x5d59('0x1f')](){const _0x5a18df=this[_0x5d59('0x3')][_0x5d59('0x37')][_0x5d59('0x39')](_0x5d59('0x1c')),_0x5df67d=this['editor']['plugins'][_0x5d59('0x39')](_0x5d59('0x19')),_0x5a487a=this['editor'][_0x5d59('0x37')][_0x5d59('0x39')](_0x686438)[_0x5d59('0x23')]();function _0x18f3af({showActiveMarker:_0x4dbc40=!0x0,setDataAttribute:_0x52273c=!0x0}={}){return(_0x5d56a6,_0x1154c8,_0x1a266e)=>{const {type:_0x3c0129,id:_0x4cf88d}=_0x5a18df['_splitMarkerName'](_0x1154c8[_0x5d59('0x0')]),_0x5a8851=_0x5a18df['getSuggestion'](_0x4cf88d),_0x50cb93=_0x5a8851['data'];if(_0x5d59('0xe')!=_0x5a8851['type']||!_0x50cb93||_0x5d59('0x14')!=_0x50cb93[_0x5d59('0x32')])return;if(_0x1154c8['item'])return void _0x5d56a6['stop']();if(!_0x1a266e[_0x5d59('0x3b')][_0x5d59('0x27')](_0x1154c8[_0x5d59('0x12')],_0x5d56a6[_0x5d59('0x3c')]))return;const _0x1cece6=_0x1154c8[_0x5d59('0x12')][_0x5d59('0x29')][_0x5d59('0xf')],_0x3f36db=_0x1154c8[_0x5d59('0x12')][_0x5d59('0x2e')][_0x5d59('0x2c')],_0x3ada57=_0x1cece6['parent'][_0x5d59('0x22')],{column:_0x3e3418}=_0x5df67d[_0x5d59('0xc')](_0x1cece6),{column:_0x574834}=_0x5df67d[_0x5d59('0xc')](_0x3f36db);for(let _0xe11943=_0x3e3418;_0xe11943<=_0x574834;_0xe11943++){const _0x5aef32=_0x5df67d[_0x5d59('0x2d')](_0x3ada57,{'column':_0xe11943,'includeAllSlots':!0x1});for(const _0x4f557b of _0x5aef32){const _0x23d7dd=_0x4f557b[_0x5d59('0x11')],_0x1a4356=_0x1a266e[_0x5d59('0x33')]['toViewElement'](_0x23d7dd);_0x1a266e['writer'][_0x5d59('0x25')](_0x5d59('0x7')+_0x3c0129,_0x1a4356),_0x52273c&&_0x1a266e['writer'][_0x5d59('0x28')]('data-suggestion',_0x4cf88d,_0x1a4356),_0x1a266e['mapper'][_0x5d59('0x1e')](_0x1a4356,_0x1154c8[_0x5d59('0x0')]),_0x4dbc40&&(_0x5a18df[_0x5d59('0x31')][_0x5d59('0x13')](_0x1154c8[_0x5d59('0x0')])?_0x1a266e[_0x5d59('0x18')][_0x5d59('0x25')]('ck-suggestion-marker--active',_0x1a4356):_0x1a266e['writer']['removeClass'](_0x5d59('0x6'),_0x1a4356));}}};}_0x5a18df['_suggestionFactory'][_0x5d59('0x2a')](_0x5d59('0xe'),_0x5d59('0x1a'),_0x5d59('0x30'),_0x5a487a),_0x5a18df[_0x5d59('0x38')][_0x5d59('0x2a')](_0x5d59('0xe'),_0x5d59('0x14'),_0x5d59('0x30'),_0x5a487a),this[_0x5d59('0x3')][_0x5d59('0x40')][_0x5d59('0x3d')]['on'](_0x5d59('0x3a'),_0x18f3af(),{'priority':_0x5d59('0x21')}),this['editor'][_0x5d59('0x26')][_0x5d59('0x3d')]['on'](_0x5d59('0x3a'),(_0x500f2c,_0x8fa012,_0x3d7d04)=>{_0x3d7d04[_0x5d59('0x20')][_0x5d59('0xd')]&&_0x18f3af({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x500f2c,_0x8fa012,_0x3d7d04);},{'priority':_0x5d59('0x21')}),this[_0x5d59('0x3')]['editing'][_0x5d59('0x3d')]['on'](_0x5d59('0xa'),(_0xb3c6a5,_0x21b91d,_0x5d39d0)=>{const {type:_0x274a43,id:_0x20903c}=_0x5a18df[_0x5d59('0x2f')](_0x21b91d[_0x5d59('0x0')]),_0x3925f9=_0x5a18df[_0x5d59('0x4')](_0x20903c),_0x240cf7=_0x3925f9[_0x5d59('0x26')];if(_0x5d59('0xe')!=_0x3925f9[_0x5d59('0x24')]||!_0x240cf7||_0x5d59('0x14')!=_0x240cf7[_0x5d59('0x32')])return;const _0x5a011d=_0x5d39d0['mapper'][_0x5d59('0x2b')](_0x21b91d[_0x5d59('0x0')]);if(_0x5a011d)for(const _0x1b1a20 of _0x5a011d)_0x5d39d0[_0x5d59('0x18')][_0x5d59('0x15')](_0x5d59('0x7')+_0x274a43,_0x1b1a20),_0x5d39d0[_0x5d59('0x18')][_0x5d59('0x15')]('ck-suggestion-marker--active',_0x1b1a20),_0x5d39d0[_0x5d59('0x18')][_0x5d59('0x17')]('data-suggestion',_0x1b1a20),_0x5d39d0[_0x5d59('0x33')][_0x5d59('0x2')](_0x1b1a20,_0x21b91d[_0x5d59('0x0')]);},{'priority':'highest'}),this[_0x5d59('0xb')]();}[_0x5d59('0xb')](){const _0x21d82d=this['editor'],_0x59666f=_0x21d82d[_0x5d59('0x1d')];function _0xc17440(_0x84b739){return{'type':_0x5d59('0x8'),'content':_0x401cfe(_0x59666f,'*Format:*\x20%0',_0x84b739)};}_0x21d82d['plugins']['get'](_0x5d59('0x1c'))['_descriptionFactory']['registerDescriptionCallback'](_0x223702=>{if('formatBlock'!=_0x223702[_0x5d59('0x24')])return;const {data:_0x599fd8}=_0x223702;if(_0x599fd8){if(_0x5d59('0x1a')==_0x599fd8[_0x5d59('0x32')]){const _0x2b9be1=_0x599fd8[_0x5d59('0x34')][0x0]['forceValue'];return _0xc17440(_0x401cfe(_0x59666f,_0x2b9be1?_0x5d59('0x36'):'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x599fd8['commandName']){const _0x37bca1=_0x599fd8[_0x5d59('0x34')][0x0][_0x5d59('0x3e')];return _0xc17440(_0x401cfe(_0x59666f,_0x37bca1?_0x5d59('0x35'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tablemergesplit
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import TrackChangesTable from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
|
|
12
12
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x235d=['get','detach','getAncestors','setSelection','add','mergeTableCellDown','map','markBlockFormat','mergeTableCellRight','length','formatBlock','execute','selection','element','registerCustomCallback','containsRange','$graveyard','plugins','*Split\x20cell:*\x20horizontally','model','insertion','createTableWalker','mergeTableCellLeft','direction','commandName','splitTableCellVertically','horizontally','value','markMultiRangeBlockFormat','size','commands','table','formatInline','find','_areSelectedCellsMergable','_isForcedDefaultExecutionBlock','findAncestor','splitTableCellHorizontally','createRangeOn','format','TrackChangesEditing','low','return','enableCommand','stop','afterInit','getSuggestions','forceDefaultExecution','has','rootName','_areMergableCells','*Split\x20cell:*\x20vertically','refresh','getSelectionAffectedTableCells','push','getRanges','author','mergeTableCells','getFirstPosition','_suggestionFactory','locale','highest','type','document','mergeTableCellUp','editor','deletion','_descriptionFactory','subType','set:isEnabled','change','registerDescriptionCallback','TableEditing','accept','TableUtils','from','fromRange'];(function(_0x5e1bbe,_0x235dd0){const _0x35e42b=function(_0x7c93bf){while(--_0x7c93bf){_0x5e1bbe['push'](_0x5e1bbe['shift']());}};_0x35e42b(++_0x235dd0);}(_0x235d,0x1ef));const _0x35e4=function(_0x5e1bbe,_0x235dd0){_0x5e1bbe=_0x5e1bbe-0x0;let _0x35e42b=_0x235d[_0x5e1bbe];return _0x35e42b;};import{Plugin as _0x329bd0}from'ckeditor5/src/core.js';import _0x448108 from'./table.js';import{LiveRange as _0x3ecb13}from'ckeditor5/src/engine.js';import{getTranslation as _0x3a1a86}from'../utils/common-translations.js';export default class yt extends _0x329bd0{static get['requires'](){return[_0x448108];}[_0x35e4('0xc')](){const _0x49826b=this[_0x35e4('0x20')],_0x310171=_0x49826b[_0x35e4('0x3f')][_0x35e4('0x1e')][_0x35e4('0x38')],_0x584256=_0x49826b[_0x35e4('0x1b')];if(!_0x49826b[_0x35e4('0x3d')][_0x35e4('0xf')](_0x35e4('0x27')))return;const _0x566f96=_0x49826b[_0x35e4('0x3d')][_0x35e4('0x2c')](_0x35e4('0x7')),_0x497e32=_0x49826b[_0x35e4('0x3d')][_0x35e4('0x2c')](_0x35e4('0x29')),_0xe4f7f5=_0x49826b[_0x35e4('0x3d')][_0x35e4('0x2c')](_0x448108);_0xe4f7f5['_tablePostFixingSubtypes'][_0x35e4('0x15')]('mergeTableCells'),_0x566f96[_0x35e4('0xa')](_0x35e4('0x18'),()=>{const _0x2142a3=_0x497e32[_0x35e4('0x14')](_0x49826b[_0x35e4('0x3f')][_0x35e4('0x1e')][_0x35e4('0x38')]);_0x49826b[_0x35e4('0x3f')][_0x35e4('0x25')](()=>{_0x566f96[_0x35e4('0x48')](_0x2142a3,{'commandName':_0x35e4('0x18'),'commandParams':[]},[],_0x35e4('0x18'));});}),_0x49826b[_0x35e4('0x4a')][_0x35e4('0x2c')](_0x35e4('0x18'))['on'](_0x35e4('0x37'),(_0x52bc2c,_0x20f331)=>{_0x49826b[_0x35e4('0x4a')][_0x35e4('0x2c')]('trackChanges')[_0x35e4('0x47')]&&(_0x20f331[_0x35e4('0x35')]>0x0&&_0x20f331[_0x20f331[_0x35e4('0x35')]-0x1]&&_0x20f331[_0x20f331[_0x35e4('0x35')]-0x1][_0x35e4('0xe')]||_0x566f96[_0x35e4('0x2')]||this[_0x35e4('0x1')]()||_0x52bc2c[_0x35e4('0xb')]());},{'priority':_0x35e4('0x1c')});for(const _0xf96c8d of[_0x35e4('0x1f'),'mergeTableCellRight','mergeTableCellDown',_0x35e4('0x42')]){const _0x52cab5=_0x49826b[_0x35e4('0x4a')]['get'](_0xf96c8d);_0x566f96['enableCommand'](_0xf96c8d,()=>{const _0x13b53d=_0x49826b['model'][_0x35e4('0x1e')]['selection'][_0x35e4('0x19')]()[_0x35e4('0x2e')]()[_0x35e4('0x0')](_0x2d0e71=>_0x2d0e71['is']('element','tableCell')),_0xafa281=_0x52cab5[_0x35e4('0x47')];_0x49826b['model'][_0x35e4('0x25')](()=>{_0x566f96[_0x35e4('0x48')]([_0x13b53d,_0xafa281],{'commandName':_0x35e4('0x18'),'commandParams':[]},[],_0x35e4('0x18'));});});}for(const _0x2f69c1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x90f50a=_0x49826b[_0x35e4('0x4a')]['get'](_0x2f69c1);_0x566f96[_0x35e4('0xa')](_0x2f69c1,()=>{const _0x254cac=_0x497e32[_0x35e4('0x14')](_0x49826b['model'][_0x35e4('0x1e')][_0x35e4('0x38')])[0x0],_0x34a5c7=_0x254cac[_0x35e4('0x3')](_0x35e4('0x4b')),{column:_0x122f45,row:_0x198cdb}=_0x497e32['getCellLocation'](_0x254cac);let _0xdb8454=[];if(_0x35e4('0x46')==_0x90f50a[_0x35e4('0x43')]){const _0x276508=_0x497e32[_0x35e4('0x41')](_0x34a5c7,{'startRow':_0x198cdb,'endRow':_0x198cdb,'includeAllSlots':!0x0});_0xdb8454=Array[_0x35e4('0x2a')](_0x276508)[_0x35e4('0x32')](_0x4b05c9=>_0x4b05c9['cell']);}else{const _0x127d92=_0x497e32[_0x35e4('0x41')](_0x34a5c7,{'column':_0x122f45,'includeAllSlots':!0x0});_0xdb8454=Array[_0x35e4('0x2a')](_0x127d92)[_0x35e4('0x32')](_0x926930=>_0x926930['cell']);}_0x49826b['model'][_0x35e4('0x25')](_0x5202a5=>{_0x566f96[_0x35e4('0x33')](_0x5202a5[_0x35e4('0x5')](_0x254cac),{'commandName':_0x2f69c1,'commandParams':[]},_0xdb8454,_0x2f69c1);});});}_0x566f96[_0x35e4('0x22')][_0x35e4('0x26')](_0x33ff6b=>{if(_0x35e4('0x36')!=_0x33ff6b[_0x35e4('0x1d')]&&_0x35e4('0x4c')!=_0x33ff6b['type'])return;const {data:_0x3b0633}=_0x33ff6b;return _0x3b0633&&_0x35e4('0x18')==_0x3b0633[_0x35e4('0x44')]?{'type':_0x35e4('0x6'),'content':_0x3a1a86(_0x584256,'*Merge\x20cells*')}:void 0x0;}),_0x566f96[_0x35e4('0x22')][_0x35e4('0x26')](_0xcdbfeb=>{if(_0x35e4('0x36')!=_0xcdbfeb[_0x35e4('0x1d')]&&_0x35e4('0x4c')!=_0xcdbfeb[_0x35e4('0x1d')])return;const {data:_0x17cf9d}=_0xcdbfeb;return _0x17cf9d?_0x35e4('0x45')==_0x17cf9d[_0x35e4('0x44')]?{'type':_0x35e4('0x6'),'content':_0x3a1a86(_0x584256,_0x35e4('0x12'))}:_0x35e4('0x4')==_0x17cf9d[_0x35e4('0x44')]?{'type':_0x35e4('0x6'),'content':_0x3a1a86(_0x584256,_0x35e4('0x3e'))}:void 0x0:void 0x0;});const _0x160b1d=_0xe4f7f5['_acceptFormatSuggestionCallbackFactory']();for(const _0x4c5fdd of[_0x35e4('0x1f'),'mergeTableCellRight',_0x35e4('0x31'),_0x35e4('0x42')])_0x566f96['_suggestionFactory'][_0x35e4('0x3a')](_0x35e4('0x36'),_0x4c5fdd,_0x35e4('0x28'),_0x160b1d);for(const _0x5361d6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x566f96[_0x35e4('0x1a')][_0x35e4('0x3a')](_0x35e4('0x36'),_0x5361d6,_0x35e4('0x28'),_0x160b1d);_0x566f96['_suggestionFactory'][_0x35e4('0x3a')](_0x35e4('0x36'),_0x35e4('0x18'),'accept',_0x4e91dc=>{_0x49826b[_0x35e4('0x3f')][_0x35e4('0x25')](_0x549bd5=>{const _0x109866=Array[_0x35e4('0x2a')](_0x310171[_0x35e4('0x16')]())['map'](_0x573001=>_0x3ecb13[_0x35e4('0x2b')](_0x573001));_0x549bd5[_0x35e4('0x2f')](_0x4e91dc),_0x49826b['commands']['get']('mergeTableCells')[_0x35e4('0x13')](),_0x49826b[_0x35e4('0x37')](_0x35e4('0x18'),{'forceDefaultExecution':!0x0});const _0x50276f=_0x109866['filter'](_0x1b7224=>_0x35e4('0x3c')!=_0x1b7224['root'][_0x35e4('0x10')]);_0x50276f[_0x35e4('0x35')]>0x0&&_0x549bd5[_0x35e4('0x2f')](_0x50276f);for(const _0x46c14a of _0x109866)_0x46c14a[_0x35e4('0x2d')]();});});for(const _0x5b6a94 of['mergeTableCellUp',_0x35e4('0x31'),_0x35e4('0x42'),_0x35e4('0x34')]){const _0x498dae=_0x49826b[_0x35e4('0x4a')][_0x35e4('0x2c')](_0x5b6a94);_0x498dae['on'](_0x35e4('0x24'),(_0x418f82,_0x443a5a,_0x2acf37)=>{if(_0x2acf37){const _0x389836=_0x49826b['model'][_0x35e4('0x1e')][_0x35e4('0x38')][_0x35e4('0x19')]()[_0x35e4('0x2e')]()[_0x35e4('0x0')](_0x2c2b06=>_0x2c2b06['is'](_0x35e4('0x39'),'tableCell'));this['_areMergableCells'](_0x498dae[_0x35e4('0x47')],_0x389836)||(_0x418f82[_0x35e4('0x9')]=!0x1,_0x418f82[_0x35e4('0xb')]());}},{'priority':_0x35e4('0x8')});}}[_0x35e4('0x1')](){const _0x2c7b12=this[_0x35e4('0x20')]['commands'][_0x35e4('0x2c')](_0x35e4('0x18')),_0x41df52=this[_0x35e4('0x20')][_0x35e4('0x3d')]['get']('TableUtils');if(!_0x2c7b12['isEnabled'])return!0x1;const _0x30b254=_0x41df52[_0x35e4('0x14')](this[_0x35e4('0x20')]['model'][_0x35e4('0x1e')][_0x35e4('0x38')]);for(const _0x55a438 of _0x30b254)for(const _0x2ad6c6 of _0x30b254)if(_0x55a438!=_0x2ad6c6&&!this[_0x35e4('0x11')](_0x55a438,_0x2ad6c6))return!0x1;return!0x0;}[_0x35e4('0x11')](_0x19a311,_0x54b15e){const _0x1f027c=this['editor'][_0x35e4('0x3d')][_0x35e4('0x2c')]('TrackChangesEditing'),_0x30b8be=this[_0x35e4('0x20')]['model'][_0x35e4('0x5')](_0x19a311),_0x568d94=this['editor'][_0x35e4('0x3f')][_0x35e4('0x5')](_0x54b15e),_0xb20995=new Set(),_0x23055e=new Set();for(const _0x2c6d27 of _0x1f027c[_0x35e4('0xd')]())if((_0x35e4('0x40')==_0x2c6d27[_0x35e4('0x1d')]||_0x35e4('0x21')==_0x2c6d27[_0x35e4('0x1d')]||_0x35e4('0x18')==_0x2c6d27[_0x35e4('0x23')])&&_0x2c6d27['isInContent'])for(const _0x16907e of _0x2c6d27[_0x35e4('0x16')]())_0x16907e[_0x35e4('0x3b')](_0x30b8be,!0x0)&&_0xb20995['add'](_0x2c6d27[_0x35e4('0x1d')]+':'+_0x2c6d27[_0x35e4('0x17')]['id']),_0x16907e[_0x35e4('0x3b')](_0x568d94,!0x0)&&_0x23055e[_0x35e4('0x30')](_0x2c6d27['type']+':'+_0x2c6d27['author']['id']);if(_0xb20995[_0x35e4('0x49')]!=_0x23055e['size'])return!0x1;for(const _0x2b7031 of _0xb20995)if(!_0x23055e[_0x35e4('0xf')](_0x2b7031))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2483=['plugins','_descriptionFactory','registerElementLabel','insertTableOfContents','editor','ELEMENT_TABLE_OF_CONTENTS','enableCommand','TrackChangesEditing','tableOfContents','get','locale'];(function(_0x31835f,_0x24832e){const _0x374f97=function(_0x27e15a){while(--_0x27e15a){_0x31835f['push'](_0x31835f['shift']());}};_0x374f97(++_0x24832e);}(_0x2483,0x134));const _0x374f=function(_0x31835f,_0x24832e){_0x31835f=_0x31835f-0x0;let _0x374f97=_0x2483[_0x31835f];return _0x374f97;};import{Plugin as _0x54899a}from'ckeditor5/src/core.js';import{getTranslation as _0xf16cec}from'../utils/common-translations.js';export default class vt extends _0x54899a{['afterInit'](){const _0x12d321=this[_0x374f('0x4')];if(!_0x12d321['commands'][_0x374f('0x9')](_0x374f('0x3')))return;_0x12d321[_0x374f('0x0')][_0x374f('0x9')](_0x374f('0x7'))[_0x374f('0x6')](_0x374f('0x3'));const _0x2c66f3=_0x12d321[_0x374f('0x0')][_0x374f('0x9')](_0x374f('0x7')),_0x43c9cf=_0x12d321[_0x374f('0xa')];_0x2c66f3[_0x374f('0x1')][_0x374f('0x2')](_0x374f('0x8'),_0x5548d9=>_0xf16cec(_0x43c9cf,_0x374f('0x5'),_0x5548d9));}}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/tableproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Range } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { default as Suggestion } from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { default as Suggestion } from '../suggestion.js';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
12
12
|
/**
|
|
13
13
|
* Provides track changes plugin integration for table properties feature.
|
|
14
14
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x109c=['_handlePropertyChange','tableCellBackgroundColor','join','batch','tableHeight','enableCommand','tableCellHeight','getFirstPosition','TrackChangesTableProperties','formatBlock','document','tableCellBorderColor','handleDiscardAction','nodeAfter','tableProperties','discard','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','table','tableWidth','findAncestor','tableCellPadding','markBlockFormat','getSuggestionCallback','tableCellVerticalAlignment','subType','_getSuggestion','afterInit','get','registerCustomCallback','tableAlignment','getSelectionAffectedTableCells','editor','commandParams','_suggestionFactory','tableBorderWidth','tableBorderStyle','getContainedElement','format','locale','TablePropertiesEditing','change','handleSuggestionDescription','TableCellPropertiesEditing','tableCellProperties','enqueueChange','data','tableCellBorderStyle','plugins','*Format:*\x20change\x20table\x20properties','registerDescriptionCallback','tableCellHorizontalAlignment','pluginName','selection','_descriptionFactory','has','model','setAttribute','accept'];(function(_0x4833a8,_0x109c6f){const _0x250a94=function(_0x589d34){while(--_0x589d34){_0x4833a8['push'](_0x4833a8['shift']());}};_0x250a94(++_0x109c6f);}(_0x109c,0x193));const _0x250a=function(_0x4833a8,_0x109c6f){_0x4833a8=_0x4833a8-0x0;let _0x250a94=_0x109c[_0x4833a8];return _0x250a94;};import{Plugin as _0x4b7fe8}from'ckeditor5/src/core.js';import{getTranslation as _0x285658}from'../utils/common-translations.js';export default class Nt extends _0x4b7fe8{constructor(_0x45f97a){super(_0x45f97a),this['tableProperties']=['tableBorderColor',_0x250a('0x2e'),_0x250a('0x2d'),_0x250a('0x28'),_0x250a('0x1d'),_0x250a('0xe'),'tableBackgroundColor'],this[_0x250a('0x36')]=[_0x250a('0x15'),_0x250a('0x39'),'tableCellBorderWidth',_0x250a('0x1f'),'tableCellWidth',_0x250a('0x10'),_0x250a('0xb'),_0x250a('0x2'),_0x250a('0x22')];}static get[_0x250a('0x3')](){return _0x250a('0x12');}[_0x250a('0x25')](){const _0x40a5af=this[_0x250a('0x2a')]['plugins'][_0x250a('0x26')](_0x250a('0x1b'));if(this[_0x250a('0x2a')][_0x250a('0x3a')]['has'](_0x250a('0x32'))){for(const _0x1195d9 of this[_0x250a('0x18')])_0x40a5af['enableCommand'](_0x1195d9,(_0x48dfd8,_0x3ec7cb)=>{const _0x5bbe8a=this[_0x250a('0x2a')][_0x250a('0x7')][_0x250a('0x14')][_0x250a('0x4')][_0x250a('0x11')]()[_0x250a('0x1e')](_0x250a('0x1c'));this[_0x250a('0xa')](_0x1195d9,[_0x5bbe8a],this['tableProperties'],_0x250a('0x18'),_0x48dfd8,_0x3ec7cb);});_0x40a5af['_suggestionFactory'][_0x250a('0x27')]('formatBlock',_0x250a('0x18'),'accept',_0x40a5af['_suggestionFactory']['getSuggestionCallback'](_0x250a('0x13'),null,_0x250a('0x19'))),_0x40a5af[_0x250a('0x2c')]['registerCustomCallback'](_0x250a('0x13'),'tableProperties',_0x250a('0x19'),(_0x5a80b6,_0xf6030d)=>this['handleDiscardAction'](this[_0x250a('0x18')],_0x5a80b6,_0xf6030d)),_0x40a5af['_suggestionFactory'][_0x250a('0x27')]('formatBlock',_0x250a('0x18'),_0x250a('0xc'),()=>!0x1);}if(this[_0x250a('0x2a')]['plugins'][_0x250a('0x6')](_0x250a('0x35'))){for(const _0x3e0a7b of this[_0x250a('0x36')])_0x40a5af[_0x250a('0xf')](_0x3e0a7b,(_0x40284a,_0x45c8a3)=>{const _0x5dcc84=this[_0x250a('0x2a')]['plugins'][_0x250a('0x26')]('TableUtils')[_0x250a('0x29')](this['editor'][_0x250a('0x7')]['document'][_0x250a('0x4')]);this[_0x250a('0xa')](_0x3e0a7b,_0x5dcc84,this['tableCellProperties'],_0x250a('0x36'),_0x40284a,_0x45c8a3);});_0x40a5af['_suggestionFactory']['registerCustomCallback'](_0x250a('0x13'),_0x250a('0x36'),_0x250a('0x9'),_0x40a5af['_suggestionFactory'][_0x250a('0x21')](_0x250a('0x13'),null,_0x250a('0x19'))),_0x40a5af[_0x250a('0x2c')]['registerCustomCallback'](_0x250a('0x13'),_0x250a('0x36'),_0x250a('0x19'),(_0x9795c9,_0x5d326c)=>this[_0x250a('0x16')](this[_0x250a('0x36')],_0x9795c9,_0x5d326c)),_0x40a5af[_0x250a('0x2c')][_0x250a('0x27')](_0x250a('0x13'),'tableCellProperties','join',()=>!0x1);}_0x40a5af[_0x250a('0x5')][_0x250a('0x1')](_0x4e5105=>this[_0x250a('0x34')](_0x4e5105));}[_0x250a('0xa')](_0x3d3c4f,_0xd0f029,_0x8c8975,_0xf83acb,_0x3e5e8d,_0x4e6e06){const _0x19ab84=this['editor'][_0x250a('0x3a')][_0x250a('0x26')](_0x250a('0x1b'));this['editor'][_0x250a('0x7')][_0x250a('0x37')](_0x4e6e06[_0x250a('0xd')],()=>{for(const _0x61bfff of _0xd0f029){if(this['_getSuggestion'](_0x61bfff,_0xf83acb))_0x3e5e8d(_0x4e6e06);else{const _0x589d79={};for(const _0x11c217 of _0x8c8975){const _0x131ccd=_0x61bfff['getAttribute'](_0x11c217);void 0x0!==_0x131ccd&&(_0x589d79[_0x11c217]=_0x131ccd);}_0x3e5e8d(_0x4e6e06),_0x19ab84[_0x250a('0x20')](_0x61bfff,{'commandParams':[_0x589d79]},[],_0xf83acb);}}});}['handleDiscardAction'](_0x3c8b52,_0x18bccc,_0x1cd104){const _0x5b77ac=_0x18bccc[0x0]['start'][_0x250a('0x17')],_0x4453ab=_0x1cd104[_0x250a('0x2b')][0x0];this[_0x250a('0x2a')][_0x250a('0x7')][_0x250a('0x33')](_0x2b568b=>{for(const _0x622d1f of _0x3c8b52)void 0x0!==_0x4453ab[_0x622d1f]?_0x2b568b[_0x250a('0x8')](_0x622d1f,_0x4453ab[_0x622d1f],_0x5b77ac):_0x2b568b['removeAttribute'](_0x622d1f,_0x5b77ac);});}['handleSuggestionDescription'](_0x1efa0d){if(_0x1efa0d[_0x250a('0x38')])switch(_0x1efa0d['subType']){case _0x250a('0x18'):return{'type':'format','content':_0x285658(this[_0x250a('0x2a')][_0x250a('0x31')],_0x250a('0x0'))};case'tableCellProperties':return{'type':_0x250a('0x30'),'content':_0x285658(this[_0x250a('0x2a')][_0x250a('0x31')],_0x250a('0x1a'))};}}[_0x250a('0x24')](_0x247192,_0x39b746){const _0x3b634b=this[_0x250a('0x2a')][_0x250a('0x3a')][_0x250a('0x26')](_0x250a('0x1b'));for(const _0x1574ea of _0x3b634b['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ae467=_0x1574ea[_0x250a('0x2f')]();if(_0x1574ea[_0x250a('0x23')]===_0x39b746&&_0x1ae467===_0x247192)return _0x1574ea;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a42=['enableCommand','TrackChangesEditing','plugins','has'];(function(_0x2e454f,_0x1a42c5){const _0x33f1ff=function(_0x3d1b1c){while(--_0x3d1b1c){_0x2e454f['push'](_0x2e454f['shift']());}};_0x33f1ff(++_0x1a42c5);}(_0x1a42,0x126));const _0x33f1=function(_0x2e454f,_0x1a42c5){_0x2e454f=_0x2e454f-0x0;let _0x33f1ff=_0x1a42[_0x2e454f];return _0x33f1ff;};import{Plugin as _0x34c506}from'ckeditor5/src/core.js';export default class It extends _0x34c506{['afterInit'](){const _0x3ff53b=this['editor'];_0x3ff53b[_0x33f1('0x0')][_0x33f1('0x1')]('Template')&&_0x3ff53b[_0x33f1('0x0')]['get'](_0x33f1('0x3'))[_0x33f1('0x2')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x533e=['newRange','plugins','updateMarker','ELEMENT_TITLE','element','registerPostFixer','get','title-content','locale','TrackChangesEditing','nodeBefore','suggestion','isCollapsed','forward','from','_descriptionFactory','editor','getChangedMarkers','_splitMarkerName','schema','end','getNearestSelectionRange','differ','removeMarker','isTouching','start','isEqual','Title','model','afterInit','document'];(function(_0x42495a,_0x533ed9){const _0x5c0846=function(_0xb8abbd){while(--_0xb8abbd){_0x42495a['push'](_0x42495a['shift']());}};_0x5c0846(++_0x533ed9);}(_0x533e,0x17a));const _0x5c08=function(_0x42495a,_0x533ed9){_0x42495a=_0x42495a-0x0;let _0x5c0846=_0x533e[_0x42495a];return _0x5c0846;};import{Plugin as _0xe025a}from'ckeditor5/src/core.js';import{getTranslation as _0x4fec96}from'../utils/common-translations.js';export default class Ct extends _0xe025a{[_0x5c08('0x17')](){const _0xc0675d=this[_0x5c08('0xa')];if(!_0xc0675d[_0x5c08('0x1a')]['has'](_0x5c08('0x15')))return;const _0x35c1ad=_0xc0675d[_0x5c08('0x1a')][_0x5c08('0x0')](_0x5c08('0x3'));_0x35c1ad[_0x5c08('0x9')]['registerElementLabel'](_0x5c08('0x1'),()=>_0x4fec96(_0xc0675d[_0x5c08('0x2')],_0x5c08('0x1c'))),_0xc0675d['model'][_0x5c08('0x18')][_0x5c08('0x1e')](_0x265c28=>{let _0x5e804c=!0x1;const _0x529e95=Array[_0x5c08('0x8')](_0xc0675d[_0x5c08('0x16')]['document'][_0x5c08('0x10')][_0x5c08('0xb')]());for(const {name:_0x455e5a,data:_0x3aef34}of _0x529e95){const {group:_0x148c19}=_0x35c1ad[_0x5c08('0xc')](_0x455e5a);if(_0x5c08('0x5')!==_0x148c19||!_0x3aef34[_0x5c08('0x19')])continue;const _0x4c53ea=_0x3aef34['newRange'],_0x8e836c=_0x4c53ea[_0x5c08('0xe')][_0x5c08('0x4')];if(!_0x8e836c||!_0x8e836c['is'](_0x5c08('0x1d'),_0x5c08('0x1')))continue;if(!_0x4c53ea[_0x5c08('0x13')][_0x5c08('0x12')](_0x4c53ea[_0x5c08('0xe')]))continue;const _0x12e75e=_0xc0675d[_0x5c08('0x16')][_0x5c08('0xd')][_0x5c08('0xf')](_0x4c53ea['end'],_0x5c08('0x7'));if(_0x12e75e&&_0x12e75e[_0x5c08('0x6')]){const _0x5672c8=_0x265c28['createRange'](_0x4c53ea['start'],_0x12e75e[_0x5c08('0x13')]);_0x5672c8[_0x5c08('0x14')](_0x4c53ea)||(_0x265c28[_0x5c08('0x1b')](_0x455e5a,{'range':_0x5672c8}),_0x5e804c=!0x0);}_0x5e804c||(_0x265c28[_0x5c08('0x11')](_0x455e5a),_0x5e804c=!0x0);}return _0x5e804c;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cf4=['TrackChangesEditing','redo','editor','plugins','get','UndoEditing','afterInit'];(function(_0x5ef352,_0x4cf4e5){const _0x550d44=function(_0x89a134){while(--_0x89a134){_0x5ef352['push'](_0x5ef352['shift']());}};_0x550d44(++_0x4cf4e5);}(_0x4cf4,0x1f3));const _0x550d=function(_0x5ef352,_0x4cf4e5){_0x5ef352=_0x5ef352-0x0;let _0x550d44=_0x4cf4[_0x5ef352];return _0x550d44;};import{Plugin as _0x2f3abb}from'ckeditor5/src/core.js';export default class _t extends _0x2f3abb{[_0x550d('0x4')](){const _0x51604b=this[_0x550d('0x0')],_0xc921be=_0x51604b[_0x550d('0x1')][_0x550d('0x2')](_0x550d('0x5'));_0x51604b[_0x550d('0x1')]['has'](_0x550d('0x3'))&&(_0xc921be['enableCommand']('undo'),_0xc921be['enableCommand'](_0x550d('0x6')));}}
|