@ckeditor/ckeditor5-pagination 0.0.0-internal-20241017.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 (253) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +22 -0
  3. package/README.md +44 -0
  4. package/build/pagination.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/es.js +1 -0
  14. package/build/translations/et.js +1 -0
  15. package/build/translations/fi.js +1 -0
  16. package/build/translations/fr.js +1 -0
  17. package/build/translations/gl.js +1 -0
  18. package/build/translations/he.js +1 -0
  19. package/build/translations/hi.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr.js +1 -0
  37. package/build/translations/sv.js +1 -0
  38. package/build/translations/th.js +1 -0
  39. package/build/translations/tr.js +1 -0
  40. package/build/translations/uk.js +1 -0
  41. package/build/translations/vi.js +1 -0
  42. package/build/translations/zh-cn.js +1 -0
  43. package/build/translations/zh.js +1 -0
  44. package/ckeditor5-metadata.json +36 -0
  45. package/dist/augmentation.d.ts +23 -0
  46. package/dist/index-content.css +5 -0
  47. package/dist/index-editor.css +96 -0
  48. package/dist/index.css +182 -0
  49. package/dist/index.d.ts +13 -0
  50. package/dist/index.js +23 -0
  51. package/dist/legacyerrors.d.ts +24 -0
  52. package/dist/pagination.d.ts +147 -0
  53. package/dist/paginationediting.d.ts +82 -0
  54. package/dist/paginationlookup.d.ts +70 -0
  55. package/dist/paginationrenderer.d.ts +52 -0
  56. package/dist/paginationui.d.ts +37 -0
  57. package/dist/translations/ar.d.ts +8 -0
  58. package/dist/translations/ar.js +23 -0
  59. package/dist/translations/ar.umd.js +23 -0
  60. package/dist/translations/bg.d.ts +8 -0
  61. package/dist/translations/bg.js +23 -0
  62. package/dist/translations/bg.umd.js +23 -0
  63. package/dist/translations/bn.d.ts +8 -0
  64. package/dist/translations/bn.js +23 -0
  65. package/dist/translations/bn.umd.js +23 -0
  66. package/dist/translations/ca.d.ts +8 -0
  67. package/dist/translations/ca.js +23 -0
  68. package/dist/translations/ca.umd.js +23 -0
  69. package/dist/translations/cs.d.ts +8 -0
  70. package/dist/translations/cs.js +23 -0
  71. package/dist/translations/cs.umd.js +23 -0
  72. package/dist/translations/da.d.ts +8 -0
  73. package/dist/translations/da.js +23 -0
  74. package/dist/translations/da.umd.js +23 -0
  75. package/dist/translations/de.d.ts +8 -0
  76. package/dist/translations/de.js +23 -0
  77. package/dist/translations/de.umd.js +23 -0
  78. package/dist/translations/el.d.ts +8 -0
  79. package/dist/translations/el.js +23 -0
  80. package/dist/translations/el.umd.js +23 -0
  81. package/dist/translations/en.d.ts +8 -0
  82. package/dist/translations/en.js +23 -0
  83. package/dist/translations/en.umd.js +23 -0
  84. package/dist/translations/es.d.ts +8 -0
  85. package/dist/translations/es.js +23 -0
  86. package/dist/translations/es.umd.js +23 -0
  87. package/dist/translations/et.d.ts +8 -0
  88. package/dist/translations/et.js +23 -0
  89. package/dist/translations/et.umd.js +23 -0
  90. package/dist/translations/fi.d.ts +8 -0
  91. package/dist/translations/fi.js +23 -0
  92. package/dist/translations/fi.umd.js +23 -0
  93. package/dist/translations/fr.d.ts +8 -0
  94. package/dist/translations/fr.js +23 -0
  95. package/dist/translations/fr.umd.js +23 -0
  96. package/dist/translations/gl.d.ts +8 -0
  97. package/dist/translations/gl.js +23 -0
  98. package/dist/translations/gl.umd.js +23 -0
  99. package/dist/translations/he.d.ts +8 -0
  100. package/dist/translations/he.js +23 -0
  101. package/dist/translations/he.umd.js +23 -0
  102. package/dist/translations/hi.d.ts +8 -0
  103. package/dist/translations/hi.js +23 -0
  104. package/dist/translations/hi.umd.js +23 -0
  105. package/dist/translations/hu.d.ts +8 -0
  106. package/dist/translations/hu.js +23 -0
  107. package/dist/translations/hu.umd.js +23 -0
  108. package/dist/translations/id.d.ts +8 -0
  109. package/dist/translations/id.js +23 -0
  110. package/dist/translations/id.umd.js +23 -0
  111. package/dist/translations/it.d.ts +8 -0
  112. package/dist/translations/it.js +23 -0
  113. package/dist/translations/it.umd.js +23 -0
  114. package/dist/translations/ja.d.ts +8 -0
  115. package/dist/translations/ja.js +23 -0
  116. package/dist/translations/ja.umd.js +23 -0
  117. package/dist/translations/ko.d.ts +8 -0
  118. package/dist/translations/ko.js +23 -0
  119. package/dist/translations/ko.umd.js +23 -0
  120. package/dist/translations/lt.d.ts +8 -0
  121. package/dist/translations/lt.js +23 -0
  122. package/dist/translations/lt.umd.js +23 -0
  123. package/dist/translations/lv.d.ts +8 -0
  124. package/dist/translations/lv.js +23 -0
  125. package/dist/translations/lv.umd.js +23 -0
  126. package/dist/translations/ms.d.ts +8 -0
  127. package/dist/translations/ms.js +23 -0
  128. package/dist/translations/ms.umd.js +23 -0
  129. package/dist/translations/nl.d.ts +8 -0
  130. package/dist/translations/nl.js +23 -0
  131. package/dist/translations/nl.umd.js +23 -0
  132. package/dist/translations/no.d.ts +8 -0
  133. package/dist/translations/no.js +23 -0
  134. package/dist/translations/no.umd.js +23 -0
  135. package/dist/translations/pl.d.ts +8 -0
  136. package/dist/translations/pl.js +23 -0
  137. package/dist/translations/pl.umd.js +23 -0
  138. package/dist/translations/pt-br.d.ts +8 -0
  139. package/dist/translations/pt-br.js +23 -0
  140. package/dist/translations/pt-br.umd.js +23 -0
  141. package/dist/translations/pt.d.ts +8 -0
  142. package/dist/translations/pt.js +23 -0
  143. package/dist/translations/pt.umd.js +23 -0
  144. package/dist/translations/ro.d.ts +8 -0
  145. package/dist/translations/ro.js +23 -0
  146. package/dist/translations/ro.umd.js +23 -0
  147. package/dist/translations/ru.d.ts +8 -0
  148. package/dist/translations/ru.js +23 -0
  149. package/dist/translations/ru.umd.js +23 -0
  150. package/dist/translations/sk.d.ts +8 -0
  151. package/dist/translations/sk.js +23 -0
  152. package/dist/translations/sk.umd.js +23 -0
  153. package/dist/translations/sr.d.ts +8 -0
  154. package/dist/translations/sr.js +23 -0
  155. package/dist/translations/sr.umd.js +23 -0
  156. package/dist/translations/sv.d.ts +8 -0
  157. package/dist/translations/sv.js +23 -0
  158. package/dist/translations/sv.umd.js +23 -0
  159. package/dist/translations/th.d.ts +8 -0
  160. package/dist/translations/th.js +23 -0
  161. package/dist/translations/th.umd.js +23 -0
  162. package/dist/translations/tr.d.ts +8 -0
  163. package/dist/translations/tr.js +23 -0
  164. package/dist/translations/tr.umd.js +23 -0
  165. package/dist/translations/uk.d.ts +8 -0
  166. package/dist/translations/uk.js +23 -0
  167. package/dist/translations/uk.umd.js +23 -0
  168. package/dist/translations/vi.d.ts +8 -0
  169. package/dist/translations/vi.js +23 -0
  170. package/dist/translations/vi.umd.js +23 -0
  171. package/dist/translations/zh-cn.d.ts +8 -0
  172. package/dist/translations/zh-cn.js +23 -0
  173. package/dist/translations/zh-cn.umd.js +23 -0
  174. package/dist/translations/zh.d.ts +8 -0
  175. package/dist/translations/zh.js +23 -0
  176. package/dist/translations/zh.umd.js +23 -0
  177. package/dist/ui/linesrepository.d.ts +38 -0
  178. package/dist/ui/lineview.d.ts +57 -0
  179. package/dist/ui/pagenavigatorview.d.ts +65 -0
  180. package/dist/utils/common-translations.d.ts +13 -0
  181. package/lang/contexts.json +8 -0
  182. package/lang/translations/ar.po +42 -0
  183. package/lang/translations/bg.po +42 -0
  184. package/lang/translations/bn.po +42 -0
  185. package/lang/translations/ca.po +42 -0
  186. package/lang/translations/cs.po +42 -0
  187. package/lang/translations/da.po +42 -0
  188. package/lang/translations/de.po +42 -0
  189. package/lang/translations/el.po +42 -0
  190. package/lang/translations/en.po +42 -0
  191. package/lang/translations/es.po +42 -0
  192. package/lang/translations/et.po +42 -0
  193. package/lang/translations/fi.po +42 -0
  194. package/lang/translations/fr.po +42 -0
  195. package/lang/translations/gl.po +42 -0
  196. package/lang/translations/he.po +42 -0
  197. package/lang/translations/hi.po +42 -0
  198. package/lang/translations/hu.po +42 -0
  199. package/lang/translations/id.po +42 -0
  200. package/lang/translations/it.po +42 -0
  201. package/lang/translations/ja.po +42 -0
  202. package/lang/translations/ko.po +42 -0
  203. package/lang/translations/lt.po +42 -0
  204. package/lang/translations/lv.po +42 -0
  205. package/lang/translations/ms.po +42 -0
  206. package/lang/translations/nl.po +42 -0
  207. package/lang/translations/no.po +42 -0
  208. package/lang/translations/pl.po +42 -0
  209. package/lang/translations/pt-br.po +42 -0
  210. package/lang/translations/pt.po +42 -0
  211. package/lang/translations/ro.po +42 -0
  212. package/lang/translations/ru.po +42 -0
  213. package/lang/translations/sk.po +42 -0
  214. package/lang/translations/sr.po +42 -0
  215. package/lang/translations/sv.po +42 -0
  216. package/lang/translations/th.po +42 -0
  217. package/lang/translations/tr.po +42 -0
  218. package/lang/translations/uk.po +42 -0
  219. package/lang/translations/vi.po +42 -0
  220. package/lang/translations/zh-cn.po +42 -0
  221. package/lang/translations/zh.po +42 -0
  222. package/package.json +38 -0
  223. package/src/augmentation.d.ts +19 -0
  224. package/src/augmentation.js +23 -0
  225. package/src/index.d.ts +9 -0
  226. package/src/index.js +23 -0
  227. package/src/legacyerrors.d.ts +20 -0
  228. package/src/legacyerrors.js +23 -0
  229. package/src/pagination.d.ts +143 -0
  230. package/src/pagination.js +23 -0
  231. package/src/paginationediting.d.ts +78 -0
  232. package/src/paginationediting.js +23 -0
  233. package/src/paginationlookup.d.ts +66 -0
  234. package/src/paginationlookup.js +23 -0
  235. package/src/paginationrenderer.d.ts +48 -0
  236. package/src/paginationrenderer.js +23 -0
  237. package/src/paginationui.d.ts +33 -0
  238. package/src/paginationui.js +23 -0
  239. package/src/ui/linesrepository.d.ts +34 -0
  240. package/src/ui/linesrepository.js +23 -0
  241. package/src/ui/lineview.d.ts +53 -0
  242. package/src/ui/lineview.js +23 -0
  243. package/src/ui/pagenavigatorview.d.ts +61 -0
  244. package/src/ui/pagenavigatorview.js +23 -0
  245. package/src/utils/common-translations.d.ts +9 -0
  246. package/src/utils/common-translations.js +23 -0
  247. package/theme/icons/arrow-down.svg +1 -0
  248. package/theme/icons/arrow-up.svg +1 -0
  249. package/theme/icons/pagination-example.svg +1 -0
  250. package/theme/icons/print.svg +1 -0
  251. package/theme/line.css +30 -0
  252. package/theme/pagenavigator.css +46 -0
  253. package/theme/pagination.css +72 -0
package/theme/line.css ADDED
@@ -0,0 +1,30 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * 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
+ .ck.ck-pagination-view-line {
11
+ position: absolute;
12
+ height: 0;
13
+ border-top: 1px dotted var(--ck-color-pagination-divider);
14
+ pointer-events: none;
15
+
16
+ &::after {
17
+ content: attr(data-page-number);
18
+ font-size: 10px;
19
+ background: hsl(0, 0%, 77%);
20
+ color: var(--ck-color-base-background);
21
+ display: inline-block;
22
+ position: absolute;
23
+ right: -1px;
24
+ transform: translateX(100%);
25
+ min-width: 18px;
26
+ text-align: center;
27
+ top: -1px;
28
+ padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
29
+ }
30
+ }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * 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
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
11
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
12
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
13
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css";
14
+
15
+ .ck.ck-page-navigator {
16
+ padding: 0 var(--ck-spacing-standard);
17
+ line-height: 1;
18
+
19
+ & > .ck-input-number {
20
+ width: var(--ck-ui-component-min-height);
21
+ min-width: var(--ck-ui-component-min-height);
22
+
23
+ background: transparent;
24
+ text-align: center;
25
+
26
+ /* Disable native increment/decrement buttons (FF). */
27
+ -moz-appearance: textfield;
28
+
29
+ /* Disable native increment/decrement buttons (Webkit). */
30
+ &::-webkit-inner-spin-button,
31
+ &::-webkit-outer-spin-button {
32
+ -webkit-appearance: none;
33
+ margin: 0;
34
+ }
35
+
36
+ &:not(:focus) {
37
+ border: 1px solid transparent;
38
+ border-bottom: 1px solid var(--ck-color-base-border);
39
+ }
40
+ }
41
+
42
+ & > span::before {
43
+ content: '/';
44
+ margin: 0 var(--ck-spacing-standard);
45
+ }
46
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * 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
+ :root {
11
+ --ck-color-pagination-divider: hsl(0, 0%, 67%);
12
+ }
13
+
14
+ /*
15
+ * Content styles.
16
+ */
17
+
18
+ .ck.ck-pagination_enabled {
19
+ &.ck-content .page-break::after {
20
+ display: none;
21
+ }
22
+
23
+ &.ck-editor__editable.ck-pagination-view {
24
+ & .ck-widget__type-around {
25
+ display: none;
26
+ }
27
+
28
+ /*
29
+ * From time to time placing page-break directly after a block element with margin causes appending a new blank page in pagination mode.
30
+ * Removing margin-bottom from the block element fixes that issue and the margin is not being moved to the next blank page.
31
+ *
32
+ * Identical CSS rule is also present in the page break CSS files so keep them in sync to make sure that the issue is fixed both in the
33
+ * editor preview and in the printed content (used by the export document plugins).
34
+ *
35
+ * See more: https://github.com/cksource/ckeditor5-commercial/issues/6289.
36
+ */
37
+ & *:has(+ .page-break) {
38
+ margin-bottom: 0;
39
+ }
40
+
41
+ & .page-break {
42
+ padding: 0;
43
+ margin: 0;
44
+ break-after: column;
45
+ display: block;
46
+ height: 0;
47
+
48
+ & .page-break__label {
49
+ display: none;
50
+ }
51
+
52
+ &::after {
53
+ display: none;
54
+ }
55
+
56
+ }
57
+
58
+ & .ck-table-column-resizer {
59
+ display: none;
60
+ }
61
+
62
+ & .table table {
63
+
64
+ /*
65
+ * Tables that have overflow set to hidden are incorrectly split between pages on the chrome. Reset the overflow to initial fixes this issue.
66
+ *
67
+ * See: https://github.com/ckeditor/ckeditor5/issues/14426.
68
+ */
69
+ overflow: initial;
70
+ }
71
+ }
72
+ }