@ckeditor/ckeditor5-pagination 46.0.1-alpha.0 → 46.0.1-alpha.10
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/build/pagination.js +1 -1
- package/dist/index-editor.css +0 -5
- package/dist/index.css +2 -24
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/pagination.js +1 -1
- package/src/paginationediting.js +1 -1
- package/src/paginationlookup.js +1 -1
- package/src/paginationrenderer.js +1 -1
- package/src/paginationui.js +1 -1
- package/src/ui/linesrepository.js +1 -1
- package/src/ui/lineview.js +2 -2
- package/src/ui/pagenavigatorview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/pagination.css +2 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xedebdd=_0x2e8b;function _0xdd1b(){const _0x3e1672=['set','removeClass','pageNumber','destroy','instant','offset','pageBreaks','77ZNVcqG','overflowY','scrollLeft','values','resize','bottom','_renderPageBreakLines','length','bind','_scrollableEditingRootDomAncestor','pluginName','update','view','860628aSLJvA','5839iUWptf','left','isMotionReduced','scrollToPage','height','getComputedStyle','excludeScrollbarsAndBorders','scrollTo','listenTo','contains','4663270CdIEZh','_getPageBreakLineOffset','roots','parentElement','1372cleibQ','auto','_updatePageBreakLines','stopListening','addClass','6ObnyZm','editor','PaginationRenderer','linesRepository','isOfficialPlugin','246UNGHpM','width','push','scrollTop','33432aNlyPg','836044obSMaJ','_resizeObserver','PaginationLookup','document','ready','top','change','cleanLines','isEnabled','ownerDocument','465561pdiSNd','_paginationLookupPlugin','_onUiReady','BODY','init','editing','change:isEnabled','467631XOyDTe','isPremiumPlugin','ck-pagination_enabled','get','PaginationEditing','tagName','showLine','plugins','domRoots','_toggleEditingRootsClass','180xEpHgE','once','setupScrollableAncestor','_getAttachedDomRoot','change:pageBreaks','body','scroll','window','smooth'];_0xdd1b=function(){return _0x3e1672;};return _0xdd1b();}function _0x2e8b(_0x852606,_0x28250a){const _0xdd1b23=_0xdd1b();return _0x2e8b=function(_0x2e8b05,_0x1c4b5f){_0x2e8b05=_0x2e8b05-0x105;let _0x2938f1=_0xdd1b23[_0x2e8b05];return _0x2938f1;},_0x2e8b(_0x852606,_0x28250a);}(function(_0x174c7c,_0x391e26){const _0x75a269=_0x2e8b,_0x8367c4=_0x174c7c();while(!![]){try{const _0x5f4921=-parseInt(_0x75a269(0x11d))/0x1*(parseInt(_0x75a269(0x135))/0x2)+-parseInt(_0x75a269(0x144))/0x3+-parseInt(_0x75a269(0x13a))/0x4+parseInt(_0x75a269(0x127))/0x5*(parseInt(_0x75a269(0x130))/0x6)+parseInt(_0x75a269(0x12b))/0x7*(-parseInt(_0x75a269(0x139))/0x8)+parseInt(_0x75a269(0x14b))/0x9*(parseInt(_0x75a269(0x155))/0xa)+parseInt(_0x75a269(0x10f))/0xb*(parseInt(_0x75a269(0x11c))/0xc);if(_0x5f4921===_0x391e26)break;else _0x8367c4['push'](_0x8367c4['shift']());}catch(_0x171059){_0x8367c4['push'](_0x8367c4['shift']());}}}(_0xdd1b,0x725f6));import{Plugin as _0x1d3469}from'ckeditor5/src/core.js';import{Rect as _0x5c1baf,global as _0x383134,ResizeObserver as _0x5d5269,env as _0x560b59}from'ckeditor5/src/utils.js';import{LinesRepository as _0x43f3b6}from'./ui/linesrepository.js';const L=_0xedebdd(0x14d);export class PaginationRenderer extends _0x1d3469{[_0xedebdd(0x133)];[_0xedebdd(0x118)]=null;[_0xedebdd(0x13b)]=null;[_0xedebdd(0x145)];static get[_0xedebdd(0x119)](){const _0x1ba3b0=_0xedebdd;return _0x1ba3b0(0x132);}static get[_0xedebdd(0x134)](){return!0x0;}static get[_0xedebdd(0x14c)](){return!0x0;}[_0xedebdd(0x148)](){const _0x4d4fe9=_0xedebdd;this[_0x4d4fe9(0x108)]({'pageNumber':0x1}),this[_0x4d4fe9(0x133)]=new _0x43f3b6(this[_0x4d4fe9(0x131)]),this[_0x4d4fe9(0x118)]=null,this[_0x4d4fe9(0x13b)]=null,this[_0x4d4fe9(0x145)]=this[_0x4d4fe9(0x131)][_0x4d4fe9(0x152)][_0x4d4fe9(0x14e)](_0x4d4fe9(0x13c)),this[_0x4d4fe9(0x117)](_0x4d4fe9(0x142))['to'](this[_0x4d4fe9(0x131)][_0x4d4fe9(0x152)][_0x4d4fe9(0x14e)](_0x4d4fe9(0x14f))),this[_0x4d4fe9(0x131)]['ui'][_0x4d4fe9(0x156)](_0x4d4fe9(0x13e),()=>this[_0x4d4fe9(0x146)]()),this[_0x4d4fe9(0x154)](L),this['on'](_0x4d4fe9(0x14a),(_0x52b12b,_0x4fcec2,_0x31d176)=>{const _0x2e658f=_0x4d4fe9;_0x31d176||this[_0x2e658f(0x133)][_0x2e658f(0x141)](),this[_0x2e658f(0x154)](L,_0x31d176);});}[_0xedebdd(0x10b)](){const _0x1c0948=_0xedebdd;this[_0x1c0948(0x154)](L,!0x1),this[_0x1c0948(0x133)][_0x1c0948(0x10b)](),this[_0x1c0948(0x118)]=null,this[_0x1c0948(0x13b)]&&this[_0x1c0948(0x13b)][_0x1c0948(0x10b)]();}[_0xedebdd(0x120)](_0x4144a5){const _0x449fad=_0xedebdd;if(!this[_0x449fad(0x142)])return;const _0x260e1f=_0x4144a5>0x1?this[_0x449fad(0x128)](_0x4144a5-0x1):0x0;this[_0x449fad(0x118)][_0x449fad(0x124)]({'top':_0x260e1f-0xa,'left':this[_0x449fad(0x118)][_0x449fad(0x111)],'behavior':_0x560b59[_0x449fad(0x11f)]?_0x449fad(0x10c):_0x449fad(0x107)});}[_0xedebdd(0x157)](){const _0x10e50b=_0xedebdd,_0x5a7c6e=this[_0x10e50b(0x131)],_0x550968=this[_0x10e50b(0x158)]();_0x550968?(this[_0x10e50b(0x118)]&&_0x5a7c6e['ui'][_0x10e50b(0x11b)][_0x10e50b(0x12e)](this[_0x10e50b(0x118)],_0x10e50b(0x105)),this[_0x10e50b(0x118)]=function(_0x3f620e){const _0x16c87c=_0x10e50b;let _0x2c0cbf=_0x3f620e;do{_0x2c0cbf=_0x2c0cbf[_0x16c87c(0x12a)];const _0xbc9aa=_0x383134[_0x16c87c(0x106)][_0x16c87c(0x122)](_0x2c0cbf)[_0x16c87c(0x110)];if(_0x16c87c(0x12c)==_0xbc9aa||_0x16c87c(0x105)==_0xbc9aa)break;}while(_0x16c87c(0x147)!=_0x2c0cbf[_0x16c87c(0x150)]);return _0x2c0cbf;}(_0x550968),_0x5a7c6e['ui'][_0x10e50b(0x11b)][_0x10e50b(0x125)](this[_0x10e50b(0x118)],_0x10e50b(0x105),()=>{const _0x3b2eb7=_0x10e50b;this[_0x3b2eb7(0x12d)]();},{'usePassive':!0x0}),this[_0x10e50b(0x13b)]&&this[_0x10e50b(0x13b)][_0x10e50b(0x10b)](),this[_0x10e50b(0x13b)]=new _0x5d5269(this[_0x10e50b(0x118)],()=>{const _0x13b007=_0x10e50b;this[_0x13b007(0x12d)]();})):_0x5a7c6e['ui'][_0x10e50b(0x156)](_0x10e50b(0x11a),()=>this[_0x10e50b(0x157)]());}[_0xedebdd(0x146)](){const _0x448429=_0xedebdd,_0x112a11=this[_0x448429(0x131)];this[_0x448429(0x158)]()?(this[_0x448429(0x157)](),_0x112a11['ui'][_0x448429(0x11b)][_0x448429(0x125)](_0x383134[_0x448429(0x106)],_0x448429(0x113),()=>this[_0x448429(0x12d)]()),this[_0x448429(0x125)](this[_0x448429(0x145)],_0x448429(0x159),()=>this[_0x448429(0x12d)]())):_0x112a11['ui'][_0x448429(0x156)](_0x448429(0x11a),()=>this[_0x448429(0x146)]());}[_0xedebdd(0x158)](){const _0x552d82=_0xedebdd;for(const _0x12ae21 of this[_0x552d82(0x131)][_0x552d82(0x149)][_0x552d82(0x11b)][_0x552d82(0x153)][_0x552d82(0x112)]())if(_0x12ae21[_0x552d82(0x143)][_0x552d82(0x15a)][_0x552d82(0x126)](_0x12ae21))return _0x12ae21;return null;}[_0xedebdd(0x12d)](){const _0x5430c9=_0xedebdd;if(!this[_0x5430c9(0x142)])return;const _0x38a540=this[_0x5430c9(0x158)](),_0x15a1f1=this[_0x5430c9(0x145)][_0x5430c9(0x10e)];if(this[_0x5430c9(0x133)][_0x5430c9(0x141)](),!_0x38a540||0x1==_0x15a1f1[_0x5430c9(0x116)])return void(this[_0x5430c9(0x10a)]=0x1);const _0x52194d=new _0x5c1baf(_0x38a540)[_0x5430c9(0x123)](),_0x5473c3=new _0x5c1baf(this[_0x5430c9(0x118)])[_0x5430c9(0x123)](),_0x30b40c=_0x5473c3[_0x5430c9(0x13f)]+_0x5473c3[_0x5430c9(0x121)]/0x3;let _0x57252d=!0x1;const _0x178838=[];for(let _0x40c080=0x1;_0x40c080<_0x15a1f1[_0x5430c9(0x116)];_0x40c080++){const _0xc24526=this[_0x5430c9(0x128)](_0x40c080,_0x5473c3);if(!_0xc24526)continue;const _0x5b6497=_0x5473c3[_0x5430c9(0x13f)]+_0xc24526-this[_0x5430c9(0x118)][_0x5430c9(0x138)];_0x178838[_0x5430c9(0x137)]({'pageOffsetTop':_0x5b6497,'domRootRect':_0x52194d,'domScrollableRect':_0x5473c3,'pageNumber':_0x40c080}),_0x5b6497>_0x30b40c&&!_0x57252d&&(this[_0x5430c9(0x10a)]=_0x40c080,_0x57252d=!0x0);}this[_0x5430c9(0x115)](_0x178838),_0x57252d||(this[_0x5430c9(0x10a)]=_0x15a1f1[_0x5430c9(0x116)]);}[_0xedebdd(0x115)](_0x5f0fcf){const _0x12993e=_0xedebdd,{scrollX:_0x5e565f,scrollY:_0x25a5ea}=_0x383134[_0x12993e(0x106)];if(_0x5f0fcf[_0x12993e(0x116)]){for(const {domScrollableRect:_0x1dd413,pageOffsetTop:_0x27b191,domRootRect:_0xebe775,pageNumber:_0x4347b2}of _0x5f0fcf)_0x1dd413[_0x12993e(0x13f)]<_0x27b191&&_0x27b191<_0x1dd413[_0x12993e(0x114)]&&this[_0x12993e(0x133)][_0x12993e(0x151)](_0xebe775[_0x12993e(0x11e)]+_0x5e565f,_0x27b191+_0x25a5ea,_0xebe775[_0x12993e(0x136)],_0x4347b2+0x1);}}[_0xedebdd(0x128)](_0x49c028,_0x1848b9=null){const _0x35f6ba=_0xedebdd,_0x58456c=this[_0x35f6ba(0x145)][_0x35f6ba(0x10e)][_0x49c028][_0x35f6ba(0x10d)];return _0x58456c?(_0x1848b9||(_0x1848b9=new _0x5c1baf(this[_0x35f6ba(0x118)])[_0x35f6ba(0x123)]()),_0x58456c-_0x1848b9[_0x35f6ba(0x13f)]+this[_0x35f6ba(0x118)][_0x35f6ba(0x138)]):0x0;}[_0xedebdd(0x154)](_0xb827dc,_0xba6894=!0x0){const _0xbc0712=_0xedebdd,_0x4871e4=this[_0xbc0712(0x131)][_0xbc0712(0x149)][_0xbc0712(0x11b)];_0x4871e4[_0xbc0712(0x140)](_0x4690cd=>{const _0x1832fa=_0xbc0712;for(const _0x6246d4 of _0x4871e4[_0x1832fa(0x13d)][_0x1832fa(0x129)])_0xba6894?_0x4690cd[_0x1832fa(0x12f)](_0xb827dc,_0x6246d4):_0x4690cd[_0x1832fa(0x109)](_0xb827dc,_0x6246d4);});}}
|
package/src/paginationui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1275f6=_0x8850;(function(_0x3cc3ff,_0x4dfc6a){const _0x4de096=_0x8850,_0x54b850=_0x3cc3ff();while(!![]){try{const _0x2de96e=parseInt(_0x4de096(0xfc))/0x1*(parseInt(_0x4de096(0xed))/0x2)+parseInt(_0x4de096(0xd9))/0x3+parseInt(_0x4de096(0xda))/0x4+-parseInt(_0x4de096(0xd8))/0x5+-parseInt(_0x4de096(0xfa))/0x6+-parseInt(_0x4de096(0xe3))/0x7+parseInt(_0x4de096(0xe0))/0x8*(-parseInt(_0x4de096(0xf1))/0x9);if(_0x2de96e===_0x4dfc6a)break;else _0x54b850['push'](_0x54b850['shift']());}catch(_0x3c5447){_0x54b850['push'](_0x54b850['shift']());}}}(_0x1acb,0x8445e));import{Plugin as _0x58fed1}from'ckeditor5/src/core.js';import{ButtonView as _0x3b2479}from'ckeditor5/src/ui.js';import{IconArrowDown as _0x12f999,IconArrowUp as _0x260cdf}from'ckeditor5/src/icons.js';function _0x8850(_0x50f1db,_0x5cc871){const _0x1acb5a=_0x1acb();return _0x8850=function(_0x8850a4,_0x1a3610){_0x8850a4=_0x8850a4-0xd6;let _0xc6c49c=_0x1acb5a[_0x8850a4];return _0xc6c49c;},_0x8850(_0x50f1db,_0x5cc871);}import{PageNavigatorView as _0x2a6c54}from'./ui/pagenavigatorview.js';import{getTranslation as _0x2232d0}from'./utils/common-translations.js';function _0x1acb(){const _0x571133=['Go\x20to\x20previous\x20page','isOfficialPlugin','label','3314mfADCH','isPremiumPlugin','execute','Shift+PageDown','207LljMgW','listenTo','goToPreviousPage','totalPages','componentFactory','Go\x20to\x20next\x20page','icon','editor','PaginationUI','1567500DcVMmP','add','509fHedDm','pageNumber','nextPage','pageNavigation','Shift+PageUp','scrollToPage','PaginationEditing','1023320bChSNB','2889564WODgWb','1363812PdCNSA','isEnabled','navigation','previousPage','init','bind','321416DWdICw','keystroke','goToNextPage','1510453rWvAoM','plugins','get','locale','moveSelectionToPage','tooltip','pluginName'];_0x1acb=function(){return _0x571133;};return _0x1acb();}export class PaginationUI extends _0x58fed1{static get[_0x1275f6(0xe9)](){const _0x9376d3=_0x1275f6;return _0x9376d3(0xf9);}static get[_0x1275f6(0xeb)](){return!0x0;}static get[_0x1275f6(0xee)](){return!0x0;}[_0x1275f6(0xde)](){const _0x228e0c=_0x1275f6,_0x4ef76c=this[_0x228e0c(0xf8)],_0x59e518=_0x4ef76c[_0x228e0c(0xe4)][_0x228e0c(0xe5)](_0x228e0c(0xd7));_0x4ef76c['ui'][_0x228e0c(0xf5)][_0x228e0c(0xfb)](_0x228e0c(0xff),_0x56f7be=>{const _0x145bf3=_0x228e0c,_0x29f788=new _0x2a6c54(_0x56f7be);return _0x29f788[_0x145bf3(0xdf)](_0x145bf3(0xfd))['to'](_0x59e518),_0x29f788[_0x145bf3(0xdf)](_0x145bf3(0xf4))['to'](_0x59e518),_0x29f788[_0x145bf3(0xdf)](_0x145bf3(0xdb))['to'](_0x59e518),_0x29f788['on'](_0x145bf3(0xdc),(_0x33d8ae,_0x1807aa)=>{const _0x2249ea=_0x145bf3;_0x59e518[_0x2249ea(0xe7)](_0x1807aa),_0x59e518[_0x2249ea(0xd6)](_0x1807aa);}),_0x29f788;}),_0x4ef76c['ui'][_0x228e0c(0xf5)][_0x228e0c(0xfb)](_0x228e0c(0xfe),_0x36a667=>{const _0x3d0933=_0x228e0c,_0x257042=new _0x3b2479(_0x36a667);return _0x257042[_0x3d0933(0xdb)]=!0x0,_0x257042[_0x3d0933(0xec)]=_0x2232d0(_0x4ef76c[_0x3d0933(0xe6)],_0x3d0933(0xf6)),_0x257042[_0x3d0933(0xf7)]=_0x12f999,_0x257042[_0x3d0933(0xe8)]=!0x0,_0x257042[_0x3d0933(0xe1)]=_0x3d0933(0xf0),_0x257042[_0x3d0933(0xdf)](_0x3d0933(0xdb))['to'](_0x59e518),this[_0x3d0933(0xf2)](_0x257042,_0x3d0933(0xef),()=>{const _0x4bcf47=_0x3d0933;_0x59e518[_0x4bcf47(0xe2)]();}),_0x257042;}),_0x4ef76c['ui'][_0x228e0c(0xf5)][_0x228e0c(0xfb)](_0x228e0c(0xdd),_0x6a88d7=>{const _0x2a175f=_0x228e0c,_0x957181=new _0x3b2479(_0x6a88d7);return _0x957181[_0x2a175f(0xdb)]=!0x0,_0x957181[_0x2a175f(0xec)]=_0x2232d0(_0x4ef76c[_0x2a175f(0xe6)],_0x2a175f(0xea)),_0x957181[_0x2a175f(0xf7)]=_0x260cdf,_0x957181[_0x2a175f(0xe8)]=!0x0,_0x957181[_0x2a175f(0xe1)]=_0x2a175f(0x100),_0x957181[_0x2a175f(0xdf)](_0x2a175f(0xdb))['to'](_0x59e518),this[_0x2a175f(0xf2)](_0x957181,_0x2a175f(0xef),()=>{const _0x3a112b=_0x2a175f;_0x59e518[_0x3a112b(0xf3)]();}),_0x957181;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38cb40=_0x5493;function _0x5493(_0x72b79c,_0x5aaa4f){const _0x5d587c=_0x5d58();return _0x5493=function(_0x54935f,_0x146d31){_0x54935f=_0x54935f-0x142;let _0x17838e=_0x5d587c[_0x54935f];return _0x17838e;},_0x5493(_0x72b79c,_0x5aaa4f);}(function(_0x1bebca,_0x443ed8){const _0x1df45e=_0x5493,_0x3ad255=_0x1bebca();while(!![]){try{const _0xead7cc=-parseInt(_0x1df45e(0x150))/0x1*(-parseInt(_0x1df45e(0x149))/0x2)+-parseInt(_0x1df45e(0x157))/0x3*(-parseInt(_0x1df45e(0x148))/0x4)+-parseInt(_0x1df45e(0x14c))/0x5*(-parseInt(_0x1df45e(0x159))/0x6)+-parseInt(_0x1df45e(0x155))/0x7+-parseInt(_0x1df45e(0x14e))/0x8+parseInt(_0x1df45e(0x143))/0x9+-parseInt(_0x1df45e(0x14a))/0xa;if(_0xead7cc===_0x443ed8)break;else _0x3ad255['push'](_0x3ad255['shift']());}catch(_0x3cdea6){_0x3ad255['push'](_0x3ad255['shift']());}}}(_0x5d58,0xa0cdb));import{first as _0x2be73b}from'ckeditor5/src/utils.js';import{LineView as _0x1f7652}from'./lineview.js';function _0x5d58(){const _0x336d25=['values','95664VZHGmi','clear','51089NiQHFp','setViewCollection','_viewCollection','size','body','7507955hBQKaj','remove','57AbDGJD','add','32772sqvbQw','view','cleanLines','destroy','isVisible','_visibleLines','7023816mUbiOb','has','showLine','delete','set','161732tzDAhW','10yGGlYf','3230980QpbsMb','_hiddenLines','240KHLcJV'];_0x5d58=function(){return _0x336d25;};return _0x5d58();}export class LinesRepository{[_0x38cb40(0x152)];[_0x38cb40(0x142)]=new Set();[_0x38cb40(0x14b)]=new Set();constructor(_0x1458e3){const _0x2ea1af=_0x38cb40;this[_0x2ea1af(0x152)]=_0x1458e3['ui'][_0x2ea1af(0x15a)][_0x2ea1af(0x154)];}[_0x38cb40(0x15c)](){const _0x48126e=_0x38cb40;for(const _0x191815 of this[_0x48126e(0x14b)])_0x191815[_0x48126e(0x15c)]();}[_0x38cb40(0x15b)](){const _0x1099f0=_0x38cb40;for(const _0x3a6685 of this[_0x1099f0(0x142)])_0x3a6685[_0x1099f0(0x15d)]=!0x1,this[_0x1099f0(0x14b)][_0x1099f0(0x158)](_0x3a6685);this[_0x1099f0(0x142)][_0x1099f0(0x14f)]();}[_0x38cb40(0x145)](_0xf572e,_0x57f10b,_0x2fa46f,_0xfd82b4){const _0x322397=_0x38cb40;let _0x26f965;this[_0x322397(0x14b)][_0x322397(0x153)]?(_0x26f965=_0x2be73b(this[_0x322397(0x14b)][_0x322397(0x14d)]()),this[_0x322397(0x14b)][_0x322397(0x146)](_0x26f965)):_0x26f965=new _0x1f7652(),_0x26f965[_0x322397(0x147)]({'pageNumber':_0xfd82b4,'left':_0xf572e,'top':_0x57f10b,'width':_0x2fa46f}),_0x26f965[_0x322397(0x15d)]=!0x0,this[_0x322397(0x152)][_0x322397(0x144)](_0x26f965)||this[_0x322397(0x152)][_0x322397(0x158)](_0x26f965),this[_0x322397(0x142)][_0x322397(0x158)](_0x26f965);}[_0x38cb40(0x151)](_0x147b84){const _0x3db100=_0x38cb40;for(const _0x3bfcf8 of[...this[_0x3db100(0x142)],...this[_0x3db100(0x14b)]])this[_0x3db100(0x152)][_0x3db100(0x144)](_0x3bfcf8)&&this[_0x3db100(0x152)][_0x3db100(0x156)](_0x3bfcf8);this[_0x3db100(0x152)]=_0x147b84;}}
|
package/src/ui/lineview.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x3a21(){const _0x1212e6=['1615080irOwqq','107349yYHDiO','724Othmzg','div','710xPVVcJ','95208qpCSGw','1574jChVaH','pageNumber','138ImoZaH','setTemplate','2095qBkQQU','isVisible','3767202tvKBXx','set','26635kwySov','bindTemplate','left','276vPOczM','top','ck-pagination-view-line','ck-hidden','width'];_0x3a21=function(){return _0x1212e6;};return _0x3a21();}(function(_0xfaa7a,_0x3a9b57){const _0x11761d=_0xdb5c,_0x4f666b=_0xfaa7a();while(!![]){try{const _0x3a7090=parseInt(_0x11761d(0xc7))/0x1*(-parseInt(_0x11761d(0xbc))/0x2)+-parseInt(_0x11761d(0xc6))/0x3+-parseInt(_0x11761d(0xc3))/0x4*(-parseInt(_0x11761d(0xb5))/0x5)+parseInt(_0x11761d(0xc9))/0x6*(-parseInt(_0x11761d(0xb9))/0x7)+parseInt(_0x11761d(0xc1))/0x8+-parseInt(_0x11761d(0xb7))/0x9+-parseInt(_0x11761d(0xc5))/0xa*(-parseInt(_0x11761d(0xc2))/0xb);if(_0x3a7090===_0x3a9b57)break;else _0x4f666b['push'](_0x4f666b['shift']());}catch(_0x232f64){_0x4f666b['push'](_0x4f666b['shift']());}}}(_0x3a21,0x34a14));import{View as _0x57ea03}from'ckeditor5/src/ui.js';function _0xdb5c(_0x41d6c8,_0x51a27d){const _0x3a2160=_0x3a21();return _0xdb5c=function(_0xdb5c15,_0x2fd293){_0xdb5c15=_0xdb5c15-0xb5;let _0xc42bd6=_0x3a2160[_0xdb5c15];return _0xc42bd6;},_0xdb5c(_0x41d6c8,_0x51a27d);}import{toUnit as _0x17b5d8}from'ckeditor5/src/utils.js';import'../../theme/line.css';const z=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x17b5d8('px');export class LineView extends _0x57ea03{constructor(){const _0x3607bc=_0xdb5c;super();const _0x34d4e6=this[_0x3607bc(0xba)];this[_0x3607bc(0xb8)]({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this[_0x3607bc(0xca)]({'tag':_0x3607bc(0xc4),'attributes':{'data-page-number':_0x34d4e6['to'](_0x3607bc(0xc8)),'class':['ck',_0x3607bc(0xbe),_0x34d4e6['if'](_0x3607bc(0xb6),_0x3607bc(0xbf),_0x2cbd63=>!_0x2cbd63)],'style':{'left':_0x34d4e6['to'](_0x3607bc(0xbb),_0x47af4c=>z(_0x47af4c)),'top':_0x34d4e6['to'](_0x3607bc(0xbd),_0x567d9f=>z(_0x567d9f)),'width':_0x34d4e6['to'](_0x3607bc(0xc0),_0x10e7d6=>z(_0x10e7d6))}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46350f=_0x5f53;(function(_0x479c78,_0x23c250){const _0x1e47ca=_0x5f53,_0x31c08e=_0x479c78();while(!![]){try{const _0x1fe29d=-parseInt(_0x1e47ca(0xec))/0x1*(parseInt(_0x1e47ca(0xcf))/0x2)+-parseInt(_0x1e47ca(0xf9))/0x3+-parseInt(_0x1e47ca(0xf2))/0x4+parseInt(_0x1e47ca(0xf3))/0x5+parseInt(_0x1e47ca(0xee))/0x6*(-parseInt(_0x1e47ca(0xd5))/0x7)+parseInt(_0x1e47ca(0xd3))/0x8+parseInt(_0x1e47ca(0xe9))/0x9;if(_0x1fe29d===_0x23c250)break;else _0x31c08e['push'](_0x31c08e['shift']());}catch(_0x23df1b){_0x31c08e['push'](_0x31c08e['shift']());}}}(_0x3724,0xc0ab3));function _0x3724(){const _0x553015=['firstChild','1764936hqJeFl','ArrowDown','checkValidity','numeric','div','setTemplate','2IUfUkU','navigation','fire','stopPropagation','6561336fRFMZI','ariaLabel','4669VAXUkn','select','isEnabled','pageNumberView','ck-page-navigator','totalPages','blur','element','keydown','ArrowUp','preventDefault','isNaN','bind','value','bindTemplate','key','max','enter','set','keyCode','32906187qIAXmV','pageNumber','focus','349379NFdAnA','valueAsNumber','11634KDZhgU','ck-disabled','Current\x20page\x20number\x20(from\x201\x20to\x20%0)','listenTo','6063028ZTIRdE','297610JhToKo','span','render','change:pageNumber','isReadOnly'];_0x3724=function(){return _0x553015;};return _0x3724();}import{View as _0x5ba90c,InputNumberView as _0x1affd5}from'ckeditor5/src/ui.js';function _0x5f53(_0x394263,_0x4f0355){const _0x3724cb=_0x3724();return _0x5f53=function(_0x5f5307,_0x3b3c19){_0x5f5307=_0x5f5307-0xca;let _0x2deedc=_0x3724cb[_0x5f5307];return _0x2deedc;},_0x5f53(_0x394263,_0x4f0355);}import{keyCodes as _0xe6d4f7}from'ckeditor5/src/utils.js';import'../../theme/pagenavigator.css';import{getTranslation as _0x1caa05}from'../utils/common-translations.js';export class PageNavigatorView extends _0x5ba90c{[_0x46350f(0xd8)];constructor(_0x45a1ce){const _0x335f85=_0x46350f;super(_0x45a1ce);const _0x637f02=this[_0x335f85(0xe3)];this[_0x335f85(0xe7)]({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this[_0x335f85(0xd8)]=new _0x1affd5(_0x45a1ce,{'min':0x1,'step':0x1}),this[_0x335f85(0xd8)][_0x335f85(0xe7)]({'inputMode':_0x335f85(0xcc),'tabIndex':-0x1}),this[_0x335f85(0xd8)][_0x335f85(0xe1)](_0x335f85(0xd4))['to'](this,_0x335f85(0xda),_0xf59f7=>_0x1caa05(_0x45a1ce,_0x335f85(0xf0),_0xf59f7)),this[_0x335f85(0xd8)][_0x335f85(0xe1)](_0x335f85(0xe5))['to'](this,_0x335f85(0xda)),this[_0x335f85(0xd8)][_0x335f85(0xe1)](_0x335f85(0xf7))['to'](this,_0x335f85(0xd7),_0x529cbd=>!_0x529cbd),this[_0x335f85(0xce)]({'tag':_0x335f85(0xcd),'attributes':{'class':['ck',_0x335f85(0xd9),_0x637f02['if'](_0x335f85(0xd7),_0x335f85(0xef),_0x4d5dd6=>!_0x4d5dd6)]},'children':[this[_0x335f85(0xd8)],{'tag':_0x335f85(0xf4),'children':[{'text':_0x637f02['to'](_0x335f85(0xda))}]}]});}[_0x46350f(0xf5)](){const _0x310dac=_0x46350f;super[_0x310dac(0xf5)]();const _0xe8c8ce=this[_0x310dac(0xd8)][_0x310dac(0xdc)],_0x29f96c=_0x517d87=>{const _0x5c0c9f=_0x310dac;this[_0x5c0c9f(0xd8)][_0x5c0c9f(0xdc)][_0x5c0c9f(0xe2)]=String(_0x517d87);};_0x29f96c(this[_0x310dac(0xea)]),this['on'](_0x310dac(0xf6),(_0x1cc689,_0x326407,_0x50839d)=>{_0x29f96c(_0x50839d);}),this[_0x310dac(0xf1)](_0xe8c8ce,_0x310dac(0xdd),(_0x1671ee,_0x7097aa)=>{const _0x9308eb=_0x310dac;if(_0x9308eb(0xde)===_0x7097aa[_0x9308eb(0xe4)]||_0x9308eb(0xca)===_0x7097aa[_0x9308eb(0xe4)])return void _0x7097aa[_0x9308eb(0xd2)]();if(_0x7097aa[_0x9308eb(0xe8)]!==_0xe6d4f7[_0x9308eb(0xe6)])return;_0x7097aa[_0x9308eb(0xdf)]();const _0x58844a=_0xe8c8ce[_0x9308eb(0xed)];Number[_0x9308eb(0xe0)](_0x58844a)?_0xe8c8ce[_0x9308eb(0xe2)]=String(this[_0x9308eb(0xea)]):(_0xe8c8ce[_0x9308eb(0xcb)]()?this[_0x9308eb(0xea)]=_0x58844a:_0x58844a>this[_0x9308eb(0xda)]?(this[_0x9308eb(0xea)]=this[_0x9308eb(0xda)],_0xe8c8ce[_0x9308eb(0xe2)]=String(this[_0x9308eb(0xda)])):(this[_0x9308eb(0xea)]=0x1,_0xe8c8ce[_0x9308eb(0xe2)]='1'),this[_0x9308eb(0xd1)](_0x9308eb(0xd0),this[_0x9308eb(0xea)]));}),this[_0x310dac(0xf1)](_0xe8c8ce,_0x310dac(0xdb),()=>{const _0x27fcfd=_0x310dac;_0xe8c8ce[_0x27fcfd(0xe2)]=String(this[_0x27fcfd(0xea)]);}),this[_0x310dac(0xf1)](_0xe8c8ce,_0x310dac(0xeb),()=>{const _0x1b1dd1=_0x310dac;this[_0x1b1dd1(0xd8)][_0x1b1dd1(0xd6)]();});}[_0x46350f(0xeb)](){const _0x2d0f3f=_0x46350f;this[_0x2d0f3f(0xdc)][_0x2d0f3f(0xf8)][_0x2d0f3f(0xeb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x22959c,_0x5275b2,..._0xc7d0e){const t=_0x22959c['t'];switch(_0x5275b2){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0xc7d0e);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x5275b2;}}
|
package/theme/pagination.css
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
* (especially those with soft line breaks), this may cause the last paragraph to be
|
|
67
67
|
* unexpectedly pushed to the next page.
|
|
68
68
|
*
|
|
69
|
-
* See more: https://github.com/
|
|
69
|
+
* See more: https://github.com/ckeditor/ckeditor5-commercial/issues/7316
|
|
70
70
|
*/
|
|
71
71
|
& p:first-child {
|
|
72
72
|
padding-top: 0;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
* Identical CSS rule is also present in the page break CSS files so keep them in sync to make sure that the issue is fixed both in the
|
|
80
80
|
* editor preview and in the printed content (used by the export document plugins).
|
|
81
81
|
*
|
|
82
|
-
* See more: https://github.com/
|
|
82
|
+
* See more: https://github.com/ckeditor/ckeditor5-commercial/issues/6289.
|
|
83
83
|
*/
|
|
84
84
|
& *:has(+ .page-break) {
|
|
85
85
|
margin-bottom: 0;
|
|
@@ -130,27 +130,6 @@
|
|
|
130
130
|
overflow: hidden;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
/*
|
|
134
|
-
* Sometimes Chrome incorrectly calculates the height of the last table row and some
|
|
135
|
-
* of the content overlaps the paragraph that is placed directly after the table. It affects
|
|
136
|
-
* the column split mode pagination calculation which causes mismatch between the print mode and
|
|
137
|
-
* the preview mode.
|
|
138
|
-
*
|
|
139
|
-
* This issue happens only if:
|
|
140
|
-
*
|
|
141
|
-
* * The table is inside a figure element.
|
|
142
|
-
* * The table has `display: table` style set.
|
|
143
|
-
* * The block element is placed directly after the table.
|
|
144
|
-
*
|
|
145
|
-
* The print mode is not affected, the issue happens only in the column split mode.
|
|
146
|
-
*
|
|
147
|
-
* See: https://github.com/cksource/ckeditor5-commercial/issues/6707
|
|
148
|
-
*/
|
|
149
|
-
& figure.table:not(.layout-table):has(> table) {
|
|
150
|
-
display: block;
|
|
151
|
-
width: fit-content;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
133
|
/**
|
|
155
134
|
* Make ToC page fragmentable.
|
|
156
135
|
*/
|