@ckeditor/ckeditor5-comments 42.0.2 → 43.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -256
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/annotations/annotations.d.ts +1 -1
- package/dist/annotations/sidebar.d.ts +2 -2
- package/dist/annotations/view/annotationview.d.ts +4 -4
- package/dist/annotations/view/sidebaritemview.d.ts +7 -3
- package/dist/annotations/view/sidebarview.d.ts +25 -4
- package/dist/comments/commentsediting.d.ts +8 -0
- package/dist/comments/commentsrepository.d.ts +14 -2
- package/dist/comments/ui/view/basecommentthreadview.d.ts +32 -3
- package/dist/comments/ui/view/basecommentview.d.ts +41 -3
- package/dist/comments/ui/view/commentinputview.d.ts +17 -2
- package/dist/comments/ui/view/commentsarchiveview.d.ts +11 -3
- package/dist/comments/ui/view/commentslistview.d.ts +17 -5
- package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +25 -0
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +29 -3
- package/dist/comments/ui/view/commentthreadinputview.d.ts +13 -2
- package/dist/comments/ui/view/commentthreadview.d.ts +11 -6
- package/dist/comments/ui/view/commentview.d.ts +9 -12
- package/dist/index-editor.css +33 -2
- package/dist/index.css +95 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/lang/contexts.json +15 -0
- package/lang/translations/af.po +62 -0
- package/lang/translations/ar.po +68 -2
- package/lang/translations/bg.po +64 -2
- package/lang/translations/bn.po +64 -2
- package/lang/translations/bs.po +63 -0
- package/lang/translations/ca.po +64 -2
- package/lang/translations/cs.po +66 -2
- package/lang/translations/da.po +64 -2
- package/lang/translations/de-ch.po +62 -0
- package/lang/translations/de.po +64 -2
- package/lang/translations/el.po +64 -2
- package/lang/translations/en-au.po +62 -0
- package/lang/translations/en.po +64 -2
- package/lang/translations/es-co.po +63 -0
- package/lang/translations/es.po +65 -2
- package/lang/translations/et.po +64 -2
- package/lang/translations/fa.po +62 -0
- package/lang/translations/fi.po +64 -2
- package/lang/translations/fr.po +65 -2
- package/lang/translations/gl.po +64 -2
- package/lang/translations/he.po +65 -2
- package/lang/translations/hi.po +64 -2
- package/lang/translations/hr.po +63 -0
- package/lang/translations/hu.po +64 -2
- package/lang/translations/id.po +63 -2
- package/lang/translations/it.po +65 -2
- package/lang/translations/ja.po +63 -2
- package/lang/translations/jv.po +61 -0
- package/lang/translations/ko.po +63 -2
- package/lang/translations/lt.po +66 -2
- package/lang/translations/lv.po +65 -2
- package/lang/translations/ms.po +63 -2
- package/lang/translations/nl.po +64 -2
- package/lang/translations/no.po +64 -2
- package/lang/translations/pl.po +66 -2
- package/lang/translations/pt-br.po +65 -2
- package/lang/translations/pt.po +65 -2
- package/lang/translations/ro.po +65 -2
- package/lang/translations/ru.po +66 -2
- package/lang/translations/sk.po +66 -2
- package/lang/translations/sq.po +62 -0
- package/lang/translations/sr-latn.po +65 -2
- package/lang/translations/sr.po +65 -2
- package/lang/translations/sv.po +64 -2
- package/lang/translations/th.po +63 -2
- package/lang/translations/ti.po +62 -0
- package/lang/translations/tk.po +62 -0
- package/lang/translations/tr.po +64 -2
- package/lang/translations/tt.po +61 -0
- package/lang/translations/ug.po +64 -2
- package/lang/translations/uk.po +66 -2
- package/lang/translations/ur.po +62 -0
- package/lang/translations/vi.po +63 -2
- package/lang/translations/zh-cn.po +63 -2
- package/lang/translations/zh.po +63 -2
- package/package.json +14 -13
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +2 -2
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +4 -4
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +7 -3
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +25 -4
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +8 -0
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +14 -2
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +32 -3
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +41 -3
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +17 -2
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +11 -3
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +17 -5
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +21 -0
- package/src/comments/ui/view/commentthreadheadercontextview.js +23 -0
- package/src/comments/ui/view/commentthreadheaderview.d.ts +29 -3
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +13 -2
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +11 -6
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +9 -12
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +6 -0
- package/theme/commentthread.css +43 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentinputview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import { View, FocusCycler, ButtonView, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { type EditorConfig, type DataApi } from 'ckeditor5/src/core.js';
|
|
11
11
|
import CommentEditor from '../commenteditor/commenteditor.js';
|
|
@@ -56,6 +56,14 @@ export default class CommentInputView extends View {
|
|
|
56
56
|
* Focus tracker for the view.
|
|
57
57
|
*/
|
|
58
58
|
focusTracker: FocusTracker;
|
|
59
|
+
/**
|
|
60
|
+
* Collection of focusable sub-views in the input component.
|
|
61
|
+
*/
|
|
62
|
+
focusables: ViewCollection<FocusableView>;
|
|
63
|
+
/**
|
|
64
|
+
* Helps providing keyboard navigation between {@link #focusables}.
|
|
65
|
+
*/
|
|
66
|
+
focusCycler: FocusCycler;
|
|
59
67
|
/**
|
|
60
68
|
* Button view for the button which submits the comment.
|
|
61
69
|
*/
|
|
@@ -78,9 +86,16 @@ export default class CommentInputView extends View {
|
|
|
78
86
|
/**
|
|
79
87
|
* Focuses the view.
|
|
80
88
|
*/
|
|
81
|
-
focus(): void;
|
|
89
|
+
focus(direction?: 1 | -1): void;
|
|
82
90
|
/**
|
|
83
91
|
* @inheritDoc
|
|
84
92
|
*/
|
|
85
93
|
destroy(): Promise<void>;
|
|
86
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* An event fired when a user successfully submits a comment. The event carries the comment content.
|
|
97
|
+
*/
|
|
98
|
+
export type CommentInputSubmitEvent = {
|
|
99
|
+
name: 'submit';
|
|
100
|
+
args: [cotnent: string];
|
|
101
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36ae62=_0x5f44;(function(_0x5711a1,_0x4fef12){const _0x53d2b0=_0x5f44,_0x4ac28d=_0x5711a1();while(!![]){try{const _0x1fb7c9=parseInt(_0x53d2b0(0x10d))/0x1*(parseInt(_0x53d2b0(0xfd))/0x2)+-parseInt(_0x53d2b0(0xdc))/0x3*(-parseInt(_0x53d2b0(0xf2))/0x4)+parseInt(_0x53d2b0(0xf4))/0x5*(-parseInt(_0x53d2b0(0x111))/0x6)+parseInt(_0x53d2b0(0xce))/0x7+-parseInt(_0x53d2b0(0x11e))/0x8*(-parseInt(_0x53d2b0(0x104))/0x9)+-parseInt(_0x53d2b0(0xe9))/0xa*(parseInt(_0x53d2b0(0xf8))/0xb)+-parseInt(_0x53d2b0(0xff))/0xc;if(_0x1fb7c9===_0x4fef12)break;else _0x4ac28d['push'](_0x4ac28d['shift']());}catch(_0x503c10){_0x4ac28d['push'](_0x4ac28d['shift']());}}}(_0xbdb0,0x237fd));function _0x5f44(_0x4af089,_0x31951c){const _0xbdb089=_0xbdb0();return _0x5f44=function(_0x5f44d4,_0x37f190){_0x5f44d4=_0x5f44d4-0xcd;let _0x597330=_0xbdb089[_0x5f44d4];return _0x597330;},_0x5f44(_0x4af089,_0x31951c);}import{View as _0x4d1d5e,FocusCycler as _0x705093,ButtonView as _0x89a90a}from'ckeditor5/src/ui.js';import{FocusTracker as _0x526bd4,KeystrokeHandler as _0x4a252e}from'ckeditor5/src/utils.js';import _0x425698 from'../commenteditor/commenteditor.js';import{getTranslation as _0x1f0ad3}from'../../../utils/common-translations.js';export default class rs extends _0x4d1d5e{constructor(_0xde9878,_0x1f060b={}){const _0x179a70=_0x5f44;super(_0xde9878),this[_0x179a70(0x119)]=null,this[_0x179a70(0xcf)]=_0x1f060b,this[_0x179a70(0xde)](_0x179a70(0xd5),_0x1f060b[_0x179a70(0xea)]||''),this[_0x179a70(0xde)](_0x179a70(0xfe),!0x1),this[_0x179a70(0xde)](_0x179a70(0x109),!0x0),this[_0x179a70(0xde)](_0x179a70(0x107),_0x1f0ad3(_0xde9878,_0x179a70(0xf5))),this[_0x179a70(0xde)](_0x179a70(0xd6),_0x1f0ad3(_0xde9878,_0x179a70(0xdf))),this[_0x179a70(0xe4)]=this[_0x179a70(0x121)](),this[_0x179a70(0x10a)]=this[_0x179a70(0xda)](),this[_0x179a70(0x122)]=this[_0x179a70(0x10b)]([this[_0x179a70(0xe4)],this[_0x179a70(0x10a)]]),this[_0x179a70(0x116)]=new _0x4a252e(),this[_0x179a70(0xd9)]=new _0x526bd4(),this[_0x179a70(0xe8)]=new _0x705093({'focusables':this[_0x179a70(0x122)],'focusTracker':this[_0x179a70(0xd9)],'keystrokeHandler':this[_0x179a70(0x116)],'actions':{'focusPrevious':_0x179a70(0x103),'focusNext':_0x179a70(0x10e)}}),this[_0x179a70(0x120)]({'tag':_0x179a70(0xf3),'attributes':{'class':[_0x179a70(0x10f)]},'children':[{'tag':_0x179a70(0xf3),'attributes':{'class':[_0x179a70(0xe6),this[_0x179a70(0xd3)]['if'](_0x179a70(0x109),_0x179a70(0xf1))]},'children':[this[_0x179a70(0xe4)],this[_0x179a70(0x10a)]]}]}),this[_0x179a70(0x116)][_0x179a70(0xde)](_0x179a70(0x10c),(_0x17c839,_0xa6855f)=>{const _0x564565=_0x179a70;this[_0x564565(0x10a)][_0x564565(0xf7)](_0x564565(0xd8)),_0xa6855f();}),this[_0x179a70(0x116)][_0x179a70(0xde)](_0x179a70(0x113),(_0x2c9f27,_0x3325b4)=>{const _0x285b70=_0x179a70;this[_0x285b70(0xe4)][_0x285b70(0xfa)]&&(this[_0x285b70(0xe4)][_0x285b70(0xf7)](_0x285b70(0xd8)),_0x3325b4());}),this['on'](_0x179a70(0xe5),(_0x32c5f9,_0xbcc2dd)=>{const _0x2308fc=_0x179a70;_0xbcc2dd[_0x2308fc(0x117)]>0xfde8?(alert(_0x1f0ad3(_0xde9878,_0x2308fc(0x100),[_0xbcc2dd[_0x2308fc(0x117)],0xfde8])),_0x32c5f9[_0x2308fc(0x108)]()):this[_0x2308fc(0x119)][_0x2308fc(0x11b)]('');},{'priority':_0x179a70(0x101)});}[_0x36ae62(0xe2)](){const _0x426737=_0x36ae62;super[_0x426737(0xe2)](),this[_0x426737(0xeb)]();}[_0x36ae62(0xef)](){const _0x41ac96=_0x36ae62;return this[_0x41ac96(0x119)]||(this[_0x41ac96(0x119)]=new _0x425698(this[_0x41ac96(0xcf)]),this[_0x41ac96(0xed)]=this[_0x41ac96(0x119)][_0x41ac96(0x114)]()[_0x41ac96(0xec)](()=>{const _0x1ee2bc=_0x41ac96;if(this[_0x1ee2bc(0x11d)])return;const _0x289829=this[_0x1ee2bc(0x119)];this[_0x1ee2bc(0xfc)][_0x1ee2bc(0x102)](_0x289829['ui'][_0x1ee2bc(0xfc)],this[_0x1ee2bc(0xfc)][_0x1ee2bc(0xee)]),_0x289829[_0x1ee2bc(0x11f)][_0x1ee2bc(0xe0)]['on'](_0x1ee2bc(0xdb),()=>this[_0x1ee2bc(0xd5)]=_0x289829[_0x1ee2bc(0xf9)]()),_0x289829[_0x1ee2bc(0x115)](_0x1ee2bc(0x107))['to'](this),this[_0x1ee2bc(0x122)][_0x1ee2bc(0x105)](_0x289829['ui'][_0x1ee2bc(0x11c)],0x0),this[_0x1ee2bc(0xf7)](_0x1ee2bc(0x118),this[_0x1ee2bc(0x119)]);})),this[_0x41ac96(0xed)];}[_0x36ae62(0xd7)](_0x429b0e){const _0x129db0=_0x36ae62;-0x1===_0x429b0e?(this[_0x129db0(0xe8)][_0x129db0(0xf0)](),this[_0x129db0(0xe8)][_0x129db0(0x123)]()):this[_0x129db0(0xe8)][_0x129db0(0xf0)]();}async[_0x36ae62(0x110)](){const _0xf92b93=_0x36ae62;this[_0xf92b93(0x11d)]||(this[_0xf92b93(0x11d)]=!0x0,this[_0xf92b93(0x119)]&&(await this[_0xf92b93(0xed)],await this[_0xf92b93(0x119)][_0xf92b93(0x110)](),this[_0xf92b93(0xf7)](_0xf92b93(0xcd),this[_0xf92b93(0x119)])),await super[_0xf92b93(0x110)]());}[_0x36ae62(0x121)](){const _0x17efd2=_0x36ae62,{locale:_0x3e2dc4}=this,_0x16305b=new _0x89a90a(_0x3e2dc4);return _0x16305b[_0x17efd2(0xf6)]({'attributes':{'class':[_0x17efd2(0xe1)]}}),_0x16305b[_0x17efd2(0xd0)]=!0x0,_0x16305b[_0x17efd2(0x115)](_0x17efd2(0xe3))['to'](this,_0x17efd2(0xd6)),_0x16305b['on'](_0x17efd2(0xd8),()=>{const _0x2e5098=_0x17efd2;this[_0x2e5098(0xf7)](_0x2e5098(0xe5),this[_0x2e5098(0xd5)]);}),_0x16305b[_0x17efd2(0x115)](_0x17efd2(0xfa))['to'](this,_0x17efd2(0xd5),this,_0x17efd2(0xfe),(_0x1676d2,_0x554740)=>!_0x554740&&!!_0x1676d2[_0x17efd2(0x11a)]()),_0x16305b;}[_0x36ae62(0xda)](){const _0x5ef7ba=_0x36ae62,{locale:_0x3e2e3b}=this,_0x6e2772=new _0x89a90a(_0x3e2e3b);return _0x6e2772[_0x5ef7ba(0xf6)]({'attributes':{'class':[_0x5ef7ba(0xdd)]}}),_0x6e2772[_0x5ef7ba(0xe3)]=_0x1f0ad3(_0x3e2e3b,_0x5ef7ba(0x112)),_0x6e2772[_0x5ef7ba(0xd0)]=!0x0,_0x6e2772['on'](_0x5ef7ba(0xd8),()=>{const _0x13558b=_0x5ef7ba;this[_0x13558b(0x119)][_0x13558b(0x11b)](''),this[_0x13558b(0xf7)](_0x13558b(0xd2));}),_0x6e2772;}[_0x36ae62(0xeb)](){const _0xda83c=_0x36ae62;this[_0xda83c(0x116)][_0xda83c(0xfb)](this[_0xda83c(0xfc)]),this[_0xda83c(0x122)][_0xda83c(0x106)](_0x3e9d4d=>{const _0x3f894e=_0xda83c;this[_0x3f894e(0xd9)][_0x3f894e(0x105)](_0x3e9d4d[_0x3f894e(0xfc)]);}),this[_0xda83c(0x122)]['on'](_0xda83c(0xdb),(_0x31c768,_0x481a04)=>{const _0x40a5f3=_0xda83c;for(const _0x158d9e of Array[_0x40a5f3(0xd4)](_0x481a04[_0x40a5f3(0xe7)])[_0x40a5f3(0xd1)]())this[_0x40a5f3(0xd9)][_0x40a5f3(0x105)](_0x158d9e[_0x40a5f3(0xfc)]);});}}function _0xbdb0(){const _0x2bd39b=['submitLabel','focus','execute','focusTracker','_createCancelButton','change','12kOlGIY','ck-comment__input-actions--cancel','set','Reply','document','ck-comment__input-actions--submit','render','label','submitButtonView','submit','ck-comment__input-actions','added','focusCycler','4510SwaISG','initialData','_setupKeyboardNavigation','then','_editorCreationPromise','firstChild','createEditor','focusFirst','ck-comment__input-actions--active','239916xNwKPt','div','23825DXDuMT','Reply...','extendTemplate','fire','1914dOigMi','getData','isEnabled','listenTo','element','211634StzvJl','disabledSubmit','2872944jbQMNn','TOO_LONG_COMMENT_ALERT','high','insertBefore','shift+tab','333DBVpYm','add','forEach','placeholder','stop','showButtons','cancelButtonView','createCollection','Esc','1eqXJLG','tab','ck-comment__input-wrapper','destroy','324RdkXbh','Cancel','Ctrl+Enter','create','bind','keystrokes','length','editorReady','editor','trim','setData','view','_isDestroyed','59112ipZybC','model','setTemplate','_createSubmitButton','focusables','focusLast','editorDestroyed','710325omwEDE','_editorConfig','withText','reverse','cancel','bindTemplate','from','value'];_0xbdb0=function(){return _0x2bd39b;};return _0xbdb0();}
|
|
@@ -5,19 +5,27 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentslistview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
8
|
+
import { View, FocusCycler, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type AnnotationView from '../../../annotations/view/annotationview.js';
|
|
11
11
|
/**
|
|
12
12
|
* A view representing the content of comments archive.
|
|
13
13
|
*/
|
|
14
|
-
export default class CommentsArchiveView extends View {
|
|
14
|
+
export default class CommentsArchiveView extends View implements FocusableView {
|
|
15
15
|
/**
|
|
16
16
|
* The flag indicating whether there are items to display in the comments archive.
|
|
17
17
|
*
|
|
18
18
|
* @observable
|
|
19
19
|
*/
|
|
20
20
|
isEmpty: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Tracks information about the DOM focus in the comments archive.
|
|
23
|
+
*/
|
|
24
|
+
readonly focusTracker: FocusTracker;
|
|
25
|
+
/**
|
|
26
|
+
* Helps cycling over {@link #_focusables} in the form.
|
|
27
|
+
*/
|
|
28
|
+
readonly focusCycler: FocusCycler;
|
|
21
29
|
/**
|
|
22
30
|
* @param locale The localization service instance.
|
|
23
31
|
* @param annotationViews Resolved comment thread annotation views to render inside the comments archive.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2739(){const _0x15f27d=['929850RIbAze','length','first','3656cCytDU','arrowdown','isEmpty','listenTo','set','298420okSxGX','destroy','setTemplate','EMPTY_COMMENTS_ARCHIVE','focusPrevious','div','369118djChIp','delegate','3521721xmXNNJ','focus','bindTemplate','9534hZmtPY','ck-hidden','focusNext','focusTracker','list','arrowup','11266029FVklpC','auto','ck-comments-archive','_setupKeyboardNavigation','isActive','_annotationViews','focusCycler','ck-comments-archive__content','COMMENTS_ARCHIVE_LIST_LABEL','ck-comments-archive__info','focusFirst','render','change','3246300JJlXcs','element','presentation','95tKQoKy','add','remove'];_0x2739=function(){return _0x15f27d;};return _0x2739();}const _0x48ec6a=_0x1372;(function(_0x447f22,_0x512ee4){const _0x48f6ca=_0x1372,_0x36e3d7=_0x447f22();while(!![]){try{const _0x12f8f3=parseInt(_0x48f6ca(0xff))/0x1+-parseInt(_0x48f6ca(0xf1))/0x2+parseInt(_0x48f6ca(0x101))/0x3+-parseInt(_0x48f6ca(0xf9))/0x4*(parseInt(_0x48f6ca(0xee))/0x5)+parseInt(_0x48f6ca(0x117))/0x6+parseInt(_0x48f6ca(0x104))/0x7*(-parseInt(_0x48f6ca(0xf4))/0x8)+parseInt(_0x48f6ca(0x10a))/0x9;if(_0x12f8f3===_0x512ee4)break;else _0x36e3d7['push'](_0x36e3d7['shift']());}catch(_0x806143){_0x36e3d7['push'](_0x36e3d7['shift']());}}}(_0x2739,0xcae1a));import{View as _0x4ec566,FocusCycler as _0x325180}from'ckeditor5/src/ui.js';import{FocusTracker as _0x924595}from'ckeditor5/src/utils.js';function _0x1372(_0x4ac336,_0x204d11){const _0x273904=_0x2739();return _0x1372=function(_0x137243,_0x1e4d69){_0x137243=_0x137243-0xec;let _0x418b16=_0x273904[_0x137243];return _0x418b16;},_0x1372(_0x4ac336,_0x204d11);}import{getTranslation as _0x3cfeb6}from'../../../utils/common-translations.js';export default class Y extends _0x4ec566{constructor(_0x502f10,_0x21954e){const _0x27e241=_0x1372;super(_0x502f10),this[_0x27e241(0xf8)](_0x27e241(0xf6),!_0x21954e[_0x27e241(0xf2)]),this[_0x27e241(0x107)]=new _0x924595(),this[_0x27e241(0x10f)]=_0x21954e,this[_0x27e241(0x10f)][_0x27e241(0x100)](_0x27e241(0x109),_0x27e241(0xf5))['to'](this),this['on'](_0x27e241(0x109),()=>{const _0x2dd0b6=_0x27e241;this[_0x2dd0b6(0x110)][_0x2dd0b6(0xfd)]();}),this['on'](_0x27e241(0xf5),()=>{const _0x57de8d=_0x27e241;this[_0x57de8d(0x110)][_0x57de8d(0x106)]();}),this[_0x27e241(0x110)]=new _0x325180({'focusables':_0x21954e,'focusTracker':this[_0x27e241(0x107)]}),this[_0x27e241(0xf7)](_0x21954e,_0x27e241(0xef),()=>{const _0x45ea21=_0x27e241;this[_0x45ea21(0xf6)]=!0x1;}),this[_0x27e241(0xf7)](_0x21954e,_0x27e241(0xf0),(_0x46706c,_0xf0dd89)=>{const _0x1986ee=_0x27e241;_0xf0dd89[_0x1986ee(0x10e)]&&this[_0x1986ee(0x102)](),_0x21954e[_0x1986ee(0xf2)]||(this[_0x1986ee(0xf6)]=!0x0);});const _0x1a289c=this[_0x27e241(0x103)];this[_0x27e241(0xfb)]({'tag':_0x27e241(0xfe),'attributes':{'dir':_0x27e241(0x10b),'class':['ck',_0x27e241(0x10c)],'tabindex':-0x1,'role':_0x27e241(0x108),'aria-label':_0x3cfeb6(_0x502f10,_0x27e241(0x112))},'children':[{'tag':_0x27e241(0xfe),'attributes':{'class':[_0x27e241(0x111)],'role':_0x27e241(0xed)},'children':[{'tag':_0x27e241(0xfe),'attributes':{'role':_0x27e241(0xed)},'children':_0x21954e},{'tag':'p','attributes':{'class':[_0x27e241(0x113),_0x1a289c['if'](_0x27e241(0xf6),_0x27e241(0x105),_0x1e34f9=>!_0x1e34f9)]},'children':[{'text':_0x3cfeb6(_0x502f10,_0x27e241(0xfc))}]}]}]});}[_0x48ec6a(0x115)](){const _0x578dbc=_0x48ec6a;super[_0x578dbc(0x115)](),this[_0x578dbc(0x10d)]();}[_0x48ec6a(0xfa)](){const _0x248dc0=_0x48ec6a;super[_0x248dc0(0xfa)](),this[_0x248dc0(0x107)][_0x248dc0(0xfa)]();}[_0x48ec6a(0x102)](){const _0x738cb1=_0x48ec6a;this[_0x738cb1(0x110)][_0x738cb1(0xf3)]?this[_0x738cb1(0x110)][_0x738cb1(0x114)]():this[_0x738cb1(0xec)][_0x738cb1(0x102)]();}[_0x48ec6a(0x10d)](){const _0x4c6ef9=_0x48ec6a;for(const _0x25e216 of this[_0x4c6ef9(0x10f)])this[_0x4c6ef9(0x107)][_0x4c6ef9(0xef)](_0x25e216[_0x4c6ef9(0xec)]);this[_0x4c6ef9(0x10f)]['on'](_0x4c6ef9(0x116),(_0x237fe4,{added:_0x2a4db8,removed:_0x1b00cc})=>{const _0x301ce6=_0x4c6ef9;for(const _0x1dfac9 of _0x2a4db8)this[_0x301ce6(0x107)][_0x301ce6(0xef)](_0x1dfac9[_0x301ce6(0xec)]);for(const _0x7a6b5d of _0x1b00cc)this[_0x301ce6(0x107)][_0x301ce6(0xf0)](_0x7a6b5d[_0x301ce6(0xec)]);});}}
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentslistview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
8
|
+
import { View, FocusCycler, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type { CommentThread } from '../../commentsrepository.js';
|
|
11
11
|
import type CommentView from './commentview.js';
|
|
12
12
|
import type { CommentThreadConfig } from '../../../config.js';
|
|
13
13
|
/**
|
|
14
14
|
* A view representing the list of comments. It should be used as a part of the comment thread view.
|
|
15
15
|
*/
|
|
16
|
-
export default class CommentsListView extends View {
|
|
16
|
+
export default class CommentsListView extends View implements FocusableView {
|
|
17
17
|
locale: Locale;
|
|
18
18
|
/**
|
|
19
19
|
* Informs whether the list contains any comment view that is in the editing mode.
|
|
@@ -46,13 +46,25 @@ export default class CommentsListView extends View {
|
|
|
46
46
|
*
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
|
-
readonly commentViews: ViewCollection
|
|
49
|
+
readonly commentViews: ViewCollection<CommentView>;
|
|
50
50
|
/**
|
|
51
51
|
* Comment view used to display information that comment has been resolved.
|
|
52
52
|
*
|
|
53
53
|
* @readonly
|
|
54
54
|
*/
|
|
55
55
|
resolvedCommentView: CommentView | null;
|
|
56
|
+
/**
|
|
57
|
+
* Tracks information about DOM focus in the comments list.
|
|
58
|
+
*/
|
|
59
|
+
readonly focusTracker: FocusTracker;
|
|
60
|
+
/**
|
|
61
|
+
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
62
|
+
*/
|
|
63
|
+
readonly keystrokes: KeystrokeHandler;
|
|
64
|
+
/**
|
|
65
|
+
* Helps cycling over focusable {@link #commentViews} in the list.
|
|
66
|
+
*/
|
|
67
|
+
readonly focusCycler: FocusCycler;
|
|
56
68
|
/**
|
|
57
69
|
* @param locale The localization service instance.
|
|
58
70
|
* @param model The model on which the view will base.
|
|
@@ -66,7 +78,7 @@ export default class CommentsListView extends View {
|
|
|
66
78
|
/**
|
|
67
79
|
* Focuses the view.
|
|
68
80
|
*/
|
|
69
|
-
focus(): void;
|
|
81
|
+
focus(direction?: 1 | -1): void;
|
|
70
82
|
/**
|
|
71
83
|
* @inheritDoc
|
|
72
84
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41a1ff=_0x215f;(function(_0x229405,_0x241ea2){const _0x17ad93=_0x215f,_0x5229c1=_0x229405();while(!![]){try{const _0x5642cc=-parseInt(_0x17ad93(0x17e))/0x1*(parseInt(_0x17ad93(0x164))/0x2)+-parseInt(_0x17ad93(0x182))/0x3+-parseInt(_0x17ad93(0x17f))/0x4*(-parseInt(_0x17ad93(0x14f))/0x5)+parseInt(_0x17ad93(0x191))/0x6+-parseInt(_0x17ad93(0x16e))/0x7+parseInt(_0x17ad93(0x168))/0x8+parseInt(_0x17ad93(0x192))/0x9;if(_0x5642cc===_0x241ea2)break;else _0x5229c1['push'](_0x5229c1['shift']());}catch(_0x3f9820){_0x5229c1['push'](_0x5229c1['shift']());}}}(_0xa9f6,0x575e2));import{View as _0x34c04a}from'ckeditor5/src/ui.js';import{diff as _0x1369f2,Collection as _0x4e741c}from'ckeditor5/src/utils.js';import{getTranslation as _0x2d7cbb}from'../../../utils/common-translations.js';import _0x1091ee from'./collapsedcommentsview.js';export default class xt extends _0x34c04a{constructor(_0x54deed,_0x1037cd,_0x488054){const _0xc42d66=_0x215f;super(_0x54deed),this[_0xc42d66(0x179)](_0xc42d66(0x190),!0x1),this[_0xc42d66(0x179)](_0xc42d66(0x156),_0x1037cd[_0xc42d66(0x172)][_0xc42d66(0x156)]),this[_0xc42d66(0x179)](_0xc42d66(0x199),!0x1),this[_0xc42d66(0x188)]=_0x1037cd,this[_0xc42d66(0x17a)]=_0x488054,this[_0xc42d66(0x16d)]=this[_0xc42d66(0x195)](),this[_0xc42d66(0x185)]=this[_0xc42d66(0x195)](),this[_0xc42d66(0x157)]=null,this[_0xc42d66(0x194)]=new _0x1091ee(_0x54deed),this[_0xc42d66(0x194)][_0xc42d66(0x187)](_0xc42d66(0x162))['to'](this,_0xc42d66(0x156),_0x596bc1=>_0x596bc1-this[_0xc42d66(0x17a)][_0xc42d66(0x18e)]);for(const _0x23909e of _0x1037cd[_0xc42d66(0x172)])this[_0xc42d66(0x193)](_0x23909e);this[_0xc42d66(0x180)](),this[_0xc42d66(0x17b)](_0x1037cd[_0xc42d66(0x172)],_0xc42d66(0x173),(_0x8f0511,_0x374527)=>{const _0x292b7f=_0xc42d66,_0x49a59e=this[_0x292b7f(0x14e)](_0x374527);this[_0x292b7f(0x156)]++,this[_0x292b7f(0x193)](_0x374527,_0x49a59e),this[_0x292b7f(0x15f)]();}),this[_0xc42d66(0x17b)](_0x1037cd[_0xc42d66(0x172)],_0xc42d66(0x196),(_0x5339db,_0x453bf7)=>{const _0x3f773f=_0xc42d66;this[_0x3f773f(0x156)]--,this[_0x3f773f(0x178)](_0x453bf7),this[_0x3f773f(0x15f)]();}),this[_0xc42d66(0x17b)](_0x1037cd,_0xc42d66(0x171),()=>this[_0xc42d66(0x15f)]()),this[_0xc42d66(0x17b)](_0x1037cd,_0xc42d66(0x174),()=>this[_0xc42d66(0x180)]()),this['on'](_0xc42d66(0x150),()=>this[_0xc42d66(0x15f)]()),this['on'](_0xc42d66(0x18d),()=>this[_0xc42d66(0x15f)]()),this[_0xc42d66(0x18b)]({'tag':'ul','attributes':{'class':[_0xc42d66(0x176)]},'children':this[_0xc42d66(0x185)]});}get[_0x41a1ff(0x160)](){const _0x275a48=_0x41a1ff;return this[_0x275a48(0x188)][_0x275a48(0x159)]>this[_0x275a48(0x17a)][_0x275a48(0x161)]&&!this[_0x275a48(0x199)]&&!this[_0x275a48(0x190)];}[_0x41a1ff(0x15e)](){const _0x2575ed=_0x41a1ff;super[_0x2575ed(0x15e)](),this[_0x2575ed(0x15f)]();}[_0x41a1ff(0x183)](){const _0xd73ad6=_0x41a1ff;this[_0xd73ad6(0x181)][_0xd73ad6(0x183)]();}[_0x41a1ff(0x16a)](){const _0x4d4892=_0x41a1ff;this[_0x4d4892(0x194)][_0x4d4892(0x16a)]();for(const _0x3622ed of this[_0x4d4892(0x16d)])_0x3622ed[_0x4d4892(0x16a)]();super[_0x4d4892(0x16a)]();}[_0x41a1ff(0x15f)](){const _0x439f3f=_0x41a1ff;this[_0x439f3f(0x160)]?this[_0x439f3f(0x17d)]():this[_0x439f3f(0x17c)]();}[_0x41a1ff(0x193)](_0x7318cf,_0x25c9d5){const _0x3d5f81=_0x41a1ff,_0x4e5a5c=new this[(_0x3d5f81(0x17a))][(_0x3d5f81(0x151))](this[_0x3d5f81(0x197)],_0x7318cf,{'maxCommentCharsWhenCollapsed':this[_0x3d5f81(0x17a)][_0x3d5f81(0x155)],'formatDateTime':this[_0x3d5f81(0x17a)][_0x3d5f81(0x184)],'editorConfig':this[_0x3d5f81(0x17a)][_0x3d5f81(0x153)]});_0x4e5a5c[_0x3d5f81(0x16f)]=_0x7318cf['id'],_0x4e5a5c[_0x3d5f81(0x177)](_0x3d5f81(0x15c))['to'](this),_0x4e5a5c[_0x3d5f81(0x177)](_0x3d5f81(0x170))['to'](this),_0x4e5a5c[_0x3d5f81(0x177)](_0x3d5f81(0x175))['to'](this),_0x4e5a5c[_0x3d5f81(0x177)](_0x3d5f81(0x158))['to'](this),_0x4e5a5c[_0x3d5f81(0x177)](_0x3d5f81(0x163))['to'](this),this[_0x3d5f81(0x17b)](_0x4e5a5c,_0x3d5f81(0x15b),()=>this[_0x3d5f81(0x154)]()),this[_0x3d5f81(0x16d)][_0x3d5f81(0x173)](_0x4e5a5c,_0x25c9d5);}[_0x41a1ff(0x14e)](_0x3b6ad9){const _0x29d38e=_0x41a1ff,_0x13af28=this[_0x29d38e(0x188)][_0x29d38e(0x189)](_0x3b6ad9);return this[_0x29d38e(0x157)]?this[_0x29d38e(0x157)][_0x29d38e(0x165)]>_0x3b6ad9[_0x29d38e(0x165)]?_0x13af28-0x1:_0x13af28:_0x13af28-0x1;}[_0x41a1ff(0x180)](){const _0x3458b9=_0x41a1ff;if(this[_0x3458b9(0x188)][_0x3458b9(0x169)]&&this[_0x3458b9(0x188)][_0x3458b9(0x186)]){const _0x5aff6f={'id':_0x3458b9(0x198),'author':this[_0x3458b9(0x188)][_0x3458b9(0x169)],'authoredAt':this[_0x3458b9(0x188)][_0x3458b9(0x186)],'content':_0x2d7cbb(this[_0x3458b9(0x197)],_0x3458b9(0x18f)),'attributes':{}};this[_0x3458b9(0x157)]=new this[(_0x3458b9(0x17a))][(_0x3458b9(0x151))](this[_0x3458b9(0x197)],_0x5aff6f,{'maxCommentCharsWhenCollapsed':this[_0x3458b9(0x17a)][_0x3458b9(0x155)],'formatDateTime':this[_0x3458b9(0x17a)][_0x3458b9(0x184)],'editorConfig':this[_0x3458b9(0x17a)][_0x3458b9(0x153)],'isSystemComment':!0x0}),this[_0x3458b9(0x16d)][_0x3458b9(0x173)](this[_0x3458b9(0x157)],this[_0x3458b9(0x188)][_0x3458b9(0x189)](_0x5aff6f));}else this[_0x3458b9(0x157)]&&(this[_0x3458b9(0x16d)][_0x3458b9(0x196)](this[_0x3458b9(0x157)]),this[_0x3458b9(0x157)][_0x3458b9(0x16a)](),this[_0x3458b9(0x157)]=null);this[_0x3458b9(0x15f)]();}[_0x41a1ff(0x178)](_0x97ef13){const _0x591f33=_0x41a1ff,_0x5a39b9=this[_0x591f33(0x16d)][_0x591f33(0x196)](_0x97ef13['id']);this[_0x591f33(0x166)](_0x5a39b9),_0x5a39b9[_0x591f33(0x16b)]&&this[_0x591f33(0x154)](),_0x5a39b9[_0x591f33(0x16a)]();}[_0x41a1ff(0x154)](){const _0x264fa5=_0x41a1ff;this[_0x264fa5(0x190)]=Array[_0x264fa5(0x16c)](this[_0x264fa5(0x16d)])[_0x264fa5(0x15a)](_0x4de28e=>_0x4de28e[_0x264fa5(0x16b)]);}[_0x41a1ff(0x17d)](){const _0x167d3d=_0x41a1ff,_0x2fd755=function(_0x5206c8){const _0x4198e3=_0x215f,_0x48b3c1=new _0x4e741c();for(const _0x55b82b of _0x5206c8)_0x48b3c1[_0x4198e3(0x173)](_0x55b82b);return _0x48b3c1;}(this[_0x167d3d(0x16d)]),_0x3d8447=this[_0x167d3d(0x194)][_0x167d3d(0x162)];for(let _0x4b8b71=0x1;_0x4b8b71<=_0x3d8447;_0x4b8b71++)_0x2fd755[_0x167d3d(0x196)](0x1);for(const _0x5784b4 of _0x2fd755)_0x5784b4[_0x167d3d(0x152)]();_0x3d8447>0x0&&_0x2fd755[_0x167d3d(0x173)](this[_0x167d3d(0x194)],0x1),is(_0x1369f2(Array[_0x167d3d(0x16c)](this[_0x167d3d(0x185)]),Array[_0x167d3d(0x16c)](_0x2fd755)),this[_0x167d3d(0x185)],_0x2fd755);}[_0x41a1ff(0x17c)](){const _0x23cb1f=_0x41a1ff;is(_0x1369f2(Array[_0x23cb1f(0x16c)](this[_0x23cb1f(0x185)]),Array[_0x23cb1f(0x16c)](this[_0x23cb1f(0x16d)])),this[_0x23cb1f(0x185)],this[_0x23cb1f(0x16d)]);for(const _0x258567 of this[_0x23cb1f(0x185)])_0x258567[_0x23cb1f(0x18c)]();}}function _0x215f(_0x9d0cd9,_0x16d092){const _0xa9f66=_0xa9f6();return _0x215f=function(_0x215fc4,_0xfd16a5){_0x215fc4=_0x215fc4-0x14e;let _0x1dc960=_0xa9f66[_0x215fc4];return _0x1dc960;},_0x215f(_0x9d0cd9,_0x16d092);}function _0xa9f6(){const _0x592263=['742015leLDaX','change:isActive','CommentView','collapse','editorConfig','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','length','resolvedCommentView','editorReady','weight','some','change:isEditMode','removeComment','delete','render','refreshVisibleViews','_shouldCollapse','maxThreadTotalWeight','count','editorDestroyed','64MbIuzx','authoredAt','stopListening','equal','55728VFIxKc','resolvedBy','destroy','isEditMode','from','commentViews','331835JdXhNA','viewUid','updateComment','commentUpdated','comments','add','change:isResolved','resolveCommentThread','ck-thread__comments','delegate','_handleRemoveCommentModel','set','_config','listenTo','_rearrangeExpand','_rearrangeCollapse','8408IZYGTU','4hFCZOR','_handleInfoComment','element','728154DQBdrh','focus','formatDateTime','visibleViews','resolvedAt','bind','_model','_findOptimalIndex','insert','setTemplate','expand','change:hasDirtyComment','maxCommentsWhenCollapsed','Marked\x20as\x20resolved','hasDirtyComment','3782916VcneiT','1180638GIeFLo','_handleNewCommentModel','_collapsedCommentsView','createCollection','remove','locale','resolved','isActive','get','_calculatePosition'];_0xa9f6=function(){return _0x592263;};return _0xa9f6();}function is(_0xf1aac5,_0x19393c,_0x2b7fda){const _0x568ec3=_0x41a1ff;let _0x2c94b4=0x0;for(const _0x21428d of _0xf1aac5)switch(_0x21428d){case _0x568ec3(0x18a):_0x19393c[_0x568ec3(0x173)](_0x2b7fda[_0x568ec3(0x19a)](_0x2c94b4),_0x2c94b4),_0x2c94b4++;break;case _0x568ec3(0x15d):_0x19393c[_0x568ec3(0x196)](_0x2c94b4);break;case _0x568ec3(0x167):_0x2c94b4++;}}
|
|
23
|
+
const _0x42abc8=_0x3589;(function(_0x387b9c,_0x1910fc){const _0x6fb01e=_0x3589,_0x390d4d=_0x387b9c();while(!![]){try{const _0x3a4375=parseInt(_0x6fb01e(0x101))/0x1*(parseInt(_0x6fb01e(0x103))/0x2)+-parseInt(_0x6fb01e(0x11e))/0x3*(-parseInt(_0x6fb01e(0xd9))/0x4)+-parseInt(_0x6fb01e(0x114))/0x5*(parseInt(_0x6fb01e(0x115))/0x6)+parseInt(_0x6fb01e(0xf4))/0x7+parseInt(_0x6fb01e(0x124))/0x8*(parseInt(_0x6fb01e(0xe1))/0x9)+-parseInt(_0x6fb01e(0x131))/0xa+parseInt(_0x6fb01e(0xdd))/0xb*(-parseInt(_0x6fb01e(0xdf))/0xc);if(_0x3a4375===_0x1910fc)break;else _0x390d4d['push'](_0x390d4d['shift']());}catch(_0x1dd722){_0x390d4d['push'](_0x390d4d['shift']());}}}(_0x3071,0x9e751));import{View as _0x167d34,FocusCycler as _0x52ce59}from'ckeditor5/src/ui.js';function _0x3589(_0x569f91,_0x3fcd5c){const _0x3071bb=_0x3071();return _0x3589=function(_0x3589fd,_0x281e28){_0x3589fd=_0x3589fd-0xd7;let _0x39ec6e=_0x3071bb[_0x3589fd];return _0x39ec6e;},_0x3589(_0x569f91,_0x3fcd5c);}import{diff as _0x50ce40,Collection as _0x4a8dcf,FocusTracker as _0x104a06,KeystrokeHandler as _0x989aac}from'ckeditor5/src/utils.js';import{getTranslation as _0x216ebd}from'../../../utils/common-translations.js';import _0x1beeb6 from'./collapsedcommentsview.js';function _0x3071(){const _0x59449c=['map','_calculatePosition','_setupKeyboardNavigation','change:hasDirtyComment','Thread\x20comments','editorConfig','count','render','_handleInfoComment','6GQpNzx','resolvedCommentView','275958ecjkiT','add','authoredAt','collapse','some','focusTracker','expand','stopListening','insert','target','_rearrangeCollapse','viewUid','visibleViews','focusLast','maxCommentCharsWhenCollapsed','editorReady','change','5Hdyvtf','863682lVxfny','reverse','_handleRemoveCommentModel','_findOptimalIndex','keystrokes','_handleNewCommentModel','editorDestroyed','delegate','includes','3789qjDNqy','Marked\x20as\x20resolved','arrowup','commentViews','equal','element','2408goqouM','forEach','set','weight','focusFirst','isActive','hasDirtyComment','bind','listenTo','removeComment','ck-thread__comments','length','destroy','1643430yXHPVN','_model','from','isEditMode','maxCommentsWhenCollapsed','_shouldCollapse','updateComment','change:isResolved','formatDateTime','ck-hidden','change:isActive','3324RgTiRl','_rearrangeExpand','maxThreadTotalWeight','CommentView','2244143DDaFGN','locale','120lELKIl','_collapsedCommentsView','23553pYhZYF','commentUpdated','remove','focusCycler','removed','focus','resolveCommentThread','change:isEditMode','bindTemplate','resolved','_config','createCollection','refreshVisibleViews','comments','arrowdown','setTemplate','_updateHasDirtyComment','added','resolvedBy','2326219Xkwyfz','resolvedAt','delete','get'];_0x3071=function(){return _0x59449c;};return _0x3071();}export default class kt extends _0x167d34{constructor(_0x11092f,_0x3b9646,_0x680090){const _0x296078=_0x3589;super(_0x11092f);const _0x2b4dcc=this[_0x296078(0xe9)];this[_0x296078(0x126)](_0x296078(0x12a),!0x1),this[_0x296078(0x126)](_0x296078(0x12f),_0x3b9646[_0x296078(0xee)][_0x296078(0x12f)]),this[_0x296078(0x126)](_0x296078(0x129),!0x1),this[_0x296078(0x132)]=_0x3b9646,this[_0x296078(0xeb)]=_0x680090,this[_0x296078(0x121)]=this[_0x296078(0xec)](),this[_0x296078(0x10f)]=this[_0x296078(0xec)](),this[_0x296078(0x102)]=null,this[_0x296078(0x108)]=new _0x104a06(),this[_0x296078(0x119)]=new _0x989aac(),this[_0x296078(0xe4)]=new _0x52ce59({'focusables':this[_0x296078(0x121)],'focusTracker':this[_0x296078(0x108)],'keystrokeHandler':this[_0x296078(0x119)],'keystrokeHandlerOptions':{'filter':_0x2a8047=>this[_0x296078(0x121)][_0x296078(0xf8)](_0x37700d=>_0x37700d[_0x296078(0x123)])[_0x296078(0x11d)](_0x2a8047[_0x296078(0x10c)])},'actions':{'focusPrevious':_0x296078(0x120),'focusNext':_0x296078(0xef)}}),this[_0x296078(0xe0)]=new _0x1beeb6(_0x11092f),this[_0x296078(0xe0)][_0x296078(0x12b)](_0x296078(0xfe))['to'](this,_0x296078(0x12f),_0x4bee7f=>_0x4bee7f-this[_0x296078(0xeb)][_0x296078(0x135)]);for(const _0x66f850 of _0x3b9646[_0x296078(0xee)])this[_0x296078(0x11a)](_0x66f850);this[_0x296078(0x100)](),this[_0x296078(0x12c)](_0x3b9646[_0x296078(0xee)],_0x296078(0x104),(_0x46b2d2,_0x32bb70)=>{const _0x19d6ab=_0x296078,_0x1d35af=this[_0x19d6ab(0xf9)](_0x32bb70);this[_0x19d6ab(0x12f)]++,this[_0x19d6ab(0x11a)](_0x32bb70,_0x1d35af),this[_0x19d6ab(0xed)]();}),this[_0x296078(0x12c)](_0x3b9646[_0x296078(0xee)],_0x296078(0xe3),(_0x288b9c,_0x1b7f02)=>{const _0x1cc31a=_0x296078;this[_0x1cc31a(0x12f)]--,this[_0x1cc31a(0x117)](_0x1b7f02),this[_0x1cc31a(0xed)]();}),this[_0x296078(0x12c)](_0x3b9646,_0x296078(0xe2),()=>this[_0x296078(0xed)]()),this[_0x296078(0x12c)](_0x3b9646,_0x296078(0x138),()=>this[_0x296078(0x100)]()),this['on'](_0x296078(0xd8),()=>this[_0x296078(0xed)]()),this['on'](_0x296078(0xfb),()=>this[_0x296078(0xed)]()),this[_0x296078(0xf0)]({'tag':'ul','attributes':{'class':[_0x296078(0x12e),_0x2b4dcc['if'](_0x296078(0x12f),_0x296078(0xd7),_0x21a3a9=>!_0x21a3a9)],'aria-label':_0x216ebd(_0x11092f,_0x296078(0xfc))},'children':this[_0x296078(0x10f)]});}get[_0x42abc8(0x136)](){const _0x6a8aaa=_0x42abc8;return this[_0x6a8aaa(0x132)][_0x6a8aaa(0x127)]>this[_0x6a8aaa(0xeb)][_0x6a8aaa(0xdb)]&&!this[_0x6a8aaa(0x129)]&&!this[_0x6a8aaa(0x12a)];}[_0x42abc8(0xff)](){const _0x5ac5a9=_0x42abc8;super[_0x5ac5a9(0xff)](),this[_0x5ac5a9(0xed)](),this[_0x5ac5a9(0xfa)]();}[_0x42abc8(0xe6)](_0x27b20d){const _0x15f4f8=_0x42abc8;-0x1===_0x27b20d?this[_0x15f4f8(0xe4)][_0x15f4f8(0x110)]():this[_0x15f4f8(0xe4)][_0x15f4f8(0x128)]();}[_0x42abc8(0x130)](){const _0x411077=_0x42abc8;this[_0x411077(0xe0)][_0x411077(0x130)]();for(const _0x45cfb4 of this[_0x411077(0x121)])_0x45cfb4[_0x411077(0x130)]();super[_0x411077(0x130)]();}[_0x42abc8(0xed)](){const _0x10364c=_0x42abc8;this[_0x10364c(0x136)]?this[_0x10364c(0x10d)]():this[_0x10364c(0xda)]();}[_0x42abc8(0x11a)](_0x5ddafb,_0x5386eb){const _0x4a970c=_0x42abc8,_0x22b154=new this[(_0x4a970c(0xeb))][(_0x4a970c(0xdc))](this[_0x4a970c(0xde)],_0x5ddafb,{'maxCommentCharsWhenCollapsed':this[_0x4a970c(0xeb)][_0x4a970c(0x111)],'formatDateTime':this[_0x4a970c(0xeb)][_0x4a970c(0x139)],'editorConfig':this[_0x4a970c(0xeb)][_0x4a970c(0xfd)]});_0x22b154[_0x4a970c(0x10e)]=_0x5ddafb['id'],_0x22b154[_0x4a970c(0x11c)](_0x4a970c(0x12d))['to'](this),_0x22b154[_0x4a970c(0x11c)](_0x4a970c(0x137))['to'](this),_0x22b154[_0x4a970c(0x11c)](_0x4a970c(0xe7))['to'](this),_0x22b154[_0x4a970c(0x11c)](_0x4a970c(0x112))['to'](this),_0x22b154[_0x4a970c(0x11c)](_0x4a970c(0x11b))['to'](this),this[_0x4a970c(0x12c)](_0x22b154,_0x4a970c(0xe8),()=>this[_0x4a970c(0xf1)]()),this[_0x4a970c(0x121)][_0x4a970c(0x104)](_0x22b154,_0x5386eb);}[_0x42abc8(0xf9)](_0x2149fd){const _0x393499=_0x42abc8,_0x5e942e=this[_0x393499(0x132)][_0x393499(0x118)](_0x2149fd);return this[_0x393499(0x102)]?this[_0x393499(0x102)][_0x393499(0x105)]>_0x2149fd[_0x393499(0x105)]?_0x5e942e-0x1:_0x5e942e:_0x5e942e-0x1;}[_0x42abc8(0x100)](){const _0x547855=_0x42abc8;if(this[_0x547855(0x132)][_0x547855(0xf3)]&&this[_0x547855(0x132)][_0x547855(0xf5)]){const _0x1fb349={'id':_0x547855(0xea),'author':this[_0x547855(0x132)][_0x547855(0xf3)],'authoredAt':this[_0x547855(0x132)][_0x547855(0xf5)],'content':_0x216ebd(this[_0x547855(0xde)],_0x547855(0x11f)),'attributes':{}};this[_0x547855(0x102)]=new this[(_0x547855(0xeb))][(_0x547855(0xdc))](this[_0x547855(0xde)],_0x1fb349,{'maxCommentCharsWhenCollapsed':this[_0x547855(0xeb)][_0x547855(0x111)],'formatDateTime':this[_0x547855(0xeb)][_0x547855(0x139)],'editorConfig':this[_0x547855(0xeb)][_0x547855(0xfd)],'isSystemComment':!0x0}),this[_0x547855(0x121)][_0x547855(0x104)](this[_0x547855(0x102)],this[_0x547855(0x132)][_0x547855(0x118)](_0x1fb349));}else this[_0x547855(0x102)]&&(this[_0x547855(0x121)][_0x547855(0xe3)](this[_0x547855(0x102)]),this[_0x547855(0x102)][_0x547855(0x130)](),this[_0x547855(0x102)]=null);this[_0x547855(0xed)]();}[_0x42abc8(0x117)](_0x59923b){const _0x55502a=_0x42abc8,_0x377a39=this[_0x55502a(0x121)][_0x55502a(0xe3)](_0x59923b['id']);this[_0x55502a(0x10a)](_0x377a39),_0x377a39[_0x55502a(0x134)]&&this[_0x55502a(0xf1)](),_0x377a39[_0x55502a(0x130)]();}[_0x42abc8(0xf1)](){const _0x599e1d=_0x42abc8;this[_0x599e1d(0x12a)]=Array[_0x599e1d(0x133)](this[_0x599e1d(0x121)])[_0x599e1d(0x107)](_0xa3f0f0=>_0xa3f0f0[_0x599e1d(0x134)]);}[_0x42abc8(0x10d)](){const _0x5b8ce6=_0x42abc8,_0x4fa6e2=function(_0x524762){const _0x353b9a=_0x3589,_0x3caa3b=new _0x4a8dcf();for(const _0x16b1da of _0x524762)_0x3caa3b[_0x353b9a(0x104)](_0x16b1da);return _0x3caa3b;}(this[_0x5b8ce6(0x121)]),_0x592d12=this[_0x5b8ce6(0xe0)][_0x5b8ce6(0xfe)];for(let _0x4bc44d=0x1;_0x4bc44d<=_0x592d12;_0x4bc44d++)_0x4fa6e2[_0x5b8ce6(0xe3)](0x1);for(const _0x44551a of _0x4fa6e2)_0x44551a[_0x5b8ce6(0x106)]();_0x592d12>0x0&&_0x4fa6e2[_0x5b8ce6(0x104)](this[_0x5b8ce6(0xe0)],0x1),ms(_0x50ce40(Array[_0x5b8ce6(0x133)](this[_0x5b8ce6(0x10f)]),Array[_0x5b8ce6(0x133)](_0x4fa6e2)),this[_0x5b8ce6(0x10f)],_0x4fa6e2);}[_0x42abc8(0xda)](){const _0x15888e=_0x42abc8;ms(_0x50ce40(Array[_0x15888e(0x133)](this[_0x15888e(0x10f)]),Array[_0x15888e(0x133)](this[_0x15888e(0x121)])),this[_0x15888e(0x10f)],this[_0x15888e(0x121)]);for(const _0x559b6d of this[_0x15888e(0x10f)])_0x559b6d[_0x15888e(0x109)]();}[_0x42abc8(0xfa)](){const _0x2a40f0=_0x42abc8;this[_0x2a40f0(0x121)][_0x2a40f0(0x125)](_0x3e36f6=>{const _0x4518c6=_0x2a40f0;this[_0x4518c6(0x108)][_0x4518c6(0x104)](_0x3e36f6[_0x4518c6(0x123)]),this[_0x4518c6(0x119)][_0x4518c6(0x12c)](_0x3e36f6[_0x4518c6(0x123)]);}),this[_0x2a40f0(0x121)]['on'](_0x2a40f0(0x113),(_0x56e913,_0xcb2506)=>{const _0x4f00a9=_0x2a40f0;for(const _0x49f8e7 of _0xcb2506[_0x4f00a9(0xe5)])this[_0x4f00a9(0x108)][_0x4f00a9(0xe3)](_0x49f8e7[_0x4f00a9(0x123)]),this[_0x4f00a9(0x119)][_0x4f00a9(0x10a)](_0x49f8e7[_0x4f00a9(0x123)]);for(const _0x1db844 of Array[_0x4f00a9(0x133)](_0xcb2506[_0x4f00a9(0xf2)])[_0x4f00a9(0x116)]())this[_0x4f00a9(0x108)][_0x4f00a9(0x104)](_0x1db844[_0x4f00a9(0x123)]),this[_0x4f00a9(0x119)][_0x4f00a9(0x12c)](_0x1db844[_0x4f00a9(0x123)]);});}}function ms(_0x3bd3ab,_0xde83fd,_0x58b1e0){const _0x1a656c=_0x42abc8;let _0x23f4b3=0x0;for(const _0x4d1c54 of _0x3bd3ab)switch(_0x4d1c54){case _0x1a656c(0x10b):_0xde83fd[_0x1a656c(0x104)](_0x58b1e0[_0x1a656c(0xf7)](_0x23f4b3),_0x23f4b3),_0x23f4b3++;break;case _0x1a656c(0xf6):_0xde83fd[_0x1a656c(0xe3)](_0x23f4b3);break;case _0x1a656c(0x122):_0x23f4b3++;}}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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 { View, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* A view displaying the context of a comment thread. The context is a piece of text from editor content
|
|
9
|
+
* that comment was created on. It gives users a better understanding of what is discussed in the thread.
|
|
10
|
+
*/
|
|
11
|
+
export default class CommentThreadHeaderContextView extends View implements FocusableView {
|
|
12
|
+
/**
|
|
13
|
+
* The text of the content, it corresponds to some of the content in the editor.
|
|
14
|
+
*/
|
|
15
|
+
contextValue: string;
|
|
16
|
+
constructor(locale: Locale);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
focus(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3dff0f=_0x24aa;(function(_0x55d076,_0x4e29d8){const _0xe5c265=_0x24aa,_0x54f4d6=_0x55d076();while(!![]){try{const _0x4247c8=-parseInt(_0xe5c265(0x121))/0x1+-parseInt(_0xe5c265(0x118))/0x2*(-parseInt(_0xe5c265(0x112))/0x3)+-parseInt(_0xe5c265(0x120))/0x4+parseInt(_0xe5c265(0x10f))/0x5*(-parseInt(_0xe5c265(0x119))/0x6)+-parseInt(_0xe5c265(0x11e))/0x7*(parseInt(_0xe5c265(0x111))/0x8)+parseInt(_0xe5c265(0x113))/0x9+parseInt(_0xe5c265(0x11c))/0xa*(parseInt(_0xe5c265(0x110))/0xb);if(_0x4247c8===_0x4e29d8)break;else _0x54f4d6['push'](_0x54f4d6['shift']());}catch(_0x469250){_0x54f4d6['push'](_0x54f4d6['shift']());}}}(_0x2d84,0x7fad6));import{View as _0x407f53}from'ckeditor5/src/ui.js';function _0x2d84(){const _0x23224e=['span','set','setTemplate','2LFlyYy','43062GLCMWj','bindTemplate','element','109930OAvRGc','focus','104531VMuleN','ck-context__value','3600064CfGcAd','879993pQXFYL','THREAD_CONTEXT_LABEL','45CjSPrV','869zXZSVX','8JHShrt','1461399oGZJAH','9242289HfdXhR','contextValue'];_0x2d84=function(){return _0x23224e;};return _0x2d84();}function _0x24aa(_0x3c672e,_0x302a7e){const _0x2d84a4=_0x2d84();return _0x24aa=function(_0x24aa2c,_0x40bf10){_0x24aa2c=_0x24aa2c-0x10f;let _0x1f07d4=_0x2d84a4[_0x24aa2c];return _0x1f07d4;},_0x24aa(_0x3c672e,_0x302a7e);}import{getTranslation as _0x96306d}from'../../../utils/common-translations.js';export default class ls extends _0x407f53{constructor(_0x43faed){const _0x2b2e67=_0x24aa;super(_0x43faed);const _0x4ddcc4=this[_0x2b2e67(0x11a)];this[_0x2b2e67(0x116)](_0x2b2e67(0x114),''),this[_0x2b2e67(0x117)]({'tag':_0x2b2e67(0x115),'attributes':{'class':['ck',_0x2b2e67(0x11f)],'aria-label':_0x4ddcc4['to'](_0x2b2e67(0x114),_0x4aad8d=>_0x96306d(_0x43faed,_0x2b2e67(0x122),_0x4aad8d)),'tabindex':-0x1},'children':[{'text':_0x4ddcc4['to'](_0x2b2e67(0x114))}]});}[_0x3dff0f(0x11d)](){const _0x36d906=_0x3dff0f;this[_0x36d906(0x11b)][_0x36d906(0x11d)]();}}
|
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentthreadheaderview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
9
|
-
import type
|
|
8
|
+
import { View, ButtonView, FocusCycler, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type { CommentThread } from '../../commentsrepository.js';
|
|
11
|
+
import CommentThreadHeaderContextView from './commentthreadheadercontextview.js';
|
|
11
12
|
export declare const MAX_CONTENT_LENGTH = 150;
|
|
12
13
|
/**
|
|
13
14
|
* A view for the comment thread header.
|
|
14
15
|
*/
|
|
15
|
-
export default class CommentThreadHeaderView extends View {
|
|
16
|
+
export default class CommentThreadHeaderView extends View implements FocusableView {
|
|
16
17
|
locale: Locale;
|
|
17
18
|
/**
|
|
18
19
|
* Defines whether the context value exists.
|
|
@@ -30,6 +31,27 @@ export default class CommentThreadHeaderView extends View {
|
|
|
30
31
|
* Button view for the button which reopen the comment thread.
|
|
31
32
|
*/
|
|
32
33
|
reopenButtonView: ButtonView;
|
|
34
|
+
/**
|
|
35
|
+
* The view that displays the context of the comment thread to the user, for instance,
|
|
36
|
+
* the part of text the thread (first comment) relates to.
|
|
37
|
+
*/
|
|
38
|
+
contextView: CommentThreadHeaderContextView;
|
|
39
|
+
/**
|
|
40
|
+
* The collection of focusable sub-views in the header.
|
|
41
|
+
*/
|
|
42
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
43
|
+
/**
|
|
44
|
+
* Tracks information about DOM focus in the header view.
|
|
45
|
+
*/
|
|
46
|
+
readonly focusTracker: FocusTracker;
|
|
47
|
+
/**
|
|
48
|
+
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
49
|
+
*/
|
|
50
|
+
readonly keystrokes: KeystrokeHandler;
|
|
51
|
+
/**
|
|
52
|
+
* Helps cycling over focusable {@link #commentThreadChildren} in the header view.
|
|
53
|
+
*/
|
|
54
|
+
readonly focusCycler: FocusCycler;
|
|
33
55
|
/**
|
|
34
56
|
* @inheritDoc
|
|
35
57
|
*/
|
|
@@ -38,6 +60,10 @@ export default class CommentThreadHeaderView extends View {
|
|
|
38
60
|
* @inheritDoc
|
|
39
61
|
*/
|
|
40
62
|
render(): void;
|
|
63
|
+
/**
|
|
64
|
+
* @inheritDoc
|
|
65
|
+
*/
|
|
66
|
+
focus(): void;
|
|
41
67
|
}
|
|
42
68
|
/**
|
|
43
69
|
* Fired when a user performed an action that should lead to reopen the resolved comment thread.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa6511=_0x5670;(function(_0x2931e2,_0x2b3c1e){const _0x3eeefb=_0x5670,_0x19b780=_0x2931e2();while(!![]){try{const _0x5f4d3b=parseInt(_0x3eeefb(0x1ee))/0x1*(-parseInt(_0x3eeefb(0x1cd))/0x2)+parseInt(_0x3eeefb(0x1fa))/0x3+parseInt(_0x3eeefb(0x1d1))/0x4*(-parseInt(_0x3eeefb(0x205))/0x5)+parseInt(_0x3eeefb(0x1d5))/0x6+-parseInt(_0x3eeefb(0x1d4))/0x7+parseInt(_0x3eeefb(0x1fc))/0x8*(-parseInt(_0x3eeefb(0x1ce))/0x9)+-parseInt(_0x3eeefb(0x1ff))/0xa*(-parseInt(_0x3eeefb(0x1f8))/0xb);if(_0x5f4d3b===_0x2b3c1e)break;else _0x19b780['push'](_0x19b780['shift']());}catch(_0x1a3940){_0x19b780['push'](_0x19b780['shift']());}}}(_0x2fe8,0x22798));import{View as _0x4a3d65,ButtonView as _0x285dc0,FocusCycler as _0x25239c}from'ckeditor5/src/ui.js';function _0x2fe8(){const _0x2afd36=['65466VEBxoc','Comment\x20was\x20made\x20on\x20an\x20element','280demipu','execute','icon','710ArijKU','...','substring','isReadOnly','locale','createCollection','48535CLVsJO','shift+tab','ck-context','classList','_createContextView','Reopen','.ck-context__value','mouseleave','isVisible','reopenButtonView','contextView','contextValue','focusTracker','_model','div','focusFirst','isResolvable','8404QTCvHP','32931UgBnkR','keystrokes','focus','8THPWBo','.ck-context','ck-annotation__actions','1688645Mngxgg','1675674KvJzUP','focusCycler','hasContext','bindTemplate','isEnabled','ck-thread__header','tab','ck-context-wrapper','lastIndexOf','context','value','scrollWidth','_createReopenButton','focusables','element','tooltip','_attachContextActions','ck-context--quotes','bind','isResolved','overlay','label','length','mouseenter','remove','61WnrqVr','render','reopenCommentThread','_setupKeyboardNavigation','querySelector','_trimContextValue','setTemplate','listenTo','add','offsetWidth','75163ldFccf','fire'];_0x2fe8=function(){return _0x2afd36;};return _0x2fe8();}function _0x5670(_0x1cc98c,_0x4cd3da){const _0x2fe816=_0x2fe8();return _0x5670=function(_0x5670e1,_0x28a8db){_0x5670e1=_0x5670e1-0x1c2;let _0x24284b=_0x2fe816[_0x5670e1];return _0x24284b;},_0x5670(_0x1cc98c,_0x4cd3da);}import{FocusTracker as _0x160676,KeystrokeHandler as _0x18e9fd}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b4208}from'../../../utils/common-translations.js';import _0x2201b1 from'../../../../theme/icons/undo.svg';import _0xcbdfbf from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;export default class ts extends _0x4a3d65{constructor(_0x313277,_0x30f39e){const _0x1c4e09=_0x5670;super(_0x313277);const _0x4577e7=this[_0x1c4e09(0x1d8)];this[_0x1c4e09(0x1c9)]=_0x30f39e,this[_0x1c4e09(0x1c5)]=this[_0x1c4e09(0x1e1)](),this[_0x1c4e09(0x1c6)]=this[_0x1c4e09(0x209)](),this[_0x1c4e09(0x1e2)]=this[_0x1c4e09(0x204)]([this[_0x1c4e09(0x1c6)],this[_0x1c4e09(0x1c5)]]),this[_0x1c4e09(0x1c8)]=new _0x160676(),this[_0x1c4e09(0x1cf)]=new _0x18e9fd(),this[_0x1c4e09(0x1d6)]=new _0x25239c({'focusables':this[_0x1c4e09(0x1e2)],'focusTracker':this[_0x1c4e09(0x1c8)],'keystrokeHandler':this[_0x1c4e09(0x1cf)],'actions':{'focusPrevious':_0x1c4e09(0x206),'focusNext':_0x1c4e09(0x1db)}}),this[_0x1c4e09(0x1e7)](_0x1c4e09(0x1d7))['to'](this[_0x1c4e09(0x1c9)],_0x1c4e09(0x1de),_0x14bb94=>!!_0x14bb94),this[_0x1c4e09(0x1e7)](_0x1c4e09(0x1c7))['to'](this[_0x1c4e09(0x1c9)],_0x1c4e09(0x1de),_0x471d3c=>_0x471d3c&&_0x471d3c[_0x1c4e09(0x1df)]?this[_0x1c4e09(0x1f3)](_0x471d3c[_0x1c4e09(0x1df)]):_0x1b4208(this[_0x1c4e09(0x203)],_0x1c4e09(0x1fb))),this[_0x1c4e09(0x1f4)]({'tag':_0x1c4e09(0x1ca),'attributes':{'class':[_0x1c4e09(0x1da)]},'children':[{'tag':_0x1c4e09(0x1ca),'attributes':{'class':[_0x1c4e09(0x1dc)]},'children':[{'tag':_0x1c4e09(0x1ca),'attributes':{'class':[_0x1c4e09(0x207),_0x4577e7['if'](_0x1c4e09(0x1d7),_0x1c4e09(0x1e6))]},'children':[this[_0x1c4e09(0x1c6)]]}]},{'tag':_0x1c4e09(0x1ca),'attributes':{'class':[_0x1c4e09(0x1d3)]},'children':[this[_0x1c4e09(0x1c5)]]}]});}[_0xa6511(0x1ef)](){const _0x217735=_0xa6511;super[_0x217735(0x1ef)](),this[_0x217735(0x1e5)](),this[_0x217735(0x1f1)]();}[_0xa6511(0x1d0)](){const _0xe977b0=_0xa6511;this[_0xe977b0(0x1d6)][_0xe977b0(0x1cb)]();}[_0xa6511(0x1e1)](){const _0x38c1ad=_0xa6511,_0x34990d=new _0x285dc0(this[_0x38c1ad(0x203)]);return _0x34990d[_0x38c1ad(0x1ea)]=_0x1b4208(this[_0x38c1ad(0x203)],_0x38c1ad(0x20a)),_0x34990d[_0x38c1ad(0x1e4)]=_0x1b4208(this[_0x38c1ad(0x203)],_0x38c1ad(0x20a)),_0x34990d[_0x38c1ad(0x1fe)]=_0x2201b1,_0x34990d[_0x38c1ad(0x1e7)](_0x38c1ad(0x1d9))['to'](this[_0x38c1ad(0x1c9)],_0x38c1ad(0x202),_0x28cf3b=>!_0x28cf3b),_0x34990d[_0x38c1ad(0x1e7)](_0x38c1ad(0x1c4))['to'](this[_0x38c1ad(0x1c9)],_0x38c1ad(0x1cc),this[_0x38c1ad(0x1c9)],_0x38c1ad(0x1e8),(_0x77d3b8,_0x2c85c0)=>_0x77d3b8&&_0x2c85c0),_0x34990d['on'](_0x38c1ad(0x1fd),()=>{const _0x285dc5=_0x38c1ad;this[_0x285dc5(0x1f9)](_0x285dc5(0x1f0),this[_0x285dc5(0x1c9)]['id']);}),_0x34990d;}[_0xa6511(0x1f3)](_0x17a53b){const _0x2d1514=_0xa6511;if(_0x17a53b[_0x2d1514(0x1eb)]<0x96)return _0x17a53b;const _0x2ee85f=_0x17a53b[_0x2d1514(0x1dd)]('\x20',0x93);return _0x17a53b[_0x2d1514(0x201)](0x0,_0x2ee85f>-0x1?_0x2ee85f:0x93)+_0x2d1514(0x200);}[_0xa6511(0x1e5)](){const _0x7ba988=_0xa6511,_0x58da55=this[_0x7ba988(0x1e3)][_0x7ba988(0x1f2)](_0x7ba988(0x1d2)),_0x469b88=_0x58da55[_0x7ba988(0x1f2)](_0x7ba988(0x1c2));this[_0x7ba988(0x1f5)](_0x58da55,_0x7ba988(0x1ec),()=>{const _0x4c950a=_0x7ba988;_0x469b88[_0x4c950a(0x1f7)]<_0x469b88[_0x4c950a(0x1e0)]&&_0x58da55[_0x4c950a(0x208)][_0x4c950a(0x1f6)](_0x4c950a(0x1e9));}),this[_0x7ba988(0x1f5)](_0x58da55,_0x7ba988(0x1c3),()=>{const _0xe37efb=_0x7ba988;_0x58da55[_0xe37efb(0x208)][_0xe37efb(0x1ed)](_0xe37efb(0x1e9));});}[_0xa6511(0x1f1)](){const _0x37f523=_0xa6511;this[_0x37f523(0x1cf)][_0x37f523(0x1f5)](this[_0x37f523(0x1e3)]);for(const _0x59d6d5 of this[_0x37f523(0x1e2)])this[_0x37f523(0x1c8)][_0x37f523(0x1f6)](_0x59d6d5[_0x37f523(0x1e3)]),this[_0x37f523(0x1cf)][_0x37f523(0x1f5)](_0x59d6d5[_0x37f523(0x1e3)]);}[_0xa6511(0x209)](){const _0x22f9db=_0xa6511,_0x55f210=new _0xcbdfbf(this[_0x22f9db(0x203)]);return _0x55f210[_0x22f9db(0x1e7)](_0x22f9db(0x1c7))['to'](this),_0x55f210;}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentthreadinputview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import { type FocusableView, type FocusCycler, View } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import CommentInputView from './commentinputview.js';
|
|
10
10
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
@@ -13,7 +13,7 @@ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-c
|
|
|
13
13
|
/**
|
|
14
14
|
* View that represents comment input area for a comment thread. Includes editor, user view and buttons.
|
|
15
15
|
*/
|
|
16
|
-
export default class CommentThreadInputView extends View {
|
|
16
|
+
export default class CommentThreadInputView extends View implements FocusableView {
|
|
17
17
|
/**
|
|
18
18
|
* Specifies whether the comment input view should be visible (`true`) or hidden (`false`).
|
|
19
19
|
*
|
|
@@ -24,6 +24,13 @@ export default class CommentThreadInputView extends View {
|
|
|
24
24
|
* Comment input view.
|
|
25
25
|
*/
|
|
26
26
|
commentInputView: CommentInputView;
|
|
27
|
+
/**
|
|
28
|
+
* Helps move focus between focusable elements.
|
|
29
|
+
*
|
|
30
|
+
* **Note:** This property is a proxy is exposed for parent views to discover and use focus cycling capabilities of the view
|
|
31
|
+
* while in fact the actual implementation is in the {@link #commentInputView}.
|
|
32
|
+
*/
|
|
33
|
+
focusCycler: FocusCycler;
|
|
27
34
|
/**
|
|
28
35
|
* User view for the input area. Presents the local user.
|
|
29
36
|
*/
|
|
@@ -38,4 +45,8 @@ export default class CommentThreadInputView extends View {
|
|
|
38
45
|
* @inheritDoc
|
|
39
46
|
*/
|
|
40
47
|
destroy(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
focus(direction?: 1 | -1): void;
|
|
41
52
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x38b82c=_0x41d0;(function(_0x550ae0,_0x25e61f){var _0x277b7d=_0x41d0,_0x516661=_0x550ae0();while(!![]){try{var _0x18f5fb=-parseInt(_0x277b7d(0x170))/0x1+-parseInt(_0x277b7d(0x18d))/0x2+parseInt(_0x277b7d(0x177))/0x3*(parseInt(_0x277b7d(0x174))/0x4)+-parseInt(_0x277b7d(0x18e))/0x5+parseInt(_0x277b7d(0x16f))/0x6+parseInt(_0x277b7d(0x185))/0x7+parseInt(_0x277b7d(0x17e))/0x8;if(_0x18f5fb===_0x25e61f)break;else _0x516661['push'](_0x516661['shift']());}catch(_0x394279){_0x516661['push'](_0x516661['shift']());}}}(_0x3f03,0xa648e));function _0x41d0(_0x3f3968,_0x222602){var _0x3f0348=_0x3f03();return _0x41d0=function(_0x41d020,_0x5a208e){_0x41d020=_0x41d020-0x16e;var _0x35165f=_0x3f0348[_0x41d020];return _0x35165f;},_0x41d0(_0x3f3968,_0x222602);}import{View as _0x5f4672}from'ckeditor5/src/ui.js';import _0x5be659 from'./commentinputview.js';function _0x3f03(){var _0x41fab9=['bindTemplate','isFocused','value','then','delegate','6300344FuIxLM','destroy','focusTracker','ck-comment__input-container--active','createEditor','userView','showInput','6538469yFxrlU','change:showInput','ck-thread__input','setTemplate','ck-thread__user','extendTemplate','set','editorDestroyed','1179598cFnrvI','5101895ntOrMT','editorReady','bind','editor','2032488gAEpVM','97809aXkwti','focusCycler','focus','div','1314924GMQtyM','ck-comment__input-container','commentInputView','3ArNyeO','showButtons'];_0x3f03=function(){return _0x41fab9;};return _0x3f03();}import{UserView as _0x19a6c7}from'ckeditor5-collaboration/src/collaboration-core.js';export default class xt extends _0x5f4672{constructor(_0x312384,_0x26e85c,_0x4822b8){var _0x59da5c=_0x41d0;super(_0x312384),this[_0x59da5c(0x176)]=new _0x5be659(_0x312384,_0x4822b8),this[_0x59da5c(0x171)]=this[_0x59da5c(0x176)][_0x59da5c(0x171)],this[_0x59da5c(0x176)][_0x59da5c(0x190)](_0x59da5c(0x178))['to'](this[_0x59da5c(0x176)][_0x59da5c(0x180)],_0x59da5c(0x17a),this[_0x59da5c(0x176)],_0x59da5c(0x17b),(_0x18d13a,_0x13909e)=>_0x18d13a||!!_0x13909e),this[_0x59da5c(0x18b)](_0x59da5c(0x184),!0x1),this['on'](_0x59da5c(0x186),()=>{var _0x1d504b=_0x59da5c;this[_0x1d504b(0x184)]&&!this[_0x1d504b(0x176)][_0x1d504b(0x16e)]&&this[_0x1d504b(0x176)][_0x1d504b(0x182)]();}),this[_0x59da5c(0x176)][_0x59da5c(0x17d)](_0x59da5c(0x18f))['to'](this),this[_0x59da5c(0x176)][_0x59da5c(0x17d)](_0x59da5c(0x18c))['to'](this),this[_0x59da5c(0x183)]=new _0x19a6c7(_0x312384,_0x26e85c),this[_0x59da5c(0x183)][_0x59da5c(0x18a)]({'attributes':{'class':_0x59da5c(0x189),'aria-hidden':!0x0}}),this[_0x59da5c(0x176)][_0x59da5c(0x18a)]({'attributes':{'class':_0x59da5c(0x187)}}),this[_0x59da5c(0x188)]({'tag':_0x59da5c(0x173),'attributes':{'class':[_0x59da5c(0x175),this[_0x59da5c(0x179)]['if'](_0x59da5c(0x184),_0x59da5c(0x181))]},'children':[this[_0x59da5c(0x183)],this[_0x59da5c(0x176)]]});}[_0x38b82c(0x17f)](){var _0xa71b6f=_0x38b82c;return this[_0xa71b6f(0x176)][_0xa71b6f(0x17f)]()[_0xa71b6f(0x17c)](()=>super[_0xa71b6f(0x17f)]());}[_0x38b82c(0x172)](_0x3bf9d9){var _0x470b9b=_0x38b82c;this[_0x470b9b(0x176)][_0x470b9b(0x172)](_0x3bf9d9);}}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import { type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
|
-
import {
|
|
10
|
+
import { LateFocusButtonView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
|
+
import { type View, type ViewWithFocusCycler, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
12
12
|
import BaseCommentThreadView from './basecommentthreadview.js';
|
|
13
13
|
import type { CommentThread } from '../../commentsrepository.js';
|
|
14
14
|
import type { CommentThreadConfig } from '../../../config.js';
|
|
@@ -16,7 +16,7 @@ declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typ
|
|
|
16
16
|
/**
|
|
17
17
|
* The default view for comment thread.
|
|
18
18
|
*/
|
|
19
|
-
export default class CommentThreadView extends /* #__PURE__ -- @preserve */ CommentThreadView_base {
|
|
19
|
+
export default class CommentThreadView extends /* #__PURE__ -- @preserve */ CommentThreadView_base implements ViewWithFocusCycler {
|
|
20
20
|
isConfirm: boolean;
|
|
21
21
|
cancelConfirm: () => void;
|
|
22
22
|
showConfirm: (key: string, element: unknown) => Promise<void>;
|
|
@@ -46,7 +46,7 @@ export default class CommentThreadView extends /* #__PURE__ -- @preserve */ Comm
|
|
|
46
46
|
*
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
|
-
readonly commentThreadChildren: ViewCollection
|
|
49
|
+
readonly commentThreadChildren: ViewCollection<View>;
|
|
50
50
|
/**
|
|
51
51
|
* `ConfirmView` uses this element as a container for confirmation dialog.
|
|
52
52
|
*
|
|
@@ -60,7 +60,7 @@ export default class CommentThreadView extends /* #__PURE__ -- @preserve */ Comm
|
|
|
60
60
|
*
|
|
61
61
|
* @readonly
|
|
62
62
|
*/
|
|
63
|
-
readonly resolveButton:
|
|
63
|
+
readonly resolveButton: LateFocusButtonView;
|
|
64
64
|
/**
|
|
65
65
|
* @inheritDoc
|
|
66
66
|
*/
|
|
@@ -80,8 +80,10 @@ export default class CommentThreadView extends /* #__PURE__ -- @preserve */ Comm
|
|
|
80
80
|
*
|
|
81
81
|
* attributes: {
|
|
82
82
|
* class: [
|
|
83
|
+
* 'ck',
|
|
83
84
|
* 'ck-thread',
|
|
84
85
|
* 'ck-reset_all-excluded',
|
|
86
|
+
* 'ck-rounded-corners',
|
|
85
87
|
* bind.if( 'isActive', 'ck-thread--active' ),
|
|
86
88
|
* bind.if( 'isUnlinked', 'ck-thread--unlinked' ),
|
|
87
89
|
* bind.if( 'isConfirm', 'ck-thread--remove-confirmation' ),
|
|
@@ -89,7 +91,10 @@ export default class CommentThreadView extends /* #__PURE__ -- @preserve */ Comm
|
|
|
89
91
|
* ],
|
|
90
92
|
* 'data-thread-id': this._model.id,
|
|
91
93
|
* // Needed for managing focus after adding new comment.
|
|
92
|
-
* tabindex:
|
|
94
|
+
* tabindex: 0,
|
|
95
|
+
* role: 'listitem',
|
|
96
|
+
* 'aria-label': bind.to( 'ariaLabel' ),
|
|
97
|
+
* 'aria-describedby': this.ariaDescriptionView.id
|
|
93
98
|
* },
|
|
94
99
|
*
|
|
95
100
|
* children: [
|