@ckeditor/ckeditor5-style 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 (286) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +17 -0
  3. package/README.md +26 -0
  4. package/build/style.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/en-au.js +1 -0
  14. package/build/translations/es.js +1 -0
  15. package/build/translations/et.js +1 -0
  16. package/build/translations/fi.js +1 -0
  17. package/build/translations/fr.js +1 -0
  18. package/build/translations/gl.js +1 -0
  19. package/build/translations/he.js +1 -0
  20. package/build/translations/hi.js +1 -0
  21. package/build/translations/hr.js +1 -0
  22. package/build/translations/hu.js +1 -0
  23. package/build/translations/id.js +1 -0
  24. package/build/translations/it.js +1 -0
  25. package/build/translations/ja.js +1 -0
  26. package/build/translations/ko.js +1 -0
  27. package/build/translations/lt.js +1 -0
  28. package/build/translations/lv.js +1 -0
  29. package/build/translations/ms.js +1 -0
  30. package/build/translations/nl.js +1 -0
  31. package/build/translations/no.js +1 -0
  32. package/build/translations/pl.js +1 -0
  33. package/build/translations/pt-br.js +1 -0
  34. package/build/translations/pt.js +1 -0
  35. package/build/translations/ro.js +1 -0
  36. package/build/translations/ru.js +1 -0
  37. package/build/translations/sk.js +1 -0
  38. package/build/translations/sr-latn.js +1 -0
  39. package/build/translations/sr.js +1 -0
  40. package/build/translations/sv.js +1 -0
  41. package/build/translations/th.js +1 -0
  42. package/build/translations/tr.js +1 -0
  43. package/build/translations/ug.js +1 -0
  44. package/build/translations/uk.js +1 -0
  45. package/build/translations/ur.js +1 -0
  46. package/build/translations/vi.js +1 -0
  47. package/build/translations/zh-cn.js +1 -0
  48. package/build/translations/zh.js +1 -0
  49. package/ckeditor5-metadata.json +28 -0
  50. package/dist/augmentation.d.ts +28 -0
  51. package/dist/index-content.css +4 -0
  52. package/dist/index-editor.css +28 -0
  53. package/dist/index.css +35 -0
  54. package/dist/index.css.map +1 -0
  55. package/dist/index.d.ts +18 -0
  56. package/dist/index.js +1336 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/integrations/link.d.ts +45 -0
  59. package/dist/integrations/list.d.ts +50 -0
  60. package/dist/integrations/table.d.ts +57 -0
  61. package/dist/style.d.ts +34 -0
  62. package/dist/stylecommand.d.ts +86 -0
  63. package/dist/styleconfig.d.ts +91 -0
  64. package/dist/styleediting.d.ts +41 -0
  65. package/dist/styleui.d.ts +38 -0
  66. package/dist/styleutils.d.ts +146 -0
  67. package/dist/translations/ar.d.ts +8 -0
  68. package/dist/translations/ar.js +5 -0
  69. package/dist/translations/ar.umd.js +11 -0
  70. package/dist/translations/bg.d.ts +8 -0
  71. package/dist/translations/bg.js +5 -0
  72. package/dist/translations/bg.umd.js +11 -0
  73. package/dist/translations/bn.d.ts +8 -0
  74. package/dist/translations/bn.js +5 -0
  75. package/dist/translations/bn.umd.js +11 -0
  76. package/dist/translations/ca.d.ts +8 -0
  77. package/dist/translations/ca.js +5 -0
  78. package/dist/translations/ca.umd.js +11 -0
  79. package/dist/translations/cs.d.ts +8 -0
  80. package/dist/translations/cs.js +5 -0
  81. package/dist/translations/cs.umd.js +11 -0
  82. package/dist/translations/da.d.ts +8 -0
  83. package/dist/translations/da.js +5 -0
  84. package/dist/translations/da.umd.js +11 -0
  85. package/dist/translations/de.d.ts +8 -0
  86. package/dist/translations/de.js +5 -0
  87. package/dist/translations/de.umd.js +11 -0
  88. package/dist/translations/el.d.ts +8 -0
  89. package/dist/translations/el.js +5 -0
  90. package/dist/translations/el.umd.js +11 -0
  91. package/dist/translations/en-au.d.ts +8 -0
  92. package/dist/translations/en-au.js +5 -0
  93. package/dist/translations/en-au.umd.js +11 -0
  94. package/dist/translations/en.d.ts +8 -0
  95. package/dist/translations/en.js +5 -0
  96. package/dist/translations/en.umd.js +11 -0
  97. package/dist/translations/es.d.ts +8 -0
  98. package/dist/translations/es.js +5 -0
  99. package/dist/translations/es.umd.js +11 -0
  100. package/dist/translations/et.d.ts +8 -0
  101. package/dist/translations/et.js +5 -0
  102. package/dist/translations/et.umd.js +11 -0
  103. package/dist/translations/fi.d.ts +8 -0
  104. package/dist/translations/fi.js +5 -0
  105. package/dist/translations/fi.umd.js +11 -0
  106. package/dist/translations/fr.d.ts +8 -0
  107. package/dist/translations/fr.js +5 -0
  108. package/dist/translations/fr.umd.js +11 -0
  109. package/dist/translations/gl.d.ts +8 -0
  110. package/dist/translations/gl.js +5 -0
  111. package/dist/translations/gl.umd.js +11 -0
  112. package/dist/translations/he.d.ts +8 -0
  113. package/dist/translations/he.js +5 -0
  114. package/dist/translations/he.umd.js +11 -0
  115. package/dist/translations/hi.d.ts +8 -0
  116. package/dist/translations/hi.js +5 -0
  117. package/dist/translations/hi.umd.js +11 -0
  118. package/dist/translations/hr.d.ts +8 -0
  119. package/dist/translations/hr.js +5 -0
  120. package/dist/translations/hr.umd.js +11 -0
  121. package/dist/translations/hu.d.ts +8 -0
  122. package/dist/translations/hu.js +5 -0
  123. package/dist/translations/hu.umd.js +11 -0
  124. package/dist/translations/id.d.ts +8 -0
  125. package/dist/translations/id.js +5 -0
  126. package/dist/translations/id.umd.js +11 -0
  127. package/dist/translations/it.d.ts +8 -0
  128. package/dist/translations/it.js +5 -0
  129. package/dist/translations/it.umd.js +11 -0
  130. package/dist/translations/ja.d.ts +8 -0
  131. package/dist/translations/ja.js +5 -0
  132. package/dist/translations/ja.umd.js +11 -0
  133. package/dist/translations/ko.d.ts +8 -0
  134. package/dist/translations/ko.js +5 -0
  135. package/dist/translations/ko.umd.js +11 -0
  136. package/dist/translations/lt.d.ts +8 -0
  137. package/dist/translations/lt.js +5 -0
  138. package/dist/translations/lt.umd.js +11 -0
  139. package/dist/translations/lv.d.ts +8 -0
  140. package/dist/translations/lv.js +5 -0
  141. package/dist/translations/lv.umd.js +11 -0
  142. package/dist/translations/ms.d.ts +8 -0
  143. package/dist/translations/ms.js +5 -0
  144. package/dist/translations/ms.umd.js +11 -0
  145. package/dist/translations/nl.d.ts +8 -0
  146. package/dist/translations/nl.js +5 -0
  147. package/dist/translations/nl.umd.js +11 -0
  148. package/dist/translations/no.d.ts +8 -0
  149. package/dist/translations/no.js +5 -0
  150. package/dist/translations/no.umd.js +11 -0
  151. package/dist/translations/pl.d.ts +8 -0
  152. package/dist/translations/pl.js +5 -0
  153. package/dist/translations/pl.umd.js +11 -0
  154. package/dist/translations/pt-br.d.ts +8 -0
  155. package/dist/translations/pt-br.js +5 -0
  156. package/dist/translations/pt-br.umd.js +11 -0
  157. package/dist/translations/pt.d.ts +8 -0
  158. package/dist/translations/pt.js +5 -0
  159. package/dist/translations/pt.umd.js +11 -0
  160. package/dist/translations/ro.d.ts +8 -0
  161. package/dist/translations/ro.js +5 -0
  162. package/dist/translations/ro.umd.js +11 -0
  163. package/dist/translations/ru.d.ts +8 -0
  164. package/dist/translations/ru.js +5 -0
  165. package/dist/translations/ru.umd.js +11 -0
  166. package/dist/translations/sk.d.ts +8 -0
  167. package/dist/translations/sk.js +5 -0
  168. package/dist/translations/sk.umd.js +11 -0
  169. package/dist/translations/sr-latn.d.ts +8 -0
  170. package/dist/translations/sr-latn.js +5 -0
  171. package/dist/translations/sr-latn.umd.js +11 -0
  172. package/dist/translations/sr.d.ts +8 -0
  173. package/dist/translations/sr.js +5 -0
  174. package/dist/translations/sr.umd.js +11 -0
  175. package/dist/translations/sv.d.ts +8 -0
  176. package/dist/translations/sv.js +5 -0
  177. package/dist/translations/sv.umd.js +11 -0
  178. package/dist/translations/th.d.ts +8 -0
  179. package/dist/translations/th.js +5 -0
  180. package/dist/translations/th.umd.js +11 -0
  181. package/dist/translations/tr.d.ts +8 -0
  182. package/dist/translations/tr.js +5 -0
  183. package/dist/translations/tr.umd.js +11 -0
  184. package/dist/translations/ug.d.ts +8 -0
  185. package/dist/translations/ug.js +5 -0
  186. package/dist/translations/ug.umd.js +11 -0
  187. package/dist/translations/uk.d.ts +8 -0
  188. package/dist/translations/uk.js +5 -0
  189. package/dist/translations/uk.umd.js +11 -0
  190. package/dist/translations/ur.d.ts +8 -0
  191. package/dist/translations/ur.js +5 -0
  192. package/dist/translations/ur.umd.js +11 -0
  193. package/dist/translations/vi.d.ts +8 -0
  194. package/dist/translations/vi.js +5 -0
  195. package/dist/translations/vi.umd.js +11 -0
  196. package/dist/translations/zh-cn.d.ts +8 -0
  197. package/dist/translations/zh-cn.js +5 -0
  198. package/dist/translations/zh-cn.umd.js +11 -0
  199. package/dist/translations/zh.d.ts +8 -0
  200. package/dist/translations/zh.js +5 -0
  201. package/dist/translations/zh.umd.js +11 -0
  202. package/dist/ui/stylegridbuttonview.d.ts +38 -0
  203. package/dist/ui/stylegridview.d.ts +76 -0
  204. package/dist/ui/stylegroupview.d.ts +39 -0
  205. package/dist/ui/stylepanelview.d.ts +93 -0
  206. package/lang/contexts.json +6 -0
  207. package/lang/translations/ar.po +34 -0
  208. package/lang/translations/bg.po +34 -0
  209. package/lang/translations/bn.po +34 -0
  210. package/lang/translations/ca.po +34 -0
  211. package/lang/translations/cs.po +34 -0
  212. package/lang/translations/da.po +34 -0
  213. package/lang/translations/de.po +34 -0
  214. package/lang/translations/el.po +34 -0
  215. package/lang/translations/en-au.po +34 -0
  216. package/lang/translations/en.po +34 -0
  217. package/lang/translations/es.po +34 -0
  218. package/lang/translations/et.po +34 -0
  219. package/lang/translations/fi.po +34 -0
  220. package/lang/translations/fr.po +34 -0
  221. package/lang/translations/gl.po +34 -0
  222. package/lang/translations/he.po +34 -0
  223. package/lang/translations/hi.po +34 -0
  224. package/lang/translations/hr.po +34 -0
  225. package/lang/translations/hu.po +34 -0
  226. package/lang/translations/id.po +34 -0
  227. package/lang/translations/it.po +34 -0
  228. package/lang/translations/ja.po +34 -0
  229. package/lang/translations/ko.po +34 -0
  230. package/lang/translations/lt.po +34 -0
  231. package/lang/translations/lv.po +34 -0
  232. package/lang/translations/ms.po +34 -0
  233. package/lang/translations/nl.po +34 -0
  234. package/lang/translations/no.po +34 -0
  235. package/lang/translations/pl.po +34 -0
  236. package/lang/translations/pt-br.po +34 -0
  237. package/lang/translations/pt.po +34 -0
  238. package/lang/translations/ro.po +34 -0
  239. package/lang/translations/ru.po +34 -0
  240. package/lang/translations/sk.po +34 -0
  241. package/lang/translations/sr-latn.po +34 -0
  242. package/lang/translations/sr.po +34 -0
  243. package/lang/translations/sv.po +34 -0
  244. package/lang/translations/th.po +34 -0
  245. package/lang/translations/tr.po +34 -0
  246. package/lang/translations/ug.po +34 -0
  247. package/lang/translations/uk.po +34 -0
  248. package/lang/translations/ur.po +34 -0
  249. package/lang/translations/vi.po +34 -0
  250. package/lang/translations/zh-cn.po +34 -0
  251. package/lang/translations/zh.po +34 -0
  252. package/package.json +43 -0
  253. package/src/augmentation.d.ts +24 -0
  254. package/src/augmentation.js +5 -0
  255. package/src/index.d.ts +14 -0
  256. package/src/index.js +12 -0
  257. package/src/integrations/link.d.ts +41 -0
  258. package/src/integrations/link.js +162 -0
  259. package/src/integrations/list.d.ts +46 -0
  260. package/src/integrations/list.js +148 -0
  261. package/src/integrations/table.d.ts +53 -0
  262. package/src/integrations/table.js +121 -0
  263. package/src/style.d.ts +30 -0
  264. package/src/style.js +36 -0
  265. package/src/stylecommand.d.ts +82 -0
  266. package/src/stylecommand.js +200 -0
  267. package/src/styleconfig.d.ts +87 -0
  268. package/src/styleconfig.js +5 -0
  269. package/src/styleediting.d.ts +37 -0
  270. package/src/styleediting.js +52 -0
  271. package/src/styleui.d.ts +34 -0
  272. package/src/styleui.js +100 -0
  273. package/src/styleutils.d.ts +142 -0
  274. package/src/styleutils.js +274 -0
  275. package/src/ui/stylegridbuttonview.d.ts +34 -0
  276. package/src/ui/stylegridbuttonview.js +55 -0
  277. package/src/ui/stylegridview.d.ts +72 -0
  278. package/src/ui/stylegridview.js +89 -0
  279. package/src/ui/stylegroupview.d.ts +35 -0
  280. package/src/ui/stylegroupview.js +45 -0
  281. package/src/ui/stylepanelview.d.ts +89 -0
  282. package/src/ui/stylepanelview.js +95 -0
  283. package/theme/style.css +4 -0
  284. package/theme/stylegrid.css +29 -0
  285. package/theme/stylegroup.css +4 -0
  286. package/theme/stylepanel.css +5 -0
@@ -0,0 +1,11 @@
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
+ ( e => {
7
+ const { [ 'vi' ]: { dictionary, getPluralForm } } = {"vi":{"dictionary":{"Styles":"Kiểu","Multiple styles":"Nhiều kiểu","Block styles":"Kiểu của khối","Text styles":"Kiểu văn bản"},getPluralForm(n){return 0;}}};
8
+ e[ 'vi' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'vi' ].dictionary = Object.assign( e[ 'vi' ].dictionary, dictionary );
10
+ e[ 'vi' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,8 @@
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
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"zh-cn":{"dictionary":{"Styles":"样式","Multiple styles":"多样式","Block styles":"块级样式","Text styles":"文本样式"},getPluralForm(n){return 0;}}}
@@ -0,0 +1,11 @@
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
+ ( e => {
7
+ const { [ 'zh-cn' ]: { dictionary, getPluralForm } } = {"zh-cn":{"dictionary":{"Styles":"样式","Multiple styles":"多样式","Block styles":"块级样式","Text styles":"文本样式"},getPluralForm(n){return 0;}}};
8
+ e[ 'zh-cn' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'zh-cn' ].dictionary = Object.assign( e[ 'zh-cn' ].dictionary, dictionary );
10
+ e[ 'zh-cn' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,8 @@
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
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"zh":{"dictionary":{"Styles":"樣式","Multiple styles":"多重樣式","Block styles":"區塊樣式","Text styles":"文字樣式"},getPluralForm(n){return 0;}}}
@@ -0,0 +1,11 @@
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
+ ( e => {
7
+ const { [ 'zh' ]: { dictionary, getPluralForm } } = {"zh":{"dictionary":{"Styles":"樣式","Multiple styles":"多重樣式","Block styles":"區塊樣式","Text styles":"文字樣式"},getPluralForm(n){return 0;}}};
8
+ e[ 'zh' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'zh' ].dictionary = Object.assign( e[ 'zh' ].dictionary, dictionary );
10
+ e[ 'zh' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,38 @@
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 style/ui/stylegridbuttonview
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ import { ButtonView, View } from 'ckeditor5/src/ui.js';
14
+ import type { NormalizedStyleDefinition } from '../styleutils.js';
15
+ /**
16
+ * A class representing an individual button (style) in the grid. Renders a rich preview of the style.
17
+ */
18
+ export default class StyleGridButtonView extends ButtonView {
19
+ /**
20
+ * Definition of the style the button will apply when executed.
21
+ */
22
+ readonly styleDefinition: NormalizedStyleDefinition;
23
+ /**
24
+ * The view rendering the preview of the style.
25
+ */
26
+ readonly previewView: View;
27
+ /**
28
+ * Creates an instance of the {@link module:style/ui/stylegridbuttonview~StyleGridButtonView} class.
29
+ *
30
+ * @param locale The localization services instance.
31
+ * @param styleDefinition Definition of the style.
32
+ */
33
+ constructor(locale: Locale, styleDefinition: NormalizedStyleDefinition);
34
+ /**
35
+ * Creates the view representing the preview of the style.
36
+ */
37
+ private _createPreview;
38
+ }
@@ -0,0 +1,76 @@
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 style/ui/stylegridview
11
+ */
12
+ import { View, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
13
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
14
+ import StyleGridButtonView from './stylegridbuttonview.js';
15
+ import type { NormalizedStyleDefinition } from '../styleutils.js';
16
+ import '../../theme/stylegrid.css';
17
+ /**
18
+ * A class representing a grid of styles ({@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}).
19
+ * Allows users to select a style.
20
+ */
21
+ export default class StyleGridView extends View<HTMLDivElement> implements FocusableView {
22
+ /**
23
+ * Tracks information about the DOM focus in the view.
24
+ */
25
+ readonly focusTracker: FocusTracker;
26
+ /**
27
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
28
+ */
29
+ readonly keystrokes: KeystrokeHandler;
30
+ /**
31
+ * A collection of style {@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}.
32
+ */
33
+ readonly children: ViewCollection<StyleGridButtonView>;
34
+ /**
35
+ * Array of active style names. They must correspond to the names of styles from
36
+ * definitions passed to the {@link #constructor}.
37
+ *
38
+ * @observable
39
+ */
40
+ readonly activeStyles: Array<string>;
41
+ /**
42
+ * Array of enabled style names. They must correspond to the names of styles from
43
+ * definitions passed to the {@link #constructor}.
44
+ *
45
+ * @observable
46
+ */
47
+ readonly enabledStyles: Array<string>;
48
+ /**
49
+ * Creates an instance of the {@link module:style/ui/stylegridview~StyleGridView} class.
50
+ *
51
+ * @param locale The localization services instance.
52
+ * @param styleDefinitions Definitions of the styles.
53
+ */
54
+ constructor(locale: Locale, styleDefinitions: Array<NormalizedStyleDefinition>);
55
+ /**
56
+ * @inheritDoc
57
+ */
58
+ render(): void;
59
+ /**
60
+ * Focuses the first style button in the grid.
61
+ */
62
+ focus(): void;
63
+ /**
64
+ * @inheritDoc
65
+ */
66
+ destroy(): void;
67
+ }
68
+ /**
69
+ * Fired when a {@link module:style/ui/stylegridbuttonview~StyleGridButtonView style} was selected (clicked) by the user.
70
+ *
71
+ * @eventName ~StyleGridView#execute
72
+ */
73
+ export type StyleGridViewExecuteEvent = {
74
+ name: 'execute';
75
+ args: [];
76
+ };
@@ -0,0 +1,39 @@
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 style/ui/stylegroupview
11
+ */
12
+ import { LabelView, View } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ import StyleGridView from './stylegridview.js';
15
+ import type { NormalizedStyleDefinition } from '../styleutils.js';
16
+ import '../../theme/stylegroup.css';
17
+ /**
18
+ * A class representing a group of styles (e.g. "block" or "inline").
19
+ *
20
+ * Renders a {@link module:style/ui/stylegridview~StyleGridView style grid} and a label.
21
+ */
22
+ export default class StyleGroupView extends View<HTMLDivElement> {
23
+ /**
24
+ * The styles grid of the group.
25
+ */
26
+ readonly gridView: StyleGridView;
27
+ /**
28
+ * The label of the group.
29
+ */
30
+ readonly labelView: LabelView;
31
+ /**
32
+ * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
33
+ *
34
+ * @param locale The localization services instance.
35
+ * @param label The localized label of the group.
36
+ * @param styleDefinitions Definitions of the styles in the group.
37
+ */
38
+ constructor(locale: Locale, label: string, styleDefinitions: Array<NormalizedStyleDefinition>);
39
+ }
@@ -0,0 +1,93 @@
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 style/ui/stylepanelview
11
+ */
12
+ import { FocusCycler, View, ViewCollection } from 'ckeditor5/src/ui.js';
13
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
14
+ import StyleGroupView from './stylegroupview.js';
15
+ import type StyleGridView from './stylegridview.js';
16
+ import type { NormalizedStyleDefinitions } from '../styleutils.js';
17
+ import '../../theme/stylepanel.css';
18
+ /**
19
+ * A class representing a panel with available content styles. It renders styles in button grids, grouped
20
+ * in categories.
21
+ */
22
+ export default class StylePanelView extends View<HTMLDivElement> {
23
+ /**
24
+ * Tracks information about DOM focus in the panel.
25
+ */
26
+ readonly focusTracker: FocusTracker;
27
+ /**
28
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
29
+ */
30
+ readonly keystrokes: KeystrokeHandler;
31
+ /**
32
+ * A collection of panel children.
33
+ */
34
+ readonly children: ViewCollection<StyleGroupView>;
35
+ /**
36
+ * A view representing block styles group.
37
+ */
38
+ readonly blockStylesGroupView: StyleGroupView;
39
+ /**
40
+ * A view representing inline styles group
41
+ */
42
+ readonly inlineStylesGroupView: StyleGroupView;
43
+ /**
44
+ * Array of active style names. They must correspond to the names of styles from
45
+ * definitions passed to the {@link #constructor}.
46
+ *
47
+ * @observable
48
+ */
49
+ readonly activeStyles: Array<string>;
50
+ /**
51
+ * Array of enabled style names. They must correspond to the names of styles from
52
+ * definitions passed to the {@link #constructor}.
53
+ *
54
+ * @observable
55
+ */
56
+ readonly enabledStyles: Array<string>;
57
+ /**
58
+ * A collection of views that can be focused in the panel.
59
+ */
60
+ protected readonly _focusables: ViewCollection<StyleGridView>;
61
+ /**
62
+ * Helps cycling over {@link #_focusables} in the panel.
63
+ */
64
+ protected readonly _focusCycler: FocusCycler;
65
+ /**
66
+ * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
67
+ *
68
+ * @param locale The localization services instance.
69
+ * @param styleDefinitions Normalized definitions of the styles.
70
+ */
71
+ constructor(locale: Locale, styleDefinitions: NormalizedStyleDefinitions);
72
+ /**
73
+ * @inheritDoc
74
+ */
75
+ render(): void;
76
+ /**
77
+ * Focuses the first focusable element in the panel.
78
+ */
79
+ focus(): void;
80
+ /**
81
+ * Focuses the last focusable element in the panel.
82
+ */
83
+ focusLast(): void;
84
+ }
85
+ /**
86
+ * Fired when a style was selected (clicked) by the user.
87
+ *
88
+ * @eventName ~StylePanelView#execute
89
+ */
90
+ export type StylePanelViewExecuteEvent = {
91
+ name: 'execute';
92
+ args: [];
93
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "Styles": "The label of the styles dropdown button in the toolbar displayed when no style is currently active.",
3
+ "Multiple styles": "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active.",
4
+ "Block styles": "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.).",
5
+ "Text styles": "The label of the group in the styles dropdown containing inline applicable to text only."
6
+ }
@@ -0,0 +1,34 @@
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: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n"
16
+ "Language: ar\n"
17
+ "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "الأنماط"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "أنماط متعددة"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "أنماط الكتل"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "أنماط النصوص"
@@ -0,0 +1,34 @@
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: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n"
16
+ "Language: bg\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Стилове"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Множество стилове"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Блокови стилове"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Текстови стилове"
@@ -0,0 +1,34 @@
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: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n"
16
+ "Language: bn\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "স্টাইলস"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "একাধিক স্টাইল"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "ব্লক স্টাইল"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "টেস্কট স্টাইল"
@@ -0,0 +1,34 @@
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: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n"
16
+ "Language: ca\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Estils"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Estils múltiples"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Estils de bloc"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Estils de text"
@@ -0,0 +1,34 @@
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: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n"
16
+ "Language: cs\n"
17
+ "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Styly"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Více stylů"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Styly bloků"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Styly textu"
@@ -0,0 +1,34 @@
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: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n"
16
+ "Language: da\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Stile"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Flere stile"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Blokstile"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Tekststile"
@@ -0,0 +1,34 @@
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: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n"
16
+ "Language: de\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Stile"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Mehrere Stile"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Block-Stile"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Text-Stile"
@@ -0,0 +1,34 @@
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: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n"
16
+ "Language: el\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Στυλ"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Πολλαπλά στυλ"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Στυλ για μπλοκ"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Στυλ για κείμενο"
@@ -0,0 +1,34 @@
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 "The label of the styles dropdown button in the toolbar displayed when no style is currently active."
21
+ msgid "Styles"
22
+ msgstr "Styles"
23
+
24
+ msgctxt "The label of the styles dropdown button in the toolbar displayed when multiple styles are currently active."
25
+ msgid "Multiple styles"
26
+ msgstr "Multiple styles"
27
+
28
+ msgctxt "The label of the group in the styles dropdown containing styles applicable to blocks only (paragraphs, headings, etc.)."
29
+ msgid "Block styles"
30
+ msgstr "Block styles"
31
+
32
+ msgctxt "The label of the group in the styles dropdown containing inline applicable to text only."
33
+ msgid "Text styles"
34
+ msgstr "Text styles"