@ckeditor/ckeditor5-pagination 46.0.1-alpha.5 → 46.0.1-alpha.7
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 _0x29adcc=_0x4c36;function _0x4c36(_0x576ab1,_0x467136){const _0xb70a85=_0xb70a();return _0x4c36=function(_0x4c3662,_0x562170){_0x4c3662=_0x4c3662-0x106;let _0x4a3cec=_0xb70a85[_0x4c3662];return _0x4a3cec;},_0x4c36(_0x576ab1,_0x467136);}(function(_0x5b81dc,_0x5df61e){const _0x1bfd1e=_0x4c36,_0x2895f7=_0x5b81dc();while(!![]){try{const _0x1c25b5=-parseInt(_0x1bfd1e(0x10a))/0x1*(parseInt(_0x1bfd1e(0x120))/0x2)+-parseInt(_0x1bfd1e(0x13b))/0x3+parseInt(_0x1bfd1e(0x12e))/0x4*(parseInt(_0x1bfd1e(0x136))/0x5)+-parseInt(_0x1bfd1e(0x12b))/0x6*(parseInt(_0x1bfd1e(0x109))/0x7)+-parseInt(_0x1bfd1e(0x124))/0x8*(parseInt(_0x1bfd1e(0x129))/0x9)+parseInt(_0x1bfd1e(0x111))/0xa*(parseInt(_0x1bfd1e(0x156))/0xb)+parseInt(_0x1bfd1e(0x121))/0xc;if(_0x1c25b5===_0x5df61e)break;else _0x2895f7['push'](_0x2895f7['shift']());}catch(_0xb2d290){_0x2895f7['push'](_0x2895f7['shift']());}}}(_0xb70a,0xa91e0));import{Plugin as _0x3ff8a1}from'ckeditor5/src/core.js';import{Rect as _0x353419,global as _0x8038dd,ResizeObserver as _0x432a9b,env as _0x226881}from'ckeditor5/src/utils.js';import{LinesRepository as _0x46450b}from'./ui/linesrepository.js';function _0xb70a(){const _0x5bc233=['body','isPremiumPlugin','window','_updatePageBreakLines','init','get','PaginationEditing','_onUiReady','left','plugins','966458WIVtKf','6090408QxAusD','listenTo','_getAttachedDomRoot','2276408yWsaYf','isEnabled','scroll','height','tagName','9wmKXVg','pageNumber','3084WCXfyY','once','push','292qxCpqe','stopListening','resize','update','scrollTop','parentElement','editor','pluginName','52935HIgVxP','scrollTo','_resizeObserver','excludeScrollbarsAndBorders','ready','1121949BpSewl','ck-pagination_enabled','ownerDocument','_scrollableEditingRootDomAncestor','overflowY','BODY','destroy','values','offset','width','isMotionReduced','smooth','pageBreaks','linesRepository','roots','_getPageBreakLineOffset','contains','isOfficialPlugin','scrollLeft','addClass','document','view','removeClass','auto','scrollToPage','getComputedStyle','PaginationLookup','2794uHItfP','change:isEnabled','change','_toggleEditingRootsClass','length','editing','_renderPageBreakLines','showLine','bottom','6986zgREEX','1jQhleY','change:pageBreaks','bind','cleanLines','setupScrollableAncestor','_paginationLookupPlugin','instant','42010IWtHxz','PaginationRenderer','top','set','domRoots'];_0xb70a=function(){return _0x5bc233;};return _0xb70a();}const L=_0x29adcc(0x13c);export class PaginationRenderer extends _0x3ff8a1{[_0x29adcc(0x148)];[_0x29adcc(0x13e)]=null;[_0x29adcc(0x138)]=null;[_0x29adcc(0x10f)];static get[_0x29adcc(0x135)](){const _0x20e4c1=_0x29adcc;return _0x20e4c1(0x112);}static get[_0x29adcc(0x14c)](){return!0x0;}static get[_0x29adcc(0x117)](){return!0x0;}[_0x29adcc(0x11a)](){const _0x463991=_0x29adcc;this[_0x463991(0x114)]({'pageNumber':0x1}),this[_0x463991(0x148)]=new _0x46450b(this[_0x463991(0x134)]),this[_0x463991(0x13e)]=null,this[_0x463991(0x138)]=null,this[_0x463991(0x10f)]=this[_0x463991(0x134)][_0x463991(0x11f)][_0x463991(0x11b)](_0x463991(0x155)),this[_0x463991(0x10c)](_0x463991(0x125))['to'](this[_0x463991(0x134)][_0x463991(0x11f)][_0x463991(0x11b)](_0x463991(0x11c))),this[_0x463991(0x134)]['ui'][_0x463991(0x12c)](_0x463991(0x13a),()=>this[_0x463991(0x11d)]()),this[_0x463991(0x159)](L),this['on'](_0x463991(0x157),(_0x29304f,_0x3d0c8b,_0x2494fe)=>{const _0xa6cb8c=_0x463991;_0x2494fe||this[_0xa6cb8c(0x148)][_0xa6cb8c(0x10d)](),this[_0xa6cb8c(0x159)](L,_0x2494fe);});}[_0x29adcc(0x141)](){const _0x40bf67=_0x29adcc;this[_0x40bf67(0x159)](L,!0x1),this[_0x40bf67(0x148)][_0x40bf67(0x141)](),this[_0x40bf67(0x13e)]=null,this[_0x40bf67(0x138)]&&this[_0x40bf67(0x138)][_0x40bf67(0x141)]();}[_0x29adcc(0x153)](_0x327c5f){const _0x5e51de=_0x29adcc;if(!this[_0x5e51de(0x125)])return;const _0x3721ca=_0x327c5f>0x1?this[_0x5e51de(0x14a)](_0x327c5f-0x1):0x0;this[_0x5e51de(0x13e)][_0x5e51de(0x137)]({'top':_0x3721ca-0xa,'left':this[_0x5e51de(0x13e)][_0x5e51de(0x14d)],'behavior':_0x226881[_0x5e51de(0x145)]?_0x5e51de(0x110):_0x5e51de(0x146)});}[_0x29adcc(0x10e)](){const _0x311049=_0x29adcc,_0x1e8e61=this[_0x311049(0x134)],_0x5ed658=this[_0x311049(0x123)]();_0x5ed658?(this[_0x311049(0x13e)]&&_0x1e8e61['ui'][_0x311049(0x150)][_0x311049(0x12f)](this[_0x311049(0x13e)],_0x311049(0x126)),this[_0x311049(0x13e)]=function(_0x5688d5){const _0x4acf0c=_0x311049;let _0x2ed473=_0x5688d5;do{_0x2ed473=_0x2ed473[_0x4acf0c(0x133)];const _0x5ab955=_0x8038dd[_0x4acf0c(0x118)][_0x4acf0c(0x154)](_0x2ed473)[_0x4acf0c(0x13f)];if(_0x4acf0c(0x152)==_0x5ab955||_0x4acf0c(0x126)==_0x5ab955)break;}while(_0x4acf0c(0x140)!=_0x2ed473[_0x4acf0c(0x128)]);return _0x2ed473;}(_0x5ed658),_0x1e8e61['ui'][_0x311049(0x150)][_0x311049(0x122)](this[_0x311049(0x13e)],_0x311049(0x126),()=>{const _0x28ab3b=_0x311049;this[_0x28ab3b(0x119)]();},{'usePassive':!0x0}),this[_0x311049(0x138)]&&this[_0x311049(0x138)][_0x311049(0x141)](),this[_0x311049(0x138)]=new _0x432a9b(this[_0x311049(0x13e)],()=>{const _0x315463=_0x311049;this[_0x315463(0x119)]();})):_0x1e8e61['ui'][_0x311049(0x12c)](_0x311049(0x131),()=>this[_0x311049(0x10e)]());}[_0x29adcc(0x11d)](){const _0x37c05e=_0x29adcc,_0x1a541e=this[_0x37c05e(0x134)];this[_0x37c05e(0x123)]()?(this[_0x37c05e(0x10e)](),_0x1a541e['ui'][_0x37c05e(0x150)][_0x37c05e(0x122)](_0x8038dd[_0x37c05e(0x118)],_0x37c05e(0x130),()=>this[_0x37c05e(0x119)]()),this[_0x37c05e(0x122)](this[_0x37c05e(0x10f)],_0x37c05e(0x10b),()=>this[_0x37c05e(0x119)]())):_0x1a541e['ui'][_0x37c05e(0x12c)](_0x37c05e(0x131),()=>this[_0x37c05e(0x11d)]());}[_0x29adcc(0x123)](){const _0x534fd0=_0x29adcc;for(const _0x22ddd0 of this[_0x534fd0(0x134)][_0x534fd0(0x15b)][_0x534fd0(0x150)][_0x534fd0(0x115)][_0x534fd0(0x142)]())if(_0x22ddd0[_0x534fd0(0x13d)][_0x534fd0(0x116)][_0x534fd0(0x14b)](_0x22ddd0))return _0x22ddd0;return null;}[_0x29adcc(0x119)](){const _0x5d4e83=_0x29adcc;if(!this[_0x5d4e83(0x125)])return;const _0x5c41a0=this[_0x5d4e83(0x123)](),_0x2f6fd7=this[_0x5d4e83(0x10f)][_0x5d4e83(0x147)];if(this[_0x5d4e83(0x148)][_0x5d4e83(0x10d)](),!_0x5c41a0||0x1==_0x2f6fd7[_0x5d4e83(0x15a)])return void(this[_0x5d4e83(0x12a)]=0x1);const _0x1302da=new _0x353419(_0x5c41a0)[_0x5d4e83(0x139)](),_0x8f3e2d=new _0x353419(this[_0x5d4e83(0x13e)])[_0x5d4e83(0x139)](),_0x35ac02=_0x8f3e2d[_0x5d4e83(0x113)]+_0x8f3e2d[_0x5d4e83(0x127)]/0x3;let _0x179895=!0x1;const _0x1be18e=[];for(let _0x1c2a6c=0x1;_0x1c2a6c<_0x2f6fd7[_0x5d4e83(0x15a)];_0x1c2a6c++){const _0x11c967=this[_0x5d4e83(0x14a)](_0x1c2a6c,_0x8f3e2d);if(!_0x11c967)continue;const _0x3aa51a=_0x8f3e2d[_0x5d4e83(0x113)]+_0x11c967-this[_0x5d4e83(0x13e)][_0x5d4e83(0x132)];_0x1be18e[_0x5d4e83(0x12d)]({'pageOffsetTop':_0x3aa51a,'domRootRect':_0x1302da,'domScrollableRect':_0x8f3e2d,'pageNumber':_0x1c2a6c}),_0x3aa51a>_0x35ac02&&!_0x179895&&(this[_0x5d4e83(0x12a)]=_0x1c2a6c,_0x179895=!0x0);}this[_0x5d4e83(0x106)](_0x1be18e),_0x179895||(this[_0x5d4e83(0x12a)]=_0x2f6fd7[_0x5d4e83(0x15a)]);}[_0x29adcc(0x106)](_0x49ba41){const _0x61c71c=_0x29adcc,{scrollX:_0x19547a,scrollY:_0x12bb2c}=_0x8038dd[_0x61c71c(0x118)];if(_0x49ba41[_0x61c71c(0x15a)]){for(const {domScrollableRect:_0x1404c1,pageOffsetTop:_0x330ab5,domRootRect:_0x358ebf,pageNumber:_0x190d40}of _0x49ba41)_0x1404c1[_0x61c71c(0x113)]<_0x330ab5&&_0x330ab5<_0x1404c1[_0x61c71c(0x108)]&&this[_0x61c71c(0x148)][_0x61c71c(0x107)](_0x358ebf[_0x61c71c(0x11e)]+_0x19547a,_0x330ab5+_0x12bb2c,_0x358ebf[_0x61c71c(0x144)],_0x190d40+0x1);}}[_0x29adcc(0x14a)](_0x47a68d,_0x229413=null){const _0x2ec88c=_0x29adcc,_0x460388=this[_0x2ec88c(0x10f)][_0x2ec88c(0x147)][_0x47a68d][_0x2ec88c(0x143)];return _0x460388?(_0x229413||(_0x229413=new _0x353419(this[_0x2ec88c(0x13e)])[_0x2ec88c(0x139)]()),_0x460388-_0x229413[_0x2ec88c(0x113)]+this[_0x2ec88c(0x13e)][_0x2ec88c(0x132)]):0x0;}[_0x29adcc(0x159)](_0x2e7c53,_0x169385=!0x0){const _0x39ec58=_0x29adcc,_0x23bd96=this[_0x39ec58(0x134)][_0x39ec58(0x15b)][_0x39ec58(0x150)];_0x23bd96[_0x39ec58(0x158)](_0x24cda3=>{const _0x4acd5c=_0x39ec58;for(const _0x5c14ef of _0x23bd96[_0x4acd5c(0x14f)][_0x4acd5c(0x149)])_0x169385?_0x24cda3[_0x4acd5c(0x14e)](_0x2e7c53,_0x5c14ef):_0x24cda3[_0x4acd5c(0x151)](_0x2e7c53,_0x5c14ef);});}}
|
package/src/paginationui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23e339=_0x528d;(function(_0x4febba,_0x1e54af){const _0x5086d7=_0x528d,_0x5b82e0=_0x4febba();while(!![]){try{const _0x54b238=-parseInt(_0x5086d7(0x1e6))/0x1+parseInt(_0x5086d7(0x1d6))/0x2+parseInt(_0x5086d7(0x1e7))/0x3*(-parseInt(_0x5086d7(0x1e4))/0x4)+-parseInt(_0x5086d7(0x1f1))/0x5*(parseInt(_0x5086d7(0x1dc))/0x6)+-parseInt(_0x5086d7(0x1d7))/0x7+parseInt(_0x5086d7(0x1d8))/0x8*(parseInt(_0x5086d7(0x1de))/0x9)+-parseInt(_0x5086d7(0x1ea))/0xa*(-parseInt(_0x5086d7(0x1d3))/0xb);if(_0x54b238===_0x1e54af)break;else _0x5b82e0['push'](_0x5b82e0['shift']());}catch(_0x40d02b){_0x5b82e0['push'](_0x5b82e0['shift']());}}}(_0x35d1,0x6fd8b));import{Plugin as _0x19fef2}from'ckeditor5/src/core.js';function _0x35d1(){const _0x3b490b=['nextPage','Go\x20to\x20previous\x20page','scrollToPage','Shift+PageDown','pluginName','PaginationEditing','icon','pageNumber','isPremiumPlugin','4499FyFbKE','Go\x20to\x20next\x20page','tooltip','1779008mSoQDZ','1124249bIhiXI','1144KcALbi','pageNavigation','previousPage','execute','5460abZNXn','get','288whjoiF','totalPages','goToPreviousPage','keystroke','isEnabled','label','4GTvevE','componentFactory','498927FpWjvp','2198982DTwOSC','navigation','bind','43190OwkuJy','listenTo','PaginationUI','init','moveSelectionToPage','isOfficialPlugin','editor','4450EFeCxL','locale','plugins','Shift+PageUp','add','goToNextPage'];_0x35d1=function(){return _0x3b490b;};return _0x35d1();}import{ButtonView as _0x207a84}from'ckeditor5/src/ui.js';import{IconArrowDown as _0x5bae25,IconArrowUp as _0x26b167}from'ckeditor5/src/icons.js';import{PageNavigatorView as _0x34058e}from'./ui/pagenavigatorview.js';function _0x528d(_0x564ebd,_0x21e14b){const _0x35d106=_0x35d1();return _0x528d=function(_0x528db1,_0x4dcf7){_0x528db1=_0x528db1-0x1d2;let _0x51e871=_0x35d106[_0x528db1];return _0x51e871;},_0x528d(_0x564ebd,_0x21e14b);}import{getTranslation as _0x47c8ab}from'./utils/common-translations.js';export class PaginationUI extends _0x19fef2{static get[_0x23e339(0x1fb)](){const _0x3d3e59=_0x23e339;return _0x3d3e59(0x1ec);}static get[_0x23e339(0x1ef)](){return!0x0;}static get[_0x23e339(0x1d2)](){return!0x0;}[_0x23e339(0x1ed)](){const _0x3b5432=_0x23e339,_0x43c4c2=this[_0x3b5432(0x1f0)],_0x35dc5b=_0x43c4c2[_0x3b5432(0x1f3)][_0x3b5432(0x1dd)](_0x3b5432(0x1fc));_0x43c4c2['ui'][_0x3b5432(0x1e5)][_0x3b5432(0x1f5)](_0x3b5432(0x1d9),_0x2e79a3=>{const _0x5b4d34=_0x3b5432,_0x32007c=new _0x34058e(_0x2e79a3);return _0x32007c[_0x5b4d34(0x1e9)](_0x5b4d34(0x1fe))['to'](_0x35dc5b),_0x32007c[_0x5b4d34(0x1e9)](_0x5b4d34(0x1df))['to'](_0x35dc5b),_0x32007c[_0x5b4d34(0x1e9)](_0x5b4d34(0x1e2))['to'](_0x35dc5b),_0x32007c['on'](_0x5b4d34(0x1e8),(_0x40f8e5,_0x1f60c6)=>{const _0x3a5de1=_0x5b4d34;_0x35dc5b[_0x3a5de1(0x1ee)](_0x1f60c6),_0x35dc5b[_0x3a5de1(0x1f9)](_0x1f60c6);}),_0x32007c;}),_0x43c4c2['ui'][_0x3b5432(0x1e5)][_0x3b5432(0x1f5)](_0x3b5432(0x1f7),_0x3bbc6b=>{const _0x599b12=_0x3b5432,_0xfd32e1=new _0x207a84(_0x3bbc6b);return _0xfd32e1[_0x599b12(0x1e2)]=!0x0,_0xfd32e1[_0x599b12(0x1e3)]=_0x47c8ab(_0x43c4c2[_0x599b12(0x1f2)],_0x599b12(0x1d4)),_0xfd32e1[_0x599b12(0x1fd)]=_0x5bae25,_0xfd32e1[_0x599b12(0x1d5)]=!0x0,_0xfd32e1[_0x599b12(0x1e1)]=_0x599b12(0x1fa),_0xfd32e1[_0x599b12(0x1e9)](_0x599b12(0x1e2))['to'](_0x35dc5b),this[_0x599b12(0x1eb)](_0xfd32e1,_0x599b12(0x1db),()=>{const _0x4fb944=_0x599b12;_0x35dc5b[_0x4fb944(0x1f6)]();}),_0xfd32e1;}),_0x43c4c2['ui'][_0x3b5432(0x1e5)][_0x3b5432(0x1f5)](_0x3b5432(0x1da),_0x9a79c=>{const _0x21f444=_0x3b5432,_0x438f68=new _0x207a84(_0x9a79c);return _0x438f68[_0x21f444(0x1e2)]=!0x0,_0x438f68[_0x21f444(0x1e3)]=_0x47c8ab(_0x43c4c2[_0x21f444(0x1f2)],_0x21f444(0x1f8)),_0x438f68[_0x21f444(0x1fd)]=_0x26b167,_0x438f68[_0x21f444(0x1d5)]=!0x0,_0x438f68[_0x21f444(0x1e1)]=_0x21f444(0x1f4),_0x438f68[_0x21f444(0x1e9)](_0x21f444(0x1e2))['to'](_0x35dc5b),this[_0x21f444(0x1eb)](_0x438f68,_0x21f444(0x1db),()=>{const _0x54b0ac=_0x21f444;_0x35dc5b[_0x54b0ac(0x1e0)]();}),_0x438f68;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x33a24e=_0x2d9e;(function(_0x340ae3,_0x40ffb8){const _0x178c07=_0x2d9e,_0x1fff5e=_0x340ae3();while(!![]){try{const _0x4dd5c8=-parseInt(_0x178c07(0x158))/0x1*(parseInt(_0x178c07(0x167))/0x2)+parseInt(_0x178c07(0x163))/0x3*(parseInt(_0x178c07(0x16b))/0x4)+parseInt(_0x178c07(0x15c))/0x5*(parseInt(_0x178c07(0x166))/0x6)+-parseInt(_0x178c07(0x172))/0x7*(-parseInt(_0x178c07(0x170))/0x8)+-parseInt(_0x178c07(0x160))/0x9*(parseInt(_0x178c07(0x159))/0xa)+parseInt(_0x178c07(0x15a))/0xb+parseInt(_0x178c07(0x165))/0xc*(-parseInt(_0x178c07(0x16c))/0xd);if(_0x4dd5c8===_0x40ffb8)break;else _0x1fff5e['push'](_0x1fff5e['shift']());}catch(_0x26075d){_0x1fff5e['push'](_0x1fff5e['shift']());}}}(_0x10c2,0x843c2));import{first as _0x58d88d}from'ckeditor5/src/utils.js';import{LineView as _0x5a2678}from'./lineview.js';export class LinesRepository{[_0x33a24e(0x15d)];[_0x33a24e(0x15b)]=new Set();[_0x33a24e(0x175)]=new Set();constructor(_0x18fc54){const _0x4d58ab=_0x33a24e;this[_0x4d58ab(0x15d)]=_0x18fc54['ui'][_0x4d58ab(0x162)][_0x4d58ab(0x176)];}[_0x33a24e(0x16e)](){const _0x3a50d0=_0x33a24e;for(const _0x5751d5 of this[_0x3a50d0(0x175)])_0x5751d5[_0x3a50d0(0x16e)]();}[_0x33a24e(0x16f)](){const _0x4bbea2=_0x33a24e;for(const _0x48a43b of this[_0x4bbea2(0x15b)])_0x48a43b[_0x4bbea2(0x161)]=!0x1,this[_0x4bbea2(0x175)][_0x4bbea2(0x15e)](_0x48a43b);this[_0x4bbea2(0x15b)][_0x4bbea2(0x173)]();}[_0x33a24e(0x169)](_0x437fa3,_0x478b82,_0x2fee5b,_0x4d6fc3){const _0x1b5a05=_0x33a24e;let _0x4a841d;this[_0x1b5a05(0x175)][_0x1b5a05(0x174)]?(_0x4a841d=_0x58d88d(this[_0x1b5a05(0x175)][_0x1b5a05(0x171)]()),this[_0x1b5a05(0x175)][_0x1b5a05(0x168)](_0x4a841d)):_0x4a841d=new _0x5a2678(),_0x4a841d[_0x1b5a05(0x16a)]({'pageNumber':_0x4d6fc3,'left':_0x437fa3,'top':_0x478b82,'width':_0x2fee5b}),_0x4a841d[_0x1b5a05(0x161)]=!0x0,this[_0x1b5a05(0x15d)][_0x1b5a05(0x164)](_0x4a841d)||this[_0x1b5a05(0x15d)][_0x1b5a05(0x15e)](_0x4a841d),this[_0x1b5a05(0x15b)][_0x1b5a05(0x15e)](_0x4a841d);}[_0x33a24e(0x16d)](_0x211e4b){const _0x516032=_0x33a24e;for(const _0x2c8f38 of[...this[_0x516032(0x15b)],...this[_0x516032(0x175)]])this[_0x516032(0x15d)][_0x516032(0x164)](_0x2c8f38)&&this[_0x516032(0x15d)][_0x516032(0x15f)](_0x2c8f38);this[_0x516032(0x15d)]=_0x211e4b;}}function _0x2d9e(_0x290ea2,_0x4b51e7){const _0x10c2ca=_0x10c2();return _0x2d9e=function(_0x2d9eb2,_0x107b9c){_0x2d9eb2=_0x2d9eb2-0x158;let _0x566f91=_0x10c2ca[_0x2d9eb2];return _0x566f91;},_0x2d9e(_0x290ea2,_0x4b51e7);}function _0x10c2(){const _0x236b31=['set','44HHlPFd','11178037IHyKYH','setViewCollection','destroy','cleanLines','650984bwIgPt','values','7aqVDsc','clear','size','_hiddenLines','body','2VFFYhO','380cINifp','2673132fNMIHs','_visibleLines','195LqUFpl','_viewCollection','add','remove','15849GlJpPJ','isVisible','view','96153AmrTFY','has','12ZgbdZI','143562ZCMHQs','141698oSJPSD','delete','showLine'];_0x10c2=function(){return _0x236b31;};return _0x10c2();}
|
package/src/ui/lineview.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
24
|
-
|
|
23
|
+
(function(_0x1738c3,_0x5cc276){const _0x2c7359=_0x2456,_0x2e6661=_0x1738c3();while(!![]){try{const _0x32b4ec=parseInt(_0x2c7359(0xc5))/0x1+parseInt(_0x2c7359(0xc7))/0x2*(parseInt(_0x2c7359(0xd0))/0x3)+parseInt(_0x2c7359(0xd9))/0x4*(-parseInt(_0x2c7359(0xd4))/0x5)+-parseInt(_0x2c7359(0xd8))/0x6*(parseInt(_0x2c7359(0xd6))/0x7)+-parseInt(_0x2c7359(0xce))/0x8*(-parseInt(_0x2c7359(0xd5))/0x9)+-parseInt(_0x2c7359(0xc8))/0xa+parseInt(_0x2c7359(0xd7))/0xb;if(_0x32b4ec===_0x5cc276)break;else _0x2e6661['push'](_0x2e6661['shift']());}catch(_0x1b9611){_0x2e6661['push'](_0x2e6661['shift']());}}}(_0x4534,0x6a2af));function _0x4534(){const _0x1c0fab=['setTemplate','4cdNAAm','7480720QqOBeE','isVisible','ck-hidden','bindTemplate','width','set','12328SjNwFM','pageNumber','1227594iBonSI','top','div','left','170yeRMJB','3258lsRWPc','1132789Weqxcx','1792208xSuyib','6OBhShJ','49564lWnWyc','ck-pagination-view-line','226890SQQwQl'];_0x4534=function(){return _0x1c0fab;};return _0x4534();}function _0x2456(_0x3db31b,_0x4bc155){const _0x4534bf=_0x4534();return _0x2456=function(_0x24561b,_0x1bd2cf){_0x24561b=_0x24561b-0xc5;let _0x299901=_0x4534bf[_0x24561b];return _0x299901;},_0x2456(_0x3db31b,_0x4bc155);}import{View as _0x55d994}from'ckeditor5/src/ui.js';import{toUnit as _0x52276f}from'ckeditor5/src/utils.js';import'../../theme/line.css';const z=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52276f('px');export class LineView extends _0x55d994{constructor(){const _0x2da849=_0x2456;super();const _0x4cff8c=this[_0x2da849(0xcb)];this[_0x2da849(0xcd)]({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this[_0x2da849(0xc6)]({'tag':_0x2da849(0xd2),'attributes':{'data-page-number':_0x4cff8c['to'](_0x2da849(0xcf)),'class':['ck',_0x2da849(0xda),_0x4cff8c['if'](_0x2da849(0xc9),_0x2da849(0xca),_0x541fbe=>!_0x541fbe)],'style':{'left':_0x4cff8c['to'](_0x2da849(0xd3),_0x30e399=>z(_0x30e399)),'top':_0x4cff8c['to'](_0x2da849(0xd1),_0x438e85=>z(_0x438e85)),'width':_0x4cff8c['to'](_0x2da849(0xcc),_0x1e0017=>z(_0x1e0017))}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35a41b=_0x1d8b;(function(_0xc0a990,_0x5a214c){const _0x51797e=_0x1d8b,_0x3d122e=_0xc0a990();while(!![]){try{const _0x333e2c=parseInt(_0x51797e(0xe5))/0x1*(-parseInt(_0x51797e(0x111))/0x2)+parseInt(_0x51797e(0x10a))/0x3+-parseInt(_0x51797e(0xf7))/0x4*(-parseInt(_0x51797e(0xfa))/0x5)+parseInt(_0x51797e(0xf1))/0x6*(parseInt(_0x51797e(0xf0))/0x7)+-parseInt(_0x51797e(0xff))/0x8+parseInt(_0x51797e(0x109))/0x9+-parseInt(_0x51797e(0x10b))/0xa;if(_0x333e2c===_0x5a214c)break;else _0x3d122e['push'](_0x3d122e['shift']());}catch(_0x3ae76a){_0x3d122e['push'](_0x3d122e['shift']());}}}(_0x488e,0xd4b9c));function _0x488e(){const _0x4a3316=['preventDefault','div','keyCode','value','change:pageNumber','6840001McRtni','6HgObbo','select','setTemplate','max','set','ArrowUp','61528nOARhW','focus','pageNumberView','535cDVYoC','fire','firstChild','element','isEnabled','4597128mGZzzJ','isNaN','render','checkValidity','bindTemplate','bind','totalPages','key','listenTo','navigation','6308640kTvPGj','1358325DRpJus','9198250ylOXMV','ArrowDown','pageNumber','enter','isReadOnly','keydown','2ssTkSJ','ariaLabel','ck-disabled','valueAsNumber','Current\x20page\x20number\x20(from\x201\x20to\x20%0)','1410962gtozVL','blur','ck-page-navigator','stopPropagation','span','numeric'];_0x488e=function(){return _0x4a3316;};return _0x488e();}function _0x1d8b(_0x999bfd,_0x2c43b9){const _0x488e1d=_0x488e();return _0x1d8b=function(_0x1d8bbf,_0x25c451){_0x1d8bbf=_0x1d8bbf-0xe3;let _0x2b758d=_0x488e1d[_0x1d8bbf];return _0x2b758d;},_0x1d8b(_0x999bfd,_0x2c43b9);}import{View as _0x3c5961,InputNumberView as _0x378b1b}from'ckeditor5/src/ui.js';import{keyCodes as _0x58e05f}from'ckeditor5/src/utils.js';import'../../theme/pagenavigator.css';import{getTranslation as _0xb230fe}from'../utils/common-translations.js';export class PageNavigatorView extends _0x3c5961{[_0x35a41b(0xf9)];constructor(_0x2a4cc9){const _0x5129e9=_0x35a41b;super(_0x2a4cc9);const _0x8b116a=this[_0x5129e9(0x103)];this[_0x5129e9(0xf5)]({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this[_0x5129e9(0xf9)]=new _0x378b1b(_0x2a4cc9,{'min':0x1,'step':0x1}),this[_0x5129e9(0xf9)][_0x5129e9(0xf5)]({'inputMode':_0x5129e9(0xea),'tabIndex':-0x1}),this[_0x5129e9(0xf9)][_0x5129e9(0x104)](_0x5129e9(0x112))['to'](this,_0x5129e9(0x105),_0x1c3fb0=>_0xb230fe(_0x2a4cc9,_0x5129e9(0xe4),_0x1c3fb0)),this[_0x5129e9(0xf9)][_0x5129e9(0x104)](_0x5129e9(0xf4))['to'](this,_0x5129e9(0x105)),this[_0x5129e9(0xf9)][_0x5129e9(0x104)](_0x5129e9(0x10f))['to'](this,_0x5129e9(0xfe),_0xe7b4b7=>!_0xe7b4b7),this[_0x5129e9(0xf3)]({'tag':_0x5129e9(0xec),'attributes':{'class':['ck',_0x5129e9(0xe7),_0x8b116a['if'](_0x5129e9(0xfe),_0x5129e9(0x113),_0x5c9c47=>!_0x5c9c47)]},'children':[this[_0x5129e9(0xf9)],{'tag':_0x5129e9(0xe9),'children':[{'text':_0x8b116a['to'](_0x5129e9(0x105))}]}]});}[_0x35a41b(0x101)](){const _0x38106f=_0x35a41b;super[_0x38106f(0x101)]();const _0x398f3d=this[_0x38106f(0xf9)][_0x38106f(0xfd)],_0x2ed2e3=_0x2e062a=>{const _0x2cd840=_0x38106f;this[_0x2cd840(0xf9)][_0x2cd840(0xfd)][_0x2cd840(0xee)]=String(_0x2e062a);};_0x2ed2e3(this[_0x38106f(0x10d)]),this['on'](_0x38106f(0xef),(_0x54b4ac,_0x5994b6,_0x30f34)=>{_0x2ed2e3(_0x30f34);}),this[_0x38106f(0x107)](_0x398f3d,_0x38106f(0x110),(_0x558055,_0x298e62)=>{const _0x5846ed=_0x38106f;if(_0x5846ed(0xf6)===_0x298e62[_0x5846ed(0x106)]||_0x5846ed(0x10c)===_0x298e62[_0x5846ed(0x106)])return void _0x298e62[_0x5846ed(0xe8)]();if(_0x298e62[_0x5846ed(0xed)]!==_0x58e05f[_0x5846ed(0x10e)])return;_0x298e62[_0x5846ed(0xeb)]();const _0x215c60=_0x398f3d[_0x5846ed(0xe3)];Number[_0x5846ed(0x100)](_0x215c60)?_0x398f3d[_0x5846ed(0xee)]=String(this[_0x5846ed(0x10d)]):(_0x398f3d[_0x5846ed(0x102)]()?this[_0x5846ed(0x10d)]=_0x215c60:_0x215c60>this[_0x5846ed(0x105)]?(this[_0x5846ed(0x10d)]=this[_0x5846ed(0x105)],_0x398f3d[_0x5846ed(0xee)]=String(this[_0x5846ed(0x105)])):(this[_0x5846ed(0x10d)]=0x1,_0x398f3d[_0x5846ed(0xee)]='1'),this[_0x5846ed(0xfb)](_0x5846ed(0x108),this[_0x5846ed(0x10d)]));}),this[_0x38106f(0x107)](_0x398f3d,_0x38106f(0xe6),()=>{const _0x2e5aef=_0x38106f;_0x398f3d[_0x2e5aef(0xee)]=String(this[_0x2e5aef(0x10d)]);}),this[_0x38106f(0x107)](_0x398f3d,_0x38106f(0xf8),()=>{const _0x542be7=_0x38106f;this[_0x542be7(0xf9)][_0x542be7(0xf2)]();});}[_0x35a41b(0xf8)](){const _0x1edecd=_0x35a41b;this[_0x1edecd(0xfd)][_0x1edecd(0xfc)][_0x1edecd(0xf8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x30c64f,_0xc1f1b,..._0x3a2775){const t=_0x30c64f['t'];switch(_0xc1f1b){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)',..._0x3a2775);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 _0xc1f1b;}}
|
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
|
*/
|