@ckeditor/ckeditor5-revision-history 38.0.1 → 38.1.1
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 +13 -11
- package/src/augmentation.d.ts +25 -25
- package/src/changeitem.d.ts +57 -57
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +27 -27
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +28 -28
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +43 -43
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -10
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +20 -20
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +95 -93
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +60 -60
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +48 -43
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +77 -72
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +21 -21
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +4 -4
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +4 -4
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +91 -91
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +30 -30
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +4 -4
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -21
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -39
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +8 -8
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -22
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +7 -7
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a84=['isReady','bind','set','editing','items','submit','reset','isEnabled','cancel','editor','RevisionTracker','revisionHistory','saveRevision','init','componentFactory','pluginName','Save\x20current\x20revision','revisionName','focus','panelView','requires','RevisionHistoryUI','execute','view','addMany','config','Open\x20revision\x20history','children','length','isReadOnly','plugins','get','showRevisionViewerCallback','add'];(function(_0x5d25cf,_0x3a841f){const _0x479b30=function(_0x1cd195){while(--_0x1cd195){_0x5d25cf['push'](_0x5d25cf['shift']());}};_0x479b30(++_0x3a841f);}(_0x3a84,0x1eb));const _0x479b=function(_0x5d25cf,_0x3a841f){_0x5d25cf=_0x5d25cf-0x0;let _0x479b30=_0x3a84[_0x5d25cf];return _0x479b30;};import{Plugin as _0x48f918}from'ckeditor5/src/core';import{ListView as _0x3b50d3,ListItemView as _0x2867f0,ButtonView as _0x11080f,createDropdown as _0x8e1899}from'ckeditor5/src/ui';import _0x55dbbb from'../../revisiontracker';import _0x11de97 from'./revisionhistorysaverevisionformview';import _0x2409fa from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x677feb}from'../../utils/common-translations';export default class l extends _0x48f918{static get[_0x479b('0x0')](){return _0x479b('0x6');}static get[_0x479b('0x5')](){return[_0x55dbbb];}[_0x479b('0x20')](){const _0xc63ed=this[_0x479b('0x1c')],_0x59a22b=_0xc63ed['plugins'][_0x479b('0x10')](_0x479b('0x1d'));_0xc63ed['ui'][_0x479b('0x21')][_0x479b('0x12')](_0x479b('0x1e'),_0x130000=>{const _0x32fed4=_0x8e1899(_0x130000),_0x4fcc99=_0x32fed4[_0x479b('0x4')]['children'],_0x472b62=new _0x3b50d3(_0x130000),_0x13055f=new _0x2867f0(_0x130000),_0x310cbd=new _0x11080f(_0x130000),_0x1bbc7e=new _0x2867f0(_0x130000),_0x1ce3be=new _0x11080f(_0x130000),_0x5085ab=new _0x11de97(_0x130000);function _0x4a62fe(){_0x4fcc99[_0x479b('0xd')]&&_0x4fcc99['remove'](0x0),_0x4fcc99[_0x479b('0x12')](_0x472b62);}function _0x18b818(){_0x32fed4['isOpen']=!0x1,_0xc63ed[_0x479b('0x16')][_0x479b('0x8')]['focus']();}return _0x32fed4['bind'](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0x59a22b,'isEnabled',_0xc63ed,_0x479b('0xe'),(_0x53607d,_0x20047e,_0x1060fc)=>_0x53607d&&_0x20047e&&!_0x1060fc),_0x32fed4['buttonView'][_0x479b('0x15')]({'icon':_0x2409fa,'label':_0x677feb(_0x130000,'Revision\x20history'),'tooltip':!0x0}),_0x310cbd['set']({'label':_0x677feb(_0x130000,_0x479b('0x1')),'withText':!0x0}),_0x310cbd[_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,'isReady',_0x59a22b,_0x479b('0x1a'),_0xc63ed,_0x479b('0xe'),(_0xc436b0,_0x437ba3,_0x4cb229)=>_0xc436b0&&_0x437ba3&&!_0x4cb229),_0x310cbd['on']('execute',()=>function(){_0x4fcc99['length']&&_0x4fcc99['remove'](0x0),(_0x5085ab[_0x479b('0x19')](),_0x4fcc99[_0x479b('0x12')](_0x5085ab),_0x5085ab[_0x479b('0x3')]());}()),_0x1ce3be[_0x479b('0x15')]({'label':_0x677feb(_0x130000,_0x479b('0xb')),'withText':!0x0}),_0x1ce3be[_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0xc63ed,_0x479b('0xe'),(_0x22aa43,_0x5e6e2e)=>_0x22aa43&&!_0x5e6e2e),_0x1ce3be['on'](_0x479b('0x7'),()=>{_0xc63ed[_0x479b('0xa')][_0x479b('0x10')]('revisionHistory')[_0x479b('0x11')](),_0x18b818();}),_0x13055f[_0x479b('0xc')][_0x479b('0x12')](_0x310cbd),_0x1bbc7e['children'][_0x479b('0x12')](_0x1ce3be),_0x472b62[_0x479b('0x17')][_0x479b('0x9')]([_0x13055f,_0x1bbc7e]),_0x32fed4['on']('change:isOpen',()=>_0x4a62fe()),_0x5085ab['saveButtonView'][_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0x59a22b,_0x479b('0x1a'),_0xc63ed,'isReadOnly',(_0xc158f5,_0x3c1f77,_0x95635c)=>_0xc158f5&&_0x3c1f77&&!_0x95635c),_0x5085ab['on'](_0x479b('0x18'),()=>(_0xc63ed[_0x479b('0xf')][_0x479b('0x10')](_0x55dbbb)[_0x479b('0x1f')]({'name':_0x5085ab[_0x479b('0x2')]}),void _0x18b818())),_0x5085ab['on'](_0x479b('0x1b'),()=>_0x4a62fe()),_0x5085ab['render'](),_0x4a62fe(),_0x32fed4;});}}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
+
import RevisionViewer from '../../revisionviewer';
|
|
6
|
+
import type { default as RevisionView } from '../revision/revisionview';
|
|
7
|
+
/**
|
|
8
|
+
* TODO
|
|
9
|
+
*/
|
|
10
|
+
export default class RevisionsSidebar extends Plugin {
|
|
11
|
+
static defaultRevisionActions: Array<string>;
|
|
12
|
+
static availableRevisionActions: Record<string, RevisionAction>;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "RevisionsSidebar";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get requires(): readonly [typeof RevisionViewer];
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(editor: Editor);
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
destroy(): void;
|
|
33
|
+
}
|
|
34
|
+
export interface RevisionAction {
|
|
35
|
+
name: string;
|
|
36
|
+
class?: string;
|
|
37
|
+
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
38
|
+
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
39
|
+
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
40
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bbc=['_createRevisionActions','isSelected','revisionViews','highlightRevisions','getRevisionsInDiff','length','select','config','get','RevisionsSidebar','ready','diff','revisionSelected','fieldView','defaultRevisionActions','data','assign','compare','add','listenTo','appendChild','revisionHistory.revisionActions','isReady','_handleRevisionSelected','_revisions','Name\x20this\x20revision','_sidebarView','setName','name','Restore\x20this\x20revision','focus','newRevisionId','_handleRevisionSetName','bind','map','restoreRevision','locale','availableRevisionActions','Compare\x20against\x20selected','_handleEditorDataReady','compareAgainstSelected','restoreRevisionCallback','revisionHistory.viewerSidebarContainer','init','pluginName','isVisible','getLaterVisibleRevision','element','revisionSetName','revisionHistory','render','editor','action','_revisionViewer','selectRevision','timePeriodViews','_revisionsRepository','string','destroy','getEarlierVisibleRevision','getIndex','repository','isEnabled','nameRevision','remove','getRevision','_handleDiffChange'];(function(_0x2a1916,_0x4bbc53){const _0x26633a=function(_0x4fd735){while(--_0x4fd735){_0x2a1916['push'](_0x2a1916['shift']());}};_0x26633a(++_0x4bbc53);}(_0x4bbc,0x114));const _0x2663=function(_0x2a1916,_0x4bbc53){_0x2a1916=_0x2a1916-0x0;let _0x26633a=_0x4bbc[_0x2a1916];return _0x26633a;};import{Plugin as _0x14e7f1}from'ckeditor5/src/core';import _0x2aef6b from'./revisionssidebarview';import _0x3778a1 from'../../revisionviewer';export default class R extends _0x14e7f1{static get[_0x2663('0x24')](){return _0x2663('0x1');}static get['requires'](){return[_0x3778a1];}constructor(_0x163f44){super(_0x163f44),this['_revisionViewer']=_0x163f44['plugins'][_0x2663('0x0')](_0x3778a1),this['_revisionsRepository']=this[_0x2663('0x2d')][_0x2663('0x35')],this[_0x2663('0x12')]=null;}[_0x2663('0x23')](){const _0x47cc9d=this['_revisionsRepository'][_0x2663('0x10')],_0x459cbf=this[_0x2663('0x3b')](),_0xb9f751=this[_0x2663('0x2b')][_0x2663('0x42')]['get'](_0x2663('0x22'));this[_0x2663('0x12')]=new _0x2aef6b(this[_0x2663('0x2b')][_0x2663('0x1c')],_0x47cc9d,_0x459cbf),this[_0x2663('0x12')]['on'](_0x2663('0x4'),this[_0x2663('0xf')]['bind'](this)),this[_0x2663('0x12')]['on'](_0x2663('0x28'),this[_0x2663('0x18')][_0x2663('0x19')](this)),this[_0x2663('0x12')][_0x2663('0x19')](_0x2663('0x36'))['to'](this['_revisionViewer']),this[_0x2663('0x12')][_0x2663('0x2f')]['on'](_0x2663('0xa'),(_0x15e8c4,_0x222b6b)=>{_0x222b6b[_0x2663('0x3d')]['on'](_0x2663('0xa'),(_0x43b17b,_0x27595a)=>{_0x27595a['bind']('isEnabled',_0x2663('0xe'))['to'](this[_0x2663('0x2d')]);});}),this[_0x2663('0x12')][_0x2663('0x2a')](),this[_0x2663('0xb')](this[_0x2663('0x2b')][_0x2663('0x7')],_0x2663('0x2'),this[_0x2663('0x1f')]['bind'](this)),this[_0x2663('0xb')](this[_0x2663('0x2d')],'change:diff',this[_0x2663('0x3a')][_0x2663('0x19')](this)),_0xb9f751[_0x2663('0xc')](this[_0x2663('0x12')][_0x2663('0x27')]);}[_0x2663('0x32')](){this[_0x2663('0x12')]['element'][_0x2663('0x38')](),this[_0x2663('0x12')][_0x2663('0x32')]();}[_0x2663('0x1f')](){const _0x22ba27=this[_0x2663('0x30')][_0x2663('0x39')](0x0);if(_0x22ba27){const _0x52ccb9=this[_0x2663('0x30')][_0x2663('0x33')](_0x22ba27['id']);this[_0x2663('0x2d')]['compare'](_0x22ba27,_0x52ccb9);}}['_handleRevisionSelected'](_0x4b3fbb,_0xcfb929){const _0x1b98d8=this[_0x2663('0x30')][_0x2663('0x39')](_0xcfb929['id']),_0x50e1fb=this['_revisionsRepository'][_0x2663('0x33')](_0x1b98d8['id']);this[_0x2663('0x2d')][_0x2663('0x9')](_0x1b98d8,_0x50e1fb);}['_handleRevisionSetName'](_0x579c52,_0x168eaf){this[_0x2663('0x30')][_0x2663('0x39')](_0x168eaf['id'])[_0x2663('0x13')](_0x168eaf[_0x2663('0x14')]);}[_0x2663('0x3a')](_0xc2cb11,_0x13f3b3,_0x343242){const _0x2d9b77=this['_revisionsRepository'][_0x2663('0x3f')](_0x343242);_0x2d9b77[_0x2663('0x40')]>0x2?(this[_0x2663('0x12')]['highlightRevisions'](_0x2d9b77),this[_0x2663('0x12')][_0x2663('0x2e')](null)):(this[_0x2663('0x12')][_0x2663('0x3e')]([]),this[_0x2663('0x12')][_0x2663('0x2e')](_0x2d9b77[0x0]));}[_0x2663('0x3b')](){const _0x21d2e8=this[_0x2663('0x2b')],_0x1b87b0=R[_0x2663('0x1d')],_0x10647f=_0x21d2e8[_0x2663('0x42')]['get'](_0x2663('0xd'))||R[_0x2663('0x6')];if(_0x10647f[_0x2663('0x40')])return _0x10647f[_0x2663('0x1a')](_0x157368=>{const _0x1f559a=_0x2663('0x31')==typeof _0x157368?Object[_0x2663('0x8')]({},_0x1b87b0[_0x157368]):_0x157368;return _0x1f559a[_0x2663('0x2c')]=_0x1f559a[_0x2663('0x2c')][_0x2663('0x19')](this,_0x21d2e8),_0x1f559a[_0x2663('0x25')]&&(_0x1f559a[_0x2663('0x25')]=_0x1f559a[_0x2663('0x25')][_0x2663('0x19')](this,_0x21d2e8)),_0x1f559a;});}}R['availableRevisionActions']={'compareAgainstSelected':{'name':_0x2663('0x1e'),'action':({plugins:_0x5ce1a1},_0x180557)=>{const _0x17915e=_0x5ce1a1[_0x2663('0x0')](_0x3778a1),_0x4953cc=_0x17915e['repository'];let _0x3b6f27=_0x17915e['diff'][_0x2663('0x17')],_0x56c826=_0x180557['id'];_0x4953cc[_0x2663('0x34')](_0x3b6f27)>_0x4953cc[_0x2663('0x34')](_0x56c826)&&([_0x3b6f27,_0x56c826]=[_0x56c826,_0x3b6f27]),_0x17915e[_0x2663('0x9')](_0x3b6f27,_0x56c826);},'isVisible':({plugins:_0x14a780},_0x18abcf)=>{const _0x119cc9=_0x14a780['get'](_0x3778a1);return!(_0x119cc9[_0x2663('0x35')]['getRevisionsInDiff'](_0x119cc9[_0x2663('0x3')])[_0x2663('0x40')]>0x2)&&!_0x18abcf[_0x2663('0x3c')];}},'restoreRevision':{'name':_0x2663('0x15'),'action':(_0x3d8473,{id:_0x5312d8})=>{_0x3d8473[_0x2663('0x42')][_0x2663('0x0')](_0x2663('0x29'))[_0x2663('0x21')](_0x5312d8);},'isVisible':({plugins:_0x10262c},_0x4badeb)=>!!_0x10262c[_0x2663('0x0')](_0x3778a1)['repository'][_0x2663('0x26')](_0x4badeb['id'])},'nameRevision':{'name':_0x2663('0x11'),'action':({plugins:_0x5872a6},{id:_0xdf6b81,revisionNameView:_0x12edd4})=>{const _0x50c07a=_0x5872a6[_0x2663('0x0')](_0x3778a1),_0x33103a=_0x50c07a[_0x2663('0x35')]['getEarlierVisibleRevision'](_0xdf6b81);_0x50c07a[_0x2663('0x9')](_0xdf6b81,_0x33103a),_0x12edd4[_0x2663('0x16')](),_0x12edd4[_0x2663('0x5')][_0x2663('0x41')]();}}},R[_0x2663('0x6')]=[_0x2663('0x20'),_0x2663('0x1b'),_0x2663('0x37')];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
|
|
3
|
-
*/
|
|
4
|
-
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
|
|
3
|
+
*/
|
|
4
|
+
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26d0=['ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','content','span','ck-reset_all','div','Revision\x20history','setTemplate'];(function(_0x3091bb,_0x26d028){const _0x49bcff=function(_0xbb8815){while(--_0xbb8815){_0x3091bb['push'](_0x3091bb['shift']());}};_0x49bcff(++_0x26d028);}(_0x26d0,0x130));const _0x49bc=function(_0x3091bb,_0x26d028){_0x3091bb=_0x3091bb-0x0;let _0x49bcff=_0x26d0[_0x3091bb];return _0x49bcff;};import{View as _0x17070d,IconView as _0xf83a9b}from'ckeditor5/src/ui';import{getTranslation as _0x11a859}from'../../utils/common-translations';import _0x2e63cc from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x17070d{constructor(_0x4b0ce1){super(_0x4b0ce1);const _0x73529d=new _0xf83a9b();_0x73529d[_0x49bc('0x2')]=_0x2e63cc,this[_0x49bc('0x7')]({'tag':_0x49bc('0x5'),'attributes':{'class':['ck',_0x49bc('0x4'),_0x49bc('0x1')]},'children':[_0x73529d,{'tag':_0x49bc('0x3'),'attributes':{'class':['ck',_0x49bc('0x0')]},'children':[_0x11a859(_0x4b0ce1,_0x49bc('0x6'))]}]});}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
3
|
-
*/
|
|
4
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import RevisionView from '../revision/revisionview';
|
|
7
|
-
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
8
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
9
|
-
import type Revision from '../../revision';
|
|
10
|
-
/**
|
|
11
|
-
* TODO
|
|
12
|
-
*/
|
|
13
|
-
export default class RevisionsSidebarTimePeriodView extends View {
|
|
14
|
-
startDate: Date;
|
|
15
|
-
revisionViews: ViewCollection<RevisionView>;
|
|
16
|
-
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
17
|
-
/**
|
|
18
|
-
* TODO
|
|
19
|
-
*/
|
|
20
|
-
addRevision(newRevision: Revision): void;
|
|
21
|
-
/**
|
|
22
|
-
* TODO
|
|
23
|
-
*/
|
|
24
|
-
removeRevision(revision: Revision): void;
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
3
|
+
*/
|
|
4
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
import RevisionView from '../revision/revisionview';
|
|
7
|
+
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
8
|
+
import type { RevisionAction } from './revisionssidebar';
|
|
9
|
+
import type Revision from '../../revision';
|
|
10
|
+
/**
|
|
11
|
+
* TODO
|
|
12
|
+
*/
|
|
13
|
+
export default class RevisionsSidebarTimePeriodView extends View {
|
|
14
|
+
startDate: Date;
|
|
15
|
+
revisionViews: ViewCollection<RevisionView>;
|
|
16
|
+
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
17
|
+
/**
|
|
18
|
+
* TODO
|
|
19
|
+
*/
|
|
20
|
+
addRevision(newRevision: Revision): void;
|
|
21
|
+
/**
|
|
22
|
+
* TODO
|
|
23
|
+
*/
|
|
24
|
+
removeRevision(revision: Revision): void;
|
|
25
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfb85=['ck-revision-history-sidebar__time-period__revisions','setTemplate','addRevision','locale','startDate','uiLanguage','delegate','ck-revision-history-sidebar__time-period__label','removeRevision','revisionViews','add','div','remove','ck-revision-history-sidebar__time-period','setName','localizedPeriodName','_revisionActions'];(function(_0x596162,_0xfb8520){const _0x5c82e2=function(_0x3a2c42){while(--_0x3a2c42){_0x596162['push'](_0x596162['shift']());}};_0x5c82e2(++_0xfb8520);}(_0xfb85,0x1db));const _0x5c82=function(_0x596162,_0xfb8520){_0x596162=_0x596162-0x0;let _0x5c82e2=_0xfb85[_0x596162];return _0x5c82e2;};import{View as _0x5d4b85}from'ckeditor5/src/ui';import _0x3241f7 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1e577e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x5d4b85{constructor(_0x383345,_0x2d5f92,_0x14313e){super(_0x383345);const _0x5f533f=_0x1e577e(_0x2d5f92,this['locale'][_0x5c82('0x6')])[_0x5c82('0x10')];this[_0x5c82('0x5')]=_0x2d5f92,this[_0x5c82('0xa')]=this['createCollection'](),this[_0x5c82('0x0')]=_0x14313e,this['revisionViews'][_0x5c82('0x7')]('select')['to'](this),this[_0x5c82('0xa')][_0x5c82('0x7')](_0x5c82('0xf'))['to'](this),this[_0x5c82('0x2')]({'tag':_0x5c82('0xc'),'attributes':{'class':['ck',_0x5c82('0xe')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x5c82('0x8')]},'children':[{'text':_0x5f533f}]},{'tag':_0x5c82('0xc'),'attributes':{'class':['ck',_0x5c82('0x1')]},'children':this[_0x5c82('0xa')]}]});}[_0x5c82('0x3')](_0xf763c6){const _0x132365=new _0x3241f7(this[_0x5c82('0x4')],_0xf763c6,this[_0x5c82('0x0')]);this[_0x5c82('0xa')][_0x5c82('0xb')](_0x132365);}[_0x5c82('0x9')](_0x3979a8){const _0x39da0c=this[_0x5c82('0xa')]['find'](_0x40ae2f=>_0x40ae2f['id']===_0x3979a8['id']);this['revisionViews'][_0x5c82('0xd')](_0x39da0c);}}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
3
|
-
*/
|
|
4
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
6
|
-
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
7
|
-
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
8
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
9
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
10
|
-
import type Revision from '../../revision';
|
|
11
|
-
/**
|
|
12
|
-
* TODO
|
|
13
|
-
*/
|
|
14
|
-
export default class RevisionsSidebarView extends View {
|
|
15
|
-
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
16
|
-
/**
|
|
17
|
-
* @observable
|
|
18
|
-
*/
|
|
19
|
-
isEnabled: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
render(): void;
|
|
28
|
-
/**
|
|
29
|
-
* TODO
|
|
30
|
-
*/
|
|
31
|
-
get revisionViews(): Array<RevisionView>;
|
|
32
|
-
/**
|
|
33
|
-
* TODO
|
|
34
|
-
*/
|
|
35
|
-
selectRevision(revisionToSelect: Revision | null): void;
|
|
36
|
-
/**
|
|
37
|
-
* TODO
|
|
38
|
-
*/
|
|
39
|
-
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
40
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
3
|
+
*/
|
|
4
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
6
|
+
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
7
|
+
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
8
|
+
import type { default as RevisionView } from '../revision/revisionview';
|
|
9
|
+
import type { RevisionAction } from './revisionssidebar';
|
|
10
|
+
import type Revision from '../../revision';
|
|
11
|
+
/**
|
|
12
|
+
* TODO
|
|
13
|
+
*/
|
|
14
|
+
export default class RevisionsSidebarView extends View {
|
|
15
|
+
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
16
|
+
/**
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
isEnabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
render(): void;
|
|
28
|
+
/**
|
|
29
|
+
* TODO
|
|
30
|
+
*/
|
|
31
|
+
get revisionViews(): Array<RevisionView>;
|
|
32
|
+
/**
|
|
33
|
+
* TODO
|
|
34
|
+
*/
|
|
35
|
+
selectRevision(revisionToSelect: Revision | null): void;
|
|
36
|
+
/**
|
|
37
|
+
* TODO
|
|
38
|
+
*/
|
|
39
|
+
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
40
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c62=['addRevision','_revisionActions','uiLanguage','fire','some','unhighlight','createdAt','ck-revision-history-sidebar__timeline','_removeRevision','highlight','ck-disabled','setTemplate','timePeriodViews','delegate','getTime','removeRevision','set','highlightRevisions','find','bindTemplate','div','ck-reset','add','selectRevision','isEnabled','render','ck-revision-history-sidebar','flat','remove','_revisions','revisionViews','select','locale','startDate','_addRevision','revisionSelected','_getTimePeriodViewByStartDate'];(function(_0x4ba4cf,_0x4c6263){const _0x2a6e11=function(_0x19a514){while(--_0x19a514){_0x4ba4cf['push'](_0x4ba4cf['shift']());}};_0x2a6e11(++_0x4c6263);}(_0x4c62,0x1a2));const _0x2a6e=function(_0x4ba4cf,_0x4c6263){_0x4ba4cf=_0x4ba4cf-0x0;let _0x2a6e11=_0x4c62[_0x4ba4cf];return _0x2a6e11;};import{View as _0xa17d96}from'ckeditor5/src/ui';import _0x24d82a from'./revisionssidebartimeperiodview';import _0x208b6d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3e919e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa17d96{constructor(_0x292d2f,_0x22c619,_0x5ebb2a){super(_0x292d2f);const _0x1b3bbe=this[_0x2a6e('0x8')];this[_0x2a6e('0x1')]=this['createCollection'](),this[_0x2a6e('0x1')][_0x2a6e('0x2')](_0x2a6e('0x14'))['to'](this),this[_0x2a6e('0x1')][_0x2a6e('0x2')]('setName')['to'](this),this[_0x2a6e('0x12')]=_0x22c619,this[_0x2a6e('0x1b')]=_0x5ebb2a,this['on'](_0x2a6e('0x14'),(_0x31bad4,_0x593441)=>{this[_0x2a6e('0x1d')](_0x2a6e('0x18'),_0x593441);}),this['on']('setName',(_0x5d0fc0,_0x1a2be8)=>{this[_0x2a6e('0x1d')]('revisionSetName',_0x1a2be8);}),this[_0x2a6e('0x5')](_0x2a6e('0xd'),!0x1),this[_0x2a6e('0x0')]({'tag':_0x2a6e('0x9'),'attributes':{'class':['ck',_0x2a6e('0xa'),'ck-rounded-corners',_0x2a6e('0xf')]},'children':[new _0x208b6d(_0x292d2f),{'tag':'div','attributes':{'class':['ck',_0x2a6e('0x21'),_0x1b3bbe['if'](_0x2a6e('0xd'),_0x2a6e('0x24'),_0x34d034=>!_0x34d034)]},'children':this[_0x2a6e('0x1')]}]});}[_0x2a6e('0xe')](){super['render']();for(const _0x28fff9 of this[_0x2a6e('0x12')])this[_0x2a6e('0x17')](_0x28fff9);this[_0x2a6e('0x12')]['on'](_0x2a6e('0xb'),(_0x17b9b1,_0x4e0473)=>{this[_0x2a6e('0x17')](_0x4e0473);}),this[_0x2a6e('0x12')]['on'](_0x2a6e('0x11'),(_0x26203d,_0x1184bb)=>{this[_0x2a6e('0x22')](_0x1184bb);});}get[_0x2a6e('0x13')](){return this[_0x2a6e('0x1')]['map'](_0x310ea1=>_0x310ea1['revisionViews']['map'](_0x5d93e6=>_0x5d93e6))[_0x2a6e('0x10')]();}[_0x2a6e('0xc')](_0x927f90){for(const _0x4ea873 of this[_0x2a6e('0x13')])_0x927f90&&_0x927f90['id']===_0x4ea873['id']?_0x4ea873['select']():_0x4ea873['deselect']();}[_0x2a6e('0x6')](_0x308453){for(const _0x4459f9 of this['revisionViews'])_0x308453[_0x2a6e('0x1e')](({id:_0x260285})=>_0x260285===_0x4459f9['id'])?_0x4459f9[_0x2a6e('0x23')]():_0x4459f9[_0x2a6e('0x1f')]();}['_addRevision'](_0x4392b1){const _0x5d504e=_0x3e919e(_0x4392b1[_0x2a6e('0x20')],this[_0x2a6e('0x15')][_0x2a6e('0x1c')])['startDate'];let _0x426e60=this[_0x2a6e('0x1')]['get'](0x0);_0x426e60&&_0x426e60[_0x2a6e('0x16')][_0x2a6e('0x3')]()===_0x5d504e[_0x2a6e('0x3')]()||(_0x426e60=new _0x24d82a(this[_0x2a6e('0x15')],_0x5d504e,this['_revisionActions']),this[_0x2a6e('0x1')][_0x2a6e('0xb')](_0x426e60)),_0x426e60[_0x2a6e('0x1a')](_0x4392b1);}[_0x2a6e('0x22')](_0x321b71){const _0x512a49=_0x3e919e(_0x321b71['createdAt'],this[_0x2a6e('0x15')][_0x2a6e('0x1c')])[_0x2a6e('0x16')];this[_0x2a6e('0x19')](_0x512a49)[_0x2a6e('0x4')](_0x321b71);}[_0x2a6e('0x19')](_0x19ee03){return this['timePeriodViews'][_0x2a6e('0x7')](_0x4321bd=>_0x4321bd['startDate']['getTime']()===_0x19ee03[_0x2a6e('0x3')]());}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/utils
|
|
3
|
-
*/
|
|
4
|
-
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
5
|
-
export interface DateTimePeriod {
|
|
6
|
-
startDate: Date;
|
|
7
|
-
localizedPeriodName: string;
|
|
8
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/utils
|
|
3
|
+
*/
|
|
4
|
+
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
5
|
+
export interface DateTimePeriod {
|
|
6
|
+
startDate: Date;
|
|
7
|
+
localizedPeriodName: string;
|
|
8
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ef1=['month','year','day','weekdayLong','setLocale','startOf','monthLong','week','fromJSDate','minus','toJSDate','hasSame','toRelativeCalendar'];(function(_0x59e402,_0x5ef1f3){const _0x40399c=function(_0x3ba4bf){while(--_0x3ba4bf){_0x59e402['push'](_0x59e402['shift']());}};_0x40399c(++_0x5ef1f3);}(_0x5ef1,0x1dd));const _0x4039=function(_0x59e402,_0x5ef1f3){_0x59e402=_0x59e402-0x0;let _0x40399c=_0x5ef1[_0x59e402];return _0x40399c;};import{DateTime as _0x4e39e4}from'luxon';export function getDateTimePeriodInfo(_0x1e1f87,_0x1b70b8){const _0x4f6254=_0x4e39e4[_0x4039('0xc')](_0x1e1f87)[_0x4039('0x8')](_0x1b70b8),_0x22106a=_0x4e39e4['local'](),_0x449025=_0x22106a[_0x4039('0x0')]({'days':0x1})[_0x4039('0x9')](_0x4039('0x6'));let _0xdf63f7,_0x3fea67;return _0x4f6254[_0x4039('0x2')](_0x22106a,_0x4039('0x6'))?(_0xdf63f7=_0x4f6254[_0x4039('0x9')](_0x4039('0x6'))[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x3')]()):_0x4f6254[_0x4039('0x2')](_0x449025,_0x4039('0x6'))?(_0xdf63f7=_0x449025[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x3')]()):_0x4f6254['hasSame'](_0x22106a,_0x4039('0xb'))?(_0xdf63f7=_0x4f6254['startOf']('week')[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x7')]||''):_0x4f6254['hasSame'](_0x22106a,_0x4039('0x5'))?(_0xdf63f7=_0x4f6254['startOf'](_0x4039('0x4'))[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0xa')]||''):(_0xdf63f7=_0x4f6254[_0x4039('0x9')](_0x4039('0x5'))[_0x4039('0x1')](),_0x3fea67=String(_0x4f6254[_0x4039('0x5')])),{'startDate':_0xdf63f7,'localizedPeriodName':_0x3fea67};}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
3
|
-
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import type ChangeItem from '../../changeitem';
|
|
7
|
-
export default class ChangeDetailsView extends View {
|
|
8
|
-
changeId: string;
|
|
9
|
-
/**
|
|
10
|
-
* @observable
|
|
11
|
-
*/
|
|
12
|
-
type: string;
|
|
13
|
-
constructor(locale: Locale, model: ChangeItem);
|
|
14
|
-
/**
|
|
15
|
-
* Focuses the view.
|
|
16
|
-
*/
|
|
17
|
-
focus(): void;
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
3
|
+
*/
|
|
4
|
+
import { View } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
import type ChangeItem from '../../changeitem';
|
|
7
|
+
export default class ChangeDetailsView extends View {
|
|
8
|
+
changeId: string;
|
|
9
|
+
/**
|
|
10
|
+
* @observable
|
|
11
|
+
*/
|
|
12
|
+
type: string;
|
|
13
|
+
constructor(locale: Locale, model: ChangeItem);
|
|
14
|
+
/**
|
|
15
|
+
* Focuses the view.
|
|
16
|
+
*/
|
|
17
|
+
focus(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x265e=['div','name','data','ck-revision-change__','setTemplate','bindTemplate','changeId','type','ck-revision-change','element','set','Removed\x20by','isSuggestion','span','focus'];(function(_0x38d38b,_0x265e4c){const _0x215741=function(_0x422368){while(--_0x422368){_0x38d38b['push'](_0x38d38b['shift']());}};_0x215741(++_0x265e4c);}(_0x265e,0x152));const _0x2157=function(_0x38d38b,_0x265e4c){_0x38d38b=_0x38d38b-0x0;let _0x215741=_0x265e[_0x38d38b];return _0x215741;};import{View as _0x25b243}from'ckeditor5/src/ui';import{getTranslation as _0x309309}from'../../utils/common-translations';export default class X extends _0x25b243{constructor(_0x47fb42,_0x569442){super(_0x47fb42),this['_model']=_0x569442,this[_0x2157('0xd')]=_0x569442['id'];const _0x5ba197=this[_0x2157('0xc')],_0x33191c=_0x309309(_0x47fb42,_0x569442[_0x2157('0x9')][_0x2157('0x4')]?'Suggested\x20by':'add'==_0x569442[_0x2157('0xe')]?'Added\x20by':_0x2157('0x3'));this[_0x2157('0x2')](_0x2157('0xe'),_0x569442[_0x2157('0xe')]),this[_0x2157('0xb')]({'tag':_0x2157('0x7'),'attributes':{'class':['ck-annotation',_0x2157('0x0'),_0x5ba197['to'](_0x2157('0xe'),_0x1de8a1=>_0x2157('0xa')+_0x1de8a1)],'tabindex':-0x1},'children':[{'tag':_0x2157('0x5'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x33191c}]},{'text':'\x20'+_0x569442['author'][_0x2157('0x8')]}]}]});}[_0x2157('0x6')](){this[_0x2157('0x1')][_0x2157('0x6')]();}}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionviewer/changenaviagationview
|
|
3
|
-
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import '../../../theme/changesnavigation.css';
|
|
7
|
-
/**
|
|
8
|
-
* TODO
|
|
9
|
-
*/
|
|
10
|
-
export default class ChangesNavigationView extends View {
|
|
11
|
-
/**
|
|
12
|
-
* @observable
|
|
13
|
-
*/
|
|
14
|
-
isNavigationMode: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @observable
|
|
17
|
-
*/
|
|
18
|
-
isReady: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @observable
|
|
21
|
-
*/
|
|
22
|
-
currentChangeNumber: number;
|
|
23
|
-
/**
|
|
24
|
-
* @observable
|
|
25
|
-
*/
|
|
26
|
-
numberOfChanges: number;
|
|
27
|
-
/**
|
|
28
|
-
* @observable
|
|
29
|
-
*/
|
|
30
|
-
isForwardNavigationEnabled: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
isBackwardNavigationEnabled: boolean;
|
|
35
|
-
constructor(locale: Locale);
|
|
36
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionviewer/changenaviagationview
|
|
3
|
+
*/
|
|
4
|
+
import { View } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
import '../../../theme/changesnavigation.css';
|
|
7
|
+
/**
|
|
8
|
+
* TODO
|
|
9
|
+
*/
|
|
10
|
+
export default class ChangesNavigationView extends View {
|
|
11
|
+
/**
|
|
12
|
+
* @observable
|
|
13
|
+
*/
|
|
14
|
+
isNavigationMode: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @observable
|
|
17
|
+
*/
|
|
18
|
+
isReady: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
currentChangeNumber: number;
|
|
23
|
+
/**
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
numberOfChanges: number;
|
|
27
|
+
/**
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
isForwardNavigationEnabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
isBackwardNavigationEnabled: boolean;
|
|
35
|
+
constructor(locale: Locale);
|
|
36
|
+
}
|