@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/comments.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/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.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/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.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.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sq.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/tr.js +1 -1
- package/build/translations/uk.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/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +12 -12
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sq.po +2 -2
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -5
- package/src/annotations/annotation.d.ts +10 -6
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +7 -3
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +10 -6
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +9 -5
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +8 -4
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +10 -6
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +10 -6
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +9 -5
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +6 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +6 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +6 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +9 -5
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +5 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +5 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +8 -4
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +9 -5
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +10 -6
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +30 -13
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +9 -5
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +5 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +8 -4
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +6 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +8 -4
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +9 -5
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +11 -7
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +12 -8
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +14 -10
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +6 -2
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +11 -7
- package/src/config.js +1 -1
- package/src/index.d.ts +24 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +2 -1
- package/src/utils/createmutationobserver.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18ab=['type','length','attach','deactivate','_deactivateAllAnnotations','_visibleAnnotations','get','destroy','_assertAnnotationDoesNotBelongToMultipleUIs','init','requires','find','deactivateAll','push','_addActiveAnnotation','plugins','pluginName','refilterAnnotations','_uisData','annotationsuis-missing-ui','delete','context','_removeActiveAnnotation','function','_uis','isActive','collection','has','setActiveAnnotation','listenTo','change:activeAnnotation','register','_activateAnnotation','detach','add','annotationsuis-annotation-mismatch','activate','filter','activeUIs','set','_setSelectedAnnotations'];(function(_0x4f4d4c,_0x18abfe){const _0x5c48e2=function(_0x3b9fad){while(--_0x3b9fad){_0x4f4d4c['push'](_0x4f4d4c['shift']());}};_0x5c48e2(++_0x18abfe);}(_0x18ab,0x1b1));const _0x5c48=function(_0x4f4d4c,_0x18abfe){_0x4f4d4c=_0x4f4d4c-0x0;let _0x5c48e2=_0x18ab[_0x4f4d4c];return _0x5c48e2;};import{ContextPlugin as _0x91dac8}from'ckeditor5/src/core';import{CKEditorError as _0x571f15}from'ckeditor5/src/utils';import _0x58b22e,{bindAnnotationCollections as _0x1bfe5d}from'./annotationcollection';import _0x8f59d1 from'./annotations';export default class M extends _0x91dac8{static get[_0x5c48('0x1c')](){return[_0x8f59d1];}static get[_0x5c48('0x22')](){return'AnnotationsUIs';}constructor(_0x1b1a8f){super(_0x1b1a8f),this[_0x5c48('0xf')]=new Set(),this[_0x5c48('0x1')]=new Map(),this['_uisData']=new Map();}[_0x5c48('0x1b')](){const _0x5534fc=this[_0x5c48('0x27')]['plugins'][_0x5c48('0x18')](_0x8f59d1);this[_0x5c48('0x6')](_0x5534fc,_0x5c48('0x9'),(_0x304b39,_0x4dcea0)=>{for(const _0x523a0b of this[_0x5c48('0xf')]){const _0x9d59aa=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523a0b);(0x0,this[_0x5c48('0x24')]['get'](_0x523a0b)[_0x5c48('0xe')])(_0x4dcea0)&&_0x9d59aa[_0x5c48('0x5')](_0x4dcea0);}}),this['listenTo'](_0x5534fc,_0x5c48('0x16'),()=>{for(const _0x4b6f6d of this['activeUIs']){this[_0x5c48('0x1')][_0x5c48('0x18')](_0x4b6f6d)[_0x5c48('0x5')](null);}}),this['listenTo'](_0x5534fc[_0x5c48('0x17')],_0x5c48('0xb'),(_0x3df9ac,_0x1b9966)=>{this[_0x5c48('0x1a')](_0x1b9966);});}['hasActive'](){return this[_0x5c48('0xf')]['size']>0x0;}['isActive'](_0x18c70d){return this[_0x5c48('0xf')]['has'](_0x18c70d);}[_0x5c48('0xd')](_0x523b42,_0x4ef189=()=>!0x0){const _0x12c0c2=this[_0x5c48('0x27')][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1);if(!this[_0x5c48('0x1')]['has'](_0x523b42))throw new _0x571f15('annotationsuis-missing-ui',this,{'uiName':_0x523b42});this[_0x5c48('0x2')](_0x523b42)&&this['deactivate'](_0x523b42),this[_0x5c48('0xf')][_0x5c48('0xb')](_0x523b42);const _0x309c6a=new _0x58b22e(),_0x298324=_0x12c0c2['_visibleAnnotations'];_0x1bfe5d({'source':_0x298324,'target':_0x309c6a,'filter':_0x4ef189}),this[_0x5c48('0x24')][_0x5c48('0x10')](_0x523b42,{'collection':_0x309c6a,'filter':_0x4ef189});const _0xeb4b5=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523b42);_0xeb4b5['attach'](_0x309c6a),this['listenTo'](_0xeb4b5,_0x5c48('0x7'),(_0x4dd440,_0xb1128f,_0x5a026c,_0x49396b)=>{_0x49396b&&_0x12c0c2[_0x5c48('0x28')](_0x49396b),_0x5a026c&&_0x12c0c2[_0x5c48('0x20')](_0x5a026c);});}[_0x5c48('0x15')](_0x4a5d59){if(this['activeUIs'][_0x5c48('0x26')](_0x4a5d59),!this[_0x5c48('0x1')][_0x5c48('0x4')](_0x4a5d59))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x4a5d59});const _0x5ddec5=this['_uis'][_0x5c48('0x18')](_0x4a5d59);_0x5ddec5['detach'](),this['stopListening'](_0x5ddec5),this[_0x5c48('0x24')]['get'](_0x4a5d59)['collection'][_0x5c48('0x19')](),this[_0x5c48('0x24')]['delete'](_0x4a5d59);}['switchTo'](_0x110f44){if(!this['_uis'][_0x5c48('0x4')](_0x110f44))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x110f44});const _0xa29d59=this['context'][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1),_0x48dcc7=Array['from'](_0xa29d59['activeAnnotations'])[0x0]||null;this[_0x5c48('0x1e')](),this[_0x5c48('0xd')](_0x110f44);const _0x485d99=this['_uis'][_0x5c48('0x18')](_0x110f44);_0x485d99[_0x5c48('0x5')](_0x48dcc7),_0x485d99[_0x5c48('0x11')]&&_0x48dcc7&&_0x485d99[_0x5c48('0x11')]([_0x48dcc7]);}['deactivateAll'](){for(const _0x126bf5 of this[_0x5c48('0xf')])this['deactivate'](_0x126bf5);}[_0x5c48('0x8')](_0x520df3,_0x4b5e2d){if(this[_0x5c48('0x1')][_0x5c48('0x4')](_0x520df3))throw new _0x571f15('annotationsuis-register-already-registered');if(_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x14')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0xa')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x5')])throw new _0x571f15('annotationsuis-register-invalid-interface',null);this[_0x5c48('0x1')]['set'](_0x520df3,_0x4b5e2d);}[_0x5c48('0x23')](){const _0x308926=this[_0x5c48('0x27')][_0x5c48('0x21')]['get'](_0x8f59d1)[_0x5c48('0x3')],_0x2cb2cc=new Map(),_0x41468a=Array['from'](this[_0x5c48('0xf')]);for(const _0x2115a2 of this[_0x5c48('0xf')]){const _0xc0d81e=this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2115a2)[_0x5c48('0x3')];for(const _0x3e68de of _0xc0d81e)_0x2cb2cc[_0x5c48('0x10')](_0x3e68de,_0x2115a2);}for(const _0x5a7296 of _0x308926){const _0x2027eb=_0x2cb2cc[_0x5c48('0x18')](_0x5a7296);this[_0x5c48('0x1a')](_0x5a7296);const _0xf01e7f=_0x41468a[_0x5c48('0x1d')](_0x2490e6=>this[_0x5c48('0x24')]['get'](_0x2490e6)[_0x5c48('0xe')](_0x5a7296));_0x2027eb!==_0xf01e7f&&(_0x2027eb&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2027eb)[_0x5c48('0x3')]['remove'](_0x5a7296),_0xf01e7f&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0xf01e7f)['collection'][_0x5c48('0xb')](_0x5a7296));}}[_0x5c48('0x19')](){this[_0x5c48('0x1e')](),super[_0x5c48('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x491863){const _0x3c6697=[];for(const _0x12db7c of this['activeUIs']){(0x0,this['_uisData'][_0x5c48('0x18')](_0x12db7c)[_0x5c48('0xe')])(_0x491863)&&_0x3c6697[_0x5c48('0x1f')](_0x12db7c);}if(_0x3c6697[_0x5c48('0x13')]>0x1)throw new _0x571f15(_0x5c48('0xc'),null,{'matchedUIs':_0x3c6697,'annotationType':_0x491863[_0x5c48('0x12')]});}}
|
|
@@ -1,11 +1,15 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/editorannotations
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import Annotations from './annotations
|
|
7
|
-
import type Annotation from './annotation
|
|
8
|
-
import type AnnotationCollection from './annotationcollection
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import Annotations from './annotations';
|
|
11
|
+
import type Annotation from './annotation';
|
|
12
|
+
import type AnnotationCollection from './annotationcollection';
|
|
9
13
|
/**
|
|
10
14
|
* Integrates {@link module:comments/annotations/annotations~Annotations annotations} with the editor to provide proper behavior
|
|
11
15
|
* for annotations created through the editor features.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8861=['add','innerView','refreshSelectedViews','listenTo','getRanges','change:isFocused','addSourceCollector','editing','document','view','getByInnerView','fire','has','isEqual','from','editorannotations-invalid-source-callback','getOrderedSelectedAnnotations','containsRange','refresh','selection','range','blur','model','init','_editorAnnotationsData','change:range','collection','set','plugins','delete','hasDomSelection','annotation','registerAnnotation','_editorAnnotations','map','_dataCollectors','element','editor','function','isReadOnly','isCollapsed','cancel','focusTracker'];(function(_0x1a2ace,_0x88611b){const _0x26965a=function(_0x310678){while(--_0x310678){_0x1a2ace['push'](_0x1a2ace['shift']());}};_0x26965a(++_0x88611b);}(_0x8861,0xd1));const _0x2696=function(_0x1a2ace,_0x88611b){_0x1a2ace=_0x1a2ace-0x0;let _0x26965a=_0x8861[_0x1a2ace];return _0x26965a;};import{Plugin as _0x275699}from'ckeditor5/src/core';import{CKEditorError as _0x34b67c}from'ckeditor5/src/utils';import{debounce as _0x151e74}from'lodash-es';import _0x5298ef from'./annotations';export default class k extends _0x275699{static get['requires'](){return[_0x5298ef];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x30e127){super(_0x30e127),this[_0x2696('0x29')]=new Set(),this[_0x2696('0x27')]=new Set();}[_0x2696('0x1d')](){const _0x3a834f=this[_0x2696('0x0')],_0x443691=_0x3a834f[_0x2696('0x1c')][_0x2696('0xe')]['selection'],_0x457adb=_0x151e74(()=>this[_0x2696('0x8')](),0xa);_0x443691['on'](_0x2696('0x1f'),(_0x2fcb51,_0x46af5f)=>{_0x46af5f['directChange']&&(_0x457adb[_0x2696('0x4')](),this[_0x2696('0x8')]());}),this[_0x2696('0x9')](_0x3a834f['editing'][_0x2696('0xf')]['document'],_0x2696('0xb'),(_0x3af2a6,_0x723708,_0x5e0b1f)=>{_0x5e0b1f&&_0x457adb();}),this[_0x2696('0x9')](_0x3a834f['ui']['focusTracker'],_0x2696('0xb'),(_0x9542b8,_0x5f0e4d,_0x5ec61d)=>{_0x5ec61d||_0x3a834f[_0x2696('0x2')]||this[_0x2696('0x11')](_0x2696('0x1b'),{'isAnnotationTracked':_0x511509=>this[_0x2696('0x1e')][_0x2696('0x12')](_0x511509[_0x2696('0x7')])});}),this[_0x2696('0x9')](this[_0x2696('0x0')]['ui'],'update',()=>this[_0x2696('0x11')]('uiUpdate'));}[_0x2696('0x26')](_0x1ef1ce){if(this['_editorAnnotations'][_0x2696('0x12')](_0x1ef1ce[_0x2696('0xf')]))return;this[_0x2696('0x27')]['add'](_0x1ef1ce[_0x2696('0xf')]),this['editor']['ui'][_0x2696('0x5')][_0x2696('0x6')](_0x1ef1ce['view']['element']);const _0x3b93db=this['editor'][_0x2696('0x22')]['get'](_0x5298ef);this[_0x2696('0x9')](_0x3b93db[_0x2696('0x20')],'remove',(_0x562c79,_0x3d7f9c)=>{this[_0x2696('0x0')]['ui'][_0x2696('0x5')]['remove'](_0x3d7f9c[_0x2696('0xf')][_0x2696('0x2a')]),this[_0x2696('0x27')][_0x2696('0x23')](_0x3d7f9c[_0x2696('0xf')]);});}[_0x2696('0x24')](){return this[_0x2696('0x0')][_0x2696('0xd')]['view'][_0x2696('0x24')];}[_0x2696('0xc')](_0x3db3e5){if(_0x2696('0x1')!=typeof _0x3db3e5)throw new _0x34b67c(_0x2696('0x15'));this[_0x2696('0x29')][_0x2696('0x6')](_0x3db3e5);}[_0x2696('0x8')](){this[_0x2696('0x11')](_0x2696('0x18'));}[_0x2696('0x16')]({activeAnnotation:_0x3da18b,annotations:_0x3d33cc}){const _0x2a6d8b=[],_0x42ad7c=this[_0x2696('0x0')][_0x2696('0x1c')][_0x2696('0xe')][_0x2696('0x19')],_0x1debfa=Array[_0x2696('0x14')](_0x42ad7c[_0x2696('0xa')]());for(const [_0x103fdb,_0x4422e8]of this[_0x2696('0x1e')]){const _0x2a8a1b=_0x519354(_0x4422e8),_0x11fc71=_0x3d33cc[_0x2696('0x10')](_0x103fdb);_0x2a8a1b&&_0x11fc71&&_0x2a6d8b['push']({'annotation':_0x11fc71,'range':_0x2a8a1b});}function _0x519354(_0x2345b9){for(const _0x11b18e of _0x2345b9)for(const _0x55031b of _0x1debfa)if(_0x11b18e[_0x2696('0x17')](_0x55031b,!_0x42ad7c[_0x2696('0x3')]))return _0x11b18e;return null;}return _0x2a6d8b['sort']((_0x3be6ba,_0x42df33)=>{const _0x35ee4d=_0x3be6ba[_0x2696('0x1a')],_0x38fb6c=_0x42df33['range'];if(!_0x35ee4d[_0x2696('0x13')](_0x38fb6c)){if(_0x35ee4d[_0x2696('0x17')](_0x38fb6c,!0x0))return 0x1;if(_0x38fb6c[_0x2696('0x17')](_0x35ee4d,!0x0))return-0x1;}return _0x3be6ba['annotation']==_0x3da18b?-0x1:_0x42df33['annotation']==_0x3da18b?0x1:0x0;})[_0x2696('0x28')](_0x7b06fc=>_0x7b06fc[_0x2696('0x25')]);}get[_0x2696('0x1e')](){const _0x44e277=new Map();for(const _0x2d400c of Array['from'](this['_dataCollectors']))for(const [_0x1f2b9d,_0x1f9de0]of _0x2d400c())_0x44e277[_0x2696('0x21')](_0x1f2b9d,_0x1f9de0);return _0x44e277;}}
|
|
@@ -1,14 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/inlineannotations
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis
|
|
7
|
-
import EditorAnnotations from './editorannotations
|
|
8
|
-
import { ContextualBalloon } from 'ckeditor5/src/ui
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
+
import EditorAnnotations from './editorannotations';
|
|
12
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
|
9
13
|
import './../../theme/annotation-inline.css';
|
|
10
|
-
import type Annotation from './annotation
|
|
11
|
-
import type AnnotationCollection from './annotationcollection
|
|
14
|
+
import type Annotation from './annotation';
|
|
15
|
+
import type AnnotationCollection from './annotationcollection';
|
|
12
16
|
/**
|
|
13
17
|
* The popup-style UI for displaying annotations next to editor target elements.
|
|
14
18
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47c2=['bottom','_setSelectedAnnotations','target','refresh','_removeAnnotationFromBalloon','inlineannotations-not-allowed-with-context','inline','editing','view','destroy','inlineannotations-attach-already-attached','domConverter','listenTo','hasActive','register','from','length','map','detach','_manuallyClosed','keystrokes','_closeAnnotation','targetRect','change:height','plugins','annotations','focusTracker','includes','inlineannotations-detach-not-attached','_selectedAnnotations','width','updatePosition','right','isActive','remove','getByView','left','_addedAnnotations','add','visibleView','hasView','getClientRects','selection','_forceRefresh','get','getBoundingClientRect','delete','setActiveAnnotation','has','activeAnnotation','focus','collapse','afterInit','_addAnnotationToBalloon','change:visibleView','change:isFocused','InlineAnnotations','context','_balloon','getOrderedSelectedAnnotations','document','Esc','find','clear','push','every','top','editor','isAttached','set','switchTo','editableElement','requires','pluginName'];(function(_0x29818c,_0x47c2a4){const _0x3373c1=function(_0x43ba83){while(--_0x43ba83){_0x29818c['push'](_0x29818c['shift']());}};_0x3373c1(++_0x47c2a4);}(_0x47c2,0x112));const _0x3373=function(_0x29818c,_0x47c2a4){_0x29818c=_0x29818c-0x0;let _0x3373c1=_0x47c2[_0x29818c];return _0x3373c1;};import{Plugin as _0xd7e7c0}from'ckeditor5/src/core';import _0x256cf7 from'./annotationsuis';import _0x5ea56c from'./editorannotations';import{ContextualBalloon as _0x4e6893}from'ckeditor5/src/ui';import{MouseObserver as _0x229af2}from'ckeditor5/src/engine';import{CKEditorError as _0x4539cd,Rect as _0x124ff1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xd7e7c0{static get[_0x3373('0x14')](){return[_0x5ea56c,_0x4e6893,_0x256cf7];}static get[_0x3373('0x15')](){return _0x3373('0x4');}constructor(_0x10d4d3){super(_0x10d4d3),_0x10d4d3[_0x3373('0x1d')][_0x3373('0x1e')]['addObserver'](_0x229af2),this[_0x3373('0x10')]=!0x1,this[_0x3373('0x11')](_0x3373('0x47'),null),this[_0x3373('0x2f')]=null,this[_0x3373('0x29')]=new Set(),this[_0x3373('0x6')]=_0x10d4d3[_0x3373('0x2e')][_0x3373('0x42')](_0x4e6893),this[_0x3373('0x3b')]=new Set(),this[_0x3373('0x33')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0x272a49=this['editor'][_0x3373('0x2e')][_0x3373('0x42')](_0x256cf7);_0x272a49[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x272a49[_0x3373('0x24')]('inline',this),this[_0x3373('0xf')][_0x3373('0x2a')]['set'](_0x3373('0x9'),(_0x124f5d,_0x1c51e9)=>{const _0x5c8ad2=this[_0x3373('0x6')];if(this['isAttached']&&_0x5c8ad2['visibleView']){const _0xc9bd85=this[_0x3373('0x2f')]['getByView'](_0x5c8ad2[_0x3373('0x3d')]);_0xc9bd85&&this[_0x3373('0x2b')](_0xc9bd85),_0x1c51e9();}}));}[_0x3373('0x0')](){const _0x2b96b5=this['editor']['plugins'][_0x3373('0x42')](_0x256cf7);_0x2b96b5[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x2b96b5[_0x3373('0x23')]()||_0x2b96b5[_0x3373('0x12')](_0x3373('0x1c')));}[_0x3373('0x45')](_0xf9a684){_0xf9a684!==this[_0x3373('0x47')]&&(this[_0x3373('0x47')]&&(this[_0x3373('0x47')][_0x3373('0x37')]=!0x1),_0xf9a684&&this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused']&&(this[_0x3373('0x2f')][_0x3373('0x46')](_0xf9a684)&&this[_0x3373('0x1')](_0xf9a684,!0x0),_0xf9a684[_0x3373('0x37')]=!0x0),_0xf9a684||this['_setSelectedAnnotations']([]),this[_0x3373('0x47')]=_0xf9a684);}['attach'](_0x44c19d){this[_0x3373('0x2f')]=_0x44c19d;const _0x14223c=this[_0x3373('0xf')][_0x3373('0x2e')]['get'](_0x256cf7),_0x303354=this[_0x3373('0x6')];if(this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x20'),this);if(_0x14223c['context']!==this['editor'])throw new _0x4539cd(_0x3373('0x1b'),this);const _0x3f3e50=this['editor'][_0x3373('0x2e')]['get'](_0x5ea56c);this[_0x3373('0x22')](_0x3f3e50,_0x3373('0x19'),()=>{const _0x13dcf6=_0x3f3e50[_0x3373('0x7')]({'annotations':this[_0x3373('0x2f')],'activeAnnotation':this[_0x3373('0x47')]});var _0xcf0a3b,_0x2af859;!this[_0x3373('0x41')]&&(_0xcf0a3b=_0x13dcf6,_0x2af859=this[_0x3373('0x33')],_0xcf0a3b[_0x3373('0x26')]===_0x2af859[_0x3373('0x26')]&&_0xcf0a3b[_0x3373('0xd')](_0x18e2a1=>_0x2af859['includes'](_0x18e2a1)))||(this['_forceRefresh']=!0x1,this[_0x3373('0x17')](_0x13dcf6),this[_0x3373('0x45')](_0x13dcf6[0x0]||null));}),this[_0x3373('0x22')](_0x3f3e50,'blur',(_0x1cd0de,{isAnnotationTracked:_0x27b84a})=>{this[_0x3373('0x47')]&&_0x27b84a(this['activeAnnotation'])&&(this[_0x3373('0x17')]([]),this[_0x3373('0x45')](null));}),this[_0x3373('0x22')](this[_0x3373('0xf')]['ui'][_0x3373('0x30')],_0x3373('0x3'),(_0x420171,_0x445cb6,_0x95d8c1)=>{_0x95d8c1||this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x44c19d,_0x3373('0x38'),(_0x4dbb50,_0x4902df)=>{this[_0x3373('0x1a')](_0x4902df),_0x4902df===this[_0x3373('0x47')]&&this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x303354,_0x3373('0x2'),(_0x5cd158,_0x2038c5,_0x12c1e2,_0x585047)=>{_0x585047&&this['stopListening'](_0x585047);const _0x9d492f=_0x44c19d[_0x3373('0x39')](_0x12c1e2);_0x12c1e2&&_0x9d492f&&(this['listenTo'](_0x12c1e2,_0x3373('0x2d'),()=>{_0x303354[_0x3373('0x35')]();}),this[_0x3373('0x22')](_0x12c1e2,_0x3373('0x9'),()=>{this[_0x3373('0x2b')](_0x9d492f),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['focus']();}),this['activeAnnotation']!==_0x9d492f&&this[_0x3373('0x45')](_0x9d492f));}),this['listenTo'](this[_0x3373('0xf')]['ui'],'update',()=>{_0x303354[_0x3373('0x3d')]&&(_0x44c19d[_0x3373('0x39')](_0x303354[_0x3373('0x3d')])&&_0x303354['updatePosition']());}),this['listenTo'](this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'],'mousedown',()=>{this[_0x3373('0x41')]=!0x0,this[_0x3373('0x29')][_0x3373('0xb')]();}),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'][_0x3373('0x40')][_0x3373('0x13')]&&this['editor'][_0x3373('0x1d')]['view'][_0x3373('0x48')](),this[_0x3373('0x10')]=!0x0;}['detach'](){if(!this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x32'),this);this[_0x3373('0x45')](null);for(const _0x15fe95 of this[_0x3373('0x3b')])this[_0x3373('0x1a')](_0x15fe95);this['stopListening'](),this['isAttached']=!0x1,this[_0x3373('0x2f')]=null;}[_0x3373('0x1f')](){this[_0x3373('0x10')]&&this[_0x3373('0x28')]();}[_0x3373('0x17')](_0x4344e0){for(const _0x1b05ba of this[_0x3373('0x33')])_0x4344e0['includes'](_0x1b05ba)||this[_0x3373('0x29')][_0x3373('0x44')](_0x1b05ba);for(const _0xedc144 of this[_0x3373('0x2f')])_0x4344e0[_0x3373('0x31')](_0xedc144)||this['_removeAnnotationFromBalloon'](_0xedc144);if(this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused'])for(const _0x20b817 of _0x4344e0)this['_addAnnotationToBalloon'](_0x20b817);this[_0x3373('0x33')]=_0x4344e0;}['_addAnnotationToBalloon'](_0x5315ad,_0x38fdc0=!0x1){this['_manuallyClosed'][_0x3373('0x46')](_0x5315ad)||(this['_addedAnnotations'][_0x3373('0x46')](_0x5315ad)||this[_0x3373('0x6')]['hasView'](_0x5315ad['view'])||(this[_0x3373('0x3b')][_0x3373('0x3c')](_0x5315ad),this[_0x3373('0x6')][_0x3373('0x3c')]({'stackId':_0x5315ad[_0x3373('0x1e')]['id'],'view':_0x5315ad[_0x3373('0x1e')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5315ad)}})),_0x38fdc0&&this['_balloon']['showStack'](_0x5315ad['view']['id']));}['_getBalloonTargetForAnnotation'](_0x170633){const _0x62a492=_0x170633[_0x3373('0x18')],_0x45d0d8=this[_0x3373('0xf')][_0x3373('0x1d')]['view'],_0x2c5610=_0x45d0d8[_0x3373('0x8')]['selection']['getFirstRange'](),_0x53e672=_0x45d0d8[_0x3373('0x21')]['viewRangeToDom'](_0x2c5610);if(_0x53e672[_0x3373('0x49')](!0x0),_0x62a492){if(_0x62a492 instanceof _0x124ff1)return _0x62a492;let _0x1b3084=[];for(const _0x21299a of _0x62a492)_0x1b3084[_0x3373('0xc')](...(_0x25531e=_0x21299a[_0x3373('0x3f')](),Array[_0x3373('0x25')](_0x25531e)[_0x3373('0x27')](DOMRect['fromRect'])));_0x1b3084=function(_0x9aaebc){const _0x28643a=[];let _0x399963=_0x9aaebc[0x0];for(let _0x1e9329=0x1;_0x1e9329<_0x9aaebc[_0x3373('0x26')];_0x1e9329++)F(_0x399963,_0x9aaebc[_0x1e9329])?_0x399963[_0x3373('0x34')]+=_0x9aaebc[_0x1e9329][_0x3373('0x34')]:(_0x28643a[_0x3373('0xc')](_0x399963),_0x399963=_0x9aaebc[_0x1e9329]);return _0x28643a[_0x3373('0xc')](_0x399963),_0x28643a;}(_0x1b3084);const _0x303a4f=_0x53e672[_0x3373('0x43')]();return _0x1b3084[_0x3373('0xa')](_0x19afee=>_0x19afee[_0x3373('0xe')]<=_0x303a4f['top']&&_0x19afee[_0x3373('0x16')]>=_0x303a4f[_0x3373('0x16')]&&_0x19afee['left']<=_0x303a4f[_0x3373('0x3a')]&&_0x19afee[_0x3373('0x36')]>=_0x303a4f[_0x3373('0x36')])||_0x1b3084[0x0];}var _0x25531e;return _0x170633[_0x3373('0x2c')]||_0x53e672;}[_0x3373('0x1a')](_0x4cb22b){this[_0x3373('0x3b')][_0x3373('0x46')](_0x4cb22b)&&this[_0x3373('0x6')][_0x3373('0x3e')](_0x4cb22b['view'])&&(this[_0x3373('0x3b')][_0x3373('0x44')](_0x4cb22b),this['_balloon'][_0x3373('0x38')](_0x4cb22b[_0x3373('0x1e')]));}[_0x3373('0x2b')](_0x31af87){this['_manuallyClosed'][_0x3373('0x3c')](_0x31af87),this[_0x3373('0x1a')](_0x31af87);}}function F(_0xa7ec3f,_0x584af9){return _0xa7ec3f['top']===_0x584af9['top']&&_0xa7ec3f[_0x3373('0x16')]===_0x584af9[_0x3373('0x16')]&&_0xa7ec3f[_0x3373('0x36')]===_0x584af9[_0x3373('0x3a')];}
|
|
@@ -1,14 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/narrowsidebar
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis
|
|
7
|
-
import Sidebar from './sidebar
|
|
8
|
-
import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui
|
|
9
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
+
import Sidebar from './sidebar';
|
|
12
|
+
import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui';
|
|
9
13
|
import '../../theme/sidebar-narrow.css';
|
|
10
|
-
import type Annotation from './annotation
|
|
11
|
-
import type { default as AnnotationCollection } from './annotationcollection
|
|
14
|
+
import type Annotation from './annotation';
|
|
15
|
+
import type { default as AnnotationCollection } from './annotationcollection';
|
|
12
16
|
/**
|
|
13
17
|
* The narrow sidebar UI for displaying annotations.
|
|
14
18
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7adf=['_detachFromContainer','southArrowNorth','northArrowSouth','ready','removeEventListener','detach','narrowsidebar-detach-not-attached','length','_updateBalloonPosition','stopListening','focusableElements','annotationType','contains','content','blur','attach','_manuallyClosedAnnotationViews','remove','_showBalloon','type','mousedown','delete','add','_attachListeners','_setSelectedAnnotations','high','EditorAnnotations','from','isAttached','set','northArrowSouthEast','isDirty','get','context','resize','_attachToContainer','_refreshPositioningDebounced','_annotationToNarrowView','editors','getOrderedSelectedAnnotations','keyCode','cancel','isVisible','target','init','getByView','northArrowSouthWest','register','_refreshPositioning','narrowsidebar-attach-already-attached','_editorAnnotations','bind','plugins','refresh','focus','locale','change:container','execute','_destroyEditorAnnotationsIntegration','annotations','defaultPositions','has','addAnnotation','activeAnnotation','listenTo','getSidebarItemView','keydown','first','Esc','preventDefault','preventClosingBalloon','element','low','setActiveAnnotation','balloonPanelView','narrowSidebar','ck-sidebar--narrow','_integrateWithEditorAnnotations','_selectedAnnotations','number','change:height','_domEmitter','view','southArrowNorthEast','set:container','destroy','bodyCollection','stopPropagation','_hideBalloon','_detachListeners','values','pin','_annotations','find','hasDomSelection'];(function(_0x379305,_0x7adf6a){const _0x9de2b9=function(_0x2f5d93){while(--_0x2f5d93){_0x379305['push'](_0x379305['shift']());}};_0x9de2b9(++_0x7adf6a);}(_0x7adf,0x14d));const _0x9de2=function(_0x379305,_0x7adf6a){_0x379305=_0x379305-0x0;let _0x9de2b9=_0x7adf[_0x379305];return _0x9de2b9;};import{ContextPlugin as _0x3fc041,Context as _0x1ffb9e}from'ckeditor5/src/core.js';import _0x1f5aa4 from'./annotationsuis.js';import _0x3c0dc3 from'./sidebar.js';import _0x42c2a9 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x413905,BodyCollection as _0x2b3093}from'ckeditor5/src/ui.js';import{CKEditorError as _0xb1407,DomEmitterMixin as _0x4cadf5,keyCodes as _0x16f04b,Collection as _0x4f82ae}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x17dd3f}from'lodash-es';import _0x314388 from'./editorannotations.js';export default class i extends _0x3fc041{static get['requires'](){return[_0x3c0dc3,_0x1f5aa4];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x531251){super(_0x531251),this[_0x9de2('0x4b')]=!0x1,this[_0x9de2('0x3f')]=new Set(),this[_0x9de2('0x21')]=Object['create'](_0x4cadf5),this[_0x9de2('0x54')]=new Map(),this[_0x9de2('0x4c')](_0x9de2('0xf'),null),this[_0x9de2('0xb')]=null,this[_0x9de2('0x1e')]=[],this[_0x9de2('0x2')]=new _0x4f82ae(),this['_refreshPositioningDebounced']=_0x17dd3f(()=>{this[_0x9de2('0x0')]();},0xfa,{'leading':!0x1});}[_0x9de2('0x5b')](){this[_0x9de2('0x50')][_0x9de2('0x4')][_0x9de2('0x4f')](_0x1f5aa4)[_0x9de2('0x5e')](_0x9de2('0x1b'),this),this['bodyCollection']=new _0x2b3093(this[_0x9de2('0x50')][_0x9de2('0x7')]),this[_0x9de2('0x1a')]=new _0x413905(this[_0x9de2('0x50')][_0x9de2('0x7')]),this[_0x9de2('0x26')]['attachToDom'](),this['bodyCollection'][_0x9de2('0x45')](this[_0x9de2('0x1a')]);}[_0x9de2('0x3e')](_0x1ea26a){this['annotations']=_0x1ea26a;const _0x295f26=this[_0x9de2('0x50')][_0x9de2('0x4')]['get'](_0x3c0dc3),_0x2e9e48=this[_0x9de2('0x1a')];if(_0x295f26[_0x9de2('0x2c')]=_0x1ea26a,this[_0x9de2('0x4b')])throw new _0xb1407(_0x9de2('0x1'),this);this[_0x9de2('0x4b')]=!0x0,this[_0x9de2('0x10')](_0x295f26,_0x9de2('0x24'),()=>{this[_0x9de2('0x34')](),this[_0x9de2('0x10')](_0x295f26,_0x9de2('0x8'),_0x1a7ada=>{_0x1a7ada['off'](),this[_0x9de2('0x3e')](_0x1ea26a);});}),_0x295f26[_0x9de2('0x52')]({'viewClass':_0x9de2('0x1c'),'spaceBetweenItems':0x5});const _0x5826c0=_0x2ec63e=>{const _0x4266f0=new _0x42c2a9(this['context'][_0x9de2('0x7')]);_0x295f26[_0x9de2('0xe')](_0x2ec63e,_0x4266f0),this[_0x9de2('0x54')][_0x9de2('0x4c')](_0x2ec63e,_0x4266f0),_0x4266f0[_0x9de2('0x3')]('isDirty',_0x9de2('0x3a'),_0x9de2('0x1f'))['to'](_0x2ec63e[_0x9de2('0x22')],_0x9de2('0x4e'),_0x9de2('0x42'),_0x9de2('0x36')),_0x4266f0['on'](_0x9de2('0x9'),()=>{this[_0x9de2('0x3f')]['clear'](),_0x2e9e48['content'][_0x9de2('0x13')]!==_0x2ec63e[_0x9de2('0x22')]?(this[_0x9de2('0x41')](_0x2ec63e),_0x2ec63e['view'][_0x9de2('0x17')]['focus'](),this[_0x9de2('0x19')](_0x2ec63e)):this[_0x9de2('0x19')](null);});};for(const _0x5cc5c9 of _0x1ea26a)_0x5826c0(_0x5cc5c9);this[_0x9de2('0x10')](_0x1ea26a,_0x9de2('0x45'),(_0x4943cd,_0x585878)=>{_0x5826c0(_0x585878);}),this[_0x9de2('0x10')](_0x1ea26a,'remove',(_0x2523d2,_0x18ef2f,_0x273a2e)=>{this['_annotationToNarrowView'][_0x9de2('0x4f')](_0x18ef2f)['destroy'](),this[_0x9de2('0x54')][_0x9de2('0x44')](_0x18ef2f),_0x295f26['rearrange']({'removedAnnotation':_0x18ef2f,'previousAnnotation':_0x1ea26a[_0x9de2('0x4f')](_0x273a2e-0x1),'nextAnnotation':_0x1ea26a[_0x9de2('0x4f')](_0x273a2e+0x1)}),_0x18ef2f===this[_0x9de2('0xf')]&&this[_0x9de2('0x19')](null);},{'priority':_0x9de2('0x18')}),this['listenTo'](_0x1ea26a,_0x9de2('0x6'),(_0x354d90,_0x13bb46)=>{this[_0x9de2('0x19')](_0x13bb46);}),this[_0x9de2('0x10')](_0x1ea26a,_0x9de2('0x3d'),()=>{this[_0x9de2('0x19')](null);}),this['_domEmitter'][_0x9de2('0x10')](document,_0x9de2('0x12'),(_0x577a8c,_0x5a96c8)=>{_0x5a96c8[_0x9de2('0x57')]===_0x16f04b['esc']&&_0x2e9e48['isVisible']&&(this[_0x9de2('0x3f')]['add'](_0x2e9e48[_0x9de2('0x3c')][_0x9de2('0x13')]),this[_0x9de2('0x28')](),_0x5a96c8[_0x9de2('0x27')](),_0x5a96c8[_0x9de2('0x15')]());}),this[_0x9de2('0x21')]['listenTo'](document,_0x9de2('0x43'),(_0x2f5b41,_0x1b61aa)=>{const _0xefb7f2=_0x1b61aa[_0x9de2('0x5a')];_0x2e9e48[_0x9de2('0x59')]&&_0x2e9e48[_0x9de2('0x17')][_0x9de2('0x3b')](_0xefb7f2)||_0x295f26[_0x9de2('0x22')][_0x9de2('0x17')][_0x9de2('0x3b')](_0xefb7f2)||_0x2f5b41['preventClosingBalloon']||this[_0x9de2('0xf')]&&this[_0x9de2('0xf')][_0x9de2('0x39')][_0x9de2('0x2d')](_0x1c59a7=>_0x1c59a7[_0x9de2('0x3b')](_0xefb7f2))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0x9de2('0x28')](),this[_0x9de2('0x19')](null));});const _0x497e26=this['context']instanceof _0x1ffb9e?this[_0x9de2('0x50')][_0x9de2('0x55')]:new _0x4f82ae([this['context']]);for(const _0x584bd2 of _0x497e26)this['_integrateWithEditorAnnotations'](_0x584bd2);this[_0x9de2('0x10')](_0x497e26,_0x9de2('0x45'),(_0x1f9e68,_0x4a81ca)=>{this[_0x9de2('0x10')](_0x4a81ca,_0x9de2('0x32'),()=>{this[_0x9de2('0x1d')](_0x4a81ca);});}),this[_0x9de2('0x10')](_0x497e26,_0x9de2('0x40'),(_0x376aca,_0x38a3ae)=>{_0x38a3ae['plugins'][_0x9de2('0xd')](_0x9de2('0x49'))&&this['_destroyEditorAnnotationsIntegration'](_0x38a3ae[_0x9de2('0x4')][_0x9de2('0x4f')](_0x9de2('0x49')));}),window['addEventListener'](_0x9de2('0x51'),this[_0x9de2('0x53')]),this[_0x9de2('0x0')]();}['setActiveAnnotation'](_0x22ca18){if(_0x22ca18===this[_0x9de2('0xf')])return;const _0x49e114=this[_0x9de2('0x50')][_0x9de2('0x4')]['get'](_0x3c0dc3);if(_0x49e114[_0x9de2('0x5')]({'blurredAnnotation':this[_0x9de2('0xf')],'activatedAnnotation':_0x22ca18,'disableAnimationOnActivatedAnnotation':!0x0}),_0x22ca18)_0x49e114[_0x9de2('0x11')](_0x22ca18)?this[_0x9de2('0x41')](_0x22ca18):this[_0x9de2('0x28')]();else this[_0x9de2('0x28')]();this[_0x9de2('0xf')]=_0x22ca18;}[_0x9de2('0x34')](){if(!this[_0x9de2('0x4b')])throw new _0xb1407(_0x9de2('0x35'),this);this[_0x9de2('0x19')](null);const _0x23df14=this[_0x9de2('0x50')][_0x9de2('0x4')]['get'](_0x3c0dc3);this[_0x9de2('0x28')](),Array[_0x9de2('0x4a')](this[_0x9de2('0x54')][_0x9de2('0x2a')](),_0x27a5f0=>_0x27a5f0[_0x9de2('0x25')]()),this[_0x9de2('0x54')]['clear'](),_0x23df14[_0x9de2('0x2f')](this[_0x9de2('0xb')]),this[_0x9de2('0x38')](),this[_0x9de2('0x21')][_0x9de2('0x38')](),this[_0x9de2('0x50')]instanceof _0x1ffb9e&&this[_0x9de2('0x38')](this[_0x9de2('0x50')][_0x9de2('0x55')]);for(const _0x57ea8a of Array[_0x9de2('0x4a')](this[_0x9de2('0x2')]))this[_0x9de2('0xa')](_0x57ea8a);window[_0x9de2('0x33')](_0x9de2('0x51'),this[_0x9de2('0x53')]),this[_0x9de2('0x53')][_0x9de2('0x58')](),this[_0x9de2('0x1e')]=[],this['isAttached']=!0x1,this[_0x9de2('0xb')]=null;}[_0x9de2('0x25')](){this[_0x9de2('0x4b')]&&this[_0x9de2('0x34')](),this[_0x9de2('0x26')]['detachFromDom']();}[_0x9de2('0x1d')](_0x4fd4c6){const _0xbb04ca=_0x4fd4c6[_0x9de2('0x4')][_0x9de2('0x4f')](_0x314388),_0x666bb4=this[_0x9de2('0x50')]['plugins'][_0x9de2('0x4f')](_0x3c0dc3),_0x330a5b=this['annotations'],_0x2e8471=this[_0x9de2('0x1a')],_0x2c6ef9=()=>{const _0x4f361c=_0xbb04ca[_0x9de2('0x56')]({'annotations':this[_0x9de2('0xb')],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4f361c),this['setActiveAnnotation'](_0x4f361c[0x0]||null);};this[_0x9de2('0x10')](_0xbb04ca,'refresh',_0x2c6ef9),this['listenTo'](_0xbb04ca,_0x9de2('0x3d'),(_0x501b3d,{isAnnotationTracked:_0x1348b9})=>{this['activeAnnotation']&&_0x1348b9(this[_0x9de2('0xf')])&&(this['_setSelectedAnnotations']([]),this[_0x9de2('0x19')](null));}),this['listenTo'](_0xbb04ca,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x9de2('0x10')](_0x330a5b,'blur',_0x45bd9d=>{_0xbb04ca['hasDomSelection']()&&_0x45bd9d['stop']();},{'priority':_0x9de2('0x48')}),this[_0x9de2('0x10')](this['_domEmitter'],_0x9de2('0x43'),(_0x5e575e,_0x1f73ed)=>{const _0xc7437b=_0x1f73ed[_0x9de2('0x5a')];_0x2e8471[_0x9de2('0x59')]&&_0x2e8471[_0x9de2('0x17')][_0x9de2('0x3b')](_0xc7437b)||_0x666bb4[_0x9de2('0x22')][_0x9de2('0x17')][_0x9de2('0x3b')](_0xc7437b)||this[_0x9de2('0xf')]&&_0xbb04ca[_0x9de2('0x2e')]()&&(_0x2c6ef9(),_0x5e575e[_0x9de2('0x16')]=!0x0);},{'priority':_0x9de2('0x48')}),this[_0x9de2('0x2')]['add'](_0xbb04ca);}[_0x9de2('0xa')](_0x286c88){_0x286c88&&(this[_0x9de2('0x38')](_0x286c88),this[_0x9de2('0x2')][_0x9de2('0x40')](_0x286c88));}[_0x9de2('0x47')](_0x44c7fe){for(const _0x41c825 of this['_selectedAnnotations'])_0x44c7fe['includes'](_0x41c825)||this[_0x9de2('0x3f')]['delete'](_0x41c825[_0x9de2('0x22')]);this[_0x9de2('0x1e')]=_0x44c7fe;}[_0x9de2('0x0')](){const _0x3fb89f=this[_0x9de2('0x1a')];this['annotations']['refreshPositioning'](),_0x3fb89f[_0x9de2('0x59')]&&this['_updateBalloonPosition']();}[_0x9de2('0x41')](_0x51d801){if(this[_0x9de2('0x3f')]['has'](_0x51d801[_0x9de2('0x22')]))return;const _0x5c0c7e=this[_0x9de2('0x1a')][_0x9de2('0x3c')][_0x9de2('0x13')];_0x5c0c7e!==_0x51d801[_0x9de2('0x22')]?(_0x5c0c7e&&this[_0x9de2('0x29')](_0x5c0c7e),this['_attachListeners'](_0x51d801[_0x9de2('0x22')]),this[_0x9de2('0x1a')][_0x9de2('0x3c')]['clear'](),this['balloonPanelView']['content']['add'](_0x51d801['view']),this['_updateBalloonPosition']()):this[_0x9de2('0x37')]();}['_updateBalloonPosition'](){const _0x3ff643=this[_0x9de2('0x1a')][_0x9de2('0x3c')][_0x9de2('0x13')],_0x59e4cf=_0x3ff643&&this[_0x9de2('0xb')][_0x9de2('0x5c')](_0x3ff643);if(!_0x59e4cf||!this[_0x9de2('0x54')][_0x9de2('0xd')](_0x59e4cf))return;const _0x345bbe=this[_0x9de2('0x54')][_0x9de2('0x4f')](_0x59e4cf)[_0x9de2('0x17')],_0x111aac=function(){const _0x5017e7=_0x413905[_0x9de2('0xc')];return[_0x5017e7[_0x9de2('0x23')],_0x5017e7[_0x9de2('0x4d')],_0x5017e7[_0x9de2('0x30')],_0x5017e7[_0x9de2('0x31')],_0x5017e7['southArrowNorthWest'],_0x5017e7[_0x9de2('0x5d')]];}();this['balloonPanelView'][_0x9de2('0x2b')]({'target':_0x345bbe,'positions':_0x111aac});}[_0x9de2('0x28')](){const _0x379dcd=this[_0x9de2('0x1a')],_0x563520=_0x379dcd[_0x9de2('0x3c')][_0x9de2('0x13')];_0x563520&&(this[_0x9de2('0x29')](_0x563520),_0x379dcd['unpin'](),_0x379dcd[_0x9de2('0x3c')]['clear']());}[_0x9de2('0x46')](_0xc109d7){this['listenTo'](_0xc109d7,_0x9de2('0x20'),()=>this[_0x9de2('0x37')]()),this[_0x9de2('0x10')](_0xc109d7,_0x9de2('0x14'),(_0x11c58f,_0x326900)=>{this[_0x9de2('0x3f')]['add'](_0xc109d7),this[_0x9de2('0x28')](),_0x326900();});}[_0x9de2('0x29')](_0x5058db){this[_0x9de2('0x38')](_0x5058db);}}
|
|
23
|
+
const _0x4380=['find','mousedown','execute','target','requires','esc','attach','context','stop','keydown','removeEventListener','EditorAnnotations','detach','NarrowSidebar','_hideBalloon','blur','_updateBalloonPosition','contains','locale','ready','_annotationToNarrowView','_refreshPositioning','from','annotationType','pluginName','add','stopListening','type','set:container','isAttached','balloonPanelView','pin','addAnnotation','getSidebarItemView','first','_manuallyClosedAnnotationViews','keyCode','getByView','preventDefault','_destroyEditorAnnotationsIntegration','set','cancel','_setSelectedAnnotations','element','number','listenTo','_domEmitter','remove','_editorAnnotations','has','_detachFromContainer','register','length','detachFromDom','_selectedAnnotations','unpin','stopPropagation','get','_refreshPositioningDebounced','focusableElements','refresh','preventClosingBalloon','resize','narrowsidebar-attach-already-attached','destroy','_attachToContainer','includes','southArrowNorthEast','isVisible','focus','_showBalloon','change:height','setActiveAnnotation','hasDomSelection','delete','northArrowSouth','low','off','_integrateWithEditorAnnotations','activeAnnotation','getOrderedSelectedAnnotations','content','northArrowSouthEast','view','rearrange','plugins','high','_attachListeners','_annotations','bodyCollection','values','annotations','_detachListeners','refreshPositioning','isDirty','editors','clear'];(function(_0x2a6294,_0x438071){const _0x17e610=function(_0x1e0039){while(--_0x1e0039){_0x2a6294['push'](_0x2a6294['shift']());}};_0x17e610(++_0x438071);}(_0x4380,0x116));const _0x17e6=function(_0x2a6294,_0x438071){_0x2a6294=_0x2a6294-0x0;let _0x17e610=_0x4380[_0x2a6294];return _0x17e610;};import{ContextPlugin as _0x32ec45,Context as _0x572eb2}from'ckeditor5/src/core';import _0x2c9ae3 from'./annotationsuis';import _0x11478e from'./sidebar';import _0x4b0c1e from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3ef573,BodyCollection as _0xca30ee}from'ckeditor5/src/ui';import{CKEditorError as _0x3fb1ce,DomEmitterMixin as _0x3e3cf0,keyCodes as _0x1cf54e,Collection as _0x104934}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x37612f}from'lodash-es';import _0x186fde from'./editorannotations';export default class s extends _0x32ec45{static get[_0x17e6('0x11')](){return[_0x11478e,_0x2c9ae3];}static get[_0x17e6('0x25')](){return _0x17e6('0x1a');}constructor(_0x29cbe5){super(_0x29cbe5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x17e6('0x3b')]=Object['create'](_0x3e3cf0),this[_0x17e6('0x21')]=new Map(),this['set'](_0x17e6('0x5c'),null),this[_0x17e6('0x7')]=null,this[_0x17e6('0x43')]=[],this[_0x17e6('0x3d')]=new _0x104934(),this[_0x17e6('0x47')]=_0x37612f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins'][_0x17e6('0x46')](_0x2c9ae3)[_0x17e6('0x40')]('narrowSidebar',this),this[_0x17e6('0x5')]=new _0xca30ee(this[_0x17e6('0x14')]['locale']),this[_0x17e6('0x2b')]=new _0x3ef573(this['context'][_0x17e6('0x1f')]),this[_0x17e6('0x5')]['attachToDom'](),this[_0x17e6('0x5')][_0x17e6('0x26')](this[_0x17e6('0x2b')]);}[_0x17e6('0x13')](_0x7b780f){this['annotations']=_0x7b780f;const _0x54a706=this['context']['plugins']['get'](_0x11478e),_0x130058=this[_0x17e6('0x2b')];if(_0x54a706[_0x17e6('0x4')]=_0x7b780f,this[_0x17e6('0x2a')])throw new _0x3fb1ce(_0x17e6('0x4c'),this);this[_0x17e6('0x2a')]=!0x0,this[_0x17e6('0x3a')](_0x54a706,_0x17e6('0x29'),()=>{this['detach'](),this[_0x17e6('0x3a')](_0x54a706,'change:container',_0x59a98a=>{_0x59a98a[_0x17e6('0x5a')](),this[_0x17e6('0x13')](_0x7b780f);});}),_0x54a706[_0x17e6('0x4e')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2d52e1=_0x37124b=>{const _0x3a5e0d=new _0x4b0c1e(this['context'][_0x17e6('0x1f')]);_0x54a706[_0x17e6('0x2d')](_0x37124b,_0x3a5e0d),this['_annotationToNarrowView'][_0x17e6('0x35')](_0x37124b,_0x3a5e0d),_0x3a5e0d['bind'](_0x17e6('0xa'),_0x17e6('0x24'),_0x17e6('0x39'))['to'](_0x37124b[_0x17e6('0x60')],_0x17e6('0xa'),_0x17e6('0x28'),_0x17e6('0x41')),_0x3a5e0d['on'](_0x17e6('0xf'),()=>{this[_0x17e6('0x30')]['clear'](),_0x130058[_0x17e6('0x5e')]['first']!==_0x37124b['view']?(this[_0x17e6('0x53')](_0x37124b),_0x37124b[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x52')](),this['setActiveAnnotation'](_0x37124b)):this[_0x17e6('0x55')](null);});};for(const _0x58d426 of _0x7b780f)_0x2d52e1(_0x58d426);this[_0x17e6('0x3a')](_0x7b780f,'add',(_0x2149d9,_0x57bf66)=>{_0x2d52e1(_0x57bf66);}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x3c'),(_0x150729,_0x2887fc,_0x4e45da)=>{this[_0x17e6('0x21')][_0x17e6('0x46')](_0x2887fc)[_0x17e6('0x4d')](),this[_0x17e6('0x21')][_0x17e6('0x57')](_0x2887fc),_0x54a706[_0x17e6('0x0')]({'removedAnnotation':_0x2887fc,'previousAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da-0x1),'nextAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da+0x1)}),_0x2887fc===this[_0x17e6('0x5c')]&&this[_0x17e6('0x55')](null);},{'priority':_0x17e6('0x59')}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x52'),(_0x26dc13,_0x105c43)=>{this[_0x17e6('0x55')](_0x105c43);}),this[_0x17e6('0x3a')](_0x7b780f,'blur',()=>{this[_0x17e6('0x55')](null);}),this[_0x17e6('0x3b')][_0x17e6('0x3a')](document,_0x17e6('0x16'),(_0x1145da,_0x5019e6)=>{_0x5019e6[_0x17e6('0x31')]===_0x1cf54e[_0x17e6('0x12')]&&_0x130058[_0x17e6('0x51')]&&(this['_manuallyClosedAnnotationViews'][_0x17e6('0x26')](_0x130058['content']['first']),this['_hideBalloon'](),_0x5019e6[_0x17e6('0x45')](),_0x5019e6[_0x17e6('0x33')]());}),this['_domEmitter']['listenTo'](document,_0x17e6('0xe'),(_0x3fb343,_0x106545)=>{const _0x56271d=_0x106545[_0x17e6('0x10')];_0x130058[_0x17e6('0x51')]&&_0x130058[_0x17e6('0x38')]['contains'](_0x56271d)||_0x54a706[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x1e')](_0x56271d)||_0x3fb343['preventClosingBalloon']||this['activeAnnotation']&&this[_0x17e6('0x5c')][_0x17e6('0x48')][_0x17e6('0xd')](_0x19086b=>_0x19086b[_0x17e6('0x1e')](_0x56271d))||(this['_manuallyClosedAnnotationViews'][_0x17e6('0xc')](),this[_0x17e6('0x1b')](),this['setActiveAnnotation'](null));});const _0xe1fe32=this[_0x17e6('0x14')]instanceof _0x572eb2?this[_0x17e6('0x14')][_0x17e6('0xb')]:new _0x104934([this[_0x17e6('0x14')]]);for(const _0x363075 of _0xe1fe32)this[_0x17e6('0x5b')](_0x363075);this[_0x17e6('0x3a')](_0xe1fe32,'add',(_0xecae46,_0x4e657e)=>{this['listenTo'](_0x4e657e,_0x17e6('0x20'),()=>{this[_0x17e6('0x5b')](_0x4e657e);});}),this[_0x17e6('0x3a')](_0xe1fe32,'remove',(_0x1b2fd3,_0x148b1b)=>{_0x148b1b[_0x17e6('0x1')]['has'](_0x17e6('0x18'))&&this[_0x17e6('0x34')](_0x148b1b['plugins'][_0x17e6('0x46')](_0x17e6('0x18')));}),window['addEventListener'](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this['_refreshPositioning']();}[_0x17e6('0x55')](_0x253465){if(_0x253465===this[_0x17e6('0x5c')])return;const _0x16eb58=this['context'][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e);if(_0x16eb58[_0x17e6('0x49')]({'blurredAnnotation':this[_0x17e6('0x5c')],'activatedAnnotation':_0x253465,'disableAnimationOnActivatedAnnotation':!0x0}),_0x253465)_0x16eb58[_0x17e6('0x2e')](_0x253465)?this[_0x17e6('0x53')](_0x253465):this[_0x17e6('0x1b')]();else this[_0x17e6('0x1b')]();this['activeAnnotation']=_0x253465;}[_0x17e6('0x19')](){if(!this[_0x17e6('0x2a')])throw new _0x3fb1ce('narrowsidebar-detach-not-attached',this);this[_0x17e6('0x55')](null);const _0x4521d2=this[_0x17e6('0x14')]['plugins']['get'](_0x11478e);this[_0x17e6('0x1b')](),Array[_0x17e6('0x23')](this[_0x17e6('0x21')][_0x17e6('0x6')](),_0x3dacdf=>_0x3dacdf[_0x17e6('0x4d')]()),this[_0x17e6('0x21')][_0x17e6('0xc')](),_0x4521d2[_0x17e6('0x3f')](this[_0x17e6('0x7')]),this[_0x17e6('0x27')](),this['_domEmitter'][_0x17e6('0x27')](),this[_0x17e6('0x14')]instanceof _0x572eb2&&this['stopListening'](this[_0x17e6('0x14')][_0x17e6('0xb')]);for(const _0x140432 of Array[_0x17e6('0x23')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x140432);window[_0x17e6('0x17')](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this[_0x17e6('0x47')][_0x17e6('0x36')](),this[_0x17e6('0x43')]=[],this[_0x17e6('0x2a')]=!0x1,this['annotations']=null;}[_0x17e6('0x4d')](){this[_0x17e6('0x2a')]&&this[_0x17e6('0x19')](),this[_0x17e6('0x5')][_0x17e6('0x42')]();}[_0x17e6('0x5b')](_0x419007){const _0x2528d3=_0x419007[_0x17e6('0x1')][_0x17e6('0x46')](_0x186fde),_0x114ae2=this[_0x17e6('0x14')][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e),_0x4de010=this[_0x17e6('0x7')],_0x5ada98=this[_0x17e6('0x2b')],_0x20e484=()=>{const _0x4dd0c4=_0x2528d3[_0x17e6('0x5d')]({'annotations':this['annotations'],'activeAnnotation':this[_0x17e6('0x5c')]});this[_0x17e6('0x37')](_0x4dd0c4),this[_0x17e6('0x55')](_0x4dd0c4[0x0]||null);};this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x49'),_0x20e484),this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x1c'),(_0x402e2b,{isAnnotationTracked:_0x44e08d})=>{this[_0x17e6('0x5c')]&&_0x44e08d(this[_0x17e6('0x5c')])&&(this[_0x17e6('0x37')]([]),this[_0x17e6('0x55')](null));}),this[_0x17e6('0x3a')](_0x2528d3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x17e6('0x3a')](_0x4de010,_0x17e6('0x1c'),_0x1ada9d=>{_0x2528d3[_0x17e6('0x56')]()&&_0x1ada9d[_0x17e6('0x15')]();},{'priority':_0x17e6('0x2')}),this['listenTo'](this['_domEmitter'],_0x17e6('0xe'),(_0x3883a5,_0x194d89)=>{const _0x17fb68=_0x194d89[_0x17e6('0x10')];_0x5ada98[_0x17e6('0x51')]&&_0x5ada98[_0x17e6('0x38')][_0x17e6('0x1e')](_0x17fb68)||_0x114ae2['view']['element'][_0x17e6('0x1e')](_0x17fb68)||this[_0x17e6('0x5c')]&&_0x2528d3[_0x17e6('0x56')]()&&(_0x20e484(),_0x3883a5[_0x17e6('0x4a')]=!0x0);},{'priority':'high'}),this[_0x17e6('0x3d')]['add'](_0x2528d3);}['_destroyEditorAnnotationsIntegration'](_0xf9977){_0xf9977&&(this[_0x17e6('0x27')](_0xf9977),this[_0x17e6('0x3d')]['remove'](_0xf9977));}[_0x17e6('0x37')](_0x276591){for(const _0x37585e of this[_0x17e6('0x43')])_0x276591[_0x17e6('0x4f')](_0x37585e)||this['_manuallyClosedAnnotationViews'][_0x17e6('0x57')](_0x37585e['view']);this[_0x17e6('0x43')]=_0x276591;}[_0x17e6('0x22')](){const _0x1f2a89=this[_0x17e6('0x2b')];this[_0x17e6('0x7')][_0x17e6('0x9')](),_0x1f2a89['isVisible']&&this[_0x17e6('0x1d')]();}[_0x17e6('0x53')](_0x4734f1){if(this[_0x17e6('0x30')][_0x17e6('0x3e')](_0x4734f1[_0x17e6('0x60')]))return;const _0x290734=this[_0x17e6('0x2b')][_0x17e6('0x5e')][_0x17e6('0x2f')];_0x290734!==_0x4734f1[_0x17e6('0x60')]?(_0x290734&&this[_0x17e6('0x8')](_0x290734),this[_0x17e6('0x3')](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x2b')]['content'][_0x17e6('0xc')](),this['balloonPanelView']['content']['add'](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x1d')]()):this['_updateBalloonPosition']();}[_0x17e6('0x1d')](){const _0x598a0f=this[_0x17e6('0x2b')][_0x17e6('0x5e')]['first'],_0x58362a=_0x598a0f&&this[_0x17e6('0x7')][_0x17e6('0x32')](_0x598a0f);if(!_0x58362a||!this[_0x17e6('0x21')]['has'](_0x58362a))return;const _0x4926be=this[_0x17e6('0x21')][_0x17e6('0x46')](_0x58362a)[_0x17e6('0x38')],_0x41e415=function(){const _0x32d8f7=_0x3ef573['defaultPositions'];return[_0x32d8f7[_0x17e6('0x50')],_0x32d8f7[_0x17e6('0x5f')],_0x32d8f7['southArrowNorth'],_0x32d8f7[_0x17e6('0x58')],_0x32d8f7['southArrowNorthWest'],_0x32d8f7['northArrowSouthWest']];}();this[_0x17e6('0x2b')][_0x17e6('0x2c')]({'target':_0x4926be,'positions':_0x41e415});}[_0x17e6('0x1b')](){const _0x11283d=this[_0x17e6('0x2b')],_0x180e78=_0x11283d['content'][_0x17e6('0x2f')];_0x180e78&&(this['_detachListeners'](_0x180e78),_0x11283d[_0x17e6('0x44')](),_0x11283d[_0x17e6('0x5e')][_0x17e6('0xc')]());}[_0x17e6('0x3')](_0x54ceac){this[_0x17e6('0x3a')](_0x54ceac,_0x17e6('0x54'),()=>this[_0x17e6('0x1d')]()),this[_0x17e6('0x3a')](_0x54ceac,'Esc',(_0x1e2f1a,_0x55f581)=>{this[_0x17e6('0x30')][_0x17e6('0x26')](_0x54ceac),this[_0x17e6('0x1b')](),_0x55f581();});}[_0x17e6('0x8')](_0x58db7f){this[_0x17e6('0x27')](_0x58db7f);}}
|
|
@@ -1,12 +1,16 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/sidebar
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import type { View } from 'ckeditor5/src/ui
|
|
7
|
-
import SidebarView from './view/sidebarview
|
|
8
|
-
import SidebarItemView from './view/sidebaritemview
|
|
9
|
-
import type Annotation from './annotation
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
+
import SidebarView from './view/sidebarview';
|
|
12
|
+
import SidebarItemView from './view/sidebaritemview';
|
|
13
|
+
import type Annotation from './annotation';
|
|
10
14
|
/**
|
|
11
15
|
* Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
|
|
12
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af5=['setContainer','stopListening','_alignBeforeItem','_createSidebarView','change:top','_getItemBefore','remove','change:targetRect','define','_recalculateBuffer','_spaceBetweenItems','_alignForBottomChange','object','_updateLastItem','getSidebarItemView','minHeight','view','list','_activeAnnotation','bind','element','nodeType','_annotations','class','last','push','_alignToTargetRect','init','_getMaxAvailableTop','appendChild','listenTo','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_getTargetTop','_detachFromContainer','container','content','max','render','updateHeight','unbind','sidebar-attachtocontainer-missing-container','set','refresh','_getItemAfter','sidebar.preventScrollOutOfView','_alignForTopChange','rearrange','isAnimationDisabled','_recalculate','top','_destroySidebarItemView','destroy','add','_setItemTop','locale','config','get','bottom','change:_lastItem','_alignAfterItem','targetRect','context','isActive','_sidebarItemViewToAnnotation','delete','Sidebar','change:bottom','_lastItem','sidebar.container','length','_attachToContainer'];(function(_0x46fdb1,_0x2af59d){const _0x47aeb0=function(_0x107070){while(--_0x107070){_0x46fdb1['push'](_0x46fdb1['shift']());}};_0x47aeb0(++_0x2af59d);}(_0x2af5,0x18e));const _0x47ae=function(_0x46fdb1,_0x2af59d){_0x46fdb1=_0x46fdb1-0x0;let _0x47aeb0=_0x2af5[_0x46fdb1];return _0x47aeb0;};import{ContextPlugin as _0x4f3db3}from'ckeditor5/src/core';import{Rect as _0x30e527,CKEditorError as _0x68a7a4}from'ckeditor5/src/utils';import _0x420efe from'./view/sidebarview';import _0xde322a from'./view/sidebaritemview';export default class z extends _0x4f3db3{static get['pluginName'](){return _0x47ae('0x1c');}constructor(_0x365cac){super(_0x365cac),this[_0x47ae('0x4')]('_lastItem',void 0x0),this[_0x47ae('0x32')]=this['_createSidebarView'](),this[_0x47ae('0x4')]('container',null),this[_0x47ae('0x2c')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x47ae('0x41')]=new Map(),this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x2a')](_0x47ae('0x7'),!0x1),this[_0x47ae('0x38')]=null,this[_0x47ae('0x34')]=null,this[_0x47ae('0x2b')]=[];}[_0x47ae('0x3d')](){const _0x5373f5=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x1f'));_0x5373f5&&this[_0x47ae('0x22')](_0x5373f5);}[_0x47ae('0x22')](_0x566df9){if(!y(_0x566df9))throw new _0x68a7a4(_0x47ae('0x42'));this[_0x47ae('0x45')]=_0x566df9;}[_0x47ae('0x21')]({viewClass:_0x5b38b7='',spaceBetweenItems:_0x563857=0x19}={}){if(!y(this[_0x47ae('0x45')]))throw new _0x68a7a4(_0x47ae('0x3'),this);this[_0x47ae('0x45')][_0x47ae('0x3f')](this[_0x47ae('0x32')][_0x47ae('0x36')]),this[_0x47ae('0x32')]['class']=_0x5b38b7,this[_0x47ae('0x2c')]=_0x563857;}[_0x47ae('0x9')]({removedAnnotation:_0x8595ce,previousAnnotation:_0xb60b9a,nextAnnotation:_0x52f929}){const _0x9b5b3c=this['getSidebarItemView'](_0x8595ce);this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0x28')](_0x9b5b3c),this[_0x47ae('0xd')](_0x8595ce),_0xb60b9a&&this[_0x47ae('0x3c')](this[_0x47ae('0x30')](_0xb60b9a)),_0x52f929&&this[_0x47ae('0x3c')](this['getSidebarItemView'](_0x52f929)),this[_0x47ae('0x2f')]();}[_0x47ae('0x5')]({blurredAnnotation:_0x2701f4,activatedAnnotation:_0x13a058,disableAnimationOnActivatedAnnotation:_0x52aa3b}){if(this[_0x47ae('0x34')]=_0x13a058,_0x2701f4){_0x2701f4['isActive']=!0x1;const _0x20df8f=this[_0x47ae('0x30')](_0x2701f4);_0x20df8f&&_0x52aa3b&&(_0x20df8f[_0x47ae('0xa')]=!0x1);}if(_0x13a058){const _0x5b02ca=this[_0x47ae('0x30')](_0x13a058);_0x5b02ca&&(_0x13a058[_0x47ae('0x19')]=!0x0,_0x52aa3b&&(_0x5b02ca['isAnimationDisabled']=!0x0,_0x5b02ca[_0x47ae('0xc')]+=0x1),this[_0x47ae('0x3c')](_0x5b02ca));}}[_0x47ae('0x44')](_0x305f78){if(this[_0x47ae('0x32')][_0x47ae('0x36')][_0x47ae('0x28')](),_0x305f78)for(const _0x36e725 of _0x305f78)this[_0x47ae('0xd')](_0x36e725);this['view']['list']['clear'](),this['view'][_0x47ae('0x39')]='',this[_0x47ae('0x1e')]=null;}['addAnnotation'](_0xb89e12,_0x5bae11){_0x5bae11||(_0x5bae11=_0xb89e12[_0x47ae('0x32')]);const _0x26e46a=new _0xde322a(this[_0x47ae('0x18')][_0x47ae('0x11')]);this[_0x47ae('0x1a')][_0x47ae('0x4')](_0x26e46a,_0xb89e12),this[_0x47ae('0x41')]['set'](_0xb89e12,_0x26e46a),_0x26e46a[_0x47ae('0x46')][_0x47ae('0xf')](_0x5bae11),this[_0x47ae('0x40')](_0xb89e12[_0x47ae('0x32')],_0x47ae('0x29'),(_0x5dad26,_0x2850cf,_0x36cd26)=>{const _0x1224f7=this[_0x47ae('0x43')](_0xb89e12,_0x36cd26);_0x26e46a['_targetTop']!=_0x1224f7&&(_0x26e46a['_targetTop']=_0x1224f7,this[_0x47ae('0x10')](_0x26e46a,_0x1224f7));}),this['listenTo'](_0x26e46a,_0x47ae('0x26'),()=>{this[_0x47ae('0xb')](_0x26e46a,'top');}),this[_0x47ae('0x40')](_0x26e46a,_0x47ae('0x1d'),()=>{this['_recalculate'](_0x26e46a,_0x47ae('0x14'));}),this[_0x47ae('0x3c')](_0x26e46a);const _0x15e94e=this[_0x47ae('0x27')](_0x26e46a);if(_0x15e94e)this['_alignAfterItem'](_0x15e94e,_0x26e46a)||this['_alignToTargetRect'](_0x26e46a);else this[_0x47ae('0x3c')](_0x26e46a);return this[_0x47ae('0x2f')](),this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0xf')](_0x26e46a),_0x26e46a;}['_alignForTopChange'](_0x5c4a53){if(!_0x5c4a53['content'][_0x47ae('0x20')])return;const _0x458ebb=this[_0x47ae('0x27')](_0x5c4a53);if(!_0x458ebb)return;const _0x4ec8eb=this['_sidebarItemViewToAnnotation']['get'](_0x458ebb),_0x49554c=this[_0x47ae('0x34')];_0x49554c&&_0x49554c===_0x4ec8eb?this[_0x47ae('0x16')](_0x458ebb,_0x5c4a53):this[_0x47ae('0x24')](_0x5c4a53,_0x458ebb);}[_0x47ae('0x2d')](_0x49e72c){if(!_0x49e72c[_0x47ae('0x46')][_0x47ae('0x20')])return;const _0x43645e=this[_0x47ae('0x6')](_0x49e72c);if(!_0x43645e)return;const _0x4de01c=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x43645e),_0x131d4d=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x7')),_0x25a3ca=this[_0x47ae('0x34')];_0x25a3ca&&_0x25a3ca===_0x4de01c&&_0x131d4d?(this[_0x47ae('0x24')](_0x43645e,_0x49e72c),this[_0x47ae('0x16')](_0x49e72c,_0x43645e)):_0x25a3ca&&_0x25a3ca===_0x4de01c?this['_alignBeforeItem'](_0x43645e,_0x49e72c):this[_0x47ae('0x16')](_0x49e72c,_0x43645e);}['_recalculate'](_0x366bd8,_0x1a4847){0x0===this[_0x47ae('0x2b')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x346cea,changedProp:_0x96a1c2}of this['_recalculateBuffer'])_0x47ae('0xc')===_0x96a1c2?this[_0x47ae('0x8')](_0x346cea):this[_0x47ae('0x2d')](_0x346cea);this[_0x47ae('0x2b')]=[];},0xa),this[_0x47ae('0x2b')][_0x47ae('0x3b')]({'sidebarItemView':_0x366bd8,'changedProp':_0x1a4847});}[_0x47ae('0x30')](_0x2e482e){return this[_0x47ae('0x41')]['get'](_0x2e482e);}[_0x47ae('0xe')](){this[_0x47ae('0x23')](),this[_0x47ae('0x32')][_0x47ae('0xe')]();}['_destroySidebarItemView'](_0x532897){const _0x5e35f0=this[_0x47ae('0x30')](_0x532897);this[_0x47ae('0x23')](_0x5e35f0),this[_0x47ae('0x23')](_0x532897[_0x47ae('0x32')]),_0x5e35f0[_0x47ae('0xe')](),this[_0x47ae('0x41')][_0x47ae('0x1b')](_0x532897),this[_0x47ae('0x1a')][_0x47ae('0x1b')](_0x5e35f0);}[_0x47ae('0x25')](){const _0x417df1=new _0x420efe(this[_0x47ae('0x18')][_0x47ae('0x11')]);return _0x417df1[_0x47ae('0x0')](),this['on'](_0x47ae('0x15'),(_0x573e09,_0x32df05,_0x1fb5b2,_0x33bfad)=>{_0x33bfad&&_0x417df1[_0x47ae('0x2')]('minHeight'),_0x1fb5b2?_0x417df1[_0x47ae('0x35')](_0x47ae('0x31'))['to'](_0x1fb5b2,_0x47ae('0x14')):_0x417df1['minHeight']=null;}),_0x417df1;}[_0x47ae('0x2f')](){var _0x5108fe;this[_0x47ae('0x1e')]=(null===(_0x5108fe=this[_0x47ae('0x38')])||void 0x0===_0x5108fe?void 0x0:_0x5108fe['last'])?this['getSidebarItemView'](this['_annotations'][_0x47ae('0x3a')]):null;}[_0x47ae('0x27')](_0x380e2a){var _0x56cd18;const _0x3317e1=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x380e2a),_0x196f2c=_0x3317e1&&(null===(_0x56cd18=this['_annotations'])||void 0x0===_0x56cd18?void 0x0:_0x56cd18['get'](this['_annotations']['getIndex'](_0x3317e1)-0x1));return _0x196f2c&&this[_0x47ae('0x30')](_0x196f2c)||null;}[_0x47ae('0x6')](_0x41b4d9){var _0x437ab8;const _0x4fcf80=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x41b4d9),_0x22a956=_0x4fcf80&&(null===(_0x437ab8=this[_0x47ae('0x38')])||void 0x0===_0x437ab8?void 0x0:_0x437ab8['get'](this[_0x47ae('0x38')]['getIndex'](_0x4fcf80)+0x1));return _0x22a956&&this[_0x47ae('0x30')](_0x22a956)||null;}['_alignBeforeItem'](_0x22aa4f,_0x2b7365){_0x22aa4f[_0x47ae('0x1')]();const _0x3d44bb=H(_0x2b7365['bottom']+this[_0x47ae('0x2c')],_0x22aa4f[_0x47ae('0xc')]);return!!_0x3d44bb&&(this['_setItemTop'](_0x2b7365,_0x2b7365['top']-_0x3d44bb),!0x0);}['_alignAfterItem'](_0x5f4397,_0x12c9c){_0x5f4397['updateHeight']();const _0x901885=H(_0x5f4397[_0x47ae('0x14')]+this[_0x47ae('0x2c')],_0x12c9c[_0x47ae('0xc')]);return!!_0x901885&&(this[_0x47ae('0x10')](_0x12c9c,_0x12c9c['top']+_0x901885,!0x1),!0x0);}['_alignToTargetRect'](_0xb456e5){const _0x26d796=this['_sidebarItemViewToAnnotation']['get'](_0xb456e5);if(!_0x26d796||!_0x26d796['target']||!_0x26d796[_0x47ae('0x17')])return;const _0x346009=this[_0x47ae('0x43')](_0x26d796,_0x26d796['targetRect']);this[_0x47ae('0x10')](_0xb456e5,_0x346009);}[_0x47ae('0x43')](_0x561644,_0x4fab96){if(null===_0x4fab96)return 0x0;if(_0x561644['target']instanceof _0x30e527)return _0x4fab96['top'];{const _0x1ffb22=new _0x30e527(this['view'][_0x47ae('0x36')])[_0x47ae('0xc')];return _0x4fab96[_0x47ae('0xc')]-_0x1ffb22;}}[_0x47ae('0x10')](_0x3bdf4a,_0x2eb706,_0x4973e5=this[_0x47ae('0x18')]['config']['get'](_0x47ae('0x7'))){_0x4973e5&&(_0x2eb706=Math[_0x47ae('0x47')](_0x2eb706,this[_0x47ae('0x3e')](_0x3bdf4a))),_0x3bdf4a[_0x47ae('0xc')]=_0x2eb706;}[_0x47ae('0x3e')](_0x1e0392){let _0x5183af=this[_0x47ae('0x27')](_0x1e0392),_0x12d620=0x0;for(;_0x5183af;)_0x5183af['updateHeight'](),_0x12d620+=this[_0x47ae('0x2c')]+_0x5183af['height'],_0x5183af=this[_0x47ae('0x27')](_0x5183af);return _0x12d620;}}function H(_0x1bfaa0,_0x542a34){return Math[_0x47ae('0x47')](_0x1bfaa0-_0x542a34,0x0);}function y(_0x534910){return null!==_0x534910&&_0x47ae('0x2e')==typeof _0x534910&&0x1===_0x534910[_0x47ae('0x37')];}
|
|
@@ -1,9 +1,13 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/view/annotationcounterbuttonview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ButtonView, View } from 'ckeditor5/src/ui
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
9
|
+
import { ButtonView, View } from 'ckeditor5/src/ui';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
11
|
/**
|
|
8
12
|
* A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
|
|
9
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c36=['toString','bind','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge--','isDirty','...','span','children','set','add','annotationType','counterView','setTemplate'];(function(_0x189fea,_0x4c3628){const _0x4f7aa7=function(_0x21b5cc){while(--_0x21b5cc){_0x189fea['push'](_0x189fea['shift']());}};_0x4f7aa7(++_0x4c3628);}(_0x4c36,0xcb));const _0x4f7a=function(_0x189fea,_0x4c3628){_0x189fea=_0x189fea-0x0;let _0x4f7aa7=_0x4c36[_0x189fea];return _0x4f7aa7;};import{ButtonView as _0x4cdb56,View as _0x503cb3}from'ckeditor5/src/ui';import _0x105f87 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4cdb56{constructor(_0x5c735f){super(_0x5c735f);const _0x56a732=this['bindTemplate'];this[_0x4f7a('0x0')](_0x4f7a('0x9'),!0x1),this['set']('number',0x0),this[_0x4f7a('0x6')]('_badge')['to'](this,_0x4f7a('0x9'),this,'number',(_0x50ccb3,_0x5a6b8f)=>_0x50ccb3?_0x4f7a('0xa'):_0x5a6b8f[_0x4f7a('0x5')]()),this[_0x4f7a('0x0')](_0x4f7a('0x2'),''),this['icon']=_0x105f87,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4f7a('0x3')]=new _0x503cb3(),this[_0x4f7a('0x3')][_0x4f7a('0x4')]({'tag':_0x4f7a('0xb'),'attributes':{'class':['ck-annotation-counter__badge',_0x56a732['to'](_0x4f7a('0x2'),_0x16c1d0=>_0x4f7a('0x8')+_0x16c1d0),_0x56a732['if'](_0x4f7a('0x9'),_0x4f7a('0x7'))]},'children':[{'text':_0x56a732['to']('_badge')}]}),this[_0x4f7a('0xc')][_0x4f7a('0x1')](this['counterView']);}}
|
|
@@ -1,9 +1,13 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/view/annotationview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui
|
|
6
|
-
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
|
|
7
11
|
import '../../../theme/annotation.css';
|
|
8
12
|
/**
|
|
9
13
|
* A wrapping view for any view added to the `Annotations` plugin.
|