@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230909.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 _0x17e4=['get','remove','editing','render','pluginName','isReadOnly','RevisionHistoryUI','componentFactory','submit','execute','focus','panelView','set','bind','revisionHistory','Revision\x20history','children','RevisionTracker','addMany','plugins','change:isOpen','Save\x20current\x20revision','isReady','items','saveRevision','cancel','add','revisionName','reset','saveButtonView','editor','length','isOpen','init','isEnabled'];(function(_0x30059b,_0x17e4dd){const _0x2bdda3=function(_0x1d255a){while(--_0x1d255a){_0x30059b['push'](_0x30059b['shift']());}};_0x2bdda3(++_0x17e4dd);}(_0x17e4,0x12d));const _0x2bdd=function(_0x30059b,_0x17e4dd){_0x30059b=_0x30059b-0x0;let _0x2bdda3=_0x17e4[_0x30059b];return _0x2bdda3;};import{Plugin as _0x37c968}from'ckeditor5/src/core';import{ListView as _0x19d5c5,ListItemView as _0x5ce9b8,ButtonView as _0x33c772,createDropdown as _0x8aada4}from'ckeditor5/src/ui';import _0x3cd2bd from'../../revisiontracker';import _0x58a734 from'./revisionhistorysaverevisionformview';import _0x5b9225 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x5d1671}from'../../utils/common-translations';export default class u extends _0x37c968{static get[_0x2bdd('0x12')](){return _0x2bdd('0x14');}static get['requires'](){return[_0x3cd2bd];}[_0x2bdd('0xc')](){const _0xe8a21a=this[_0x2bdd('0x9')],_0x4fae73=_0xe8a21a[_0x2bdd('0x21')][_0x2bdd('0xe')](_0x2bdd('0x1f'));_0xe8a21a['ui'][_0x2bdd('0x15')][_0x2bdd('0x5')]('revisionHistory',_0x5c31d8=>{const _0x1a28c8=_0x8aada4(_0x5c31d8),_0x200627=_0x1a28c8[_0x2bdd('0x19')]['children'],_0x536705=new _0x19d5c5(_0x5c31d8),_0x1f5913=new _0x5ce9b8(_0x5c31d8),_0x525643=new _0x33c772(_0x5c31d8),_0x28a34c=new _0x5ce9b8(_0x5c31d8),_0x2f9efc=new _0x33c772(_0x5c31d8),_0x191efb=new _0x58a734(_0x5c31d8);function _0x5d8af2(){_0x200627[_0x2bdd('0xa')]&&_0x200627[_0x2bdd('0xf')](0x0),_0x200627[_0x2bdd('0x5')](_0x536705);}function _0x5aa482(){_0x1a28c8[_0x2bdd('0xb')]=!0x1,_0xe8a21a[_0x2bdd('0x10')]['view']['focus']();}return _0x1a28c8[_0x2bdd('0x1b')](_0x2bdd('0xd'))['to'](_0x4fae73,_0x2bdd('0x1'),_0x4fae73,_0x2bdd('0xd'),_0xe8a21a,_0x2bdd('0x13'),(_0x4a0fa6,_0x2a0ff1,_0x382af4)=>_0x4a0fa6&&_0x2a0ff1&&!_0x382af4),_0x1a28c8['buttonView']['set']({'icon':_0x5b9225,'label':_0x5d1671(_0x5c31d8,_0x2bdd('0x1d')),'tooltip':!0x0}),_0x525643[_0x2bdd('0x1a')]({'label':_0x5d1671(_0x5c31d8,_0x2bdd('0x0')),'withText':!0x0}),_0x525643[_0x2bdd('0x1b')](_0x2bdd('0xd'))['to'](_0x4fae73,_0x2bdd('0x1'),_0x4fae73,_0x2bdd('0xd'),_0xe8a21a,_0x2bdd('0x13'),(_0x145e73,_0x45ef8f,_0x1a0d1a)=>_0x145e73&&_0x45ef8f&&!_0x1a0d1a),_0x525643['on']('execute',()=>function(){_0x200627[_0x2bdd('0xa')]&&_0x200627['remove'](0x0),(_0x191efb[_0x2bdd('0x7')](),_0x200627[_0x2bdd('0x5')](_0x191efb),_0x191efb[_0x2bdd('0x18')]());}()),_0x2f9efc[_0x2bdd('0x1a')]({'label':_0x5d1671(_0x5c31d8,'Open\x20revision\x20history'),'withText':!0x0}),_0x2f9efc['bind'](_0x2bdd('0xd'))['to'](_0x4fae73,_0x2bdd('0x1'),_0xe8a21a,_0x2bdd('0x13'),(_0x3a7142,_0x439c5b)=>_0x3a7142&&!_0x439c5b),_0x2f9efc['on'](_0x2bdd('0x17'),()=>{_0xe8a21a['config'][_0x2bdd('0xe')](_0x2bdd('0x1c'))['showRevisionViewerCallback'](),_0x5aa482();}),_0x1f5913[_0x2bdd('0x1e')][_0x2bdd('0x5')](_0x525643),_0x28a34c[_0x2bdd('0x1e')]['add'](_0x2f9efc),_0x536705[_0x2bdd('0x2')][_0x2bdd('0x20')]([_0x1f5913,_0x28a34c]),_0x1a28c8['on'](_0x2bdd('0x22'),()=>_0x5d8af2()),_0x191efb[_0x2bdd('0x8')][_0x2bdd('0x1b')](_0x2bdd('0xd'))['to'](_0x4fae73,'isReady',_0x4fae73,_0x2bdd('0xd'),_0xe8a21a,_0x2bdd('0x13'),(_0x4e95d5,_0x304025,_0x37e50c)=>_0x4e95d5&&_0x304025&&!_0x37e50c),_0x191efb['on'](_0x2bdd('0x16'),()=>(_0xe8a21a['plugins'][_0x2bdd('0xe')](_0x3cd2bd)[_0x2bdd('0x3')]({'name':_0x191efb[_0x2bdd('0x6')]}),void _0x5aa482())),_0x191efb['on'](_0x2bdd('0x4'),()=>_0x5d8af2()),_0x191efb[_0x2bdd('0x11')](),_0x5d8af2(),_0x1a28c8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e33=['_revisions','getRevisionsInDiff','_handleRevisionSelected','diff','get','destroy','defaultRevisionActions','config','Name\x20this\x20revision','string','getRevision','_createRevisionActions','revisionHistory.viewerSidebarContainer','requires','restoreRevision','compareAgainstSelected','element','Compare\x20against\x20selected','isReady','getEarlierVisibleRevision','listenTo','change:diff','plugins','repository','isVisible','revisionViews','add','restoreRevisionCallback','selectRevision','setName','_revisionViewer','select','compare','Restore\x20this\x20revision','nameRevision','_sidebarView','length','isSelected','bind','name','appendChild','fieldView','render','getIndex','availableRevisionActions','_handleRevisionSetName','highlightRevisions','init','timePeriodViews','revisionSetName','newRevisionId','isEnabled','revisionHistory','RevisionsSidebar','remove','_revisionsRepository','_handleDiffChange','action','locale','data','map','editor'];(function(_0x572f96,_0x1e337c){const _0x4ff7c5=function(_0x551339){while(--_0x551339){_0x572f96['push'](_0x572f96['shift']());}};_0x4ff7c5(++_0x1e337c);}(_0x1e33,0x1d2));const _0x4ff7=function(_0x572f96,_0x1e337c){_0x572f96=_0x572f96-0x0;let _0x4ff7c5=_0x1e33[_0x572f96];return _0x4ff7c5;};import{Plugin as _0x37bd1b}from'ckeditor5/src/core';import _0x569f84 from'./revisionssidebarview';import _0x4cbccf from'../../revisionviewer';export default class w extends _0x37bd1b{static get['pluginName'](){return _0x4ff7('0x15');}static get[_0x4ff7('0x2b')](){return[_0x4cbccf];}constructor(_0x3a6df6){super(_0x3a6df6),this['_revisionViewer']=_0x3a6df6[_0x4ff7('0x34')][_0x4ff7('0x22')](_0x4cbccf),this['_revisionsRepository']=this[_0x4ff7('0x3c')][_0x4ff7('0x35')],this[_0x4ff7('0x3')]=null;}[_0x4ff7('0xf')](){const _0x237b8=this[_0x4ff7('0x17')][_0x4ff7('0x1e')],_0x2cb9fa=this['_createRevisionActions'](),_0x21aed9=this[_0x4ff7('0x1d')]['config'][_0x4ff7('0x22')](_0x4ff7('0x2a'));this['_sidebarView']=new _0x569f84(this[_0x4ff7('0x1d')][_0x4ff7('0x1a')],_0x237b8,_0x2cb9fa),this[_0x4ff7('0x3')]['on']('revisionSelected',this['_handleRevisionSelected'][_0x4ff7('0x6')](this)),this[_0x4ff7('0x3')]['on'](_0x4ff7('0x11'),this['_handleRevisionSetName'][_0x4ff7('0x6')](this)),this[_0x4ff7('0x3')][_0x4ff7('0x6')](_0x4ff7('0x13'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x4ff7('0x10')]['on'](_0x4ff7('0x38'),(_0x422ff1,_0x5b8533)=>{_0x5b8533[_0x4ff7('0x37')]['on'](_0x4ff7('0x38'),(_0x2b192f,_0x299106)=>{_0x299106[_0x4ff7('0x6')](_0x4ff7('0x13'),_0x4ff7('0x30'))['to'](this[_0x4ff7('0x3c')]);});}),this[_0x4ff7('0x3')][_0x4ff7('0xa')](),this[_0x4ff7('0x32')](this[_0x4ff7('0x1d')][_0x4ff7('0x1b')],'ready',this['_handleEditorDataReady'][_0x4ff7('0x6')](this)),this[_0x4ff7('0x32')](this['_revisionViewer'],_0x4ff7('0x33'),this['_handleDiffChange'][_0x4ff7('0x6')](this)),_0x21aed9[_0x4ff7('0x8')](this[_0x4ff7('0x3')][_0x4ff7('0x2e')]);}[_0x4ff7('0x23')](){this[_0x4ff7('0x3')][_0x4ff7('0x2e')][_0x4ff7('0x16')](),this['_sidebarView'][_0x4ff7('0x23')]();}['_handleEditorDataReady'](){const _0x21d702=this[_0x4ff7('0x17')]['getRevision'](0x0);if(_0x21d702){const _0x2f5350=this[_0x4ff7('0x17')]['getEarlierVisibleRevision'](_0x21d702['id']);this['_revisionViewer'][_0x4ff7('0x0')](_0x21d702,_0x2f5350);}}[_0x4ff7('0x20')](_0x5d1f5e,_0x4bde6b){const _0x4f2c16=this[_0x4ff7('0x17')][_0x4ff7('0x28')](_0x4bde6b['id']),_0x44dead=this[_0x4ff7('0x17')][_0x4ff7('0x31')](_0x4f2c16['id']);this[_0x4ff7('0x3c')][_0x4ff7('0x0')](_0x4f2c16,_0x44dead);}[_0x4ff7('0xd')](_0x3c8dec,_0xea4ece){this[_0x4ff7('0x17')]['getRevision'](_0xea4ece['id'])[_0x4ff7('0x3b')](_0xea4ece[_0x4ff7('0x7')]);}[_0x4ff7('0x18')](_0x18d1c0,_0x16baa5,_0xa3cd96){const _0x2cac6d=this['_revisionsRepository']['getRevisionsInDiff'](_0xa3cd96);_0x2cac6d[_0x4ff7('0x4')]>0x2?(this[_0x4ff7('0x3')]['highlightRevisions'](_0x2cac6d),this[_0x4ff7('0x3')][_0x4ff7('0x3a')](null)):(this[_0x4ff7('0x3')][_0x4ff7('0xe')]([]),this[_0x4ff7('0x3')][_0x4ff7('0x3a')](_0x2cac6d[0x0]));}[_0x4ff7('0x29')](){const _0x1bc19f=this[_0x4ff7('0x1d')],_0x4acc0b=w[_0x4ff7('0xc')],_0x411c32=_0x1bc19f[_0x4ff7('0x25')][_0x4ff7('0x22')]('revisionHistory.revisionActions')||w[_0x4ff7('0x24')];if(_0x411c32[_0x4ff7('0x4')])return _0x411c32[_0x4ff7('0x1c')](_0x3d9347=>{const _0x12d01f=_0x4ff7('0x27')==typeof _0x3d9347?Object['assign']({},_0x4acc0b[_0x3d9347]):_0x3d9347;return _0x12d01f[_0x4ff7('0x19')]=_0x12d01f[_0x4ff7('0x19')]['bind'](this,_0x1bc19f),_0x12d01f['isVisible']&&(_0x12d01f[_0x4ff7('0x36')]=_0x12d01f[_0x4ff7('0x36')][_0x4ff7('0x6')](this,_0x1bc19f)),_0x12d01f;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x4ff7('0x2f'),'action':({plugins:_0x4580f3},_0x1e27f2)=>{const _0x59600a=_0x4580f3[_0x4ff7('0x22')](_0x4cbccf),_0x5a268c=_0x59600a[_0x4ff7('0x35')];let _0x43a272=_0x59600a[_0x4ff7('0x21')][_0x4ff7('0x12')],_0x4a11fe=_0x1e27f2['id'];_0x5a268c[_0x4ff7('0xb')](_0x43a272)>_0x5a268c[_0x4ff7('0xb')](_0x4a11fe)&&([_0x43a272,_0x4a11fe]=[_0x4a11fe,_0x43a272]),_0x59600a[_0x4ff7('0x0')](_0x43a272,_0x4a11fe);},'isVisible':({plugins:_0x1822c},_0x30d649)=>{const _0x52eb18=_0x1822c[_0x4ff7('0x22')](_0x4cbccf);return!(_0x52eb18[_0x4ff7('0x35')][_0x4ff7('0x1f')](_0x52eb18[_0x4ff7('0x21')])['length']>0x2)&&!_0x30d649[_0x4ff7('0x5')];}},'restoreRevision':{'name':_0x4ff7('0x1'),'action':(_0x2bac97,{id:_0xec17c7})=>{_0x2bac97['config'][_0x4ff7('0x22')](_0x4ff7('0x14'))[_0x4ff7('0x39')](_0xec17c7);},'isVisible':({plugins:_0x3d8201},_0x5691ac)=>!!_0x3d8201[_0x4ff7('0x22')](_0x4cbccf)[_0x4ff7('0x35')]['getLaterVisibleRevision'](_0x5691ac['id'])},'nameRevision':{'name':_0x4ff7('0x26'),'action':({plugins:_0x3779f7},{id:_0x52c03f,revisionNameView:_0x21cd40})=>{const _0x4b1963=_0x3779f7[_0x4ff7('0x22')](_0x4cbccf),_0x5b16cb=_0x4b1963[_0x4ff7('0x35')][_0x4ff7('0x31')](_0x52c03f);_0x4b1963[_0x4ff7('0x0')](_0x52c03f,_0x5b16cb),_0x21cd40['focus'](),_0x21cd40[_0x4ff7('0x9')][_0x4ff7('0x3d')]();}}},w[_0x4ff7('0x24')]=[_0x4ff7('0x2d'),_0x4ff7('0x2c'),_0x4ff7('0x2')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x563e=['ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','div','Revision\x20history','ck-reset_all','span'];(function(_0x286198,_0x563e92){const _0x438fbc=function(_0x37449e){while(--_0x37449e){_0x286198['push'](_0x286198['shift']());}};_0x438fbc(++_0x563e92);}(_0x563e,0x10d));const _0x438f=function(_0x286198,_0x563e92){_0x286198=_0x286198-0x0;let _0x438fbc=_0x563e[_0x286198];return _0x438fbc;};import{View as _0x4452f8,IconView as _0x5529ce}from'ckeditor5/src/ui';import{getTranslation as _0x5a8abe}from'../../utils/common-translations';import _0x42602c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x4452f8{constructor(_0x225017){super(_0x225017);const _0x3086ad=new _0x5529ce();_0x3086ad['content']=_0x42602c,this['setTemplate']({'tag':_0x438f('0x3'),'attributes':{'class':['ck',_0x438f('0x5'),_0x438f('0x1')]},'children':[_0x3086ad,{'tag':_0x438f('0x0'),'attributes':{'class':['ck',_0x438f('0x2')]},'children':[_0x5a8abe(_0x225017,_0x438f('0x4'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b63=['createCollection','add','addRevision','div','remove','select','setTemplate','delegate','setName','revisionViews','span','_revisionActions','ck-revision-history-sidebar__time-period__revisions'];(function(_0x2e675e,_0x3b636f){const _0x3a82a3=function(_0x38a231){while(--_0x38a231){_0x2e675e['push'](_0x2e675e['shift']());}};_0x3a82a3(++_0x3b636f);}(_0x3b63,0x127));const _0x3a82=function(_0x2e675e,_0x3b636f){_0x2e675e=_0x2e675e-0x0;let _0x3a82a3=_0x3b63[_0x2e675e];return _0x3a82a3;};import{View as _0x4210f9}from'ckeditor5/src/ui';import _0x2d6ae6 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x49e285}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4210f9{constructor(_0x460d8e,_0x5262e6,_0x201f1f){super(_0x460d8e);const _0x530988=_0x49e285(_0x5262e6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5262e6,this['revisionViews']=this[_0x3a82('0x4')](),this[_0x3a82('0x2')]=_0x201f1f,this[_0x3a82('0x0')][_0x3a82('0xb')](_0x3a82('0x9'))['to'](this),this[_0x3a82('0x0')][_0x3a82('0xb')](_0x3a82('0xc'))['to'](this),this[_0x3a82('0xa')]({'tag':_0x3a82('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3a82('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x530988}]},{'tag':'div','attributes':{'class':['ck',_0x3a82('0x3')]},'children':this['revisionViews']}]});}[_0x3a82('0x6')](_0x50520e){const _0x424064=new _0x2d6ae6(this['locale'],_0x50520e,this[_0x3a82('0x2')]);this[_0x3a82('0x0')][_0x3a82('0x5')](_0x424064);}['removeRevision'](_0xc7b556){const _0x2a159f=this['revisionViews']['find'](_0x52dfa8=>_0x52dfa8['id']===_0xc7b556['id']);this[_0x3a82('0x0')][_0x3a82('0x8')](_0x2a159f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaa6f=['_getTimePeriodViewByStartDate','ck-revision-history-sidebar__timeline','startDate','_revisions','revisionSetName','deselect','unhighlight','revisionSelected','select','fire','createCollection','addRevision','locale','isEnabled','_removeRevision','delegate','_addRevision','map','highlightRevisions','set','bindTemplate','getTime','div','add','_revisionActions','createdAt','find','highlight','setTemplate','setName','revisionViews','ck-revision-history-sidebar','render','timePeriodViews'];(function(_0x4f425d,_0xaa6fa2){const _0x1ee5e4=function(_0x26b21a){while(--_0x26b21a){_0x4f425d['push'](_0x4f425d['shift']());}};_0x1ee5e4(++_0xaa6fa2);}(_0xaa6f,0x1b1));const _0x1ee5=function(_0x4f425d,_0xaa6fa2){_0x4f425d=_0x4f425d-0x0;let _0x1ee5e4=_0xaa6f[_0x4f425d];return _0x1ee5e4;};import{View as _0x345b9a}from'ckeditor5/src/ui';import _0x1959bb from'./revisionssidebartimeperiodview';import _0x51203c from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x428890}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x345b9a{constructor(_0x4fdb37,_0x22bbeb,_0x41b6d9){super(_0x4fdb37);const _0x4e7721=this[_0x1ee5('0x1d')];this[_0x1ee5('0x8')]=this[_0x1ee5('0x13')](),this[_0x1ee5('0x8')][_0x1ee5('0x18')](_0x1ee5('0x11'))['to'](this),this['timePeriodViews'][_0x1ee5('0x18')](_0x1ee5('0x4'))['to'](this),this[_0x1ee5('0xc')]=_0x22bbeb,this[_0x1ee5('0x21')]=_0x41b6d9,this['on']('select',(_0xc88fcc,_0x5ea750)=>{this[_0x1ee5('0x12')](_0x1ee5('0x10'),_0x5ea750);}),this['on']('setName',(_0x53b7e8,_0xc8e806)=>{this[_0x1ee5('0x12')](_0x1ee5('0xd'),_0xc8e806);}),this[_0x1ee5('0x1c')](_0x1ee5('0x16'),!0x1),this[_0x1ee5('0x3')]({'tag':_0x1ee5('0x1f'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x1ee5('0x6')]},'children':[new _0x51203c(_0x4fdb37),{'tag':_0x1ee5('0x1f'),'attributes':{'class':['ck',_0x1ee5('0xa'),_0x4e7721['if'](_0x1ee5('0x16'),'ck-disabled',_0x4a84f0=>!_0x4a84f0)]},'children':this['timePeriodViews']}]});}[_0x1ee5('0x7')](){super[_0x1ee5('0x7')]();for(const _0x58ffc2 of this[_0x1ee5('0xc')])this[_0x1ee5('0x19')](_0x58ffc2);this[_0x1ee5('0xc')]['on'](_0x1ee5('0x20'),(_0x283bbf,_0x2de1e0)=>{this[_0x1ee5('0x19')](_0x2de1e0);}),this[_0x1ee5('0xc')]['on']('remove',(_0xab670b,_0xc21452)=>{this['_removeRevision'](_0xc21452);});}get['revisionViews'](){return this[_0x1ee5('0x8')][_0x1ee5('0x1a')](_0x305902=>_0x305902['revisionViews'][_0x1ee5('0x1a')](_0x233ca0=>_0x233ca0))['flat']();}['selectRevision'](_0x102b0a){for(const _0x3b9b6a of this[_0x1ee5('0x5')])_0x102b0a&&_0x102b0a['id']===_0x3b9b6a['id']?_0x3b9b6a[_0x1ee5('0x11')]():_0x3b9b6a[_0x1ee5('0xe')]();}[_0x1ee5('0x1b')](_0x44cdd7){for(const _0x4cb4d1 of this['revisionViews'])_0x44cdd7['some'](({id:_0x466a56})=>_0x466a56===_0x4cb4d1['id'])?_0x4cb4d1[_0x1ee5('0x2')]():_0x4cb4d1[_0x1ee5('0xf')]();}['_addRevision'](_0x1c8b5b){const _0x5a2a59=_0x428890(_0x1c8b5b['createdAt'],this[_0x1ee5('0x15')]['uiLanguage'])[_0x1ee5('0xb')];let _0x494a06=this[_0x1ee5('0x8')]['get'](0x0);_0x494a06&&_0x494a06[_0x1ee5('0xb')][_0x1ee5('0x1e')]()===_0x5a2a59[_0x1ee5('0x1e')]()||(_0x494a06=new _0x1959bb(this[_0x1ee5('0x15')],_0x5a2a59,this[_0x1ee5('0x21')]),this[_0x1ee5('0x8')][_0x1ee5('0x20')](_0x494a06)),_0x494a06[_0x1ee5('0x14')](_0x1c8b5b);}[_0x1ee5('0x17')](_0xc57014){const _0x4819fe=_0x428890(_0xc57014[_0x1ee5('0x0')],this[_0x1ee5('0x15')]['uiLanguage'])['startDate'];this[_0x1ee5('0x9')](_0x4819fe)['removeRevision'](_0xc57014);}['_getTimePeriodViewByStartDate'](_0x90965){return this[_0x1ee5('0x8')][_0x1ee5('0x1')](_0x3b1753=>_0x3b1753[_0x1ee5('0xb')][_0x1ee5('0x1e')]()===_0x90965[_0x1ee5('0x1e')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33aa=['startOf','minus','month','weekdayLong','hasSame','toRelativeCalendar','year','setLocale','local','day','week','toJSDate','fromJSDate'];(function(_0x150c63,_0x33aae3){const _0x27246d=function(_0x17905b){while(--_0x17905b){_0x150c63['push'](_0x150c63['shift']());}};_0x27246d(++_0x33aae3);}(_0x33aa,0xbc));const _0x2724=function(_0x150c63,_0x33aae3){_0x150c63=_0x150c63-0x0;let _0x27246d=_0x33aa[_0x150c63];return _0x27246d;};import{DateTime as _0x4672cf}from'luxon';export function getDateTimePeriodInfo(_0x2aa7b5,_0x257d39){const _0x1e825c=_0x4672cf[_0x2724('0x6')](_0x2aa7b5)[_0x2724('0x1')](_0x257d39),_0x57f6a0=_0x4672cf[_0x2724('0x2')](),_0x400794=_0x57f6a0[_0x2724('0x8')]({'days':0x1})[_0x2724('0x7')](_0x2724('0x3'));let _0x4d8243,_0x376794;return _0x1e825c[_0x2724('0xb')](_0x57f6a0,_0x2724('0x3'))?(_0x4d8243=_0x1e825c[_0x2724('0x7')]('day')[_0x2724('0x5')](),_0x376794=_0x1e825c[_0x2724('0xc')]()):_0x1e825c[_0x2724('0xb')](_0x400794,'day')?(_0x4d8243=_0x400794[_0x2724('0x5')](),_0x376794=_0x1e825c[_0x2724('0xc')]()):_0x1e825c[_0x2724('0xb')](_0x57f6a0,_0x2724('0x4'))?(_0x4d8243=_0x1e825c[_0x2724('0x7')]('week')['toJSDate'](),_0x376794=_0x1e825c[_0x2724('0xa')]||''):_0x1e825c[_0x2724('0xb')](_0x57f6a0,_0x2724('0x0'))?(_0x4d8243=_0x1e825c['startOf'](_0x2724('0x9'))['toJSDate'](),_0x376794=_0x1e825c['monthLong']||''):(_0x4d8243=_0x1e825c[_0x2724('0x7')](_0x2724('0x0'))[_0x2724('0x5')](),_0x376794=String(_0x1e825c[_0x2724('0x0')])),{'startDate':_0x4d8243,'localizedPeriodName':_0x376794};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3da3=['ck-revision-change__label','add','setTemplate','ck-revision-change__','isSuggestion','span','_model','focus','type','name','data','Added\x20by','bindTemplate','author','Removed\x20by','element','ck-annotation','changeId','set'];(function(_0x29a803,_0x3da30d){const _0x1b190d=function(_0x56426a){while(--_0x56426a){_0x29a803['push'](_0x29a803['shift']());}};_0x1b190d(++_0x3da30d);}(_0x3da3,0x113));const _0x1b19=function(_0x29a803,_0x3da30d){_0x29a803=_0x29a803-0x0;let _0x1b190d=_0x3da3[_0x29a803];return _0x1b190d;};import{View as _0x349ce9}from'ckeditor5/src/ui';import{getTranslation as _0x242d8e}from'../../utils/common-translations';export default class Z extends _0x349ce9{constructor(_0x21ad3c,_0x2e3923){super(_0x21ad3c),this[_0x1b19('0x10')]=_0x2e3923,this[_0x1b19('0x8')]=_0x2e3923['id'];const _0x307a54=this[_0x1b19('0x3')],_0x16a94f=_0x242d8e(_0x21ad3c,_0x2e3923[_0x1b19('0x1')][_0x1b19('0xe')]?'Suggested\x20by':_0x1b19('0xb')==_0x2e3923['type']?_0x1b19('0x2'):_0x1b19('0x5'));this[_0x1b19('0x9')]('type',_0x2e3923[_0x1b19('0x12')]),this[_0x1b19('0xc')]({'tag':'div','attributes':{'class':[_0x1b19('0x7'),'ck-revision-change',_0x307a54['to']('type',_0x1372bf=>_0x1b19('0xd')+_0x1372bf)],'tabindex':-0x1},'children':[{'tag':_0x1b19('0xf'),'children':[{'tag':_0x1b19('0xf'),'attributes':{'class':[_0x1b19('0xa')]},'children':[{'text':_0x16a94f}]},{'text':'\x20'+_0x2e3923[_0x1b19('0x4')][_0x1b19('0x0')]}]}]});}[_0x1b19('0x11')](){this[_0x1b19('0x6')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ff0=['ck-hidden','bind','span','EDIT_X_OF_Y_REVISIONS','isNavigationMode','numberOfChanges','Show\x20next\x20change','X_OF_Y_CHANGES','_statusText','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__label','Total','isForwardNavigationEnabled','NUMBER_OF_CHANGES','execute','No\x20changes','div','backward','currentChangeNumber','forward','Loading...','fire','set','isReady','ck-revision-history-ui__changes-navigation__wrapper','isEnabled','_isStatusLabelVisible','bindTemplate','ck-revision-history-ui__changes-navigation','Show\x20previous\x20change'];(function(_0x508745,_0x1ff09e){const _0x31b045=function(_0x4a70ab){while(--_0x4a70ab){_0x508745['push'](_0x508745['shift']());}};_0x31b045(++_0x1ff09e);}(_0x1ff0,0x1b6));const _0x31b0=function(_0x508745,_0x1ff09e){_0x508745=_0x508745-0x0;let _0x31b045=_0x1ff0[_0x508745];return _0x31b045;};import{View as _0x525fdd,ButtonView as _0x4bfd5b,ToolbarSeparatorView as _0x10642e}from'ckeditor5/src/ui';import{getTranslation as _0x2f4142}from'../../utils/common-translations';import _0x58993f from'../../../theme/icons/arrow-up.svg';import _0x3b2bd9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x525fdd{constructor(_0x14a623){super(_0x14a623);const _0x179ba4=this[_0x31b0('0x9')],_0x510308=new _0x4bfd5b(_0x14a623),_0x3f7951=new _0x4bfd5b(_0x14a623);this['set'](_0x31b0('0x10'),!0x1),this[_0x31b0('0x4')](_0x31b0('0x5'),!0x1),this[_0x31b0('0x4')]('currentChangeNumber',0x0),this[_0x31b0('0x4')](_0x31b0('0x11'),0x0),this[_0x31b0('0x4')](_0x31b0('0x18'),!0x1),this[_0x31b0('0x4')]('isBackwardNavigationEnabled',!0x1),this[_0x31b0('0xd')](_0x31b0('0x8'))['to'](this,_0x31b0('0x5'),this,'numberOfChanges',(_0xee65af,_0x462539)=>_0xee65af&&_0x462539>0x0),this[_0x31b0('0xd')](_0x31b0('0x14'))['to'](this,'isReady',this,_0x31b0('0x0'),this,_0x31b0('0x11'),this,_0x31b0('0x10'),(_0x261990,_0x2b1ada,_0x40029d,_0x530f03)=>{if(!_0x261990)return _0x2f4142(_0x14a623,_0x31b0('0x2'));if(!_0x40029d)return _0x2f4142(_0x14a623,_0x31b0('0x1b'));const _0x5085ca=_0x2f4142(_0x14a623,_0x31b0('0x19'),_0x40029d);return _0x530f03?_0x2f4142(_0x14a623,_0x31b0('0x13'),[_0x2b1ada+0x1,_0x40029d]):_0x5085ca;}),_0x510308[_0x31b0('0x4')]({'label':_0x2f4142(_0x14a623,_0x31b0('0xb')),'tooltip':!0x0,'icon':_0x58993f}),_0x3f7951[_0x31b0('0x4')]({'label':_0x2f4142(_0x14a623,_0x31b0('0x12')),'tooltip':!0x0,'icon':_0x3b2bd9}),_0x510308['bind'](_0x31b0('0x7'))['to'](this,'isBackwardNavigationEnabled'),_0x3f7951[_0x31b0('0xd')](_0x31b0('0x7'))['to'](this,'isForwardNavigationEnabled'),_0x510308['on']('execute',()=>this[_0x31b0('0x3')](_0x31b0('0x1a'),_0x31b0('0x1d'))),_0x3f7951['on']('execute',()=>this[_0x31b0('0x3')](_0x31b0('0x1a'),_0x31b0('0x1'))),this['setTemplate']({'tag':_0x31b0('0x1c'),'attributes':{'class':['ck',_0x31b0('0x15'),_0x31b0('0xa')]},'children':[{'tag':_0x31b0('0xe'),'attributes':{'class':[_0x31b0('0x6')]},'children':[{'tag':_0x31b0('0xe'),'attributes':{'class':[_0x31b0('0x16'),_0x179ba4['if']('_isStatusLabelVisible',_0x31b0('0xc'),_0x2747df=>!_0x2747df)]},'children':[{'text':_0x179ba4['to'](_0x31b0('0x10'),_0x32e7f9=>_0x32e7f9?_0x2f4142(_0x14a623,_0x31b0('0xf'))+':\x20':_0x2f4142(_0x14a623,_0x31b0('0x17'))+':\x20')}]},{'text':_0x179ba4['to'](_0x31b0('0x14'))}]},new _0x10642e(),{'tag':_0x31b0('0x1c'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x510308,_0x3f7951]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53a8=['removeClass','editing','document','addClass','editor','view','pluginName','hide','change','show','roots'];(function(_0x5ce079,_0x53a85d){const _0xa3102d=function(_0x244047){while(--_0x244047){_0x5ce079['push'](_0x5ce079['shift']());}};_0xa3102d(++_0x53a85d);}(_0x53a8,0x1ea));const _0xa310=function(_0x5ce079,_0x53a85d){_0x5ce079=_0x5ce079-0x0;let _0xa3102d=_0x53a8[_0x5ce079];return _0xa3102d;};import{Plugin as _0x53611d}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x53611d{static get[_0xa310('0x0')](){return'RevisionViewerLoadingOverlay';}[_0xa310('0x3')](){const _0x319cf5=this[_0xa310('0x9')][_0xa310('0x6')][_0xa310('0xa')];_0x319cf5[_0xa310('0x2')](_0x2532f9=>{for(const _0x5f283e of _0x319cf5['document'][_0xa310('0x4')])_0x2532f9[_0xa310('0x8')](oe,_0x5f283e);});}[_0xa310('0x1')](){const _0x36e249=this['editor'][_0xa310('0x6')][_0xa310('0xa')];_0x36e249[_0xa310('0x2')](_0x3ef0ed=>{for(const _0x5c12cf of _0x36e249[_0xa310('0x7')][_0xa310('0x4')])_0x3ef0ed[_0xa310('0x5')](oe,_0x5c12cf);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x490a=['add','changesNavigation','exitToEditing','editor','isEnabled','componentFactory','listenTo','requires','RevisionViewerUI','get','commands','change:isReady','init','revisionHistory','set','Back\x20to\x20editing','hide','numberOfChanges','ck-revision-history-ui__back-to-editing','bind','execute','closeRevisionViewerCallback','isReady','Restore\x20this\x20revision','config','show','showNextChange','restoreRevision','showPreviousChange','pluginName','isBackwardNavigationEnabled','plugins','currentChangeNumber'];(function(_0x578754,_0x490ac2){const _0x48be7f=function(_0x1b3d7e){while(--_0x1b3d7e){_0x578754['push'](_0x578754['shift']());}};_0x48be7f(++_0x490ac2);}(_0x490a,0x1d4));const _0x48be=function(_0x578754,_0x490ac2){_0x578754=_0x578754-0x0;let _0x48be7f=_0x490a[_0x578754];return _0x48be7f;};import{Plugin as _0x4949d1}from'ckeditor5/src/core';import{ButtonView as _0x1de4de}from'ckeditor5/src/ui';import _0x33e640 from'./changesnavigationview';import _0x10ebc6 from'./../../revisionviewer';import _0x1d3394 from'./revisionviewerloadingoverlay';import{getTranslation as _0x33b964}from'../../utils/common-translations';import _0x3731f0 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4949d1{static get[_0x48be('0x17')](){return _0x48be('0x2');}static get[_0x48be('0x1')](){return[_0x10ebc6,_0x1d3394];}[_0x48be('0x6')](){const _0x36667b=this[_0x48be('0x1e')],_0x5d75f4=_0x36667b[_0x48be('0x19')]['get'](_0x10ebc6),_0x435e90=_0x36667b[_0x48be('0x19')][_0x48be('0x3')](_0x1d3394);_0x36667b['ui'][_0x48be('0x20')]['add'](_0x48be('0x1d'),_0x3ca951=>{const _0x2bd085=new _0x1de4de(_0x3ca951);return _0x2bd085[_0x48be('0x8')]({'label':_0x33b964(_0x3ca951,_0x48be('0x9')),'icon':_0x3731f0,'withText':!0x0,'tooltip':!0x0,'class':_0x48be('0xc')}),this[_0x48be('0x0')](_0x2bd085,_0x48be('0xe'),()=>{_0x36667b[_0x48be('0x12')][_0x48be('0x3')](_0x48be('0x7'))[_0x48be('0xf')]();}),_0x2bd085;}),_0x36667b['ui']['componentFactory']['add']('restoreRevision',_0x47aa70=>{const _0x35b2d8=new _0x1de4de(_0x47aa70);return _0x35b2d8[_0x48be('0x8')]({'label':_0x33b964(_0x47aa70,_0x48be('0x11')),'withText':!0x0,'tooltip':!0x0}),_0x35b2d8['bind']('isEnabled')['to'](_0x36667b[_0x48be('0x4')][_0x48be('0x3')]('restoreRevision')),this[_0x48be('0x0')](_0x35b2d8,_0x48be('0xe'),()=>_0x36667b[_0x48be('0xe')](_0x48be('0x15'))),_0x35b2d8;}),_0x36667b['ui']['componentFactory'][_0x48be('0x1b')](_0x48be('0x1c'),_0x32c148=>{const _0x58afea=new _0x33e640(_0x32c148),_0x26534a=_0x36667b[_0x48be('0x4')][_0x48be('0x3')](_0x48be('0x16')),_0x4d7398=_0x36667b['commands'][_0x48be('0x3')](_0x48be('0x14'));return _0x58afea['bind'](_0x48be('0x18'))['to'](_0x26534a,_0x48be('0x1f')),_0x58afea['bind']('isForwardNavigationEnabled')['to'](_0x4d7398,'isEnabled'),_0x58afea[_0x48be('0xd')](_0x48be('0x10'),_0x48be('0x1a'),_0x48be('0xb'),'isNavigationMode')['to'](_0x5d75f4),this[_0x48be('0x0')](_0x58afea,_0x48be('0xe'),(_0x4c4dee,_0x109b2b)=>{_0x36667b[_0x48be('0xe')]('forward'===_0x109b2b?_0x48be('0x14'):_0x48be('0x16'));}),_0x58afea;}),_0x435e90[_0x48be('0x13')](),_0x5d75f4['on'](_0x48be('0x5'),(_0x2f4c95,_0x5f2402,_0x19fd6f)=>{_0x19fd6f?_0x435e90[_0x48be('0xa')]():_0x435e90[_0x48be('0x13')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x31e781,_0x5a57be,_0x3b3035){const t=_0x31e781['t'];switch(_0x5a57be){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'},_0x3b3035);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b3035);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 _0x5a57be;}}
|