@ckeditor/ckeditor5-pagination 41.3.0-alpha.4 → 41.3.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 (209) hide show
  1. package/build/pagination.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/contexts.json +6 -3
  41. package/lang/translations/ar.po +20 -4
  42. package/lang/translations/bg.po +20 -4
  43. package/lang/translations/bn.po +20 -4
  44. package/lang/translations/ca.po +20 -4
  45. package/lang/translations/cs.po +20 -4
  46. package/lang/translations/da.po +20 -4
  47. package/lang/translations/de.po +20 -4
  48. package/lang/translations/el.po +20 -4
  49. package/lang/translations/en.po +20 -4
  50. package/lang/translations/es.po +20 -4
  51. package/lang/translations/et.po +20 -4
  52. package/lang/translations/fi.po +20 -4
  53. package/lang/translations/fr.po +20 -4
  54. package/lang/translations/he.po +20 -4
  55. package/lang/translations/hi.po +20 -4
  56. package/lang/translations/hu.po +20 -4
  57. package/lang/translations/id.po +20 -4
  58. package/lang/translations/it.po +20 -4
  59. package/lang/translations/ja.po +20 -4
  60. package/lang/translations/ko.po +20 -4
  61. package/lang/translations/lt.po +20 -4
  62. package/lang/translations/lv.po +20 -4
  63. package/lang/translations/ms.po +20 -4
  64. package/lang/translations/nl.po +20 -4
  65. package/lang/translations/no.po +20 -4
  66. package/lang/translations/pl.po +20 -4
  67. package/lang/translations/pt-br.po +20 -4
  68. package/lang/translations/pt.po +20 -4
  69. package/lang/translations/ro.po +20 -4
  70. package/lang/translations/ru.po +20 -4
  71. package/lang/translations/sk.po +20 -4
  72. package/lang/translations/sr.po +20 -4
  73. package/lang/translations/sv.po +20 -4
  74. package/lang/translations/th.po +20 -4
  75. package/lang/translations/tr.po +20 -4
  76. package/lang/translations/uk.po +20 -4
  77. package/lang/translations/vi.po +20 -4
  78. package/lang/translations/zh-cn.po +20 -4
  79. package/lang/translations/zh.po +20 -6
  80. package/package.json +3 -4
  81. package/src/index.js +1 -1
  82. package/src/pagination.js +1 -1
  83. package/src/paginationediting.d.ts +16 -0
  84. package/src/paginationediting.js +1 -1
  85. package/src/paginationlookup.js +1 -1
  86. package/src/paginationrenderer.js +1 -1
  87. package/src/paginationui.js +1 -1
  88. package/src/ui/linesrepository.js +1 -1
  89. package/src/ui/lineview.js +1 -1
  90. package/src/ui/pagenavigatorview.js +1 -1
  91. package/build/translations/en-au.js +0 -1
  92. package/build/translations/gl.js +0 -1
  93. package/build/translations/hr.js +0 -1
  94. package/build/translations/jv.js +0 -1
  95. package/build/translations/sr-latn.js +0 -1
  96. package/build/translations/ug.js +0 -1
  97. package/build/translations/ur.js +0 -1
  98. package/dist/content-index.css +0 -4
  99. package/dist/editor-index.css +0 -72
  100. package/dist/index.css +0 -158
  101. package/dist/translations/ar.d.ts +0 -8
  102. package/dist/translations/ar.js +0 -23
  103. package/dist/translations/bg.d.ts +0 -8
  104. package/dist/translations/bg.js +0 -23
  105. package/dist/translations/bn.d.ts +0 -8
  106. package/dist/translations/bn.js +0 -23
  107. package/dist/translations/ca.d.ts +0 -8
  108. package/dist/translations/ca.js +0 -23
  109. package/dist/translations/cs.d.ts +0 -8
  110. package/dist/translations/cs.js +0 -23
  111. package/dist/translations/da.d.ts +0 -8
  112. package/dist/translations/da.js +0 -23
  113. package/dist/translations/de.d.ts +0 -8
  114. package/dist/translations/de.js +0 -23
  115. package/dist/translations/el.d.ts +0 -8
  116. package/dist/translations/el.js +0 -23
  117. package/dist/translations/en-au.d.ts +0 -8
  118. package/dist/translations/en-au.js +0 -23
  119. package/dist/translations/en.d.ts +0 -8
  120. package/dist/translations/en.js +0 -23
  121. package/dist/translations/es.d.ts +0 -8
  122. package/dist/translations/es.js +0 -23
  123. package/dist/translations/et.d.ts +0 -8
  124. package/dist/translations/et.js +0 -23
  125. package/dist/translations/fi.d.ts +0 -8
  126. package/dist/translations/fi.js +0 -23
  127. package/dist/translations/fr.d.ts +0 -8
  128. package/dist/translations/fr.js +0 -23
  129. package/dist/translations/gl.d.ts +0 -8
  130. package/dist/translations/gl.js +0 -23
  131. package/dist/translations/he.d.ts +0 -8
  132. package/dist/translations/he.js +0 -23
  133. package/dist/translations/hi.d.ts +0 -8
  134. package/dist/translations/hi.js +0 -23
  135. package/dist/translations/hr.d.ts +0 -8
  136. package/dist/translations/hr.js +0 -23
  137. package/dist/translations/hu.d.ts +0 -8
  138. package/dist/translations/hu.js +0 -23
  139. package/dist/translations/id.d.ts +0 -8
  140. package/dist/translations/id.js +0 -23
  141. package/dist/translations/it.d.ts +0 -8
  142. package/dist/translations/it.js +0 -23
  143. package/dist/translations/ja.d.ts +0 -8
  144. package/dist/translations/ja.js +0 -23
  145. package/dist/translations/jv.d.ts +0 -8
  146. package/dist/translations/jv.js +0 -23
  147. package/dist/translations/ko.d.ts +0 -8
  148. package/dist/translations/ko.js +0 -23
  149. package/dist/translations/lt.d.ts +0 -8
  150. package/dist/translations/lt.js +0 -23
  151. package/dist/translations/lv.d.ts +0 -8
  152. package/dist/translations/lv.js +0 -23
  153. package/dist/translations/ms.d.ts +0 -8
  154. package/dist/translations/ms.js +0 -23
  155. package/dist/translations/nl.d.ts +0 -8
  156. package/dist/translations/nl.js +0 -23
  157. package/dist/translations/no.d.ts +0 -8
  158. package/dist/translations/no.js +0 -23
  159. package/dist/translations/pl.d.ts +0 -8
  160. package/dist/translations/pl.js +0 -23
  161. package/dist/translations/pt-br.d.ts +0 -8
  162. package/dist/translations/pt-br.js +0 -23
  163. package/dist/translations/pt.d.ts +0 -8
  164. package/dist/translations/pt.js +0 -23
  165. package/dist/translations/ro.d.ts +0 -8
  166. package/dist/translations/ro.js +0 -23
  167. package/dist/translations/ru.d.ts +0 -8
  168. package/dist/translations/ru.js +0 -23
  169. package/dist/translations/sk.d.ts +0 -8
  170. package/dist/translations/sk.js +0 -23
  171. package/dist/translations/sr-latn.d.ts +0 -8
  172. package/dist/translations/sr-latn.js +0 -23
  173. package/dist/translations/sr.d.ts +0 -8
  174. package/dist/translations/sr.js +0 -23
  175. package/dist/translations/sv.d.ts +0 -8
  176. package/dist/translations/sv.js +0 -23
  177. package/dist/translations/th.d.ts +0 -8
  178. package/dist/translations/th.js +0 -23
  179. package/dist/translations/tr.d.ts +0 -8
  180. package/dist/translations/tr.js +0 -23
  181. package/dist/translations/ug.d.ts +0 -8
  182. package/dist/translations/ug.js +0 -23
  183. package/dist/translations/uk.d.ts +0 -8
  184. package/dist/translations/uk.js +0 -23
  185. package/dist/translations/ur.d.ts +0 -8
  186. package/dist/translations/ur.js +0 -23
  187. package/dist/translations/vi.d.ts +0 -8
  188. package/dist/translations/vi.js +0 -23
  189. package/dist/translations/zh-cn.d.ts +0 -8
  190. package/dist/translations/zh-cn.js +0 -23
  191. package/dist/translations/zh.d.ts +0 -8
  192. package/dist/translations/zh.js +0 -23
  193. package/dist/types/augmentation.d.ts +0 -23
  194. package/dist/types/index.d.ts +0 -13
  195. package/dist/types/pagination.d.ts +0 -151
  196. package/dist/types/paginationediting.d.ts +0 -58
  197. package/dist/types/paginationlookup.d.ts +0 -62
  198. package/dist/types/paginationrenderer.d.ts +0 -44
  199. package/dist/types/paginationui.d.ts +0 -29
  200. package/dist/types/ui/linesrepository.d.ts +0 -38
  201. package/dist/types/ui/lineview.d.ts +0 -57
  202. package/dist/types/ui/pagenavigatorview.d.ts +0 -65
  203. package/lang/translations/en-au.po +0 -26
  204. package/lang/translations/gl.po +0 -26
  205. package/lang/translations/hr.po +0 -26
  206. package/lang/translations/jv.po +0 -26
  207. package/lang/translations/sr-latn.po +0 -26
  208. package/lang/translations/ug.po +0 -26
  209. package/lang/translations/ur.po +0 -26
@@ -1,151 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/pagination
11
- * @publicApi
12
- */
13
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
- import PaginationEditing from './paginationediting.js';
15
- import PaginationUI from './paginationui.js';
16
- /**
17
- * The pagination feature.
18
- */
19
- export default class Pagination extends Plugin {
20
- /**
21
- * The current page number.
22
- *
23
- * @observable
24
- * @default 1
25
- * @readonly
26
- */
27
- readonly pageNumber: number;
28
- /**
29
- * The total page count.
30
- *
31
- * @observable
32
- * @default 1
33
- * @readonly
34
- */
35
- readonly totalPages: number;
36
- /**
37
- * @inheritDoc
38
- */
39
- static get pluginName(): "Pagination";
40
- /**
41
- * @inheritDoc
42
- */
43
- static get requires(): readonly [typeof PaginationEditing, typeof PaginationUI];
44
- /**
45
- * @inheritDoc
46
- */
47
- constructor(editor: Editor);
48
- /**
49
- * @inheritDoc
50
- */
51
- init(): void;
52
- /**
53
- * Scroll the editor content to a desired page.
54
- *
55
- * @param pageNumber The page number (counting from 1).
56
- */
57
- scrollToPage(pageNumber: number): void;
58
- }
59
- /**
60
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
61
- *
62
- * ```ts
63
- * ClassicEditor
64
- * .create( editorElement, {
65
- * pagination: {
66
- * // A4
67
- * pageWidth: '21cm',
68
- * pageHeight: '29.7cm',
69
- *
70
- * pageMargins: {
71
- * top: '20mm',
72
- * bottom: '20mm',
73
- * left: '12mm',
74
- * right: '12mm'
75
- * }
76
- * }
77
- * } )
78
- * .then( ... )
79
- * .catch( ... );
80
- * ```
81
- *
82
- * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
83
- * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
84
- *
85
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
86
- */
87
- export interface PaginationConfig {
88
- /**
89
- * The page width.
90
- */
91
- pageWidth: string;
92
- /**
93
- * The page height.
94
- */
95
- pageHeight: string;
96
- /**
97
- * The page margins.
98
- */
99
- pageMargins: PaginationMarginsConfig;
100
- /**
101
- * The pagination feature is by default enabled only in browsers that are using the Blink engine
102
- * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
103
- * we will be working on them in the future.
104
- *
105
- * This behavior can be modified by setting this configuration value to `true`.
106
- *
107
- * @default false
108
- */
109
- enableOnUnsupportedBrowsers?: boolean;
110
- }
111
- /**
112
- * The configuration of the pagination feature page margins.
113
- */
114
- export interface PaginationMarginsConfig {
115
- /**
116
- * The top margin.
117
- */
118
- top: string;
119
- /**
120
- * The bottom margin.
121
- */
122
- bottom: string;
123
- /**
124
- * The left margin.
125
- */
126
- left: string;
127
- /**
128
- * The right margin.
129
- */
130
- right: string;
131
- }
132
- /**
133
- * Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
134
- *
135
- * @error pagination-invalid-license-key
136
- */
137
- /**
138
- * You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
139
- *
140
- * Please contact our customer support to get a full access at https://ckeditor.com/contact/.
141
- *
142
- * @error pagination-trial-license-key-reached-limit-changes
143
- */
144
- /**
145
- * The configuration required by the pagination plugin is missing.
146
- * Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
147
- * to initialize the plugin properly.
148
- *
149
- * @error pagination-config-not-found
150
- * @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
151
- */
@@ -1,58 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/paginationediting
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- import PaginationLookup from './paginationlookup.js';
14
- import PaginationRenderer from './paginationrenderer.js';
15
- import '../theme/pagination.css';
16
- /**
17
- * The pagination editing plugin.
18
- */
19
- export default class PaginationEditing extends Plugin {
20
- /**
21
- * The current page number.
22
- *
23
- * @observable
24
- * @default 1
25
- * @readonly
26
- */
27
- readonly pageNumber: number;
28
- /**
29
- * The total page count.
30
- *
31
- * @observable
32
- * @default 1
33
- * @readonly
34
- */
35
- totalPages: number;
36
- /**
37
- * @inheritDoc
38
- */
39
- static get pluginName(): "PaginationEditing";
40
- /**
41
- * @inheritDoc
42
- */
43
- static get requires(): readonly [typeof PaginationLookup, typeof PaginationRenderer];
44
- /**
45
- * @inheritDoc
46
- */
47
- init(): void;
48
- /**
49
- * @inheritDoc
50
- */
51
- destroy(): void;
52
- /**
53
- * Scroll the editor content to a desired page.
54
- *
55
- * @param pageNumber The page number (counting from 1).
56
- */
57
- scrollToPage(pageNumber: number): void;
58
- }
@@ -1,62 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/paginationlookup
11
- */
12
- import type { Range } from 'ckeditor5/src/engine.js';
13
- import { Plugin } from 'ckeditor5/src/core.js';
14
- /**
15
- * The pagination lookup plugin.
16
- */
17
- export default class PaginationLookup extends Plugin {
18
- /**
19
- * List of the page breaks.
20
- *
21
- * @observable
22
- * @default []
23
- * @readonly
24
- */
25
- pageBreaks: Array<PageBreakInfo>;
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "PaginationLookup";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- /**
35
- * @inheritDoc
36
- */
37
- afterInit(): void;
38
- /**
39
- * @inheritDoc
40
- */
41
- destroy(): void;
42
- }
43
- /**
44
- * Single page break information.
45
- */
46
- export declare class PageBreakInfo {
47
- readonly type: 'manual' | 'element' | 'text';
48
- readonly modelRange: Range;
49
- /**
50
- * Creates PageBreakInfo instance.
51
- */
52
- constructor({ type, modelRange, domNode, offset }: {
53
- readonly type: PageBreakInfo['type'];
54
- readonly modelRange: PageBreakInfo['modelRange'];
55
- readonly domNode: Node;
56
- readonly offset: number;
57
- });
58
- /**
59
- * The top offset in window coordinates.
60
- */
61
- get offset(): number;
62
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/paginationrenderer
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * The pagination renderer plugin. This plugin renders pagination lines (with numbers) over
15
- * the editing root of the editor.
16
- */
17
- export default class PaginationRenderer extends Plugin {
18
- /**
19
- * The current page number.
20
- *
21
- * @observable
22
- * @default 1
23
- * @readonly
24
- */
25
- pageNumber: number;
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "PaginationRenderer";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- /**
35
- * @inheritDoc
36
- */
37
- destroy(): void;
38
- /**
39
- * Scroll the editor content to a desired page.
40
- *
41
- * @param pageNumber The page number (counting from 1).
42
- */
43
- scrollToPage(pageNumber: number): void;
44
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/paginationui
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * The pagination UI plugin. It introduces:
15
- *
16
- * * The `'pageNavigation'` UI view,
17
- * * The `'nextPage'` UI button,
18
- * * The `'previousPage'` UI button.
19
- */
20
- export default class PaginationUI extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "PaginationUI";
25
- /**
26
- * @inheritDoc
27
- */
28
- init(): void;
29
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/ui/linesrepository
11
- */
12
- import type { Editor } from 'ckeditor5/src/core.js';
13
- /**
14
- * Helper class for managing the page break lines.
15
- */
16
- export default class LinesRepository {
17
- /**
18
- * Creates a new lines repository instance.
19
- */
20
- constructor(editor: Editor);
21
- /**
22
- * Destroys the lines repository instance.
23
- */
24
- destroy(): void;
25
- /**
26
- * Hides all lines.
27
- */
28
- cleanLines(): void;
29
- /**
30
- * Shows a line at specified page coordinates.
31
- *
32
- * @param left
33
- * @param top
34
- * @param width
35
- * @param pageNumber The page number (line label).
36
- */
37
- showLine(left: number, top: number, width: number, pageNumber: number): void;
38
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/ui/lineview
11
- */
12
- import { View } from 'ckeditor5/src/ui.js';
13
- import '../../theme/line.css';
14
- /**
15
- * The page break line view.
16
- */
17
- export default class LineView extends View {
18
- /**
19
- * Controls whether the line is visible.
20
- *
21
- * @observable
22
- * @default false
23
- */
24
- isVisible: boolean;
25
- /**
26
- * Controls the line position x coordinate.
27
- *
28
- * @observable
29
- * @default null
30
- */
31
- left: number | null;
32
- /**
33
- * Controls the line width.
34
- *
35
- * @observable
36
- * @default null
37
- */
38
- width: number | null;
39
- /**
40
- * Controls the line label.
41
- *
42
- * @observable
43
- * @default null
44
- */
45
- pageNumber: number | null;
46
- /**
47
- * Controls the line position y coordinate.
48
- *
49
- * @observable
50
- * @default null
51
- */
52
- top: number | null;
53
- /**
54
- * @inheritDoc
55
- */
56
- constructor();
57
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module pagination/ui/pagenavigatorview
11
- */
12
- import { View, InputNumberView } from 'ckeditor5/src/ui.js';
13
- import { type Locale } from 'ckeditor5/src/utils.js';
14
- import '../../theme/pagenavigator.css';
15
- /**
16
- * The page navigation UI element.
17
- */
18
- export default class PageNavigatorView extends View {
19
- /**
20
- * The current page number.
21
- *
22
- * @observable
23
- * @default 1
24
- */
25
- pageNumber: number;
26
- /**
27
- * The total page count.
28
- *
29
- * @observable
30
- * @default 1
31
- */
32
- totalPages: number;
33
- /**
34
- * Controls whether the component is enabled.
35
- *
36
- * @observable
37
- * @default true
38
- */
39
- isEnabled: boolean;
40
- /**
41
- * An instance of the input number view to type a new page number.
42
- */
43
- pageNumberView: InputNumberView;
44
- /**
45
- * @inheritDoc
46
- */
47
- constructor(locale: Locale);
48
- /**
49
- * @inheritDoc
50
- */
51
- render(): void;
52
- /**
53
- * @inheritDoc
54
- */
55
- focus(): void;
56
- }
57
- /**
58
- * An event fired after {@link module:pagination/ui/pagenavigatorview~PageNavigatorView#pageNumberView} value is updated.
59
- *
60
- * @eventName ~PageNavigatorView#navigation
61
- */
62
- export type PaginationNavigationEvent = {
63
- name: 'navigation';
64
- args: [pageNumber: number];
65
- };
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n"
16
- "Language: en_AU\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Show next page"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Show previous page"
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n"
16
- "Language: gl\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Amosar a páxina seguinte"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Amosar a páxina anterior"
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n"
16
- "Language: hr\n"
17
- "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Prikaži sljedeću stranicu"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Prikaži prethodnu stranicu"
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: Javanese (https://app.transifex.com/ckeditor/teams/11143/jv/)\n"
16
- "Language: jv\n"
17
- "Plural-Forms: nplurals=1; plural=0;\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Tampilaken halaman salajengipun"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Tampilaken halaman saderengipun"
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
- "Language: sr@latin\n"
17
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Prikaži sledeću stranicu"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Prikaži prethodnu stranicu"
@@ -1,26 +0,0 @@
1
- # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # !!! IMPORTANT !!!
4
- #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
7
- #
8
- # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
- #
10
- # To learn more, check out the official contributor's guide:
11
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
- #
13
- msgid ""
14
- msgstr ""
15
- "Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
16
- "Language: ug\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
-
20
- msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "كېيينكى بەتنى كۆرسەت"
23
-
24
- msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "ئالدىنقى بەتنى كۆرسەت"