@ckeditor/ckeditor5-pagination 48.8.1-alpha.3 → 49.0.0-alpha.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 (163) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/augmentation.d.ts +17 -17
  3. package/dist/index-editor.css +156 -140
  4. package/dist/index.css +144 -128
  5. package/dist/index.d.ts +10 -8
  6. package/dist/index.js +2 -2
  7. package/dist/legacyerrors.d.ts +0 -4
  8. package/dist/pagination.d.ts +124 -132
  9. package/dist/paginationediting.d.ts +72 -73
  10. package/dist/paginationlookup.d.ts +58 -58
  11. package/dist/paginationrenderer.d.ts +52 -52
  12. package/dist/paginationui.d.ts +28 -28
  13. package/dist/translations/af.js +1 -1
  14. package/dist/translations/af.umd.js +1 -1
  15. package/dist/translations/ar.js +1 -1
  16. package/dist/translations/ar.umd.js +1 -1
  17. package/dist/translations/ast.js +1 -1
  18. package/dist/translations/ast.umd.js +1 -1
  19. package/dist/translations/az.js +1 -1
  20. package/dist/translations/az.umd.js +1 -1
  21. package/dist/translations/be.js +1 -1
  22. package/dist/translations/be.umd.js +1 -1
  23. package/dist/translations/bg.js +1 -1
  24. package/dist/translations/bg.umd.js +1 -1
  25. package/dist/translations/bn.js +1 -1
  26. package/dist/translations/bn.umd.js +1 -1
  27. package/dist/translations/bs.js +1 -1
  28. package/dist/translations/bs.umd.js +1 -1
  29. package/dist/translations/ca.js +1 -1
  30. package/dist/translations/ca.umd.js +1 -1
  31. package/dist/translations/cs.js +1 -1
  32. package/dist/translations/cs.umd.js +1 -1
  33. package/dist/translations/da.js +1 -1
  34. package/dist/translations/da.umd.js +1 -1
  35. package/dist/translations/de-ch.js +1 -1
  36. package/dist/translations/de-ch.umd.js +1 -1
  37. package/dist/translations/de.js +1 -1
  38. package/dist/translations/de.umd.js +1 -1
  39. package/dist/translations/el.js +1 -1
  40. package/dist/translations/el.umd.js +1 -1
  41. package/dist/translations/en-au.js +1 -1
  42. package/dist/translations/en-au.umd.js +1 -1
  43. package/dist/translations/en-gb.js +1 -1
  44. package/dist/translations/en-gb.umd.js +1 -1
  45. package/dist/translations/en.js +1 -1
  46. package/dist/translations/en.umd.js +1 -1
  47. package/dist/translations/eo.js +1 -1
  48. package/dist/translations/eo.umd.js +1 -1
  49. package/dist/translations/es-co.js +1 -1
  50. package/dist/translations/es-co.umd.js +1 -1
  51. package/dist/translations/es.js +1 -1
  52. package/dist/translations/es.umd.js +1 -1
  53. package/dist/translations/et.js +1 -1
  54. package/dist/translations/et.umd.js +1 -1
  55. package/dist/translations/eu.js +1 -1
  56. package/dist/translations/eu.umd.js +1 -1
  57. package/dist/translations/fa.js +1 -1
  58. package/dist/translations/fa.umd.js +1 -1
  59. package/dist/translations/fi.js +1 -1
  60. package/dist/translations/fi.umd.js +1 -1
  61. package/dist/translations/fr.js +1 -1
  62. package/dist/translations/fr.umd.js +1 -1
  63. package/dist/translations/gl.js +1 -1
  64. package/dist/translations/gl.umd.js +1 -1
  65. package/dist/translations/gu.js +1 -1
  66. package/dist/translations/gu.umd.js +1 -1
  67. package/dist/translations/he.js +1 -1
  68. package/dist/translations/he.umd.js +1 -1
  69. package/dist/translations/hi.js +1 -1
  70. package/dist/translations/hi.umd.js +1 -1
  71. package/dist/translations/hr.js +1 -1
  72. package/dist/translations/hr.umd.js +1 -1
  73. package/dist/translations/hu.js +1 -1
  74. package/dist/translations/hu.umd.js +1 -1
  75. package/dist/translations/hy.js +1 -1
  76. package/dist/translations/hy.umd.js +1 -1
  77. package/dist/translations/id.js +1 -1
  78. package/dist/translations/id.umd.js +1 -1
  79. package/dist/translations/it.js +1 -1
  80. package/dist/translations/it.umd.js +1 -1
  81. package/dist/translations/ja.js +1 -1
  82. package/dist/translations/ja.umd.js +1 -1
  83. package/dist/translations/jv.js +1 -1
  84. package/dist/translations/jv.umd.js +1 -1
  85. package/dist/translations/kk.js +1 -1
  86. package/dist/translations/kk.umd.js +1 -1
  87. package/dist/translations/km.js +1 -1
  88. package/dist/translations/km.umd.js +1 -1
  89. package/dist/translations/kn.js +1 -1
  90. package/dist/translations/kn.umd.js +1 -1
  91. package/dist/translations/ko.js +1 -1
  92. package/dist/translations/ko.umd.js +1 -1
  93. package/dist/translations/ku.js +1 -1
  94. package/dist/translations/ku.umd.js +1 -1
  95. package/dist/translations/lt.js +1 -1
  96. package/dist/translations/lt.umd.js +1 -1
  97. package/dist/translations/lv.js +1 -1
  98. package/dist/translations/lv.umd.js +1 -1
  99. package/dist/translations/ms.js +1 -1
  100. package/dist/translations/ms.umd.js +1 -1
  101. package/dist/translations/nb.js +1 -1
  102. package/dist/translations/nb.umd.js +1 -1
  103. package/dist/translations/ne.js +1 -1
  104. package/dist/translations/ne.umd.js +1 -1
  105. package/dist/translations/nl.js +1 -1
  106. package/dist/translations/nl.umd.js +1 -1
  107. package/dist/translations/no.js +1 -1
  108. package/dist/translations/no.umd.js +1 -1
  109. package/dist/translations/oc.js +1 -1
  110. package/dist/translations/oc.umd.js +1 -1
  111. package/dist/translations/pl.js +1 -1
  112. package/dist/translations/pl.umd.js +1 -1
  113. package/dist/translations/pt-br.js +1 -1
  114. package/dist/translations/pt-br.umd.js +1 -1
  115. package/dist/translations/pt.js +1 -1
  116. package/dist/translations/pt.umd.js +1 -1
  117. package/dist/translations/ro.js +1 -1
  118. package/dist/translations/ro.umd.js +1 -1
  119. package/dist/translations/ru.js +1 -1
  120. package/dist/translations/ru.umd.js +1 -1
  121. package/dist/translations/si.js +1 -1
  122. package/dist/translations/si.umd.js +1 -1
  123. package/dist/translations/sk.js +1 -1
  124. package/dist/translations/sk.umd.js +1 -1
  125. package/dist/translations/sl.js +1 -1
  126. package/dist/translations/sl.umd.js +1 -1
  127. package/dist/translations/sq.js +1 -1
  128. package/dist/translations/sq.umd.js +1 -1
  129. package/dist/translations/sr-latn.js +1 -1
  130. package/dist/translations/sr-latn.umd.js +1 -1
  131. package/dist/translations/sr.js +1 -1
  132. package/dist/translations/sr.umd.js +1 -1
  133. package/dist/translations/sv.js +1 -1
  134. package/dist/translations/sv.umd.js +1 -1
  135. package/dist/translations/th.js +1 -1
  136. package/dist/translations/th.umd.js +1 -1
  137. package/dist/translations/ti.js +1 -1
  138. package/dist/translations/ti.umd.js +1 -1
  139. package/dist/translations/tk.js +1 -1
  140. package/dist/translations/tk.umd.js +1 -1
  141. package/dist/translations/tr.js +1 -1
  142. package/dist/translations/tr.umd.js +1 -1
  143. package/dist/translations/tt.js +1 -1
  144. package/dist/translations/tt.umd.js +1 -1
  145. package/dist/translations/ug.js +1 -1
  146. package/dist/translations/ug.umd.js +1 -1
  147. package/dist/translations/uk.js +1 -1
  148. package/dist/translations/uk.umd.js +1 -1
  149. package/dist/translations/ur.js +1 -1
  150. package/dist/translations/ur.umd.js +1 -1
  151. package/dist/translations/uz.js +1 -1
  152. package/dist/translations/uz.umd.js +1 -1
  153. package/dist/translations/vi.js +1 -1
  154. package/dist/translations/vi.umd.js +1 -1
  155. package/dist/translations/zh-cn.js +1 -1
  156. package/dist/translations/zh-cn.umd.js +1 -1
  157. package/dist/translations/zh.js +1 -1
  158. package/dist/translations/zh.umd.js +1 -1
  159. package/dist/ui/linesrepository.d.ts +40 -34
  160. package/dist/ui/lineview.d.ts +47 -48
  161. package/dist/ui/pagenavigatorview.d.ts +52 -53
  162. package/dist/utils/common-translations.d.ts +6 -6
  163. package/package.json +7 -7
package/LICENSE.md CHANGED
@@ -14,7 +14,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
14
14
 
15
15
  The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
16
16
 
17
- * es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
17
+ * es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
18
18
 
19
19
  Trademarks
20
20
  ----------
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { PaginationConfig, Pagination } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
- * package.
11
- *
12
- * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
- */
14
- pagination?: PaginationConfig;
15
- }
16
- interface PluginsMap {
17
- [Pagination.pluginName]: Pagination;
18
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { PaginationConfig, Pagination } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
+ * package.
11
+ *
12
+ * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
+ */
14
+ pagination?: PaginationConfig;
15
+ }
16
+ interface PluginsMap {
17
+ [Pagination.pluginName]: Pagination;
18
+ }
19
19
  }
@@ -2,144 +2,160 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root{
6
- --ck-color-pagination-divider:#ababab;
7
- }
8
-
9
- .ck.ck-pagination_enabled.ck-content .page-break:after{
10
- display:none;
11
- }
12
-
13
- .ck.ck-pagination_enabled.ck-pagination-view > .ck-content{
14
- box-sizing:border-box;
15
- width:auto;
16
- min-width:auto;
17
- max-width:none;
18
- height:auto;
19
- min-height:auto;
20
- max-height:none;
21
- overflow:unset;
22
- border:none;
23
- margin:0;
24
- padding:0;
25
- }
26
-
27
- .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__type-around, .ck.ck-pagination_enabled.ck-pagination-view .ck-fake-selection-container, .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__selection-handle, .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__resizer, .ck.ck-pagination_enabled.ck-pagination-view .ck-table-column-resizer{
28
- display:none;
29
- }
30
-
31
- .ck.ck-pagination_enabled.ck-pagination-view .ck-widget{
32
- outline:none;
33
- }
34
-
35
- .ck.ck-pagination_enabled.ck-pagination-view .ck-editor__nested-editable:not(td, th){
36
- border:0;
37
- }
38
-
39
- .ck.ck-pagination_enabled.ck-pagination-view p:first-child{
40
- padding-top:0;
41
- }
42
-
43
- .ck.ck-pagination_enabled.ck-pagination-view :has( + .page-break){
44
- margin-bottom:0;
45
- }
46
-
47
- .ck.ck-pagination_enabled.ck-pagination-view .page-break{
48
- break-after:column;
49
- height:0;
50
- margin:0;
51
- padding:0;
52
- display:block;
53
- }
54
-
55
- .ck.ck-pagination_enabled.ck-pagination-view .page-break .page-break__label, .ck.ck-pagination_enabled.ck-pagination-view .page-break:after{
56
- display:none;
57
- }
58
-
59
- .ck.ck-pagination_enabled.ck-pagination-view .table table{
60
- overflow:initial;
61
- }
62
-
63
- .ck.ck-pagination_enabled.ck-pagination-view blockquote{
64
- overflow:initial;
65
- display:flow-root;
66
- }
67
-
68
- .ck.ck-pagination_enabled.ck-pagination-view .ck-bookmark{
69
- width:0;
70
- height:0;
71
- overflow:hidden;
72
- }
73
-
74
- .ck.ck-pagination_enabled.ck-pagination-view figure.table:not(.layout-table):has( > figcaption) > table{
75
- width:fit-content;
76
- height:fit-content;
77
- }
78
-
79
- .ck.ck-pagination_enabled.ck-pagination-view figure.table:not(.layout-table):not(:has( > figcaption)){
80
- width:fit-content;
81
- display:block;
82
- }
83
-
84
- .ck.ck-pagination_enabled.ck-pagination-view .table-of-contents{
85
- border:0;
86
- }
87
-
88
- .ck.ck-pagination_enabled.ck-pagination-view .table-of-contents ol li{
89
- overflow:visible;
90
- }
91
-
92
- .ck.ck-page-navigator{
93
- padding:0 var(--ck-spacing-standard);
94
- line-height:1;
95
- }
96
-
97
- .ck.ck-page-navigator > .ck-input-number{
98
- width:var(--ck-ui-component-min-height);
99
- min-width:var(--ck-ui-component-min-height);
100
- text-align:center;
101
- -moz-appearance:textfield;
102
- background:none;
103
- }
104
-
105
- .ck.ck-page-navigator > .ck-input-number::-webkit-inner-spin-button{
106
- -webkit-appearance:none;
107
- margin:0;
108
- }
109
-
110
- .ck.ck-page-navigator > .ck-input-number::-webkit-outer-spin-button{
111
- -webkit-appearance:none;
112
- margin:0;
113
- }
114
-
115
- .ck.ck-page-navigator > .ck-input-number:not(:focus){
116
- border:1px solid #0000;
117
- border-bottom:1px solid var(--ck-color-base-border);
118
- }
119
-
120
- .ck.ck-page-navigator > span:before{
121
- content:"/";
122
- margin:0 var(--ck-spacing-standard);
123
- }
124
-
125
- .ck.ck-pagination-view-line{
126
- border-top:1px dotted var(--ck-color-pagination-divider);
127
- pointer-events:none;
128
- height:0;
129
- position:absolute;
130
- }
131
-
132
- .ck.ck-pagination-view-line:after{
133
- content:attr(data-page-number);
134
- color:var(--ck-color-base-background);
135
- text-align:center;
136
- min-width:18px;
137
- padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
138
- background:#c4c4c4;
139
- font-size:10px;
140
- display:inline-block;
141
- position:absolute;
142
- top:-1px;
143
- right:-1px;
144
- transform:translateX(100%);
5
+ :root, :host {
6
+ --ck-pagination-divider-color: var(--ck-color-pagination-divider, #ababab);
7
+ --ck-pagination-label-background-color: #c4c4c4;
8
+ --ck-pagination-label-border-radius: 0 var(--ck-border-radius-control-small) var(--ck-border-radius-control-small) 0;
9
+ }
10
+
11
+ .ck.ck-pagination_enabled {
12
+ &.ck-content .page-break:after {
13
+ display: none;
14
+ }
15
+
16
+ &.ck-pagination-view {
17
+ & > .ck-content {
18
+ box-sizing: border-box;
19
+ width: auto;
20
+ min-width: auto;
21
+ max-width: none;
22
+ height: auto;
23
+ min-height: auto;
24
+ max-height: none;
25
+ overflow: unset;
26
+ border: none;
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ & .ck-widget__type-around, & .ck-fake-selection-container, & .ck-widget__selection-handle, & .ck-widget__resizer, & .ck-table-column-resizer {
32
+ display: none;
33
+ }
34
+
35
+ & .ck-widget {
36
+ outline: none;
37
+ }
38
+
39
+ & .ck-editor__nested-editable:not(td, th) {
40
+ border: 0;
41
+ }
42
+
43
+ & p:first-child {
44
+ padding-top: 0;
45
+ }
46
+
47
+ & :has( + .page-break) {
48
+ margin-bottom: 0;
49
+ }
50
+
51
+ & .page-break {
52
+ break-after: column;
53
+ height: 0;
54
+ margin: 0;
55
+ padding: 0;
56
+ display: block;
57
+
58
+ & .page-break__label, &:after {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ & .table table {
64
+ overflow: initial;
65
+ }
66
+
67
+ & blockquote {
68
+ overflow: initial;
69
+ display: flow-root;
70
+ }
71
+
72
+ & .ck-bookmark {
73
+ width: 0;
74
+ height: 0;
75
+ overflow: hidden;
76
+ }
77
+
78
+ & figure.table:not(.layout-table) {
79
+ &:has( > figcaption) > table {
80
+ width: fit-content;
81
+ height: fit-content;
82
+ }
83
+
84
+ &:not(:has( > figcaption)) {
85
+ width: fit-content;
86
+ display: block;
87
+ }
88
+ }
89
+
90
+ & .table-of-contents {
91
+ border: 0;
92
+
93
+ & ol li {
94
+ overflow: visible;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ :root, :host {
101
+ --ck-page-navigator-font-size: var(--ck-font-size-md);
102
+ }
103
+
104
+ .ck.ck-page-navigator {
105
+ padding: 0 var(--ck-spacing-control-padding-inline);
106
+ font-variant-numeric: tabular-nums;
107
+ line-height: 1;
108
+
109
+ & > .ck-input-number {
110
+ width: calc(4ch + 2 * var(--ck-spacing-padding-compact) + 2px);
111
+ min-width: calc(4ch + 2 * var(--ck-spacing-padding-compact) + 2px);
112
+ font-size: var(--ck-page-navigator-font-size);
113
+ text-align: center;
114
+ -moz-appearance: textfield;
115
+ background: none;
116
+
117
+ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
118
+ -webkit-appearance: none;
119
+ margin: 0;
120
+ }
121
+
122
+ &:not(:focus) {
123
+ border: 1px solid #0000;
124
+ border-bottom: 1px solid var(--ck-color-border-control);
125
+ }
126
+ }
127
+
128
+ & > span {
129
+ font-size: var(--ck-page-navigator-font-size);
130
+ min-width: calc(2 * var(--ck-spacing-standard, var(--ck-spacing-base)) + 5ch);
131
+ display: inline-block;
132
+
133
+ &:before {
134
+ content: "/";
135
+ margin: 0 var(--ck-spacing-standard, var(--ck-spacing-base));
136
+ }
137
+ }
138
+ }
139
+
140
+ .ck.ck-pagination-view-line {
141
+ border-top: 1px dotted var(--ck-pagination-divider-color);
142
+ pointer-events: none;
143
+ height: 0;
144
+ position: absolute;
145
+
146
+ &:after {
147
+ content: attr(data-page-number);
148
+ font-size: var(--ck-font-size-xs);
149
+ background: var(--ck-pagination-label-background-color);
150
+ border-radius: var(--ck-pagination-label-border-radius);
151
+ color: var(--ck-color-text-inverse);
152
+ text-align: center;
153
+ min-width: 18px;
154
+ padding: var(--ck-spacing-padding-tight);
155
+ display: inline-block;
156
+ position: absolute;
157
+ top: -1px;
158
+ right: -1px;
159
+ transform: translateX(100%);
160
+ }
145
161
  }
package/dist/index.css CHANGED
@@ -2,144 +2,160 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root {
6
- --ck-color-pagination-divider: #ababab;
7
- }
8
-
9
- .ck.ck-pagination_enabled.ck-content .page-break:after {
10
- display: none;
11
- }
12
-
13
- .ck.ck-pagination_enabled.ck-pagination-view > .ck-content {
14
- box-sizing: border-box;
15
- width: auto;
16
- min-width: auto;
17
- max-width: none;
18
- height: auto;
19
- min-height: auto;
20
- max-height: none;
21
- overflow: unset;
22
- border: none;
23
- margin: 0;
24
- padding: 0;
25
- }
26
-
27
- .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__type-around, .ck.ck-pagination_enabled.ck-pagination-view .ck-fake-selection-container, .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__selection-handle, .ck.ck-pagination_enabled.ck-pagination-view .ck-widget__resizer, .ck.ck-pagination_enabled.ck-pagination-view .ck-table-column-resizer {
28
- display: none;
29
- }
30
-
31
- .ck.ck-pagination_enabled.ck-pagination-view .ck-widget {
32
- outline: none;
33
- }
34
-
35
- .ck.ck-pagination_enabled.ck-pagination-view .ck-editor__nested-editable:not(td, th) {
36
- border: 0;
37
- }
38
-
39
- .ck.ck-pagination_enabled.ck-pagination-view p:first-child {
40
- padding-top: 0;
41
- }
42
-
43
- .ck.ck-pagination_enabled.ck-pagination-view :has( + .page-break) {
44
- margin-bottom: 0;
45
- }
46
-
47
- .ck.ck-pagination_enabled.ck-pagination-view .page-break {
48
- break-after: column;
49
- height: 0;
50
- margin: 0;
51
- padding: 0;
52
- display: block;
53
- }
54
-
55
- .ck.ck-pagination_enabled.ck-pagination-view .page-break .page-break__label, .ck.ck-pagination_enabled.ck-pagination-view .page-break:after {
56
- display: none;
57
- }
58
-
59
- .ck.ck-pagination_enabled.ck-pagination-view .table table {
60
- overflow: initial;
61
- }
62
-
63
- .ck.ck-pagination_enabled.ck-pagination-view blockquote {
64
- overflow: initial;
65
- display: flow-root;
66
- }
67
-
68
- .ck.ck-pagination_enabled.ck-pagination-view .ck-bookmark {
69
- width: 0;
70
- height: 0;
71
- overflow: hidden;
72
- }
73
-
74
- .ck.ck-pagination_enabled.ck-pagination-view figure.table:not(.layout-table):has( > figcaption) > table {
75
- width: fit-content;
76
- height: fit-content;
77
- }
78
-
79
- .ck.ck-pagination_enabled.ck-pagination-view figure.table:not(.layout-table):not(:has( > figcaption)) {
80
- width: fit-content;
81
- display: block;
82
- }
83
-
84
- .ck.ck-pagination_enabled.ck-pagination-view .table-of-contents {
85
- border: 0;
86
- }
87
-
88
- .ck.ck-pagination_enabled.ck-pagination-view .table-of-contents ol li {
89
- overflow: visible;
5
+ :root, :host {
6
+ --ck-pagination-divider-color: var(--ck-color-pagination-divider, #ababab);
7
+ --ck-pagination-label-background-color: #c4c4c4;
8
+ --ck-pagination-label-border-radius: 0 var(--ck-border-radius-control-small) var(--ck-border-radius-control-small) 0;
9
+ }
10
+
11
+ .ck.ck-pagination_enabled {
12
+ &.ck-content .page-break:after {
13
+ display: none;
14
+ }
15
+
16
+ &.ck-pagination-view {
17
+ & > .ck-content {
18
+ box-sizing: border-box;
19
+ width: auto;
20
+ min-width: auto;
21
+ max-width: none;
22
+ height: auto;
23
+ min-height: auto;
24
+ max-height: none;
25
+ overflow: unset;
26
+ border: none;
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ & .ck-widget__type-around, & .ck-fake-selection-container, & .ck-widget__selection-handle, & .ck-widget__resizer, & .ck-table-column-resizer {
32
+ display: none;
33
+ }
34
+
35
+ & .ck-widget {
36
+ outline: none;
37
+ }
38
+
39
+ & .ck-editor__nested-editable:not(td, th) {
40
+ border: 0;
41
+ }
42
+
43
+ & p:first-child {
44
+ padding-top: 0;
45
+ }
46
+
47
+ & :has( + .page-break) {
48
+ margin-bottom: 0;
49
+ }
50
+
51
+ & .page-break {
52
+ break-after: column;
53
+ height: 0;
54
+ margin: 0;
55
+ padding: 0;
56
+ display: block;
57
+
58
+ & .page-break__label, &:after {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ & .table table {
64
+ overflow: initial;
65
+ }
66
+
67
+ & blockquote {
68
+ overflow: initial;
69
+ display: flow-root;
70
+ }
71
+
72
+ & .ck-bookmark {
73
+ width: 0;
74
+ height: 0;
75
+ overflow: hidden;
76
+ }
77
+
78
+ & figure.table:not(.layout-table) {
79
+ &:has( > figcaption) > table {
80
+ width: fit-content;
81
+ height: fit-content;
82
+ }
83
+
84
+ &:not(:has( > figcaption)) {
85
+ width: fit-content;
86
+ display: block;
87
+ }
88
+ }
89
+
90
+ & .table-of-contents {
91
+ border: 0;
92
+
93
+ & ol li {
94
+ overflow: visible;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ :root, :host {
101
+ --ck-page-navigator-font-size: var(--ck-font-size-md);
90
102
  }
91
103
 
92
104
  .ck.ck-page-navigator {
93
- padding: 0 var(--ck-spacing-standard);
105
+ padding: 0 var(--ck-spacing-control-padding-inline);
106
+ font-variant-numeric: tabular-nums;
94
107
  line-height: 1;
95
- }
96
-
97
- .ck.ck-page-navigator > .ck-input-number {
98
- width: var(--ck-ui-component-min-height);
99
- min-width: var(--ck-ui-component-min-height);
100
- text-align: center;
101
- -moz-appearance: textfield;
102
- background: none;
103
- }
104
108
 
105
- .ck.ck-page-navigator > .ck-input-number::-webkit-inner-spin-button {
106
- -webkit-appearance: none;
107
- margin: 0;
108
- }
109
-
110
- .ck.ck-page-navigator > .ck-input-number::-webkit-outer-spin-button {
111
- -webkit-appearance: none;
112
- margin: 0;
113
- }
114
-
115
- .ck.ck-page-navigator > .ck-input-number:not(:focus) {
116
- border: 1px solid #0000;
117
- border-bottom: 1px solid var(--ck-color-base-border);
118
- }
119
-
120
- .ck.ck-page-navigator > span:before {
121
- content: "/";
122
- margin: 0 var(--ck-spacing-standard);
109
+ & > .ck-input-number {
110
+ width: calc(4ch + 2 * var(--ck-spacing-padding-compact) + 2px);
111
+ min-width: calc(4ch + 2 * var(--ck-spacing-padding-compact) + 2px);
112
+ font-size: var(--ck-page-navigator-font-size);
113
+ text-align: center;
114
+ -moz-appearance: textfield;
115
+ background: none;
116
+
117
+ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
118
+ -webkit-appearance: none;
119
+ margin: 0;
120
+ }
121
+
122
+ &:not(:focus) {
123
+ border: 1px solid #0000;
124
+ border-bottom: 1px solid var(--ck-color-border-control);
125
+ }
126
+ }
127
+
128
+ & > span {
129
+ font-size: var(--ck-page-navigator-font-size);
130
+ min-width: calc(2 * var(--ck-spacing-standard, var(--ck-spacing-base)) + 5ch);
131
+ display: inline-block;
132
+
133
+ &:before {
134
+ content: "/";
135
+ margin: 0 var(--ck-spacing-standard, var(--ck-spacing-base));
136
+ }
137
+ }
123
138
  }
124
139
 
125
140
  .ck.ck-pagination-view-line {
126
- border-top: 1px dotted var(--ck-color-pagination-divider);
141
+ border-top: 1px dotted var(--ck-pagination-divider-color);
127
142
  pointer-events: none;
128
143
  height: 0;
129
144
  position: absolute;
130
- }
131
145
 
132
- .ck.ck-pagination-view-line:after {
133
- content: attr(data-page-number);
134
- color: var(--ck-color-base-background);
135
- text-align: center;
136
- min-width: 18px;
137
- padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
138
- background: #c4c4c4;
139
- font-size: 10px;
140
- display: inline-block;
141
- position: absolute;
142
- top: -1px;
143
- right: -1px;
144
- transform: translateX(100%);
146
+ &:after {
147
+ content: attr(data-page-number);
148
+ font-size: var(--ck-font-size-xs);
149
+ background: var(--ck-pagination-label-background-color);
150
+ border-radius: var(--ck-pagination-label-border-radius);
151
+ color: var(--ck-color-text-inverse);
152
+ text-align: center;
153
+ min-width: 18px;
154
+ padding: var(--ck-spacing-padding-tight);
155
+ display: inline-block;
156
+ position: absolute;
157
+ top: -1px;
158
+ right: -1px;
159
+ transform: translateX(100%);
160
+ }
145
161
  }
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module pagination
7
- */
8
- export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination.js';
9
- export { PaginationRenderer } from './paginationrenderer.js';
10
- import './augmentation.js';
6
+ * @module pagination
7
+ */
8
+ export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from "./pagination.js";
9
+ export { PaginationRenderer } from "./paginationrenderer.js";
10
+ import "../theme/index-editor.css";
11
+ import "../theme/index-content.css";
12
+ import "./augmentation.js";