@ckeditor/ckeditor5-pagination 41.3.0-alpha.3 → 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
@@ -18,9 +18,25 @@ msgstr ""
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
 
20
20
  msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "Hiện trang tiếp theo"
21
+ msgid "Go to next page"
22
+ msgstr "Chuyển đến trang tiếp theo"
23
23
 
24
24
  msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "Hiện trang trước"
25
+ msgid "Go to previous page"
26
+ msgstr "Chuyển về trang trước"
27
+
28
+ msgctxt "Assistive technologies label for the page number input in the pagination feature's toolbar UI. Example: 'Current page number (from 1 to 10)'."
29
+ msgid "Current page number (from 1 to %0)"
30
+ msgstr "Số trang hiện tại (từ 1 đến %0)"
31
+
32
+ msgctxt "Accessibility help dialog section title for pagination plugin keystrokes."
33
+ msgid "Keystrokes for navigating through documents"
34
+ msgstr "Tổ hợp phím để điều hướng qua lại giữa các tài liệu"
35
+
36
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the previous page in the document."
37
+ msgid "Go to the previous page (also move selection)"
38
+ msgstr "Chuyển về trang trước (đồng thời di chuyển vùng lựa chọn)"
39
+
40
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the next page in the document."
41
+ msgid "Go to the next page (also move selection)"
42
+ msgstr "Chuyển đến trang tiếp theo (đồng thời di chuyển vùng lựa chọn)"
@@ -18,9 +18,25 @@ msgstr ""
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
 
20
20
  msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr "显示下页"
21
+ msgid "Go to next page"
22
+ msgstr "前往下一页"
23
23
 
24
24
  msgctxt "A toolbar button tooltip for a pagination feature."
25
- msgid "Show previous page"
26
- msgstr "显示上页"
25
+ msgid "Go to previous page"
26
+ msgstr "前往上一页"
27
+
28
+ msgctxt "Assistive technologies label for the page number input in the pagination feature's toolbar UI. Example: 'Current page number (from 1 to 10)'."
29
+ msgid "Current page number (from 1 to %0)"
30
+ msgstr "当前页码(从1到%0)"
31
+
32
+ msgctxt "Accessibility help dialog section title for pagination plugin keystrokes."
33
+ msgid "Keystrokes for navigating through documents"
34
+ msgstr "浏览文档的按键"
35
+
36
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the previous page in the document."
37
+ msgid "Go to the previous page (also move selection)"
38
+ msgstr "前往上一页(同时移动选择)"
39
+
40
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the next page in the document."
41
+ msgid "Go to the next page (also move selection)"
42
+ msgstr "前往下一页(同时移动选择)"
@@ -18,11 +18,25 @@ msgstr ""
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
 
20
20
  msgctxt "A toolbar button tooltip for a pagination feature."
21
- msgid "Show next page"
22
- msgstr ""
23
- "顯示下一頁\n"
24
- ""
21
+ msgid "Go to next page"
22
+ msgstr "前往下一頁"
25
23
 
26
24
  msgctxt "A toolbar button tooltip for a pagination feature."
27
- msgid "Show previous page"
28
- msgstr "顯示上一頁"
25
+ msgid "Go to previous page"
26
+ msgstr "前往上一頁"
27
+
28
+ msgctxt "Assistive technologies label for the page number input in the pagination feature's toolbar UI. Example: 'Current page number (from 1 to 10)'."
29
+ msgid "Current page number (from 1 to %0)"
30
+ msgstr "目前頁碼(從 1 到 %0)"
31
+
32
+ msgctxt "Accessibility help dialog section title for pagination plugin keystrokes."
33
+ msgid "Keystrokes for navigating through documents"
34
+ msgstr "用於瀏覽文件的按鍵動作"
35
+
36
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the previous page in the document."
37
+ msgid "Go to the previous page (also move selection)"
38
+ msgstr "前往上一頁(同時移動選取內容)"
39
+
40
+ msgctxt "Accessibility help dialog entry explaining the meaning of the keystroke that allows users for navigating to the next page in the document."
41
+ msgid "Go to the next page (also move selection)"
42
+ msgstr "前往下一頁(同時移動選取內容)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "41.3.0-alpha.3",
3
+ "version": "41.3.0",
4
4
  "description": "Pagination feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-theme-lark": "41.3.0-alpha.3",
16
- "ckeditor5": "41.3.0-alpha.3",
15
+ "@ckeditor/ckeditor5-theme-lark": "41.3.0",
16
+ "ckeditor5": "41.3.0",
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
19
  "license": "SEE LICENSE IN LICENSE.md",
@@ -21,7 +21,6 @@
21
21
  "homepage": "https://ckeditor.com/ckeditor-5",
22
22
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
23
23
  "files": [
24
- "dist",
25
24
  "lang",
26
25
  "src/**/*.js",
27
26
  "src/**/*.d.ts",
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x20f0(_0x12cf16,_0x556432){var _0x1cb31c=_0x1cb3();return _0x20f0=function(_0x20f00d,_0xe7d90c){_0x20f00d=_0x20f00d-0x72;var _0x5be038=_0x1cb31c[_0x20f00d];return _0x5be038;},_0x20f0(_0x12cf16,_0x556432);}(function(_0x138225,_0x40bcee){var _0x3ea89c=_0x20f0,_0x3d0418=_0x138225();while(!![]){try{var _0x193cf2=-parseInt(_0x3ea89c(0x77))/0x1+parseInt(_0x3ea89c(0x79))/0x2+parseInt(_0x3ea89c(0x72))/0x3*(parseInt(_0x3ea89c(0x7a))/0x4)+parseInt(_0x3ea89c(0x73))/0x5+parseInt(_0x3ea89c(0x76))/0x6*(-parseInt(_0x3ea89c(0x78))/0x7)+-parseInt(_0x3ea89c(0x75))/0x8+parseInt(_0x3ea89c(0x74))/0x9;if(_0x193cf2===_0x40bcee)break;else _0x3d0418['push'](_0x3d0418['shift']());}catch(_0x5eda03){_0x3d0418['push'](_0x3d0418['shift']());}}}(_0x1cb3,0x93376));export{default as Pagination}from'./pagination.js';import'./augmentation.js';function _0x1cb3(){var _0x591f37=['10700820kdrZLR','7686584OWhJal','30pOksIi','621311trUfJx','1355039fzMsAj','952788udbqDa','6700ZuMjrb','1623cOdAbF','2907340WFLJxQ'];_0x1cb3=function(){return _0x591f37;};return _0x1cb3();}
23
+ (function(_0x726415,_0x46210b){var _0x2495ee=_0x387a,_0x41920f=_0x726415();while(!![]){try{var _0xe7d7ac=parseInt(_0x2495ee(0x9a))/0x1+-parseInt(_0x2495ee(0x95))/0x2*(parseInt(_0x2495ee(0x97))/0x3)+-parseInt(_0x2495ee(0x9d))/0x4+parseInt(_0x2495ee(0x9c))/0x5*(parseInt(_0x2495ee(0x98))/0x6)+-parseInt(_0x2495ee(0x9b))/0x7+parseInt(_0x2495ee(0x99))/0x8+parseInt(_0x2495ee(0x96))/0x9*(parseInt(_0x2495ee(0x94))/0xa);if(_0xe7d7ac===_0x46210b)break;else _0x41920f['push'](_0x41920f['shift']());}catch(_0x301221){_0x41920f['push'](_0x41920f['shift']());}}}(_0x2fdd,0x33782));function _0x387a(_0x258438,_0x369d5a){var _0x2fdda8=_0x2fdd();return _0x387a=function(_0x387aed,_0x5a15d2){_0x387aed=_0x387aed-0x94;var _0x287530=_0x2fdda8[_0x387aed];return _0x287530;},_0x387a(_0x258438,_0x369d5a);}export{default as Pagination}from'./pagination.js';function _0x2fdd(){var _0x2e02ea=['146094Rlvzre','2743360LducJL','300771HNlvig','1715126ABSDYV','30BlNCQS','1086276aHkRjq','249100OLijVZ','1440KbLKqG','126UnPhdY','1713ACJcQh'];_0x2fdd=function(){return _0x2e02ea;};return _0x2fdd();}import'./augmentation.js';
package/src/pagination.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35f4d8=_0x1cc8;(function(_0x275037,_0x3bc5fe){const _0x27c6ba=_0x1cc8,_0x38db01=_0x275037();while(!![]){try{const _0x2cf32e=-parseInt(_0x27c6ba(0x151))/0x1*(-parseInt(_0x27c6ba(0x165))/0x2)+parseInt(_0x27c6ba(0x159))/0x3+-parseInt(_0x27c6ba(0x15a))/0x4*(-parseInt(_0x27c6ba(0x166))/0x5)+parseInt(_0x27c6ba(0x155))/0x6+-parseInt(_0x27c6ba(0x157))/0x7+-parseInt(_0x27c6ba(0x15c))/0x8+parseInt(_0x27c6ba(0x16a))/0x9;if(_0x2cf32e===_0x3bc5fe)break;else _0x38db01['push'](_0x38db01['shift']());}catch(_0x40c86a){_0x38db01['push'](_0x38db01['shift']());}}}(_0x4616,0xe11a3));function _0x1cc8(_0x49414a,_0x45ab76){const _0x4616fe=_0x4616();return _0x1cc8=function(_0x1cc863,_0x2f2a70){_0x1cc863=_0x1cc863-0x14f;let _0xfc52c9=_0x4616fe[_0x1cc863];return _0xfc52c9;},_0x1cc8(_0x49414a,_0x45ab76);}import{Plugin as _0x27b7f3}from'ckeditor5/src/core.js';import _0x46e6eb from'./paginationediting.js';import _0x3568bd from'./paginationui.js';function _0x4616(){const _0x28d91e=['3010gqtOYQ','65mhqlfx','set','requires','Pagination','12796515TWcbEC','pageNumber','totalPages','1183vldcKx','bind','get','browserCheck','1299450cniuEl','isBlink','12862570EAaoKI','forceDisabled','2770494DgsZfB','75108DLDmaj','init','14615160vWEzgV','config','scrollToPage','pluginName','isEnabled','ready','editor','pagination.enableOnUnsupportedBrowsers','plugins'];_0x4616=function(){return _0x28d91e;};return _0x4616();}import{env as _0x13851d}from'ckeditor5/src/utils.js';export default class o extends _0x27b7f3{static get[_0x35f4d8(0x15f)](){const _0x23123c=_0x35f4d8;return _0x23123c(0x169);}static get[_0x35f4d8(0x168)](){return[_0x46e6eb,_0x3568bd];}constructor(_0x1652d5){const _0x5ad493=_0x35f4d8;super(_0x1652d5),this[_0x5ad493(0x160)]=!0x1;}[_0x35f4d8(0x15b)](){const _0xa7e69a=_0x35f4d8;this[_0xa7e69a(0x167)]({'pageNumber':0x1,'totalPages':0x1});const _0x5e0282=this[_0xa7e69a(0x162)][_0xa7e69a(0x164)][_0xa7e69a(0x153)](_0x46e6eb);this[_0xa7e69a(0x152)](_0xa7e69a(0x14f))['to'](_0x5e0282),this[_0xa7e69a(0x152)](_0xa7e69a(0x150))['to'](_0x5e0282),_0x13851d[_0xa7e69a(0x156)]||this[_0xa7e69a(0x162)][_0xa7e69a(0x15d)][_0xa7e69a(0x153)](_0xa7e69a(0x163))?this[_0xa7e69a(0x162)]['on'](_0xa7e69a(0x161),()=>{const _0x2f9fa3=_0xa7e69a;this[_0x2f9fa3(0x160)]=!0x0;}):this[_0xa7e69a(0x158)](_0xa7e69a(0x154));}[_0x35f4d8(0x15e)](_0x51a40c){const _0x4341c1=_0x35f4d8;this[_0x4341c1(0x162)][_0x4341c1(0x164)][_0x4341c1(0x153)](_0x46e6eb)[_0x4341c1(0x15e)](_0x51a40c);}}
23
+ const _0x2b8443=_0x52f3;(function(_0x370b46,_0x1718d3){const _0x238af9=_0x52f3,_0xc2e763=_0x370b46();while(!![]){try{const _0x5472d2=-parseInt(_0x238af9(0x1eb))/0x1+-parseInt(_0x238af9(0x1e8))/0x2*(parseInt(_0x238af9(0x1ed))/0x3)+-parseInt(_0x238af9(0x1e0))/0x4*(parseInt(_0x238af9(0x1f3))/0x5)+parseInt(_0x238af9(0x1f2))/0x6+-parseInt(_0x238af9(0x1e1))/0x7+parseInt(_0x238af9(0x1db))/0x8+parseInt(_0x238af9(0x1de))/0x9;if(_0x5472d2===_0x1718d3)break;else _0xc2e763['push'](_0xc2e763['shift']());}catch(_0x4c4f0e){_0xc2e763['push'](_0xc2e763['shift']());}}}(_0x184e,0x919d8));function _0x184e(){const _0x47bf5a=['2773204dWdkit','pageNumber','forceDisabled','browserCheck','totalPages','requires','editor','476458sLfYPw','plugins','pagination.enableOnUnsupportedBrowsers','472892FIbeya','init','9TxOKsP','pluginName','isBlink','config','bind','6705156CcDXKG','365HknAKN','scrollToPage','isEnabled','set','1850576EiZzQJ','Pagination','ready','17211600eXrEcz','get','59236ANQtnm'];_0x184e=function(){return _0x47bf5a;};return _0x184e();}function _0x52f3(_0x33cf98,_0x14e1f6){const _0x184e60=_0x184e();return _0x52f3=function(_0x52f364,_0xecb5b6){_0x52f364=_0x52f364-0x1db;let _0x1ee213=_0x184e60[_0x52f364];return _0x1ee213;},_0x52f3(_0x33cf98,_0x14e1f6);}import{Plugin as _0x76b5f4}from'ckeditor5/src/core.js';import _0xb5e2dd from'./paginationediting.js';import _0x341b10 from'./paginationui.js';import{env as _0x5be542}from'ckeditor5/src/utils.js';export default class o extends _0x76b5f4{static get[_0x2b8443(0x1ee)](){const _0x55ed89=_0x2b8443;return _0x55ed89(0x1dc);}static get[_0x2b8443(0x1e6)](){return[_0xb5e2dd,_0x341b10];}constructor(_0xcde77f){const _0x555453=_0x2b8443;super(_0xcde77f),this[_0x555453(0x1f5)]=!0x1;}[_0x2b8443(0x1ec)](){const _0xc13668=_0x2b8443;this[_0xc13668(0x1f6)]({'pageNumber':0x1,'totalPages':0x1});const _0x96a86e=this[_0xc13668(0x1e7)][_0xc13668(0x1e9)][_0xc13668(0x1df)](_0xb5e2dd);this[_0xc13668(0x1f1)](_0xc13668(0x1e2))['to'](_0x96a86e),this[_0xc13668(0x1f1)](_0xc13668(0x1e5))['to'](_0x96a86e),_0x5be542[_0xc13668(0x1ef)]||this[_0xc13668(0x1e7)][_0xc13668(0x1f0)][_0xc13668(0x1df)](_0xc13668(0x1ea))?this[_0xc13668(0x1e7)]['on'](_0xc13668(0x1dd),()=>{const _0x52c473=_0xc13668;this[_0x52c473(0x1f5)]=!0x0;}):this[_0xc13668(0x1e3)](_0xc13668(0x1e4));}[_0x2b8443(0x1f4)](_0x3943e9){const _0x166f64=_0x2b8443;this[_0x166f64(0x1e7)][_0x166f64(0x1e9)][_0x166f64(0x1df)](_0xb5e2dd)[_0x166f64(0x1f4)](_0x3943e9);}}
@@ -51,4 +51,20 @@ export default class PaginationEditing extends Plugin {
51
51
  * @param pageNumber The page number (counting from 1).
52
52
  */
53
53
  scrollToPage(pageNumber: number): void;
54
+ /**
55
+ * Moves the selection to the beginning of a specific page.
56
+ *
57
+ * Also see {@link #scrollToPage}.
58
+ *
59
+ * @param pageNumber The page number (counting from 1).
60
+ */
61
+ moveSelectionToPage(pageNumber: number): void;
62
+ /**
63
+ * Scrolls the document and moves the user selection to the next page.
64
+ */
65
+ goToNextPage(): void;
66
+ /**
67
+ * Scrolls the document and moves the user selection to the previous page.
68
+ */
69
+ goToPreviousPage(): void;
54
70
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x13f1(_0x19314c,_0x2608d2){const _0x3e2d11=_0x3e2d();return _0x13f1=function(_0x13f1b4,_0x381184){_0x13f1b4=_0x13f1b4-0x1da;let _0x4e083f=_0x3e2d11[_0x13f1b4];return _0x4e083f;},_0x13f1(_0x19314c,_0x2608d2);}const _0x18d3cb=_0x13f1;(function(_0x2cd77b,_0x112ddc){const _0x34786e=_0x13f1,_0x365b0c=_0x2cd77b();while(!![]){try{const _0x292cfe=-parseInt(_0x34786e(0x1fe))/0x1*(parseInt(_0x34786e(0x1e2))/0x2)+parseInt(_0x34786e(0x225))/0x3*(-parseInt(_0x34786e(0x1da))/0x4)+-parseInt(_0x34786e(0x209))/0x5*(parseInt(_0x34786e(0x20f))/0x6)+-parseInt(_0x34786e(0x20a))/0x7*(-parseInt(_0x34786e(0x22b))/0x8)+-parseInt(_0x34786e(0x1e3))/0x9*(parseInt(_0x34786e(0x202))/0xa)+parseInt(_0x34786e(0x212))/0xb*(parseInt(_0x34786e(0x1eb))/0xc)+parseInt(_0x34786e(0x218))/0xd;if(_0x292cfe===_0x112ddc)break;else _0x365b0c['push'](_0x365b0c['shift']());}catch(_0x4e5730){_0x365b0c['push'](_0x365b0c['shift']());}}}(_0x3e2d,0x5d87d));import{Plugin as _0x2251c4}from'ckeditor5/src/core.js';import{CKEditorError as _0x2956fa}from'ckeditor5/src/utils.js';import _0xfdbb0e from'./paginationlookup.js';import _0x459c2a from'./paginationrenderer.js';import'../theme/pagination.css';export default class s extends _0x2251c4{static get[_0x18d3cb(0x230)](){const _0x12244a=_0x18d3cb;return _0x12244a(0x1ea);}static get[_0x18d3cb(0x213)](){return[_0xfdbb0e,_0x459c2a];}[_0x18d3cb(0x228)](){const _0x4961cb=_0x18d3cb;this[_0x4961cb(0x207)]({'pageNumber':0x1,'totalPages':0x1});const _0x2c1e3a=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0x4961cb(0x200)),_0x46c567=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0xfdbb0e),_0xb5575a=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0x459c2a);this[_0x4961cb(0x1ff)](_0x4961cb(0x1f6))['to'](_0x2c1e3a),this[_0x4961cb(0x203)](),this[_0x4961cb(0x1ff)](_0x4961cb(0x1e5))['to'](_0xb5575a),this[_0x4961cb(0x1f3)](_0x46c567,_0x4961cb(0x1de),(_0xb03f62,_0x30de94,_0x4bdf99,_0x5f1971)=>{const _0x548aaa=_0x4961cb;this[_0x548aaa(0x22d)]=_0x4bdf99[_0x548aaa(0x1f1)],this[_0x548aaa(0x1e7)](_0x4bdf99,_0x5f1971);});const _0x424164=this[_0x4961cb(0x21b)];this[_0x4961cb(0x210)]=_0x424164[_0x4961cb(0x21e)][_0x4961cb(0x211)](_0x4961cb(0x210)),this[_0x4961cb(0x1f4)]=setInterval(()=>{const _0x4d9307=_0x4961cb;let _0x25c701;for(const _0x571339 in _0x424164){const _0x4a9c74=_0x571339,_0x26ceca=_0x424164[_0x4a9c74];if(_0x4d9307(0x1fd)===_0x26ceca||_0x4d9307(0x20b)===_0x26ceca||_0x4d9307(0x214)===_0x26ceca||_0x4d9307(0x1ee)===_0x26ceca){delete _0x424164[_0x4a9c74],_0x25c701=_0x26ceca;break;}}if(_0x4d9307(0x20b)===_0x25c701)throw clearInterval(this[_0x4d9307(0x1f4)]),new _0x2956fa(_0x4d9307(0x227),null);if(_0x4d9307(0x1fd)===_0x25c701&&console[_0x4d9307(0x226)](_0x4d9307(0x219)),_0x4d9307(0x1ee)===_0x25c701)throw clearInterval(this[_0x4d9307(0x1f4)]),new _0x2956fa(_0x4d9307(0x1f5),null);_0x4d9307(0x214)===_0x25c701&&clearInterval(this[_0x4d9307(0x1f4)]);},0x3e8);}[_0x18d3cb(0x220)](){const _0x3f2e0f=_0x18d3cb;clearInterval(this[_0x3f2e0f(0x1f4)]);}[_0x18d3cb(0x201)](_0x26aeed){const _0x3de241=_0x18d3cb;if(!this[_0x3de241(0x1f6)])return;_0x26aeed<0x1&&(_0x26aeed=0x1),_0x26aeed>this[_0x3de241(0x22d)]&&(_0x26aeed=this[_0x3de241(0x22d)]),this[_0x3de241(0x21b)][_0x3de241(0x224)][_0x3de241(0x211)](_0x459c2a)[_0x3de241(0x201)](_0x26aeed);}[_0x18d3cb(0x1e7)](_0x480b31,_0x68c3d9){const _0x2d7c7d=_0x18d3cb,_0x5afb5c=this[_0x2d7c7d(0x21b)][_0x2d7c7d(0x231)];this[_0x2d7c7d(0x1f6)]&&_0x5afb5c[_0x2d7c7d(0x1db)](_0x4a8634=>{const _0x15d0ce=_0x2d7c7d;for(let _0x4f4f07=0x1;_0x4f4f07<_0x480b31[_0x15d0ce(0x1f1)];_0x4f4f07++){const _0x46a15d=_0x480b31[_0x4f4f07][_0x15d0ce(0x1e4)],_0x34528f=_0x15d0ce(0x20e)+(_0x4f4f07+0x1);_0x5afb5c[_0x15d0ce(0x208)][_0x15d0ce(0x1f9)](_0x34528f)?_0x4a8634[_0x15d0ce(0x20c)](_0x34528f,{'range':_0x46a15d}):_0x4a8634[_0x15d0ce(0x222)](_0x34528f,{'range':_0x46a15d,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x387ed6=_0x480b31[_0x15d0ce(0x1f1)];_0x387ed6<_0x68c3d9[_0x15d0ce(0x1f1)];_0x387ed6++){const _0x5be4fa=_0x15d0ce(0x20e)+(_0x387ed6+0x1);_0x5afb5c[_0x15d0ce(0x208)][_0x15d0ce(0x1f9)](_0x5be4fa)&&_0x4a8634[_0x15d0ce(0x223)](_0x5be4fa);}});}[_0x18d3cb(0x203)](){const _0x16a88c=_0x18d3cb,_0x13b98d=_0x16a88c(0x1f7);this[_0x16a88c(0x21b)][_0x16a88c(0x1e8)][_0x16a88c(0x22a)](_0x16a88c(0x229))[_0x16a88c(0x21a)](_0x50c156=>{const _0x2e6404=_0x16a88c;_0x50c156['on'](_0x2e6404(0x215)+_0x13b98d,(_0x560696,{markerRange:_0x580b10,markerName:_0x5128e3},_0x1a54e1)=>{const _0x76d14f=_0x2e6404;if(!_0x1a54e1[_0x76d14f(0x1fc)][_0x76d14f(0x1f7)])return;if(!_0x1a54e1[_0x76d14f(0x21f)][_0x76d14f(0x1ef)](_0x580b10,_0x560696[_0x76d14f(0x216)]))return;const _0x21de7a=_0x580b10[_0x76d14f(0x1f8)]();let _0x502fac=_0x21de7a?_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1ed)](_0x21de7a):null;if(!_0x502fac){const _0x111168=_0x580b10[_0x76d14f(0x1e9)];if(_0x1a54e1[_0x76d14f(0x21d)][_0x76d14f(0x206)](_0x111168,_0x76d14f(0x20d))){const _0x4f36f1=_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1f0)](_0x111168);_0x502fac=_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x217)](_0x76d14f(0x1e0)),_0x502fac[_0x76d14f(0x22e)]=()=>null,_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x1ec)](_0x4f36f1,_0x502fac);}else{const _0x2d9ce1=_0x111168[_0x76d14f(0x221)];_0x502fac=_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1ed)](_0x2d9ce1);}}for(;_0x502fac[_0x76d14f(0x1dc)]!==_0x502fac[_0x76d14f(0x205)]&&0x0===_0x502fac[_0x76d14f(0x21c)];)_0x502fac=_0x502fac[_0x76d14f(0x1dc)];const _0x195f2a=_0x5128e3[_0x76d14f(0x1e1)](0xb);_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x22f)](_0x76d14f(0x1fb),_0x76d14f(0x204),_0x502fac),_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x22c)](_0x76d14f(0x1fa),_0x195f2a,_0x502fac),_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1e6)](_0x502fac,_0x5128e3),_0x560696[_0x76d14f(0x1f2)]();});});}}function _0x3e2d(){const _0x4dfd26=['writer','span','substring','20epbrmx','19287SUouMZ','modelRange','pageNumber','bindElementToMarker','_updatePageBreakMarkers','conversion','start','PaginationEditing','19692dlYgPT','insert','toViewElement','paginationLicenseKeyTrialLimit:operations','consume','toViewPosition','length','stop','listenTo','_licenseKeyCheckInterval','pagination-trial-license-key-reached-limit-changes','isEnabled','pagination','getContainedElement','has','data-pagination-page','page-break-before','options','paginationLicenseKeyTrial','50199jJKOOt','bind','Pagination','scrollToPage','3030BJGKtP','_setUpDataDowncastConversion','always','root','checkChild','set','markers','5HfLwIw','476035NsThsy','paginationLicenseKeyInvalid','updateMarker','$text','pagination:','328566OGLYCi','licenseKey','get','2563HdSFYS','requires','paginationLicenseKeyValid','addMarker:','name','createContainerElement','13072813OSjnKl','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20pagination\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','add','editor','index','schema','config','consumable','destroy','nodeAfter','addMarker','removeMarker','plugins','18jqPsoM','info','pagination-invalid-license-key','init','dataDowncast','for','88EujJih','setAttribute','totalPages','getFillerOffset','setStyle','pluginName','model','364552CdAwun','change','parent','mapper','change:pageBreaks'];_0x3e2d=function(){return _0x4dfd26;};return _0x3e2d();}
23
+ import{Plugin as _0x40bf1d}from'ckeditor5/src/core.js';import{CKEditorError as _0x3cb100}from'ckeditor5/src/utils.js';import _0x29e667 from'./paginationlookup.js';import _0x2a7ffb from'./paginationrenderer.js';import'../theme/pagination.css';export default class s extends _0x40bf1d{static get['pluginName'](){return'PaginationEditing';}static get['requires'](){return[_0x29e667,_0x2a7ffb];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x33ee92=this['editor']['plugins']['get']('Pagination'),_0x5c05e4=this['editor']['plugins']['get'](_0x29e667),_0x135ee1=this['editor']['plugins']['get'](_0x2a7ffb);this['bind']('isEnabled')['to'](_0x33ee92),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x135ee1),this['listenTo'](_0x5c05e4,'change:pageBreaks',(_0x488258,_0x534343,_0x334c9c,_0x20dcc8)=>{this['totalPages']=_0x334c9c['length'],this['_updatePageBreakMarkers'](_0x334c9c,_0x20dcc8);}),this['_setupKeystrokes']();const _0x416562=this['editor'];this['licenseKey']=_0x416562['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3877e2;for(const _0x160daa in _0x416562){const _0xfa83b2=_0x160daa,_0x476275=_0x416562[_0xfa83b2];if('paginationLicenseKeyTrial'===_0x476275||'paginationLicenseKeyInvalid'===_0x476275||'paginationLicenseKeyValid'===_0x476275||'paginationLicenseKeyTrialLimit:operations'===_0x476275){delete _0x416562[_0xfa83b2],_0x3877e2=_0x476275;break;}}if('paginationLicenseKeyInvalid'===_0x3877e2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3cb100('pagination-invalid-license-key',null);if('paginationLicenseKeyTrial'===_0x3877e2&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20pagination\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'paginationLicenseKeyTrialLimit:operations'===_0x3877e2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3cb100('pagination-trial-license-key-reached-limit-changes',null);'paginationLicenseKeyValid'===_0x3877e2&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x4086fc){if(!this['isEnabled'])return;this['editor']['plugins']['get'](_0x2a7ffb)['scrollToPage'](this['_validatePageNumber'](_0x4086fc));}['moveSelectionToPage'](_0x35a4f2){if(!this['isEnabled'])return;const _0x4e1eb0=this['editor'],_0x768326=this['editor']['plugins']['get'](_0x29e667)['pageBreaks'][_0x35a4f2-0x1];_0x768326&&_0x4e1eb0['model']['change'](_0x31a507=>{switch(_0x768326['type']){case'manual':{const _0x31f67a=_0x4e1eb0['model']['schema']['getNearestSelectionRange'](_0x768326['modelRange']['end'],'forward');_0x31a507['setSelection'](_0x31f67a);break;}case'element':{const _0x23b102=_0x4e1eb0['model']['schema']['getNearestSelectionRange'](_0x768326['modelRange']['start'],'forward');_0x31a507['setSelection'](_0x23b102);break;}case'text':{const _0x55141f=_0x768326['modelRange']['start'];if('\x20'===_0x55141f['textNode']['data'][_0x55141f['offset']]){const _0x183e70=_0x31a507['createPositionAt'](_0x55141f['parent'],_0x55141f['offset']+0x1);_0x31a507['setSelection'](_0x183e70);}else _0x31a507['setSelection'](_0x768326['modelRange']);}}_0x4e1eb0['editing']['view']['focus']();});}['goToNextPage'](){const _0x3bcf2b=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x3bcf2b),this['scrollToPage'](_0x3bcf2b);}['goToPreviousPage'](){const _0x33a243=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x33a243),this['scrollToPage'](_0x33a243);}['_updatePageBreakMarkers'](_0x425d35,_0x148145){const _0x1f8e93=this['editor']['model'];this['isEnabled']&&_0x1f8e93['change'](_0x22b989=>{for(let _0x3a5c25=0x1;_0x3a5c25<_0x425d35['length'];_0x3a5c25++){const _0x2e01f6=_0x425d35[_0x3a5c25]['modelRange'],_0x5d57ca='pagination:'+(_0x3a5c25+0x1);_0x1f8e93['markers']['has'](_0x5d57ca)?_0x22b989['updateMarker'](_0x5d57ca,{'range':_0x2e01f6}):_0x22b989['addMarker'](_0x5d57ca,{'range':_0x2e01f6,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x54dc36=_0x425d35['length'];_0x54dc36<_0x148145['length'];_0x54dc36++){const _0x3d512c='pagination:'+(_0x54dc36+0x1);_0x1f8e93['markers']['has'](_0x3d512c)&&_0x22b989['removeMarker'](_0x3d512c);}});}['_setUpDataDowncastConversion'](){const _0x5840be='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x4b9edb=>{_0x4b9edb['on']('addMarker:'+_0x5840be,(_0x3dcbe3,{markerRange:_0x264fb8,markerName:_0x44edea},_0x2df03c)=>{if(!_0x2df03c['options']['pagination'])return;if(!_0x2df03c['consumable']['consume'](_0x264fb8,_0x3dcbe3['name']))return;const _0x3cac98=_0x264fb8['getContainedElement']();let _0x460990=_0x3cac98?_0x2df03c['mapper']['toViewElement'](_0x3cac98):null;if(!_0x460990){const _0x4fde48=_0x264fb8['start'];if(_0x2df03c['schema']['checkChild'](_0x4fde48,'$text')){const _0x23bdff=_0x2df03c['mapper']['toViewPosition'](_0x4fde48);_0x460990=_0x2df03c['writer']['createContainerElement']('span'),_0x460990['getFillerOffset']=()=>null,_0x2df03c['writer']['insert'](_0x23bdff,_0x460990);}else{const _0xfb85bc=_0x4fde48['nodeAfter'];_0x460990=_0x2df03c['mapper']['toViewElement'](_0xfb85bc);}}for(;_0x460990['parent']!==_0x460990['root']&&0x0===_0x460990['index'];)_0x460990=_0x460990['parent'];const _0x455390=_0x44edea['substring'](0xb);_0x2df03c['writer']['setStyle']('page-break-before','always',_0x460990),_0x2df03c['writer']['setAttribute']('data-pagination-page',_0x455390,_0x460990),_0x2df03c['mapper']['bindElementToMarker'](_0x460990,_0x44edea),_0x3dcbe3['stop']();});});}['_setupKeystrokes'](){const _0x29b2b1=this['editor'],t=_0x29b2b1['locale']['t'];_0x29b2b1['keystrokes']['set']('Shift+Pageup',(_0x312565,_0x53bee2)=>{this['goToPreviousPage'](),_0x53bee2();}),_0x29b2b1['keystrokes']['set']('Shift+Pagedown',(_0x81911a,_0x55dd87)=>{this['goToNextPage'](),_0x55dd87();}),_0x29b2b1['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':t('Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x423116){return _0x423116<0x1&&(_0x423116=0x1),_0x423116>this['totalPages']&&(_0x423116=this['totalPages']),_0x423116;}}