@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231116.0 → 0.0.0-nightly-20231118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6cba=['cancel','saveRevision','children','Open\x20revision\x20history','isReady','add','editor','requires','length','get','Save\x20current\x20revision','panelView','items','RevisionTracker','view','isEnabled','Revision\x20history','buttonView','set','history','config','revisionHistory','addMany','remove','saveButtonView','isReadOnly','bind','RevisionHistoryUI','componentFactory','pluginName','submit','plugins','editing','revisionName','execute','focus'];(function(_0x21148d,_0x6cbaf6){const _0x5db48c=function(_0x3d75f5){while(--_0x3d75f5){_0x21148d['push'](_0x21148d['shift']());}};_0x5db48c(++_0x6cbaf6);}(_0x6cba,0xef));const _0x5db4=function(_0x21148d,_0x6cbaf6){_0x21148d=_0x21148d-0x0;let _0x5db48c=_0x6cba[_0x21148d];return _0x5db48c;};import{Plugin as _0x44d73f,icons as _0x232c2b}from'ckeditor5/src/core';import{ListView as _0x284677,ListItemView as _0x11a92c,ButtonView as _0x3e72bb,createDropdown as _0x414562}from'ckeditor5/src/ui';import _0x9e08ff from'../../revisiontracker';import _0x1bc400 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x509208}from'../../utils/common-translations';export default class u extends _0x44d73f{static get[_0x5db4('0x6')](){return _0x5db4('0x4');}static get[_0x5db4('0x14')](){return[_0x9e08ff];}['init'](){const _0x5ae12b=this[_0x5db4('0x13')],_0x134b96=_0x5ae12b[_0x5db4('0x8')][_0x5db4('0x16')](_0x5db4('0x1a'));_0x5ae12b['ui'][_0x5db4('0x5')][_0x5db4('0x12')](_0x5db4('0x22'),_0x348c0f=>{const _0x1c0051=_0x414562(_0x348c0f),_0x28693a=_0x1c0051[_0x5db4('0x18')][_0x5db4('0xf')],_0x220ca1=new _0x284677(_0x348c0f),_0xaa79b6=new _0x11a92c(_0x348c0f),_0x56110e=new _0x3e72bb(_0x348c0f),_0x213f02=new _0x11a92c(_0x348c0f),_0x3c374e=new _0x3e72bb(_0x348c0f),_0xe81659=new _0x1bc400(_0x348c0f);function _0x48314b(){_0x28693a[_0x5db4('0x15')]&&_0x28693a[_0x5db4('0x0')](0x0),_0x28693a[_0x5db4('0x12')](_0x220ca1);}function _0x2be00d(){_0x1c0051['isOpen']=!0x1,_0x5ae12b[_0x5db4('0x9')][_0x5db4('0x1b')]['focus']();}return _0x1c0051['bind'](_0x5db4('0x1c'))['to'](_0x134b96,_0x5db4('0x11'),_0x134b96,_0x5db4('0x1c'),_0x5ae12b,_0x5db4('0x2'),(_0x52fd58,_0x397cfe,_0x3595d8)=>_0x52fd58&&_0x397cfe&&!_0x3595d8),_0x1c0051[_0x5db4('0x1e')][_0x5db4('0x1f')]({'icon':_0x232c2b[_0x5db4('0x20')],'label':_0x509208(_0x348c0f,_0x5db4('0x1d')),'tooltip':!0x0}),_0x56110e[_0x5db4('0x1f')]({'label':_0x509208(_0x348c0f,_0x5db4('0x17')),'withText':!0x0}),_0x56110e[_0x5db4('0x3')]('isEnabled')['to'](_0x134b96,_0x5db4('0x11'),_0x134b96,_0x5db4('0x1c'),_0x5ae12b,'isReadOnly',(_0x1267c4,_0x3f970f,_0x4adc32)=>_0x1267c4&&_0x3f970f&&!_0x4adc32),_0x56110e['on'](_0x5db4('0xb'),()=>function(){_0x28693a['length']&&_0x28693a[_0x5db4('0x0')](0x0),(_0xe81659['reset'](),_0x28693a[_0x5db4('0x12')](_0xe81659),_0xe81659[_0x5db4('0xc')]());}()),_0x3c374e[_0x5db4('0x1f')]({'label':_0x509208(_0x348c0f,_0x5db4('0x10')),'withText':!0x0}),_0x3c374e['bind']('isEnabled')['to'](_0x134b96,_0x5db4('0x11'),_0x5ae12b,_0x5db4('0x2'),(_0x299b61,_0x4fa385)=>_0x299b61&&!_0x4fa385),_0x3c374e['on'](_0x5db4('0xb'),()=>{_0x5ae12b[_0x5db4('0x21')][_0x5db4('0x16')](_0x5db4('0x22'))['showRevisionViewerCallback'](),_0x2be00d();}),_0xaa79b6['children'][_0x5db4('0x12')](_0x56110e),_0x213f02[_0x5db4('0xf')][_0x5db4('0x12')](_0x3c374e),_0x220ca1[_0x5db4('0x19')][_0x5db4('0x23')]([_0xaa79b6,_0x213f02]),_0x1c0051['on']('change:isOpen',()=>_0x48314b()),_0xe81659[_0x5db4('0x1')][_0x5db4('0x3')]('isEnabled')['to'](_0x134b96,_0x5db4('0x11'),_0x134b96,_0x5db4('0x1c'),_0x5ae12b,'isReadOnly',(_0x46ba98,_0x1b5119,_0x59f0ea)=>_0x46ba98&&_0x1b5119&&!_0x59f0ea),_0xe81659['on'](_0x5db4('0x7'),()=>(_0x5ae12b['plugins']['get'](_0x9e08ff)[_0x5db4('0xe')]({'name':_0xe81659[_0x5db4('0xa')]}),void _0x2be00d())),_0xe81659['on'](_0x5db4('0xd'),()=>_0x48314b()),_0xe81659['render'](),_0x48314b(),_0x1c0051;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3233=['compareAgainstSelected','get','render','string','getRevision','_handleDiffChange','restoreRevisionCallback','Restore\x20this\x20revision','selectRevision','revisionSelected','Compare\x20against\x20selected','length','highlightRevisions','_handleEditorDataReady','_revisionsRepository','revisionHistory','listenTo','isReady','remove','_createRevisionActions','setName','fieldView','diff','revisionHistory.viewerSidebarContainer','_revisionViewer','ready','repository','element','newRevisionId','change:diff','data','destroy','getLaterVisibleRevision','action','focus','defaultRevisionActions','_handleRevisionSelected','_sidebarView','restoreRevision','editor','_handleRevisionSetName','config','isVisible','requires','availableRevisionActions','isEnabled','select','getRevisionsInDiff','init','getEarlierVisibleRevision','assign','compare','_revisions','revisionViews','Name\x20this\x20revision','getIndex','nameRevision','bind','RevisionsSidebar'];(function(_0x580516,_0x3233b0){const _0x309fa6=function(_0x3c014f){while(--_0x3c014f){_0x580516['push'](_0x580516['shift']());}};_0x309fa6(++_0x3233b0);}(_0x3233,0x1d6));const _0x309f=function(_0x580516,_0x3233b0){_0x580516=_0x580516-0x0;let _0x309fa6=_0x3233[_0x580516];return _0x309fa6;};import{Plugin as _0x149982}from'ckeditor5/src/core';import _0x1cba97 from'./revisionssidebarview';import _0x5a3760 from'../../revisionviewer';export default class w extends _0x149982{static get['pluginName'](){return _0x309f('0x1');}static get[_0x309f('0x2d')](){return[_0x5a3760];}constructor(_0x1d4834){super(_0x1d4834),this[_0x309f('0x1a')]=_0x1d4834['plugins'][_0x309f('0x3')](_0x5a3760),this['_revisionsRepository']=this[_0x309f('0x1a')][_0x309f('0x1c')],this[_0x309f('0x27')]=null;}[_0x309f('0x32')](){const _0x2c298e=this['_revisionsRepository'][_0x309f('0x36')],_0x5eccdb=this['_createRevisionActions'](),_0x30cc30=this[_0x309f('0x29')][_0x309f('0x2b')][_0x309f('0x3')](_0x309f('0x19'));this['_sidebarView']=new _0x1cba97(this[_0x309f('0x29')]['locale'],_0x2c298e,_0x5eccdb),this[_0x309f('0x27')]['on'](_0x309f('0xb'),this[_0x309f('0x26')]['bind'](this)),this[_0x309f('0x27')]['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView'][_0x309f('0x0')](_0x309f('0x2f'))['to'](this[_0x309f('0x1a')]),this[_0x309f('0x27')]['timePeriodViews']['on']('add',(_0x3eb02b,_0x37c741)=>{_0x37c741[_0x309f('0x37')]['on']('add',(_0x50c84a,_0x37afc6)=>{_0x37afc6[_0x309f('0x0')]('isEnabled',_0x309f('0x13'))['to'](this[_0x309f('0x1a')]);});}),this['_sidebarView'][_0x309f('0x4')](),this[_0x309f('0x12')](this[_0x309f('0x29')][_0x309f('0x20')],_0x309f('0x1b'),this[_0x309f('0xf')][_0x309f('0x0')](this)),this[_0x309f('0x12')](this['_revisionViewer'],_0x309f('0x1f'),this[_0x309f('0x7')][_0x309f('0x0')](this)),_0x30cc30['appendChild'](this[_0x309f('0x27')][_0x309f('0x1d')]);}[_0x309f('0x21')](){this[_0x309f('0x27')][_0x309f('0x1d')][_0x309f('0x14')](),this['_sidebarView']['destroy']();}[_0x309f('0xf')](){const _0x17ce7e=this[_0x309f('0x10')]['getRevision'](0x0);if(_0x17ce7e){const _0x26408d=this['_revisionsRepository'][_0x309f('0x33')](_0x17ce7e['id']);this[_0x309f('0x1a')][_0x309f('0x35')](_0x17ce7e,_0x26408d);}}[_0x309f('0x26')](_0x38df0e,_0x55133a){const _0x4ea9c1=this[_0x309f('0x10')][_0x309f('0x6')](_0x55133a['id']),_0x364843=this[_0x309f('0x10')][_0x309f('0x33')](_0x4ea9c1['id']);this[_0x309f('0x1a')][_0x309f('0x35')](_0x4ea9c1,_0x364843);}[_0x309f('0x2a')](_0xfda894,_0x152d3f){this[_0x309f('0x10')][_0x309f('0x6')](_0x152d3f['id'])[_0x309f('0x16')](_0x152d3f['name']);}[_0x309f('0x7')](_0x18bd20,_0x3bbd33,_0x51a26e){const _0x5832a2=this['_revisionsRepository'][_0x309f('0x31')](_0x51a26e);_0x5832a2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5832a2),this[_0x309f('0x27')]['selectRevision'](null)):(this['_sidebarView'][_0x309f('0xe')]([]),this['_sidebarView'][_0x309f('0xa')](_0x5832a2[0x0]));}[_0x309f('0x15')](){const _0x435e15=this[_0x309f('0x29')],_0x2f92ad=w[_0x309f('0x2e')],_0x344fcc=_0x435e15['config']['get']('revisionHistory.revisionActions')||w[_0x309f('0x25')];if(_0x344fcc[_0x309f('0xd')])return _0x344fcc['map'](_0x4c1bf4=>{const _0x51ff9c=_0x309f('0x5')==typeof _0x4c1bf4?Object[_0x309f('0x34')]({},_0x2f92ad[_0x4c1bf4]):_0x4c1bf4;return _0x51ff9c['action']=_0x51ff9c[_0x309f('0x23')][_0x309f('0x0')](this,_0x435e15),_0x51ff9c[_0x309f('0x2c')]&&(_0x51ff9c['isVisible']=_0x51ff9c[_0x309f('0x2c')][_0x309f('0x0')](this,_0x435e15)),_0x51ff9c;});}}w[_0x309f('0x2e')]={'compareAgainstSelected':{'name':_0x309f('0xc'),'action':({plugins:_0x1e72f4},_0x402bb1)=>{const _0x1743e7=_0x1e72f4[_0x309f('0x3')](_0x5a3760),_0x3c2c0a=_0x1743e7[_0x309f('0x1c')];let _0x2906cd=_0x1743e7[_0x309f('0x18')][_0x309f('0x1e')],_0x23eb90=_0x402bb1['id'];_0x3c2c0a[_0x309f('0x39')](_0x2906cd)>_0x3c2c0a[_0x309f('0x39')](_0x23eb90)&&([_0x2906cd,_0x23eb90]=[_0x23eb90,_0x2906cd]),_0x1743e7[_0x309f('0x35')](_0x2906cd,_0x23eb90);},'isVisible':({plugins:_0x3866b4},_0x6fae7a)=>{const _0x82b181=_0x3866b4[_0x309f('0x3')](_0x5a3760);return!(_0x82b181['repository']['getRevisionsInDiff'](_0x82b181[_0x309f('0x18')])[_0x309f('0xd')]>0x2)&&!_0x6fae7a['isSelected'];}},'restoreRevision':{'name':_0x309f('0x9'),'action':(_0x3a2c5e,{id:_0x429ae3})=>{_0x3a2c5e[_0x309f('0x2b')][_0x309f('0x3')](_0x309f('0x11'))[_0x309f('0x8')](_0x429ae3);},'isVisible':({plugins:_0x47771f},_0x47cf4a)=>!!_0x47771f[_0x309f('0x3')](_0x5a3760)['repository'][_0x309f('0x22')](_0x47cf4a['id'])},'nameRevision':{'name':_0x309f('0x38'),'action':({plugins:_0x14027d},{id:_0x1acbb0,revisionNameView:_0x1f92e4})=>{const _0x111d91=_0x14027d[_0x309f('0x3')](_0x5a3760),_0x4edcaf=_0x111d91[_0x309f('0x1c')]['getEarlierVisibleRevision'](_0x1acbb0);_0x111d91['compare'](_0x1acbb0,_0x4edcaf),_0x1f92e4[_0x309f('0x24')](),_0x1f92e4[_0x309f('0x17')][_0x309f('0x30')]();}}},w[_0x309f('0x25')]=[_0x309f('0x2'),_0x309f('0x28'),_0x309f('0x3a')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2054=['div','history','ck-revision-history-sidebar__header','ck-reset_all','setTemplate','ck-revision-history-sidebar__header__label'];(function(_0x288aaf,_0x205429){const _0x1d140a=function(_0x260a3e){while(--_0x260a3e){_0x288aaf['push'](_0x288aaf['shift']());}};_0x1d140a(++_0x205429);}(_0x2054,0x10e));const _0x1d14=function(_0x288aaf,_0x205429){_0x288aaf=_0x288aaf-0x0;let _0x1d140a=_0x2054[_0x288aaf];return _0x1d140a;};import{View as _0x435b5b,IconView as _0x3eea07}from'ckeditor5/src/ui';import{getTranslation as _0x44ea2a}from'../../utils/common-translations';import{icons as _0x1318a3}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x435b5b{constructor(_0x3d91a0){super(_0x3d91a0);const _0x1d6b0a=new _0x3eea07();_0x1d6b0a['content']=_0x1318a3[_0x1d14('0x1')],this[_0x1d14('0x4')]({'tag':_0x1d14('0x0'),'attributes':{'class':['ck',_0x1d14('0x3'),_0x1d14('0x2')]},'children':[_0x1d6b0a,{'tag':'span','attributes':{'class':['ck',_0x1d14('0x5')]},'children':[_0x44ea2a(_0x3d91a0,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x116f=['ck-revision-history-sidebar__time-period','span','createCollection','ck-revision-history-sidebar__time-period__label','delegate','localizedPeriodName','locale','find','add','_revisionActions','remove','removeRevision','startDate','revisionViews','setTemplate','uiLanguage'];(function(_0x110048,_0x116f5a){const _0x2b8a0a=function(_0x4c05ef){while(--_0x4c05ef){_0x110048['push'](_0x110048['shift']());}};_0x2b8a0a(++_0x116f5a);}(_0x116f,0xab));const _0x2b8a=function(_0x110048,_0x116f5a){_0x110048=_0x110048-0x0;let _0x2b8a0a=_0x116f[_0x110048];return _0x2b8a0a;};import{View as _0x485b42}from'ckeditor5/src/ui';import _0x14c43d from'../revision/revisionview';import{getDateTimePeriodInfo as _0xf040a4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x485b42{constructor(_0x4aa732,_0x426b6c,_0x46cde0){super(_0x4aa732);const _0x262ddc=_0xf040a4(_0x426b6c,this['locale'][_0x2b8a('0x4')])[_0x2b8a('0xa')];this[_0x2b8a('0x1')]=_0x426b6c,this[_0x2b8a('0x2')]=this[_0x2b8a('0x7')](),this[_0x2b8a('0xe')]=_0x46cde0,this[_0x2b8a('0x2')][_0x2b8a('0x9')]('select')['to'](this),this[_0x2b8a('0x2')][_0x2b8a('0x9')]('setName')['to'](this),this[_0x2b8a('0x3')]({'tag':'div','attributes':{'class':['ck',_0x2b8a('0x5')]},'children':[{'tag':_0x2b8a('0x6'),'attributes':{'class':['ck',_0x2b8a('0x8')]},'children':[{'text':_0x262ddc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x2b8a('0x2')]}]});}['addRevision'](_0x15d55c){const _0x505542=new _0x14c43d(this[_0x2b8a('0xb')],_0x15d55c,this[_0x2b8a('0xe')]);this[_0x2b8a('0x2')][_0x2b8a('0xd')](_0x505542);}[_0x2b8a('0x0')](_0x2ea34e){const _0x5993bd=this[_0x2b8a('0x2')][_0x2b8a('0xc')](_0x57e3e8=>_0x57e3e8['id']===_0x2ea34e['id']);this[_0x2b8a('0x2')][_0x2b8a('0xf')](_0x5993bd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4643=['delegate','div','addRevision','ck-reset','get','revisionViews','_revisionActions','find','selectRevision','_addRevision','removeRevision','_getTimePeriodViewByStartDate','createCollection','ck-revision-history-sidebar__timeline','getTime','startDate','some','set','fire','bindTemplate','ck-revision-history-sidebar','isEnabled','ck-rounded-corners','select','highlightRevisions','deselect','_removeRevision','_revisions','createdAt','remove','unhighlight','flat','render','add','map','highlight','setName','ck-disabled','timePeriodViews','uiLanguage','locale'];(function(_0x3c4d7e,_0x464352){const _0x16100f=function(_0x2a65cd){while(--_0x2a65cd){_0x3c4d7e['push'](_0x3c4d7e['shift']());}};_0x16100f(++_0x464352);}(_0x4643,0x73));const _0x1610=function(_0x3c4d7e,_0x464352){_0x3c4d7e=_0x3c4d7e-0x0;let _0x16100f=_0x4643[_0x3c4d7e];return _0x16100f;};import{View as _0x159c39}from'ckeditor5/src/ui';import _0x3332fd from'./revisionssidebartimeperiodview';import _0x1c21ef from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2731da}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x159c39{constructor(_0x294d75,_0x15a54c,_0x1e63ab){super(_0x294d75);const _0x559ba3=this[_0x1610('0x1b')];this['timePeriodViews']=this[_0x1610('0x14')](),this[_0x1610('0x5')][_0x1610('0x8')](_0x1610('0x1f'))['to'](this),this['timePeriodViews'][_0x1610('0x8')](_0x1610('0x3'))['to'](this),this['_revisions']=_0x15a54c,this[_0x1610('0xe')]=_0x1e63ab,this['on'](_0x1610('0x1f'),(_0x3d7676,_0x483a1f)=>{this[_0x1610('0x1a')]('revisionSelected',_0x483a1f);}),this['on'](_0x1610('0x3'),(_0x7628e,_0x5e269a)=>{this[_0x1610('0x1a')]('revisionSetName',_0x5e269a);}),this[_0x1610('0x19')](_0x1610('0x1d'),!0x1),this['setTemplate']({'tag':_0x1610('0x9'),'attributes':{'class':['ck',_0x1610('0xb'),_0x1610('0x1e'),_0x1610('0x1c')]},'children':[new _0x1c21ef(_0x294d75),{'tag':_0x1610('0x9'),'attributes':{'class':['ck',_0x1610('0x15'),_0x559ba3['if'](_0x1610('0x1d'),_0x1610('0x4'),_0x44f152=>!_0x44f152)]},'children':this[_0x1610('0x5')]}]});}[_0x1610('0x28')](){super[_0x1610('0x28')]();for(const _0x4d43ca of this['_revisions'])this[_0x1610('0x11')](_0x4d43ca);this[_0x1610('0x23')]['on'](_0x1610('0x0'),(_0x53c7b7,_0x183fb2)=>{this[_0x1610('0x11')](_0x183fb2);}),this['_revisions']['on'](_0x1610('0x25'),(_0x3735e8,_0x513e29)=>{this[_0x1610('0x22')](_0x513e29);});}get[_0x1610('0xd')](){return this[_0x1610('0x5')][_0x1610('0x1')](_0x42e089=>_0x42e089[_0x1610('0xd')][_0x1610('0x1')](_0x4394d8=>_0x4394d8))[_0x1610('0x27')]();}[_0x1610('0x10')](_0x280417){for(const _0x5acdfa of this[_0x1610('0xd')])_0x280417&&_0x280417['id']===_0x5acdfa['id']?_0x5acdfa[_0x1610('0x1f')]():_0x5acdfa[_0x1610('0x21')]();}[_0x1610('0x20')](_0x11151b){for(const _0x16ef55 of this['revisionViews'])_0x11151b[_0x1610('0x18')](({id:_0x1191fe})=>_0x1191fe===_0x16ef55['id'])?_0x16ef55[_0x1610('0x2')]():_0x16ef55[_0x1610('0x26')]();}[_0x1610('0x11')](_0x54abf1){const _0x50d5a6=_0x2731da(_0x54abf1[_0x1610('0x24')],this[_0x1610('0x7')]['uiLanguage'])[_0x1610('0x17')];let _0x3d5ae7=this['timePeriodViews'][_0x1610('0xc')](0x0);_0x3d5ae7&&_0x3d5ae7['startDate']['getTime']()===_0x50d5a6[_0x1610('0x16')]()||(_0x3d5ae7=new _0x3332fd(this['locale'],_0x50d5a6,this[_0x1610('0xe')]),this[_0x1610('0x5')][_0x1610('0x0')](_0x3d5ae7)),_0x3d5ae7[_0x1610('0xa')](_0x54abf1);}[_0x1610('0x22')](_0x462b20){const _0x5996f7=_0x2731da(_0x462b20[_0x1610('0x24')],this[_0x1610('0x7')][_0x1610('0x6')])[_0x1610('0x17')];this[_0x1610('0x13')](_0x5996f7)[_0x1610('0x12')](_0x462b20);}['_getTimePeriodViewByStartDate'](_0x5a5ff4){return this[_0x1610('0x5')][_0x1610('0xf')](_0x386529=>_0x386529[_0x1610('0x17')]['getTime']()===_0x5a5ff4['getTime']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3544=['toRelativeCalendar','toJSDate','setLocale','weekdayLong','year','local','hasSame','startOf','day','fromJSDate','minus','week'];(function(_0x277a39,_0x3544c8){const _0x4116c8=function(_0x279ad7){while(--_0x279ad7){_0x277a39['push'](_0x277a39['shift']());}};_0x4116c8(++_0x3544c8);}(_0x3544,0x109));const _0x4116=function(_0x277a39,_0x3544c8){_0x277a39=_0x277a39-0x0;let _0x4116c8=_0x3544[_0x277a39];return _0x4116c8;};import{DateTime as _0x1f0cb0}from'luxon';export function getDateTimePeriodInfo(_0x128f4d,_0x45485c){const _0xdd232f=_0x1f0cb0[_0x4116('0x8')](_0x128f4d)[_0x4116('0x1')](_0x45485c),_0x20c592=_0x1f0cb0[_0x4116('0x4')](),_0x10ec98=_0x20c592[_0x4116('0x9')]({'days':0x1})[_0x4116('0x6')](_0x4116('0x7'));let _0x347eac,_0x1305d2;return _0xdd232f[_0x4116('0x5')](_0x20c592,_0x4116('0x7'))?(_0x347eac=_0xdd232f[_0x4116('0x6')](_0x4116('0x7'))[_0x4116('0x0')](),_0x1305d2=_0xdd232f[_0x4116('0xb')]()):_0xdd232f[_0x4116('0x5')](_0x10ec98,_0x4116('0x7'))?(_0x347eac=_0x10ec98['toJSDate'](),_0x1305d2=_0xdd232f[_0x4116('0xb')]()):_0xdd232f[_0x4116('0x5')](_0x20c592,_0x4116('0xa'))?(_0x347eac=_0xdd232f['startOf'](_0x4116('0xa'))[_0x4116('0x0')](),_0x1305d2=_0xdd232f[_0x4116('0x2')]||''):_0xdd232f['hasSame'](_0x20c592,_0x4116('0x3'))?(_0x347eac=_0xdd232f[_0x4116('0x6')]('month')[_0x4116('0x0')](),_0x1305d2=_0xdd232f['monthLong']||''):(_0x347eac=_0xdd232f[_0x4116('0x6')]('year')[_0x4116('0x0')](),_0x1305d2=String(_0xdd232f[_0x4116('0x3')])),{'startDate':_0x347eac,'localizedPeriodName':_0x1305d2};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x605c=['focus','_model','bindTemplate','Suggested\x20by','add','isSuggestion','changeId','set','ck-revision-change__label','Added\x20by','span','Removed\x20by','element','div','type'];(function(_0x48c11e,_0x605c90){const _0x323839=function(_0x41cc06){while(--_0x41cc06){_0x48c11e['push'](_0x48c11e['shift']());}};_0x323839(++_0x605c90);}(_0x605c,0x195));const _0x3238=function(_0x48c11e,_0x605c90){_0x48c11e=_0x48c11e-0x0;let _0x323839=_0x605c[_0x48c11e];return _0x323839;};import{View as _0x340dfc}from'ckeditor5/src/ui';import{getTranslation as _0x3a00ef}from'../../utils/common-translations';export default class Z extends _0x340dfc{constructor(_0x32e457,_0x4f6b85){super(_0x32e457),this[_0x3238('0x1')]=_0x4f6b85,this[_0x3238('0x6')]=_0x4f6b85['id'];const _0x100d01=this[_0x3238('0x2')],_0x463a1a=_0x3a00ef(_0x32e457,_0x4f6b85['data'][_0x3238('0x5')]?_0x3238('0x3'):_0x3238('0x4')==_0x4f6b85[_0x3238('0xe')]?_0x3238('0x9'):_0x3238('0xb'));this[_0x3238('0x7')](_0x3238('0xe'),_0x4f6b85['type']),this['setTemplate']({'tag':_0x3238('0xd'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x100d01['to'](_0x3238('0xe'),_0x5e3b96=>'ck-revision-change__'+_0x5e3b96)],'tabindex':-0x1},'children':[{'tag':_0x3238('0xa'),'children':[{'tag':'span','attributes':{'class':[_0x3238('0x8')]},'children':[{'text':_0x463a1a}]},{'text':'\x20'+_0x4f6b85['author']['name']}]}]});}['focus'](){this[_0x3238('0xc')][_0x3238('0x0')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2752=['span','NUMBER_OF_CHANGES','Loading...','ck-revision-history-ui__changes-navigation','set','_statusText','fire','ck-revision-history-ui__changes-navigation__label','isReady','isEnabled','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','div','No\x20changes','execute','isNavigationMode','bind','numberOfChanges','isForwardNavigationEnabled','ck-hidden','isBackwardNavigationEnabled','ck-revision-history-ui','EDIT_X_OF_Y_REVISIONS','setTemplate','bindTemplate','backward','currentChangeNumber'];(function(_0x1bf9be,_0x275209){const _0x5d825c=function(_0x60cf17){while(--_0x60cf17){_0x1bf9be['push'](_0x1bf9be['shift']());}};_0x5d825c(++_0x275209);}(_0x2752,0xd9));const _0x5d82=function(_0x1bf9be,_0x275209){_0x1bf9be=_0x1bf9be-0x0;let _0x5d825c=_0x2752[_0x1bf9be];return _0x5d825c;};import{View as _0xea32c1,ButtonView as _0x587b1a,ToolbarSeparatorView as _0xa09904}from'ckeditor5/src/ui';import{getTranslation as _0x8642c6}from'../../utils/common-translations';import _0x221f24 from'../../../theme/icons/arrow-up.svg';import _0x38da1e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xea32c1{constructor(_0x461a42){super(_0x461a42);const _0x2c9346=this[_0x5d82('0x17')],_0x44de6f=new _0x587b1a(_0x461a42),_0x31a25d=new _0x587b1a(_0x461a42);this[_0x5d82('0x3')](_0x5d82('0xe'),!0x1),this[_0x5d82('0x3')](_0x5d82('0x7'),!0x1),this[_0x5d82('0x3')](_0x5d82('0x19'),0x0),this['set']('numberOfChanges',0x0),this[_0x5d82('0x3')](_0x5d82('0x11'),!0x1),this['set'](_0x5d82('0x13'),!0x1),this[_0x5d82('0xf')](_0x5d82('0x9'))['to'](this,'isReady',this,_0x5d82('0x10'),(_0x3af6d2,_0xf8ba2d)=>_0x3af6d2&&_0xf8ba2d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,_0x5d82('0x10'),this,_0x5d82('0xe'),(_0x41f61c,_0x5cd6e1,_0x2f293e,_0x5edaf1)=>{if(!_0x41f61c)return _0x8642c6(_0x461a42,_0x5d82('0x1'));if(!_0x2f293e)return _0x8642c6(_0x461a42,_0x5d82('0xc'));const _0x4dd25b=_0x8642c6(_0x461a42,_0x5d82('0x0'),_0x2f293e);return _0x5edaf1?_0x8642c6(_0x461a42,'X_OF_Y_CHANGES',[_0x5cd6e1+0x1,_0x2f293e]):_0x4dd25b;}),_0x44de6f[_0x5d82('0x3')]({'label':_0x8642c6(_0x461a42,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x221f24}),_0x31a25d[_0x5d82('0x3')]({'label':_0x8642c6(_0x461a42,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x38da1e}),_0x44de6f[_0x5d82('0xf')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x31a25d[_0x5d82('0xf')](_0x5d82('0x8'))['to'](this,_0x5d82('0x11')),_0x44de6f['on'](_0x5d82('0xd'),()=>this[_0x5d82('0x5')](_0x5d82('0xd'),_0x5d82('0x18'))),_0x31a25d['on'](_0x5d82('0xd'),()=>this['fire'](_0x5d82('0xd'),'forward')),this[_0x5d82('0x16')]({'tag':'div','attributes':{'class':['ck',_0x5d82('0x14'),_0x5d82('0x2')]},'children':[{'tag':_0x5d82('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x5d82('0x1a'),'attributes':{'class':[_0x5d82('0x6'),_0x2c9346['if'](_0x5d82('0x9'),_0x5d82('0x12'),_0x4bcea4=>!_0x4bcea4)]},'children':[{'text':_0x2c9346['to']('isNavigationMode',_0x27f088=>_0x27f088?_0x8642c6(_0x461a42,_0x5d82('0x15'))+':\x20':_0x8642c6(_0x461a42,'Total')+':\x20')}]},{'text':_0x2c9346['to'](_0x5d82('0x4'))}]},new _0xa09904(),{'tag':_0x5d82('0xb'),'attributes':{'class':[_0x5d82('0xa')]},'children':[_0x44de6f,_0x31a25d]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3897=['pluginName','view','editing','show','RevisionViewerLoadingOverlay','change','roots','document','editor','removeClass'];(function(_0xc7b696,_0x3897d8){const _0x4b41c8=function(_0x103aa9){while(--_0x103aa9){_0xc7b696['push'](_0xc7b696['shift']());}};_0x4b41c8(++_0x3897d8);}(_0x3897,0x98));const _0x4b41=function(_0xc7b696,_0x3897d8){_0xc7b696=_0xc7b696-0x0;let _0x4b41c8=_0x3897[_0xc7b696];return _0x4b41c8;};import{Plugin as _0x219ddc}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x219ddc{static get[_0x4b41('0x8')](){return _0x4b41('0x2');}[_0x4b41('0x1')](){const _0x17740f=this[_0x4b41('0x6')][_0x4b41('0x0')][_0x4b41('0x9')];_0x17740f[_0x4b41('0x3')](_0x5b1e10=>{for(const _0x2a9ed1 of _0x17740f[_0x4b41('0x5')][_0x4b41('0x4')])_0x5b1e10['addClass'](oe,_0x2a9ed1);});}['hide'](){const _0x5f5a52=this[_0x4b41('0x6')][_0x4b41('0x0')][_0x4b41('0x9')];_0x5f5a52[_0x4b41('0x3')](_0x28b0c4=>{for(const _0x40bfa4 of _0x5f5a52[_0x4b41('0x5')]['roots'])_0x28b0c4[_0x4b41('0x7')](oe,_0x40bfa4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x210c=['get','plugins','restoreRevision','isReady','closeRevisionViewerCallback','isEnabled','bind','change:isReady','isNavigationMode','ck-revision-history-ui__back-to-editing','commands','showPreviousChange','revisionHistory','set','editor','showNextChange','listenTo','config','show','exitToEditing','execute','RevisionViewerUI','Restore\x20this\x20revision','Back\x20to\x20editing','pluginName','componentFactory','requires','numberOfChanges','add','hide'];(function(_0x333406,_0x210c46){const _0x2f1bc0=function(_0x1290be){while(--_0x1290be){_0x333406['push'](_0x333406['shift']());}};_0x2f1bc0(++_0x210c46);}(_0x210c,0x13b));const _0x2f1b=function(_0x333406,_0x210c46){_0x333406=_0x333406-0x0;let _0x2f1bc0=_0x210c[_0x333406];return _0x2f1bc0;};import{Plugin as _0x4d44b8}from'ckeditor5/src/core';import{ButtonView as _0xd35f27}from'ckeditor5/src/ui';import _0x1612f5 from'./changesnavigationview';import _0x4eac7f from'./../../revisionviewer';import _0x38da48 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1bd3c1}from'../../utils/common-translations';import _0xf206fc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4d44b8{static get[_0x2f1b('0x9')](){return _0x2f1b('0x6');}static get[_0x2f1b('0xb')](){return[_0x4eac7f,_0x38da48];}['init'](){const _0x1b3ad7=this[_0x2f1b('0x1d')],_0x43001b=_0x1b3ad7[_0x2f1b('0x10')][_0x2f1b('0xf')](_0x4eac7f),_0x565cbd=_0x1b3ad7[_0x2f1b('0x10')][_0x2f1b('0xf')](_0x38da48);_0x1b3ad7['ui'][_0x2f1b('0xa')][_0x2f1b('0xd')](_0x2f1b('0x4'),_0x4a6e90=>{const _0x52d3d3=new _0xd35f27(_0x4a6e90);return _0x52d3d3['set']({'label':_0x1bd3c1(_0x4a6e90,_0x2f1b('0x8')),'icon':_0xf206fc,'withText':!0x0,'tooltip':!0x0,'class':_0x2f1b('0x18')}),this['listenTo'](_0x52d3d3,_0x2f1b('0x5'),()=>{_0x1b3ad7[_0x2f1b('0x2')][_0x2f1b('0xf')](_0x2f1b('0x1b'))[_0x2f1b('0x13')]();}),_0x52d3d3;}),_0x1b3ad7['ui'][_0x2f1b('0xa')][_0x2f1b('0xd')]('restoreRevision',_0x129107=>{const _0x3d52a0=new _0xd35f27(_0x129107);return _0x3d52a0[_0x2f1b('0x1c')]({'label':_0x1bd3c1(_0x129107,_0x2f1b('0x7')),'withText':!0x0,'tooltip':!0x0}),_0x3d52a0[_0x2f1b('0x15')](_0x2f1b('0x14'))['to'](_0x1b3ad7['commands'][_0x2f1b('0xf')](_0x2f1b('0x11'))),this[_0x2f1b('0x1')](_0x3d52a0,_0x2f1b('0x5'),()=>_0x1b3ad7['execute'](_0x2f1b('0x11'))),_0x3d52a0;}),_0x1b3ad7['ui'][_0x2f1b('0xa')][_0x2f1b('0xd')]('changesNavigation',_0xee81a0=>{const _0x1b9209=new _0x1612f5(_0xee81a0),_0x4323c8=_0x1b3ad7[_0x2f1b('0x19')][_0x2f1b('0xf')](_0x2f1b('0x1a')),_0x547341=_0x1b3ad7[_0x2f1b('0x19')][_0x2f1b('0xf')](_0x2f1b('0x0'));return _0x1b9209[_0x2f1b('0x15')]('isBackwardNavigationEnabled')['to'](_0x4323c8,'isEnabled'),_0x1b9209[_0x2f1b('0x15')]('isForwardNavigationEnabled')['to'](_0x547341,'isEnabled'),_0x1b9209[_0x2f1b('0x15')](_0x2f1b('0x12'),'currentChangeNumber',_0x2f1b('0xc'),_0x2f1b('0x17'))['to'](_0x43001b),this[_0x2f1b('0x1')](_0x1b9209,'execute',(_0xe48783,_0x4c9d8f)=>{_0x1b3ad7[_0x2f1b('0x5')]('forward'===_0x4c9d8f?'showNextChange':_0x2f1b('0x1a'));}),_0x1b9209;}),_0x565cbd[_0x2f1b('0x3')](),_0x43001b['on'](_0x2f1b('0x16'),(_0x73bc75,_0x1c1e08,_0x52a633)=>{_0x52a633?_0x565cbd[_0x2f1b('0xe')]():_0x565cbd[_0x2f1b('0x3')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1a4051,_0x5ad349,_0x3f19fa){const t=_0x1a4051['t'];switch(_0x5ad349){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x3f19fa);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3f19fa);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x5ad349;}}
|