@ckeditor/ckeditor5-revision-history 39.0.2 → 40.0.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 +1 -1
- package/README.md +1 -1
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +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
- package/theme/changesnavigation.css +9 -0
- package/theme/revision/revision.css +9 -0
- package/theme/revision/revisionactions.css +9 -0
- package/theme/revision/revisionauthor.css +9 -0
- package/theme/revision/revisionname.css +9 -0
- package/theme/revision/subrevision.css +9 -0
- package/theme/revision/subrevisioncollapser.css +9 -0
- package/theme/revisionhistorysaverevisionform.css +5 -1
- package/theme/revisionssidebar/revisionssidebar.css +9 -0
- package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
- package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
- package/theme/revisionviewer.css +9 -0
- package/theme/revisionviewerloadingoverlay.css +9 -0
|
@@ -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 _0x2d82=['revisionHistory','execute','config','focus','isReady','items','plugins','Open\x20revision\x20history','cancel','pluginName','init','Save\x20current\x20revision','saveRevision','editing','requires','history','submit','get','set','reset','buttonView','showRevisionViewerCallback','isReadOnly','revisionName','editor','children','remove','saveButtonView','componentFactory','bind','isEnabled','add','RevisionHistoryUI'];(function(_0x299e29,_0x2d8290){const _0x4d67e5=function(_0x51c0b6){while(--_0x51c0b6){_0x299e29['push'](_0x299e29['shift']());}};_0x4d67e5(++_0x2d8290);}(_0x2d82,0x112));const _0x4d67=function(_0x299e29,_0x2d8290){_0x299e29=_0x299e29-0x0;let _0x4d67e5=_0x2d82[_0x299e29];return _0x4d67e5;};import{Plugin as _0x56d854,icons as _0x5676a9}from'ckeditor5/src/core';import{ListView as _0x2a1402,ListItemView as _0x568ad6,ButtonView as _0x414283,createDropdown as _0x4857ce}from'ckeditor5/src/ui';import _0x48d3fd from'../../revisiontracker';import _0x1721ca from'./revisionhistorysaverevisionformview';import{getTranslation as _0xbcf14a}from'../../utils/common-translations';export default class u extends _0x56d854{static get[_0x4d67('0x20')](){return _0x4d67('0x16');}static get[_0x4d67('0x4')](){return[_0x48d3fd];}[_0x4d67('0x0')](){const _0x13c01c=this[_0x4d67('0xe')],_0x5d47cd=_0x13c01c['plugins'][_0x4d67('0x7')]('RevisionTracker');_0x13c01c['ui'][_0x4d67('0x12')]['add'](_0x4d67('0x17'),_0x1fc2ea=>{const _0x36ef91=_0x4857ce(_0x1fc2ea),_0x1347c9=_0x36ef91['panelView'][_0x4d67('0xf')],_0x5ba6ab=new _0x2a1402(_0x1fc2ea),_0x983938=new _0x568ad6(_0x1fc2ea),_0x1c0302=new _0x414283(_0x1fc2ea),_0x2b839f=new _0x568ad6(_0x1fc2ea),_0x1e9170=new _0x414283(_0x1fc2ea),_0x184629=new _0x1721ca(_0x1fc2ea);function _0x2b589f(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),_0x1347c9[_0x4d67('0x15')](_0x5ba6ab);}function _0x2369af(){_0x36ef91['isOpen']=!0x1,_0x13c01c[_0x4d67('0x3')]['view']['focus']();}return _0x36ef91[_0x4d67('0x13')](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,'isReadOnly',(_0x4d3aa5,_0x179e6d,_0x3e2443)=>_0x4d3aa5&&_0x179e6d&&!_0x3e2443),_0x36ef91[_0x4d67('0xa')][_0x4d67('0x8')]({'icon':_0x5676a9[_0x4d67('0x5')],'label':_0xbcf14a(_0x1fc2ea,'Revision\x20history'),'tooltip':!0x0}),_0x1c0302[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1')),'withText':!0x0}),_0x1c0302['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,_0x4d67('0xc'),(_0x4329c0,_0x1f0097,_0x21ea1c)=>_0x4329c0&&_0x1f0097&&!_0x21ea1c),_0x1c0302['on'](_0x4d67('0x18'),()=>function(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),(_0x184629[_0x4d67('0x9')](),_0x1347c9[_0x4d67('0x15')](_0x184629),_0x184629[_0x4d67('0x1a')]());}()),_0x1e9170[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1e')),'withText':!0x0}),_0x1e9170[_0x4d67('0x13')]('isEnabled')['to'](_0x5d47cd,_0x4d67('0x1b'),_0x13c01c,_0x4d67('0xc'),(_0x3fc1ed,_0x32d3e7)=>_0x3fc1ed&&!_0x32d3e7),_0x1e9170['on'](_0x4d67('0x18'),()=>{_0x13c01c[_0x4d67('0x19')][_0x4d67('0x7')](_0x4d67('0x17'))[_0x4d67('0xb')](),_0x2369af();}),_0x983938[_0x4d67('0xf')]['add'](_0x1c0302),_0x2b839f[_0x4d67('0xf')][_0x4d67('0x15')](_0x1e9170),_0x5ba6ab[_0x4d67('0x1c')]['addMany']([_0x983938,_0x2b839f]),_0x36ef91['on']('change:isOpen',()=>_0x2b589f()),_0x184629[_0x4d67('0x11')]['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,'isEnabled',_0x13c01c,_0x4d67('0xc'),(_0x217d57,_0x50a060,_0x506e8d)=>_0x217d57&&_0x50a060&&!_0x506e8d),_0x184629['on'](_0x4d67('0x6'),()=>(_0x13c01c[_0x4d67('0x1d')][_0x4d67('0x7')](_0x48d3fd)[_0x4d67('0x2')]({'name':_0x184629[_0x4d67('0xd')]}),void _0x2369af())),_0x184629['on'](_0x4d67('0x1f'),()=>_0x2b589f()),_0x184629['render'](),_0x2b589f(),_0x36ef91;});}}
|
|
@@ -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 _0x45a1=['locale','getLaterVisibleRevision','_createRevisionActions','isVisible','compare','Restore\x20this\x20revision','getRevision','focus','pluginName','bind','_handleRevisionSetName','map','repository','init','timePeriodViews','_revisionViewer','revisionHistory','RevisionsSidebar','isEnabled','plugins','assign','_handleEditorDataReady','element','render','destroy','get','select','change:diff','_revisions','Compare\x20against\x20selected','editor','length','isReady','nameRevision','add','Name\x20this\x20revision','getEarlierVisibleRevision','highlightRevisions','revisionSelected','appendChild','data','requires','remove','_handleRevisionSelected','revisionViews','name','_handleDiffChange','selectRevision','_revisionsRepository','compareAgainstSelected','getIndex','config','availableRevisionActions','restoreRevisionCallback','revisionSetName','newRevisionId','action','defaultRevisionActions','getRevisionsInDiff','diff','_sidebarView'];(function(_0x4d6521,_0x45a17c){const _0x400439=function(_0x4466c6){while(--_0x4466c6){_0x4d6521['push'](_0x4d6521['shift']());}};_0x400439(++_0x45a17c);}(_0x45a1,0x1a9));const _0x4004=function(_0x4d6521,_0x45a17c){_0x4d6521=_0x4d6521-0x0;let _0x400439=_0x45a1[_0x4d6521];return _0x400439;};import{Plugin as _0x4d5889}from'ckeditor5/src/core';import _0x4827d0 from'./revisionssidebarview';import _0x2a6779 from'../../revisionviewer';export default class w extends _0x4d5889{static get[_0x4004('0xa')](){return _0x4004('0x13');}static get[_0x4004('0x2b')](){return[_0x2a6779];}constructor(_0x53e3b8){super(_0x53e3b8),this['_revisionViewer']=_0x53e3b8[_0x4004('0x15')][_0x4004('0x1b')](_0x2a6779),this[_0x4004('0x32')]=this['_revisionViewer']['repository'],this[_0x4004('0x1')]=null;}[_0x4004('0xf')](){const _0x3e308e=this[_0x4004('0x32')][_0x4004('0x1e')],_0xe9c757=this[_0x4004('0x4')](),_0x3843af=this[_0x4004('0x20')][_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.viewerSidebarContainer');this[_0x4004('0x1')]=new _0x4827d0(this[_0x4004('0x20')][_0x4004('0x2')],_0x3e308e,_0xe9c757),this[_0x4004('0x1')]['on'](_0x4004('0x28'),this[_0x4004('0x2d')][_0x4004('0xb')](this)),this['_sidebarView']['on'](_0x4004('0x38'),this[_0x4004('0xc')][_0x4004('0xb')](this)),this[_0x4004('0x1')][_0x4004('0xb')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView'][_0x4004('0x10')]['on'](_0x4004('0x24'),(_0x3131ce,_0x470d70)=>{_0x470d70[_0x4004('0x2e')]['on']('add',(_0x36785a,_0x4b0b06)=>{_0x4b0b06[_0x4004('0xb')](_0x4004('0x14'),_0x4004('0x22'))['to'](this[_0x4004('0x11')]);});}),this['_sidebarView'][_0x4004('0x19')](),this['listenTo'](this[_0x4004('0x20')][_0x4004('0x2a')],'ready',this[_0x4004('0x17')][_0x4004('0xb')](this)),this['listenTo'](this[_0x4004('0x11')],_0x4004('0x1d'),this[_0x4004('0x30')]['bind'](this)),_0x3843af[_0x4004('0x29')](this[_0x4004('0x1')]['element']);}['destroy'](){this['_sidebarView'][_0x4004('0x18')][_0x4004('0x2c')](),this[_0x4004('0x1')][_0x4004('0x1a')]();}[_0x4004('0x17')](){const _0x10d1e5=this['_revisionsRepository'][_0x4004('0x8')](0x0);if(_0x10d1e5){const _0x2871a3=this[_0x4004('0x32')][_0x4004('0x26')](_0x10d1e5['id']);this[_0x4004('0x11')][_0x4004('0x6')](_0x10d1e5,_0x2871a3);}}[_0x4004('0x2d')](_0x5aacac,_0x4cf397){const _0x9711ee=this['_revisionsRepository'][_0x4004('0x8')](_0x4cf397['id']),_0x4abe35=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9711ee['id']);this[_0x4004('0x11')]['compare'](_0x9711ee,_0x4abe35);}[_0x4004('0xc')](_0x18a979,_0xdf1c1){this[_0x4004('0x32')][_0x4004('0x8')](_0xdf1c1['id'])['setName'](_0xdf1c1[_0x4004('0x2f')]);}[_0x4004('0x30')](_0x3372b1,_0x479d00,_0x2286fc){const _0x3ee6e8=this['_revisionsRepository'][_0x4004('0x3c')](_0x2286fc);_0x3ee6e8[_0x4004('0x21')]>0x2?(this[_0x4004('0x1')][_0x4004('0x27')](_0x3ee6e8),this['_sidebarView'][_0x4004('0x31')](null)):(this[_0x4004('0x1')][_0x4004('0x27')]([]),this[_0x4004('0x1')][_0x4004('0x31')](_0x3ee6e8[0x0]));}[_0x4004('0x4')](){const _0x3b8b56=this[_0x4004('0x20')],_0x5d4b89=w[_0x4004('0x36')],_0x50319a=_0x3b8b56[_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.revisionActions')||w[_0x4004('0x3b')];if(_0x50319a[_0x4004('0x21')])return _0x50319a[_0x4004('0xd')](_0x51d0f1=>{const _0x165b26='string'==typeof _0x51d0f1?Object[_0x4004('0x16')]({},_0x5d4b89[_0x51d0f1]):_0x51d0f1;return _0x165b26[_0x4004('0x3a')]=_0x165b26[_0x4004('0x3a')][_0x4004('0xb')](this,_0x3b8b56),_0x165b26[_0x4004('0x5')]&&(_0x165b26[_0x4004('0x5')]=_0x165b26[_0x4004('0x5')][_0x4004('0xb')](this,_0x3b8b56)),_0x165b26;});}}w[_0x4004('0x36')]={'compareAgainstSelected':{'name':_0x4004('0x1f'),'action':({plugins:_0x34aed9},_0x1cb78b)=>{const _0x1cb35e=_0x34aed9['get'](_0x2a6779),_0x2a450c=_0x1cb35e[_0x4004('0xe')];let _0xaa3e31=_0x1cb35e[_0x4004('0x0')][_0x4004('0x39')],_0xc6adc3=_0x1cb78b['id'];_0x2a450c[_0x4004('0x34')](_0xaa3e31)>_0x2a450c['getIndex'](_0xc6adc3)&&([_0xaa3e31,_0xc6adc3]=[_0xc6adc3,_0xaa3e31]),_0x1cb35e[_0x4004('0x6')](_0xaa3e31,_0xc6adc3);},'isVisible':({plugins:_0x36b440},_0x370b1b)=>{const _0x4ed8d5=_0x36b440[_0x4004('0x1b')](_0x2a6779);return!(_0x4ed8d5[_0x4004('0xe')]['getRevisionsInDiff'](_0x4ed8d5[_0x4004('0x0')])[_0x4004('0x21')]>0x2)&&!_0x370b1b['isSelected'];}},'restoreRevision':{'name':_0x4004('0x7'),'action':(_0x3947d8,{id:_0x51ec51})=>{_0x3947d8['config']['get'](_0x4004('0x12'))[_0x4004('0x37')](_0x51ec51);},'isVisible':({plugins:_0x2d8a84},_0x1373de)=>!!_0x2d8a84['get'](_0x2a6779)[_0x4004('0xe')][_0x4004('0x3')](_0x1373de['id'])},'nameRevision':{'name':_0x4004('0x25'),'action':({plugins:_0x6eca2d},{id:_0x48b4e4,revisionNameView:_0x3445d6})=>{const _0x52dd4e=_0x6eca2d[_0x4004('0x1b')](_0x2a6779),_0x5ab1d5=_0x52dd4e['repository'][_0x4004('0x26')](_0x48b4e4);_0x52dd4e[_0x4004('0x6')](_0x48b4e4,_0x5ab1d5),_0x3445d6[_0x4004('0x9')](),_0x3445d6['fieldView'][_0x4004('0x1c')]();}}},w[_0x4004('0x3b')]=[_0x4004('0x33'),'restoreRevision',_0x4004('0x23')];
|
|
@@ -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 _0x38c0=['div','content','span','setTemplate','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0x10bd87,_0x38c0fc){const _0x21d5c9=function(_0x416229){while(--_0x416229){_0x10bd87['push'](_0x10bd87['shift']());}};_0x21d5c9(++_0x38c0fc);}(_0x38c0,0xaa));const _0x21d5=function(_0x10bd87,_0x38c0fc){_0x10bd87=_0x10bd87-0x0;let _0x21d5c9=_0x38c0[_0x10bd87];return _0x21d5c9;};import{View as _0x4586fe,IconView as _0x406699}from'ckeditor5/src/ui';import{getTranslation as _0xfa1a3b}from'../../utils/common-translations';import{icons as _0x2b836f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class sr extends _0x4586fe{constructor(_0x5d70fe){super(_0x5d70fe);const _0x48b7a2=new _0x406699();_0x48b7a2[_0x21d5('0x6')]=_0x2b836f['history'],this[_0x21d5('0x1')]({'tag':_0x21d5('0x5'),'attributes':{'class':['ck',_0x21d5('0x4'),_0x21d5('0x2')]},'children':[_0x48b7a2,{'tag':_0x21d5('0x0'),'attributes':{'class':['ck',_0x21d5('0x3')]},'children':[_0xfa1a3b(_0x5d70fe,'Revision\x20history')]}]});}}
|
|
@@ -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 _0xfc52=['revisionViews','add','removeRevision','startDate','localizedPeriodName','createCollection','uiLanguage','delegate','locale','ck-revision-history-sidebar__time-period','div','ck-revision-history-sidebar__time-period__label','span','addRevision','ck-revision-history-sidebar__time-period__revisions'];(function(_0x15cb64,_0xfc5275){const _0x54f76c=function(_0x4eada5){while(--_0x4eada5){_0x15cb64['push'](_0x15cb64['shift']());}};_0x54f76c(++_0xfc5275);}(_0xfc52,0xbf));const _0x54f7=function(_0x15cb64,_0xfc5275){_0x15cb64=_0x15cb64-0x0;let _0x54f76c=_0xfc52[_0x15cb64];return _0x54f76c;};import{View as _0x1b0c29}from'ckeditor5/src/ui';import _0x4c93b1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x324a48}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class di extends _0x1b0c29{constructor(_0x1c6e59,_0x4cf268,_0x55a452){super(_0x1c6e59);const _0x3d1c6e=_0x324a48(_0x4cf268,this['locale'][_0x54f7('0xa')])[_0x54f7('0x8')];this[_0x54f7('0x7')]=_0x4cf268,this[_0x54f7('0x4')]=this[_0x54f7('0x9')](),this['_revisionActions']=_0x55a452,this[_0x54f7('0x4')][_0x54f7('0xb')]('select')['to'](this),this[_0x54f7('0x4')][_0x54f7('0xb')]('setName')['to'](this),this['setTemplate']({'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0xd')]},'children':[{'tag':_0x54f7('0x1'),'attributes':{'class':['ck',_0x54f7('0x0')]},'children':[{'text':_0x3d1c6e}]},{'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0x3')]},'children':this[_0x54f7('0x4')]}]});}[_0x54f7('0x2')](_0x401cd2){const _0x5b6adb=new _0x4c93b1(this[_0x54f7('0xc')],_0x401cd2,this['_revisionActions']);this['revisionViews'][_0x54f7('0x5')](_0x5b6adb);}[_0x54f7('0x6')](_0x2a8041){const _0xe10c41=this[_0x54f7('0x4')]['find'](_0x3d5376=>_0x3d5376['id']===_0x2a8041['id']);this[_0x54f7('0x4')]['remove'](_0xe10c41);}}
|
|
@@ -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 _0x498f=['uiLanguage','render','select','ck-reset','getTime','locale','selectRevision','remove','_addRevision','isEnabled','_revisions','add','createdAt','unhighlight','bindTemplate','_removeRevision','revisionViews','timePeriodViews','ck-revision-history-sidebar__timeline','set','delegate','revisionSelected','setName','addRevision','get','revisionSetName','ck-rounded-corners','highlightRevisions','removeRevision','map','ck-disabled','find','createCollection','flat','some','_revisionActions','_getTimePeriodViewByStartDate','startDate'];(function(_0x44cf46,_0x498fb4){const _0xc13a7f=function(_0x1d3b31){while(--_0x1d3b31){_0x44cf46['push'](_0x44cf46['shift']());}};_0xc13a7f(++_0x498fb4);}(_0x498f,0x185));const _0xc13a=function(_0x44cf46,_0x498fb4){_0x44cf46=_0x44cf46-0x0;let _0xc13a7f=_0x498f[_0x44cf46];return _0xc13a7f;};import{View as _0x209b65}from'ckeditor5/src/ui';import _0x4591c0 from'./revisionssidebartimeperiodview';import _0x58e717 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x208127}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class oi extends _0x209b65{constructor(_0x2fe5c4,_0x19ddb0,_0x22fb05){super(_0x2fe5c4);const _0x44ec62=this[_0xc13a('0x5')];this[_0xc13a('0x8')]=this[_0xc13a('0x17')](),this['timePeriodViews'][_0xc13a('0xb')](_0xc13a('0x1f'))['to'](this),this[_0xc13a('0x8')][_0xc13a('0xb')](_0xc13a('0xd'))['to'](this),this[_0xc13a('0x1')]=_0x19ddb0,this[_0xc13a('0x1a')]=_0x22fb05,this['on'](_0xc13a('0x1f'),(_0x504c9b,_0x293c7f)=>{this['fire'](_0xc13a('0xc'),_0x293c7f);}),this['on'](_0xc13a('0xd'),(_0x26e945,_0x2455cd)=>{this['fire'](_0xc13a('0x10'),_0x2455cd);}),this[_0xc13a('0xa')](_0xc13a('0x0'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xc13a('0x20'),_0xc13a('0x11'),'ck-revision-history-sidebar']},'children':[new _0x58e717(_0x2fe5c4),{'tag':'div','attributes':{'class':['ck',_0xc13a('0x9'),_0x44ec62['if'](_0xc13a('0x0'),_0xc13a('0x15'),_0x5ade11=>!_0x5ade11)]},'children':this['timePeriodViews']}]});}[_0xc13a('0x1e')](){super[_0xc13a('0x1e')]();for(const _0x3fdca2 of this[_0xc13a('0x1')])this[_0xc13a('0x25')](_0x3fdca2);this[_0xc13a('0x1')]['on'](_0xc13a('0x2'),(_0x20516e,_0xf4c815)=>{this['_addRevision'](_0xf4c815);}),this['_revisions']['on'](_0xc13a('0x24'),(_0x3bd7ab,_0x2cc7a5)=>{this[_0xc13a('0x6')](_0x2cc7a5);});}get[_0xc13a('0x7')](){return this[_0xc13a('0x8')][_0xc13a('0x14')](_0x3434a3=>_0x3434a3[_0xc13a('0x7')]['map'](_0x12b101=>_0x12b101))[_0xc13a('0x18')]();}[_0xc13a('0x23')](_0x417788){for(const _0x1a4dc5 of this[_0xc13a('0x7')])_0x417788&&_0x417788['id']===_0x1a4dc5['id']?_0x1a4dc5[_0xc13a('0x1f')]():_0x1a4dc5['deselect']();}[_0xc13a('0x12')](_0x414e29){for(const _0x565b63 of this[_0xc13a('0x7')])_0x414e29[_0xc13a('0x19')](({id:_0x56ff04})=>_0x56ff04===_0x565b63['id'])?_0x565b63['highlight']():_0x565b63[_0xc13a('0x4')]();}[_0xc13a('0x25')](_0x3d0242){const _0x495c56=_0x208127(_0x3d0242[_0xc13a('0x3')],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];let _0x53710a=this[_0xc13a('0x8')][_0xc13a('0xf')](0x0);_0x53710a&&_0x53710a[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x495c56[_0xc13a('0x21')]()||(_0x53710a=new _0x4591c0(this[_0xc13a('0x22')],_0x495c56,this[_0xc13a('0x1a')]),this[_0xc13a('0x8')]['add'](_0x53710a)),_0x53710a[_0xc13a('0xe')](_0x3d0242);}[_0xc13a('0x6')](_0x5d1ed6){const _0x3a5514=_0x208127(_0x5d1ed6['createdAt'],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];this['_getTimePeriodViewByStartDate'](_0x3a5514)[_0xc13a('0x13')](_0x5d1ed6);}[_0xc13a('0x1b')](_0x3e0ef7){return this[_0xc13a('0x8')][_0xc13a('0x16')](_0x48b5c5=>_0x48b5c5[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x3e0ef7[_0xc13a('0x21')]());}}
|
|
@@ -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 _0x4cb7=['week','startOf','setLocale','weekdayLong','hasSame','day','minus','toRelativeCalendar','toJSDate','year','fromJSDate','month'];(function(_0x55e3f7,_0x4cb70e){const _0x86178d=function(_0x4ceccd){while(--_0x4ceccd){_0x55e3f7['push'](_0x55e3f7['shift']());}};_0x86178d(++_0x4cb70e);}(_0x4cb7,0x1cd));const _0x8617=function(_0x55e3f7,_0x4cb70e){_0x55e3f7=_0x55e3f7-0x0;let _0x86178d=_0x4cb7[_0x55e3f7];return _0x86178d;};import{DateTime as _0x16093e}from'luxon';export function getDateTimePeriodInfo(_0x69ff06,_0x45a36f){const _0x350bc4=_0x16093e[_0x8617('0x5')](_0x69ff06)[_0x8617('0x9')](_0x45a36f),_0x1fab8a=_0x16093e['local'](),_0x52975b=_0x1fab8a[_0x8617('0x1')]({'days':0x1})[_0x8617('0x8')](_0x8617('0x0'));let _0xdbc655,_0x54b5e6;return _0x350bc4[_0x8617('0xb')](_0x1fab8a,'day')?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x0'))[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4[_0x8617('0xb')](_0x52975b,_0x8617('0x0'))?(_0xdbc655=_0x52975b[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4['hasSame'](_0x1fab8a,_0x8617('0x7'))?(_0xdbc655=_0x350bc4['startOf']('week')['toJSDate'](),_0x54b5e6=_0x350bc4[_0x8617('0xa')]||''):_0x350bc4[_0x8617('0xb')](_0x1fab8a,_0x8617('0x4'))?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x6'))['toJSDate'](),_0x54b5e6=_0x350bc4['monthLong']||''):(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x4'))[_0x8617('0x3')](),_0x54b5e6=String(_0x350bc4[_0x8617('0x4')])),{'startDate':_0xdbc655,'localizedPeriodName':_0x54b5e6};}
|
|
@@ -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 _0x5ae2=['ck-revision-change__label','Suggested\x20by','element','author','set','type','isSuggestion','ck-revision-change__','Added\x20by','add','changeId','ck-revision-change','span','setTemplate','Removed\x20by','ck-annotation','focus'];(function(_0x5a4c9a,_0x5ae20e){const _0x2abbe0=function(_0x544764){while(--_0x544764){_0x5a4c9a['push'](_0x5a4c9a['shift']());}};_0x2abbe0(++_0x5ae20e);}(_0x5ae2,0x7b));const _0x2abb=function(_0x5a4c9a,_0x5ae20e){_0x5a4c9a=_0x5a4c9a-0x0;let _0x2abbe0=_0x5ae2[_0x5a4c9a];return _0x2abbe0;};import{View as _0x29447d}from'ckeditor5/src/ui';import{getTranslation as _0x348459}from'../../utils/common-translations';export default class Z extends _0x29447d{constructor(_0x2e6064,_0x7700e3){super(_0x2e6064),this['_model']=_0x7700e3,this[_0x2abb('0x6')]=_0x7700e3['id'];const _0x2967a2=this['bindTemplate'],_0x253c4c=_0x348459(_0x2e6064,_0x7700e3['data'][_0x2abb('0x2')]?_0x2abb('0xe'):_0x2abb('0x5')==_0x7700e3[_0x2abb('0x1')]?_0x2abb('0x4'):_0x2abb('0xa'));this[_0x2abb('0x0')](_0x2abb('0x1'),_0x7700e3[_0x2abb('0x1')]),this[_0x2abb('0x9')]({'tag':'div','attributes':{'class':[_0x2abb('0xb'),_0x2abb('0x7'),_0x2967a2['to'](_0x2abb('0x1'),_0xde0e44=>_0x2abb('0x3')+_0xde0e44)],'tabindex':-0x1},'children':[{'tag':_0x2abb('0x8'),'children':[{'tag':_0x2abb('0x8'),'attributes':{'class':[_0x2abb('0xd')]},'children':[{'text':_0x253c4c}]},{'text':'\x20'+_0x7700e3[_0x2abb('0x10')]['name']}]}]});}[_0x2abb('0xc')](){this[_0x2abb('0xf')][_0x2abb('0xc')]();}}
|