@ckeditor/ckeditor5-revision-history 40.0.0 → 40.1.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/LICENSE.md +3 -3
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +29 -29
- package/src/changeitem.d.ts +58 -58
- 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 +15 -15
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +24 -24
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +99 -99
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +64 -64
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +52 -52
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +81 -81
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +25 -25
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +5 -5
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +5 -5
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +95 -95
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +34 -34
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +5 -5
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +9 -9
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +11 -11
- package/src/utils/common-translations.js +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionTracker from '../../revisiontracker';
|
|
10
|
-
/**
|
|
11
|
-
* TODO
|
|
12
|
-
*/
|
|
13
|
-
export default class RevisionHistoryUI extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get pluginName(): "RevisionHistoryUI";
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get requires(): readonly [typeof RevisionTracker];
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
init(): void;
|
|
26
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import RevisionTracker from '../../revisiontracker';
|
|
10
|
+
/**
|
|
11
|
+
* TODO
|
|
12
|
+
*/
|
|
13
|
+
export default class RevisionHistoryUI extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "RevisionHistoryUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof RevisionTracker];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
init(): void;
|
|
26
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6487=['Open\x20revision\x20history','submit','editor','items','pluginName','isReadOnly','revisionHistory','view','showRevisionViewerCallback','remove','reset','add','isOpen','RevisionHistoryUI','isEnabled','requires','init','panelView','saveButtonView','length','history','cancel','change:isOpen','focus','children','buttonView','bind','render','get','plugins','isReady','editing'];(function(_0x398cea,_0x6487db){const _0x339827=function(_0x42dbb1){while(--_0x42dbb1){_0x398cea['push'](_0x398cea['shift']());}};_0x339827(++_0x6487db);}(_0x6487,0x155));const _0x3398=function(_0x398cea,_0x6487db){_0x398cea=_0x398cea-0x0;let _0x339827=_0x6487[_0x398cea];return _0x339827;};import{Plugin as _0x3c895d,icons as _0x3377ac}from'ckeditor5/src/core';import{ListView as _0x1325dd,ListItemView as _0xf478cb,ButtonView as _0x5c2faf,createDropdown as _0x261fee}from'ckeditor5/src/ui';import _0x2e16f7 from'../../revisiontracker';import _0x5d853a from'./revisionhistorysaverevisionformview';import{getTranslation as _0x300d12}from'../../utils/common-translations';export default class u extends _0x3c895d{static get[_0x3398('0xf')](){return _0x3398('0x18');}static get[_0x3398('0x1a')](){return[_0x2e16f7];}[_0x3398('0x1b')](){const _0x4f790c=this[_0x3398('0xd')],_0x1125aa=_0x4f790c['plugins'][_0x3398('0x7')]('RevisionTracker');_0x4f790c['ui']['componentFactory']['add'](_0x3398('0x11'),_0x14fc66=>{const _0x19b5ca=_0x261fee(_0x14fc66),_0x549a0b=_0x19b5ca[_0x3398('0x1c')][_0x3398('0x3')],_0xaa4852=new _0x1325dd(_0x14fc66),_0x3653ff=new _0xf478cb(_0x14fc66),_0x29094d=new _0x5c2faf(_0x14fc66),_0x56a374=new _0xf478cb(_0x14fc66),_0x52f3d5=new _0x5c2faf(_0x14fc66),_0x230c73=new _0x5d853a(_0x14fc66);function _0x1d997f(){_0x549a0b['length']&&_0x549a0b[_0x3398('0x14')](0x0),_0x549a0b[_0x3398('0x16')](_0xaa4852);}function _0x21c7f6(){_0x19b5ca[_0x3398('0x17')]=!0x1,_0x4f790c[_0x3398('0xa')][_0x3398('0x12')][_0x3398('0x2')]();}return _0x19b5ca[_0x3398('0x5')]('isEnabled')['to'](_0x1125aa,_0x3398('0x9'),_0x1125aa,_0x3398('0x19'),_0x4f790c,_0x3398('0x10'),(_0x572f12,_0xce81fa,_0x435ec9)=>_0x572f12&&_0xce81fa&&!_0x435ec9),_0x19b5ca[_0x3398('0x4')]['set']({'icon':_0x3377ac[_0x3398('0x1f')],'label':_0x300d12(_0x14fc66,'Revision\x20history'),'tooltip':!0x0}),_0x29094d['set']({'label':_0x300d12(_0x14fc66,'Save\x20current\x20revision'),'withText':!0x0}),_0x29094d[_0x3398('0x5')](_0x3398('0x19'))['to'](_0x1125aa,_0x3398('0x9'),_0x1125aa,_0x3398('0x19'),_0x4f790c,'isReadOnly',(_0x53125d,_0x4f2cee,_0x157e35)=>_0x53125d&&_0x4f2cee&&!_0x157e35),_0x29094d['on']('execute',()=>function(){_0x549a0b[_0x3398('0x1e')]&&_0x549a0b[_0x3398('0x14')](0x0),(_0x230c73[_0x3398('0x15')](),_0x549a0b[_0x3398('0x16')](_0x230c73),_0x230c73[_0x3398('0x2')]());}()),_0x52f3d5['set']({'label':_0x300d12(_0x14fc66,_0x3398('0xb')),'withText':!0x0}),_0x52f3d5[_0x3398('0x5')](_0x3398('0x19'))['to'](_0x1125aa,_0x3398('0x9'),_0x4f790c,_0x3398('0x10'),(_0x2b666d,_0x3587cb)=>_0x2b666d&&!_0x3587cb),_0x52f3d5['on']('execute',()=>{_0x4f790c['config'][_0x3398('0x7')](_0x3398('0x11'))[_0x3398('0x13')](),_0x21c7f6();}),_0x3653ff[_0x3398('0x3')]['add'](_0x29094d),_0x56a374[_0x3398('0x3')][_0x3398('0x16')](_0x52f3d5),_0xaa4852[_0x3398('0xe')]['addMany']([_0x3653ff,_0x56a374]),_0x19b5ca['on'](_0x3398('0x1'),()=>_0x1d997f()),_0x230c73[_0x3398('0x1d')][_0x3398('0x5')](_0x3398('0x19'))['to'](_0x1125aa,_0x3398('0x9'),_0x1125aa,_0x3398('0x19'),_0x4f790c,_0x3398('0x10'),(_0x295800,_0x2b632f,_0xed2e09)=>_0x295800&&_0x2b632f&&!_0xed2e09),_0x230c73['on'](_0x3398('0xc'),()=>(_0x4f790c[_0x3398('0x8')]['get'](_0x2e16f7)['saveRevision']({'name':_0x230c73['revisionName']}),void _0x21c7f6())),_0x230c73['on'](_0x3398('0x0'),()=>_0x1d997f()),_0x230c73[_0x3398('0x6')](),_0x1d997f(),_0x19b5ca;});}}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionViewer from '../../revisionviewer';
|
|
10
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
11
|
-
/**
|
|
12
|
-
* TODO
|
|
13
|
-
*/
|
|
14
|
-
export default class RevisionsSidebar extends Plugin {
|
|
15
|
-
static defaultRevisionActions: Array<string>;
|
|
16
|
-
static availableRevisionActions: Record<string, RevisionAction>;
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
static get pluginName(): "RevisionsSidebar";
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
static get requires(): readonly [typeof RevisionViewer];
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
constructor(editor: Editor);
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
init(): void;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
destroy(): void;
|
|
37
|
-
}
|
|
38
|
-
export interface RevisionAction {
|
|
39
|
-
name: string;
|
|
40
|
-
class?: string;
|
|
41
|
-
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
42
|
-
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
43
|
-
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
44
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import RevisionViewer from '../../revisionviewer';
|
|
10
|
+
import type { default as RevisionView } from '../revision/revisionview';
|
|
11
|
+
/**
|
|
12
|
+
* TODO
|
|
13
|
+
*/
|
|
14
|
+
export default class RevisionsSidebar extends Plugin {
|
|
15
|
+
static defaultRevisionActions: Array<string>;
|
|
16
|
+
static availableRevisionActions: Record<string, RevisionAction>;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "RevisionsSidebar";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly [typeof RevisionViewer];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
constructor(editor: Editor);
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
init(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
destroy(): void;
|
|
37
|
+
}
|
|
38
|
+
export interface RevisionAction {
|
|
39
|
+
name: string;
|
|
40
|
+
class?: string;
|
|
41
|
+
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
42
|
+
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
43
|
+
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
44
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x109a=['pluginName','init','getRevision','fieldView','diff','selectRevision','action','_createRevisionActions','name','get','revisionHistory','compareAgainstSelected','destroy','_revisionsRepository','isEnabled','repository','highlightRevisions','RevisionsSidebar','getRevisionsInDiff','getLaterVisibleRevision','_handleEditorDataReady','revisionHistory.revisionActions','assign','focus','bind','_sidebarView','availableRevisionActions','requires','length','add','_revisionViewer','isVisible','newRevisionId','getEarlierVisibleRevision','revisionViews','nameRevision','isReady','config','ready','setName','restoreRevision','map','revisionSelected','_revisions','defaultRevisionActions','render','listenTo','_handleRevisionSelected','Restore\x20this\x20revision','remove','locale','editor','_handleDiffChange','element','compare'];(function(_0x490042,_0x109a42){const _0x92d06d=function(_0x4a343e){while(--_0x4a343e){_0x490042['push'](_0x490042['shift']());}};_0x92d06d(++_0x109a42);}(_0x109a,0x196));const _0x92d0=function(_0x490042,_0x109a42){_0x490042=_0x490042-0x0;let _0x92d06d=_0x109a[_0x490042];return _0x92d06d;};import{Plugin as _0x219d39}from'ckeditor5/src/core';import _0x2173dc from'./revisionssidebarview';import _0x1c67cf from'../../revisionviewer';export default class w extends _0x219d39{static get[_0x92d0('0x22')](){return _0x92d0('0x33');}static get[_0x92d0('0x6')](){return[_0x1c67cf];}constructor(_0x3a5927){super(_0x3a5927),this[_0x92d0('0x9')]=_0x3a5927['plugins'][_0x92d0('0x2b')](_0x1c67cf),this[_0x92d0('0x2f')]=this[_0x92d0('0x9')]['repository'],this[_0x92d0('0x4')]=null;}[_0x92d0('0x23')](){const _0xaea0e7=this['_revisionsRepository'][_0x92d0('0x16')],_0x49e3c7=this[_0x92d0('0x29')](),_0xd8e6e1=this[_0x92d0('0x1e')][_0x92d0('0x10')][_0x92d0('0x2b')]('revisionHistory.viewerSidebarContainer');this[_0x92d0('0x4')]=new _0x2173dc(this['editor'][_0x92d0('0x1d')],_0xaea0e7,_0x49e3c7),this['_sidebarView']['on'](_0x92d0('0x15'),this[_0x92d0('0x1a')]['bind'](this)),this[_0x92d0('0x4')]['on']('revisionSetName',this['_handleRevisionSetName'][_0x92d0('0x3')](this)),this[_0x92d0('0x4')][_0x92d0('0x3')](_0x92d0('0x30'))['to'](this['_revisionViewer']),this[_0x92d0('0x4')]['timePeriodViews']['on'](_0x92d0('0x8'),(_0x500cbc,_0x52a591)=>{_0x52a591[_0x92d0('0xd')]['on'](_0x92d0('0x8'),(_0x15d33f,_0x334f07)=>{_0x334f07[_0x92d0('0x3')](_0x92d0('0x30'),_0x92d0('0xf'))['to'](this[_0x92d0('0x9')]);});}),this[_0x92d0('0x4')][_0x92d0('0x18')](),this[_0x92d0('0x19')](this['editor']['data'],_0x92d0('0x11'),this['_handleEditorDataReady'][_0x92d0('0x3')](this)),this[_0x92d0('0x19')](this['_revisionViewer'],'change:diff',this['_handleDiffChange'][_0x92d0('0x3')](this)),_0xd8e6e1['appendChild'](this[_0x92d0('0x4')][_0x92d0('0x20')]);}[_0x92d0('0x2e')](){this[_0x92d0('0x4')][_0x92d0('0x20')][_0x92d0('0x1c')](),this[_0x92d0('0x4')][_0x92d0('0x2e')]();}[_0x92d0('0x36')](){const _0x12aab4=this[_0x92d0('0x2f')][_0x92d0('0x24')](0x0);if(_0x12aab4){const _0x4f68ce=this[_0x92d0('0x2f')][_0x92d0('0xc')](_0x12aab4['id']);this[_0x92d0('0x9')]['compare'](_0x12aab4,_0x4f68ce);}}[_0x92d0('0x1a')](_0x2af589,_0x44c522){const _0x480526=this['_revisionsRepository'][_0x92d0('0x24')](_0x44c522['id']),_0x5cfc11=this['_revisionsRepository'][_0x92d0('0xc')](_0x480526['id']);this['_revisionViewer'][_0x92d0('0x21')](_0x480526,_0x5cfc11);}['_handleRevisionSetName'](_0x5d397d,_0x5ef895){this['_revisionsRepository'][_0x92d0('0x24')](_0x5ef895['id'])[_0x92d0('0x12')](_0x5ef895[_0x92d0('0x2a')]);}[_0x92d0('0x1f')](_0x37a227,_0x3371b0,_0x2f8129){const _0x4ec5dc=this['_revisionsRepository']['getRevisionsInDiff'](_0x2f8129);_0x4ec5dc['length']>0x2?(this[_0x92d0('0x4')][_0x92d0('0x32')](_0x4ec5dc),this[_0x92d0('0x4')][_0x92d0('0x27')](null)):(this['_sidebarView']['highlightRevisions']([]),this[_0x92d0('0x4')][_0x92d0('0x27')](_0x4ec5dc[0x0]));}[_0x92d0('0x29')](){const _0x1858ef=this['editor'],_0x554c6e=w['availableRevisionActions'],_0xf6fb54=_0x1858ef[_0x92d0('0x10')]['get'](_0x92d0('0x0'))||w[_0x92d0('0x17')];if(_0xf6fb54[_0x92d0('0x7')])return _0xf6fb54[_0x92d0('0x14')](_0x2e0978=>{const _0xd6c1b6='string'==typeof _0x2e0978?Object[_0x92d0('0x1')]({},_0x554c6e[_0x2e0978]):_0x2e0978;return _0xd6c1b6[_0x92d0('0x28')]=_0xd6c1b6[_0x92d0('0x28')][_0x92d0('0x3')](this,_0x1858ef),_0xd6c1b6['isVisible']&&(_0xd6c1b6[_0x92d0('0xa')]=_0xd6c1b6[_0x92d0('0xa')][_0x92d0('0x3')](this,_0x1858ef)),_0xd6c1b6;});}}w[_0x92d0('0x5')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x31d195},_0x479740)=>{const _0x42fdda=_0x31d195[_0x92d0('0x2b')](_0x1c67cf),_0x53662e=_0x42fdda[_0x92d0('0x31')];let _0x4b810c=_0x42fdda[_0x92d0('0x26')][_0x92d0('0xb')],_0x3284a4=_0x479740['id'];_0x53662e['getIndex'](_0x4b810c)>_0x53662e['getIndex'](_0x3284a4)&&([_0x4b810c,_0x3284a4]=[_0x3284a4,_0x4b810c]),_0x42fdda['compare'](_0x4b810c,_0x3284a4);},'isVisible':({plugins:_0x3c0a8a},_0x56176d)=>{const _0x3bc3de=_0x3c0a8a[_0x92d0('0x2b')](_0x1c67cf);return!(_0x3bc3de[_0x92d0('0x31')][_0x92d0('0x34')](_0x3bc3de[_0x92d0('0x26')])[_0x92d0('0x7')]>0x2)&&!_0x56176d['isSelected'];}},'restoreRevision':{'name':_0x92d0('0x1b'),'action':(_0x208554,{id:_0x4cf74c})=>{_0x208554[_0x92d0('0x10')][_0x92d0('0x2b')](_0x92d0('0x2c'))['restoreRevisionCallback'](_0x4cf74c);},'isVisible':({plugins:_0x3d5980},_0x7c6909)=>!!_0x3d5980[_0x92d0('0x2b')](_0x1c67cf)[_0x92d0('0x31')][_0x92d0('0x35')](_0x7c6909['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16ac5f},{id:_0x520e06,revisionNameView:_0x51d5df})=>{const _0x26fb5d=_0x16ac5f[_0x92d0('0x2b')](_0x1c67cf),_0x1ef1a8=_0x26fb5d['repository']['getEarlierVisibleRevision'](_0x520e06);_0x26fb5d[_0x92d0('0x21')](_0x520e06,_0x1ef1a8),_0x51d5df[_0x92d0('0x2')](),_0x51d5df[_0x92d0('0x25')]['select']();}}},w[_0x92d0('0x17')]=[_0x92d0('0x2d'),_0x92d0('0x13'),_0x92d0('0xe')];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa75=['history','div','ck-revision-history-sidebar__header__label','ck-reset_all','Revision\x20history','setTemplate','content'];(function(_0x3e84fa,_0xfa75f7){const _0x4bb591=function(_0x2c9358){while(--_0x2c9358){_0x3e84fa['push'](_0x3e84fa['shift']());}};_0x4bb591(++_0xfa75f7);}(_0xfa75,0x16a));const _0x4bb5=function(_0x3e84fa,_0xfa75f7){_0x3e84fa=_0x3e84fa-0x0;let _0x4bb591=_0xfa75[_0x3e84fa];return _0x4bb591;};import{View as _0x44cf19,IconView as _0x3653e9}from'ckeditor5/src/ui';import{getTranslation as _0x1ab39e}from'../../utils/common-translations';import{icons as _0x3192de}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x44cf19{constructor(_0xd33e70){super(_0xd33e70);const _0x141e0f=new _0x3653e9();_0x141e0f[_0x4bb5('0x1')]=_0x3192de[_0x4bb5('0x2')],this[_0x4bb5('0x0')]({'tag':_0x4bb5('0x3'),'attributes':{'class':['ck',_0x4bb5('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x141e0f,{'tag':'span','attributes':{'class':['ck',_0x4bb5('0x4')]},'children':[_0x1ab39e(_0xd33e70,_0x4bb5('0x6'))]}]});}}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
7
|
-
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import RevisionView from '../revision/revisionview';
|
|
11
|
-
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
12
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
13
|
-
import type Revision from '../../revision';
|
|
14
|
-
/**
|
|
15
|
-
* TODO
|
|
16
|
-
*/
|
|
17
|
-
export default class RevisionsSidebarTimePeriodView extends View {
|
|
18
|
-
startDate: Date;
|
|
19
|
-
revisionViews: ViewCollection<RevisionView>;
|
|
20
|
-
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
21
|
-
/**
|
|
22
|
-
* TODO
|
|
23
|
-
*/
|
|
24
|
-
addRevision(newRevision: Revision): void;
|
|
25
|
-
/**
|
|
26
|
-
* TODO
|
|
27
|
-
*/
|
|
28
|
-
removeRevision(revision: Revision): void;
|
|
29
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import RevisionView from '../revision/revisionview';
|
|
11
|
+
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
12
|
+
import type { RevisionAction } from './revisionssidebar';
|
|
13
|
+
import type Revision from '../../revision';
|
|
14
|
+
/**
|
|
15
|
+
* TODO
|
|
16
|
+
*/
|
|
17
|
+
export default class RevisionsSidebarTimePeriodView extends View {
|
|
18
|
+
startDate: Date;
|
|
19
|
+
revisionViews: ViewCollection<RevisionView>;
|
|
20
|
+
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
21
|
+
/**
|
|
22
|
+
* TODO
|
|
23
|
+
*/
|
|
24
|
+
addRevision(newRevision: Revision): void;
|
|
25
|
+
/**
|
|
26
|
+
* TODO
|
|
27
|
+
*/
|
|
28
|
+
removeRevision(revision: Revision): void;
|
|
29
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c60=['startDate','delegate','add','localizedPeriodName','revisionViews','remove','setName','span','removeRevision','_revisionActions','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period','div','locale','select'];(function(_0x25ff81,_0x5c6035){const _0x2cb342=function(_0x3f1f9a){while(--_0x3f1f9a){_0x25ff81['push'](_0x25ff81['shift']());}};_0x2cb342(++_0x5c6035);}(_0x5c60,0x103));const _0x2cb3=function(_0x25ff81,_0x5c6035){_0x25ff81=_0x25ff81-0x0;let _0x2cb342=_0x5c60[_0x25ff81];return _0x2cb342;};import{View as _0x3501fb}from'ckeditor5/src/ui';import _0x3b4170 from'../revision/revisionview';import{getDateTimePeriodInfo as _0xaaf96b}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x3501fb{constructor(_0x54095c,_0x1a32b5,_0x4d650b){super(_0x54095c);const _0xa579a6=_0xaaf96b(_0x1a32b5,this[_0x2cb3('0x9')]['uiLanguage'])[_0x2cb3('0xe')];this[_0x2cb3('0xb')]=_0x1a32b5,this['revisionViews']=this['createCollection'](),this[_0x2cb3('0x5')]=_0x4d650b,this['revisionViews'][_0x2cb3('0xc')](_0x2cb3('0xa'))['to'](this),this[_0x2cb3('0x0')][_0x2cb3('0xc')](_0x2cb3('0x2'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x2cb3('0x7')]},'children':[{'tag':_0x2cb3('0x3'),'attributes':{'class':['ck',_0x2cb3('0x6')]},'children':[{'text':_0xa579a6}]},{'tag':_0x2cb3('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x2cb3('0x0')]}]});}['addRevision'](_0x21fc39){const _0x500054=new _0x3b4170(this['locale'],_0x21fc39,this[_0x2cb3('0x5')]);this['revisionViews'][_0x2cb3('0xd')](_0x500054);}[_0x2cb3('0x4')](_0x4aa8bb){const _0x4a9d07=this[_0x2cb3('0x0')]['find'](_0x535ab3=>_0x535ab3['id']===_0x4aa8bb['id']);this[_0x2cb3('0x0')][_0x2cb3('0x1')](_0x4a9d07);}}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
7
|
-
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
11
|
-
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
12
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
13
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
14
|
-
import type Revision from '../../revision';
|
|
15
|
-
/**
|
|
16
|
-
* TODO
|
|
17
|
-
*/
|
|
18
|
-
export default class RevisionsSidebarView extends View {
|
|
19
|
-
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
20
|
-
/**
|
|
21
|
-
* @observable
|
|
22
|
-
*/
|
|
23
|
-
isEnabled: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
render(): void;
|
|
32
|
-
/**
|
|
33
|
-
* TODO
|
|
34
|
-
*/
|
|
35
|
-
get revisionViews(): Array<RevisionView>;
|
|
36
|
-
/**
|
|
37
|
-
* TODO
|
|
38
|
-
*/
|
|
39
|
-
selectRevision(revisionToSelect: Revision | null): void;
|
|
40
|
-
/**
|
|
41
|
-
* TODO
|
|
42
|
-
*/
|
|
43
|
-
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
44
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
10
|
+
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
11
|
+
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
12
|
+
import type { default as RevisionView } from '../revision/revisionview';
|
|
13
|
+
import type { RevisionAction } from './revisionssidebar';
|
|
14
|
+
import type Revision from '../../revision';
|
|
15
|
+
/**
|
|
16
|
+
* TODO
|
|
17
|
+
*/
|
|
18
|
+
export default class RevisionsSidebarView extends View {
|
|
19
|
+
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
20
|
+
/**
|
|
21
|
+
* @observable
|
|
22
|
+
*/
|
|
23
|
+
isEnabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
render(): void;
|
|
32
|
+
/**
|
|
33
|
+
* TODO
|
|
34
|
+
*/
|
|
35
|
+
get revisionViews(): Array<RevisionView>;
|
|
36
|
+
/**
|
|
37
|
+
* TODO
|
|
38
|
+
*/
|
|
39
|
+
selectRevision(revisionToSelect: Revision | null): void;
|
|
40
|
+
/**
|
|
41
|
+
* TODO
|
|
42
|
+
*/
|
|
43
|
+
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
44
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18a3=['ck-revision-history-sidebar','bindTemplate','_getTimePeriodViewByStartDate','ck-revision-history-sidebar__timeline','flat','revisionSetName','createdAt','ck-rounded-corners','revisionViews','removeRevision','isEnabled','add','some','startDate','setTemplate','unhighlight','locale','setName','timePeriodViews','delegate','highlight','_addRevision','highlightRevisions','getTime','get','set','revisionSelected','div','createCollection','map','fire','_revisionActions','uiLanguage','_revisions','find','_removeRevision','select'];(function(_0x3310bc,_0x18a3ee){const _0x30b295=function(_0x1ab485){while(--_0x1ab485){_0x3310bc['push'](_0x3310bc['shift']());}};_0x30b295(++_0x18a3ee);}(_0x18a3,0x13a));const _0x30b2=function(_0x3310bc,_0x18a3ee){_0x3310bc=_0x3310bc-0x0;let _0x30b295=_0x18a3[_0x3310bc];return _0x30b295;};import{View as _0x18331c}from'ckeditor5/src/ui';import _0x11b7c1 from'./revisionssidebartimeperiodview';import _0x18efae from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x201dd9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x18331c{constructor(_0x8134a6,_0x47d4bd,_0x55a586){super(_0x8134a6);const _0x1d0bda=this[_0x30b2('0x14')];this[_0x30b2('0x0')]=this[_0x30b2('0xa')](),this[_0x30b2('0x0')]['delegate'](_0x30b2('0x12'))['to'](this),this[_0x30b2('0x0')][_0x30b2('0x1')](_0x30b2('0x24'))['to'](this),this[_0x30b2('0xf')]=_0x47d4bd,this[_0x30b2('0xd')]=_0x55a586,this['on'](_0x30b2('0x12'),(_0x200504,_0x3b683e)=>{this['fire'](_0x30b2('0x8'),_0x3b683e);}),this['on'](_0x30b2('0x24'),(_0x2a3fcd,_0x3e80e6)=>{this[_0x30b2('0xc')](_0x30b2('0x18'),_0x3e80e6);}),this[_0x30b2('0x7')](_0x30b2('0x1d'),!0x1),this[_0x30b2('0x21')]({'tag':_0x30b2('0x9'),'attributes':{'class':['ck','ck-reset',_0x30b2('0x1a'),_0x30b2('0x13')]},'children':[new _0x18efae(_0x8134a6),{'tag':_0x30b2('0x9'),'attributes':{'class':['ck',_0x30b2('0x16'),_0x1d0bda['if'](_0x30b2('0x1d'),'ck-disabled',_0x114a30=>!_0x114a30)]},'children':this[_0x30b2('0x0')]}]});}['render'](){super['render']();for(const _0x382fe0 of this['_revisions'])this[_0x30b2('0x3')](_0x382fe0);this[_0x30b2('0xf')]['on'](_0x30b2('0x1e'),(_0x4dbfa6,_0xad92c6)=>{this['_addRevision'](_0xad92c6);}),this[_0x30b2('0xf')]['on']('remove',(_0x35294c,_0x45736b)=>{this[_0x30b2('0x11')](_0x45736b);});}get['revisionViews'](){return this['timePeriodViews'][_0x30b2('0xb')](_0x1d13f7=>_0x1d13f7[_0x30b2('0x1b')]['map'](_0x26d304=>_0x26d304))[_0x30b2('0x17')]();}['selectRevision'](_0x20bf2a){for(const _0x1801b3 of this['revisionViews'])_0x20bf2a&&_0x20bf2a['id']===_0x1801b3['id']?_0x1801b3[_0x30b2('0x12')]():_0x1801b3['deselect']();}[_0x30b2('0x4')](_0x22be82){for(const _0x2b38f5 of this['revisionViews'])_0x22be82[_0x30b2('0x1f')](({id:_0x3e0177})=>_0x3e0177===_0x2b38f5['id'])?_0x2b38f5[_0x30b2('0x2')]():_0x2b38f5[_0x30b2('0x22')]();}[_0x30b2('0x3')](_0x1465e8){const _0x53b616=_0x201dd9(_0x1465e8[_0x30b2('0x19')],this[_0x30b2('0x23')][_0x30b2('0xe')])[_0x30b2('0x20')];let _0x12d690=this[_0x30b2('0x0')][_0x30b2('0x6')](0x0);_0x12d690&&_0x12d690['startDate']['getTime']()===_0x53b616['getTime']()||(_0x12d690=new _0x11b7c1(this[_0x30b2('0x23')],_0x53b616,this[_0x30b2('0xd')]),this['timePeriodViews'][_0x30b2('0x1e')](_0x12d690)),_0x12d690['addRevision'](_0x1465e8);}[_0x30b2('0x11')](_0x4bd2cb){const _0x1b27af=_0x201dd9(_0x4bd2cb['createdAt'],this[_0x30b2('0x23')][_0x30b2('0xe')])[_0x30b2('0x20')];this['_getTimePeriodViewByStartDate'](_0x1b27af)[_0x30b2('0x1c')](_0x4bd2cb);}[_0x30b2('0x15')](_0x342c69){return this[_0x30b2('0x0')][_0x30b2('0x10')](_0xce2b0b=>_0xce2b0b[_0x30b2('0x20')][_0x30b2('0x5')]()===_0x342c69[_0x30b2('0x5')]());}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
6
|
-
export interface DateTimePeriod {
|
|
7
|
-
startDate: Date;
|
|
8
|
-
localizedPeriodName: string;
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
6
|
+
export interface DateTimePeriod {
|
|
7
|
+
startDate: Date;
|
|
8
|
+
localizedPeriodName: string;
|
|
9
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24d6=['month','day','fromJSDate','year','toJSDate','week','weekdayLong','setLocale','startOf','toRelativeCalendar','local','monthLong','hasSame'];(function(_0xf2d385,_0x24d66d){const _0x4d689e=function(_0x2b09bf){while(--_0x2b09bf){_0xf2d385['push'](_0xf2d385['shift']());}};_0x4d689e(++_0x24d66d);}(_0x24d6,0xa3));const _0x4d68=function(_0xf2d385,_0x24d66d){_0xf2d385=_0xf2d385-0x0;let _0x4d689e=_0x24d6[_0xf2d385];return _0x4d689e;};import{DateTime as _0x16ba49}from'luxon';export function getDateTimePeriodInfo(_0x5d7ec0,_0x2cc425){const _0xffdb4b=_0x16ba49[_0x4d68('0x8')](_0x5d7ec0)[_0x4d68('0x0')](_0x2cc425),_0x238905=_0x16ba49[_0x4d68('0x3')](),_0x54815e=_0x238905['minus']({'days':0x1})['startOf'](_0x4d68('0x7'));let _0x27fcc5,_0x2f30b2;return _0xffdb4b['hasSame'](_0x238905,_0x4d68('0x7'))?(_0x27fcc5=_0xffdb4b['startOf'](_0x4d68('0x7'))[_0x4d68('0xa')](),_0x2f30b2=_0xffdb4b['toRelativeCalendar']()):_0xffdb4b[_0x4d68('0x5')](_0x54815e,'day')?(_0x27fcc5=_0x54815e['toJSDate'](),_0x2f30b2=_0xffdb4b[_0x4d68('0x2')]()):_0xffdb4b[_0x4d68('0x5')](_0x238905,_0x4d68('0xb'))?(_0x27fcc5=_0xffdb4b[_0x4d68('0x1')](_0x4d68('0xb'))[_0x4d68('0xa')](),_0x2f30b2=_0xffdb4b[_0x4d68('0xc')]||''):_0xffdb4b[_0x4d68('0x5')](_0x238905,_0x4d68('0x9'))?(_0x27fcc5=_0xffdb4b['startOf'](_0x4d68('0x6'))[_0x4d68('0xa')](),_0x2f30b2=_0xffdb4b[_0x4d68('0x4')]||''):(_0x27fcc5=_0xffdb4b[_0x4d68('0x1')](_0x4d68('0x9'))['toJSDate'](),_0x2f30b2=String(_0xffdb4b['year'])),{'startDate':_0x27fcc5,'localizedPeriodName':_0x2f30b2};}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
7
|
-
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type ChangeItem from '../../changeitem';
|
|
11
|
-
export default class ChangeDetailsView extends View {
|
|
12
|
-
changeId: string;
|
|
13
|
-
/**
|
|
14
|
-
* @observable
|
|
15
|
-
*/
|
|
16
|
-
type: string;
|
|
17
|
-
constructor(locale: Locale, model: ChangeItem);
|
|
18
|
-
/**
|
|
19
|
-
* Focuses the view.
|
|
20
|
-
*/
|
|
21
|
-
focus(): void;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
7
|
+
*/
|
|
8
|
+
import { View } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type ChangeItem from '../../changeitem';
|
|
11
|
+
export default class ChangeDetailsView extends View {
|
|
12
|
+
changeId: string;
|
|
13
|
+
/**
|
|
14
|
+
* @observable
|
|
15
|
+
*/
|
|
16
|
+
type: string;
|
|
17
|
+
constructor(locale: Locale, model: ChangeItem);
|
|
18
|
+
/**
|
|
19
|
+
* Focuses the view.
|
|
20
|
+
*/
|
|
21
|
+
focus(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18d0=['ck-annotation','bindTemplate','type','ck-revision-change__','element','Removed\x20by','ck-revision-change','_model','Suggested\x20by','div','setTemplate','set','author','name','focus','changeId','data','isSuggestion','span','ck-revision-change__label','add'];(function(_0xc47348,_0x18d098){const _0x38374f=function(_0x35dff1){while(--_0x35dff1){_0xc47348['push'](_0xc47348['shift']());}};_0x38374f(++_0x18d098);}(_0x18d0,0x97));const _0x3837=function(_0xc47348,_0x18d098){_0xc47348=_0xc47348-0x0;let _0x38374f=_0x18d0[_0xc47348];return _0x38374f;};import{View as _0x4c2460}from'ckeditor5/src/ui';import{getTranslation as _0x3ef950}from'../../utils/common-translations';export default class Z extends _0x4c2460{constructor(_0x1aad86,_0x3b9262){super(_0x1aad86),this[_0x3837('0x3')]=_0x3b9262,this[_0x3837('0xb')]=_0x3b9262['id'];const _0xbfed2e=this[_0x3837('0x12')],_0xd4dcb2=_0x3ef950(_0x1aad86,_0x3b9262[_0x3837('0xc')][_0x3837('0xd')]?_0x3837('0x4'):_0x3837('0x10')==_0x3b9262[_0x3837('0x13')]?'Added\x20by':_0x3837('0x1'));this[_0x3837('0x7')](_0x3837('0x13'),_0x3b9262[_0x3837('0x13')]),this[_0x3837('0x6')]({'tag':_0x3837('0x5'),'attributes':{'class':[_0x3837('0x11'),_0x3837('0x2'),_0xbfed2e['to'](_0x3837('0x13'),_0x5c194f=>_0x3837('0x14')+_0x5c194f)],'tabindex':-0x1},'children':[{'tag':_0x3837('0xe'),'children':[{'tag':_0x3837('0xe'),'attributes':{'class':[_0x3837('0xf')]},'children':[{'text':_0xd4dcb2}]},{'text':'\x20'+_0x3b9262[_0x3837('0x8')][_0x3837('0x9')]}]}]});}[_0x3837('0xa')](){this[_0x3837('0x0')]['focus']();}}
|