@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.
Files changed (80) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/revision-history.js +1 -1
  4. package/ckeditor5-metadata.json +1 -1
  5. package/package.json +6 -6
  6. package/src/augmentation.d.ts +29 -29
  7. package/src/changeitem.d.ts +58 -58
  8. package/src/changeitem.js +1 -1
  9. package/src/editor/revisionviewereditor.d.ts +27 -27
  10. package/src/editor/revisionviewereditor.js +1 -1
  11. package/src/editor/revisionviewereditorui.d.ts +28 -28
  12. package/src/editor/revisionviewereditorui.js +1 -1
  13. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  14. package/src/editor/revisionviewereditoruiview.js +1 -1
  15. package/src/index.d.ts +15 -15
  16. package/src/revision.d.ts +153 -153
  17. package/src/revision.js +1 -1
  18. package/src/revisiondiff.d.ts +24 -24
  19. package/src/revisiondiff.js +1 -1
  20. package/src/revisionhistory.d.ts +99 -99
  21. package/src/revisionhistory.js +1 -1
  22. package/src/revisionhistoryadapter.d.ts +64 -64
  23. package/src/revisionhistoryconfig.d.ts +60 -60
  24. package/src/revisionsrepository.d.ts +52 -52
  25. package/src/revisionsrepository.js +1 -1
  26. package/src/revisiontracker.d.ts +81 -81
  27. package/src/revisiontracker.js +1 -1
  28. package/src/revisionviewer.d.ts +25 -25
  29. package/src/revisionviewer.js +1 -1
  30. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  31. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  32. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  33. package/src/ui/revision/revisionauthorview.js +1 -1
  34. package/src/ui/revision/revisionnameview.d.ts +5 -5
  35. package/src/ui/revision/revisionnameview.js +1 -1
  36. package/src/ui/revision/revisionview.d.ts +95 -95
  37. package/src/ui/revision/revisionview.js +1 -1
  38. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  39. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  40. package/src/ui/revision/subrevisionview.d.ts +34 -34
  41. package/src/ui/revision/subrevisionview.js +1 -1
  42. package/src/ui/revision/utils.d.ts +5 -5
  43. package/src/ui/revision/utils.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  45. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  46. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  47. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  49. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  51. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  53. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  54. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  55. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  56. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  57. package/src/ui/revisionssidebar/utils.js +1 -1
  58. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  59. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  60. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  61. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  63. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  64. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  65. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  66. package/src/utils/common-translations.d.ts +11 -11
  67. package/src/utils/common-translations.js +1 -1
  68. package/theme/changesnavigation.css +9 -0
  69. package/theme/revision/revision.css +9 -0
  70. package/theme/revision/revisionactions.css +9 -0
  71. package/theme/revision/revisionauthor.css +9 -0
  72. package/theme/revision/revisionname.css +9 -0
  73. package/theme/revision/subrevision.css +9 -0
  74. package/theme/revision/subrevisioncollapser.css +9 -0
  75. package/theme/revisionhistorysaverevisionform.css +5 -1
  76. package/theme/revisionssidebar/revisionssidebar.css +9 -0
  77. package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
  78. package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
  79. package/theme/revisionviewer.css +9 -0
  80. package/theme/revisionviewerloadingoverlay.css +9 -0
@@ -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 _0xe7ad=['div','change','select','ck-revision-history-sidebar__revision_highlighted','creator','filter','isReady','fire','isActionsDropdownOpen','ck-revision-history-sidebar__revision__date','closest','placeholder','map','revisionActionsView','srcElement','span','highlight','setTemplate','render','revisionNameView','isConfirm','ck-revision-history-sidebar__revision-authors','value','ck-revision-history-sidebar__revision_selected','createdAt','fieldView','listenTo','deselect','isSelected','ck-revision-history-sidebar__revision-wrapper','_revision','extendTemplate','ck-revision-history-sidebar__revision__controls-wrapper','name','bind','ck-revision-history-sidebar__revision','isHighlighted','ck-reset','bindTemplate','_createdAtFormatted','set','from','setName','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','unshift','isEnabled','ck-disabled','.ck-thread__remove-confirm'];(function(_0x24a31a,_0xe7ad44){const _0x41e651=function(_0x425fb5){while(--_0x425fb5){_0x24a31a['push'](_0x24a31a['shift']());}};_0x41e651(++_0xe7ad44);}(_0xe7ad,0xfe));const _0x41e6=function(_0x24a31a,_0xe7ad44){_0x24a31a=_0x24a31a-0x0;let _0x41e651=_0xe7ad[_0x24a31a];return _0x41e651;};import{View as _0xd67992,createLabeledInputText as _0x4d660b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5d1ae3}from'ckeditor5-collaboration/src/collaboration-core';import _0x91bfd2 from'./revisionnameview';import _0x1258e0 from'./revisionauthorview';import{dateToPrettyFormat as _0x47a2a7}from'./utils';import{createActionsDropdownView as _0x1675e1}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5d1ae3(_0xd67992){constructor(_0x226d0a,_0x29cdc2,_0x2e5076){super(_0x226d0a);const _0x42ce0a=this[_0x41e6('0x1d')],_0x46a634=function(_0x17773b,_0x55ca1a){const _0x395fbb=Array[_0x41e6('0x20')](_0x55ca1a['authors'])[_0x41e6('0x2d')](_0x47b86b=>_0x47b86b!=_0x55ca1a[_0x41e6('0x2c')]);return _0x55ca1a['creator']&&_0x395fbb[_0x41e6('0x24')](_0x55ca1a[_0x41e6('0x2c')]),_0x395fbb[_0x41e6('0x3')](_0x5864eb=>new _0x1258e0(_0x17773b,_0x5864eb,_0x5864eb==_0x55ca1a['creator']));}(_0x226d0a,_0x29cdc2);this['id']=_0x29cdc2['id'],this[_0x41e6('0x15')]=_0x29cdc2,this[_0x41e6('0x19')](_0x41e6('0x18'),_0x41e6('0xf'))['to'](_0x29cdc2),this[_0x41e6('0x19')](_0x41e6('0x1e'))['to'](this,_0x41e6('0xf'),_0x269782=>_0x269782?_0x47a2a7(_0x226d0a['uiLanguage'],_0x269782):void 0x0),this[_0x41e6('0x1f')](_0x41e6('0x13'),!0x1),this['set'](_0x41e6('0x1b'),!0x1),this['set'](_0x41e6('0x30'),!0x1),this[_0x41e6('0x1f')](_0x41e6('0x2e'),!0x1),this[_0x41e6('0x1f')](_0x41e6('0x25'),!0x1),this[_0x41e6('0xa')]=new _0x91bfd2(_0x226d0a,_0x4d660b),this[_0x41e6('0xa')]['fieldView'][_0x41e6('0x16')]({'attributes':{'maxlength':'220'}}),this[_0x41e6('0xa')]['fieldView'][_0x41e6('0x19')](_0x41e6('0xd'),_0x41e6('0x2'))['to'](this,_0x41e6('0x18'),_0x41e6('0x1e')),this[_0x41e6('0xa')][_0x41e6('0x19')](_0x41e6('0x25'))['to'](this,'isSelected',this,_0x41e6('0x25'),(_0x1f04aa,_0x453d70)=>_0x1f04aa&&_0x453d70),this['revisionActionsView']=_0x2e5076&&_0x2e5076['length']?_0x1675e1(this,_0x2e5076):'',this[_0x41e6('0x4')]&&this['revisionActionsView'][_0x41e6('0x19')](_0x41e6('0x25'))['to'](this),this[_0x41e6('0x8')]({'tag':'div','attributes':{'class':['ck',_0x41e6('0x1c'),_0x41e6('0x14'),_0x42ce0a['if'](_0x41e6('0xb'),_0x41e6('0x23'))]},'children':[{'tag':_0x41e6('0x28'),'attributes':{'class':['ck',_0x41e6('0x1c'),_0x41e6('0x1a'),_0x42ce0a['if'](_0x41e6('0x25'),_0x41e6('0x26'),_0x174239=>!_0x174239),_0x42ce0a['if'](_0x41e6('0x13'),_0x41e6('0xe')),_0x42ce0a['if'](_0x41e6('0x1b'),_0x41e6('0x2b')),_0x42ce0a['if'](_0x41e6('0x30'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x41e6('0x6'),'attributes':{'class':['ck',_0x41e6('0x0')]},'children':[{'text':_0x42ce0a['to'](_0x41e6('0x1e'))}]},{'tag':'div','attributes':{'class':['ck',_0x41e6('0x17')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x41e6('0xc')]},'children':_0x46a634}]},this[_0x41e6('0x4')]],'on':{'click':_0x42ce0a['to'](_0x414768=>{_0x414768[_0x41e6('0x5')][_0x41e6('0x1')](_0x41e6('0x27'))||this[_0x41e6('0x2e')]&&this[_0x41e6('0x25')]&&this[_0x41e6('0x2f')](_0x41e6('0x2a'),{'id':this['id']});})}}]});}[_0x41e6('0x9')](){super[_0x41e6('0x9')]();const _0x5c6584=this[_0x41e6('0xa')][_0x41e6('0x10')][_0x41e6('0x22')];this[_0x41e6('0x11')](_0x5c6584,_0x41e6('0x29'),()=>{this[_0x41e6('0x2f')](_0x41e6('0x21'),{'id':this['id'],'name':_0x5c6584[_0x41e6('0xd')]});});}[_0x41e6('0x2a')](){this[_0x41e6('0x13')]=!0x0;}[_0x41e6('0x12')](){this['isSelected']=!0x1;}[_0x41e6('0x7')](){this[_0x41e6('0x1b')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
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;}}
@@ -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 _0x100b=['set','true','toggle','click','_isCollapsed','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','span'];(function(_0x2ab082,_0x100bbd){const _0x2c669d=function(_0x4626d3){while(--_0x4626d3){_0x2ab082['push'](_0x2ab082['shift']());}};_0x2c669d(++_0x100bbd);}(_0x100b,0x117));const _0x2c66=function(_0x2ab082,_0x100bbd){_0x2ab082=_0x2ab082-0x0;let _0x2c669d=_0x100b[_0x2ab082];return _0x2c669d;};import{View as _0xcbdad2}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xcbdad2{constructor(_0x3e5eb5){super(_0x3e5eb5);const _0x40b746=this['bindTemplate'];this[_0x2c66('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2c66('0x7')]({'tag':_0x2c66('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x40b746['if']('isVisible','ck-hidden',_0x346360=>!_0x346360),_0x40b746['if']('_isCollapsed',_0x2c66('0x6'))],'role':'button','aria-pressed':_0x40b746['to'](_0x2c66('0x4'),_0x9338a8=>_0x9338a8?_0x2c66('0x5'):_0x2c66('0x1'))},'children':[{'tag':_0x2c66('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x40b746['to'](_0x2c66('0x3'))}});}[_0x2c66('0x2')](){this[_0x2c66('0x4')]=!this[_0x2c66('0x4')];}}
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')];}}
@@ -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 _0x1603=['createdAt','deselect','ck-revision-history-sidebar__revision-authors','span','setTemplate','div','bind','ck-revision-history-sidebar__revision__date','creator','_createdAtFormatted','set','ck-reset','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision_selected','isSelected','select','uiLanguage','fire','bindTemplate'];(function(_0x351797,_0x160337){const _0x531218=function(_0x3703e0){while(--_0x3703e0){_0x351797['push'](_0x351797['shift']());}};_0x531218(++_0x160337);}(_0x1603,0x143));const _0x5312=function(_0x351797,_0x160337){_0x351797=_0x351797-0x0;let _0x531218=_0x1603[_0x351797];return _0x531218;};import{View as _0x328b84}from'ckeditor5/src/ui';import _0xaf4954 from'./revisionauthorview';import{dateToPrettyFormat as _0xc6f1ea}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x328b84{constructor(_0x5e6fba,_0x1b1a63,_0x3eec8d){super(_0x5e6fba);const _0x24ebeb=this[_0x5312('0x12')];this['id']=_0x1b1a63['id'],this[_0x5312('0x6')](_0x5312('0x0'))['to'](_0x1b1a63),this[_0x5312('0xa')](_0x5312('0xe'),!0x1),this[_0x5312('0x6')](_0x5312('0x9'))['to'](this,_0x5312('0x0'),_0x50b8a3=>_0x50b8a3?_0xc6f1ea(_0x5e6fba[_0x5312('0x10')],_0x50b8a3):void 0x0),this['_parentRevisionId']=_0x3eec8d,this[_0x5312('0x4')]({'tag':_0x5312('0x5'),'attributes':{'class':['ck',_0x5312('0xb'),'ck-revision-history-sidebar__revision',_0x5312('0xc'),_0x24ebeb['if'](_0x5312('0xe'),_0x5312('0xd'))]},'children':[{'tag':_0x5312('0x3'),'attributes':{'class':['ck',_0x5312('0x7')]},'children':[{'text':_0x24ebeb['to'](_0x5312('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5312('0x2')]},'children':[new _0xaf4954(_0x5e6fba,_0x1b1a63[_0x5312('0x8')],!0x0)]}],'on':{'click':_0x24ebeb['to'](this['select'][_0x5312('0x6')](this))}});}[_0x5312('0xf')](){this[_0x5312('0xe')]=!0x0,this[_0x5312('0x11')]('select',{'parentId':this['_parentRevisionId']});}[_0x5312('0x1')](){this['isSelected']=!0x1;}}
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;}}
@@ -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 _0xb92c=['numeric','toLocaleDateString','toLocaleTimeString','long'];(function(_0x525cf9,_0xb92c30){var _0x3f5113=function(_0x1d51f0){while(--_0x1d51f0){_0x525cf9['push'](_0x525cf9['shift']());}};_0x3f5113(++_0xb92c30);}(_0xb92c,0x1be));var _0x3f51=function(_0x525cf9,_0xb92c30){_0x525cf9=_0x525cf9-0x0;var _0x3f5113=_0xb92c[_0x525cf9];return _0x3f5113;};export function dateToPrettyFormat(_0x4e62d0,_0x261768){return _0x261768[_0x3f51('0x3')](_0x4e62d0,{'month':_0x3f51('0x1'),'day':_0x3f51('0x2')})+',\x20'+_0x261768[_0x3f51('0x0')](_0x4e62d0,{'hour':_0x3f51('0x2'),'minute':'numeric'});}
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')});}
@@ -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 _0x3e9a=['form','focusTracker','shift\x20+\x20tab','input','label','check','revisionNameInputView','execute','extendTemplate','revisionNameInputValue','arrowright','trim','Cancel','stopPropagation','220','delegate','cancelButtonView','keystrokes','render','add','set','arrowleft','_createRevisionNameInput','fieldView','ck-button-save','saveButtonView','_createButton','type','cancel','value','arrowdown','setTemplate','Save','element','forEach','submit','revisionName','locale','reset'];(function(_0x3445de,_0x3e9aa9){const _0x12b5c4=function(_0x513cfd){while(--_0x513cfd){_0x3445de['push'](_0x3445de['shift']());}};_0x12b5c4(++_0x3e9aa9);}(_0x3e9a,0x13f));const _0x12b5=function(_0x3445de,_0x3e9aa9){_0x3445de=_0x3445de-0x0;let _0x12b5c4=_0x3e9a[_0x3445de];return _0x12b5c4;};import{icons as _0x398b04}from'ckeditor5/src/core';import{ButtonView as _0x330fbc,FocusCycler as _0x267d67,LabeledFieldView as _0x3ece3d,View as _0x3794f1,ViewCollection as _0x18a618,createLabeledInputText as _0xafd341,injectCssTransitionDisabler as _0x899925,submitHandler as _0x3f2288}from'ckeditor5/src/ui';import{FocusTracker as _0x3bfa24,KeystrokeHandler as _0x7199a1}from'ckeditor5/src/utils';import{getTranslation as _0x59f04a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3794f1{constructor(_0x2b65af){super(_0x2b65af),this[_0x12b5('0x21')]=new _0x3bfa24(),this[_0x12b5('0xa')]=new _0x7199a1(),this[_0x12b5('0xd')](_0x12b5('0x2'),''),this[_0x12b5('0x26')]=this['_createRevisionNameInput'](),this[_0x12b5('0x12')]=this[_0x12b5('0x13')](_0x59f04a(_0x2b65af,_0x12b5('0x19')),_0x398b04[_0x12b5('0x25')],_0x12b5('0x11')),this[_0x12b5('0x12')][_0x12b5('0x14')]=_0x12b5('0x1c'),this[_0x12b5('0x9')]=this[_0x12b5('0x13')](_0x59f04a(_0x2b65af,_0x12b5('0x5')),_0x398b04['cancel'],'ck-button-cancel',_0x12b5('0x15')),this['_focusables']=new _0x18a618(),this['_focusCycler']=new _0x267d67({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x12b5('0xa')],'actions':{'focusPrevious':_0x12b5('0x22'),'focusNext':'tab'}}),this[_0x12b5('0x18')]({'tag':_0x12b5('0x20'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x12b5('0x12')],this[_0x12b5('0x9')]]}),_0x899925(this);}[_0x12b5('0xb')](){super['render'](),_0x3f2288({'view':this}),([this[_0x12b5('0x26')],this[_0x12b5('0x12')],this[_0x12b5('0x9')]][_0x12b5('0x1b')](_0x32f1d8=>{this['_focusables'][_0x12b5('0xc')](_0x32f1d8),this[_0x12b5('0x21')][_0x12b5('0xc')](_0x32f1d8[_0x12b5('0x1a')]);}),this[_0x12b5('0xa')]['listenTo'](this[_0x12b5('0x1a')]));const _0xd3eaf0=_0x2dd290=>_0x2dd290[_0x12b5('0x6')]();this[_0x12b5('0xa')][_0x12b5('0xd')](_0x12b5('0x3'),_0xd3eaf0),this['keystrokes'][_0x12b5('0xd')](_0x12b5('0xe'),_0xd3eaf0),this[_0x12b5('0xa')]['set']('arrowup',_0xd3eaf0),this[_0x12b5('0xa')]['set'](_0x12b5('0x17'),_0xd3eaf0);}['focus'](){this['_focusCycler']['focusFirst']();}get[_0x12b5('0x1d')](){return this[_0x12b5('0x26')][_0x12b5('0x10')]['element'][_0x12b5('0x16')]['trim']();}set[_0x12b5('0x1d')](_0xc545eb){this['revisionNameInputView'][_0x12b5('0x10')][_0x12b5('0x1a')][_0x12b5('0x16')]=_0xc545eb['trim']();}[_0x12b5('0x1f')](){this[_0x12b5('0x26')]['fieldView'][_0x12b5('0x1a')][_0x12b5('0x16')]='';}[_0x12b5('0xf')](){const _0x351e21=new _0x3ece3d(this[_0x12b5('0x1e')],_0xafd341),_0x46a967=_0x351e21[_0x12b5('0x10')];return _0x46a967[_0x12b5('0x1')]({'attributes':{'maxlength':_0x12b5('0x7')}}),_0x351e21[_0x12b5('0x24')]=_0x59f04a(this[_0x12b5('0x1e')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x46a967['on'](_0x12b5('0x23'),()=>{this[_0x12b5('0x2')]=_0x46a967[_0x12b5('0x1a')][_0x12b5('0x16')][_0x12b5('0x4')]();}),_0x351e21;}[_0x12b5('0x13')](_0x2ffbf8,_0x20d8aa,_0x45b1aa,_0xe1586f){const _0x940378=new _0x330fbc(this[_0x12b5('0x1e')]);return _0x940378[_0x12b5('0xd')]({'label':_0x2ffbf8,'icon':_0x20d8aa,'tooltip':!0x0}),_0x940378[_0x12b5('0x1')]({'attributes':{'class':_0x45b1aa}}),_0xe1586f&&_0x940378[_0x12b5('0x8')](_0x12b5('0x0'))['to'](this,_0xe1586f),_0x940378;}}
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;}}