@ckeditor/ckeditor5-revision-history 40.1.0 → 41.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 +11 -11
- package/build/revision-history.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/changeitem.d.ts +4 -4
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +4 -4
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.d.ts +4 -4
- package/src/editor/revisionviewereditorui.js +2 -2
- package/src/editor/revisionviewereditoruiview.d.ts +5 -5
- package/src/editor/revisionviewereditoruiview.js +2 -2
- package/src/index.d.ts +12 -12
- package/src/index.js +2 -2
- package/src/revision.d.ts +4 -4
- package/src/revision.js +2 -2
- package/src/revisiondiff.d.ts +4 -4
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.d.ts +7 -7
- package/src/revisionhistory.js +2 -2
- package/src/revisionhistoryadapter.d.ts +2 -2
- package/src/revisionhistoryadapter.js +1 -1
- package/src/revisionhistoryconfig.d.ts +1 -1
- package/src/revisionhistoryconfig.js +1 -1
- package/src/revisionsrepository.d.ts +4 -4
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.d.ts +6 -6
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.d.ts +1 -1
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.d.ts +1 -1
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.d.ts +1 -1
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.d.ts +7 -7
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.d.ts +3 -3
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.d.ts +4 -4
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.d.ts +1 -1
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -3
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +3 -3
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +6 -6
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +7 -7
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.d.ts +1 -1
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.d.ts +4 -4
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.d.ts +3 -3
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -4
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/theme/changesnavigation.css +1 -1
- package/theme/revision/revision.css +1 -1
- package/theme/revision/revisionactions.css +1 -1
- package/theme/revision/revisionauthor.css +1 -1
- package/theme/revision/revisionname.css +1 -1
- package/theme/revision/subrevision.css +1 -1
- package/theme/revision/subrevisioncollapser.css +1 -1
- package/theme/revisionhistorysaverevisionform.css +1 -1
- package/theme/revisionssidebar/revisionssidebar.css +1 -1
- package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
- package/theme/revisionssidebar/revisionssidebartimeperiod.css +1 -1
- package/theme/revisionviewer.css +1 -1
- package/theme/revisionviewerloadingoverlay.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcb95=['span','click','false','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','true','ck-hidden','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser'];(function(_0x18257d,_0xcb9534){const _0x1679f5=function(_0x5991c6){while(--_0x5991c6){_0x18257d['push'](_0x18257d['shift']());}};_0x1679f5(++_0xcb9534);}(_0xcb95,0xc9));const _0x1679=function(_0x18257d,_0xcb9534){_0x18257d=_0x18257d-0x0;let _0x1679f5=_0xcb95[_0x18257d];return _0x1679f5;};import{View as _0x4209f9}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4209f9{constructor(_0x1dfb2d){super(_0x1dfb2d);const _0x45f353=this['bindTemplate'];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1679('0x2')]({'tag':_0x1679('0x9'),'attributes':{'class':['ck',_0x1679('0x8'),_0x45f353['if'](_0x1679('0x7'),_0x1679('0x5'),_0xe0b28b=>!_0xe0b28b),_0x45f353['if'](_0x1679('0x6'),_0x1679('0x3'))],'role':'button','aria-pressed':_0x45f353['to'](_0x1679('0x6'),_0x51e568=>_0x51e568?_0x1679('0x1'):_0x1679('0x4'))},'children':[{'tag':_0x1679('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x45f353['to'](_0x1679('0x0'))}});}['toggle'](){this[_0x1679('0x6')]=!this[_0x1679('0x6')];}}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revision/subrevisionview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/revision/subrevision.css';
|
|
11
|
-
import type Revision from '../../revision';
|
|
11
|
+
import type Revision from '../../revision.js';
|
|
12
12
|
/**
|
|
13
13
|
* TODO
|
|
14
14
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x83bc=['deselect','bindTemplate','ck-revision-history-sidebar__revision','_parentRevisionId','ck-revision-history-sidebar__revision-authors','creator','isSelected','_createdAtFormatted','select','fire','ck-reset','div','span','bind','uiLanguage','set','ck-revision-history-sidebar__revision_selected'];(function(_0x3c8b07,_0x83bc69){const _0x2498df=function(_0x26bfb5){while(--_0x26bfb5){_0x3c8b07['push'](_0x3c8b07['shift']());}};_0x2498df(++_0x83bc69);}(_0x83bc,0x162));const _0x2498=function(_0x3c8b07,_0x83bc69){_0x3c8b07=_0x3c8b07-0x0;let _0x2498df=_0x83bc[_0x3c8b07];return _0x2498df;};import{View as _0x4da183}from'ckeditor5/src/ui.js';import _0x26670a from'./revisionauthorview.js';import{dateToPrettyFormat as _0x31bd26}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x4da183{constructor(_0x2f99f4,_0x1ef096,_0x96c903){super(_0x2f99f4);const _0x5d0558=this[_0x2498('0x4')];this['id']=_0x1ef096['id'],this['bind']('createdAt')['to'](_0x1ef096),this[_0x2498('0x1')]('isSelected',!0x1),this[_0x2498('0x10')](_0x2498('0xa'))['to'](this,'createdAt',_0x3b284c=>_0x3b284c?_0x31bd26(_0x2f99f4[_0x2498('0x0')],_0x3b284c):void 0x0),this[_0x2498('0x6')]=_0x96c903,this['setTemplate']({'tag':_0x2498('0xe'),'attributes':{'class':['ck',_0x2498('0xd'),_0x2498('0x5'),'ck-revision-history-sidebar__subrevision',_0x5d0558['if'](_0x2498('0x9'),_0x2498('0x2'))]},'children':[{'tag':_0x2498('0xf'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5d0558['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x2498('0x7')]},'children':[new _0x26670a(_0x2f99f4,_0x1ef096[_0x2498('0x8')],!0x0)]}],'on':{'click':_0x5d0558['to'](this[_0x2498('0xb')][_0x2498('0x10')](this))}});}[_0x2498('0xb')](){this[_0x2498('0x9')]=!0x0,this[_0x2498('0xc')](_0x2498('0xb'),{'parentId':this[_0x2498('0x6')]});}[_0x2498('0x3')](){this[_0x2498('0x9')]=!0x1;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1030=['toLocaleTimeString','long','numeric'];(function(_0x595e99,_0x10300b){var _0x309ee8=function(_0x2d7f06){while(--_0x2d7f06){_0x595e99['push'](_0x595e99['shift']());}};_0x309ee8(++_0x10300b);}(_0x1030,0x1db));var _0x309e=function(_0x595e99,_0x10300b){_0x595e99=_0x595e99-0x0;var _0x309ee8=_0x1030[_0x595e99];return _0x309ee8;};export function dateToPrettyFormat(_0x3ae831,_0x27ef9c){return _0x27ef9c['toLocaleDateString'](_0x3ae831,{'month':_0x309e('0x0'),'day':_0x309e('0x1')})+',\x20'+_0x27ef9c[_0x309e('0x2')](_0x3ae831,{'hour':'numeric','minute':_0x309e('0x1')});}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
|
|
6
|
-
import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
5
|
+
import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
7
7
|
import '../../../theme/revisionhistorysaverevisionform.css';
|
|
8
8
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4429=['focusFirst','ck-button-cancel','label','220','extendTemplate','ck-revision-history-save-revision-form','form','forEach','arrowright','fieldView','tab','keystrokes','revisionName','_createButton','cancel','focusTracker','revisionNameInputView','element','Save','locale','set','arrowup','setTemplate','reset','delegate','value','trim','_focusCycler','render','cancelButtonView','type','_createRevisionNameInput','add','shift\x20+\x20tab','revisionNameInputValue','Cancel','ck-responsive-form','_focusables','arrowleft','execute','saveButtonView'];(function(_0x3433ec,_0x44299a){const _0x330da3=function(_0x1ad428){while(--_0x1ad428){_0x3433ec['push'](_0x3433ec['shift']());}};_0x330da3(++_0x44299a);}(_0x4429,0x13f));const _0x330d=function(_0x3433ec,_0x44299a){_0x3433ec=_0x3433ec-0x0;let _0x330da3=_0x4429[_0x3433ec];return _0x330da3;};import{icons as _0xf6a4fd}from'ckeditor5/src/core.js';import{ButtonView as _0x243f51,FocusCycler as _0x10d811,LabeledFieldView as _0x2c54f4,View as _0x1cd241,ViewCollection as _0x4f61e5,createLabeledInputText as _0x58aa42,injectCssTransitionDisabler as _0x581c48,submitHandler as _0x954e81}from'ckeditor5/src/ui.js';import{FocusTracker as _0xc07465,KeystrokeHandler as _0x8fcbbf}from'ckeditor5/src/utils.js';import{getTranslation as _0x201d6a}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1cd241{constructor(_0x4e708d){super(_0x4e708d),this['focusTracker']=new _0xc07465(),this[_0x330d('0x14')]=new _0x8fcbbf(),this['set']('revisionNameInputValue',''),this[_0x330d('0x19')]=this[_0x330d('0x28')](),this[_0x330d('0x8')]=this[_0x330d('0x16')](_0x201d6a(_0x4e708d,_0x330d('0x1b')),_0xf6a4fd['check'],'ck-button-save'),this['saveButtonView'][_0x330d('0x27')]='submit',this[_0x330d('0x26')]=this['_createButton'](_0x201d6a(_0x4e708d,_0x330d('0x3')),_0xf6a4fd[_0x330d('0x17')],_0x330d('0xa'),_0x330d('0x17')),this[_0x330d('0x5')]=new _0x4f61e5(),this[_0x330d('0x24')]=new _0x10d811({'focusables':this[_0x330d('0x5')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x330d('0x14')],'actions':{'focusPrevious':_0x330d('0x1'),'focusNext':_0x330d('0x13')}}),this[_0x330d('0x1f')]({'tag':_0x330d('0xf'),'attributes':{'class':['ck',_0x330d('0xe'),_0x330d('0x4')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x330d('0x8')],this[_0x330d('0x26')]]}),_0x581c48(this);}['render'](){super[_0x330d('0x25')](),_0x954e81({'view':this}),([this[_0x330d('0x19')],this[_0x330d('0x8')],this[_0x330d('0x26')]][_0x330d('0x10')](_0x2f00eb=>{this[_0x330d('0x5')][_0x330d('0x0')](_0x2f00eb),this[_0x330d('0x18')][_0x330d('0x0')](_0x2f00eb['element']);}),this[_0x330d('0x14')]['listenTo'](this[_0x330d('0x1a')]));const _0x48075e=_0x4c48f5=>_0x4c48f5['stopPropagation']();this[_0x330d('0x14')][_0x330d('0x1d')](_0x330d('0x11'),_0x48075e),this['keystrokes'][_0x330d('0x1d')](_0x330d('0x6'),_0x48075e),this[_0x330d('0x14')]['set'](_0x330d('0x1e'),_0x48075e),this['keystrokes']['set']('arrowdown',_0x48075e);}['focus'](){this[_0x330d('0x24')][_0x330d('0x9')]();}get['revisionName'](){return this[_0x330d('0x19')][_0x330d('0x12')][_0x330d('0x1a')][_0x330d('0x22')][_0x330d('0x23')]();}set[_0x330d('0x15')](_0x46fb0d){this[_0x330d('0x19')][_0x330d('0x12')][_0x330d('0x1a')]['value']=_0x46fb0d[_0x330d('0x23')]();}[_0x330d('0x20')](){this['revisionNameInputView'][_0x330d('0x12')]['element'][_0x330d('0x22')]='';}[_0x330d('0x28')](){const _0x170942=new _0x2c54f4(this[_0x330d('0x1c')],_0x58aa42),_0x5501ad=_0x170942[_0x330d('0x12')];return _0x5501ad[_0x330d('0xd')]({'attributes':{'maxlength':_0x330d('0xc')}}),_0x170942[_0x330d('0xb')]=_0x201d6a(this[_0x330d('0x1c')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x5501ad['on']('input',()=>{this[_0x330d('0x2')]=_0x5501ad[_0x330d('0x1a')][_0x330d('0x22')][_0x330d('0x23')]();}),_0x170942;}[_0x330d('0x16')](_0xd605e6,_0xf609c6,_0x5e22f8,_0x43e985){const _0x4ea8f3=new _0x243f51(this[_0x330d('0x1c')]);return _0x4ea8f3[_0x330d('0x1d')]({'label':_0xd605e6,'icon':_0xf609c6,'tooltip':!0x0}),_0x4ea8f3[_0x330d('0xd')]({'attributes':{'class':_0x5e22f8}}),_0x43e985&&_0x4ea8f3[_0x330d('0x21')](_0x330d('0x7'))['to'](this,_0x43e985),_0x4ea8f3;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionTracker from '../../revisiontracker';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import RevisionTracker from '../../revisiontracker.js';
|
|
10
10
|
/**
|
|
11
11
|
* TODO
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5429=['set','change:isOpen','RevisionTracker','showRevisionViewerCallback','cancel','Save\x20current\x20revision','isOpen','pluginName','RevisionHistoryUI','Revision\x20history','get','saveRevision','config','isEnabled','focus','plugins','addMany','items','isReadOnly','saveButtonView','isReady','editor','Open\x20revision\x20history','remove','execute','length','componentFactory','bind','editing','add','revisionHistory','render','history'];(function(_0x384dbb,_0x54297f){const _0x14388e=function(_0x315d93){while(--_0x315d93){_0x384dbb['push'](_0x384dbb['shift']());}};_0x14388e(++_0x54297f);}(_0x5429,0x150));const _0x1438=function(_0x384dbb,_0x54297f){_0x384dbb=_0x384dbb-0x0;let _0x14388e=_0x5429[_0x384dbb];return _0x14388e;};import{Plugin as _0x4662d1,icons as _0x592961}from'ckeditor5/src/core.js';import{ListView as _0xd60e25,ListItemView as _0x482863,ButtonView as _0x481740,createDropdown as _0x57098b}from'ckeditor5/src/ui.js';import _0x57aaa6 from'../../revisiontracker.js';import _0x289ad from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x13cd3b}from'../../utils/common-translations.js';export default class u extends _0x4662d1{static get[_0x1438('0x1')](){return _0x1438('0x2');}static get['requires'](){return[_0x57aaa6];}['init'](){const _0x3199f9=this[_0x1438('0xf')],_0x4890ac=_0x3199f9[_0x1438('0x9')][_0x1438('0x4')](_0x1438('0x1d'));_0x3199f9['ui'][_0x1438('0x14')][_0x1438('0x17')]('revisionHistory',_0x1c524c=>{const _0x54b842=_0x57098b(_0x1c524c),_0x4e6c08=_0x54b842['panelView']['children'],_0x376cfd=new _0xd60e25(_0x1c524c),_0x2327eb=new _0x482863(_0x1c524c),_0x53a212=new _0x481740(_0x1c524c),_0x52a978=new _0x482863(_0x1c524c),_0x2fd735=new _0x481740(_0x1c524c),_0x541a95=new _0x289ad(_0x1c524c);function _0x5e052d(){_0x4e6c08[_0x1438('0x13')]&&_0x4e6c08[_0x1438('0x11')](0x0),_0x4e6c08['add'](_0x376cfd);}function _0x224f7c(){_0x54b842[_0x1438('0x0')]=!0x1,_0x3199f9[_0x1438('0x16')]['view'][_0x1438('0x8')]();}return _0x54b842[_0x1438('0x15')](_0x1438('0x7'))['to'](_0x4890ac,_0x1438('0xe'),_0x4890ac,_0x1438('0x7'),_0x3199f9,_0x1438('0xc'),(_0x47516c,_0x2ba75a,_0x5e5efe)=>_0x47516c&&_0x2ba75a&&!_0x5e5efe),_0x54b842['buttonView'][_0x1438('0x1b')]({'icon':_0x592961[_0x1438('0x1a')],'label':_0x13cd3b(_0x1c524c,_0x1438('0x3')),'tooltip':!0x0}),_0x53a212['set']({'label':_0x13cd3b(_0x1c524c,_0x1438('0x20')),'withText':!0x0}),_0x53a212[_0x1438('0x15')](_0x1438('0x7'))['to'](_0x4890ac,_0x1438('0xe'),_0x4890ac,'isEnabled',_0x3199f9,_0x1438('0xc'),(_0x550674,_0x2cd786,_0x11a0d8)=>_0x550674&&_0x2cd786&&!_0x11a0d8),_0x53a212['on'](_0x1438('0x12'),()=>function(){_0x4e6c08['length']&&_0x4e6c08[_0x1438('0x11')](0x0),(_0x541a95['reset'](),_0x4e6c08['add'](_0x541a95),_0x541a95['focus']());}()),_0x2fd735[_0x1438('0x1b')]({'label':_0x13cd3b(_0x1c524c,_0x1438('0x10')),'withText':!0x0}),_0x2fd735[_0x1438('0x15')](_0x1438('0x7'))['to'](_0x4890ac,_0x1438('0xe'),_0x3199f9,_0x1438('0xc'),(_0x4871bf,_0x4dd976)=>_0x4871bf&&!_0x4dd976),_0x2fd735['on'](_0x1438('0x12'),()=>{_0x3199f9[_0x1438('0x6')][_0x1438('0x4')](_0x1438('0x18'))[_0x1438('0x1e')](),_0x224f7c();}),_0x2327eb['children'][_0x1438('0x17')](_0x53a212),_0x52a978['children'][_0x1438('0x17')](_0x2fd735),_0x376cfd[_0x1438('0xb')][_0x1438('0xa')]([_0x2327eb,_0x52a978]),_0x54b842['on'](_0x1438('0x1c'),()=>_0x5e052d()),_0x541a95[_0x1438('0xd')][_0x1438('0x15')](_0x1438('0x7'))['to'](_0x4890ac,'isReady',_0x4890ac,'isEnabled',_0x3199f9,_0x1438('0xc'),(_0x5b665e,_0xe4ee63,_0x2be5be)=>_0x5b665e&&_0xe4ee63&&!_0x2be5be),_0x541a95['on']('submit',()=>(_0x3199f9['plugins']['get'](_0x57aaa6)[_0x1438('0x5')]({'name':_0x541a95['revisionName']}),void _0x224f7c())),_0x541a95['on'](_0x1438('0x1f'),()=>_0x5e052d()),_0x541a95[_0x1438('0x19')](),_0x5e052d(),_0x54b842;});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionViewer from '../../revisionviewer';
|
|
10
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import RevisionViewer from '../../revisionviewer.js';
|
|
10
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
11
11
|
/**
|
|
12
12
|
* TODO
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed4=['availableRevisionActions','_createRevisionActions','isEnabled','locale','_handleEditorDataReady','repository','isSelected','ready','pluginName','config','revisionHistory.revisionActions','compareAgainstSelected','isVisible','render','requires','get','_sidebarView','listenTo','data','editor','_handleRevisionSelected','add','plugins','getRevision','compare','setName','_revisionsRepository','_revisions','selectRevision','getEarlierVisibleRevision','diff','revisionViews','revisionHistory','timePeriodViews','bind','highlightRevisions','revisionHistory.viewerSidebarContainer','_handleRevisionSetName','destroy','getLaterVisibleRevision','select','defaultRevisionActions','_revisionViewer','focus','change:diff','Name\x20this\x20revision','name','length','Compare\x20against\x20selected','RevisionsSidebar','restoreRevisionCallback','map','action','revisionSetName','appendChild','_handleDiffChange','getIndex','revisionSelected','remove','fieldView','getRevisionsInDiff','newRevisionId','string'];(function(_0x566fe1,_0x4ed406){const _0x254512=function(_0x5a57c6){while(--_0x5a57c6){_0x566fe1['push'](_0x566fe1['shift']());}};_0x254512(++_0x4ed406);}(_0x4ed4,0x7a));const _0x2545=function(_0x566fe1,_0x4ed406){_0x566fe1=_0x566fe1-0x0;let _0x254512=_0x4ed4[_0x566fe1];return _0x254512;};import{Plugin as _0x4bec7e}from'ckeditor5/src/core.js';import _0x8d186b from'./revisionssidebarview.js';import _0x506576 from'../../revisionviewer.js';export default class w extends _0x4bec7e{static get[_0x2545('0xc')](){return _0x2545('0x35');}static get[_0x2545('0x12')](){return[_0x506576];}constructor(_0x4fa52a){super(_0x4fa52a),this[_0x2545('0x2e')]=_0x4fa52a[_0x2545('0x1a')][_0x2545('0x13')](_0x506576),this['_revisionsRepository']=this[_0x2545('0x2e')][_0x2545('0x9')],this[_0x2545('0x14')]=null;}['init'](){const _0x2f6b42=this[_0x2545('0x1e')][_0x2545('0x1f')],_0x4decab=this[_0x2545('0x5')](),_0x160643=this[_0x2545('0x17')][_0x2545('0xd')][_0x2545('0x13')](_0x2545('0x28'));this['_sidebarView']=new _0x8d186b(this[_0x2545('0x17')][_0x2545('0x7')],_0x2f6b42,_0x4decab),this[_0x2545('0x14')]['on'](_0x2545('0x3d'),this[_0x2545('0x18')]['bind'](this)),this['_sidebarView']['on'](_0x2545('0x39'),this[_0x2545('0x29')][_0x2545('0x26')](this)),this['_sidebarView'][_0x2545('0x26')]('isEnabled')['to'](this['_revisionViewer']),this[_0x2545('0x14')][_0x2545('0x25')]['on']('add',(_0x445a30,_0x29edb3)=>{_0x29edb3[_0x2545('0x23')]['on'](_0x2545('0x19'),(_0x534422,_0x533e13)=>{_0x533e13[_0x2545('0x26')](_0x2545('0x6'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x2545('0x14')][_0x2545('0x11')](),this[_0x2545('0x15')](this[_0x2545('0x17')][_0x2545('0x16')],_0x2545('0xb'),this[_0x2545('0x8')]['bind'](this)),this['listenTo'](this[_0x2545('0x2e')],_0x2545('0x30'),this[_0x2545('0x3b')][_0x2545('0x26')](this)),_0x160643[_0x2545('0x3a')](this[_0x2545('0x14')]['element']);}[_0x2545('0x2a')](){this[_0x2545('0x14')]['element'][_0x2545('0x3e')](),this['_sidebarView']['destroy']();}[_0x2545('0x8')](){const _0xba302c=this[_0x2545('0x1e')]['getRevision'](0x0);if(_0xba302c){const _0x227d07=this[_0x2545('0x1e')]['getEarlierVisibleRevision'](_0xba302c['id']);this[_0x2545('0x2e')]['compare'](_0xba302c,_0x227d07);}}[_0x2545('0x18')](_0x1b4db3,_0xbecfd4){const _0x710dd0=this['_revisionsRepository'][_0x2545('0x1b')](_0xbecfd4['id']),_0x104c3f=this[_0x2545('0x1e')][_0x2545('0x21')](_0x710dd0['id']);this[_0x2545('0x2e')][_0x2545('0x1c')](_0x710dd0,_0x104c3f);}[_0x2545('0x29')](_0x5ca73d,_0x172a5b){this['_revisionsRepository'][_0x2545('0x1b')](_0x172a5b['id'])[_0x2545('0x1d')](_0x172a5b[_0x2545('0x32')]);}['_handleDiffChange'](_0x49dffd,_0x1788dc,_0x2b467e){const _0x5eeb9c=this['_revisionsRepository'][_0x2545('0x1')](_0x2b467e);_0x5eeb9c[_0x2545('0x33')]>0x2?(this[_0x2545('0x14')][_0x2545('0x27')](_0x5eeb9c),this[_0x2545('0x14')][_0x2545('0x20')](null)):(this[_0x2545('0x14')][_0x2545('0x27')]([]),this['_sidebarView']['selectRevision'](_0x5eeb9c[0x0]));}[_0x2545('0x5')](){const _0x1469cb=this[_0x2545('0x17')],_0x2df44f=w[_0x2545('0x4')],_0x4b275d=_0x1469cb[_0x2545('0xd')][_0x2545('0x13')](_0x2545('0xe'))||w[_0x2545('0x2d')];if(_0x4b275d[_0x2545('0x33')])return _0x4b275d[_0x2545('0x37')](_0x27edaf=>{const _0x3c1b3b=_0x2545('0x3')==typeof _0x27edaf?Object['assign']({},_0x2df44f[_0x27edaf]):_0x27edaf;return _0x3c1b3b[_0x2545('0x38')]=_0x3c1b3b['action']['bind'](this,_0x1469cb),_0x3c1b3b[_0x2545('0x10')]&&(_0x3c1b3b[_0x2545('0x10')]=_0x3c1b3b[_0x2545('0x10')][_0x2545('0x26')](this,_0x1469cb)),_0x3c1b3b;});}}w[_0x2545('0x4')]={'compareAgainstSelected':{'name':_0x2545('0x34'),'action':({plugins:_0x2ab9d2},_0x5b1a5e)=>{const _0x1515f1=_0x2ab9d2[_0x2545('0x13')](_0x506576),_0x110da5=_0x1515f1[_0x2545('0x9')];let _0x199bf8=_0x1515f1['diff'][_0x2545('0x2')],_0x4e66fd=_0x5b1a5e['id'];_0x110da5[_0x2545('0x3c')](_0x199bf8)>_0x110da5[_0x2545('0x3c')](_0x4e66fd)&&([_0x199bf8,_0x4e66fd]=[_0x4e66fd,_0x199bf8]),_0x1515f1[_0x2545('0x1c')](_0x199bf8,_0x4e66fd);},'isVisible':({plugins:_0x265665},_0x1bc8d5)=>{const _0x4e9dca=_0x265665['get'](_0x506576);return!(_0x4e9dca['repository'][_0x2545('0x1')](_0x4e9dca[_0x2545('0x22')])['length']>0x2)&&!_0x1bc8d5[_0x2545('0xa')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x331714,{id:_0x2f5fa5})=>{_0x331714['config'][_0x2545('0x13')](_0x2545('0x24'))[_0x2545('0x36')](_0x2f5fa5);},'isVisible':({plugins:_0x1e9112},_0x513188)=>!!_0x1e9112['get'](_0x506576)[_0x2545('0x9')][_0x2545('0x2b')](_0x513188['id'])},'nameRevision':{'name':_0x2545('0x31'),'action':({plugins:_0x569b51},{id:_0x468d7c,revisionNameView:_0xead0c6})=>{const _0x3c943c=_0x569b51['get'](_0x506576),_0x366215=_0x3c943c[_0x2545('0x9')]['getEarlierVisibleRevision'](_0x468d7c);_0x3c943c[_0x2545('0x1c')](_0x468d7c,_0x366215),_0xead0c6[_0x2545('0x2f')](),_0xead0c6[_0x2545('0x0')][_0x2545('0x2c')]();}}},w[_0x2545('0x2d')]=[_0x2545('0xf'),'restoreRevision','nameRevision'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x550d=['span','content','ck-reset_all','setTemplate','history','ck-revision-history-sidebar__header','div','Revision\x20history'];(function(_0x59cd84,_0x550d4f){const _0x59014e=function(_0x40e617){while(--_0x40e617){_0x59cd84['push'](_0x59cd84['shift']());}};_0x59014e(++_0x550d4f);}(_0x550d,0x1dd));const _0x5901=function(_0x59cd84,_0x550d4f){_0x59cd84=_0x59cd84-0x0;let _0x59014e=_0x550d[_0x59cd84];return _0x59014e;};import{View as _0x2af064,IconView as _0x19f495}from'ckeditor5/src/ui.js';import{getTranslation as _0x52c574}from'../../utils/common-translations.js';import{icons as _0x925b3e}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x2af064{constructor(_0x3d14fa){super(_0x3d14fa);const _0x678172=new _0x19f495();_0x678172[_0x5901('0x4')]=_0x925b3e[_0x5901('0x7')],this[_0x5901('0x6')]({'tag':_0x5901('0x1'),'attributes':{'class':['ck',_0x5901('0x5'),_0x5901('0x0')]},'children':[_0x678172,{'tag':_0x5901('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x52c574(_0x3d14fa,_0x5901('0x2'))]}]});}}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import RevisionView from '../revision/revisionview';
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import RevisionView from '../revision/revisionview.js';
|
|
11
11
|
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
12
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
13
|
-
import type Revision from '../../revision';
|
|
12
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
13
|
+
import type Revision from '../../revision.js';
|
|
14
14
|
/**
|
|
15
15
|
* TODO
|
|
16
16
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f1f=['ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period','revisionViews','ck-revision-history-sidebar__time-period__label','createCollection','locale','remove','startDate','uiLanguage','_revisionActions','select','delegate','setTemplate','addRevision','removeRevision','div','add','span','find'];(function(_0x54a72a,_0x5f1f63){const _0x54cfb2=function(_0x51f779){while(--_0x51f779){_0x54a72a['push'](_0x54a72a['shift']());}};_0x54cfb2(++_0x5f1f63);}(_0x5f1f,0x1c7));const _0x54cf=function(_0x54a72a,_0x5f1f63){_0x54a72a=_0x54a72a-0x0;let _0x54cfb2=_0x5f1f[_0x54a72a];return _0x54cfb2;};import{View as _0x109b92}from'ckeditor5/src/ui.js';import _0x275066 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x2d867c}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x109b92{constructor(_0x2ef736,_0x3c53e9,_0x5b3172){super(_0x2ef736);const _0x26da56=_0x2d867c(_0x3c53e9,this[_0x54cf('0x6')][_0x54cf('0x9')])['localizedPeriodName'];this[_0x54cf('0x8')]=_0x3c53e9,this['revisionViews']=this[_0x54cf('0x5')](),this[_0x54cf('0xa')]=_0x5b3172,this['revisionViews'][_0x54cf('0xc')](_0x54cf('0xb'))['to'](this),this[_0x54cf('0x3')][_0x54cf('0xc')]('setName')['to'](this),this[_0x54cf('0xd')]({'tag':'div','attributes':{'class':['ck',_0x54cf('0x2')]},'children':[{'tag':_0x54cf('0x12'),'attributes':{'class':['ck',_0x54cf('0x4')]},'children':[{'text':_0x26da56}]},{'tag':_0x54cf('0x10'),'attributes':{'class':['ck',_0x54cf('0x1')]},'children':this[_0x54cf('0x3')]}]});}[_0x54cf('0xe')](_0x200a33){const _0x2e80f9=new _0x275066(this[_0x54cf('0x6')],_0x200a33,this[_0x54cf('0xa')]);this[_0x54cf('0x3')][_0x54cf('0x11')](_0x2e80f9);}[_0x54cf('0xf')](_0x572c8c){const _0x54b488=this[_0x54cf('0x3')][_0x54cf('0x0')](_0x49a8dc=>_0x49a8dc['id']===_0x572c8c['id']);this[_0x54cf('0x3')][_0x54cf('0x7')](_0x54b488);}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale, Collection } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview.js';
|
|
11
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';
|
|
12
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
13
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
14
|
+
import type Revision from '../../revision.js';
|
|
15
15
|
/**
|
|
16
16
|
* TODO
|
|
17
17
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f71=['render','_revisions','isEnabled','flat','some','ck-reset','getTime','_addRevision','ck-rounded-corners','timePeriodViews','add','fire','createCollection','revisionViews','removeRevision','_getTimePeriodViewByStartDate','get','ck-revision-history-sidebar','delegate','remove','selectRevision','setName','ck-revision-history-sidebar__timeline','uiLanguage','map','createdAt','setTemplate','bindTemplate','highlight','select','_revisionActions','ck-disabled','unhighlight','div','startDate','locale','revisionSetName'];(function(_0x8b77d9,_0x1f7109){const _0x8bad8e=function(_0x9a8f6b){while(--_0x9a8f6b){_0x8b77d9['push'](_0x8b77d9['shift']());}};_0x8bad8e(++_0x1f7109);}(_0x1f71,0x88));const _0x8bad=function(_0x8b77d9,_0x1f7109){_0x8b77d9=_0x8b77d9-0x0;let _0x8bad8e=_0x1f71[_0x8b77d9];return _0x8bad8e;};import{View as _0x308ca5}from'ckeditor5/src/ui.js';import _0x5c35a7 from'./revisionssidebartimeperiodview.js';import _0x4eefcd from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x591e2d}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x308ca5{constructor(_0x4a38a9,_0x540cd4,_0x276085){super(_0x4a38a9);const _0xca5815=this[_0x8bad('0x2')];this[_0x8bad('0x15')]=this[_0x8bad('0x18')](),this[_0x8bad('0x15')][_0x8bad('0x1e')](_0x8bad('0x4'))['to'](this),this[_0x8bad('0x15')][_0x8bad('0x1e')](_0x8bad('0x21'))['to'](this),this[_0x8bad('0xd')]=_0x540cd4,this['_revisionActions']=_0x276085,this['on'](_0x8bad('0x4'),(_0x361a72,_0x2b1a82)=>{this[_0x8bad('0x17')]('revisionSelected',_0x2b1a82);}),this['on'](_0x8bad('0x21'),(_0x1a0327,_0xdb9469)=>{this['fire'](_0x8bad('0xb'),_0xdb9469);}),this['set'](_0x8bad('0xe'),!0x1),this[_0x8bad('0x1')]({'tag':_0x8bad('0x8'),'attributes':{'class':['ck',_0x8bad('0x11'),_0x8bad('0x14'),_0x8bad('0x1d')]},'children':[new _0x4eefcd(_0x4a38a9),{'tag':_0x8bad('0x8'),'attributes':{'class':['ck',_0x8bad('0x22'),_0xca5815['if'](_0x8bad('0xe'),_0x8bad('0x6'),_0x21a6a3=>!_0x21a6a3)]},'children':this[_0x8bad('0x15')]}]});}[_0x8bad('0xc')](){super['render']();for(const _0x5ab06b of this[_0x8bad('0xd')])this[_0x8bad('0x13')](_0x5ab06b);this['_revisions']['on'](_0x8bad('0x16'),(_0x2999b5,_0x4b081f)=>{this[_0x8bad('0x13')](_0x4b081f);}),this[_0x8bad('0xd')]['on'](_0x8bad('0x1f'),(_0x110fe1,_0x2e89e4)=>{this['_removeRevision'](_0x2e89e4);});}get[_0x8bad('0x19')](){return this['timePeriodViews'][_0x8bad('0x24')](_0x543ad9=>_0x543ad9[_0x8bad('0x19')][_0x8bad('0x24')](_0x5bca1d=>_0x5bca1d))[_0x8bad('0xf')]();}[_0x8bad('0x20')](_0xcd8705){for(const _0x3fa27a of this[_0x8bad('0x19')])_0xcd8705&&_0xcd8705['id']===_0x3fa27a['id']?_0x3fa27a[_0x8bad('0x4')]():_0x3fa27a['deselect']();}['highlightRevisions'](_0x202399){for(const _0x59406d of this[_0x8bad('0x19')])_0x202399[_0x8bad('0x10')](({id:_0x29c089})=>_0x29c089===_0x59406d['id'])?_0x59406d[_0x8bad('0x3')]():_0x59406d[_0x8bad('0x7')]();}[_0x8bad('0x13')](_0x9f9a23){const _0x5448bb=_0x591e2d(_0x9f9a23['createdAt'],this['locale'][_0x8bad('0x23')])[_0x8bad('0x9')];let _0x5c69f4=this[_0x8bad('0x15')][_0x8bad('0x1c')](0x0);_0x5c69f4&&_0x5c69f4[_0x8bad('0x9')]['getTime']()===_0x5448bb['getTime']()||(_0x5c69f4=new _0x5c35a7(this[_0x8bad('0xa')],_0x5448bb,this[_0x8bad('0x5')]),this[_0x8bad('0x15')]['add'](_0x5c69f4)),_0x5c69f4['addRevision'](_0x9f9a23);}['_removeRevision'](_0x772d66){const _0x19ac5e=_0x591e2d(_0x772d66[_0x8bad('0x0')],this[_0x8bad('0xa')][_0x8bad('0x23')])['startDate'];this[_0x8bad('0x1b')](_0x19ac5e)[_0x8bad('0x1a')](_0x772d66);}[_0x8bad('0x1b')](_0x3ce062){return this[_0x8bad('0x15')]['find'](_0x174d27=>_0x174d27[_0x8bad('0x9')][_0x8bad('0x12')]()===_0x3ce062[_0x8bad('0x12')]());}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49a1=['toJSDate','local','hasSame','week','weekdayLong','year','setLocale','toRelativeCalendar','day','minus','month','startOf','monthLong'];(function(_0x3e0f4a,_0x49a13e){const _0x18f8c4=function(_0x53f266){while(--_0x53f266){_0x3e0f4a['push'](_0x3e0f4a['shift']());}};_0x18f8c4(++_0x49a13e);}(_0x49a1,0x168));const _0x18f8=function(_0x3e0f4a,_0x49a13e){_0x3e0f4a=_0x3e0f4a-0x0;let _0x18f8c4=_0x49a1[_0x3e0f4a];return _0x18f8c4;};import{DateTime as _0x43e22e}from'luxon';export function getDateTimePeriodInfo(_0x1d281f,_0x560245){const _0x1f4159=_0x43e22e['fromJSDate'](_0x1d281f)[_0x18f8('0xa')](_0x560245),_0xa00a4f=_0x43e22e[_0x18f8('0x5')](),_0x36a4b2=_0xa00a4f[_0x18f8('0x0')]({'days':0x1})['startOf']('day');let _0x53752a,_0x38528b;return _0x1f4159[_0x18f8('0x6')](_0xa00a4f,_0x18f8('0xc'))?(_0x53752a=_0x1f4159[_0x18f8('0x2')](_0x18f8('0xc'))['toJSDate'](),_0x38528b=_0x1f4159[_0x18f8('0xb')]()):_0x1f4159['hasSame'](_0x36a4b2,_0x18f8('0xc'))?(_0x53752a=_0x36a4b2[_0x18f8('0x4')](),_0x38528b=_0x1f4159[_0x18f8('0xb')]()):_0x1f4159['hasSame'](_0xa00a4f,_0x18f8('0x7'))?(_0x53752a=_0x1f4159['startOf'](_0x18f8('0x7'))[_0x18f8('0x4')](),_0x38528b=_0x1f4159[_0x18f8('0x8')]||''):_0x1f4159['hasSame'](_0xa00a4f,'year')?(_0x53752a=_0x1f4159[_0x18f8('0x2')](_0x18f8('0x1'))[_0x18f8('0x4')](),_0x38528b=_0x1f4159[_0x18f8('0x3')]||''):(_0x53752a=_0x1f4159[_0x18f8('0x2')](_0x18f8('0x9'))[_0x18f8('0x4')](),_0x38528b=String(_0x1f4159['year'])),{'startDate':_0x53752a,'localizedPeriodName':_0x38528b};}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type ChangeItem from '../../changeitem';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type ChangeItem from '../../changeitem.js';
|
|
11
11
|
export default class ChangeDetailsView extends View {
|
|
12
12
|
changeId: string;
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd08d=['ck-annotation','author','span','setTemplate','name','ck-revision-change','data','Removed\x20by','focus','ck-revision-change__label','changeId','add','Added\x20by','Suggested\x20by','_model','element','type','set','bindTemplate','isSuggestion'];(function(_0x320716,_0xd08dda){const _0xc1119b=function(_0x51894d){while(--_0x51894d){_0x320716['push'](_0x320716['shift']());}};_0xc1119b(++_0xd08dda);}(_0xd08d,0x136));const _0xc111=function(_0x320716,_0xd08dda){_0x320716=_0x320716-0x0;let _0xc1119b=_0xd08d[_0x320716];return _0xc1119b;};import{View as _0x117256}from'ckeditor5/src/ui.js';import{getTranslation as _0x255613}from'../../utils/common-translations.js';export default class Z extends _0x117256{constructor(_0x3df85e,_0xe8e588){super(_0x3df85e),this[_0xc111('0x4')]=_0xe8e588,this[_0xc111('0x0')]=_0xe8e588['id'];const _0x5e6868=this[_0xc111('0x8')],_0x5e4911=_0x255613(_0x3df85e,_0xe8e588[_0xc111('0x10')][_0xc111('0x9')]?_0xc111('0x3'):_0xc111('0x1')==_0xe8e588[_0xc111('0x6')]?_0xc111('0x2'):_0xc111('0x11'));this[_0xc111('0x7')](_0xc111('0x6'),_0xe8e588[_0xc111('0x6')]),this[_0xc111('0xd')]({'tag':'div','attributes':{'class':[_0xc111('0xa'),_0xc111('0xf'),_0x5e6868['to']('type',_0x8d3968=>'ck-revision-change__'+_0x8d3968)],'tabindex':-0x1},'children':[{'tag':_0xc111('0xc'),'children':[{'tag':_0xc111('0xc'),'attributes':{'class':[_0xc111('0x13')]},'children':[{'text':_0x5e4911}]},{'text':'\x20'+_0xe8e588[_0xc111('0xb')][_0xc111('0xe')]}]}]});}['focus'](){this[_0xc111('0x5')][_0xc111('0x12')]();}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revisionviewer/changenaviagationview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/changesnavigation.css';
|
|
11
11
|
/**
|
|
12
12
|
* TODO
|