@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231016.0 → 0.0.0-nightly-20231018.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 _0x1c07=['focus','revisionHistory','buttonView','add','bind','items','requires','RevisionTracker','length','addMany','isReadOnly','showRevisionViewerCallback','children','remove','isReady','saveRevision','change:isOpen','isEnabled','isOpen','history','config','RevisionHistoryUI','Save\x20current\x20revision','cancel','plugins','pluginName','editing','panelView','get','execute','Revision\x20history','set','Open\x20revision\x20history','componentFactory','view','saveButtonView','editor'];(function(_0x164e10,_0x1c072b){const _0x15e046=function(_0x46cdab){while(--_0x46cdab){_0x164e10['push'](_0x164e10['shift']());}};_0x15e046(++_0x1c072b);}(_0x1c07,0xc1));const _0x15e0=function(_0x164e10,_0x1c072b){_0x164e10=_0x164e10-0x0;let _0x15e046=_0x1c07[_0x164e10];return _0x15e046;};import{Plugin as _0x13b0e5,icons as _0x1cf5d9}from'ckeditor5/src/core';import{ListView as _0x35df3f,ListItemView as _0x34e2d7,ButtonView as _0x38d080,createDropdown as _0x3375d0}from'ckeditor5/src/ui';import _0x3800be from'../../revisiontracker';import _0x353bdb from'./revisionhistorysaverevisionformview';import{getTranslation as _0x3ad317}from'../../utils/common-translations';export default class u extends _0x13b0e5{static get[_0x15e0('0x11')](){return _0x15e0('0xd');}static get[_0x15e0('0x23')](){return[_0x3800be];}['init'](){const _0x48dc64=this[_0x15e0('0x1c')],_0x4d73ef=_0x48dc64['plugins']['get'](_0x15e0('0x24'));_0x48dc64['ui'][_0x15e0('0x19')]['add']('revisionHistory',_0x3591bc=>{const _0x406e88=_0x3375d0(_0x3591bc),_0x33f25a=_0x406e88[_0x15e0('0x13')][_0x15e0('0x4')],_0x2d8ac2=new _0x35df3f(_0x3591bc),_0x30c71d=new _0x34e2d7(_0x3591bc),_0x3f1349=new _0x38d080(_0x3591bc),_0xcef133=new _0x34e2d7(_0x3591bc),_0xe753a4=new _0x38d080(_0x3591bc),_0x3b5d10=new _0x353bdb(_0x3591bc);function _0xc7fb28(){_0x33f25a[_0x15e0('0x0')]&&_0x33f25a[_0x15e0('0x5')](0x0),_0x33f25a[_0x15e0('0x20')](_0x2d8ac2);}function _0x3fd2fb(){_0x406e88[_0x15e0('0xa')]=!0x1,_0x48dc64[_0x15e0('0x12')][_0x15e0('0x1a')][_0x15e0('0x1d')]();}return _0x406e88[_0x15e0('0x21')](_0x15e0('0x9'))['to'](_0x4d73ef,_0x15e0('0x6'),_0x4d73ef,_0x15e0('0x9'),_0x48dc64,'isReadOnly',(_0x554f7c,_0x2da7ac,_0x491286)=>_0x554f7c&&_0x2da7ac&&!_0x491286),_0x406e88[_0x15e0('0x1f')][_0x15e0('0x17')]({'icon':_0x1cf5d9[_0x15e0('0xb')],'label':_0x3ad317(_0x3591bc,_0x15e0('0x16')),'tooltip':!0x0}),_0x3f1349[_0x15e0('0x17')]({'label':_0x3ad317(_0x3591bc,_0x15e0('0xe')),'withText':!0x0}),_0x3f1349[_0x15e0('0x21')](_0x15e0('0x9'))['to'](_0x4d73ef,_0x15e0('0x6'),_0x4d73ef,_0x15e0('0x9'),_0x48dc64,_0x15e0('0x2'),(_0x3b32a3,_0x462c63,_0x473d90)=>_0x3b32a3&&_0x462c63&&!_0x473d90),_0x3f1349['on'](_0x15e0('0x15'),()=>function(){_0x33f25a[_0x15e0('0x0')]&&_0x33f25a[_0x15e0('0x5')](0x0),(_0x3b5d10['reset'](),_0x33f25a[_0x15e0('0x20')](_0x3b5d10),_0x3b5d10[_0x15e0('0x1d')]());}()),_0xe753a4[_0x15e0('0x17')]({'label':_0x3ad317(_0x3591bc,_0x15e0('0x18')),'withText':!0x0}),_0xe753a4[_0x15e0('0x21')](_0x15e0('0x9'))['to'](_0x4d73ef,'isReady',_0x48dc64,'isReadOnly',(_0x41cf09,_0x8a8760)=>_0x41cf09&&!_0x8a8760),_0xe753a4['on'](_0x15e0('0x15'),()=>{_0x48dc64[_0x15e0('0xc')][_0x15e0('0x14')](_0x15e0('0x1e'))[_0x15e0('0x3')](),_0x3fd2fb();}),_0x30c71d[_0x15e0('0x4')]['add'](_0x3f1349),_0xcef133[_0x15e0('0x4')][_0x15e0('0x20')](_0xe753a4),_0x2d8ac2[_0x15e0('0x22')][_0x15e0('0x1')]([_0x30c71d,_0xcef133]),_0x406e88['on'](_0x15e0('0x8'),()=>_0xc7fb28()),_0x3b5d10[_0x15e0('0x1b')]['bind']('isEnabled')['to'](_0x4d73ef,'isReady',_0x4d73ef,_0x15e0('0x9'),_0x48dc64,'isReadOnly',(_0x5a8b3e,_0x5b4339,_0xb7a122)=>_0x5a8b3e&&_0x5b4339&&!_0xb7a122),_0x3b5d10['on']('submit',()=>(_0x48dc64[_0x15e0('0x10')][_0x15e0('0x14')](_0x3800be)[_0x15e0('0x7')]({'name':_0x3b5d10['revisionName']}),void _0x3fd2fb())),_0x3b5d10['on'](_0x15e0('0xf'),()=>_0xc7fb28()),_0x3b5d10['render'](),_0xc7fb28(),_0x406e88;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5a=['render','focus','editor','plugins','select','add','_handleEditorDataReady','Name\x20this\x20revision','defaultRevisionActions','restoreRevision','availableRevisionActions','diff','destroy','_revisions','_handleRevisionSelected','repository','config','isSelected','_revisionsRepository','get','action','compare','RevisionsSidebar','revisionViews','getRevisionsInDiff','_handleDiffChange','_sidebarView','init','locale','element','setName','map','_handleRevisionSetName','revisionHistory.viewerSidebarContainer','name','listenTo','getIndex','_createRevisionActions','revisionSetName','appendChild','isEnabled','Compare\x20against\x20selected','assign','isVisible','Restore\x20this\x20revision','newRevisionId','timePeriodViews','data','bind','remove','_revisionViewer','getRevision','compareAgainstSelected','getLaterVisibleRevision','length','ready','isReady','pluginName'];(function(_0x4e0e6b,_0x2b5ac7){const _0x9384cd=function(_0x3f45ed){while(--_0x3f45ed){_0x4e0e6b['push'](_0x4e0e6b['shift']());}};_0x9384cd(++_0x2b5ac7);}(_0x2b5a,0x1ac));const _0x9384=function(_0x4e0e6b,_0x2b5ac7){_0x4e0e6b=_0x4e0e6b-0x0;let _0x9384cd=_0x2b5a[_0x4e0e6b];return _0x9384cd;};import{Plugin as _0xda4af2}from'ckeditor5/src/core';import _0x5ea0b4 from'./revisionssidebarview';import _0x540be5 from'../../revisionviewer';export default class w extends _0xda4af2{static get[_0x9384('0x23')](){return _0x9384('0x0');}static get['requires'](){return[_0x540be5];}constructor(_0x18e08f){super(_0x18e08f),this[_0x9384('0x1c')]=_0x18e08f[_0x9384('0x27')][_0x9384('0x37')](_0x540be5),this['_revisionsRepository']=this['_revisionViewer'][_0x9384('0x33')],this['_sidebarView']=null;}[_0x9384('0x5')](){const _0x4ce257=this['_revisionsRepository'][_0x9384('0x31')],_0xef7064=this[_0x9384('0xf')](),_0x5ae7ad=this[_0x9384('0x26')][_0x9384('0x34')][_0x9384('0x37')](_0x9384('0xb'));this[_0x9384('0x4')]=new _0x5ea0b4(this['editor'][_0x9384('0x6')],_0x4ce257,_0xef7064),this[_0x9384('0x4')]['on']('revisionSelected',this[_0x9384('0x32')][_0x9384('0x1a')](this)),this[_0x9384('0x4')]['on'](_0x9384('0x10'),this[_0x9384('0xa')]['bind'](this)),this['_sidebarView'][_0x9384('0x1a')]('isEnabled')['to'](this[_0x9384('0x1c')]),this['_sidebarView'][_0x9384('0x18')]['on'](_0x9384('0x29'),(_0x2988f6,_0x56fba4)=>{_0x56fba4[_0x9384('0x1')]['on'](_0x9384('0x29'),(_0x1c9498,_0x2bdae5)=>{_0x2bdae5[_0x9384('0x1a')](_0x9384('0x12'),_0x9384('0x22'))['to'](this[_0x9384('0x1c')]);});}),this[_0x9384('0x4')][_0x9384('0x24')](),this[_0x9384('0xd')](this['editor'][_0x9384('0x19')],_0x9384('0x21'),this[_0x9384('0x2a')][_0x9384('0x1a')](this)),this[_0x9384('0xd')](this[_0x9384('0x1c')],'change:diff',this['_handleDiffChange'][_0x9384('0x1a')](this)),_0x5ae7ad[_0x9384('0x11')](this[_0x9384('0x4')][_0x9384('0x7')]);}[_0x9384('0x30')](){this[_0x9384('0x4')][_0x9384('0x7')][_0x9384('0x1b')](),this[_0x9384('0x4')][_0x9384('0x30')]();}['_handleEditorDataReady'](){const _0x5e3571=this['_revisionsRepository'][_0x9384('0x1d')](0x0);if(_0x5e3571){const _0x5bddd4=this[_0x9384('0x36')]['getEarlierVisibleRevision'](_0x5e3571['id']);this[_0x9384('0x1c')][_0x9384('0x39')](_0x5e3571,_0x5bddd4);}}[_0x9384('0x32')](_0x1bd8d2,_0x345d04){const _0x433843=this[_0x9384('0x36')]['getRevision'](_0x345d04['id']),_0x25d63c=this[_0x9384('0x36')]['getEarlierVisibleRevision'](_0x433843['id']);this['_revisionViewer'][_0x9384('0x39')](_0x433843,_0x25d63c);}[_0x9384('0xa')](_0xa8eb7f,_0x186693){this[_0x9384('0x36')][_0x9384('0x1d')](_0x186693['id'])[_0x9384('0x8')](_0x186693[_0x9384('0xc')]);}[_0x9384('0x3')](_0x5c315e,_0x29a299,_0x381e39){const _0x49cb20=this[_0x9384('0x36')][_0x9384('0x2')](_0x381e39);_0x49cb20[_0x9384('0x20')]>0x2?(this[_0x9384('0x4')]['highlightRevisions'](_0x49cb20),this[_0x9384('0x4')]['selectRevision'](null)):(this[_0x9384('0x4')]['highlightRevisions']([]),this[_0x9384('0x4')]['selectRevision'](_0x49cb20[0x0]));}[_0x9384('0xf')](){const _0x2ac0a8=this[_0x9384('0x26')],_0x2376e8=w['availableRevisionActions'],_0x550dd2=_0x2ac0a8[_0x9384('0x34')]['get']('revisionHistory.revisionActions')||w[_0x9384('0x2c')];if(_0x550dd2[_0x9384('0x20')])return _0x550dd2[_0x9384('0x9')](_0x50ddce=>{const _0x5ecf1b='string'==typeof _0x50ddce?Object[_0x9384('0x14')]({},_0x2376e8[_0x50ddce]):_0x50ddce;return _0x5ecf1b[_0x9384('0x38')]=_0x5ecf1b[_0x9384('0x38')][_0x9384('0x1a')](this,_0x2ac0a8),_0x5ecf1b['isVisible']&&(_0x5ecf1b[_0x9384('0x15')]=_0x5ecf1b[_0x9384('0x15')][_0x9384('0x1a')](this,_0x2ac0a8)),_0x5ecf1b;});}}w[_0x9384('0x2e')]={'compareAgainstSelected':{'name':_0x9384('0x13'),'action':({plugins:_0x1985fd},_0x522cf4)=>{const _0x4f4d04=_0x1985fd['get'](_0x540be5),_0x9d9a7b=_0x4f4d04[_0x9384('0x33')];let _0x22dfb1=_0x4f4d04[_0x9384('0x2f')][_0x9384('0x17')],_0x5664ff=_0x522cf4['id'];_0x9d9a7b[_0x9384('0xe')](_0x22dfb1)>_0x9d9a7b[_0x9384('0xe')](_0x5664ff)&&([_0x22dfb1,_0x5664ff]=[_0x5664ff,_0x22dfb1]),_0x4f4d04[_0x9384('0x39')](_0x22dfb1,_0x5664ff);},'isVisible':({plugins:_0x2c906b},_0x159fb6)=>{const _0xa9ee7d=_0x2c906b[_0x9384('0x37')](_0x540be5);return!(_0xa9ee7d['repository'][_0x9384('0x2')](_0xa9ee7d[_0x9384('0x2f')])[_0x9384('0x20')]>0x2)&&!_0x159fb6[_0x9384('0x35')];}},'restoreRevision':{'name':_0x9384('0x16'),'action':(_0x145e1f,{id:_0x6440f8})=>{_0x145e1f[_0x9384('0x34')][_0x9384('0x37')]('revisionHistory')['restoreRevisionCallback'](_0x6440f8);},'isVisible':({plugins:_0x19383b},_0x4b44f1)=>!!_0x19383b[_0x9384('0x37')](_0x540be5)['repository'][_0x9384('0x1f')](_0x4b44f1['id'])},'nameRevision':{'name':_0x9384('0x2b'),'action':({plugins:_0x389aa1},{id:_0x23db37,revisionNameView:_0x1c02e1})=>{const _0x3046b0=_0x389aa1[_0x9384('0x37')](_0x540be5),_0x262d00=_0x3046b0[_0x9384('0x33')]['getEarlierVisibleRevision'](_0x23db37);_0x3046b0['compare'](_0x23db37,_0x262d00),_0x1c02e1[_0x9384('0x25')](),_0x1c02e1['fieldView'][_0x9384('0x28')]();}}},w['defaultRevisionActions']=[_0x9384('0x1e'),_0x9384('0x2d'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x221e=['ck-revision-history-sidebar__header__label','content','ck-reset_all','history','Revision\x20history','div','span'];(function(_0xdf6bf3,_0x221ef7){const _0x50ef29=function(_0x2d0a9c){while(--_0x2d0a9c){_0xdf6bf3['push'](_0xdf6bf3['shift']());}};_0x50ef29(++_0x221ef7);}(_0x221e,0x9e));const _0x50ef=function(_0xdf6bf3,_0x221ef7){_0xdf6bf3=_0xdf6bf3-0x0;let _0x50ef29=_0x221e[_0xdf6bf3];return _0x50ef29;};import{View as _0x58b956,IconView as _0x1f6919}from'ckeditor5/src/ui';import{getTranslation as _0x2e6585}from'../../utils/common-translations';import{icons as _0x1b46e7}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x58b956{constructor(_0x530e49){super(_0x530e49);const _0x4d8e12=new _0x1f6919();_0x4d8e12[_0x50ef('0x4')]=_0x1b46e7[_0x50ef('0x6')],this['setTemplate']({'tag':_0x50ef('0x1'),'attributes':{'class':['ck',_0x50ef('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x4d8e12,{'tag':_0x50ef('0x2'),'attributes':{'class':['ck',_0x50ef('0x3')]},'children':[_0x2e6585(_0x530e49,_0x50ef('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3189=['addRevision','find','setName','span','ck-revision-history-sidebar__time-period','_revisionActions','add','delegate','setTemplate','locale','createCollection','localizedPeriodName','startDate','div','select','ck-revision-history-sidebar__time-period__revisions','revisionViews'];(function(_0x55deca,_0x31894a){const _0x4b9e8c=function(_0x29d0b3){while(--_0x29d0b3){_0x55deca['push'](_0x55deca['shift']());}};_0x4b9e8c(++_0x31894a);}(_0x3189,0x1cd));const _0x4b9e=function(_0x55deca,_0x31894a){_0x55deca=_0x55deca-0x0;let _0x4b9e8c=_0x3189[_0x55deca];return _0x4b9e8c;};import{View as _0x289675}from'ckeditor5/src/ui';import _0x388768 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3c96aa}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x289675{constructor(_0x424901,_0x6693c7,_0x2752eb){super(_0x424901);const _0x320257=_0x3c96aa(_0x6693c7,this['locale']['uiLanguage'])[_0x4b9e('0x9')];this[_0x4b9e('0xa')]=_0x6693c7,this[_0x4b9e('0xe')]=this[_0x4b9e('0x8')](),this[_0x4b9e('0x3')]=_0x2752eb,this['revisionViews'][_0x4b9e('0x5')](_0x4b9e('0xc'))['to'](this),this[_0x4b9e('0xe')][_0x4b9e('0x5')](_0x4b9e('0x0'))['to'](this),this[_0x4b9e('0x6')]({'tag':_0x4b9e('0xb'),'attributes':{'class':['ck',_0x4b9e('0x2')]},'children':[{'tag':_0x4b9e('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x320257}]},{'tag':'div','attributes':{'class':['ck',_0x4b9e('0xd')]},'children':this['revisionViews']}]});}[_0x4b9e('0xf')](_0x2a9ee9){const _0x5afcc2=new _0x388768(this[_0x4b9e('0x7')],_0x2a9ee9,this[_0x4b9e('0x3')]);this['revisionViews'][_0x4b9e('0x4')](_0x5afcc2);}['removeRevision'](_0x1a0bf7){const _0x14ae56=this[_0x4b9e('0xe')][_0x4b9e('0x10')](_0x354a9b=>_0x354a9b['id']===_0x1a0bf7['id']);this[_0x4b9e('0xe')]['remove'](_0x14ae56);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x589e=['fire','_removeRevision','timePeriodViews','set','ck-rounded-corners','createCollection','locale','setName','revisionSetName','remove','select','ck-revision-history-sidebar__timeline','uiLanguage','get','delegate','map','add','revisionViews','find','_revisions','removeRevision','isEnabled','ck-disabled','render','_addRevision','createdAt','_revisionActions','startDate','addRevision','selectRevision','highlight','bindTemplate','getTime','setTemplate','ck-reset','revisionSelected','div','_getTimePeriodViewByStartDate','unhighlight'];(function(_0x121b38,_0x589ee2){const _0x2c2a11=function(_0x2d25d4){while(--_0x2d25d4){_0x121b38['push'](_0x121b38['shift']());}};_0x2c2a11(++_0x589ee2);}(_0x589e,0xb0));const _0x2c2a=function(_0x121b38,_0x589ee2){_0x121b38=_0x121b38-0x0;let _0x2c2a11=_0x589e[_0x121b38];return _0x2c2a11;};import{View as _0xd7bae8}from'ckeditor5/src/ui';import _0x279dba from'./revisionssidebartimeperiodview';import _0x2db731 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4caef5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xd7bae8{constructor(_0x2b12bb,_0x230bc7,_0x20c7f0){super(_0x2b12bb);const _0x32b17f=this[_0x2c2a('0xb')];this['timePeriodViews']=this[_0x2c2a('0x18')](),this[_0x2c2a('0x15')]['delegate']('select')['to'](this),this[_0x2c2a('0x15')][_0x2c2a('0x21')](_0x2c2a('0x1a'))['to'](this),this[_0x2c2a('0x26')]=_0x230bc7,this['_revisionActions']=_0x20c7f0,this['on'](_0x2c2a('0x1d'),(_0x40ce00,_0x3db540)=>{this[_0x2c2a('0x13')](_0x2c2a('0xf'),_0x3db540);}),this['on'](_0x2c2a('0x1a'),(_0x3efef7,_0xf7eb6f)=>{this[_0x2c2a('0x13')](_0x2c2a('0x1b'),_0xf7eb6f);}),this[_0x2c2a('0x16')](_0x2c2a('0x1'),!0x1),this[_0x2c2a('0xd')]({'tag':_0x2c2a('0x10'),'attributes':{'class':['ck',_0x2c2a('0xe'),_0x2c2a('0x17'),'ck-revision-history-sidebar']},'children':[new _0x2db731(_0x2b12bb),{'tag':_0x2c2a('0x10'),'attributes':{'class':['ck',_0x2c2a('0x1e'),_0x32b17f['if'](_0x2c2a('0x1'),_0x2c2a('0x2'),_0x320192=>!_0x320192)]},'children':this[_0x2c2a('0x15')]}]});}[_0x2c2a('0x3')](){super['render']();for(const _0x14b1c8 of this[_0x2c2a('0x26')])this[_0x2c2a('0x4')](_0x14b1c8);this['_revisions']['on'](_0x2c2a('0x23'),(_0x1303e6,_0x35eb6a)=>{this[_0x2c2a('0x4')](_0x35eb6a);}),this[_0x2c2a('0x26')]['on'](_0x2c2a('0x1c'),(_0x3a6749,_0x2594f4)=>{this[_0x2c2a('0x14')](_0x2594f4);});}get[_0x2c2a('0x24')](){return this['timePeriodViews'][_0x2c2a('0x22')](_0x21adaa=>_0x21adaa[_0x2c2a('0x24')]['map'](_0x1f1556=>_0x1f1556))['flat']();}[_0x2c2a('0x9')](_0x4f9633){for(const _0x49e4a0 of this[_0x2c2a('0x24')])_0x4f9633&&_0x4f9633['id']===_0x49e4a0['id']?_0x49e4a0[_0x2c2a('0x1d')]():_0x49e4a0['deselect']();}['highlightRevisions'](_0x1c5aa8){for(const _0x214bcc of this[_0x2c2a('0x24')])_0x1c5aa8['some'](({id:_0x4842cb})=>_0x4842cb===_0x214bcc['id'])?_0x214bcc[_0x2c2a('0xa')]():_0x214bcc[_0x2c2a('0x12')]();}['_addRevision'](_0x549be4){const _0x95d5db=_0x4caef5(_0x549be4[_0x2c2a('0x5')],this[_0x2c2a('0x19')][_0x2c2a('0x1f')])[_0x2c2a('0x7')];let _0x24c1ec=this[_0x2c2a('0x15')][_0x2c2a('0x20')](0x0);_0x24c1ec&&_0x24c1ec[_0x2c2a('0x7')][_0x2c2a('0xc')]()===_0x95d5db[_0x2c2a('0xc')]()||(_0x24c1ec=new _0x279dba(this['locale'],_0x95d5db,this[_0x2c2a('0x6')]),this[_0x2c2a('0x15')][_0x2c2a('0x23')](_0x24c1ec)),_0x24c1ec[_0x2c2a('0x8')](_0x549be4);}[_0x2c2a('0x14')](_0x4dc43d){const _0x551dfd=_0x4caef5(_0x4dc43d['createdAt'],this['locale'][_0x2c2a('0x1f')])[_0x2c2a('0x7')];this[_0x2c2a('0x11')](_0x551dfd)[_0x2c2a('0x0')](_0x4dc43d);}['_getTimePeriodViewByStartDate'](_0x797671){return this['timePeriodViews'][_0x2c2a('0x25')](_0x54e458=>_0x54e458[_0x2c2a('0x7')][_0x2c2a('0xc')]()===_0x797671[_0x2c2a('0xc')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dd4=['minus','hasSame','weekdayLong','week','fromJSDate','toRelativeCalendar','local','setLocale','toJSDate','monthLong','startOf','day','month','year'];(function(_0x56f67e,_0x4dd42b){const _0x482247=function(_0x308878){while(--_0x308878){_0x56f67e['push'](_0x56f67e['shift']());}};_0x482247(++_0x4dd42b);}(_0x4dd4,0x1d1));const _0x4822=function(_0x56f67e,_0x4dd42b){_0x56f67e=_0x56f67e-0x0;let _0x482247=_0x4dd4[_0x56f67e];return _0x482247;};import{DateTime as _0x4e2d7b}from'luxon';export function getDateTimePeriodInfo(_0x19cf40,_0x4b2bc8){const _0x4975c2=_0x4e2d7b[_0x4822('0x1')](_0x19cf40)[_0x4822('0x4')](_0x4b2bc8),_0x63cd3e=_0x4e2d7b[_0x4822('0x3')](),_0x46cb2d=_0x63cd3e[_0x4822('0xb')]({'days':0x1})[_0x4822('0x7')]('day');let _0x69bb57,_0x35149f;return _0x4975c2[_0x4822('0xc')](_0x63cd3e,_0x4822('0x8'))?(_0x69bb57=_0x4975c2['startOf'](_0x4822('0x8'))[_0x4822('0x5')](),_0x35149f=_0x4975c2[_0x4822('0x2')]()):_0x4975c2[_0x4822('0xc')](_0x46cb2d,_0x4822('0x8'))?(_0x69bb57=_0x46cb2d[_0x4822('0x5')](),_0x35149f=_0x4975c2[_0x4822('0x2')]()):_0x4975c2['hasSame'](_0x63cd3e,_0x4822('0x0'))?(_0x69bb57=_0x4975c2[_0x4822('0x7')](_0x4822('0x0'))[_0x4822('0x5')](),_0x35149f=_0x4975c2[_0x4822('0xd')]||''):_0x4975c2[_0x4822('0xc')](_0x63cd3e,_0x4822('0xa'))?(_0x69bb57=_0x4975c2[_0x4822('0x7')](_0x4822('0x9'))[_0x4822('0x5')](),_0x35149f=_0x4975c2[_0x4822('0x6')]||''):(_0x69bb57=_0x4975c2['startOf'](_0x4822('0xa'))[_0x4822('0x5')](),_0x35149f=String(_0x4975c2[_0x4822('0xa')])),{'startDate':_0x69bb57,'localizedPeriodName':_0x35149f};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f8=['_model','data','Added\x20by','name','author','set','add','Suggested\x20by','Removed\x20by','bindTemplate','setTemplate','div','type','focus','span','ck-revision-change__label','element'];(function(_0x5e2981,_0x28f853){const _0x237a8a=function(_0x4970b8){while(--_0x4970b8){_0x5e2981['push'](_0x5e2981['shift']());}};_0x237a8a(++_0x28f853);}(_0x28f8,0x7c));const _0x237a=function(_0x5e2981,_0x28f853){_0x5e2981=_0x5e2981-0x0;let _0x237a8a=_0x28f8[_0x5e2981];return _0x237a8a;};import{View as _0x4ae07e}from'ckeditor5/src/ui';import{getTranslation as _0x51b38d}from'../../utils/common-translations';export default class Z extends _0x4ae07e{constructor(_0x1ff28e,_0x2f4293){super(_0x1ff28e),this[_0x237a('0xc')]=_0x2f4293,this['changeId']=_0x2f4293['id'];const _0x56eb5d=this[_0x237a('0x4')],_0x2ce2e5=_0x51b38d(_0x1ff28e,_0x2f4293[_0x237a('0xd')]['isSuggestion']?_0x237a('0x2'):_0x237a('0x1')==_0x2f4293[_0x237a('0x7')]?_0x237a('0xe'):_0x237a('0x3'));this[_0x237a('0x0')](_0x237a('0x7'),_0x2f4293['type']),this[_0x237a('0x5')]({'tag':_0x237a('0x6'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x56eb5d['to'](_0x237a('0x7'),_0x473465=>'ck-revision-change__'+_0x473465)],'tabindex':-0x1},'children':[{'tag':_0x237a('0x9'),'children':[{'tag':'span','attributes':{'class':[_0x237a('0xa')]},'children':[{'text':_0x2ce2e5}]},{'text':'\x20'+_0x2f4293[_0x237a('0x10')][_0x237a('0xf')]}]}]});}[_0x237a('0x8')](){this[_0x237a('0xb')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e4e=['set','bind','ck-revision-history-ui__changes-navigation','backward','Show\x20next\x20change','ck-revision-history-ui__changes-navigation__label','span','setTemplate','ck-revision-history-ui','execute','ck-hidden','currentChangeNumber','Show\x20previous\x20change','Loading...','numberOfChanges','NUMBER_OF_CHANGES','fire','div','isForwardNavigationEnabled','_statusText','isNavigationMode','forward','ck-revision-history-ui__changes-navigation__navigation','isEnabled','isReady','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x4b47e6,_0x1e4e5e){const _0x134e9c=function(_0x53bee5){while(--_0x53bee5){_0x4b47e6['push'](_0x4b47e6['shift']());}};_0x134e9c(++_0x1e4e5e);}(_0x1e4e,0x1a0));const _0x134e=function(_0x4b47e6,_0x1e4e5e){_0x4b47e6=_0x4b47e6-0x0;let _0x134e9c=_0x1e4e[_0x4b47e6];return _0x134e9c;};import{View as _0xfa5ad1,ButtonView as _0x23313b,ToolbarSeparatorView as _0x4b1725}from'ckeditor5/src/ui';import{getTranslation as _0x36ca87}from'../../utils/common-translations';import _0x4091dd from'../../../theme/icons/arrow-up.svg';import _0x5d2a74 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xfa5ad1{constructor(_0x3197de){super(_0x3197de);const _0x57e5bb=this['bindTemplate'],_0x1f72cc=new _0x23313b(_0x3197de),_0x9e3e2b=new _0x23313b(_0x3197de);this[_0x134e('0x10')]('isNavigationMode',!0x1),this[_0x134e('0x10')](_0x134e('0xd'),!0x1),this[_0x134e('0x10')](_0x134e('0x0'),0x0),this[_0x134e('0x10')]('numberOfChanges',0x0),this[_0x134e('0x10')](_0x134e('0x7'),!0x1),this[_0x134e('0x10')](_0x134e('0xe'),!0x1),this[_0x134e('0x11')]('_isStatusLabelVisible')['to'](this,_0x134e('0xd'),this,'numberOfChanges',(_0x506300,_0x41fb2d)=>_0x506300&&_0x41fb2d>0x0),this[_0x134e('0x11')]('_statusText')['to'](this,_0x134e('0xd'),this,_0x134e('0x0'),this,_0x134e('0x3'),this,'isNavigationMode',(_0x5171a3,_0x1a242c,_0x4ecd89,_0x17ad59)=>{if(!_0x5171a3)return _0x36ca87(_0x3197de,_0x134e('0x2'));if(!_0x4ecd89)return _0x36ca87(_0x3197de,'No\x20changes');const _0x1ae3ab=_0x36ca87(_0x3197de,_0x134e('0x4'),_0x4ecd89);return _0x17ad59?_0x36ca87(_0x3197de,'X_OF_Y_CHANGES',[_0x1a242c+0x1,_0x4ecd89]):_0x1ae3ab;}),_0x1f72cc[_0x134e('0x10')]({'label':_0x36ca87(_0x3197de,_0x134e('0x1')),'tooltip':!0x0,'icon':_0x4091dd}),_0x9e3e2b[_0x134e('0x10')]({'label':_0x36ca87(_0x3197de,_0x134e('0x14')),'tooltip':!0x0,'icon':_0x5d2a74}),_0x1f72cc[_0x134e('0x11')]('isEnabled')['to'](this,_0x134e('0xe')),_0x9e3e2b['bind'](_0x134e('0xc'))['to'](this,_0x134e('0x7')),_0x1f72cc['on'](_0x134e('0x19'),()=>this[_0x134e('0x5')]('execute',_0x134e('0x13'))),_0x9e3e2b['on'](_0x134e('0x19'),()=>this[_0x134e('0x5')]('execute',_0x134e('0xa'))),this[_0x134e('0x17')]({'tag':_0x134e('0x6'),'attributes':{'class':['ck',_0x134e('0x18'),_0x134e('0x12')]},'children':[{'tag':'span','attributes':{'class':[_0x134e('0xf')]},'children':[{'tag':_0x134e('0x16'),'attributes':{'class':[_0x134e('0x15'),_0x57e5bb['if']('_isStatusLabelVisible',_0x134e('0x1a'),_0x33f95a=>!_0x33f95a)]},'children':[{'text':_0x57e5bb['to'](_0x134e('0x9'),_0x2a5a22=>_0x2a5a22?_0x36ca87(_0x3197de,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x36ca87(_0x3197de,'Total')+':\x20')}]},{'text':_0x57e5bb['to'](_0x134e('0x8'))}]},new _0x4b1725(),{'tag':_0x134e('0x6'),'attributes':{'class':[_0x134e('0xb')]},'children':[_0x1f72cc,_0x9e3e2b]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1db9=['show','editor','pluginName','hide','change','ck-editor__editable__loading-overlay','document','view','removeClass','roots','editing'];(function(_0x1dbb62,_0x1db945){const _0x4c142f=function(_0x5b9b7f){while(--_0x5b9b7f){_0x1dbb62['push'](_0x1dbb62['shift']());}};_0x4c142f(++_0x1db945);}(_0x1db9,0xe0));const _0x4c14=function(_0x1dbb62,_0x1db945){_0x1dbb62=_0x1dbb62-0x0;let _0x4c142f=_0x1db9[_0x1dbb62];return _0x4c142f;};import{Plugin as _0x174dc7}from'ckeditor5/src/core';const oe=_0x4c14('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x174dc7{static get[_0x4c14('0x9')](){return'RevisionViewerLoadingOverlay';}[_0x4c14('0x7')](){const _0x10f6ee=this[_0x4c14('0x8')][_0x4c14('0x6')][_0x4c14('0x3')];_0x10f6ee[_0x4c14('0x0')](_0x3af47d=>{for(const _0x2d7675 of _0x10f6ee['document'][_0x4c14('0x5')])_0x3af47d['addClass'](oe,_0x2d7675);});}[_0x4c14('0xa')](){const _0x31aa55=this[_0x4c14('0x8')][_0x4c14('0x6')][_0x4c14('0x3')];_0x31aa55['change'](_0x4f8003=>{for(const _0x48eb4a of _0x31aa55[_0x4c14('0x2')]['roots'])_0x4f8003[_0x4c14('0x4')](oe,_0x48eb4a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a7c=['plugins','listenTo','Back\x20to\x20editing','execute','init','showPreviousChange','revisionHistory','config','RevisionViewerUI','closeRevisionViewerCallback','set','add','editor','showNextChange','hide','currentChangeNumber','change:isReady','commands','bind','isEnabled','isForwardNavigationEnabled','restoreRevision','pluginName','changesNavigation','componentFactory','isNavigationMode','numberOfChanges','isBackwardNavigationEnabled','show','get','forward','requires'];(function(_0x2f06a7,_0x4a7c98){const _0x4421ac=function(_0x12fe50){while(--_0x12fe50){_0x2f06a7['push'](_0x2f06a7['shift']());}};_0x4421ac(++_0x4a7c98);}(_0x4a7c,0x129));const _0x4421=function(_0x2f06a7,_0x4a7c98){_0x2f06a7=_0x2f06a7-0x0;let _0x4421ac=_0x4a7c[_0x2f06a7];return _0x4421ac;};import{Plugin as _0x2286c1}from'ckeditor5/src/core';import{ButtonView as _0x2c8ba8}from'ckeditor5/src/ui';import _0x5e1942 from'./changesnavigationview';import _0x4ad58b from'./../../revisionviewer';import _0x29b4e0 from'./revisionviewerloadingoverlay';import{getTranslation as _0x7aa473}from'../../utils/common-translations';import _0x41cb81 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2286c1{static get[_0x4421('0xd')](){return _0x4421('0x1f');}static get[_0x4421('0x16')](){return[_0x4ad58b,_0x29b4e0];}[_0x4421('0x1b')](){const _0x2de8a7=this[_0x4421('0x3')],_0x3d2566=_0x2de8a7[_0x4421('0x17')][_0x4421('0x14')](_0x4ad58b),_0x2d9e0d=_0x2de8a7['plugins'][_0x4421('0x14')](_0x29b4e0);_0x2de8a7['ui']['componentFactory'][_0x4421('0x2')]('exitToEditing',_0x33e42f=>{const _0x4e8278=new _0x2c8ba8(_0x33e42f);return _0x4e8278[_0x4421('0x1')]({'label':_0x7aa473(_0x33e42f,_0x4421('0x19')),'icon':_0x41cb81,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4e8278,_0x4421('0x1a'),()=>{_0x2de8a7[_0x4421('0x1e')][_0x4421('0x14')](_0x4421('0x1d'))[_0x4421('0x0')]();}),_0x4e8278;}),_0x2de8a7['ui'][_0x4421('0xf')]['add']('restoreRevision',_0x25d28e=>{const _0x10b788=new _0x2c8ba8(_0x25d28e);return _0x10b788['set']({'label':_0x7aa473(_0x25d28e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x10b788[_0x4421('0x9')]('isEnabled')['to'](_0x2de8a7[_0x4421('0x8')][_0x4421('0x14')](_0x4421('0xc'))),this[_0x4421('0x18')](_0x10b788,_0x4421('0x1a'),()=>_0x2de8a7[_0x4421('0x1a')](_0x4421('0xc'))),_0x10b788;}),_0x2de8a7['ui']['componentFactory'][_0x4421('0x2')](_0x4421('0xe'),_0x48961a=>{const _0x3da1a0=new _0x5e1942(_0x48961a),_0x5bbba8=_0x2de8a7[_0x4421('0x8')]['get']('showPreviousChange'),_0x1c107f=_0x2de8a7[_0x4421('0x8')]['get'](_0x4421('0x4'));return _0x3da1a0[_0x4421('0x9')](_0x4421('0x12'))['to'](_0x5bbba8,_0x4421('0xa')),_0x3da1a0[_0x4421('0x9')](_0x4421('0xb'))['to'](_0x1c107f,_0x4421('0xa')),_0x3da1a0[_0x4421('0x9')]('isReady',_0x4421('0x6'),_0x4421('0x11'),_0x4421('0x10'))['to'](_0x3d2566),this[_0x4421('0x18')](_0x3da1a0,_0x4421('0x1a'),(_0x306d43,_0x4f68ba)=>{_0x2de8a7['execute'](_0x4421('0x15')===_0x4f68ba?_0x4421('0x4'):_0x4421('0x1c'));}),_0x3da1a0;}),_0x2d9e0d['show'](),_0x3d2566['on'](_0x4421('0x7'),(_0x3445a0,_0x1f3197,_0x5851a9)=>{_0x5851a9?_0x2d9e0d[_0x4421('0x5')]():_0x2d9e0d[_0x4421('0x13')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x52689e,_0x12bce2,_0x8a00b7){const t=_0x52689e['t'];switch(_0x12bce2){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'},_0x8a00b7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x8a00b7);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 _0x12bce2;}}
|