@ckeditor/ckeditor5-pagination 36.0.1 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/pagination.js +1 -1
  2. package/lang/translations/ar.po +1 -1
  3. package/lang/translations/bg.po +1 -1
  4. package/lang/translations/bn.po +1 -1
  5. package/lang/translations/ca.po +1 -1
  6. package/lang/translations/cs.po +1 -1
  7. package/lang/translations/da.po +1 -1
  8. package/lang/translations/de.po +1 -1
  9. package/lang/translations/el.po +1 -1
  10. package/lang/translations/en-au.po +1 -1
  11. package/lang/translations/en.po +1 -1
  12. package/lang/translations/es.po +1 -1
  13. package/lang/translations/et.po +1 -1
  14. package/lang/translations/fi.po +1 -1
  15. package/lang/translations/fr.po +1 -1
  16. package/lang/translations/gl.po +1 -1
  17. package/lang/translations/he.po +1 -1
  18. package/lang/translations/hi.po +1 -1
  19. package/lang/translations/hr.po +1 -1
  20. package/lang/translations/hu.po +1 -1
  21. package/lang/translations/id.po +1 -1
  22. package/lang/translations/it.po +1 -1
  23. package/lang/translations/ja.po +1 -1
  24. package/lang/translations/jv.po +1 -1
  25. package/lang/translations/ko.po +1 -1
  26. package/lang/translations/lt.po +1 -1
  27. package/lang/translations/lv.po +1 -1
  28. package/lang/translations/ms.po +1 -1
  29. package/lang/translations/nl.po +1 -1
  30. package/lang/translations/no.po +1 -1
  31. package/lang/translations/pl.po +1 -1
  32. package/lang/translations/pt-br.po +1 -1
  33. package/lang/translations/pt.po +1 -1
  34. package/lang/translations/ro.po +1 -1
  35. package/lang/translations/ru.po +1 -1
  36. package/lang/translations/sk.po +1 -1
  37. package/lang/translations/sr-latn.po +1 -1
  38. package/lang/translations/sr.po +1 -1
  39. package/lang/translations/sv.po +1 -1
  40. package/lang/translations/th.po +1 -1
  41. package/lang/translations/tr.po +1 -1
  42. package/lang/translations/uk.po +1 -1
  43. package/lang/translations/ur.po +1 -1
  44. package/lang/translations/vi.po +1 -1
  45. package/lang/translations/zh-cn.po +1 -1
  46. package/lang/translations/zh.po +1 -1
  47. package/package.json +10 -45
  48. package/src/augmentation.d.ts +19 -0
  49. package/src/augmentation.js +23 -0
  50. package/src/index.d.ts +9 -0
  51. package/src/index.js +1 -1
  52. package/src/pagination.d.ts +141 -0
  53. package/src/pagination.js +1 -1
  54. package/src/paginationediting.d.ts +52 -0
  55. package/src/paginationediting.js +1 -1
  56. package/src/paginationlookup.d.ts +58 -0
  57. package/src/paginationlookup.js +1 -1
  58. package/src/paginationrenderer.d.ts +40 -0
  59. package/src/paginationrenderer.js +1 -1
  60. package/src/paginationui.d.ts +25 -0
  61. package/src/paginationui.js +1 -1
  62. package/src/ui/linesrepository.d.ts +34 -0
  63. package/src/ui/linesrepository.js +1 -1
  64. package/src/ui/lineview.d.ts +53 -0
  65. package/src/ui/lineview.js +1 -1
  66. package/src/ui/pagenavigatorview.d.ts +61 -0
  67. package/src/ui/pagenavigatorview.js +1 -1
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module pagination/ui/pagenavigatorview
7
+ */
8
+ import { View, InputNumberView } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import '../../theme/pagenavigator.css';
11
+ /**
12
+ * The page navigation UI element.
13
+ */
14
+ export default class PageNavigatorView extends View {
15
+ /**
16
+ * The current page number.
17
+ *
18
+ * @observable
19
+ * @default 1
20
+ */
21
+ pageNumber: number;
22
+ /**
23
+ * The total page count.
24
+ *
25
+ * @observable
26
+ * @default 1
27
+ */
28
+ totalPages: number;
29
+ /**
30
+ * Controls whether the component is enabled.
31
+ *
32
+ * @observable
33
+ * @default true
34
+ */
35
+ isEnabled: boolean;
36
+ /**
37
+ * An instance of the input number view to type a new page number.
38
+ */
39
+ pageNumberView: InputNumberView;
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ constructor(locale: Locale);
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ render(): void;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ focus(): void;
52
+ }
53
+ /**
54
+ * An event fired after {@link module:pagination/ui/pagenavigatorview~PageNavigatorView#pageNumberView} value is updated.
55
+ *
56
+ * @eventName ~PageNavigatorView#navigation
57
+ */
58
+ export type PaginationNavigationEvent = {
59
+ name: 'navigation';
60
+ args: [pageNumber: number];
61
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28ee=['firstChild','blur','bindTemplate','valueAsNumber','totalPages','checkValidity','pageNumber','listenTo','element','value','isReadOnly','keydown','navigation','render','focus','isNaN','numeric','change:pageNumber','isEnabled','select','set','ck-page-navigator','bind','pageNumberView','max'];(function(_0x11d1b9,_0x28eecd){const _0x199daa=function(_0xf7091){while(--_0xf7091){_0x11d1b9['push'](_0x11d1b9['shift']());}};_0x199daa(++_0x28eecd);}(_0x28ee,0xae));const _0x199d=function(_0x11d1b9,_0x28eecd){_0x11d1b9=_0x11d1b9-0x0;let _0x199daa=_0x28ee[_0x11d1b9];return _0x199daa;};import{View as _0x5324ac,InputNumberView as _0x210ff6}from'ckeditor5/src/ui';import{keyCodes as _0x2c52b6}from'ckeditor5/src/utils';import'../../theme/pagenavigator.css';export default class E extends _0x5324ac{constructor(_0x3562cd){super(_0x3562cd);const _0xcb8626=this[_0x199d('0x3')];this[_0x199d('0x15')]({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this[_0x199d('0x18')]=new _0x210ff6(_0x3562cd,{'min':0x1,'step':0x1}),this[_0x199d('0x18')]['set']({'inputMode':_0x199d('0x11')}),this[_0x199d('0x18')][_0x199d('0x17')](_0x199d('0x0'))['to'](this,'totalPages'),this['pageNumberView'][_0x199d('0x17')](_0x199d('0xb'))['to'](this,_0x199d('0x13'),_0x3bda47=>!_0x3bda47),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x199d('0x16'),_0xcb8626['if'](_0x199d('0x13'),'ck-disabled',_0x2023c6=>!_0x2023c6)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0xcb8626['to'](_0x199d('0x5'))}]}]});}[_0x199d('0xe')](){super[_0x199d('0xe')]();const _0xfd2fa2=this[_0x199d('0x18')][_0x199d('0x9')],_0x4bd260=_0x50849d=>{this[_0x199d('0x18')][_0x199d('0x9')][_0x199d('0xa')]=_0x50849d;};_0x4bd260(this[_0x199d('0x7')]),this['on'](_0x199d('0x12'),(_0x2ec67b,_0x66314a,_0x49f0ed)=>{_0x4bd260(_0x49f0ed);}),this[_0x199d('0x8')](_0xfd2fa2,_0x199d('0xc'),(_0x101fb3,_0x1432ef)=>{if(_0x1432ef['keyCode']!==_0x2c52b6['enter'])return;const _0x3455ae=_0xfd2fa2[_0x199d('0x4')];Number[_0x199d('0x10')](_0x3455ae)?_0xfd2fa2['value']=this[_0x199d('0x7')]:(_0xfd2fa2[_0x199d('0x6')]()?this[_0x199d('0x7')]=_0x3455ae:_0x3455ae>this[_0x199d('0x5')]?this[_0x199d('0x7')]=_0xfd2fa2[_0x199d('0xa')]=this[_0x199d('0x5')]:this[_0x199d('0x7')]=_0xfd2fa2[_0x199d('0xa')]=0x1,this['fire'](_0x199d('0xd'),this[_0x199d('0x7')]));}),this[_0x199d('0x8')](_0xfd2fa2,_0x199d('0x2'),()=>{_0xfd2fa2[_0x199d('0xa')]=this[_0x199d('0x7')];}),this[_0x199d('0x8')](_0xfd2fa2,_0x199d('0xf'),()=>{this[_0x199d('0x18')][_0x199d('0x14')]();});}[_0x199d('0xf')](){this[_0x199d('0x9')][_0x199d('0x1')]['focus']();}}
23
+ const _0xfdac=['keyCode','keydown','isNaN','blur','listenTo','element','ck-page-navigator','isReadOnly','navigation','valueAsNumber','render','enter','pageNumberView','setTemplate','value','max','pageNumber','totalPages','bind','set','isEnabled','span','firstChild','bindTemplate','fire','select'];(function(_0x4b06f4,_0xfdaca1){const _0x3149e8=function(_0x46fdc1){while(--_0x46fdc1){_0x4b06f4['push'](_0x4b06f4['shift']());}};_0x3149e8(++_0xfdaca1);}(_0xfdac,0x19f));const _0x3149=function(_0x4b06f4,_0xfdaca1){_0x4b06f4=_0x4b06f4-0x0;let _0x3149e8=_0xfdac[_0x4b06f4];return _0x3149e8;};import{View as _0x274fb8,InputNumberView as _0x4af632}from'ckeditor5/src/ui';import{keyCodes as _0x46e7fa}from'ckeditor5/src/utils';import'../../theme/pagenavigator.css';export default class j extends _0x274fb8{constructor(_0x5270d8){super(_0x5270d8);const _0x264816=this[_0x3149('0x18')];this[_0x3149('0x14')]({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x4af632(_0x5270d8,{'min':0x1,'step':0x1}),this[_0x3149('0xd')][_0x3149('0x14')]({'inputMode':'numeric'}),this[_0x3149('0xd')][_0x3149('0x13')](_0x3149('0x10'))['to'](this,_0x3149('0x12')),this[_0x3149('0xd')]['bind'](_0x3149('0x8'))['to'](this,_0x3149('0x15'),_0x27ebfa=>!_0x27ebfa),this[_0x3149('0xe')]({'tag':'div','attributes':{'class':['ck',_0x3149('0x7'),_0x264816['if']('isEnabled','ck-disabled',_0x2b3ecb=>!_0x2b3ecb)]},'children':[this[_0x3149('0xd')],{'tag':_0x3149('0x16'),'children':[{'text':_0x264816['to'](_0x3149('0x12'))}]}]});}[_0x3149('0xb')](){super[_0x3149('0xb')]();const _0x333591=this[_0x3149('0xd')][_0x3149('0x6')],_0x12e08b=_0x208b78=>{this[_0x3149('0xd')][_0x3149('0x6')][_0x3149('0xf')]=String(_0x208b78);};_0x12e08b(this[_0x3149('0x11')]),this['on']('change:pageNumber',(_0x40db29,_0x4230f6,_0x4611fa)=>{_0x12e08b(_0x4611fa);}),this[_0x3149('0x5')](_0x333591,_0x3149('0x2'),(_0x4f6b36,_0x49f747)=>{if(_0x49f747[_0x3149('0x1')]!==_0x46e7fa[_0x3149('0xc')])return;const _0x593973=_0x333591[_0x3149('0xa')];Number[_0x3149('0x3')](_0x593973)?_0x333591[_0x3149('0xf')]=String(this[_0x3149('0x11')]):(_0x333591['checkValidity']()?this['pageNumber']=_0x593973:_0x593973>this['totalPages']?(this[_0x3149('0x11')]=this[_0x3149('0x12')],_0x333591['value']=String(this[_0x3149('0x12')])):(this[_0x3149('0x11')]=0x1,_0x333591['value']='1'),this[_0x3149('0x19')](_0x3149('0x9'),this[_0x3149('0x11')]));}),this[_0x3149('0x5')](_0x333591,_0x3149('0x4'),()=>{_0x333591[_0x3149('0xf')]=String(this[_0x3149('0x11')]);}),this['listenTo'](_0x333591,'focus',()=>{this[_0x3149('0xd')][_0x3149('0x0')]();});}['focus'](){this[_0x3149('0x6')][_0x3149('0x17')]['focus']();}}