@ckeditor/ckeditor5-track-changes 36.0.0 → 37.0.0-rc.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.
Files changed (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +21 -6
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x592c=['tableCellBackgroundColor','TableClipboard','getSelectionAffectedTableCells','position','createTableWalker','every','showSuggestionHighlights','activeMarkers','TableUtils','suggestion-td','updateMarker','getRows','registerCustomCallback','fromEntries','containsRange','removeMarkers','move','_isForcedDefaultExecutionBlock','columnInsertionRanges','name','locale','markerAttributes','getAllAdjacentSuggestions','unwrap','Users','endColumn','element','previousSibling','isEmpty','tableCellBorderWidth','some','tableCellBorderColor','elementToElement','suggestionUnloaded','tablePasteCell','suggestion','_tablePostFixingSubtypes','author','getSuggestion','createElement','getChangedMarkers','editing','tableCellVerticalAlignment','insertion','removeMarker','tablePaste','createRangeIn','filter','getChanges','createRange','model','newRange','has','setAttributes','next','tableCell','getContainedElement','nextSibling','root','includes','join','createRangeOn','tablePasteColumn','getRange','forceDefaultExecution','rowInsertionIndexes','dataDowncast','rows','isEqual','insertRows','_suggestionFactory','length','isInContent','getTableIfOnlyTableInContent','tableCellSuggestion','discard','getItems','tableCellHorizontalAlignment','accept','getColumns','getMarkers','clipboardOutput','getChild','return','high','tablePasteChainId','registerDescriptionCallback','createPositionBefore','requires','suggestion:formatBlock:tablePasteCell','editor','tableCellPadding','oldRange','get','tablePasteRow','ck-suggestion-marker','options','table','selection','suggestionLoaded','attributes','map','previous','_splitMarkerName','trackChanges','commands','nodeAfter','find','view','TrackChangesEditing','_replaceTableSlotCell','for','add','insertionRanges','registerPostFixer','type','getChildren','stop','remove','column','paragraph','markerName','removeColumns','change','ck-suggestion-marker--active','register','deletion','documentSelection','_getCoordsForCells','end','insertColumns','startsWith','listenTo','getSuggestions','removeRows','content','last','reduce','insertContent','getShiftedBy','subType','getAttributes','value','cells','set','getRowIndexes','conversion','findAncestor','rowInsertionRanges','markMultiRangeBlockFormat','wrap','tableCellBorderStyle','schema','markers','plugins','markMultiRangeDeletion','from','low','markerToHighlight','insert','getRanges','setAttribute','getSuggestionCallback','markMultiRangeInsertion','entries','push','fill','first','differ','keys','document','cell','endRow','batch','redo','formatBlock'];(function(_0x46cbd9,_0x592c49){const _0x3e9042=function(_0x10ff7c){while(--_0x10ff7c){_0x46cbd9['push'](_0x46cbd9['shift']());}};_0x3e9042(++_0x592c49);}(_0x592c,0x18d));const _0x3e90=function(_0x46cbd9,_0x592c49){_0x46cbd9=_0x46cbd9-0x0;let _0x3e9042=_0x592c[_0x46cbd9];return _0x3e9042;};import{getTranslation as _0x1d2b3a}from'../utils/common-translations';import{Plugin as _0x5d9221}from'ckeditor5/src/core';import _0x14929f from'./table';import{uid as _0xe111f2,priorities as _0x29e003}from'ckeditor5/src/utils';const ae=[_0x3e90('0xa0'),_0x3e90('0xa2'),_0x3e90('0x6a'),_0x3e90('0x20'),_0x3e90('0xad'),_0x3e90('0x83'),_0x3e90('0x2e')],ce=Object[_0x3e90('0x90')](ae[_0x3e90('0x38')](_0x5cefa3=>[_0x5cefa3,null]));export default class wt extends _0x5d9221{static get[_0x3e90('0x2b')](){return[_0x14929f];}['afterInit'](){const _0x382e5e=this['editor'];if(!_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x7')](_0x3e90('0x84')))return;const _0x4cf150=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x40')),_0x5cf5e7=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x8b')),_0x42d719=_0x382e5e[_0x3e90('0x6d')]['get'](_0x14929f),_0x2b3ace=_0x382e5e['plugins']['get'](_0x3e90('0x84'));_0x42d719[_0x3e90('0xa7')][_0x3e90('0x78')](_0x3e90('0x31'),'tablePasteColumn'),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x6b')][_0x3e90('0x50')](_0x3e90('0x1d'),{'allowIn':_0x3e90('0xa'),'allowContentOf':_0x3e90('0xa'),'isLimit':!0x0}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0xa3')]({'model':'tableCellSuggestion','view':_0x3e90('0x8c')});let _0x5d3d43=null;_0x382e5e[_0x3e90('0x5')]['on'](_0x3e90('0x5d'),(_0x7abd2d,_0x2e5597)=>{const [_0x30a1f9,_0x69f654]=_0x2e5597,_0x3317cc=_0x2e5597[_0x2e5597[_0x3e90('0x1a')]-0x1];_0x3317cc&&_0x3317cc[_0x3e90('0x13')]||_0x4cf150[_0x3e90('0x94')]||this[_0x3e90('0x2d')][_0x3e90('0x3c')]['get'](_0x3e90('0x3b'))[_0x3e90('0x61')]&&function(_0x166f38,_0x5df4c8,_0x4d2bd7,_0x4438a2,_0x389f0b){if(_0x5df4c8&&!_0x5df4c8['is'](_0x3e90('0x52')))return!0x1;const _0xfdb8b9=_0x389f0b[_0x3e90('0x1c')](_0x166f38,_0x4d2bd7);if(!_0xfdb8b9||!ue(_0xfdb8b9,null,_0x4438a2))return!0x1;const _0x19e898=_0x4438a2[_0x3e90('0x85')](_0x4d2bd7[_0x3e90('0x7d')][_0x3e90('0x35')]);if(!_0x19e898[_0x3e90('0x1a')])return!0x1;const _0xcff16=_0x19e898[0x0][_0x3e90('0x66')](_0x3e90('0x34')),_0x1729af=_0x4438a2[_0x3e90('0x64')](_0x19e898),_0x165aa9=_0x4438a2['getColumnIndexes'](_0x19e898),_0x4beb24={'startRow':_0x1729af[_0x3e90('0x7a')],'endRow':_0x1729af[_0x3e90('0x5b')],'startColumn':_0x165aa9[_0x3e90('0x7a')],'endColumn':_0x165aa9[_0x3e90('0x5b')]};return 0x1==_0x19e898[_0x3e90('0x1a')]&&(_0x4beb24[_0x3e90('0x7f')]+=_0x4438a2[_0x3e90('0x8e')](_0xfdb8b9)-0x1,_0x4beb24[_0x3e90('0x9c')]+=_0x4438a2[_0x3e90('0x22')](_0xfdb8b9)-0x1),ue(_0xcff16,_0x4beb24,_0x4438a2);}(_0x30a1f9,_0x69f654,_0x382e5e[_0x3e90('0x5')],_0x5cf5e7,_0x2b3ace)&&(_0x7abd2d['stop'](),_0x5d3d43={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x382e5e[_0x3e90('0x5')]['change'](()=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x5d')](_0x2e5597[0x0],_0x2e5597[0x1],_0x2e5597[0x2],_0x2e5597[0x3],{'forceDefaultExecution':!0x0});const _0x336bb9=_0xe111f2(),{rowInsertionRanges:_0xab9bc2,columnInsertionRanges:_0x13b3f5,insertionRanges:_0x276bb1,deletionRanges:_0x343c8f,cells:_0x5272df}=_0x5d3d43;_0xab9bc2[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0xab9bc2,'tablePasteRow',{'tablePasteChainId':_0x336bb9}),_0x13b3f5[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0x13b3f5,_0x3e90('0x11'),{'tablePasteChainId':_0x336bb9}),_0x276bb1[_0x3e90('0x1a')]&&_0x4cf150['markMultiRangeInsertion'](_0x276bb1,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0}),_0x343c8f['length']&&_0x4cf150[_0x3e90('0x6e')](_0x343c8f,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0});const _0x1d8fdd=_0x4cf150[_0x3e90('0x68')](_0x5272df[_0x3e90('0x38')](({element:_0x2c74d8})=>_0x2c74d8),{'formatGroupId':_0xe111f2()},[],'tablePasteCell',{'tablePasteChainId':_0x336bb9});if(_0x1d8fdd){const _0x42baa5=_0x1d8fdd[_0x3e90('0x23')](),_0x58d623=[];for(const {element:_0x8a4faf,attributes:_0x5156e1}of _0x5272df){if(!_0x5156e1)continue;const _0x4b8988=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0x8a4faf),_0x3d1527=_0x42baa5[_0x3e90('0x3e')](_0x265b45=>_0x265b45[_0x3e90('0x12')]()[_0x3e90('0x17')](_0x4b8988));_0x3d1527&&_0x58d623[_0x3e90('0x78')]([_0x3d1527['name'],_0x5156e1]);}_0x58d623['length']&&_0x1d8fdd[_0x3e90('0x74')](_0x3e90('0x98'),Object[_0x3e90('0x90')](_0x58d623));}_0x5d3d43=null;}));},{'priority':_0x29e003[_0x3e90('0x27')]+0xa}),_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x84'))['on'](_0x3e90('0x41'),(_0x140bf1,_0x112c89)=>{const [_0x1734a4,_0x440d37,,_0x19e2a4]=_0x112c89;if(!_0x5d3d43)return;_0x140bf1[_0x3e90('0x48')]();const _0x39d94c=_0x1734a4[_0x3e90('0x7e')],_0x2b4378=_0x440d37,_0x3cfe3d=fe(_0x39d94c),_0x4debf2=fe(_0x2b4378);_0x140bf1[_0x3e90('0x26')]=_0x39d94c;let _0x509b24=null,_0x398508=null;if(_0x4debf2||_0x3cfe3d){if(_0x3cfe3d&&!_0x4debf2){_0x19e2a4[_0x3e90('0x49')](_0x39d94c[_0x3e90('0x25')](0x0));for(const _0x49e42d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x49e42d,_0x39d94c,'end');const _0xc85fad=_0x5d3d43[_0x3e90('0x14')][_0x3e90('0xe')](_0x1734a4['row']),_0x565443=_0x5d3d43['columnInsertionIndexes'][_0x3e90('0xe')](_0x1734a4[_0x3e90('0x4a')]);_0xc85fad||_0x565443||(_0x509b24=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else _0x4debf2&&!_0x3cfe3d&&(_0x398508=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else{const _0x6280ab=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d')),_0x20523b=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d'));_0x19e2a4[_0x3e90('0x69')](_0x19e2a4[_0x3e90('0x1')](_0x39d94c),_0x20523b),_0x19e2a4[_0x3e90('0x72')](_0x6280ab,_0x39d94c,0x0);for(const _0x57314d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x57314d,_0x6280ab,_0x3e90('0x54'));_0x509b24=_0x19e2a4[_0x3e90('0x10')](_0x6280ab),_0x398508=_0x19e2a4[_0x3e90('0x10')](_0x20523b);}const _0x428d87=Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x60')]())[_0x3e90('0x2')](([_0xdb6d32])=>ae[_0x3e90('0xe')](_0xdb6d32));_0x5d3d43[_0x3e90('0x62')][_0x3e90('0x78')]({'element':_0x39d94c,'attributes':_0x428d87[_0x3e90('0x1a')]?Object[_0x3e90('0x90')](_0x428d87):null}),_0x509b24&&_0x5d3d43[_0x3e90('0x44')]['push'](_0x509b24),_0x398508&&_0x5d3d43['deletionRanges'][_0x3e90('0x78')](_0x398508);},{'priority':'high'}),_0x5cf5e7['on'](_0x3e90('0x55'),(_0x2c3815,_0x37de26)=>{const [_0x5cf13a,_0x3ac037={}]=_0x37de26;if(!_0x5d3d43)return;const _0xd490f=_0x3ac037['at']||0x0,_0x25158e=_0x3ac037['columns']||0x1;_0x5d3d43['columnInsertionIndexes']=new Array(_0x25158e)['fill'](_0xd490f)[_0x3e90('0x38')]((_0x22aba2,_0x18af35)=>_0x22aba2+_0x18af35);for(const {cell:_0xfe9e3d}of _0x5cf5e7[_0x3e90('0x87')](_0x5cf13a,{'startColumn':_0xd490f,'endColumn':_0xd490f+_0x25158e-0x1}))_0x5d3d43[_0x3e90('0x95')][_0x3e90('0x78')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0xfe9e3d));},{'priority':'low'}),_0x5cf5e7['on'](_0x3e90('0x18'),(_0xafa2f6,_0x54dc99)=>{const [_0x9cb254,_0x1ad14d={}]=_0x54dc99;if(!_0x5d3d43)return;const _0x42371d=_0x1ad14d['at']||0x0,_0x2c39ab=_0x1ad14d[_0x3e90('0x16')]||0x1;_0x5d3d43[_0x3e90('0x14')]=new Array(_0x2c39ab)[_0x3e90('0x79')](_0x42371d)[_0x3e90('0x38')]((_0x3b1a74,_0x8b74d9)=>_0x3b1a74+_0x8b74d9);for(const {cell:_0x5ee2ac}of _0x5cf5e7[_0x3e90('0x87')](_0x9cb254,{'startRow':_0x42371d,'endRow':_0x42371d+_0x2c39ab-0x1}))_0x5d3d43[_0x3e90('0x67')][_0x3e90('0x78')](_0x382e5e['model']['createRangeOn'](_0x5ee2ac));},{'priority':_0x3e90('0x70')}),_0x4cf150['_descriptionFactory'][_0x3e90('0x29')](_0x598eec=>{if(_0x598eec[_0x3e90('0x5f')]&&_0x598eec[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return _0x598eec[_0x3e90('0x39')]?{}:{'type':_0x3e90('0xae'),'content':_0x1d2b3a(_0x382e5e[_0x3e90('0x97')],'*Replace\x20table\x20cells*')};});const _0xb3b576=()=>{};for(const _0x3390d1 of['tablePaste',_0x3e90('0x11'),_0x3e90('0x31'),_0x3e90('0xa5')])_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x3e90('0xae'),_0x3390d1,_0x3e90('0xf'),_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x51'),_0x3390d1,_0x3e90('0xf'),_0xb3b576);_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')]('formatBlock',_0x3e90('0xa5'),'discard',_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x82'),_0x3e90('0xa5'),_0x3e90('0x21'),(_0x21b6f2,_0x1f98c6,_0x36c4ef)=>{const _0x31ee47=_0x21b6f2[_0x3e90('0x38')](_0x4360f0=>_0x4360f0[_0x3e90('0xb')]())['filter'](_0x17bf6c=>_0x17bf6c),_0x21d981=new Map(_0x31ee47[_0x3e90('0x38')](_0x1c646a=>[_0x1c646a,null]));if(_0x5d3d43)for(const {element:_0x10ba7e,attributes:_0x46f9cc}of _0x5d3d43['cells'])_0x46f9cc&&_0x21d981[_0x3e90('0x63')](_0x10ba7e,_0x46f9cc);else{if(_0x36c4ef&&_0x36c4ef[_0x3e90('0x98')])for(const [_0x2763af,_0x4b6be4]of Object[_0x3e90('0x77')](_0x36c4ef[_0x3e90('0x98')])){const _0x48d385=_0x382e5e['model'][_0x3e90('0x6c')][_0x3e90('0x30')](_0x2763af),_0x5aac71=_0x48d385?_0x48d385[_0x3e90('0x12')]()[_0x3e90('0xb')]():null;_0x5aac71&&_0x21d981[_0x3e90('0x63')](_0x5aac71,_0x4b6be4);}}_0x382e5e[_0x3e90('0x5')]['change'](_0x453753=>{for(const [_0x3f706d,_0x251500]of _0x21d981)_0x453753[_0x3e90('0x8')]({...ce,..._0x251500},_0x3f706d);});});const _0x29ea74=(_0x39347f,_0x2cf81a)=>{_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x39347f,'tablePaste',_0x2cf81a,(_0x5596b8,_0x44e05c,_0x592235)=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x4e')](_0x1c8744=>{const _0x3ae630=[];for(const _0x1dee50 of _0x5596b8){const _0x3c4747=_0x1dee50['start'][_0x3e90('0x3d')];_0x3c4747['is']('element',_0x3e90('0x1d'))&&_0x3ae630['push'](_0x3c4747);}_0x4cf150[_0x3e90('0x19')][_0x3e90('0x75')](_0x39347f,null,_0x2cf81a)(_0x5596b8,_0x44e05c,_0x592235);for(const _0x36ced5 of _0x3ae630)'$graveyard'!=_0x36ced5[_0x3e90('0xd')]['rootName']&&_0x1c8744[_0x3e90('0x9a')](_0x36ced5);});});};_0x29ea74(_0x3e90('0xae'),_0x3e90('0x21')),_0x29ea74(_0x3e90('0xae'),_0x3e90('0x1e')),_0x29ea74('deletion','accept'),_0x29ea74('deletion','discard'),_0x4cf150['_suggestionFactory'][_0x3e90('0x8f')](_0x3e90('0xae'),_0x3e90('0x31'),'discard',_0x4efd21=>{const _0xc132ea=_0x4efd21[_0x3e90('0x38')](_0x1ab891=>_0x1ab891[_0x3e90('0xb')]()),_0x3dc462=_0xc132ea[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minRow:_0x43a861,maxRow:_0xf8aee8}=_0x42d719['_getCoordsForCells'](_0xc132ea);_0x5cf5e7[_0x3e90('0x59')](_0x3dc462,{'at':_0x43a861,'rows':_0xf8aee8-_0x43a861+0x1});}),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0xae'),'tablePasteColumn','discard',_0xbab31=>{const _0x25d8f7=_0xbab31['map'](_0x4df1cc=>_0x4df1cc[_0x3e90('0xb')]()),_0x140702=_0x25d8f7[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minColumn:_0x1e4465,maxColumn:_0x5cf9c7}=_0x42d719[_0x3e90('0x53')](_0x25d8f7);_0x5cf5e7[_0x3e90('0x4d')](_0x140702,{'at':_0x1e4465,'columns':_0x5cf9c7-_0x1e4465+0x1});});const _0xd53eb5=(_0x22470f,_0x334cf8)=>{if(!_0x334cf8[_0x3e90('0x5f')]||!_0x334cf8[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return;const _0xa95a12=_0x334cf8[_0x3e90('0x37')]['tablePasteChainId'],_0x4588d4=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0x4f0f00=>_0x4f0f00[_0x3e90('0x1b')]&&_0x4f0f00[_0x3e90('0x37')]&&_0x4f0f00['attributes'][_0x3e90('0x28')]==_0xa95a12);_0x4588d4[_0x3e90('0x1a')]&&_0x334cf8[_0x3e90('0x99')]()[_0x3e90('0x1a')]!=_0x4588d4[_0x3e90('0x1a')]&&_0x4588d4[_0x3e90('0x5c')]((_0x56e887,_0x3da199)=>(_0x56e887[_0x3e90('0x9')]=_0x3da199,_0x3da199['previous']=_0x56e887,_0x3da199));};function _0x4e37e0(_0x1efdc1,{showActiveMarker:_0x3ddbca=!0x0}={}){const {id:_0x1e0693}=_0x4cf150[_0x3e90('0x3a')](_0x1efdc1[_0x3e90('0x4c')]),_0x535398=[_0x3e90('0x32'),'ck-suggestion-marker-insertion'],_0x39f0cc=_0x4cf150[_0x3e90('0x8a')][_0x3e90('0xe')](_0x1efdc1[_0x3e90('0x4c')]);return _0x39f0cc&&_0x535398[_0x3e90('0x78')](_0x3e90('0x4f')),{'classes':_0x535398,'attributes':{'data-suggestion':_0x1e0693},'priority':_0x39f0cc&&_0x3ddbca?0xbc2:0xbb8};}_0x4cf150['on'](_0x3e90('0x36'),_0xd53eb5,{'priority':_0x3e90('0x27')}),_0x4cf150['on'](_0x3e90('0xa4'),_0xd53eb5,{'priority':'high'}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](()=>{let _0x3612d6=!0x1;const _0x2d00d=Array['from'](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0xab')]());for(const {name:_0x17b4d8,data:_0x146c62}of _0x2d00d){const {group:_0x4d2471,type:_0x9450e8,id:_0x395767}=_0x4cf150[_0x3e90('0x3a')](_0x17b4d8);if('suggestion'!=_0x4d2471||'deletion'!=_0x9450e8||_0x146c62[_0x3e90('0x2f')])continue;if(!_0x4cf150['hasSuggestion'](_0x395767))continue;const _0x437725=_0x4cf150[_0x3e90('0xa9')](_0x395767)[_0x3e90('0x73')](),_0x5cdd76=_0x382e5e[_0x3e90('0x6d')]['get']('Users')['me'];for(const _0x467630 of _0x4cf150[_0x3e90('0x58')]()){if(!_0x467630['isInContent']||_0x467630['author']!=_0x5cdd76)continue;if(_0x3e90('0x82')!=_0x467630[_0x3e90('0x46')]||_0x3e90('0xa5')!=_0x467630[_0x3e90('0x5f')])continue;if(_0x467630[_0x3e90('0x73')]()[_0x3e90('0x88')](_0x44c4f5=>_0x437725[_0x3e90('0xa1')](_0xd0198c=>_0xd0198c[_0x3e90('0x91')](_0x44c4f5,!0x0))))for(const _0x15147b of _0x467630[_0x3e90('0x99')]())_0x15147b[_0x3e90('0x1b')]&&(_0x15147b[_0x3e90('0x1e')](),_0x3612d6=!0x0);}}return _0x3612d6;}),_0x382e5e['model'][_0x3e90('0x7d')][_0x3e90('0x45')](_0x398b63=>{const _0x3890a6=_0x382e5e['commands']['get'](_0x3e90('0x81'));if(!_0x3890a6||!_0x3890a6['_createdBatches'][_0x3e90('0x7')](_0x398b63[_0x3e90('0x80')]))return!0x1;let _0x4e642f=!0x1;const _0x3b1529=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x10670e=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0x3')](),_0x215d11=Array[_0x3e90('0x6f')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')]['differ'][_0x3e90('0xab')]())[_0x3e90('0x2')](({name:_0x5ee7e1,data:_0x3c035a})=>{const {group:_0x2197bc,subType:_0x51945a,authorId:_0x4be037}=_0x4cf150[_0x3e90('0x3a')](_0x5ee7e1);return _0x3e90('0xa6')==_0x2197bc&&'tablePaste'==_0x51945a&&_0x4be037==_0x3b1529['id']&&!_0x3c035a[_0x3e90('0x2f')];});for(const _0x474292 of _0x10670e){if(_0x3e90('0x72')!=_0x474292[_0x3e90('0x46')]||_0x3e90('0x1d')!=_0x474292[_0x3e90('0x96')]||0x1!=_0x474292[_0x3e90('0x1a')])continue;const _0x4609c6=_0x398b63[_0x3e90('0x4')](_0x474292[_0x3e90('0x86')],_0x474292[_0x3e90('0x86')][_0x3e90('0x5e')](0x1));if(!_0x215d11['find'](({data:_0x25b067})=>_0x25b067['newRange'][_0x3e90('0x17')](_0x4609c6)))for(const {name:_0x579e6b,data:_0x202b25}of _0x215d11)if(_0x4609c6[_0x3e90('0x91')](_0x202b25[_0x3e90('0x6')])){_0x398b63[_0x3e90('0x8d')](_0x579e6b,{'range':_0x4609c6}),_0x4e642f=!0x0;break;}}return _0x4e642f;}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](_0x3e0a17=>{let _0x19b9d9=!0x1;const _0x28ee50=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x47205c=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0xf18e7c=>_0xf18e7c['isInContent']&&_0xf18e7c[_0x3e90('0xa8')]==_0x28ee50),_0x5a752e=new Set(),_0x2aef2d=new Set();for(const _0x25cb41 of _0x47205c)if('tablePaste'==_0x25cb41['subType'])for(const _0x2e0058 of _0x25cb41['getMarkers']()){const _0x5645c7=_0x2e0058[_0x3e90('0x12')]()[_0x3e90('0xb')]();if(_0x5645c7){if(_0x5645c7['is'](_0x3e90('0x9d'),_0x3e90('0x1d'))&&fe(_0x5645c7)){_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x5a752e['add'](_0x5645c7),_0x19b9d9=!0x0;const _0x1210b4=_0x5645c7[_0x3e90('0xc')],_0x5d7637=_0x5645c7[_0x3e90('0x9e')],_0x38cc51=_0x1210b4&&_0x1210b4['is'](_0x3e90('0x9d'),_0x3e90('0x1d')),_0x35715c=_0x5d7637&&_0x5d7637['is'](_0x3e90('0x9d'),_0x3e90('0x1d'));_0x38cc51&&!_0x5a752e['has'](_0x1210b4)&&_0x2aef2d[_0x3e90('0x43')](_0x1210b4),_0x35715c&&!_0x5a752e[_0x3e90('0x7')](_0x5d7637)&&_0x2aef2d[_0x3e90('0x43')](_0x5d7637);}else _0x5645c7['is']('element',_0x3e90('0x4b'))&&_0x5645c7[_0x3e90('0x9f')]&&(_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x19b9d9=!0x0);}}else{if(_0x3e90('0xa5')==_0x25cb41[_0x3e90('0x5f')]){if(!_0x25cb41['attributes']||!_0x25cb41[_0x3e90('0x37')][_0x3e90('0x28')])continue;const _0x46f25e=_0x25cb41[_0x3e90('0x37')][_0x3e90('0x98')];if(_0x46f25e&&Object[_0x3e90('0x7c')](_0x46f25e)[_0x3e90('0x1a')])continue;const _0x44645f=_0x25cb41[_0x3e90('0x37')]['tablePasteChainId'];let _0x5b7bc7=!0x0,_0x4ee267=!0x0;for(const _0x353ddc of _0x47205c)if(_0x353ddc[_0x3e90('0x5f')]&&_0x353ddc[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0'))){if(!_0x353ddc[_0x3e90('0x37')]['tablePasteChainId']){_0x4ee267=!0x1;break;}if(_0x353ddc['id']!=_0x25cb41['id']&&_0x353ddc[_0x3e90('0x37')][_0x3e90('0x28')]==_0x44645f){_0x5b7bc7=!0x1;break;}}_0x4ee267&&_0x5b7bc7&&(_0x25cb41[_0x3e90('0x92')](),_0x19b9d9=!0x0);}}for(const _0x4cd696 of _0x5a752e)_0x3e0a17[_0x3e90('0x49')](_0x4cd696);for(const _0x1b694b of _0x2aef2d)_0x3e0a17[_0x3e90('0x9a')](_0x1b694b);return _0x19b9d9;}),_0x382e5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':_0x3e90('0x2c'),'view':_0x4e37e0,'converterPriority':_0x3e90('0x27')}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0x42')](_0x3e90('0x15'))[_0x3e90('0x71')]({'model':_0x3e90('0x2c'),'view':(_0x2865ee,_0x32c13c)=>{if(_0x32c13c[_0x3e90('0x33')][_0x3e90('0x89')])return _0x4e37e0(_0x2865ee,{'showActiveMarker':!0x1});},'converterPriority':_0x3e90('0x27')});const _0x5b5041=_0x382e5e[_0x3e90('0xac')][_0x3e90('0x3f')];this[_0x3e90('0x57')](_0x5b5041[_0x3e90('0x7d')],_0x3e90('0x24'),(_0x248cac,_0x21fd2c)=>{const _0x45f3fc=[];for(const _0x8ab0e5 of _0x5b5041[_0x3e90('0x1')](_0x21fd2c[_0x3e90('0x5a')])[_0x3e90('0x1f')]())_0x8ab0e5['is']('element',_0x3e90('0x8c'))&&_0x45f3fc[_0x3e90('0x78')](_0x8ab0e5);_0x5b5041[_0x3e90('0x4e')](_0x44078b=>{for(const _0x18e057 of _0x45f3fc)_0x44078b[_0x3e90('0x93')](_0x44078b[_0x3e90('0x1')](_0x18e057),_0x44078b[_0x3e90('0x2a')](_0x18e057)),_0x44078b[_0x3e90('0x49')](_0x18e057);});});}}function fe(_0x39c8cd){if(_0x39c8cd[_0x3e90('0x9f')])return!0x0;const _0x45afb2=_0x39c8cd[_0x3e90('0x25')](0x0);return _0x45afb2['is'](_0x3e90('0x9d'),_0x3e90('0x4b'))&&_0x45afb2['isEmpty'];}function ue(_0x22aa2c,_0x804adf={},_0x51b4c8){for(const {isAnchor:_0x22c4b6,cellHeight:_0x4fc79b,cellWidth:_0x4c3a5e}of _0x51b4c8[_0x3e90('0x87')](_0x22aa2c,{'includeAllSlots':!0x0,..._0x804adf}))if(!_0x22c4b6||0x1!=_0x4fc79b||0x1!=_0x4c3a5e)return!0x1;return!0x0;}
23
+ const _0xf9bb=['ck-suggestion-marker','change','rowInsertionIndexes','getRowIndexes','fill','_tablePostFixingSubtypes','locale','paragraph','insertContent','listenTo','createElement','from','redo','createPositionBefore','getMarkers','_splitMarkerName','containsRange','tableCellHorizontalAlignment','markerToHighlight','position','getSuggestion','length','type','createRangeIn','setAttribute','getRange','createRange','subType','deletion','push','markerName','registerPostFixer','root','getAttributes','markMultiRangeInsertion','getChangedMarkers','tablePaste','tableCellSuggestion','TrackChangesEditing','deletionRanges','every','high','_createdBatches','element','insertion','editor','fromEntries','has','suggestionUnloaded','last','options','next','editingDowncast','move','markerAttributes','tableCell','tablePasteColumn','getItems','filter','name','columnInsertionIndexes','removeMarker','low','_getCoordsForCells','document','plugins','getRanges','oldRange','Users','schema','row','markMultiRangeBlockFormat','_replaceTableSlotCell','wrap','getChild','activeMarkers','registerDescriptionCallback','elementToElement','tablePasteCell','cells','getColumns','tableCellBorderWidth','content','getContainedElement','getChanges','rowInsertionRanges','removeColumns','return','keys','batch','remove','insertionRanges','cell','suggestion:formatBlock:tablePasteCell','end','nodeAfter','findAncestor','join','discard','TableUtils','attributes','_descriptionFactory','author','ck-suggestion-marker--active','getSuggestions','createTableWalker','editing','showSuggestionHighlights','tablePasteRow','nextSibling','isEqual','setAttributes','includes','model','dataDowncast','some','table','isInContent','stop','register','_suggestionFactory','newRange','reduce','formatBlock','forceDefaultExecution','requires','accept','TableClipboard','set','markMultiRangeDeletion','start','documentSelection','tableCellBorderColor','add','column','tablePasteChainId','getAllAdjacentSuggestions','selection','removeMarkers','conversion','first','getTableIfOnlyTableInContent','differ','getColumnIndexes','for','suggestionLoaded','map','find','columnInsertionRanges','getRows','value','commands','tableCellPadding','getChildren','insert','endColumn','registerCustomCallback','getShiftedBy','suggestion-td','isEmpty','previousSibling','previous','get','unwrap','startsWith','*Replace\x20table\x20cells*','createRangeOn'];(function(_0x6417ca,_0xf9bb54){const _0x4209ff=function(_0x38e83a){while(--_0x38e83a){_0x6417ca['push'](_0x6417ca['shift']());}};_0x4209ff(++_0xf9bb54);}(_0xf9bb,0x7e));const _0x4209=function(_0x6417ca,_0xf9bb54){_0x6417ca=_0x6417ca-0x0;let _0x4209ff=_0xf9bb[_0x6417ca];return _0x4209ff;};import{getTranslation as _0x45a8f2}from'../utils/common-translations';import{Plugin as _0x36df4b}from'ckeditor5/src/core';import{uid as _0x316d98,priorities as _0x499473}from'ckeditor5/src/utils';import _0x2884c5 from'./table';const le=[_0x4209('0x7a'),_0x4209('0x6'),'tableCellBorderStyle',_0x4209('0x3a'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x4209('0x1a')],ae=Object[_0x4209('0x57')](le['map'](_0x366f35=>[_0x366f35,null]));export default class pt extends _0x36df4b{static get[_0x4209('0xa6')](){return[_0x2884c5];}['afterInit'](){const _0x5f0254=this[_0x4209('0x56')];if(!_0x5f0254['plugins']['has']('TableClipboard'))return;const _0x4338f5=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x4f')),_0x38bdd0=_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x8c')),_0x2b8a38=_0x5f0254['plugins'][_0x4209('0x24')](_0x2884c5),_0x66fc0e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x1'));_0x2b8a38[_0x4209('0x2e')]['push'](_0x4209('0x95'),_0x4209('0x61')),_0x5f0254[_0x4209('0x9a')][_0x4209('0x6e')][_0x4209('0xa0')](_0x4209('0x4e'),{'allowIn':_0x4209('0x60'),'allowContentOf':_0x4209('0x60'),'isLimit':!0x0}),_0x5f0254[_0x4209('0xd')][_0x4209('0x76')]({'model':_0x4209('0x4e'),'view':_0x4209('0x20')});let _0x2f02af=null;_0x5f0254[_0x4209('0x9a')]['on']('insertContent',(_0x40b193,_0x2d7458)=>{const [_0x2eb5a4,_0x76022]=_0x2d7458,_0x527e18=_0x2d7458[_0x2d7458['length']-0x1];_0x527e18&&_0x527e18[_0x4209('0xa5')]||_0x4338f5['_isForcedDefaultExecutionBlock']||this[_0x4209('0x56')][_0x4209('0x19')][_0x4209('0x24')]('trackChanges')[_0x4209('0x18')]&&function(_0x1bbec8,_0xd60f6c,_0x36f244,_0x415195,_0x5a7c87){if(_0xd60f6c&&!_0xd60f6c['is'](_0x4209('0x5')))return!0x1;const _0x2396a5=_0x5a7c87[_0x4209('0xf')](_0x1bbec8,_0x36f244);if(!_0x2396a5||!fe(_0x2396a5,void 0x0,_0x415195))return!0x1;const _0x1b3374=_0x415195['getSelectionAffectedTableCells'](_0x36f244[_0x4209('0x69')][_0x4209('0xb')]);if(!_0x1b3374['length'])return!0x1;const _0x376798=_0x1b3374[0x0][_0x4209('0x89')](_0x4209('0x9d')),_0x13a949=_0x415195[_0x4209('0x2c')](_0x1b3374),_0x392840=_0x415195[_0x4209('0x11')](_0x1b3374),_0x4f80ee={'startRow':_0x13a949[_0x4209('0xe')],'endRow':_0x13a949[_0x4209('0x5a')],'startColumn':_0x392840['first'],'endColumn':_0x392840[_0x4209('0x5a')]};return 0x1==_0x1b3374[_0x4209('0x3e')]&&(_0x4f80ee['endRow']+=_0x415195[_0x4209('0x17')](_0x2396a5)-0x1,_0x4f80ee[_0x4209('0x1d')]+=_0x415195[_0x4209('0x79')](_0x2396a5)-0x1),fe(_0x376798,_0x4f80ee,_0x415195);}(_0x2eb5a4,_0x76022,_0x5f0254[_0x4209('0x9a')],_0x38bdd0,_0x66fc0e)&&(_0x40b193[_0x4209('0x9f')](),_0x2f02af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](()=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x31')](_0x2d7458[0x0],_0x2d7458[0x1],_0x2d7458[0x2],{'forceDefaultExecution':!0x0});const _0x24c754=_0x316d98(),{rowInsertionRanges:_0x724ade,columnInsertionRanges:_0x18e46c,insertionRanges:_0x1d9865,deletionRanges:_0x28999d,cells:_0x10c032}=_0x2f02af;_0x724ade[_0x4209('0x3e')]&&_0x4338f5['markMultiRangeInsertion'](_0x724ade,_0x4209('0x95'),{'tablePasteChainId':_0x24c754}),_0x18e46c[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x18e46c,_0x4209('0x61'),{'tablePasteChainId':_0x24c754}),_0x1d9865[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x1d9865,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0}),_0x28999d[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x3')](_0x28999d,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0});const _0xc10ca8=_0x4338f5[_0x4209('0x70')](_0x10c032[_0x4209('0x14')](({element:_0x137f22})=>_0x137f22),{'formatGroupId':_0x316d98()},[],_0x4209('0x77'),{'tablePasteChainId':_0x24c754});if(_0xc10ca8){const _0x5eb185=_0xc10ca8[_0x4209('0x37')](),_0x366a96=[];for(const {element:_0x4b6b01,attributes:_0x142be2}of _0x10c032){if(!_0x142be2)continue;const _0x786008=_0x5f0254['model'][_0x4209('0x28')](_0x4b6b01),_0x3d88ce=_0x5eb185[_0x4209('0x15')](_0x5f5707=>_0x5f5707['getRange']()[_0x4209('0x97')](_0x786008));_0x3d88ce&&_0x366a96[_0x4209('0x46')]([_0x3d88ce[_0x4209('0x64')],_0x142be2]);}_0x366a96[_0x4209('0x3e')]&&_0xc10ca8[_0x4209('0x41')](_0x4209('0x5f'),Object[_0x4209('0x57')](_0x366a96));}_0x2f02af=null;}));},{'priority':_0x499473[_0x4209('0x52')]+0xa}),_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x1'))['on'](_0x4209('0x71'),(_0x4ef8fd,_0x450ceb)=>{const [_0x4c264e,_0x35511a,,_0x38e7b6]=_0x450ceb;if(!_0x2f02af)return;_0x4ef8fd[_0x4209('0x9f')]();const _0x36fe33=_0x4c264e[_0x4209('0x85')],_0x10f05b=_0x35511a,_0x15e893=ce(_0x36fe33),_0x276942=ce(_0x10f05b);_0x4ef8fd[_0x4209('0x80')]=_0x36fe33;let _0x7f9782=null,_0x2911fc=null;if(_0x276942||_0x15e893){if(_0x15e893&&!_0x276942){_0x38e7b6[_0x4209('0x83')](_0x36fe33[_0x4209('0x73')](0x0));for(const _0x3d1a63 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0x3d1a63,_0x36fe33,_0x4209('0x87'));const _0x771867=_0x2f02af[_0x4209('0x2b')][_0x4209('0x99')](_0x4c264e[_0x4209('0x6f')]),_0x461d84=_0x2f02af[_0x4209('0x65')][_0x4209('0x99')](_0x4c264e[_0x4209('0x8')]);_0x771867||_0x461d84||(_0x7f9782=_0x38e7b6[_0x4209('0x40')](_0x36fe33));}else _0x276942&&!_0x15e893&&(_0x2911fc=_0x38e7b6['createRangeIn'](_0x36fe33));}else{const _0x24e6f1=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e')),_0x411dda=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e'));_0x38e7b6[_0x4209('0x72')](_0x38e7b6[_0x4209('0x40')](_0x36fe33),_0x411dda),_0x38e7b6['insert'](_0x24e6f1,_0x36fe33,0x0);for(const _0xaadd85 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0xaadd85,_0x24e6f1,_0x4209('0x87'));_0x7f9782=_0x38e7b6['createRangeOn'](_0x24e6f1),_0x2911fc=_0x38e7b6[_0x4209('0x28')](_0x411dda);}const _0x9f1535=Array['from'](_0x10f05b[_0x4209('0x4a')]())[_0x4209('0x63')](([_0x58c888])=>le['includes'](_0x58c888));_0x2f02af[_0x4209('0x78')][_0x4209('0x46')]({'element':_0x36fe33,'attributes':_0x9f1535[_0x4209('0x3e')]?Object[_0x4209('0x57')](_0x9f1535):null}),_0x7f9782&&_0x2f02af[_0x4209('0x84')]['push'](_0x7f9782),_0x2911fc&&_0x2f02af[_0x4209('0x50')]['push'](_0x2911fc);},{'priority':_0x4209('0x52')}),_0x38bdd0['on']('insertColumns',(_0x531416,_0x4b88b9)=>{const [_0x3d6aec,_0x33fd0e={}]=_0x4b88b9;if(!_0x2f02af)return;const _0x2690c4=_0x33fd0e['at']||0x0,_0x23822a=_0x33fd0e['columns']||0x1;_0x2f02af[_0x4209('0x65')]=new Array(_0x23822a)['fill'](_0x2690c4)[_0x4209('0x14')]((_0x350aa1,_0x4143fc)=>_0x350aa1+_0x4143fc);for(const {cell:_0x5d3c7e}of _0x38bdd0[_0x4209('0x92')](_0x3d6aec,{'startColumn':_0x2690c4,'endColumn':_0x2690c4+_0x23822a-0x1}))_0x2f02af[_0x4209('0x16')][_0x4209('0x46')](_0x5f0254[_0x4209('0x9a')]['createRangeOn'](_0x5d3c7e));},{'priority':_0x4209('0x67')}),_0x38bdd0['on']('insertRows',(_0x5cca8f,_0x53a7a6)=>{const [_0x3c037,_0x3b4689={}]=_0x53a7a6;if(!_0x2f02af)return;const _0x4ba825=_0x3b4689['at']||0x0,_0x1a675d=_0x3b4689['rows']||0x1;_0x2f02af[_0x4209('0x2b')]=new Array(_0x1a675d)[_0x4209('0x2d')](_0x4ba825)[_0x4209('0x14')]((_0x4d1e1a,_0x557b27)=>_0x4d1e1a+_0x557b27);for(const {cell:_0x26e5a4}of _0x38bdd0[_0x4209('0x92')](_0x3c037,{'startRow':_0x4ba825,'endRow':_0x4ba825+_0x1a675d-0x1}))_0x2f02af[_0x4209('0x7e')]['push'](_0x5f0254[_0x4209('0x9a')][_0x4209('0x28')](_0x26e5a4));},{'priority':_0x4209('0x67')}),_0x4338f5[_0x4209('0x8e')][_0x4209('0x75')](_0xdd880c=>{if(_0xdd880c[_0x4209('0x44')]&&_0xdd880c[_0x4209('0x44')][_0x4209('0x26')]('tablePaste'))return _0xdd880c[_0x4209('0x23')]?{}:{'type':'insertion','content':_0x45a8f2(_0x5f0254[_0x4209('0x2f')],_0x4209('0x27'))};});const _0x312bba=()=>{};for(const _0x296e10 of[_0x4209('0x4d'),_0x4209('0x61'),_0x4209('0x95'),_0x4209('0x77')])_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x296e10,_0x4209('0x8a'),_0x312bba),_0x4338f5['_suggestionFactory'][_0x4209('0x1e')](_0x4209('0x45'),_0x296e10,'join',_0x312bba);_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0xa4'),'tablePasteCell',_0x4209('0x8b'),_0x312bba),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0xa4'),_0x4209('0x77'),_0x4209('0x0'),(_0x27a96b,_0x4a6924,_0x254f97)=>{const _0x2c702f=_0x27a96b[_0x4209('0x14')](_0x5dd025=>_0x5dd025[_0x4209('0x7c')]())[_0x4209('0x63')](_0x28fd86=>_0x28fd86),_0x23f948=new Map(_0x2c702f[_0x4209('0x14')](_0x5c6690=>[_0x5c6690,null]));if(_0x2f02af)for(const {element:_0x104f83,attributes:_0x3cb690}of _0x2f02af[_0x4209('0x78')])_0x3cb690&&_0x23f948[_0x4209('0x2')](_0x104f83,_0x3cb690);else{if(_0x254f97&&_0x254f97[_0x4209('0x5f')])for(const [_0x5550cf,_0x20aa17]of Object['entries'](_0x254f97[_0x4209('0x5f')])){const _0x461b78=_0x5f0254[_0x4209('0x9a')]['markers'][_0x4209('0x24')](_0x5550cf),_0x3002ef=_0x461b78?_0x461b78[_0x4209('0x42')]()[_0x4209('0x7c')]():null;_0x3002ef&&_0x23f948['set'](_0x3002ef,_0x20aa17);}}_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x446149=>{for(const [_0xa55a61,_0x44c9db]of _0x23f948)_0x446149[_0x4209('0x98')]({...ae,..._0x44c9db},_0xa55a61);});});const _0x5deecf=(_0x1c1c64,_0x1b6693)=>{_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x1c1c64,'tablePaste',_0x1b6693,(_0x21dd21,_0x24370a,_0x153ce4)=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x46c027=>{const _0x6c2118=[];for(const _0x19dfc1 of _0x21dd21){const _0x275b31=_0x19dfc1[_0x4209('0x4')][_0x4209('0x88')];_0x275b31['is'](_0x4209('0x54'),'tableCellSuggestion')&&_0x6c2118[_0x4209('0x46')](_0x275b31);}_0x4338f5[_0x4209('0xa1')]['getSuggestionCallback'](_0x1c1c64,null,_0x1b6693)(_0x21dd21,_0x24370a,_0x153ce4);for(const _0x771add of _0x6c2118)'$graveyard'!=_0x771add[_0x4209('0x49')]['rootName']&&_0x46c027['unwrap'](_0x771add);});});};_0x5deecf(_0x4209('0x55'),'accept'),_0x5deecf(_0x4209('0x55'),_0x4209('0x8b')),_0x5deecf('deletion',_0x4209('0x0')),_0x5deecf(_0x4209('0x45'),_0x4209('0x8b')),_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x4209('0x95'),_0x4209('0x8b'),_0x593e03=>{const _0x174165=_0x593e03[_0x4209('0x14')](_0x4ed84d=>_0x4ed84d[_0x4209('0x7c')]()),_0x360758=_0x174165[0x0][_0x4209('0x89')](_0x4209('0x9d')),{minRow:_0x137810,maxRow:_0x5c58d8}=_0x2b8a38['_getCoordsForCells'](_0x174165);_0x38bdd0['removeRows'](_0x360758,{'at':_0x137810,'rows':_0x5c58d8-_0x137810+0x1});}),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0x55'),_0x4209('0x61'),'discard',_0xa4a0b6=>{const _0x3a7315=_0xa4a0b6[_0x4209('0x14')](_0x3b8378=>_0x3b8378[_0x4209('0x7c')]()),_0x18bff0=_0x3a7315[0x0]['findAncestor'](_0x4209('0x9d')),{minColumn:_0x4514cb,maxColumn:_0x247379}=_0x2b8a38[_0x4209('0x68')](_0x3a7315);_0x38bdd0[_0x4209('0x7f')](_0x18bff0,{'at':_0x4514cb,'columns':_0x247379-_0x4514cb+0x1});});const _0x3a5848=(_0x30d3e4,_0x49bc46)=>{if(!_0x49bc46[_0x4209('0x44')]||!_0x49bc46[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d')))return;const _0x33196d=_0x49bc46['attributes']['tablePasteChainId'],_0x3d613e=_0x4338f5[_0x4209('0x91')]()[_0x4209('0x63')](_0x1cd059=>_0x1cd059['isInContent']&&_0x1cd059[_0x4209('0x8d')]&&_0x1cd059['attributes'][_0x4209('0x9')]==_0x33196d);_0x3d613e['length']&&_0x49bc46[_0x4209('0xa')]()['length']!=_0x3d613e['length']&&_0x3d613e[_0x4209('0xa3')]((_0x3eb345,_0x3fb8a0)=>(_0x3eb345[_0x4209('0x5c')]=_0x3fb8a0,_0x3fb8a0[_0x4209('0x23')]=_0x3eb345,_0x3fb8a0));};function _0x5a531a(_0x260ef6,_0x5b93c2=!0x0){const {id:_0x3d5ff8}=_0x4338f5[_0x4209('0x38')](_0x260ef6[_0x4209('0x47')]),_0x3cea68=[_0x4209('0x29'),'ck-suggestion-marker-insertion'],_0xfa4853=_0x4338f5[_0x4209('0x74')][_0x4209('0x99')](_0x260ef6[_0x4209('0x47')]);return _0xfa4853&&_0x3cea68[_0x4209('0x46')](_0x4209('0x90')),{'classes':_0x3cea68,'attributes':{'data-suggestion':_0x3d5ff8},'priority':_0xfa4853&&_0x5b93c2?0xbc2:0xbb8};}_0x4338f5['on'](_0x4209('0x13'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x4338f5['on'](_0x4209('0x59'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](()=>{let _0x1f039f=!0x1;const _0x30de59=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x4c')]());for(const {name:_0x2f20f0,data:_0x4e5198}of _0x30de59){const {group:_0x12c3b2,type:_0x580828,id:_0x551833}=_0x4338f5[_0x4209('0x38')](_0x2f20f0);if('suggestion'!=_0x12c3b2||_0x4209('0x45')!=_0x580828||_0x4e5198['oldRange'])continue;if(!_0x4338f5['hasSuggestion'](_0x551833))continue;const _0x3a84c9=_0x4338f5[_0x4209('0x3d')](_0x551833)[_0x4209('0x6b')](),_0x57a46e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')]('Users')['me'];for(const _0x3af761 of _0x4338f5[_0x4209('0x91')]()){if(!_0x3af761[_0x4209('0x9e')]||_0x3af761[_0x4209('0x8f')]!=_0x57a46e)continue;if(_0x4209('0xa4')!=_0x3af761[_0x4209('0x3f')]||_0x4209('0x77')!=_0x3af761[_0x4209('0x44')])continue;if(_0x3af761[_0x4209('0x6b')]()[_0x4209('0x51')](_0x350997=>_0x3a84c9[_0x4209('0x9c')](_0x14b68b=>_0x14b68b[_0x4209('0x39')](_0x350997,!0x0))))for(const _0x2bfde0 of _0x3af761['getAllAdjacentSuggestions']())_0x2bfde0['isInContent']&&(_0x2bfde0[_0x4209('0x8b')](),_0x1f039f=!0x0);}}return _0x1f039f;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x197ad2=>{const _0x1a52b7=_0x5f0254['commands'][_0x4209('0x24')](_0x4209('0x35'));if(!_0x1a52b7||!_0x1a52b7[_0x4209('0x53')][_0x4209('0x58')](_0x197ad2[_0x4209('0x82')]))return!0x1;let _0x438955=!0x1;const _0x15f30c=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x36f011=_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x7d')](),_0x22c9c6=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')]['getChangedMarkers']())[_0x4209('0x63')](({name:_0x497c98,data:_0x480449})=>{const {group:_0xd611a5,subType:_0x2ad14e,authorId:_0x29b0ce}=_0x4338f5[_0x4209('0x38')](_0x497c98);return'suggestion'==_0xd611a5&&'tablePaste'==_0x2ad14e&&_0x29b0ce==_0x15f30c['id']&&!_0x480449[_0x4209('0x6c')];});for(const _0x23b31e of _0x36f011){if(_0x4209('0x1c')!=_0x23b31e[_0x4209('0x3f')]||'tableCellSuggestion'!=_0x23b31e[_0x4209('0x64')]||0x1!=_0x23b31e['length'])continue;const _0x4037ed=_0x197ad2[_0x4209('0x43')](_0x23b31e[_0x4209('0x3c')],_0x23b31e['position'][_0x4209('0x1f')](0x1));if(!_0x22c9c6[_0x4209('0x15')](({data:_0x3ad403})=>_0x3ad403[_0x4209('0xa2')]['isEqual'](_0x4037ed)))for(const {name:_0x2a0fc4,data:_0x185ad0}of _0x22c9c6)if(_0x4037ed[_0x4209('0x39')](_0x185ad0[_0x4209('0xa2')])){_0x197ad2['updateMarker'](_0x2a0fc4,{'range':_0x4037ed}),_0x438955=!0x0;break;}}return _0x438955;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x623af6=>{let _0x581237=!0x1;const _0x432c89=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x1152fe=_0x4338f5[_0x4209('0x91')]()['filter'](_0x31cf03=>_0x31cf03[_0x4209('0x9e')]&&_0x31cf03['author']==_0x432c89),_0x4708cd=new Set(),_0x250d8f=new Set();for(const _0x65e646 of _0x1152fe)if(_0x4209('0x4d')==_0x65e646['subType'])for(const _0x124c54 of _0x65e646[_0x4209('0x37')]()){const _0x142d22=_0x124c54[_0x4209('0x42')]()[_0x4209('0x7c')]();if(_0x142d22){if(_0x142d22['is'](_0x4209('0x54'),_0x4209('0x4e'))&&ce(_0x142d22)){_0x65e646['removeMarker'](_0x124c54[_0x4209('0x64')]),_0x4708cd[_0x4209('0x7')](_0x142d22),_0x581237=!0x0;const _0x1a380d=_0x142d22[_0x4209('0x96')],_0x54df7e=_0x142d22[_0x4209('0x22')],_0x56f5e0=_0x1a380d&&_0x1a380d['is'](_0x4209('0x54'),_0x4209('0x4e')),_0x1140e0=_0x54df7e&&_0x54df7e['is'](_0x4209('0x54'),'tableCellSuggestion');_0x56f5e0&&!_0x4708cd['has'](_0x1a380d)&&_0x250d8f[_0x4209('0x7')](_0x1a380d),_0x1140e0&&!_0x4708cd[_0x4209('0x58')](_0x54df7e)&&_0x250d8f['add'](_0x54df7e);}else _0x142d22['is']('element',_0x4209('0x30'))&&_0x142d22['isEmpty']&&(_0x65e646[_0x4209('0x66')](_0x124c54[_0x4209('0x64')]),_0x581237=!0x0);}}else{if(_0x4209('0x77')==_0x65e646[_0x4209('0x44')]){if(!_0x65e646[_0x4209('0x8d')]||!_0x65e646['attributes'][_0x4209('0x9')])continue;const _0x139e3a=_0x65e646['attributes'][_0x4209('0x5f')];if(_0x139e3a&&Object[_0x4209('0x81')](_0x139e3a)[_0x4209('0x3e')])continue;const _0x409fbc=_0x65e646[_0x4209('0x8d')]['tablePasteChainId'];let _0x3a845b=!0x0,_0x4d9f73=!0x0;for(const _0x3a9ada of _0x1152fe)if(_0x3a9ada[_0x4209('0x44')]&&_0x3a9ada[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d'))){if(!_0x3a9ada[_0x4209('0x8d')]['tablePasteChainId']){_0x4d9f73=!0x1;break;}if(_0x3a9ada['id']!=_0x65e646['id']&&_0x3a9ada['attributes'][_0x4209('0x9')]==_0x409fbc){_0x3a845b=!0x1;break;}}_0x4d9f73&&_0x3a845b&&(_0x65e646[_0x4209('0xc')](),_0x581237=!0x0);}}for(const _0x54308d of _0x4708cd)_0x623af6['remove'](_0x54308d);for(const _0x133852 of _0x250d8f)_0x623af6[_0x4209('0x25')](_0x133852);return _0x581237;}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x5d'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x21705d,_0x3382de)=>_0x5a531a(_0x21705d),'converterPriority':_0x4209('0x52')}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x9b'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x5b47be,_0x51f5f8)=>_0x51f5f8[_0x4209('0x5b')][_0x4209('0x94')]?_0x5a531a(_0x5b47be,!0x1):null,'converterPriority':'high'});const _0x1de52b=_0x5f0254[_0x4209('0x93')]['view'];this[_0x4209('0x32')](_0x1de52b['document'],'clipboardOutput',(_0x14ead5,_0x11c718)=>{const _0x4fdc1f=[];for(const _0x1001d7 of _0x1de52b['createRangeIn'](_0x11c718[_0x4209('0x7b')])[_0x4209('0x62')]())_0x1001d7['is'](_0x4209('0x54'),_0x4209('0x20'))&&_0x4fdc1f['push'](_0x1001d7);_0x1de52b['change'](_0x31198d=>{for(const _0x5e122d of _0x4fdc1f)_0x31198d[_0x4209('0x5e')](_0x31198d[_0x4209('0x40')](_0x5e122d),_0x31198d[_0x4209('0x36')](_0x5e122d)),_0x31198d[_0x4209('0x83')](_0x5e122d);});});}}function ce(_0x39f459){if(_0x39f459[_0x4209('0x21')])return!0x0;const _0x4246fc=_0x39f459['getChild'](0x0);return _0x4246fc['is'](_0x4209('0x54'),_0x4209('0x30'))&&_0x4246fc[_0x4209('0x21')];}function fe(_0x593ec6,_0x1ae641={},_0x1b9ff8){for(const {isAnchor:_0x9ad7ee,cellHeight:_0x4f28f9,cellWidth:_0x240ba4}of _0x1b9ff8[_0x4209('0x92')](_0x593ec6,{'includeAllSlots':!0x0,..._0x1ae641}))if(!_0x9ad7ee||0x1!=_0x4f28f9||0x1!=_0x240ba4)return!0x1;return!0x0;}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @module track-changes/integrations/tablecolumnresize
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import type { Element } from 'ckeditor5/src/engine';
6
+ import type Suggestion from '../suggestion';
7
+ import type { Description } from '../suggestiondescriptionfactory';
8
+ /**
9
+ * Provides track changes plugin integration for table column resize feature.
10
+ */
11
+ export default class TrackChangesTableColumnResize extends Plugin {
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ afterInit(): void;
16
+ handleResizeTableWidthCommand(executeCommand: Function, options: {
17
+ table?: Element;
18
+ tableWidth?: string;
19
+ columnWidths?: string;
20
+ }): void;
21
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46b6=['columnWidths','commandParams','getContainedElement','formatGroupId','TrackChangesEditing','subType','change','data','Users','getAttribute','TableColumnResizeEditing','accept','registerCustomCallback','model','tableWidth','discard','formatBlock','locale','markBlockFormat','table','afterInit','handleSuggestionDescription','getSuggestions','getSelectedElement','editor','_descriptionFactory','getSuggestionCallback','get','enableCommand','format','*Format:*\x20resize\x20table','registerDescriptionCallback','resizeTable','setAttribute','handleResizeTableWidthCommand','plugins','_suggestionFactory','bind','selection','resizeTableWidth'];(function(_0x28db23,_0x46b642){const _0x8479d8=function(_0x1ed34a){while(--_0x1ed34a){_0x28db23['push'](_0x28db23['shift']());}};_0x8479d8(++_0x46b642);}(_0x46b6,0x10f));const _0x8479=function(_0x28db23,_0x46b642){_0x28db23=_0x28db23-0x0;let _0x8479d8=_0x46b6[_0x28db23];return _0x8479d8;};import{Plugin as _0x12405a}from'ckeditor5/src/core';import{getTranslation as _0x5a093d}from'../utils/common-translations';export default class yt extends _0x12405a{[_0x8479('0x1d')](){if(!this[_0x8479('0x21')][_0x8479('0x4')]['has'](_0x8479('0x13')))return;const _0x5d236f=this[_0x8479('0x21')]['plugins'][_0x8479('0x24')](_0x8479('0xd'));_0x5d236f[_0x8479('0x25')](_0x8479('0x8'),this[_0x8479('0x3')][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x25')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x5')][_0x8479('0x15')](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x14'),_0x5d236f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x8479('0x18'))),_0x5d236f['_suggestionFactory']['registerCustomCallback'](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x18'),_0x5d236f[_0x8479('0x5')][_0x8479('0x23')](_0x8479('0x19'),null,_0x8479('0x14'))),_0x5d236f[_0x8479('0x22')][_0x8479('0x0')](this[_0x8479('0x1e')][_0x8479('0x6')](this));}[_0x8479('0x3')](_0x2e9343,_0x44bf3a){const _0x439fff=this[_0x8479('0x21')][_0x8479('0x4')][_0x8479('0x24')](_0x8479('0xd')),_0x565361=_0x44bf3a[_0x8479('0x1c')]||this[_0x8479('0x21')][_0x8479('0x16')]['document'][_0x8479('0x7')][_0x8479('0x20')]();this[_0x8479('0x21')][_0x8479('0x16')][_0x8479('0xf')](_0x5e487d=>{let _0x2a8679=_0x565361[_0x8479('0x12')](_0x8479('0x17'))||null,_0x3b4a3a=_0x565361[_0x8479('0x12')](_0x8479('0x9'))||null;const _0x38c011=_0x44bf3a[_0x8479('0x17')]||_0x2a8679,_0x1f7fc8=_0x44bf3a[_0x8479('0x9')]||_0x3b4a3a,_0x1afe85=this[_0x8479('0x21')][_0x8479('0x4')]['get'](_0x8479('0x11'))['me'];for(const _0x45af1c of _0x439fff[_0x8479('0x1f')]()){const _0x2fbfcc=_0x45af1c[_0x8479('0xb')]();if(_0x8479('0x1')===_0x45af1c[_0x8479('0xe')]&&_0x2fbfcc===_0x565361){_0x45af1c['author']!==_0x1afe85&&_0x45af1c[_0x8479('0x18')](),_0x2a8679=_0x45af1c[_0x8479('0x10')][_0x8479('0xa')][0x0]['tableWidth'],_0x3b4a3a=_0x45af1c['data'][_0x8479('0xa')][0x0][_0x8479('0x9')];break;}}_0x5e487d[_0x8479('0x2')](_0x8479('0x17'),_0x38c011,_0x565361),_0x5e487d[_0x8479('0x2')](_0x8479('0x9'),_0x1f7fc8,_0x565361),_0x439fff[_0x8479('0x1b')](_0x565361,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a8679,'columnWidths':_0x3b4a3a}],'formatGroupId':'resizeTable'},[],_0x8479('0x1'));});}[_0x8479('0x1e')](_0x135eaa){const {data:_0x4ab723}=_0x135eaa;if(_0x4ab723&&'resizeTable'===_0x4ab723[_0x8479('0xc')]){const _0x4f2c13=_0x8479('0x27');return{'type':_0x8479('0x26'),'content':_0x5a093d(this[_0x8479('0x21')][_0x8479('0x1a')],_0x4f2c13)};}}}
23
+ const _0x165b=['registerDescriptionCallback','*Format:*\x20resize\x20table','getSuggestions','model','Users','plugins','getSelectedElement','registerCustomCallback','getAttribute','getTableColumnsWidths','has','author','formatBlock','getSuggestionCallback','TrackChangesEditing','change','resizeTable','handleSuggestionDescription','handleResizeTableWidthCommand','enableCommand','subType','locale','_suggestionFactory','selection','markBlockFormat','TableColumnResizeEditing','editor','document','afterInit','tableWidth','resizeTableWidth','resizeColumnWidths','discard','getColumnGroupElement','get','bind','data','formatGroupId','commandParams','format','getContainedElement','columnWidths'];(function(_0x423058,_0x165baf){const _0x4afd2e=function(_0x1def6b){while(--_0x1def6b){_0x423058['push'](_0x423058['shift']());}};_0x4afd2e(++_0x165baf);}(_0x165b,0x17a));const _0x4afd=function(_0x423058,_0x165baf){_0x423058=_0x423058-0x0;let _0x4afd2e=_0x165b[_0x423058];return _0x4afd2e;};import{Plugin as _0x1afb17}from'ckeditor5/src/core';import{getTranslation as _0x406a0b}from'../utils/common-translations';export default class kt extends _0x1afb17{[_0x4afd('0x1c')](){if(!this['editor'][_0x4afd('0x5')][_0x4afd('0xa')](_0x4afd('0x19')))return;const _0x1856b6=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')](_0x4afd('0xe'));_0x1856b6[_0x4afd('0x13')](_0x4afd('0x1e'),this[_0x4afd('0x12')]['bind'](this)),_0x1856b6['enableCommand'](_0x4afd('0x1f'),this['handleResizeTableWidthCommand'][_0x4afd('0x23')](this)),_0x1856b6[_0x4afd('0x16')][_0x4afd('0x7')](_0x4afd('0xc'),_0x4afd('0x10'),'accept',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,_0x4afd('0x20'))),_0x1856b6['_suggestionFactory'][_0x4afd('0x7')]('formatBlock',_0x4afd('0x10'),'discard',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,'accept')),_0x1856b6['_descriptionFactory'][_0x4afd('0x0')](this['handleSuggestionDescription'][_0x4afd('0x23')](this));}[_0x4afd('0x12')](_0x2bbed0,_0x28c5ce){const _0x3f5afd=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TrackChangesEditing'),_0x1d3ad1=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TableColumnResizeEditing'),_0x1c4f46=_0x28c5ce['table']||this['editor'][_0x4afd('0x3')][_0x4afd('0x1b')][_0x4afd('0x17')][_0x4afd('0x6')]();this[_0x4afd('0x1a')][_0x4afd('0x3')][_0x4afd('0xf')](()=>{const _0x816260=_0x1d3ad1[_0x4afd('0x21')](_0x1c4f46);let _0xae9cb0=_0x816260?_0x1d3ad1[_0x4afd('0x9')](_0x816260):null,_0x42cf95=_0x1c4f46[_0x4afd('0x8')](_0x4afd('0x1d'))||null;const _0x478d98=_0x28c5ce['tableWidth']||_0x42cf95,_0x14a76f=_0x28c5ce[_0x4afd('0x29')]||_0xae9cb0,_0x4b46b3=this[_0x4afd('0x1a')][_0x4afd('0x5')][_0x4afd('0x22')](_0x4afd('0x4'))['me'];for(const _0x206055 of _0x3f5afd[_0x4afd('0x2')]()){const _0x13ea2e=_0x206055[_0x4afd('0x28')]();if(_0x4afd('0x10')===_0x206055[_0x4afd('0x14')]&&_0x13ea2e===_0x1c4f46){_0x206055[_0x4afd('0xb')]!==_0x4b46b3&&_0x206055[_0x4afd('0x20')]();const _0x17b4a7=_0x206055[_0x4afd('0x24')][_0x4afd('0x26')];_0x42cf95=_0x17b4a7[0x0][_0x4afd('0x1d')],_0xae9cb0=_0x17b4a7[0x0][_0x4afd('0x29')];break;}}_0x2bbed0({'table':_0x1c4f46,'tableWidth':_0x478d98,'columnWidths':_0x14a76f}),_0x3f5afd[_0x4afd('0x18')](_0x1c4f46,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x42cf95,'columnWidths':_0xae9cb0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4afd('0x11')](_0x56b49d){const {data:_0x19ea7c}=_0x56b49d;if(_0x19ea7c&&_0x4afd('0x10')===_0x19ea7c[_0x4afd('0x25')]){const _0x28f5cb=_0x4afd('0x1');return{'type':_0x4afd('0x27'),'content':_0x406a0b(this[_0x4afd('0x1a')][_0x4afd('0x15')],_0x28f5cb)};}}}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @module track-changes/integrations/tableheadings
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
7
+ */
8
+ export default class TrackChangesTableHeadings extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ static get requires(): PluginDependencies;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x259d=['getChild','removeClass','mapper','headingColumns','markerNameToElements','change','commands','requires','data-suggestion','includes','markerRange','FORMAT_HEADER_COLUMN','model','consume','selection','_splitMarkerName','nodeAfter','commandName','commandParams','FORMAT_REGULAR_COLUMN','index','highest','last','activeMarkers','showSuggestionHighlights','table','headingRows','TrackChangesEditing','unbindElementFromMarkerName','editing','document','get','ck-suggestion-marker--active','createRange','getSuggestion','registerCustomCallback','accept','data','findAncestor','editor','addClass','consumable','afterInit','bindElementToMarker','getAttribute','*Format:*\x20%0','name','getSelectionAffectedTableCells','first','TableUtils','formatBlock','createPositionAfter','downcastDispatcher','options','_suggestionFactory','getColumnIndexes','getRowIndexes','setTableRowHeader','FORMAT_HEADER_ROW','setAttribute','cell','createPositionBefore','parent','_acceptFormatSuggestionCallbackFactory','markerName','_descriptionFactory','forceValue','getCellLocation','item','locale','ck-suggestion-marker-','TableEditing','toViewElement','childCount','writer','has','plugins','removeAttribute','enableCommand','createTableWalker','value','nodeBefore','setTableColumnHeader','markBlockFormat'];(function(_0x51758e,_0x259d30){const _0x125f77=function(_0x5d2fce){while(--_0x5d2fce){_0x51758e['push'](_0x51758e['shift']());}};_0x125f77(++_0x259d30);}(_0x259d,0x79));const _0x125f=function(_0x51758e,_0x259d30){_0x51758e=_0x51758e-0x0;let _0x125f77=_0x259d[_0x51758e];return _0x125f77;};import{Plugin as _0x582a8b}from'ckeditor5/src/core';import _0x1d9b61 from'./table';import{getTranslation as _0x374d0c}from'../utils/common-translations';export default class kt extends _0x582a8b{static get[_0x125f('0x36')](){return[_0x1d9b61];}[_0x125f('0x5')](){const _0xbd761c=this[_0x125f('0x2')];if(!_0xbd761c['plugins'][_0x125f('0x26')](_0x125f('0x22')))return;const _0x121eb2=_0xbd761c[_0x125f('0x20')],_0x51d0f8=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x125f('0x4a')),_0x3f09ca=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x545404=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x1d9b61);function _0x51c04e({showActiveMarker:_0xbf7ffd=!0x0,setDataAttribute:_0xd1b463=!0x0}={}){return(_0xd9bfbe,_0x42ff0b,_0x14265f)=>{const {type:_0x21d292,id:_0x19ffa1}=_0x51d0f8['_splitMarkerName'](_0x42ff0b[_0x125f('0x1b')]),_0x886276=_0x51d0f8[_0x125f('0x51')](_0x19ffa1);if(!_0x886276[_0x125f('0x0')]||_0x125f('0x2d')!=_0x886276[_0x125f('0x0')]['commandName'])return;if(_0x42ff0b[_0x125f('0x1f')])return void _0xd9bfbe['stop']();if(!_0x14265f[_0x125f('0x4')][_0x125f('0x3c')](_0x42ff0b[_0x125f('0x39')],_0xd9bfbe[_0x125f('0x9')]))return;const _0x4b6e17=_0x42ff0b[_0x125f('0x39')]['start'][_0x125f('0x3f')],_0x2789cd=_0x42ff0b['markerRange']['end'][_0x125f('0x2c')],_0xe1ffe3=_0x4b6e17[_0x125f('0x19')][_0x125f('0x19')],{column:_0x4efcdf}=_0x3f09ca[_0x125f('0x1e')](_0x4b6e17),{column:_0x4b3011}=_0x3f09ca[_0x125f('0x1e')](_0x2789cd);for(let _0x2988f3=_0x4efcdf;_0x2988f3<=_0x4b3011;_0x2988f3++){const _0x398f77=_0x3f09ca[_0x125f('0x2a')](_0xe1ffe3,{'column':_0x2988f3,'includeAllSlots':!0x1});for(const _0x394420 of _0x398f77){const _0x5c850d=_0x394420[_0x125f('0x17')],_0x59f76a=_0x14265f['mapper'][_0x125f('0x23')](_0x5c850d);_0x14265f['writer']['addClass'](_0x125f('0x21')+_0x21d292,_0x59f76a),_0xd1b463&&_0x14265f['writer'][_0x125f('0x16')](_0x125f('0x37'),_0x19ffa1,_0x59f76a),_0x14265f['mapper'][_0x125f('0x6')](_0x59f76a,_0x42ff0b[_0x125f('0x1b')]),_0xbf7ffd&&(_0x51d0f8[_0x125f('0x46')][_0x125f('0x38')](_0x42ff0b['markerName'])?_0x14265f[_0x125f('0x25')][_0x125f('0x3')](_0x125f('0x4f'),_0x59f76a):_0x14265f[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x4f'),_0x59f76a));}}};}_0x51d0f8[_0x125f('0x29')](_0x125f('0x14'),(_0x1e980d,_0x3e4733)=>{const _0x5221f5=_0x3f09ca['getSelectionAffectedTableCells'](_0xbd761c[_0x125f('0x3b')]['document'][_0x125f('0x3d')]),_0x4f720c=_0x3f09ca[_0x125f('0x13')](_0x5221f5),_0x57045f=_0x5221f5[0x0][_0x125f('0x1')](_0x125f('0x48')),_0x292a9e=_0x57045f[_0x125f('0x7')](_0x125f('0x49'))||0x0,_0x8235c9=_0x3e4733&&null!==_0x3e4733['forceValue']?_0x3e4733['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x14'))[_0x125f('0x2b')],_0x32ff80=_0x8235c9?_0x4f720c[_0x125f('0x45')]:_0x4f720c[_0x125f('0xb')],_0x2ac05f=_0x57045f[_0x125f('0x2f')](_0x32ff80);let _0x333aa0;if(_0x8235c9){const _0x301744=_0x57045f['getChild'](_0x292a9e);if(_0x2ac05f['index']<_0x301744[_0x125f('0x43')])return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x301744['getChild'](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2ac05f[_0x125f('0x2f')](_0x2ac05f[_0x125f('0x24')]-0x1)));}else{const _0x2eb5f8=_0x57045f[_0x125f('0x2f')](_0x292a9e-0x1);if(!_0x2eb5f8)return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c['model'][_0x125f('0x18')](_0x2ac05f[_0x125f('0x2f')](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2eb5f8[_0x125f('0x2f')](_0x2eb5f8[_0x125f('0x24')]-0x1)));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8['markBlockFormat'](_0x333aa0,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x8235c9}]},[],_0x125f('0x14'));});}),_0x51d0f8[_0x125f('0x29')](_0x125f('0x2d'),(_0x327c78,_0x394169)=>{const _0x46afab=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x5c2c08=_0x46afab[_0x125f('0xa')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x4d')][_0x125f('0x3d')]),_0x4ca9ce=_0x46afab[_0x125f('0x12')](_0x5c2c08),_0x40ec77=_0x5c2c08[0x0]['findAncestor'](_0x125f('0x48')),_0x2c3d3c=_0x40ec77[_0x125f('0x7')](_0x125f('0x32'))||0x0,_0x5bd6b8=_0x394169&&null!==_0x394169[_0x125f('0x1d')]?_0x394169['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x2d'))[_0x125f('0x2b')];let _0x2115aa;const _0x2adf6e=_0x40ec77['getChild'](0x0),_0x579f9d=_0x5bd6b8?_0x4ca9ce[_0x125f('0x45')]:_0x4ca9ce[_0x125f('0xb')],_0x958a7d=_0x46afab['createTableWalker'](_0x40ec77,{'startRow':0x0,'column':_0x579f9d,'includeAllSlots':!0x1}),_0x32d3dc=Array['from'](_0x958a7d)[0x0][_0x125f('0x17')];if(_0x5bd6b8){const _0x26a755=_0x2adf6e[_0x125f('0x2f')](_0x2c3d3c);if(_0x32d3dc['isBefore'](_0x26a755))return;_0x2115aa=_0xbd761c[_0x125f('0x3b')]['createRange'](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x26a755),_0xbd761c['model'][_0x125f('0xe')](_0x32d3dc));}else{const _0x4db355=_0x2adf6e['getChild'](_0x2c3d3c-0x1);if(!_0x4db355)return;_0x2115aa=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x32d3dc),_0xbd761c['model'][_0x125f('0xe')](_0x4db355));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8[_0x125f('0x2e')](_0x2115aa,{'commandName':_0x125f('0x2d'),'commandParams':[{'forceValue':_0x5bd6b8}]},[],'setTableColumnHeader');});}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('addMarker:suggestion',_0x51c04e(),{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x0')][_0x125f('0xf')]['on']('addMarker:suggestion',(_0x5ad84b,_0x50c037,_0x235847)=>{_0x235847[_0x125f('0x10')][_0x125f('0x47')]&&_0x51c04e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ad84b,_0x50c037,_0x235847);},{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('removeMarker:suggestion',(_0x1f8ddd,_0xd0ab76,_0x2fc09b)=>{const {type:_0x5d2d4d,id:_0x267637}=_0x51d0f8[_0x125f('0x3e')](_0xd0ab76[_0x125f('0x1b')]),_0x254172=_0x51d0f8['getSuggestion'](_0x267637);if(!_0x254172['data']||_0x125f('0x2d')!=_0x254172[_0x125f('0x0')][_0x125f('0x40')])return;const _0x28f326=_0x2fc09b[_0x125f('0x31')][_0x125f('0x33')](_0xd0ab76['markerName']);if(_0x28f326)for(const _0x513e6d of _0x28f326)_0x2fc09b[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x21')+_0x5d2d4d,_0x513e6d),_0x2fc09b[_0x125f('0x25')]['removeClass']('ck-suggestion-marker--active',_0x513e6d),_0x2fc09b[_0x125f('0x25')][_0x125f('0x28')](_0x125f('0x37'),_0x513e6d),_0x2fc09b['mapper'][_0x125f('0x4b')](_0x513e6d,_0xd0ab76[_0x125f('0x1b')]);},{'priority':'highest'}),_0x51d0f8[_0x125f('0x1c')]['registerDescriptionCallback'](_0x358b4d=>{const {data:_0x59b34d}=_0x358b4d;if(_0x59b34d){if('setTableRowHeader'==_0x59b34d[_0x125f('0x40')]){const _0x54e086=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x54e086?_0x125f('0x15'):'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59b34d[_0x125f('0x40')]){const _0x305f36=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x305f36?_0x125f('0x3a'):_0x125f('0x42')));}}function _0x22d163(_0xa178b3){return{'type':'format','content':_0x374d0c(_0x121eb2,_0x125f('0x8'),_0xa178b3)};}});const _0xb70182=_0x545404[_0x125f('0x1a')]();_0x51d0f8[_0x125f('0x11')]['registerCustomCallback'](_0x125f('0xd'),'setTableRowHeader',_0x125f('0x53'),_0xb70182),_0x51d0f8[_0x125f('0x11')][_0x125f('0x52')](_0x125f('0xd'),_0x125f('0x2d'),'accept',_0xb70182);}}
23
+ const _0x1ccd=['_suggestionFactory','highest','getAttribute','selection','options','FORMAT_HEADER_COLUMN','first','model','TrackChangesEditing','registerCustomCallback','getCellLocation','document','from','value','accept','childCount','markerNameToElements','createPositionBefore','setTableColumnHeader','forceValue','getRowIndexes','commands','activeMarkers','table','isBefore','get','enableCommand','formatBlock','downcastDispatcher','FORMAT_REGULAR_COLUMN','requires','cell','data','index','writer','nodeAfter','markBlockFormat','parent','change','start','data-suggestion','_splitMarkerName','plugins','getSelectionAffectedTableCells','editing','afterInit','*Format:*\x20%0','getChild','removeAttribute','createTableWalker','consume','addClass','getColumnIndexes','findAncestor','setAttribute','createRange','registerDescriptionCallback','markerName','name','commandName','includes','setTableRowHeader','addMarker:suggestion','removeMarker:suggestion','format','markerRange','mapper','_descriptionFactory','last','unbindElementFromMarkerName','stop','createPositionAfter','FORMAT_HEADER_ROW','ck-suggestion-marker-','removeClass','ck-suggestion-marker--active','toViewElement','_acceptFormatSuggestionCallbackFactory','getSuggestion','end','commandParams'];(function(_0x44a084,_0x1ccd91){const _0x404627=function(_0x3108f5){while(--_0x3108f5){_0x44a084['push'](_0x44a084['shift']());}};_0x404627(++_0x1ccd91);}(_0x1ccd,0x184));const _0x4046=function(_0x44a084,_0x1ccd91){_0x44a084=_0x44a084-0x0;let _0x404627=_0x1ccd[_0x44a084];return _0x404627;};import{Plugin as _0x1de8b5}from'ckeditor5/src/core';import _0x25f32e from'./table';import{getTranslation as _0xbe3ab0}from'../utils/common-translations';export default class dt extends _0x1de8b5{static get[_0x4046('0x2f')](){return[_0x25f32e];}[_0x4046('0x3e')](){const _0x58c360=this['editor'];if(!_0x58c360[_0x4046('0x3b')]['has']('TableEditing'))return;const _0x560fd5=_0x58c360['locale'],_0x1e5950=_0x58c360['plugins'][_0x4046('0x2a')](_0x4046('0x19')),_0x1110c3=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')]('TableUtils'),_0xf7bcbb=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')](_0x25f32e);function _0x55dd74({showActiveMarker:_0x89eac0=!0x0,setDataAttribute:_0xe38908=!0x0}={}){return(_0x3b555b,_0x60a4e5,_0x1ad828)=>{const {type:_0x3aaa5d,id:_0x38d0b6}=_0x1e5950['_splitMarkerName'](_0x60a4e5[_0x4046('0x4a')]),_0x5dd103=_0x1e5950[_0x4046('0xe')](_0x38d0b6);if(!_0x5dd103[_0x4046('0x31')]||_0x4046('0x23')!=_0x5dd103[_0x4046('0x31')]['commandName'])return;if(_0x60a4e5['item'])return void _0x3b555b[_0x4046('0x6')]();if(!_0x1ad828['consumable'][_0x4046('0x43')](_0x60a4e5[_0x4046('0x1')],_0x3b555b[_0x4046('0x4b')]))return;const _0x4a7148=_0x60a4e5[_0x4046('0x1')][_0x4046('0x38')][_0x4046('0x34')],_0x68ac12=_0x60a4e5[_0x4046('0x1')][_0x4046('0xf')]['nodeBefore'],_0x22999d=_0x4a7148[_0x4046('0x36')][_0x4046('0x36')],{column:_0x3fc4eb}=_0x1110c3[_0x4046('0x1b')](_0x4a7148),{column:_0x5c77e2}=_0x1110c3[_0x4046('0x1b')](_0x68ac12);for(let _0x1318db=_0x3fc4eb;_0x1318db<=_0x5c77e2;_0x1318db++){const _0xae658f=_0x1110c3['createTableWalker'](_0x22999d,{'column':_0x1318db,'includeAllSlots':!0x1});for(const _0x11ebe1 of _0xae658f){const _0x2c0123=_0x11ebe1[_0x4046('0x30')],_0x179c8f=_0x1ad828[_0x4046('0x2')][_0x4046('0xc')](_0x2c0123);_0x1ad828['writer'][_0x4046('0x44')]('ck-suggestion-marker-'+_0x3aaa5d,_0x179c8f),_0xe38908&&_0x1ad828['writer'][_0x4046('0x47')](_0x4046('0x39'),_0x38d0b6,_0x179c8f),_0x1ad828[_0x4046('0x2')]['bindElementToMarker'](_0x179c8f,_0x60a4e5['markerName']),_0x89eac0&&(_0x1e5950[_0x4046('0x27')][_0x4046('0x4d')](_0x60a4e5[_0x4046('0x4a')])?_0x1ad828[_0x4046('0x33')]['addClass'](_0x4046('0xb'),_0x179c8f):_0x1ad828['writer'][_0x4046('0xa')]('ck-suggestion-marker--active',_0x179c8f));}}};}_0x1e5950[_0x4046('0x2b')](_0x4046('0x4e'),(_0x1e9f4b,_0xa7b5ce)=>{const _0x1ff889=_0x1110c3[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')]['document'][_0x4046('0x14')]),_0x10687a=_0x1110c3[_0x4046('0x25')](_0x1ff889),_0x1d3dd5=_0x1ff889[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x35db3b=_0x1d3dd5['getAttribute']('headingRows')||0x0,_0x3fa33a=_0xa7b5ce&&null!==_0xa7b5ce[_0x4046('0x24')]?_0xa7b5ce[_0x4046('0x24')]:!_0x58c360[_0x4046('0x26')][_0x4046('0x2a')](_0x4046('0x4e'))[_0x4046('0x1e')],_0x2d28ba=_0x3fa33a?_0x10687a[_0x4046('0x4')]:_0x10687a[_0x4046('0x17')],_0x115cbe=_0x1d3dd5[_0x4046('0x40')](_0x2d28ba);let _0x34cfc3;if(_0x3fa33a){const _0x187feb=_0x1d3dd5['getChild'](_0x35db3b);if(_0x115cbe[_0x4046('0x32')]<_0x187feb['index'])return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360['model'][_0x4046('0x22')](_0x187feb[_0x4046('0x40')](0x0)),_0x58c360['model'][_0x4046('0x7')](_0x115cbe[_0x4046('0x40')](_0x115cbe[_0x4046('0x20')]-0x1)));}else{const _0x5a9470=_0x1d3dd5['getChild'](_0x35db3b-0x1);if(!_0x5a9470)return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x115cbe['getChild'](0x0)),_0x58c360[_0x4046('0x18')][_0x4046('0x7')](_0x5a9470[_0x4046('0x40')](_0x5a9470[_0x4046('0x20')]-0x1)));}_0x58c360[_0x4046('0x18')][_0x4046('0x37')](()=>{_0x1e5950[_0x4046('0x35')](_0x34cfc3,{'commandName':_0x4046('0x4e'),'commandParams':[{'forceValue':_0x3fa33a}]},[],'setTableRowHeader');});}),_0x1e5950[_0x4046('0x2b')](_0x4046('0x23'),(_0x5d13a8,_0x5f3346)=>{const _0x3f405d=_0x58c360[_0x4046('0x3b')]['get']('TableUtils'),_0xa4238a=_0x3f405d[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')][_0x4046('0x1c')]['selection']),_0x437f78=_0x3f405d[_0x4046('0x45')](_0xa4238a),_0x16ae95=_0xa4238a[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x146985=_0x16ae95[_0x4046('0x13')]('headingColumns')||0x0,_0x3a0aa7=_0x5f3346&&null!==_0x5f3346[_0x4046('0x24')]?_0x5f3346[_0x4046('0x24')]:!_0x58c360['commands'][_0x4046('0x2a')](_0x4046('0x23'))[_0x4046('0x1e')];let _0xaf776;const _0x7e07e=_0x16ae95['getChild'](0x0),_0x583037=_0x3a0aa7?_0x437f78[_0x4046('0x4')]:_0x437f78[_0x4046('0x17')],_0x2b0d67=_0x3f405d[_0x4046('0x42')](_0x16ae95,{'startRow':0x0,'column':_0x583037,'includeAllSlots':!0x1}),_0x43c3fe=Array[_0x4046('0x1d')](_0x2b0d67)[0x0]['cell'];if(_0x3a0aa7){const _0x4f2f38=_0x7e07e[_0x4046('0x40')](_0x146985);if(_0x43c3fe[_0x4046('0x29')](_0x4f2f38))return;_0xaf776=_0x58c360['model'][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x4f2f38),_0x58c360['model'][_0x4046('0x7')](_0x43c3fe));}else{const _0x919b0d=_0x7e07e['getChild'](_0x146985-0x1);if(!_0x919b0d)return;_0xaf776=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x43c3fe),_0x58c360['model'][_0x4046('0x7')](_0x919b0d));}_0x58c360['model']['change'](()=>{_0x1e5950[_0x4046('0x35')](_0xaf776,{'commandName':_0x4046('0x23'),'commandParams':[{'forceValue':_0x3a0aa7}]},[],'setTableColumnHeader');});}),_0x58c360[_0x4046('0x3d')][_0x4046('0x2d')]['on'](_0x4046('0x4f'),_0x55dd74(),{'priority':'highest'}),_0x58c360['data'][_0x4046('0x2d')]['on'](_0x4046('0x4f'),(_0x5cb92e,_0x204c4b,_0x367e25)=>{_0x367e25[_0x4046('0x15')]['showSuggestionHighlights']&&_0x55dd74({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5cb92e,_0x204c4b,_0x367e25);},{'priority':_0x4046('0x12')}),_0x58c360['editing'][_0x4046('0x2d')]['on'](_0x4046('0x50'),(_0x2f0468,_0x1aa32a,_0x173358)=>{const {type:_0x3fe502,id:_0x2ad6ea}=_0x1e5950[_0x4046('0x3a')](_0x1aa32a[_0x4046('0x4a')]),_0x2ecefe=_0x1e5950['getSuggestion'](_0x2ad6ea);if(!_0x2ecefe[_0x4046('0x31')]||'setTableColumnHeader'!=_0x2ecefe[_0x4046('0x31')]['commandName'])return;const _0x4e06c2=_0x173358[_0x4046('0x2')][_0x4046('0x21')](_0x1aa32a[_0x4046('0x4a')]);if(_0x4e06c2)for(const _0x405782 of _0x4e06c2)_0x173358[_0x4046('0x33')][_0x4046('0xa')](_0x4046('0x9')+_0x3fe502,_0x405782),_0x173358[_0x4046('0x33')]['removeClass'](_0x4046('0xb'),_0x405782),_0x173358[_0x4046('0x33')][_0x4046('0x41')](_0x4046('0x39'),_0x405782),_0x173358[_0x4046('0x2')][_0x4046('0x5')](_0x405782,_0x1aa32a[_0x4046('0x4a')]);},{'priority':_0x4046('0x12')}),_0x1e5950[_0x4046('0x3')][_0x4046('0x49')](_0x35cde3=>{const {data:_0x55a961}=_0x35cde3;if(_0x55a961){if(_0x4046('0x4e')==_0x55a961[_0x4046('0x4c')]){const _0x57abe7=_0x55a961[_0x4046('0x10')][0x0]['forceValue'];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x57abe7?_0x4046('0x8'):'FORMAT_REGULAR_ROW'));}if(_0x4046('0x23')==_0x55a961[_0x4046('0x4c')]){const _0x15dc87=_0x55a961['commandParams'][0x0][_0x4046('0x24')];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x15dc87?_0x4046('0x16'):_0x4046('0x2e')));}}function _0xc6560e(_0x4ef008){return{'type':_0x4046('0x0'),'content':_0xbe3ab0(_0x560fd5,_0x4046('0x3f'),_0x4ef008)};}});const _0x4ce29c=_0xf7bcbb[_0x4046('0xd')]();_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),'setTableRowHeader','accept',_0x4ce29c),_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),_0x4046('0x23'),_0x4046('0x1f'),_0x4ce29c);}}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @module track-changes/integrations/tablemergesplit
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
7
+ */
8
+ export default class TrackChangesTableMergeSplit extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ static get requires(): PluginDependencies;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x246e=['has','createTableWalker','$graveyard','document','_areSelectedCellsMergable','commands','find','_acceptFormatSuggestionCallbackFactory','format','_suggestionFactory','*Split\x20cell:*\x20vertically','_areMergableCells','rootName','_isForcedDefaultExecutionBlock','trackChanges','markMultiRangeBlockFormat','afterInit','filter','table','push','tableCell','enableCommand','detach','mergeTableCells','formatBlock','execute','setSelection','refresh','plugins','*Merge\x20cells*','mergeTableCellLeft','getAncestors','getSuggestions','element','author','change','splitTableCellVertically','return','mergeTableCellDown','direction','size','map','getCellLocation','editor','TrackChangesEditing','splitTableCellHorizontally','registerDescriptionCallback','getFirstPosition','TableUtils','deletion','getRanges','length','model','containsRange','_tablePostFixingSubtypes','markBlockFormat','type','createRangeOn','commandName','_descriptionFactory','TableEditing','findAncestor','*Split\x20cell:*\x20horizontally','horizontally','highest','cell','set:isEnabled','mergeTableCellRight','mergeTableCellUp','isEnabled','stop','root','getSelectionAffectedTableCells','requires','subType','insertion','from','get','locale','accept','fromRange','selection','value','add'];(function(_0x3b66ef,_0x246ec2){const _0x2fe05b=function(_0x151669){while(--_0x151669){_0x3b66ef['push'](_0x3b66ef['shift']());}};_0x2fe05b(++_0x246ec2);}(_0x246e,0x15d));const _0x2fe0=function(_0x3b66ef,_0x246ec2){_0x3b66ef=_0x3b66ef-0x0;let _0x2fe05b=_0x246e[_0x3b66ef];return _0x2fe05b;};import{Plugin as _0x169fcf}from'ckeditor5/src/core';import _0x59f489 from'./table';import{LiveRange as _0x45b102}from'ckeditor5/src/engine';import{getTranslation as _0x5e55d5}from'../utils/common-translations';export default class pt extends _0x169fcf{static get[_0x2fe0('0x3c')](){return[_0x59f489];}[_0x2fe0('0x3')](){const _0x279e69=this[_0x2fe0('0x1e')],_0x3d3e54=_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')],_0x54b434=_0x279e69[_0x2fe0('0x41')];if(!_0x279e69[_0x2fe0('0xf')]['has'](_0x2fe0('0x2f')))return;const _0x5384a2=_0x279e69['plugins']['get'](_0x2fe0('0x1f')),_0x556e0d=_0x279e69[_0x2fe0('0xf')]['get'](_0x2fe0('0x23')),_0x21b99f=_0x279e69[_0x2fe0('0xf')]['get'](_0x59f489);_0x21b99f[_0x2fe0('0x29')][_0x2fe0('0x6')](_0x2fe0('0xa')),_0x5384a2[_0x2fe0('0x8')](_0x2fe0('0xa'),()=>{const _0x18e87f=_0x556e0d[_0x2fe0('0x3b')](_0x279e69['model'][_0x2fe0('0x4a')][_0x2fe0('0x44')]);_0x279e69['model'][_0x2fe0('0x16')](()=>{_0x5384a2[_0x2fe0('0x2')](_0x18e87f,{'commandName':_0x2fe0('0xa'),'commandParams':[]},[],'mergeTableCells');});}),_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x2fe0('0xa'))['on'](_0x2fe0('0xc'),(_0x32a233,_0x415674)=>{_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0x1'))[_0x2fe0('0x45')]&&(_0x415674['length']>0x0&&_0x415674[_0x415674[_0x2fe0('0x26')]-0x1]&&_0x415674[_0x415674['length']-0x1]['forceDefaultExecution']||_0x5384a2[_0x2fe0('0x0')]||this[_0x2fe0('0x4b')]()||_0x32a233['stop']());},{'priority':_0x2fe0('0x33')});for(const _0x1888ce of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')]){const _0x104dab=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x1888ce);_0x5384a2['enableCommand'](_0x1888ce,()=>{const _0x2deb63=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x92a2c0=>_0x92a2c0['is'](_0x2fe0('0x14'),_0x2fe0('0x7'))),_0x48c944=_0x104dab[_0x2fe0('0x45')];_0x279e69['model']['change'](()=>{_0x5384a2[_0x2fe0('0x2')]([_0x2deb63,_0x48c944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a7511 of['splitTableCellVertically',_0x2fe0('0x20')]){const _0x323bd1=_0x279e69['commands'][_0x2fe0('0x40')](_0x1a7511);_0x5384a2[_0x2fe0('0x8')](_0x1a7511,()=>{const _0x50ea1b=_0x556e0d[_0x2fe0('0x3b')](_0x279e69[_0x2fe0('0x27')]['document']['selection'])[0x0],_0x17a142=_0x50ea1b[_0x2fe0('0x30')](_0x2fe0('0x5')),{column:_0x5c4b9e,row:_0x37bf37}=_0x556e0d[_0x2fe0('0x1d')](_0x50ea1b);let _0x560d1f=[];if(_0x2fe0('0x32')==_0x323bd1[_0x2fe0('0x1a')]){const _0x4a467f=_0x556e0d[_0x2fe0('0x48')](_0x17a142,{'startRow':_0x37bf37,'endRow':_0x37bf37,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x4a467f)[_0x2fe0('0x1c')](_0x160e2c=>_0x160e2c['cell']);}else{const _0x514eb0=_0x556e0d['createTableWalker'](_0x17a142,{'column':_0x5c4b9e,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x514eb0)[_0x2fe0('0x1c')](_0x4c3cf7=>_0x4c3cf7[_0x2fe0('0x34')]);}_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x499a4d=>{_0x5384a2[_0x2fe0('0x2a')](_0x499a4d['createRangeOn'](_0x50ea1b),{'commandName':_0x1a7511,'commandParams':[]},_0x560d1f,_0x1a7511);});});}_0x5384a2[_0x2fe0('0x2e')]['registerDescriptionCallback'](_0x7f74e8=>{const {data:_0x16b11a}=_0x7f74e8;if(_0x16b11a)return _0x2fe0('0xa')==_0x16b11a['commandName']?{'type':'format','content':_0x5e55d5(_0x54b434,_0x2fe0('0x10'))}:void 0x0;}),_0x5384a2[_0x2fe0('0x2e')][_0x2fe0('0x21')](_0x1e54ac=>{const {data:_0x5e8db2}=_0x1e54ac;if(_0x5e8db2)return _0x2fe0('0x17')==_0x5e8db2['commandName']?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x51'))}:_0x2fe0('0x20')==_0x5e8db2[_0x2fe0('0x2d')]?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x31'))}:void 0x0;});const _0x36e10c=_0x21b99f[_0x2fe0('0x4e')]();for(const _0x5591ad of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x5591ad,_0x2fe0('0x42'),_0x36e10c);for(const _0x289e35 of[_0x2fe0('0x17'),_0x2fe0('0x20')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x289e35,'accept',_0x36e10c);_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback']('formatBlock',_0x2fe0('0xa'),_0x2fe0('0x42'),_0x6fd5f8=>{_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x474036=>{const _0x3dc55c=Array['from'](_0x3d3e54[_0x2fe0('0x25')]())[_0x2fe0('0x1c')](_0x2d1f17=>_0x45b102[_0x2fe0('0x43')](_0x2d1f17));_0x474036['setSelection'](_0x6fd5f8),_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0xa'))[_0x2fe0('0xe')](),_0x279e69[_0x2fe0('0xc')](_0x2fe0('0xa'),{'forceDefaultExecution':!0x0});const _0x29180b=_0x3dc55c[_0x2fe0('0x4')](_0x35e613=>_0x2fe0('0x49')!=_0x35e613[_0x2fe0('0x3a')][_0x2fe0('0x53')]);_0x29180b[_0x2fe0('0x26')]>0x0&&_0x474036[_0x2fe0('0xd')](_0x29180b);for(const _0x3e197e of _0x3dc55c)_0x3e197e[_0x2fe0('0x9')]();});});for(const _0x35a749 of[_0x2fe0('0x37'),_0x2fe0('0x19'),_0x2fe0('0x11'),_0x2fe0('0x36')]){const _0x5e87b6=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x35a749);_0x5e87b6['on'](_0x2fe0('0x35'),(_0x158f9b,_0x574b5a,_0x5ef03f)=>{if(_0x5ef03f){const _0x4ed3ab=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x49234e=>_0x49234e['is']('element',_0x2fe0('0x7')));this['_areMergableCells'](_0x5e87b6[_0x2fe0('0x45')],_0x4ed3ab)||(_0x158f9b[_0x2fe0('0x18')]=!0x1,_0x158f9b[_0x2fe0('0x39')]());}},{'priority':'low'});}}[_0x2fe0('0x4b')](){const _0xa33e22=this[_0x2fe0('0x1e')]['commands'][_0x2fe0('0x40')]('mergeTableCells'),_0x1c27af=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')]('TableUtils');if(!_0xa33e22[_0x2fe0('0x38')])return!0x1;const _0x3edd93=_0x1c27af[_0x2fe0('0x3b')](this[_0x2fe0('0x1e')][_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')]);for(const _0x51ecfb of _0x3edd93)for(const _0x2313b0 of _0x3edd93)if(_0x51ecfb!=_0x2313b0&&!this[_0x2fe0('0x52')](_0x51ecfb,_0x2313b0))return!0x1;return!0x0;}[_0x2fe0('0x52')](_0x252a92,_0x1f3d60){const _0x12e1c7=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')](_0x2fe0('0x1f')),_0x17e77b=this['editor']['model'][_0x2fe0('0x2c')](_0x252a92),_0xbfc4a3=this[_0x2fe0('0x1e')][_0x2fe0('0x27')]['createRangeOn'](_0x1f3d60),_0x49f07e=new Set(),_0x2f076a=new Set();for(const _0x34b70c of _0x12e1c7[_0x2fe0('0x13')]())if((_0x2fe0('0x3e')==_0x34b70c[_0x2fe0('0x2b')]||_0x2fe0('0x24')==_0x34b70c['type']||'mergeTableCells'==_0x34b70c[_0x2fe0('0x3d')])&&_0x34b70c['isInContent'])for(const _0x1dac62 of _0x34b70c[_0x2fe0('0x25')]())_0x1dac62[_0x2fe0('0x28')](_0x17e77b,!0x0)&&_0x49f07e[_0x2fe0('0x46')](_0x34b70c['type']+':'+_0x34b70c[_0x2fe0('0x15')]['id']),_0x1dac62[_0x2fe0('0x28')](_0xbfc4a3,!0x0)&&_0x2f076a[_0x2fe0('0x46')](_0x34b70c[_0x2fe0('0x2b')]+':'+_0x34b70c[_0x2fe0('0x15')]['id']);if(_0x49f07e[_0x2fe0('0x1b')]!=_0x2f076a[_0x2fe0('0x1b')])return!0x1;for(const _0x2967d0 of _0x49f07e)if(!_0x2f076a[_0x2fe0('0x47')](_0x2967d0))return!0x1;return!0x0;}}
23
+ const _0x29c9=['editor','document','change','getAncestors','highest','*Split\x20cell:*\x20horizontally','_tablePostFixingSubtypes','requires','getFirstPosition','execute','commandName','$graveyard','author','splitTableCellHorizontally','formatBlock','get','root','from','value','plugins','tableCell','add','TrackChangesEditing','markMultiRangeBlockFormat','getSelectionAffectedTableCells','_areSelectedCellsMergable','getSuggestions','commands','mergeTableCellUp','subType','horizontally','element','stop','format','*Split\x20cell:*\x20vertically','*Merge\x20cells*','_areMergableCells','insertion','push','mergeTableCellLeft','containsRange','enableCommand','map','registerCustomCallback','splitTableCellVertically','filter','isInContent','find','locale','TableUtils','rootName','low','size','_suggestionFactory','mergeTableCellDown','refresh','accept','trackChanges','registerDescriptionCallback','_isForcedDefaultExecutionBlock','mergeTableCells','getRanges','afterInit','cell','direction','setSelection','selection','mergeTableCellRight','model','length','_acceptFormatSuggestionCallbackFactory','type','return','createRangeOn','_descriptionFactory'];(function(_0x517f6f,_0x29c91b){const _0x5e8cac=function(_0x23789f){while(--_0x23789f){_0x517f6f['push'](_0x517f6f['shift']());}};_0x5e8cac(++_0x29c91b);}(_0x29c9,0x1ba));const _0x5e8c=function(_0x517f6f,_0x29c91b){_0x517f6f=_0x517f6f-0x0;let _0x5e8cac=_0x29c9[_0x517f6f];return _0x5e8cac;};import{Plugin as _0x434730}from'ckeditor5/src/core';import _0x5c811f from'./table';import{LiveRange as _0x5f411e}from'ckeditor5/src/engine';import{getTranslation as _0x4af285}from'../utils/common-translations';export default class mt extends _0x434730{static get[_0x5e8c('0xf')](){return[_0x5c811f];}[_0x5e8c('0x46')](){const _0x414c40=this[_0x5e8c('0x8')],_0x180cf0=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')],_0x1f1266=_0x414c40[_0x5e8c('0x38')];if(!_0x414c40[_0x5e8c('0x1b')]['has']('TableEditing'))return;const _0x15bc21=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0x194eb0=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39')),_0x45ff12=_0x414c40['plugins']['get'](_0x5c811f);_0x45ff12[_0x5e8c('0xe')][_0x5e8c('0x2e')](_0x5e8c('0x44')),_0x15bc21['enableCommand']('mergeTableCells',()=>{const _0x25e069=_0x194eb0[_0x5e8c('0x20')](_0x414c40['model'][_0x5e8c('0x9')][_0x5e8c('0x4a')]);_0x414c40[_0x5e8c('0x1')]['change'](()=>{_0x15bc21[_0x5e8c('0x1f')](_0x25e069,{'commandName':_0x5e8c('0x44'),'commandParams':[]},[],_0x5e8c('0x44'));});}),_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')]('mergeTableCells')['on'](_0x5e8c('0x11'),(_0x243d23,_0x58dd67)=>{_0x414c40['commands']['get'](_0x5e8c('0x41'))[_0x5e8c('0x1a')]&&(_0x58dd67[_0x5e8c('0x2')]>0x0&&_0x58dd67[_0x58dd67[_0x5e8c('0x2')]-0x1]&&_0x58dd67[_0x58dd67['length']-0x1]['forceDefaultExecution']||_0x15bc21[_0x5e8c('0x43')]||this[_0x5e8c('0x21')]()||_0x243d23[_0x5e8c('0x28')]());},{'priority':_0x5e8c('0xc')});for(const _0x595004 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),_0x5e8c('0x2f')]){const _0x230db7=_0x414c40['commands']['get'](_0x595004);_0x15bc21[_0x5e8c('0x31')](_0x595004,()=>{const _0x294eb7=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()[_0x5e8c('0x37')](_0x39d7f3=>_0x39d7f3['is'](_0x5e8c('0x27'),_0x5e8c('0x1c'))),_0x1d9693=_0x230db7[_0x5e8c('0x1a')];_0x414c40['model'][_0x5e8c('0xa')](()=>{_0x15bc21[_0x5e8c('0x1f')]([_0x294eb7,_0x1d9693],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e8c('0x44'));});});}for(const _0x16d4c4 of['splitTableCellVertically',_0x5e8c('0x15')]){const _0x69c2f6=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x16d4c4);_0x15bc21[_0x5e8c('0x31')](_0x16d4c4,()=>{const _0x115b7a=_0x194eb0['getSelectionAffectedTableCells'](_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')]['selection'])[0x0],_0x5341b1=_0x115b7a['findAncestor']('table'),{column:_0x15b32b,row:_0x58243c}=_0x194eb0['getCellLocation'](_0x115b7a);let _0x5ac49c=[];if(_0x5e8c('0x26')==_0x69c2f6[_0x5e8c('0x48')]){const _0x28833a=_0x194eb0['createTableWalker'](_0x5341b1,{'startRow':_0x58243c,'endRow':_0x58243c,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x28833a)['map'](_0x5b3455=>_0x5b3455['cell']);}else{const _0x49ab1d=_0x194eb0['createTableWalker'](_0x5341b1,{'column':_0x15b32b,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x49ab1d)[_0x5e8c('0x32')](_0x41117f=>_0x41117f[_0x5e8c('0x47')]);}_0x414c40[_0x5e8c('0x1')][_0x5e8c('0xa')](_0x3a7b67=>{_0x15bc21['markBlockFormat'](_0x3a7b67[_0x5e8c('0x6')](_0x115b7a),{'commandName':_0x16d4c4,'commandParams':[]},_0x5ac49c,_0x16d4c4);});});}_0x15bc21['_descriptionFactory'][_0x5e8c('0x42')](_0x254f10=>{const {data:_0x25ed80}=_0x254f10;if(_0x25ed80)return _0x5e8c('0x44')==_0x25ed80[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0x2b'))}:void 0x0;}),_0x15bc21[_0x5e8c('0x7')]['registerDescriptionCallback'](_0x55d291=>{const {data:_0x48bba2}=_0x55d291;if(_0x48bba2)return _0x5e8c('0x34')==_0x48bba2[_0x5e8c('0x12')]?{'type':_0x5e8c('0x29'),'content':_0x4af285(_0x1f1266,_0x5e8c('0x2a'))}:'splitTableCellHorizontally'==_0x48bba2[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0xd'))}:void 0x0;});const _0x3a0f59=_0x45ff12[_0x5e8c('0x3')]();for(const _0x3b38e1 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),'mergeTableCellLeft'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')]('formatBlock',_0x3b38e1,'accept',_0x3a0f59);for(const _0x4fdd34 of[_0x5e8c('0x34'),'splitTableCellHorizontally'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')](_0x5e8c('0x16'),_0x4fdd34,'accept',_0x3a0f59);_0x15bc21['_suggestionFactory']['registerCustomCallback'](_0x5e8c('0x16'),_0x5e8c('0x44'),_0x5e8c('0x40'),_0x51b6b6=>{_0x414c40[_0x5e8c('0x1')]['change'](_0x1a6f92=>{const _0x439ff2=Array[_0x5e8c('0x19')](_0x180cf0[_0x5e8c('0x45')]())['map'](_0x34d369=>_0x5f411e['fromRange'](_0x34d369));_0x1a6f92[_0x5e8c('0x49')](_0x51b6b6),_0x414c40['commands']['get'](_0x5e8c('0x44'))[_0x5e8c('0x3f')](),_0x414c40['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a2c9c=_0x439ff2[_0x5e8c('0x35')](_0x3b8239=>_0x5e8c('0x13')!=_0x3b8239[_0x5e8c('0x18')][_0x5e8c('0x3a')]);_0x3a2c9c[_0x5e8c('0x2')]>0x0&&_0x1a6f92[_0x5e8c('0x49')](_0x3a2c9c);for(const _0x88043a of _0x439ff2)_0x88043a['detach']();});});for(const _0x1c54cb of[_0x5e8c('0x24'),'mergeTableCellDown',_0x5e8c('0x2f'),_0x5e8c('0x0')]){const _0x4f5eda=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x1c54cb);_0x4f5eda['on']('set:isEnabled',(_0x5b0b7c,_0x483df0,_0x327d6b)=>{if(_0x327d6b){const _0x5e352b=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()['find'](_0x586166=>_0x586166['is'](_0x5e8c('0x27'),_0x5e8c('0x1c')));this[_0x5e8c('0x2c')](_0x4f5eda[_0x5e8c('0x1a')],_0x5e352b)||(_0x5b0b7c[_0x5e8c('0x5')]=!0x1,_0x5b0b7c['stop']());}},{'priority':_0x5e8c('0x3b')});}}[_0x5e8c('0x21')](){const _0x2529b5=this[_0x5e8c('0x8')][_0x5e8c('0x23')][_0x5e8c('0x17')](_0x5e8c('0x44')),_0xfd0f69=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39'));if(!_0x2529b5['isEnabled'])return!0x1;const _0x4103a6=_0xfd0f69[_0x5e8c('0x20')](this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')]);for(const _0x58fe66 of _0x4103a6)for(const _0x1fde36 of _0x4103a6)if(_0x58fe66!=_0x1fde36&&!this[_0x5e8c('0x2c')](_0x58fe66,_0x1fde36))return!0x1;return!0x0;}[_0x5e8c('0x2c')](_0x5daca1,_0x239660){const _0x580246=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0xa86952=this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x5daca1),_0x1cec9d=this['editor'][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x239660),_0x4faf1a=new Set(),_0x4e3a2a=new Set();for(const _0x14518c of _0x580246[_0x5e8c('0x22')]())if((_0x5e8c('0x2d')==_0x14518c['type']||'deletion'==_0x14518c[_0x5e8c('0x4')]||_0x5e8c('0x44')==_0x14518c[_0x5e8c('0x25')])&&_0x14518c[_0x5e8c('0x36')])for(const _0x3810b7 of _0x14518c['getRanges']())_0x3810b7[_0x5e8c('0x30')](_0xa86952,!0x0)&&_0x4faf1a['add'](_0x14518c['type']+':'+_0x14518c[_0x5e8c('0x14')]['id']),_0x3810b7[_0x5e8c('0x30')](_0x1cec9d,!0x0)&&_0x4e3a2a[_0x5e8c('0x1d')](_0x14518c[_0x5e8c('0x4')]+':'+_0x14518c[_0x5e8c('0x14')]['id']);if(_0x4faf1a[_0x5e8c('0x3c')]!=_0x4e3a2a[_0x5e8c('0x3c')])return!0x1;for(const _0x36425a of _0x4faf1a)if(!_0x4e3a2a['has'](_0x36425a))return!0x1;return!0x0;}}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @module track-changes/integrations/tableproperties
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import type { Range } from 'ckeditor5/src/engine';
6
+ import type { default as Suggestion } from '../suggestion';
7
+ import type { Description } from '../suggestiondescriptionfactory';
8
+ /**
9
+ * Provides track changes plugin integration for table properties feature.
10
+ */
11
+ export default class TrackChangesTableProperties extends Plugin {
12
+ constructor(editor: Editor);
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): 'TrackChangesTableProperties';
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
+ handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
22
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
23
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x190a=['registerDescriptionCallback','TrackChangesTableProperties','enableCommand','tableCellBorderStyle','TableUtils','afterInit','handleDiscardAction','TrackChangesEditing','TableCellPropertiesEditing','document','markBlockFormat','_handlePropertyChange','setAttribute','selection','table','getSuggestions','_descriptionFactory','enqueueChange','tableCellBorderWidth','tableCellHorizontalAlignment','_getSuggestion','tableCellVerticalAlignment','get','tableProperties','tableWidth','getFirstPosition','formatBlock','tableBorderStyle','tableCellBackgroundColor','subType','tableBorderColor','tableCellBorderColor','start','discard','editor','getContainedElement','commandParams','tableCellProperties','tableCellPadding','tableCellWidth','accept','findAncestor','getAttribute','getSuggestionCallback','tableBorderWidth','plugins','_suggestionFactory','change','handleSuggestionDescription','format','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','batch','pluginName','tableCellHeight','model','nodeAfter'];(function(_0x5e5192,_0x190aac){const _0x2ca38e=function(_0x544e4a){while(--_0x544e4a){_0x5e5192['push'](_0x5e5192['shift']());}};_0x2ca38e(++_0x190aac);}(_0x190a,0x1f0));const _0x2ca3=function(_0x5e5192,_0x190aac){_0x5e5192=_0x5e5192-0x0;let _0x2ca38e=_0x190a[_0x5e5192];return _0x2ca38e;};import{Plugin as _0x14c5a8}from'ckeditor5/src/core';import{getTranslation as _0x59db7b}from'../utils/common-translations';export default class At extends _0x14c5a8{static get[_0x2ca3('0xd')](){return _0x2ca3('0x12');}[_0x2ca3('0x16')](){const _0x6bfa97=this[_0x2ca3('0x33')][_0x2ca3('0x5')]['get']('TrackChangesEditing');if(this[_0x2ca3('0x33')][_0x2ca3('0x5')]['has']('TablePropertiesEditing')){this[_0x2ca3('0x28')]=[_0x2ca3('0x2f'),_0x2ca3('0x2c'),_0x2ca3('0x4'),'tableAlignment',_0x2ca3('0x29'),'tableHeight','tableBackgroundColor'];for(const _0x391e7d of this[_0x2ca3('0x28')])_0x6bfa97[_0x2ca3('0x13')](_0x391e7d,(_0x2da5cb,_0x403094)=>{const _0xf101be=this[_0x2ca3('0x33')]['model'][_0x2ca3('0x1a')][_0x2ca3('0x1e')][_0x2ca3('0x2a')]()[_0x2ca3('0x1')](_0x2ca3('0x1f'));this['_handlePropertyChange'](_0x391e7d,[_0xf101be],this[_0x2ca3('0x28')],'tableProperties',_0x2da5cb,_0x403094);});_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x0'),_0x6bfa97[_0x2ca3('0x6')]['getSuggestionCallback'](_0x2ca3('0x2b'),null,_0x2ca3('0x32'))),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x32'),(_0x1e55f1,_0x49c58d)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x28')],_0x1e55f1,_0x49c58d)),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),'join',()=>!0x1);}if(this[_0x2ca3('0x33')]['plugins']['has'](_0x2ca3('0x19'))){this[_0x2ca3('0x36')]=[_0x2ca3('0x30'),_0x2ca3('0x14'),_0x2ca3('0x23'),_0x2ca3('0x37'),_0x2ca3('0x38'),_0x2ca3('0xe'),_0x2ca3('0x2d'),_0x2ca3('0x24'),_0x2ca3('0x26')];for(const _0x35cf29 of this['tableCellProperties'])_0x6bfa97[_0x2ca3('0x13')](_0x35cf29,(_0x5e11be,_0x376194)=>{const _0x62f47d=this[_0x2ca3('0x33')]['plugins']['get'](_0x2ca3('0x15'))['getSelectionAffectedTableCells'](this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x1a')][_0x2ca3('0x1e')]);this[_0x2ca3('0x1c')](_0x35cf29,_0x62f47d,this[_0x2ca3('0x36')],_0x2ca3('0x36'),_0x5e11be,_0x376194);});_0x6bfa97['_suggestionFactory']['registerCustomCallback'](_0x2ca3('0x2b'),_0x2ca3('0x36'),'accept',_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0x3')](_0x2ca3('0x2b'),null,'discard')),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),_0x2ca3('0x32'),(_0x220313,_0x11f51c)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x36')],_0x220313,_0x11f51c)),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),'join',()=>!0x1);}_0x6bfa97[_0x2ca3('0x21')][_0x2ca3('0x11')](_0x5478a7=>this[_0x2ca3('0x8')](_0x5478a7));}['_handlePropertyChange'](_0x4a24a5,_0x4c5638,_0x7adbde,_0xdc0776,_0x31e6d8,_0x5bef19){const _0x10d68c=this[_0x2ca3('0x33')][_0x2ca3('0x5')][_0x2ca3('0x27')](_0x2ca3('0x18'));this['editor'][_0x2ca3('0xf')][_0x2ca3('0x22')](_0x5bef19[_0x2ca3('0xc')],()=>{for(const _0x10c894 of _0x4c5638){if(this['_getSuggestion'](_0x10c894,_0xdc0776))_0x31e6d8(_0x5bef19);else{const _0xdce01e={};for(const _0x41016a of _0x7adbde){const _0x235d9c=_0x10c894[_0x2ca3('0x2')](_0x41016a);void 0x0!==_0x235d9c&&(_0xdce01e[_0x41016a]=_0x235d9c);}_0x31e6d8(_0x5bef19),_0x10d68c[_0x2ca3('0x1b')](_0x10c894,{'commandParams':[_0xdce01e]},[],_0xdc0776);}}});}[_0x2ca3('0x17')](_0xb79ed8,_0x25c89c,_0x45c60a){const _0x86de88=_0x25c89c[0x0][_0x2ca3('0x31')][_0x2ca3('0x10')],_0x556c2c=_0x45c60a[_0x2ca3('0x35')][0x0];this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x7')](_0xcf3b14=>{for(const _0x5ef3c1 of _0xb79ed8)void 0x0!==_0x556c2c[_0x5ef3c1]?_0xcf3b14[_0x2ca3('0x1d')](_0x5ef3c1,_0x556c2c[_0x5ef3c1],_0x86de88):_0xcf3b14['removeAttribute'](_0x5ef3c1,_0x86de88);});}[_0x2ca3('0x8')](_0xc8afec){if(_0xc8afec['data'])switch(_0xc8afec[_0x2ca3('0x2e')]){case'tableProperties':return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x2ca3('0x36'):return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this[_0x2ca3('0x33')]['locale'],_0x2ca3('0xa'))};}}[_0x2ca3('0x25')](_0x53d019,_0x26e68e){const _0x3ebbad=this['editor'][_0x2ca3('0x5')]['get'](_0x2ca3('0x18'));for(const _0xdf9792 of _0x3ebbad[_0x2ca3('0x20')]({'skipNotAttached':!0x0})){const _0x44e528=_0xdf9792[_0x2ca3('0x34')]();if(_0xdf9792[_0x2ca3('0x2e')]===_0x26e68e&&_0x44e528===_0x53d019)return _0xdf9792;}return null;}}
23
+ const _0x264a=['markBlockFormat','getSuggestionCallback','format','change','tableBorderColor','handleDiscardAction','getContainedElement','subType','getSuggestions','get','getSelectionAffectedTableCells','tableCellBorderStyle','*Format:*\x20change\x20table\x20properties','model','tableCellPadding','_handlePropertyChange','TableCellPropertiesEditing','_suggestionFactory','tableCellBorderWidth','nodeAfter','enqueueChange','tableCellProperties','registerCustomCallback','tableBorderStyle','*Format:*\x20change\x20table\x20cell\x20properties','getFirstPosition','tableCellWidth','table','data','enableCommand','document','getAttribute','start','locale','plugins','tableCellHorizontalAlignment','tableCellBorderColor','join','tableWidth','TablePropertiesEditing','selection','setAttribute','handleSuggestionDescription','discard','tableProperties','accept','has','formatBlock','tableCellHeight','findAncestor','tableCellBackgroundColor','_getSuggestion','TrackChangesEditing','commandParams','editor'];(function(_0x233e6e,_0x264a93){const _0x347979=function(_0x5cd2c3){while(--_0x5cd2c3){_0x233e6e['push'](_0x233e6e['shift']());}};_0x347979(++_0x264a93);}(_0x264a,0xf8));const _0x3479=function(_0x233e6e,_0x264a93){_0x233e6e=_0x233e6e-0x0;let _0x347979=_0x264a[_0x233e6e];return _0x347979;};import{Plugin as _0x264f34}from'ckeditor5/src/core';import{getTranslation as _0x26e3ed}from'../utils/common-translations';export default class It extends _0x264f34{constructor(_0x4116be){super(_0x4116be),this[_0x3479('0x10')]=[_0x3479('0x1f'),_0x3479('0x32'),'tableBorderWidth','tableAlignment',_0x3479('0xa'),'tableHeight','tableBackgroundColor'],this[_0x3479('0x30')]=[_0x3479('0x8'),_0x3479('0x26'),_0x3479('0x2d'),_0x3479('0x29'),_0x3479('0x35'),_0x3479('0x14'),_0x3479('0x16'),_0x3479('0x7'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x312de5=this['editor'][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));if(this[_0x3479('0x1a')]['plugins'][_0x3479('0x12')](_0x3479('0xb'))){for(const _0x38559f of this[_0x3479('0x10')])_0x312de5[_0x3479('0x1')](_0x38559f,(_0x226b14,_0x57c82d)=>{const _0x4fc610=this[_0x3479('0x1a')][_0x3479('0x28')]['document'][_0x3479('0xc')][_0x3479('0x34')]()[_0x3479('0x15')](_0x3479('0x36'));this[_0x3479('0x2a')](_0x38559f,[_0x4fc610],this[_0x3479('0x10')],_0x3479('0x10'),_0x226b14,_0x57c82d);});_0x312de5[_0x3479('0x2c')][_0x3479('0x31')]('formatBlock',_0x3479('0x10'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')](_0x3479('0x13'),null,'discard')),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),'tableProperties',_0x3479('0xf'),(_0x401e47,_0x9da8d8)=>this[_0x3479('0x20')](this['tableProperties'],_0x401e47,_0x9da8d8)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x10'),_0x3479('0x9'),()=>!0x1);}if(this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x12')](_0x3479('0x2b'))){for(const _0xd20c88 of this['tableCellProperties'])_0x312de5[_0x3479('0x1')](_0xd20c88,(_0x568de9,_0x297487)=>{const _0x431a57=this[_0x3479('0x1a')]['plugins'][_0x3479('0x24')]('TableUtils')[_0x3479('0x25')](this[_0x3479('0x1a')]['model'][_0x3479('0x2')][_0x3479('0xc')]);this[_0x3479('0x2a')](_0xd20c88,_0x431a57,this[_0x3479('0x30')],_0x3479('0x30'),_0x568de9,_0x297487);});_0x312de5['_suggestionFactory'][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')]('formatBlock',null,_0x3479('0xf'))),_0x312de5[_0x3479('0x2c')]['registerCustomCallback'](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0xf'),(_0x462365,_0x551a50)=>this['handleDiscardAction'](this['tableCellProperties'],_0x462365,_0x551a50)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),'join',()=>!0x1);}_0x312de5['_descriptionFactory']['registerDescriptionCallback'](_0x3e2d29=>this[_0x3479('0xe')](_0x3e2d29));}[_0x3479('0x2a')](_0x50f075,_0x27dfaf,_0x22b183,_0x3d5a5e,_0x78644d,_0x290aa2){const _0x393073=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));this[_0x3479('0x1a')]['model'][_0x3479('0x2f')](_0x290aa2['batch'],()=>{for(const _0x1b8b3a of _0x27dfaf){if(this['_getSuggestion'](_0x1b8b3a,_0x3d5a5e))_0x78644d(_0x290aa2);else{const _0x4a25c2={};for(const _0x2f843f of _0x22b183){const _0x1aa73d=_0x1b8b3a[_0x3479('0x3')](_0x2f843f);void 0x0!==_0x1aa73d&&(_0x4a25c2[_0x2f843f]=_0x1aa73d);}_0x78644d(_0x290aa2),_0x393073[_0x3479('0x1b')](_0x1b8b3a,{'commandParams':[_0x4a25c2]},[],_0x3d5a5e);}}});}[_0x3479('0x20')](_0x305a09,_0x4989a7,_0x2f4988){const _0x1fa92f=_0x4989a7[0x0][_0x3479('0x4')][_0x3479('0x2e')],_0x438b34=_0x2f4988[_0x3479('0x19')][0x0];this['editor']['model'][_0x3479('0x1e')](_0xe510da=>{for(const _0x191716 of _0x305a09)void 0x0!==_0x438b34[_0x191716]?_0xe510da[_0x3479('0xd')](_0x191716,_0x438b34[_0x191716],_0x1fa92f):_0xe510da['removeAttribute'](_0x191716,_0x1fa92f);});}['handleSuggestionDescription'](_0xe0d820){if(_0xe0d820[_0x3479('0x0')])switch(_0xe0d820[_0x3479('0x22')]){case'tableProperties':return{'type':_0x3479('0x1d'),'content':_0x26e3ed(this[_0x3479('0x1a')]['locale'],_0x3479('0x27'))};case _0x3479('0x30'):return{'type':'format','content':_0x26e3ed(this[_0x3479('0x1a')][_0x3479('0x5')],_0x3479('0x33'))};}}[_0x3479('0x17')](_0xc64b31,_0x36c4c3){const _0x12484b=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));for(const _0x36cc10 of _0x12484b[_0x3479('0x23')]({'skipNotAttached':!0x0})){const _0x55087c=_0x36cc10[_0x3479('0x21')]();if(_0x36cc10[_0x3479('0x22')]===_0x36c4c3&&_0x55087c===_0xc64b31)return _0x36cc10;}return null;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/title
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for title feature.
7
+ */
8
+ export default class TrackChangesTitle extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1120=['TrackChangesEditing','_descriptionFactory','createRange','updateMarker','Title','get','forward','registerPostFixer','getChangedMarkers','removeMarker','model','editor','end','plugins','from','locale','getNearestSelectionRange','title-content','has','start','isTouching','registerElementLabel','document','element','afterInit','schema','suggestion','differ','isCollapsed','newRange'];(function(_0x353a0f,_0x112058){const _0x3f4cb9=function(_0xbd409d){while(--_0xbd409d){_0x353a0f['push'](_0x353a0f['shift']());}};_0x3f4cb9(++_0x112058);}(_0x1120,0x143));const _0x3f4c=function(_0x353a0f,_0x112058){_0x353a0f=_0x353a0f-0x0;let _0x3f4cb9=_0x1120[_0x353a0f];return _0x3f4cb9;};import{Plugin as _0x1123aa}from'ckeditor5/src/core';import{getTranslation as _0x3d2f7f}from'../utils/common-translations';export default class bt extends _0x1123aa{[_0x3f4c('0x1')](){const _0x113081=this[_0x3f4c('0x12')];if(!_0x113081[_0x3f4c('0x14')][_0x3f4c('0x19')](_0x3f4c('0xb')))return;const _0x596d11=_0x113081[_0x3f4c('0x14')][_0x3f4c('0xc')](_0x3f4c('0x7'));_0x596d11[_0x3f4c('0x8')][_0x3f4c('0x1c')](_0x3f4c('0x18'),()=>_0x3d2f7f(_0x113081[_0x3f4c('0x16')],'ELEMENT_TITLE')),_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0xe')](_0x1d3db3=>{let _0x59c9b2=!0x1;const _0x3d94d8=Array[_0x3f4c('0x15')](_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0x4')][_0x3f4c('0xf')]());for(const {name:_0x542ea0,data:_0x45d6fc}of _0x3d94d8){const {group:_0x27cf07}=_0x596d11['_splitMarkerName'](_0x542ea0);if(_0x3f4c('0x3')!==_0x27cf07||!_0x45d6fc[_0x3f4c('0x6')])continue;const _0x3c2e61=_0x45d6fc[_0x3f4c('0x6')],_0x35200b=_0x3c2e61[_0x3f4c('0x13')]['nodeBefore'];if(!_0x35200b||!_0x35200b['is'](_0x3f4c('0x0'),_0x3f4c('0x18')))continue;if(!_0x3c2e61[_0x3f4c('0x1a')][_0x3f4c('0x1b')](_0x3c2e61[_0x3f4c('0x13')]))continue;const _0x101aae=_0x113081[_0x3f4c('0x11')][_0x3f4c('0x2')][_0x3f4c('0x17')](_0x3c2e61[_0x3f4c('0x13')],_0x3f4c('0xd'));if(_0x101aae&&_0x101aae[_0x3f4c('0x5')]){const _0x88c3f=_0x1d3db3[_0x3f4c('0x9')](_0x3c2e61[_0x3f4c('0x1a')],_0x101aae[_0x3f4c('0x1a')]);_0x88c3f['isEqual'](_0x3c2e61)||(_0x1d3db3[_0x3f4c('0xa')](_0x542ea0,{'range':_0x88c3f}),_0x59c9b2=!0x0);}_0x59c9b2||(_0x1d3db3[_0x3f4c('0x10')](_0x542ea0),_0x59c9b2=!0x0);}return _0x59c9b2;});}}
23
+ const _0x41f3=['afterInit','title-content','locale','from','isEqual','isTouching','end','forward','editor','removeMarker','ELEMENT_TITLE','model','createRange','newRange','getChangedMarkers','getNearestSelectionRange','get','_splitMarkerName','suggestion','start','schema','registerPostFixer','has','Title','isCollapsed','plugins','TrackChangesEditing','element','updateMarker'];(function(_0x9f3626,_0x41f3e3){const _0x91fb5b=function(_0x223727){while(--_0x223727){_0x9f3626['push'](_0x9f3626['shift']());}};_0x91fb5b(++_0x41f3e3);}(_0x41f3,0x8d));const _0x91fb=function(_0x9f3626,_0x41f3e3){_0x9f3626=_0x9f3626-0x0;let _0x91fb5b=_0x41f3[_0x9f3626];return _0x91fb5b;};import{Plugin as _0x5efb28}from'ckeditor5/src/core';import{getTranslation as _0x274d7f}from'../utils/common-translations';export default class wt extends _0x5efb28{[_0x91fb('0x4')](){const _0x4fc8b2=this[_0x91fb('0xc')];if(!_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x1a')](_0x91fb('0x1b')))return;const _0x557924=_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x14')](_0x91fb('0x1'));_0x557924['_descriptionFactory']['registerElementLabel'](_0x91fb('0x5'),()=>_0x274d7f(_0x4fc8b2[_0x91fb('0x6')],_0x91fb('0xe'))),_0x4fc8b2[_0x91fb('0xf')]['document'][_0x91fb('0x19')](_0x598458=>{let _0x7640f3=!0x1;const _0x3dcc14=Array[_0x91fb('0x7')](_0x4fc8b2[_0x91fb('0xf')]['document']['differ'][_0x91fb('0x12')]());for(const {name:_0x180df2,data:_0x8f2d57}of _0x3dcc14){const {group:_0x3bc5be}=_0x557924[_0x91fb('0x15')](_0x180df2);if(_0x91fb('0x16')!==_0x3bc5be||!_0x8f2d57[_0x91fb('0x11')])continue;const _0x5a2a95=_0x8f2d57['newRange'],_0x29d5ae=_0x5a2a95[_0x91fb('0xa')]['nodeBefore'];if(!_0x29d5ae||!_0x29d5ae['is'](_0x91fb('0x2'),_0x91fb('0x5')))continue;if(!_0x5a2a95[_0x91fb('0x17')][_0x91fb('0x9')](_0x5a2a95['end']))continue;const _0x480e41=_0x4fc8b2['model'][_0x91fb('0x18')][_0x91fb('0x13')](_0x5a2a95[_0x91fb('0xa')],_0x91fb('0xb'));if(_0x480e41&&_0x480e41[_0x91fb('0x1c')]){const _0x5e3e05=_0x598458[_0x91fb('0x10')](_0x5a2a95[_0x91fb('0x17')],_0x480e41[_0x91fb('0x17')]);_0x5e3e05[_0x91fb('0x8')](_0x5a2a95)||(_0x598458[_0x91fb('0x3')](_0x180df2,{'range':_0x5e3e05}),_0x7640f3=!0x0);}_0x7640f3||(_0x598458[_0x91fb('0xd')](_0x180df2),_0x7640f3=!0x0);}return _0x7640f3;});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/undo
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
7
+ */
8
+ export default class TrackChangesUndo extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a2b=['afterInit','editor','enableCommand','plugins','UndoEditing','redo','get'];(function(_0xc4f9db,_0x5a2b96){const _0x216ac0=function(_0x2b084c){while(--_0x2b084c){_0xc4f9db['push'](_0xc4f9db['shift']());}};_0x216ac0(++_0x5a2b96);}(_0x5a2b,0x97));const _0x216a=function(_0xc4f9db,_0x5a2b96){_0xc4f9db=_0xc4f9db-0x0;let _0x216ac0=_0x5a2b[_0xc4f9db];return _0x216ac0;};import{Plugin as _0x22cb3a}from'ckeditor5/src/core';export default class St extends _0x22cb3a{[_0x216a('0x3')](){const _0x28b7cb=this[_0x216a('0x4')],_0x4b2408=_0x28b7cb[_0x216a('0x6')][_0x216a('0x2')]('TrackChangesEditing');_0x28b7cb['plugins']['has'](_0x216a('0x0'))&&(_0x4b2408[_0x216a('0x5')]('undo'),_0x4b2408[_0x216a('0x5')](_0x216a('0x1')));}}
23
+ const _0x9fa7=['undo','get','UndoEditing','enableCommand','TrackChangesEditing','redo','afterInit'];(function(_0x5054bf,_0x9fa7a0){const _0x4757e3=function(_0xe528bc){while(--_0xe528bc){_0x5054bf['push'](_0x5054bf['shift']());}};_0x4757e3(++_0x9fa7a0);}(_0x9fa7,0x1b5));const _0x4757=function(_0x5054bf,_0x9fa7a0){_0x5054bf=_0x5054bf-0x0;let _0x4757e3=_0x9fa7[_0x5054bf];return _0x4757e3;};import{Plugin as _0x28900d}from'ckeditor5/src/core';export default class yt extends _0x28900d{[_0x4757('0x3')](){const _0xa9b68f=this['editor'],_0x125c61=_0xa9b68f['plugins'][_0x4757('0x5')](_0x4757('0x1'));_0xa9b68f['plugins']['has'](_0x4757('0x6'))&&(_0x125c61[_0x4757('0x0')](_0x4757('0x4')),_0x125c61[_0x4757('0x0')](_0x4757('0x2')));}}