@ckeditor/ckeditor5-revision-history 40.0.0 → 40.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/augmentation.d.ts +29 -29
  5. package/src/changeitem.d.ts +58 -58
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.d.ts +27 -27
  8. package/src/editor/revisionviewereditor.js +1 -1
  9. package/src/editor/revisionviewereditorui.d.ts +28 -28
  10. package/src/editor/revisionviewereditorui.js +1 -1
  11. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/index.d.ts +15 -15
  14. package/src/revision.d.ts +153 -153
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +24 -24
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +99 -99
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +64 -64
  21. package/src/revisionhistoryconfig.d.ts +60 -60
  22. package/src/revisionsrepository.d.ts +52 -52
  23. package/src/revisionsrepository.js +1 -1
  24. package/src/revisiontracker.d.ts +81 -81
  25. package/src/revisiontracker.js +1 -1
  26. package/src/revisionviewer.d.ts +25 -25
  27. package/src/revisionviewer.js +1 -1
  28. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  29. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  30. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  31. package/src/ui/revision/revisionauthorview.js +1 -1
  32. package/src/ui/revision/revisionnameview.d.ts +5 -5
  33. package/src/ui/revision/revisionnameview.js +1 -1
  34. package/src/ui/revision/revisionview.d.ts +95 -95
  35. package/src/ui/revision/revisionview.js +1 -1
  36. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  37. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  38. package/src/ui/revision/subrevisionview.d.ts +34 -34
  39. package/src/ui/revision/subrevisionview.js +1 -1
  40. package/src/ui/revision/utils.d.ts +5 -5
  41. package/src/ui/revision/utils.js +1 -1
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  45. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  47. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  53. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  54. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  55. package/src/ui/revisionssidebar/utils.js +1 -1
  56. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  57. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  58. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  59. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  63. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  64. package/src/utils/common-translations.d.ts +11 -11
  65. package/src/utils/common-translations.js +1 -1
@@ -1,95 +1,95 @@
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/revision/revisionview
7
- */
8
- import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
9
- import { View, type DropdownView } from 'ckeditor5/src/ui';
10
- import RevisionNameView from './revisionnameview';
11
- import '../../../theme/revision/revision.css';
12
- import type Revision from '../../revision';
13
- import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
14
- declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
15
- /**
16
- * TODO
17
- */
18
- export default class RevisionView extends RevisionView_base {
19
- id: string;
20
- revisionNameView: RevisionNameView;
21
- /**
22
- * It holds the revision actions drop-down view if actions are provided,
23
- * or just empty text otherwise.
24
- */
25
- revisionActionsView: DropdownView | '';
26
- /**
27
- * @observable
28
- */
29
- name: string;
30
- /**
31
- * @observable
32
- */
33
- createdAt: Date;
34
- /**
35
- * @observable
36
- */
37
- isSelected: boolean;
38
- /**
39
- * @observable
40
- */
41
- isHighlighted: boolean;
42
- /**
43
- * @observable
44
- */
45
- isActionsDropdownOpen: boolean;
46
- /**
47
- * @observable
48
- */
49
- isReady: boolean;
50
- /**
51
- * @observable
52
- */
53
- isEnabled: boolean;
54
- constructor(locale: Locale, revision: Revision, revisionActions: Array<RevisionAction>);
55
- /**
56
- * @inheritDoc
57
- */
58
- render(): void;
59
- /**
60
- * TODO
61
- */
62
- select(): void;
63
- /**
64
- * TODO
65
- */
66
- deselect(): void;
67
- /**
68
- * TODO
69
- */
70
- highlight(): void;
71
- /**
72
- * TODO
73
- */
74
- unhighlight(): void;
75
- }
76
- /**
77
- * @eventName setName | revisionSetName
78
- */
79
- export interface RevisionSetNameEvent extends BaseEvent {
80
- name: 'setName' | 'revisionSetName';
81
- args: [{
82
- id: string;
83
- name: string;
84
- }];
85
- }
86
- /**
87
- * @eventName select | revisionSelected
88
- */
89
- export interface RevisionSelectedEvent extends BaseEvent {
90
- name: 'select' | 'revisionSelected';
91
- args: [{
92
- id: string;
93
- }];
94
- }
95
- export {};
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/revision/revisionview
7
+ */
8
+ import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
9
+ import { View, type DropdownView } from 'ckeditor5/src/ui';
10
+ import RevisionNameView from './revisionnameview';
11
+ import '../../../theme/revision/revision.css';
12
+ import type Revision from '../../revision';
13
+ import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
14
+ declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
15
+ /**
16
+ * TODO
17
+ */
18
+ export default class RevisionView extends RevisionView_base {
19
+ id: string;
20
+ revisionNameView: RevisionNameView;
21
+ /**
22
+ * It holds the revision actions drop-down view if actions are provided,
23
+ * or just empty text otherwise.
24
+ */
25
+ revisionActionsView: DropdownView | '';
26
+ /**
27
+ * @observable
28
+ */
29
+ name: string;
30
+ /**
31
+ * @observable
32
+ */
33
+ createdAt: Date;
34
+ /**
35
+ * @observable
36
+ */
37
+ isSelected: boolean;
38
+ /**
39
+ * @observable
40
+ */
41
+ isHighlighted: boolean;
42
+ /**
43
+ * @observable
44
+ */
45
+ isActionsDropdownOpen: boolean;
46
+ /**
47
+ * @observable
48
+ */
49
+ isReady: boolean;
50
+ /**
51
+ * @observable
52
+ */
53
+ isEnabled: boolean;
54
+ constructor(locale: Locale, revision: Revision, revisionActions: Array<RevisionAction>);
55
+ /**
56
+ * @inheritDoc
57
+ */
58
+ render(): void;
59
+ /**
60
+ * TODO
61
+ */
62
+ select(): void;
63
+ /**
64
+ * TODO
65
+ */
66
+ deselect(): void;
67
+ /**
68
+ * TODO
69
+ */
70
+ highlight(): void;
71
+ /**
72
+ * TODO
73
+ */
74
+ unhighlight(): void;
75
+ }
76
+ /**
77
+ * @eventName setName | revisionSetName
78
+ */
79
+ export interface RevisionSetNameEvent extends BaseEvent {
80
+ name: 'setName' | 'revisionSetName';
81
+ args: [{
82
+ id: string;
83
+ name: string;
84
+ }];
85
+ }
86
+ /**
87
+ * @eventName select | revisionSelected
88
+ */
89
+ export interface RevisionSelectedEvent extends BaseEvent {
90
+ name: 'select' | 'revisionSelected';
91
+ args: [{
92
+ id: string;
93
+ }];
94
+ }
95
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b9a=['revisionNameView','render','filter','unshift','bindTemplate','ck-revision-history-sidebar__revision__controls-wrapper','map','ck-revision-history-sidebar__revision-wrapper','_revision','creator','listenTo','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','change','fieldView','_createdAtFormatted','select','createdAt','ck-revision-history-sidebar__revision','length','deselect','ck-reset','highlight','ck-revision-history-sidebar__actions_dropdown_open','set','isSelected','unhighlight','isHighlighted','closest','name','element','ck-revision-history-sidebar__revision_selected','setName','value','isConfirm','isEnabled','isActionsDropdownOpen','setTemplate','revisionActionsView','div','span','bind','ck-revision-history-sidebar__revision-authors','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision_highlighted','isReady','extendTemplate','ck-revision-history-sidebar__revision__date','srcElement','from','fire'];(function(_0x322284,_0x3b9a91){const _0x5820f7=function(_0x510af9){while(--_0x510af9){_0x322284['push'](_0x322284['shift']());}};_0x5820f7(++_0x3b9a91);}(_0x3b9a,0x136));const _0x5820=function(_0x322284,_0x3b9a91){_0x322284=_0x322284-0x0;let _0x5820f7=_0x3b9a[_0x322284];return _0x5820f7;};import{View as _0x2b9830,createLabeledInputText as _0x234e9e}from'ckeditor5/src/ui';import{ConfirmMixin as _0x29388a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5310e6 from'./revisionnameview';import _0x3a3c63 from'./revisionauthorview';import{dateToPrettyFormat as _0x496ca4}from'./utils';import{createActionsDropdownView as _0x20014a}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class hi extends _0x29388a(_0x2b9830){constructor(_0x2422fa,_0x1fd044,_0x4d5f27){super(_0x2422fa);const _0x687a6f=this[_0x5820('0x2c')],_0x32cc34=function(_0x61a727,_0x402020){const _0xbd5ccc=Array[_0x5820('0x26')](_0x402020['authors'])[_0x5820('0x2a')](_0x4949b3=>_0x4949b3!=_0x402020['creator']);return _0x402020[_0x5820('0x31')]&&_0xbd5ccc[_0x5820('0x2b')](_0x402020['creator']),_0xbd5ccc[_0x5820('0x2e')](_0x120116=>new _0x3a3c63(_0x61a727,_0x120116,_0x120116==_0x402020[_0x5820('0x31')]));}(_0x2422fa,_0x1fd044);this['id']=_0x1fd044['id'],this[_0x5820('0x30')]=_0x1fd044,this[_0x5820('0x1e')](_0x5820('0x12'),_0x5820('0x6'))['to'](_0x1fd044),this[_0x5820('0x1e')](_0x5820('0x4'))['to'](this,_0x5820('0x6'),_0x4bdb4e=>_0x4bdb4e?_0x496ca4(_0x2422fa['uiLanguage'],_0x4bdb4e):void 0x0),this[_0x5820('0xd')]('isSelected',!0x1),this[_0x5820('0xd')](_0x5820('0x10'),!0x1),this['set'](_0x5820('0x19'),!0x1),this[_0x5820('0xd')](_0x5820('0x22'),!0x1),this[_0x5820('0xd')](_0x5820('0x18'),!0x1),this[_0x5820('0x28')]=new _0x5310e6(_0x2422fa,_0x234e9e),this[_0x5820('0x28')]['fieldView'][_0x5820('0x23')]({'attributes':{'maxlength':'220'}}),this[_0x5820('0x28')][_0x5820('0x3')][_0x5820('0x1e')]('value','placeholder')['to'](this,_0x5820('0x12'),_0x5820('0x4')),this['revisionNameView'][_0x5820('0x1e')]('isEnabled')['to'](this,_0x5820('0xe'),this,_0x5820('0x18'),(_0x90ad20,_0x56b41b)=>_0x90ad20&&_0x56b41b),this[_0x5820('0x1b')]=_0x4d5f27&&_0x4d5f27[_0x5820('0x8')]?_0x20014a(this,_0x4d5f27):'',this['revisionActionsView']&&this[_0x5820('0x1b')][_0x5820('0x1e')](_0x5820('0x18'))['to'](this),this[_0x5820('0x1a')]({'tag':'div','attributes':{'class':['ck',_0x5820('0xa'),_0x5820('0x2f'),_0x687a6f['if'](_0x5820('0x17'),_0x5820('0x1'))]},'children':[{'tag':_0x5820('0x1c'),'attributes':{'class':['ck',_0x5820('0xa'),_0x5820('0x7'),_0x687a6f['if'](_0x5820('0x18'),'ck-disabled',_0x4acf03=>!_0x4acf03),_0x687a6f['if'](_0x5820('0xe'),_0x5820('0x14')),_0x687a6f['if'](_0x5820('0x10'),_0x5820('0x21')),_0x687a6f['if']('isActionsDropdownOpen',_0x5820('0xc'))]},'children':[this[_0x5820('0x28')],{'tag':_0x5820('0x1d'),'attributes':{'class':['ck',_0x5820('0x24')]},'children':[{'text':_0x687a6f['to'](_0x5820('0x4'))}]},{'tag':_0x5820('0x1c'),'attributes':{'class':['ck',_0x5820('0x2d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5820('0x1f')]},'children':_0x32cc34}]},this[_0x5820('0x1b')]],'on':{'click':_0x687a6f['to'](_0x1c08bf=>{_0x1c08bf[_0x5820('0x25')][_0x5820('0x11')](_0x5820('0x20'))||this[_0x5820('0x22')]&&this[_0x5820('0x18')]&&this['fire'](_0x5820('0x5'),{'id':this['id']});})}}]});}[_0x5820('0x29')](){super[_0x5820('0x29')]();const _0x5b0e72=this[_0x5820('0x28')][_0x5820('0x3')][_0x5820('0x13')];this[_0x5820('0x0')](_0x5b0e72,_0x5820('0x2'),()=>{this[_0x5820('0x27')](_0x5820('0x15'),{'id':this['id'],'name':_0x5b0e72[_0x5820('0x16')]});});}[_0x5820('0x5')](){this[_0x5820('0xe')]=!0x0;}[_0x5820('0x9')](){this['isSelected']=!0x1;}[_0x5820('0xb')](){this[_0x5820('0x10')]=!0x0;}[_0x5820('0xf')](){this[_0x5820('0x10')]=!0x1;}}
23
+ const _0x1970=['length','render','ck-revision-history-sidebar__revision-authors','select','element','fieldView','unshift','value','220','isEnabled','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision-wrapper','revisionActionsView','setTemplate','revisionNameView','ck-revision-history-sidebar__actions_dropdown_open','from','setName','span','deselect','isSelected','map','srcElement','name','div','closest','isConfirm','isReady','isActionsDropdownOpen','creator','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','fire','createdAt','change','unhighlight','isHighlighted','uiLanguage','bind','ck-reset','_createdAtFormatted','set','ck-revision-history-sidebar__revision_highlighted','bindTemplate','extendTemplate','ck-revision-history-sidebar__revision_selected','authors'];(function(_0x3e3846,_0x1970d5){const _0x4b9d23=function(_0x162835){while(--_0x162835){_0x3e3846['push'](_0x3e3846['shift']());}};_0x4b9d23(++_0x1970d5);}(_0x1970,0x169));const _0x4b9d=function(_0x3e3846,_0x1970d5){_0x3e3846=_0x3e3846-0x0;let _0x4b9d23=_0x1970[_0x3e3846];return _0x4b9d23;};import{View as _0x53c2ad,createLabeledInputText as _0x4422e4}from'ckeditor5/src/ui';import{ConfirmMixin as _0x43824d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bd018 from'./revisionnameview';import _0x350f38 from'./revisionauthorview';import{dateToPrettyFormat as _0x3f4f79}from'./utils';import{createActionsDropdownView as _0x38274e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x43824d(_0x53c2ad){constructor(_0x125f01,_0x375723,_0x3f3c6e){super(_0x125f01);const _0x2c1671=this[_0x4b9d('0x3')],_0x33bdbe=function(_0x205a89,_0x20d455){const _0x638c15=Array[_0x4b9d('0x17')](_0x20d455[_0x4b9d('0x6')])['filter'](_0x17f272=>_0x17f272!=_0x20d455[_0x4b9d('0x24')]);return _0x20d455[_0x4b9d('0x24')]&&_0x638c15[_0x4b9d('0xd')](_0x20d455[_0x4b9d('0x24')]),_0x638c15[_0x4b9d('0x1c')](_0x14e3c1=>new _0x350f38(_0x205a89,_0x14e3c1,_0x14e3c1==_0x20d455[_0x4b9d('0x24')]));}(_0x125f01,_0x375723);this['id']=_0x375723['id'],this['_revision']=_0x375723,this[_0x4b9d('0x2c')]('name',_0x4b9d('0x27'))['to'](_0x375723),this[_0x4b9d('0x2c')]('_createdAtFormatted')['to'](this,_0x4b9d('0x27'),_0x56a620=>_0x56a620?_0x3f4f79(_0x125f01[_0x4b9d('0x2b')],_0x56a620):void 0x0),this[_0x4b9d('0x1')](_0x4b9d('0x1b'),!0x1),this[_0x4b9d('0x1')](_0x4b9d('0x2a'),!0x1),this['set'](_0x4b9d('0x23'),!0x1),this[_0x4b9d('0x1')]('isReady',!0x1),this[_0x4b9d('0x1')]('isEnabled',!0x1),this[_0x4b9d('0x15')]=new _0x3bd018(_0x125f01,_0x4422e4),this['revisionNameView'][_0x4b9d('0xc')][_0x4b9d('0x4')]({'attributes':{'maxlength':_0x4b9d('0xf')}}),this[_0x4b9d('0x15')][_0x4b9d('0xc')][_0x4b9d('0x2c')]('value','placeholder')['to'](this,_0x4b9d('0x1e'),_0x4b9d('0x0')),this[_0x4b9d('0x15')][_0x4b9d('0x2c')](_0x4b9d('0x10'))['to'](this,'isSelected',this,'isEnabled',(_0x3a736d,_0x451a1b)=>_0x3a736d&&_0x451a1b),this['revisionActionsView']=_0x3f3c6e&&_0x3f3c6e[_0x4b9d('0x7')]?_0x38274e(this,_0x3f3c6e):'',this[_0x4b9d('0x13')]&&this['revisionActionsView'][_0x4b9d('0x2c')]('isEnabled')['to'](this),this[_0x4b9d('0x14')]({'tag':'div','attributes':{'class':['ck',_0x4b9d('0x2d'),_0x4b9d('0x12'),_0x2c1671['if'](_0x4b9d('0x21'),_0x4b9d('0x25'))]},'children':[{'tag':_0x4b9d('0x1f'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2c1671['if'](_0x4b9d('0x10'),'ck-disabled',_0x287c38=>!_0x287c38),_0x2c1671['if'](_0x4b9d('0x1b'),_0x4b9d('0x5')),_0x2c1671['if'](_0x4b9d('0x2a'),_0x4b9d('0x2')),_0x2c1671['if'](_0x4b9d('0x23'),_0x4b9d('0x16'))]},'children':[this[_0x4b9d('0x15')],{'tag':_0x4b9d('0x19'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x2c1671['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4b9d('0x9')]},'children':_0x33bdbe}]},this[_0x4b9d('0x13')]],'on':{'click':_0x2c1671['to'](_0x5afba2=>{_0x5afba2[_0x4b9d('0x1d')][_0x4b9d('0x20')](_0x4b9d('0x11'))||this[_0x4b9d('0x22')]&&this[_0x4b9d('0x10')]&&this['fire'](_0x4b9d('0xa'),{'id':this['id']});})}}]});}[_0x4b9d('0x8')](){super[_0x4b9d('0x8')]();const _0x333a55=this['revisionNameView'][_0x4b9d('0xc')][_0x4b9d('0xb')];this['listenTo'](_0x333a55,_0x4b9d('0x28'),()=>{this[_0x4b9d('0x26')](_0x4b9d('0x18'),{'id':this['id'],'name':_0x333a55[_0x4b9d('0xe')]});});}[_0x4b9d('0xa')](){this[_0x4b9d('0x1b')]=!0x0;}[_0x4b9d('0x1a')](){this[_0x4b9d('0x1b')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x4b9d('0x29')](){this['isHighlighted']=!0x1;}}
@@ -1,21 +1,21 @@
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/revision/subrevisioncollapserview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import '../../../theme/revision/subrevisioncollapser.css';
11
- export default class SubrevisionCollapserView extends View {
12
- /**
13
- * @observable
14
- */
15
- isVisible: boolean;
16
- constructor(locale: Locale);
17
- /**
18
- * TODO
19
- */
20
- toggle(): void;
21
- }
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/revision/subrevisioncollapserview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import '../../../theme/revision/subrevisioncollapser.css';
11
+ export default class SubrevisionCollapserView extends View {
12
+ /**
13
+ * @observable
14
+ */
15
+ isVisible: boolean;
16
+ constructor(locale: Locale);
17
+ /**
18
+ * TODO
19
+ */
20
+ toggle(): void;
21
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e5e=['bindTemplate','ck-hidden','button','ck-revision-history-sidebar__subrevision-collapser__inner','_isCollapsed','isVisible','click','ck-revision-history-sidebar__subrevision-collapser','true','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','toggle','span'];(function(_0xa4be5e,_0x2e5e10){const _0x5d8f82=function(_0x11cca6){while(--_0x11cca6){_0xa4be5e['push'](_0xa4be5e['shift']());}};_0x5d8f82(++_0x2e5e10);}(_0x2e5e,0x8f));const _0x5d8f=function(_0xa4be5e,_0x2e5e10){_0xa4be5e=_0xa4be5e-0x0;let _0x5d8f82=_0x2e5e[_0xa4be5e];return _0x5d8f82;};import{View as _0x3cc2aa}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class is extends _0x3cc2aa{constructor(_0x79919c){super(_0x79919c);const _0x369a05=this[_0x5d8f('0x0')];this[_0x5d8f('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x5d8f('0x7'),_0x369a05['if'](_0x5d8f('0x5'),_0x5d8f('0x1'),_0x108b08=>!_0x108b08),_0x369a05['if'](_0x5d8f('0x4'),_0x5d8f('0xa'))],'role':_0x5d8f('0x2'),'aria-pressed':_0x369a05['to']('_isCollapsed',_0x3259e7=>_0x3259e7?'false':_0x5d8f('0x8'))},'children':[{'tag':_0x5d8f('0xc'),'attributes':{'class':['ck',_0x5d8f('0x3')]}}],'on':{'click':_0x369a05['to'](_0x5d8f('0x6'))}});}[_0x5d8f('0xb')](){this[_0x5d8f('0x4')]=!this[_0x5d8f('0x4')];}}
23
+ const _0x19f5=['ck-hidden','button','true','isVisible','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','setTemplate','toggle','span','_isCollapsed','false'];(function(_0x5246c7,_0x19f56e){const _0x48827f=function(_0x24b3eb){while(--_0x24b3eb){_0x5246c7['push'](_0x5246c7['shift']());}};_0x48827f(++_0x19f56e);}(_0x19f5,0x1bd));const _0x4882=function(_0x5246c7,_0x19f56e){_0x5246c7=_0x5246c7-0x0;let _0x48827f=_0x19f5[_0x5246c7];return _0x48827f;};import{View as _0x489f07}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x489f07{constructor(_0x115f9c){super(_0x115f9c);const _0x50ed71=this[_0x4882('0x3')];this[_0x4882('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4882('0x6')]({'tag':_0x4882('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x50ed71['if'](_0x4882('0x2'),_0x4882('0xb'),_0xcddcf6=>!_0xcddcf6),_0x50ed71['if'](_0x4882('0x9'),_0x4882('0x4'))],'role':_0x4882('0x0'),'aria-pressed':_0x50ed71['to'](_0x4882('0x9'),_0xf97da3=>_0xf97da3?_0x4882('0xa'):_0x4882('0x1'))},'children':[{'tag':_0x4882('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x50ed71['to']('click')}});}[_0x4882('0x7')](){this[_0x4882('0x9')]=!this[_0x4882('0x9')];}}
@@ -1,34 +1,34 @@
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/revision/subrevisionview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import '../../../theme/revision/subrevision.css';
11
- import type Revision from '../../revision';
12
- /**
13
- * TODO
14
- */
15
- export default class SubrevisionView extends View {
16
- id: string;
17
- /**
18
- * @observable
19
- */
20
- createdAt: Date;
21
- /**
22
- * @observable
23
- */
24
- isSelected: boolean;
25
- constructor(locale: Locale, subRevision: Revision, parentRevisionId: string);
26
- /**
27
- * TODO
28
- */
29
- select(): void;
30
- /**
31
- * TODO
32
- */
33
- deselect(): void;
34
- }
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/revision/subrevisionview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import '../../../theme/revision/subrevision.css';
11
+ import type Revision from '../../revision';
12
+ /**
13
+ * TODO
14
+ */
15
+ export default class SubrevisionView extends View {
16
+ id: string;
17
+ /**
18
+ * @observable
19
+ */
20
+ createdAt: Date;
21
+ /**
22
+ * @observable
23
+ */
24
+ isSelected: boolean;
25
+ constructor(locale: Locale, subRevision: Revision, parentRevisionId: string);
26
+ /**
27
+ * TODO
28
+ */
29
+ select(): void;
30
+ /**
31
+ * TODO
32
+ */
33
+ deselect(): void;
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1070=['isSelected','createdAt','fire','uiLanguage','setTemplate','set','_parentRevisionId','_createdAtFormatted','ck-revision-history-sidebar__subrevision','ck-reset','bind','deselect','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision','select','div','span'];(function(_0x5aaf2f,_0x1070aa){const _0x54446d=function(_0x3b9ae0){while(--_0x3b9ae0){_0x5aaf2f['push'](_0x5aaf2f['shift']());}};_0x54446d(++_0x1070aa);}(_0x1070,0x1e1));const _0x5444=function(_0x5aaf2f,_0x1070aa){_0x5aaf2f=_0x5aaf2f-0x0;let _0x54446d=_0x1070[_0x5aaf2f];return _0x54446d;};import{View as _0x1f0433}from'ckeditor5/src/ui';import _0x229859 from'./revisionauthorview';import{dateToPrettyFormat as _0x2c6796}from'./utils';import'../../../theme/revision/subrevision.css';export default class ki extends _0x1f0433{constructor(_0x409901,_0x10da65,_0x5e3792){super(_0x409901);const _0x55a304=this['bindTemplate'];this['id']=_0x10da65['id'],this[_0x5444('0xf')](_0x5444('0x6'))['to'](_0x10da65),this[_0x5444('0xa')](_0x5444('0x5'),!0x1),this[_0x5444('0xf')](_0x5444('0xc'))['to'](this,_0x5444('0x6'),_0x19835b=>_0x19835b?_0x2c6796(_0x409901[_0x5444('0x8')],_0x19835b):void 0x0),this[_0x5444('0xb')]=_0x5e3792,this[_0x5444('0x9')]({'tag':_0x5444('0x3'),'attributes':{'class':['ck',_0x5444('0xe'),_0x5444('0x1'),_0x5444('0xd'),_0x55a304['if'](_0x5444('0x5'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x5444('0x4'),'attributes':{'class':['ck',_0x5444('0x11')]},'children':[{'text':_0x55a304['to'](_0x5444('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5444('0x0')]},'children':[new _0x229859(_0x409901,_0x10da65['creator'],!0x0)]}],'on':{'click':_0x55a304['to'](this[_0x5444('0x2')][_0x5444('0xf')](this))}});}[_0x5444('0x2')](){this[_0x5444('0x5')]=!0x0,this[_0x5444('0x7')](_0x5444('0x2'),{'parentId':this[_0x5444('0xb')]});}[_0x5444('0x10')](){this[_0x5444('0x5')]=!0x1;}}
23
+ const _0x5940=['_createdAtFormatted','bind','set','ck-revision-history-sidebar__revision__date','creator','setTemplate','div','ck-revision-history-sidebar__revision-authors','deselect','uiLanguage','createdAt','ck-reset','ck-revision-history-sidebar__revision','bindTemplate','fire','_parentRevisionId','select','isSelected'];(function(_0x3683c9,_0x5940c3){const _0x93a54a=function(_0x5eb15c){while(--_0x5eb15c){_0x3683c9['push'](_0x3683c9['shift']());}};_0x93a54a(++_0x5940c3);}(_0x5940,0x149));const _0x93a5=function(_0x3683c9,_0x5940c3){_0x3683c9=_0x3683c9-0x0;let _0x93a54a=_0x5940[_0x3683c9];return _0x93a54a;};import{View as _0x3cf0c1}from'ckeditor5/src/ui';import _0x2ab3b6 from'./revisionauthorview';import{dateToPrettyFormat as _0x2d1ef7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3cf0c1{constructor(_0x2cde81,_0x1c0df6,_0x360572){super(_0x2cde81);const _0x579158=this[_0x93a5('0x8')];this['id']=_0x1c0df6['id'],this[_0x93a5('0xe')](_0x93a5('0x5'))['to'](_0x1c0df6),this[_0x93a5('0xf')](_0x93a5('0xc'),!0x1),this[_0x93a5('0xe')]('_createdAtFormatted')['to'](this,_0x93a5('0x5'),_0x339f16=>_0x339f16?_0x2d1ef7(_0x2cde81[_0x93a5('0x4')],_0x339f16):void 0x0),this[_0x93a5('0xa')]=_0x360572,this[_0x93a5('0x0')]({'tag':_0x93a5('0x1'),'attributes':{'class':['ck',_0x93a5('0x6'),_0x93a5('0x7'),'ck-revision-history-sidebar__subrevision',_0x579158['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x93a5('0x10')]},'children':[{'text':_0x579158['to'](_0x93a5('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x93a5('0x2')]},'children':[new _0x2ab3b6(_0x2cde81,_0x1c0df6[_0x93a5('0x11')],!0x0)]}],'on':{'click':_0x579158['to'](this[_0x93a5('0xb')][_0x93a5('0xe')](this))}});}[_0x93a5('0xb')](){this[_0x93a5('0xc')]=!0x0,this[_0x93a5('0x9')](_0x93a5('0xb'),{'parentId':this[_0x93a5('0xa')]});}[_0x93a5('0x3')](){this['isSelected']=!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
- export {};
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 {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5a89=['toLocaleTimeString','numeric'];(function(_0x5a6024,_0x5a894c){var _0x977e16=function(_0x2a45cb){while(--_0x2a45cb){_0x5a6024['push'](_0x5a6024['shift']());}};_0x977e16(++_0x5a894c);}(_0x5a89,0x1e0));var _0x977e=function(_0x5a6024,_0x5a894c){_0x5a6024=_0x5a6024-0x0;var _0x977e16=_0x5a89[_0x5a6024];return _0x977e16;};export function dateToPrettyFormat(_0xb316b8,_0x2530c3){return _0x2530c3['toLocaleDateString'](_0xb316b8,{'month':'long','day':_0x977e('0x1')})+',\x20'+_0x2530c3[_0x977e('0x0')](_0xb316b8,{'hour':_0x977e('0x1'),'minute':_0x977e('0x1')});}
23
+ var _0x3981=['numeric','toLocaleTimeString','long'];(function(_0x45a9b0,_0x398165){var _0xebbbaf=function(_0x15ae0c){while(--_0x15ae0c){_0x45a9b0['push'](_0x45a9b0['shift']());}};_0xebbbaf(++_0x398165);}(_0x3981,0x188));var _0xebbb=function(_0x45a9b0,_0x398165){_0x45a9b0=_0x45a9b0-0x0;var _0xebbbaf=_0x3981[_0x45a9b0];return _0xebbbaf;};export function dateToPrettyFormat(_0x4c78ad,_0x524225){return _0x524225['toLocaleDateString'](_0x4c78ad,{'month':_0xebbb('0x0'),'day':_0xebbb('0x1')})+',\x20'+_0x524225[_0xebbb('0x2')](_0x4c78ad,{'hour':_0xebbb('0x1'),'minute':'numeric'});}
@@ -1,81 +1,81 @@
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 { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
6
- import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
7
- import '../../../theme/revisionhistorysaverevisionform.css';
8
- import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
9
- /**
10
- * The media form view controller class.
11
- *
12
- * See {@link module:media-embed/ui/mediaformview~MediaFormView}.
13
- */
14
- export default class RevisionHistorySaveRevisionFormView extends View {
15
- /**
16
- * Tracks information about the DOM focus in the form.
17
- */
18
- readonly focusTracker: FocusTracker;
19
- /**
20
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
21
- */
22
- readonly keystrokes: KeystrokeHandler;
23
- /**
24
- * The revision name input view.
25
- */
26
- revisionNameInputView: LabeledFieldView<InputTextView>;
27
- /**
28
- * The Save button view.
29
- */
30
- saveButtonView: ButtonView;
31
- /**
32
- * The Cancel button view.
33
- */
34
- cancelButtonView: ButtonView;
35
- /**
36
- * The value of the revision name input.
37
- *
38
- * @observable
39
- */
40
- revisionNameInputValue: string;
41
- constructor(locale: Locale);
42
- /**
43
- * @inheritDoc
44
- */
45
- render(): void;
46
- /**
47
- * Focuses the fist {@link #_focusables} in the form.
48
- */
49
- focus(): void;
50
- /**
51
- * The native DOM `value` of the {@link #revisionNameInputView} element.
52
- *
53
- * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
54
- * which works one way only and may not represent the actual state of the component in the DOM.
55
- */
56
- get revisionName(): string;
57
- set revisionName(name: string);
58
- /**
59
- * TODO
60
- */
61
- reset(): void;
62
- }
63
- /**
64
- * Fired when the form view is submitted (when one of the children triggered the submit event),
65
- * e.g. click on {@link #saveButtonView}.
66
- *
67
- * @eventName submit
68
- */
69
- export interface SaveRevisionFormSubmitEvent extends BaseEvent {
70
- name: 'submit';
71
- args: [];
72
- }
73
- /**
74
- * Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}.
75
- *
76
- * @eventName cancel
77
- */
78
- export interface SaveRevisionFormCancelEvent extends BaseEvent {
79
- name: 'cancel';
80
- args: [];
81
- }
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 { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
6
+ import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
7
+ import '../../../theme/revisionhistorysaverevisionform.css';
8
+ import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
9
+ /**
10
+ * The media form view controller class.
11
+ *
12
+ * See {@link module:media-embed/ui/mediaformview~MediaFormView}.
13
+ */
14
+ export default class RevisionHistorySaveRevisionFormView extends View {
15
+ /**
16
+ * Tracks information about the DOM focus in the form.
17
+ */
18
+ readonly focusTracker: FocusTracker;
19
+ /**
20
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
21
+ */
22
+ readonly keystrokes: KeystrokeHandler;
23
+ /**
24
+ * The revision name input view.
25
+ */
26
+ revisionNameInputView: LabeledFieldView<InputTextView>;
27
+ /**
28
+ * The Save button view.
29
+ */
30
+ saveButtonView: ButtonView;
31
+ /**
32
+ * The Cancel button view.
33
+ */
34
+ cancelButtonView: ButtonView;
35
+ /**
36
+ * The value of the revision name input.
37
+ *
38
+ * @observable
39
+ */
40
+ revisionNameInputValue: string;
41
+ constructor(locale: Locale);
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ render(): void;
46
+ /**
47
+ * Focuses the fist {@link #_focusables} in the form.
48
+ */
49
+ focus(): void;
50
+ /**
51
+ * The native DOM `value` of the {@link #revisionNameInputView} element.
52
+ *
53
+ * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
54
+ * which works one way only and may not represent the actual state of the component in the DOM.
55
+ */
56
+ get revisionName(): string;
57
+ set revisionName(name: string);
58
+ /**
59
+ * TODO
60
+ */
61
+ reset(): void;
62
+ }
63
+ /**
64
+ * Fired when the form view is submitted (when one of the children triggered the submit event),
65
+ * e.g. click on {@link #saveButtonView}.
66
+ *
67
+ * @eventName submit
68
+ */
69
+ export interface SaveRevisionFormSubmitEvent extends BaseEvent {
70
+ name: 'submit';
71
+ args: [];
72
+ }
73
+ /**
74
+ * Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}.
75
+ *
76
+ * @eventName cancel
77
+ */
78
+ export interface SaveRevisionFormCancelEvent extends BaseEvent {
79
+ name: 'cancel';
80
+ args: [];
81
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5783=['arrowleft','arrowdown','arrowright','Name\x20of\x20the\x20revision\x20(optional)','check','form','cancel','set','locale','value','delegate','Save','cancelButtonView','listenTo','input','label','220','shift\x20+\x20tab','forEach','submit','revisionNameInputValue','revisionNameInputView','_focusables','render','add','setTemplate','ck-button-cancel','tab','focusTracker','fieldView','focus','trim','element','_createButton','focusFirst','keystrokes','_focusCycler','ck-responsive-form','saveButtonView','_createRevisionNameInput'];(function(_0x10df56,_0x57830a){const _0x227428=function(_0x48c137){while(--_0x48c137){_0x10df56['push'](_0x10df56['shift']());}};_0x227428(++_0x57830a);}(_0x5783,0xaa));const _0x2274=function(_0x10df56,_0x57830a){_0x10df56=_0x10df56-0x0;let _0x227428=_0x5783[_0x10df56];return _0x227428;};import{icons as _0x1f6d80}from'ckeditor5/src/core';import{ButtonView as _0x10b52f,FocusCycler as _0x7c98d8,LabeledFieldView as _0x16cd9c,View as _0x3b6412,ViewCollection as _0x3b4389,createLabeledInputText as _0xb10766,injectCssTransitionDisabler as _0x32802c,submitHandler as _0x284b50}from'ckeditor5/src/ui';import{FocusTracker as _0x5af3f4,KeystrokeHandler as _0x3c6e5d}from'ckeditor5/src/utils';import{getTranslation as _0x1b5f70}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class _t extends _0x3b6412{constructor(_0x440da1){super(_0x440da1),this[_0x2274('0x12')]=new _0x5af3f4(),this[_0x2274('0x19')]=new _0x3c6e5d(),this[_0x2274('0x25')]('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x2274('0x1c')]=this[_0x2274('0x17')](_0x1b5f70(_0x440da1,_0x2274('0x1')),_0x1f6d80[_0x2274('0x22')],'ck-button-save'),this[_0x2274('0x1c')]['type']=_0x2274('0x9'),this[_0x2274('0x2')]=this[_0x2274('0x17')](_0x1b5f70(_0x440da1,'Cancel'),_0x1f6d80[_0x2274('0x24')],_0x2274('0x10'),'cancel'),this[_0x2274('0xc')]=new _0x3b4389(),this['_focusCycler']=new _0x7c98d8({'focusables':this['_focusables'],'focusTracker':this[_0x2274('0x12')],'keystrokeHandler':this[_0x2274('0x19')],'actions':{'focusPrevious':_0x2274('0x7'),'focusNext':_0x2274('0x11')}}),this[_0x2274('0xf')]({'tag':_0x2274('0x23'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x2274('0x1b')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x2274('0x1c')],this[_0x2274('0x2')]]}),_0x32802c(this);}[_0x2274('0xd')](){super[_0x2274('0xd')](),_0x284b50({'view':this}),([this[_0x2274('0xb')],this['saveButtonView'],this[_0x2274('0x2')]][_0x2274('0x8')](_0x2eea70=>{this[_0x2274('0xc')][_0x2274('0xe')](_0x2eea70),this[_0x2274('0x12')][_0x2274('0xe')](_0x2eea70[_0x2274('0x16')]);}),this['keystrokes'][_0x2274('0x3')](this[_0x2274('0x16')]));const _0x184199=_0x28078a=>_0x28078a['stopPropagation']();this[_0x2274('0x19')][_0x2274('0x25')](_0x2274('0x20'),_0x184199),this[_0x2274('0x19')][_0x2274('0x25')](_0x2274('0x1e'),_0x184199),this[_0x2274('0x19')]['set']('arrowup',_0x184199),this['keystrokes']['set'](_0x2274('0x1f'),_0x184199);}[_0x2274('0x14')](){this[_0x2274('0x1a')][_0x2274('0x18')]();}get['revisionName'](){return this[_0x2274('0xb')][_0x2274('0x13')]['element'][_0x2274('0x27')]['trim']();}set['revisionName'](_0x3c60bb){this['revisionNameInputView'][_0x2274('0x13')]['element'][_0x2274('0x27')]=_0x3c60bb[_0x2274('0x15')]();}['reset'](){this[_0x2274('0xb')]['fieldView'][_0x2274('0x16')]['value']='';}[_0x2274('0x1d')](){const _0x691991=new _0x16cd9c(this[_0x2274('0x26')],_0xb10766),_0x5387e4=_0x691991[_0x2274('0x13')];return _0x5387e4['extendTemplate']({'attributes':{'maxlength':_0x2274('0x6')}}),_0x691991[_0x2274('0x5')]=_0x1b5f70(this['locale'],_0x2274('0x21')),_0x5387e4['on'](_0x2274('0x4'),()=>{this[_0x2274('0xa')]=_0x5387e4['element'][_0x2274('0x27')][_0x2274('0x15')]();}),_0x691991;}[_0x2274('0x17')](_0xdb9fe8,_0x153951,_0x236b21,_0xd97b37){const _0x49c370=new _0x10b52f(this['locale']);return _0x49c370[_0x2274('0x25')]({'label':_0xdb9fe8,'icon':_0x153951,'tooltip':!0x0}),_0x49c370['extendTemplate']({'attributes':{'class':_0x236b21}}),_0xd97b37&&_0x49c370[_0x2274('0x0')]('execute')['to'](this,_0xd97b37),_0x49c370;}}
23
+ const _0x42bd=['forEach','220','input','arrowleft','ck-button-cancel','tab','form','ck-responsive-form','_createRevisionNameInput','_focusCycler','reset','focusFirst','listenTo','revisionName','check','extendTemplate','arrowup','_focusables','keystrokes','fieldView','trim','element','locale','add','set','ck-revision-history-save-revision-form','_createButton','value','revisionNameInputView','render','focusTracker','delegate','submit','Cancel','cancelButtonView','Name\x20of\x20the\x20revision\x20(optional)','label','execute','stopPropagation','Save','arrowdown','revisionNameInputValue','saveButtonView','setTemplate'];(function(_0x1fc87c,_0x42bd21){const _0x3ce1f7=function(_0x30c20d){while(--_0x30c20d){_0x1fc87c['push'](_0x1fc87c['shift']());}};_0x3ce1f7(++_0x42bd21);}(_0x42bd,0xe9));const _0x3ce1=function(_0x1fc87c,_0x42bd21){_0x1fc87c=_0x1fc87c-0x0;let _0x3ce1f7=_0x42bd[_0x1fc87c];return _0x3ce1f7;};import{icons as _0x43f97f}from'ckeditor5/src/core';import{ButtonView as _0x39fe7e,FocusCycler as _0x2d987e,LabeledFieldView as _0x576b6d,View as _0xcac4b5,ViewCollection as _0x434963,createLabeledInputText as _0x23ab54,injectCssTransitionDisabler as _0x46fe8e,submitHandler as _0x2c504b}from'ckeditor5/src/ui';import{FocusTracker as _0x5552ed,KeystrokeHandler as _0x1b8562}from'ckeditor5/src/utils';import{getTranslation as _0x3d83fe}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xcac4b5{constructor(_0x36ff71){super(_0x36ff71),this[_0x3ce1('0x11')]=new _0x5552ed(),this[_0x3ce1('0x5')]=new _0x1b8562(),this[_0x3ce1('0xb')](_0x3ce1('0x1c'),''),this[_0x3ce1('0xf')]=this[_0x3ce1('0x27')](),this[_0x3ce1('0x1d')]=this[_0x3ce1('0xd')](_0x3d83fe(_0x36ff71,_0x3ce1('0x1a')),_0x43f97f[_0x3ce1('0x1')],'ck-button-save'),this[_0x3ce1('0x1d')]['type']=_0x3ce1('0x13'),this[_0x3ce1('0x15')]=this[_0x3ce1('0xd')](_0x3d83fe(_0x36ff71,_0x3ce1('0x14')),_0x43f97f['cancel'],_0x3ce1('0x23'),'cancel'),this[_0x3ce1('0x4')]=new _0x434963(),this['_focusCycler']=new _0x2d987e({'focusables':this[_0x3ce1('0x4')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x3ce1('0x5')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x3ce1('0x24')}}),this[_0x3ce1('0x1e')]({'tag':_0x3ce1('0x25'),'attributes':{'class':['ck',_0x3ce1('0xc'),_0x3ce1('0x26')],'tabindex':'-1'},'children':[this[_0x3ce1('0xf')],this[_0x3ce1('0x1d')],this[_0x3ce1('0x15')]]}),_0x46fe8e(this);}[_0x3ce1('0x10')](){super[_0x3ce1('0x10')](),_0x2c504b({'view':this}),([this['revisionNameInputView'],this[_0x3ce1('0x1d')],this[_0x3ce1('0x15')]][_0x3ce1('0x1f')](_0x4ae974=>{this[_0x3ce1('0x4')][_0x3ce1('0xa')](_0x4ae974),this[_0x3ce1('0x11')]['add'](_0x4ae974['element']);}),this[_0x3ce1('0x5')][_0x3ce1('0x2b')](this[_0x3ce1('0x8')]));const _0x222ec5=_0x20e934=>_0x20e934[_0x3ce1('0x19')]();this['keystrokes'][_0x3ce1('0xb')]('arrowright',_0x222ec5),this[_0x3ce1('0x5')][_0x3ce1('0xb')](_0x3ce1('0x22'),_0x222ec5),this[_0x3ce1('0x5')]['set'](_0x3ce1('0x3'),_0x222ec5),this[_0x3ce1('0x5')][_0x3ce1('0xb')](_0x3ce1('0x1b'),_0x222ec5);}['focus'](){this[_0x3ce1('0x28')][_0x3ce1('0x2a')]();}get[_0x3ce1('0x0')](){return this[_0x3ce1('0xf')][_0x3ce1('0x6')]['element'][_0x3ce1('0xe')]['trim']();}set[_0x3ce1('0x0')](_0x2b905b){this['revisionNameInputView'][_0x3ce1('0x6')][_0x3ce1('0x8')][_0x3ce1('0xe')]=_0x2b905b[_0x3ce1('0x7')]();}[_0x3ce1('0x29')](){this[_0x3ce1('0xf')][_0x3ce1('0x6')][_0x3ce1('0x8')]['value']='';}[_0x3ce1('0x27')](){const _0x1c51a6=new _0x576b6d(this[_0x3ce1('0x9')],_0x23ab54),_0x2bed70=_0x1c51a6[_0x3ce1('0x6')];return _0x2bed70['extendTemplate']({'attributes':{'maxlength':_0x3ce1('0x20')}}),_0x1c51a6[_0x3ce1('0x17')]=_0x3d83fe(this[_0x3ce1('0x9')],_0x3ce1('0x16')),_0x2bed70['on'](_0x3ce1('0x21'),()=>{this[_0x3ce1('0x1c')]=_0x2bed70['element']['value'][_0x3ce1('0x7')]();}),_0x1c51a6;}[_0x3ce1('0xd')](_0x1bacd0,_0x5e5f99,_0x20f609,_0x20ad1d){const _0x37bb16=new _0x39fe7e(this['locale']);return _0x37bb16['set']({'label':_0x1bacd0,'icon':_0x5e5f99,'tooltip':!0x0}),_0x37bb16[_0x3ce1('0x2')]({'attributes':{'class':_0x20f609}}),_0x20ad1d&&_0x37bb16[_0x3ce1('0x12')](_0x3ce1('0x18'))['to'](this,_0x20ad1d),_0x37bb16;}}