@ckeditor/ckeditor5-pagination 40.2.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/pagination.js +2 -2
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/bg.po +1 -1
  6. package/lang/translations/bn.po +1 -1
  7. package/lang/translations/ca.po +1 -1
  8. package/lang/translations/cs.po +1 -1
  9. package/lang/translations/da.po +1 -1
  10. package/lang/translations/de.po +1 -1
  11. package/lang/translations/el.po +1 -1
  12. package/lang/translations/en-au.po +1 -1
  13. package/lang/translations/en.po +1 -1
  14. package/lang/translations/es.po +1 -1
  15. package/lang/translations/et.po +1 -1
  16. package/lang/translations/fi.po +1 -1
  17. package/lang/translations/fr.po +1 -1
  18. package/lang/translations/gl.po +1 -1
  19. package/lang/translations/he.po +1 -1
  20. package/lang/translations/hi.po +1 -1
  21. package/lang/translations/hr.po +1 -1
  22. package/lang/translations/hu.po +1 -1
  23. package/lang/translations/id.po +1 -1
  24. package/lang/translations/it.po +1 -1
  25. package/lang/translations/ja.po +1 -1
  26. package/lang/translations/jv.po +1 -1
  27. package/lang/translations/ko.po +1 -1
  28. package/lang/translations/lt.po +1 -1
  29. package/lang/translations/lv.po +1 -1
  30. package/lang/translations/ms.po +1 -1
  31. package/lang/translations/nl.po +1 -1
  32. package/lang/translations/no.po +1 -1
  33. package/lang/translations/pl.po +1 -1
  34. package/lang/translations/pt-br.po +1 -1
  35. package/lang/translations/pt.po +1 -1
  36. package/lang/translations/ro.po +1 -1
  37. package/lang/translations/ru.po +1 -1
  38. package/lang/translations/sk.po +1 -1
  39. package/lang/translations/sr-latn.po +1 -1
  40. package/lang/translations/sr.po +1 -1
  41. package/lang/translations/sv.po +1 -1
  42. package/lang/translations/th.po +1 -1
  43. package/lang/translations/tr.po +1 -1
  44. package/lang/translations/ug.po +1 -1
  45. package/lang/translations/uk.po +1 -1
  46. package/lang/translations/ur.po +1 -1
  47. package/lang/translations/vi.po +1 -1
  48. package/lang/translations/zh-cn.po +1 -1
  49. package/lang/translations/zh.po +1 -1
  50. package/package.json +4 -3
  51. package/src/augmentation.d.ts +2 -2
  52. package/src/augmentation.js +1 -1
  53. package/src/index.d.ts +3 -3
  54. package/src/index.js +2 -2
  55. package/src/pagination.d.ts +4 -4
  56. package/src/pagination.js +2 -2
  57. package/src/paginationediting.d.ts +4 -4
  58. package/src/paginationediting.js +2 -2
  59. package/src/paginationlookup.d.ts +3 -3
  60. package/src/paginationlookup.js +2 -2
  61. package/src/paginationrenderer.d.ts +2 -2
  62. package/src/paginationrenderer.js +2 -2
  63. package/src/paginationui.d.ts +2 -2
  64. package/src/paginationui.js +2 -2
  65. package/src/ui/linesrepository.d.ts +2 -2
  66. package/src/ui/linesrepository.js +2 -2
  67. package/src/ui/lineview.d.ts +2 -2
  68. package/src/ui/lineview.js +2 -2
  69. package/src/ui/pagenavigatorview.d.ts +3 -3
  70. package/src/ui/pagenavigatorview.js +2 -2
  71. package/theme/line.css +1 -1
  72. package/theme/pagenavigator.css +1 -1
  73. package/theme/pagination.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x55fb=['width','pageNumber','div','bindTemplate','top','isVisible','ck-hidden','setTemplate','ck-pagination-view-line','left','set'];(function(_0x48fed9,_0x55fb37){const _0x21ff59=function(_0x1e0893){while(--_0x1e0893){_0x48fed9['push'](_0x48fed9['shift']());}};_0x21ff59(++_0x55fb37);}(_0x55fb,0x196));const _0x21ff=function(_0x48fed9,_0x55fb37){_0x48fed9=_0x48fed9-0x0;let _0x21ff59=_0x55fb[_0x48fed9];return _0x21ff59;};import{View as _0x5d116f}from'ckeditor5/src/ui';import{toUnit as _0x4da989}from'ckeditor5/src/utils';import'../../theme/line.css';const D=_0x4da989('px');export default class C extends _0x5d116f{constructor(){super();const _0x95eebb=this[_0x21ff('0x4')];this[_0x21ff('0x0')]({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this[_0x21ff('0x8')]({'tag':_0x21ff('0x3'),'attributes':{'data-page-number':_0x95eebb['to'](_0x21ff('0x2')),'class':['ck',_0x21ff('0x9'),_0x95eebb['if'](_0x21ff('0x6'),_0x21ff('0x7'),_0xb0103f=>!_0xb0103f)],'style':{'left':_0x95eebb['to'](_0x21ff('0xa'),_0x44389c=>D(_0x44389c)),'top':_0x95eebb['to'](_0x21ff('0x5'),_0x3fb635=>D(_0x3fb635)),'width':_0x95eebb['to'](_0x21ff('0x1'),_0x11902e=>D(_0x11902e))}}});}}
23
+ const _0x4a7e=['pageNumber','left','isVisible','width','ck-pagination-view-line','set','div','setTemplate','ck-hidden'];(function(_0x985899,_0x4a7ec4){const _0x337af7=function(_0x33d33d){while(--_0x33d33d){_0x985899['push'](_0x985899['shift']());}};_0x337af7(++_0x4a7ec4);}(_0x4a7e,0x8c));const _0x337a=function(_0x985899,_0x4a7ec4){_0x985899=_0x985899-0x0;let _0x337af7=_0x4a7e[_0x985899];return _0x337af7;};import{View as _0x2c80e3}from'ckeditor5/src/ui.js';import{toUnit as _0x52028b}from'ckeditor5/src/utils.js';import'../../theme/line.css';const D=_0x52028b('px');export default class C extends _0x2c80e3{constructor(){super();const _0x2ce314=this['bindTemplate'];this[_0x337a('0x0')]({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this[_0x337a('0x2')]({'tag':_0x337a('0x1'),'attributes':{'data-page-number':_0x2ce314['to'](_0x337a('0x4')),'class':['ck',_0x337a('0x8'),_0x2ce314['if'](_0x337a('0x6'),_0x337a('0x3'),_0x20c705=>!_0x20c705)],'style':{'left':_0x2ce314['to'](_0x337a('0x5'),_0x41ee1=>D(_0x41ee1)),'top':_0x2ce314['to']('top',_0x1857e2=>D(_0x1857e2)),'width':_0x2ce314['to'](_0x337a('0x7'),_0x41319e=>D(_0x41319e))}}});}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module pagination/ui/pagenavigatorview
7
7
  */
8
- import { View, InputNumberView } from 'ckeditor5/src/ui';
9
- import { type Locale } from 'ckeditor5/src/utils';
8
+ import { View, InputNumberView } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../theme/pagenavigator.css';
11
11
  /**
12
12
  * The page navigation UI element.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x5389=['keyCode','firstChild','bindTemplate','div','setTemplate','ck-disabled','isEnabled','element','totalPages','set','bind','valueAsNumber','change:pageNumber','numeric','blur','listenTo','fire','focus','value','ck-page-navigator','max','pageNumberView','pageNumber','checkValidity','isNaN'];(function(_0x18d50e,_0x5389a2){const _0x1e3126=function(_0x174e4b){while(--_0x174e4b){_0x18d50e['push'](_0x18d50e['shift']());}};_0x1e3126(++_0x5389a2);}(_0x5389,0xcc));const _0x1e31=function(_0x18d50e,_0x5389a2){_0x18d50e=_0x18d50e-0x0;let _0x1e3126=_0x5389[_0x18d50e];return _0x1e3126;};import{View as _0x5336f1,InputNumberView as _0x4a843b}from'ckeditor5/src/ui';import{keyCodes as _0x1709de}from'ckeditor5/src/utils';import'../../theme/pagenavigator.css';export default class U extends _0x5336f1{constructor(_0x237fea){super(_0x237fea);const _0x17c632=this[_0x1e31('0x17')];this[_0x1e31('0x5')]({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this[_0x1e31('0x11')]=new _0x4a843b(_0x237fea,{'min':0x1,'step':0x1}),this[_0x1e31('0x11')][_0x1e31('0x5')]({'inputMode':_0x1e31('0x9')}),this[_0x1e31('0x11')][_0x1e31('0x6')](_0x1e31('0x10'))['to'](this,_0x1e31('0x4')),this[_0x1e31('0x11')][_0x1e31('0x6')]('isReadOnly')['to'](this,_0x1e31('0x2'),_0x1e3355=>!_0x1e3355),this[_0x1e31('0x0')]({'tag':_0x1e31('0x18'),'attributes':{'class':['ck',_0x1e31('0xf'),_0x17c632['if'](_0x1e31('0x2'),_0x1e31('0x1'),_0x1ec83f=>!_0x1ec83f)]},'children':[this[_0x1e31('0x11')],{'tag':'span','children':[{'text':_0x17c632['to'](_0x1e31('0x4'))}]}]});}['render'](){super['render']();const _0x5f1a6c=this['pageNumberView']['element'],_0x20a3f2=_0x100e2b=>{this[_0x1e31('0x11')]['element'][_0x1e31('0xe')]=String(_0x100e2b);};_0x20a3f2(this[_0x1e31('0x12')]),this['on'](_0x1e31('0x8'),(_0x2a3560,_0x2bf106,_0x292106)=>{_0x20a3f2(_0x292106);}),this['listenTo'](_0x5f1a6c,'keydown',(_0x2b507d,_0x34b58b)=>{if(_0x34b58b[_0x1e31('0x15')]!==_0x1709de['enter'])return;const _0xae7067=_0x5f1a6c[_0x1e31('0x7')];Number[_0x1e31('0x14')](_0xae7067)?_0x5f1a6c[_0x1e31('0xe')]=String(this[_0x1e31('0x12')]):(_0x5f1a6c[_0x1e31('0x13')]()?this[_0x1e31('0x12')]=_0xae7067:_0xae7067>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5f1a6c['value']=String(this[_0x1e31('0x4')])):(this[_0x1e31('0x12')]=0x1,_0x5f1a6c[_0x1e31('0xe')]='1'),this[_0x1e31('0xc')]('navigation',this[_0x1e31('0x12')]));}),this[_0x1e31('0xb')](_0x5f1a6c,_0x1e31('0xa'),()=>{_0x5f1a6c[_0x1e31('0xe')]=String(this['pageNumber']);}),this[_0x1e31('0xb')](_0x5f1a6c,_0x1e31('0xd'),()=>{this[_0x1e31('0x11')]['select']();});}[_0x1e31('0xd')](){this[_0x1e31('0x3')][_0x1e31('0x16')][_0x1e31('0xd')]();}}
23
+ const _0x9f79=['fire','keydown','totalPages','enter','div','navigation','focus','max','isEnabled','firstChild','isReadOnly','pageNumber','checkValidity','ck-disabled','pageNumberView','listenTo','blur','change:pageNumber','value','render','isNaN','numeric','valueAsNumber','select','bind','element'];(function(_0x3393b6,_0x9f7939){const _0x27bc43=function(_0x42bafe){while(--_0x42bafe){_0x3393b6['push'](_0x3393b6['shift']());}};_0x27bc43(++_0x9f7939);}(_0x9f79,0x13c));const _0x27bc=function(_0x3393b6,_0x9f7939){_0x3393b6=_0x3393b6-0x0;let _0x27bc43=_0x9f79[_0x3393b6];return _0x27bc43;};import{View as _0x1c85bc,InputNumberView as _0x276087}from'ckeditor5/src/ui.js';import{keyCodes as _0x2878bb}from'ckeditor5/src/utils.js';import'../../theme/pagenavigator.css';export default class j extends _0x1c85bc{constructor(_0x11dd4b){super(_0x11dd4b);const _0x34f6cd=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x276087(_0x11dd4b,{'min':0x1,'step':0x1}),this[_0x27bc('0xa')]['set']({'inputMode':_0x27bc('0x11')}),this[_0x27bc('0xa')]['bind'](_0x27bc('0x3'))['to'](this,_0x27bc('0x18')),this['pageNumberView'][_0x27bc('0x14')](_0x27bc('0x6'))['to'](this,_0x27bc('0x4'),_0x2f7d71=>!_0x2f7d71),this['setTemplate']({'tag':_0x27bc('0x0'),'attributes':{'class':['ck','ck-page-navigator',_0x34f6cd['if'](_0x27bc('0x4'),_0x27bc('0x9'),_0x203410=>!_0x203410)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x34f6cd['to'](_0x27bc('0x18'))}]}]});}[_0x27bc('0xf')](){super['render']();const _0x564a81=this[_0x27bc('0xa')]['element'],_0x576db9=_0x5bafa6=>{this[_0x27bc('0xa')][_0x27bc('0x15')][_0x27bc('0xe')]=String(_0x5bafa6);};_0x576db9(this[_0x27bc('0x7')]),this['on'](_0x27bc('0xd'),(_0xdf8b,_0x4fdc5c,_0x5af11c)=>{_0x576db9(_0x5af11c);}),this[_0x27bc('0xb')](_0x564a81,_0x27bc('0x17'),(_0x28978d,_0x25d925)=>{if(_0x25d925['keyCode']!==_0x2878bb[_0x27bc('0x19')])return;const _0x59a824=_0x564a81[_0x27bc('0x12')];Number[_0x27bc('0x10')](_0x59a824)?_0x564a81['value']=String(this['pageNumber']):(_0x564a81[_0x27bc('0x8')]()?this[_0x27bc('0x7')]=_0x59a824:_0x59a824>this[_0x27bc('0x18')]?(this[_0x27bc('0x7')]=this[_0x27bc('0x18')],_0x564a81['value']=String(this[_0x27bc('0x18')])):(this[_0x27bc('0x7')]=0x1,_0x564a81[_0x27bc('0xe')]='1'),this[_0x27bc('0x16')](_0x27bc('0x1'),this[_0x27bc('0x7')]));}),this[_0x27bc('0xb')](_0x564a81,_0x27bc('0xc'),()=>{_0x564a81[_0x27bc('0xe')]=String(this['pageNumber']);}),this['listenTo'](_0x564a81,_0x27bc('0x2'),()=>{this[_0x27bc('0xa')][_0x27bc('0x13')]();});}['focus'](){this[_0x27bc('0x15')][_0x27bc('0x5')][_0x27bc('0x2')]();}}
package/theme/line.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9