@ckeditor/ckeditor5-revision-history 40.0.0 → 40.2.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/README.md +11 -11
- 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 _0x4a7c=['revisionHistory','isReadOnly','showRevisionViewerCallback','config','plugins','add','change:isOpen','panelView','Revision\x20history','children','length','isEnabled','init','componentFactory','set','isOpen','execute','editor','render','get','items','saveButtonView','submit','focus','reset','cancel','view','Save\x20current\x20revision','editing','bind','revisionName','isReady','Open\x20revision\x20history','remove','history'];(function(_0x38ceb1,_0x4a7c22){const _0x649d11=function(_0x3d8630){while(--_0x3d8630){_0x38ceb1['push'](_0x38ceb1['shift']());}};_0x649d11(++_0x4a7c22);}(_0x4a7c,0x152));const _0x649d=function(_0x38ceb1,_0x4a7c22){_0x38ceb1=_0x38ceb1-0x0;let _0x649d11=_0x4a7c[_0x38ceb1];return _0x649d11;};import{Plugin as _0x5e13df,icons as _0x3306f2}from'ckeditor5/src/core';import{ListView as _0x5290fa,ListItemView as _0x1ec77c,ButtonView as _0x24ed31,createDropdown as _0x3910d0}from'ckeditor5/src/ui';import _0x391d88 from'../../revisiontracker';import _0x17dcd7 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x563d13}from'../../utils/common-translations';export default class u extends _0x5e13df{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x391d88];}[_0x649d('0x18')](){const _0x57169c=this[_0x649d('0x1d')],_0x598692=_0x57169c[_0x649d('0x10')][_0x649d('0x1f')]('RevisionTracker');_0x57169c['ui'][_0x649d('0x19')][_0x649d('0x11')](_0x649d('0xc'),_0x30167c=>{const _0x302840=_0x3910d0(_0x30167c),_0x2acc5c=_0x302840[_0x649d('0x13')][_0x649d('0x15')],_0x45f6ce=new _0x5290fa(_0x30167c),_0x23ea27=new _0x1ec77c(_0x30167c),_0x3a959f=new _0x24ed31(_0x30167c),_0x10d212=new _0x1ec77c(_0x30167c),_0x279aa0=new _0x24ed31(_0x30167c),_0x5a9b5a=new _0x17dcd7(_0x30167c);function _0x2944d1(){_0x2acc5c[_0x649d('0x16')]&&_0x2acc5c[_0x649d('0xa')](0x0),_0x2acc5c[_0x649d('0x11')](_0x45f6ce);}function _0x5efc8b(){_0x302840[_0x649d('0x1b')]=!0x1,_0x57169c[_0x649d('0x5')][_0x649d('0x3')][_0x649d('0x0')]();}return _0x302840[_0x649d('0x6')](_0x649d('0x17'))['to'](_0x598692,_0x649d('0x8'),_0x598692,_0x649d('0x17'),_0x57169c,'isReadOnly',(_0x24368d,_0x1bf8fc,_0x1e57d8)=>_0x24368d&&_0x1bf8fc&&!_0x1e57d8),_0x302840['buttonView']['set']({'icon':_0x3306f2[_0x649d('0xb')],'label':_0x563d13(_0x30167c,_0x649d('0x14')),'tooltip':!0x0}),_0x3a959f[_0x649d('0x1a')]({'label':_0x563d13(_0x30167c,_0x649d('0x4')),'withText':!0x0}),_0x3a959f[_0x649d('0x6')](_0x649d('0x17'))['to'](_0x598692,_0x649d('0x8'),_0x598692,'isEnabled',_0x57169c,_0x649d('0xd'),(_0x11228c,_0x3206a4,_0x1e8ecf)=>_0x11228c&&_0x3206a4&&!_0x1e8ecf),_0x3a959f['on'](_0x649d('0x1c'),()=>function(){_0x2acc5c[_0x649d('0x16')]&&_0x2acc5c[_0x649d('0xa')](0x0),(_0x5a9b5a[_0x649d('0x1')](),_0x2acc5c[_0x649d('0x11')](_0x5a9b5a),_0x5a9b5a[_0x649d('0x0')]());}()),_0x279aa0[_0x649d('0x1a')]({'label':_0x563d13(_0x30167c,_0x649d('0x9')),'withText':!0x0}),_0x279aa0[_0x649d('0x6')](_0x649d('0x17'))['to'](_0x598692,_0x649d('0x8'),_0x57169c,_0x649d('0xd'),(_0x1d8de1,_0x3cd30d)=>_0x1d8de1&&!_0x3cd30d),_0x279aa0['on'](_0x649d('0x1c'),()=>{_0x57169c[_0x649d('0xf')][_0x649d('0x1f')]('revisionHistory')[_0x649d('0xe')](),_0x5efc8b();}),_0x23ea27['children'][_0x649d('0x11')](_0x3a959f),_0x10d212[_0x649d('0x15')]['add'](_0x279aa0),_0x45f6ce[_0x649d('0x20')]['addMany']([_0x23ea27,_0x10d212]),_0x302840['on'](_0x649d('0x12'),()=>_0x2944d1()),_0x5a9b5a[_0x649d('0x21')][_0x649d('0x6')](_0x649d('0x17'))['to'](_0x598692,_0x649d('0x8'),_0x598692,'isEnabled',_0x57169c,'isReadOnly',(_0x370472,_0x463c8e,_0x18c8a1)=>_0x370472&&_0x463c8e&&!_0x18c8a1),_0x5a9b5a['on'](_0x649d('0x22'),()=>(_0x57169c[_0x649d('0x10')][_0x649d('0x1f')](_0x391d88)['saveRevision']({'name':_0x5a9b5a[_0x649d('0x7')]}),void _0x5efc8b())),_0x5a9b5a['on'](_0x649d('0x2'),()=>_0x2944d1()),_0x5a9b5a[_0x649d('0x1e')](),_0x2944d1(),_0x302840;});}}
|
|
@@ -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 _0x34ab=['compareAgainstSelected','_handleEditorDataReady','ready','length','getRevisionsInDiff','Name\x20this\x20revision','map','revisionHistory.viewerSidebarContainer','_handleRevisionSelected','listenTo','editor','restoreRevisionCallback','get','requires','action','plugins','getLaterVisibleRevision','highlightRevisions','getEarlierVisibleRevision','name','_revisionsRepository','diff','data','isReady','getRevision','render','destroy','_handleRevisionSetName','bind','config','element','timePeriodViews','repository','isSelected','_createRevisionActions','_sidebarView','_revisionViewer','getIndex','nameRevision','pluginName','isVisible','Restore\x20this\x20revision','assign','compare','add','init','defaultRevisionActions','_handleDiffChange','availableRevisionActions','revisionSetName','_revisions','isEnabled','revisionHistory'];(function(_0x3cd0b9,_0x34ab38){const _0xcd11d0=function(_0x5163f6){while(--_0x5163f6){_0x3cd0b9['push'](_0x3cd0b9['shift']());}};_0xcd11d0(++_0x34ab38);}(_0x34ab,0x163));const _0xcd11=function(_0x3cd0b9,_0x34ab38){_0x3cd0b9=_0x3cd0b9-0x0;let _0xcd11d0=_0x34ab[_0x3cd0b9];return _0xcd11d0;};import{Plugin as _0x27ecd2}from'ckeditor5/src/core';import _0x5b955f from'./revisionssidebarview';import _0x49a3e7 from'../../revisionviewer';export default class w extends _0x27ecd2{static get[_0xcd11('0x2')](){return'RevisionsSidebar';}static get[_0xcd11('0x1d')](){return[_0x49a3e7];}constructor(_0x2f33ab){super(_0x2f33ab),this[_0xcd11('0x34')]=_0x2f33ab[_0xcd11('0x1f')][_0xcd11('0x1c')](_0x49a3e7),this[_0xcd11('0x24')]=this[_0xcd11('0x34')]['repository'],this['_sidebarView']=null;}[_0xcd11('0x8')](){const _0x29568e=this[_0xcd11('0x24')][_0xcd11('0xd')],_0x24f2be=this[_0xcd11('0x32')](),_0x206bc3=this['editor']['config']['get'](_0xcd11('0x17'));this['_sidebarView']=new _0x5b955f(this[_0xcd11('0x1a')]['locale'],_0x29568e,_0x24f2be),this[_0xcd11('0x33')]['on']('revisionSelected',this['_handleRevisionSelected'][_0xcd11('0x2c')](this)),this['_sidebarView']['on'](_0xcd11('0xc'),this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind'](_0xcd11('0xe'))['to'](this['_revisionViewer']),this[_0xcd11('0x33')][_0xcd11('0x2f')]['on']('add',(_0x546988,_0x45edfc)=>{_0x45edfc['revisionViews']['on'](_0xcd11('0x7'),(_0x40da78,_0x3f8a01)=>{_0x3f8a01[_0xcd11('0x2c')]('isEnabled',_0xcd11('0x27'))['to'](this[_0xcd11('0x34')]);});}),this[_0xcd11('0x33')][_0xcd11('0x29')](),this[_0xcd11('0x19')](this[_0xcd11('0x1a')][_0xcd11('0x26')],_0xcd11('0x12'),this[_0xcd11('0x11')][_0xcd11('0x2c')](this)),this[_0xcd11('0x19')](this['_revisionViewer'],'change:diff',this[_0xcd11('0xa')]['bind'](this)),_0x206bc3['appendChild'](this[_0xcd11('0x33')]['element']);}[_0xcd11('0x2a')](){this[_0xcd11('0x33')][_0xcd11('0x2e')]['remove'](),this[_0xcd11('0x33')][_0xcd11('0x2a')]();}['_handleEditorDataReady'](){const _0x18113d=this[_0xcd11('0x24')][_0xcd11('0x28')](0x0);if(_0x18113d){const _0x5cd10a=this[_0xcd11('0x24')][_0xcd11('0x22')](_0x18113d['id']);this[_0xcd11('0x34')][_0xcd11('0x6')](_0x18113d,_0x5cd10a);}}[_0xcd11('0x18')](_0x295bbd,_0x258e2e){const _0x20fc15=this['_revisionsRepository'][_0xcd11('0x28')](_0x258e2e['id']),_0xba0aaf=this[_0xcd11('0x24')][_0xcd11('0x22')](_0x20fc15['id']);this['_revisionViewer'][_0xcd11('0x6')](_0x20fc15,_0xba0aaf);}[_0xcd11('0x2b')](_0x2f7ef6,_0x5095a4){this['_revisionsRepository']['getRevision'](_0x5095a4['id'])['setName'](_0x5095a4[_0xcd11('0x23')]);}[_0xcd11('0xa')](_0x2e9001,_0x532098,_0x2e6dc6){const _0x5ed797=this['_revisionsRepository'][_0xcd11('0x14')](_0x2e6dc6);_0x5ed797[_0xcd11('0x13')]>0x2?(this[_0xcd11('0x33')][_0xcd11('0x21')](_0x5ed797),this[_0xcd11('0x33')]['selectRevision'](null)):(this[_0xcd11('0x33')][_0xcd11('0x21')]([]),this[_0xcd11('0x33')]['selectRevision'](_0x5ed797[0x0]));}[_0xcd11('0x32')](){const _0x1e8054=this[_0xcd11('0x1a')],_0x3edd66=w[_0xcd11('0xb')],_0x5f4b2d=_0x1e8054[_0xcd11('0x2d')]['get']('revisionHistory.revisionActions')||w[_0xcd11('0x9')];if(_0x5f4b2d[_0xcd11('0x13')])return _0x5f4b2d[_0xcd11('0x16')](_0x1e9cb6=>{const _0x581059='string'==typeof _0x1e9cb6?Object[_0xcd11('0x5')]({},_0x3edd66[_0x1e9cb6]):_0x1e9cb6;return _0x581059[_0xcd11('0x1e')]=_0x581059[_0xcd11('0x1e')][_0xcd11('0x2c')](this,_0x1e8054),_0x581059[_0xcd11('0x3')]&&(_0x581059[_0xcd11('0x3')]=_0x581059[_0xcd11('0x3')][_0xcd11('0x2c')](this,_0x1e8054)),_0x581059;});}}w[_0xcd11('0xb')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x15cf76},_0x7a2143)=>{const _0x4e1341=_0x15cf76[_0xcd11('0x1c')](_0x49a3e7),_0x456a16=_0x4e1341[_0xcd11('0x30')];let _0x4b3c79=_0x4e1341[_0xcd11('0x25')]['newRevisionId'],_0x3a6008=_0x7a2143['id'];_0x456a16[_0xcd11('0x0')](_0x4b3c79)>_0x456a16[_0xcd11('0x0')](_0x3a6008)&&([_0x4b3c79,_0x3a6008]=[_0x3a6008,_0x4b3c79]),_0x4e1341[_0xcd11('0x6')](_0x4b3c79,_0x3a6008);},'isVisible':({plugins:_0x528d92},_0x1a0edc)=>{const _0x25e0f3=_0x528d92['get'](_0x49a3e7);return!(_0x25e0f3[_0xcd11('0x30')][_0xcd11('0x14')](_0x25e0f3[_0xcd11('0x25')])[_0xcd11('0x13')]>0x2)&&!_0x1a0edc[_0xcd11('0x31')];}},'restoreRevision':{'name':_0xcd11('0x4'),'action':(_0x48389a,{id:_0x433b20})=>{_0x48389a[_0xcd11('0x2d')]['get'](_0xcd11('0xf'))[_0xcd11('0x1b')](_0x433b20);},'isVisible':({plugins:_0x12f053},_0x4b5fdf)=>!!_0x12f053[_0xcd11('0x1c')](_0x49a3e7)[_0xcd11('0x30')][_0xcd11('0x20')](_0x4b5fdf['id'])},'nameRevision':{'name':_0xcd11('0x15'),'action':({plugins:_0x352e6c},{id:_0x2b977f,revisionNameView:_0x40fe8b})=>{const _0x3acb98=_0x352e6c[_0xcd11('0x1c')](_0x49a3e7),_0x5d310a=_0x3acb98[_0xcd11('0x30')][_0xcd11('0x22')](_0x2b977f);_0x3acb98[_0xcd11('0x6')](_0x2b977f,_0x5d310a),_0x40fe8b['focus'](),_0x40fe8b['fieldView']['select']();}}},w[_0xcd11('0x9')]=[_0xcd11('0x10'),'restoreRevision',_0xcd11('0x1')];
|
|
@@ -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 _0x3ff9=['ck-revision-history-sidebar__header__label','Revision\x20history','ck-reset_all','span','history','setTemplate','div','content'];(function(_0x341c39,_0x3ff90d){const _0xa22ccb=function(_0x39fb63){while(--_0x39fb63){_0x341c39['push'](_0x341c39['shift']());}};_0xa22ccb(++_0x3ff90d);}(_0x3ff9,0x13f));const _0xa22c=function(_0x341c39,_0x3ff90d){_0x341c39=_0x341c39-0x0;let _0xa22ccb=_0x3ff9[_0x341c39];return _0xa22ccb;};import{View as _0x2aa78d,IconView as _0x413a4c}from'ckeditor5/src/ui';import{getTranslation as _0x2effae}from'../../utils/common-translations';import{icons as _0x268658}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x2aa78d{constructor(_0x5dcb37){super(_0x5dcb37);const _0x29bc0c=new _0x413a4c();_0x29bc0c[_0xa22c('0x0')]=_0x268658[_0xa22c('0x5')],this[_0xa22c('0x6')]({'tag':_0xa22c('0x7'),'attributes':{'class':['ck',_0xa22c('0x3'),'ck-revision-history-sidebar__header']},'children':[_0x29bc0c,{'tag':_0xa22c('0x4'),'attributes':{'class':['ck',_0xa22c('0x1')]},'children':[_0x2effae(_0x5dcb37,_0xa22c('0x2'))]}]});}}
|
|
@@ -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 _0x4aea=['delegate','select','_revisionActions','addRevision','removeRevision','remove','setName','locale','add','revisionViews','span','ck-revision-history-sidebar__time-period__revisions','find','createCollection','ck-revision-history-sidebar__time-period__label','div','localizedPeriodName','setTemplate'];(function(_0x616aa0,_0x4aea35){const _0x1e2966=function(_0x594bcb){while(--_0x594bcb){_0x616aa0['push'](_0x616aa0['shift']());}};_0x1e2966(++_0x4aea35);}(_0x4aea,0x7d));const _0x1e29=function(_0x616aa0,_0x4aea35){_0x616aa0=_0x616aa0-0x0;let _0x1e2966=_0x4aea[_0x616aa0];return _0x1e2966;};import{View as _0x5e1f04}from'ckeditor5/src/ui';import _0x71ff72 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x379398}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x5e1f04{constructor(_0x3d48bc,_0x3dd204,_0x31865b){super(_0x3d48bc);const _0x35d251=_0x379398(_0x3dd204,this['locale']['uiLanguage'])[_0x1e29('0x11')];this['startDate']=_0x3dd204,this[_0x1e29('0xa')]=this[_0x1e29('0xe')](),this[_0x1e29('0x3')]=_0x31865b,this[_0x1e29('0xa')]['delegate'](_0x1e29('0x2'))['to'](this),this[_0x1e29('0xa')][_0x1e29('0x1')](_0x1e29('0x7'))['to'](this),this[_0x1e29('0x0')]({'tag':_0x1e29('0x10'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1e29('0xb'),'attributes':{'class':['ck',_0x1e29('0xf')]},'children':[{'text':_0x35d251}]},{'tag':_0x1e29('0x10'),'attributes':{'class':['ck',_0x1e29('0xc')]},'children':this[_0x1e29('0xa')]}]});}[_0x1e29('0x4')](_0x573b2e){const _0x8beeb9=new _0x71ff72(this[_0x1e29('0x8')],_0x573b2e,this[_0x1e29('0x3')]);this['revisionViews'][_0x1e29('0x9')](_0x8beeb9);}[_0x1e29('0x5')](_0x5e0196){const _0x2d93c1=this['revisionViews'][_0x1e29('0xd')](_0x2362a8=>_0x2362a8['id']===_0x5e0196['id']);this['revisionViews'][_0x1e29('0x6')](_0x2d93c1);}}
|
|
@@ -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 _0x3814=['unhighlight','fire','ck-rounded-corners','select','highlightRevisions','_revisions','_addRevision','_removeRevision','some','ck-disabled','uiLanguage','highlight','bindTemplate','ck-revision-history-sidebar','timePeriodViews','selectRevision','render','map','setName','ck-reset','delegate','startDate','add','locale','createdAt','remove','revisionViews','revisionSelected','ck-revision-history-sidebar__timeline','div','find','getTime','removeRevision','flat','deselect','_revisionActions','isEnabled','revisionSetName','_getTimePeriodViewByStartDate','get'];(function(_0x2a8548,_0x381482){const _0x34a2b0=function(_0x171c35){while(--_0x171c35){_0x2a8548['push'](_0x2a8548['shift']());}};_0x34a2b0(++_0x381482);}(_0x3814,0x116));const _0x34a2=function(_0x2a8548,_0x381482){_0x2a8548=_0x2a8548-0x0;let _0x34a2b0=_0x3814[_0x2a8548];return _0x34a2b0;};import{View as _0x1302dd}from'ckeditor5/src/ui';import _0x1d8532 from'./revisionssidebartimeperiodview';import _0x2ada08 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x65e9b0}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1302dd{constructor(_0x3d6472,_0x4ad00f,_0x3f9119){super(_0x3d6472);const _0xc4ec16=this[_0x34a2('0xe')];this[_0x34a2('0x10')]=this['createCollection'](),this['timePeriodViews'][_0x34a2('0x16')](_0x34a2('0x5'))['to'](this),this['timePeriodViews'][_0x34a2('0x16')](_0x34a2('0x14'))['to'](this),this['_revisions']=_0x4ad00f,this[_0x34a2('0x25')]=_0x3f9119,this['on'](_0x34a2('0x5'),(_0x95ee42,_0x3a56ad)=>{this[_0x34a2('0x3')](_0x34a2('0x1d'),_0x3a56ad);}),this['on'](_0x34a2('0x14'),(_0x41d79c,_0x341ee1)=>{this['fire'](_0x34a2('0x27'),_0x341ee1);}),this['set'](_0x34a2('0x26'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x34a2('0x15'),_0x34a2('0x4'),_0x34a2('0xf')]},'children':[new _0x2ada08(_0x3d6472),{'tag':_0x34a2('0x1f'),'attributes':{'class':['ck',_0x34a2('0x1e'),_0xc4ec16['if'](_0x34a2('0x26'),_0x34a2('0xb'),_0x3dd8b3=>!_0x3dd8b3)]},'children':this[_0x34a2('0x10')]}]});}[_0x34a2('0x12')](){super['render']();for(const _0x466167 of this['_revisions'])this['_addRevision'](_0x466167);this[_0x34a2('0x7')]['on'](_0x34a2('0x18'),(_0x51bc8b,_0x357c12)=>{this[_0x34a2('0x8')](_0x357c12);}),this[_0x34a2('0x7')]['on'](_0x34a2('0x1b'),(_0x3137c1,_0x5807aa)=>{this[_0x34a2('0x9')](_0x5807aa);});}get[_0x34a2('0x1c')](){return this[_0x34a2('0x10')][_0x34a2('0x13')](_0x47c97e=>_0x47c97e[_0x34a2('0x1c')][_0x34a2('0x13')](_0x12440d=>_0x12440d))[_0x34a2('0x23')]();}[_0x34a2('0x11')](_0x3a130c){for(const _0x30fc52 of this[_0x34a2('0x1c')])_0x3a130c&&_0x3a130c['id']===_0x30fc52['id']?_0x30fc52['select']():_0x30fc52[_0x34a2('0x24')]();}[_0x34a2('0x6')](_0x3cdbda){for(const _0xf37a91 of this[_0x34a2('0x1c')])_0x3cdbda[_0x34a2('0xa')](({id:_0x491b1f})=>_0x491b1f===_0xf37a91['id'])?_0xf37a91[_0x34a2('0xd')]():_0xf37a91[_0x34a2('0x2')]();}[_0x34a2('0x8')](_0x3615e2){const _0x2939a5=_0x65e9b0(_0x3615e2['createdAt'],this[_0x34a2('0x19')]['uiLanguage'])[_0x34a2('0x17')];let _0x66d98=this['timePeriodViews'][_0x34a2('0x1')](0x0);_0x66d98&&_0x66d98[_0x34a2('0x17')][_0x34a2('0x21')]()===_0x2939a5[_0x34a2('0x21')]()||(_0x66d98=new _0x1d8532(this[_0x34a2('0x19')],_0x2939a5,this['_revisionActions']),this[_0x34a2('0x10')]['add'](_0x66d98)),_0x66d98['addRevision'](_0x3615e2);}['_removeRevision'](_0xcb1765){const _0x511346=_0x65e9b0(_0xcb1765[_0x34a2('0x1a')],this['locale'][_0x34a2('0xc')])['startDate'];this[_0x34a2('0x0')](_0x511346)[_0x34a2('0x22')](_0xcb1765);}[_0x34a2('0x0')](_0x2afeef){return this[_0x34a2('0x10')][_0x34a2('0x20')](_0x2f8293=>_0x2f8293[_0x34a2('0x17')]['getTime']()===_0x2afeef['getTime']());}}
|
|
@@ -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 _0x283d=['fromJSDate','setLocale','toRelativeCalendar','startOf','minus','week','toJSDate','hasSame','weekdayLong','year','local','day'];(function(_0xee76d7,_0x283d9e){const _0x146a4c=function(_0x3ebe75){while(--_0x3ebe75){_0xee76d7['push'](_0xee76d7['shift']());}};_0x146a4c(++_0x283d9e);}(_0x283d,0xa2));const _0x146a=function(_0xee76d7,_0x283d9e){_0xee76d7=_0xee76d7-0x0;let _0x146a4c=_0x283d[_0xee76d7];return _0x146a4c;};import{DateTime as _0x38a7b6}from'luxon';export function getDateTimePeriodInfo(_0x4764d8,_0x5619f6){const _0x39504e=_0x38a7b6[_0x146a('0x6')](_0x4764d8)[_0x146a('0x7')](_0x5619f6),_0x896eb1=_0x38a7b6[_0x146a('0x4')](),_0xe7aea7=_0x896eb1[_0x146a('0xa')]({'days':0x1})[_0x146a('0x9')]('day');let _0x4a65e5,_0x1419ee;return _0x39504e[_0x146a('0x1')](_0x896eb1,'day')?(_0x4a65e5=_0x39504e[_0x146a('0x9')]('day')[_0x146a('0x0')](),_0x1419ee=_0x39504e[_0x146a('0x8')]()):_0x39504e[_0x146a('0x1')](_0xe7aea7,_0x146a('0x5'))?(_0x4a65e5=_0xe7aea7[_0x146a('0x0')](),_0x1419ee=_0x39504e[_0x146a('0x8')]()):_0x39504e['hasSame'](_0x896eb1,_0x146a('0xb'))?(_0x4a65e5=_0x39504e[_0x146a('0x9')](_0x146a('0xb'))['toJSDate'](),_0x1419ee=_0x39504e[_0x146a('0x2')]||''):_0x39504e['hasSame'](_0x896eb1,_0x146a('0x3'))?(_0x4a65e5=_0x39504e[_0x146a('0x9')]('month')[_0x146a('0x0')](),_0x1419ee=_0x39504e['monthLong']||''):(_0x4a65e5=_0x39504e[_0x146a('0x9')](_0x146a('0x3'))['toJSDate'](),_0x1419ee=String(_0x39504e['year'])),{'startDate':_0x4a65e5,'localizedPeriodName':_0x1419ee};}
|
|
@@ -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 _0x2d8e=['focus','set','data','div','bindTemplate','setTemplate','span','Suggested\x20by','name','_model','Removed\x20by','element','Added\x20by','add','changeId','type','author','isSuggestion','ck-annotation'];(function(_0x7e8534,_0x2d8e4e){const _0x4f398a=function(_0x1df273){while(--_0x1df273){_0x7e8534['push'](_0x7e8534['shift']());}};_0x4f398a(++_0x2d8e4e);}(_0x2d8e,0x85));const _0x4f39=function(_0x7e8534,_0x2d8e4e){_0x7e8534=_0x7e8534-0x0;let _0x4f398a=_0x2d8e[_0x7e8534];return _0x4f398a;};import{View as _0x21f3dd}from'ckeditor5/src/ui';import{getTranslation as _0x3145b9}from'../../utils/common-translations';export default class Z extends _0x21f3dd{constructor(_0x284e94,_0x376d79){super(_0x284e94),this[_0x4f39('0x9')]=_0x376d79,this[_0x4f39('0xe')]=_0x376d79['id'];const _0x62a062=this[_0x4f39('0x4')],_0x5e28d4=_0x3145b9(_0x284e94,_0x376d79[_0x4f39('0x2')][_0x4f39('0x11')]?_0x4f39('0x7'):_0x4f39('0xd')==_0x376d79[_0x4f39('0xf')]?_0x4f39('0xc'):_0x4f39('0xa'));this[_0x4f39('0x1')]('type',_0x376d79[_0x4f39('0xf')]),this[_0x4f39('0x5')]({'tag':_0x4f39('0x3'),'attributes':{'class':[_0x4f39('0x12'),'ck-revision-change',_0x62a062['to'](_0x4f39('0xf'),_0x29f285=>'ck-revision-change__'+_0x29f285)],'tabindex':-0x1},'children':[{'tag':_0x4f39('0x6'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5e28d4}]},{'text':'\x20'+_0x376d79[_0x4f39('0x10')][_0x4f39('0x8')]}]}]});}[_0x4f39('0x0')](){this[_0x4f39('0xb')][_0x4f39('0x0')]();}}
|