@ckeditor/ckeditor5-template 39.0.0 → 39.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/LICENSE.md +4 -4
- package/README.md +7 -7
- package/build/template.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/uz.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/index.js +1 -1
- package/src/template.js +1 -1
- package/src/templatecommand.js +1 -1
- package/src/templateediting.js +1 -1
- package/src/templateui.js +1 -1
- package/src/ui/templateforminfoview.js +1 -1
- package/src/ui/templateformsearchfieldview.js +1 -1
- package/src/ui/templateformview.js +1 -1
- package/src/ui/templatelistbuttonview.js +1 -1
- package/src/ui/templatelistitemview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x975681,IconView as _0x3de58,LabeledFieldView as _0x27e7e8}from'ckeditor5/src/ui';import _0x4352e5 from'../../theme/icons/loupe.svg';import{icons as _0x2dbdfc}from'ckeditor5/src/core';export default class w extends _0x27e7e8{constructor(_0x586818,_0xa79358){super(_0x586818,_0xa79358);const t=_0x586818['t'];this['label']=t('Search\x20template'),this['loupeIconView']=new _0x3de58(),this['loupeIconView']['content']=_0x4352e5,this['clearButtonView']=new _0x975681(_0x586818),this['clearButtonView']['set']({'label':t('Clear'),'icon':_0x2dbdfc['cancel'],'class':'ck-template-form__clear-search','isVisible':!0x1,'tooltip':!0x0}),this['clearButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['clearButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x506d65=>!_0x506d65),this['fieldWrapperChildren']['add'](this['loupeIconView'],0x0),this['fieldWrapperChildren']['add'](this['clearButtonView']);}['reset'](){this['fieldView']['value']=this['fieldView']['element']['value']='',this['clearButtonView']['isVisible']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d17=['set','templateDefinition','add','shift\x20+\x20tab','searchFieldView','originalIndex','arrowdown','stopPropagation','items','forEach','get','children','element','sort','execute','unfilter','isVisible','render','infoView','focus','addMany','tab','setTemplate','arrowup','clear','arrowleft','extendTemplate','_createTemplateListView','title','length','focusTracker','_filterTemplates','keystrokes','map','toLowerCase','_createSearchFieldView','ck-template-form','value','templatesDefinitions','includes','setNoTemplatesAvailableText','buttonView','fieldView','reset','arrowright','highlightText','input','delegate','isMatching','filter','templateListView','listenTo'];(function(_0x39cad5,_0x4d17e3){const _0x524920=function(_0x411883){while(--_0x411883){_0x39cad5['push'](_0x39cad5['shift']());}};_0x524920(++_0x4d17e3);}(_0x4d17,0x156));const _0x5249=function(_0x39cad5,_0x4d17e3){_0x39cad5=_0x39cad5-0x0;let _0x524920=_0x4d17[_0x39cad5];return _0x524920;};import{FocusTracker as _0x3dc2e9,KeystrokeHandler as _0x526266}from'ckeditor5/src/utils';import{View as _0x1d677a,ListView as _0x2a9124,createLabeledInputText as _0x174173,FocusCycler as _0x40de72,injectCssTransitionDisabler as _0x26fcb8}from'ckeditor5/src/ui';import _0x1f73a7 from'./templatelistbuttonview';import _0x581fd4 from'./templateforminfoview';import _0x225ef4 from'./templateformsearchfieldview';import{escapeRegExp as _0x52849d}from'lodash-es';import _0x4f13e9 from'./templatelistitemview';export default class f extends _0x1d677a{constructor(_0x141184,_0xadc506){super(_0x141184),this[_0x5249('0x0')]=new _0x3dc2e9(),this['keystrokes']=new _0x526266(),this[_0x5249('0x8')]=_0xadc506,this[_0x5249('0x14')]=this[_0x5249('0x31')](_0x141184,_0xadc506),this[_0x5249('0x1a')]=this['_createSearchFieldView'](_0x141184),this[_0x5249('0x28')]=new _0x581fd4(_0x141184),_0xadc506[_0x5249('0x33')]||(this[_0x5249('0x28')][_0x5249('0x26')]=!0x0,this[_0x5249('0x28')][_0x5249('0xa')]()),this[_0x5249('0x21')]=this['createCollection'](_0xadc506['length']?[this['searchFieldView'],this[_0x5249('0x28')],this[_0x5249('0x14')]]:[this[_0x5249('0x28')]]),this['_focusCycler']=new _0x40de72({'focusables':this[_0x5249('0x21')],'focusTracker':this[_0x5249('0x0')],'keystrokeHandler':this[_0x5249('0x2')],'actions':{'focusPrevious':_0x5249('0x19'),'focusNext':_0x5249('0x2b')}}),this[_0x5249('0x2c')]({'tag':'div','attributes':{'class':['ck',_0x5249('0x6')],'tabindex':'-1'},'children':this[_0x5249('0x21')]}),_0x26fcb8(this);}[_0x5249('0x27')](){if(super[_0x5249('0x27')](),!this['templatesDefinitions'][_0x5249('0x33')])return;const _0x18de6f=_0x12d9bc=>_0x12d9bc[_0x5249('0x1d')]();this[_0x5249('0x0')][_0x5249('0x18')](this[_0x5249('0x1a')][_0x5249('0x22')]),this[_0x5249('0x0')][_0x5249('0x18')](this[_0x5249('0x14')]['element']),this[_0x5249('0x2')][_0x5249('0x15')](this[_0x5249('0x22')]),this[_0x5249('0x2')][_0x5249('0x16')](_0x5249('0xe'),_0x18de6f),this[_0x5249('0x2')]['set'](_0x5249('0x2f'),_0x18de6f),this['keystrokes']['set'](_0x5249('0x2d'),_0x18de6f),this[_0x5249('0x2')][_0x5249('0x16')](_0x5249('0x1c'),_0x18de6f);}[_0x5249('0x29')](){this[_0x5249('0x8')][_0x5249('0x33')]&&this[_0x5249('0x1a')][_0x5249('0x29')]();}[_0x5249('0xd')](){this[_0x5249('0x8')][_0x5249('0x33')]&&(this[_0x5249('0x1a')]['reset'](),this[_0x5249('0x1')]());}[_0x5249('0x1')](_0x5cafbc){if(!this[_0x5249('0x8')][_0x5249('0x33')])return;let _0x1ff121=!0x1;if(_0x5cafbc)for(const _0x5bd2b7 of this['templateListView'][_0x5249('0x1e')]){_0x5bd2b7[_0x5249('0x21')]['first'][_0x5249('0x17')]['title'][_0x5249('0x4')]()[_0x5249('0x9')](_0x5cafbc['toLowerCase']())?_0x5bd2b7[_0x5249('0x26')]=!0x0:_0x5bd2b7['isVisible']=!0x1;const _0x4eb37b=new RegExp(_0x52849d(_0x5cafbc),'ig');_0x1ff121=this[_0x5249('0x14')]['filter'](_0x4eb37b);}else this[_0x5249('0x14')][_0x5249('0x25')](),_0x1ff121=!0x0;this['infoView']['isVisible']=!_0x1ff121,_0x1ff121||this[_0x5249('0x28')]['setNoTemplatesFoundText'](_0x5cafbc);}[_0x5249('0x31')](_0x27f854,_0x1c8dd3){const _0x2ed2e5=new L(_0x27f854);return _0x2ed2e5[_0x5249('0x30')]({'attributes':{'class':['ck-template-list']}}),_0x2ed2e5[_0x5249('0x1e')]['addMany'](_0x1c8dd3[_0x5249('0x3')]((_0x262b43,_0x2c107a)=>{const _0x535c77=new _0x4f13e9(_0x27f854,_0x2c107a),_0x321e19=new _0x1f73a7(_0x27f854,_0x262b43);return _0x535c77['buttonView']=_0x321e19,_0x535c77[_0x5249('0x21')][_0x5249('0x18')](_0x321e19),_0x535c77['children'][_0x5249('0x11')](_0x5249('0x24'))['to'](this),_0x535c77;})),_0x2ed2e5;}[_0x5249('0x5')](_0x5a2b6e){const _0x2e7a87=new _0x225ef4(_0x5a2b6e,_0x174173);return this[_0x5249('0x15')](_0x2e7a87[_0x5249('0xc')],_0x5249('0x10'),()=>{this[_0x5249('0x1')](_0x2e7a87[_0x5249('0xc')][_0x5249('0x22')][_0x5249('0x7')]);}),_0x2e7a87['on'](_0x5249('0xd'),()=>{this[_0x5249('0xd')]();}),_0x2e7a87;}}class L extends _0x2a9124{[_0x5249('0x13')](_0xbde4fe){const _0x41b0d1=new Map(),_0x45569f=this[_0x5249('0x1e')][_0x5249('0x3')](_0x339f18=>{const _0x4dfea8=_0x339f18[_0x5249('0xb')][_0x5249('0x12')](_0xbde4fe);return _0x339f18[_0x5249('0x26')]=!!_0x4dfea8,_0x339f18[_0x5249('0xb')][_0x5249('0xf')](_0x4dfea8?_0xbde4fe:null),_0x4dfea8&&_0x41b0d1[_0x5249('0x16')](_0x339f18,_0x4dfea8),_0x339f18;})[_0x5249('0x23')](M)[_0x5249('0x23')]((_0x54458f,_0x1de351)=>{const _0x38ed0b=_0x41b0d1[_0x5249('0x20')](_0x54458f),_0x52ae82=_0x41b0d1[_0x5249('0x20')](_0x1de351);return _0x38ed0b&&!_0x52ae82?-0x1:_0x52ae82&&!_0x38ed0b?0x1:_0x38ed0b||_0x52ae82?_0x38ed0b[_0x5249('0x32')]&&!_0x52ae82[_0x5249('0x32')]?-0x1:!_0x38ed0b['title']&&_0x52ae82['title']?0x1:0x0:0x0;});return this[_0x5249('0x1e')][_0x5249('0x2e')](),this[_0x5249('0x1e')][_0x5249('0x2a')](_0x45569f),!!_0x41b0d1['size'];}['unfilter'](){const _0x170a7b=this[_0x5249('0x1e')][_0x5249('0x3')](_0xf4a444=>_0xf4a444)[_0x5249('0x23')](M);_0x170a7b[_0x5249('0x1f')](_0x374e2f=>{_0x374e2f[_0x5249('0x26')]=!0x0,_0x374e2f[_0x5249('0xb')][_0x5249('0xf')](null);}),this[_0x5249('0x1e')][_0x5249('0x2e')](),this['items'][_0x5249('0x2a')](_0x170a7b);}}function M(_0x30327d,_0x4cd068){return _0x30327d[_0x5249('0x1b')]-_0x4cd068[_0x5249('0x1b')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3777=['match','textPartView','change:highlightRegExp','descriptionView','templateDefinition','index','ck-template-form__description','lastIndex','exec','children','ck-button__label','render','highlightRegExp','remove','labelView','description','highlightText','iconView','_setupTextContentRendering','locale','innerHTML','map','add','set','join','div','substring','setTemplate','span','text','destroy','isColorInherited','length','</mark>','element','push','titleView'];(function(_0x2d2407,_0x37774e){const _0x209dce=function(_0x31aff6){while(--_0x31aff6){_0x2d2407['push'](_0x2d2407['shift']());}};_0x209dce(++_0x37774e);}(_0x3777,0x121));const _0x209d=function(_0x2d2407,_0x37774e){_0x2d2407=_0x2d2407-0x0;let _0x209dce=_0x3777[_0x2d2407];return _0x209dce;};import{ButtonView as _0x511ec7,View as _0x1fcd1e}from'ckeditor5/src/ui';import{escape as _0x3b8e2f}from'lodash-es';import _0x142fc5 from'../../theme/icons/template-generic.svg';export default class E extends _0x511ec7{constructor(_0x488702,_0x255aa0){super(_0x488702),this['templateDefinition']=_0x255aa0,this[_0x209d('0x8')]=null;const {icon:_0x4c2ad4=_0x142fc5}=_0x255aa0;this[_0x209d('0x1e')]({'withText':!0x0,'icon':_0x4c2ad4}),this['extendTemplate']({'attributes':{'role':'option'}}),this[_0x209d('0x18')][_0x209d('0x1')]=!0x1;}[_0x209d('0x12')](){super[_0x209d('0x12')](),this[_0x209d('0x8')]=new TextPartView(this[_0x209d('0x1a')],this[_0x209d('0xb')],this['labelView'][_0x209d('0x4')]['id']),this[_0x209d('0x10')][_0x209d('0x14')](this[_0x209d('0x15')]),this[_0x209d('0x10')][_0x209d('0x1d')](this[_0x209d('0x8')]);}[_0x209d('0x0')](){super[_0x209d('0x0')](),this[_0x209d('0x15')][_0x209d('0x0')]();}['isMatching'](_0x1f079f){const {title:_0xfa3a27,description:_0x5a96aa}=this[_0x209d('0xb')],_0x294331=!!_0xfa3a27[_0x209d('0x7')](_0x1f079f),_0x1cbbca=!(!_0x5a96aa||!_0x5a96aa[_0x209d('0x7')](_0x1f079f));return _0x294331||_0x1cbbca?{'title':_0x294331,'description':_0x1cbbca}:null;}[_0x209d('0x17')](_0x2bedab){this[_0x209d('0x8')]['highlightRegExp']=_0x2bedab;}}export class TextPartView extends _0x1fcd1e{constructor(_0x5a2198,_0x4e7aba,_0x4e0851){super(_0x5a2198),this['title']=_0x4e7aba['title'],this[_0x209d('0x16')]=_0x4e7aba['description'],this[_0x209d('0x1e')]('highlightRegExp',null),this[_0x209d('0x6')]=new _0x1fcd1e(_0x5a2198),this['titleView'][_0x209d('0x22')]({'tag':_0x209d('0x23'),'attributes':{'class':['ck',_0x209d('0x11')],'id':_0x4e0851}});const _0x3a57bb=[this[_0x209d('0x6')]];this[_0x209d('0x16')]&&(this[_0x209d('0xa')]=new _0x1fcd1e(_0x5a2198),this[_0x209d('0xa')][_0x209d('0x22')]({'tag':'p','attributes':{'class':['ck',_0x209d('0xd')]}}),_0x3a57bb[_0x209d('0x5')](this[_0x209d('0xa')])),this[_0x209d('0x22')]({'tag':_0x209d('0x20'),'attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x3a57bb}),this[_0x209d('0x19')]();}[_0x209d('0x19')](){const {title:_0x4026c8,description:_0x41721f,titleView:_0x4ce071,descriptionView:_0xf6fd19}=this,_0x3a7682=()=>{_0x4ce071[_0x209d('0x4')][_0x209d('0x1b')]=C(_0x4026c8,this[_0x209d('0x13')]),_0x41721f&&(_0xf6fd19[_0x209d('0x4')]['innerHTML']=C(_0x41721f,this[_0x209d('0x13')]));};this['on']('render',()=>{_0x3a7682(),this['on'](_0x209d('0x9'),_0x3a7682);});}}function C(_0x2acd7a,_0x453986){if(!_0x453986)return _0x3b8e2f(_0x2acd7a);const _0x48135f=[];let _0x388247,_0x5d4dd8=0x0;for(;null!==(_0x388247=_0x453986[_0x209d('0xf')](_0x2acd7a));){const _0x2f0a40=_0x388247[_0x209d('0xc')];_0x2f0a40!==_0x5d4dd8&&_0x48135f[_0x209d('0x5')]({'text':_0x2acd7a[_0x209d('0x21')](_0x5d4dd8,_0x2f0a40),'isMatch':!0x1}),_0x48135f[_0x209d('0x5')]({'text':_0x388247[0x0],'isMatch':!0x0}),_0x5d4dd8=_0x453986[_0x209d('0xe')];}return _0x5d4dd8!==_0x2acd7a[_0x209d('0x2')]&&_0x48135f[_0x209d('0x5')]({'text':_0x2acd7a[_0x209d('0x21')](_0x5d4dd8),'isMatch':!0x1}),_0x48135f[_0x209d('0x1c')](_0xfd78df=>(_0xfd78df[_0x209d('0x24')]=_0x3b8e2f(_0xfd78df[_0x209d('0x24')]),_0xfd78df))[_0x209d('0x1c')](_0x228baa=>_0x228baa['isMatch']?'<mark>'+_0x228baa[_0x209d('0x24')]+_0x209d('0x3'):_0x228baa['text'])[_0x209d('0x1f')]('');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x26e8=['originalIndex','buttonView'];(function(_0x19eca7,_0x26e84d){var _0x28508c=function(_0x3f4967){while(--_0x3f4967){_0x19eca7['push'](_0x19eca7['shift']());}};_0x28508c(++_0x26e84d);}(_0x26e8,0xd0));var _0x2850=function(_0x19eca7,_0x26e84d){_0x19eca7=_0x19eca7-0x0;var _0x28508c=_0x26e8[_0x19eca7];return _0x28508c;};import{ListItemView as _0x51b04b}from'ckeditor5/src/ui';export default class H extends _0x51b04b{constructor(_0x3d06db,_0x24cafc){super(_0x3d06db),this[_0x2850('0x0')]=_0x24cafc,this[_0x2850('0x1')]=null;}}
|