@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.
- package/build/pagination.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +6 -3
- package/lang/translations/ar.po +20 -4
- package/lang/translations/bg.po +20 -4
- package/lang/translations/bn.po +20 -4
- package/lang/translations/ca.po +20 -4
- package/lang/translations/cs.po +20 -4
- package/lang/translations/da.po +20 -4
- package/lang/translations/de.po +20 -4
- package/lang/translations/el.po +20 -4
- package/lang/translations/en.po +20 -4
- package/lang/translations/es.po +20 -4
- package/lang/translations/et.po +20 -4
- package/lang/translations/fi.po +20 -4
- package/lang/translations/fr.po +20 -4
- package/lang/translations/he.po +20 -4
- package/lang/translations/hi.po +20 -4
- package/lang/translations/hu.po +20 -4
- package/lang/translations/id.po +20 -4
- package/lang/translations/it.po +20 -4
- package/lang/translations/ja.po +20 -4
- package/lang/translations/ko.po +20 -4
- package/lang/translations/lt.po +20 -4
- package/lang/translations/lv.po +20 -4
- package/lang/translations/ms.po +20 -4
- package/lang/translations/nl.po +20 -4
- package/lang/translations/no.po +20 -4
- package/lang/translations/pl.po +20 -4
- package/lang/translations/pt-br.po +20 -4
- package/lang/translations/pt.po +20 -4
- package/lang/translations/ro.po +20 -4
- package/lang/translations/ru.po +20 -4
- package/lang/translations/sk.po +20 -4
- package/lang/translations/sr.po +20 -4
- package/lang/translations/sv.po +20 -4
- package/lang/translations/th.po +20 -4
- package/lang/translations/tr.po +20 -4
- package/lang/translations/uk.po +20 -4
- package/lang/translations/vi.po +20 -4
- package/lang/translations/zh-cn.po +20 -4
- package/lang/translations/zh.po +20 -6
- package/package.json +3 -4
- package/src/index.js +1 -1
- package/src/pagination.js +1 -1
- package/src/paginationediting.d.ts +16 -0
- 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 +1 -1
- package/src/ui/pagenavigatorview.js +1 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/ur.js +0 -1
- package/dist/content-index.css +0 -4
- package/dist/editor-index.css +0 -72
- package/dist/index.css +0 -158
- package/dist/translations/ar.d.ts +0 -8
- package/dist/translations/ar.js +0 -23
- package/dist/translations/bg.d.ts +0 -8
- package/dist/translations/bg.js +0 -23
- package/dist/translations/bn.d.ts +0 -8
- package/dist/translations/bn.js +0 -23
- package/dist/translations/ca.d.ts +0 -8
- package/dist/translations/ca.js +0 -23
- package/dist/translations/cs.d.ts +0 -8
- package/dist/translations/cs.js +0 -23
- package/dist/translations/da.d.ts +0 -8
- package/dist/translations/da.js +0 -23
- package/dist/translations/de.d.ts +0 -8
- package/dist/translations/de.js +0 -23
- package/dist/translations/el.d.ts +0 -8
- package/dist/translations/el.js +0 -23
- package/dist/translations/en-au.d.ts +0 -8
- package/dist/translations/en-au.js +0 -23
- package/dist/translations/en.d.ts +0 -8
- package/dist/translations/en.js +0 -23
- package/dist/translations/es.d.ts +0 -8
- package/dist/translations/es.js +0 -23
- package/dist/translations/et.d.ts +0 -8
- package/dist/translations/et.js +0 -23
- package/dist/translations/fi.d.ts +0 -8
- package/dist/translations/fi.js +0 -23
- package/dist/translations/fr.d.ts +0 -8
- package/dist/translations/fr.js +0 -23
- package/dist/translations/gl.d.ts +0 -8
- package/dist/translations/gl.js +0 -23
- package/dist/translations/he.d.ts +0 -8
- package/dist/translations/he.js +0 -23
- package/dist/translations/hi.d.ts +0 -8
- package/dist/translations/hi.js +0 -23
- package/dist/translations/hr.d.ts +0 -8
- package/dist/translations/hr.js +0 -23
- package/dist/translations/hu.d.ts +0 -8
- package/dist/translations/hu.js +0 -23
- package/dist/translations/id.d.ts +0 -8
- package/dist/translations/id.js +0 -23
- package/dist/translations/it.d.ts +0 -8
- package/dist/translations/it.js +0 -23
- package/dist/translations/ja.d.ts +0 -8
- package/dist/translations/ja.js +0 -23
- package/dist/translations/jv.d.ts +0 -8
- package/dist/translations/jv.js +0 -23
- package/dist/translations/ko.d.ts +0 -8
- package/dist/translations/ko.js +0 -23
- package/dist/translations/lt.d.ts +0 -8
- package/dist/translations/lt.js +0 -23
- package/dist/translations/lv.d.ts +0 -8
- package/dist/translations/lv.js +0 -23
- package/dist/translations/ms.d.ts +0 -8
- package/dist/translations/ms.js +0 -23
- package/dist/translations/nl.d.ts +0 -8
- package/dist/translations/nl.js +0 -23
- package/dist/translations/no.d.ts +0 -8
- package/dist/translations/no.js +0 -23
- package/dist/translations/pl.d.ts +0 -8
- package/dist/translations/pl.js +0 -23
- package/dist/translations/pt-br.d.ts +0 -8
- package/dist/translations/pt-br.js +0 -23
- package/dist/translations/pt.d.ts +0 -8
- package/dist/translations/pt.js +0 -23
- package/dist/translations/ro.d.ts +0 -8
- package/dist/translations/ro.js +0 -23
- package/dist/translations/ru.d.ts +0 -8
- package/dist/translations/ru.js +0 -23
- package/dist/translations/sk.d.ts +0 -8
- package/dist/translations/sk.js +0 -23
- package/dist/translations/sr-latn.d.ts +0 -8
- package/dist/translations/sr-latn.js +0 -23
- package/dist/translations/sr.d.ts +0 -8
- package/dist/translations/sr.js +0 -23
- package/dist/translations/sv.d.ts +0 -8
- package/dist/translations/sv.js +0 -23
- package/dist/translations/th.d.ts +0 -8
- package/dist/translations/th.js +0 -23
- package/dist/translations/tr.d.ts +0 -8
- package/dist/translations/tr.js +0 -23
- package/dist/translations/ug.d.ts +0 -8
- package/dist/translations/ug.js +0 -23
- package/dist/translations/uk.d.ts +0 -8
- package/dist/translations/uk.js +0 -23
- package/dist/translations/ur.d.ts +0 -8
- package/dist/translations/ur.js +0 -23
- package/dist/translations/vi.d.ts +0 -8
- package/dist/translations/vi.js +0 -23
- package/dist/translations/zh-cn.d.ts +0 -8
- package/dist/translations/zh-cn.js +0 -23
- package/dist/translations/zh.d.ts +0 -8
- package/dist/translations/zh.js +0 -23
- package/dist/types/augmentation.d.ts +0 -23
- package/dist/types/index.d.ts +0 -13
- package/dist/types/pagination.d.ts +0 -151
- package/dist/types/paginationediting.d.ts +0 -58
- package/dist/types/paginationlookup.d.ts +0 -62
- package/dist/types/paginationrenderer.d.ts +0 -44
- package/dist/types/paginationui.d.ts +0 -29
- package/dist/types/ui/linesrepository.d.ts +0 -38
- package/dist/types/ui/lineview.d.ts +0 -57
- package/dist/types/ui/pagenavigatorview.d.ts +0 -65
- package/lang/translations/en-au.po +0 -26
- package/lang/translations/gl.po +0 -26
- package/lang/translations/hr.po +0 -26
- package/lang/translations/jv.po +0 -26
- package/lang/translations/sr-latn.po +0 -26
- package/lang/translations/ug.po +0 -26
- 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"
|
package/lang/translations/gl.po
DELETED
|
@@ -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"
|
package/lang/translations/hr.po
DELETED
|
@@ -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"
|
package/lang/translations/jv.po
DELETED
|
@@ -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"
|
package/lang/translations/ug.po
DELETED
|
@@ -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 "ئالدىنقى بەتنى كۆرسەت"
|