1 | /**
|
2 | * @license Copyright (c) 2003-2023, 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 | * @module list/documentlistproperties/documentlistpropertiesutils
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core';
|
9 | /**
|
10 | * A set of helpers related to document lists.
|
11 | */
|
12 | export default class DocumentListPropertiesUtils extends Plugin {
|
13 | /**
|
14 | * @inheritDoc
|
15 | */
|
16 | static get pluginName(): 'DocumentListPropertiesUtils';
|
17 | /**
|
18 | * Gets all the style types supported by given list type.
|
19 | */
|
20 | getAllSupportedStyleTypes(): Array<string>;
|
21 | /**
|
22 | * Checks whether the given list-style-type is supported by numbered or bulleted list.
|
23 | */
|
24 | getListTypeFromListStyleType(listStyleType: string): 'bulleted' | 'numbered' | null;
|
25 | /**
|
26 | * Converts `type` attribute of `<ul>` or `<ol>` elements to `list-style-type` equivalent.
|
27 | */
|
28 | getListStyleTypeFromTypeAttribute(value: string): string | null;
|
29 | /**
|
30 | * Converts `list-style-type` style to `type` attribute of `<ul>` or `<ol>` elements.
|
31 | */
|
32 | getTypeAttributeFromListStyleType(value: string): string | null;
|
33 | }
|