@ckeditor/ckeditor5-comments 40.0.0 → 40.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- 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/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/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1129 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
|
@@ -1,90 +1,90 @@
|
|
|
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 comments/annotations/view/annotationview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import '../../../theme/annotation.css';
|
|
12
|
-
/**
|
|
13
|
-
* A wrapping view for any view added to the `Annotations` plugin.
|
|
14
|
-
*
|
|
15
|
-
* It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
|
|
16
|
-
* and other observable properties that help share current annotation state across different UIs.
|
|
17
|
-
*/
|
|
18
|
-
export default class AnnotationView extends View {
|
|
19
|
-
/**
|
|
20
|
-
* Tracks focus on the annotation view.
|
|
21
|
-
*
|
|
22
|
-
* Add a DOM element to this focus tracker to prevent blurring annotation view
|
|
23
|
-
* when the DOM element is focused.
|
|
24
|
-
*/
|
|
25
|
-
readonly focusTracker: FocusTracker;
|
|
26
|
-
readonly id: string;
|
|
27
|
-
readonly keystrokes: KeystrokeHandler;
|
|
28
|
-
/**
|
|
29
|
-
* Target rectangle to which the annotation should be attached.
|
|
30
|
-
*
|
|
31
|
-
* @observable
|
|
32
|
-
*/
|
|
33
|
-
targetRect: Rect | null;
|
|
34
|
-
/**
|
|
35
|
-
* Annotation view height.
|
|
36
|
-
*
|
|
37
|
-
* @observable
|
|
38
|
-
*/
|
|
39
|
-
height: number;
|
|
40
|
-
/**
|
|
41
|
-
* Informs if an annotation is active.
|
|
42
|
-
*
|
|
43
|
-
* @observable
|
|
44
|
-
*/
|
|
45
|
-
isActive: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Informs if there are unsaved changes in the annotation.
|
|
48
|
-
*
|
|
49
|
-
* @observable
|
|
50
|
-
*/
|
|
51
|
-
isDirty: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* The number of items in the annotation.
|
|
54
|
-
*
|
|
55
|
-
* @observable
|
|
56
|
-
*/
|
|
57
|
-
length: number;
|
|
58
|
-
/**
|
|
59
|
-
* @observable
|
|
60
|
-
*/
|
|
61
|
-
type: string;
|
|
62
|
-
element: HTMLElement;
|
|
63
|
-
/**
|
|
64
|
-
* Collection for content views.
|
|
65
|
-
*/
|
|
66
|
-
content: ViewCollection;
|
|
67
|
-
/**
|
|
68
|
-
* The inner annotation view.
|
|
69
|
-
*/
|
|
70
|
-
mainView: AnnotationMainView;
|
|
71
|
-
/**
|
|
72
|
-
* @inheritDoc
|
|
73
|
-
*/
|
|
74
|
-
constructor(locale: Locale, mainView: AnnotationMainView);
|
|
75
|
-
/**
|
|
76
|
-
* @inheritDoc
|
|
77
|
-
*/
|
|
78
|
-
render(): void;
|
|
79
|
-
/**
|
|
80
|
-
* @inheritDoc
|
|
81
|
-
*/
|
|
82
|
-
destroy(): void;
|
|
83
|
-
/**
|
|
84
|
-
* Focuses the annotation view.
|
|
85
|
-
*/
|
|
86
|
-
focus(): void;
|
|
87
|
-
}
|
|
88
|
-
export interface AnnotationMainView extends View {
|
|
89
|
-
isActive: boolean;
|
|
90
|
-
}
|
|
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 comments/annotations/view/annotationview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
import '../../../theme/annotation.css';
|
|
12
|
+
/**
|
|
13
|
+
* A wrapping view for any view added to the `Annotations` plugin.
|
|
14
|
+
*
|
|
15
|
+
* It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
|
|
16
|
+
* and other observable properties that help share current annotation state across different UIs.
|
|
17
|
+
*/
|
|
18
|
+
export default class AnnotationView extends View {
|
|
19
|
+
/**
|
|
20
|
+
* Tracks focus on the annotation view.
|
|
21
|
+
*
|
|
22
|
+
* Add a DOM element to this focus tracker to prevent blurring annotation view
|
|
23
|
+
* when the DOM element is focused.
|
|
24
|
+
*/
|
|
25
|
+
readonly focusTracker: FocusTracker;
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly keystrokes: KeystrokeHandler;
|
|
28
|
+
/**
|
|
29
|
+
* Target rectangle to which the annotation should be attached.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
targetRect: Rect | null;
|
|
34
|
+
/**
|
|
35
|
+
* Annotation view height.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
height: number;
|
|
40
|
+
/**
|
|
41
|
+
* Informs if an annotation is active.
|
|
42
|
+
*
|
|
43
|
+
* @observable
|
|
44
|
+
*/
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Informs if there are unsaved changes in the annotation.
|
|
48
|
+
*
|
|
49
|
+
* @observable
|
|
50
|
+
*/
|
|
51
|
+
isDirty: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The number of items in the annotation.
|
|
54
|
+
*
|
|
55
|
+
* @observable
|
|
56
|
+
*/
|
|
57
|
+
length: number;
|
|
58
|
+
/**
|
|
59
|
+
* @observable
|
|
60
|
+
*/
|
|
61
|
+
type: string;
|
|
62
|
+
element: HTMLElement;
|
|
63
|
+
/**
|
|
64
|
+
* Collection for content views.
|
|
65
|
+
*/
|
|
66
|
+
content: ViewCollection;
|
|
67
|
+
/**
|
|
68
|
+
* The inner annotation view.
|
|
69
|
+
*/
|
|
70
|
+
mainView: AnnotationMainView;
|
|
71
|
+
/**
|
|
72
|
+
* @inheritDoc
|
|
73
|
+
*/
|
|
74
|
+
constructor(locale: Locale, mainView: AnnotationMainView);
|
|
75
|
+
/**
|
|
76
|
+
* @inheritDoc
|
|
77
|
+
*/
|
|
78
|
+
render(): void;
|
|
79
|
+
/**
|
|
80
|
+
* @inheritDoc
|
|
81
|
+
*/
|
|
82
|
+
destroy(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Focuses the annotation view.
|
|
85
|
+
*/
|
|
86
|
+
focus(): void;
|
|
87
|
+
}
|
|
88
|
+
export interface AnnotationMainView extends View {
|
|
89
|
+
isActive: boolean;
|
|
90
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ef4=['attach','focusTracker','add','mainView','ck-annotation-wrapper--active','targetRect','type','destroy','isActive','setTemplate','content','isDirty','Esc','bindTemplate','clear','ck-annotation-wrapper','element','createCollection','set','_updateHeight','ck-rounded-corners','clientHeight','div','listenTo','fire','height','_mutationObserver','keystrokes','length','render'];(function(_0x5a7216,_0x1ef469){const _0x19085f=function(_0x30aa24){while(--_0x30aa24){_0x5a7216['push'](_0x5a7216['shift']());}};_0x19085f(++_0x1ef469);}(_0x1ef4,0x1e0));const _0x1908=function(_0x5a7216,_0x1ef469){_0x5a7216=_0x5a7216-0x0;let _0x19085f=_0x1ef4[_0x5a7216];return _0x19085f;};import{View as _0x131e2c}from'ckeditor5/src/ui';import{FocusTracker as _0x476734,KeystrokeHandler as _0x4f90aa,uid as _0x28a9f}from'ckeditor5/src/utils';import _0x348e6a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x131e2c{constructor(_0x4098ce,_0x19fc59){super(_0x4098ce),this['id']=_0x28a9f(),this[_0x1908('0x1')]=new _0x476734(),this[_0x1908('0x1b')]=new _0x4f90aa(),this[_0x1908('0x1b')]['set'](_0x1908('0xc'),(_0x27c3b6,_0x3a6742)=>this[_0x1908('0x18')](_0x1908('0xc'),_0x3a6742)),this[_0x1908('0x12')](_0x1908('0x5'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1908('0x12')](_0x1908('0x19'),0x0),this[_0x1908('0x12')]('isActive',!0x1),this[_0x1908('0x12')](_0x1908('0xb'),!0x1),this['set'](_0x1908('0x1c'),0x0),this[_0x1908('0x12')](_0x1908('0x6'),''),this[_0x1908('0x1a')]=_0x348e6a(()=>this[_0x1908('0x13')]()),this[_0x1908('0xa')]=this[_0x1908('0x11')](),this['content'][_0x1908('0x2')](_0x19fc59),this[_0x1908('0x3')]=_0x19fc59;const _0x217acc=this[_0x1908('0xd')];this[_0x1908('0x9')]({'tag':_0x1908('0x16'),'attributes':{'class':['ck',_0x1908('0xf'),_0x1908('0x14'),_0x217acc['if'](_0x1908('0x8'),_0x1908('0x4'))],'tabindex':-0x1},'children':this[_0x1908('0xa')]});}[_0x1908('0x1d')](){super['render'](),this[_0x1908('0x1')]['add'](this[_0x1908('0x10')]),this[_0x1908('0x1b')][_0x1908('0x17')](this['element']),this['_mutationObserver'][_0x1908('0x0')](this[_0x1908('0x10')]);}['destroy'](){this[_0x1908('0xa')][_0x1908('0xe')](),this[_0x1908('0x1b')][_0x1908('0x7')](),this[_0x1908('0x1')][_0x1908('0x7')](),this[_0x1908('0x1a')]['detach'](),super[_0x1908('0x7')]();}['focus'](){this[_0x1908('0x10')]['focus']();}['_updateHeight'](){const _0xbe28ca=this[_0x1908('0x10')][_0x1908('0x15')];_0xbe28ca&&(this[_0x1908('0x19')]=_0xbe28ca);}}
|
|
@@ -1,55 +1,55 @@
|
|
|
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 comments/annotations/view/sidebaritemview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
/**
|
|
12
|
-
* A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
|
|
13
|
-
*/
|
|
14
|
-
export default class SidebarItemView extends View {
|
|
15
|
-
element: HTMLElement;
|
|
16
|
-
/**
|
|
17
|
-
* The item top offset.
|
|
18
|
-
* Setting `0` as the initial value makes new items falling from heaven.
|
|
19
|
-
*
|
|
20
|
-
* @observable
|
|
21
|
-
*/
|
|
22
|
-
top: number;
|
|
23
|
-
/**
|
|
24
|
-
* @observable
|
|
25
|
-
*/
|
|
26
|
-
bottom: number;
|
|
27
|
-
/**
|
|
28
|
-
* @observable
|
|
29
|
-
*/
|
|
30
|
-
height: number;
|
|
31
|
-
/**
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
isAnimationDisabled: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* A collection of content views.
|
|
37
|
-
*/
|
|
38
|
-
content: ViewCollection;
|
|
39
|
-
/**
|
|
40
|
-
* @inheritDoc
|
|
41
|
-
*/
|
|
42
|
-
constructor(locale: Locale);
|
|
43
|
-
/**
|
|
44
|
-
* @inheritDoc
|
|
45
|
-
*/
|
|
46
|
-
render(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Updates {@link #height the height property} according to the element's DOM height.
|
|
49
|
-
*/
|
|
50
|
-
updateHeight(): void;
|
|
51
|
-
/**
|
|
52
|
-
* @inheritDoc
|
|
53
|
-
*/
|
|
54
|
-
destroy(): void;
|
|
55
|
-
}
|
|
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 comments/annotations/view/sidebaritemview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
/**
|
|
12
|
+
* A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
|
|
13
|
+
*/
|
|
14
|
+
export default class SidebarItemView extends View {
|
|
15
|
+
element: HTMLElement;
|
|
16
|
+
/**
|
|
17
|
+
* The item top offset.
|
|
18
|
+
* Setting `0` as the initial value makes new items falling from heaven.
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
top: number;
|
|
23
|
+
/**
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
bottom: number;
|
|
27
|
+
/**
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
height: number;
|
|
31
|
+
/**
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
isAnimationDisabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* A collection of content views.
|
|
37
|
+
*/
|
|
38
|
+
content: ViewCollection;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
constructor(locale: Locale);
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
render(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Updates {@link #height the height property} according to the element's DOM height.
|
|
49
|
+
*/
|
|
50
|
+
updateHeight(): void;
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
*/
|
|
54
|
+
destroy(): void;
|
|
55
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4207=['render','ck-sidebar-item','createCollection','attach','bindTemplate','clear','ck-sidebar-item--no-animation','content','detach','set','height','isAnimationDisabled','top','clientHeight','div','updateHeight','_targetTop','_mutationObserver','destroy'];(function(_0x39065d,_0x42078c){const _0x51b8a8=function(_0x4b1d42){while(--_0x4b1d42){_0x39065d['push'](_0x39065d['shift']());}};_0x51b8a8(++_0x42078c);}(_0x4207,0x153));const _0x51b8=function(_0x39065d,_0x42078c){_0x39065d=_0x39065d-0x0;let _0x51b8a8=_0x4207[_0x39065d];return _0x51b8a8;};import{View as _0x2bd229}from'ckeditor5/src/ui';import{toUnit as _0x53dad8}from'ckeditor5/src/utils';import _0x37e4a1 from'../../utils/createmutationobserver';const jt=_0x53dad8('px');export default class C extends _0x2bd229{constructor(_0x4b3534){super(_0x4b3534),this[_0x51b8('0xc')]('top',0x0),this[_0x51b8('0xc')]('height',0x0),this['bind']('bottom')['to'](this,_0x51b8('0xf'),this,_0x51b8('0xd'),(_0x39f32d,_0x958224)=>_0x39f32d+_0x958224),this['set'](_0x51b8('0xe'),!0x1),this[_0x51b8('0x1')]=_0x37e4a1(()=>this[_0x51b8('0x12')]()),this[_0x51b8('0x0')]=null,this[_0x51b8('0xa')]=this[_0x51b8('0x5')]();const _0x5341a4=this[_0x51b8('0x7')];this['setTemplate']({'tag':_0x51b8('0x11'),'attributes':{'class':[_0x51b8('0x4'),_0x5341a4['to'](_0x51b8('0xe'),_0x2e7ad5=>_0x2e7ad5?_0x51b8('0x9'):'')],'style':{'top':_0x5341a4['to'](_0x51b8('0xf'),_0x1b4995=>jt(_0x1b4995))}},'children':this[_0x51b8('0xa')]});}[_0x51b8('0x3')](){super[_0x51b8('0x3')](),this[_0x51b8('0x1')][_0x51b8('0x6')](this['element']);}[_0x51b8('0x12')](){const _0x2ae946=this['element'][_0x51b8('0x10')];_0x2ae946&&(this[_0x51b8('0xd')]=_0x2ae946);}[_0x51b8('0x2')](){this[_0x51b8('0xa')][_0x51b8('0x8')](),this['_mutationObserver'][_0x51b8('0xb')](),super[_0x51b8('0x2')]();}}
|
|
@@ -1,32 +1,32 @@
|
|
|
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 comments/annotations/view/sidebarview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import '../../../theme/sidebar.css';
|
|
12
|
-
/**
|
|
13
|
-
* The sidebar view class that displays the collection of sidebar item views.
|
|
14
|
-
*/
|
|
15
|
-
export default class SidebarView extends View {
|
|
16
|
-
/**
|
|
17
|
-
* @observable
|
|
18
|
-
*/
|
|
19
|
-
minHeight: number | null;
|
|
20
|
-
/**
|
|
21
|
-
* @observable
|
|
22
|
-
*/
|
|
23
|
-
class: string;
|
|
24
|
-
/**
|
|
25
|
-
* A collection of sidebar item views.
|
|
26
|
-
*/
|
|
27
|
-
list: ViewCollection;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
constructor(locale: Locale);
|
|
32
|
-
}
|
|
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 comments/annotations/view/sidebarview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
import '../../../theme/sidebar.css';
|
|
12
|
+
/**
|
|
13
|
+
* The sidebar view class that displays the collection of sidebar item views.
|
|
14
|
+
*/
|
|
15
|
+
export default class SidebarView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
minHeight: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* @observable
|
|
22
|
+
*/
|
|
23
|
+
class: string;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of sidebar item views.
|
|
26
|
+
*/
|
|
27
|
+
list: ViewCollection;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
constructor(locale: Locale);
|
|
32
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ddc=['ck-reset','class','div','ck-sidebar','minHeight','set','list','createCollection','bindTemplate'];(function(_0x1358d3,_0x1ddcb1){const _0x24b0bd=function(_0x2c3aec){while(--_0x2c3aec){_0x1358d3['push'](_0x1358d3['shift']());}};_0x24b0bd(++_0x1ddcb1);}(_0x1ddc,0xb5));const _0x24b0=function(_0x1358d3,_0x1ddcb1){_0x1358d3=_0x1358d3-0x0;let _0x24b0bd=_0x1ddc[_0x1358d3];return _0x24b0bd;};import{View as _0x1e6c09}from'ckeditor5/src/ui';import{toUnit as _0x20e272}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x20e272('px');export default class T extends _0x1e6c09{constructor(_0x4efcb0){super(_0x4efcb0);const _0x2a3a98=this[_0x24b0('0x7')];this[_0x24b0('0x4')](_0x24b0('0x3'),0x0),this[_0x24b0('0x4')]('class',''),this[_0x24b0('0x5')]=this[_0x24b0('0x6')](),this['setTemplate']({'tag':_0x24b0('0x1'),'attributes':{'class':['ck',_0x24b0('0x2'),_0x24b0('0x8'),_0x2a3a98['to'](_0x24b0('0x0'))],'style':{'minHeight':_0x2a3a98['to']('minHeight',_0x137e64=>'number'==typeof _0x137e64?jt(_0x137e64+0xa):null)}},'children':this['list']});}}
|
|
@@ -1,77 +1,77 @@
|
|
|
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 comments/annotations/widesidebar
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
-
import Sidebar from './sidebar';
|
|
12
|
-
import type Annotation from './annotation';
|
|
13
|
-
import type { default as AnnotationCollection } from './annotationcollection';
|
|
14
|
-
/**
|
|
15
|
-
* The wide sidebar UI for displaying annotations.
|
|
16
|
-
*
|
|
17
|
-
* In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
|
|
18
|
-
* {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
|
|
19
|
-
*
|
|
20
|
-
* To activate this UI use one of the following:
|
|
21
|
-
*
|
|
22
|
-
* ```ts
|
|
23
|
-
* editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
|
|
24
|
-
* editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
|
|
28
|
-
*/
|
|
29
|
-
export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
|
|
30
|
-
/**
|
|
31
|
-
* An active annotation tracked by this UI.
|
|
32
|
-
*
|
|
33
|
-
* @observable
|
|
34
|
-
*/
|
|
35
|
-
activeAnnotation: Annotation | null;
|
|
36
|
-
isAttached: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* A collection of annotations controlled by this UI.
|
|
39
|
-
*
|
|
40
|
-
* This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
|
|
41
|
-
*
|
|
42
|
-
* It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
|
|
43
|
-
*/
|
|
44
|
-
annotations: AnnotationCollection | null;
|
|
45
|
-
/**
|
|
46
|
-
* @inheritDoc
|
|
47
|
-
*/
|
|
48
|
-
static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
|
|
49
|
-
/**
|
|
50
|
-
* @inheritDoc
|
|
51
|
-
*/
|
|
52
|
-
static get pluginName(): "WideSidebar";
|
|
53
|
-
/**
|
|
54
|
-
* @inheritDoc
|
|
55
|
-
*/
|
|
56
|
-
constructor(context: Context | Editor);
|
|
57
|
-
/**
|
|
58
|
-
* @inheritDoc
|
|
59
|
-
*/
|
|
60
|
-
init(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the active annotation for this UI.
|
|
63
|
-
*/
|
|
64
|
-
setActiveAnnotation(annotation: Annotation | null): void;
|
|
65
|
-
/**
|
|
66
|
-
* @inheritDoc
|
|
67
|
-
*/
|
|
68
|
-
attach(annotations: AnnotationCollection): void;
|
|
69
|
-
/**
|
|
70
|
-
* @inheritDoc
|
|
71
|
-
*/
|
|
72
|
-
detach(): void;
|
|
73
|
-
/**
|
|
74
|
-
* @inheritDoc
|
|
75
|
-
*/
|
|
76
|
-
destroy(): void;
|
|
77
|
-
}
|
|
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 comments/annotations/widesidebar
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
+
import Sidebar from './sidebar';
|
|
12
|
+
import type Annotation from './annotation';
|
|
13
|
+
import type { default as AnnotationCollection } from './annotationcollection';
|
|
14
|
+
/**
|
|
15
|
+
* The wide sidebar UI for displaying annotations.
|
|
16
|
+
*
|
|
17
|
+
* In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
|
|
18
|
+
* {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
|
|
19
|
+
*
|
|
20
|
+
* To activate this UI use one of the following:
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
|
|
24
|
+
* editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
|
|
28
|
+
*/
|
|
29
|
+
export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
|
|
30
|
+
/**
|
|
31
|
+
* An active annotation tracked by this UI.
|
|
32
|
+
*
|
|
33
|
+
* @observable
|
|
34
|
+
*/
|
|
35
|
+
activeAnnotation: Annotation | null;
|
|
36
|
+
isAttached: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A collection of annotations controlled by this UI.
|
|
39
|
+
*
|
|
40
|
+
* This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
|
|
41
|
+
*
|
|
42
|
+
* It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
|
|
43
|
+
*/
|
|
44
|
+
annotations: AnnotationCollection | null;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
|
|
49
|
+
/**
|
|
50
|
+
* @inheritDoc
|
|
51
|
+
*/
|
|
52
|
+
static get pluginName(): "WideSidebar";
|
|
53
|
+
/**
|
|
54
|
+
* @inheritDoc
|
|
55
|
+
*/
|
|
56
|
+
constructor(context: Context | Editor);
|
|
57
|
+
/**
|
|
58
|
+
* @inheritDoc
|
|
59
|
+
*/
|
|
60
|
+
init(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the active annotation for this UI.
|
|
63
|
+
*/
|
|
64
|
+
setActiveAnnotation(annotation: Annotation | null): void;
|
|
65
|
+
/**
|
|
66
|
+
* @inheritDoc
|
|
67
|
+
*/
|
|
68
|
+
attach(annotations: AnnotationCollection): void;
|
|
69
|
+
/**
|
|
70
|
+
* @inheritDoc
|
|
71
|
+
*/
|
|
72
|
+
detach(): void;
|
|
73
|
+
/**
|
|
74
|
+
* @inheritDoc
|
|
75
|
+
*/
|
|
76
|
+
destroy(): void;
|
|
77
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3966=['has','from','WideSidebar','isAttached','set:container','_annotations','setActiveAnnotation','init','set','_activeAnnotation','annotations','editors','activeAnnotation','rearrange','wideSidebar','addEventListener','_integrateWithEditorAnnotations','uiUpdate','switchTo','ready','register','refreshPositioning','plugins','widesidebar-detach-not-attached','requires','attach','_refreshPositioningDebounced','hasDomSelection','resize','_destroyEditorAnnotationsIntegration','remove','pluginName','blur','container','stop','removeEventListener','detach','off','context','refresh','high','updateTargetRect','get','listenTo','_attachToContainer','stopListening','change:container','EditorAnnotations','add','_editorAnnotations'];(function(_0x12310f,_0x3966e4){const _0x9d6534=function(_0x1bc918){while(--_0x1bc918){_0x12310f['push'](_0x12310f['shift']());}};_0x9d6534(++_0x3966e4);}(_0x3966,0xb0));const _0x9d65=function(_0x12310f,_0x3966e4){_0x12310f=_0x12310f-0x0;let _0x9d6534=_0x3966[_0x12310f];return _0x9d6534;};import{ContextPlugin as _0x4c0ab8,Context as _0x212b0b}from'ckeditor5/src/core';import _0x45e6c2 from'./annotationsuis';import _0x5af65a from'./sidebar';import{CKEditorError as _0x37b147,Collection as _0x27c137}from'ckeditor5/src/utils';import{debounce as _0x558e03}from'lodash-es';import _0xcacbe from'./editorannotations';export default class i extends _0x4c0ab8{static get[_0x9d65('0x30')](){return[_0x5af65a,_0x45e6c2];}static get[_0x9d65('0x5')](){return _0x9d65('0x1a');}constructor(_0x3d07e5){super(_0x3d07e5),this[_0x9d65('0x1b')]=!0x1,this[_0x9d65('0x20')](_0x9d65('0x24'),null),this[_0x9d65('0x22')]=null,this[_0x9d65('0x17')]=new _0x27c137(),this[_0x9d65('0x0')]=_0x558e03(()=>{this[_0x9d65('0x22')][_0x9d65('0x2d')]();},0xfa,{'leading':!0x1});}[_0x9d65('0x1f')](){const _0x595f47=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x45e6c2),_0x6c249c=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x595f47[_0x9d65('0x2c')](_0x9d65('0x26'),this),_0x6c249c[_0x9d65('0x7')]&&_0x595f47[_0x9d65('0x2a')](_0x9d65('0x26'));}[_0x9d65('0x1e')](_0x1335a5){if(_0x1335a5===this['activeAnnotation'])return;const _0x3aa24d=this['context']['plugins'][_0x9d65('0x10')](_0x5af65a);_0x3aa24d[_0x9d65('0x21')]=_0x1335a5;const _0x2ec50a=this[_0x9d65('0x24')];this[_0x9d65('0x24')]=_0x1335a5,_0x3aa24d[_0x9d65('0xd')]({'blurredAnnotation':_0x2ec50a,'activatedAnnotation':this[_0x9d65('0x24')]});}[_0x9d65('0x31')](_0x432236){this[_0x9d65('0x22')]=_0x432236;const _0x5d5fc4=this[_0x9d65('0xc')][_0x9d65('0x2e')]['get'](_0x5af65a);if(_0x5d5fc4[_0x9d65('0x1d')]=_0x432236,this[_0x9d65('0x1b')])throw new _0x37b147('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5d5fc4,_0x9d65('0x1c'),()=>{this[_0x9d65('0xa')](),this[_0x9d65('0x11')](_0x5d5fc4,_0x9d65('0x14'),_0x4b18d9=>{_0x4b18d9[_0x9d65('0xb')](),this[_0x9d65('0x31')](_0x432236);});}),_0x5d5fc4[_0x9d65('0x12')]({'viewClass':'ck-sidebar--wide'});const _0x3e0184=_0x42b35b=>{_0x42b35b[_0x9d65('0xf')](),_0x5d5fc4['addAnnotation'](_0x42b35b);};for(const _0x154aa9 of _0x432236)_0x3e0184(_0x154aa9);this[_0x9d65('0x11')](_0x432236,_0x9d65('0x16'),(_0x52bf95,_0x23f961)=>{_0x3e0184(_0x23f961);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x4'),(_0xb2c3e6,_0x3e578c,_0x1120c5)=>{_0x5d5fc4[_0x9d65('0x25')]({'removedAnnotation':_0x3e578c,'previousAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5-0x1),'nextAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5+0x1)}),_0x3e578c===this[_0x9d65('0x24')]&&this[_0x9d65('0x1e')](null);},{'priority':_0x9d65('0xe')}),this[_0x9d65('0x11')](_0x432236,'focus',(_0x1ef13d,_0x43c258)=>{this[_0x9d65('0x1e')](_0x43c258);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x6'),()=>{this[_0x9d65('0x1e')](null);});const _0x549b87=this['context']instanceof _0x212b0b?this['context']['editors']:new _0x27c137([this['context']]);for(const _0x1dce63 of _0x549b87)this[_0x9d65('0x28')](_0x1dce63);this['listenTo'](_0x549b87,_0x9d65('0x16'),(_0x3a1868,_0x508a3c)=>{this[_0x9d65('0x11')](_0x508a3c,_0x9d65('0x2b'),()=>{this[_0x9d65('0x28')](_0x508a3c);});}),this[_0x9d65('0x11')](_0x549b87,_0x9d65('0x4'),(_0xe86125,_0xb060dd)=>{_0xb060dd['plugins'][_0x9d65('0x18')](_0x9d65('0x15'))&&this[_0x9d65('0x3')](_0xb060dd['plugins'][_0x9d65('0x10')](_0x9d65('0x15')));}),window[_0x9d65('0x27')](_0x9d65('0x2'),this['_refreshPositioningDebounced']),this[_0x9d65('0x22')]['refreshPositioning']();}[_0x9d65('0xa')](){if(!this['isAttached'])throw new _0x37b147(_0x9d65('0x2f'),this);this[_0x9d65('0x1e')](null);const _0x4a758d=this['context'][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x4a758d['_detachFromContainer'](this['annotations']),this[_0x9d65('0x13')](_0x4a758d),this[_0x9d65('0x13')](this[_0x9d65('0x22')]),this[_0x9d65('0xc')]instanceof _0x212b0b&&this[_0x9d65('0x13')](this[_0x9d65('0xc')][_0x9d65('0x23')]);for(const _0x35395d of Array[_0x9d65('0x19')](this[_0x9d65('0x17')]))this[_0x9d65('0x3')](_0x35395d);window[_0x9d65('0x9')](_0x9d65('0x2'),this[_0x9d65('0x0')]),this[_0x9d65('0x0')]['cancel'](),this[_0x9d65('0x24')]=null,this[_0x9d65('0x1b')]=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x9d65('0xa')]();}[_0x9d65('0x28')](_0x5721ec){const _0x16dd38=_0x5721ec['plugins']['get'](_0xcacbe);if(!_0x16dd38)return;const _0x489f2f=()=>{const _0x39da73=_0x16dd38['getOrderedSelectedAnnotations']({'annotations':this[_0x9d65('0x22')],'activeAnnotation':this[_0x9d65('0x24')]});this[_0x9d65('0x1e')](_0x39da73[0x0]||null);};this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0xd'),_0x489f2f),this['listenTo'](_0x16dd38,_0x9d65('0x6'),(_0x443cb8,{isAnnotationTracked:_0x28061c})=>{this['activeAnnotation']&&_0x28061c(this[_0x9d65('0x24')])&&this['setActiveAnnotation'](null);}),this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0x29'),()=>{this[_0x9d65('0x0')]();}),this['listenTo'](this[_0x9d65('0x22')],_0x9d65('0x6'),_0x53462a=>{_0x16dd38[_0x9d65('0x1')]()&&(_0x489f2f(),_0x53462a[_0x9d65('0x8')]());},{'priority':'high'}),this[_0x9d65('0x17')][_0x9d65('0x16')](_0x16dd38);}[_0x9d65('0x3')](_0x564995){this[_0x9d65('0x13')](_0x564995),this[_0x9d65('0x17')][_0x9d65('0x4')](_0x564995);}}
|