@ckeditor/ckeditor5-revision-history 39.0.1 → 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 (137) hide show
  1. package/LICENSE.md +6 -6
  2. package/README.md +11 -11
  3. package/build/revision-history.js +1 -1
  4. package/ckeditor5-metadata.json +1 -1
  5. package/lang/translations/af.po +1 -0
  6. package/lang/translations/ar.po +1 -0
  7. package/lang/translations/az.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en-gb.po +1 -0
  19. package/lang/translations/en.po +1 -0
  20. package/lang/translations/es-co.po +1 -0
  21. package/lang/translations/es.po +1 -0
  22. package/lang/translations/et.po +1 -0
  23. package/lang/translations/fa.po +1 -0
  24. package/lang/translations/fi.po +1 -0
  25. package/lang/translations/fr.po +1 -0
  26. package/lang/translations/gl.po +1 -0
  27. package/lang/translations/he.po +1 -0
  28. package/lang/translations/hi.po +1 -0
  29. package/lang/translations/hr.po +1 -0
  30. package/lang/translations/hu.po +1 -0
  31. package/lang/translations/id.po +1 -0
  32. package/lang/translations/it.po +1 -0
  33. package/lang/translations/ja.po +1 -0
  34. package/lang/translations/jv.po +1 -0
  35. package/lang/translations/ko.po +1 -0
  36. package/lang/translations/ku.po +1 -0
  37. package/lang/translations/lt.po +1 -0
  38. package/lang/translations/lv.po +1 -0
  39. package/lang/translations/ms.po +1 -0
  40. package/lang/translations/ne.po +1 -0
  41. package/lang/translations/nl.po +1 -0
  42. package/lang/translations/no.po +1 -0
  43. package/lang/translations/pl.po +1 -0
  44. package/lang/translations/pt-br.po +1 -0
  45. package/lang/translations/pt.po +1 -0
  46. package/lang/translations/ro.po +1 -0
  47. package/lang/translations/ru.po +1 -0
  48. package/lang/translations/sk.po +1 -0
  49. package/lang/translations/sr-latn.po +1 -0
  50. package/lang/translations/sr.po +1 -0
  51. package/lang/translations/sv.po +1 -0
  52. package/lang/translations/th.po +1 -0
  53. package/lang/translations/tk.po +1 -0
  54. package/lang/translations/tr.po +1 -0
  55. package/lang/translations/tt.po +1 -0
  56. package/lang/translations/ug.po +1 -0
  57. package/lang/translations/uk.po +1 -0
  58. package/lang/translations/ur.po +1 -0
  59. package/lang/translations/vi.po +1 -0
  60. package/lang/translations/zh-cn.po +1 -0
  61. package/lang/translations/zh.po +1 -0
  62. package/package.json +6 -10
  63. package/src/augmentation.d.ts +29 -29
  64. package/src/changeitem.d.ts +58 -58
  65. package/src/changeitem.js +1 -1
  66. package/src/editor/revisionviewereditor.d.ts +27 -27
  67. package/src/editor/revisionviewereditor.js +1 -1
  68. package/src/editor/revisionviewereditorui.d.ts +28 -28
  69. package/src/editor/revisionviewereditorui.js +1 -1
  70. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  71. package/src/editor/revisionviewereditoruiview.js +1 -1
  72. package/src/index.d.ts +15 -15
  73. package/src/revision.d.ts +153 -153
  74. package/src/revision.js +1 -1
  75. package/src/revisiondiff.d.ts +24 -24
  76. package/src/revisiondiff.js +1 -1
  77. package/src/revisionhistory.d.ts +99 -99
  78. package/src/revisionhistory.js +1 -1
  79. package/src/revisionhistoryadapter.d.ts +64 -64
  80. package/src/revisionhistoryconfig.d.ts +60 -60
  81. package/src/revisionsrepository.d.ts +52 -52
  82. package/src/revisionsrepository.js +1 -1
  83. package/src/revisiontracker.d.ts +81 -81
  84. package/src/revisiontracker.js +1 -1
  85. package/src/revisionviewer.d.ts +25 -25
  86. package/src/revisionviewer.js +1 -1
  87. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  88. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  89. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  90. package/src/ui/revision/revisionauthorview.js +1 -1
  91. package/src/ui/revision/revisionnameview.d.ts +5 -5
  92. package/src/ui/revision/revisionnameview.js +1 -1
  93. package/src/ui/revision/revisionview.d.ts +95 -95
  94. package/src/ui/revision/revisionview.js +1 -1
  95. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  96. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  97. package/src/ui/revision/subrevisionview.d.ts +34 -34
  98. package/src/ui/revision/subrevisionview.js +1 -1
  99. package/src/ui/revision/utils.d.ts +5 -5
  100. package/src/ui/revision/utils.js +1 -1
  101. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  102. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  103. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  104. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  105. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  106. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  107. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  108. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  109. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  110. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  111. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  112. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  113. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  114. package/src/ui/revisionssidebar/utils.js +1 -1
  115. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  116. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  117. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  118. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  119. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  120. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  121. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  122. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  123. package/src/utils/common-translations.d.ts +11 -11
  124. package/src/utils/common-translations.js +1 -1
  125. package/theme/changesnavigation.css +9 -0
  126. package/theme/revision/revision.css +9 -0
  127. package/theme/revision/revisionactions.css +11 -0
  128. package/theme/revision/revisionauthor.css +9 -0
  129. package/theme/revision/revisionname.css +9 -0
  130. package/theme/revision/subrevision.css +9 -0
  131. package/theme/revision/subrevisioncollapser.css +9 -0
  132. package/theme/revisionhistorysaverevisionform.css +5 -1
  133. package/theme/revisionssidebar/revisionssidebar.css +9 -0
  134. package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
  135. package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
  136. package/theme/revisionviewer.css +9 -0
  137. package/theme/revisionviewerloadingoverlay.css +9 -0
@@ -1,26 +1,26 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionhistory/revisionhistoryui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RevisionTracker from '../../revisiontracker';
10
- /**
11
- * TODO
12
- */
13
- export default class RevisionHistoryUI extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "RevisionHistoryUI";
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof RevisionTracker];
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionhistory/revisionhistoryui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import RevisionTracker from '../../revisiontracker';
10
+ /**
11
+ * TODO
12
+ */
13
+ export default class RevisionHistoryUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "RevisionHistoryUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof RevisionTracker];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3146=['showRevisionViewerCallback','componentFactory','set','submit','config','pluginName','render','focus','items','saveButtonView','RevisionTracker','add','requires','view','plugins','remove','buttonView','bind','saveRevision','cancel','addMany','Save\x20current\x20revision','isReady','isEnabled','children','execute','change:isOpen','reset','isReadOnly','RevisionHistoryUI','revisionName','length','init','get'];(function(_0x564af6,_0x314681){const _0x49b65d=function(_0x493af0){while(--_0x493af0){_0x564af6['push'](_0x564af6['shift']());}};_0x49b65d(++_0x314681);}(_0x3146,0x1ce));const _0x49b6=function(_0x564af6,_0x314681){_0x564af6=_0x564af6-0x0;let _0x49b65d=_0x3146[_0x564af6];return _0x49b65d;};import{Plugin as _0x524fea}from'ckeditor5/src/core';import{ListView as _0x33c2df,ListItemView as _0x4eb552,ButtonView as _0x4ec388,createDropdown as _0x210e93}from'ckeditor5/src/ui';import _0x490952 from'../../revisiontracker';import _0x40f551 from'./revisionhistorysaverevisionformview';import _0x4c23a4 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0xfa1363}from'../../utils/common-translations';export default class u extends _0x524fea{static get[_0x49b6('0x13')](){return _0x49b6('0x9');}static get[_0x49b6('0x1a')](){return[_0x490952];}[_0x49b6('0xc')](){const _0x4c6426=this['editor'],_0xb6764e=_0x4c6426[_0x49b6('0x1c')][_0x49b6('0xd')](_0x49b6('0x18'));_0x4c6426['ui'][_0x49b6('0xf')][_0x49b6('0x19')]('revisionHistory',_0x117e09=>{const _0x503177=_0x210e93(_0x117e09),_0x3e9309=_0x503177['panelView']['children'],_0x770785=new _0x33c2df(_0x117e09),_0x57f3b5=new _0x4eb552(_0x117e09),_0x56f4ff=new _0x4ec388(_0x117e09),_0x38eef9=new _0x4eb552(_0x117e09),_0x4af3a6=new _0x4ec388(_0x117e09),_0x1b7cec=new _0x40f551(_0x117e09);function _0x11693f(){_0x3e9309[_0x49b6('0xb')]&&_0x3e9309[_0x49b6('0x1d')](0x0),_0x3e9309[_0x49b6('0x19')](_0x770785);}function _0x909f1c(){_0x503177['isOpen']=!0x1,_0x4c6426['editing'][_0x49b6('0x1b')][_0x49b6('0x15')]();}return _0x503177['bind'](_0x49b6('0x3'))['to'](_0xb6764e,_0x49b6('0x2'),_0xb6764e,_0x49b6('0x3'),_0x4c6426,'isReadOnly',(_0x50a39b,_0x128c59,_0x2a146a)=>_0x50a39b&&_0x128c59&&!_0x2a146a),_0x503177[_0x49b6('0x1e')][_0x49b6('0x10')]({'icon':_0x4c23a4,'label':_0xfa1363(_0x117e09,'Revision\x20history'),'tooltip':!0x0}),_0x56f4ff['set']({'label':_0xfa1363(_0x117e09,_0x49b6('0x1')),'withText':!0x0}),_0x56f4ff['bind']('isEnabled')['to'](_0xb6764e,_0x49b6('0x2'),_0xb6764e,_0x49b6('0x3'),_0x4c6426,'isReadOnly',(_0x41f70b,_0x24da6a,_0x5ea1ff)=>_0x41f70b&&_0x24da6a&&!_0x5ea1ff),_0x56f4ff['on'](_0x49b6('0x5'),()=>function(){_0x3e9309[_0x49b6('0xb')]&&_0x3e9309[_0x49b6('0x1d')](0x0),(_0x1b7cec[_0x49b6('0x7')](),_0x3e9309[_0x49b6('0x19')](_0x1b7cec),_0x1b7cec[_0x49b6('0x15')]());}()),_0x4af3a6[_0x49b6('0x10')]({'label':_0xfa1363(_0x117e09,'Open\x20revision\x20history'),'withText':!0x0}),_0x4af3a6[_0x49b6('0x1f')]('isEnabled')['to'](_0xb6764e,'isReady',_0x4c6426,_0x49b6('0x8'),(_0x218201,_0x5bcca5)=>_0x218201&&!_0x5bcca5),_0x4af3a6['on'](_0x49b6('0x5'),()=>{_0x4c6426[_0x49b6('0x12')][_0x49b6('0xd')]('revisionHistory')[_0x49b6('0xe')](),_0x909f1c();}),_0x57f3b5['children'][_0x49b6('0x19')](_0x56f4ff),_0x38eef9[_0x49b6('0x4')][_0x49b6('0x19')](_0x4af3a6),_0x770785[_0x49b6('0x16')][_0x49b6('0x0')]([_0x57f3b5,_0x38eef9]),_0x503177['on'](_0x49b6('0x6'),()=>_0x11693f()),_0x1b7cec[_0x49b6('0x17')][_0x49b6('0x1f')](_0x49b6('0x3'))['to'](_0xb6764e,_0x49b6('0x2'),_0xb6764e,'isEnabled',_0x4c6426,_0x49b6('0x8'),(_0x56fe9c,_0x58b661,_0x182795)=>_0x56fe9c&&_0x58b661&&!_0x182795),_0x1b7cec['on'](_0x49b6('0x11'),()=>(_0x4c6426[_0x49b6('0x1c')][_0x49b6('0xd')](_0x490952)[_0x49b6('0x20')]({'name':_0x1b7cec[_0x49b6('0xa')]}),void _0x909f1c())),_0x1b7cec['on'](_0x49b6('0x21'),()=>_0x11693f()),_0x1b7cec[_0x49b6('0x14')](),_0x11693f(),_0x503177;});}}
23
+ const _0x2d82=['revisionHistory','execute','config','focus','isReady','items','plugins','Open\x20revision\x20history','cancel','pluginName','init','Save\x20current\x20revision','saveRevision','editing','requires','history','submit','get','set','reset','buttonView','showRevisionViewerCallback','isReadOnly','revisionName','editor','children','remove','saveButtonView','componentFactory','bind','isEnabled','add','RevisionHistoryUI'];(function(_0x299e29,_0x2d8290){const _0x4d67e5=function(_0x51c0b6){while(--_0x51c0b6){_0x299e29['push'](_0x299e29['shift']());}};_0x4d67e5(++_0x2d8290);}(_0x2d82,0x112));const _0x4d67=function(_0x299e29,_0x2d8290){_0x299e29=_0x299e29-0x0;let _0x4d67e5=_0x2d82[_0x299e29];return _0x4d67e5;};import{Plugin as _0x56d854,icons as _0x5676a9}from'ckeditor5/src/core';import{ListView as _0x2a1402,ListItemView as _0x568ad6,ButtonView as _0x414283,createDropdown as _0x4857ce}from'ckeditor5/src/ui';import _0x48d3fd from'../../revisiontracker';import _0x1721ca from'./revisionhistorysaverevisionformview';import{getTranslation as _0xbcf14a}from'../../utils/common-translations';export default class u extends _0x56d854{static get[_0x4d67('0x20')](){return _0x4d67('0x16');}static get[_0x4d67('0x4')](){return[_0x48d3fd];}[_0x4d67('0x0')](){const _0x13c01c=this[_0x4d67('0xe')],_0x5d47cd=_0x13c01c['plugins'][_0x4d67('0x7')]('RevisionTracker');_0x13c01c['ui'][_0x4d67('0x12')]['add'](_0x4d67('0x17'),_0x1fc2ea=>{const _0x36ef91=_0x4857ce(_0x1fc2ea),_0x1347c9=_0x36ef91['panelView'][_0x4d67('0xf')],_0x5ba6ab=new _0x2a1402(_0x1fc2ea),_0x983938=new _0x568ad6(_0x1fc2ea),_0x1c0302=new _0x414283(_0x1fc2ea),_0x2b839f=new _0x568ad6(_0x1fc2ea),_0x1e9170=new _0x414283(_0x1fc2ea),_0x184629=new _0x1721ca(_0x1fc2ea);function _0x2b589f(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),_0x1347c9[_0x4d67('0x15')](_0x5ba6ab);}function _0x2369af(){_0x36ef91['isOpen']=!0x1,_0x13c01c[_0x4d67('0x3')]['view']['focus']();}return _0x36ef91[_0x4d67('0x13')](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,'isReadOnly',(_0x4d3aa5,_0x179e6d,_0x3e2443)=>_0x4d3aa5&&_0x179e6d&&!_0x3e2443),_0x36ef91[_0x4d67('0xa')][_0x4d67('0x8')]({'icon':_0x5676a9[_0x4d67('0x5')],'label':_0xbcf14a(_0x1fc2ea,'Revision\x20history'),'tooltip':!0x0}),_0x1c0302[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1')),'withText':!0x0}),_0x1c0302['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,_0x4d67('0xc'),(_0x4329c0,_0x1f0097,_0x21ea1c)=>_0x4329c0&&_0x1f0097&&!_0x21ea1c),_0x1c0302['on'](_0x4d67('0x18'),()=>function(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),(_0x184629[_0x4d67('0x9')](),_0x1347c9[_0x4d67('0x15')](_0x184629),_0x184629[_0x4d67('0x1a')]());}()),_0x1e9170[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1e')),'withText':!0x0}),_0x1e9170[_0x4d67('0x13')]('isEnabled')['to'](_0x5d47cd,_0x4d67('0x1b'),_0x13c01c,_0x4d67('0xc'),(_0x3fc1ed,_0x32d3e7)=>_0x3fc1ed&&!_0x32d3e7),_0x1e9170['on'](_0x4d67('0x18'),()=>{_0x13c01c[_0x4d67('0x19')][_0x4d67('0x7')](_0x4d67('0x17'))[_0x4d67('0xb')](),_0x2369af();}),_0x983938[_0x4d67('0xf')]['add'](_0x1c0302),_0x2b839f[_0x4d67('0xf')][_0x4d67('0x15')](_0x1e9170),_0x5ba6ab[_0x4d67('0x1c')]['addMany']([_0x983938,_0x2b839f]),_0x36ef91['on']('change:isOpen',()=>_0x2b589f()),_0x184629[_0x4d67('0x11')]['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,'isEnabled',_0x13c01c,_0x4d67('0xc'),(_0x217d57,_0x50a060,_0x506e8d)=>_0x217d57&&_0x50a060&&!_0x506e8d),_0x184629['on'](_0x4d67('0x6'),()=>(_0x13c01c[_0x4d67('0x1d')][_0x4d67('0x7')](_0x48d3fd)[_0x4d67('0x2')]({'name':_0x184629[_0x4d67('0xd')]}),void _0x2369af())),_0x184629['on'](_0x4d67('0x1f'),()=>_0x2b589f()),_0x184629['render'](),_0x2b589f(),_0x36ef91;});}}
@@ -1,44 +1,44 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebar
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import RevisionViewer from '../../revisionviewer';
10
- import type { default as RevisionView } from '../revision/revisionview';
11
- /**
12
- * TODO
13
- */
14
- export default class RevisionsSidebar extends Plugin {
15
- static defaultRevisionActions: Array<string>;
16
- static availableRevisionActions: Record<string, RevisionAction>;
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "RevisionsSidebar";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof RevisionViewer];
25
- /**
26
- * @inheritDoc
27
- */
28
- constructor(editor: Editor);
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * @inheritDoc
35
- */
36
- destroy(): void;
37
- }
38
- export interface RevisionAction {
39
- name: string;
40
- class?: string;
41
- action: (editor: Editor, revisionView: RevisionView) => void;
42
- isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
43
- isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
44
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebar
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import RevisionViewer from '../../revisionviewer';
10
+ import type { default as RevisionView } from '../revision/revisionview';
11
+ /**
12
+ * TODO
13
+ */
14
+ export default class RevisionsSidebar extends Plugin {
15
+ static defaultRevisionActions: Array<string>;
16
+ static availableRevisionActions: Record<string, RevisionAction>;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "RevisionsSidebar";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof RevisionViewer];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ constructor(editor: Editor);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ init(): void;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ destroy(): void;
37
+ }
38
+ export interface RevisionAction {
39
+ name: string;
40
+ class?: string;
41
+ action: (editor: Editor, revisionView: RevisionView) => void;
42
+ isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
43
+ isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
44
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2015=['_revisionsRepository','availableRevisionActions','config','change:diff','restoreRevision','highlightRevisions','editor','newRevisionId','appendChild','select','setName','_revisionViewer','Name\x20this\x20revision','_handleEditorDataReady','revisionViews','Restore\x20this\x20revision','action','_handleRevisionSetName','repository','getEarlierVisibleRevision','_revisions','isSelected','_sidebarView','isVisible','render','defaultRevisionActions','assign','compare','Compare\x20against\x20selected','diff','restoreRevisionCallback','listenTo','bind','focus','RevisionsSidebar','isReady','length','_handleRevisionSelected','requires','add','revisionSelected','getLaterVisibleRevision','destroy','getRevisionsInDiff','getRevision','element','_createRevisionActions','isEnabled','locale','getIndex','name','get','timePeriodViews','_handleDiffChange','revisionSetName','fieldView','ready','compareAgainstSelected'];(function(_0xf76734,_0x201590){const _0x404b8f=function(_0x500318){while(--_0x500318){_0xf76734['push'](_0xf76734['shift']());}};_0x404b8f(++_0x201590);}(_0x2015,0xa4));const _0x404b=function(_0xf76734,_0x201590){_0xf76734=_0xf76734-0x0;let _0x404b8f=_0x2015[_0xf76734];return _0x404b8f;};import{Plugin as _0x52b58f}from'ckeditor5/src/core';import _0x2b2742 from'./revisionssidebarview';import _0x2ecd0f from'../../revisionviewer';export default class w extends _0x52b58f{static get['pluginName'](){return _0x404b('0x2c');}static get[_0x404b('0x30')](){return[_0x2ecd0f];}constructor(_0x124691){super(_0x124691),this[_0x404b('0x15')]=_0x124691['plugins'][_0x404b('0x3')](_0x2ecd0f),this[_0x404b('0xa')]=this[_0x404b('0x15')][_0x404b('0x1c')],this[_0x404b('0x20')]=null;}['init'](){const _0x373c7d=this['_revisionsRepository'][_0x404b('0x1e')],_0xcc11d3=this[_0x404b('0x38')](),_0x1cd5e7=this[_0x404b('0x10')]['config'][_0x404b('0x3')]('revisionHistory.viewerSidebarContainer');this[_0x404b('0x20')]=new _0x2b2742(this[_0x404b('0x10')][_0x404b('0x0')],_0x373c7d,_0xcc11d3),this[_0x404b('0x20')]['on'](_0x404b('0x32'),this[_0x404b('0x2f')]['bind'](this)),this[_0x404b('0x20')]['on'](_0x404b('0x6'),this[_0x404b('0x1b')][_0x404b('0x2a')](this)),this['_sidebarView'][_0x404b('0x2a')](_0x404b('0x39'))['to'](this['_revisionViewer']),this[_0x404b('0x20')][_0x404b('0x4')]['on'](_0x404b('0x31'),(_0x51549e,_0x439ac8)=>{_0x439ac8[_0x404b('0x18')]['on'](_0x404b('0x31'),(_0x356ca8,_0x5f1774)=>{_0x5f1774[_0x404b('0x2a')]('isEnabled',_0x404b('0x2d'))['to'](this[_0x404b('0x15')]);});}),this['_sidebarView'][_0x404b('0x22')](),this[_0x404b('0x29')](this[_0x404b('0x10')]['data'],_0x404b('0x8'),this['_handleEditorDataReady']['bind'](this)),this[_0x404b('0x29')](this[_0x404b('0x15')],_0x404b('0xd'),this[_0x404b('0x5')][_0x404b('0x2a')](this)),_0x1cd5e7[_0x404b('0x12')](this[_0x404b('0x20')][_0x404b('0x37')]);}[_0x404b('0x34')](){this[_0x404b('0x20')]['element']['remove'](),this[_0x404b('0x20')][_0x404b('0x34')]();}[_0x404b('0x17')](){const _0x38ad82=this[_0x404b('0xa')][_0x404b('0x36')](0x0);if(_0x38ad82){const _0x42e7d5=this[_0x404b('0xa')][_0x404b('0x1d')](_0x38ad82['id']);this[_0x404b('0x15')]['compare'](_0x38ad82,_0x42e7d5);}}[_0x404b('0x2f')](_0x332fd1,_0x46e433){const _0x32cee8=this[_0x404b('0xa')]['getRevision'](_0x46e433['id']),_0x512dc5=this['_revisionsRepository'][_0x404b('0x1d')](_0x32cee8['id']);this[_0x404b('0x15')][_0x404b('0x25')](_0x32cee8,_0x512dc5);}[_0x404b('0x1b')](_0x4afeba,_0xbde7cf){this[_0x404b('0xa')][_0x404b('0x36')](_0xbde7cf['id'])[_0x404b('0x14')](_0xbde7cf[_0x404b('0x2')]);}['_handleDiffChange'](_0xcfa44,_0xacf1bd,_0x2df0a0){const _0x43c3d3=this[_0x404b('0xa')][_0x404b('0x35')](_0x2df0a0);_0x43c3d3[_0x404b('0x2e')]>0x2?(this['_sidebarView'][_0x404b('0xf')](_0x43c3d3),this[_0x404b('0x20')]['selectRevision'](null)):(this[_0x404b('0x20')]['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x43c3d3[0x0]));}['_createRevisionActions'](){const _0x328580=this[_0x404b('0x10')],_0x9e1351=w[_0x404b('0xb')],_0x19ad57=_0x328580[_0x404b('0xc')][_0x404b('0x3')]('revisionHistory.revisionActions')||w[_0x404b('0x23')];if(_0x19ad57[_0x404b('0x2e')])return _0x19ad57['map'](_0x1080de=>{const _0x255758='string'==typeof _0x1080de?Object[_0x404b('0x24')]({},_0x9e1351[_0x1080de]):_0x1080de;return _0x255758[_0x404b('0x1a')]=_0x255758[_0x404b('0x1a')][_0x404b('0x2a')](this,_0x328580),_0x255758[_0x404b('0x21')]&&(_0x255758[_0x404b('0x21')]=_0x255758[_0x404b('0x21')][_0x404b('0x2a')](this,_0x328580)),_0x255758;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x404b('0x26'),'action':({plugins:_0x5f53d4},_0x207ce8)=>{const _0x411465=_0x5f53d4[_0x404b('0x3')](_0x2ecd0f),_0x302e6a=_0x411465[_0x404b('0x1c')];let _0x18de45=_0x411465[_0x404b('0x27')][_0x404b('0x11')],_0x44854a=_0x207ce8['id'];_0x302e6a[_0x404b('0x1')](_0x18de45)>_0x302e6a['getIndex'](_0x44854a)&&([_0x18de45,_0x44854a]=[_0x44854a,_0x18de45]),_0x411465[_0x404b('0x25')](_0x18de45,_0x44854a);},'isVisible':({plugins:_0x22496f},_0x372536)=>{const _0x495148=_0x22496f[_0x404b('0x3')](_0x2ecd0f);return!(_0x495148['repository'][_0x404b('0x35')](_0x495148['diff'])[_0x404b('0x2e')]>0x2)&&!_0x372536[_0x404b('0x1f')];}},'restoreRevision':{'name':_0x404b('0x19'),'action':(_0x450087,{id:_0x5f26fd})=>{_0x450087[_0x404b('0xc')][_0x404b('0x3')]('revisionHistory')[_0x404b('0x28')](_0x5f26fd);},'isVisible':({plugins:_0x4271a2},_0x3f3b71)=>!!_0x4271a2['get'](_0x2ecd0f)[_0x404b('0x1c')][_0x404b('0x33')](_0x3f3b71['id'])},'nameRevision':{'name':_0x404b('0x16'),'action':({plugins:_0x478cf2},{id:_0x182ed9,revisionNameView:_0x371331})=>{const _0xbb4fb6=_0x478cf2[_0x404b('0x3')](_0x2ecd0f),_0x1f7d50=_0xbb4fb6['repository']['getEarlierVisibleRevision'](_0x182ed9);_0xbb4fb6[_0x404b('0x25')](_0x182ed9,_0x1f7d50),_0x371331[_0x404b('0x2b')](),_0x371331[_0x404b('0x7')][_0x404b('0x13')]();}}},w[_0x404b('0x23')]=[_0x404b('0x9'),_0x404b('0xe'),'nameRevision'];
23
+ const _0x45a1=['locale','getLaterVisibleRevision','_createRevisionActions','isVisible','compare','Restore\x20this\x20revision','getRevision','focus','pluginName','bind','_handleRevisionSetName','map','repository','init','timePeriodViews','_revisionViewer','revisionHistory','RevisionsSidebar','isEnabled','plugins','assign','_handleEditorDataReady','element','render','destroy','get','select','change:diff','_revisions','Compare\x20against\x20selected','editor','length','isReady','nameRevision','add','Name\x20this\x20revision','getEarlierVisibleRevision','highlightRevisions','revisionSelected','appendChild','data','requires','remove','_handleRevisionSelected','revisionViews','name','_handleDiffChange','selectRevision','_revisionsRepository','compareAgainstSelected','getIndex','config','availableRevisionActions','restoreRevisionCallback','revisionSetName','newRevisionId','action','defaultRevisionActions','getRevisionsInDiff','diff','_sidebarView'];(function(_0x4d6521,_0x45a17c){const _0x400439=function(_0x4466c6){while(--_0x4466c6){_0x4d6521['push'](_0x4d6521['shift']());}};_0x400439(++_0x45a17c);}(_0x45a1,0x1a9));const _0x4004=function(_0x4d6521,_0x45a17c){_0x4d6521=_0x4d6521-0x0;let _0x400439=_0x45a1[_0x4d6521];return _0x400439;};import{Plugin as _0x4d5889}from'ckeditor5/src/core';import _0x4827d0 from'./revisionssidebarview';import _0x2a6779 from'../../revisionviewer';export default class w extends _0x4d5889{static get[_0x4004('0xa')](){return _0x4004('0x13');}static get[_0x4004('0x2b')](){return[_0x2a6779];}constructor(_0x53e3b8){super(_0x53e3b8),this['_revisionViewer']=_0x53e3b8[_0x4004('0x15')][_0x4004('0x1b')](_0x2a6779),this[_0x4004('0x32')]=this['_revisionViewer']['repository'],this[_0x4004('0x1')]=null;}[_0x4004('0xf')](){const _0x3e308e=this[_0x4004('0x32')][_0x4004('0x1e')],_0xe9c757=this[_0x4004('0x4')](),_0x3843af=this[_0x4004('0x20')][_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.viewerSidebarContainer');this[_0x4004('0x1')]=new _0x4827d0(this[_0x4004('0x20')][_0x4004('0x2')],_0x3e308e,_0xe9c757),this[_0x4004('0x1')]['on'](_0x4004('0x28'),this[_0x4004('0x2d')][_0x4004('0xb')](this)),this['_sidebarView']['on'](_0x4004('0x38'),this[_0x4004('0xc')][_0x4004('0xb')](this)),this[_0x4004('0x1')][_0x4004('0xb')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView'][_0x4004('0x10')]['on'](_0x4004('0x24'),(_0x3131ce,_0x470d70)=>{_0x470d70[_0x4004('0x2e')]['on']('add',(_0x36785a,_0x4b0b06)=>{_0x4b0b06[_0x4004('0xb')](_0x4004('0x14'),_0x4004('0x22'))['to'](this[_0x4004('0x11')]);});}),this['_sidebarView'][_0x4004('0x19')](),this['listenTo'](this[_0x4004('0x20')][_0x4004('0x2a')],'ready',this[_0x4004('0x17')][_0x4004('0xb')](this)),this['listenTo'](this[_0x4004('0x11')],_0x4004('0x1d'),this[_0x4004('0x30')]['bind'](this)),_0x3843af[_0x4004('0x29')](this[_0x4004('0x1')]['element']);}['destroy'](){this['_sidebarView'][_0x4004('0x18')][_0x4004('0x2c')](),this[_0x4004('0x1')][_0x4004('0x1a')]();}[_0x4004('0x17')](){const _0x10d1e5=this['_revisionsRepository'][_0x4004('0x8')](0x0);if(_0x10d1e5){const _0x2871a3=this[_0x4004('0x32')][_0x4004('0x26')](_0x10d1e5['id']);this[_0x4004('0x11')][_0x4004('0x6')](_0x10d1e5,_0x2871a3);}}[_0x4004('0x2d')](_0x5aacac,_0x4cf397){const _0x9711ee=this['_revisionsRepository'][_0x4004('0x8')](_0x4cf397['id']),_0x4abe35=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9711ee['id']);this[_0x4004('0x11')]['compare'](_0x9711ee,_0x4abe35);}[_0x4004('0xc')](_0x18a979,_0xdf1c1){this[_0x4004('0x32')][_0x4004('0x8')](_0xdf1c1['id'])['setName'](_0xdf1c1[_0x4004('0x2f')]);}[_0x4004('0x30')](_0x3372b1,_0x479d00,_0x2286fc){const _0x3ee6e8=this['_revisionsRepository'][_0x4004('0x3c')](_0x2286fc);_0x3ee6e8[_0x4004('0x21')]>0x2?(this[_0x4004('0x1')][_0x4004('0x27')](_0x3ee6e8),this['_sidebarView'][_0x4004('0x31')](null)):(this[_0x4004('0x1')][_0x4004('0x27')]([]),this[_0x4004('0x1')][_0x4004('0x31')](_0x3ee6e8[0x0]));}[_0x4004('0x4')](){const _0x3b8b56=this[_0x4004('0x20')],_0x5d4b89=w[_0x4004('0x36')],_0x50319a=_0x3b8b56[_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.revisionActions')||w[_0x4004('0x3b')];if(_0x50319a[_0x4004('0x21')])return _0x50319a[_0x4004('0xd')](_0x51d0f1=>{const _0x165b26='string'==typeof _0x51d0f1?Object[_0x4004('0x16')]({},_0x5d4b89[_0x51d0f1]):_0x51d0f1;return _0x165b26[_0x4004('0x3a')]=_0x165b26[_0x4004('0x3a')][_0x4004('0xb')](this,_0x3b8b56),_0x165b26[_0x4004('0x5')]&&(_0x165b26[_0x4004('0x5')]=_0x165b26[_0x4004('0x5')][_0x4004('0xb')](this,_0x3b8b56)),_0x165b26;});}}w[_0x4004('0x36')]={'compareAgainstSelected':{'name':_0x4004('0x1f'),'action':({plugins:_0x34aed9},_0x1cb78b)=>{const _0x1cb35e=_0x34aed9['get'](_0x2a6779),_0x2a450c=_0x1cb35e[_0x4004('0xe')];let _0xaa3e31=_0x1cb35e[_0x4004('0x0')][_0x4004('0x39')],_0xc6adc3=_0x1cb78b['id'];_0x2a450c[_0x4004('0x34')](_0xaa3e31)>_0x2a450c['getIndex'](_0xc6adc3)&&([_0xaa3e31,_0xc6adc3]=[_0xc6adc3,_0xaa3e31]),_0x1cb35e[_0x4004('0x6')](_0xaa3e31,_0xc6adc3);},'isVisible':({plugins:_0x36b440},_0x370b1b)=>{const _0x4ed8d5=_0x36b440[_0x4004('0x1b')](_0x2a6779);return!(_0x4ed8d5[_0x4004('0xe')]['getRevisionsInDiff'](_0x4ed8d5[_0x4004('0x0')])[_0x4004('0x21')]>0x2)&&!_0x370b1b['isSelected'];}},'restoreRevision':{'name':_0x4004('0x7'),'action':(_0x3947d8,{id:_0x51ec51})=>{_0x3947d8['config']['get'](_0x4004('0x12'))[_0x4004('0x37')](_0x51ec51);},'isVisible':({plugins:_0x2d8a84},_0x1373de)=>!!_0x2d8a84['get'](_0x2a6779)[_0x4004('0xe')][_0x4004('0x3')](_0x1373de['id'])},'nameRevision':{'name':_0x4004('0x25'),'action':({plugins:_0x6eca2d},{id:_0x48b4e4,revisionNameView:_0x3445d6})=>{const _0x52dd4e=_0x6eca2d[_0x4004('0x1b')](_0x2a6779),_0x5ab1d5=_0x52dd4e['repository'][_0x4004('0x26')](_0x48b4e4);_0x52dd4e[_0x4004('0x6')](_0x48b4e4,_0x5ab1d5),_0x3445d6[_0x4004('0x9')](),_0x3445d6['fieldView'][_0x4004('0x1c')]();}}},w[_0x4004('0x3b')]=[_0x4004('0x33'),'restoreRevision',_0x4004('0x23')];
@@ -1,5 +1,5 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import '../../../theme/revisionssidebar/revisionssidebarheader.css';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import '../../../theme/revisionssidebar/revisionssidebarheader.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b05=['ck-revision-history-sidebar__header','content','span','ck-revision-history-sidebar__header__label','setTemplate','div','Revision\x20history'];(function(_0x2c5db1,_0x5b05ff){const _0x360798=function(_0x199c12){while(--_0x199c12){_0x2c5db1['push'](_0x2c5db1['shift']());}};_0x360798(++_0x5b05ff);}(_0x5b05,0x11e));const _0x3607=function(_0x2c5db1,_0x5b05ff){_0x2c5db1=_0x2c5db1-0x0;let _0x360798=_0x5b05[_0x2c5db1];return _0x360798;};import{View as _0x291fa1,IconView as _0x508635}from'ckeditor5/src/ui';import{getTranslation as _0x1a2238}from'../../utils/common-translations';import _0x412f63 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x291fa1{constructor(_0x208a1a){super(_0x208a1a);const _0x5e9785=new _0x508635();_0x5e9785[_0x3607('0x2')]=_0x412f63,this[_0x3607('0x5')]({'tag':_0x3607('0x6'),'attributes':{'class':['ck','ck-reset_all',_0x3607('0x1')]},'children':[_0x5e9785,{'tag':_0x3607('0x3'),'attributes':{'class':['ck',_0x3607('0x4')]},'children':[_0x1a2238(_0x208a1a,_0x3607('0x0'))]}]});}}
23
+ const _0x38c0=['div','content','span','setTemplate','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0x10bd87,_0x38c0fc){const _0x21d5c9=function(_0x416229){while(--_0x416229){_0x10bd87['push'](_0x10bd87['shift']());}};_0x21d5c9(++_0x38c0fc);}(_0x38c0,0xaa));const _0x21d5=function(_0x10bd87,_0x38c0fc){_0x10bd87=_0x10bd87-0x0;let _0x21d5c9=_0x38c0[_0x10bd87];return _0x21d5c9;};import{View as _0x4586fe,IconView as _0x406699}from'ckeditor5/src/ui';import{getTranslation as _0xfa1a3b}from'../../utils/common-translations';import{icons as _0x2b836f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class sr extends _0x4586fe{constructor(_0x5d70fe){super(_0x5d70fe);const _0x48b7a2=new _0x406699();_0x48b7a2[_0x21d5('0x6')]=_0x2b836f['history'],this[_0x21d5('0x1')]({'tag':_0x21d5('0x5'),'attributes':{'class':['ck',_0x21d5('0x4'),_0x21d5('0x2')]},'children':[_0x48b7a2,{'tag':_0x21d5('0x0'),'attributes':{'class':['ck',_0x21d5('0x3')]},'children':[_0xfa1a3b(_0x5d70fe,'Revision\x20history')]}]});}}
@@ -1,29 +1,29 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
7
- */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import RevisionView from '../revision/revisionview';
11
- import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
12
- import type { RevisionAction } from './revisionssidebar';
13
- import type Revision from '../../revision';
14
- /**
15
- * TODO
16
- */
17
- export default class RevisionsSidebarTimePeriodView extends View {
18
- startDate: Date;
19
- revisionViews: ViewCollection<RevisionView>;
20
- constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
21
- /**
22
- * TODO
23
- */
24
- addRevision(newRevision: Revision): void;
25
- /**
26
- * TODO
27
- */
28
- removeRevision(revision: Revision): void;
29
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import RevisionView from '../revision/revisionview';
11
+ import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
12
+ import type { RevisionAction } from './revisionssidebar';
13
+ import type Revision from '../../revision';
14
+ /**
15
+ * TODO
16
+ */
17
+ export default class RevisionsSidebarTimePeriodView extends View {
18
+ startDate: Date;
19
+ revisionViews: ViewCollection<RevisionView>;
20
+ constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
21
+ /**
22
+ * TODO
23
+ */
24
+ addRevision(newRevision: Revision): void;
25
+ /**
26
+ * TODO
27
+ */
28
+ removeRevision(revision: Revision): void;
29
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1535=['uiLanguage','removeRevision','span','setTemplate','find','delegate','ck-revision-history-sidebar__time-period__revisions','remove','ck-revision-history-sidebar__time-period__label','addRevision','ck-revision-history-sidebar__time-period','select','div','locale','setName','add','_revisionActions','createCollection','revisionViews','localizedPeriodName'];(function(_0x4a76c6,_0x15353c){const _0x5a6781=function(_0x16b436){while(--_0x16b436){_0x4a76c6['push'](_0x4a76c6['shift']());}};_0x5a6781(++_0x15353c);}(_0x1535,0x19d));const _0x5a67=function(_0x4a76c6,_0x15353c){_0x4a76c6=_0x4a76c6-0x0;let _0x5a6781=_0x1535[_0x4a76c6];return _0x5a6781;};import{View as _0x12b854}from'ckeditor5/src/ui';import _0x231bfe from'../revision/revisionview';import{getDateTimePeriodInfo as _0x13f026}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x12b854{constructor(_0xb527b,_0x1fbf3e,_0x413361){super(_0xb527b);const _0x17230d=_0x13f026(_0x1fbf3e,this[_0x5a67('0x0')][_0x5a67('0x7')])[_0x5a67('0x6')];this['startDate']=_0x1fbf3e,this[_0x5a67('0x5')]=this[_0x5a67('0x4')](),this[_0x5a67('0x3')]=_0x413361,this[_0x5a67('0x5')][_0x5a67('0xc')](_0x5a67('0x12'))['to'](this),this[_0x5a67('0x5')][_0x5a67('0xc')](_0x5a67('0x1'))['to'](this),this[_0x5a67('0xa')]({'tag':_0x5a67('0x13'),'attributes':{'class':['ck',_0x5a67('0x11')]},'children':[{'tag':_0x5a67('0x9'),'attributes':{'class':['ck',_0x5a67('0xf')]},'children':[{'text':_0x17230d}]},{'tag':_0x5a67('0x13'),'attributes':{'class':['ck',_0x5a67('0xd')]},'children':this[_0x5a67('0x5')]}]});}[_0x5a67('0x10')](_0x231cd2){const _0x7cafa=new _0x231bfe(this[_0x5a67('0x0')],_0x231cd2,this[_0x5a67('0x3')]);this[_0x5a67('0x5')][_0x5a67('0x2')](_0x7cafa);}[_0x5a67('0x8')](_0x571afe){const _0x263ae0=this[_0x5a67('0x5')][_0x5a67('0xb')](_0x287bd4=>_0x287bd4['id']===_0x571afe['id']);this[_0x5a67('0x5')][_0x5a67('0xe')](_0x263ae0);}}
23
+ const _0xfc52=['revisionViews','add','removeRevision','startDate','localizedPeriodName','createCollection','uiLanguage','delegate','locale','ck-revision-history-sidebar__time-period','div','ck-revision-history-sidebar__time-period__label','span','addRevision','ck-revision-history-sidebar__time-period__revisions'];(function(_0x15cb64,_0xfc5275){const _0x54f76c=function(_0x4eada5){while(--_0x4eada5){_0x15cb64['push'](_0x15cb64['shift']());}};_0x54f76c(++_0xfc5275);}(_0xfc52,0xbf));const _0x54f7=function(_0x15cb64,_0xfc5275){_0x15cb64=_0x15cb64-0x0;let _0x54f76c=_0xfc52[_0x15cb64];return _0x54f76c;};import{View as _0x1b0c29}from'ckeditor5/src/ui';import _0x4c93b1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x324a48}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class di extends _0x1b0c29{constructor(_0x1c6e59,_0x4cf268,_0x55a452){super(_0x1c6e59);const _0x3d1c6e=_0x324a48(_0x4cf268,this['locale'][_0x54f7('0xa')])[_0x54f7('0x8')];this[_0x54f7('0x7')]=_0x4cf268,this[_0x54f7('0x4')]=this[_0x54f7('0x9')](),this['_revisionActions']=_0x55a452,this[_0x54f7('0x4')][_0x54f7('0xb')]('select')['to'](this),this[_0x54f7('0x4')][_0x54f7('0xb')]('setName')['to'](this),this['setTemplate']({'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0xd')]},'children':[{'tag':_0x54f7('0x1'),'attributes':{'class':['ck',_0x54f7('0x0')]},'children':[{'text':_0x3d1c6e}]},{'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0x3')]},'children':this[_0x54f7('0x4')]}]});}[_0x54f7('0x2')](_0x401cd2){const _0x5b6adb=new _0x4c93b1(this[_0x54f7('0xc')],_0x401cd2,this['_revisionActions']);this['revisionViews'][_0x54f7('0x5')](_0x5b6adb);}[_0x54f7('0x6')](_0x2a8041){const _0xe10c41=this[_0x54f7('0x4')]['find'](_0x3d5376=>_0x3d5376['id']===_0x2a8041['id']);this[_0x54f7('0x4')]['remove'](_0xe10c41);}}
@@ -1,44 +1,44 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebarview
7
- */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale, Collection } from 'ckeditor5/src/utils';
10
- import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
11
- import '../../../theme/revisionssidebar/revisionssidebar.css';
12
- import type { default as RevisionView } from '../revision/revisionview';
13
- import type { RevisionAction } from './revisionssidebar';
14
- import type Revision from '../../revision';
15
- /**
16
- * TODO
17
- */
18
- export default class RevisionsSidebarView extends View {
19
- timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
20
- /**
21
- * @observable
22
- */
23
- isEnabled: boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
28
- /**
29
- * @inheritDoc
30
- */
31
- render(): void;
32
- /**
33
- * TODO
34
- */
35
- get revisionViews(): Array<RevisionView>;
36
- /**
37
- * TODO
38
- */
39
- selectRevision(revisionToSelect: Revision | null): void;
40
- /**
41
- * TODO
42
- */
43
- highlightRevisions(revisionsToHighlight: Array<Revision>): void;
44
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebarview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import type { Locale, Collection } from 'ckeditor5/src/utils';
10
+ import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
11
+ import '../../../theme/revisionssidebar/revisionssidebar.css';
12
+ import type { default as RevisionView } from '../revision/revisionview';
13
+ import type { RevisionAction } from './revisionssidebar';
14
+ import type Revision from '../../revision';
15
+ /**
16
+ * TODO
17
+ */
18
+ export default class RevisionsSidebarView extends View {
19
+ timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
20
+ /**
21
+ * @observable
22
+ */
23
+ isEnabled: boolean;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ render(): void;
32
+ /**
33
+ * TODO
34
+ */
35
+ get revisionViews(): Array<RevisionView>;
36
+ /**
37
+ * TODO
38
+ */
39
+ selectRevision(revisionToSelect: Revision | null): void;
40
+ /**
41
+ * TODO
42
+ */
43
+ highlightRevisions(revisionsToHighlight: Array<Revision>): void;
44
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4282=['ck-rounded-corners','setName','locale','startDate','map','delegate','isEnabled','ck-revision-history-sidebar__timeline','_addRevision','div','uiLanguage','render','removeRevision','bindTemplate','createdAt','_revisionActions','find','revisionViews','getTime','_removeRevision','add','fire','highlight','some','_revisions','timePeriodViews','createCollection','unhighlight','_getTimePeriodViewByStartDate','addRevision','select','highlightRevisions','revisionSelected','remove','revisionSetName','set','get'];(function(_0x9ffb24,_0x428222){const _0x2dafd3=function(_0x107c6d){while(--_0x107c6d){_0x9ffb24['push'](_0x9ffb24['shift']());}};_0x2dafd3(++_0x428222);}(_0x4282,0x8e));const _0x2daf=function(_0x9ffb24,_0x428222){_0x9ffb24=_0x9ffb24-0x0;let _0x2dafd3=_0x4282[_0x9ffb24];return _0x2dafd3;};import{View as _0x427819}from'ckeditor5/src/ui';import _0xfe6eed from'./revisionssidebartimeperiodview';import _0xe97802 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x389ec0}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x427819{constructor(_0x2ee37b,_0x10efb8,_0x494678){super(_0x2ee37b);const _0x12bc29=this[_0x2daf('0x13')];this[_0x2daf('0x1f')]=this[_0x2daf('0x20')](),this[_0x2daf('0x1f')][_0x2daf('0xb')]('select')['to'](this),this['timePeriodViews'][_0x2daf('0xb')]('setName')['to'](this),this[_0x2daf('0x1e')]=_0x10efb8,this[_0x2daf('0x15')]=_0x494678,this['on'](_0x2daf('0x24'),(_0x423c74,_0x2038c1)=>{this[_0x2daf('0x1b')](_0x2daf('0x1'),_0x2038c1);}),this['on'](_0x2daf('0x7'),(_0x434dee,_0x5d515a)=>{this[_0x2daf('0x1b')](_0x2daf('0x3'),_0x5d515a);}),this[_0x2daf('0x4')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x2daf('0xf'),'attributes':{'class':['ck','ck-reset',_0x2daf('0x6'),'ck-revision-history-sidebar']},'children':[new _0xe97802(_0x2ee37b),{'tag':_0x2daf('0xf'),'attributes':{'class':['ck',_0x2daf('0xd'),_0x12bc29['if'](_0x2daf('0xc'),'ck-disabled',_0x3694a1=>!_0x3694a1)]},'children':this[_0x2daf('0x1f')]}]});}[_0x2daf('0x11')](){super[_0x2daf('0x11')]();for(const _0x48014a of this[_0x2daf('0x1e')])this[_0x2daf('0xe')](_0x48014a);this[_0x2daf('0x1e')]['on'](_0x2daf('0x1a'),(_0x54c312,_0x5dbdd4)=>{this[_0x2daf('0xe')](_0x5dbdd4);}),this[_0x2daf('0x1e')]['on'](_0x2daf('0x2'),(_0x249906,_0x38849b)=>{this[_0x2daf('0x19')](_0x38849b);});}get[_0x2daf('0x17')](){return this[_0x2daf('0x1f')][_0x2daf('0xa')](_0x927e9e=>_0x927e9e[_0x2daf('0x17')]['map'](_0x39c4ec=>_0x39c4ec))['flat']();}['selectRevision'](_0x6323ca){for(const _0x493386 of this['revisionViews'])_0x6323ca&&_0x6323ca['id']===_0x493386['id']?_0x493386[_0x2daf('0x24')]():_0x493386['deselect']();}[_0x2daf('0x0')](_0x195daf){for(const _0x17bbf2 of this['revisionViews'])_0x195daf[_0x2daf('0x1d')](({id:_0x45f331})=>_0x45f331===_0x17bbf2['id'])?_0x17bbf2[_0x2daf('0x1c')]():_0x17bbf2[_0x2daf('0x21')]();}[_0x2daf('0xe')](_0x135621){const _0x1b4ac9=_0x389ec0(_0x135621[_0x2daf('0x14')],this[_0x2daf('0x8')][_0x2daf('0x10')])['startDate'];let _0x4d3da7=this[_0x2daf('0x1f')][_0x2daf('0x5')](0x0);_0x4d3da7&&_0x4d3da7[_0x2daf('0x9')][_0x2daf('0x18')]()===_0x1b4ac9[_0x2daf('0x18')]()||(_0x4d3da7=new _0xfe6eed(this[_0x2daf('0x8')],_0x1b4ac9,this['_revisionActions']),this['timePeriodViews'][_0x2daf('0x1a')](_0x4d3da7)),_0x4d3da7[_0x2daf('0x23')](_0x135621);}[_0x2daf('0x19')](_0x4bd659){const _0x5c6c51=_0x389ec0(_0x4bd659[_0x2daf('0x14')],this['locale'][_0x2daf('0x10')])[_0x2daf('0x9')];this[_0x2daf('0x22')](_0x5c6c51)[_0x2daf('0x12')](_0x4bd659);}[_0x2daf('0x22')](_0x4515ca){return this[_0x2daf('0x1f')][_0x2daf('0x16')](_0xa5ac1b=>_0xa5ac1b[_0x2daf('0x9')][_0x2daf('0x18')]()===_0x4515ca[_0x2daf('0x18')]());}}
23
+ const _0x498f=['uiLanguage','render','select','ck-reset','getTime','locale','selectRevision','remove','_addRevision','isEnabled','_revisions','add','createdAt','unhighlight','bindTemplate','_removeRevision','revisionViews','timePeriodViews','ck-revision-history-sidebar__timeline','set','delegate','revisionSelected','setName','addRevision','get','revisionSetName','ck-rounded-corners','highlightRevisions','removeRevision','map','ck-disabled','find','createCollection','flat','some','_revisionActions','_getTimePeriodViewByStartDate','startDate'];(function(_0x44cf46,_0x498fb4){const _0xc13a7f=function(_0x1d3b31){while(--_0x1d3b31){_0x44cf46['push'](_0x44cf46['shift']());}};_0xc13a7f(++_0x498fb4);}(_0x498f,0x185));const _0xc13a=function(_0x44cf46,_0x498fb4){_0x44cf46=_0x44cf46-0x0;let _0xc13a7f=_0x498f[_0x44cf46];return _0xc13a7f;};import{View as _0x209b65}from'ckeditor5/src/ui';import _0x4591c0 from'./revisionssidebartimeperiodview';import _0x58e717 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x208127}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class oi extends _0x209b65{constructor(_0x2fe5c4,_0x19ddb0,_0x22fb05){super(_0x2fe5c4);const _0x44ec62=this[_0xc13a('0x5')];this[_0xc13a('0x8')]=this[_0xc13a('0x17')](),this['timePeriodViews'][_0xc13a('0xb')](_0xc13a('0x1f'))['to'](this),this[_0xc13a('0x8')][_0xc13a('0xb')](_0xc13a('0xd'))['to'](this),this[_0xc13a('0x1')]=_0x19ddb0,this[_0xc13a('0x1a')]=_0x22fb05,this['on'](_0xc13a('0x1f'),(_0x504c9b,_0x293c7f)=>{this['fire'](_0xc13a('0xc'),_0x293c7f);}),this['on'](_0xc13a('0xd'),(_0x26e945,_0x2455cd)=>{this['fire'](_0xc13a('0x10'),_0x2455cd);}),this[_0xc13a('0xa')](_0xc13a('0x0'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xc13a('0x20'),_0xc13a('0x11'),'ck-revision-history-sidebar']},'children':[new _0x58e717(_0x2fe5c4),{'tag':'div','attributes':{'class':['ck',_0xc13a('0x9'),_0x44ec62['if'](_0xc13a('0x0'),_0xc13a('0x15'),_0x5ade11=>!_0x5ade11)]},'children':this['timePeriodViews']}]});}[_0xc13a('0x1e')](){super[_0xc13a('0x1e')]();for(const _0x3fdca2 of this[_0xc13a('0x1')])this[_0xc13a('0x25')](_0x3fdca2);this[_0xc13a('0x1')]['on'](_0xc13a('0x2'),(_0x20516e,_0xf4c815)=>{this['_addRevision'](_0xf4c815);}),this['_revisions']['on'](_0xc13a('0x24'),(_0x3bd7ab,_0x2cc7a5)=>{this[_0xc13a('0x6')](_0x2cc7a5);});}get[_0xc13a('0x7')](){return this[_0xc13a('0x8')][_0xc13a('0x14')](_0x3434a3=>_0x3434a3[_0xc13a('0x7')]['map'](_0x12b101=>_0x12b101))[_0xc13a('0x18')]();}[_0xc13a('0x23')](_0x417788){for(const _0x1a4dc5 of this[_0xc13a('0x7')])_0x417788&&_0x417788['id']===_0x1a4dc5['id']?_0x1a4dc5[_0xc13a('0x1f')]():_0x1a4dc5['deselect']();}[_0xc13a('0x12')](_0x414e29){for(const _0x565b63 of this[_0xc13a('0x7')])_0x414e29[_0xc13a('0x19')](({id:_0x56ff04})=>_0x56ff04===_0x565b63['id'])?_0x565b63['highlight']():_0x565b63[_0xc13a('0x4')]();}[_0xc13a('0x25')](_0x3d0242){const _0x495c56=_0x208127(_0x3d0242[_0xc13a('0x3')],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];let _0x53710a=this[_0xc13a('0x8')][_0xc13a('0xf')](0x0);_0x53710a&&_0x53710a[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x495c56[_0xc13a('0x21')]()||(_0x53710a=new _0x4591c0(this[_0xc13a('0x22')],_0x495c56,this[_0xc13a('0x1a')]),this[_0xc13a('0x8')]['add'](_0x53710a)),_0x53710a[_0xc13a('0xe')](_0x3d0242);}[_0xc13a('0x6')](_0x5d1ed6){const _0x3a5514=_0x208127(_0x5d1ed6['createdAt'],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];this['_getTimePeriodViewByStartDate'](_0x3a5514)[_0xc13a('0x13')](_0x5d1ed6);}[_0xc13a('0x1b')](_0x3e0ef7){return this[_0xc13a('0x8')][_0xc13a('0x16')](_0x48b5c5=>_0x48b5c5[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x3e0ef7[_0xc13a('0x21')]());}}
@@ -1,9 +1,9 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
6
- export interface DateTimePeriod {
7
- startDate: Date;
8
- localizedPeriodName: string;
9
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
6
+ export interface DateTimePeriod {
7
+ startDate: Date;
8
+ localizedPeriodName: string;
9
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aa7=['toJSDate','monthLong','setLocale','weekdayLong','year','startOf','local','toRelativeCalendar','day','month','fromJSDate','week','hasSame','minus'];(function(_0x416183,_0x1aa79){const _0x220354=function(_0x38d51a){while(--_0x38d51a){_0x416183['push'](_0x416183['shift']());}};_0x220354(++_0x1aa79);}(_0x1aa7,0x176));const _0x2203=function(_0x416183,_0x1aa79){_0x416183=_0x416183-0x0;let _0x220354=_0x1aa7[_0x416183];return _0x220354;};import{DateTime as _0x578ecd}from'luxon';export function getDateTimePeriodInfo(_0x5d0b85,_0x2b46dc){const _0x5524f0=_0x578ecd[_0x2203('0x0')](_0x5d0b85)[_0x2203('0x6')](_0x2b46dc),_0x3b8716=_0x578ecd[_0x2203('0xa')](),_0x1904c8=_0x3b8716[_0x2203('0x3')]({'days':0x1})[_0x2203('0x9')](_0x2203('0xc'));let _0x34ec18,_0x2e3ae8;return _0x5524f0[_0x2203('0x2')](_0x3b8716,_0x2203('0xc'))?(_0x34ec18=_0x5524f0[_0x2203('0x9')]('day')[_0x2203('0x4')](),_0x2e3ae8=_0x5524f0[_0x2203('0xb')]()):_0x5524f0[_0x2203('0x2')](_0x1904c8,_0x2203('0xc'))?(_0x34ec18=_0x1904c8[_0x2203('0x4')](),_0x2e3ae8=_0x5524f0[_0x2203('0xb')]()):_0x5524f0['hasSame'](_0x3b8716,_0x2203('0x1'))?(_0x34ec18=_0x5524f0[_0x2203('0x9')]('week')[_0x2203('0x4')](),_0x2e3ae8=_0x5524f0[_0x2203('0x7')]||''):_0x5524f0[_0x2203('0x2')](_0x3b8716,_0x2203('0x8'))?(_0x34ec18=_0x5524f0[_0x2203('0x9')](_0x2203('0xd'))[_0x2203('0x4')](),_0x2e3ae8=_0x5524f0[_0x2203('0x5')]||''):(_0x34ec18=_0x5524f0['startOf'](_0x2203('0x8'))['toJSDate'](),_0x2e3ae8=String(_0x5524f0['year'])),{'startDate':_0x34ec18,'localizedPeriodName':_0x2e3ae8};}
23
+ const _0x4cb7=['week','startOf','setLocale','weekdayLong','hasSame','day','minus','toRelativeCalendar','toJSDate','year','fromJSDate','month'];(function(_0x55e3f7,_0x4cb70e){const _0x86178d=function(_0x4ceccd){while(--_0x4ceccd){_0x55e3f7['push'](_0x55e3f7['shift']());}};_0x86178d(++_0x4cb70e);}(_0x4cb7,0x1cd));const _0x8617=function(_0x55e3f7,_0x4cb70e){_0x55e3f7=_0x55e3f7-0x0;let _0x86178d=_0x4cb7[_0x55e3f7];return _0x86178d;};import{DateTime as _0x16093e}from'luxon';export function getDateTimePeriodInfo(_0x69ff06,_0x45a36f){const _0x350bc4=_0x16093e[_0x8617('0x5')](_0x69ff06)[_0x8617('0x9')](_0x45a36f),_0x1fab8a=_0x16093e['local'](),_0x52975b=_0x1fab8a[_0x8617('0x1')]({'days':0x1})[_0x8617('0x8')](_0x8617('0x0'));let _0xdbc655,_0x54b5e6;return _0x350bc4[_0x8617('0xb')](_0x1fab8a,'day')?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x0'))[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4[_0x8617('0xb')](_0x52975b,_0x8617('0x0'))?(_0xdbc655=_0x52975b[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4['hasSame'](_0x1fab8a,_0x8617('0x7'))?(_0xdbc655=_0x350bc4['startOf']('week')['toJSDate'](),_0x54b5e6=_0x350bc4[_0x8617('0xa')]||''):_0x350bc4[_0x8617('0xb')](_0x1fab8a,_0x8617('0x4'))?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x6'))['toJSDate'](),_0x54b5e6=_0x350bc4['monthLong']||''):(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x4'))[_0x8617('0x3')](),_0x54b5e6=String(_0x350bc4[_0x8617('0x4')])),{'startDate':_0xdbc655,'localizedPeriodName':_0x54b5e6};}
@@ -1,22 +1,22 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionviewer/changedetailsview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type ChangeItem from '../../changeitem';
11
- export default class ChangeDetailsView extends View {
12
- changeId: string;
13
- /**
14
- * @observable
15
- */
16
- type: string;
17
- constructor(locale: Locale, model: ChangeItem);
18
- /**
19
- * Focuses the view.
20
- */
21
- focus(): void;
22
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionviewer/changedetailsview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import type ChangeItem from '../../changeitem';
11
+ export default class ChangeDetailsView extends View {
12
+ changeId: string;
13
+ /**
14
+ * @observable
15
+ */
16
+ type: string;
17
+ constructor(locale: Locale, model: ChangeItem);
18
+ /**
19
+ * Focuses the view.
20
+ */
21
+ focus(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9094=['Suggested\x20by','element','type','author','bindTemplate','changeId','ck-annotation','set','add','div','_model','Added\x20by','focus','name','span','setTemplate'];(function(_0x3636e4,_0x909430){const _0x51efdf=function(_0x2fb5c7){while(--_0x2fb5c7){_0x3636e4['push'](_0x3636e4['shift']());}};_0x51efdf(++_0x909430);}(_0x9094,0x147));const _0x51ef=function(_0x3636e4,_0x909430){_0x3636e4=_0x3636e4-0x0;let _0x51efdf=_0x9094[_0x3636e4];return _0x51efdf;};import{View as _0x4e98a1}from'ckeditor5/src/ui';import{getTranslation as _0x372988}from'../../utils/common-translations';export default class Z extends _0x4e98a1{constructor(_0x1cb0ed,_0x5e3839){super(_0x1cb0ed),this[_0x51ef('0x3')]=_0x5e3839,this[_0x51ef('0xe')]=_0x5e3839['id'];const _0x16006d=this[_0x51ef('0xd')],_0x182c64=_0x372988(_0x1cb0ed,_0x5e3839['data']['isSuggestion']?_0x51ef('0x9'):_0x51ef('0x1')==_0x5e3839[_0x51ef('0xb')]?_0x51ef('0x4'):'Removed\x20by');this[_0x51ef('0x0')](_0x51ef('0xb'),_0x5e3839['type']),this[_0x51ef('0x8')]({'tag':_0x51ef('0x2'),'attributes':{'class':[_0x51ef('0xf'),'ck-revision-change',_0x16006d['to'](_0x51ef('0xb'),_0x405700=>'ck-revision-change__'+_0x405700)],'tabindex':-0x1},'children':[{'tag':_0x51ef('0x7'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x182c64}]},{'text':'\x20'+_0x5e3839[_0x51ef('0xc')][_0x51ef('0x6')]}]}]});}[_0x51ef('0x5')](){this[_0x51ef('0xa')][_0x51ef('0x5')]();}}
23
+ const _0x5ae2=['ck-revision-change__label','Suggested\x20by','element','author','set','type','isSuggestion','ck-revision-change__','Added\x20by','add','changeId','ck-revision-change','span','setTemplate','Removed\x20by','ck-annotation','focus'];(function(_0x5a4c9a,_0x5ae20e){const _0x2abbe0=function(_0x544764){while(--_0x544764){_0x5a4c9a['push'](_0x5a4c9a['shift']());}};_0x2abbe0(++_0x5ae20e);}(_0x5ae2,0x7b));const _0x2abb=function(_0x5a4c9a,_0x5ae20e){_0x5a4c9a=_0x5a4c9a-0x0;let _0x2abbe0=_0x5ae2[_0x5a4c9a];return _0x2abbe0;};import{View as _0x29447d}from'ckeditor5/src/ui';import{getTranslation as _0x348459}from'../../utils/common-translations';export default class Z extends _0x29447d{constructor(_0x2e6064,_0x7700e3){super(_0x2e6064),this['_model']=_0x7700e3,this[_0x2abb('0x6')]=_0x7700e3['id'];const _0x2967a2=this['bindTemplate'],_0x253c4c=_0x348459(_0x2e6064,_0x7700e3['data'][_0x2abb('0x2')]?_0x2abb('0xe'):_0x2abb('0x5')==_0x7700e3[_0x2abb('0x1')]?_0x2abb('0x4'):_0x2abb('0xa'));this[_0x2abb('0x0')](_0x2abb('0x1'),_0x7700e3[_0x2abb('0x1')]),this[_0x2abb('0x9')]({'tag':'div','attributes':{'class':[_0x2abb('0xb'),_0x2abb('0x7'),_0x2967a2['to'](_0x2abb('0x1'),_0xde0e44=>_0x2abb('0x3')+_0xde0e44)],'tabindex':-0x1},'children':[{'tag':_0x2abb('0x8'),'children':[{'tag':_0x2abb('0x8'),'attributes':{'class':[_0x2abb('0xd')]},'children':[{'text':_0x253c4c}]},{'text':'\x20'+_0x7700e3[_0x2abb('0x10')]['name']}]}]});}[_0x2abb('0xc')](){this[_0x2abb('0xf')][_0x2abb('0xc')]();}}