@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231207.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/README.md +10 -10
- 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 _0x3edb=['set','init','saveRevision','requires','addMany','buttonView','render','saveButtonView','pluginName','children','get','length','isOpen','items','plugins','cancel','remove','reset','revisionName','Save\x20current\x20revision','isEnabled','panelView','history','config','Revision\x20history','editor','add','editing','execute','submit','bind','showRevisionViewerCallback','revisionHistory','isReady','isReadOnly'];(function(_0x5c6791,_0x3edb20){const _0x3b3f6c=function(_0x439cc7){while(--_0x439cc7){_0x5c6791['push'](_0x5c6791['shift']());}};_0x3b3f6c(++_0x3edb20);}(_0x3edb,0x1e8));const _0x3b3f=function(_0x5c6791,_0x3edb20){_0x5c6791=_0x5c6791-0x0;let _0x3b3f6c=_0x3edb[_0x5c6791];return _0x3b3f6c;};import{Plugin as _0x43c4a5,icons as _0x3c6bb9}from'ckeditor5/src/core';import{ListView as _0x35ae35,ListItemView as _0x2dcd87,ButtonView as _0x148616,createDropdown as _0x4c04f9}from'ckeditor5/src/ui';import _0x1539aa from'../../revisiontracker';import _0x30f444 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x375431}from'../../utils/common-translations';export default class u extends _0x43c4a5{static get[_0x3b3f('0xa')](){return'RevisionHistoryUI';}static get[_0x3b3f('0x5')](){return[_0x1539aa];}[_0x3b3f('0x3')](){const _0x4212d0=this[_0x3b3f('0x1b')],_0x4c46e4=_0x4212d0[_0x3b3f('0x10')][_0x3b3f('0xc')]('RevisionTracker');_0x4212d0['ui']['componentFactory']['add']('revisionHistory',_0x228f1b=>{const _0x410532=_0x4c04f9(_0x228f1b),_0x53730e=_0x410532[_0x3b3f('0x17')][_0x3b3f('0xb')],_0x182043=new _0x35ae35(_0x228f1b),_0xd3b34d=new _0x2dcd87(_0x228f1b),_0x4e6e58=new _0x148616(_0x228f1b),_0x4a434b=new _0x2dcd87(_0x228f1b),_0x59c68b=new _0x148616(_0x228f1b),_0x21f621=new _0x30f444(_0x228f1b);function _0x4a5526(){_0x53730e['length']&&_0x53730e['remove'](0x0),_0x53730e[_0x3b3f('0x1c')](_0x182043);}function _0x321076(){_0x410532[_0x3b3f('0xe')]=!0x1,_0x4212d0[_0x3b3f('0x1d')]['view']['focus']();}return _0x410532[_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,'isReady',_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,'isReadOnly',(_0x367f5f,_0x53da95,_0x291a64)=>_0x367f5f&&_0x53da95&&!_0x291a64),_0x410532[_0x3b3f('0x7')][_0x3b3f('0x2')]({'icon':_0x3c6bb9[_0x3b3f('0x18')],'label':_0x375431(_0x228f1b,_0x3b3f('0x1a')),'tooltip':!0x0}),_0x4e6e58['set']({'label':_0x375431(_0x228f1b,_0x3b3f('0x15')),'withText':!0x0}),_0x4e6e58['bind']('isEnabled')['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,_0x3b3f('0x1'),(_0x46589e,_0x3dbc55,_0x413bd3)=>_0x46589e&&_0x3dbc55&&!_0x413bd3),_0x4e6e58['on'](_0x3b3f('0x1e'),()=>function(){_0x53730e[_0x3b3f('0xd')]&&_0x53730e[_0x3b3f('0x12')](0x0),(_0x21f621[_0x3b3f('0x13')](),_0x53730e[_0x3b3f('0x1c')](_0x21f621),_0x21f621['focus']());}()),_0x59c68b['set']({'label':_0x375431(_0x228f1b,'Open\x20revision\x20history'),'withText':!0x0}),_0x59c68b[_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4212d0,_0x3b3f('0x1'),(_0x2aac9a,_0x4b8564)=>_0x2aac9a&&!_0x4b8564),_0x59c68b['on'](_0x3b3f('0x1e'),()=>{_0x4212d0[_0x3b3f('0x19')][_0x3b3f('0xc')](_0x3b3f('0x22'))[_0x3b3f('0x21')](),_0x321076();}),_0xd3b34d['children'][_0x3b3f('0x1c')](_0x4e6e58),_0x4a434b['children'][_0x3b3f('0x1c')](_0x59c68b),_0x182043[_0x3b3f('0xf')][_0x3b3f('0x6')]([_0xd3b34d,_0x4a434b]),_0x410532['on']('change:isOpen',()=>_0x4a5526()),_0x21f621[_0x3b3f('0x9')][_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,_0x3b3f('0x1'),(_0x33cb70,_0x2b5fd4,_0x501fa3)=>_0x33cb70&&_0x2b5fd4&&!_0x501fa3),_0x21f621['on'](_0x3b3f('0x1f'),()=>(_0x4212d0[_0x3b3f('0x10')]['get'](_0x1539aa)[_0x3b3f('0x4')]({'name':_0x21f621[_0x3b3f('0x14')]}),void _0x321076())),_0x21f621['on'](_0x3b3f('0x11'),()=>_0x4a5526()),_0x21f621[_0x3b3f('0x8')](),_0x4a5526(),_0x410532;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2519=['_sidebarView','requires','action','availableRevisionActions','nameRevision','_createRevisionActions','getIndex','revisionSelected','Restore\x20this\x20revision','string','render','data','compareAgainstSelected','timePeriodViews','_revisionViewer','listenTo','_handleEditorDataReady','revisionHistory','compare','_revisionsRepository','get','_handleRevisionSetName','Name\x20this\x20revision','_revisions','isVisible','revisionHistory.viewerSidebarContainer','defaultRevisionActions','selectRevision','revisionSetName','isEnabled','getRevision','init','focus','highlightRevisions','RevisionsSidebar','getLaterVisibleRevision','element','isSelected','revisionViews','restoreRevision','getEarlierVisibleRevision','length','bind','destroy','diff','getRevisionsInDiff','config','appendChild','editor','Compare\x20against\x20selected','isReady','fieldView','_handleRevisionSelected','add','locale','repository','restoreRevisionCallback'];(function(_0x323c49,_0x251953){const _0x2b15b0=function(_0x29f0cc){while(--_0x29f0cc){_0x323c49['push'](_0x323c49['shift']());}};_0x2b15b0(++_0x251953);}(_0x2519,0x137));const _0x2b15=function(_0x323c49,_0x251953){_0x323c49=_0x323c49-0x0;let _0x2b15b0=_0x2519[_0x323c49];return _0x2b15b0;};import{Plugin as _0x3a51b0}from'ckeditor5/src/core';import _0x53322c from'./revisionssidebarview';import _0x52cd4f from'../../revisionviewer';export default class w extends _0x3a51b0{static get['pluginName'](){return _0x2b15('0x8');}static get[_0x2b15('0x20')](){return[_0x52cd4f];}constructor(_0x36932f){super(_0x36932f),this['_revisionViewer']=_0x36932f['plugins'][_0x2b15('0x33')](_0x52cd4f),this[_0x2b15('0x32')]=this[_0x2b15('0x2d')]['repository'],this[_0x2b15('0x1f')]=null;}[_0x2b15('0x5')](){const _0x4c5e9f=this['_revisionsRepository'][_0x2b15('0x36')],_0x2a0a0a=this[_0x2b15('0x24')](),_0x1fe351=this[_0x2b15('0x16')][_0x2b15('0x14')]['get'](_0x2b15('0x38'));this[_0x2b15('0x1f')]=new _0x53322c(this[_0x2b15('0x16')][_0x2b15('0x1c')],_0x4c5e9f,_0x2a0a0a),this[_0x2b15('0x1f')]['on'](_0x2b15('0x26'),this[_0x2b15('0x1a')][_0x2b15('0x10')](this)),this[_0x2b15('0x1f')]['on'](_0x2b15('0x2'),this[_0x2b15('0x34')][_0x2b15('0x10')](this)),this['_sidebarView'][_0x2b15('0x10')](_0x2b15('0x3'))['to'](this[_0x2b15('0x2d')]),this['_sidebarView'][_0x2b15('0x2c')]['on']('add',(_0x5b43ea,_0x479d6e)=>{_0x479d6e[_0x2b15('0xc')]['on'](_0x2b15('0x1b'),(_0x294964,_0x5c78c4)=>{_0x5c78c4[_0x2b15('0x10')](_0x2b15('0x3'),_0x2b15('0x18'))['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x2b15('0x29')](),this[_0x2b15('0x2e')](this[_0x2b15('0x16')][_0x2b15('0x2a')],'ready',this[_0x2b15('0x2f')][_0x2b15('0x10')](this)),this[_0x2b15('0x2e')](this['_revisionViewer'],'change:diff',this['_handleDiffChange'][_0x2b15('0x10')](this)),_0x1fe351[_0x2b15('0x15')](this[_0x2b15('0x1f')][_0x2b15('0xa')]);}['destroy'](){this[_0x2b15('0x1f')][_0x2b15('0xa')]['remove'](),this[_0x2b15('0x1f')][_0x2b15('0x11')]();}['_handleEditorDataReady'](){const _0x8b020e=this[_0x2b15('0x32')][_0x2b15('0x4')](0x0);if(_0x8b020e){const _0x45849d=this[_0x2b15('0x32')][_0x2b15('0xe')](_0x8b020e['id']);this[_0x2b15('0x2d')][_0x2b15('0x31')](_0x8b020e,_0x45849d);}}['_handleRevisionSelected'](_0x224dbb,_0x45a22b){const _0x26becd=this[_0x2b15('0x32')][_0x2b15('0x4')](_0x45a22b['id']),_0x4d26f4=this[_0x2b15('0x32')][_0x2b15('0xe')](_0x26becd['id']);this['_revisionViewer'][_0x2b15('0x31')](_0x26becd,_0x4d26f4);}[_0x2b15('0x34')](_0x5929ad,_0x311c8d){this[_0x2b15('0x32')][_0x2b15('0x4')](_0x311c8d['id'])['setName'](_0x311c8d['name']);}['_handleDiffChange'](_0x504604,_0x2f8fa4,_0x5a305b){const _0x33167a=this[_0x2b15('0x32')]['getRevisionsInDiff'](_0x5a305b);_0x33167a['length']>0x2?(this[_0x2b15('0x1f')][_0x2b15('0x7')](_0x33167a),this[_0x2b15('0x1f')][_0x2b15('0x1')](null)):(this[_0x2b15('0x1f')][_0x2b15('0x7')]([]),this['_sidebarView'][_0x2b15('0x1')](_0x33167a[0x0]));}[_0x2b15('0x24')](){const _0x44358a=this[_0x2b15('0x16')],_0x236983=w[_0x2b15('0x22')],_0x4d0db7=_0x44358a[_0x2b15('0x14')][_0x2b15('0x33')]('revisionHistory.revisionActions')||w[_0x2b15('0x0')];if(_0x4d0db7[_0x2b15('0xf')])return _0x4d0db7['map'](_0x22ba2e=>{const _0x3ef43a=_0x2b15('0x28')==typeof _0x22ba2e?Object['assign']({},_0x236983[_0x22ba2e]):_0x22ba2e;return _0x3ef43a[_0x2b15('0x21')]=_0x3ef43a[_0x2b15('0x21')]['bind'](this,_0x44358a),_0x3ef43a['isVisible']&&(_0x3ef43a['isVisible']=_0x3ef43a[_0x2b15('0x37')][_0x2b15('0x10')](this,_0x44358a)),_0x3ef43a;});}}w[_0x2b15('0x22')]={'compareAgainstSelected':{'name':_0x2b15('0x17'),'action':({plugins:_0x37798b},_0x8135d5)=>{const _0x5539d1=_0x37798b['get'](_0x52cd4f),_0x4de755=_0x5539d1[_0x2b15('0x1d')];let _0x32414f=_0x5539d1[_0x2b15('0x12')]['newRevisionId'],_0x591da0=_0x8135d5['id'];_0x4de755[_0x2b15('0x25')](_0x32414f)>_0x4de755['getIndex'](_0x591da0)&&([_0x32414f,_0x591da0]=[_0x591da0,_0x32414f]),_0x5539d1[_0x2b15('0x31')](_0x32414f,_0x591da0);},'isVisible':({plugins:_0x5a1140},_0x48e329)=>{const _0x4e54cf=_0x5a1140[_0x2b15('0x33')](_0x52cd4f);return!(_0x4e54cf['repository'][_0x2b15('0x13')](_0x4e54cf[_0x2b15('0x12')])[_0x2b15('0xf')]>0x2)&&!_0x48e329[_0x2b15('0xb')];}},'restoreRevision':{'name':_0x2b15('0x27'),'action':(_0x1e0e84,{id:_0x2a69ac})=>{_0x1e0e84['config'][_0x2b15('0x33')](_0x2b15('0x30'))[_0x2b15('0x1e')](_0x2a69ac);},'isVisible':({plugins:_0x9c3ec2},_0x386492)=>!!_0x9c3ec2[_0x2b15('0x33')](_0x52cd4f)[_0x2b15('0x1d')][_0x2b15('0x9')](_0x386492['id'])},'nameRevision':{'name':_0x2b15('0x35'),'action':({plugins:_0x4497cf},{id:_0x28ea7a,revisionNameView:_0x4e6a8c})=>{const _0x43a73c=_0x4497cf[_0x2b15('0x33')](_0x52cd4f),_0x432e35=_0x43a73c[_0x2b15('0x1d')][_0x2b15('0xe')](_0x28ea7a);_0x43a73c[_0x2b15('0x31')](_0x28ea7a,_0x432e35),_0x4e6a8c[_0x2b15('0x6')](),_0x4e6a8c[_0x2b15('0x19')]['select']();}}},w['defaultRevisionActions']=[_0x2b15('0x2b'),_0x2b15('0xd'),_0x2b15('0x23')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41ba=['span','ck-reset_all','ck-revision-history-sidebar__header','history','setTemplate','div','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x4381b8,_0x41ba28){const _0x13ee74=function(_0x24e22a){while(--_0x24e22a){_0x4381b8['push'](_0x4381b8['shift']());}};_0x13ee74(++_0x41ba28);}(_0x41ba,0x17f));const _0x13ee=function(_0x4381b8,_0x41ba28){_0x4381b8=_0x4381b8-0x0;let _0x13ee74=_0x41ba[_0x4381b8];return _0x13ee74;};import{View as _0x4fd3b2,IconView as _0x979d1b}from'ckeditor5/src/ui';import{getTranslation as _0x42b73e}from'../../utils/common-translations';import{icons as _0xef4c82}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4fd3b2{constructor(_0x20a2c6){super(_0x20a2c6);const _0x94610f=new _0x979d1b();_0x94610f['content']=_0xef4c82[_0x13ee('0x4')],this[_0x13ee('0x5')]({'tag':_0x13ee('0x6'),'attributes':{'class':['ck',_0x13ee('0x2'),_0x13ee('0x3')]},'children':[_0x94610f,{'tag':_0x13ee('0x1'),'attributes':{'class':['ck',_0x13ee('0x7')]},'children':[_0x42b73e(_0x20a2c6,_0x13ee('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3207=['addRevision','localizedPeriodName','removeRevision','_revisionActions','uiLanguage','createCollection','ck-revision-history-sidebar__time-period','revisionViews','locale','div','select','add','startDate','setTemplate','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period__revisions'];(function(_0x3df681,_0x32075c){const _0x4a25de=function(_0x13fd83){while(--_0x13fd83){_0x3df681['push'](_0x3df681['shift']());}};_0x4a25de(++_0x32075c);}(_0x3207,0x168));const _0x4a25=function(_0x3df681,_0x32075c){_0x3df681=_0x3df681-0x0;let _0x4a25de=_0x3207[_0x3df681];return _0x4a25de;};import{View as _0x2d7463}from'ckeditor5/src/ui';import _0x4d9460 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x52be62}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x2d7463{constructor(_0x24b437,_0x4068b7,_0x37c169){super(_0x24b437);const _0x292597=_0x52be62(_0x4068b7,this[_0x4a25('0x0')][_0x4a25('0xc')])[_0x4a25('0x9')];this[_0x4a25('0x4')]=_0x4068b7,this[_0x4a25('0xf')]=this[_0x4a25('0xd')](),this[_0x4a25('0xb')]=_0x37c169,this[_0x4a25('0xf')]['delegate'](_0x4a25('0x2'))['to'](this),this[_0x4a25('0xf')]['delegate']('setName')['to'](this),this[_0x4a25('0x5')]({'tag':_0x4a25('0x1'),'attributes':{'class':['ck',_0x4a25('0xe')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4a25('0x6')]},'children':[{'text':_0x292597}]},{'tag':_0x4a25('0x1'),'attributes':{'class':['ck',_0x4a25('0x7')]},'children':this[_0x4a25('0xf')]}]});}[_0x4a25('0x8')](_0x4dbdd8){const _0x4bb213=new _0x4d9460(this[_0x4a25('0x0')],_0x4dbdd8,this['_revisionActions']);this['revisionViews'][_0x4a25('0x3')](_0x4bb213);}[_0x4a25('0xa')](_0x20ce03){const _0xec7af2=this[_0x4a25('0xf')]['find'](_0x3a55a1=>_0x3a55a1['id']===_0x20ce03['id']);this[_0x4a25('0xf')]['remove'](_0xec7af2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b00=['createCollection','removeRevision','startDate','remove','uiLanguage','revisionViews','createdAt','some','set','locale','_removeRevision','bindTemplate','unhighlight','add','_addRevision','ck-disabled','ck-rounded-corners','setName','getTime','_getTimePeriodViewByStartDate','render','_revisions','fire','ck-revision-history-sidebar__timeline','timePeriodViews','highlightRevisions','find','isEnabled','revisionSelected','select','map','ck-reset','div','addRevision','delegate','_revisionActions','deselect'];(function(_0x304789,_0x5b008a){const _0x3aefce=function(_0x48c994){while(--_0x48c994){_0x304789['push'](_0x304789['shift']());}};_0x3aefce(++_0x5b008a);}(_0x5b00,0x12e));const _0x3aef=function(_0x304789,_0x5b008a){_0x304789=_0x304789-0x0;let _0x3aefce=_0x5b00[_0x304789];return _0x3aefce;};import{View as _0xa7e727}from'ckeditor5/src/ui';import _0x4ec65c from'./revisionssidebartimeperiodview';import _0x157753 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x18575e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa7e727{constructor(_0x3d5902,_0x37ba98,_0x2f2a8c){super(_0x3d5902);const _0x549bb4=this[_0x3aef('0x5')];this[_0x3aef('0x12')]=this[_0x3aef('0x1f')](),this[_0x3aef('0x12')][_0x3aef('0x1c')](_0x3aef('0x17'))['to'](this),this[_0x3aef('0x12')][_0x3aef('0x1c')]('setName')['to'](this),this[_0x3aef('0xf')]=_0x37ba98,this[_0x3aef('0x1d')]=_0x2f2a8c,this['on']('select',(_0x5cdb59,_0x58f6c0)=>{this[_0x3aef('0x10')](_0x3aef('0x16'),_0x58f6c0);}),this['on'](_0x3aef('0xb'),(_0x5a0364,_0x57560b)=>{this[_0x3aef('0x10')]('revisionSetName',_0x57560b);}),this[_0x3aef('0x2')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3aef('0x19'),_0x3aef('0xa'),'ck-revision-history-sidebar']},'children':[new _0x157753(_0x3d5902),{'tag':_0x3aef('0x1a'),'attributes':{'class':['ck',_0x3aef('0x11'),_0x549bb4['if'](_0x3aef('0x15'),_0x3aef('0x9'),_0x359a40=>!_0x359a40)]},'children':this[_0x3aef('0x12')]}]});}[_0x3aef('0xe')](){super[_0x3aef('0xe')]();for(const _0x1245e3 of this['_revisions'])this[_0x3aef('0x8')](_0x1245e3);this[_0x3aef('0xf')]['on'](_0x3aef('0x7'),(_0x4c4bac,_0x50b193)=>{this[_0x3aef('0x8')](_0x50b193);}),this[_0x3aef('0xf')]['on'](_0x3aef('0x22'),(_0x2d80c2,_0x595a3a)=>{this[_0x3aef('0x4')](_0x595a3a);});}get[_0x3aef('0x24')](){return this[_0x3aef('0x12')][_0x3aef('0x18')](_0x1a1ffe=>_0x1a1ffe[_0x3aef('0x24')][_0x3aef('0x18')](_0x4c09f0=>_0x4c09f0))['flat']();}['selectRevision'](_0x522197){for(const _0x1703e3 of this[_0x3aef('0x24')])_0x522197&&_0x522197['id']===_0x1703e3['id']?_0x1703e3[_0x3aef('0x17')]():_0x1703e3[_0x3aef('0x1e')]();}[_0x3aef('0x13')](_0x379984){for(const _0xe4c39e of this[_0x3aef('0x24')])_0x379984[_0x3aef('0x1')](({id:_0x3ed0b0})=>_0x3ed0b0===_0xe4c39e['id'])?_0xe4c39e['highlight']():_0xe4c39e[_0x3aef('0x6')]();}[_0x3aef('0x8')](_0x3d62e1){const _0x4f6c16=_0x18575e(_0x3d62e1[_0x3aef('0x0')],this[_0x3aef('0x3')][_0x3aef('0x23')])[_0x3aef('0x21')];let _0xa569dc=this[_0x3aef('0x12')]['get'](0x0);_0xa569dc&&_0xa569dc[_0x3aef('0x21')][_0x3aef('0xc')]()===_0x4f6c16['getTime']()||(_0xa569dc=new _0x4ec65c(this[_0x3aef('0x3')],_0x4f6c16,this[_0x3aef('0x1d')]),this['timePeriodViews'][_0x3aef('0x7')](_0xa569dc)),_0xa569dc[_0x3aef('0x1b')](_0x3d62e1);}[_0x3aef('0x4')](_0x5c7c0d){const _0xf34679=_0x18575e(_0x5c7c0d[_0x3aef('0x0')],this[_0x3aef('0x3')][_0x3aef('0x23')])[_0x3aef('0x21')];this['_getTimePeriodViewByStartDate'](_0xf34679)[_0x3aef('0x20')](_0x5c7c0d);}[_0x3aef('0xd')](_0x148943){return this[_0x3aef('0x12')][_0x3aef('0x14')](_0x4edbef=>_0x4edbef[_0x3aef('0x21')][_0x3aef('0xc')]()===_0x148943[_0x3aef('0xc')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cee=['toRelativeCalendar','month','local','hasSame','monthLong','toJSDate','week','startOf','day','year'];(function(_0x39d652,_0x5cee85){const _0x4eb05f=function(_0x2e856f){while(--_0x2e856f){_0x39d652['push'](_0x39d652['shift']());}};_0x4eb05f(++_0x5cee85);}(_0x5cee,0x157));const _0x4eb0=function(_0x39d652,_0x5cee85){_0x39d652=_0x39d652-0x0;let _0x4eb05f=_0x5cee[_0x39d652];return _0x4eb05f;};import{DateTime as _0x599255}from'luxon';export function getDateTimePeriodInfo(_0x40c9b3,_0x2815f3){const _0x5e696d=_0x599255['fromJSDate'](_0x40c9b3)['setLocale'](_0x2815f3),_0x456f17=_0x599255[_0x4eb0('0x9')](),_0xd510c7=_0x456f17['minus']({'days':0x1})['startOf']('day');let _0x1c8cf4,_0x19c38b;return _0x5e696d[_0x4eb0('0x0')](_0x456f17,'day')?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')]('day')['toJSDate'](),_0x19c38b=_0x5e696d[_0x4eb0('0x7')]()):_0x5e696d[_0x4eb0('0x0')](_0xd510c7,_0x4eb0('0x5'))?(_0x1c8cf4=_0xd510c7[_0x4eb0('0x2')](),_0x19c38b=_0x5e696d[_0x4eb0('0x7')]()):_0x5e696d[_0x4eb0('0x0')](_0x456f17,_0x4eb0('0x3'))?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')]('week')[_0x4eb0('0x2')](),_0x19c38b=_0x5e696d['weekdayLong']||''):_0x5e696d[_0x4eb0('0x0')](_0x456f17,_0x4eb0('0x6'))?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')](_0x4eb0('0x8'))['toJSDate'](),_0x19c38b=_0x5e696d[_0x4eb0('0x1')]||''):(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')](_0x4eb0('0x6'))[_0x4eb0('0x2')](),_0x19c38b=String(_0x5e696d[_0x4eb0('0x6')])),{'startDate':_0x1c8cf4,'localizedPeriodName':_0x19c38b};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e5a=['set','type','isSuggestion','focus','span','_model','name','ck-revision-change__','changeId','data','author','ck-revision-change','ck-revision-change__label','ck-annotation','setTemplate','add','element','Added\x20by','Suggested\x20by'];(function(_0x37232b,_0x2e5afd){const _0x4934b2=function(_0x1bb2c9){while(--_0x1bb2c9){_0x37232b['push'](_0x37232b['shift']());}};_0x4934b2(++_0x2e5afd);}(_0x2e5a,0x14b));const _0x4934=function(_0x37232b,_0x2e5afd){_0x37232b=_0x37232b-0x0;let _0x4934b2=_0x2e5a[_0x37232b];return _0x4934b2;};import{View as _0x496366}from'ckeditor5/src/ui';import{getTranslation as _0x38fd36}from'../../utils/common-translations';export default class Z extends _0x496366{constructor(_0x544ebb,_0x34059e){super(_0x544ebb),this[_0x4934('0x10')]=_0x34059e,this[_0x4934('0x0')]=_0x34059e['id'];const _0x414fef=this['bindTemplate'],_0xd27d06=_0x38fd36(_0x544ebb,_0x34059e[_0x4934('0x1')][_0x4934('0xd')]?_0x4934('0xa'):_0x4934('0x7')==_0x34059e[_0x4934('0xc')]?_0x4934('0x9'):'Removed\x20by');this[_0x4934('0xb')]('type',_0x34059e[_0x4934('0xc')]),this[_0x4934('0x6')]({'tag':'div','attributes':{'class':[_0x4934('0x5'),_0x4934('0x3'),_0x414fef['to']('type',_0x494ad5=>_0x4934('0x12')+_0x494ad5)],'tabindex':-0x1},'children':[{'tag':_0x4934('0xf'),'children':[{'tag':_0x4934('0xf'),'attributes':{'class':[_0x4934('0x4')]},'children':[{'text':_0xd27d06}]},{'text':'\x20'+_0x34059e[_0x4934('0x2')][_0x4934('0x11')]}]}]});}[_0x4934('0xe')](){this[_0x4934('0x8')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c1d=['setTemplate','No\x20changes','isReady','execute','fire','set','isNavigationMode','Total','ck-hidden','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','span','X_OF_Y_CHANGES','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','currentChangeNumber','numberOfChanges','_statusText','NUMBER_OF_CHANGES','isEnabled','bind','div','Show\x20previous\x20change','Loading...','Show\x20next\x20change','_isStatusLabelVisible','backward','ck-revision-history-ui','forward'];(function(_0x33501f,_0x5c1d50){const _0x5ae2c5=function(_0x524a0e){while(--_0x524a0e){_0x33501f['push'](_0x33501f['shift']());}};_0x5ae2c5(++_0x5c1d50);}(_0x5c1d,0x13b));const _0x5ae2=function(_0x33501f,_0x5c1d50){_0x33501f=_0x33501f-0x0;let _0x5ae2c5=_0x5c1d[_0x33501f];return _0x5ae2c5;};import{View as _0x2a92d7,ButtonView as _0x25f463,ToolbarSeparatorView as _0x1a3f3e}from'ckeditor5/src/ui';import{getTranslation as _0x5922c9}from'../../utils/common-translations';import _0x1dc872 from'../../../theme/icons/arrow-up.svg';import _0x27da5b from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x2a92d7{constructor(_0x44d734){super(_0x44d734);const _0x509689=this['bindTemplate'],_0x456cf5=new _0x25f463(_0x44d734),_0x5d8a71=new _0x25f463(_0x44d734);this[_0x5ae2('0x9')](_0x5ae2('0xa'),!0x1),this['set']('isReady',!0x1),this[_0x5ae2('0x9')](_0x5ae2('0x13'),0x0),this['set'](_0x5ae2('0x14'),0x0),this[_0x5ae2('0x9')](_0x5ae2('0xe'),!0x1),this[_0x5ae2('0x9')](_0x5ae2('0x11'),!0x1),this['bind'](_0x5ae2('0x0'))['to'](this,_0x5ae2('0x6'),this,_0x5ae2('0x14'),(_0x21e185,_0x2723fa)=>_0x21e185&&_0x2723fa>0x0),this[_0x5ae2('0x18')](_0x5ae2('0x15'))['to'](this,_0x5ae2('0x6'),this,_0x5ae2('0x13'),this,'numberOfChanges',this,_0x5ae2('0xa'),(_0x4fb2c8,_0x11f1ec,_0x2c6955,_0xa9a115)=>{if(!_0x4fb2c8)return _0x5922c9(_0x44d734,_0x5ae2('0x1b'));if(!_0x2c6955)return _0x5922c9(_0x44d734,_0x5ae2('0x5'));const _0x354f1f=_0x5922c9(_0x44d734,_0x5ae2('0x16'),_0x2c6955);return _0xa9a115?_0x5922c9(_0x44d734,_0x5ae2('0x10'),[_0x11f1ec+0x1,_0x2c6955]):_0x354f1f;}),_0x456cf5[_0x5ae2('0x9')]({'label':_0x5922c9(_0x44d734,_0x5ae2('0x1a')),'tooltip':!0x0,'icon':_0x1dc872}),_0x5d8a71[_0x5ae2('0x9')]({'label':_0x5922c9(_0x44d734,_0x5ae2('0x1c')),'tooltip':!0x0,'icon':_0x27da5b}),_0x456cf5[_0x5ae2('0x18')](_0x5ae2('0x17'))['to'](this,_0x5ae2('0x11')),_0x5d8a71['bind'](_0x5ae2('0x17'))['to'](this,_0x5ae2('0xe')),_0x456cf5['on'](_0x5ae2('0x7'),()=>this[_0x5ae2('0x8')](_0x5ae2('0x7'),_0x5ae2('0x1'))),_0x5d8a71['on'](_0x5ae2('0x7'),()=>this[_0x5ae2('0x8')]('execute',_0x5ae2('0x3'))),this[_0x5ae2('0x4')]({'tag':'div','attributes':{'class':['ck',_0x5ae2('0x2'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5ae2('0xf'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x5ae2('0xf'),'attributes':{'class':[_0x5ae2('0x12'),_0x509689['if'](_0x5ae2('0x0'),_0x5ae2('0xc'),_0x44728e=>!_0x44728e)]},'children':[{'text':_0x509689['to'](_0x5ae2('0xa'),_0x35ef9c=>_0x35ef9c?_0x5922c9(_0x44d734,_0x5ae2('0xd'))+':\x20':_0x5922c9(_0x44d734,_0x5ae2('0xb'))+':\x20')}]},{'text':_0x509689['to']('_statusText')}]},new _0x1a3f3e(),{'tag':_0x5ae2('0x19'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x456cf5,_0x5d8a71]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1013=['editor','roots','removeClass','change','document','ck-editor__editable__loading-overlay','view','RevisionViewerLoadingOverlay','hide','show'];(function(_0x43f8aa,_0x101384){const _0x5bcc00=function(_0x1055f1){while(--_0x1055f1){_0x43f8aa['push'](_0x43f8aa['shift']());}};_0x5bcc00(++_0x101384);}(_0x1013,0x181));const _0x5bcc=function(_0x43f8aa,_0x101384){_0x43f8aa=_0x43f8aa-0x0;let _0x5bcc00=_0x1013[_0x43f8aa];return _0x5bcc00;};import{Plugin as _0x499cd1}from'ckeditor5/src/core';const oe=_0x5bcc('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x499cd1{static get['pluginName'](){return _0x5bcc('0x2');}[_0x5bcc('0x4')](){const _0x5b8000=this[_0x5bcc('0x5')]['editing'][_0x5bcc('0x1')];_0x5b8000[_0x5bcc('0x8')](_0x3415b3=>{for(const _0x1676a9 of _0x5b8000[_0x5bcc('0x9')][_0x5bcc('0x6')])_0x3415b3['addClass'](oe,_0x1676a9);});}[_0x5bcc('0x3')](){const _0x48f896=this['editor']['editing'][_0x5bcc('0x1')];_0x48f896[_0x5bcc('0x8')](_0x104447=>{for(const _0x3c2406 of _0x48f896[_0x5bcc('0x9')][_0x5bcc('0x6')])_0x104447[_0x5bcc('0x7')](oe,_0x3c2406);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55af=['componentFactory','showNextChange','isEnabled','revisionHistory','currentChangeNumber','execute','init','listenTo','restoreRevision','show','editor','showPreviousChange','hide','numberOfChanges','add','Restore\x20this\x20revision','isBackwardNavigationEnabled','change:isReady','bind','Back\x20to\x20editing','isForwardNavigationEnabled','set','plugins','changesNavigation','ck-revision-history-ui__back-to-editing','commands','get','config','requires'];(function(_0x2e328e,_0x55af84){const _0x4a3c76=function(_0x2f95fd){while(--_0x2f95fd){_0x2e328e['push'](_0x2e328e['shift']());}};_0x4a3c76(++_0x55af84);}(_0x55af,0x126));const _0x4a3c=function(_0x2e328e,_0x55af84){_0x2e328e=_0x2e328e-0x0;let _0x4a3c76=_0x55af[_0x2e328e];return _0x4a3c76;};import{Plugin as _0x56c941}from'ckeditor5/src/core';import{ButtonView as _0x4db8cb}from'ckeditor5/src/ui';import _0x3ef943 from'./changesnavigationview';import _0x5e0177 from'./../../revisionviewer';import _0x294a46 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1453b4}from'../../utils/common-translations';import _0x11e58b from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x56c941{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x4a3c('0x18')](){return[_0x5e0177,_0x294a46];}[_0x4a3c('0x2')](){const _0x68c59a=this[_0x4a3c('0x6')],_0x4cb6ce=_0x68c59a['plugins'][_0x4a3c('0x16')](_0x5e0177),_0x1c94a6=_0x68c59a[_0x4a3c('0x12')][_0x4a3c('0x16')](_0x294a46);_0x68c59a['ui'][_0x4a3c('0x19')]['add']('exitToEditing',_0x57508c=>{const _0x23409a=new _0x4db8cb(_0x57508c);return _0x23409a[_0x4a3c('0x11')]({'label':_0x1453b4(_0x57508c,_0x4a3c('0xf')),'icon':_0x11e58b,'withText':!0x0,'tooltip':!0x0,'class':_0x4a3c('0x14')}),this['listenTo'](_0x23409a,_0x4a3c('0x1'),()=>{_0x68c59a[_0x4a3c('0x17')][_0x4a3c('0x16')](_0x4a3c('0x1c'))['closeRevisionViewerCallback']();}),_0x23409a;}),_0x68c59a['ui']['componentFactory'][_0x4a3c('0xa')](_0x4a3c('0x4'),_0x49438d=>{const _0xa456ec=new _0x4db8cb(_0x49438d);return _0xa456ec['set']({'label':_0x1453b4(_0x49438d,_0x4a3c('0xb')),'withText':!0x0,'tooltip':!0x0}),_0xa456ec[_0x4a3c('0xe')]('isEnabled')['to'](_0x68c59a[_0x4a3c('0x15')][_0x4a3c('0x16')](_0x4a3c('0x4'))),this[_0x4a3c('0x3')](_0xa456ec,_0x4a3c('0x1'),()=>_0x68c59a[_0x4a3c('0x1')](_0x4a3c('0x4'))),_0xa456ec;}),_0x68c59a['ui'][_0x4a3c('0x19')][_0x4a3c('0xa')](_0x4a3c('0x13'),_0x57a49f=>{const _0x1c1844=new _0x3ef943(_0x57a49f),_0xda0cf8=_0x68c59a[_0x4a3c('0x15')]['get'](_0x4a3c('0x7')),_0x3c4218=_0x68c59a[_0x4a3c('0x15')]['get'](_0x4a3c('0x1a'));return _0x1c1844[_0x4a3c('0xe')](_0x4a3c('0xc'))['to'](_0xda0cf8,_0x4a3c('0x1b')),_0x1c1844['bind'](_0x4a3c('0x10'))['to'](_0x3c4218,_0x4a3c('0x1b')),_0x1c1844['bind']('isReady',_0x4a3c('0x0'),_0x4a3c('0x9'),'isNavigationMode')['to'](_0x4cb6ce),this['listenTo'](_0x1c1844,'execute',(_0x332f04,_0xd3355)=>{_0x68c59a['execute']('forward'===_0xd3355?_0x4a3c('0x1a'):_0x4a3c('0x7'));}),_0x1c1844;}),_0x1c94a6[_0x4a3c('0x5')](),_0x4cb6ce['on'](_0x4a3c('0xd'),(_0x30c7b4,_0x4acc4b,_0x20812f)=>{_0x20812f?_0x1c94a6[_0x4a3c('0x8')]():_0x1c94a6[_0x4a3c('0x5')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x5001a8,_0x260c8e,_0x39b1c5){const t=_0x5001a8['t'];switch(_0x260c8e){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'},_0x39b1c5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x39b1c5);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 _0x260c8e;}}
|